@dungle-scrubs/harness-cli-normalizer 0.4.4 → 0.4.5
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 +14 -5
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +8 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +4 -0
- package/dist/cli/config.js.map +1 -1
- package/dist/cli/help.d.ts +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +7 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/inspect.d.ts.map +1 -1
- package/dist/cli/inspect.js +57 -24
- package/dist/cli/inspect.js.map +1 -1
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +125 -65
- package/dist/cli/run.js.map +1 -1
- package/dist/execution/decode.d.ts +3 -3
- package/dist/execution/decode.d.ts.map +1 -1
- package/dist/execution/decode.js +44 -12
- package/dist/execution/decode.js.map +1 -1
- package/dist/execution/deps.d.ts +3 -0
- package/dist/execution/deps.d.ts.map +1 -1
- package/dist/execution/events.d.ts +7 -2
- package/dist/execution/events.d.ts.map +1 -1
- package/dist/execution/events.js.map +1 -1
- package/dist/execution/node-deps.d.ts.map +1 -1
- package/dist/execution/node-deps.js +1 -0
- package/dist/execution/node-deps.js.map +1 -1
- package/dist/execution/open-session.d.ts.map +1 -1
- package/dist/execution/open-session.js +36 -5
- package/dist/execution/open-session.js.map +1 -1
- package/dist/execution/stream-turn.d.ts +4 -0
- package/dist/execution/stream-turn.d.ts.map +1 -1
- package/dist/execution/stream-turn.js +135 -29
- package/dist/execution/stream-turn.js.map +1 -1
- package/dist/interpretation/argv.d.ts +7 -0
- package/dist/interpretation/argv.d.ts.map +1 -1
- package/dist/interpretation/argv.js +24 -4
- package/dist/interpretation/argv.js.map +1 -1
- package/dist/interpretation/capabilities.d.ts.map +1 -1
- package/dist/interpretation/capabilities.js +4 -1
- package/dist/interpretation/capabilities.js.map +1 -1
- package/dist/interpretation/content.d.ts +9 -1
- package/dist/interpretation/content.d.ts.map +1 -1
- package/dist/interpretation/content.js +13 -4
- package/dist/interpretation/content.js.map +1 -1
- package/dist/interpretation/hints.d.ts.map +1 -1
- package/dist/interpretation/hints.js +5 -0
- package/dist/interpretation/hints.js.map +1 -1
- package/dist/interpretation/resolve-options.d.ts.map +1 -1
- package/dist/interpretation/resolve-options.js +16 -0
- package/dist/interpretation/resolve-options.js.map +1 -1
- package/dist/interpretation/tool-selection.d.ts.map +1 -1
- package/dist/interpretation/tool-selection.js +9 -0
- package/dist/interpretation/tool-selection.js.map +1 -1
- package/dist/interpretation/turn-options.d.ts.map +1 -1
- package/dist/interpretation/turn-options.js +35 -3
- package/dist/interpretation/turn-options.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 +9 -0
- package/dist/knowledge/codex.js.map +1 -1
- package/dist/knowledge/descriptor.d.ts +21 -10
- package/dist/knowledge/descriptor.d.ts.map +1 -1
- package/dist/knowledge/descriptor.js +6 -0
- package/dist/knowledge/descriptor.js.map +1 -1
- package/dist/knowledge/matchers.d.ts.map +1 -1
- package/dist/knowledge/matchers.js +8 -1
- package/dist/knowledge/matchers.js.map +1 -1
- package/dist/knowledge/pi.d.ts.map +1 -1
- package/dist/knowledge/pi.js +20 -0
- package/dist/knowledge/pi.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/args.ts +7 -0
- package/src/cli/config.ts +4 -0
- package/src/cli/help.ts +7 -0
- package/src/cli/inspect.ts +54 -22
- package/src/cli/run.ts +166 -67
- package/src/execution/decode.ts +44 -11
- package/src/execution/deps.ts +3 -0
- package/src/execution/events.ts +5 -2
- package/src/execution/node-deps.ts +1 -0
- package/src/execution/open-session.ts +34 -3
- package/src/execution/stream-turn.ts +134 -27
- package/src/interpretation/argv.ts +30 -4
- package/src/interpretation/capabilities.ts +4 -1
- package/src/interpretation/content.ts +18 -5
- package/src/interpretation/hints.ts +8 -0
- package/src/interpretation/resolve-options.ts +17 -0
- package/src/interpretation/tool-selection.ts +9 -0
- package/src/interpretation/turn-options.ts +31 -3
- package/src/knowledge/claude-code.ts +21 -0
- package/src/knowledge/codex.ts +9 -0
- package/src/knowledge/descriptor.ts +28 -10
- package/src/knowledge/matchers.ts +8 -1
- package/src/knowledge/pi.ts +20 -0
package/src/knowledge/pi.ts
CHANGED
|
@@ -30,6 +30,15 @@ export const piCli: HarnessDescriptor = deepFreeze({
|
|
|
30
30
|
// Caller-assigned: the same --session-id re-enters the session. Resume
|
|
31
31
|
// carries the same structured-output flags launch does, or a resumed
|
|
32
32
|
// turn would stream plain text the runner cannot decode.
|
|
33
|
+
// Verified 2026-08-21 on pi 0.84.2: a session id minted by `pi --mode rpc`
|
|
34
|
+
// via the get_state probe (01a022e3-9afb-7ce5-88f5-07ad0e9ac8fa) resumed
|
|
35
|
+
// after close through the one-shot grammar `pi --session-id <id> -p
|
|
36
|
+
// --mode json` (flag --session-id, extraFlags -p --mode json), exit 0,
|
|
37
|
+
// 207 lines, and the reply recalled the codeword "otter" (evidence at
|
|
38
|
+
// test/fixtures/pi-rpc-spike/06-resume-after-close/: rpc-turn.ndjson,
|
|
39
|
+
// resume.argv.json, resume.ndjson, README.md). If the resume had not
|
|
40
|
+
// recalled the codeword, this comment would say so and the descriptor
|
|
41
|
+
// would not be changed here.
|
|
33
42
|
style: "flag",
|
|
34
43
|
flag: "--session-id",
|
|
35
44
|
aliases: [],
|
|
@@ -110,6 +119,17 @@ export const piCli: HarnessDescriptor = deepFreeze({
|
|
|
110
119
|
turnOptions: {
|
|
111
120
|
effort: { kind: "effort", render: { kind: "flag-value", flag: "--thinking" } },
|
|
112
121
|
provider: { kind: "selector", render: { kind: "flag-value", flag: "--provider" } },
|
|
122
|
+
// issue #48, live-verified 0.84.2: pi's --system-prompt replaces the
|
|
123
|
+
// default coding-assistant prompt (PI-NAKED probe). No dynamic-section
|
|
124
|
+
// exclusion exists - pi injects no such sections into a replaced prompt.
|
|
125
|
+
systemPrompt: {
|
|
126
|
+
kind: "prompt-text",
|
|
127
|
+
render: { kind: "flag-value", flag: "--system-prompt" },
|
|
128
|
+
},
|
|
129
|
+
appendSystemPrompt: {
|
|
130
|
+
kind: "prompt-text",
|
|
131
|
+
render: { kind: "flag-value", flag: "--append-system-prompt" },
|
|
132
|
+
},
|
|
113
133
|
discovery: {
|
|
114
134
|
kind: "discovery",
|
|
115
135
|
facets: {
|