mirror of
https://github.com/wassname/pi-goals.git
synced 2026-06-27 16:31:03 +08:00
838c42d7bd
Replace done_when with a discriminator + subtle-failure-mode pair as the heart of each goal. The discriminator is the POSITIVE success observation that no failure mode could fake, not just failure-avoidance: a run can dodge every trap and still produce nothing. Carried through planDrafting, the sign-off judge, README, and the parser doc. Format migration: flat numbered markdown goals (`1. [/] goal: ...`), keyword-anchored parsing (indentation cosmetic), goals matched by text, subtask states [ ]/[/]/[x]/[-] plus ~~strike~~. Evidence empty at planning, filled at sign-off, multi-line supported. CompleteGoal now returns the judge's reasoning under a `--- sign-off judge ---` block (was just "Signed off"), so the verdict is visible. Plan mode is read-only: edit/write (except goals.md) and mutating bash are blocked by a tool hook. 17 parser tests, typecheck + biome clean. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
48 lines
1.0 KiB
JSON
48 lines
1.0 KiB
JSON
{
|
|
"name": "@wassname2/pi-goals",
|
|
"version": "0.0.1",
|
|
"description": "One .pi/goals.md: set goals in plan mode, work them, sign off only when a read-only check passes. Successor to pi-lgtm.",
|
|
"author": "wassname",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/wassname/pi-goals.git"
|
|
},
|
|
"keywords": [
|
|
"pi-package",
|
|
"pi",
|
|
"pi-extension",
|
|
"plan",
|
|
"goal",
|
|
"proof",
|
|
"uat",
|
|
"evidence",
|
|
"judge"
|
|
],
|
|
"dependencies": {
|
|
"@earendil-works/pi-coding-agent": "^0.79.0",
|
|
"@earendil-works/pi-tui": "*",
|
|
"@sinclair/typebox": "latest"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "biome check src/ test/",
|
|
"lint:fix": "biome check --fix src/ test/"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"typescript": "^5.0.0",
|
|
"@biomejs/biome": "^2.4.8",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"pi": {
|
|
"extensions": [
|
|
"./src/index.ts"
|
|
]
|
|
}
|
|
}
|