Domain primitives: versioned WorkDefinition/DesignPacket with risk, questions, and approval gates; lifecycle transition table with invalidation rules; Resolver (Run/Attempt/outcomes/CodingKitV0); provider-neutral HarnessRuntime with normalized events and a deterministic FakeHarnessLive that always reaches a terminal classification and never claims implementation. Convex durable model: workDefinitions, workQuestions, workApprovals, designPackets, workSlices, workRuns, workAttempts, workAttemptEvents tables; broadened works.status union; generalized workEvents with optional signalId, referenceId, and payloadJson. Authenticated commands for definition request/ save/revise/approve, question answer/withdraw, design save/revise/approve, and simulated execution start/cancel/retry with leased attempts, checkpointed events, and expired-lease reconciliation. Private work-planner FLUE agent with proposal-only tools (definition, design, question). Convex validates and stores every proposal; FLUE never approves or advances Work. Expanded Work card with Outcome, Design, and Build sections wired to the new mutations. Slice 1 conversation and provenance preserved.
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"name": "@code/primitives",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./agent-os": "./src/agent-os.ts",
|
|
"./git": "./src/git.ts",
|
|
"./git-local-runtime": "./src/git-local-runtime.ts",
|
|
"./git-remote-runtime": "./src/git-remote-runtime.ts",
|
|
"./project": "./src/project.ts",
|
|
"./project-issue": "./src/project-issue.ts",
|
|
"./project-work": "./src/project-work.ts",
|
|
"./project-workspace": "./src/project-workspace.ts",
|
|
"./signal": "./src/signal.ts",
|
|
"./smoke": "./src/smoke.ts",
|
|
"./work": "./src/work.ts",
|
|
"./work-definition": "./src/work-definition.ts",
|
|
"./work-design": "./src/work-design.ts",
|
|
"./work-lifecycle": "./src/work-lifecycle.ts",
|
|
"./resolver": "./src/resolver.ts",
|
|
"./harness-runtime": "./src/harness-runtime.ts"
|
|
},
|
|
"scripts": {
|
|
"check-types": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@agentos-software/codex-cli": "0.3.4",
|
|
"@agentos-software/git": "0.3.3",
|
|
"@rivet-dev/agentos": "catalog:",
|
|
"effect": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@code/config": "workspace:*",
|
|
"@types/node": "^22.13.14",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
}
|
|
}
|