@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.
- package/CHANGELOG.md +31 -0
- package/dist/cli.js +775 -354
- package/dist/sdk/commands/extensionOwners.d.ts +4 -0
- package/dist/sdk/commands/extensionOwners.js +17 -0
- package/dist/sdk/commands/list.js +15 -2
- package/dist/sdk/commands/promptLoader.d.ts +5 -0
- package/dist/sdk/commands/promptLoader.js +76 -0
- package/dist/sdk/commands/promptRoutes.d.ts +13 -0
- package/dist/sdk/commands/promptRoutes.js +46 -0
- package/dist/sdk/commands/runtimeRouter.d.ts +4 -0
- package/dist/sdk/commands/runtimeRouter.js +48 -0
- package/dist/sdk/computer/boundary.d.ts +40 -0
- package/dist/sdk/computer/boundary.js +79 -0
- package/dist/sdk/computer/contracts.d.ts +127 -0
- package/dist/sdk/computer/contracts.js +13 -0
- package/dist/sdk/computer/control.d.ts +34 -0
- package/dist/sdk/computer/control.js +112 -0
- package/dist/sdk/computer/terminalCapture.d.ts +26 -0
- package/dist/sdk/computer/terminalCapture.js +64 -0
- package/dist/sdk/computer/volatileImages.d.ts +9 -0
- package/dist/sdk/computer/volatileImages.js +50 -0
- package/dist/sdk/context/runDetails.d.ts +16 -0
- package/dist/sdk/context/runDetails.js +22 -0
- package/dist/sdk/doctor/checks.js +3 -0
- package/dist/sdk/doctor/probe.js +8 -6
- package/dist/sdk/history/trajectory.js +2 -0
- package/dist/sdk/hub/schema.d.ts +2 -2
- package/dist/sdk/plugins/manifest.d.ts +2 -0
- package/dist/sdk/plugins/manifest.js +1 -0
- package/dist/sdk/prompt/compile.d.ts +2 -0
- package/dist/sdk/prompt/compile.js +4 -2
- package/dist/sdk/refine/trajectory.js +7 -2
- package/dist/sdk/remote/webClient.js +7 -3
- package/dist/sdk/server/methods.js +2 -0
- package/dist/sdk/sessions/contracts.d.ts +124 -2
- package/dist/sdk/sessions/contracts.js +114 -3
- package/dist/sdk/sessions/registry.d.ts +6 -2
- package/dist/sdk/sessions/registry.js +16 -13
- package/dist/sdk/sessions/runStore.d.ts +3 -1
- package/dist/sdk/sessions/runStore.js +25 -8
- package/dist/sdk/sessions/runner.d.ts +5 -5
- package/dist/sdk/sessions/runner.js +78 -15
- package/dist/sdk/sessions/sessions.js +28 -21
- package/dist/sdk/sessions/workSlice.d.ts +2 -0
- package/dist/sdk/sessions/workSlice.js +4 -3
- package/dist/sdk/terminal/client.d.ts +3 -0
- package/dist/sdk/terminal/client.js +13 -0
- package/dist/sdk/terminal/controller.js +11 -6
- package/dist/sdk/terminal/piExtension.js +73 -13
- package/dist/sdk/terminal/terminals.d.ts +1 -1
- package/dist/sdk/terminal/terminals.js +20 -5
- package/dist/sdk/terminal/trajectory.js +2 -2
- package/dist/sdk/terminal/tui/commandPages.d.ts +1 -1
- package/dist/sdk/terminal/tui/commandPages.js +4 -2
- package/dist/sdk/terminal/tui/commands.js +9 -65
- package/dist/sdk/terminal/tui/pages/contextPage.d.ts +30 -1
- package/dist/sdk/terminal/tui/pages/contextPage.js +109 -8
- package/dist/sdk/terminal/tui/pages/trajectoryPage.d.ts +1 -0
- package/dist/sdk/terminal/tui/pages/trajectoryPage.js +12 -3
- package/dist/sdk/terminal/tui/runtime.js +15 -2
- package/dist/sdk/terminal/tui/sideQuestion.d.ts +3 -0
- package/dist/sdk/terminal/tui/sideQuestion.js +7 -1
- package/dist/sdk/terminal/tui/status.d.ts +0 -6
- package/dist/sdk/terminal/tui/status.js +1 -15
- package/dist/sdk/tools/definitions.js +1 -1
- package/dist/sdk/tools/dispatch.d.ts +1 -1
- package/dist/sdk/tools/dispatch.js +17 -3
- package/dist/sdk/world/actions.js +1 -1
- package/dist/terminal-opentui.js +984 -361
- package/dist/terminal-pi.js +145 -18
- package/docs/architecture/02-sessions-and-runs.md +5 -2
- package/docs/architecture/04-prompt.md +5 -3
- package/docs/architecture/06-plugins-and-capabilities.md +13 -2
- package/docs/architecture/07-tools-and-gate.md +14 -0
- package/docs/architecture/08-memory-and-history.md +7 -3
- package/docs/architecture/10-server-protocol.md +15 -3
- package/docs/architecture/11-terminal.md +28 -14
- package/docs/architecture/13-world-tools.md +19 -0
- package/docs/architecture/14-surfaces-and-parity.md +3 -3
- package/docs/architecture/README.md +1 -0
- package/docs/architecture/proposals/PROP-0049-context-attribution.md +7 -1
- package/docs/architecture/proposals/PROP-0050-run-stop-codes-and-refusals.md +30 -0
- package/docs/architecture/proposals/README.md +1 -0
- package/docs/decisions/ADR-0059-run-diagnostic-evidence.md +35 -0
- package/docs/decisions/ADR-0060-approvals-are-controls.md +40 -0
- package/docs/decisions/ADR-0061-strict-plugin-command-namespaces.md +41 -0
- package/docs/doctor.md +2 -0
- package/docs/parity.md +16 -5
- package/docs/releases/1.3.1-unstable.5.md +53 -0
- package/docs/terminal-tui.md +16 -10
- 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.
|