@xingular/harness 1.3.1-unstable.4 → 1.3.1-unstable.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/cli.js +775 -354
  3. package/dist/sdk/commands/extensionOwners.d.ts +4 -0
  4. package/dist/sdk/commands/extensionOwners.js +17 -0
  5. package/dist/sdk/commands/list.js +15 -2
  6. package/dist/sdk/commands/promptLoader.d.ts +5 -0
  7. package/dist/sdk/commands/promptLoader.js +76 -0
  8. package/dist/sdk/commands/promptRoutes.d.ts +13 -0
  9. package/dist/sdk/commands/promptRoutes.js +46 -0
  10. package/dist/sdk/commands/runtimeRouter.d.ts +4 -0
  11. package/dist/sdk/commands/runtimeRouter.js +48 -0
  12. package/dist/sdk/computer/boundary.d.ts +40 -0
  13. package/dist/sdk/computer/boundary.js +79 -0
  14. package/dist/sdk/computer/contracts.d.ts +127 -0
  15. package/dist/sdk/computer/contracts.js +13 -0
  16. package/dist/sdk/computer/control.d.ts +34 -0
  17. package/dist/sdk/computer/control.js +112 -0
  18. package/dist/sdk/computer/terminalCapture.d.ts +26 -0
  19. package/dist/sdk/computer/terminalCapture.js +64 -0
  20. package/dist/sdk/computer/volatileImages.d.ts +9 -0
  21. package/dist/sdk/computer/volatileImages.js +50 -0
  22. package/dist/sdk/context/runDetails.d.ts +16 -0
  23. package/dist/sdk/context/runDetails.js +22 -0
  24. package/dist/sdk/doctor/checks.js +3 -0
  25. package/dist/sdk/doctor/probe.js +8 -6
  26. package/dist/sdk/history/trajectory.js +2 -0
  27. package/dist/sdk/hub/schema.d.ts +2 -2
  28. package/dist/sdk/plugins/manifest.d.ts +2 -0
  29. package/dist/sdk/plugins/manifest.js +1 -0
  30. package/dist/sdk/prompt/compile.d.ts +2 -0
  31. package/dist/sdk/prompt/compile.js +4 -2
  32. package/dist/sdk/refine/trajectory.js +7 -2
  33. package/dist/sdk/remote/webClient.js +7 -3
  34. package/dist/sdk/server/methods.js +2 -0
  35. package/dist/sdk/sessions/contracts.d.ts +124 -2
  36. package/dist/sdk/sessions/contracts.js +114 -3
  37. package/dist/sdk/sessions/registry.d.ts +6 -2
  38. package/dist/sdk/sessions/registry.js +16 -13
  39. package/dist/sdk/sessions/runStore.d.ts +3 -1
  40. package/dist/sdk/sessions/runStore.js +25 -8
  41. package/dist/sdk/sessions/runner.d.ts +5 -5
  42. package/dist/sdk/sessions/runner.js +78 -15
  43. package/dist/sdk/sessions/sessions.js +28 -21
  44. package/dist/sdk/sessions/workSlice.d.ts +2 -0
  45. package/dist/sdk/sessions/workSlice.js +4 -3
  46. package/dist/sdk/terminal/client.d.ts +3 -0
  47. package/dist/sdk/terminal/client.js +13 -0
  48. package/dist/sdk/terminal/controller.js +11 -6
  49. package/dist/sdk/terminal/piExtension.js +73 -13
  50. package/dist/sdk/terminal/terminals.d.ts +1 -1
  51. package/dist/sdk/terminal/terminals.js +20 -5
  52. package/dist/sdk/terminal/trajectory.js +2 -2
  53. package/dist/sdk/terminal/tui/commandPages.d.ts +1 -1
  54. package/dist/sdk/terminal/tui/commandPages.js +4 -2
  55. package/dist/sdk/terminal/tui/commands.js +9 -65
  56. package/dist/sdk/terminal/tui/pages/contextPage.d.ts +30 -1
  57. package/dist/sdk/terminal/tui/pages/contextPage.js +109 -8
  58. package/dist/sdk/terminal/tui/pages/trajectoryPage.d.ts +1 -0
  59. package/dist/sdk/terminal/tui/pages/trajectoryPage.js +12 -3
  60. package/dist/sdk/terminal/tui/runtime.js +15 -2
  61. package/dist/sdk/terminal/tui/sideQuestion.d.ts +3 -0
  62. package/dist/sdk/terminal/tui/sideQuestion.js +7 -1
  63. package/dist/sdk/terminal/tui/status.d.ts +0 -6
  64. package/dist/sdk/terminal/tui/status.js +1 -15
  65. package/dist/sdk/tools/definitions.js +1 -1
  66. package/dist/sdk/tools/dispatch.d.ts +1 -1
  67. package/dist/sdk/tools/dispatch.js +17 -3
  68. package/dist/sdk/world/actions.js +1 -1
  69. package/dist/terminal-opentui.js +984 -361
  70. package/dist/terminal-pi.js +145 -18
  71. package/docs/architecture/02-sessions-and-runs.md +5 -2
  72. package/docs/architecture/04-prompt.md +5 -3
  73. package/docs/architecture/06-plugins-and-capabilities.md +13 -2
  74. package/docs/architecture/07-tools-and-gate.md +14 -0
  75. package/docs/architecture/08-memory-and-history.md +7 -3
  76. package/docs/architecture/10-server-protocol.md +15 -3
  77. package/docs/architecture/11-terminal.md +28 -14
  78. package/docs/architecture/13-world-tools.md +19 -0
  79. package/docs/architecture/14-surfaces-and-parity.md +3 -3
  80. package/docs/architecture/README.md +1 -0
  81. package/docs/architecture/proposals/PROP-0049-context-attribution.md +7 -1
  82. package/docs/architecture/proposals/PROP-0050-run-stop-codes-and-refusals.md +30 -0
  83. package/docs/architecture/proposals/README.md +1 -0
  84. package/docs/decisions/ADR-0059-run-diagnostic-evidence.md +35 -0
  85. package/docs/decisions/ADR-0060-approvals-are-controls.md +40 -0
  86. package/docs/decisions/ADR-0061-strict-plugin-command-namespaces.md +41 -0
  87. package/docs/doctor.md +2 -0
  88. package/docs/parity.md +16 -5
  89. package/docs/releases/1.3.1-unstable.5.md +53 -0
  90. package/docs/terminal-tui.md +16 -10
  91. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Require owner-prefixed plugin commands on terminal and structured sessions. Plugin-owned prompt
