repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

feat(klaus): catalog-driven Claude models and Agent SDK 0.3.281

581c2f6153da4a5b4321e49b1d5e701b48ea1f8e

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Project every non-dated Claude catalog model instead of a static
selector table; unknown ids pass through as their own SDK selector
so new models need no klaus changes.
Bump the Agent SDK to 0.3.281 (Claude Code 2.1.281) and verify the
vendored binary against the pinned SDK manifest instead of
hand-copied checksums.

Changed files (13)

extensions/klaus/AGENTS.md

Modified
1 1 Before Klaus design or code changes, inspect and test exact installed Pi and Claude Agent SDK APIs; never rely on memory, bridge code, or summaries.
3 3 Use dbg?.(...) only for bounded, secret-free diagnostics. Set/unset KLAUS_DEBUG_LOG before starting Pi, then restart; never call dbg(...), because disabled tracing must skip argument evaluation.
5 +To update the Claude Agent SDK: bump the exact pin in `package.json`, install, read `version` from the installed SDK `manifest.json`, and set `SDK_VERSION` plus `CLAUDE_VERSION` in `src/protocol.ts`.
6 +Never hand-copy binary checksums; `src/runtime/standard.ts` verifies the vendored binary against the pinned SDK manifest.
7 +A model error demanding "version X or newer" means the bundled Claude Code CLI is too old; fix it with this update instead of pointing klaus at an external `claude` binary.
8 +Finish with `mise run //extensions/klaus:test`; cache fixtures pin the SDK version.

extensions/klaus/README.md

Modified
1 1 # klaus
3 -Exposes selected Claude models as a Pi provider through Anthropic's Claude Agent SDK.
3 +Exposes every current Claude model from Pi's Anthropic catalog as a Pi provider through Anthropic's Claude Agent SDK.
4 +Dated snapshot ids stay hidden; new catalog models appear without klaus changes.
4 5 Pi remains responsible for context, tools, compaction, hooks, and UI.
6 7 ## Install / load

extensions/klaus/__tests__/cache.test.ts

