@jeger-ai/opengantry 3.2.1 → 3.2.3
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 +22 -26
- package/dist/cli/commands/doctor.d.ts +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +2 -1
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/onboarding.js +2 -2
- package/dist/cli/commands/onboarding.js.map +1 -1
- package/dist/cli/commands/triage.d.ts +0 -1
- package/dist/cli/commands/triage.d.ts.map +1 -1
- package/dist/cli/commands/triage.js +0 -1
- package/dist/cli/commands/triage.js.map +1 -1
- package/dist/cli/commands/verify.d.ts +2 -2
- package/dist/cli/commands/verify.d.ts.map +1 -1
- package/dist/cli/kernel.d.ts +21 -0
- package/dist/cli/kernel.d.ts.map +1 -0
- package/dist/cli/kernel.js +18 -0
- package/dist/cli/kernel.js.map +1 -0
- package/dist/cli/lib/domains/index.d.ts +7 -3
- package/dist/cli/lib/domains/index.d.ts.map +1 -1
- package/dist/cli/lib/domains/index.js +19 -9
- package/dist/cli/lib/domains/index.js.map +1 -1
- package/dist/cli/lib/draft-token.d.ts +0 -1
- package/dist/cli/lib/draft-token.d.ts.map +1 -1
- package/dist/cli/lib/draft-token.js +0 -1
- package/dist/cli/lib/draft-token.js.map +1 -1
- package/dist/cli/lib/git-metrics.d.ts.map +1 -1
- package/dist/cli/lib/git-metrics.js +2 -1
- package/dist/cli/lib/git-metrics.js.map +1 -1
- package/dist/cli/lib/git-proof.d.ts +0 -1
- package/dist/cli/lib/git-proof.d.ts.map +1 -1
- package/dist/cli/lib/git-proof.js +0 -1
- package/dist/cli/lib/git-proof.js.map +1 -1
- package/dist/cli/lib/git.d.ts.map +1 -1
- package/dist/cli/lib/git.js +3 -0
- package/dist/cli/lib/git.js.map +1 -1
- package/dist/cli/lib/init-tutorial.js +1 -1
- package/dist/cli/lib/init-tutorial.js.map +1 -1
- package/dist/cli/lib/kernel-evaluate-scope.d.ts +20 -0
- package/dist/cli/lib/kernel-evaluate-scope.d.ts.map +1 -0
- package/dist/cli/lib/kernel-evaluate-scope.js +54 -0
- package/dist/cli/lib/kernel-evaluate-scope.js.map +1 -0
- package/dist/cli/lib/legislate-forbidden-zone.js +1 -1
- package/dist/cli/lib/mcp-runtime.d.ts +12 -0
- package/dist/cli/lib/mcp-runtime.d.ts.map +1 -1
- package/dist/cli/lib/mcp-runtime.js +71 -1
- package/dist/cli/lib/mcp-runtime.js.map +1 -1
- package/dist/cli/lib/mcp-start-orchestration.js +1 -1
- package/dist/cli/lib/mcp-start-orchestration.js.map +1 -1
- package/dist/cli/lib/mcp-tools-register.d.ts.map +1 -1
- package/dist/cli/lib/mcp-tools-register.js +1 -5
- package/dist/cli/lib/mcp-tools-register.js.map +1 -1
- package/dist/cli/lib/mcp-upgrade.d.ts +1 -1
- package/dist/cli/lib/mcp-upgrade.d.ts.map +1 -1
- package/dist/cli/lib/onboarding-flow.d.ts +2 -2
- package/dist/cli/lib/onboarding-flow.d.ts.map +1 -1
- package/dist/cli/lib/onboarding-flow.js +2 -2
- package/dist/cli/lib/onboarding-flow.js.map +1 -1
- package/dist/cli/lib/perimeter.d.ts +0 -1
- package/dist/cli/lib/perimeter.d.ts.map +1 -1
- package/dist/cli/lib/perimeter.js +0 -1
- package/dist/cli/lib/perimeter.js.map +1 -1
- package/dist/cli/lib/receipt-signing.d.ts.map +1 -1
- package/dist/cli/lib/receipt-signing.js +8 -4
- package/dist/cli/lib/receipt-signing.js.map +1 -1
- package/dist/cli/lib/status-report.d.ts +1 -1
- package/dist/cli/lib/status-report.d.ts.map +1 -1
- package/dist/cli/lib/status-report.js +1 -1
- package/dist/cli/lib/status-report.js.map +1 -1
- package/dist/cli/lib/upgrade-apply.d.ts.map +1 -1
- package/dist/cli/lib/upgrade-apply.js +2 -1
- package/dist/cli/lib/upgrade-apply.js.map +1 -1
- package/dist/cli/lib/upgrade-plan-types.d.ts +0 -1
- package/dist/cli/lib/upgrade-plan-types.d.ts.map +1 -1
- package/dist/cli/lib/upgrade-plan-types.js +0 -1
- package/dist/cli/lib/upgrade-plan-types.js.map +1 -1
- package/dist/cli/lib/upgrade-plan.d.ts +1 -3
- package/dist/cli/lib/upgrade-plan.d.ts.map +1 -1
- package/dist/cli/lib/upgrade-plan.js +0 -3
- package/dist/cli/lib/upgrade-plan.js.map +1 -1
- package/dist/cli/lib/verdict-token.d.ts +35 -0
- package/dist/cli/lib/verdict-token.d.ts.map +1 -0
- package/dist/cli/lib/verdict-token.js +97 -0
- package/dist/cli/lib/verdict-token.js.map +1 -0
- package/dist/cli/lib/verify-engine.d.ts +0 -1
- package/dist/cli/lib/verify-engine.d.ts.map +1 -1
- package/dist/cli/lib/verify-engine.js.map +1 -1
- package/dist/cli/lib/verify-payload.d.ts +1 -2
- package/dist/cli/lib/verify-payload.d.ts.map +1 -1
- package/dist/cli/lib/verify-payload.js +1 -1
- package/dist/cli/lib/verify-payload.js.map +1 -1
- package/dist/cli/lib/verify-presenters.d.ts +14 -1
- package/dist/cli/lib/verify-presenters.d.ts.map +1 -1
- package/dist/cli/lib/verify-presenters.js.map +1 -1
- package/dist/cli/lib/verify-run.d.ts +15 -1
- package/dist/cli/lib/verify-run.d.ts.map +1 -1
- package/dist/cli/lib/verify-run.js +56 -1
- package/dist/cli/lib/verify-run.js.map +1 -1
- package/dist/cli/lib/version.gen.d.ts +1 -1
- package/dist/cli/lib/version.gen.js +1 -1
- package/dist/cli/lib/virtual-scratch-store.d.ts.map +1 -1
- package/dist/cli/lib/virtual-scratch-store.js +13 -2
- package/dist/cli/lib/virtual-scratch-store.js.map +1 -1
- package/dist/cli/program-core.d.ts.map +1 -1
- package/dist/cli/program-core.js +50 -4
- package/dist/cli/program-core.js.map +1 -1
- package/dist/cli/program-workflow.d.ts +1 -1
- package/dist/cli/program-workflow.d.ts.map +1 -1
- package/dist/cli/program-workflow.js +1 -1
- package/dist/cli/program-workflow.js.map +1 -1
- package/dist/cli/program.d.ts.map +1 -1
- package/dist/cli/program.js +0 -4
- package/dist/cli/program.js.map +1 -1
- package/package.json +6 -2
- package/templates/.cursor/hooks/gxt-session-start.sh +2 -2
- package/templates/.cursor/skills/setup-opengantry/SKILL.md +21 -0
- package/templates/.gitagent/foreman/SUBSTRATE.version.json +1 -1
- package/templates/.gitagent/planner/AGENT-SETUP.md +110 -0
- package/templates/.github/workflows/gxt-validate.yml +6 -0
- package/templates/AGENTS.md +6 -0
- package/templates/integrations/aider/.aider.conf.yml +1 -0
- package/templates/integrations/antigravity/.agent/rules/gxt.md +2 -0
- package/templates/integrations/asset-catalog.json +1 -0
- package/templates/integrations/claude-code/CLAUDE.md +2 -0
- package/templates/integrations/cline/.clinerules/gxt.md +2 -0
- package/templates/integrations/codex-cli/.codex/config.toml +1 -1
- package/templates/integrations/compatibility.json +1 -1
- package/templates/integrations/junie/.junie/guidelines.md +2 -0
- package/templates/integrations/opencode/opencode.json +6 -1
- package/templates/integrations/openhands/.openhands/microagents/gxt.md +1 -0
- package/templates/integrations/recipes/_footer.md +1 -1
- package/templates/integrations/recipes/_preamble.md +3 -2
- package/templates/integrations/recipes/cursor.md +1 -0
- package/templates/scripts/validate-mcp-dogfood.mjs +4 -7
- package/dist/cli/lib/doctor.d.ts +0 -5
- package/dist/cli/lib/doctor.d.ts.map +0 -1
- package/dist/cli/lib/doctor.js +0 -5
- package/dist/cli/lib/doctor.js.map +0 -1
- package/dist/cli/lib/mcp-attest.d.ts +0 -6
- package/dist/cli/lib/mcp-attest.d.ts.map +0 -1
- package/dist/cli/lib/mcp-attest.js +0 -22
- package/dist/cli/lib/mcp-attest.js.map +0 -1
- package/dist/cli/lib/mcp-governance.d.ts +0 -10
- package/dist/cli/lib/mcp-governance.d.ts.map +0 -1
- package/dist/cli/lib/mcp-governance.js +0 -9
- package/dist/cli/lib/mcp-governance.js.map +0 -1
- package/dist/cli/lib/mcp-last-error.d.ts +0 -3
- package/dist/cli/lib/mcp-last-error.d.ts.map +0 -1
- package/dist/cli/lib/mcp-last-error.js +0 -18
- package/dist/cli/lib/mcp-last-error.js.map +0 -1
- package/dist/cli/lib/mcp-pin-mission.d.ts +0 -6
- package/dist/cli/lib/mcp-pin-mission.d.ts.map +0 -1
- package/dist/cli/lib/mcp-pin-mission.js +0 -21
- package/dist/cli/lib/mcp-pin-mission.js.map +0 -1
- package/dist/cli/lib/mcp-resolve-mission.d.ts +0 -3
- package/dist/cli/lib/mcp-resolve-mission.d.ts.map +0 -1
- package/dist/cli/lib/mcp-resolve-mission.js +0 -18
- package/dist/cli/lib/mcp-resolve-mission.js.map +0 -1
- package/dist/cli/lib/program-stdin.d.ts +0 -2
- package/dist/cli/lib/program-stdin.d.ts.map +0 -1
- package/dist/cli/lib/program-stdin.js +0 -2
- package/dist/cli/lib/program-stdin.js.map +0 -1
- package/dist/cli/lib/verify-context.d.ts +0 -15
- package/dist/cli/lib/verify-context.d.ts.map +0 -1
- package/dist/cli/lib/verify-context.js +0 -2
- package/dist/cli/lib/verify-context.js.map +0 -1
- package/dist/cli/lib/verify-receipt.d.ts +0 -15
- package/dist/cli/lib/verify-receipt.d.ts.map +0 -1
- package/dist/cli/lib/verify-receipt.js +0 -60
- package/dist/cli/lib/verify-receipt.js.map +0 -1
- package/dist/cli/program-blueprint.d.ts +0 -3
- package/dist/cli/program-blueprint.d.ts.map +0 -1
- package/dist/cli/program-blueprint.js +0 -12
- package/dist/cli/program-blueprint.js.map +0 -1
- package/dist/cli/program-init-options.d.ts +0 -4
- package/dist/cli/program-init-options.d.ts.map +0 -1
- package/dist/cli/program-init-options.js +0 -23
- package/dist/cli/program-init-options.js.map +0 -1
- package/dist/cli/program-planner.d.ts +0 -3
- package/dist/cli/program-planner.d.ts.map +0 -1
- package/dist/cli/program-planner.js +0 -19
- package/dist/cli/program-planner.js.map +0 -1
package/templates/AGENTS.md
CHANGED
|
@@ -7,6 +7,12 @@ Before planning, editing code, or running substantive commands in this repositor
|
|
|
7
7
|
|
|
8
8
|
Treat these as the **law + routing contract** for agent work. Before editing application code, read **`.gitagent/ARCHITECTURE.pointer.json`**. If **`kind` is `unset`**, or docs are stub/missing, read **`.gitagent/planner/ARCHITECTURE-DISCOVERY.md`** and ask the user — do not invent architecture. When `access.required` is true, read **`.gitagent/planner/ARCHITECTURE-ACCESS.md`**. For GXT workflow orientation, see **`.gitagent/README.md`**.
|
|
9
9
|
|
|
10
|
+
## Bootstrap OpenGantry (one-shot setup)
|
|
11
|
+
|
|
12
|
+
When the user asks to **set up, install, initialize, adopt, or onboard OpenGantry**, read and execute **`.gitagent/planner/AGENT-SETUP.md`** — harness-agnostic steps for Cursor, Claude Code, Cline, Codex CLI, OpenCode, Junie, Antigravity, Aider, and OpenHands.
|
|
13
|
+
|
|
14
|
+
If the substrate is not present yet, that file is created by `gantry init`; use the pre-init commands in the Cursor skill at `.cursor/skills/setup-opengantry/SKILL.md` or run `gantry init --yes --ides <harness-keys>` per the table in `AGENT-SETUP.md`.
|
|
15
|
+
|
|
10
16
|
## Mission Architect (IDE chat)
|
|
11
17
|
|
|
12
18
|
**Activation macro:**
|
|
@@ -6,6 +6,8 @@ always_on: true
|
|
|
6
6
|
|
|
7
7
|
Read **`AGENTS.md`**, **`.gitagent/planner/RULES.md`**, and **`.gitagent/foreman/MANIFEST.json`** before acting.
|
|
8
8
|
|
|
9
|
+
**Set up OpenGantry:** follow **`.gitagent/planner/AGENT-SETUP.md`** when the user asks to bootstrap or adopt OpenGantry.
|
|
10
|
+
|
|
9
11
|
Bootstrap: `source scripts/gxt-runtime-env.sh .gitagent/missions/<file>.yaml`
|
|
10
12
|
|
|
11
13
|
See `.gitagent/ARCHITECTURE.pointer.json` for code layout (follow `read_hint`). GXT workflow: `.gitagent/README.md`.
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
{ "targetPath": ".cursor/hooks/gxt-session-start.sh", "mode": "managed_strict", "executable": true, "tags": ["cursor"] },
|
|
11
11
|
{ "targetPath": ".cursor/mcp.json", "mode": "managed_strict", "tags": ["cursor"] },
|
|
12
12
|
{ "targetPath": ".cursor/rules/opengantry-gxt-substrate.mdc", "mode": "managed_strict", "tags": ["cursor"] },
|
|
13
|
+
{ "targetPath": ".cursor/skills/setup-opengantry/SKILL.md", "mode": "managed_strict", "tags": ["cursor"] },
|
|
13
14
|
{ "targetPath": ".gitagent/config.json", "mode": "scaffold_only", "tags": ["core"] },
|
|
14
15
|
{ "targetPath": ".gitagent/foreman/BYPASS.sha256", "mode": "scaffold_only", "tags": ["core"] },
|
|
15
16
|
{ "targetPath": ".gitagent/foreman/MANIFEST.json", "mode": "scaffold_only", "tags": ["core"] },
|
|
@@ -7,3 +7,5 @@ Before planning, editing code, or running substantive commands:
|
|
|
7
7
|
3. Read **`.gitagent/foreman/MANIFEST.json`** — routing map (TMVC roots, forbidden zones).
|
|
8
8
|
|
|
9
9
|
Do not duplicate full RULES here. For code architecture read `.gitagent/ARCHITECTURE.pointer.json` first (follow `read_hint`). For GXT workflow see `.gitagent/README.md`.
|
|
10
|
+
|
|
11
|
+
**Set up OpenGantry:** read `.gitagent/planner/AGENT-SETUP.md` when the user asks to bootstrap or adopt OpenGantry (harness-agnostic).
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Before substantive work, read `AGENTS.md`, `.gitagent/planner/RULES.md`, and `.gitagent/foreman/MANIFEST.json`.
|
|
4
4
|
|
|
5
|
+
**Set up OpenGantry:** follow `.gitagent/planner/AGENT-SETUP.md` when the user asks to bootstrap or adopt OpenGantry.
|
|
6
|
+
|
|
5
7
|
Terminal bootstrap: `source scripts/gxt-runtime-env.sh .gitagent/missions/<file>.yaml`
|
|
6
8
|
|
|
7
9
|
Code layout: read `.gitagent/ARCHITECTURE.pointer.json` first (file, folder, or external per `kind`). GXT workflow: `.gitagent/README.md`.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# OpenAI Codex CLI project defaults (optional — trusted projects only)
|
|
2
2
|
# See https://developers.openai.com/codex/config-basic
|
|
3
|
-
# GXT law
|
|
3
|
+
# GXT law: AGENTS.md + .gitagent/ — bootstrap: .gitagent/planner/AGENT-SETUP.md
|
|
@@ -6,6 +6,8 @@ Before planning, editing code, or running substantive commands:
|
|
|
6
6
|
2. Read **`.gitagent/planner/RULES.md`**
|
|
7
7
|
3. Read **`.gitagent/foreman/MANIFEST.json`**
|
|
8
8
|
|
|
9
|
+
**Set up OpenGantry:** follow **`.gitagent/planner/AGENT-SETUP.md`** when the user asks to bootstrap or adopt OpenGantry.
|
|
10
|
+
|
|
9
11
|
Bootstrap: `source scripts/gxt-runtime-env.sh .gitagent/missions/<file>.yaml`
|
|
10
12
|
|
|
11
13
|
See `.gitagent/ARCHITECTURE.pointer.json` for code layout (follow `read_hint`). GXT workflow: `.gitagent/README.md`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent Integrations (GXT wrapper)
|
|
2
2
|
|
|
3
|
-
OpenGantry is **tool-agnostic** and **vendor-neutral** — any agent that can run shell commands can participate in the GXT
|
|
3
|
+
OpenGantry is **tool-agnostic** and **vendor-neutral** — any agent that can run shell commands can participate in the GXT graph. Governance is **local-first**: missions, gates, and **Gantry Git hook** enforcement run in your repository, not through a hosted agent dashboard.
|
|
4
4
|
|
|
5
5
|
## Universal rule
|
|
6
6
|
|
|
@@ -30,6 +30,7 @@ IDE agent file edits are not TMVC-trapped unless the tool runs inside `runtime e
|
|
|
30
30
|
| File | Role |
|
|
31
31
|
|------|------|
|
|
32
32
|
| `AGENTS.md` | Cross-tool entry: read RULES + MANIFEST before acting |
|
|
33
|
+
| `.gitagent/planner/AGENT-SETUP.md` | One-shot agent bootstrap (harness-agnostic) — set up / adopt OpenGantry |
|
|
33
34
|
| `.gitagent/planner/RULES.md` | Governance law |
|
|
34
35
|
| `.gitagent/foreman/MANIFEST.json` | Routing map (TMVC roots, forbidden zones) |
|
|
35
36
|
|
|
@@ -43,4 +44,4 @@ IDE agent file edits are not TMVC-trapped unless the tool runs inside `runtime e
|
|
|
43
44
|
|
|
44
45
|
---
|
|
45
46
|
|
|
46
|
-
## Per-tool closed
|
|
47
|
+
## Per-tool closed graph
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
- **Context injection:** `.cursor/rules/opengantry-gxt-substrate.mdc` (`alwaysApply: true`); `.cursor/hooks.json` — `sessionStart` mission scope + `beforeShellExecution` fallback guard; `.cursor/mcp.json` — `gantry mcp serve`.
|
|
4
4
|
- **Mission Architect:** `/gantry` macro (do not use `/plan` — Cursor native Plan Mode); implicit activation when user asks to **write/edit code** with no pinned mission. Follow `.gitagent/planner/MISSION-ARCHITECT.md`.
|
|
5
|
+
- **One-shot setup:** `.gitagent/planner/AGENT-SETUP.md` (all harnesses) or Cursor skill `.cursor/skills/setup-opengantry/` — user can say *"set up OpenGantry for this project"*.
|
|
5
6
|
- **MCP legislation:** `gxt_draft_legislation` → semantic chat approval → `gxt_execute_legislation` → Planner commit → `gxt_check_signature` → `gxt_pin_mission`. Or **`gxt_start_orchestration`** for goal-first CLI parity.
|
|
6
7
|
- **Verify remediation:** `gxt_verify` returns `error_code`, `fix_hints`, `next_actions` on failure; CLI equivalent: `gantry verify --mission … --fix`.
|
|
7
8
|
- **Session bootstrap:**
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { spawnSync } from "node:child_process";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
handlePinMission,
|
|
9
|
-
} from "../dist/cli/lib/mcp-governance.js";
|
|
10
|
-
import { handleRuntimeEnv } from "../dist/cli/lib/mcp-runtime.js";
|
|
4
|
+
import { handleDraftLegislation } from "../dist/cli/lib/mcp-draft-legislation.js";
|
|
5
|
+
import { handleExecuteLegislation } from "../dist/cli/lib/mcp-execute-legislation.js";
|
|
6
|
+
import { handleCheckSignature } from "../dist/cli/lib/mcp-check-signature.js";
|
|
7
|
+
import { handlePinMission, handleRuntimeEnv } from "../dist/cli/lib/mcp-runtime.js";
|
|
11
8
|
|
|
12
9
|
const dest = process.env.GXT_DOGFOOD_TMP;
|
|
13
10
|
if (!dest) throw new Error("GXT_DOGFOOD_TMP unset");
|
package/dist/cli/lib/doctor.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/doctor.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
|
package/dist/cli/lib/doctor.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../../src/cli/lib/doctor.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-attest.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-attest.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiB1B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { attestMission } from "./attest-mission.js";
|
|
2
|
-
import { resolveMissionArg } from "./mission-arg.js";
|
|
3
|
-
import { loadWorkspace } from "./workspace.js";
|
|
4
|
-
export function handleAttest(input) {
|
|
5
|
-
const { root } = loadWorkspace();
|
|
6
|
-
const resolved = resolveMissionArg(root, input.mission_file_path);
|
|
7
|
-
const result = attestMission({
|
|
8
|
-
root,
|
|
9
|
-
resolved,
|
|
10
|
-
out: input.out,
|
|
11
|
-
sign: input.sign === true,
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
status: "ok",
|
|
15
|
-
repo_root: result.repo_root,
|
|
16
|
-
receipt: result.receipt,
|
|
17
|
-
receipt_path: result.receipt_path,
|
|
18
|
-
mission_file_path: result.mission_file_path,
|
|
19
|
-
mission_source: result.mission_source,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=mcp-attest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-attest.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-attest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,UAAU,YAAY,CAAC,KAI5B;IACC,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,aAAa,CAAC;QAC3B,IAAI;QACJ,QAAQ;QACR,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,IAAI,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI;KAC1B,CAAC,CAAC;IACH,OAAO;QACL,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,cAAc,EAAE,MAAM,CAAC,cAAc;KACtC,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type { McpToolStatus, McpErrorBody, DraftLegislationInput, DraftLegislationResult, ExecuteLegislationResult, CheckSignatureResult, PinMissionResult, ResolveMissionResult, LastErrorResult, StartOrchestrationMcpResult, StartOrchestrationInput, } from "./mcp-governance-shared.js";
|
|
2
|
-
export { mcpError, mcpWriteDenied, resolveGuardedMissionAbs } from "./mcp-governance-shared.js";
|
|
3
|
-
export { handleDraftLegislation } from "./mcp-draft-legislation.js";
|
|
4
|
-
export { handleExecuteLegislation } from "./mcp-execute-legislation.js";
|
|
5
|
-
export { handleCheckSignature } from "./mcp-check-signature.js";
|
|
6
|
-
export { handlePinMission } from "./mcp-pin-mission.js";
|
|
7
|
-
export { handleResolveMission } from "./mcp-resolve-mission.js";
|
|
8
|
-
export { handleLastError } from "./mcp-last-error.js";
|
|
9
|
-
export { handleStartOrchestration } from "./mcp-start-orchestration.js";
|
|
10
|
-
//# sourceMappingURL=mcp-governance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-governance.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-governance.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { mcpError, mcpWriteDenied, resolveGuardedMissionAbs } from "./mcp-governance-shared.js";
|
|
2
|
-
export { handleDraftLegislation } from "./mcp-draft-legislation.js";
|
|
3
|
-
export { handleExecuteLegislation } from "./mcp-execute-legislation.js";
|
|
4
|
-
export { handleCheckSignature } from "./mcp-check-signature.js";
|
|
5
|
-
export { handlePinMission } from "./mcp-pin-mission.js";
|
|
6
|
-
export { handleResolveMission } from "./mcp-resolve-mission.js";
|
|
7
|
-
export { handleLastError } from "./mcp-last-error.js";
|
|
8
|
-
export { handleStartOrchestration } from "./mcp-start-orchestration.js";
|
|
9
|
-
//# sourceMappingURL=mcp-governance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-governance.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-governance.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-last-error.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-last-error.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGlE,wBAAgB,eAAe,IAAI,eAAe,CAYjD"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { loadWorkspace } from "./workspace.js";
|
|
4
|
-
export function handleLastError() {
|
|
5
|
-
const { root } = loadWorkspace();
|
|
6
|
-
const errPath = path.join(root, ".gitagent", "history", ".ignored-last-error.json");
|
|
7
|
-
if (!fs.existsSync(errPath)) {
|
|
8
|
-
return { status: "empty", message: "No last error recorded." };
|
|
9
|
-
}
|
|
10
|
-
try {
|
|
11
|
-
const payload = JSON.parse(fs.readFileSync(errPath, "utf8"));
|
|
12
|
-
return { status: "found", payload };
|
|
13
|
-
}
|
|
14
|
-
catch {
|
|
15
|
-
return { status: "error", message: "Failed to parse last error file." };
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=mcp-last-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-last-error.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-last-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,UAAU,eAAe;IAC7B,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,0BAA0B,CAAC,CAAC;IACpF,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACjE,CAAC;IACD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAsB,CAAC;QAClF,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC1E,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type McpErrorBody, type PinMissionResult } from "./mcp-governance-shared.js";
|
|
2
|
-
export declare function handlePinMission(missionFilePath: string): PinMissionResult | {
|
|
3
|
-
status: "error";
|
|
4
|
-
error: McpErrorBody;
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=mcp-pin-mission.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-pin-mission.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-pin-mission.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,4BAA4B,CAAC;AAIpC,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,gBAAgB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAerH"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { mcpError, resolveGuardedMissionAbs, } from "./mcp-governance-shared.js";
|
|
2
|
-
import { pinActiveMission } from "./missions/parser.js";
|
|
3
|
-
import { loadWorkspace } from "./workspace.js";
|
|
4
|
-
export function handlePinMission(missionFilePath) {
|
|
5
|
-
const { root } = loadWorkspace();
|
|
6
|
-
const resolution = resolveGuardedMissionAbs(root, missionFilePath);
|
|
7
|
-
if (resolution.kind === "denied")
|
|
8
|
-
return resolution.error;
|
|
9
|
-
try {
|
|
10
|
-
const rel = pinActiveMission(root, resolution.missionAbs);
|
|
11
|
-
return {
|
|
12
|
-
status: "pinned",
|
|
13
|
-
mission_file_path: rel,
|
|
14
|
-
message: `Pinned active mission: ${rel}`,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
catch {
|
|
18
|
-
return mcpError("MISSION_NOT_FOUND", `mission file not found: ${missionFilePath}`, true);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=mcp-pin-mission.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-pin-mission.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-pin-mission.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,wBAAwB,GAGzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,UAAU,gBAAgB,CAAC,eAAuB;IACtD,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC;IACjC,MAAM,UAAU,GAAG,wBAAwB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACnE,IAAI,UAAU,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IAE1D,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;QAC1D,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,iBAAiB,EAAE,GAAG;YACtB,OAAO,EAAE,0BAA0B,GAAG,EAAE;SACzC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC,mBAAmB,EAAE,2BAA2B,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC;IAC3F,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-resolve-mission.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-resolve-mission.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGvE,wBAAgB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAgB5E"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { resolvePinnedMission } from "./missions/parser.js";
|
|
2
|
-
import { loadWorkspace } from "./workspace.js";
|
|
3
|
-
export function handleResolveMission(explicit) {
|
|
4
|
-
const { root } = loadWorkspace();
|
|
5
|
-
const resolved = resolvePinnedMission(root, {
|
|
6
|
-
explicit,
|
|
7
|
-
profile: "full",
|
|
8
|
-
});
|
|
9
|
-
if (resolved) {
|
|
10
|
-
return { status: "resolved", mission_file_path: resolved };
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
status: "unpinned",
|
|
14
|
-
mission_file_path: null,
|
|
15
|
-
message: "No active mission pinned. Run Mission Architect / gxt_draft_legislation first.",
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=mcp-resolve-mission.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-resolve-mission.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-resolve-mission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,UAAU,oBAAoB,CAAC,QAAiB;IACpD,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,oBAAoB,CAAC,IAAI,EAAE;QAC1C,QAAQ;QACR,OAAO,EAAE,MAAM;KAChB,CAAC,CAAC;IAEH,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IAC7D,CAAC;IAED,OAAO;QACL,MAAM,EAAE,UAAU;QAClB,iBAAiB,EAAE,IAAI;QACvB,OAAO,EAAE,gFAAgF;KAC1F,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-stdin.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/program-stdin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-stdin.js","sourceRoot":"","sources":["../../../src/cli/lib/program-stdin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ResolvedMissionArg } from "./mission-arg.js";
|
|
2
|
-
import type { Manifest, ParsedMission } from "./types.js";
|
|
3
|
-
import type { VerifyOptions } from "./verify-options.js";
|
|
4
|
-
/** Shared verify orchestration context (load once, present by sink). */
|
|
5
|
-
export interface VerifyPresentContext {
|
|
6
|
-
root: string;
|
|
7
|
-
manifest: Manifest;
|
|
8
|
-
mission: ParsedMission;
|
|
9
|
-
/** Flag vs pin resolution — single source for mission_source in payloads. */
|
|
10
|
-
resolved: ResolvedMissionArg;
|
|
11
|
-
options: VerifyOptions;
|
|
12
|
-
/** Set after tryWriteReceiptIfRequested when --receipt was requested. */
|
|
13
|
-
receiptPath?: string;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=verify-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verify-context.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/verify-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,6EAA6E;IAC7E,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC;IACvB,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verify-context.js","sourceRoot":"","sources":["../../../src/cli/lib/verify-context.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { VerifyPhaseResult } from "./verify-engine.js";
|
|
2
|
-
import type { VerifyOptions } from "./verify-options.js";
|
|
3
|
-
import type { ParsedMission } from "./types.js";
|
|
4
|
-
export declare function maybeWriteVerifyReceipt(input: {
|
|
5
|
-
root: string;
|
|
6
|
-
mission: ParsedMission;
|
|
7
|
-
missionArg: string;
|
|
8
|
-
options: VerifyOptions;
|
|
9
|
-
result: VerifyPhaseResult;
|
|
10
|
-
breakGlass?: boolean;
|
|
11
|
-
}): {
|
|
12
|
-
receiptPath: string | null;
|
|
13
|
-
exportPath: string | null;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=verify-receipt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verify-receipt.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/verify-receipt.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAchD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG;IAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CA+C5D"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import { buildAttestationReceipt, writeAttestationReceipt, } from "./attestation-receipt.js";
|
|
3
|
-
import { writeAttestationExportEnvelope } from "./attestation-export.js";
|
|
4
|
-
import { normalizeVerifyPhaseFailure } from "./verify-failure-normalize.js";
|
|
5
|
-
function wantsReceiptOrExport(options) {
|
|
6
|
-
return options.receipt !== undefined || !!options.exportPath?.trim();
|
|
7
|
-
}
|
|
8
|
-
function resolveReceiptOutPath(options) {
|
|
9
|
-
if (options.receipt === undefined)
|
|
10
|
-
return undefined;
|
|
11
|
-
if (typeof options.receipt === "string" && options.receipt.trim()) {
|
|
12
|
-
return options.receipt.trim();
|
|
13
|
-
}
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
export function maybeWriteVerifyReceipt(input) {
|
|
17
|
-
if (!wantsReceiptOrExport(input.options)) {
|
|
18
|
-
return { receiptPath: null, exportPath: null };
|
|
19
|
-
}
|
|
20
|
-
const verifyStatus = input.breakGlass === true ? "failed" : input.result.ok ? "passed" : "failed";
|
|
21
|
-
let errorCode;
|
|
22
|
-
if (input.breakGlass === true) {
|
|
23
|
-
errorCode = "BREAK_GLASS";
|
|
24
|
-
if (input.options.breakGlassReason?.trim()) {
|
|
25
|
-
errorCode = `BREAK_GLASS:${input.options.breakGlassReason.trim().slice(0, 120)}`;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
else if (!input.result.ok) {
|
|
29
|
-
const normalized = normalizeVerifyPhaseFailure({
|
|
30
|
-
failure: input.result,
|
|
31
|
-
missionArg: input.missionArg,
|
|
32
|
-
options: input.options,
|
|
33
|
-
root: input.root,
|
|
34
|
-
msnId: input.mission.msnId ?? undefined,
|
|
35
|
-
mission: input.mission,
|
|
36
|
-
});
|
|
37
|
-
errorCode = normalized.error_code;
|
|
38
|
-
}
|
|
39
|
-
const receipt = buildAttestationReceipt({
|
|
40
|
-
root: input.root,
|
|
41
|
-
mission: input.mission,
|
|
42
|
-
missionArg: input.missionArg,
|
|
43
|
-
verifyStatus,
|
|
44
|
-
errorCode,
|
|
45
|
-
sign: input.options.signReceipt === true,
|
|
46
|
-
});
|
|
47
|
-
let receiptPath = null;
|
|
48
|
-
if (input.options.receipt !== undefined) {
|
|
49
|
-
const explicitOut = resolveReceiptOutPath(input.options);
|
|
50
|
-
const written = writeAttestationReceipt(input.root, receipt, explicitOut);
|
|
51
|
-
receiptPath = path.resolve(input.root, written);
|
|
52
|
-
}
|
|
53
|
-
let exportPath = null;
|
|
54
|
-
const exportOut = input.options.exportPath?.trim();
|
|
55
|
-
if (exportOut) {
|
|
56
|
-
exportPath = writeAttestationExportEnvelope(input.root, receipt, exportOut);
|
|
57
|
-
}
|
|
58
|
-
return { receiptPath, exportPath };
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=verify-receipt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verify-receipt.js","sourceRoot":"","sources":["../../../src/cli/lib/verify-receipt.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-blueprint.d.ts","sourceRoot":"","sources":["../../src/cli/program-blueprint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAWhE"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { runBlueprintCommand } from "./commands/blueprint.js";
|
|
2
|
-
export function registerBlueprintCommands(program) {
|
|
3
|
-
program
|
|
4
|
-
.command("blueprint")
|
|
5
|
-
.description("Co-author ARCHITECTURE.md, TARGET_ARCHITECTURE.yaml, and verification_plan.json from discovery interview")
|
|
6
|
-
.option("--yes", "Accept defaults without interactive prompts")
|
|
7
|
-
.option("--domain <key>", "Domain adapter (code | content)", "code")
|
|
8
|
-
.action(async (opts) => {
|
|
9
|
-
await runBlueprintCommand({ yes: opts.yes, domain: opts.domain });
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=program-blueprint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-blueprint.js","sourceRoot":"","sources":["../../src/cli/program-blueprint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,UAAU,yBAAyB,CAAC,OAAgB;IACxD,OAAO;SACJ,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CACV,0GAA0G,CAC3G;SACA,MAAM,CAAC,OAAO,EAAE,6CAA6C,CAAC;SAC9D,MAAM,CAAC,gBAAgB,EAAE,iCAAiC,EAAE,MAAM,CAAC;SACnE,MAAM,CAAC,KAAK,EAAE,IAAwC,EAAE,EAAE;QACzD,MAAM,mBAAmB,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-init-options.d.ts","sourceRoot":"","sources":["../../src/cli/program-init-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CA6BpD"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** Shared `gantry init` Commander flags (used by init command registration). */
|
|
2
|
-
export function addInitOptions(cmd) {
|
|
3
|
-
return cmd
|
|
4
|
-
.option("--force", "Overwrite managed assets on conflict without prompting")
|
|
5
|
-
.option("--yes", "Use default profile without interactive wizard")
|
|
6
|
-
.option("--dry-run", "Print planned writes without applying")
|
|
7
|
-
.option("--ides <csv>", "Comma-separated IDE keys (cursor, claude-code, …)")
|
|
8
|
-
.option("--docs-path <path>", "Repo-relative integrations doc path")
|
|
9
|
-
.option("--skills <preset>", "Skills preset: minimal | specimen")
|
|
10
|
-
.option("--hooks", "Install git hooks")
|
|
11
|
-
.option("--no-hooks", "Skip git hooks")
|
|
12
|
-
.option("--ci", "Install CI workflow")
|
|
13
|
-
.option("--no-ci", "Skip CI workflow")
|
|
14
|
-
.option("--arch-source <kind>", "Architecture source: unset | file | directory | external")
|
|
15
|
-
.option("--arch-location <path>", "Architecture file path, folder, or external URL")
|
|
16
|
-
.option("--defensive-profile <preset>", "Defensive profile preset: strict_enterprise | balanced_partner | lean_scratchpad")
|
|
17
|
-
.option("--no-defensive-profile", "Skip defensive profile preset (template defaults)")
|
|
18
|
-
.option("--discover", "Run fast-path architecture discovery (emits proposal only until confirmed)")
|
|
19
|
-
.option("--discover-stdout", "Emit discovery proposal JSON to stdout (implies --discover)")
|
|
20
|
-
.option("--domain <key>", "Domain adapter for discovery (code | content)", "code")
|
|
21
|
-
.option("--tutorial", "After init, run guided first mission loop (Planner stamp + verify walkthrough)");
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=program-init-options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-init-options.js","sourceRoot":"","sources":["../../src/cli/program-init-options.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,OAAO,GAAG;SACP,MAAM,CAAC,SAAS,EAAE,wDAAwD,CAAC;SAC3E,MAAM,CAAC,OAAO,EAAE,gDAAgD,CAAC;SACjE,MAAM,CAAC,WAAW,EAAE,uCAAuC,CAAC;SAC5D,MAAM,CAAC,cAAc,EAAE,mDAAmD,CAAC;SAC3E,MAAM,CAAC,oBAAoB,EAAE,qCAAqC,CAAC;SACnE,MAAM,CAAC,mBAAmB,EAAE,mCAAmC,CAAC;SAChE,MAAM,CAAC,SAAS,EAAE,mBAAmB,CAAC;SACtC,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC;SACtC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC;SACrC,MAAM,CAAC,SAAS,EAAE,kBAAkB,CAAC;SACrC,MAAM,CAAC,sBAAsB,EAAE,0DAA0D,CAAC;SAC1F,MAAM,CAAC,wBAAwB,EAAE,iDAAiD,CAAC;SACnF,MAAM,CACL,8BAA8B,EAC9B,kFAAkF,CACnF;SACA,MAAM,CAAC,wBAAwB,EAAE,mDAAmD,CAAC;SACrF,MAAM,CACL,YAAY,EACZ,4EAA4E,CAC7E;SACA,MAAM,CAAC,mBAAmB,EAAE,6DAA6D,CAAC;SAC1F,MAAM,CAAC,gBAAgB,EAAE,+CAA+C,EAAE,MAAM,CAAC;SACjF,MAAM,CACL,YAAY,EACZ,gFAAgF,CACjF,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-planner.d.ts","sourceRoot":"","sources":["../../src/cli/program-planner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAkB9D"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { runPlannerSet, runPlannerShow } from "./commands/planner.js";
|
|
2
|
-
export function registerPlannerCommands(program) {
|
|
3
|
-
const planner = program.command("planner").description("Repo-local Planner identity (git-proof allowlist)");
|
|
4
|
-
planner
|
|
5
|
-
.command("show")
|
|
6
|
-
.description("Show resolved Planner emails and source for this repository")
|
|
7
|
-
.option("--json", "Emit structured JSON")
|
|
8
|
-
.action((opts) => {
|
|
9
|
-
runPlannerShow({ json: opts.json });
|
|
10
|
-
});
|
|
11
|
-
planner
|
|
12
|
-
.command("set")
|
|
13
|
-
.description(`Write ${".gitagent/foreman/PLANNER.allowlist.local"} (gitignored, per-repo)`)
|
|
14
|
-
.argument("<emails...>", "One or more Planner emails (comma-separated ok)")
|
|
15
|
-
.action((emails) => {
|
|
16
|
-
runPlannerSet({ emails });
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=program-planner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program-planner.js","sourceRoot":"","sources":["../../src/cli/program-planner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACtD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,mDAAmD,CAAC,CAAC;IAE5G,OAAO;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,6DAA6D,CAAC;SAC1E,MAAM,CAAC,QAAQ,EAAE,sBAAsB,CAAC;SACxC,MAAM,CAAC,CAAC,IAAwB,EAAE,EAAE;QACnC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEL,OAAO;SACJ,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,SAAS,2CAA2C,yBAAyB,CAAC;SAC1F,QAAQ,CAAC,aAAa,EAAE,iDAAiD,CAAC;SAC1E,MAAM,CAAC,CAAC,MAAgB,EAAE,EAAE;QAC3B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;AACP,CAAC"}
|