@scotthuang/agent-knock-knock 0.6.1 → 0.6.2
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 +10 -0
- package/README.md +1 -1
- package/dist/src/cli.js +22 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/codex-terminal-agent-adapter.js +40 -15
- package/dist/src/codex-terminal-agent-adapter.js.map +1 -1
- package/package.json +1 -1
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.2 - 2026-07-31
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Publish `AKK list` action contract v2 with machine-readable field semantics that distinguish managed task lifecycle, terminal process liveness, parsed screen activity, deprecated compatibility flags, and the authoritative `available_actions` snapshot.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Recognize both current `»` and legacy `›` Codex composer markers across idle detection, approval parsing, stale-prompt rejection, completion boundaries, and terminal artifact cleanup while preserving fail-closed working and approval precedence.
|
|
12
|
+
|
|
3
13
|
## 0.6.1 - 2026-07-30
|
|
4
14
|
|
|
5
15
|
### Added
|
package/README.md
CHANGED
|
@@ -197,7 +197,7 @@ The core command surface is intentionally small:
|
|
|
197
197
|
|
|
198
198
|
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. `AKK list` shows stable short references while JSON output retains the authoritative full IDs. Before every terminal operation, AKK revalidates the expected agent PID and tmux pane identity, then confirms that the process and pane working directories still match; every send also revalidates the idle prompt immediately before typing.
|
|
199
199
|
|
|
200
|
-
For natural-language tool use, `agent_knock_knock_list` returns an `available_actions` object on rows in `delegated[]` and `terminal_controlled[]`; `tasks[]` remains a compatibility summary. Use only an action shown there, start with its prefilled authoritative arguments, and supply every `missing_required` field. `send` uses `selector`; status, approval, cancellation, renewal, callback retry, and close use `conversation_id`. For an ordinary send, add only `request`—`timeoutSeconds` is not a supported argument, and monitoring limits should be omitted unless the user explicitly asks to change them.
|
|
200
|
+
For natural-language tool use, `agent_knock_knock_list` returns an `available_actions` object on rows in `delegated[]` and `terminal_controlled[]`; `tasks[]` remains a compatibility summary. Use only an action shown there, start with its prefilled authoritative arguments, and supply every `missing_required` field. A delegated row's `status` is its task lifecycle, while a terminal-controlled row's `status` only says whether the coding-agent process is alive and its `activity_state` reports the parsed screen state. The legacy `commands` flags have mixed compatibility semantics, are deprecated, and must never drive tool calls; `available_actions` is the only authoritative current-action source. `send` uses `selector`; status, approval, cancellation, renewal, callback retry, and close use `conversation_id`. For an ordinary send, add only `request`—`timeoutSeconds` is not a supported argument, and monitoring limits should be omitted unless the user explicitly asks to change them.
|
|
201
201
|
|
|
202
202
|
Workspace is not a routing boundary. AKK can list, inspect, and control verified panes across projects; when more than one target matches, use a selector to choose one explicitly.
|
|
203
203
|
|
package/dist/src/cli.js
CHANGED
|
@@ -1640,13 +1640,34 @@ function managedListApprovalState(conversation) {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
function listActionContracts() {
|
|
1642
1642
|
return {
|
|
1643
|
-
version:
|
|
1643
|
+
version: 2,
|
|
1644
1644
|
instructions: [
|
|
1645
1645
|
"Use only actions present in delegated[].available_actions or terminal_controlled[].available_actions.",
|
|
1646
|
+
"Never use commands for routing or tool calls. It is a deprecated, non-authoritative compatibility field with mixed legacy semantics.",
|
|
1646
1647
|
"Start with the action's prefilled arguments, supply every missing_required field, and consult the top-level action's optional fields only when needed.",
|
|
1647
1648
|
"Authoritative full IDs are prefilled; short_ref is for display and human input.",
|
|
1648
1649
|
"Availability is a snapshot. AKK revalidates process, tmux pane, workspace, activity, approval, and recovery state before side effects."
|
|
1649
1650
|
],
|
|
1651
|
+
field_semantics: {
|
|
1652
|
+
status: {
|
|
1653
|
+
delegated: "task_lifecycle",
|
|
1654
|
+
terminal_controlled: "process_liveness",
|
|
1655
|
+
authoritative_for_tool_calls: false
|
|
1656
|
+
},
|
|
1657
|
+
activity_state: {
|
|
1658
|
+
terminal_controlled: "screen_activity_classification",
|
|
1659
|
+
authoritative_for_tool_calls: false
|
|
1660
|
+
},
|
|
1661
|
+
commands: {
|
|
1662
|
+
meaning: "legacy_compatibility_flags_with_mixed_semantics",
|
|
1663
|
+
deprecated: true,
|
|
1664
|
+
authoritative_for_tool_calls: false
|
|
1665
|
+
},
|
|
1666
|
+
available_actions: {
|
|
1667
|
+
meaning: "currently_safe_actions",
|
|
1668
|
+
authoritative_for_tool_calls: true
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1650
1671
|
actions: {
|
|
1651
1672
|
send: {
|
|
1652
1673
|
tool: "agent_knock_knock_send",
|