@scotthuang/agent-knock-knock 0.12.36 → 0.12.37
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 +12 -0
- package/dist/src/openclaw-plugin-command-adapter.js +8 -2
- package/dist/src/openclaw-plugin-command-adapter.js.map +1 -1
- package/dist/src/terminal-agent-bridge.js +23 -11
- package/dist/src/terminal-agent-bridge.js.map +1 -1
- package/dist/src/terminal-interaction-cli-adapter.js +10 -9
- package/dist/src/terminal-interaction-cli-adapter.js.map +1 -1
- package/dist/src/terminal-interaction-protocol.d.ts +6 -0
- package/dist/src/terminal-interaction-protocol.js +2 -1
- package/dist/src/terminal-interaction-protocol.js.map +1 -1
- package/dist/src/terminal-questionnaire-adapter.d.ts +1 -1
- package/dist/src/terminal-questionnaire-adapter.js +106 -39
- package/dist/src/terminal-questionnaire-adapter.js.map +1 -1
- package/package.json +1 -1
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +1 -1
|
@@ -160,7 +160,7 @@ After an asynchronous send operation is accepted, end the OpenClaw turn. Wait fo
|
|
|
160
160
|
|
|
161
161
|
For managed terminal entries, `agent_knock_knock_status` captures AKK Turn state plus a bounded terminal screen and returns `terminal_screen`. With `watch_id`, it returns the exact durable Terminal Watch record, including `watch_mode`, `confidence`, and any warnings. It must not imply that an exact task completed when a `terminal_activity` Watch only observed stable idle, or that Watch sent/adopted the task. Neither form actively executes the coding agent's native `/status`. Use `agent_knock_knock_native_inspect` only for a terminal row's advertised, version-scoped native status action. Do not inspect the pane with raw provider or shell commands unless the relevant AKK inspection is unavailable or fails.
|
|
162
162
|
|
|
163
|
-
For an exact managed Turn, Status may also return a native questionnaire `interaction_state`. The managed monitor proactively sends an `interaction_required` callback for each supported actionable step, but that callback is notification only: it does not create response authority. In the owning controller conversation, call Status with the callback's exact `turn_id`, treat the returned state as a single-use current-step projection rather than ordinary `waiting_for_openclaw` response text, and display it to the user. The private response offer exists only in the same controller conversation that displayed that Status result. Require `state="pending"` and `capabilities.respond=true`, review the projected question with the user, and pass only its semantic ids and typed answer to `agent_knock_knock_respond_interaction`. For a Codex custom answer, choose the guarded `Type something.` option advertised beside the exact client-generated `None of the above` row. AKK moves to that native Other row, opens its Notes editor, and the next fresh interaction accepts `free_text`; choosing `None of the above` itself still submits it directly without Notes. Codex delivers custom text as `user_note: ...` alongside the native Other label, not as a Claude-style bare value. One call answers one step; wait for the next callback or refresh Status after success because the next question, custom-text editor, or final confirmation has a new `interaction_id`.
|
|
163
|
+
For an exact managed Turn, Status may also return a native questionnaire `interaction_state`. The managed monitor proactively sends an `interaction_required` callback for each supported actionable step, but that callback is notification only: it does not create response authority. In the owning controller conversation, call Status with the callback's exact `turn_id`, treat the returned state as a single-use current-step projection rather than ordinary `waiting_for_openclaw` response text, and display it to the user. The private response offer exists only in the same controller conversation that displayed that Status result. Require `state="pending"` and `capabilities.respond=true`, review the projected question with the user, and pass only its semantic ids and typed answer to `agent_knock_knock_respond_interaction`. For a Codex custom answer, choose the guarded `Type something.` option advertised beside the exact client-generated `None of the above` row; AKK derives this semantic option when the client rendered only native Other. AKK moves to that native Other row, opens its Notes editor, and the next fresh interaction accepts `free_text`; choosing `None of the above` itself still submits it directly without Notes. Codex delivers custom text as `user_note: ...` alongside the native Other label, not as a Claude-style bare value. One call answers one step; wait for the next callback or refresh Status after success because the next question, custom-text editor, or final confirmation has a new `interaction_id`. If only the displayed `expires_at` has elapsed while its session-bound private offer remains live, Respond performs an exact locked terminal recapture before input; changed, missing, `manual_required`, secret, multi-select, or uncertain interactions still fail closed. Never send raw keys or retry blindly.
|
|
164
164
|
|
|
165
165
|
## Cancellation and Recovery
|
|
166
166
|
|