@warpgogol/forge 10.8.1 → 10.9.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/AGENTS.md +5 -5
- package/CHANGELOG.md +9 -0
- package/bin/cli.ts +2 -2
- package/dist/bin/cli.js +2 -2
- package/dist/bin/cli.js.map +1 -1
- package/dist/os/adr/handlers/archive.js +1 -1
- package/dist/os/adr/handlers/archive.js.map +1 -1
- package/dist/os/agent-tools/agent-tools.module.js +1 -1
- package/dist/os/agent-tools/handlers/tools-generate.js +1 -1
- package/dist/os/agent-tools/handlers/tools-generate.js.map +1 -1
- package/dist/os/agent-tools/serve.js +2 -2
- package/dist/os/agent-tools/serve.js.map +1 -1
- package/dist/os/agent-tools/server.d.ts.map +1 -1
- package/dist/os/agent-tools/server.js +3 -7
- package/dist/os/agent-tools/server.js.map +1 -1
- package/dist/os/audit/handlers/archive.js +1 -1
- package/dist/os/audit/handlers/archive.js.map +1 -1
- package/dist/os/context/handlers/context-assemble.js +1 -1
- package/dist/os/context/handlers/context-assemble.js.map +1 -1
- package/dist/os/core/handlers/package-health.d.ts +1 -1
- package/dist/os/core/handlers/package-health.js +2 -2
- package/dist/os/core/handlers/package-health.js.map +1 -1
- package/dist/os/flow/handlers/flow-hold.js +1 -1
- package/dist/os/flow/handlers/flow-integrate.js +4 -4
- package/dist/os/flow/handlers/flow-integrate.js.map +1 -1
- package/dist/os/flow/preflight.js +2 -2
- package/dist/os/flow/preflight.js.map +1 -1
- package/dist/os/flow/standalone-invoke.d.ts +2 -2
- package/dist/os/flow/standalone-invoke.js +5 -5
- package/dist/os/flow/standalone-invoke.js.map +1 -1
- package/dist/os/plan/handlers/archive.js +1 -1
- package/dist/os/plan/handlers/archive.js.map +1 -1
- package/dist/os/rfc/acceptance.d.ts.map +1 -1
- package/dist/os/rfc/acceptance.js +7 -6
- package/dist/os/rfc/acceptance.js.map +1 -1
- package/dist/os/rfc/handlers/archive.js +2 -2
- package/dist/os/rfc/handlers/archive.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
- package/dist/os/rfc/handlers/index-graph.js +2 -2
- package/dist/os/rfc/handlers/index-graph.js.map +1 -1
- package/dist/os/rfc/handlers/list-create.js +2 -2
- package/dist/os/rfc/handlers/list-create.js.map +1 -1
- package/dist/os/rfc/handlers/rfc-evidence-sync.js +1 -1
- package/dist/os/rfc/handlers/rfc-evidence-sync.js.map +1 -1
- package/dist/os/rfc/verification-evidence.js +3 -3
- package/dist/os/rfc/verification-evidence.js.map +1 -1
- package/dist/os/rfc/verification-origin.js +1 -1
- package/dist/os/rfc/verification-origin.js.map +1 -1
- package/dist/os/session/handlers/archive.js +1 -1
- package/dist/os/session/handlers/archive.js.map +1 -1
- package/dist/os/spec/live-spec-merge.js +1 -1
- package/dist/os/spec/live-spec-merge.js.map +1 -1
- package/dist/os/spec/live-spec-rebuild.js +1 -1
- package/dist/os/spec/live-spec-rebuild.js.map +1 -1
- package/dist/src/onboarding/agents-generate.js +1 -1
- package/dist/src/reachability/command-mentions.d.ts +2 -1
- package/dist/src/reachability/command-mentions.d.ts.map +1 -1
- package/dist/src/reachability/command-mentions.js +4 -3
- package/dist/src/reachability/command-mentions.js.map +1 -1
- package/dist/src/utils/command-inventory.js +1 -1
- package/dist/src/utils/generated-marker.d.ts +1 -1
- package/dist/src/validators/skill-validate.js +1 -1
- package/dist/src/validators/skill-validate.js.map +1 -1
- package/docs/maintainers/publishing.md +3 -3
- package/docs/reference/cli.md +3 -3
- package/docs/reference/system-hub.md +5 -5
- package/os/adr/handlers/archive.ts +1 -1
- package/os/agent-tools/agent-tools.module.ts +1 -1
- package/os/agent-tools/handlers/tools-generate.ts +1 -1
- package/os/agent-tools/serve.ts +2 -2
- package/os/agent-tools/server.ts +3 -7
- package/os/audit/handlers/archive.ts +1 -1
- package/os/conformance/handlers/tests/conformance.test.ts +3 -3
- package/os/context/handlers/context-assemble.ts +1 -1
- package/os/core/docs-archive.test.ts +1 -1
- package/os/core/handlers/package-health.ts +2 -2
- package/os/flow/handlers/flow-hold.ts +1 -1
- package/os/flow/handlers/flow-integrate.ts +4 -4
- package/os/flow/preflight.ts +2 -2
- package/os/flow/standalone-invoke.ts +5 -5
- package/os/flow/tests/flow-hold.test.ts +1 -1
- package/os/flow/tests/flow-integrate.preflight.test.ts +1 -1
- package/os/flow/tests/flow-integrate.test.ts +1 -1
- package/os/flow/tests/flow-push.test.ts +1 -1
- package/os/gate-run/tests/gate-run-detach.test.ts +1 -1
- package/os/plan/handlers/archive.ts +1 -1
- package/os/plan/plan-0000-template.md +8 -8
- package/os/rfc/acceptance-reachable.test.ts +4 -4
- package/os/rfc/acceptance.ts +7 -6
- package/os/rfc/handlers/archive.ts +2 -2
- package/os/rfc/handlers/implement-stamp-outcome.test.ts +9 -9
- package/os/rfc/handlers/implement-stamp.ts +1 -1
- package/os/rfc/handlers/index-graph.ts +2 -2
- package/os/rfc/handlers/list-create.ts +2 -2
- package/os/rfc/handlers/rfc-evidence-sync.ts +1 -1
- package/os/rfc/handlers/validate-rules-rfc1453.test.ts +2 -2
- package/os/rfc/handlers/validate-transient-probes.test.ts +5 -5
- package/os/rfc/rfc-0000-template.md +1 -1
- package/os/rfc/rfc-create-hint.test.ts +3 -5
- package/os/rfc/verification-emit-freshness.test.ts +1 -1
- package/os/rfc/verification-emit.test.ts +1 -1
- package/os/rfc/verification-evidence.ts +3 -3
- package/os/rfc/verification-normalize.test.ts +2 -2
- package/os/rfc/verification-origin.test.ts +1 -1
- package/os/rfc/verification-origin.ts +1 -1
- package/os/rfc/verification-refresh.test.ts +1 -1
- package/os/session/fixtures/audit/clean.md +1 -1
- package/os/session/fixtures/audit/denied-retry.md +2 -2
- package/os/session/handlers/archive.ts +1 -1
- package/os/session/handlers/session-audit-detectors.test.ts +8 -8
- package/os/session/handlers/session-audit-report.test.ts +1 -1
- package/os/session/handlers/session-audit.test.ts +2 -2
- package/os/spec/live-spec-merge.test.ts +2 -2
- package/os/spec/live-spec-merge.ts +1 -1
- package/os/spec/live-spec-rebuild.ts +1 -1
- package/package.json +161 -161
- package/profiles/godot-game.yaml +4 -4
- package/profiles/phaser-game.yaml +4 -4
- package/profiles/site-workshop.yaml +6 -6
- package/skills/fo/fo-doctor/SKILL.md +1 -1
- package/skills/fo/fo-idea-create-adr/SKILL.md +1 -1
- package/skills/fo/fo-idea-create-rfc/SKILL.md +1 -1
- package/skills/fo/fo-idea-i-just-want-to-see-the-result/SKILL.md +1 -1
- package/skills/fo/fo-outbox/SKILL.md +1 -1
- package/skills/fo/fo-session-retro/SKILL.md +6 -6
- package/skills/fo/fo-step-commit/SKILL.md +1 -1
- package/src/onboarding/agents-generate.ts +1 -1
- package/src/reachability/command-mentions.ts +4 -4
- package/src/tests/acceptance-probe-kinds.test.ts +1 -1
- package/src/tests/forge-config.test.ts +5 -5
- package/src/tests/generated-marker.test.ts +2 -2
- package/src/utils/command-inventory.ts +1 -1
- package/src/utils/generated-marker.ts +1 -1
- package/src/validators/skill-validate.ts +1 -1
|
@@ -166,7 +166,7 @@ describe("rfc.verification.emit — baseline emission", () => {
|
|
|
166
166
|
expect(raw).toMatch(/^generatedMarker: GENERATED\./);
|
|
167
167
|
expect(raw).toContain("doNotEdit: DO NOT EDIT THIS FILE.");
|
|
168
168
|
expect(raw).toContain("ownerCommand: rfc.verification.emit");
|
|
169
|
-
expect(raw).toContain("regenerateCommand: pnpm exec
|
|
169
|
+
expect(raw).toContain("regenerateCommand: pnpm exec forge rfc.verification.emit");
|
|
170
170
|
expect(raw).toContain("rfcId: RFC-0100");
|
|
171
171
|
expect(raw).toContain("overall: pass");
|
|
172
172
|
expect(raw.split("\n").every((line) => !line.startsWith("#"))).toBe(true);
|
|
@@ -257,8 +257,8 @@ async function freshnessPrecheck(
|
|
|
257
257
|
.map((a) => {
|
|
258
258
|
const remedy =
|
|
259
259
|
a.owner && EVIDENCE_SYNC_STEPS.includes(a.owner)
|
|
260
|
-
? `
|
|
261
|
-
: `
|
|
260
|
+
? `forge rfc.evidence.sync --id ${rfcId}`
|
|
261
|
+
: `forge ${a.owner ?? "<generator>"}`;
|
|
262
262
|
return `"${a.path}" (${a.verdict}, owner: ${a.owner ?? "unowned"}, remedy: ${remedy})`;
|
|
263
263
|
})
|
|
264
264
|
.join("; ");
|
|
@@ -404,7 +404,7 @@ export function serializeEvidenceEnvelope(envelope: VerificationEvidence): strin
|
|
|
404
404
|
return `${yamlStringify({
|
|
405
405
|
...generatedHeaderFields({
|
|
406
406
|
ownerCommand: "rfc.verification.emit",
|
|
407
|
-
commandPrefix: "pnpm exec
|
|
407
|
+
commandPrefix: "pnpm exec forge",
|
|
408
408
|
}),
|
|
409
409
|
...envelope,
|
|
410
410
|
})}\n`;
|
|
@@ -51,10 +51,10 @@ describe("normalizeProbes — acceptanceHash identity (RFC-1271)", () => {
|
|
|
51
51
|
// probe interiors (expect.exitCode, schemaInline) serialize as {} and
|
|
52
52
|
// never reach acceptanceHash.
|
|
53
53
|
const base = [
|
|
54
|
-
{ probe: "run", command: "
|
|
54
|
+
{ probe: "run", command: "forge x.validate", expect: { exitCode: 0 }, criterion: "AC-1" },
|
|
55
55
|
] as AcceptanceProbe[];
|
|
56
56
|
const nestedChanged = [
|
|
57
|
-
{ probe: "run", command: "
|
|
57
|
+
{ probe: "run", command: "forge x.validate", expect: { exitCode: 1 }, criterion: "AC-1" },
|
|
58
58
|
] as AcceptanceProbe[];
|
|
59
59
|
expect(hash(base)).not.toBe(hash(nestedChanged));
|
|
60
60
|
|
|
@@ -124,7 +124,7 @@ describe("deriveProbeOrigins (RFC-1330)", () => {
|
|
|
124
124
|
const runProbe: AcceptanceProbe = {
|
|
125
125
|
probe: "run",
|
|
126
126
|
criterion: "AC-2",
|
|
127
|
-
command: "
|
|
127
|
+
command: "forge demo.validate --json",
|
|
128
128
|
expect: { exitCode: 0 },
|
|
129
129
|
};
|
|
130
130
|
await commit("accept", {
|
|
@@ -623,7 +623,7 @@ async function declarationIntroductions(
|
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
function runCommandName(command: string): string | null {
|
|
626
|
-
const match = /^(?:pnpm\s+exec\s+)?
|
|
626
|
+
const match = /^(?:pnpm\s+exec\s+)?forge\s+(\S+)/.exec(command.trim());
|
|
627
627
|
return match?.[1] ?? null;
|
|
628
628
|
}
|
|
629
629
|
|
|
@@ -463,7 +463,7 @@ describe("rfc.verification.refresh — RFC-1237 AC-2: emit-canonical header", ()
|
|
|
463
463
|
// Structured marker keys — identical-by-construction to what emit writes.
|
|
464
464
|
expect(raw).toMatch(/^generatedMarker: GENERATED\./);
|
|
465
465
|
expect(raw).toContain("ownerCommand: rfc.verification.emit");
|
|
466
|
-
expect(raw).toContain("regenerateCommand: pnpm exec
|
|
466
|
+
expect(raw).toContain("regenerateCommand: pnpm exec forge rfc.verification.emit");
|
|
467
467
|
// Refresh never stamps itself as owner — it is a conditional secondary writer.
|
|
468
468
|
expect(raw).not.toContain("rfc.verification.refresh");
|
|
469
469
|
} finally {
|
|
@@ -4,7 +4,7 @@ remainingIssues: ["a blocker"]
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
### Assistant
|
|
7
|
-
Ran `
|
|
7
|
+
Ran `forge rfc.validate --json` — rejected: staged files outside scope.
|
|
8
8
|
|
|
9
9
|
### Assistant
|
|
10
|
-
Ran `
|
|
10
|
+
Ran `forge rfc.validate --json` again — same failure.
|
|
@@ -276,7 +276,7 @@ export async function runSessionArchive(
|
|
|
276
276
|
: `Moved ${moved.length} file(s), skipped ${skipped.length}`,
|
|
277
277
|
nextSteps: [
|
|
278
278
|
{
|
|
279
|
-
action: "Run: pnpm exec
|
|
279
|
+
action: "Run: pnpm exec forge session.list --json to verify archive status",
|
|
280
280
|
kind: "optional",
|
|
281
281
|
},
|
|
282
282
|
],
|
|
@@ -14,21 +14,21 @@ import { test, expect, describe } from "vitest";
|
|
|
14
14
|
import { auditSessionBody } from "./session-audit.ts";
|
|
15
15
|
|
|
16
16
|
const CIRCUMVENTION = `### Assistant
|
|
17
|
-
Ran \`
|
|
17
|
+
Ran \`forge ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
|
|
18
18
|
|
|
19
19
|
### Assistant
|
|
20
20
|
Ran \`git commit -m "fix"\` directly — bypassed the gate.
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
23
|
const DENIED_RETRY = `### Assistant
|
|
24
|
-
Ran \`
|
|
24
|
+
Ran \`forge rfc.validate --json\` — rejected: staged files outside scope.
|
|
25
25
|
|
|
26
26
|
### Assistant
|
|
27
|
-
Ran \`
|
|
27
|
+
Ran \`forge rfc.validate --json\` again — same failure.
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
30
|
const BLOCKER_DECEPTION = `### Assistant
|
|
31
|
-
Ran \`
|
|
31
|
+
Ran \`forge ecosystem.commit\` — exit: 0, committed successfully.
|
|
32
32
|
All green, everything works.
|
|
33
33
|
`;
|
|
34
34
|
|
|
@@ -37,14 +37,14 @@ Edited docs/command-manifest.generated.yaml by hand to add the new command.
|
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
39
|
const FALSE_CLAIM = `### Assistant
|
|
40
|
-
Ran \`
|
|
40
|
+
Ran \`forge ecosystem.commit\` — exit: 1, lint blocked.
|
|
41
41
|
|
|
42
42
|
### Assistant
|
|
43
43
|
All green, everything works.
|
|
44
44
|
`;
|
|
45
45
|
|
|
46
46
|
const CLEAN = `### Assistant
|
|
47
|
-
Ran \`
|
|
47
|
+
Ran \`forge rfc.validate --json\` — exit: 0, all checks pass.
|
|
48
48
|
`;
|
|
49
49
|
|
|
50
50
|
describe("auditSessionBody detectors (RFC-1471)", () => {
|
|
@@ -92,9 +92,9 @@ Regenerated docs/command-manifest.generated.yaml via command.manifest.generate.
|
|
|
92
92
|
const suppressed = auditSessionBody(
|
|
93
93
|
"sess-planned",
|
|
94
94
|
`### Assistant
|
|
95
|
-
Ran \`
|
|
95
|
+
Ran \`forge rfc.validate --json\` — rejected: staged files outside scope.
|
|
96
96
|
### Assistant
|
|
97
|
-
Switched to a different approach — split the scope, then ran \`
|
|
97
|
+
Switched to a different approach — split the scope, then ran \`forge rfc.validate --json\` again — passed.
|
|
98
98
|
`,
|
|
99
99
|
{},
|
|
100
100
|
);
|
|
@@ -26,7 +26,7 @@ date: "2026-10-31"
|
|
|
26
26
|
remainingIssues: []
|
|
27
27
|
---
|
|
28
28
|
### Assistant
|
|
29
|
-
Ran \`
|
|
29
|
+
Ran \`forge ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
|
|
30
30
|
### Assistant
|
|
31
31
|
Ran \`git commit -m "fix"\` directly — bypassed.
|
|
32
32
|
`;
|
|
@@ -25,7 +25,7 @@ date: "2026-10-31"
|
|
|
25
25
|
remainingIssues: []
|
|
26
26
|
---
|
|
27
27
|
### Assistant
|
|
28
|
-
Ran \`
|
|
28
|
+
Ran \`forge ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
|
|
29
29
|
### Assistant
|
|
30
30
|
Ran \`git commit -m "fix"\` directly — bypassed.
|
|
31
31
|
`;
|
|
@@ -36,7 +36,7 @@ date: "2026-10-31"
|
|
|
36
36
|
remainingIssues: []
|
|
37
37
|
---
|
|
38
38
|
### Assistant
|
|
39
|
-
Ran \`
|
|
39
|
+
Ran \`forge rfc.validate --json\` — exit: 0, all checks pass.
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
42
|
function ctx(): ForgeRuntimeContext {
|
|
@@ -75,7 +75,7 @@ Some context.
|
|
|
75
75
|
### CLI surface
|
|
76
76
|
|
|
77
77
|
\`\`\`sh
|
|
78
|
-
pnpm exec
|
|
78
|
+
pnpm exec forge spec.live.merge --id RFC-9001
|
|
79
79
|
\`\`\`
|
|
80
80
|
|
|
81
81
|
### TypeScript contracts
|
|
@@ -240,7 +240,7 @@ nonGoals: []
|
|
|
240
240
|
|
|
241
241
|
\`\`\`sh
|
|
242
242
|
### this is a shell comment, not a heading
|
|
243
|
-
|
|
243
|
+
forge spec.live.merge --id RFC-9005
|
|
244
244
|
\`\`\`
|
|
245
245
|
|
|
246
246
|
### TypeScript contracts
|
|
@@ -213,7 +213,7 @@ export async function runSpecLiveMerge(
|
|
|
213
213
|
const header = buildGeneratedHeader({
|
|
214
214
|
filePath: specFilePath,
|
|
215
215
|
ownerCommand: "spec.live.merge",
|
|
216
|
-
commandPrefix: "pnpm exec
|
|
216
|
+
commandPrefix: "pnpm exec forge",
|
|
217
217
|
});
|
|
218
218
|
|
|
219
219
|
const newSpec: LivingSpec = {
|
|
@@ -111,7 +111,7 @@ export async function projectLiveSpec(
|
|
|
111
111
|
const header = buildGeneratedHeader({
|
|
112
112
|
filePath: specFilePath,
|
|
113
113
|
ownerCommand: "spec.live.merge",
|
|
114
|
-
commandPrefix: "pnpm exec
|
|
114
|
+
commandPrefix: "pnpm exec forge",
|
|
115
115
|
});
|
|
116
116
|
// trimEnd so applyDeltas' own "\n\n" separator reproduces the creation path's
|
|
117
117
|
// `seed + designSection` layout exactly — otherwise rebuild inserts an extra
|