@scotthuang/agent-knock-knock 0.13.2 → 0.13.4
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 +36 -0
- package/README.md +27 -6
- package/dist/src/callback-outbox-policy.js +27 -6
- package/dist/src/callback-outbox-policy.js.map +1 -1
- package/dist/src/callback-outbox-service.d.ts +4 -30
- package/dist/src/callback-outbox-service.js +21 -154
- package/dist/src/callback-outbox-service.js.map +1 -1
- package/dist/src/callback-outbox-settlement.js +13 -8
- package/dist/src/callback-outbox-settlement.js.map +1 -1
- package/dist/src/callback-route-service.d.ts +46 -0
- package/dist/src/callback-route-service.js +155 -0
- package/dist/src/callback-route-service.js.map +1 -0
- package/dist/src/claude-terminal-agent-adapter.js +4 -0
- package/dist/src/claude-terminal-agent-adapter.js.map +1 -1
- package/dist/src/cli-core.js +9 -1
- package/dist/src/cli-core.js.map +1 -1
- package/dist/src/codex-process-incarnation.d.ts +8 -0
- package/dist/src/codex-process-incarnation.js +36 -0
- package/dist/src/codex-process-incarnation.js.map +1 -0
- package/dist/src/codex-terminal-agent-adapter.js +4 -0
- package/dist/src/codex-terminal-agent-adapter.js.map +1 -1
- package/dist/src/deferred-foreground-conflict-policy.d.ts +22 -0
- package/dist/src/deferred-foreground-conflict-policy.js +52 -0
- package/dist/src/deferred-foreground-conflict-policy.js.map +1 -0
- package/dist/src/durable-notification-kernel.d.ts +94 -0
- package/dist/src/durable-notification-kernel.js +68 -0
- package/dist/src/durable-notification-kernel.js.map +1 -0
- package/dist/src/herdr-socket-transport.d.ts +43 -0
- package/dist/src/herdr-socket-transport.js +170 -0
- package/dist/src/herdr-socket-transport.js.map +1 -0
- package/dist/src/herdr-terminal-control-provider.d.ts +2 -45
- package/dist/src/herdr-terminal-control-provider.js +8 -173
- package/dist/src/herdr-terminal-control-provider.js.map +1 -1
- package/dist/src/host-adapter-capabilities.d.ts +35 -0
- package/dist/src/host-adapter-capabilities.js +146 -0
- package/dist/src/host-adapter-capabilities.js.map +1 -0
- package/dist/src/host-adapter.d.ts +9 -3
- package/dist/src/host-adapter.js +33 -9
- package/dist/src/host-adapter.js.map +1 -1
- package/dist/src/host-bridge-tools.d.ts +3 -4
- package/dist/src/host-bridge-tools.js +49 -92
- package/dist/src/host-bridge-tools.js.map +1 -1
- package/dist/src/host-bridge.js +5 -5
- package/dist/src/host-bridge.js.map +1 -1
- package/dist/src/host-monitor-reconciliation.d.ts +6 -0
- package/dist/src/host-monitor-reconciliation.js +96 -0
- package/dist/src/host-monitor-reconciliation.js.map +1 -0
- package/dist/src/managed-session.js +2 -18
- package/dist/src/managed-session.js.map +1 -1
- package/dist/src/native-thread-lifecycle-cli-adapter.d.ts +13 -0
- package/dist/src/native-thread-lifecycle-cli-adapter.js +635 -3
- package/dist/src/native-thread-lifecycle-cli-adapter.js.map +1 -1
- package/dist/src/openclaw-list-projection.d.ts +2 -0
- package/dist/src/openclaw-list-projection.js +3 -0
- package/dist/src/openclaw-list-projection.js.map +1 -0
- package/dist/src/openclaw-model-facing-field-policy.d.ts +2 -0
- package/dist/src/openclaw-model-facing-field-policy.js +3 -0
- package/dist/src/openclaw-model-facing-field-policy.js.map +1 -0
- package/dist/src/openclaw-plugin-command-adapter.d.ts +6 -29
- package/dist/src/openclaw-plugin-command-adapter.js +7 -2370
- package/dist/src/openclaw-plugin-command-adapter.js.map +1 -1
- package/dist/src/openclaw-plugin-helpers.d.ts +2 -121
- package/dist/src/openclaw-plugin-helpers.js +2 -1164
- package/dist/src/openclaw-plugin-helpers.js.map +1 -1
- package/dist/src/openclaw-plugin-schemas.d.ts +2 -510
- package/dist/src/openclaw-plugin-schemas.js +2 -519
- package/dist/src/openclaw-plugin-schemas.js.map +1 -1
- package/dist/src/openclaw-plugin-supervisor.d.ts +4 -5
- package/dist/src/openclaw-plugin-supervisor.js +5 -94
- package/dist/src/openclaw-plugin-supervisor.js.map +1 -1
- package/dist/src/openclaw-plugin-value-helpers.d.ts +2 -0
- package/dist/src/openclaw-plugin-value-helpers.js +3 -0
- package/dist/src/openclaw-plugin-value-helpers.js.map +1 -0
- package/dist/src/openclaw-private-authority-offers.d.ts +4 -39
- package/dist/src/openclaw-private-authority-offers.js +3 -258
- package/dist/src/openclaw-private-authority-offers.js.map +1 -1
- package/dist/src/semantic-private-authority-offers.d.ts +41 -0
- package/dist/src/semantic-private-authority-offers.js +261 -0
- package/dist/src/semantic-private-authority-offers.js.map +1 -0
- package/dist/src/semantic-tool-arguments.d.ts +9 -0
- package/dist/src/semantic-tool-arguments.js +64 -0
- package/dist/src/semantic-tool-arguments.js.map +1 -0
- package/dist/src/semantic-tool-catalog.d.ts +48 -0
- package/dist/src/semantic-tool-catalog.js +105 -0
- package/dist/src/semantic-tool-catalog.js.map +1 -0
- package/dist/src/semantic-tool-command-helpers.d.ts +145 -0
- package/dist/src/semantic-tool-command-helpers.js +1272 -0
- package/dist/src/semantic-tool-command-helpers.js.map +1 -0
- package/dist/src/semantic-tool-list-projection.d.ts +10 -0
- package/dist/src/semantic-tool-list-projection.js +497 -0
- package/dist/src/semantic-tool-list-projection.js.map +1 -0
- package/dist/src/semantic-tool-model-facing-field-policy.d.ts +3 -0
- package/dist/src/semantic-tool-model-facing-field-policy.js +66 -0
- package/dist/src/semantic-tool-model-facing-field-policy.js.map +1 -0
- package/dist/src/semantic-tool-presentation.d.ts +37 -0
- package/dist/src/semantic-tool-presentation.js +680 -0
- package/dist/src/semantic-tool-presentation.js.map +1 -0
- package/dist/src/semantic-tool-private-authority.d.ts +39 -0
- package/dist/src/semantic-tool-private-authority.js +602 -0
- package/dist/src/semantic-tool-private-authority.js.map +1 -0
- package/dist/src/semantic-tool-relay.d.ts +16 -0
- package/dist/src/semantic-tool-relay.js +175 -0
- package/dist/src/semantic-tool-relay.js.map +1 -0
- package/dist/src/semantic-tool-runtime.d.ts +10 -0
- package/dist/src/semantic-tool-runtime.js +1157 -0
- package/dist/src/semantic-tool-runtime.js.map +1 -0
- package/dist/src/semantic-tool-schemas.d.ts +563 -0
- package/dist/src/semantic-tool-schemas.js +573 -0
- package/dist/src/semantic-tool-schemas.js.map +1 -0
- package/dist/src/semantic-tool-value-helpers.d.ts +5 -0
- package/dist/src/semantic-tool-value-helpers.js +27 -0
- package/dist/src/semantic-tool-value-helpers.js.map +1 -0
- package/dist/src/store-event-presentation.d.ts +17 -0
- package/dist/src/store-event-presentation.js +33 -0
- package/dist/src/store-event-presentation.js.map +1 -0
- package/dist/src/store.d.ts +3 -16
- package/dist/src/store.js +2 -30
- package/dist/src/store.js.map +1 -1
- package/dist/src/terminal-action-projection.d.ts +3 -17
- package/dist/src/terminal-action-projection.js +13 -41
- package/dist/src/terminal-action-projection.js.map +1 -1
- package/dist/src/terminal-agent-adapter.d.ts +7 -0
- package/dist/src/terminal-agent-adapter.js +8 -0
- package/dist/src/terminal-agent-adapter.js.map +1 -1
- package/dist/src/terminal-agent-bridge.d.ts +35 -332
- package/dist/src/terminal-agent-bridge.js +293 -2798
- package/dist/src/terminal-agent-bridge.js.map +1 -1
- package/dist/src/terminal-approval-cli-adapter.d.ts +17 -0
- package/dist/src/terminal-approval-cli-adapter.js +921 -0
- package/dist/src/terminal-approval-cli-adapter.js.map +1 -0
- package/dist/src/terminal-command-cli-adapter.d.ts +2 -429
- package/dist/src/terminal-command-cli-adapter.js +344 -6061
- package/dist/src/terminal-command-cli-adapter.js.map +1 -1
- package/dist/src/terminal-command-cli-ports.d.ts +443 -0
- package/dist/src/terminal-command-cli-ports.js +2 -0
- package/dist/src/terminal-command-cli-ports.js.map +1 -0
- package/dist/src/terminal-command-dispatch-preparation.d.ts +81 -0
- package/dist/src/terminal-command-dispatch-preparation.js +209 -0
- package/dist/src/terminal-command-dispatch-preparation.js.map +1 -0
- package/dist/src/terminal-command-dispatch-transport.d.ts +35 -0
- package/dist/src/terminal-command-dispatch-transport.js +859 -0
- package/dist/src/terminal-command-dispatch-transport.js.map +1 -0
- package/dist/src/terminal-command-foreground-proof.d.ts +32 -0
- package/dist/src/terminal-command-foreground-proof.js +72 -0
- package/dist/src/terminal-command-foreground-proof.js.map +1 -0
- package/dist/src/terminal-command-send-preflight.d.ts +41 -0
- package/dist/src/terminal-command-send-preflight.js +86 -0
- package/dist/src/terminal-command-send-preflight.js.map +1 -0
- package/dist/src/terminal-composer-classifier.d.ts +55 -0
- package/dist/src/terminal-composer-classifier.js +638 -0
- package/dist/src/terminal-composer-classifier.js.map +1 -0
- package/dist/src/terminal-control-ref.d.ts +23 -0
- package/dist/src/terminal-control-ref.js +32 -0
- package/dist/src/terminal-control-ref.js.map +1 -1
- package/dist/src/terminal-dispatch-recovery-authority.d.ts +56 -0
- package/dist/src/terminal-dispatch-recovery-authority.js +251 -0
- package/dist/src/terminal-dispatch-recovery-authority.js.map +1 -0
- package/dist/src/terminal-dispatch-recovery-cli-adapter.d.ts +1 -9
- package/dist/src/terminal-dispatch-recovery-cli-adapter.js +5 -240
- package/dist/src/terminal-dispatch-recovery-cli-adapter.js.map +1 -1
- package/dist/src/terminal-handoff-cli-adapter.d.ts +1 -11
- package/dist/src/terminal-handoff-cli-adapter.js +2 -39
- package/dist/src/terminal-handoff-cli-adapter.js.map +1 -1
- package/dist/src/terminal-human-explicit-send-cli-adapter.d.ts +25 -0
- package/dist/src/terminal-human-explicit-send-cli-adapter.js +903 -0
- package/dist/src/terminal-human-explicit-send-cli-adapter.js.map +1 -0
- package/dist/src/terminal-identity-authority-cli-adapter.d.ts +1 -6
- package/dist/src/terminal-identity-authority-cli-adapter.js +3 -33
- package/dist/src/terminal-identity-authority-cli-adapter.js.map +1 -1
- package/dist/src/terminal-interaction-cli-adapter.js +209 -210
- package/dist/src/terminal-interaction-cli-adapter.js.map +1 -1
- package/dist/src/terminal-interaction-core.d.ts +0 -2
- package/dist/src/terminal-interaction-core.js +4 -3
- package/dist/src/terminal-interaction-core.js.map +1 -1
- package/dist/src/terminal-interaction-protocol.d.ts +21 -0
- package/dist/src/terminal-interaction-protocol.js +74 -0
- package/dist/src/terminal-interaction-protocol.js.map +1 -1
- package/dist/src/terminal-interaction-response-bridge.d.ts +126 -0
- package/dist/src/terminal-interaction-response-bridge.js +579 -0
- package/dist/src/terminal-interaction-response-bridge.js.map +1 -0
- package/dist/src/terminal-interaction-response-transaction.d.ts +44 -0
- package/dist/src/terminal-interaction-response-transaction.js +56 -0
- package/dist/src/terminal-interaction-response-transaction.js.map +1 -0
- package/dist/src/terminal-list-action-policy.d.ts +43 -0
- package/dist/src/terminal-list-action-policy.js +164 -0
- package/dist/src/terminal-list-action-policy.js.map +1 -0
- package/dist/src/terminal-list-cli-adapter.d.ts +6 -36
- package/dist/src/terminal-list-cli-adapter.js +314 -1711
- package/dist/src/terminal-list-cli-adapter.js.map +1 -1
- package/dist/src/terminal-list-facts.d.ts +129 -0
- package/dist/src/terminal-list-facts.js +179 -0
- package/dist/src/terminal-list-facts.js.map +1 -0
- package/dist/src/terminal-list-inventory.d.ts +59 -0
- package/dist/src/terminal-list-inventory.js +194 -0
- package/dist/src/terminal-list-inventory.js.map +1 -0
- package/dist/src/terminal-list-ownership-service.d.ts +118 -0
- package/dist/src/terminal-list-ownership-service.js +1003 -0
- package/dist/src/terminal-list-ownership-service.js.map +1 -0
- package/dist/src/terminal-list-projection-service.d.ts +49 -0
- package/dist/src/terminal-list-projection-service.js +407 -0
- package/dist/src/terminal-list-projection-service.js.map +1 -0
- package/dist/src/terminal-list-renderer.d.ts +12 -11
- package/dist/src/terminal-list-renderer.js +237 -104
- package/dist/src/terminal-list-renderer.js.map +1 -1
- package/dist/src/terminal-managed-send-cli-adapter.d.ts +33 -0
- package/dist/src/terminal-managed-send-cli-adapter.js +994 -0
- package/dist/src/terminal-managed-send-cli-adapter.js.map +1 -0
- package/dist/src/terminal-managed-turn-list-action-policy.d.ts +47 -0
- package/dist/src/terminal-managed-turn-list-action-policy.js +64 -0
- package/dist/src/terminal-managed-turn-list-action-policy.js.map +1 -0
- package/dist/src/terminal-model-control-action-policy.d.ts +60 -0
- package/dist/src/terminal-model-control-action-policy.js +96 -0
- package/dist/src/terminal-model-control-action-policy.js.map +1 -0
- package/dist/src/terminal-model-control-availability.d.ts +68 -0
- package/dist/src/terminal-model-control-availability.js +157 -0
- package/dist/src/terminal-model-control-availability.js.map +1 -0
- package/dist/src/terminal-model-control-bridge.d.ts +48 -0
- package/dist/src/terminal-model-control-bridge.js +259 -0
- package/dist/src/terminal-model-control-bridge.js.map +1 -0
- package/dist/src/terminal-model-control-profile.d.ts +55 -0
- package/dist/src/terminal-model-control-profile.js +137 -0
- package/dist/src/terminal-model-control-profile.js.map +1 -0
- package/dist/src/terminal-model-control-subject.d.ts +34 -0
- package/dist/src/terminal-model-control-subject.js +58 -0
- package/dist/src/terminal-model-control-subject.js.map +1 -0
- package/dist/src/terminal-model-control-transaction.d.ts +19 -0
- package/dist/src/terminal-model-control-transaction.js +39 -0
- package/dist/src/terminal-model-control-transaction.js.map +1 -0
- package/dist/src/terminal-model-control.d.ts +331 -0
- package/dist/src/terminal-model-control.js +1686 -0
- package/dist/src/terminal-model-control.js.map +1 -0
- package/dist/src/terminal-monitor-application-service.js +50 -17
- package/dist/src/terminal-monitor-application-service.js.map +1 -1
- package/dist/src/terminal-native-inspection-bridge.d.ts +211 -0
- package/dist/src/terminal-native-inspection-bridge.js +1127 -0
- package/dist/src/terminal-native-inspection-bridge.js.map +1 -0
- package/dist/src/terminal-runtime-cli-adapter.d.ts +2 -0
- package/dist/src/terminal-runtime-cli-adapter.js +59 -17
- package/dist/src/terminal-runtime-cli-adapter.js.map +1 -1
- package/dist/src/terminal-submission-retry-application.d.ts +24 -0
- package/dist/src/terminal-submission-retry-application.js +402 -0
- package/dist/src/terminal-submission-retry-application.js.map +1 -0
- package/dist/src/terminal-submission-retry-ports.d.ts +30 -0
- package/dist/src/terminal-submission-retry-ports.js +2 -0
- package/dist/src/terminal-submission-retry-ports.js.map +1 -0
- package/dist/src/terminal-submission-retry-reconciliation.d.ts +236 -0
- package/dist/src/terminal-submission-retry-reconciliation.js +1130 -0
- package/dist/src/terminal-submission-retry-reconciliation.js.map +1 -0
- package/dist/src/terminal-submission-retry-transport.d.ts +58 -0
- package/dist/src/terminal-submission-retry-transport.js +675 -0
- package/dist/src/terminal-submission-retry-transport.js.map +1 -0
- package/dist/src/terminal-text-submission-bridge.d.ts +200 -0
- package/dist/src/terminal-text-submission-bridge.js +632 -0
- package/dist/src/terminal-text-submission-bridge.js.map +1 -0
- package/dist/src/terminal-user-explicit-send-policy.d.ts +29 -0
- package/dist/src/terminal-user-explicit-send-policy.js +46 -0
- package/dist/src/terminal-user-explicit-send-policy.js.map +1 -0
- package/dist/src/terminal-watch-cli-adapter.js +91 -143
- package/dist/src/terminal-watch-cli-adapter.js.map +1 -1
- package/dist/src/terminal-watch-codec.d.ts +9 -0
- package/dist/src/terminal-watch-codec.js +1051 -0
- package/dist/src/terminal-watch-codec.js.map +1 -0
- package/dist/src/terminal-watch-interaction-response-store.d.ts +19 -0
- package/dist/src/terminal-watch-interaction-response-store.js +87 -0
- package/dist/src/terminal-watch-interaction-response-store.js.map +1 -0
- package/dist/src/terminal-watch-record.d.ts +319 -0
- package/dist/src/terminal-watch-record.js +742 -0
- package/dist/src/terminal-watch-record.js.map +1 -0
- package/dist/src/terminal-watch-service.js +48 -27
- package/dist/src/terminal-watch-service.js.map +1 -1
- package/dist/src/terminal-watch-store.d.ts +3 -279
- package/dist/src/terminal-watch-store.js +5 -1779
- package/dist/src/terminal-watch-store.js.map +1 -1
- package/docs/quickstart-herdr.md +1 -1
- package/docs/quickstart-tmux.md +27 -2
- package/openclaw.plugin.json +13 -1
- package/package.json +7 -2
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +54 -11
|
@@ -1,520 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const terminalInteractionIdentifierSchema = {
|
|
4
|
-
type: "string",
|
|
5
|
-
minLength: 1,
|
|
6
|
-
maxLength: TERMINAL_INTERACTION_LIMITS.maxIdentifierLength,
|
|
7
|
-
pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
8
|
-
};
|
|
9
|
-
const terminalInteractionAnswerBase = {
|
|
10
|
-
question_id: {
|
|
11
|
-
...terminalInteractionIdentifierSchema,
|
|
12
|
-
description: "Opaque semantic question_id from the current interaction_state projection."
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export const respondInteractionParameters = {
|
|
16
|
-
type: "object",
|
|
17
|
-
additionalProperties: false,
|
|
18
|
-
required: ["interaction_id", "answers"],
|
|
19
|
-
oneOf: [
|
|
20
|
-
{
|
|
21
|
-
required: ["turn_id"],
|
|
22
|
-
not: { required: ["watch_id"] }
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
required: ["watch_id"],
|
|
26
|
-
not: { required: ["turn_id"] }
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
properties: {
|
|
30
|
-
turn_id: {
|
|
31
|
-
...terminalInteractionIdentifierSchema,
|
|
32
|
-
description: "Exact authoritative Turn id from the current interaction_state projection."
|
|
33
|
-
},
|
|
34
|
-
watch_id: {
|
|
35
|
-
...terminalInteractionIdentifierSchema,
|
|
36
|
-
description: "Exact authoritative Terminal Watch id from the current interaction_state projection. Supply exactly one of turn_id or watch_id."
|
|
37
|
-
},
|
|
38
|
-
interaction_id: {
|
|
39
|
-
...terminalInteractionIdentifierSchema,
|
|
40
|
-
description: "Exact opaque interaction id from the current status response in this controller conversation."
|
|
41
|
-
},
|
|
42
|
-
answers: {
|
|
43
|
-
type: "array",
|
|
44
|
-
minItems: 1,
|
|
45
|
-
maxItems: TERMINAL_INTERACTION_LIMITS.maxQuestions,
|
|
46
|
-
description: "One typed current-step answer using only advertised opaque semantic ids. For single_select supply selected_option_ids; for free_text supply text; for confirm supply confirm. Supply no other answer field. Raw keys, indexes, rendered labels, fingerprints, versions, and terminal commands are not accepted.",
|
|
47
|
-
items: {
|
|
48
|
-
type: "object",
|
|
49
|
-
additionalProperties: false,
|
|
50
|
-
required: ["question_id", "response_kind"],
|
|
51
|
-
description: "Provider-portable answer envelope. AKK revalidates the exact discriminator-specific shape against the current authoritative interaction before sending terminal input.",
|
|
52
|
-
properties: {
|
|
53
|
-
...terminalInteractionAnswerBase,
|
|
54
|
-
response_kind: {
|
|
55
|
-
type: "string",
|
|
56
|
-
enum: ["single_select", "free_text", "confirm"],
|
|
57
|
-
description: "Exact response_kind advertised for the current question. multi_select remains manual-only and is not accepted here."
|
|
58
|
-
},
|
|
59
|
-
selected_option_ids: {
|
|
60
|
-
type: "array",
|
|
61
|
-
minItems: 1,
|
|
62
|
-
maxItems: 1,
|
|
63
|
-
uniqueItems: true,
|
|
64
|
-
items: terminalInteractionIdentifierSchema,
|
|
65
|
-
description: "Required only for single_select; exactly one advertised opaque option_id."
|
|
66
|
-
},
|
|
67
|
-
text: {
|
|
68
|
-
type: "string",
|
|
69
|
-
minLength: 1,
|
|
70
|
-
maxLength: TERMINAL_INTERACTION_LIMITS.maxTextAnswerLength,
|
|
71
|
-
pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f]+$",
|
|
72
|
-
description: "Required only for free_text; one non-empty line with no terminal control characters."
|
|
73
|
-
},
|
|
74
|
-
confirm: {
|
|
75
|
-
type: "boolean",
|
|
76
|
-
description: "Required only for confirm."
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
export const sendParameters = {
|
|
84
|
-
type: "object",
|
|
85
|
-
additionalProperties: false,
|
|
86
|
-
oneOf: [
|
|
87
|
-
{
|
|
88
|
-
required: ["request"],
|
|
89
|
-
not: { required: ["turn_id"] }
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
required: ["turn_id"],
|
|
93
|
-
not: {
|
|
94
|
-
anyOf: [
|
|
95
|
-
{ required: ["request"] },
|
|
96
|
-
{ required: ["session_id"] },
|
|
97
|
-
{ required: ["terminal_id"] },
|
|
98
|
-
{ required: ["type"] },
|
|
99
|
-
{ required: ["idleTimeoutMinutes"] },
|
|
100
|
-
{ required: ["agentTimeoutMinutes"] },
|
|
101
|
-
{ required: ["agentHardTimeoutMinutes"] }
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
not: { required: ["session_id", "terminal_id"] },
|
|
107
|
-
properties: {
|
|
108
|
-
turn_id: {
|
|
109
|
-
type: "string",
|
|
110
|
-
minLength: 1,
|
|
111
|
-
description: "Exact authoritative Turn id only from a current available_actions.retry_submission action. This retry form is exactly {turn_id}: the caller never supplies request text, terminal or Session target, timeout override, or callback route. AKK may use only the immutable original request, and only after revalidating the durable submission and live composer under lock."
|
|
112
|
-
},
|
|
113
|
-
session_id: {
|
|
114
|
-
type: "string",
|
|
115
|
-
minLength: 1,
|
|
116
|
-
description: "Strict session-scoped AKK id only when the current list action prefills it. This preserves that exact native context and never follows the pane after a human switches threads. A rollout-backed Codex Session is a continuing context label but is not a direct ordinary-send target; use that terminal row's follow-current selector action instead. Discovery selectors, terminal ids, and turn ids are never session_id destinations."
|
|
117
|
-
},
|
|
118
|
-
terminal_id: {
|
|
119
|
-
type: "string",
|
|
120
|
-
minLength: 1,
|
|
121
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
122
|
-
description: "Exact full terminal_id from the current terminal-scoped send action. Codex terminal_user_explicit identifies one exact live physical terminal/process with a scanned, non-blocked approval state; Composer visibility, stability, exactness, and parsed working activity are not eligibility vetoes. Physical fallback sends C-u once to replace the current Composer, injects this request, waits through the paste window, and dispatches Enter exactly once without a post-text Composer veto. Claude Code terminal_user_explicit remains exact-empty-only. Broken AKK state cannot veto the user; unmanaged delivery has no managed callback Turn, but AKK best-effort attaches an exact Terminal Watch callback before management release. Watch failure is reported without changing a successful Send. Once mutation begins, an uncertain result must not be retried automatically. Human discovery selectors are not structured-tool authority. Omit both target fields only when AKK should select the unique send-ready pane."
|
|
123
|
-
},
|
|
124
|
-
request: {
|
|
125
|
-
type: "string",
|
|
126
|
-
minLength: 1,
|
|
127
|
-
description: "Message for the coding agent. Each accepted ordinary send creates a new turn inside the selected session without clearing native agent context."
|
|
128
|
-
},
|
|
129
|
-
type: {
|
|
130
|
-
type: "string",
|
|
131
|
-
enum: ["task"],
|
|
132
|
-
description: "Ordinary sends always create a task turn. Use agent_knock_knock_respond for an answer to an in-flight turn."
|
|
133
|
-
},
|
|
134
|
-
idleTimeoutMinutes: {
|
|
135
|
-
type: "number",
|
|
136
|
-
description: "Minutes an idle or completed AKK Turn record is retained before controlled reconciliation closes it."
|
|
137
|
-
},
|
|
138
|
-
agentTimeoutMinutes: {
|
|
139
|
-
type: "number",
|
|
140
|
-
description: "Callback timeout in minutes; terminal bridge tasks treat it as an inactivity timeout."
|
|
141
|
-
},
|
|
142
|
-
agentHardTimeoutMinutes: {
|
|
143
|
-
type: "number",
|
|
144
|
-
exclusiveMinimum: 0,
|
|
145
|
-
description: "Maximum terminal monitor lifetime in minutes."
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
export const respondParameters = {
|
|
150
|
-
type: "object",
|
|
151
|
-
additionalProperties: false,
|
|
152
|
-
required: ["turn_id", "request"],
|
|
153
|
-
properties: {
|
|
154
|
-
turn_id: {
|
|
155
|
-
type: "string",
|
|
156
|
-
description: "Authoritative AKK turn id from a question or blocked callback, never a discovery selector or terminal id. A response continues this exact in-flight turn and does not create a new turn."
|
|
157
|
-
},
|
|
158
|
-
request: {
|
|
159
|
-
type: "string",
|
|
160
|
-
description: "Answer or decision for the coding agent's exact in-flight turn."
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
export const listParameters = {
|
|
165
|
-
type: "object",
|
|
166
|
-
additionalProperties: false,
|
|
167
|
-
properties: {
|
|
168
|
-
agent: {
|
|
169
|
-
type: "string",
|
|
170
|
-
enum: EXECUTOR_KINDS
|
|
171
|
-
},
|
|
172
|
-
status: {
|
|
173
|
-
type: "string"
|
|
174
|
-
},
|
|
175
|
-
all: {
|
|
176
|
-
type: "boolean"
|
|
177
|
-
},
|
|
178
|
-
noApprovalScan: {
|
|
179
|
-
type: "boolean",
|
|
180
|
-
description: "When true, list live terminals without scanning their panes for approval prompts."
|
|
181
|
-
},
|
|
182
|
-
terminalDebug: {
|
|
183
|
-
type: "boolean",
|
|
184
|
-
description: "When true, include terminal-provider discovery diagnostics for debugging Gateway environment issues."
|
|
185
|
-
},
|
|
186
|
-
idleTimeoutMinutes: {
|
|
187
|
-
type: "number"
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
export const watchParameters = {
|
|
192
|
-
type: "object",
|
|
193
|
-
additionalProperties: false,
|
|
194
|
-
required: ["terminal_id"],
|
|
195
|
-
properties: {
|
|
196
|
-
terminal_id: {
|
|
197
|
-
type: "string",
|
|
198
|
-
minLength: 1,
|
|
199
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
200
|
-
description: "Exact full terminal_id selected by the user, normally copied from the current terminal row. Watch is read-only: AKK prefers an exact task anchor and otherwise uses a warning-bearing best-effort terminal-activity fallback."
|
|
201
|
-
},
|
|
202
|
-
hardTimeoutMinutes: {
|
|
203
|
-
type: "number",
|
|
204
|
-
exclusiveMinimum: 0,
|
|
205
|
-
description: "Optional maximum lifetime for observing this exact terminal."
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
export const unwatchParameters = {
|
|
210
|
-
type: "object",
|
|
211
|
-
additionalProperties: false,
|
|
212
|
-
required: ["watch_id"],
|
|
213
|
-
properties: {
|
|
214
|
-
watch_id: {
|
|
215
|
-
type: "string",
|
|
216
|
-
minLength: 1,
|
|
217
|
-
description: "Authoritative Terminal Watch id returned by watch or prefilled by list/status."
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
export const listResumableThreadsParameters = {
|
|
222
|
-
type: "object",
|
|
223
|
-
additionalProperties: false,
|
|
224
|
-
required: ["terminal_id"],
|
|
225
|
-
properties: {
|
|
226
|
-
terminal_id: {
|
|
227
|
-
type: "string",
|
|
228
|
-
minLength: 1,
|
|
229
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
230
|
-
description: "Exact full terminal_id from the selected terminal row's current available_actions. Do not use a short ref, session id, turn id, or constructed selector."
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
export const nativeInspectParameters = {
|
|
235
|
-
type: "object",
|
|
236
|
-
additionalProperties: false,
|
|
237
|
-
required: ["terminal_id", "inspection"],
|
|
238
|
-
properties: {
|
|
239
|
-
terminal_id: {
|
|
240
|
-
type: "string",
|
|
241
|
-
minLength: 1,
|
|
242
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
243
|
-
description: "Exact full terminal_id from the current native_inspect action. Never use a short ref, Session id, Turn id, or constructed selector. AKK refreshes and revalidates the binding internally."
|
|
244
|
-
},
|
|
245
|
-
inspection: {
|
|
246
|
-
type: "string",
|
|
247
|
-
enum: ["status"],
|
|
248
|
-
description: "Closed adapter-owned inspection kind. Codex 0.146.0/0.146.1/0.147.0/0.148.0/0.149.1/0.150.1/0.151.0/0.153.0/0.153.4/0.154.0 and Claude Code 2.1.218/2.1.226/2.1.237/2.1.251/2.1.259/2.1.263/2.1.266/2.1.267 are regression-tested; another complete x.y.z version remains callable through the generic runtime profile with a compatibility warning. This is never an arbitrary native command string."
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
export const identifyForegroundParameters = {
|
|
253
|
-
type: "object",
|
|
254
|
-
additionalProperties: false,
|
|
255
|
-
required: ["terminal_id"],
|
|
256
|
-
properties: {
|
|
257
|
-
terminal_id: {
|
|
258
|
-
type: "string",
|
|
259
|
-
minLength: 1,
|
|
260
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
261
|
-
description: "Exact full Codex terminal_id from the current identify_foreground action. AKK sends the closed /status probe exactly once under the terminal lock and returns only a short-lived diagnostic foreground observation. It does not bind a Session or authorize later input."
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
export const identifyAndSendParameters = {
|
|
266
|
-
type: "object",
|
|
267
|
-
additionalProperties: false,
|
|
268
|
-
required: ["terminal_id", "request"],
|
|
269
|
-
properties: {
|
|
270
|
-
terminal_id: {
|
|
271
|
-
type: "string",
|
|
272
|
-
minLength: 1,
|
|
273
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
274
|
-
description: "Exact full Codex terminal_id from the current identify_and_send action. AKK keeps one terminal lock from the explicit /status foreground probe through the single task dispatch; final durable identity still comes only from exact request acceptance."
|
|
275
|
-
},
|
|
276
|
-
request: {
|
|
277
|
-
type: "string",
|
|
278
|
-
minLength: 1,
|
|
279
|
-
description: "Task text sent exactly once after the foreground probe remains current."
|
|
280
|
-
},
|
|
281
|
-
idleTimeoutMinutes: {
|
|
282
|
-
type: "number",
|
|
283
|
-
description: "Minutes a completed or idle AKK Turn record is retained before controlled reconciliation closes it."
|
|
284
|
-
},
|
|
285
|
-
agentTimeoutMinutes: {
|
|
286
|
-
type: "number",
|
|
287
|
-
description: "Callback inactivity timeout in minutes."
|
|
288
|
-
},
|
|
289
|
-
agentHardTimeoutMinutes: {
|
|
290
|
-
type: "number",
|
|
291
|
-
exclusiveMinimum: 0,
|
|
292
|
-
description: "Maximum terminal monitor lifetime in minutes."
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
export const newThreadParameters = {
|
|
297
|
-
type: "object",
|
|
298
|
-
additionalProperties: false,
|
|
299
|
-
required: ["terminal_id"],
|
|
300
|
-
properties: {
|
|
301
|
-
terminal_id: {
|
|
302
|
-
type: "string",
|
|
303
|
-
minLength: 1,
|
|
304
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
305
|
-
description: "Exact full terminal_id from the current new_thread action. AKK refreshes and revalidates the lifecycle binding internally."
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
export const reconcileBindingParameters = {
|
|
310
|
-
type: "object",
|
|
311
|
-
additionalProperties: false,
|
|
312
|
-
required: [
|
|
313
|
-
"terminal_id",
|
|
314
|
-
"conflicting_session_id"
|
|
315
|
-
],
|
|
316
|
-
properties: {
|
|
317
|
-
terminal_id: {
|
|
318
|
-
type: "string",
|
|
319
|
-
minLength: 1,
|
|
320
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
321
|
-
description: "Exact full terminal_id from the current reconcile_binding action."
|
|
322
|
-
},
|
|
323
|
-
conflicting_session_id: {
|
|
324
|
-
type: "string",
|
|
325
|
-
minLength: 1,
|
|
326
|
-
description: "Exact conflicting managed Session id prefilled by AKK list. Never choose or construct one independently."
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
export const resumeThreadParameters = {
|
|
331
|
-
type: "object",
|
|
332
|
-
additionalProperties: false,
|
|
333
|
-
required: [
|
|
334
|
-
"terminal_id",
|
|
335
|
-
"native_thread_id"
|
|
336
|
-
],
|
|
337
|
-
properties: {
|
|
338
|
-
terminal_id: {
|
|
339
|
-
type: "string",
|
|
340
|
-
minLength: 1,
|
|
341
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
342
|
-
description: "Exact full terminal_id passed to agent_knock_knock_list_resumable_threads."
|
|
343
|
-
},
|
|
344
|
-
native_thread_id: {
|
|
345
|
-
type: "string",
|
|
346
|
-
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
347
|
-
description: "Complete native thread UUID from a resumable=true row returned for this exact terminal. Never truncate, guess, or select an unavailable row."
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
export const renewParameters = {
|
|
352
|
-
type: "object",
|
|
353
|
-
additionalProperties: false,
|
|
354
|
-
not: { required: ["turn_id", "conversation_id"] },
|
|
355
|
-
anyOf: [
|
|
356
|
-
{ required: ["turn_id"] },
|
|
357
|
-
{ required: ["conversation_id"] }
|
|
358
|
-
],
|
|
359
|
-
properties: {
|
|
360
|
-
turn_id: {
|
|
361
|
-
type: "string",
|
|
362
|
-
description: "Authoritative AKK turn id whose monitoring should be renewed."
|
|
363
|
-
},
|
|
364
|
-
conversation_id: {
|
|
365
|
-
type: "string",
|
|
366
|
-
deprecated: true,
|
|
367
|
-
description: "Deprecated compatibility alias for turn_id."
|
|
368
|
-
},
|
|
369
|
-
minutes: {
|
|
370
|
-
type: "number",
|
|
371
|
-
exclusiveMinimum: 0,
|
|
372
|
-
description: "New terminal inactivity timeout in minutes."
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
export const retryCallbackParameters = {
|
|
377
|
-
type: "object",
|
|
378
|
-
additionalProperties: false,
|
|
379
|
-
not: { required: ["turn_id", "conversation_id"] },
|
|
380
|
-
anyOf: [
|
|
381
|
-
{ required: ["turn_id"] },
|
|
382
|
-
{ required: ["conversation_id"] }
|
|
383
|
-
],
|
|
384
|
-
properties: {
|
|
385
|
-
turn_id: {
|
|
386
|
-
type: "string",
|
|
387
|
-
description: "Authoritative AKK turn id whose persisted callback should be retried."
|
|
388
|
-
},
|
|
389
|
-
conversation_id: {
|
|
390
|
-
type: "string",
|
|
391
|
-
deprecated: true,
|
|
392
|
-
description: "Deprecated compatibility alias for turn_id."
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
export const statusParameters = {
|
|
397
|
-
type: "object",
|
|
398
|
-
additionalProperties: false,
|
|
399
|
-
not: {
|
|
400
|
-
anyOf: [
|
|
401
|
-
{ required: ["turn_id", "conversation_id"] },
|
|
402
|
-
{ required: ["turn_id", "watch_id"] },
|
|
403
|
-
{ required: ["conversation_id", "watch_id"] }
|
|
404
|
-
]
|
|
405
|
-
},
|
|
406
|
-
anyOf: [
|
|
407
|
-
{ required: ["turn_id"] },
|
|
408
|
-
{ required: ["conversation_id"] },
|
|
409
|
-
{ required: ["watch_id"] }
|
|
410
|
-
],
|
|
411
|
-
properties: {
|
|
412
|
-
turn_id: {
|
|
413
|
-
type: "string",
|
|
414
|
-
description: "Authoritative AKK turn id to inspect."
|
|
415
|
-
},
|
|
416
|
-
conversation_id: {
|
|
417
|
-
type: "string",
|
|
418
|
-
deprecated: true,
|
|
419
|
-
description: "Deprecated legacy Turn alias, or the exact raw-terminal selector prefilled by that terminal row's available status action. Managed Turn status must use turn_id; never construct or guess a raw-terminal selector."
|
|
420
|
-
},
|
|
421
|
-
watch_id: {
|
|
422
|
-
type: "string",
|
|
423
|
-
minLength: 1,
|
|
424
|
-
description: "Authoritative Terminal Watch id prefilled by a current watch row. This inspects externally started work and is mutually exclusive with Turn targets."
|
|
425
|
-
},
|
|
426
|
-
idleTimeoutMinutes: {
|
|
427
|
-
type: "number"
|
|
428
|
-
},
|
|
429
|
-
trace: {
|
|
430
|
-
type: "boolean",
|
|
431
|
-
description: "Include a safe executor trace summary with tool calls, permission requests, monitor events, and redacted thinking markers."
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
export const cancelParameters = {
|
|
436
|
-
type: "object",
|
|
437
|
-
additionalProperties: false,
|
|
438
|
-
not: { required: ["turn_id", "conversation_id"] },
|
|
439
|
-
anyOf: [
|
|
440
|
-
{ required: ["turn_id"] },
|
|
441
|
-
{ required: ["conversation_id"] }
|
|
442
|
-
],
|
|
443
|
-
properties: {
|
|
444
|
-
turn_id: {
|
|
445
|
-
type: "string",
|
|
446
|
-
description: "Authoritative AKK turn id to interrupt."
|
|
447
|
-
},
|
|
448
|
-
conversation_id: {
|
|
449
|
-
type: "string",
|
|
450
|
-
deprecated: true,
|
|
451
|
-
description: "Deprecated legacy Turn alias, or the exact raw-terminal selector prefilled by that terminal row's available cancel action. Managed Turn cancellation must use turn_id; never construct or guess a raw-terminal selector."
|
|
452
|
-
},
|
|
453
|
-
idleTimeoutMinutes: {
|
|
454
|
-
type: "number"
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
export const closeParameters = {
|
|
459
|
-
type: "object",
|
|
460
|
-
additionalProperties: false,
|
|
461
|
-
not: {
|
|
462
|
-
anyOf: [
|
|
463
|
-
{ required: ["turn_id", "conversation_id"] },
|
|
464
|
-
{ required: ["expected_message_id", "expected_transition_id"] }
|
|
465
|
-
]
|
|
466
|
-
},
|
|
467
|
-
anyOf: [
|
|
468
|
-
{ required: ["turn_id"] },
|
|
469
|
-
{ required: ["conversation_id"] }
|
|
470
|
-
],
|
|
471
|
-
properties: {
|
|
472
|
-
turn_id: {
|
|
473
|
-
type: "string",
|
|
474
|
-
description: "Authoritative AKK turn id whose managed record should be closed."
|
|
475
|
-
},
|
|
476
|
-
conversation_id: {
|
|
477
|
-
type: "string",
|
|
478
|
-
deprecated: true,
|
|
479
|
-
description: "Deprecated legacy Turn alias, or an exact list-prefilled raw-terminal/orphan recovery selector. Managed Turn close must use turn_id; never construct or guess a raw-terminal selector."
|
|
480
|
-
},
|
|
481
|
-
reason: {
|
|
482
|
-
type: "string"
|
|
483
|
-
},
|
|
484
|
-
expected_message_id: {
|
|
485
|
-
type: "string",
|
|
486
|
-
description: "Required only to clear an orphaned terminal dispatch shown by AKK list. Must exactly match that entry's current message_id and must not be combined with expected_transition_id."
|
|
487
|
-
},
|
|
488
|
-
expected_transition_id: {
|
|
489
|
-
type: "string",
|
|
490
|
-
description: "Required only to recover an unresolved native-thread lifecycle transition shown by AKK list. Must exactly match that entry's current transition_id and must not be combined with expected_message_id."
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
export const approveParameters = {
|
|
495
|
-
type: "object",
|
|
496
|
-
additionalProperties: false,
|
|
497
|
-
not: { required: ["turn_id", "terminal_id"] },
|
|
498
|
-
anyOf: [
|
|
499
|
-
{ required: ["turn_id"] },
|
|
500
|
-
{ required: ["terminal_id"] }
|
|
501
|
-
],
|
|
502
|
-
properties: {
|
|
503
|
-
decision: {
|
|
504
|
-
type: "string",
|
|
505
|
-
enum: ["approve_once", "reject"],
|
|
506
|
-
description: "Closed semantic decision from the current AKK status offer. Defaults to approve_once. Raw keys, menu indexes, and rendered labels are never accepted."
|
|
507
|
-
},
|
|
508
|
-
turn_id: {
|
|
509
|
-
type: "string",
|
|
510
|
-
description: "Authoritative AKK turn id containing the approval prompt."
|
|
511
|
-
},
|
|
512
|
-
terminal_id: {
|
|
513
|
-
type: "string",
|
|
514
|
-
minLength: 1,
|
|
515
|
-
pattern: "^terminal:v[0-9]+:\\S+$",
|
|
516
|
-
description: "Exact full terminal_id from the current terminal-scoped approval action. Managed Turn approval must use turn_id. AKK binds the user's reviewed prompt and revalidates terminal authority internally."
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
};
|
|
1
|
+
/** @deprecated OpenClaw compatibility facade; use semantic-tool-schemas. */
|
|
2
|
+
export * from "./semantic-tool-schemas.js";
|
|
520
3
|
//# sourceMappingURL=openclaw-plugin-schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openclaw-plugin-schemas.js","sourceRoot":"","sources":["../../src/openclaw-plugin-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MACpC,oCAAoC,CAAC;AAEvC,MAAM,mCAAmC,GAAG;IAC1C,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,2BAA2B,CAAC,mBAAmB;IAC1D,OAAO,EAAE,+BAA+B;CACzC,CAAC;AAEF,MAAM,6BAA6B,GAAG;IACpC,WAAW,EAAE;QACX,GAAG,mCAAmC;QACtC,WAAW,EACT,4EAA4E;KAC/E;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,gBAA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"version":3,"file":"openclaw-plugin-schemas.js","sourceRoot":"","sources":["../../src/openclaw-plugin-schemas.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { createHostMonitorReconciliationService } from "./host-monitor-reconciliation.js";
|
|
2
|
+
/** OpenClaw adapter name retained as a compatibility boundary. */
|
|
1
3
|
export declare const MONITOR_SUPERVISOR_INTERVAL_MS = 5000;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
stop(): Promise<void>;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
4
|
+
/** OpenClaw adapter for the shared Host lifecycle implementation. */
|
|
5
|
+
export declare const createMonitorReconciliationService: typeof createHostMonitorReconciliationService;
|
|
@@ -1,95 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const
|
|
6
|
-
const MANAGED_MONITOR_PHASE = "managed_turn_monitors";
|
|
7
|
-
const TERMINAL_WATCH_PHASE = "terminal_watches";
|
|
8
|
-
const scheduleUnref = (callback, delayMs) => {
|
|
9
|
-
const timer = setTimeout(callback, delayMs);
|
|
10
|
-
timer.unref?.();
|
|
11
|
-
return () => clearTimeout(timer);
|
|
12
|
-
};
|
|
13
|
-
export function createMonitorReconciliationService(api, configuredIntervalMs) {
|
|
14
|
-
const reconciliationArgs = (reason) => {
|
|
15
|
-
const config = isRecord(api.pluginConfig) ? api.pluginConfig : {};
|
|
16
|
-
const args = ["reconcile-monitors", "--reason", reason];
|
|
17
|
-
if (reason === "monitor_supervision") {
|
|
18
|
-
args.push("--terminal-monitors-only");
|
|
19
|
-
}
|
|
20
|
-
pushOptional(args, "--store-dir", resolvePluginStoreDir(config));
|
|
21
|
-
return args;
|
|
22
|
-
};
|
|
23
|
-
const watchReconciliationArgs = () => {
|
|
24
|
-
const config = isRecord(api.pluginConfig) ? api.pluginConfig : {};
|
|
25
|
-
const args = ["reconcile-watches"];
|
|
26
|
-
pushOptional(args, "--store-dir", resolvePluginStoreDir(config));
|
|
27
|
-
return args;
|
|
28
|
-
};
|
|
29
|
-
const report = (result, reason) => {
|
|
30
|
-
if (reason === "startup_reconciliation" ||
|
|
31
|
-
Number(result.launched ?? 0) > 0 ||
|
|
32
|
-
Number(result.errors ?? 0) > 0) {
|
|
33
|
-
const label = reason === "startup_reconciliation"
|
|
34
|
-
? "monitor reconciliation"
|
|
35
|
-
: `monitor ${reason}`;
|
|
36
|
-
api.logger.info?.(`agent-knock-knock ${label}: ` +
|
|
37
|
-
`checked=${result.checked ?? 0} launched=${result.launched ?? 0} ` +
|
|
38
|
-
`already_running=${result.already_running ?? 0} skipped=${result.skipped ?? 0} ` +
|
|
39
|
-
`errors=${result.errors ?? 0}`);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const reportWatches = (result, reason) => {
|
|
43
|
-
if (reason === "startup_reconciliation" ||
|
|
44
|
-
Number(result.changed ?? 0) > 0 ||
|
|
45
|
-
Number(result.callbacks_delivered ?? 0) > 0 ||
|
|
46
|
-
Number(result.errors ?? 0) > 0) {
|
|
47
|
-
api.logger.info?.(`agent-knock-knock Terminal Watch ${reason}: ` +
|
|
48
|
-
`checked=${result.checked ?? 0} changed=${result.changed ?? 0} ` +
|
|
49
|
-
`callbacks_delivered=${result.callbacks_delivered ?? 0} ` +
|
|
50
|
-
`errors=${result.errors ?? 0}`);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const managedReason = (reason) => reason === "startup" ? "startup_reconciliation" : "monitor_supervision";
|
|
54
|
-
const watchReason = (reason) => reason === "startup" ? "startup_reconciliation" : "watch_supervision";
|
|
55
|
-
const onPhaseError = ({ phase, reason, error }) => {
|
|
56
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
57
|
-
if (phase === MANAGED_MONITOR_PHASE) {
|
|
58
|
-
api.logger.warn?.(reason === "startup"
|
|
59
|
-
? `agent-knock-knock monitor reconciliation skipped after startup error: ${message}`
|
|
60
|
-
: `agent-knock-knock monitor supervision deferred after error: ${message}`);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
api.logger.warn?.(reason === "startup"
|
|
64
|
-
? `agent-knock-knock Terminal Watch reconciliation skipped after startup error: ${message}`
|
|
65
|
-
: `agent-knock-knock Terminal Watch supervision deferred after error: ${message}`);
|
|
66
|
-
};
|
|
67
|
-
const lifecycle = createHostLifecycleService({
|
|
68
|
-
intervalMs: configuredIntervalMs,
|
|
69
|
-
schedule: scheduleUnref,
|
|
70
|
-
onPhaseError,
|
|
71
|
-
phases: [
|
|
72
|
-
{
|
|
73
|
-
name: MANAGED_MONITOR_PHASE,
|
|
74
|
-
async run({ reason }) {
|
|
75
|
-
const reconciliationReason = managedReason(reason);
|
|
76
|
-
const result = await runCliAsync(api, reconciliationArgs(reconciliationReason));
|
|
77
|
-
report(result, reconciliationReason);
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: TERMINAL_WATCH_PHASE,
|
|
82
|
-
async run({ reason }) {
|
|
83
|
-
const reconciliationReason = watchReason(reason);
|
|
84
|
-
const result = await runCliAsync(api, watchReconciliationArgs());
|
|
85
|
-
reportWatches(result, reconciliationReason);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
});
|
|
90
|
-
return {
|
|
91
|
-
id: "agent-knock-knock-monitor-reconciliation",
|
|
92
|
-
...lifecycle
|
|
93
|
-
};
|
|
94
|
-
}
|
|
1
|
+
import { createHostMonitorReconciliationService, HOST_MONITOR_RECONCILIATION_INTERVAL_MS } from "./host-monitor-reconciliation.js";
|
|
2
|
+
/** OpenClaw adapter name retained as a compatibility boundary. */
|
|
3
|
+
export const MONITOR_SUPERVISOR_INTERVAL_MS = HOST_MONITOR_RECONCILIATION_INTERVAL_MS;
|
|
4
|
+
/** OpenClaw adapter for the shared Host lifecycle implementation. */
|
|
5
|
+
export const createMonitorReconciliationService = createHostMonitorReconciliationService;
|
|
95
6
|
//# sourceMappingURL=openclaw-plugin-supervisor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openclaw-plugin-supervisor.js","sourceRoot":"","sources":["../../src/openclaw-plugin-supervisor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"openclaw-plugin-supervisor.js","sourceRoot":"","sources":["../../src/openclaw-plugin-supervisor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,uCAAuC,EACxC,MAAM,kCAAkC,CAAC;AAE1C,kEAAkE;AAClE,MAAM,CAAC,MAAM,8BAA8B,GACzC,uCAAuC,CAAC;AAE1C,qEAAqE;AACrE,MAAM,CAAC,MAAM,kCAAkC,GAC7C,sCAAsC,CAAC"}
|