Modified
208 208 expect(
209 209 JSON.parse(await readFile(join(root, "manifest.json"), "utf8")),
210 - ).toEqual({ schema: 1, sdk: "0.3.261" });
210 + ).toEqual({ schema: 1, sdk: "0.3.281" });
211 211 const transcript = await onlyFile(root, ".ndjson");
212 212 expect(await readFile(transcript, "utf8")).toBe(
213 213 '{"type":"assistant","uuid":"one","payload":"opaque"}\n',
316 316 it.each([
317 - { schema: 2, sdk: "0.3.261" },
317 + { schema: 2, sdk: "0.3.281" },
318 318 { schema: 1, sdk: "0.3.238" },

extensions/klaus/__tests__/harness.test.ts

Modified
1 -import { getBuiltinModel } from "@earendil-works/pi-ai/providers/all";
1 +import {
2 + getBuiltinModel,
3 + getBuiltinModels,
4 +} from "@earendil-works/pi-ai/providers/all";
2 5 import { Type } from "typebox";
3 6 import { afterEach, describe, expect, it, vi } from "vitest";
4 7 import { createTestSession, type TestSession } from "../../../test/harness";
5 8 import klaus from "../index";
6 -import { MODEL_SELECTORS } from "../src/protocol";
9 +import { isProjectableClaudeModel } from "../src/models";
11 +function builtinClaudeCatalog(): ReturnType<typeof getBuiltinModels> {
12 + return getBuiltinModels("anthropic");
8 15 function installDispatchAuth(
9 16 runtime: object,
37 44 t = undefined;
40 - it("loads one extension and registers exactly the explicit Klaus model table", async () => {
47 + it("loads one extension and registers every projectable Claude model", async () => {
41 48 t = await createTestSession({ extensionFactories: [klaus] });
42 49 const runtime = t.session.modelRuntime;
44 51 expect(t.session.extensionRunner.extensions).toHaveLength(1);
45 - for (const id of Object.keys(MODEL_SELECTORS)) {
46 - expect(runtime.getModel("klaus", id)).toMatchObject({
47 - provider: "klaus",
48 - id,
49 - api: "klaus-agent-sdk",
50 - baseUrl: "https://klaus.invalid",
51 - });
52 + for (const model of builtinClaudeCatalog()) {
53 + const registered = runtime.getModel("klaus", model.id);
54 + if (isProjectableClaudeModel(model)) {
55 + expect(registered).toMatchObject({
56 + provider: "klaus",
57 + id: model.id,
58 + api: "klaus-agent-sdk",
59 + baseUrl: "https://klaus.invalid",
60 + });
61 + } else {
62 + expect(registered).toBeUndefined();
63 + }
53 - expect(runtime.getModel("klaus", "claude-sonnet-4")).toBeUndefined();
54 65 expect(runtime.getModel("klaus", "default")).toBeUndefined();
57 68 it("copies Anthropic model metadata and prices Fable safety fallbacks", async () => {
58 69 t = await createTestSession({ extensionFactories: [klaus] });
59 - for (const id of Object.keys(MODEL_SELECTORS)) {
60 - const source = getBuiltinModel("anthropic", id);
61 - const projected = t.session.modelRuntime.getModel("klaus", id);
70 + for (const model of builtinClaudeCatalog()) {
71 + if (!isProjectableClaudeModel(model)) continue;
72 + const source = getBuiltinModel("anthropic", model.id);
73 + const projected = t.session.modelRuntime.getModel("klaus", model.id);
62 74 expect(source).toBeDefined();
63 75 expect(projected).toMatchObject({
64 76 id: source?.id,
71 83 maxTokens: source?.maxTokens,
73 85 expect(projected?.compat).toEqual(
74 - id === "claude-fable-5-1"
86 + model.id === "claude-fable-5-1"
76 88 ...source?.compat,
77 89 allowedFallbackModels: [

extensions/klaus/__tests__/models.test.ts

Modified
1 1 import type { Api, Model } from "@earendil-works/pi-ai";
2 -import { getBuiltinModel } from "@earendil-works/pi-ai/providers/all";
2 +import {
3 + getBuiltinModel,
4 + getBuiltinModels,
5 +} from "@earendil-works/pi-ai/providers/all";
3 6 import { describe, expect, it } from "vitest";
4 7 import {
5 - builtinSource,
6 - MODEL_IDS,
8 + isProjectableClaudeModel,
7 9 modelsSignature,
10 + projectBuiltinModels,
8 11 projectModel,
9 12 projectModels,
10 13 } from "../src/models";
18 21 describe("Klaus model projection", () => {
19 - it("advertises every Klaus model from Pi's builtin catalog", () => {
20 - const models = projectModels(builtinSource);
21 - expect(models.map((model) => model.id)).toEqual(MODEL_IDS);
22 + it("projects every non-dated builtin Claude catalog model", () => {
23 + const builtin = getBuiltinModels("anthropic");
24 + const expected = builtin
25 + .filter((model) => isProjectableClaudeModel(model))
26 + .map((model) => model.id);
27 + expect(projectBuiltinModels().map((model) => model.id)).toEqual(
28 + expect.arrayContaining(expected),
29 + );
30 + expect(projectBuiltinModels()).toHaveLength(expected.length);
31 + for (const model of builtin) {
32 + if (/-\d{8}$/.test(model.id) || model.id.endsWith("-latest"))
33 + expect(projectBuiltinModels().some((m) => m.id === model.id)).toBe(
34 + false,
35 + );
36 + }
37 + });
39 + it("keeps the curated alias table inside the projected catalog", () => {
40 + const ids = projectBuiltinModels().map((model) => model.id);
41 + for (const id of [
42 + "claude-fable-5-1",
43 + "claude-haiku-4-5",
44 + "claude-opus-5",
45 + "claude-sonnet-5",
46 + "claude-sonnet-4-6",
47 + ])
48 + expect(ids).toContain(id);
49 + });
51 + it("filters foreign providers from a registry enumeration", () => {
52 + const openai = { ...anthropic("claude-sonnet-5"), provider: "openrouter" };
53 + expect(projectModels([openai])).toEqual([]);
24 56 it("copies Pi catalog metadata without transport fields", () => {
99 131 expect(source).toEqual(before);
102 - it("skips models that Pi's catalog no longer knows", () => {
103 - const models = projectModels((id) =>
104 - id === "claude-haiku-4-5" ? undefined : builtinSource(id),
134 + it("filters the enumeration it is given without touching other models", () => {
135 + const catalog = getBuiltinModels("anthropic");
136 + const models = projectModels(
137 + catalog.filter((model) => model.id !== "claude-haiku-4-5"),
106 139 expect(models.map((model) => model.id)).not.toContain("claude-haiku-4-5");
107 - expect(models).toHaveLength(MODEL_IDS.length - 1);
140 + expect(models).toHaveLength(
141 + catalog.filter(isProjectableClaudeModel).length - 1,
142 + );
110 145 it("signs identical projections identically", () => {
111 - expect(modelsSignature(projectModels(builtinSource))).toBe(
112 - modelsSignature(projectModels(builtinSource)),
146 + expect(modelsSignature(projectBuiltinModels())).toBe(
147 + modelsSignature(projectBuiltinModels()),
114 - expect(modelsSignature(projectModels(builtinSource))).not.toBe(
149 + expect(modelsSignature(projectBuiltinModels())).not.toBe(
115 150 modelsSignature(
116 - projectModels((id) =>
117 - id === "claude-opus-5"
118 - ? { ...anthropic(id), name: "renamed" }
119 - : builtinSource(id),
151 + projectModels(
152 + getBuiltinModels("anthropic").map((model) =>
153 + model.id === "claude-opus-5"
154 + ? { ...model, name: "renamed" }
155 + : model,
156 + ),

extensions/klaus/__tests__/protocol.test.ts

Modified
6 6 createAssistant,
7 7 emptyUsage,
8 8 isKlausModelId,
9 + klausSelector,
9 10 MODEL_SELECTORS,
10 11 modelFacingContent,
11 12 requiredConstrainedTool,
66 67 describe("Klaus model protocol", () => {
67 - it("accepts exactly the explicit model table", () => {
68 + it("accepts every current Claude catalog id shape, aliases included", () => {
68 69 for (const id of Object.keys(MODEL_SELECTORS)) {
69 70 expect(isKlausModelId(id)).toBe(true);
72 + for (const id of [
73 + "claude-opus-5-5",
74 + "claude-fable-5-1",
75 + "claude-sonnet-4",
76 + "claude-haiku-4-5",
77 + ]) {
78 + expect(isKlausModelId(id)).toBe(true);
79 + }
71 80 for (const id of [
73 82 "default",
74 83 "claude-sonnet-5-latest",
75 - "claude-sonnet-4",
84 + "claude-opus-4-5-20251101",
76 85 "CLAUDE-SONNET-5",
86 + "claude-sonnet-5_",
87 + "claude--5",
77 88 "__proto__",
79 90 expect(isKlausModelId(id)).toBe(false);
94 + it("maps known ids to short selectors and passes unknown ids through", () => {
95 + expect(klausSelector("claude-opus-5")).toBe("opus");
96 + expect(klausSelector("claude-fable-5-1")).toBe("fable");
97 + expect(klausSelector("claude-opus-5-5")).toBe("claude-opus-5-5");
98 + });
83 100 it("projects Pi tools without changing names, descriptions, order, or schemas", () => {
84 101 const tools = [tool("z_tool"), tool("A tool")];
85 102 const projected = toKlausTools(tools);

extensions/klaus/index.ts

Modified
7 7 import type { QueryCoordinator } from "./src/coordinator.js";
8 8 import { dbg } from "./src/debug.js";
9 9 import {
10 - builtinSource,
11 - MODEL_IDS,
12 10 modelsSignature,
11 + projectBuiltinModels,
13 12 projectModels,
14 13 } from "./src/models.js";
15 14 import { KLAUS_API } from "./src/protocol.js";
17 -dbg?.("index.module", { modelIds: MODEL_IDS });
16 +dbg?.("index.module");
19 18 /** Pi's catalog carries user overrides, so the session registry outranks the
20 - * builtin catalog whenever it still knows the model. */
19 + * builtin catalog whenever it still knows Claude models. */
21 20 function sessionModels(activeContext: ExtensionContext): ProviderModelConfig[] {
22 - const models = projectModels((id) =>
23 - activeContext.modelRegistry.find("anthropic", id),
24 - );
25 - return models.length ? models : projectModels(builtinSource);
21 + const models = projectModels(activeContext.modelRegistry.getAvailable());
22 + return models.length ? models : projectBuiltinModels();
28 25 export default function klaus(pi: ExtensionAPI): void | Promise<void> {
186 - register(projectModels(builtinSource));
183 + register(projectBuiltinModels());
188 185 pi.on("session_start", (_event, nextContext) => {
189 186 dbg?.("index.session_start", {

extensions/klaus/package.json

Modified
15 15 "pi-extension"
17 17 "dependencies": {
18 - "@anthropic-ai/claude-agent-sdk": "0.3.261",
18 + "@anthropic-ai/claude-agent-sdk": "0.3.281",
19 19 "@modelcontextprotocol/sdk": "1.29.0"
21 21 "devDependencies": {

extensions/klaus/src/coordinator.ts

Modified
30 30 type KlausContext,
31 31 type KlausQueryCallbacks,
32 32 type KlausRequest,
33 - MODEL_SELECTORS,
33 + klausSelector,
34 34 modelFacingContent,
35 35 requiredConstrainedTool,
36 36 SDK_VERSION,
712 712 const staging = new StagingSessionStore(completed?.store ?? store);
713 713 const request: KlausRequest = {
714 - modelId: model.id as keyof typeof MODEL_SELECTORS,
715 - selector: MODEL_SELECTORS[model.id as keyof typeof MODEL_SELECTORS],
714 + modelId: model.id,
715 + selector: klausSelector(model.id),
716 716 systemPrompt: context.systemPrompt ?? "",
717 717 prompt: linearResume
718 718 ? finalUserPrompt(deltaContext)

extensions/klaus/src/models.ts

Modified
3 3 import type {
4 4 AnthropicMessagesCompat,
5 5 Api,
6 6 Model,
7 7 } from "@earendil-works/pi-ai";
8 -import { getBuiltinModel } from "@earendil-works/pi-ai/providers/all";
8 +import {
9 + getBuiltinModel,
10 + getBuiltinModels,
11 +} from "@earendil-works/pi-ai/providers/all";
9 12 import type { ProviderModelConfig } from "@earendil-works/pi-coding-agent";
10 13 import { dbg } from "./debug.js";
11 -import {
12 - isKlausModelId,
13 - type KlausModelId,
14 - MODEL_SELECTORS,
15 -} from "./protocol.js";
17 -export const MODEL_IDS = Object.keys(MODEL_SELECTORS) as KlausModelId[];
19 15 const FABLE_FALLBACK_IDS = ["claude-opus-4-8", "claude-opus-5"] as const;
21 -/** Pi model lookup, satisfied by `ModelRegistry.find` or the builtin catalog. */
22 -export type AnthropicModelSource = (
23 - modelId: KlausModelId,
24 -) => Model<Api> | undefined;
26 -export const builtinSource: AnthropicModelSource = (modelId) =>
27 - getBuiltinModel("anthropic", modelId);
17 +/** Dated snapshot ids (e.g. `claude-opus-4-5-20251101`) stay hidden; the
18 + * current id of each family is always projected. */
19 +export function isProjectableClaudeModel(model: Model<Api>): boolean {
20 + return (
21 + model.provider === "anthropic" &&
22 + !/-\d{8}$/.test(model.id) &&
23 + !model.id.endsWith("-latest")
24 + );
29 27 /** Pi catalog entries may be tuned for the direct Anthropic API, where request
30 28 * headers unlock capacity that the Claude Agent SDK path does not provide.
31 29 * Klaus drops those headers, so it must not advertise more than the builtin
32 30 * catalog promises for the same model. */
31 +/** Typed escape hatch: catalog lookups accept only literal ids at the type
32 + * level, but klaus passes runtime catalog ids from enumerations. */
33 +function builtinAnthropic(modelId: string): Model<Api> | undefined {
34 + return getBuiltinModel(
35 + "anthropic",
36 + modelId as Parameters<typeof getBuiltinModel>[1],
37 + ) as Model<Api> | undefined;
33 40 function clampToBaseline(
34 41 modelId: string,
35 42 field: "contextWindow" | "maxTokens",
63 70 * inherited, because the Claude Agent SDK owns the request. */
64 71 export function projectModel(model: Model<Api>): ProviderModelConfig {
65 72 dbg?.("models.projectModel", { provider: model.provider, modelId: model.id });
66 - const baseline = isKlausModelId(model.id)
67 - ? getBuiltinModel("anthropic", model.id)
68 - : undefined;
73 + const baseline = builtinAnthropic(model.id);
69 74 return {
70 75 id: model.id,
71 76 name: model.name,
95 -/** Project every advertised Klaus model that the source still knows. */
96 -export function projectModels(
97 - source: AnthropicModelSource,
98 -): ProviderModelConfig[] {
99 - const models = MODEL_IDS.flatMap((id) => {
100 - const model = source(id);
101 - dbg?.("models.lookup", { modelId: id, found: Boolean(model) });
102 - return model ? [projectModel(model)] : [];
103 - });
104 - dbg?.("models.projectModels", { count: models.length });
105 - return models;
100 +/** Project every projectable Claude model from a catalog enumeration. */
101 +export function projectModels(models: Model<Api>[]): ProviderModelConfig[] {
102 + const projected = models.filter(isProjectableClaudeModel).map(projectModel);
103 + dbg?.("models.projectModels", { count: projected.length });
104 + return projected;
107 +/** Startup projection from Pi's builtin catalog before any session exists. */
108 +export function projectBuiltinModels(): ProviderModelConfig[] {
109 + return projectModels(getBuiltinModels("anthropic"));
108 112 /** Stable identity of a projected catalog, used to skip redundant provider

extensions/klaus/src/protocol.ts

Modified
13 13 import { dbg } from "./debug.js";
15 15 export const KLAUS_API = "klaus-agent-sdk";
16 -export const SDK_VERSION = "0.3.261";
17 -export const CLAUDE_VERSION = "2.1.261";
16 +export const SDK_VERSION = "0.3.281";
17 +export const CLAUDE_VERSION = "2.1.281";
19 19 export const MODEL_SELECTORS = {
20 20 "claude-fable-5-1": "fable",
23 23 "claude-sonnet-5": "sonnet",
24 24 } as const;
26 -export type KlausModelId = keyof typeof MODEL_SELECTORS;
26 +/** Any Claude model id the Pi catalog can carry: non-dated, non-alias. */
27 +export type KlausModelId = string;
29 +/** Wire selector for the Claude Agent SDK: the short alias when klaus knows
30 + * one, otherwise the full catalog id (the SDK accepts both). */
31 +export function klausSelector(modelId: KlausModelId): string {
32 + return Object.hasOwn(MODEL_SELECTORS, modelId)
33 + ? MODEL_SELECTORS[modelId as keyof typeof MODEL_SELECTORS]
34 + : modelId;
28 37 export type KlausContext = Omit<Context, "messages"> & {
29 38 messages: Exclude<Context["messages"][number], { role: "system" }>[];
112 121 export function isKlausModelId(value: string): value is KlausModelId {
113 - const valid = Object.hasOwn(MODEL_SELECTORS, value);
122 + const valid =
123 + /^claude-[a-z0-9]+(?:[.-][a-z0-9]+)*$/.test(value) &&
124 + !/-\d{8}$/.test(value) &&
125 + !value.endsWith("-latest");
114 126 dbg?.("protocol.isKlausModelId", { value, valid });
115 127 return valid;

extensions/klaus/src/runtime/standard.ts

Modified
6 6 import { dirname, join } from "node:path";
7 7 import { promisify } from "node:util";
8 8 import { dbg } from "../debug.js";
9 -import { SDK_VERSION } from "../protocol.js";
9 +import { CLAUDE_VERSION, SDK_VERSION } from "../protocol.js";
11 11 const execFileAsync = promisify(execFile);
12 12 const require = createRequire(import.meta.url);
14 -const CHECKSUMS: Record<string, string> = {
15 - "darwin-arm64":
16 - "5efecaff231b798be3c66def9be54183623b328b80eaef17f93c43987024e82a",
17 - "darwin-x64":
18 - "2cbc002b32778bd70aa2e668ada920c54d9aacd91b71dbd5619c01ca148ae533",
19 - "linux-arm64":
20 - "7bbed5a9b0fc2e4ec67bad3490d06ca91b86d6b037d47520b7898951757d1b8a",
21 - "linux-arm64-musl":
22 - "53b58ffbeb3f9325f0ca5eb54fd03cd0346bd197328fa1e68a700ac8e097e6c1",
23 - "linux-x64":
24 - "4ae40dd1784e85753e742e09f267d29ecbb82890361ad3817d27560866d364a6",
25 - "linux-x64-musl":
26 - "df6502c5978420d71fb32fe41b4ca956a7eb3f6245fc11a03ca2cde7f03b8f93",
27 - "win32-arm64":
28 - "df26e336df846f4b68edda1021af5aecc1f8172d9f045ee33a480916385b35f9",
29 - "win32-x64":
30 - "f2f5d1a155167488aeb32cd263e15436253c7b1681ae147c9e73e4d6bbc3c852",
31 -};
14 +/** Official per-platform binary checksums shipped inside the pinned SDK. */
15 +interface SdkManifest {
16 + version?: unknown;
17 + platforms?: Record<
18 + string,
19 + { binary?: unknown; checksum?: unknown } | undefined
20 + >;
23 +async function sdkManifest(): Promise<SdkManifest> {
24 + const sdkEntry = require.resolve("@anthropic-ai/claude-agent-sdk");
25 + return JSON.parse(
26 + await readFile(join(dirname(sdkEntry), "manifest.json"), "utf8"),
27 + ) as SdkManifest;
33 30 let resolution: Promise<string> | undefined;
83 80 `Klaus runtime ${packageName} has version ${String(metadata.version)}, expected ${SDK_VERSION}.`,
83 + const manifest = await sdkManifest();
84 + if (manifest.version !== CLAUDE_VERSION) {
85 + throw new Error(
86 + `Klaus SDK manifest declares ${String(manifest.version)}, expected ${CLAUDE_VERSION}.`,
87 + );
88 + }
89 + const expected = manifest.platforms?.[key]?.checksum;
90 + if (typeof expected !== "string") {
91 + throw new Error(`Klaus SDK manifest has no checksum for ${key}.`);
92 + }
86 93 const executable = join(
87 94 dirname(packageJson),
88 95 process.platform === "win32" ? "claude.exe" : "claude",
90 97 if (!(await stat(executable)).isFile()) {
91 98 throw new Error(`Klaus runtime executable is missing from ${packageName}.`);
93 - if ((await sha256(executable)) !== CHECKSUMS[key]) {
100 + if ((await sha256(executable)) !== expected) {
94 101 throw new Error(`Klaus runtime checksum mismatch for ${key}.`);
96 103 await execFileAsync(executable, ["--version"], {

package-lock.json

Modified
196 196 "name": "@bugabinga/pi-ext-klaus",
197 197 "license": "MIT",
198 198 "dependencies": {
199 - "@anthropic-ai/claude-agent-sdk": "0.3.261",
199 + "@anthropic-ai/claude-agent-sdk": "0.3.281",
200 200 "@modelcontextprotocol/sdk": "1.29.0"
202 202 "devDependencies": {
505 505 "node_modules/@anthropic-ai/claude-agent-sdk": {
506 - "version": "0.3.261",
507 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.261.tgz",
508 - "integrity": "sha512-CDG9z14JVKYRHjpp/g6zJ2k8xM5uSoRgjGdpTiK9woLDZxXtXcxV93ipCh55jQ3REj7M7H3GieMsETGZXB/ydw==",
506 + "version": "0.3.281",
507 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.281.tgz",
508 + "integrity": "sha512-JTbluTKmY3wKQPIXzeCTvz/K0FElTuQU5Y7ueLgUOBrHcks8cHlGugEgIRezffhc13WzBAqYtaY15tJ+Bfunzg==",
509 509 "license": "SEE LICENSE IN README.md",
510 510 "engines": {
511 511 "node": ">=18.0.0"
513 513 "optionalDependencies": {
514 - "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.261",
515 - "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.261",
516 - "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.261",
517 - "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.261",
518 - "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.261",
519 - "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.261",
520 - "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.261",
521 - "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.261"
514 + "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.281",
515 + "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.281",
516 + "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.281",
517 + "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.281",
518 + "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.281",
519 + "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.281",
520 + "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.281",
521 + "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.281"
523 523 "peerDependencies": {
524 524 "@anthropic-ai/sdk": ">=0.93.0",
529 529 "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
530 - "version": "0.3.261",
531 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.261.tgz",
532 - "integrity": "sha512-oI8SPd6g+xUF6EnEqIInxz5CjSSJXoDlaqefjbSJvTFCawGGBhxlQs0g9jzsYou6Rdu+i2tJBToJZLsKSnN/0Q==",
530 + "version": "0.3.281",
531 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.281.tgz",
532 + "integrity": "sha512-wydRJU0CX7c/w1qEsgqGUJFzmlOMTvUpBkWHsj1pJFbrRFQUnIW0EWor+pDd4WiKWWihVqUhYEA+3LTmUiLZIQ==",
533 533 "cpu": [
534 534 "arm64"
542 542 "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
543 - "version": "0.3.261",
544 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.261.tgz",
545 - "integrity": "sha512-PODd45XbrKxwngebFmc60Xd68QDb7xCo+0toYTJKfFumU24b/JT2WpO5sTSfc5+fahd/P11q0uF5v9YeSjWmjg==",
543 + "version": "0.3.281",
544 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.281.tgz",
545 + "integrity": "sha512-yvtdCwCimbI7dcFcQ204gEX4quzZBcyW2orCh8ESlkZY/Mn480qKCjyKWGuR17vGKGePynoiS1W895rxWNfHZQ==",
546 546 "cpu": [
555 555 "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
556 - "version": "0.3.261",
557 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.261.tgz",
558 - "integrity": "sha512-C+y3N3MD2ExrwrbCYcbLdM39VkbJkQKUv23oubvoZr0CtHiH2LESyUUC3JsUbHJ1TRKO8fbzLqvPkjZ9UsBIcw==",
556 + "version": "0.3.281",
557 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.281.tgz",
558 + "integrity": "sha512-PrxuObUGayjtUS6yq5Sz+dMNXn8KaK1BeIXG/PRE+85Wt9DzchoIduycIoFaXWrG0xbbzYz0AKwttNqSAeDdSA==",
559 559 "cpu": [
560 560 "arm64"
571 571 "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
572 - "version": "0.3.261",
573 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.261.tgz",
574 - "integrity": "sha512-BAUG2EremVyy8bA14jKF35VRJjGE2TqREpFerA0CRBWg9/sUJZVWdmIRXUiXCKh0MvenPRUJbEgwcHFllQETOw==",
572 + "version": "0.3.281",
573 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.281.tgz",
574 + "integrity": "sha512-B5l5tnO0ymQjGSq+uZBnwLb8IdCj+gr/niKoxiUDqzfh7OPwuGyceq/g7bpzZ6VC/U7+Zsjv+Gce/VzcKVT1pA==",
575 575 "cpu": [
576 576 "arm64"
587 587 "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
588 - "version": "0.3.261",
589 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.261.tgz",
590 - "integrity": "sha512-MdojjfN0HJHT0JMiZJ6rTj3/ODNi5OdY0py1JZmVVEVTYOdvgH6OG3oy9/BmmJTx0mp/BBCHbOGNpibtnqE+1g==",
588 + "version": "0.3.281",
589 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.281.tgz",
590 + "integrity": "sha512-3kxVGQrn9wNeFZV0MJEXI0XOj7U8e/1wL41W2MInYVIVWJnTanuX+pPqQH2DzyVNRcw6CMP5k3eockewGptWig==",
591 591 "cpu": [
603 603 "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
604 - "version": "0.3.261",
605 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.261.tgz",
606 - "integrity": "sha512-H7sCtM7X9OyQ+ZCEhh6TY/Z1i+5WIn8YyHRVJ2LrZRFOaszPeDbl1SzSxxuOd5ibwJZA9gx+2uQ78dx+bDkQUA==",
604 + "version": "0.3.281",
605 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.281.tgz",
606 + "integrity": "sha512-H+TWmbIhlEvZcOGJ6S9BQBBQuizaXfDhdSjgWbP6JGTrfW+U8dm49/0I9pdjHB2VT+1zgFzIt1YkkfkvSGtOVQ==",
607 607 "cpu": [
619 619 "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
620 - "version": "0.3.261",
621 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.261.tgz",
622 - "integrity": "sha512-zvZfec4+wDooqF/ZOI3lthgq9WfZLIrSserS6tULpBqCLKNRbTIpARDcljY7SrRuMGb3Ex+LFn/yXazgajpwzg==",
620 + "version": "0.3.281",
621 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.281.tgz",
622 + "integrity": "sha512-ySM49+TS94VrMkIzk65RHcNKfvXKhx6YuR2mplw8BbaYpcnKL4RTAr5WVbH1JhMLjPEBaDGSP1uCLZy/YkA9gg==",
623 623 "cpu": [
624 624 "arm64"
632 632 "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
633 - "version": "0.3.261",
634 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.261.tgz",
635 - "integrity": "sha512-tepSwNpNsl4tyDdJ1+YcRXeY7VZNirPqpCtKDuh2YVwDkMfzQevCqojURtACAdLwI8BUXeOGaecwRbh3zoSUtA==",
633 + "version": "0.3.281",
634 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.281.tgz",
635 + "integrity": "sha512-hbnymWj9O31K0VMd/VOpMTZ0CNT3BkwgGGe84zHdAP6MDxmoZvqyS94UEaLQit3xmozCxfkfGns7/WgWH1Q6Sg==",
636 636 "cpu": [