@scotthuang/agent-knock-knock 0.12.12 → 0.12.14
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 +40 -0
- package/README.md +40 -27
- package/dist/src/approval-policy.d.ts +11 -2
- package/dist/src/approval-policy.js +33 -7
- package/dist/src/approval-policy.js.map +1 -1
- package/dist/src/callback-cli-adapter.d.ts +9 -6
- package/dist/src/callback-cli-adapter.js +119 -30
- package/dist/src/callback-cli-adapter.js.map +1 -1
- package/dist/src/callback-outbox-policy.d.ts +39 -0
- package/dist/src/callback-outbox-policy.js +163 -6
- package/dist/src/callback-outbox-policy.js.map +1 -1
- package/dist/src/callback-outbox-service.d.ts +28 -1
- package/dist/src/callback-outbox-service.js +413 -82
- package/dist/src/callback-outbox-service.js.map +1 -1
- package/dist/src/callback-outbox-settlement.d.ts +14 -1
- package/dist/src/callback-outbox-settlement.js +151 -30
- package/dist/src/callback-outbox-settlement.js.map +1 -1
- package/dist/src/callback-route-authority.d.ts +59 -0
- package/dist/src/callback-route-authority.js +123 -0
- package/dist/src/callback-route-authority.js.map +1 -0
- package/dist/src/callback-transport.d.ts +134 -0
- package/dist/src/callback-transport.js +256 -0
- package/dist/src/callback-transport.js.map +1 -0
- package/dist/src/claude-local-transcript-provider.d.ts +81 -0
- package/dist/src/claude-local-transcript-provider.js +854 -18
- package/dist/src/claude-local-transcript-provider.js.map +1 -1
- package/dist/src/cli-core.js +102 -4
- package/dist/src/cli-core.js.map +1 -1
- package/dist/src/codex-lifecycle-compatibility.js +2 -1
- package/dist/src/codex-lifecycle-compatibility.js.map +1 -1
- package/dist/src/deferred-foreground-application-service.d.ts +18 -0
- package/dist/src/deferred-foreground-application-service.js +72 -0
- package/dist/src/deferred-foreground-application-service.js.map +1 -1
- package/dist/src/deferred-foreground-authority-cli-adapter.js +92 -20
- package/dist/src/deferred-foreground-authority-cli-adapter.js.map +1 -1
- package/dist/src/deferred-foreground-recovery-cli-adapter.d.ts +1 -1
- package/dist/src/deferred-foreground-recovery-cli-adapter.js +108 -37
- package/dist/src/deferred-foreground-recovery-cli-adapter.js.map +1 -1
- package/dist/src/deferred-foreground-recovery-service.d.ts +1 -1
- package/dist/src/deferred-foreground-recovery-service.js +10 -3
- package/dist/src/deferred-foreground-recovery-service.js.map +1 -1
- package/dist/src/deferred-foreground-transfer-policy.d.ts +1 -1
- package/dist/src/deferred-foreground-transfer-policy.js +3 -2
- package/dist/src/deferred-foreground-transfer-policy.js.map +1 -1
- package/dist/src/deferred-foreground-transfer.d.ts +17 -1
- package/dist/src/deferred-foreground-transfer.js +247 -39
- package/dist/src/deferred-foreground-transfer.js.map +1 -1
- package/dist/src/deferred-foreground-user-close.d.ts +18 -0
- package/dist/src/deferred-foreground-user-close.js +180 -0
- package/dist/src/deferred-foreground-user-close.js.map +1 -0
- package/dist/src/openclaw-callback-transport.d.ts +9 -1
- package/dist/src/openclaw-callback-transport.js +404 -11
- package/dist/src/openclaw-callback-transport.js.map +1 -1
- package/dist/src/openclaw-managed-callback-cli-adapter.d.ts +23 -0
- package/dist/src/openclaw-managed-callback-cli-adapter.js +77 -0
- package/dist/src/openclaw-managed-callback-cli-adapter.js.map +1 -0
- package/dist/src/openclaw-plugin-callback-adapter.js +96 -14
- package/dist/src/openclaw-plugin-callback-adapter.js.map +1 -1
- package/dist/src/openclaw-plugin-command-adapter.js +547 -109
- package/dist/src/openclaw-plugin-command-adapter.js.map +1 -1
- package/dist/src/openclaw-plugin-helpers.d.ts +27 -4
- package/dist/src/openclaw-plugin-helpers.js +317 -44
- package/dist/src/openclaw-plugin-helpers.js.map +1 -1
- package/dist/src/openclaw-plugin-schemas.d.ts +61 -66
- package/dist/src/openclaw-plugin-schemas.js +87 -91
- package/dist/src/openclaw-plugin-schemas.js.map +1 -1
- package/dist/src/openclaw-plugin-supervisor.js +48 -10
- package/dist/src/openclaw-plugin-supervisor.js.map +1 -1
- package/dist/src/openclaw-private-authority-offers.d.ts +22 -0
- package/dist/src/openclaw-private-authority-offers.js +177 -0
- package/dist/src/openclaw-private-authority-offers.js.map +1 -0
- package/dist/src/protocol.d.ts +3 -0
- package/dist/src/protocol.js +4 -0
- package/dist/src/protocol.js.map +1 -1
- package/dist/src/store.d.ts +10 -0
- package/dist/src/store.js +82 -2
- package/dist/src/store.js.map +1 -1
- package/dist/src/terminal-acceptance-cli-adapter.d.ts +2 -0
- package/dist/src/terminal-acceptance-cli-adapter.js +62 -12
- package/dist/src/terminal-acceptance-cli-adapter.js.map +1 -1
- package/dist/src/terminal-action-projection.d.ts +19 -2
- package/dist/src/terminal-action-projection.js +27 -5
- package/dist/src/terminal-action-projection.js.map +1 -1
- package/dist/src/terminal-agent-bridge.d.ts +82 -0
- package/dist/src/terminal-agent-bridge.js +539 -111
- package/dist/src/terminal-agent-bridge.js.map +1 -1
- package/dist/src/terminal-command-cli-adapter.d.ts +14 -0
- package/dist/src/terminal-command-cli-adapter.js +2435 -150
- package/dist/src/terminal-command-cli-adapter.js.map +1 -1
- package/dist/src/terminal-dispatch-application.d.ts +4 -1
- package/dist/src/terminal-dispatch-application.js +11 -2
- package/dist/src/terminal-dispatch-application.js.map +1 -1
- package/dist/src/terminal-dispatch-execution.js +3 -1
- package/dist/src/terminal-dispatch-execution.js.map +1 -1
- package/dist/src/terminal-dispatch-ledger-codec.d.ts +3 -0
- package/dist/src/terminal-dispatch-ledger-codec.js +46 -19
- package/dist/src/terminal-dispatch-ledger-codec.js.map +1 -1
- package/dist/src/terminal-dispatch-presenter.js +5 -3
- package/dist/src/terminal-dispatch-presenter.js.map +1 -1
- package/dist/src/terminal-dispatch-receipt.d.ts +3 -0
- package/dist/src/terminal-dispatch-receipt.js +15 -1
- package/dist/src/terminal-dispatch-receipt.js.map +1 -1
- package/dist/src/terminal-dispatch-recovery-cli-adapter.js +68 -7
- package/dist/src/terminal-dispatch-recovery-cli-adapter.js.map +1 -1
- package/dist/src/terminal-dispatch-recovery-service.d.ts +2 -0
- package/dist/src/terminal-dispatch-recovery-service.js +9 -0
- package/dist/src/terminal-dispatch-recovery-service.js.map +1 -1
- package/dist/src/terminal-dispatch-repository-cli-adapter.js +305 -79
- package/dist/src/terminal-dispatch-repository-cli-adapter.js.map +1 -1
- package/dist/src/terminal-identity-authority-cli-adapter.d.ts +2 -0
- package/dist/src/terminal-identity-authority-cli-adapter.js +30 -27
- package/dist/src/terminal-identity-authority-cli-adapter.js.map +1 -1
- package/dist/src/terminal-list-cli-adapter.d.ts +32 -7
- package/dist/src/terminal-list-cli-adapter.js +335 -98
- package/dist/src/terminal-list-cli-adapter.js.map +1 -1
- package/dist/src/terminal-list-renderer.d.ts +11 -1
- package/dist/src/terminal-list-renderer.js +328 -132
- package/dist/src/terminal-list-renderer.js.map +1 -1
- package/dist/src/terminal-maintenance-cli-adapter.js +253 -326
- package/dist/src/terminal-maintenance-cli-adapter.js.map +1 -1
- package/dist/src/terminal-monitor-application-service.d.ts +5 -0
- package/dist/src/terminal-monitor-application-service.js +5 -0
- package/dist/src/terminal-monitor-application-service.js.map +1 -1
- package/dist/src/terminal-monitor-cli-adapter.d.ts +25 -1
- package/dist/src/terminal-monitor-cli-adapter.js +171 -28
- package/dist/src/terminal-monitor-cli-adapter.js.map +1 -1
- package/dist/src/terminal-monitor-reconciliation-eligibility.d.ts +1 -1
- package/dist/src/terminal-monitor-reconciliation-eligibility.js +220 -32
- package/dist/src/terminal-monitor-reconciliation-eligibility.js.map +1 -1
- package/dist/src/terminal-monitor-state-cli-adapter.d.ts +1 -1
- package/dist/src/terminal-monitor-state-cli-adapter.js +814 -162
- package/dist/src/terminal-monitor-state-cli-adapter.js.map +1 -1
- package/dist/src/terminal-monitor-state-reconciliation-service.d.ts +2 -1
- package/dist/src/terminal-monitor-state-reconciliation-service.js +12 -0
- package/dist/src/terminal-monitor-state-reconciliation-service.js.map +1 -1
- package/dist/src/terminal-monitor-supervision-cli-adapter.d.ts +2 -0
- package/dist/src/terminal-monitor-supervision-cli-adapter.js +31 -11
- package/dist/src/terminal-monitor-supervision-cli-adapter.js.map +1 -1
- package/dist/src/terminal-status-cli-adapter.d.ts +11 -0
- package/dist/src/terminal-status-cli-adapter.js +119 -35
- package/dist/src/terminal-status-cli-adapter.js.map +1 -1
- package/dist/src/terminal-submission-acceptance.d.ts +60 -1
- package/dist/src/terminal-submission-acceptance.js +613 -0
- package/dist/src/terminal-submission-acceptance.js.map +1 -1
- package/dist/src/terminal-submission-retry-service.d.ts +114 -0
- package/dist/src/terminal-submission-retry-service.js +589 -0
- package/dist/src/terminal-submission-retry-service.js.map +1 -0
- package/dist/src/terminal-watch-callback-cli-adapter.d.ts +28 -0
- package/dist/src/terminal-watch-callback-cli-adapter.js +94 -0
- package/dist/src/terminal-watch-callback-cli-adapter.js.map +1 -0
- package/dist/src/terminal-watch-cli-adapter.d.ts +64 -0
- package/dist/src/terminal-watch-cli-adapter.js +532 -0
- package/dist/src/terminal-watch-cli-adapter.js.map +1 -0
- package/dist/src/terminal-watch-service.d.ts +102 -0
- package/dist/src/terminal-watch-service.js +883 -0
- package/dist/src/terminal-watch-service.js.map +1 -0
- package/dist/src/terminal-watch-store.d.ts +172 -0
- package/dist/src/terminal-watch-store.js +1019 -0
- package/dist/src/terminal-watch-store.js.map +1 -0
- package/docs/quickstart-herdr.md +8 -0
- package/docs/quickstart-tmux.md +33 -6
- package/openclaw.plugin.json +11 -3
- package/package.json +1 -1
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +61 -40
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.14 - 2026-08-24
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add an exact Codex `0.149.1` native lifecycle and `/status` inspection profile, retaining fail-closed handling for adjacent and future unverified versions.
|
|
8
|
+
- Add a versioned, host-neutral callback route and transport boundary with durable routing and idempotency authority while retaining OpenClaw as the concrete host adapter.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Distinguish the exact Codex root user row from same-turn synthetic user-role context, preserving Terminal Watch until a later native task actually supersedes it.
|
|
13
|
+
- Safely recover eligible uncertain Send submissions through exact one-shot retry and reconciliation without replaying accepted input or replacing the original request.
|
|
14
|
+
- Make explicit Close honor the user's management-release decision first, with best-effort linked cleanup, warning-only cleanup conflicts, no terminal or coding-agent interruption, and immediate eligibility for a fresh Watch.
|
|
15
|
+
|
|
16
|
+
### Security
|
|
17
|
+
|
|
18
|
+
- Freeze callback routing and idempotency authority durably, fail closed on route drift or ambiguous recovery, and keep model-facing callback and retry contracts free of opaque authority material.
|
|
19
|
+
- Require exact adjacent native-event evidence and a privacy-safe content hash when identifying Codex root user rows; missing, duplicate, orphaned, or mismatched evidence fails closed.
|
|
20
|
+
|
|
21
|
+
## 0.12.13 - 2026-08-22
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- Add durable Terminal Watch for exact human-started Codex and Claude Code tasks, with restart-safe OpenClaw callbacks for approval, completion, failure, timeout, invalidation, and cancellation.
|
|
26
|
+
- Add `agent_knock_knock_watch` / `agent_knock_knock_unwatch`, `/akk watch` / `/akk unwatch`, and watch-aware list/status output without creating an AKK Session or Turn or sending terminal input.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Derive Watch and Send authority from exact terminal IDs inside the trusted plugin/CLI boundary, so OpenClaw models never need to copy opaque tokens or fingerprints.
|
|
31
|
+
- Keep Watch activity authoritative when Codex's transient screen markers look idle, support large historical rollouts with incremental checkpoints, and isolate corrupt historical Watch records without starving healthy watches or callbacks.
|
|
32
|
+
- Restore follow-current Send across tmux route renumbering, stale legacy dispatch ledgers, long-lived Sessions with released earlier binding epochs, and interrupted v1-to-v2 ledger migration without replaying terminal input.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- Advance the action contract to 18 and expand the OpenClaw plugin contract to 16 tools. Model-facing actions now carry semantic IDs only; opaque freshness and confirmation authority remains private to the plugin and CLI. Store writer protocol remains 5; Terminal Watch uses its own schema-v1 aggregate.
|
|
37
|
+
|
|
38
|
+
### Security
|
|
39
|
+
|
|
40
|
+
- Pin each Watch to exact terminal, process, native-task, runtime-version, rollout/transcript file, and privacy-safe request-hash evidence; drift fails closed and approval observations never authorize automatic input.
|
|
41
|
+
- Revalidate private Send, lifecycle, handoff, reconciliation, and approval authority under canonical terminal and Store locks; stale, split, replayed, cross-session, or callback-mismatched evidence sends zero terminal input.
|
|
42
|
+
|
|
3
43
|
## 0.12.12 - 2026-08-21
|
|
4
44
|
|
|
5
45
|
### Added
|
package/README.md
CHANGED
|
@@ -70,6 +70,12 @@ AKK connects OpenClaw to Codex or Claude Code already running inside a supported
|
|
|
70
70
|
|
|
71
71
|
AKK is local-first. It has no hosted control plane or telemetry and does not change the coding agent's configured permission mode.
|
|
72
72
|
|
|
73
|
+
AKK can also observe work that a human started directly in the Codex or Claude Code TUI. While that task is actively working or awaiting approval, refresh `/akk list` and use only the exact `watch` action advertised by that terminal row. Both the structured action and `/akk watch <exact-terminal-id>` take only that full `terminal_id`; AKK refreshes and revalidates the current terminal binding internally. It returns a durable `watch_id`, which is the only target for `/akk status <watch-id>` or `/akk unwatch <watch-id>`.
|
|
74
|
+
|
|
75
|
+
Terminal Watch is only for human-started external work. If that terminal already has an active AKK-managed Turn, list and status do not offer Watch and a direct Watch attempt is rejected; use the Turn's existing monitor, status, and callback path instead.
|
|
76
|
+
|
|
77
|
+
A Terminal Watch is a separate schema-v1 aggregate, not an AKK Session or Turn. It sends no terminal input, does not adopt, claim, reserve, or block the human's task, and never auto-approves anything. An approval observation only notifies OpenClaw; the human must inspect and decide in the TUI. The Watch is pinned to the exact terminal/process/native-task identity and a privacy-safe Codex rollout or Claude transcript anchor. An exact durable completion already written to that anchor wins; otherwise any process, thread, endpoint, file, boundary, or fingerprint drift invalidates the Watch instead of following a successor task. Its settlement and notification outbox survive AKK or OpenClaw restarts, with leased retry and deterministic callback idempotency.
|
|
78
|
+
|
|
73
79
|
### Terminal, native session, AKK session, and Turn
|
|
74
80
|
|
|
75
81
|
AKK keeps four identities separate:
|
|
@@ -83,21 +89,21 @@ terminal resource / process incarnation
|
|
|
83
89
|
└─ Turn 3 (turn_id)
|
|
84
90
|
```
|
|
85
91
|
|
|
86
|
-
|
|
92
|
+
The v18 model-facing action contract is semantic-ID only. `send(session_id, request)` is **session-scoped** (`session_exact`): it creates a new `turn_id` in that exact native coding-agent context and never silently follows a different thread now visible in the pane. `send(terminal_id, request)` is **terminal-scoped follow-current** (`terminal_follow_current`): it means “send this ordinary task to the current verified context in this pane,” including when AKK cannot yet name its foreground native thread. `session_id` and `terminal_id` are mutually exclusive; callers may omit both only when AKK must prove one unique eligible pane. Human-facing slash selectors remain a discovery convenience, but structured tools never carry selectors or opaque authority values. The trusted plugin/CLI derives fresh terminal, binding, candidate, prompt, and handoff fences internally, then revalidates them under the canonical terminal and Store locks before a side effect. AKK sends the task once and binds only the single rollout that durably accepts that exact request. The `turn_id` is not a destination for later ordinary sends; it is the exact identity used for status, approval, cancellation, renewal, callback retry, close, and callback correlation. If a Turn is `waiting_for_openclaw`, `respond(turn_id, answer)` supplies the answer inside that same Turn instead of creating another one.
|
|
87
93
|
|
|
88
|
-
v15
|
|
94
|
+
v15 generalized the human-priority Codex path; v18 preserves that safety while removing opaque fences from model arguments. It covers a status-card-only Session with no rollout, a quiescent managed pane whose exact open-rollout inventory is complete but cannot identify the foreground candidate, and a supported manual `/clear` whose new logical thread is visible before its rollout materializes. The complete exact inventory domain binds the provider terminal, PID and process birth, workspace and canonical endpoint, and every open rollout's UUID, descriptor, device, inode, canonical path, and pre-submit byte offset. Native foreground resolution may be unavailable only when that independent domain is complete and exact; an incomplete, missing, stale, or changed domain fails closed. A `/clear` resume hint is advisory only. Under the terminal lock, AKK isolates the old Session, creates a separate zero-UUID provisional Session and Turn, sends only the real task, and promotes that target only after the post-submit monitor finds a unique exact request acceptance in the pinned rollout domain. The resulting native UUID may match or differ from the old Session; it is never silently merged back into the predecessor. A rollout-backed Codex row therefore advertises `terminal_follow_current` with `terminal_id`, not `session_exact`; a cached or direct `session_exact` attempt revalidates under the terminal lock, rejects before task text, and never downgrades itself to the follow-current path. Only released predecessor Turn history from a strictly earlier binding epoch is excluded from current-send authority; unresolved current-epoch state still blocks. The freshly listed semantic-ID action can work in a narrow pane without `/status`. Until promotion commits, strict `session_id` send, `respond`, managed `approve`, `cancel`, native lifecycle, callback delivery, and `native_inspect` remain unavailable. If terminal delivery or native acceptance is uncertain, AKK does not retry the input. Explicit Close is the user's management escape hatch: AKK closes the selected Turn first, sends no terminal input, leaves the coding agent and pane running, and then best-effort releases only linked AKK metadata. Missing, malformed, stale, or newer cleanup records are preserved and reported as warnings instead of vetoing Close. Refresh the list afterward; if the coding agent is still working, Watch can observe it again.
|
|
89
95
|
|
|
90
|
-
|
|
96
|
+
Approval remains separate from managed attribution. When `list` can prove one exact visible Codex approval prompt, it may advertise managed `approve({turn_id})` or terminal-scoped `approve({terminal_id})`; the latter remains possible when foreground rollout attribution is temporarily unavailable. The user must inspect and explicitly confirm that exact prompt. The plugin/CLI then keeps the confirmation offer private, recaptures the prompt, and revalidates the Store, terminal, process, and prompt fence under lock immediately before sending the exact key once. No token or fingerprint is transported through the model call. Terminal-scoped approval does not attribute the approval to a Turn, mutate Session identity, or create a durable approval receipt, so an uncertain transport result must not be retried blindly. It is never available to auto-approve. A changed prompt, identity, owner, or confirmation offer remains blocked.
|
|
91
97
|
|
|
92
|
-
|
|
98
|
+
The private approval fence remains prompt-scoped. AKK hashes the adapter-isolated, exact unredacted approval region together with the terminal/process identity, decision keys and label, prompt kind, working directory, reason/detail, and any request or policy evidence. The whole-screen digest and redacted excerpt remain diagnostic only: output outside the approval region may change without invalidating the same reviewed prompt. A change inside the region—including the command or an otherwise identically redacted secret, choices, highlighted option, prompt kind, or request identity—or a change in the bound process, working directory, or request evidence still rejects with zero approval keys. If the adapter cannot isolate one complete bounded prompt region, approval fails closed. The raw prompt region and its opaque fence are never returned to the model, persisted as public action data, or logged.
|
|
93
99
|
|
|
94
|
-
Human-friendly selectors such as `only`, `codex`, `claude`, a terminal ID, or `@short-ref` remain a discovery layer.
|
|
100
|
+
Human-friendly selectors such as `only`, `codex`, `claude`, a terminal ID, or `@short-ref` remain a slash-command discovery layer. Structured model tools use semantic IDs instead: strict continuation pre-fills `session_id`, while follow-current continuation pre-fills `terminal_id`. Merely observing a mismatch or an unbound rollout inventory never mutates the Store. AKK advertises a send only when it can prove a single source claim, an exact live terminal/process incarnation, an idle empty composer, a stable complete rollout inventory, and no unresolved Turn, transition, dispatch, or approval. A foreground ambiguity inside that complete inventory may be resolved after the real request is accepted; incomplete, stale, or unverifiable evidence remains blocked. Other actions likewise expose only their semantic identities, while opaque freshness fences are derived and consumed inside the trusted plugin/CLI boundary.
|
|
95
101
|
|
|
96
|
-
An exact human switch while the old Session still has one active Turn is a decision point, not an automatic redirect.
|
|
102
|
+
An exact human switch while the old Session still has one active Turn is a decision point, not an automatic redirect. The terminal row may expose `handoff_decision` instead of a follow-current send. If the user chooses to close the old Turn, explicit Close takes priority and releases only its AKK management; it does not depend on the live native thread remaining unchanged, sends no terminal input, and does not stop the coding agent. Then list again and use only the newly advertised follow-current send or Watch action. Choosing `keep_source` changes no AKK state: restore the old native thread in the Codex or Claude TUI, then refresh the list.
|
|
97
103
|
|
|
98
|
-
Native clear/new/resume operations requested through AKK are explicit lifecycle actions, separate from ordinary Turn creation. A successful new/clear creates a new native thread and AKK Session; resume activates the exact historical native thread and its corresponding Session. Each successful lifecycle transition creates no Turn. A human may also run native `/clear`, `/new`, `/resume`, or the equivalent directly in the shared terminal. AKK does not forbid that takeover: the next exact, fresh terminal-scoped follow-current send can absorb the human-driven transition when it is safe, while a `session_id` send deliberately remains pinned to its old context. AKK serializes either transition, verifies the resulting native identity, and advances the terminal binding generation so work and callbacks from the previous context cannot cross the boundary. Exact AKK-driven lifecycle profiles are verified for Codex 0.146.0/0.146.1/0.147.0/0.148.0 and Claude Code 2.1.218/2.1.226/2.1.237.
|
|
104
|
+
Native clear/new/resume operations requested through AKK are explicit lifecycle actions, separate from ordinary Turn creation. A successful new/clear creates a new native thread and AKK Session; resume activates the exact historical native thread and its corresponding Session. Each successful lifecycle transition creates no Turn. A human may also run native `/clear`, `/new`, `/resume`, or the equivalent directly in the shared terminal. AKK does not forbid that takeover: the next exact, fresh terminal-scoped follow-current send can absorb the human-driven transition when it is safe, while a `session_id` send deliberately remains pinned to its old context. AKK serializes either transition, verifies the resulting native identity, and advances the terminal binding generation so work and callbacks from the previous context cannot cross the boundary. Exact AKK-driven lifecycle profiles are verified for Codex 0.146.0/0.146.1/0.147.0/0.148.0/0.149.1 and Claude Code 2.1.218/2.1.226/2.1.237.
|
|
99
105
|
|
|
100
|
-
AKK status and native status inspection are different operations. `agent_knock_knock_status` (and `/akk status`) reads AKK Turn state plus a bounded current terminal screen; it does not execute the coding agent's `/status`. When an idle terminal row advertises `native_inspect`, `agent_knock_knock_native_inspect` can execute only
|
|
106
|
+
AKK status and native status inspection are different operations. `agent_knock_knock_status` (and `/akk status`) reads AKK Turn state plus a bounded current terminal screen; it does not execute the coding agent's `/status`. When an idle terminal row advertises `native_inspect`, `agent_knock_knock_native_inspect({terminal_id, inspection:"status"})` can execute only that closed, version-scoped inspection. AKK derives and revalidates the fresh binding fence internally. Supported profiles are Codex 0.146.0/0.146.1/0.147.0/0.148.0/0.149.1 and Claude Code 2.1.218/2.1.226/2.1.237. Claude's adapter parses a newly opened Status panel, dismisses that exact panel once, and proves the same pane returned to an idle empty composer. The action creates no Session, Turn, receipt, monitor, or callback. `/usage`, `/cost`, `/stats`, `/usage-credits`, `/model`, `/compact`, arbitrary slash strings, and unsupported versions remain unavailable. In particular, bare Codex `/usage` opens an interactive menu whose later Enter can select an account-side usage-limit reset; do not automate it as a read-only inspection.
|
|
101
107
|
|
|
102
108
|
## Optional: Natural-Language Delegation
|
|
103
109
|
|
|
@@ -227,32 +233,38 @@ The core command surface is intentionally small:
|
|
|
227
233
|
/akk <task>
|
|
228
234
|
/akk <selector>: <message>
|
|
229
235
|
/akk list
|
|
236
|
+
/akk watch <exact-terminal-id>
|
|
237
|
+
/akk unwatch <watch-id>
|
|
230
238
|
/akk threads <exact-terminal-id>
|
|
231
239
|
/akk new-thread <exact-terminal-id>
|
|
232
240
|
/akk clear-thread <exact-terminal-id>
|
|
233
|
-
/akk resume-thread <exact-terminal-id> [uuid|previous|number|@short-id
|
|
234
|
-
/akk status [only|latest|codex|claude|@short-ref]
|
|
241
|
+
/akk resume-thread <exact-terminal-id> [uuid|previous|number|@short-id]
|
|
242
|
+
/akk status [only|latest|codex|claude|@short-ref|terminal-watch-id]
|
|
235
243
|
/akk respond <turn-selector>: <answer>
|
|
236
244
|
/akk cancel <turn-selector>
|
|
237
245
|
```
|
|
238
246
|
|
|
239
|
-
`/akk list` performs a controlled reconciliation across managed turns, and `/akk status` limits reconciliation to the selected turn. This can close records whose idle retention has elapsed and restore eligible missing monitors, but it does not send terminal input or retry callback delivery.
|
|
247
|
+
`/akk list` performs a controlled reconciliation across managed turns, and managed `/akk status` limits reconciliation to the selected turn. This can close records whose idle retention has elapsed and restore eligible missing monitors, but it does not send terminal input or retry managed-Turn callback delivery. A `watch_id` status reads that independent Watch record. The running OpenClaw supervisor coordinates two separate reconciliation passes every five seconds and at startup: one restores eligible `waiting_for_agent` Turn monitors, while the other observes active Terminal Watches and retries their durable callback outboxes. Each pass has its own error boundary, so one failure does not starve the other. Standalone shell queries are read-only unless their command explicitly reconciles, and resolving a selector never changes turn state.
|
|
240
248
|
|
|
241
|
-
Selectors fail closed: `only` works only with one actionable target, `latest` requires a unique newest target, and `codex` or `claude` must identify exactly one eligible pane. These names and `@short-ref` are human-facing resolution inputs
|
|
249
|
+
Selectors fail closed: `only` works only with one actionable target, `latest` requires a unique newest target, and `codex` or `claude` must identify exactly one eligible pane. These names and `@short-ref` are human-facing slash-command resolution inputs. The v18 structured model contract does not expose a `selector`: JSON actions carry an authoritative `session_id`, `terminal_id`, `turn_id`, `watch_id`, or other semantic entity ID. For ordinary send, exactly one of `session_id` and `terminal_id` may be supplied, or both may be omitted to require one unique pane. Approval likewise uses only `turn_id` or `terminal_id` after explicit confirmation. Before every terminal operation, AKK derives fresh opaque authority internally, revalidates the expected agent PID and provider-owned terminal identity, confirms that the process and pane working directories still match, and—before send—revalidates the idle prompt.
|
|
242
250
|
|
|
243
|
-
To ask AKK itself to change native context, first copy the full `terminal_id` from `/akk list`; lifecycle commands do not accept an ordinary-send `@short-ref` or loose agent selector. `/akk threads <exact-terminal-id>` lists exact, same-workspace candidates with a deterministic number, a collision-safe display-only `@short-id`,
|
|
251
|
+
To ask AKK itself to change native context, first copy the full `terminal_id` from `/akk list`; lifecycle commands do not accept an ordinary-send `@short-ref` or loose agent selector. `/akk threads <exact-terminal-id>` lists exact, same-workspace candidates with a deterministic number, a collision-safe display-only `@short-id`, and the complete UUID. `/akk resume-thread <exact-terminal-id>` without a selection shows that list. A complete UUID remains compatible. A number or short ID resolves only against the latest list displayed in the same OpenClaw conversation incarnation; both expire after five minutes and fail after terminal, process, workspace, binding, candidate-set, or relevant action changes. AKK resolves that human navigation to the complete UUID and derives fresh private evidence under lock. `previous` (or `刚才那个`) is advertised only when the current Session's latest committed lifecycle transition identifies exactly one currently verified resumable source; it never guesses from title, recency, or static lineage. If `previous` is present, use only its exact prefilled semantic-ID action for a natural-language “刚才那个” request. Structured lifecycle mutations are `new_thread({terminal_id})` and `resume_thread({terminal_id,native_thread_id})`. AKK does not poll bindings or adopt observed switches in the background: a human-driven switch is adopted only as part of an explicit, fresh terminal-scoped send. If a recorded owner process exits, the next lifecycle listing can classify that sole historical binding as resumable, and the resume mutation compare-and-swap detaches it before touching the terminal. Stale, expired, unsupported, busy, ambiguous, active-elsewhere, or unverifiable transitions fail closed. Do not ask AKK to send `/clear`, `/new`, `/resume`, `/status`, Codex `/fork`, `/side`, or `/btw`, Claude `/branch`, or any other first-line native slash command as an ordinary task or answer; use an advertised AKK action, express the request in natural language, or enter an unsupported native command manually in the terminal UI.
|
|
244
252
|
|
|
245
|
-
|
|
253
|
+
The number and short-ID resume forms refer only to that displayed snapshot; neither is a durable identity or model authority.
|
|
246
254
|
|
|
247
|
-
|
|
255
|
+
To request a native Codex status card or Claude Status panel, first run `agent_knock_knock_list` and use only that terminal row's advertised `native_inspect({terminal_id,inspection:"status"})` action. The structured tool schema is closed to those two semantic fields; callers cannot provide `/status`, another slash command, or an authority token. AKK serializes the inspection with terminal mutations, derives and revalidates its private binding fence and exact terminal identity, and returns only after it proves one fresh bounded status result and an idle postcondition. Codex status probes additionally require an exact viewport of at least 80 columns to preserve the full Session UUID, cross the versioned paste-settle boundary, and dispatch Enter exactly once. An initially narrow or unknown viewport fails before text input with a widen/zoom diagnostic; post-injection viewport or composer drift fails closed before Enter and leaves the draft for manual inspection. Codex `/status` and that viewport requirement apply only to operations that must prove the UUID before terminal input. An otherwise eligible terminal-scoped ordinary task can send once and bind from exact native acceptance afterward, so it does not run `/status` or fail merely because the pane is narrow. For Claude, the inspection safely dismisses the exact modal once. It never turns ordinary `send` or `respond` into a slash-command escape hatch.
|
|
256
|
+
|
|
257
|
+
The current OpenClaw surface registers 16 tools, and the top-level v18 `action_contracts` documents Terminal Watch alongside closed native inspection, human-priority current-pane send/approval, lifecycle, and Turn actions. Every model-facing action carries semantic IDs only; opaque freshness and compare-and-swap fences stay inside the trusted plugin/CLI boundary. `available_actions` remains the authority for ordinary current actions. Explicit Close is always available for a selected managed Turn after user confirmation, including deferred-transfer and handoff conflicts; it releases AKK management without terminal input or stopping the coding agent. A terminal row may also expose a nested `blocking_turns[].recovery_action` for the same user-owned Close. Invoke the advertised semantic-ID action, then refresh the list before doing anything else.
|
|
248
258
|
|
|
249
259
|
For natural-language tool use, `agent_knock_knock_list` is terminal-first. Each live pane appears exactly once in `terminals[]`; `process_state` reports whether its coding-agent process is alive and `activity_state` reports the parsed screen state. `managed.session_id` identifies the continuing AKK session, `managed.current_turn` is its optional active Turn, and `managed.recent_turn` is retained history; retained Turns do not occupy the terminal. A human-driven native-thread mismatch remains honestly classified as `management_state="conflict"`; its `handoff_state` is `external_handoff_adoptable` only when the row advertises the fenced follow-current `send`, otherwise it is `external_handoff_blocked`. Listing never performs the adoption. Pass `all=true` to include older entries in `managed.history`. By default, `unavailable_managed_turns[]` contains attention-needed records whose pane cannot be presented as a live terminal; `all=true` also includes retained unavailable history.
|
|
250
260
|
|
|
251
|
-
Use only an `available_actions` entry returned in
|
|
261
|
+
Use only an `available_actions` entry returned in the current list, begin with its prefilled semantic IDs, and supply every `missing_required` field. The only additional action sources are a terminal row's nested `handoff_decision.choices.take_over_current.action` and an exact `blocking_turns[].recovery_action`; both require explicit user confirmation. When advertised, a managed Session's strict send uses `send({session_id,request})` and creates a new Turn only in that Session's native context. A follow-current send uses `send({terminal_id,request})`; this is the human-priority path when the pane is exact but its foreground Codex UUID is not yet attributable. Structured send never exposes a selector. `respond` and managed controls use `turn_id`; terminal-scoped approval uses `terminal_id` only after explicit confirmation. Native inspection uses `{terminal_id,inspection:"status"}`. Other raw controls may be used only through the exact action their row advertises. `timeoutSeconds` is unsupported, and monitoring limits should be omitted unless the user explicitly asks to change them. AKK derives fresh opaque fences and revalidates availability under lock before every side effect.
|
|
262
|
+
|
|
263
|
+
On first attach, the target terminal must be explicitly named by the user; AKK never guesses which already-running pane should receive a task.
|
|
252
264
|
|
|
253
|
-
The top-level
|
|
265
|
+
The top-level v18 action contracts include `watch` and `unwatch` as well as `send`, manual `approve`, `native_inspect`, `list_resumable_threads`, `new_thread`, `resume_thread`, and conflict-only `reconcile_binding`. Their model-facing mutation shapes are deliberately small: `watch({terminal_id})`; `send({session_id|terminal_id,request})` with the targets mutually exclusive; managed `approve({turn_id})` or terminal-scoped `approve({terminal_id})`; `native_inspect({terminal_id,inspection})`; `new_thread({terminal_id})`; `resume_thread({terminal_id,native_thread_id})`; and `reconcile_binding({terminal_id,conflicting_session_id})`. Approval, handoff takeover, and reconciliation require explicit user confirmation, but none transports a token, revision, binding ID/generation, candidate fence, handoff-only live-native-UUID fence, or approval fingerprint through the model. `native_thread_id` remains the intentional semantic identity for resume. `watch` returns a `watch_id`; Watch status and `unwatch` use only that ID. Human-facing resume numbers and short IDs remain conversation-scoped navigation aids that AKK resolves to the complete native thread ID before the structured action. Orphan close retains `expected_message_id` or `expected_transition_id` because those are entity identities, not opaque authority tokens. The plugin/CLI derives and revalidates all freshness fences privately under the canonical locks. Store format remains 1 and writer protocol remains 5.
|
|
254
266
|
|
|
255
|
-
Workspace is not a routing boundary. AKK can list, inspect, and control verified panes across projects; when more than one target matches,
|
|
267
|
+
Workspace is not a routing boundary. AKK can list, inspect, and control verified panes across projects; when more than one target matches, choose one listed `terminal_id` for a structured tool or one listed selector for a slash command.
|
|
256
268
|
|
|
257
269
|
If no eligible pane exists, AKK stops with setup guidance. If a send is ambiguous, run `/akk list` and retry with the returned `@short-ref`.
|
|
258
270
|
|
|
@@ -262,7 +274,7 @@ AKK works without project-specific plugin configuration. It reads these optional
|
|
|
262
274
|
|
|
263
275
|
| Option | Default | Purpose |
|
|
264
276
|
| --- | --- | --- |
|
|
265
|
-
| `storeDir` | `~/.agent-knock-knock/store` | Stable Store root for the compatibility manifest, authoritative managed Sessions
|
|
277
|
+
| `storeDir` | `~/.agent-knock-knock/store` | Stable Store root for the compatibility manifest, authoritative managed Sessions and Turns, plus independent Terminal Watch records. |
|
|
266
278
|
| `openclawBin` | Auto-detected | OpenClaw CLI used for callback delivery. |
|
|
267
279
|
| `codexHome` | Auto-detected | Optional Codex home used to identify Codex sessions running in a supported terminal. |
|
|
268
280
|
| `idleTimeoutMinutes` | `10080` | Idle retention checked during controlled reconciliation. |
|
|
@@ -281,10 +293,10 @@ For Claude Code, manual approval is deliberately narrow:
|
|
|
281
293
|
|
|
282
294
|
- It is available only for the current AKK-managed turn.
|
|
283
295
|
- AKK accepts only an exact, current Bash dialog with the one-time **Yes** choice already highlighted, correlated to one unresolved foreground Bash tool request in the anchored owner-private transcript. Persistent permission choices are rejected.
|
|
284
|
-
- When no trusted rule matches, the callback takes the manual path. The
|
|
285
|
-
- AKK
|
|
296
|
+
- When no trusted rule matches, the callback takes the manual path. The callback itself cannot authorize approval: the model must first call structured `agent_knock_knock_status({turn_id})` in the current OpenClaw conversation, present that current request, and obtain the user's explicit confirmation. Only then may it invoke the advertised managed `approve({turn_id})` action.
|
|
297
|
+
- AKK privately recaptures the confirmed prompt and revalidates its fingerprint, process, pane, and Turn immediately before sending one Enter; no fingerprint or token is copied through model arguments.
|
|
286
298
|
|
|
287
|
-
For Codex, a currently visible one-time approval may also be handled through the terminal row's
|
|
299
|
+
For Codex, a currently visible one-time approval may also be handled through the terminal row's `approve({terminal_id})` action when managed foreground UUID attribution is unavailable. On an unmanaged raw-terminal row, this action is prefilled with its exact `terminal_id`; never construct or guess that target. The user must first inspect the current AKK status and explicitly confirm that exact prompt. AKK retains the confirmation offer and prompt fence privately, recaptures both under lock, and sends the detected key once only if they still match. The action leaves Session/Turn identity unchanged and is never an auto-approval fallback.
|
|
288
300
|
|
|
289
301
|
Unknown, stale, changed, process-drifted, ownership-conflicted, or unmanaged dialogs without an advertised action fail closed and must be resolved in the terminal.
|
|
290
302
|
|
|
@@ -365,11 +377,12 @@ npm run typecheck
|
|
|
365
377
|
npm run test:fast
|
|
366
378
|
```
|
|
367
379
|
|
|
368
|
-
Use the fast tier
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
380
|
+
Use only the fast tier during development, debugging, refactoring, review, and
|
|
381
|
+
local installation or verification. Do not run integration, affected, full, or
|
|
382
|
+
release tiers for those workflows. Run the full/release gate only immediately
|
|
383
|
+
before an actual npm or ClawHub publication. See [Testing](docs/testing.md) for
|
|
384
|
+
the tier manifest, coverage map, profiling command, and release gates, and
|
|
385
|
+
[CONTRIBUTING.md](https://github.com/scotthuang/agent-knock-knock/blob/main/CONTRIBUTING.md) for the development and pull request workflow. For local OpenClaw testing, rebuild and run `node dist/src/cli.js install-openclaw`; the installer performs its own single Gateway restart when needed, so do not restart it a second time. A local install is not a release and still uses only `npm run test:fast`.
|
|
373
386
|
|
|
374
387
|
### Maintainer Release
|
|
375
388
|
|
|
@@ -31,21 +31,30 @@ export interface AutoApprovalAttempt {
|
|
|
31
31
|
approval_fingerprint: string;
|
|
32
32
|
monitor_pid?: number | null;
|
|
33
33
|
}
|
|
34
|
+
export interface AutoApprovalCallbackAuthority {
|
|
35
|
+
conversationId: string;
|
|
36
|
+
messageId: string;
|
|
37
|
+
openclawSession: string;
|
|
38
|
+
sessionId: string;
|
|
39
|
+
turnId: string;
|
|
40
|
+
}
|
|
34
41
|
export declare function approvalCandidateFromMessage(message: unknown): ApprovalCandidate | undefined;
|
|
35
42
|
export declare function evaluateApprovalPolicy({ policy, candidate }: {
|
|
36
43
|
policy: unknown;
|
|
37
44
|
candidate: ApprovalCandidate;
|
|
38
45
|
}): ApprovalPolicyDecision;
|
|
39
|
-
export declare function autoApprovalCliArgs({ statePath, candidate, decision, policy }: {
|
|
46
|
+
export declare function autoApprovalCliArgs({ statePath, candidate, decision, policy, callbackAuthority }: {
|
|
40
47
|
statePath: string;
|
|
41
48
|
candidate: ApprovalCandidate;
|
|
42
49
|
decision: ApprovalPolicyDecision;
|
|
43
50
|
policy: unknown;
|
|
51
|
+
callbackAuthority?: AutoApprovalCallbackAuthority;
|
|
44
52
|
}): string[] | undefined;
|
|
45
|
-
export declare function attemptAutoApproval({ message, policy, statePath, execute }: {
|
|
53
|
+
export declare function attemptAutoApproval({ message, policy, statePath, callbackAuthority, execute }: {
|
|
46
54
|
message: unknown;
|
|
47
55
|
policy: unknown;
|
|
48
56
|
statePath?: string;
|
|
57
|
+
callbackAuthority?: AutoApprovalCallbackAuthority;
|
|
49
58
|
execute: (args: string[]) => Record<string, any>;
|
|
50
59
|
}): AutoApprovalAttempt | undefined;
|
|
51
60
|
export declare function parseSimpleShellCommand(command: string): SimpleCommandParseResult;
|
|
@@ -90,7 +90,7 @@ export function evaluateApprovalPolicy({ policy, candidate }) {
|
|
|
90
90
|
}
|
|
91
91
|
return ask("no explicit auto-approval rule matched", policyFingerprint, parsed.argv);
|
|
92
92
|
}
|
|
93
|
-
export function autoApprovalCliArgs({ statePath, candidate, decision, policy }) {
|
|
93
|
+
export function autoApprovalCliArgs({ statePath, candidate, decision, policy, callbackAuthority }) {
|
|
94
94
|
const serializedPolicy = JSON.stringify(policy);
|
|
95
95
|
if (decision.action !== "approve" ||
|
|
96
96
|
!decision.ruleId ||
|
|
@@ -110,10 +110,11 @@ export function autoApprovalCliArgs({ statePath, candidate, decision, policy })
|
|
|
110
110
|
"--policy-fingerprint",
|
|
111
111
|
decision.policyFingerprint,
|
|
112
112
|
"--auto-approval-policy-json",
|
|
113
|
-
serializedPolicy
|
|
113
|
+
serializedPolicy,
|
|
114
|
+
...autoApprovalCallbackAuthorityCliArgs(callbackAuthority)
|
|
114
115
|
];
|
|
115
116
|
}
|
|
116
|
-
export function attemptAutoApproval({ message, policy, statePath, execute }) {
|
|
117
|
+
export function attemptAutoApproval({ message, policy, statePath, callbackAuthority, execute }) {
|
|
117
118
|
const candidate = approvalCandidateFromMessage(message);
|
|
118
119
|
if (!candidate) {
|
|
119
120
|
return undefined;
|
|
@@ -126,13 +127,20 @@ export function attemptAutoApproval({ message, policy, statePath, execute }) {
|
|
|
126
127
|
});
|
|
127
128
|
const cliArgs = statePath
|
|
128
129
|
? decision.action === "approve"
|
|
129
|
-
? autoApprovalCliArgs({
|
|
130
|
+
? autoApprovalCliArgs({
|
|
131
|
+
statePath,
|
|
132
|
+
candidate,
|
|
133
|
+
decision,
|
|
134
|
+
policy,
|
|
135
|
+
callbackAuthority
|
|
136
|
+
})
|
|
130
137
|
: deferredDecision
|
|
131
138
|
? deferredAutoApprovalCliArgs({
|
|
132
139
|
statePath,
|
|
133
140
|
candidate,
|
|
134
141
|
policy,
|
|
135
|
-
policyFingerprint: deferredDecision.policyFingerprint
|
|
142
|
+
policyFingerprint: deferredDecision.policyFingerprint,
|
|
143
|
+
callbackAuthority
|
|
136
144
|
})
|
|
137
145
|
: undefined
|
|
138
146
|
: undefined;
|
|
@@ -198,7 +206,7 @@ function deferredClaudeAutoApprovalDecision({ policy, candidate, decision }) {
|
|
|
198
206
|
}
|
|
199
207
|
return ask("Claude command policy will be evaluated from fresh local transcript evidence by the executor", policyFingerprint);
|
|
200
208
|
}
|
|
201
|
-
function deferredAutoApprovalCliArgs({ statePath, candidate, policy, policyFingerprint }) {
|
|
209
|
+
function deferredAutoApprovalCliArgs({ statePath, candidate, policy, policyFingerprint, callbackAuthority }) {
|
|
202
210
|
const serializedPolicy = JSON.stringify(policy);
|
|
203
211
|
if (!statePath || typeof serializedPolicy !== "string") {
|
|
204
212
|
return undefined;
|
|
@@ -213,7 +221,25 @@ function deferredAutoApprovalCliArgs({ statePath, candidate, policy, policyFinge
|
|
|
213
221
|
"--policy-fingerprint",
|
|
214
222
|
policyFingerprint,
|
|
215
223
|
"--auto-approval-policy-json",
|
|
216
|
-
serializedPolicy
|
|
224
|
+
serializedPolicy,
|
|
225
|
+
...autoApprovalCallbackAuthorityCliArgs(callbackAuthority)
|
|
226
|
+
];
|
|
227
|
+
}
|
|
228
|
+
function autoApprovalCallbackAuthorityCliArgs(authority) {
|
|
229
|
+
if (!authority) {
|
|
230
|
+
return [];
|
|
231
|
+
}
|
|
232
|
+
return [
|
|
233
|
+
"--expected-callback-conversation-id",
|
|
234
|
+
authority.conversationId,
|
|
235
|
+
"--expected-callback-session-id",
|
|
236
|
+
authority.sessionId,
|
|
237
|
+
"--expected-callback-turn-id",
|
|
238
|
+
authority.turnId,
|
|
239
|
+
"--expected-callback-message-id",
|
|
240
|
+
authority.messageId,
|
|
241
|
+
"--expected-callback-openclaw-session",
|
|
242
|
+
authority.openclawSession
|
|
217
243
|
];
|
|
218
244
|
}
|
|
219
245
|
export function parseSimpleShellCommand(command) {
|
|
@@ -1 +1 @@
|
|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,CAAC;AAED,SAAS,UAAU,CAAC,KAAa;IAC/B,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IACD,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAClF,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAChI,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACzF,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createCallbackOutboxService, type ApprovalNotificationPreparationInput, type CallbackDeliveryReconciliationInput, type CallbackExecutionResult, type CallbackOutboxServicePorts, type CallbackPreparationOptions, type CallbackRetryMonitorInput, type PreparedCallback, type TerminalCompletionPreparationInput } from "./callback-outbox-service.js";
|
|
2
|
-
import type { CallbackRetryDisposition } from "./callback-outbox-policy.js";
|
|
3
|
-
import { type
|
|
1
|
+
import { createCallbackOutboxService, type ApprovalNotificationPreparationInput, type CallbackDeliveryReconciliationInput, type CallbackExecutionResult, type CallbackOutboxServicePorts, type CallbackPreparationOptions, type CallbackRetryMonitorInput, type PreparedCallback, type StallNotificationPreparationInput, type TerminalCompletionPreparationInput } from "./callback-outbox-service.js";
|
|
2
|
+
import type { CallbackRetryDisposition, DeliverCallbackInput } from "./callback-outbox-policy.js";
|
|
3
|
+
import { type CallbackTransport, type CallbackTransportDeliverInput } from "./callback-transport.js";
|
|
4
4
|
import { type Conversation } from "./protocol.js";
|
|
5
5
|
import type { TranscriptEvent } from "./transcript.js";
|
|
6
6
|
export type CallbackCliOptions = Omit<CallbackPreparationOptions, "statePath"> & {
|
|
@@ -9,6 +9,7 @@ export type CallbackCliOptions = Omit<CallbackPreparationOptions, "statePath"> &
|
|
|
9
9
|
statePath?: string;
|
|
10
10
|
[option: string]: unknown;
|
|
11
11
|
};
|
|
12
|
+
type ResolvedCallbackTransportDelivery = Omit<CallbackTransportDeliverInput, "reportCheckpoint">;
|
|
12
13
|
export interface CallbackCliDependencies {
|
|
13
14
|
state: {
|
|
14
15
|
acquireFileLock(lockPath: string): () => void;
|
|
@@ -22,8 +23,11 @@ export interface CallbackCliDependencies {
|
|
|
22
23
|
};
|
|
23
24
|
authority: CallbackOutboxServicePorts["authority"];
|
|
24
25
|
retry: CallbackOutboxServicePorts["retry"];
|
|
26
|
+
delivery: {
|
|
27
|
+
transport: CallbackTransport;
|
|
28
|
+
resolve(input: DeliverCallbackInput): ResolvedCallbackTransportDelivery;
|
|
29
|
+
};
|
|
25
30
|
runtime: {
|
|
26
|
-
classifyProcessFailure(delivery: CallbackProcessDelivery): string | undefined;
|
|
27
31
|
textSummary(value: unknown): unknown;
|
|
28
32
|
};
|
|
29
33
|
}
|
|
@@ -35,13 +39,12 @@ export interface CallbackCliFacade {
|
|
|
35
39
|
reconcileDelivery(input: CallbackDeliveryReconciliationInput): ReturnType<CallbackOutboxService["reconcileDelivery"]>;
|
|
36
40
|
runRetryMonitor(input: CallbackRetryMonitorInput): void;
|
|
37
41
|
prepareApprovalNotification(input: ApprovalNotificationPreparationInput): ReturnType<CallbackOutboxService["prepareApprovalNotification"]>;
|
|
42
|
+
prepareStallNotification(input: StallNotificationPreparationInput): ReturnType<CallbackOutboxService["prepareStallNotification"]>;
|
|
38
43
|
prepareTerminalCompletion(input: TerminalCompletionPreparationInput): ReturnType<CallbackOutboxService["prepareTerminalCompletion"]>;
|
|
39
44
|
runPrepared(prepared: PreparedCallback, options?: {
|
|
40
45
|
emit?: boolean;
|
|
41
46
|
}): CallbackExecutionResult;
|
|
42
47
|
emitPreparedResult(result: CallbackExecutionResult): void;
|
|
43
|
-
deliverGatewayMethod(input: DeliverGatewayMethodInput): CallbackProcessDelivery;
|
|
44
|
-
deliverChatSend(input: DeliverChatSendInput): CallbackProcessDelivery;
|
|
45
48
|
}
|
|
46
49
|
export declare function createCallbackCliFacade(dependencies: CallbackCliDependencies): CallbackCliFacade;
|
|
47
50
|
export {};
|