Skip to content

Commit 2eafbb8

Browse files
committed
chore(deps): update dependencies and fix Zod v4 compatibility
- Update all npm packages to latest versions - Fix z.record() calls to use two arguments (Zod v4 API change) - Apply Biome lint/format fixes
1 parent a77a1ef commit 2eafbb8

9 files changed

Lines changed: 44 additions & 50 deletions

File tree

biome.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
3-
"formatter": {
4-
"enabled": true,
5-
"indentStyle": "tab",
6-
"indentWidth": 2
7-
},
8-
"linter": {
9-
"enabled": true,
10-
"rules": {
11-
"recommended": true
12-
}
13-
},
14-
"organizeImports": {
15-
"enabled": true
16-
}
2+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
3+
"formatter": {
4+
"enabled": true,
5+
"indentStyle": "tab",
6+
"indentWidth": 2
7+
},
8+
"linter": {
9+
"enabled": true,
10+
"rules": {
11+
"recommended": true
12+
}
13+
},
14+
"assist": { "actions": { "source": { "organizeImports": "on" } } }
1715
}

bun.lock

Lines changed: 18 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"typecheck": "bunx tsc --noEmit"
1919
},
2020
"dependencies": {
21-
"commander": "^14.0.0",
22-
"zod": "^3.25.0",
23-
"@clack/prompts": "^0.9.0",
24-
"picocolors": "^1.1.0"
21+
"commander": "^14.0.2",
22+
"zod": "^4.3.5",
23+
"@clack/prompts": "^0.11.0",
24+
"picocolors": "^1.1.1"
2525
},
2626
"devDependencies": {
27-
"@biomejs/biome": "^1.9.0",
27+
"@biomejs/biome": "^2.3.11",
2828
"@types/bun": "latest",
2929
"bun-osv-scanner": "^2.0.0",
30-
"typescript": "^5.7.0"
30+
"typescript": "^5.9.3"
3131
},
3232
"engines": {
3333
"bun": ">=1.3.0"

src/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
* @module commands
55
*/
66

7+
export { cancelCommand } from "./cancel";
78
export { initCommand } from "./init";
89
export { loopCommand } from "./loop";
9-
export { cancelCommand } from "./cancel";

src/commands/init.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ import { mkdir } from "node:fs/promises";
77
import { join } from "node:path";
88
import { log } from "@clack/prompts";
99
import pc from "picocolors";
10-
11-
import { KIRO_AGENTS_DIR, KIRO_STEERING_DIR } from "../utils/paths";
12-
1310
import steeringContent from "../data/ralph-context.md" with { type: "text" };
1411
// Import bundled data files
1512
import agentConfig from "../data/ralph-wiggum.json";
13+
import { KIRO_AGENTS_DIR, KIRO_STEERING_DIR } from "../utils/paths";
1614

1715
/**
1816
* Options for the init command.

src/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from "./session-reader";
21
export * from "./kiro-client";
32
export * from "./loop-runner";
3+
export * from "./session-reader";

src/core/loop-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import pc from "picocolors";
1010

1111
import type { LoopConfig } from "../schemas/config";
1212
import {
13-
type RalphFeedback,
1413
checkCompletionPromise,
1514
extractRalphFeedback,
15+
type RalphFeedback,
1616
} from "../schemas/session";
1717
import { type LoopState, stateToJson } from "../schemas/state";
1818
import { STATE_FILE } from "../utils/paths";

src/schemas/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import { z } from "zod";
1212
export const HistoryTurnSchema = z
1313
.object({
1414
/** User message in the turn (optional) */
15-
user: z.record(z.unknown()).nullable().optional(),
15+
user: z.record(z.string(), z.unknown()).nullable().optional(),
1616
/** Assistant response in the turn (optional) */
17-
assistant: z.record(z.unknown()).nullable().optional(),
17+
assistant: z.record(z.string(), z.unknown()).nullable().optional(),
1818
})
1919
.passthrough();
2020

tests/schemas.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { describe, expect, test } from "bun:test";
22
import { LoopConfigSchema } from "../src/schemas/config.ts";
33
import {
4-
KiroSessionSchema,
54
checkCompletionPromise,
65
extractRalphFeedback,
76
extractTagContent,
87
getAssistantText,
98
getLastAssistantText,
9+
KiroSessionSchema,
1010
parseBulletList,
1111
} from "../src/schemas/session.ts";
1212
import {

0 commit comments

Comments
 (0)