@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.
Files changed (103) hide show
  1. package/README.md +3 -2
  2. package/dist/cli/args.d.ts.map +1 -1
  3. package/dist/cli/args.js +16 -8
  4. package/dist/cli/args.js.map +1 -1
  5. package/dist/cli/config.d.ts.map +1 -1
  6. package/dist/cli/config.js +11 -4
  7. package/dist/cli/config.js.map +1 -1
  8. package/dist/cli/help.d.ts +3 -3
  9. package/dist/cli/help.d.ts.map +1 -1
  10. package/dist/cli/help.js +32 -23
  11. package/dist/cli/help.js.map +1 -1
  12. package/dist/cli/inspect.d.ts.map +1 -1
  13. package/dist/cli/inspect.js +10 -7
  14. package/dist/cli/inspect.js.map +1 -1
  15. package/dist/cli/render.d.ts +15 -1
  16. package/dist/cli/render.d.ts.map +1 -1
  17. package/dist/cli/render.js +18 -2
  18. package/dist/cli/render.js.map +1 -1
  19. package/dist/cli/resume-guard.js +29 -2
  20. package/dist/cli/resume-guard.js.map +1 -1
  21. package/dist/cli/run.d.ts.map +1 -1
  22. package/dist/cli/run.js +35 -34
  23. package/dist/cli/run.js.map +1 -1
  24. package/dist/cli/session-json.d.ts +5 -2
  25. package/dist/cli/session-json.d.ts.map +1 -1
  26. package/dist/cli/session-json.js +36 -5
  27. package/dist/cli/session-json.js.map +1 -1
  28. package/dist/cli/session.d.ts.map +1 -1
  29. package/dist/cli/session.js +103 -36
  30. package/dist/cli/session.js.map +1 -1
  31. package/dist/execution/events.d.ts +8 -1
  32. package/dist/execution/events.d.ts.map +1 -1
  33. package/dist/execution/events.js.map +1 -1
  34. package/dist/execution/open-session.d.ts +7 -6
  35. package/dist/execution/open-session.d.ts.map +1 -1
  36. package/dist/execution/open-session.js +88 -59
  37. package/dist/execution/open-session.js.map +1 -1
  38. package/dist/execution/stream-turn.d.ts +4 -7
  39. package/dist/execution/stream-turn.d.ts.map +1 -1
  40. package/dist/execution/stream-turn.js +43 -22
  41. package/dist/execution/stream-turn.js.map +1 -1
  42. package/dist/interpretation/argv.d.ts +9 -5
  43. package/dist/interpretation/argv.d.ts.map +1 -1
  44. package/dist/interpretation/argv.js +2 -7
  45. package/dist/interpretation/argv.js.map +1 -1
  46. package/dist/interpretation/capabilities.d.ts +20 -0
  47. package/dist/interpretation/capabilities.d.ts.map +1 -1
  48. package/dist/interpretation/capabilities.js +27 -0
  49. package/dist/interpretation/capabilities.js.map +1 -1
  50. package/dist/interpretation/hints.js +1 -1
  51. package/dist/interpretation/hints.js.map +1 -1
  52. package/dist/interpretation/question.d.ts +6 -2
  53. package/dist/interpretation/question.d.ts.map +1 -1
  54. package/dist/interpretation/question.js +13 -4
  55. package/dist/interpretation/question.js.map +1 -1
  56. package/dist/interpretation/refusal.d.ts +1 -1
  57. package/dist/interpretation/refusal.d.ts.map +1 -1
  58. package/dist/interpretation/refusal.js +1 -1
  59. package/dist/interpretation/refusal.js.map +1 -1
  60. package/dist/interpretation/skills-selection.d.ts +18 -1
  61. package/dist/interpretation/skills-selection.d.ts.map +1 -1
  62. package/dist/interpretation/skills-selection.js +33 -6
  63. package/dist/interpretation/skills-selection.js.map +1 -1
  64. package/dist/knowledge/claude-code.d.ts.map +1 -1
  65. package/dist/knowledge/claude-code.js +21 -0
  66. package/dist/knowledge/claude-code.js.map +1 -1
  67. package/dist/knowledge/codex.d.ts.map +1 -1
  68. package/dist/knowledge/codex.js +16 -6
  69. package/dist/knowledge/codex.js.map +1 -1
  70. package/dist/knowledge/descriptor.d.ts +39 -12
  71. package/dist/knowledge/descriptor.d.ts.map +1 -1
  72. package/dist/knowledge/descriptor.js +1 -0
  73. package/dist/knowledge/descriptor.js.map +1 -1
  74. package/dist/knowledge/muse.d.ts.map +1 -1
  75. package/dist/knowledge/muse.js +7 -0
  76. package/dist/knowledge/muse.js.map +1 -1
  77. package/dist/knowledge/pi.d.ts.map +1 -1
  78. package/dist/knowledge/pi.js +23 -4
  79. package/dist/knowledge/pi.js.map +1 -1
  80. package/package.json +3 -2
  81. package/src/cli/args.ts +16 -6
  82. package/src/cli/config.ts +13 -4
  83. package/src/cli/help.ts +32 -23
  84. package/src/cli/inspect.ts +8 -6
  85. package/src/cli/render.ts +18 -1
  86. package/src/cli/resume-guard.ts +26 -2
  87. package/src/cli/run.ts +36 -38
  88. package/src/cli/session-json.ts +45 -7
  89. package/src/cli/session.ts +122 -40
  90. package/src/execution/events.ts +9 -1
  91. package/src/execution/open-session.ts +99 -72
  92. package/src/execution/stream-turn.ts +53 -30
  93. package/src/interpretation/argv.ts +11 -12
  94. package/src/interpretation/capabilities.ts +50 -0
  95. package/src/interpretation/hints.ts +1 -1
  96. package/src/interpretation/question.ts +17 -7
  97. package/src/interpretation/refusal.ts +2 -1
  98. package/src/interpretation/skills-selection.ts +46 -8
  99. package/src/knowledge/claude-code.ts +21 -0
  100. package/src/knowledge/codex.ts +16 -6
  101. package/src/knowledge/descriptor.ts +40 -12
  102. package/src/knowledge/muse.ts +7 -0
  103. package/src/knowledge/pi.ts +23 -4
@@ -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
- // `--session <id>` requires an EXISTING id ("No session found" on a
59
- // fresh uuid - live-verified); fresh sessions omit it and pi mints
60
- // the id, readable only through the get_state probe.
61
- idFlag: null,
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" } },