@scotthuang/agent-knock-knock 0.12.30 → 0.12.32
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 +17 -0
- package/assets/icon.png +0 -0
- package/dist/src/claude-lifecycle-compatibility.js +18 -0
- package/dist/src/claude-lifecycle-compatibility.js.map +1 -1
- package/dist/src/claude-terminal-agent-adapter.d.ts +1 -1
- package/dist/src/claude-terminal-agent-adapter.js +1 -1
- package/dist/src/codex-lifecycle-compatibility.js +2 -1
- package/dist/src/codex-lifecycle-compatibility.js.map +1 -1
- package/dist/src/live-lifecycle-smoke.js +66 -27
- package/dist/src/live-lifecycle-smoke.js.map +1 -1
- package/dist/src/native-thread-transition-verification-adapter.js +1 -0
- package/dist/src/native-thread-transition-verification-adapter.js.map +1 -1
- package/dist/src/openclaw-plugin-schemas.js +1 -1
- package/dist/src/openclaw-plugin-schemas.js.map +1 -1
- package/dist/src/terminal-acceptance-cli-adapter.js +12 -5
- package/dist/src/terminal-acceptance-cli-adapter.js.map +1 -1
- package/dist/src/terminal-agent-bridge.js +16 -1
- package/dist/src/terminal-agent-bridge.js.map +1 -1
- package/dist/src/terminal-command-cli-adapter.js +17 -2
- package/dist/src/terminal-command-cli-adapter.js.map +1 -1
- package/dist/src/terminal-dispatch-execution.d.ts +2 -0
- package/dist/src/terminal-dispatch-execution.js +3 -1
- package/dist/src/terminal-dispatch-execution.js.map +1 -1
- package/docs/quickstart-tmux.md +1 -1
- package/openclaw.plugin.json +0 -1
- package/package.json +2 -1
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +1 -1
|
@@ -1897,7 +1897,8 @@ async function recoverPartialTerminalSubmissionRetryAcceptance(context, state) {
|
|
|
1897
1897
|
const durableEvidence = await context.execution.detectAcceptance({
|
|
1898
1898
|
executor: "codex",
|
|
1899
1899
|
conversation: state.conversation,
|
|
1900
|
-
terminalControl
|
|
1900
|
+
terminalControl,
|
|
1901
|
+
...terminalAcceptanceCompanionFences(state.conversation, terminalControl)
|
|
1901
1902
|
});
|
|
1902
1903
|
assertTerminalSubmissionRetryTurnOpen({
|
|
1903
1904
|
statePath,
|
|
@@ -2012,7 +2013,8 @@ async function recoverTerminalSubmissionRetryAcceptance(context, state) {
|
|
|
2012
2013
|
: await context.execution.detectAcceptance({
|
|
2013
2014
|
executor: "codex",
|
|
2014
2015
|
conversation: state.conversation,
|
|
2015
|
-
terminalControl
|
|
2016
|
+
terminalControl,
|
|
2017
|
+
...terminalAcceptanceCompanionFences(state.conversation, terminalControl)
|
|
2016
2018
|
});
|
|
2017
2019
|
assertTerminalSubmissionRetryTurnOpen({
|
|
2018
2020
|
statePath,
|
|
@@ -2520,6 +2522,7 @@ async function runTerminalSubmissionExactDraftEnter(input) {
|
|
|
2520
2522
|
executor: "codex",
|
|
2521
2523
|
conversation: enteredConversation,
|
|
2522
2524
|
terminalControl: input.terminalControl,
|
|
2525
|
+
...terminalAcceptanceCompanionFences(enteredConversation, input.terminalControl),
|
|
2523
2526
|
timeoutMs,
|
|
2524
2527
|
pollIntervalMs: Math.max(10, Math.min(timeoutMs, Number(input.options.terminalAcceptancePollIntervalMs ??
|
|
2525
2528
|
DEFAULT_TERMINAL_ACCEPTANCE_POLL_INTERVAL_MS))),
|
|
@@ -2861,6 +2864,7 @@ async function runTerminalSubmissionReplacement(input) {
|
|
|
2861
2864
|
executor: "codex",
|
|
2862
2865
|
conversation: enteredConversation,
|
|
2863
2866
|
terminalControl: input.terminalControl,
|
|
2867
|
+
...terminalAcceptanceCompanionFences(enteredConversation, input.terminalControl),
|
|
2864
2868
|
timeoutMs,
|
|
2865
2869
|
pollIntervalMs: Math.max(10, Math.min(timeoutMs, Number(input.options.terminalAcceptancePollIntervalMs ??
|
|
2866
2870
|
DEFAULT_TERMINAL_ACCEPTANCE_POLL_INTERVAL_MS))),
|
|
@@ -6075,12 +6079,23 @@ async function terminalDispatchAcceptance({ request, prepared, conversation }) {
|
|
|
6075
6079
|
executor: executor.kind,
|
|
6076
6080
|
conversation,
|
|
6077
6081
|
terminalControl,
|
|
6082
|
+
...terminalAcceptanceCompanionFences(conversation, terminalControl),
|
|
6078
6083
|
timeoutMs,
|
|
6079
6084
|
pollIntervalMs: Math.max(10, Math.min(timeoutMs, Number(options.terminalAcceptancePollIntervalMs ??
|
|
6080
6085
|
DEFAULT_TERMINAL_ACCEPTANCE_POLL_INTERVAL_MS))),
|
|
6081
6086
|
scrollbackLines: Number(options.scrollbackLines ?? 240)
|
|
6082
6087
|
});
|
|
6083
6088
|
}
|
|
6089
|
+
function terminalAcceptanceCompanionFences(conversation, terminalControl) {
|
|
6090
|
+
if (executorForConversation(conversation).kind !== "codex") {
|
|
6091
|
+
return {};
|
|
6092
|
+
}
|
|
6093
|
+
const runtime = terminalRuntimeIdentityForConversation(conversation, terminalControl);
|
|
6094
|
+
return {
|
|
6095
|
+
allowedCompanionIdentity: runtime.allowedPreMaterializationNativeIdentity,
|
|
6096
|
+
allowedAdditionalIdentities: runtime.allowedAdditionalNativeIdentities
|
|
6097
|
+
};
|
|
6098
|
+
}
|
|
6084
6099
|
function launchAcceptedTerminalMonitor({ request, prepared, conversation, acceptance, recordFailure }) {
|
|
6085
6100
|
const { options } = request;
|
|
6086
6101
|
const { bridge, statePath, logPath, terminalControl, agentTimeoutMinutes, agentHardTimeoutMinutes } = prepared;
|