@dungle-scrubs/harness-cli-normalizer 0.5.4 → 0.5.6
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 +3 -2
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +16 -8
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +11 -4
- package/dist/cli/config.js.map +1 -1
- package/dist/cli/help.d.ts +3 -3
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +32 -23
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/inspect.d.ts.map +1 -1
- package/dist/cli/inspect.js +10 -7
- package/dist/cli/inspect.js.map +1 -1
- package/dist/cli/render.d.ts +15 -1
- package/dist/cli/render.d.ts.map +1 -1
- package/dist/cli/render.js +18 -2
- package/dist/cli/render.js.map +1 -1
- package/dist/cli/resume-guard.js +29 -2
- package/dist/cli/resume-guard.js.map +1 -1
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +35 -34
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/session-json.d.ts +5 -2
- package/dist/cli/session-json.d.ts.map +1 -1
- package/dist/cli/session-json.js +36 -5
- package/dist/cli/session-json.js.map +1 -1
- package/dist/cli/session.d.ts.map +1 -1
- package/dist/cli/session.js +103 -36
- package/dist/cli/session.js.map +1 -1
- package/dist/execution/events.d.ts +8 -1
- package/dist/execution/events.d.ts.map +1 -1
- package/dist/execution/events.js.map +1 -1
- package/dist/execution/open-session.d.ts +7 -6
- package/dist/execution/open-session.d.ts.map +1 -1
- package/dist/execution/open-session.js +88 -59
- package/dist/execution/open-session.js.map +1 -1
- package/dist/execution/stream-turn.d.ts +4 -7
- package/dist/execution/stream-turn.d.ts.map +1 -1
- package/dist/execution/stream-turn.js +43 -22
- package/dist/execution/stream-turn.js.map +1 -1
- package/dist/interpretation/argv.d.ts +9 -5
- package/dist/interpretation/argv.d.ts.map +1 -1
- package/dist/interpretation/argv.js +2 -7
- package/dist/interpretation/argv.js.map +1 -1
- package/dist/interpretation/capabilities.d.ts +20 -0
- package/dist/interpretation/capabilities.d.ts.map +1 -1
- package/dist/interpretation/capabilities.js +27 -0
- package/dist/interpretation/capabilities.js.map +1 -1
- package/dist/interpretation/hints.js +1 -1
- package/dist/interpretation/hints.js.map +1 -1
- package/dist/interpretation/question.d.ts +6 -2
- package/dist/interpretation/question.d.ts.map +1 -1
- package/dist/interpretation/question.js +13 -4
- package/dist/interpretation/question.js.map +1 -1
- package/dist/interpretation/refusal.d.ts +1 -1
- package/dist/interpretation/refusal.d.ts.map +1 -1
- package/dist/interpretation/refusal.js +1 -1
- package/dist/interpretation/refusal.js.map +1 -1
- package/dist/interpretation/skills-selection.d.ts +18 -1
- package/dist/interpretation/skills-selection.d.ts.map +1 -1
- package/dist/interpretation/skills-selection.js +33 -6
- package/dist/interpretation/skills-selection.js.map +1 -1
- package/dist/knowledge/claude-code.d.ts.map +1 -1
- package/dist/knowledge/claude-code.js +21 -0
- package/dist/knowledge/claude-code.js.map +1 -1
- package/dist/knowledge/codex.d.ts.map +1 -1
- package/dist/knowledge/codex.js +16 -6
- package/dist/knowledge/codex.js.map +1 -1
- package/dist/knowledge/descriptor.d.ts +39 -12
- package/dist/knowledge/descriptor.d.ts.map +1 -1
- package/dist/knowledge/descriptor.js +1 -0
- package/dist/knowledge/descriptor.js.map +1 -1
- package/dist/knowledge/muse.d.ts.map +1 -1
- package/dist/knowledge/muse.js +7 -0
- package/dist/knowledge/muse.js.map +1 -1
- package/dist/knowledge/pi.d.ts.map +1 -1
- package/dist/knowledge/pi.js +23 -4
- package/dist/knowledge/pi.js.map +1 -1
- package/package.json +3 -2
- package/src/cli/args.ts +16 -6
- package/src/cli/config.ts +13 -4
- package/src/cli/help.ts +32 -23
- package/src/cli/inspect.ts +8 -6
- package/src/cli/render.ts +18 -1
- package/src/cli/resume-guard.ts +26 -2
- package/src/cli/run.ts +36 -38
- package/src/cli/session-json.ts +45 -7
- package/src/cli/session.ts +122 -40
- package/src/execution/events.ts +9 -1
- package/src/execution/open-session.ts +99 -72
- package/src/execution/stream-turn.ts +53 -30
- package/src/interpretation/argv.ts +11 -12
- package/src/interpretation/capabilities.ts +50 -0
- package/src/interpretation/hints.ts +1 -1
- package/src/interpretation/question.ts +17 -7
- package/src/interpretation/refusal.ts +2 -1
- package/src/interpretation/skills-selection.ts +46 -8
- package/src/knowledge/claude-code.ts +21 -0
- package/src/knowledge/codex.ts +16 -6
- package/src/knowledge/descriptor.ts +40 -12
- package/src/knowledge/muse.ts +7 -0
- package/src/knowledge/pi.ts +23 -4
package/src/knowledge/pi.ts
CHANGED
|
@@ -55,10 +55,22 @@ export const piCli: HarnessDescriptor = deepFreeze({
|
|
|
55
55
|
// slice remains the proven vertical (D-003); this entry is the second.
|
|
56
56
|
sessionMode: {
|
|
57
57
|
flags: ["--mode", "rpc"],
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
|
|
58
|
+
// pi has TWO flags with similar names and opposite unknown-id behaviour:
|
|
59
|
+
// `--session <path|id>` requires an EXISTING id (live-verified
|
|
60
|
+
// "No session found" on a fresh uuid) while `--session-id <id>` creates
|
|
61
|
+
// it if missing. Session mode uses `--session-id`, the flag the one-shot
|
|
62
|
+
// resume grammar also uses (resume.flag). That is why `idFlag` is
|
|
63
|
+
// `--session-id` here and not null - the earlier `idFlag: null` comment
|
|
64
|
+
// described `--session`, a different flag. Verified phase10
|
|
65
|
+
// (test/fixtures/phase10-pi-rpc-resume): a second `pi --mode rpc
|
|
66
|
+
// --session-id <id>` against the same id restored the codeword
|
|
67
|
+
// "pomegranate" (rpc-resume.ndjson), while the first established it
|
|
68
|
+
// and warned on stderr "creating a new session with that id"
|
|
69
|
+
// (rpc-establish.stderr.txt). An unknown id is therefore created with
|
|
70
|
+
// a stderr warning, which is what `resume.onMissing: "create"` already
|
|
71
|
+
// records for the one-shot grammar - no duplication in sessionMode.
|
|
72
|
+
idFlag: "--session-id",
|
|
73
|
+
resumeFlag: "--session-id",
|
|
62
74
|
input: { kind: "pi-rpc-prompt" },
|
|
63
75
|
turnEnd: { type: "agent_settled" },
|
|
64
76
|
identityProbe: { command: "get_state" },
|
|
@@ -119,6 +131,13 @@ export const piCli: HarnessDescriptor = deepFreeze({
|
|
|
119
131
|
},
|
|
120
132
|
session: true,
|
|
121
133
|
},
|
|
134
|
+
// Escalation provenance transcribed from test/fixtures/phase7-questions/,
|
|
135
|
+
// committed 2026-08-19. `model` is empty because no fixture on that stream
|
|
136
|
+
// records a model id - absence of evidence, not an unset field.
|
|
137
|
+
escalation: {
|
|
138
|
+
supported: true,
|
|
139
|
+
observedOn: { harness: "pi", model: "", version: "0.84.2", date: "2026-08-19" },
|
|
140
|
+
},
|
|
122
141
|
turnOptions: {
|
|
123
142
|
effort: { kind: "effort", render: { kind: "flag-value", flag: "--thinking" } },
|
|
124
143
|
provider: { kind: "selector", render: { kind: "flag-value", flag: "--provider" } },
|