Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"tailwind-merge": "^3.3.1",
"tailwindcss": "^4.1.12",
"tw-animate-css": "^1.3.8",
"zod": "^3.24.1",
"zod": "^4.3.6",
"zustand": "^5.0.7"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/agents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
"uuid": "^13.0.0"
},
"devDependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.22",
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
"@vibest/typescript": "workspace:*",
"ai": "^5.0.63",
"ai-sdk-agents": "workspace:*",
"tsdown": "^0.13.5",
"zod": "^3.24.1"
"zod": "^4.3.6"
},
"peerDependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.22",
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
"ai": "^5.0.63",
"ai-sdk-agents": "workspace:*",
"zod": "^3.24.1"
"zod": "^4.3.6"
}
}
8 changes: 4 additions & 4 deletions packages/ai-sdk-agents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
}
},
"devDependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.22",
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
"@vibest/typescript": "workspace:*",
"ai": "^5.0.63",
"zod": "^3.24.1",
"zod": "^4.3.6",
"tsdown": "^0.13.5"
},
"peerDependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.22",
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
"ai": "^5.0.63",
"zod": "^3.24.1"
"zod": "^4.3.6"
}
}
8 changes: 7 additions & 1 deletion packages/ai-sdk-agents/src/claude-code/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const McpServerStatusSchema = z.object({
version: z.string(),
})
.optional(),
error: z.string().optional(),
});

/**
Expand All @@ -40,6 +41,8 @@ export const PermissionModeSchema = z.enum([
"acceptEdits",
"bypassPermissions",
"plan",
"delegate",
"dontAsk",
]);

/**
Expand All @@ -55,6 +58,7 @@ const PermissionUpdateDestinationSchema = z.enum([
"projectSettings",
"localSettings",
"session",
"cliArg",
]);

/**
Expand Down Expand Up @@ -111,12 +115,14 @@ const PermissionUpdateSchema = z.discriminatedUnion("type", [
export const PermissionResultSchema = z.discriminatedUnion("behavior", [
z.object({
behavior: z.literal("allow"),
updatedInput: z.record(z.string(), z.unknown()),
updatedInput: z.record(z.string(), z.unknown()).optional(),
updatedPermissions: z.array(PermissionUpdateSchema).optional(),
toolUseID: z.string().optional(),
}),
z.object({
behavior: z.literal("deny"),
message: z.string(),
interrupt: z.boolean().optional(),
toolUseID: z.string().optional(),
}),
]);
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ describe("Schema Type Compatibility", () => {
expectTypeOf<AllowResult["behavior"]>().toEqualTypeOf<"allow">();
});

test("updatedInput is Record<string, unknown>", () => {
test("updatedInput is optional Record<string, unknown>", () => {
expectTypeOf<AllowResult["updatedInput"]>().toEqualTypeOf<
Record<string, unknown>
Record<string, unknown> | undefined
>();
});

Expand Down Expand Up @@ -118,7 +118,7 @@ describe("Schema Type Compatibility", () => {
describe("Enum Values", () => {
test("PermissionMode has correct values", () => {
expectTypeOf<PermissionMode>().toEqualTypeOf<
"default" | "acceptEdits" | "bypassPermissions" | "plan"
"default" | "acceptEdits" | "bypassPermissions" | "plan" | "delegate" | "dontAsk"
>();
});

Expand Down
1 change: 1 addition & 0 deletions packages/ai-sdk-agents/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export default defineConfig({
dts: true,
sourcemap: true,
publint: true,
unbundle: true,
});
2 changes: 1 addition & 1 deletion packages/code-inspector-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"uuid": "^13.0.0",
"vitest": "^3.2.4",
"xstate": "^5.20.2",
"zod": "^3.24.1"
"zod": "^4.3.6"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/server-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@
"superjson": "^2.2.2",
"tsdown": "^0.13.5",
"ws": "^8.18.3",
"zod": "^3.24.1"
"zod": "^4.3.6"
},
"peerDependencies": {
"@orpc/server": "^1.8.6",
"@trpc/server": "^11.5.0",
"ai": "^5.0.30",
"superjson": "^2.2.2",
"ws": "^8.18.3",
"zod": "^3.25.67"
"zod": "^4.3.6"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.22",
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
"@orpc/contract": "^1.9.1",
"@orpc/shared": "^1.9.4",
"@vibest/agents": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions packages/server-rpc/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export default defineConfig({
entry: ["./src/**/*.ts"],
format: "esm",
dts: true,
unbundle: true,
});
2 changes: 1 addition & 1 deletion packages/vibest-devtools-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"tailwind-merge": "^3.3.1",
"use-stick-to-bottom": "^1.1.1",
"xstate": "^5.20.2",
"zod": "^3.24.1"
"zod": "^4.3.6"
},
"devDependencies": {
"@orpc/server": "^1.8.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/vibest-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.12",
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
"@babel/core": "^7.28.3",
"@babel/generator": "^7.28.3",
"@babel/parser": "^7.28.3",
Expand All @@ -60,7 +60,7 @@
"sirv": "^3.0.2",
"tiny-invariant": "^1.3.3",
"ws": "^8.18.3",
"zod": "^3.24.1"
"zod": "^4.3.6"
},
"devDependencies": {
"@types/babel__core": "^7.20.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/vibest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@ai-sdk/react": "^2.0.44",
"@anthropic-ai/claude-agent-sdk": "^0.1.22",
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
"@hono/node-server": "^1.19.5",
"@orpc/client": "^1.8.6",
"@orpc/openapi": "^1.9.3",
Expand Down Expand Up @@ -63,7 +63,7 @@
"uuid": "^13.0.0",
"vibest-devtools": "workspace:*",
"ws": "^8.18.3",
"zod": "^3.25.61"
"zod": "^4.3.6"
},
"devDependencies": {
"@orpc/contract": "^1.9.1",
Expand Down
Loading