@agentic-sdlc-kit/cli 0.0.0-stage → 0.9.1
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/LICENSE +21 -0
- package/README.md +32 -2
- package/dist/application/agent/execution-store.d.ts +55 -0
- package/dist/application/agent/execution-store.d.ts.map +1 -0
- package/dist/application/agent/execution-store.js +91 -0
- package/dist/application/agent/execution-store.js.map +1 -0
- package/dist/application/agent/gateway.d.ts +74 -0
- package/dist/application/agent/gateway.d.ts.map +1 -0
- package/dist/application/agent/gateway.js +580 -0
- package/dist/application/agent/gateway.js.map +1 -0
- package/dist/application/agent/index.d.ts +6 -0
- package/dist/application/agent/index.d.ts.map +1 -0
- package/dist/application/agent/index.js +18 -0
- package/dist/application/agent/index.js.map +1 -0
- package/dist/application/agent/orchestrator.d.ts +76 -0
- package/dist/application/agent/orchestrator.d.ts.map +1 -0
- package/dist/application/agent/orchestrator.js +422 -0
- package/dist/application/agent/orchestrator.js.map +1 -0
- package/dist/application/agent/providers/claude-code/claude-argv.d.ts +15 -0
- package/dist/application/agent/providers/claude-code/claude-argv.d.ts.map +1 -0
- package/dist/application/agent/providers/claude-code/claude-argv.js +98 -0
- package/dist/application/agent/providers/claude-code/claude-argv.js.map +1 -0
- package/dist/application/agent/providers/claude-code/index.d.ts +7 -0
- package/dist/application/agent/providers/claude-code/index.d.ts.map +1 -0
- package/dist/application/agent/providers/claude-code/index.js +13 -0
- package/dist/application/agent/providers/claude-code/index.js.map +1 -0
- package/dist/application/agent/providers/claude-code/mod-parity.d.ts +15 -0
- package/dist/application/agent/providers/claude-code/mod-parity.d.ts.map +1 -0
- package/dist/application/agent/providers/claude-code/mod-parity.js +41 -0
- package/dist/application/agent/providers/claude-code/mod-parity.js.map +1 -0
- package/dist/application/agent/providers/claude-code/permission-config.d.ts +59 -0
- package/dist/application/agent/providers/claude-code/permission-config.d.ts.map +1 -0
- package/dist/application/agent/providers/claude-code/permission-config.js +189 -0
- package/dist/application/agent/providers/claude-code/permission-config.js.map +1 -0
- package/dist/application/agent/providers/claude-code/provider.d.ts +38 -0
- package/dist/application/agent/providers/claude-code/provider.d.ts.map +1 -0
- package/dist/application/agent/providers/claude-code/provider.js +577 -0
- package/dist/application/agent/providers/claude-code/provider.js.map +1 -0
- package/dist/application/agent/providers/claude-code/resume-store.d.ts +25 -0
- package/dist/application/agent/providers/claude-code/resume-store.d.ts.map +1 -0
- package/dist/application/agent/providers/claude-code/resume-store.js +120 -0
- package/dist/application/agent/providers/claude-code/resume-store.js.map +1 -0
- package/dist/application/agent/providers/claude-code/stream-parser.d.ts +50 -0
- package/dist/application/agent/providers/claude-code/stream-parser.d.ts.map +1 -0
- package/dist/application/agent/providers/claude-code/stream-parser.js +129 -0
- package/dist/application/agent/providers/claude-code/stream-parser.js.map +1 -0
- package/dist/application/agent/test-fixture.d.ts +15 -0
- package/dist/application/agent/test-fixture.d.ts.map +1 -0
- package/dist/application/agent/test-fixture.js +93 -0
- package/dist/application/agent/test-fixture.js.map +1 -0
- package/dist/application/agent/workspace.d.ts +24 -0
- package/dist/application/agent/workspace.d.ts.map +1 -0
- package/dist/application/agent/workspace.js +139 -0
- package/dist/application/agent/workspace.js.map +1 -0
- package/dist/application/dispatcher.d.ts +13 -0
- package/dist/application/dispatcher.d.ts.map +1 -0
- package/dist/application/dispatcher.js +116 -0
- package/dist/application/dispatcher.js.map +1 -0
- package/dist/application/index.d.ts +5 -0
- package/dist/application/index.d.ts.map +1 -0
- package/dist/application/index.js +6 -0
- package/dist/application/index.js.map +1 -0
- package/dist/application/registry.d.ts +8 -0
- package/dist/application/registry.d.ts.map +1 -0
- package/dist/application/registry.js +17 -0
- package/dist/application/registry.js.map +1 -0
- package/dist/application/version.d.ts +2 -0
- package/dist/application/version.d.ts.map +1 -0
- package/dist/application/version.js +7 -0
- package/dist/application/version.js.map +1 -0
- package/dist/commands/attach-exclude.d.ts +8 -0
- package/dist/commands/attach-exclude.d.ts.map +1 -0
- package/dist/commands/attach-exclude.js +48 -0
- package/dist/commands/attach-exclude.js.map +1 -0
- package/dist/commands/attach-git.d.ts +11 -0
- package/dist/commands/attach-git.d.ts.map +1 -0
- package/dist/commands/attach-git.js +40 -0
- package/dist/commands/attach-git.js.map +1 -0
- package/dist/commands/attach-store.d.ts +10 -0
- package/dist/commands/attach-store.d.ts.map +1 -0
- package/dist/commands/attach-store.js +107 -0
- package/dist/commands/attach-store.js.map +1 -0
- package/dist/commands/attach.d.ts +8 -0
- package/dist/commands/attach.d.ts.map +1 -0
- package/dist/commands/attach.js +124 -0
- package/dist/commands/attach.js.map +1 -0
- package/dist/commands/doctor.d.ts +3 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +68 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/elicit.d.ts +3 -0
- package/dist/commands/elicit.d.ts.map +1 -0
- package/dist/commands/elicit.js +163 -0
- package/dist/commands/elicit.js.map +1 -0
- package/dist/commands/evolve.d.ts +3 -0
- package/dist/commands/evolve.d.ts.map +1 -0
- package/dist/commands/evolve.js +165 -0
- package/dist/commands/evolve.js.map +1 -0
- package/dist/commands/feature.d.ts +13 -0
- package/dist/commands/feature.d.ts.map +1 -0
- package/dist/commands/feature.js +326 -0
- package/dist/commands/feature.js.map +1 -0
- package/dist/commands/fix.d.ts +4 -0
- package/dist/commands/fix.d.ts.map +1 -0
- package/dist/commands/fix.js +53 -0
- package/dist/commands/fix.js.map +1 -0
- package/dist/commands/help.d.ts +4 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/help.js +32 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/host-apply.d.ts +12 -0
- package/dist/commands/host-apply.d.ts.map +1 -0
- package/dist/commands/host-apply.js +43 -0
- package/dist/commands/host-apply.js.map +1 -0
- package/dist/commands/host.d.ts +3 -0
- package/dist/commands/host.d.ts.map +1 -0
- package/dist/commands/host.js +107 -0
- package/dist/commands/host.js.map +1 -0
- package/dist/commands/index.d.ts +25 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +26 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +92 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/inspect.d.ts +3 -0
- package/dist/commands/inspect.d.ts.map +1 -0
- package/dist/commands/inspect.js +64 -0
- package/dist/commands/inspect.js.map +1 -0
- package/dist/commands/install.d.ts +3 -0
- package/dist/commands/install.d.ts.map +1 -0
- package/dist/commands/install.js +337 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/journal.d.ts +3 -0
- package/dist/commands/journal.d.ts.map +1 -0
- package/dist/commands/journal.js +107 -0
- package/dist/commands/journal.js.map +1 -0
- package/dist/commands/memory.d.ts +3 -0
- package/dist/commands/memory.d.ts.map +1 -0
- package/dist/commands/memory.js +85 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/new.d.ts +3 -0
- package/dist/commands/new.d.ts.map +1 -0
- package/dist/commands/new.js +68 -0
- package/dist/commands/new.js.map +1 -0
- package/dist/commands/next.d.ts +3 -0
- package/dist/commands/next.d.ts.map +1 -0
- package/dist/commands/next.js +107 -0
- package/dist/commands/next.js.map +1 -0
- package/dist/commands/optimize.d.ts +3 -0
- package/dist/commands/optimize.d.ts.map +1 -0
- package/dist/commands/optimize.js +28 -0
- package/dist/commands/optimize.js.map +1 -0
- package/dist/commands/plugin-linker.d.ts +43 -0
- package/dist/commands/plugin-linker.d.ts.map +1 -0
- package/dist/commands/plugin-linker.js +216 -0
- package/dist/commands/plugin-linker.js.map +1 -0
- package/dist/commands/refactor.d.ts +3 -0
- package/dist/commands/refactor.d.ts.map +1 -0
- package/dist/commands/refactor.js +32 -0
- package/dist/commands/refactor.js.map +1 -0
- package/dist/commands/skills-install-commit.d.ts +34 -0
- package/dist/commands/skills-install-commit.d.ts.map +1 -0
- package/dist/commands/skills-install-commit.js +113 -0
- package/dist/commands/skills-install-commit.js.map +1 -0
- package/dist/commands/skills-install-manifest.d.ts +35 -0
- package/dist/commands/skills-install-manifest.d.ts.map +1 -0
- package/dist/commands/skills-install-manifest.js +89 -0
- package/dist/commands/skills-install-manifest.js.map +1 -0
- package/dist/commands/skills-install-report.d.ts +12 -0
- package/dist/commands/skills-install-report.d.ts.map +1 -0
- package/dist/commands/skills-install-report.js +44 -0
- package/dist/commands/skills-install-report.js.map +1 -0
- package/dist/commands/skills-install-secure.d.ts +14 -0
- package/dist/commands/skills-install-secure.d.ts.map +1 -0
- package/dist/commands/skills-install-secure.js +96 -0
- package/dist/commands/skills-install-secure.js.map +1 -0
- package/dist/commands/skills-install.d.ts +15 -0
- package/dist/commands/skills-install.d.ts.map +1 -0
- package/dist/commands/skills-install.js +182 -0
- package/dist/commands/skills-install.js.map +1 -0
- package/dist/commands/skills.d.ts +3 -0
- package/dist/commands/skills.d.ts.map +1 -0
- package/dist/commands/skills.js +217 -0
- package/dist/commands/skills.js.map +1 -0
- package/dist/commands/types.d.ts +19 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/commands/types.js +7 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/commands/uninstall.d.ts +3 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +113 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/validate-plan.d.ts +3 -0
- package/dist/commands/validate-plan.d.ts.map +1 -0
- package/dist/commands/validate-plan.js +62 -0
- package/dist/commands/validate-plan.js.map +1 -0
- package/dist/commands/validate-spec.d.ts +3 -0
- package/dist/commands/validate-spec.d.ts.map +1 -0
- package/dist/commands/validate-spec.js +62 -0
- package/dist/commands/validate-spec.js.map +1 -0
- package/dist/commands/verify.d.ts +3 -0
- package/dist/commands/verify.d.ts.map +1 -0
- package/dist/commands/verify.js +103 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/commands/version.d.ts +3 -0
- package/dist/commands/version.d.ts.map +1 -0
- package/dist/commands/version.js +12 -0
- package/dist/commands/version.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/output/formatter.d.ts +2 -0
- package/dist/output/formatter.d.ts.map +1 -0
- package/dist/output/formatter.js +10 -0
- package/dist/output/formatter.js.map +1 -0
- package/dist/output/index.d.ts +2 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +3 -0
- package/dist/output/index.js.map +1 -0
- package/package.json +37 -3
- package/src/application/agent/execution-store.ts +163 -0
- package/src/application/agent/gateway.test.ts +529 -0
- package/src/application/agent/gateway.ts +744 -0
- package/src/application/agent/index.ts +18 -0
- package/src/application/agent/orchestrator.test.ts +341 -0
- package/src/application/agent/orchestrator.ts +629 -0
- package/src/application/agent/providers/claude-code/claude-argv.ts +119 -0
- package/src/application/agent/providers/claude-code/claude-code-smoke.test.ts +139 -0
- package/src/application/agent/providers/claude-code/fixtures/fake-claude.mjs +125 -0
- package/src/application/agent/providers/claude-code/index.ts +28 -0
- package/src/application/agent/providers/claude-code/mod-parity.ts +50 -0
- package/src/application/agent/providers/claude-code/permission-config.test.ts +221 -0
- package/src/application/agent/providers/claude-code/permission-config.ts +242 -0
- package/src/application/agent/providers/claude-code/provider.test.ts +378 -0
- package/src/application/agent/providers/claude-code/provider.ts +717 -0
- package/src/application/agent/providers/claude-code/resume-store.test.ts +161 -0
- package/src/application/agent/providers/claude-code/resume-store.ts +157 -0
- package/src/application/agent/providers/claude-code/stream-parser.ts +166 -0
- package/src/application/agent/test-fixture.ts +131 -0
- package/src/application/agent/workspace.test.ts +104 -0
- package/src/application/agent/workspace.ts +156 -0
- package/src/application/dispatcher.test.ts +108 -0
- package/src/application/dispatcher.ts +106 -0
- package/src/application/index.ts +5 -0
- package/src/application/registry.ts +24 -0
- package/src/application/version.ts +7 -0
- package/src/commands/attach-exclude.ts +50 -0
- package/src/commands/attach-git.ts +50 -0
- package/src/commands/attach-store.ts +107 -0
- package/src/commands/attach.test.ts +192 -0
- package/src/commands/attach.ts +143 -0
- package/src/commands/clse.test.ts +181 -0
- package/src/commands/doctor.test.ts +29 -0
- package/src/commands/doctor.ts +78 -0
- package/src/commands/elicit.test.ts +111 -0
- package/src/commands/elicit.ts +188 -0
- package/src/commands/evolve.ts +209 -0
- package/src/commands/feature.test.ts +323 -0
- package/src/commands/feature.ts +405 -0
- package/src/commands/fix.test.ts +118 -0
- package/src/commands/fix.ts +58 -0
- package/src/commands/help.test.ts +33 -0
- package/src/commands/help.ts +35 -0
- package/src/commands/host-apply.ts +61 -0
- package/src/commands/host.test.ts +120 -0
- package/src/commands/host.ts +125 -0
- package/src/commands/index.ts +25 -0
- package/src/commands/init.test.ts +87 -0
- package/src/commands/init.ts +110 -0
- package/src/commands/inspect.test.ts +57 -0
- package/src/commands/inspect.ts +73 -0
- package/src/commands/install.test.ts +92 -0
- package/src/commands/install.ts +389 -0
- package/src/commands/journal.ts +118 -0
- package/src/commands/memory.ts +96 -0
- package/src/commands/new.test.ts +44 -0
- package/src/commands/new.ts +77 -0
- package/src/commands/next.test.ts +241 -0
- package/src/commands/next.ts +124 -0
- package/src/commands/optimize.ts +30 -0
- package/src/commands/plugin-linker.test.ts +219 -0
- package/src/commands/plugin-linker.ts +244 -0
- package/src/commands/refactor.ts +34 -0
- package/src/commands/skills-install-commit.ts +149 -0
- package/src/commands/skills-install-manifest.ts +124 -0
- package/src/commands/skills-install-report.ts +60 -0
- package/src/commands/skills-install-secure.ts +113 -0
- package/src/commands/skills-install.ts +245 -0
- package/src/commands/skills.test.ts +449 -0
- package/src/commands/skills.ts +247 -0
- package/src/commands/stack-commands.test.ts +67 -0
- package/src/commands/tier-c-conformance.test.ts +194 -0
- package/src/commands/types.ts +26 -0
- package/src/commands/uninstall.test.ts +122 -0
- package/src/commands/uninstall.ts +116 -0
- package/src/commands/validate-plan.test.ts +107 -0
- package/src/commands/validate-plan.ts +67 -0
- package/src/commands/validate-spec.test.ts +59 -0
- package/src/commands/validate-spec.ts +68 -0
- package/src/commands/verify.test.ts +117 -0
- package/src/commands/verify.ts +112 -0
- package/src/commands/version.test.ts +11 -0
- package/src/commands/version.ts +14 -0
- package/src/index.ts +30 -0
- package/src/output/formatter.ts +10 -0
- package/src/output/index.ts +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agentic SDLC Kit contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @agentic-sdlc-kit/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `kit` executable: user-facing entry point for the Agentic SDLC Kit.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm --filter @agentic-sdlc-kit/cli start -- --help
|
|
9
|
+
pnpm --filter @agentic-sdlc-kit/cli start -- --version
|
|
10
|
+
pnpm --filter @agentic-sdlc-kit/cli start -- doctor
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or, after `pnpm build`, run the bundled executable directly:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
node packages/cli/dist/index.js --version
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Commands (M1)
|
|
20
|
+
|
|
21
|
+
- `kit --version` / `kit -v` — print the kit version.
|
|
22
|
+
- `kit --help` / `kit -h` / `kit help` — list commands.
|
|
23
|
+
- `kit doctor` — check the kit toolchain health (Node, pnpm, workspace).
|
|
24
|
+
|
|
25
|
+
## Architecture
|
|
26
|
+
|
|
27
|
+
- `src/commands/types.ts` — the `Command` interface.
|
|
28
|
+
- `src/commands/<name>.ts` — one file per command.
|
|
29
|
+
- `src/application/registry.ts` — the registry a dispatcher queries.
|
|
30
|
+
- `src/application/dispatcher.ts` — the only place that knows the full
|
|
31
|
+
command list. Adding a command = adding one file + one registry entry.
|
|
32
|
+
|
|
33
|
+
See `docs/architecture/ARCHITECTURE.md` §2.3 and `REQUIREMENTS.md` FR-3.4.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { AgentExecutionEvent, AgentExecutionRequest, AgentExecutionResult, AgentExecutionStatus, AgentPolicySnapshot } from '@agentic-sdlc-kit/contracts';
|
|
2
|
+
/** Terminal-ish lifecycle of a stored execution. */
|
|
3
|
+
export type StoredExecutionStatus = 'pending' | 'running' | AgentExecutionStatus;
|
|
4
|
+
/** Why an event was rejected or flagged by the gateway (audit trail). */
|
|
5
|
+
export type EventAuditKind = 'invalid-event' | 'wrong-execution-id' | 'policy-hash-mismatch' | 'duplicate-event-id' | 'sequence-anomaly';
|
|
6
|
+
export interface EventAuditNote {
|
|
7
|
+
readonly kind: EventAuditKind;
|
|
8
|
+
readonly at: string;
|
|
9
|
+
readonly detail: string;
|
|
10
|
+
}
|
|
11
|
+
export interface StoredAgentExecution {
|
|
12
|
+
readonly executionId: string;
|
|
13
|
+
readonly workflowRunId: string;
|
|
14
|
+
readonly taskId: string;
|
|
15
|
+
readonly providerId: string;
|
|
16
|
+
readonly policyHash: string;
|
|
17
|
+
/** The canonical, versioned policy snapshot frozen for this execution. */
|
|
18
|
+
readonly policySnapshot: AgentPolicySnapshot;
|
|
19
|
+
/** The ORIGINAL request, frozen before the provider was called (rev A). */
|
|
20
|
+
readonly request: AgentExecutionRequest;
|
|
21
|
+
status: StoredExecutionStatus;
|
|
22
|
+
/** 1 for a fresh start; each resume attempt increments. */
|
|
23
|
+
attempts: number;
|
|
24
|
+
/** Accepted (validated, policy-matched) events in arrival order. */
|
|
25
|
+
events: AgentExecutionEvent[];
|
|
26
|
+
/** Rejections and anomalies about individual events — the fail-closed paper trail. */
|
|
27
|
+
eventAudit: EventAuditNote[];
|
|
28
|
+
/** Gateway-level facts: budget breaches, result validation failures, drains. */
|
|
29
|
+
gatewayNotes: string[];
|
|
30
|
+
/** Final result verbatim from the provider, once terminal. */
|
|
31
|
+
result?: AgentExecutionResult;
|
|
32
|
+
/**
|
|
33
|
+
* What the provider reported, when the gateway overrode it (e.g. the
|
|
34
|
+
* duration budget expired after the provider claimed `completed`).
|
|
35
|
+
* Undefined means the gateway accepted the provider's status as-is.
|
|
36
|
+
*/
|
|
37
|
+
providerReportedStatus?: AgentExecutionStatus;
|
|
38
|
+
readonly createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
completedAt?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function validateExecutionId(executionId: string): boolean;
|
|
43
|
+
export declare function executionStoreDir(projectRoot: string): string;
|
|
44
|
+
export declare function executionRecordPath(projectRoot: string, executionId: string): string;
|
|
45
|
+
/** Atomic save (tmp + rename). Throws on I/O failure — callers decide. */
|
|
46
|
+
export declare function saveExecution(projectRoot: string, execution: StoredAgentExecution): Promise<void>;
|
|
47
|
+
export declare function loadExecution(projectRoot: string, executionId: string): Promise<StoredAgentExecution | undefined>;
|
|
48
|
+
export declare function listExecutionIds(projectRoot: string): Promise<string[]>;
|
|
49
|
+
/**
|
|
50
|
+
* Scan persisted records for a substring — used by the security test that
|
|
51
|
+
* proves resume tokens never reach disk. Returns the file paths that
|
|
52
|
+
* contain the needle.
|
|
53
|
+
*/
|
|
54
|
+
export declare function findInExecutionRecords(projectRoot: string, needle: string): Promise<string[]>;
|
|
55
|
+
//# sourceMappingURL=execution-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-store.d.ts","sourceRoot":"","sources":["../../../src/application/agent/execution-store.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC,oDAAoD;AACpD,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,SAAS,GACT,oBAAoB,CAAC;AAEzB,yEAAyE;AACzE,MAAM,MAAM,cAAc,GACtB,eAAe,GACf,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,GACpB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC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AW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,EAAE,CAAC,CAYnB"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// packages/cli/src/application/agent/execution-store.ts
|
|
2
|
+
//
|
|
3
|
+
// Persistence for agent execution records (ADR-0019 v2 revision A, PR3).
|
|
4
|
+
//
|
|
5
|
+
// The gateway — not the provider — owns the durable record of every
|
|
6
|
+
// execution: the ORIGINAL request (frozen before the provider is called,
|
|
7
|
+
// so it can never drift between attempts), the canonical policy snapshot
|
|
8
|
+
// it was granted under, every accepted lifecycle event, an audit trail of
|
|
9
|
+
// rejected/anomalous events, and the final result.
|
|
10
|
+
//
|
|
11
|
+
// SECURITY: resume tokens are CREDENTIALS (ADR-0020 §6). They are NEVER
|
|
12
|
+
// written here. A record that round-trips through this store must not
|
|
13
|
+
// contain a resume token anywhere; the gateway holds them in memory only.
|
|
14
|
+
//
|
|
15
|
+
// Records live at <projectRoot>/.ai-kit/state/agent-executions/<executionId>.json
|
|
16
|
+
// and are written atomically (tmp file + rename), like all kit state.
|
|
17
|
+
import { promises as fs } from 'node:fs';
|
|
18
|
+
import path from 'node:path';
|
|
19
|
+
import { kitStateRoot } from '@agentic-sdlc-kit/core';
|
|
20
|
+
/** Execution ids become file names: keep them to safe characters. */
|
|
21
|
+
const EXECUTION_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
22
|
+
export function validateExecutionId(executionId) {
|
|
23
|
+
return EXECUTION_ID_PATTERN.test(executionId);
|
|
24
|
+
}
|
|
25
|
+
export function executionStoreDir(projectRoot) {
|
|
26
|
+
return path.join(kitStateRoot(projectRoot), 'state', 'agent-executions');
|
|
27
|
+
}
|
|
28
|
+
export function executionRecordPath(projectRoot, executionId) {
|
|
29
|
+
return path.join(executionStoreDir(projectRoot), `${executionId}.json`);
|
|
30
|
+
}
|
|
31
|
+
/** Atomic save (tmp + rename). Throws on I/O failure — callers decide. */
|
|
32
|
+
export async function saveExecution(projectRoot, execution) {
|
|
33
|
+
if (!validateExecutionId(execution.executionId)) {
|
|
34
|
+
throw new Error(`refusing to persist execution with unsafe id '${execution.executionId}'`);
|
|
35
|
+
}
|
|
36
|
+
const target = executionRecordPath(projectRoot, execution.executionId);
|
|
37
|
+
await fs.mkdir(path.dirname(target), { recursive: true });
|
|
38
|
+
const tmp = `${target}.tmp`;
|
|
39
|
+
await fs.writeFile(tmp, JSON.stringify(execution, null, 2) + '\n', 'utf8');
|
|
40
|
+
await fs.rename(tmp, target);
|
|
41
|
+
}
|
|
42
|
+
export async function loadExecution(projectRoot, executionId) {
|
|
43
|
+
if (!validateExecutionId(executionId))
|
|
44
|
+
return undefined;
|
|
45
|
+
try {
|
|
46
|
+
const raw = JSON.parse(await fs.readFile(executionRecordPath(projectRoot, executionId), 'utf8'));
|
|
47
|
+
// Defensive shape check: the record must at least be about the id we
|
|
48
|
+
// asked for. A corrupted record surfaces as undefined (missing), the
|
|
49
|
+
// same as an absent one — the gateway never guesses.
|
|
50
|
+
if (raw.executionId !== executionId || typeof raw.request !== 'object')
|
|
51
|
+
return undefined;
|
|
52
|
+
return raw;
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export async function listExecutionIds(projectRoot) {
|
|
59
|
+
try {
|
|
60
|
+
const entries = await fs.readdir(executionStoreDir(projectRoot));
|
|
61
|
+
return entries
|
|
62
|
+
.filter((name) => name.endsWith('.json') && !name.endsWith('.tmp.json'))
|
|
63
|
+
.map((name) => name.slice(0, -'.json'.length))
|
|
64
|
+
.filter(validateExecutionId)
|
|
65
|
+
.sort();
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Scan persisted records for a substring — used by the security test that
|
|
73
|
+
* proves resume tokens never reach disk. Returns the file paths that
|
|
74
|
+
* contain the needle.
|
|
75
|
+
*/
|
|
76
|
+
export async function findInExecutionRecords(projectRoot, needle) {
|
|
77
|
+
const hits = [];
|
|
78
|
+
for (const id of await listExecutionIds(projectRoot)) {
|
|
79
|
+
const file = executionRecordPath(projectRoot, id);
|
|
80
|
+
try {
|
|
81
|
+
const content = await fs.readFile(file, 'utf8');
|
|
82
|
+
if (content.includes(needle))
|
|
83
|
+
hits.push(file);
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
// unreadable record: not a hit for this scan
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return hits;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=execution-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-store.js","sourceRoot":"","sources":["../../../src/application/agent/execution-store.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,yEAAyE;AACzE,EAAE;AACF,oEAAoE;AACpE,yEAAyE;AACzE,yEAAyE;AACzE,0EAA0E;AAC1E,mDAAmD;AACnD,EAAE;AACF,wEAAwE;AACxE,sEAAsE;AACtE,0EAA0E;AAC1E,EAAE;AACF,kFAAkF;AAClF,sEAAsE;AAEtE,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AA6DtD,qEAAqE;AACrE,MAAM,oBAAoB,GAAG,8BAA8B,CAAC;AAE5D,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,OAAO,oBAAoB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACnD,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,kBAAkB,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,mBA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;YACP,6CAA6C;QAC/C,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type AgentExecutionRequest, type AgentPolicySnapshot, type AgentProvider, type AgentProviderId, type Result } from '@agentic-sdlc-kit/contracts';
|
|
2
|
+
import { type StoredAgentExecution } from './execution-store.js';
|
|
3
|
+
export interface AgentGatewayOptions {
|
|
4
|
+
/** Providers this gateway can dispatch to. Empty = nothing configured. */
|
|
5
|
+
readonly providers: ReadonlyArray<AgentProvider>;
|
|
6
|
+
/** Project root; execution records persist under .ai-kit/state/. */
|
|
7
|
+
readonly projectRoot: string;
|
|
8
|
+
/** Injectable clock for deterministic tests. */
|
|
9
|
+
readonly now?: () => Date;
|
|
10
|
+
/** Bounded drain window after a cancel/timeout before the gateway concludes (default 5s). */
|
|
11
|
+
readonly drainMs?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface StartExecutionOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The canonical policy snapshot freezing what this execution may do.
|
|
16
|
+
* Must equal the request's inline permissions/budget/approvalPolicy,
|
|
17
|
+
* and request.policyHash must be computePolicyHash(snapshot).
|
|
18
|
+
*/
|
|
19
|
+
readonly policySnapshot: AgentPolicySnapshot;
|
|
20
|
+
/** External cancellation (SIGINT, orchestrator shutdown). */
|
|
21
|
+
readonly signal?: AbortSignal;
|
|
22
|
+
}
|
|
23
|
+
export declare class AgentGateway {
|
|
24
|
+
private readonly providers;
|
|
25
|
+
private readonly projectRoot;
|
|
26
|
+
private readonly now;
|
|
27
|
+
private readonly drainMs;
|
|
28
|
+
/** Resume tokens, held in memory ONLY (never persisted). */
|
|
29
|
+
private readonly resumeTokens;
|
|
30
|
+
/** In-flight execution controllers, so cancel() can reach them. */
|
|
31
|
+
private readonly inFlight;
|
|
32
|
+
/**
|
|
33
|
+
* Per-execution persistence queue. Event arrivals, the terminal result,
|
|
34
|
+
* and late drain reports all write the SAME record file; concurrent
|
|
35
|
+
* writes would race on the tmp file. Saves for one execution are
|
|
36
|
+
* strictly serialized — last enqueued state wins on disk.
|
|
37
|
+
*/
|
|
38
|
+
private readonly persistQueues;
|
|
39
|
+
constructor(opts: AgentGatewayOptions);
|
|
40
|
+
hasProvider(id: string): boolean;
|
|
41
|
+
listProviders(): AgentProviderId[];
|
|
42
|
+
/** The in-memory resume token for an execution, if one was issued. */
|
|
43
|
+
resumeTokenFor(executionId: string): string | undefined;
|
|
44
|
+
start(request: AgentExecutionRequest, opts: StartExecutionOptions): Promise<Result<StoredAgentExecution>>;
|
|
45
|
+
/**
|
|
46
|
+
* Resume a persisted execution by (executionId, resumeToken). The
|
|
47
|
+
* original request is NOT re-submitted — the gateway already froze it
|
|
48
|
+
* (revision A). The token is a credential: used, never stored.
|
|
49
|
+
*/
|
|
50
|
+
resume(executionId: string, resumeToken: string): Promise<Result<StoredAgentExecution>>;
|
|
51
|
+
/** Cancel an execution (idempotent; unknown ids are an error, not a guess). */
|
|
52
|
+
cancel(executionId: string): Promise<Result<StoredAgentExecution>>;
|
|
53
|
+
getExecution(executionId: string): Promise<StoredAgentExecution | undefined>;
|
|
54
|
+
listExecutions(): Promise<StoredAgentExecution[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Wire a provider handle into the durable record: subscribe events,
|
|
57
|
+
* race the result against the duration budget, count tool calls, and
|
|
58
|
+
* persist the terminal state. `handle.result()` rejecting is a
|
|
59
|
+
* transport-level failure: the record ends `interrupted`, and the
|
|
60
|
+
* gateway surfaces an INTERNAL error (the provider was unreachable or
|
|
61
|
+
* violated the handle contract) — it is never reported as `completed`.
|
|
62
|
+
*/
|
|
63
|
+
private awaitSettlement;
|
|
64
|
+
private finalize;
|
|
65
|
+
/**
|
|
66
|
+
* Accept-or-reject one provider event against the frozen policy chain:
|
|
67
|
+
* schema validity, execution correlation, policyHash echo (fail
|
|
68
|
+
* closed), eventId idempotency, and sequence monotonicity. Rejected
|
|
69
|
+
* events are audited, never silently dropped.
|
|
70
|
+
*/
|
|
71
|
+
private acceptEvent;
|
|
72
|
+
private persist;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=gateway.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../../src/application/agent/gateway.ts"],"names":[],"mappings":"AA8BA,OAAO,EAQL,KAAK,qBAAqB,EAE1B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAElB,KAAK,eAAe,EAGpB,KAAK,MAAM,EACZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAML,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACjD,oEAAoE;IACpE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,gDAAgD;IAChD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,6FAA6F;IAC7F,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,mBAAmB,CAAC;IAC7C,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAKD,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsC;IAChE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAa;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,4DAA4D;IAC5D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA6B;IAC1D,mEAAmE;IACnE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsC;IAC/D;;;;;OAKG;IACH,OAAO,CAAC,QAAQ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