6
+ templates join extension commands under `/<owner-prefix>:<name>`, with no bare plugin aliases.
7
+ A package can select a root template with `harness.defaultPrompt`; owner and route collisions fail
8
+ closed. Standalone templates, `/skill:<name>` and core commands remain (ADR-0061).
9
+
10
+ - Make an approval a control, never a typed permission. The compiled guidance now tells the model to
11
+ call the tool, the Harness pauses that exact call (`waiting_for_approval`), and Allow resumes it in
12
+ the same turn; a denial returns a tool result on the still-running turn and says so, instead of
13
+ inviting another prose request. Nothing outside the workspace changes before the click, and Full
14
+ Permission remains the standing bypass (INV-GATE-9, ADR-0060).
15
+
16
+ - Record structured tool refusals and run stop codes, and expose them in trajectory search and the
17
+ terminal trajectory page. Compaction events include available token measurements; older run
18
+ records remain readable without these fields.
19
+
20
+ - Keep a refused question answer in the terminal. A choice, note or typed answer that the Harness
21
+ would reject now stays in the dock with an inline reason, instead of closing the form and losing the
22
+ draft; the reason names the question and the field (selection, typed answer or note), and the answer
23
+ is checked against the server rule before it is sent. The terminal was previously reopening an empty
24
+ question after any rejection, so a second Continue skipped everything.
25
+
26
+ - Scroll a `/btw` answer taller than its block. PageUp/PageDown now reach the side-question dock
27
+ while it is open, and the mouse wheel over the block browses it too; before this the transcript
28
+ consumed those keys, so the block's `PgUp/PgDn/wheel browse` hint did nothing. When the answer fits, the
29
+ keys scroll the transcript as before.
30
+
31
+ - Drop the context-use reading from the terminal's composer status line, so it no longer ends the
32
+ token group with a figure such as `6.6%/?`. The line keeps the project and branch, account, model
33
+ and effort, and input/cache hit rate/output tokens; the share of the window stays on the `/context`
34
+ page. Both the OpenTUI status bar and the exported `tui/status` band lose the reading.
35
+
5
36
  - Render the `/btw` side answer as Markdown instead of plain text. Headings, emphasis, lists,
6
37
  quotes, links, tables and fenced code use the theme's markdown colours, and a streaming answer
7
38
  re-renders in place. Terminal control sequences in model output are still removed.