@scotthuang/agent-knock-knock 0.13.4 → 0.13.6
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 +23 -0
- package/dist/src/codex-terminal-agent-adapter.d.ts +1 -1
- package/dist/src/codex-terminal-agent-adapter.js +56 -4
- package/dist/src/codex-terminal-agent-adapter.js.map +1 -1
- package/dist/src/semantic-tool-runtime.js +2 -2
- package/dist/src/semantic-tool-runtime.js.map +1 -1
- package/dist/src/semantic-tool-schemas.js +1 -1
- package/dist/src/semantic-tool-schemas.js.map +1 -1
- package/dist/src/terminal-action-projection.js +6 -1
- package/dist/src/terminal-action-projection.js.map +1 -1
- package/dist/src/terminal-agent-bridge.d.ts +7 -27
- package/dist/src/terminal-agent-bridge.js +59 -37
- package/dist/src/terminal-agent-bridge.js.map +1 -1
- package/dist/src/terminal-command-dispatch-preparation.js +3 -3
- package/dist/src/terminal-command-dispatch-preparation.js.map +1 -1
- package/dist/src/terminal-command-dispatch-transport.js +1 -3
- package/dist/src/terminal-command-dispatch-transport.js.map +1 -1
- package/dist/src/terminal-composer-classifier.d.ts +23 -1
- package/dist/src/terminal-composer-classifier.js +84 -1
- package/dist/src/terminal-composer-classifier.js.map +1 -1
- package/dist/src/terminal-delegate-cli-adapter.js +3 -2
- package/dist/src/terminal-delegate-cli-adapter.js.map +1 -1
- package/dist/src/terminal-human-explicit-send-cli-adapter.js +42 -29
- package/dist/src/terminal-human-explicit-send-cli-adapter.js.map +1 -1
- package/dist/src/terminal-list-action-policy.js +15 -2
- package/dist/src/terminal-list-action-policy.js.map +1 -1
- package/dist/src/terminal-list-cli-adapter.js +16 -14
- package/dist/src/terminal-list-cli-adapter.js.map +1 -1
- package/dist/src/terminal-list-facts.d.ts +3 -1
- package/dist/src/terminal-list-facts.js +4 -4
- package/dist/src/terminal-list-facts.js.map +1 -1
- package/dist/src/terminal-list-renderer.js +6 -4
- package/dist/src/terminal-list-renderer.js.map +1 -1
- package/dist/src/terminal-text-submission-bridge.d.ts +2 -2
- package/dist/src/terminal-text-submission-bridge.js +14 -11
- package/dist/src/terminal-text-submission-bridge.js.map +1 -1
- package/dist/src/terminal-user-explicit-send-clear.d.ts +31 -0
- package/dist/src/terminal-user-explicit-send-clear.js +93 -0
- package/dist/src/terminal-user-explicit-send-clear.js.map +1 -0
- package/dist/src/terminal-user-explicit-send-contract.d.ts +26 -0
- package/dist/src/terminal-user-explicit-send-contract.js +2 -0
- package/dist/src/terminal-user-explicit-send-contract.js.map +1 -0
- package/dist/src/terminal-user-explicit-send-policy.d.ts +4 -0
- package/dist/src/terminal-user-explicit-send-policy.js +2 -1
- package/dist/src/terminal-user-explicit-send-policy.js.map +1 -1
- package/docs/quickstart-herdr.md +1 -1
- package/docs/quickstart-tmux.md +3 -3
- package/package.json +1 -1
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-text-submission-bridge.js","sourceRoot":"","sources":["../../src/terminal-text-submission-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQzC,OAAO,EACL,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EAIlC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gCAAgC,EAAE,MACzC,gCAAgC,CAAC;AAEnC,+EAA+E;AAC/E,8EAA8E;AAC9E,4EAA4E;AAC5E,uBAAuB;AACvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAC/C,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AACjD,8EAA8E;AAC9E,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,MAAM,iCAAiC,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC;AACjD,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC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AAC,KAAK,CAAC;gBAChE,CACE,oBAAoB;oBACpB,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,SAAS,CACjD,CACF;YACD,CAAC,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,EAC3E,CAAC;YACD,MAAM,IAAI,KAAK,CACb,GAAG,OAAO,CAAC,WAAW,yDAAyD,CAChF,CAAC;QACJ,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAChD,OAAO,CAAC,KAAK,EACb,QAAQ,CAAC,eAAe,EACxB,OAAO,CACR,CAAC;QACF,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAChC,QAAQ,CAAC,eAAe,EACxB,QAAQ,CACT,EAAE,CAAC;YACF,MAAM,IAAI,KAAK,CACb,0EAA0E,CAC3E,CAAC;QACJ,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"terminal-text-submission-bridge.js","sourceRoot":"","sources":["../../src/terminal-text-submission-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQzC,OAAO,EACL,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EAIlC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gCAAgC,EAAE,MACzC,gCAAgC,CAAC;AAEnC,+EAA+E;AAC/E,8EAA8E;AAC9E,4EAA4E;AAC5E,uBAAuB;AACvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAC/C,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AACjD,8EAA8E;AAC9E,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,MAAM,iCAAiC,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,MAAM,+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;YACE,OAAO;YACP,eAAe,EAAE,uCAAuC;SACzD,CACF,CAAC;QACF,IACE,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO;YACpC,CAAC,CACC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAChE,CACE,oBAAoB;oBACpB,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,SAAS,CACjD,CACF;YACD,CAAC,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,EAC3E,CAAC;YACD,MAAM,IAAI,KAAK,CACb,GAAG,OAAO,CAAC,WAAW,yDAAyD,CAChF,CAAC;QACJ,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAChD,OAAO,CAAC,KAAK,EACb,QAAQ,CAAC,eAAe,EACxB,OAAO,CACR,CAAC;QACF,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAChC,QAAQ,CAAC,eAAe,EACxB,QAAQ,CACT,EAAE,CAAC;YACF,MAAM,IAAI,KAAK,CACb,0EAA0E,CAC3E,CAAC;QACJ,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ExecutorKind } from "./executors.js";
|
|
2
|
+
import { type TerminalControlRef } from "./terminal-control-ref.js";
|
|
3
|
+
import { type TerminalControlProvider } from "./terminal-control-provider.js";
|
|
4
|
+
export declare const CLAUDE_DRAFT_REPLACEMENT_SENTINEL = " [AKK replacing current draft]";
|
|
5
|
+
export interface TerminalUserExplicitComposerClearPlan {
|
|
6
|
+
/** Makes Claude's native stash action unambiguously clear, never restore. */
|
|
7
|
+
readonly beforeClearText?: string;
|
|
8
|
+
readonly keys: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class TerminalUserExplicitClearNotStartedError extends Error {
|
|
11
|
+
}
|
|
12
|
+
export declare class TerminalUserExplicitClearUncertainError extends Error {
|
|
13
|
+
readonly code = "AKK_TERMINAL_USER_EXPLICIT_CLEAR_UNCERTAIN";
|
|
14
|
+
readonly stage = "composer_clear_uncertain";
|
|
15
|
+
readonly doNotRetry = true;
|
|
16
|
+
constructor(message: string, options?: {
|
|
17
|
+
cause?: unknown;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/** Native Composer replacement plan for one user-explicit Send. */
|
|
21
|
+
export declare function terminalUserExplicitComposerClearPlan(agent: ExecutorKind): TerminalUserExplicitComposerClearPlan;
|
|
22
|
+
/** Execute the sole native clear transaction and classify its retry boundary. */
|
|
23
|
+
export declare function dispatchTerminalUserExplicitComposerClear(input: {
|
|
24
|
+
readonly agent: ExecutorKind;
|
|
25
|
+
readonly terminalControl: TerminalControlRef;
|
|
26
|
+
readonly provider: TerminalControlProvider;
|
|
27
|
+
readonly verifyIdentity: () => Promise<TerminalControlRef>;
|
|
28
|
+
readonly terminalInputOwnerBlocked: (terminalControl: TerminalControlRef) => boolean;
|
|
29
|
+
readonly verifyClaudeComposerCleared: () => Promise<TerminalControlRef>;
|
|
30
|
+
readonly sleep: (milliseconds: number) => Promise<void>;
|
|
31
|
+
}): Promise<TerminalControlRef>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { sameTerminalControlIncarnation } from "./terminal-control-ref.js";
|
|
2
|
+
import { TerminalControlInputNotSentError } from "./terminal-control-provider.js";
|
|
3
|
+
export const CLAUDE_DRAFT_REPLACEMENT_SENTINEL = " [AKK replacing current draft]";
|
|
4
|
+
const CLAUDE_STASH_CLEAR_SETTLE_ATTEMPTS = 8;
|
|
5
|
+
const CLAUDE_STASH_CLEAR_SETTLE_POLL_MS = 30;
|
|
6
|
+
export class TerminalUserExplicitClearNotStartedError extends Error {
|
|
7
|
+
}
|
|
8
|
+
export class TerminalUserExplicitClearUncertainError extends Error {
|
|
9
|
+
code = "AKK_TERMINAL_USER_EXPLICIT_CLEAR_UNCERTAIN";
|
|
10
|
+
stage = "composer_clear_uncertain";
|
|
11
|
+
doNotRetry = true;
|
|
12
|
+
constructor(message, options = {}) {
|
|
13
|
+
super(message, options);
|
|
14
|
+
this.name = "TerminalUserExplicitClearUncertainError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** Native Composer replacement plan for one user-explicit Send. */
|
|
18
|
+
export function terminalUserExplicitComposerClearPlan(agent) {
|
|
19
|
+
if (agent === "codex")
|
|
20
|
+
return { keys: ["C-u"] };
|
|
21
|
+
return {
|
|
22
|
+
beforeClearText: CLAUDE_DRAFT_REPLACEMENT_SENTINEL,
|
|
23
|
+
keys: ["C-s"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Execute the sole native clear transaction and classify its retry boundary. */
|
|
27
|
+
export async function dispatchTerminalUserExplicitComposerClear(input) {
|
|
28
|
+
const plan = terminalUserExplicitComposerClearPlan(input.agent);
|
|
29
|
+
let endpoint;
|
|
30
|
+
try {
|
|
31
|
+
endpoint = input.provider.endpoint(input.terminalControl);
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
throw new TerminalUserExplicitClearNotStartedError(error instanceof Error ? error.message : String(error), { cause: error });
|
|
35
|
+
}
|
|
36
|
+
let preliminaryTextInjected = false;
|
|
37
|
+
if (plan.beforeClearText !== undefined) {
|
|
38
|
+
try {
|
|
39
|
+
await input.provider.sendText(endpoint, plan.beforeClearText);
|
|
40
|
+
preliminaryTextInjected = true;
|
|
41
|
+
const verified = await input.verifyIdentity();
|
|
42
|
+
if (!sameTerminalControlIncarnation(input.terminalControl, verified)) {
|
|
43
|
+
throw new Error("terminal identity changed during Claude draft replacement");
|
|
44
|
+
}
|
|
45
|
+
if (input.terminalInputOwnerBlocked(verified)) {
|
|
46
|
+
throw new Error("terminal foreground changed to an editor or viewer during Claude draft replacement");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
if (error instanceof TerminalControlInputNotSentError &&
|
|
51
|
+
!preliminaryTextInjected) {
|
|
52
|
+
throw new TerminalUserExplicitClearNotStartedError(error.message, {
|
|
53
|
+
cause: error
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
throw new TerminalUserExplicitClearUncertainError("Claude draft-clear preparation is uncertain", { cause: error });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
await input.provider.sendKeys(endpoint, plan.keys);
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
if (error instanceof TerminalControlInputNotSentError &&
|
|
64
|
+
!preliminaryTextInjected) {
|
|
65
|
+
throw new TerminalUserExplicitClearNotStartedError(error.message, {
|
|
66
|
+
cause: error
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
throw new TerminalUserExplicitClearUncertainError("draft-clear outcome is uncertain", { cause: error });
|
|
70
|
+
}
|
|
71
|
+
if (input.agent === "claude") {
|
|
72
|
+
let lastError;
|
|
73
|
+
try {
|
|
74
|
+
for (let attempt = 0; attempt < CLAUDE_STASH_CLEAR_SETTLE_ATTEMPTS; attempt += 1) {
|
|
75
|
+
try {
|
|
76
|
+
return await input.verifyClaudeComposerCleared();
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
lastError = error;
|
|
80
|
+
}
|
|
81
|
+
if (attempt + 1 < CLAUDE_STASH_CLEAR_SETTLE_ATTEMPTS) {
|
|
82
|
+
await input.sleep(CLAUDE_STASH_CLEAR_SETTLE_POLL_MS);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
throw lastError;
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
throw new TerminalUserExplicitClearUncertainError("Claude native stash-clear postcondition is unproven", { cause: error });
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return input.terminalControl;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=terminal-user-explicit-send-clear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-user-explicit-send-clear.js","sourceRoot":"","sources":["../../src/terminal-user-explicit-send-clear.ts"],"names":[],"mappings":"AACA,OAAO,EACL,8BAA8B,EAE/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gCAAgC,EAEjC,MACC,gCAAgC,CAAC;AAEnC,MAAM,CAAC,MAAM,iCAAiC,GAC5C,gCAAgC,CAAC;AACnC,MAAM,kCAAkC,GAAG,CAAC,CAAC;AAC7C,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAQ7C,MAAM,OAAO,wCAAyC,SAAQ,KAAK;CAAG;AACtE,MAAM,OAAO,uCAAwC,SAAQ,KAAK;IACvD,IAAI,GAAG,4CAA4C,CAAC;IACpD,KAAK,GAAG,0BAA0B,CAAC;IACnC,UAAU,GAAG,IAAI,CAAC;IAE3B,YAAY,OAAe,EAAE,OAAO,GAAwB,EAAE;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,yCAAyC,CAAC;IACxD,CAAC;CACF;AAED,mEAAmE;AACnE,MAAM,UAAU,qCAAqC,CACnD,KAAmB;IAEnB,IAAI,KAAK,KAAK,OAAO;QAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAChD,OAAO;QACL,eAAe,EAAE,iCAAiC;QAClD,IAAI,EAAE,CAAC,KAAK,CAAC;KACd,CAAC;AACJ,CAAC;AAED,iFAAiF;AACjF,MAAM,CAAC,KAAK,UAAU,yCAAyC,CAAC,KAU/D;IACC,MAAM,IAAI,GAAG,qCAAqC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAChE,IAAI,QAAQ,CAAC;IACb,IAAI,CAAC;QACH,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK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,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,gCAAgC;YACnD,CAAC,uBAAuB,EAAE,CAAC;YAC3B,MAAM,IAAI,wCAAwC,CAAC,KAAK,CAAC,OAAO,EAAE;gBAChE,KAAK,EAAE,KAAK;aACb,CAAC,CAAC;QACL,CAAC;QACD,MAAM,IAAI,uCAAuC,CAC/C,kCAAkC,EAClC,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC7B,IAAI,SAAkB,CAAC;QACvB,IAAI,CAAC;YACH,KAAK,IAAI,OAAO,GAAG,CAAC,EAClB,OAAO,GAAG,kCAAkC,EAC5C,OAAO,IAAI,CAAC,EAAE,CAAC;gBACf,IAAI,CAAC;oBACH,OAAO,MAAM,KAAK,CAAC,2BAA2B,EAAE,CAAC;gBACnD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,SAAS,GAAG,KAAK,CAAC;gBACpB,CAAC;gBACD,IAAI,OAAO,GAAG,CAAC,GAAG,kCAAkC,EAAE,CAAC;oBACrD,MAAM,KAAK,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;gBACvD,CAAC;YACH,CAAC;YACD,MAAM,SAAS,CAAC;QAClB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,uCAAuC,CAC/C,qDAAqD,EACrD,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC,eAAe,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TerminalRuntimeIdentity } from "./terminal-agent-adapter.js";
|
|
2
|
+
import type { TerminalControlRef } from "./terminal-control-ref.js";
|
|
3
|
+
import type { TerminalSendOptions } from "./terminal-text-submission-bridge.js";
|
|
4
|
+
export type TerminalUserExplicitSendDisposition = "replaced_current_composer";
|
|
5
|
+
export interface TerminalUserExplicitSendReservationContext {
|
|
6
|
+
terminalControl: TerminalControlRef;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TerminalUserExplicitSendOptions {
|
|
10
|
+
runtime?: TerminalRuntimeIdentity;
|
|
11
|
+
beforeMutationReservation: (context: TerminalUserExplicitSendReservationContext) => void | Promise<void>;
|
|
12
|
+
onComposerClearDispatched?: (context: TerminalUserExplicitSendReservationContext) => void | Promise<void>;
|
|
13
|
+
onTransportStage?: TerminalSendOptions["onTransportStage"];
|
|
14
|
+
}
|
|
15
|
+
export interface TerminalUserExplicitSendResult {
|
|
16
|
+
stage: "enter_dispatched";
|
|
17
|
+
terminalControl: TerminalControlRef;
|
|
18
|
+
disposition: TerminalUserExplicitSendDisposition;
|
|
19
|
+
clearCount: 1;
|
|
20
|
+
textInjectionCount: 1;
|
|
21
|
+
enterCount: 1;
|
|
22
|
+
}
|
|
23
|
+
export type TerminalCodexUserExplicitSendDisposition = TerminalUserExplicitSendDisposition;
|
|
24
|
+
export type TerminalCodexUserExplicitSendReservationContext = TerminalUserExplicitSendReservationContext;
|
|
25
|
+
export type TerminalCodexUserExplicitSendOptions = TerminalUserExplicitSendOptions;
|
|
26
|
+
export type TerminalCodexUserExplicitSendResult = TerminalUserExplicitSendResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-user-explicit-send-contract.js","sourceRoot":"","sources":["../../src/terminal-user-explicit-send-contract.ts"],"names":[],"mappings":""}
|
|
@@ -11,6 +11,10 @@ export interface TerminalUserExplicitSendFacts {
|
|
|
11
11
|
readonly processBirth?: string;
|
|
12
12
|
readonly approvalScanned: boolean;
|
|
13
13
|
readonly approvalBlocked: boolean;
|
|
14
|
+
/** A native questionnaire currently owns terminal input. */
|
|
15
|
+
readonly interactionActive: boolean;
|
|
16
|
+
/** A proven menu, editor, viewer, or history-search surface owns input. */
|
|
17
|
+
readonly inputOwnerBlocked: boolean;
|
|
14
18
|
readonly userExplicitComposerReady: boolean;
|
|
15
19
|
}
|
|
16
20
|
export type TerminalUserExplicitSendEligibility = {
|
|
@@ -14,8 +14,9 @@ export function decideTerminalUserExplicitSendEligibility(facts) {
|
|
|
14
14
|
!control.capabilities.includes("screen_status") ||
|
|
15
15
|
!facts.approvalScanned ||
|
|
16
16
|
facts.approvalBlocked ||
|
|
17
|
+
facts.interactionActive ||
|
|
18
|
+
facts.inputOwnerBlocked ||
|
|
17
19
|
!facts.agent ||
|
|
18
|
-
(facts.agent !== "codex" && !facts.userExplicitComposerReady) ||
|
|
19
20
|
!Number.isSafeInteger(facts.pid) ||
|
|
20
21
|
Number(facts.pid) <= 1 ||
|
|
21
22
|
!processUuid ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-user-explicit-send-policy.js","sourceRoot":"","sources":["../../src/terminal-user-explicit-send-policy.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAE/B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"terminal-user-explicit-send-policy.js","sourceRoot":"","sources":["../../src/terminal-user-explicit-send-policy.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAE/B,MAAM,2BAA2B,CAAC;AAiCnC,kFAAkF;AAClF,MAAM,UAAU,yCAAyC,CACvD,KAAoC;IAEpC,MAAM,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,eAAe,CAAC;IACtC,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAChD,MAAM,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAClD,IACE,CAAC,KAAK,CAAC,gBAAgB;QACvB,CAAC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C,KAAK,CAAC,IAAI,EAAE;QACd,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
package/docs/quickstart-herdr.md
CHANGED
|
@@ -26,7 +26,7 @@ Wait for the empty idle composer. After the AKK OpenClaw plugin is installed and
|
|
|
26
26
|
|
|
27
27
|
AKK enumerates every running local Herdr session, identifies a terminal by its session socket plus stable `terminal_id`, and treats the current `pane_id` only as a refreshable route. Moving a live pane does not silently rebind ownership. Every side effect revalidates the terminal resource, shell PID, agent PID, cwd, native-session evidence, and current composer first.
|
|
28
28
|
|
|
29
|
-
The
|
|
29
|
+
The v29 structured model contract carries semantic IDs only. Ordinary send is `send({session_id,request})` for strict continuation or `send({terminal_id,request})` for the current verified Herdr pane; the targets are mutually exclusive. An advertised `terminal_user_explicit` action keeps the user's Send independent of broken AKK management state and ordinary Composer visibility, stability, exactness, or existing draft contents. It requires the exact live terminal/process, a scanned non-blocked approval state, and no proven questionnaire, editor, menu, history search, or read-only viewer that owns input. The agent-neutral `terminal_user_explicit_composer_policy` advertises `replace_current_composer_and_submit`; the older Codex-named field remains a compatibility alias. Codex freezes the open-rollout candidate set and sends `C-u` once to replace the current Composer; Claude Code uses a sentinel-backed native `C-s` stash-clear transaction that is independent of the cursor position and does not interrupt an active turn, then proves the main Composer empty. Each then injects the request, waits through the paste window, and dispatches Enter exactly once without a post-text Composer veto. For Codex, a unique exact request acceptance promotes the provisional Session/Turn even when `/clear` delayed creation of the foreground rollout; zero or ambiguous matches never cause replay. If managed promotion cannot be prepared before input, AKK still sends once, best-effort attaches an exact Terminal Watch, and releases stale management. After exact request acceptance, that Watch can notify the owning controller of a questionnaire and broker one explicitly chosen response through Status plus `respond_interaction({watch_id,...})`; before acceptance, or when only best-effort activity evidence exists, it remains notification-only. Watch failure never changes delivery. Native inspection and lifecycle input remain exact-empty-only. Send results expose physical dispatch, agent acceptance, management, and observation separately. Watch and native/lifecycle actions likewise expose `terminal_id` (plus `inspection` or `native_thread_id` where applicable), never a pane route, selector, draft text, composer digest, token, fingerprint, revision, or binding generation. AKK resolves the current Herdr route and derives all opaque freshness fences privately, then revalidates them under lock before terminal input. Once clear or request input may have occurred, an uncertain result must not be retried automatically.
|
|
30
30
|
|
|
31
31
|
For a physically exact, exact-empty idle Codex pane with ambiguous rollout identity, a fresh row may advertise `identify_foreground` and `identify_and_send`. The diagnostic action changes no AKK Store record but sends `/status` exactly once through the same visible Herdr pane; its 30-second proof grants no later authority. The atomic action retains the canonical Herdr terminal lock across the probe and one task, while exact request acceptance remains the only durable Session/Turn identity. Ordinary Send, List, and Status never run the probe. The three status axes remain independent: `screen_state` describes the live TUI, `native_identity_state` describes foreground identity resolution, and `durable_activity_state` describes exact artifact-backed work; legacy `activity_state` stays conservative for compatibility.
|
|
32
32
|
|
package/docs/quickstart-tmux.md
CHANGED
|
@@ -34,7 +34,7 @@ tmux new-session -s akk-work -c "$(pwd -P)" codex
|
|
|
34
34
|
|
|
35
35
|
Use `claude` instead of `codex` to share a Claude Code terminal. Wait until the coding agent is authenticated and showing its idle prompt. Detach from tmux with `Ctrl-b`, followed by `d`.
|
|
36
36
|
|
|
37
|
-
AKK discovers supported Codex and Claude Code panes across workspaces. Before acting, it revalidates the expected agent PID and tmux pane identity, then confirms that the process and pane working directories still match. Managed Send requires a verified idle prompt; an advertised user-explicit physical Send may steer a working Codex pane when its scanned, non-blocked approval boundary remains valid
|
|
37
|
+
AKK discovers supported Codex and Claude Code panes across workspaces. Before acting, it revalidates the expected agent PID and tmux pane identity, then confirms that the process and pane working directories still match. Managed Send requires a verified idle prompt; an advertised user-explicit physical Send may steer a working Codex or Claude Code pane when its scanned, non-blocked approval boundary remains valid and no proven questionnaire, editor, menu, or read-only viewer owns input. An existing draft or ordinary Composer uncertainty does not veto that explicit Send.
|
|
38
38
|
|
|
39
39
|
## 3. Run doctor
|
|
40
40
|
|
|
@@ -58,7 +58,7 @@ Doctor verifies the installed plugin and skill, Gateway health, tmux, and at lea
|
|
|
58
58
|
/akk inspect this repository and summarize it
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
The bare task works when exactly one send-ready coding-agent pane exists across all workspaces. Send-ready means an exact live terminal/process
|
|
61
|
+
The bare task works when exactly one send-ready coding-agent pane exists across all workspaces. Send-ready means an exact live terminal/process, a scanned non-blocked approval state, and no proven questionnaire, editor, menu, or read-only viewer that owns input. Parsed working activity, an existing draft, and ordinary main-Composer visibility, stability, or exactness do not veto this user-priority path. Codex 0.154's collapsed async-question summary remains sendable, while its expanded, clipped, or ambiguous editor receives zero AKK input. Codex physical fallback sends `C-u` once to replace the current Composer; Claude Code uses a sentinel-backed native `C-s` stash-clear transaction that is independent of the cursor position and does not interrupt an active turn, then proves the main Composer empty. Each then injects the request, waits through the paste window, and dispatches Enter exactly once without a post-text Composer veto. Broken AKK management state does not veto this user-explicit Send. If more than one pane is eligible, AKK stops instead of guessing: run `/akk list`, then use `/akk <selector>: <message>`, for example:
|
|
62
62
|
|
|
63
63
|
```text
|
|
64
64
|
/akk @a1b2c3d4: inspect this repository and summarize it
|
|
@@ -68,7 +68,7 @@ Success returns a managed turn and, when the work finishes, its result. The same
|
|
|
68
68
|
|
|
69
69
|
`/akk list` keeps that physical pane as the primary resource: it appears once in `terminals[]`. Read `screen_state` for the bounded live TUI, `native_identity_state` for foreground native-session resolution, and `durable_activity_state` for exact rollout/transcript task evidence. The legacy `activity_state` remains conservative for compatibility, so an idle screen can coexist with ambiguous native identity, unknown durable activity, and legacy `activity_state="unknown"`. These status axes are diagnostic; use only a current `available_actions` entry for mutations. Its managed context follows terminal → native coding-agent session → AKK `session_id` → Turns. AKK places the active Turn under `managed.current_turn`, or the newest retained Turn under `managed.recent_turn`; retained Turns do not occupy or hide the pane.
|
|
70
70
|
|
|
71
|
-
For another request, refresh `/akk list` and use only that terminal row's listed
|
|
71
|
+
For another request, refresh `/akk list` and use only that terminal row's listed v29 `send` action. A `session_exact` action carries `session_id`; `terminal_follow_current` and user-priority `terminal_user_explicit` actions carry `terminal_id`. Add only the new request text. The two target fields are mutually exclusive, and a structured model call never carries a selector, draft text, composer digest, or opaque token. AKK derives and revalidates its freshness fences internally. Managed delivery may require exact empty before input and creates a new `turn_id`; native inspection and lifecycle input remain exact-empty-only. Codex and Claude Code `terminal_user_explicit` advertise the agent-neutral `terminal_user_explicit_composer_policy=replace_current_composer_and_submit`; the older Codex-named field remains a compatibility alias. Codex freezes every open rollout as a candidate instead of trusting one stale root as the foreground thread, then binds the uniquely accepting rollout after Enter. For either agent, once the managed path injects user-explicit text or physical fallback runs, Composer observation cannot veto the one Enter after injection. If managed promotion is unavailable, the physical fallback creates no managed callback Turn; after Enter, AKK best-effort attaches an exact Terminal Watch callback and returns its `watch_id`. Once exact request acceptance is established, that Watch can notify and—after a same-controller Status refresh plus an explicit user answer—respond to a supported questionnaire. Before acceptance and for best-effort activity Watches, questionnaire handling remains notification-only. Attachment failure is a warning and never changes delivery. Check `terminal_input_dispatched` separately from `agent_acceptance`, `management_mode`, and `observation_mode`; once clear or request input may have occurred, an uncertain result must not be retried automatically. A completed Turn is history, not the destination of the next send. Human-friendly selectors such as `codex`, `only`, or `@a1b2c3d4` remain slash-command discovery conveniences; they are not structured action authority.
|
|
72
72
|
|
|
73
73
|
If the coding agent asks a question and the active Turn becomes `waiting_for_openclaw`, use the listed `respond` action with its prefilled `turn_id`, or the equivalent form:
|
|
74
74
|
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@ Core slash-command forms:
|
|
|
38
38
|
- `/akk respond <turn-selector>: <answer>`: answer a coding-agent question inside a `waiting_for_openclaw` Turn.
|
|
39
39
|
- `/akk cancel <turn-selector>`: interrupt the exact Turn without closing its terminal pane.
|
|
40
40
|
|
|
41
|
-
For human-facing ordinary-send slash forms, a selector may be `codex`, `claude`, `only`, `latest`, or an `@short-ref` returned by `AKK list`. These selectors are only a resolution layer and fail closed when the target is missing or ambiguous. The
|
|
41
|
+
For human-facing ordinary-send slash forms, a selector may be `codex`, `claude`, `only`, `latest`, or an `@short-ref` returned by `AKK list`. These selectors are only a resolution layer and fail closed when the target is missing or ambiguous. The v29 structured-tool contract never exposes a selector or opaque authority value: the model supplies semantic IDs only. The agent-neutral `terminal_user_explicit_composer_policy` advertises `replace_current_composer_and_submit`; the old Codex-named field is a v28 compatibility alias only. `send({session_id,request})` is strict `session_exact`; `send({terminal_id,request})` is either managed `terminal_follow_current` or user-priority `terminal_user_explicit`, exactly as advertised; the two target fields are mutually exclusive, and both may be omitted only when AKK must prove one unique send-ready pane. Codex and Claude Code `terminal_user_explicit` depend on the exact live terminal/process, a scanned non-blocked approval state, and no proven input-owning questionnaire, editor, menu, history search, or read-only viewer—not ordinary main-Composer visibility, stability, exactness, parsed working activity, existing draft contents, or AKK Store, Turn, Session, transfer, transition, ledger, or ownership. Codex 0.154's exact collapsed async-question summary leaves the main Composer sendable; an expanded, clipped, or ambiguous async editor and an active-writer resume viewer remain zero-input boundaries. Both advertise `replace_current_composer_and_submit`: Codex physical fallback sends `C-u` once; Claude Code physical fallback uses a sentinel-backed native `C-s` stash-clear transaction that is independent of the cursor position and does not interrupt an active turn, then proves the main Composer empty. Each injects the request, waits through the paste window, and dispatches Enter exactly once. After text injection, Composer observation must never veto Enter. AKK tries managed delivery where its strict empty-Composer pre-input authority exists; after either agent's user-explicit text injection, that path follows the same no-Composer-veto Enter rule. A source-less Codex terminal with zero, one, or many pre-existing rollout roots freezes that full candidate set before input and binds only the unique rollout that later persists the exact request hash; a unique stale root is never assumed to be foreground. If managed preparation still fails before input, AKK sends once without a managed callback Turn, then best-effort attaches an exact request-bound Terminal Watch callback and releases stale management. Watch failure is a warning and never revokes or retries a successful Send. Native inspection and native lifecycle input remain exact-empty-only. With runtime durability, an omitted target binds its `message_id` to the first selected physical terminal and existing or uncertain same-ID evidence rejects replay. If fresh durability is unavailable, user priority wins: AKK proceeds with a warning, and the degraded result must not be automatically retried. Once clear or request input may have occurred, an uncertain result must not be automatically retried. Read Send results as orthogonal facts: `terminal_input_dispatched`, `agent_acceptance`, `management_mode`, `observation_mode`, and `capabilities` distinguish physical dispatch from durable native acceptance and callback/interaction authority; do not infer one from another. If the result returns `observation_mode="terminal_watch"`, wait for that callback and retain `watch-status` as the recovery path. The only non-ordinary Send form is an exact `send({turn_id})` copied unchanged from a current `available_actions.retry_submission`; it accepts no request text or other target and requires explicit user confirmation. Native-thread actions use the full `terminal_id`, never an `@short-ref`. Other managed controls use `turn_id`; terminal-scoped approval uses `terminal_id` after explicit user confirmation. The trusted plugin/CLI derives terminal, binding, candidate, prompt, composer, handoff, and compare-and-swap fences privately. Never ask the user or model to copy draft text, a composer digest, a token, fingerprint, revision, binding ID/generation, or handoff-only live native UUID from an action; `native_thread_id` is the intentional semantic UUID for resume. For every side effect, AKK must revalidate the selected agent PID and provider-owned terminal identity and revalidate the relevant approval prompt; Composer revalidation remains action-specific and is not user-explicit Send authority.
|
|
42
42
|
|
|
43
43
|
The human-priority Codex path may proceed when the pane/process and complete open-rollout candidate inventory are exact even though no single foreground UUID can be selected, including a supported manual `/clear` whose new logical thread appears 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. A `/clear` resume hint is advisory only, never routing or acceptance authority. Under the terminal lock, AKK isolates the predecessor, creates a separate zero-UUID provisional Session and Turn, sends the real task once, and binds only the single candidate rollout that durably accepts that exact request. A rollout-backed Codex row therefore advertises `terminal_follow_current` with `terminal_id`, not `session_exact`; a cached strict Session attempt rejects before task text and never downgrades itself. Only released predecessor Turn history from a strictly earlier binding epoch is excluded from current-send authority; unresolved current-epoch state still blocks. Use only the freshly listed semantic-ID action. Until promotion commits, strict `session_id` send, `respond`, managed `approve`, `cancel`, native lifecycle, callback delivery, and `native_inspect` remain unavailable. If delivery or acceptance is uncertain, do not retry automatically. Terminal-scoped manual Codex approval likewise exposes only `terminal_id`, requires explicit confirmation, leaves managed identity unchanged, never participates in auto-approval, and must not be retried blindly after an uncertain result.
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ AKK discovers eligible panes across workspaces. When more than one target matche
|
|
|
52
52
|
|
|
53
53
|
Natural-language forms:
|
|
54
54
|
|
|
55
|
-
- `AKK: <task>`: call `agent_knock_knock_send` with `request=<task>` and neither target ID. This succeeds only when exactly one send-ready pane exists. A scanned blocked approval or proven input-owning
|
|
55
|
+
- `AKK: <task>`: call `agent_knock_knock_send` with `request=<task>` and neither target ID. This succeeds only when exactly one send-ready pane exists. A scanned blocked approval or proven input-owning questionnaire, editor, menu, or read-only viewer vetoes physical Send; parsed working activity, an existing draft, and ordinary main-Composer observation do not. Codex replaces the current Composer with `C-u`; Claude Code uses a sentinel-backed native `C-s` stash-clear transaction that is independent of the cursor position and does not interrupt an active turn, then proves the main Composer empty. Each injects the request and submits exactly once. Broken or stale AKK management activity records do not veto that independently verified live terminal/process.
|
|
56
56
|
- `AKK Codex: <task>`: list first, require one exact eligible Codex row, then call `agent_knock_knock_send` with that row's `terminal_id` and `request=<task>`.
|
|
57
57
|
- `AKK Claude: <task>`: list first, require one exact eligible Claude row, then call `agent_knock_knock_send` with that row's `terminal_id` and `request=<task>`.
|
|
58
58
|
- Requests to list AKK or local coding-agent work: call `agent_knock_knock_list`.
|
|
@@ -88,12 +88,12 @@ For ordinary send or an in-flight answer:
|
|
|
88
88
|
2. If no ID is supplied and more than one eligible pane may exist, call `agent_knock_knock_list`.
|
|
89
89
|
3. Treat `terminals[]` as the primary resource list. Its managed context exposes `session_id`; `managed.current_turn` is the only current AKK owner, while `managed.recent_turn` and `managed.history` are retained Turn history. Records in `unavailable_managed_turns[]` have no live pane in this snapshot.
|
|
90
90
|
4. Read the selected resource's `available_actions`. In the compact Host projection its keys are the exact current action names and each value is `true`; `action_inputs`, when present, carries only dynamic semantic arguments, `missing_required`, and scope. For every mutation, use only an advertised action, start with those semantic inputs, supply every `missing_required` field, and follow this skill's action rules. Read-only Watch is the exception: explicit user intent plus one complete exact `terminal_id` is sufficient even when `available_actions.watch` is absent. The only additional mutation sources are a terminal row's `handoff_decision.choices.take_over_current.action` and an exact `blocking_turns[].recovery_action`: use either only after explicit user confirmation and refresh the list immediately afterward.
|
|
91
|
-
5. If an existing managed Session advertises send with `session_id`, call `agent_knock_knock_send({session_id,request})`; it creates a new Turn strictly in that Session's native context and may require exact empty before input. If the selected row advertises terminal-scoped send, call `agent_knock_knock_send({terminal_id,request})`. `terminal_follow_current` may adopt a safe human-driven handoff or send once within an exact, complete Codex rollout-candidate inventory before binding the uniquely accepting native thread. `terminal_user_explicit` instead preserves the user's Send when internal AKK state is broken: Codex replaces the current Composer with the new request and submits exactly once without a post-text Composer veto
|
|
91
|
+
5. If an existing managed Session advertises send with `session_id`, call `agent_knock_knock_send({session_id,request})`; it creates a new Turn strictly in that Session's native context and may require exact empty before input. If the selected row advertises terminal-scoped send, call `agent_knock_knock_send({terminal_id,request})`. `terminal_follow_current` may adopt a safe human-driven handoff or send once within an exact, complete Codex rollout-candidate inventory before binding the uniquely accepting native thread. `terminal_user_explicit` instead preserves the user's Send when internal AKK state is broken: Codex replaces the current Composer with `C-u`; Claude Code uses a sentinel-backed native `C-s` stash-clear transaction that is independent of the cursor position and does not interrupt an active turn, then proves the main Composer empty. Each injects the new request and submits exactly once without a post-text Composer veto. For source-less Codex sends, zero exact acceptors remains pending for monitor recovery, one promotes the provisional Session/Turn, and multiple acceptors or identity drift becomes uncertain without replay. Managed delivery is attempted where eligible, but a proven zero-input failure falls back to one unmanaged delivery with no managed callback Turn. After Enter, AKK best-effort attaches a Terminal Watch callback; Watch failure never changes the successful Send. Once clear or request input may have occurred, an uncertain result must not be retried automatically. Wait for an attached Watch callback or use its status as recovery. The status-card-only first-task path remains the zero-rollout special case. `send({turn_id})` is never an ordinary target: use it only for a fresh `retry_submission` action after explicit confirmation, with no other field. Never construct or pass an opaque fence or composer authority. Use `respond` with its `turn_id` only when that Turn is explicitly `waiting_for_openclaw`; the answer stays in the same Turn. Do not add timeout fields for ordinary use; `timeoutSeconds` is unsupported.
|
|
92
92
|
6. If multiple terminals match, show their `short_ref`, agent, provider, and terminal target, then ask the user to choose. If a human switch has an unresolved Turn, ambiguous ownership, or unverifiable identity and no follow-current send is advertised, report that blocker and ask the user which context to resolve; never guess, supersede active work, or bypass the fence.
|
|
93
93
|
|
|
94
94
|
An idle pane is at a verified ready prompt, with no current work or unresolved permission request. A previously completed managed turn alone is not proof that the pane is still idle.
|
|
95
95
|
|
|
96
|
-
Do not treat ordinary
|
|
96
|
+
Do not treat ordinary Send's whole-draft Composer replacement as a native conversation clear, new-session, fork, branch, side thread, status probe, or resume. Do not send `/clear`, `/new`, `/resume`, `/status`, Codex `/fork`, `/side`, `/btw`, Claude `/branch`, or any other first-line native slash command as ordinary task or answer text. Dedicated native lifecycle and inspection tools own their closed commands, capability checks, serialization, identity verification, and binding fences; express other requests in natural language or leave unsupported native commands to a human in the terminal UI. Each successful lifecycle transition creates no Turn, and native inspection creates no Session or Turn.
|
|
97
97
|
|
|
98
98
|
## Terminal Watch
|
|
99
99
|
|
|
@@ -111,7 +111,7 @@ Hard creation failure is limited to an absent exact terminal, inability to ident
|
|
|
111
111
|
|
|
112
112
|
Approval attention is notification-only for every Watch: never call an approval tool for a `watch_id`, send approval keys, or apply `autoApprove`. Questionnaire attention is different. An automatic exact request-bound Watch created by `terminal_user_explicit` unmanaged fallback can, after exact request acceptance and attribution, emit `interaction_required`; call Status with its exact `watch_id`, show the projected question to the user, and use `respond_interaction({watch_id,...})` only when that fresh owner-bound projection advertises `capabilities.respond=true`. A terminal-activity Watch or `interaction_manual_required` callback remains notify-only: tell the user to inspect and answer in the live TUI, and send no questionnaire input. Each new exact attention fingerprint is notified once while the Watch remains active. Terminal outcomes settle once. The durable outbox uses deterministic notification IDs/idempotency and leased retry, so startup and periodic supervision can safely recover callback delivery after AKK, OpenClaw, or Gateway restart.
|
|
113
113
|
|
|
114
|
-
The current integrations register the complete capability-handshake-verified semantic AKK tool catalog and list action-contract
|
|
114
|
+
The current integrations register the complete capability-handshake-verified semantic AKK tool catalog and list action-contract v29. Structured OpenClaw, Pi, and DeepSeek Harness Lists use compact projection v1 and point here for the static contract; the CLI keeps the complete operator/debug action contract. Every structured model action carries semantic IDs only; opaque fences, Composer digests, and draft text are derived or retained privately. Watch uses `agent_knock_knock_watch({terminal_id})`, `agent_knock_knock_status({watch_id})`, and `agent_knock_knock_unwatch({watch_id})`; its internal CLI boundary is `watch-terminal`, `watch-status`, `unwatch-terminal`, and `reconcile-watches`.
|
|
115
115
|
|
|
116
116
|
For native model control, first call `agent_knock_knock_model_options({terminal_id})` only from the current terminal row's advertised action. This is explicit current-snapshot authority for one exact physical pane/process: Codex 0.154 may use either one exact current native Session or a verified-zero-rollout pane, where `identify_foreground` is diagnostic rather than a prerequisite; Claude Code still requires one exact current native Session. The pane must have no active Turn, approval, questionnaire/editor, or read-only viewer. It normally requires an idle empty Composer; when List advertises `model_options` for one exact stable Codex 0.154 `/model` residual, AKK may continue only that residual into read-only catalog discovery. Show the returned `scope`, current selection, and semantic model/effort catalog to the user. Then call `agent_knock_knock_set_model({terminal_id,model,reasoning_effort})` with an exact required tuple from that same result in the same controller conversation. Codex scope is always `current_and_new_sessions`: a successful selection persists the model and an ordinary effort (including `max`) for future sessions, but `ultra` is current-session-only and Codex chooses a non-Ultra future fallback. Always read `effective` and `new_session_defaults` separately. Claude Code scope is always `current_session`. There is no caller-selectable scope. Never pass a display label, menu index, slash command, raw key, token, or fingerprint. A stale or consumed catalog must be refreshed, and `outcome="uncertain"` must never be retried automatically.
|
|
117
117
|
|
|
@@ -248,7 +248,7 @@ The tool name is normally `agent_knock_knock_<action-name>`. The sole List alias
|
|
|
248
248
|
|
|
249
249
|
`available_actions` is the authoritative current-action source for mutations after listing except for the explicitly modeled nested handoff decision and `blocking_turns[].recovery_action`; read-only `watch({terminal_id})` deliberately honors an exact user-selected terminal even without advertisement. A native questionnaire response instead requires the current `interaction_state` returned by Status in the same controller conversation. Approval, questionnaire response, handoff takeover, and `reconcile_binding` require explicit user intent and fresh source state. Model-facing shapes include `model_options({terminal_id})`, the separately advertised Codex-only `repair_model_control({terminal_id})`, and `set_model({terminal_id,model,reasoning_effort})`; `watch({terminal_id})`; `send({session_id|terminal_id,request})`, with the targets mutually exclusive; `identify_foreground({terminal_id})`; `identify_and_send({terminal_id,request})`; `respond_interaction({turn_id|watch_id,interaction_id,answers})`, with exactly one subject id and only projected question/option ids; managed `approve({turn_id,decision})` or approve-once-only 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})`. A top-level `previous` block, when present, is the only authority for a “previous/刚才那个” request; human-facing numbers and short IDs remain slash-navigation aids and are never structured tool arguments. The model never carries terminal, binding, catalog, candidate, composer, handoff, approval, interaction-fingerprint, revision, binding ID/generation, or handoff-only live-native-UUID fences; it never receives draft text or composer digests. `native_thread_id` remains the semantic resume identity. AKK derives those private fences and revalidates them before side effects. Orphan-close `expected_message_id` and `expected_transition_id` remain because they are entity IDs. Store format remains 1 and writer protocol is 7; Terminal Watch schema remains 3.
|
|
250
250
|
|
|
251
|
-
Before every terminal operation, AKK revalidates the expected agent PID and provider-owned terminal identity. Native inspection
|
|
251
|
+
Before every terminal operation, AKK revalidates the expected agent PID and provider-owned terminal identity. Native inspection and lifecycle input require an exactly empty Composer; managed Send may require exact empty before input. Codex and Claude Code `terminal_user_explicit` instead require a scanned non-blocked approval state and no proven input-owning questionnaire, editor, menu, or read-only viewer. Ordinary main-Composer visibility, stability, exactness, existing draft contents, and parsed working activity do not veto this user-priority path, and after text injection no Composer observation may veto Enter. Once clear or request input may have occurred, an uncertain result must not be retried automatically. Humans can attach to the same tmux or Herdr session and continue directly at any time.
|
|
252
252
|
|
|
253
253
|
Exact-task Claude Code completion depends on a strictly correlated local transcript turn and fails closed for unknown schemas, background work, or ambiguous identity. A `terminal_activity` Watch may separately notify that the selected terminal became stably idle only after observed activity; always label that callback best-effort and never report it as exact task completion or success.
|
|
254
254
|
|