@scotthuang/agent-knock-knock 0.16.7 → 0.16.8
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 +8 -0
- package/README.md +4 -4
- package/connectors/deepseek-harness/README.md +25 -13
- package/connectors/pi/README.md +19 -8
- package/dist/src/host-adapter.d.ts +4 -0
- package/dist/src/host-adapter.js +2 -0
- package/dist/src/host-adapter.js.map +1 -1
- package/dist/src/host-bridge-tools.d.ts +3 -0
- package/dist/src/host-bridge-tools.js +3 -1
- package/dist/src/host-bridge-tools.js.map +1 -1
- package/dist/src/openclaw-plugin-command-adapter.js +1 -1
- package/dist/src/openclaw-plugin-command-adapter.js.map +1 -1
- package/dist/src/semantic-tool-list-budget.d.ts +3 -0
- package/dist/src/semantic-tool-list-budget.js +18 -8
- package/dist/src/semantic-tool-list-budget.js.map +1 -1
- package/dist/src/semantic-tool-list-format.d.ts +5 -0
- package/dist/src/semantic-tool-list-format.js +20 -0
- package/dist/src/semantic-tool-list-format.js.map +1 -0
- package/dist/src/semantic-tool-list-projection.d.ts +1 -1
- package/dist/src/semantic-tool-list-projection.js +21 -4
- package/dist/src/semantic-tool-list-projection.js.map +1 -1
- package/dist/src/semantic-tool-runtime.d.ts +4 -1
- package/dist/src/semantic-tool-runtime.js +14 -6
- package/dist/src/semantic-tool-runtime.js.map +1 -1
- package/dist/src/semantic-tool-schemas.d.ts +6 -0
- package/dist/src/semantic-tool-schemas.js +1 -0
- package/dist/src/semantic-tool-schemas.js.map +1 -1
- package/docs/list-output.md +66 -21
- package/docs/list-payload-evaluation.md +133 -0
- package/docs/openclaw-operations.md +21 -2
- package/package.json +1 -1
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.8 / Pi 0.1.0-poc.16 / DeepSeek Harness 0.1.0-rc.20 — 2026-10-30
|
|
4
|
+
|
|
5
|
+
- Add an explicitly versioned compact List v5 for updated OpenClaw, Pi and DSH connectors. Omit repeated usage prose and duplicate IDs while retaining exact selectors, readable states, dynamic action inputs and structured blockers. Keep the existing whole-response budgets and complete pagination.
|
|
6
|
+
- Preserve v4 for existing generic Host SDK and MCP consumers; allow `listProjectionVersion: 4 | 5`, bind continuations to that format and reject unsupported versions before discovery. Raw CLI output, action contract 35, private authority and execution checks are unchanged.
|
|
7
|
+
|
|
8
|
+
- Publish coordinated Pi and DSH connector updates pinned to core **0.16.8**, retaining their existing Host compatibility ranges and `next` tags. Document separate synchronization of an existing personal OpenClaw Skill without reinstalling the plugin or restarting the Gateway.
|
|
9
|
+
- Correct test fixtures for restrictive caller umasks and opaque Desktop identity ordering; retain the permission and connection assertions.
|
|
10
|
+
|
|
3
11
|
## 0.16.7 / Pi 0.1.0-poc.15 / DeepSeek Harness 0.1.0-rc.19 — 2026-10-29
|
|
4
12
|
|
|
5
13
|
- Reduce repeated discovery work within one CLI command: share in-flight Claude reader and terminal probes, isolate the memo between commands, inspect known Claude targets directly, and bound parallel process checks. Execution identity and input fences remain fresh and are never cached as authority.
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ That is the terminal first-task flow. For terminal setup and multiple panes, see
|
|
|
75
75
|
## Install for Pi
|
|
76
76
|
|
|
77
77
|
Pi can be the controller Host without OpenClaw. The connector supports Pi `1.2.0`
|
|
78
|
-
and retains `0.84.4` compatibility. It includes AKK `0.16.
|
|
78
|
+
and retains `0.84.4` compatibility. It includes AKK `0.16.8`, with direct CLI and
|
|
79
79
|
Desktop capabilities governed by the same target-specific boundaries above.
|
|
80
80
|
|
|
81
81
|
```bash
|
|
@@ -91,7 +91,7 @@ Pi should show `AKK ready`. With a supported coding-agent conversation open, ent
|
|
|
91
91
|
Let DeepSeek Harness delegate to your existing Codex CLI, Codex Desktop and
|
|
92
92
|
Claude Code sessions. Use a resident POSIX **DSH Web 0.2.1-rc.2** Host (the
|
|
93
93
|
reviewed baseline), Node.js `>=22.19.0`, and `pnpm`. The connector pins AKK
|
|
94
|
-
**0.16.
|
|
94
|
+
**0.16.8**; newer unlisted DSH versions are not automatically compatible.
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
97
|
dsh plugin --profile web add @scotthuang/agent-knock-knock-deepseek-harness@next
|
|
@@ -214,8 +214,8 @@ can use a supported terminal route. Claude Code direct control is available unde
|
|
|
214
214
|
| Claude Code direct connection | macOS, compatible native peer protocol `1`, and Python 3 available to AKK. Live observations include `2.1.295` and `2.1.296`; these are not minimum versions. Standard `claude` and configured wrappers use the same adapter. See the [direct guide](docs/claude-cli-direct.md) for task and interaction boundaries. |
|
|
215
215
|
| Terminal coding agents | Reviewed Codex profiles include `0.160.0`, `0.162.1`, `0.164.0` and `0.165.0`; Claude fixtures include `2.1.285`, with live observations on `2.1.295`/`2.1.296`. An otherwise eligible, complete `x.y.z` Claude version may attempt supported controls through runtime validation even without an exact regression profile. Actual identity, protocol and UI evidence determine availability; unknown dialogs are not guessed. |
|
|
216
216
|
| OpenClaw | `2026.6.5`+; plugin API and Gateway `2026.5.12`+ |
|
|
217
|
-
| Pi connector | Pi `1.2.0` and `0.84.4`; connector `0.1.0-poc.
|
|
218
|
-
| DeepSeek Harness connector | Web `0.2.1-rc.2` (RC); connector `0.1.0-rc.
|
|
217
|
+
| Pi connector | Pi `1.2.0` and `0.84.4`; connector `0.1.0-poc.16` (`next`), pinned AKK `0.16.8` |
|
|
218
|
+
| DeepSeek Harness connector | Web `0.2.1-rc.2` (RC); connector `0.1.0-rc.20` (`next`), pinned AKK `0.16.8`. See its guide for previous RC, alpha and legacy coverage. |
|
|
219
219
|
| Runtime | Node.js `22.19.0`+ on macOS or Linux |
|
|
220
220
|
|
|
221
221
|
The adjacent OpenClaw boundary `2026.5.10-beta.2` is intentionally unsupported. Herdr versions are observations, not an allowlist: discovery verifies live identity and read capabilities, while input requires a matching CLI schema declaration or verified baseline behavior. An untested server without input evidence exposes only verified read capabilities. Desktop controls validate the live native contract. Desktop catalog presence alone does not prove the conversation is open or controllable. See each connector guide, the [Pi/DSH validation matrix](docs/pi-dsh-compatibility.md), and the Desktop guide for tested boundaries and limitations.
|
|
@@ -19,14 +19,15 @@ tests, lockfile, bundle manifest, and connector-specific release tag.
|
|
|
19
19
|
|
|
20
20
|
## Compatibility
|
|
21
21
|
|
|
22
|
-
Connector **0.1.0-rc.
|
|
22
|
+
Connector **0.1.0-rc.20** pins AKK **0.16.8** in its package and lockfile,
|
|
23
23
|
including scoped persistent callback recovery and verified running-process
|
|
24
24
|
Codex version discovery, with the 0.165.0 adaptation and accurate Claude
|
|
25
25
|
pane-observation diagnostics. It exposes that runtime's 27 semantic tools,
|
|
26
26
|
including Codex CLI backend and Desktop operations when the selected
|
|
27
27
|
conversation advertises them. `list`
|
|
28
|
-
returns current discoverable conversations; `watches` separately
|
|
29
|
-
monitoring records (24 hours by default), plus active or
|
|
28
|
+
returns current discoverable conversations in compact v5; `watches` separately
|
|
29
|
+
returns recent monitoring records (24 hours by default), plus active or
|
|
30
|
+
unresolved records.
|
|
30
31
|
A newer root checkout does not silently replace this pinned dependency. This
|
|
31
32
|
prerelease uses the `next` dist-tag.
|
|
32
33
|
|
|
@@ -47,8 +48,8 @@ with a different release merely to follow a tag.
|
|
|
47
48
|
| Outside validated scope | DSH Desktop embedded launcher, headless/one-shot Host, Windows named pipes; newer unlisted DSH releases |
|
|
48
49
|
|
|
49
50
|
The versioned validation notes below distinguish live Host checks from fixtures
|
|
50
|
-
and earlier compatibility runs. This
|
|
51
|
-
|
|
51
|
+
and earlier compatibility runs. This List presentation update does not add a
|
|
52
|
+
new Host compatibility claim.
|
|
52
53
|
|
|
53
54
|
Activation locates the real `@deepseek-ai/dsh` launcher and requires the
|
|
54
55
|
launcher, `dsh-base`, `dsh-agent`, `dsh-commands`, `dsh-llm`, `dsh-skill`, and
|
|
@@ -71,8 +72,8 @@ Headless/one-shot Harness processes, Windows named pipes, and DSH Desktop's
|
|
|
71
72
|
embedded launcher are outside this connector's validated scope. Existing Codex CLI backend and Desktop connections need no
|
|
72
73
|
terminal container when their advertised capability is available. Claude Code
|
|
73
74
|
and terminal-specific operations retain their documented transport conditions;
|
|
74
|
-
see [core compatibility](https://github.com/scotthuang/agent-knock-knock/blob/v0.16.
|
|
75
|
-
[Pi/DSH validation matrix](https://github.com/scotthuang/agent-knock-knock/blob/v0.16.
|
|
75
|
+
see [core compatibility](https://github.com/scotthuang/agent-knock-knock/blob/v0.16.8/README.md#compatibility) and the
|
|
76
|
+
[Pi/DSH validation matrix](https://github.com/scotthuang/agent-knock-knock/blob/v0.16.8/docs/pi-dsh-compatibility.md). This connector does
|
|
76
77
|
not launch replacement coding processes or create terminal panes.
|
|
77
78
|
|
|
78
79
|
## Demo
|
|
@@ -136,7 +137,7 @@ can select an older `latest` build.
|
|
|
136
137
|
DSH `0.2.1-rc.2` requires connector `0.1.0-rc.6` or a later release that
|
|
137
138
|
explicitly supports that Host. Connector `0.1.0-rc.5` does not support this RC.
|
|
138
139
|
Use `next`, or pin
|
|
139
|
-
`@scotthuang/agent-knock-knock-deepseek-harness@0.1.0-rc.
|
|
140
|
+
`@scotthuang/agent-knock-knock-deepseek-harness@0.1.0-rc.20`.
|
|
140
141
|
|
|
141
142
|
```sh
|
|
142
143
|
dsh plugin --profile web add @scotthuang/agent-knock-knock-deepseek-harness@next
|
|
@@ -446,7 +447,7 @@ exact reviewed version:
|
|
|
446
447
|
|
|
447
448
|
```sh
|
|
448
449
|
dsh plugin --profile web add @scotthuang/agent-knock-knock-deepseek-harness@next
|
|
449
|
-
dsh plugin --profile web add @scotthuang/agent-knock-knock-deepseek-harness@0.1.0-rc.
|
|
450
|
+
dsh plugin --profile web add @scotthuang/agent-knock-knock-deepseek-harness@0.1.0-rc.20
|
|
450
451
|
```
|
|
451
452
|
|
|
452
453
|
Restart the Web Host after either operation. The connector pins the exact AKK
|
|
@@ -474,10 +475,10 @@ dsh plugin --profile web add "file:$(pwd -P)/connectors/deepseek-harness"
|
|
|
474
475
|
```
|
|
475
476
|
|
|
476
477
|
Restart `dsh web` after installation. The child package currently installs and
|
|
477
|
-
tests against its pinned AKK runtime `0.16.
|
|
478
|
+
tests against its pinned AKK runtime `0.16.8`; building the current repository
|
|
478
479
|
root does not silently replace that dependency. Before core publication, test
|
|
479
480
|
the candidate core tarball in isolation as described in the
|
|
480
|
-
[coordinated release policy](https://github.com/scotthuang/agent-knock-knock/blob/v0.16.
|
|
481
|
+
[coordinated release policy](https://github.com/scotthuang/agent-knock-knock/blob/v0.16.8/CONTRIBUTING.md#coordinated-package-releases);
|
|
481
482
|
the registry-based `npm ci` above requires that exact core to be published.
|
|
482
483
|
Testing connector changes against another AKK runtime requires an explicit
|
|
483
484
|
dependency change and
|
|
@@ -485,6 +486,17 @@ compatibility review rather than an implicit local link.
|
|
|
485
486
|
|
|
486
487
|
## Tests and release status
|
|
487
488
|
|
|
489
|
+
Connector **`0.1.0-rc.20`** pins AKK **`0.16.8`** and its synchronized Skill.
|
|
490
|
+
Its Host tools explicitly opt into compact List **v5**, removing derived usage
|
|
491
|
+
prose and duplicate IDs while preserving exact selectors, readable states,
|
|
492
|
+
dynamic action inputs, current blockers and bounded pagination. An explicit
|
|
493
|
+
`listProjectionVersion: 4` keeps the legacy format; `terminalDebug: true`
|
|
494
|
+
defaults to v4 unless a format is explicitly selected. Generic Host SDK and MCP
|
|
495
|
+
consumers still default to v4. This changes presentation, not action authority:
|
|
496
|
+
Status, raw CLI output, execution checks, callback ownership and the existing
|
|
497
|
+
Host compatibility ranges are unchanged. The connector remains on `next`;
|
|
498
|
+
this update does not add a live-model or external-channel delivery claim.
|
|
499
|
+
|
|
488
500
|
Connector **`0.1.0-rc.19`** pins AKK **`0.16.7`** and its synchronized Skill.
|
|
489
501
|
It carries [PR #484](https://github.com/scotthuang/agent-knock-knock/pull/484):
|
|
490
502
|
command-scoped discovery reuse and targeted inspection reduce repeated reader
|
|
@@ -637,7 +649,7 @@ npm run pack:check
|
|
|
637
649
|
|
|
638
650
|
These commands typecheck the connector, run its fast wiring/profile/IPC/schema
|
|
639
651
|
tests, and inspect the package tarball. They do not publish anything. The
|
|
640
|
-
`0.1.0-rc.
|
|
652
|
+
`0.1.0-rc.20` lockfile uses the published DeepSeek Harness `0.2.1-rc.2`
|
|
641
653
|
SDK packages and Cordis `4.0.5`. Its real ToolRuntime regression checks
|
|
642
654
|
canonical result rendering, exact Agent ownership, typed questionnaire payloads,
|
|
643
655
|
and rejection before dispatch when targets are ambiguous or stale. This is
|
|
@@ -682,7 +694,7 @@ gate to both connectors. Their package versions are validated independently.
|
|
|
682
694
|
Publishing additionally requires both explicit flags:
|
|
683
695
|
|
|
684
696
|
```sh
|
|
685
|
-
npm run release:check -- --publish --confirm-version 0.1.0-rc.
|
|
697
|
+
npm run release:check -- --publish --confirm-version 0.1.0-rc.20
|
|
686
698
|
```
|
|
687
699
|
|
|
688
700
|
Prereleases use npm tag `next`; stable versions use `latest`. Repository tags
|
package/connectors/pi/README.md
CHANGED
|
@@ -12,8 +12,8 @@ socket.
|
|
|
12
12
|
|
|
13
13
|
## Status and compatibility
|
|
14
14
|
|
|
15
|
-
Connector **0.1.0-poc.
|
|
16
|
-
connections, Codex Desktop, Recovery,
|
|
15
|
+
Connector **0.1.0-poc.16** pins AKK **0.16.8**, including CLI direct
|
|
16
|
+
connections, Codex Desktop, Recovery, compact List v5 and verified
|
|
17
17
|
running-process Codex version discovery, with the 0.165.0 adaptation and accurate
|
|
18
18
|
Claude pane-observation diagnostics. Its generated Skill and registered tools
|
|
19
19
|
are verified against that exact core package at startup. See the [root compatibility
|
|
@@ -35,7 +35,7 @@ The current compatibility contract is intentionally exact:
|
|
|
35
35
|
supported older runtime, installed from the official
|
|
36
36
|
`@earendil-works/pi-coding-agent` package.
|
|
37
37
|
- Node.js `22.19.0` or newer.
|
|
38
|
-
- AKK `0.16.
|
|
38
|
+
- AKK `0.16.8`, pinned by this connector's package and lockfile. A different
|
|
39
39
|
version at the repository root is not substituted automatically. Before core
|
|
40
40
|
publication, test its candidate tarball in isolation under the
|
|
41
41
|
[coordinated release policy](../../CONTRIBUTING.md#coordinated-package-releases).
|
|
@@ -87,8 +87,8 @@ pi list
|
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
Using `next` follows compatible Pi connector prereleases. To pin this exact
|
|
90
|
-
core `0.16.
|
|
91
|
-
`npm:@scotthuang/agent-knock-knock-pi@0.1.0-poc.
|
|
90
|
+
core `0.16.8` connector, install
|
|
91
|
+
`npm:@scotthuang/agent-knock-knock-pi@0.1.0-poc.16`; exact versions are pinned
|
|
92
92
|
and are not advanced by Pi's bulk update command.
|
|
93
93
|
|
|
94
94
|
### 4. Start Pi
|
|
@@ -453,7 +453,7 @@ Harness independently; it does not require their package versions to match.
|
|
|
453
453
|
Publishing Pi additionally requires explicit version confirmation:
|
|
454
454
|
|
|
455
455
|
```sh
|
|
456
|
-
npm run release:check -- --publish --confirm-version 0.1.0-poc.
|
|
456
|
+
npm run release:check -- --publish --confirm-version 0.1.0-poc.16
|
|
457
457
|
```
|
|
458
458
|
|
|
459
459
|
Prereleases use npm tag `next`; stable versions use `latest`. Tags and GitHub
|
|
@@ -503,6 +503,17 @@ a presentation change, not evidence that a candidate is disconnected, and it
|
|
|
503
503
|
does not change Send routing or callback ownership. Sole empty conversations
|
|
504
504
|
and exact frontend associations remain visible.
|
|
505
505
|
|
|
506
|
+
Connector **`0.1.0-poc.16`** pins AKK **`0.16.8`** and its synchronized Skill.
|
|
507
|
+
Its Host tools explicitly opt into compact List **v5**, removing derived usage
|
|
508
|
+
prose and duplicate IDs while preserving exact selectors, readable states,
|
|
509
|
+
dynamic action inputs, current blockers and bounded pagination. An explicit
|
|
510
|
+
`listProjectionVersion: 4` keeps the legacy format; `terminalDebug: true`
|
|
511
|
+
defaults to v4 unless a format is explicitly selected. Generic Host SDK and MCP
|
|
512
|
+
consumers still default to v4. This changes presentation, not action authority:
|
|
513
|
+
Status, raw CLI output, execution checks, callback ownership and the existing
|
|
514
|
+
Host compatibility ranges are unchanged. The connector remains on `next`;
|
|
515
|
+
this update does not add a live-model or external-channel delivery claim.
|
|
516
|
+
|
|
506
517
|
Connector **`0.1.0-poc.15`** pins AKK **`0.16.7`** and its synchronized Skill.
|
|
507
518
|
It carries [PR #484](https://github.com/scotthuang/agent-knock-knock/pull/484):
|
|
508
519
|
command-scoped discovery reuse and targeted inspection reduce repeated reader
|
|
@@ -612,8 +623,8 @@ or external-channel delivery run.
|
|
|
612
623
|
|
|
613
624
|
These are POC acceptance results, not a promise of compatibility with every
|
|
614
625
|
future Pi, Codex, Claude Code, tmux, or Herdr release. Version
|
|
615
|
-
`0.1.0-poc.
|
|
616
|
-
its publication is coordinated with core `0.16.
|
|
626
|
+
`0.1.0-poc.16` is an npm prerelease distributed through the `next` dist-tag;
|
|
627
|
+
its publication is coordinated with core `0.16.8` and the DSH connector.
|
|
617
628
|
ClawHub publication remains a separate channel.
|
|
618
629
|
|
|
619
630
|
## Deliberate POC limits
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { HostListProjectionVersion } from "./semantic-tool-list-format.js";
|
|
1
2
|
import { type HostBridgeCommandResult, type HostBridgeToolContext, type HostBridgeToolLogger, type HostBridgeToolResult } from "./host-bridge-tools.js";
|
|
2
3
|
import { type HostAdapterCapabilityHandshakeV1 } from "./host-adapter-capabilities.js";
|
|
3
4
|
export { HOST_ADAPTER_CAPABILITY_CONTRACT, HOST_ADAPTER_CAPABILITY_VERSION, HOST_ADAPTER_SKILL_NAME, createHostAdapterCapabilityHandshake, verifyHostAdapterCapabilityHandshake } from "./host-adapter-capabilities.js";
|
|
4
5
|
export type { HostAdapterCapabilityHandshakeV1, HostAdapterCapabilitySource } from "./host-adapter-capabilities.js";
|
|
5
6
|
export type { HostBridgeCommandResult, HostBridgeToolContext, HostBridgeToolLogger, HostBridgeToolResult } from "./host-bridge-tools.js";
|
|
7
|
+
export type { HostListProjectionVersion } from "./semantic-tool-list-format.js";
|
|
6
8
|
export { createTrustedHostProfileRuntime, hostProfileRelayEnvironment } from "./host-profile-runtime.js";
|
|
7
9
|
export type { CreateTrustedHostProfileRuntimeOptions, TrustedHostProfileRuntimeV1 } from "./host-profile-runtime.js";
|
|
8
10
|
/** @internal Explicit native-connector callback recovery authority. */
|
|
@@ -33,6 +35,8 @@ export interface HostAdapterLifecycle {
|
|
|
33
35
|
stop(): Promise<void>;
|
|
34
36
|
}
|
|
35
37
|
export interface CreateHostAdapterOptions {
|
|
38
|
+
/** Omitted retains the existing v4 result shape; first-party connectors opt into v5. */
|
|
39
|
+
readonly listProjectionVersion?: HostListProjectionVersion;
|
|
36
40
|
readonly relayPath?: string;
|
|
37
41
|
readonly environmentForContext: (context: HostAdapterEnvironmentContext) => NodeJS.ProcessEnv;
|
|
38
42
|
/** Fixed child environment used by the one Host-owned lifecycle service. */
|
package/dist/src/host-adapter.js
CHANGED
|
@@ -29,6 +29,7 @@ export function createHostAdapter(options) {
|
|
|
29
29
|
const relayPath = requiredString(options.relayPath ?? defaultHostAdapterRelayPath, "relayPath");
|
|
30
30
|
const pluginConfig = options.pluginConfig ?? {};
|
|
31
31
|
const metadataRegistry = createHostBridgeToolRegistry({
|
|
32
|
+
listProjectionVersion: options.listProjectionVersion,
|
|
32
33
|
relayPath,
|
|
33
34
|
relayEnvironment: {},
|
|
34
35
|
pluginConfig,
|
|
@@ -73,6 +74,7 @@ export function createHostAdapter(options) {
|
|
|
73
74
|
throw new Error("environmentForContext must return a process environment");
|
|
74
75
|
}
|
|
75
76
|
const registry = createHostBridgeToolRegistry({
|
|
77
|
+
listProjectionVersion: options.listProjectionVersion,
|
|
76
78
|
relayPath,
|
|
77
79
|
relayEnvironment: withStoreOwnerHostEnvironment(environment, "host-adapter"),
|
|
78
80
|
pluginConfig,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-adapter.js","sourceRoot":"","sources":["../../src/host-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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E,CAAC;QAC/C,kBAAkB,CACf,WAA4C,CAAC,GAAG,CAAC,EAClD,IAAI,CACL,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HostListProjectionVersion } from "./semantic-tool-list-format.js";
|
|
1
2
|
export interface HostBridgeToolContext {
|
|
2
3
|
readonly sessionKey: string;
|
|
3
4
|
readonly sessionId: string;
|
|
@@ -44,6 +45,8 @@ export interface HostBridgeCommandToolRegistry extends HostBridgeToolRegistry {
|
|
|
44
45
|
command(): HostBridgeCommandDescriptor;
|
|
45
46
|
}
|
|
46
47
|
export interface CreateHostBridgeToolsOptions {
|
|
48
|
+
/** Omitted preserves the v4 contract for existing embedding Hosts and MCP clients. */
|
|
49
|
+
readonly listProjectionVersion?: HostListProjectionVersion;
|
|
47
50
|
readonly relayPath: string;
|
|
48
51
|
readonly relayEnvironment: NodeJS.ProcessEnv;
|
|
49
52
|
readonly pluginConfig: Readonly<Record<string, unknown>>;
|
|
@@ -19,7 +19,9 @@ export function createHostBridgeToolRegistry(options) {
|
|
|
19
19
|
bindSemanticToolRelayEnvironment(runtime, options.relayEnvironment);
|
|
20
20
|
bindHostBridgeToolPresentation(runtime);
|
|
21
21
|
bindSemanticToolAsyncRelay(runtime);
|
|
22
|
-
const catalog = createAkkSemanticToolCatalog(runtime, new Map()
|
|
22
|
+
const catalog = createAkkSemanticToolCatalog(runtime, new Map(), {
|
|
23
|
+
listProjectionVersion: options.listProjectionVersion
|
|
24
|
+
});
|
|
23
25
|
const commandName = requiredString(catalog.command.name, "command name");
|
|
24
26
|
if (commandName !== "akk") {
|
|
25
27
|
throw new Error(`host bridge expected command akk, received ${commandName}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-bridge-tools.js","sourceRoot":"","sources":["../../src/host-bridge-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAC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ACtD,CAAC;AAED,SAAS,cAAc,CAAC,KAAc,EAAE,KAAa;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,cAAc,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -5,6 +5,6 @@ export { bindSemanticToolAsyncRelay as bindHostBridgeAsyncRelay, bindSemanticToo
|
|
|
5
5
|
export { pushOptional } from "./semantic-tool-runtime.js";
|
|
6
6
|
/** Adapt the host-neutral AKK catalog to OpenClaw's registration API. */
|
|
7
7
|
export function registerOpenClawCommands(api, displayedResumeSnapshots) {
|
|
8
|
-
registerSemanticToolCatalog(api, createAkkSemanticToolCatalog(api, displayedResumeSnapshots));
|
|
8
|
+
registerSemanticToolCatalog(api, createAkkSemanticToolCatalog(api, displayedResumeSnapshots, { listProjectionVersion: 5 }));
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=openclaw-plugin-command-adapter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openclaw-plugin-command-adapter.js","sourceRoot":"","sources":["../../src/openclaw-plugin-command-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,4BAA4B,EAE7B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,8BAA8B,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,0BAA0B,IAAI,wBAAwB,EACtD,gCAAgC,IAAI,4BAA4B,EAChE,yBAAyB,IAAI,qBAAqB,EAClD,4BAA4B,IAAI,wBAAwB,EACxD,MAAM,EACN,WAAW,EACX,8BAA8B,EAC/B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,yEAAyE;AACzE,MAAM,UAAU,wBAAwB,CACtC,GAAQ,EACR,wBAAoD;IAEpD,2BAA2B,CACzB,GAAG,EACH,4BAA4B,CAAC,GAAG,EAAE,wBAAwB,CAAC,
|
|
1
|
+
{"version":3,"file":"openclaw-plugin-command-adapter.js","sourceRoot":"","sources":["../../src/openclaw-plugin-command-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,4BAA4B,EAE7B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,8BAA8B,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,0BAA0B,IAAI,wBAAwB,EACtD,gCAAgC,IAAI,4BAA4B,EAChE,yBAAyB,IAAI,qBAAqB,EAClD,4BAA4B,IAAI,wBAAwB,EACxD,MAAM,EACN,WAAW,EACX,8BAA8B,EAC/B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,yEAAyE;AACzE,MAAM,UAAU,wBAAwB,CACtC,GAAQ,EACR,wBAAoD;IAEpD,2BAA2B,CACzB,GAAG,EACH,4BAA4B,CAAC,GAAG,EAAE,wBAAwB,EAAE,EAAE,qBAAqB,EAAE,CAAC,EAAE,CAAC,CAC1F,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HostListProjectionVersion } from "./semantic-tool-list-format.js";
|
|
1
2
|
export declare const HOST_LIST_MAX_BYTES: number;
|
|
2
3
|
export declare const HOST_LIST_MAX_WEIGHTED_CHARS = 12000;
|
|
3
4
|
type Row = Record<string, unknown>;
|
|
@@ -9,6 +10,8 @@ export declare function parseHostListPageOptions(params?: Row): {
|
|
|
9
10
|
filters: {
|
|
10
11
|
[k: string]: unknown;
|
|
11
12
|
};
|
|
13
|
+
projectionVersion: HostListProjectionVersion;
|
|
14
|
+
cursorVersion: number;
|
|
12
15
|
};
|
|
13
16
|
/** Healthy ended observations are history. Unknown/failed delivery and pending interaction stay current. */
|
|
14
17
|
export declare function hostListWatchNeedsAttention(row: Row): boolean;
|
|
@@ -2,6 +2,7 @@ import { createHash } from "node:crypto";
|
|
|
2
2
|
import { arrayValue } from "./semantic-tool-value-helpers.js";
|
|
3
3
|
import { recordValue } from "./value-guards.js";
|
|
4
4
|
import { withConversationUsage } from "./conversation-usage-guidance.js";
|
|
5
|
+
import { compactListV5Row, resolveHostListProjectionVersion } from "./semantic-tool-list-format.js";
|
|
5
6
|
// A byte budget also bounds UTF-16 output and leaves room for Host envelopes.
|
|
6
7
|
// It is not a token budget, and does not reduce the native discovery/read cost.
|
|
7
8
|
export const HOST_LIST_MAX_BYTES = 24 * 1024;
|
|
@@ -16,18 +17,21 @@ export function parseHostListPageOptions(params = {}) {
|
|
|
16
17
|
throw new Error("List now returns conversations only; use agent_knock_knock_watches or akk watches for monitoring and history");
|
|
17
18
|
}
|
|
18
19
|
const view = "current";
|
|
20
|
+
const projectionVersion = resolveHostListProjectionVersion(params.listProjectionVersion);
|
|
21
|
+
const cursorVersion = projectionVersion === 4 ? 2 : 3;
|
|
19
22
|
const limit = params.listLimit ?? 40;
|
|
20
23
|
if (!Number.isSafeInteger(limit) || Number(limit) < 1 || Number(limit) > 100)
|
|
21
24
|
throw new Error("listLimit must be between 1 and 100");
|
|
22
25
|
const filters = Object.fromEntries(FILTERS.filter(key => params[key] !== undefined).map(key => [key, params[key]]));
|
|
23
|
-
|
|
26
|
+
// Keep existing v4 cursors usable; new cursors bind the selected format as well as filters.
|
|
27
|
+
const scope = digest(JSON.stringify({ view, filters, ...(projectionVersion === 5 ? { projectionVersion } : {}) }));
|
|
24
28
|
let after = "";
|
|
25
29
|
if (params.listCursor !== undefined) {
|
|
26
30
|
try {
|
|
27
31
|
if (typeof params.listCursor !== "string" || params.listCursor.length > 512 || !/^[A-Za-z0-9_-]+$/u.test(params.listCursor))
|
|
28
32
|
throw new Error();
|
|
29
33
|
const cursor = JSON.parse(Buffer.from(params.listCursor, "base64url").toString("utf8"));
|
|
30
|
-
if (cursor.version !==
|
|
34
|
+
if (cursor.version !== cursorVersion || cursor.scope !== scope || typeof cursor.after !== "string" || !/^[0-9]:[a-f0-9]{64}$/u.test(cursor.after))
|
|
31
35
|
throw new Error();
|
|
32
36
|
after = cursor.after;
|
|
33
37
|
}
|
|
@@ -35,7 +39,7 @@ export function parseHostListPageOptions(params = {}) {
|
|
|
35
39
|
throw new Error("Invalid List cursor or changed filters; restart List without listCursor");
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
|
-
return { view, limit: Number(limit), scope, after, filters };
|
|
42
|
+
return { view, limit: Number(limit), scope, after, filters, projectionVersion, cursorVersion };
|
|
39
43
|
}
|
|
40
44
|
/** Healthy ended observations are history. Unknown/failed delivery and pending interaction stay current. */
|
|
41
45
|
export function hostListWatchNeedsAttention(row) {
|
|
@@ -83,7 +87,7 @@ export function paginateHostList(projected, params = {}) {
|
|
|
83
87
|
if (returned >= options.limit)
|
|
84
88
|
break;
|
|
85
89
|
const row = bytes(entry.row) > ROW_MAX_BYTES || hostListWeightedChars(JSON.stringify(entry.row)) > 6_000
|
|
86
|
-
? statusReference(entry.row) : entry.row;
|
|
90
|
+
? statusReference(entry.row, options.projectionVersion) : entry.row;
|
|
87
91
|
const rows = output[entry.field];
|
|
88
92
|
rows.push(row);
|
|
89
93
|
updatePage(returned + 1, entry.key);
|
|
@@ -105,8 +109,9 @@ export function paginateHostList(projected, params = {}) {
|
|
|
105
109
|
page.returned = count;
|
|
106
110
|
page.has_more = hasMore;
|
|
107
111
|
page.remaining = remaining.length - count;
|
|
108
|
-
page.next_cursor = hasMore && after ? Buffer.from(JSON.stringify({ version:
|
|
109
|
-
page.next_args = page.next_cursor ? { ...options.filters, listView: options.view, listLimit: options.limit,
|
|
112
|
+
page.next_cursor = hasMore && after ? Buffer.from(JSON.stringify({ version: options.cursorVersion, scope: options.scope, after })).toString("base64url") : null;
|
|
113
|
+
page.next_args = page.next_cursor ? { ...options.filters, listView: options.view, listLimit: options.limit,
|
|
114
|
+
listProjectionVersion: options.projectionVersion, listCursor: page.next_cursor } : null;
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
/** Keep non-resource metadata bounded separately from paged rows. */
|
|
@@ -151,13 +156,18 @@ function collectHostListEntries(projected) {
|
|
|
151
156
|
entries.sort((a, b) => a.order.localeCompare(b.order));
|
|
152
157
|
return { entries, categoryCounts };
|
|
153
158
|
}
|
|
154
|
-
function statusReference(row) {
|
|
159
|
+
function statusReference(row, version) {
|
|
155
160
|
const result = {};
|
|
156
161
|
for (const key of ["id", "conversation_id", "watch_id", "turn_id", "native_thread_id", "native_turn_id", "surface", "agent", "status", "activity_state", "connection_state",
|
|
157
162
|
"management_state", "pending_interaction_count", "pending_manual_count", "pending_async_count", "callback_state", "callback_expected", "observation_active", "channel_delivery_state"]) {
|
|
158
163
|
if (row[key] !== undefined)
|
|
159
164
|
result[key] = row[key];
|
|
160
165
|
}
|
|
166
|
+
if (version === 5)
|
|
167
|
+
for (const key of ["title", "cwd", "workspace", "sidebar_project_id", "sidebar_project_name"]) {
|
|
168
|
+
if (row[key] !== undefined)
|
|
169
|
+
result[key] = row[key];
|
|
170
|
+
}
|
|
161
171
|
const delivery = recordValue(row.callback_delivery);
|
|
162
172
|
if (delivery)
|
|
163
173
|
result.callback_delivery = delivery;
|
|
@@ -171,7 +181,7 @@ function statusReference(row) {
|
|
|
171
181
|
const id = row.watch_id ? { watch_id: row.watch_id } : row.turn_id ? { turn_id: row.turn_id } : { conversation_id: row.conversation_id ?? row.id };
|
|
172
182
|
result.action_inputs = { status: { arguments: id } };
|
|
173
183
|
result.next_action = "Read exact Status for current actions and interaction/callback details; omitted actions are not unsupported.";
|
|
174
|
-
return withConversationUsage(result);
|
|
184
|
+
return version === 5 ? compactListV5Row(result) : withConversationUsage(result);
|
|
175
185
|
}
|
|
176
186
|
function digest(text) { return createHash("sha256").update(text).digest("hex"); }
|
|
177
187
|
function bytes(value) { return Buffer.byteLength(JSON.stringify(value) ?? "null", "utf8"); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-tool-list-budget.js","sourceRoot":"","sources":["../../src/semantic-tool-list-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,8EAA8E;AAC9E,gFAAgF;AAChF,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,GAAG,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;AACnD,MAAM,aAAa,GAAG,KAAK,CAAC;AAC5B,MAAM,MAAM,GAAG,CAAC,eAAe,EAAE,WAAW,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,CAAU,CAAC;AACxH,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,oBAAoB,CAAC,CAAC;AACxL,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAClI,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,QAA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|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Output formats are selected explicitly; they never change action authority. */
|
|
2
|
+
export type HostListProjectionVersion = 4 | 5;
|
|
3
|
+
export declare function resolveHostListProjectionVersion(value: unknown, fallback?: HostListProjectionVersion): HostListProjectionVersion;
|
|
4
|
+
/** Remove derived prose and an exact duplicate selector, not state or action inputs. */
|
|
5
|
+
export declare function compactListV5Row(row: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function resolveHostListProjectionVersion(value, fallback = 4) {
|
|
2
|
+
if (value === undefined)
|
|
3
|
+
return fallback;
|
|
4
|
+
if (value === 4 || value === 5)
|
|
5
|
+
return value;
|
|
6
|
+
throw new Error("listProjectionVersion must be 4 or 5; use 4 for the legacy List format");
|
|
7
|
+
}
|
|
8
|
+
/** Remove derived prose and an exact duplicate selector, not state or action inputs. */
|
|
9
|
+
export function compactListV5Row(row) {
|
|
10
|
+
const output = { ...row };
|
|
11
|
+
delete output.usage;
|
|
12
|
+
if (typeof output.conversation_id === "string" && output.id === output.conversation_id)
|
|
13
|
+
delete output.id;
|
|
14
|
+
if (Array.isArray(output.terminal_controls)) {
|
|
15
|
+
output.terminal_controls = output.terminal_controls.map(value => value && typeof value === "object" && !Array.isArray(value)
|
|
16
|
+
? compactListV5Row(value) : value);
|
|
17
|
+
}
|
|
18
|
+
return output;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=semantic-tool-list-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic-tool-list-format.js","sourceRoot":"","sources":["../../src/semantic-tool-list-format.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,gCAAgC,CAC9C,KAAc,EACd,QAAQ,GAA8B,CAAC;IAEvC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAC;IACzC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC7C,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;AAC5F,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,gBAAgB,CAAC,GAA4B;IAC3D,MAAM,MAAM,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;IAC1B,OAAO,MAAM,CAAC,KAAK,CAAC;IACpB,IAAI,OAAO,MAAM,CAAC,eAAe,KAAK,QAAQ,IAAI,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,eAAe;QAAE,OAAO,MAAM,CAAC,EAAE,CAAC;IACzG,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAC5C,MAAM,CAAC,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAC9D,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YACzD,CAAC,CAAC,gBAAgB,CAAC,KAAgC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Watch inventory and retained history use the separate watches command. The controller
|
|
6
6
|
* receives current resource identities and state, action names, and only the
|
|
7
7
|
* dynamic semantic inputs needed to invoke those actions. Current-state usage
|
|
8
|
-
* advice stays with
|
|
8
|
+
* advice stays with v4 rows; v5 uses shared instructions in the bundled skill.
|
|
9
9
|
*/
|
|
10
10
|
export declare function compactAkkListModelProjection(value: unknown, params?: Record<string, unknown>): Record<string, unknown>;
|
|
11
11
|
/** Exact connection-scoped controls remain selectable without becoming extra conversations. */
|