Skip to content
Merged
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
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"@opencode-ai/plugin": "^1.0.85",
"zod": "^3.22.0"
"zod": "^4.3.6"
},
"devDependencies": {
"@types/bun": "latest",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function loadConfig(): Promise<MCConfig> {
return result;
} catch (error) {
if (error instanceof z.ZodError) {
throw new Error(`Invalid config in ${filePath}: ${error.errors.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
throw new Error(`Invalid config in ${filePath}: ${error.issues.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
}
throw new Error(`Failed to load config from ${filePath}: ${error}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/job-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export async function loadJobState(): Promise<JobState> {
return JobStateSchema.parse(parsed);
} catch (error) {
if (error instanceof z.ZodError) {
throw new Error(`Invalid job state in ${filePath}: ${error.errors.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
throw new Error(`Invalid job state in ${filePath}: ${error.issues.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
}
throw new Error(`Failed to load job state from ${filePath}: ${error}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/plan-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function loadPlan(): Promise<PlanSpec | null> {
return PlanSpecSchema.parse(parsed);
} catch (error) {
if (error instanceof z.ZodError) {
throw new Error(`Invalid plan state in ${filePath}: ${error.errors.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
throw new Error(`Invalid plan state in ${filePath}: ${error.issues.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
}
throw new Error(`Failed to load plan state from ${filePath}: ${error}`);
}
Expand Down