wip: checkpoint interrupted task3 config changes

This commit is contained in:
2026-03-28 17:03:30 +08:00
parent b6fb48e5b3
commit 673b3798ca
3 changed files with 24 additions and 0 deletions
+4
View File
@@ -6,6 +6,10 @@
"scripts": { "scripts": {
"test": "vitest run --" "test": "vitest run --"
}, },
"dependencies": {
"@aiquant/shared": "workspace:*",
"zod": "^3.24.1"
},
"devDependencies": { "devDependencies": {
"typescript": "^5.9.2", "typescript": "^5.9.2",
"vitest": "^2.1.9" "vitest": "^2.1.9"
+17
View File
@@ -0,0 +1,17 @@
import { z } from "zod";
const jsonStringSchema = z.string().min(1);
export const agentBindingSchema = z.object({
signal: z.string().min(1),
risk: z.string().min(1),
evaluator: z.string().min(1),
optimizer: z.string().min(1)
});
export const configEnvSchema = z.object({
MODEL_PROFILES_JSON: jsonStringSchema,
AGENT_MODEL_BINDINGS_JSON: jsonStringSchema
});
export type AgentBindings = z.infer<typeof agentBindingSchema>;
+3
View File
@@ -3,6 +3,9 @@
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"type": "module", "type": "module",
"exports": {
".": "./src/index.ts"
},
"scripts": { "scripts": {
"test": "vitest run --" "test": "vitest run --"
}, },