@kynetic-ai/spec 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +250 -17
- package/dist/acp/client.d.ts +18 -4
- package/dist/acp/client.d.ts.map +1 -1
- package/dist/acp/client.js +44 -26
- package/dist/acp/client.js.map +1 -1
- package/dist/acp/framing.d.ts +2 -2
- package/dist/acp/framing.d.ts.map +1 -1
- package/dist/acp/framing.js +37 -29
- package/dist/acp/framing.js.map +1 -1
- package/dist/acp/index.d.ts +6 -7
- package/dist/acp/index.d.ts.map +1 -1
- package/dist/acp/index.js +3 -3
- package/dist/acp/index.js.map +1 -1
- package/dist/acp/types.d.ts +5 -5
- package/dist/acp/types.d.ts.map +1 -1
- package/dist/acp/types.js +18 -18
- package/dist/acp/types.js.map +1 -1
- package/dist/agents/adapters.d.ts.map +1 -1
- package/dist/agents/adapters.js +24 -13
- package/dist/agents/adapters.js.map +1 -1
- package/dist/agents/index.d.ts +2 -2
- package/dist/agents/index.js +2 -2
- package/dist/agents/spawner.d.ts +4 -4
- package/dist/agents/spawner.d.ts.map +1 -1
- package/dist/agents/spawner.js +6 -6
- package/dist/agents/spawner.js.map +1 -1
- package/dist/cli/batch-context.d.ts +43 -0
- package/dist/cli/batch-context.d.ts.map +1 -0
- package/dist/cli/batch-context.js +93 -0
- package/dist/cli/batch-context.js.map +1 -0
- package/dist/cli/batch-exec.d.ts +116 -0
- package/dist/cli/batch-exec.d.ts.map +1 -0
- package/dist/cli/batch-exec.js +694 -0
- package/dist/cli/batch-exec.js.map +1 -0
- package/dist/cli/batch.d.ts +4 -2
- package/dist/cli/batch.d.ts.map +1 -1
- package/dist/cli/batch.js +15 -14
- package/dist/cli/batch.js.map +1 -1
- package/dist/cli/command-annotations.d.ts +23 -0
- package/dist/cli/command-annotations.d.ts.map +1 -0
- package/dist/cli/command-annotations.js +27 -0
- package/dist/cli/command-annotations.js.map +1 -0
- package/dist/cli/commands/agents.d.ts +46 -0
- package/dist/cli/commands/agents.d.ts.map +1 -0
- package/dist/cli/commands/agents.js +377 -0
- package/dist/cli/commands/agents.js.map +1 -0
- package/dist/cli/commands/batch.d.ts +20 -0
- package/dist/cli/commands/batch.d.ts.map +1 -0
- package/dist/cli/commands/batch.js +214 -0
- package/dist/cli/commands/batch.js.map +1 -0
- package/dist/cli/commands/clone-for-testing.d.ts +1 -1
- package/dist/cli/commands/clone-for-testing.d.ts.map +1 -1
- package/dist/cli/commands/clone-for-testing.js +37 -47
- package/dist/cli/commands/clone-for-testing.js.map +1 -1
- package/dist/cli/commands/derive.d.ts +1 -1
- package/dist/cli/commands/derive.d.ts.map +1 -1
- package/dist/cli/commands/derive.js +140 -88
- package/dist/cli/commands/derive.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +11 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +152 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/export.d.ts +12 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +134 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/help.d.ts +1 -1
- package/dist/cli/commands/help.d.ts.map +1 -1
- package/dist/cli/commands/help.js +163 -37
- package/dist/cli/commands/help.js.map +1 -1
- package/dist/cli/commands/inbox.d.ts +1 -1
- package/dist/cli/commands/inbox.d.ts.map +1 -1
- package/dist/cli/commands/inbox.js +178 -56
- package/dist/cli/commands/inbox.js.map +1 -1
- package/dist/cli/commands/index.d.ts +31 -19
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +31 -19
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts +5 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +108 -57
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/item.d.ts +1 -1
- package/dist/cli/commands/item.d.ts.map +1 -1
- package/dist/cli/commands/item.js +557 -274
- package/dist/cli/commands/item.js.map +1 -1
- package/dist/cli/commands/link.d.ts +1 -1
- package/dist/cli/commands/link.d.ts.map +1 -1
- package/dist/cli/commands/link.js +55 -46
- package/dist/cli/commands/link.js.map +1 -1
- package/dist/cli/commands/log.d.ts +1 -1
- package/dist/cli/commands/log.d.ts.map +1 -1
- package/dist/cli/commands/log.js +57 -51
- package/dist/cli/commands/log.js.map +1 -1
- package/dist/cli/commands/merge-driver.d.ts +19 -0
- package/dist/cli/commands/merge-driver.d.ts.map +1 -0
- package/dist/cli/commands/merge-driver.js +398 -0
- package/dist/cli/commands/merge-driver.js.map +1 -0
- package/dist/cli/commands/meta.d.ts +1 -1
- package/dist/cli/commands/meta.d.ts.map +1 -1
- package/dist/cli/commands/meta.js +533 -399
- package/dist/cli/commands/meta.js.map +1 -1
- package/dist/cli/commands/module.d.ts +1 -1
- package/dist/cli/commands/module.d.ts.map +1 -1
- package/dist/cli/commands/module.js +30 -25
- package/dist/cli/commands/module.js.map +1 -1
- package/dist/cli/commands/plan-import.d.ts +11 -0
- package/dist/cli/commands/plan-import.d.ts.map +1 -0
- package/dist/cli/commands/plan-import.js +516 -0
- package/dist/cli/commands/plan-import.js.map +1 -0
- package/dist/cli/commands/plan.d.ts +10 -0
- package/dist/cli/commands/plan.d.ts.map +1 -0
- package/dist/cli/commands/plan.js +421 -0
- package/dist/cli/commands/plan.js.map +1 -0
- package/dist/cli/commands/ralph.d.ts +1 -1
- package/dist/cli/commands/ralph.d.ts.map +1 -1
- package/dist/cli/commands/ralph.js +1097 -169
- package/dist/cli/commands/ralph.js.map +1 -1
- package/dist/cli/commands/refs.d.ts +13 -0
- package/dist/cli/commands/refs.d.ts.map +1 -0
- package/dist/cli/commands/refs.js +283 -0
- package/dist/cli/commands/refs.js.map +1 -0
- package/dist/cli/commands/search.d.ts +1 -1
- package/dist/cli/commands/search.d.ts.map +1 -1
- package/dist/cli/commands/search.js +199 -37
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/serve.d.ts +10 -0
- package/dist/cli/commands/serve.d.ts.map +1 -0
- package/dist/cli/commands/serve.js +491 -0
- package/dist/cli/commands/serve.js.map +1 -0
- package/dist/cli/commands/session.d.ts +25 -6
- package/dist/cli/commands/session.d.ts.map +1 -1
- package/dist/cli/commands/session.js +811 -127
- package/dist/cli/commands/session.js.map +1 -1
- package/dist/cli/commands/setup-seeding.d.ts +81 -0
- package/dist/cli/commands/setup-seeding.d.ts.map +1 -0
- package/dist/cli/commands/setup-seeding.js +292 -0
- package/dist/cli/commands/setup-seeding.js.map +1 -0
- package/dist/cli/commands/setup.d.ts +77 -3
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +1233 -274
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/shadow.d.ts +1 -1
- package/dist/cli/commands/shadow.d.ts.map +1 -1
- package/dist/cli/commands/shadow.js +70 -50
- package/dist/cli/commands/shadow.js.map +1 -1
- package/dist/cli/commands/skill-crud.d.ts +58 -0
- package/dist/cli/commands/skill-crud.d.ts.map +1 -0
- package/dist/cli/commands/skill-crud.js +753 -0
- package/dist/cli/commands/skill-crud.js.map +1 -0
- package/dist/cli/commands/skill-diff.d.ts +27 -0
- package/dist/cli/commands/skill-diff.d.ts.map +1 -0
- package/dist/cli/commands/skill-diff.js +840 -0
- package/dist/cli/commands/skill-diff.js.map +1 -0
- package/dist/cli/commands/skill-install.d.ts +53 -0
- package/dist/cli/commands/skill-install.d.ts.map +1 -0
- package/dist/cli/commands/skill-install.js +452 -0
- package/dist/cli/commands/skill-install.js.map +1 -0
- package/dist/cli/commands/skill.d.ts +20 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +36 -0
- package/dist/cli/commands/skill.js.map +1 -0
- package/dist/cli/commands/task.d.ts +1 -1
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js +569 -346
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/tasks.d.ts +26 -1
- package/dist/cli/commands/tasks.d.ts.map +1 -1
- package/dist/cli/commands/tasks.js +227 -122
- package/dist/cli/commands/tasks.js.map +1 -1
- package/dist/cli/commands/trait.d.ts +1 -1
- package/dist/cli/commands/trait.d.ts.map +1 -1
- package/dist/cli/commands/trait.js +166 -101
- package/dist/cli/commands/trait.js.map +1 -1
- package/dist/cli/commands/triage.d.ts +7 -0
- package/dist/cli/commands/triage.d.ts.map +1 -0
- package/dist/cli/commands/triage.js +569 -0
- package/dist/cli/commands/triage.js.map +1 -0
- package/dist/cli/commands/util.d.ts +7 -0
- package/dist/cli/commands/util.d.ts.map +1 -0
- package/dist/cli/commands/util.js +30 -0
- package/dist/cli/commands/util.js.map +1 -0
- package/dist/cli/commands/validate.d.ts +1 -1
- package/dist/cli/commands/validate.d.ts.map +1 -1
- package/dist/cli/commands/validate.js +264 -83
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/commands/workflow.d.ts +16 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +851 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/exit-codes.d.ts +7 -0
- package/dist/cli/exit-codes.d.ts.map +1 -1
- package/dist/cli/exit-codes.js +26 -18
- package/dist/cli/exit-codes.js.map +1 -1
- package/dist/cli/help/content.d.ts.map +1 -1
- package/dist/cli/help/content.js +86 -71
- package/dist/cli/help/content.js.map +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +131 -19
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/introspection.d.ts +6 -2
- package/dist/cli/introspection.d.ts.map +1 -1
- package/dist/cli/introspection.js +11 -8
- package/dist/cli/introspection.js.map +1 -1
- package/dist/cli/output.d.ts +64 -4
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +235 -85
- package/dist/cli/output.js.map +1 -1
- package/dist/cli/parse-utils.d.ts +21 -0
- package/dist/cli/parse-utils.d.ts.map +1 -0
- package/dist/cli/parse-utils.js +32 -0
- package/dist/cli/parse-utils.js.map +1 -0
- package/dist/cli/pid-utils.d.ts +72 -0
- package/dist/cli/pid-utils.d.ts.map +1 -0
- package/dist/cli/pid-utils.js +174 -0
- package/dist/cli/pid-utils.js.map +1 -0
- package/dist/cli/suggest.d.ts.map +1 -1
- package/dist/cli/suggest.js +1 -2
- package/dist/cli/suggest.js.map +1 -1
- package/dist/cli/validators.d.ts +43 -0
- package/dist/cli/validators.d.ts.map +1 -0
- package/dist/cli/validators.js +84 -0
- package/dist/cli/validators.js.map +1 -0
- package/dist/daemon/index.ts +52 -0
- package/dist/daemon/middleware/project-context.ts +126 -0
- package/dist/daemon/pid.ts +179 -0
- package/dist/daemon/project-context.ts +343 -0
- package/dist/daemon/routes/inbox.ts +164 -0
- package/dist/daemon/routes/items.ts +322 -0
- package/dist/daemon/routes/meta.ts +118 -0
- package/dist/daemon/routes/projects.ts +162 -0
- package/dist/daemon/routes/tasks.ts +327 -0
- package/dist/daemon/routes/triage.ts +468 -0
- package/dist/daemon/routes/validation.ts +248 -0
- package/dist/daemon/server.ts +408 -0
- package/dist/daemon/watcher.ts +195 -0
- package/dist/daemon/websocket/handler.ts +138 -0
- package/dist/daemon/websocket/heartbeat.ts +71 -0
- package/dist/daemon/websocket/pubsub.ts +125 -0
- package/dist/daemon/websocket/types.ts +66 -0
- package/dist/export/html.d.ts +19 -0
- package/dist/export/html.d.ts.map +1 -0
- package/dist/export/html.js +239 -0
- package/dist/export/html.js.map +1 -0
- package/dist/export/index.d.ts +10 -0
- package/dist/export/index.d.ts.map +1 -0
- package/dist/export/index.js +10 -0
- package/dist/export/index.js.map +1 -0
- package/dist/export/json.d.ts +24 -0
- package/dist/export/json.d.ts.map +1 -0
- package/dist/export/json.js +198 -0
- package/dist/export/json.js.map +1 -0
- package/dist/export/triage.d.ts +51 -0
- package/dist/export/triage.d.ts.map +1 -0
- package/dist/export/triage.js +83 -0
- package/dist/export/triage.js.map +1 -0
- package/dist/export/types.d.ts +122 -0
- package/dist/export/types.d.ts.map +1 -0
- package/dist/export/types.js +9 -0
- package/dist/export/types.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lib/claude-plugin-registry.d.ts +66 -0
- package/dist/lib/claude-plugin-registry.d.ts.map +1 -0
- package/dist/lib/claude-plugin-registry.js +318 -0
- package/dist/lib/claude-plugin-registry.js.map +1 -0
- package/dist/merge/arrays.d.ts +87 -0
- package/dist/merge/arrays.d.ts.map +1 -0
- package/dist/merge/arrays.js +164 -0
- package/dist/merge/arrays.js.map +1 -0
- package/dist/merge/file-type.d.ts +32 -0
- package/dist/merge/file-type.d.ts.map +1 -0
- package/dist/merge/file-type.js +70 -0
- package/dist/merge/file-type.js.map +1 -0
- package/dist/merge/index.d.ts +14 -0
- package/dist/merge/index.d.ts.map +1 -0
- package/dist/merge/index.js +11 -0
- package/dist/merge/index.js.map +1 -0
- package/dist/merge/objects.d.ts +46 -0
- package/dist/merge/objects.d.ts.map +1 -0
- package/dist/merge/objects.js +193 -0
- package/dist/merge/objects.js.map +1 -0
- package/dist/merge/parse.d.ts +23 -0
- package/dist/merge/parse.d.ts.map +1 -0
- package/dist/merge/parse.js +78 -0
- package/dist/merge/parse.js.map +1 -0
- package/dist/merge/resolve.d.ts +66 -0
- package/dist/merge/resolve.d.ts.map +1 -0
- package/dist/merge/resolve.js +189 -0
- package/dist/merge/resolve.js.map +1 -0
- package/dist/merge/types.d.ts +82 -0
- package/dist/merge/types.d.ts.map +1 -0
- package/dist/merge/types.js +8 -0
- package/dist/merge/types.js.map +1 -0
- package/dist/parser/agent-data-sections.d.ts +53 -0
- package/dist/parser/agent-data-sections.d.ts.map +1 -0
- package/dist/parser/agent-data-sections.js +118 -0
- package/dist/parser/agent-data-sections.js.map +1 -0
- package/dist/parser/alignment.d.ts +4 -4
- package/dist/parser/alignment.d.ts.map +1 -1
- package/dist/parser/alignment.js +27 -22
- package/dist/parser/alignment.js.map +1 -1
- package/dist/parser/assess.d.ts +5 -5
- package/dist/parser/assess.d.ts.map +1 -1
- package/dist/parser/assess.js +36 -32
- package/dist/parser/assess.js.map +1 -1
- package/dist/parser/config.d.ts +351 -0
- package/dist/parser/config.d.ts.map +1 -0
- package/dist/parser/config.js +326 -0
- package/dist/parser/config.js.map +1 -0
- package/dist/parser/convention-validation.d.ts +1 -1
- package/dist/parser/convention-validation.d.ts.map +1 -1
- package/dist/parser/convention-validation.js +21 -16
- package/dist/parser/convention-validation.js.map +1 -1
- package/dist/parser/coverage-cache.d.ts +49 -0
- package/dist/parser/coverage-cache.d.ts.map +1 -0
- package/dist/parser/coverage-cache.js +123 -0
- package/dist/parser/coverage-cache.js.map +1 -0
- package/dist/parser/daemon-status.d.ts +37 -0
- package/dist/parser/daemon-status.d.ts.map +1 -0
- package/dist/parser/daemon-status.js +67 -0
- package/dist/parser/daemon-status.js.map +1 -0
- package/dist/parser/doctor.d.ts +107 -0
- package/dist/parser/doctor.d.ts.map +1 -0
- package/dist/parser/doctor.js +366 -0
- package/dist/parser/doctor.js.map +1 -0
- package/dist/parser/fix.d.ts +1 -1
- package/dist/parser/fix.d.ts.map +1 -1
- package/dist/parser/fix.js +31 -27
- package/dist/parser/fix.js.map +1 -1
- package/dist/parser/index.d.ts +16 -11
- package/dist/parser/index.d.ts.map +1 -1
- package/dist/parser/index.js +16 -11
- package/dist/parser/index.js.map +1 -1
- package/dist/parser/items.d.ts +8 -2
- package/dist/parser/items.d.ts.map +1 -1
- package/dist/parser/items.js +71 -35
- package/dist/parser/items.js.map +1 -1
- package/dist/parser/meta.d.ts +167 -9
- package/dist/parser/meta.d.ts.map +1 -1
- package/dist/parser/meta.js +379 -46
- package/dist/parser/meta.js.map +1 -1
- package/dist/parser/plan-document.d.ts +189 -0
- package/dist/parser/plan-document.d.ts.map +1 -0
- package/dist/parser/plan-document.js +340 -0
- package/dist/parser/plan-document.js.map +1 -0
- package/dist/parser/plans.d.ts +59 -0
- package/dist/parser/plans.d.ts.map +1 -0
- package/dist/parser/plans.js +239 -0
- package/dist/parser/plans.js.map +1 -0
- package/dist/parser/refs.d.ts +22 -9
- package/dist/parser/refs.d.ts.map +1 -1
- package/dist/parser/refs.js +102 -50
- package/dist/parser/refs.js.map +1 -1
- package/dist/parser/setup-status.d.ts +71 -0
- package/dist/parser/setup-status.d.ts.map +1 -0
- package/dist/parser/setup-status.js +269 -0
- package/dist/parser/setup-status.js.map +1 -0
- package/dist/parser/shadow.d.ts +150 -19
- package/dist/parser/shadow.d.ts.map +1 -1
- package/dist/parser/shadow.js +548 -187
- package/dist/parser/shadow.js.map +1 -1
- package/dist/parser/skill-render.d.ts +317 -0
- package/dist/parser/skill-render.d.ts.map +1 -0
- package/dist/parser/skill-render.js +943 -0
- package/dist/parser/skill-render.js.map +1 -0
- package/dist/parser/traits.d.ts +3 -3
- package/dist/parser/traits.d.ts.map +1 -1
- package/dist/parser/traits.js +2 -2
- package/dist/parser/traits.js.map +1 -1
- package/dist/parser/validate-skills.d.ts +32 -0
- package/dist/parser/validate-skills.d.ts.map +1 -0
- package/dist/parser/validate-skills.js +202 -0
- package/dist/parser/validate-skills.js.map +1 -0
- package/dist/parser/validate.d.ts +45 -3
- package/dist/parser/validate.d.ts.map +1 -1
- package/dist/parser/validate.js +622 -105
- package/dist/parser/validate.js.map +1 -1
- package/dist/parser/yaml.d.ts +83 -19
- package/dist/parser/yaml.d.ts.map +1 -1
- package/dist/parser/yaml.js +478 -173
- package/dist/parser/yaml.js.map +1 -1
- package/dist/ralph/cli-renderer.d.ts +8 -1
- package/dist/ralph/cli-renderer.d.ts.map +1 -1
- package/dist/ralph/cli-renderer.js +105 -34
- package/dist/ralph/cli-renderer.js.map +1 -1
- package/dist/ralph/events.d.ts +10 -10
- package/dist/ralph/events.d.ts.map +1 -1
- package/dist/ralph/events.js +277 -98
- package/dist/ralph/events.js.map +1 -1
- package/dist/ralph/index.d.ts +5 -2
- package/dist/ralph/index.d.ts.map +1 -1
- package/dist/ralph/index.js +9 -3
- package/dist/ralph/index.js.map +1 -1
- package/dist/ralph/loop-errors.d.ts +83 -0
- package/dist/ralph/loop-errors.d.ts.map +1 -0
- package/dist/ralph/loop-errors.js +150 -0
- package/dist/ralph/loop-errors.js.map +1 -0
- package/dist/ralph/subagent.d.ts +83 -0
- package/dist/ralph/subagent.d.ts.map +1 -0
- package/dist/ralph/subagent.js +174 -0
- package/dist/ralph/subagent.js.map +1 -0
- package/dist/ralph/wrap-up.d.ts +125 -0
- package/dist/ralph/wrap-up.d.ts.map +1 -0
- package/dist/ralph/wrap-up.js +270 -0
- package/dist/ralph/wrap-up.js.map +1 -0
- package/dist/schema/batch.d.ts +95 -0
- package/dist/schema/batch.d.ts.map +1 -0
- package/dist/schema/batch.js +24 -0
- package/dist/schema/batch.js.map +1 -0
- package/dist/schema/common.d.ts +2 -2
- package/dist/schema/common.d.ts.map +1 -1
- package/dist/schema/common.js +34 -31
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/inbox.d.ts +12 -12
- package/dist/schema/inbox.js +4 -4
- package/dist/schema/inbox.js.map +1 -1
- package/dist/schema/index.d.ts +8 -5
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +8 -5
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/meta.d.ts +1454 -27
- package/dist/schema/meta.d.ts.map +1 -1
- package/dist/schema/meta.js +198 -21
- package/dist/schema/meta.js.map +1 -1
- package/dist/schema/plan.d.ts +285 -0
- package/dist/schema/plan.d.ts.map +1 -0
- package/dist/schema/plan.js +81 -0
- package/dist/schema/plan.js.map +1 -0
- package/dist/schema/spec.d.ts +72 -33
- package/dist/schema/spec.d.ts.map +1 -1
- package/dist/schema/spec.js +22 -9
- package/dist/schema/spec.js.map +1 -1
- package/dist/schema/task.d.ts +172 -161
- package/dist/schema/task.d.ts.map +1 -1
- package/dist/schema/task.js +21 -12
- package/dist/schema/task.js.map +1 -1
- package/dist/schema/triage.d.ts +266 -0
- package/dist/schema/triage.d.ts.map +1 -0
- package/dist/schema/triage.js +134 -0
- package/dist/schema/triage.js.map +1 -0
- package/dist/sessions/index.d.ts +2 -2
- package/dist/sessions/index.d.ts.map +1 -1
- package/dist/sessions/index.js +3 -3
- package/dist/sessions/index.js.map +1 -1
- package/dist/sessions/store.d.ts +233 -1
- package/dist/sessions/store.d.ts.map +1 -1
- package/dist/sessions/store.js +628 -31
- package/dist/sessions/store.js.map +1 -1
- package/dist/sessions/types.d.ts +10 -10
- package/dist/sessions/types.d.ts.map +1 -1
- package/dist/sessions/types.js +10 -9
- package/dist/sessions/types.js.map +1 -1
- package/dist/strings/errors.d.ts +51 -0
- package/dist/strings/errors.d.ts.map +1 -1
- package/dist/strings/errors.js +136 -106
- package/dist/strings/errors.js.map +1 -1
- package/dist/strings/guidance.d.ts.map +1 -1
- package/dist/strings/guidance.js +16 -16
- package/dist/strings/guidance.js.map +1 -1
- package/dist/strings/index.d.ts +4 -4
- package/dist/strings/index.d.ts.map +1 -1
- package/dist/strings/index.js +4 -4
- package/dist/strings/index.js.map +1 -1
- package/dist/strings/labels.d.ts +4 -0
- package/dist/strings/labels.d.ts.map +1 -1
- package/dist/strings/labels.js +45 -41
- package/dist/strings/labels.js.map +1 -1
- package/dist/strings/validation.d.ts.map +1 -1
- package/dist/strings/validation.js +71 -71
- package/dist/strings/validation.js.map +1 -1
- package/dist/utils/commit.d.ts +1 -1
- package/dist/utils/commit.d.ts.map +1 -1
- package/dist/utils/commit.js +28 -26
- package/dist/utils/commit.js.map +1 -1
- package/dist/utils/git.d.ts +1 -1
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js +40 -38
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/grep.js +11 -11
- package/dist/utils/grep.js.map +1 -1
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/time.d.ts.map +1 -1
- package/dist/utils/time.js +10 -10
- package/dist/utils/time.js.map +1 -1
- package/package.json +28 -5
- package/plugin/.claude-plugin/marketplace.json +17 -0
- package/plugin/.claude-plugin/plugin.json +5 -0
- package/plugin/plugins/kspec/skills/help/SKILL.md +42 -0
- package/plugin/plugins/kspec/skills/triage/SKILL.md +206 -0
- package/plugin/plugins/kspec/skills/triage/docs/automation.md +120 -0
- package/plugin/plugins/kspec/skills/triage/docs/inbox.md +144 -0
- package/plugin/plugins/kspec/skills/triage/docs/observations.md +85 -0
- package/templates/agents-sections/01-quick-start.md +22 -0
- package/templates/agents-sections/02-shadow-branch.md +34 -0
- package/templates/agents-sections/03-task-lifecycle.md +48 -0
- package/templates/agents-sections/04-pr-workflow.md +17 -0
- package/templates/agents-sections/05-commit-convention.md +27 -0
- package/templates/agents-sections/06-ralph-loop.md +45 -0
- package/templates/hooks/pre-commit +34 -0
- package/templates/skills/help/SKILL.md +37 -0
- package/templates/skills/manifest.yaml +15 -0
- package/templates/skills/triage/SKILL.md +199 -0
- package/templates/skills/triage/docs/automation.md +120 -0
- package/templates/skills/triage/docs/inbox.md +144 -0
- package/templates/skills/triage/docs/observations.md +85 -0
package/README.md
CHANGED
|
@@ -37,19 +37,26 @@ kspec tasks ready
|
|
|
37
37
|
## Basic Usage
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
+
# Initialize a new project
|
|
41
|
+
kspec init
|
|
42
|
+
|
|
40
43
|
# See what tasks are ready to work on
|
|
41
44
|
kspec tasks ready
|
|
42
45
|
|
|
43
|
-
# Get task details
|
|
44
|
-
kspec task get @task-slug
|
|
45
|
-
|
|
46
46
|
# Task lifecycle
|
|
47
47
|
kspec task start @task-slug
|
|
48
48
|
kspec task note @task-slug "What you're doing..."
|
|
49
|
+
kspec task submit @task-slug # Code done, PR created
|
|
49
50
|
kspec task complete @task-slug --reason "Summary"
|
|
50
51
|
|
|
51
|
-
#
|
|
52
|
-
kspec
|
|
52
|
+
# Capture ideas
|
|
53
|
+
kspec inbox add "idea or random thought"
|
|
54
|
+
|
|
55
|
+
# Validate spec files
|
|
56
|
+
kspec validate
|
|
57
|
+
|
|
58
|
+
# Search across everything
|
|
59
|
+
kspec search "pattern"
|
|
53
60
|
```
|
|
54
61
|
|
|
55
62
|
## Agent Integration
|
|
@@ -111,24 +118,43 @@ export KSPEC_AUTHOR="@agent-name"
|
|
|
111
118
|
|
|
112
119
|
Convention: Use `@` prefix for agent authors (e.g., `@claude`, `@copilot`) to distinguish from human authors.
|
|
113
120
|
|
|
121
|
+
## References
|
|
122
|
+
|
|
123
|
+
All items (tasks, spec items, inbox, plans) can be referenced by:
|
|
124
|
+
- **Full ULID**: `01KEYQSD2QJCNGRKSR38V0E3BM`
|
|
125
|
+
- **Short ULID**: `01KEYQSD` (unique prefix)
|
|
126
|
+
- **Slug**: `@my-task-slug`
|
|
127
|
+
|
|
114
128
|
## Task Management
|
|
115
129
|
|
|
116
130
|
### Task States
|
|
117
131
|
|
|
118
132
|
```
|
|
119
|
-
pending → in_progress → completed
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
133
|
+
pending → in_progress → pending_review → completed
|
|
134
|
+
↓ ↓
|
|
135
|
+
blocked ←──────────┘
|
|
136
|
+
↓
|
|
137
|
+
cancelled
|
|
124
138
|
```
|
|
125
139
|
|
|
140
|
+
**State transitions:**
|
|
141
|
+
- `kspec task start` → `in_progress`
|
|
142
|
+
- `kspec task submit` → `pending_review` (code done, awaiting merge)
|
|
143
|
+
- `kspec task complete` → `completed` (from `pending_review`)
|
|
144
|
+
- `kspec task complete --skip-review --reason "..."` → `completed` (bypass review requirement)
|
|
145
|
+
- `kspec task complete --force` → `completed` (even if blocked)
|
|
146
|
+
- `kspec task block` → `blocked`
|
|
147
|
+
- `kspec task unblock` → `pending`
|
|
148
|
+
- `kspec task cancel` → `cancelled`
|
|
149
|
+
|
|
126
150
|
### Commands
|
|
127
151
|
|
|
128
152
|
```bash
|
|
129
153
|
# List tasks
|
|
130
154
|
kspec tasks list # All tasks
|
|
131
155
|
kspec tasks list --status pending # Filter by status
|
|
156
|
+
kspec tasks list --tag mvp # Filter by tag
|
|
157
|
+
kspec tasks list --count # Count only
|
|
132
158
|
kspec tasks ready # Tasks ready to work on
|
|
133
159
|
kspec tasks next # Highest priority ready task
|
|
134
160
|
kspec tasks blocked # Blocked tasks
|
|
@@ -137,22 +163,228 @@ kspec tasks in-progress # Active tasks
|
|
|
137
163
|
# Task operations
|
|
138
164
|
kspec task get <ref> # View details
|
|
139
165
|
kspec task start <ref> # Begin work
|
|
166
|
+
kspec task submit <ref> # Submit for review
|
|
140
167
|
kspec task complete <ref> # Mark done
|
|
168
|
+
kspec task complete --force <ref> # Force complete from any state
|
|
141
169
|
kspec task block <ref> --reason "..." # Block with reason
|
|
142
170
|
kspec task unblock <ref> # Remove block
|
|
143
171
|
kspec task cancel <ref> # Cancel task
|
|
172
|
+
kspec task reset <ref> # Reset to pending
|
|
173
|
+
kspec task delete <ref> # Delete permanently
|
|
144
174
|
|
|
145
|
-
# Notes
|
|
175
|
+
# Notes and todos
|
|
146
176
|
kspec task note <ref> "message" # Add note
|
|
147
177
|
kspec task notes <ref> # View notes
|
|
178
|
+
kspec task todo add <ref> "text" # Add a todo item
|
|
179
|
+
kspec task todos <ref> # View todos
|
|
180
|
+
|
|
181
|
+
# Create tasks
|
|
182
|
+
kspec task add --title "My task" --priority 2 --slug my-task
|
|
183
|
+
kspec task add --title "Bug fix" --type bug --spec-ref @feature --tag urgent
|
|
184
|
+
|
|
185
|
+
# Update tasks
|
|
186
|
+
kspec task set <ref> --priority 1 --tag critical
|
|
187
|
+
kspec task set <ref> --depends-on @other-task
|
|
148
188
|
```
|
|
149
189
|
|
|
150
|
-
|
|
190
|
+
## Spec Item Management
|
|
151
191
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
192
|
+
Spec items define WHAT to build — features, requirements, constraints.
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# List and browse
|
|
196
|
+
kspec item list # All items
|
|
197
|
+
kspec item list --type feature # Filter by type
|
|
198
|
+
kspec item list --tree # Hierarchical view
|
|
199
|
+
kspec item list --count # Count only
|
|
200
|
+
kspec item types # Item types and counts
|
|
201
|
+
kspec item tags # Tags and counts
|
|
202
|
+
|
|
203
|
+
# View details
|
|
204
|
+
kspec item get <ref> # Item details
|
|
205
|
+
kspec item status <ref> # Implementation status + linked tasks
|
|
206
|
+
|
|
207
|
+
# Create items (--under is required)
|
|
208
|
+
kspec item add --under @parent --title "My Feature" --type feature --slug my-feature
|
|
209
|
+
kspec item add --under @parent --title "Sub-feature" --type requirement
|
|
210
|
+
kspec item add --under @parent --title "Auditable" --type constraint --trait @trait-ref
|
|
211
|
+
|
|
212
|
+
# Trait lifecycle
|
|
213
|
+
kspec trait list # Discover available traits
|
|
214
|
+
kspec trait get <ref> # Trait details and ACs
|
|
215
|
+
kspec trait add "Trait Name" --description "..." --slug my-trait
|
|
216
|
+
|
|
217
|
+
# Update items
|
|
218
|
+
kspec item set <ref> --title "New Title" --priority 1
|
|
219
|
+
kspec item set <ref> --relates-to @other-item # Add relationship
|
|
220
|
+
kspec item set <ref> --implements @parent-item # Add implements link
|
|
221
|
+
kspec item set <ref> --depends-on @dependency # Add dependency
|
|
222
|
+
kspec item set <ref> --clear-relates-to # Clear relationships
|
|
223
|
+
|
|
224
|
+
# Notes
|
|
225
|
+
kspec item note <ref> "Design rationale..."
|
|
226
|
+
kspec item notes <ref>
|
|
227
|
+
|
|
228
|
+
# Acceptance criteria
|
|
229
|
+
kspec item ac list <ref>
|
|
230
|
+
kspec item ac add <ref> --given "user is logged in" --when "they click logout" --then "session ends"
|
|
231
|
+
kspec item ac set <ref> ac-1 --then "updated expectation"
|
|
232
|
+
kspec item ac remove <ref> ac-1
|
|
233
|
+
|
|
234
|
+
# Traits
|
|
235
|
+
kspec item trait add <ref> @trait-a @trait-b
|
|
236
|
+
kspec item trait remove <ref> @trait-a
|
|
237
|
+
|
|
238
|
+
# Derive implementation task from spec
|
|
239
|
+
kspec derive <ref> # Create task from spec item
|
|
240
|
+
kspec derive --all --dry-run # Preview tasks for all unlinked specs
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
## Inbox
|
|
244
|
+
|
|
245
|
+
Low-friction capture for ideas that aren't yet tasks.
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
kspec inbox add "idea or random thought" # Capture
|
|
249
|
+
kspec inbox add "tagged idea" --tag dx --tag cli # With tags
|
|
250
|
+
kspec inbox list # Show items (oldest first)
|
|
251
|
+
kspec inbox list --newest --limit 5 # Recent items
|
|
252
|
+
kspec inbox list --tag dx # Filter by tag
|
|
253
|
+
kspec inbox list --count # Count only
|
|
254
|
+
kspec inbox get <ref> # View details
|
|
255
|
+
|
|
256
|
+
# Edit items
|
|
257
|
+
kspec inbox set <ref> --content "updated text" # Update content
|
|
258
|
+
kspec inbox set <ref> --tag new-tag # Add tags
|
|
259
|
+
kspec inbox set <ref> --clear-tags # Remove all tags
|
|
260
|
+
kspec inbox note <ref> "additional context" # Append a note
|
|
261
|
+
|
|
262
|
+
# Convert to task
|
|
263
|
+
kspec inbox promote <ref> --title "Task title"
|
|
264
|
+
kspec inbox promote <ref> --title "Task" --priority 2 --note "Context from triage"
|
|
265
|
+
|
|
266
|
+
# Remove
|
|
267
|
+
kspec inbox delete <ref>
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
## Plans
|
|
271
|
+
|
|
272
|
+
Plans capture implementation context and rationale. They can auto-generate specs and tasks from structured markdown.
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
# Create plans
|
|
276
|
+
kspec plan add --title "Feature Name" --content "Description..."
|
|
277
|
+
kspec plan add --title "Feature Name" --content-file ./plan.md
|
|
278
|
+
|
|
279
|
+
# Import structured plan (auto-creates specs and tasks)
|
|
280
|
+
kspec plan import ./plan.md --module @target-module --dry-run # Preview
|
|
281
|
+
kspec plan import ./plan.md --module @target-module # Execute
|
|
282
|
+
kspec plan import ./plan.md --module @target-module --update # Re-import
|
|
283
|
+
|
|
284
|
+
# Manage plans
|
|
285
|
+
kspec plan list # List all plans
|
|
286
|
+
kspec plan get <ref> # View details
|
|
287
|
+
kspec plan set <ref> --status active # Update status
|
|
288
|
+
kspec plan note <ref> "Progress..." # Add note
|
|
289
|
+
kspec plan derive <ref> # Create task from plan
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## Validation
|
|
293
|
+
|
|
294
|
+
Validate spec files for schema conformance, reference integrity, and alignment.
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
kspec validate # Full validation
|
|
298
|
+
kspec validate --schema # Schema conformance only
|
|
299
|
+
kspec validate --refs # Reference resolution only
|
|
300
|
+
kspec validate --alignment # Spec-task alignment
|
|
301
|
+
kspec validate --completeness # Spec completeness
|
|
302
|
+
kspec validate --orphans # Orphaned items
|
|
303
|
+
kspec validate --strict # Treat warnings as errors
|
|
304
|
+
kspec validate --fix # Auto-fix (invalid ULIDs, missing timestamps)
|
|
305
|
+
kspec validate -v # Verbose output
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
**Exit codes:** `0` = success, `4` = validation errors, `6` = warnings only.
|
|
309
|
+
|
|
310
|
+
## Session Log
|
|
311
|
+
|
|
312
|
+
View and search historical session data.
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
kspec session log list # List sessions with stats
|
|
316
|
+
kspec session log list --since 7d # Recent sessions
|
|
317
|
+
kspec session log list --agent ralph # Filter by agent type
|
|
318
|
+
kspec session log show <session-id> # Detailed session view
|
|
319
|
+
kspec session log show <id> --events # Include events
|
|
320
|
+
kspec session log stats # Aggregate analytics
|
|
321
|
+
kspec session log stats --by-day # Daily breakdown
|
|
322
|
+
kspec session log stats --tool-usage # Tool usage stats
|
|
323
|
+
kspec session log search "pattern" # Search across events
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
## Search and Export
|
|
327
|
+
|
|
328
|
+
```bash
|
|
329
|
+
# Search across items, tasks, inbox, and meta
|
|
330
|
+
kspec search "pattern"
|
|
331
|
+
kspec search "auth" --tasks-only
|
|
332
|
+
kspec search "feature" --items-only --limit 10
|
|
333
|
+
|
|
334
|
+
# Git history by spec/task
|
|
335
|
+
kspec log @task-ref # Commits related to a ref
|
|
336
|
+
kspec log --spec @spec-ref # Search by spec trailer
|
|
337
|
+
kspec log --since "2 weeks ago" # Filter by date
|
|
338
|
+
|
|
339
|
+
# Export
|
|
340
|
+
kspec export # JSON export
|
|
341
|
+
kspec export --format html -o out.html
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
## Batch Execution
|
|
345
|
+
|
|
346
|
+
Execute multiple commands atomically or with per-command commits.
|
|
347
|
+
|
|
348
|
+
```bash
|
|
349
|
+
# Atomic (default) — single commit, rollback on failure
|
|
350
|
+
echo '[{"command":"task note","args":{"ref":"@task","message":"update"}}]' | kspec batch
|
|
351
|
+
kspec batch --file commands.json
|
|
352
|
+
|
|
353
|
+
# Immediate mode — per-command commits
|
|
354
|
+
kspec batch --no-atomic --file commands.json
|
|
355
|
+
|
|
356
|
+
# Continue on error, dry run
|
|
357
|
+
kspec batch --continue --file commands.json
|
|
358
|
+
kspec batch --dry-run --file commands.json
|
|
359
|
+
|
|
360
|
+
# Discover available batch commands
|
|
361
|
+
kspec batch commands
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
Each command: `{"command": "cli path", "args": {...}, "id": "optional"}`. Only mutating commands allowed. Typos in command names produce did-you-mean suggestions.
|
|
365
|
+
|
|
366
|
+
## Shadow Branch
|
|
367
|
+
|
|
368
|
+
kspec stores spec/task state on a separate orphan branch (`kspec-meta`) via a git worktree at `.kspec/`. This keeps spec changes out of your main branch history.
|
|
369
|
+
|
|
370
|
+
```bash
|
|
371
|
+
kspec init # Initialize project (creates shadow branch)
|
|
372
|
+
kspec shadow status # Check shadow branch health
|
|
373
|
+
kspec shadow sync # Sync with remote
|
|
374
|
+
kspec shadow repair # Fix broken worktree
|
|
375
|
+
kspec shadow log # Recent shadow commits
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
## Utility Commands
|
|
379
|
+
|
|
380
|
+
```bash
|
|
381
|
+
kspec util ulid # Generate a valid ULID
|
|
382
|
+
kspec util ulid --count 5 # Generate multiple ULIDs
|
|
383
|
+
kspec help # Extended help
|
|
384
|
+
kspec help --all # Full command reference
|
|
385
|
+
kspec help --exit-codes # Exit code documentation
|
|
386
|
+
kspec help <cmd> --json-schema # JSON Schema for a command
|
|
387
|
+
```
|
|
156
388
|
|
|
157
389
|
## Task File Format
|
|
158
390
|
|
|
@@ -163,8 +395,9 @@ Tasks are stored in YAML files (`*.tasks.yaml`):
|
|
|
163
395
|
slugs: [my-task]
|
|
164
396
|
title: My task title
|
|
165
397
|
type: task # task, epic, bug, spike, infra
|
|
166
|
-
status: pending
|
|
398
|
+
status: pending # pending, in_progress, pending_review, completed, blocked, cancelled
|
|
167
399
|
priority: 2 # 1 (highest) to 5 (lowest)
|
|
400
|
+
spec_ref: "@feature-slug"
|
|
168
401
|
depends_on: ["@other-task"]
|
|
169
402
|
tags: [mvp]
|
|
170
403
|
notes:
|
package/dist/acp/client.d.ts
CHANGED
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
* - Handle streaming updates
|
|
10
10
|
* - Cancel operations (optional)
|
|
11
11
|
*/
|
|
12
|
-
import { EventEmitter } from
|
|
13
|
-
import type { JsonRpcFramingOptions } from
|
|
14
|
-
import type { AgentCapabilities, ClientCapabilities, NewSessionRequest, PromptRequest, PromptResponse, RequestPermissionResponse, SessionUpdate } from
|
|
12
|
+
import { EventEmitter } from "node:events";
|
|
13
|
+
import type { JsonRpcFramingOptions } from "./framing.js";
|
|
14
|
+
import type { AgentCapabilities, ClientCapabilities, NewSessionRequest, PromptRequest, PromptResponse, ReadTextFileResponse, RequestPermissionResponse, SessionUpdate, WriteTextFileResponse } from "./types.js";
|
|
15
15
|
/**
|
|
16
16
|
* Session state tracked by the client
|
|
17
17
|
*/
|
|
18
18
|
export interface SessionState {
|
|
19
19
|
id: string;
|
|
20
|
-
status:
|
|
20
|
+
status: "idle" | "prompting" | "cancelled";
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Options for ACPClient
|
|
@@ -137,6 +137,20 @@ export declare class ACPClient extends EventEmitter {
|
|
|
137
137
|
* @param response - The permission response
|
|
138
138
|
*/
|
|
139
139
|
respondPermission(id: string | number, response: RequestPermissionResponse): void;
|
|
140
|
+
/**
|
|
141
|
+
* Send a typed response to a file read request
|
|
142
|
+
*
|
|
143
|
+
* @param id - The request ID to respond to
|
|
144
|
+
* @param response - The file read response
|
|
145
|
+
*/
|
|
146
|
+
respondReadTextFile(id: string | number, response: ReadTextFileResponse): void;
|
|
147
|
+
/**
|
|
148
|
+
* Send a typed response to a file write request
|
|
149
|
+
*
|
|
150
|
+
* @param id - The request ID to respond to
|
|
151
|
+
* @param response - The file write response
|
|
152
|
+
*/
|
|
153
|
+
respondWriteTextFile(id: string | number, response: WriteTextFileResponse): void;
|
|
140
154
|
/**
|
|
141
155
|
* Send an error response to an agent request
|
|
142
156
|
*
|
package/dist/acp/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/acp/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAKlB,iBAAiB,EAEjB,aAAa,EACb,cAAc,EACd,yBAAyB,EAEzB,aAAa,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/acp/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,a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
|
* - Handle streaming updates
|
|
10
10
|
* - Cancel operations (optional)
|
|
11
11
|
*/
|
|
12
|
-
import { EventEmitter } from
|
|
13
|
-
import { JsonRpcFraming } from
|
|
12
|
+
import { EventEmitter } from "node:events";
|
|
13
|
+
import { JsonRpcFraming } from "./framing.js";
|
|
14
14
|
/**
|
|
15
15
|
* ACP Client
|
|
16
16
|
*
|
|
@@ -37,16 +37,16 @@ export class ACPClient extends EventEmitter {
|
|
|
37
37
|
// Create framing layer
|
|
38
38
|
this.framing = new JsonRpcFraming(options);
|
|
39
39
|
// Wire up notification handler for session updates
|
|
40
|
-
this.framing.on(
|
|
40
|
+
this.framing.on("notification", (notification) => {
|
|
41
41
|
this.handleNotification(notification);
|
|
42
42
|
});
|
|
43
43
|
// Forward request events for tool calls
|
|
44
|
-
this.framing.on(
|
|
45
|
-
this.emit(
|
|
44
|
+
this.framing.on("request", (request) => {
|
|
45
|
+
this.emit("request", request.id, request.method, request.params);
|
|
46
46
|
});
|
|
47
47
|
// Forward framing events
|
|
48
|
-
this.framing.on(
|
|
49
|
-
this.framing.on(
|
|
48
|
+
this.framing.on("close", () => this.emit("close"));
|
|
49
|
+
this.framing.on("error", (err) => this.emit("error", err));
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Initialize the agent connection
|
|
@@ -56,7 +56,7 @@ export class ACPClient extends EventEmitter {
|
|
|
56
56
|
*/
|
|
57
57
|
async initialize() {
|
|
58
58
|
if (this.initialized) {
|
|
59
|
-
throw new Error(
|
|
59
|
+
throw new Error("Client already initialized");
|
|
60
60
|
}
|
|
61
61
|
const params = {
|
|
62
62
|
protocolVersion: 1,
|
|
@@ -64,11 +64,11 @@ export class ACPClient extends EventEmitter {
|
|
|
64
64
|
...(this.clientInfo && {
|
|
65
65
|
clientInfo: {
|
|
66
66
|
name: this.clientInfo.name,
|
|
67
|
-
version: this.clientInfo.version ??
|
|
67
|
+
version: this.clientInfo.version ?? "0.0.0",
|
|
68
68
|
},
|
|
69
69
|
}),
|
|
70
70
|
};
|
|
71
|
-
const result = (await this.framing.sendRequest(
|
|
71
|
+
const result = (await this.framing.sendRequest("initialize", params));
|
|
72
72
|
this.agentCapabilities = result.agentCapabilities ?? {};
|
|
73
73
|
this.initialized = true;
|
|
74
74
|
return this.agentCapabilities;
|
|
@@ -82,13 +82,13 @@ export class ACPClient extends EventEmitter {
|
|
|
82
82
|
*/
|
|
83
83
|
async newSession(params) {
|
|
84
84
|
if (!this.initialized) {
|
|
85
|
-
throw new Error(
|
|
85
|
+
throw new Error("Client not initialized");
|
|
86
86
|
}
|
|
87
|
-
const result = (await this.framing.sendRequest(
|
|
87
|
+
const result = (await this.framing.sendRequest("session/new", params));
|
|
88
88
|
// Track session state
|
|
89
89
|
this.sessions.set(result.sessionId, {
|
|
90
90
|
id: result.sessionId,
|
|
91
|
-
status:
|
|
91
|
+
status: "idle",
|
|
92
92
|
});
|
|
93
93
|
return result.sessionId;
|
|
94
94
|
}
|
|
@@ -101,31 +101,31 @@ export class ACPClient extends EventEmitter {
|
|
|
101
101
|
*/
|
|
102
102
|
async prompt(params) {
|
|
103
103
|
if (!this.initialized) {
|
|
104
|
-
throw new Error(
|
|
104
|
+
throw new Error("Client not initialized");
|
|
105
105
|
}
|
|
106
106
|
const session = this.sessions.get(params.sessionId);
|
|
107
107
|
if (!session) {
|
|
108
108
|
throw new Error(`Session not found: ${params.sessionId}`);
|
|
109
109
|
}
|
|
110
|
-
if (session.status ===
|
|
110
|
+
if (session.status === "prompting") {
|
|
111
111
|
throw new Error(`Session already prompting: ${params.sessionId}`);
|
|
112
112
|
}
|
|
113
113
|
// Update session state
|
|
114
|
-
session.status =
|
|
114
|
+
session.status = "prompting";
|
|
115
115
|
try {
|
|
116
|
-
const result = (await this.framing.sendRequest(
|
|
116
|
+
const result = (await this.framing.sendRequest("session/prompt", params));
|
|
117
117
|
// Update session state based on stop reason
|
|
118
|
-
if (result.stopReason ===
|
|
119
|
-
session.status =
|
|
118
|
+
if (result.stopReason === "cancelled") {
|
|
119
|
+
session.status = "cancelled";
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
122
|
-
session.status =
|
|
122
|
+
session.status = "idle";
|
|
123
123
|
}
|
|
124
124
|
return result;
|
|
125
125
|
}
|
|
126
126
|
catch (err) {
|
|
127
127
|
// Reset to idle on error
|
|
128
|
-
session.status =
|
|
128
|
+
session.status = "idle";
|
|
129
129
|
throw err;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -141,7 +141,7 @@ export class ACPClient extends EventEmitter {
|
|
|
141
141
|
*/
|
|
142
142
|
async cancel(sessionId) {
|
|
143
143
|
if (!this.initialized) {
|
|
144
|
-
throw new Error(
|
|
144
|
+
throw new Error("Client not initialized");
|
|
145
145
|
}
|
|
146
146
|
const session = this.sessions.get(sessionId);
|
|
147
147
|
if (!session) {
|
|
@@ -149,9 +149,9 @@ export class ACPClient extends EventEmitter {
|
|
|
149
149
|
}
|
|
150
150
|
try {
|
|
151
151
|
// Use silentMethodNotFound since not all agents implement session/cancel
|
|
152
|
-
await this.framing.sendRequest(
|
|
152
|
+
await this.framing.sendRequest("session/cancel", { sessionId }, { silentMethodNotFound: true });
|
|
153
153
|
// Update session state
|
|
154
|
-
session.status =
|
|
154
|
+
session.status = "cancelled";
|
|
155
155
|
}
|
|
156
156
|
catch (err) {
|
|
157
157
|
// Ignore "Method not found" errors - agent doesn't support cancel
|
|
@@ -224,6 +224,24 @@ export class ACPClient extends EventEmitter {
|
|
|
224
224
|
respondPermission(id, response) {
|
|
225
225
|
this.framing.sendResponse(id, response);
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Send a typed response to a file read request
|
|
229
|
+
*
|
|
230
|
+
* @param id - The request ID to respond to
|
|
231
|
+
* @param response - The file read response
|
|
232
|
+
*/
|
|
233
|
+
respondReadTextFile(id, response) {
|
|
234
|
+
this.framing.sendResponse(id, response);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Send a typed response to a file write request
|
|
238
|
+
*
|
|
239
|
+
* @param id - The request ID to respond to
|
|
240
|
+
* @param response - The file write response
|
|
241
|
+
*/
|
|
242
|
+
respondWriteTextFile(id, response) {
|
|
243
|
+
this.framing.sendResponse(id, response);
|
|
244
|
+
}
|
|
227
245
|
/**
|
|
228
246
|
* Send an error response to an agent request
|
|
229
247
|
*
|
|
@@ -246,9 +264,9 @@ export class ACPClient extends EventEmitter {
|
|
|
246
264
|
* Handle incoming notifications from the agent
|
|
247
265
|
*/
|
|
248
266
|
handleNotification(notification) {
|
|
249
|
-
if (notification.method ===
|
|
267
|
+
if (notification.method === "session/update") {
|
|
250
268
|
const sessionNotification = notification.params;
|
|
251
|
-
this.emit(
|
|
269
|
+
this.emit("update", sessionNotification.sessionId, sessionNotification.update);
|
|
252
270
|
}
|
|
253
271
|
}
|
|
254
272
|
}
|
package/dist/acp/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/acp/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/acp/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAiD9C;;;;;;;;;;GAUG;AACH,MAAM,OAAO,SAAU,SAAQ,YAAY;IACjC,OAAO,CAAiB;IACxB,QAAQ,GAAG,IAAI,GAAG,EAAwB,CAAC;IAC3C,iBAAiB,GAAsB,EAAE,CAAC;IAC1C,kBAAkB,CAAqB;IACvC,UAAU,CAAsC;IAChD,WAAW,GAAG,KAAK,CAAC;IAE5B,YAAY,UAA4B,EAAE;QACxC,KAAK,EAAE,CAA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,CAClB,EAAmB,EACnB,QAA+B;QAE/B,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CAAC,EAAmB,EAAE,IAAY,EAAE,OAAe;QAC7D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,KAAK;QACH,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAED;;OAEG;IACK,kBAAkB,CAAC,YAAiC;QAC1D,IAAI,YAAY,CAAC,MAAM,KAAK,gBAAgB,EAAE,CAAC;YAC7C,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAA6B,CAAC;YACvE,IAAI,CAAC,IAAI,CACP,QAAQ,EACR,mBAAmB,CAAC,SAAS,EAC7B,mBAAmB,CAAC,MAAM,CAC3B,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
package/dist/acp/framing.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Handles bidirectional stdio communication with auto-incrementing IDs,
|
|
5
5
|
* request/response correlation, and timeout handling.
|
|
6
6
|
*/
|
|
7
|
-
import { EventEmitter } from
|
|
8
|
-
import type { JsonRpcErrorObject } from
|
|
7
|
+
import { EventEmitter } from "node:events";
|
|
8
|
+
import type { JsonRpcErrorObject } from "./types.js";
|
|
9
9
|
/**
|
|
10
10
|
* Options for JsonRpcFraming
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framing.d.ts","sourceRoot":"","sources":["../../src/acp/framing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAEV,kBAAkB,EAKnB,MAAM,YAAY,CAAC;AAGpB;;GAEG;AACH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