@scotthuang/agent-knock-knock 0.13.3 → 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 +14 -0
- package/README.md +13 -5
- 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/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/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 +2 -172
- 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/native-thread-lifecycle-cli-adapter.js +116 -60
- 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 -2660
- package/dist/src/openclaw-plugin-command-adapter.js.map +1 -1
- package/dist/src/openclaw-plugin-helpers.d.ts +2 -148
- package/dist/src/openclaw-plugin-helpers.js +2 -1844
- package/dist/src/openclaw-plugin-helpers.js.map +1 -1
- package/dist/src/openclaw-plugin-schemas.d.ts +2 -563
- package/dist/src/openclaw-plugin-schemas.js +2 -572
- 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 +2 -98
- package/dist/src/terminal-action-projection.js +13 -215
- package/dist/src/terminal-action-projection.js.map +1 -1
- package/dist/src/terminal-agent-bridge.d.ts +14 -340
- package/dist/src/terminal-agent-bridge.js +155 -3226
- 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-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 +241 -1946
- 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 +11 -11
- package/dist/src/terminal-list-renderer.js +168 -119
- 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 +37 -18
- package/dist/src/terminal-model-control.js +285 -194
- package/dist/src/terminal-model-control.js.map +1 -1
- 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 -2
- 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/package.json +7 -2
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +1 -1
|
@@ -1,99 +1,15 @@
|
|
|
1
1
|
import type { ExecutorKind } from "./executors.js";
|
|
2
|
-
import { type ActiveTerminalProcess, type TerminalAgentAdapter, type TerminalAgentAdapterCapabilities, type TerminalAgentAdapterRegistry, type TerminalApprovalDecision, type TerminalCompletionEvidence, type TerminalControlRef, type TerminalDurableCompletionRequest, type
|
|
2
|
+
import { type ActiveTerminalProcess, type TerminalAgentAdapter, type TerminalAgentAdapterCapabilities, type TerminalAgentAdapterRegistry, type TerminalApprovalDecision, type TerminalCompletionEvidence, type TerminalControlRef, type TerminalDurableCompletionRequest, type TerminalNativeInspectionObservation, type TerminalNativeInspectionObservationRequest, type TerminalNativeInspectionPlan, type TerminalProcessSnapshot, type TerminalRuntimeIdentity, type TerminalScreenInspection } from "./terminal-agent-adapter.js";
|
|
3
3
|
import { type TerminalDiscoveryDiagnosticLog, type TerminalControlProvider } from "./terminal-control-provider.js";
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
import type { NativeQuestionnaireActionPlan, NativeQuestionnaireInspection } from "./terminal-questionnaire-adapter.js";
|
|
4
|
+
import { type TerminalInteractionAnyProjection } from "./terminal-interaction-protocol.js";
|
|
5
|
+
import { type TerminalInteractionResponseExecution, type TerminalInteractionResponseInput, type TerminalInteractionResponseOptions } from "./terminal-interaction-response-bridge.js";
|
|
7
6
|
import { type TerminalModelCatalog, type TerminalModelControlPlan, type TerminalModelControlPorts, type TerminalModelControlRepairResult, type TerminalModelControlResidualObservation, type TerminalModelSwitchRequest, type TerminalModelSwitchResult } from "./terminal-model-control.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Text is already in the terminal composer, but this bridge invocation proved
|
|
17
|
-
* that it never called the Enter transport boundary.
|
|
18
|
-
*
|
|
19
|
-
* Callers may persist this as narrow recovery evidence. It says nothing about
|
|
20
|
-
* whether the draft remains exact or whether a later human action submitted
|
|
21
|
-
* it; those facts must be re-observed under the terminal lock.
|
|
22
|
-
*/
|
|
23
|
-
export declare class TerminalEnterDispatchNotAttemptedError extends Error {
|
|
24
|
-
readonly code = "AKK_TERMINAL_ENTER_DISPATCH_NOT_ATTEMPTED";
|
|
25
|
-
readonly stage = "enter_not_attempted";
|
|
26
|
-
constructor(message: string, options?: {
|
|
27
|
-
cause?: unknown;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The caller's one-shot Enter reservation was invoked, so this recovery
|
|
32
|
-
* attempt is permanently consumed even though C-m was not proven dispatched.
|
|
33
|
-
*/
|
|
34
|
-
export declare class TerminalEnterDispatchReservedError extends Error {
|
|
35
|
-
readonly code = "AKK_TERMINAL_ENTER_DISPATCH_RESERVED";
|
|
36
|
-
readonly stage = "enter_reserved";
|
|
37
|
-
readonly doNotRetry = true;
|
|
38
|
-
constructor(message: string, options?: {
|
|
39
|
-
cause?: unknown;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
export type NativeInspectionSubmissionStage = "not_started" | "text_injected" | "enter_uncertain";
|
|
43
|
-
/** Machine-readable reason for a closed native-inspection submission failure. */
|
|
44
|
-
export type NativeInspectionSubmissionDiagnostic = "unsupported_profile" | "capability_unavailable" | "identity_unverified" | "composer_not_ready" | "viewport_too_narrow" | "viewport_unavailable" | "text_delivery_unproven" | "composer_viewport_truncated" | "composer_not_exact" | "composer_drift" | "evidence_unproven" | "enter_uncertain";
|
|
45
|
-
/**
|
|
46
|
-
* A fail-closed native-inspection submission result.
|
|
47
|
-
*
|
|
48
|
-
* Only `not_started` proves that a caller may safely retry. Once text has
|
|
49
|
-
* reached the composer, or Enter has been attempted, automated retries could
|
|
50
|
-
* duplicate input or execute a different command after terminal drift.
|
|
51
|
-
*/
|
|
52
|
-
export declare class NativeInspectionSubmissionError extends Error {
|
|
53
|
-
readonly stage: NativeInspectionSubmissionStage;
|
|
54
|
-
readonly code = "AKK_NATIVE_INSPECTION_SUBMISSION_FAILED";
|
|
55
|
-
readonly doNotRetry: boolean;
|
|
56
|
-
constructor(stage: NativeInspectionSubmissionStage, message: string, options?: {
|
|
57
|
-
cause?: unknown;
|
|
58
|
-
diagnostic?: NativeInspectionSubmissionDiagnostic;
|
|
59
|
-
});
|
|
60
|
-
readonly diagnostic?: NativeInspectionSubmissionDiagnostic;
|
|
61
|
-
}
|
|
62
|
-
/** A verified modal could not be dismissed across one exact key attempt. */
|
|
63
|
-
export declare class NativeInspectionDismissalError extends Error {
|
|
64
|
-
readonly code = "AKK_NATIVE_INSPECTION_DISMISSAL_FAILED";
|
|
65
|
-
readonly doNotRetry = true;
|
|
66
|
-
constructor(message: string, options?: {
|
|
67
|
-
cause?: unknown;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
export type TerminalInteractionReservedStage = "reservation_uncertain" | "text_uncertain" | "key_uncertain";
|
|
71
|
-
/**
|
|
72
|
-
* A response reservation or terminal input may already have happened. The
|
|
73
|
-
* same interaction must never be dispatched automatically after this error.
|
|
74
|
-
*/
|
|
75
|
-
export declare class TerminalInteractionDispatchReservedError extends Error {
|
|
76
|
-
readonly stage: TerminalInteractionReservedStage;
|
|
77
|
-
readonly code = "AKK_TERMINAL_INTERACTION_DISPATCH_RESERVED";
|
|
78
|
-
readonly doNotRetry = true;
|
|
79
|
-
constructor(stage: TerminalInteractionReservedStage, message: string, options?: {
|
|
80
|
-
cause?: unknown;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* A durable response reservation exists, but the bridge proved that no
|
|
85
|
-
* terminal text or key delivery was attempted. The caller must discard the
|
|
86
|
-
* one-shot offer and obtain a fresh status projection before trying again.
|
|
87
|
-
*/
|
|
88
|
-
export declare class TerminalInteractionInputNotStartedError extends Error {
|
|
89
|
-
readonly code = "AKK_TERMINAL_INTERACTION_INPUT_NOT_STARTED";
|
|
90
|
-
readonly stage = "input_not_started";
|
|
91
|
-
readonly doNotRetry = true;
|
|
92
|
-
readonly requiresFreshOffer = true;
|
|
93
|
-
constructor(message: string, options?: {
|
|
94
|
-
cause?: unknown;
|
|
95
|
-
});
|
|
96
|
-
}
|
|
7
|
+
import { type TerminalCodexStatusProbeResult, type TerminalNativeInspectionDismissalOptions, type TerminalNativeInspectionDismissalResult, type TerminalNativeInspectionOptions, type TerminalNativeInspectionResult } from "./terminal-native-inspection-bridge.js";
|
|
8
|
+
import { type TerminalCodexComposerObservation, type TerminalSendOptions, type TerminalSendResult } from "./terminal-text-submission-bridge.js";
|
|
9
|
+
export { TerminalEnterDispatchNotAttemptedError, TerminalEnterDispatchReservedError, TerminalInputNotStartedError, type TerminalCodexComposerObservation, type TerminalSendBoundaryContext, type TerminalSendOptions, type TerminalSendResult, type TerminalTransportStage, type TerminalTransportStageEvent } from "./terminal-text-submission-bridge.js";
|
|
10
|
+
export { captureTerminalInteractionRuntimeOffer, TerminalInteractionDispatchReservedError, TerminalInteractionInputNotStartedError, type TerminalInteractionAuthorizationContext, type TerminalInteractionAuthorizationDecision, type TerminalInteractionBeforeDispatchContext, type TerminalInteractionReservedStage, type TerminalInteractionResponseExecution, type TerminalInteractionRuntimeOffer } from "./terminal-interaction-response-bridge.js";
|
|
11
|
+
export { inspectCodexAsyncQuestionInputMode, type CodexAsyncQuestionInputMode } from "./terminal-composer-classifier.js";
|
|
12
|
+
export { exactCodexReadyStyledComposerCapture, isExactClaudeIdleComposer, isExactClaudeNativeInspectionIdleComposer, NativeInspectionDismissalError, NativeInspectionSubmissionError, type NativeInspectionSubmissionDiagnostic, type NativeInspectionSubmissionStage, type TerminalCodexStatusProbeResult, type TerminalNativeInspectionBeforeDismissContext, type TerminalNativeInspectionBeforeEnterContext, type TerminalNativeInspectionDismissalOptions, type TerminalNativeInspectionDismissalResult, type TerminalNativeInspectionMaterializationEvidence, type TerminalNativeInspectionMaterializationKind, type TerminalNativeInspectionOptions, type TerminalNativeInspectionResult } from "./terminal-native-inspection-bridge.js";
|
|
97
13
|
export type TerminalActivityState = "awaiting_approval" | "working" | "idle" | "unknown";
|
|
98
14
|
export type TerminalNativeIdentityState = "resolved" | "ambiguous" | "verified_absent" | "unavailable";
|
|
99
15
|
export type TerminalDurableActivityState = "working" | "idle" | "unknown";
|
|
@@ -162,52 +78,6 @@ export interface TerminalBridgeStatus {
|
|
|
162
78
|
interaction_surface_id?: string;
|
|
163
79
|
capability_limitation?: string;
|
|
164
80
|
}
|
|
165
|
-
export interface TerminalInteractionAuthorizationContext {
|
|
166
|
-
agent: ExecutorKind;
|
|
167
|
-
terminalControl: TerminalControlRef;
|
|
168
|
-
fingerprint: string;
|
|
169
|
-
projection: TerminalInteractionAnyProjection;
|
|
170
|
-
response: TerminalInteractionResponseInput;
|
|
171
|
-
runtime?: TerminalRuntimeIdentity;
|
|
172
|
-
}
|
|
173
|
-
export interface TerminalInteractionAuthorizationDecision {
|
|
174
|
-
approved: boolean;
|
|
175
|
-
reason?: string;
|
|
176
|
-
}
|
|
177
|
-
export interface TerminalInteractionBeforeDispatchContext {
|
|
178
|
-
agent: ExecutorKind;
|
|
179
|
-
terminalControl: TerminalControlRef;
|
|
180
|
-
fingerprint: string;
|
|
181
|
-
projection: TerminalInteractionAnyProjection;
|
|
182
|
-
response: TerminalInteractionResponseInput;
|
|
183
|
-
runtime?: TerminalRuntimeIdentity;
|
|
184
|
-
}
|
|
185
|
-
export interface TerminalInteractionResponseExecution {
|
|
186
|
-
responded: boolean;
|
|
187
|
-
blocked: boolean;
|
|
188
|
-
reason?: string;
|
|
189
|
-
interactionId: string;
|
|
190
|
-
questionId?: string;
|
|
191
|
-
responseKind?: TerminalInteractionAnswer["response_kind"];
|
|
192
|
-
outcome?: "submitted_or_advanced" | "custom_text_opened" | "confirmed" | "cancelled";
|
|
193
|
-
}
|
|
194
|
-
/** Input is validated against the freshly recaptured v1/v2 projection. */
|
|
195
|
-
type TerminalInteractionResponseInput = {
|
|
196
|
-
readonly interaction_id: string;
|
|
197
|
-
readonly turn_id?: string;
|
|
198
|
-
readonly subject?: TerminalInteractionSubject;
|
|
199
|
-
readonly answers: readonly TerminalInteractionAnswer[];
|
|
200
|
-
};
|
|
201
|
-
export interface TerminalInteractionRuntimeOffer {
|
|
202
|
-
readonly projection: TerminalInteractionAnyProjection;
|
|
203
|
-
readonly promptFingerprint: string;
|
|
204
|
-
readonly surfaceId: string;
|
|
205
|
-
readonly actionPlan: NativeQuestionnaireActionPlan;
|
|
206
|
-
readonly nativeInspection: Exclude<NativeQuestionnaireInspection, {
|
|
207
|
-
status: "none";
|
|
208
|
-
}>;
|
|
209
|
-
}
|
|
210
|
-
type TerminalInteractionBridgeOffer = TerminalInteractionRuntimeOffer;
|
|
211
81
|
export interface ResolvedTerminalConversation {
|
|
212
82
|
conversationId: string;
|
|
213
83
|
agent: ExecutorKind;
|
|
@@ -246,55 +116,6 @@ export interface TerminalIdentityVerificationResult {
|
|
|
246
116
|
terminalControl?: TerminalControlRef;
|
|
247
117
|
}
|
|
248
118
|
export type TerminalIdentityVerifier = (request: TerminalIdentityVerificationRequest) => Promise<TerminalIdentityVerificationResult | void>;
|
|
249
|
-
export type TerminalTransportStage = "text_injected" | "enter_dispatched";
|
|
250
|
-
export interface TerminalTransportStageEvent {
|
|
251
|
-
stage: TerminalTransportStage;
|
|
252
|
-
agent: ExecutorKind;
|
|
253
|
-
terminalControl: TerminalControlRef;
|
|
254
|
-
multiline: boolean;
|
|
255
|
-
}
|
|
256
|
-
export interface TerminalSendBoundaryContext {
|
|
257
|
-
agent: ExecutorKind;
|
|
258
|
-
terminalControl: TerminalControlRef;
|
|
259
|
-
multiline: boolean;
|
|
260
|
-
text: string;
|
|
261
|
-
}
|
|
262
|
-
export interface TerminalSendOptions {
|
|
263
|
-
runtime?: TerminalRuntimeIdentity;
|
|
264
|
-
/** Runs after identity verification and immediately before text injection. */
|
|
265
|
-
beforeText?: (context: TerminalSendBoundaryContext) => void | Promise<void>;
|
|
266
|
-
/** Runs after exact composer/identity proof and immediately before Enter. */
|
|
267
|
-
beforeEnter?: (context: TerminalSendBoundaryContext) => void | Promise<void>;
|
|
268
|
-
/** Require Codex's exact stable composer proof even for a single-line send. */
|
|
269
|
-
requireExactComposerBeforeEnter?: boolean;
|
|
270
|
-
/**
|
|
271
|
-
* User-explicit managed-path guard. Recapture an exactly empty composer
|
|
272
|
-
* immediately before the first text-delivery call so a stale list/preflight
|
|
273
|
-
* observation can fall back without appending to a human draft.
|
|
274
|
-
*/
|
|
275
|
-
requireExactEmptyComposerBeforeText?: boolean;
|
|
276
|
-
/** User-explicit physical Send may steer a mutable working composer. */
|
|
277
|
-
allowWorkingComposerForUserExplicit?: boolean;
|
|
278
|
-
/**
|
|
279
|
-
* Codex user-explicit managed Send only: after an exactly empty pre-text
|
|
280
|
-
* boundary has accepted the request, cross Codex's paste-suppression window
|
|
281
|
-
* and dispatch Enter without using a rendered Composer proof as a veto.
|
|
282
|
-
*/
|
|
283
|
-
userExplicitEnterAfterTextWithoutComposerVeto?: boolean;
|
|
284
|
-
/**
|
|
285
|
-
* Retry-only authority from a preliminary exact-empty observation. After
|
|
286
|
-
* `beforeText` reserves the attempt, the bridge independently recaptures the
|
|
287
|
-
* same empty composer and then immediately makes its sole text-delivery call.
|
|
288
|
-
*/
|
|
289
|
-
requireExactEmptyComposerAfterBeforeText?: {
|
|
290
|
-
preliminaryComposerDigest: string;
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* Awaited immediately after each irreversible transport boundary so the
|
|
294
|
-
* caller can durably persist the exact proof level before continuing.
|
|
295
|
-
*/
|
|
296
|
-
onTransportStage?: (event: TerminalTransportStageEvent) => void | Promise<void>;
|
|
297
|
-
}
|
|
298
119
|
export interface TerminalModelControlBridgeOptions {
|
|
299
120
|
runtime?: TerminalRuntimeIdentity;
|
|
300
121
|
/** Revalidate Store/Turn/current-snapshot authority before every UI step. */
|
|
@@ -317,27 +138,6 @@ export type TerminalModelControlResidualBridgeResult = TerminalModelControlResid
|
|
|
317
138
|
export interface TerminalModelControlRepairBridgeResult extends Omit<TerminalModelControlRepairResult, "terminalControl"> {
|
|
318
139
|
terminalControl: TerminalControlRef;
|
|
319
140
|
}
|
|
320
|
-
export interface TerminalSendResult {
|
|
321
|
-
stage: "enter_dispatched";
|
|
322
|
-
agent: ExecutorKind;
|
|
323
|
-
terminalControl: TerminalControlRef;
|
|
324
|
-
multiline: boolean;
|
|
325
|
-
}
|
|
326
|
-
interface TerminalCodexStableComposerObservationBase {
|
|
327
|
-
terminalControl: TerminalControlRef;
|
|
328
|
-
digest: string;
|
|
329
|
-
stableCaptures: number;
|
|
330
|
-
}
|
|
331
|
-
type TerminalCodexObservedComposerState = "exact_draft" | "exact_empty" | "different_draft" | "working" | "approval_or_modal";
|
|
332
|
-
/** Closed, content-redacting observation of the current Codex composer. */
|
|
333
|
-
export type TerminalCodexComposerObservation = {
|
|
334
|
-
[State in TerminalCodexObservedComposerState]: TerminalCodexStableComposerObservationBase & {
|
|
335
|
-
state: State;
|
|
336
|
-
};
|
|
337
|
-
}[TerminalCodexObservedComposerState] | {
|
|
338
|
-
state: "identity_drift" | "unavailable";
|
|
339
|
-
reason: string;
|
|
340
|
-
};
|
|
341
141
|
export interface TerminalCodexDraftSubmissionContext {
|
|
342
142
|
terminalControl: TerminalControlRef;
|
|
343
143
|
text: string;
|
|
@@ -379,70 +179,6 @@ export interface TerminalCodexUserExplicitSendResult {
|
|
|
379
179
|
textInjectionCount: 1;
|
|
380
180
|
enterCount: 1;
|
|
381
181
|
}
|
|
382
|
-
export type TerminalNativeInspectionMaterializationKind = "exact_slash_composer" | "exact_slash_popup";
|
|
383
|
-
export interface TerminalNativeInspectionMaterializationEvidence {
|
|
384
|
-
kind: TerminalNativeInspectionMaterializationKind;
|
|
385
|
-
digest: string;
|
|
386
|
-
stableForMs: number;
|
|
387
|
-
stableCaptures: number;
|
|
388
|
-
}
|
|
389
|
-
export interface TerminalNativeInspectionBeforeEnterContext {
|
|
390
|
-
agent: ExecutorKind;
|
|
391
|
-
terminalControl: TerminalControlRef;
|
|
392
|
-
plan: TerminalNativeInspectionPlan;
|
|
393
|
-
preEnterScreenDigest: string;
|
|
394
|
-
materialization: TerminalNativeInspectionMaterializationEvidence;
|
|
395
|
-
}
|
|
396
|
-
export interface TerminalNativeInspectionOptions {
|
|
397
|
-
runtime?: TerminalRuntimeIdentity;
|
|
398
|
-
/**
|
|
399
|
-
* Gives the CLI one final in-lock authorization point for its Store binding
|
|
400
|
-
* and action-token fences. The bridge recaptures the exact composer and
|
|
401
|
-
* revalidates terminal identity again after this hook before pressing Enter.
|
|
402
|
-
*/
|
|
403
|
-
beforeEnter?: (context: TerminalNativeInspectionBeforeEnterContext) => void | Promise<void>;
|
|
404
|
-
}
|
|
405
|
-
export interface TerminalNativeInspectionResult {
|
|
406
|
-
stage: "enter_dispatched";
|
|
407
|
-
agent: ExecutorKind;
|
|
408
|
-
terminalControl: TerminalControlRef;
|
|
409
|
-
command: string;
|
|
410
|
-
behaviorProfile: string;
|
|
411
|
-
preEnterScreenDigest: string;
|
|
412
|
-
preEnterEvidenceInventory: readonly TerminalNativeInspectionEvidenceInventoryEntry[];
|
|
413
|
-
materialization: TerminalNativeInspectionMaterializationEvidence;
|
|
414
|
-
enterCount: 1;
|
|
415
|
-
}
|
|
416
|
-
export interface TerminalCodexStatusProbeResult extends TerminalNativeInspectionResult {
|
|
417
|
-
agent: "codex";
|
|
418
|
-
/** Identity-fenced ANSI capture proving an empty/dim placeholder composer. */
|
|
419
|
-
preTextScreenDigest: string;
|
|
420
|
-
/**
|
|
421
|
-
* Bare SHA-256 of the final pre-Enter 240-line capture. This deliberately
|
|
422
|
-
* matches `status().screen.digest` when observed with the returned depth.
|
|
423
|
-
*/
|
|
424
|
-
observationBaselineDigest: string;
|
|
425
|
-
/** Capture depth required for same-domain post-Enter freshness checks. */
|
|
426
|
-
observationScrollbackLines: 240;
|
|
427
|
-
}
|
|
428
|
-
export interface TerminalNativeInspectionBeforeDismissContext {
|
|
429
|
-
agent: ExecutorKind;
|
|
430
|
-
terminalControl: TerminalControlRef;
|
|
431
|
-
plan: TerminalNativeInspectionPlan;
|
|
432
|
-
evidenceFingerprint: string;
|
|
433
|
-
}
|
|
434
|
-
export interface TerminalNativeInspectionDismissalOptions {
|
|
435
|
-
runtime?: TerminalRuntimeIdentity;
|
|
436
|
-
scrollbackLines?: number;
|
|
437
|
-
beforeDismiss?: (context: TerminalNativeInspectionBeforeDismissContext) => void | Promise<void>;
|
|
438
|
-
}
|
|
439
|
-
export interface TerminalNativeInspectionDismissalResult {
|
|
440
|
-
stage: "dismiss_dispatched";
|
|
441
|
-
agent: ExecutorKind;
|
|
442
|
-
terminalControl: TerminalControlRef;
|
|
443
|
-
keys: readonly string[];
|
|
444
|
-
dismissCount: 1;
|
|
445
|
-
}
|
|
446
182
|
export interface TerminalNativeInspectionObservationResult {
|
|
447
183
|
terminalControl: TerminalControlRef;
|
|
448
184
|
status: TerminalBridgeStatus;
|
|
@@ -517,7 +253,9 @@ export declare class TerminalAgentBridge {
|
|
|
517
253
|
inspectModelControlResidual(agent: ExecutorKind, terminalControl: TerminalControlRef, agentVersion: string, plan: TerminalModelControlPlan, options?: TerminalModelControlBridgeOptions): Promise<TerminalModelControlResidualBridgeResult>;
|
|
518
254
|
repairModelControlResidual(agent: ExecutorKind, terminalControl: TerminalControlRef, agentVersion: string, plan: TerminalModelControlPlan, expectedResidualFingerprint: string, options?: TerminalModelControlBridgeOptions): Promise<TerminalModelControlRepairBridgeResult>;
|
|
519
255
|
private modelControlPorts;
|
|
520
|
-
private
|
|
256
|
+
private textSubmissionBridge;
|
|
257
|
+
private interactionResponseBridge;
|
|
258
|
+
private nativeInspectionBridge;
|
|
521
259
|
send(agent: ExecutorKind, terminalControl: TerminalControlRef, text: string, options?: TerminalSendOptions): Promise<TerminalSendResult>;
|
|
522
260
|
/** Observe only the current, live Codex composer without exposing its text. */
|
|
523
261
|
observeCodexComposer(terminalControl: TerminalControlRef, expectedText: string, options?: {
|
|
@@ -536,9 +274,6 @@ export declare class TerminalAgentBridge {
|
|
|
536
274
|
* text, clears the composer, or emits C-c, and contains exactly one C-m call.
|
|
537
275
|
*/
|
|
538
276
|
submitExactCodexDraft(terminalControl: TerminalControlRef, expectedText: string, options: TerminalCodexDraftSubmissionOptions): Promise<TerminalCodexDraftSubmissionResult>;
|
|
539
|
-
private verifyExactComposerBeforeEnter;
|
|
540
|
-
private claudeInjectedPasteProofPorts;
|
|
541
|
-
private verifyExactEmptyComposerBeforeText;
|
|
542
277
|
/**
|
|
543
278
|
* Submit one closed, adapter-owned native inspection command.
|
|
544
279
|
*
|
|
@@ -551,13 +286,9 @@ export declare class TerminalAgentBridge {
|
|
|
551
286
|
* Submit Codex's closed, version-profiled `/status` probe.
|
|
552
287
|
*
|
|
553
288
|
* Unlike the generic native-inspection entry point, callers provide only
|
|
554
|
-
* the detected Codex version, never a command or plan.
|
|
555
|
-
* exact empty (or fully dim replace-on-type) ANSI composer before injecting
|
|
556
|
-
* text, then crosses Codex's paste suppression window under the same exact
|
|
557
|
-
* composer and terminal-identity fences used by native inspection.
|
|
289
|
+
* the detected Codex version, never a command or plan.
|
|
558
290
|
*/
|
|
559
291
|
submitCodexStatusProbe(terminalControl: TerminalControlRef, agentVersion: string, options?: TerminalNativeInspectionOptions): Promise<TerminalCodexStatusProbeResult>;
|
|
560
|
-
private submitClosedNativeInspection;
|
|
561
292
|
observeNativeInspection(agent: ExecutorKind, terminalControl: TerminalControlRef, request: TerminalNativeInspectionObservationRequest, options?: {
|
|
562
293
|
runtime?: TerminalRuntimeIdentity;
|
|
563
294
|
scrollbackLines?: number;
|
|
@@ -568,13 +299,6 @@ export declare class TerminalAgentBridge {
|
|
|
568
299
|
* attempt and no automated retry across an uncertain dismissal boundary.
|
|
569
300
|
*/
|
|
570
301
|
dismissNativeInspection(agent: ExecutorKind, terminalControl: TerminalControlRef, plan: TerminalNativeInspectionPlan, request: TerminalNativeInspectionObservationRequest, expectedEvidenceFingerprint: string, options?: TerminalNativeInspectionDismissalOptions): Promise<TerminalNativeInspectionDismissalResult>;
|
|
571
|
-
private captureCodexReadyComposer;
|
|
572
|
-
private assertFinalCodexStatusViewport;
|
|
573
|
-
private settleNativeInspectionComposer;
|
|
574
|
-
private revalidateNativeInspectionComposer;
|
|
575
|
-
private settleCodexMultilineComposer;
|
|
576
|
-
private settleCodexComposerObservation;
|
|
577
|
-
private captureCodexComposerSnapshot;
|
|
578
302
|
/**
|
|
579
303
|
* Prove that the exact managed draft is still present after Enter dispatch.
|
|
580
304
|
* Two identity-fenced captures are required so transient repaint state never
|
|
@@ -618,20 +342,7 @@ export declare class TerminalAgentBridge {
|
|
|
618
342
|
*/
|
|
619
343
|
beforeKeyDispatch?: (context: TerminalApprovalKeyDispatchContext) => void | Promise<void>;
|
|
620
344
|
}): Promise<TerminalApprovalExecution>;
|
|
621
|
-
respondInteraction(agent: ExecutorKind, terminalControl: TerminalControlRef, response: TerminalInteractionResponseInput, options:
|
|
622
|
-
agentVersion: string;
|
|
623
|
-
expectedFingerprint: string;
|
|
624
|
-
expectedExpiresAt: string;
|
|
625
|
-
scrollbackLines?: number;
|
|
626
|
-
runtime?: TerminalRuntimeIdentity;
|
|
627
|
-
authorize?: (context: TerminalInteractionAuthorizationContext) => TerminalInteractionAuthorizationDecision | Promise<TerminalInteractionAuthorizationDecision>;
|
|
628
|
-
/**
|
|
629
|
-
* Resolve only after the caller has durably persisted its one-shot
|
|
630
|
-
* dispatch receipt. A successful return is the offer lease acceptance
|
|
631
|
-
* boundary for the final read-only recapture.
|
|
632
|
-
*/
|
|
633
|
-
beforeDispatch?: (context: TerminalInteractionBeforeDispatchContext) => void | Promise<void>;
|
|
634
|
-
}): Promise<TerminalInteractionResponseExecution>;
|
|
345
|
+
respondInteraction(agent: ExecutorKind, terminalControl: TerminalControlRef, response: TerminalInteractionResponseInput, options: TerminalInteractionResponseOptions): Promise<TerminalInteractionResponseExecution>;
|
|
635
346
|
monitorPoll(options: {
|
|
636
347
|
agent: ExecutorKind;
|
|
637
348
|
terminalControl: TerminalControlRef;
|
|
@@ -645,47 +356,10 @@ export declare class TerminalAgentBridge {
|
|
|
645
356
|
durableRequest?: TerminalDurableCompletionRequest;
|
|
646
357
|
}): Promise<TerminalMonitorPoll>;
|
|
647
358
|
private captureInspection;
|
|
648
|
-
private captureTerminalInteractionOffer;
|
|
649
359
|
private verifyTerminalIdentity;
|
|
650
360
|
}
|
|
651
|
-
/**
|
|
652
|
-
* Prove Claude Code's exact current idle input frame. This is shared by every
|
|
653
|
-
* automated-input path: a loose or historical `❯` prompt is not authority to
|
|
654
|
-
* inject text into the terminal.
|
|
655
|
-
*/
|
|
656
|
-
export declare function isExactClaudeIdleComposer(screen: string): boolean;
|
|
657
|
-
/**
|
|
658
|
-
* Compatibility export retained for callers that adopted the native-status
|
|
659
|
-
* name before the same exact-frame proof was reused by lifecycle handoff.
|
|
660
|
-
*/
|
|
661
|
-
export declare function isExactClaudeNativeInspectionIdleComposer(screen: string): boolean;
|
|
662
|
-
export declare function exactCodexReadyStyledComposerCapture(screen: string): {
|
|
663
|
-
digest: string;
|
|
664
|
-
} | undefined;
|
|
665
|
-
export type CodexAsyncQuestionInputMode = "absent" | "collapsed" | "expanded" | "ambiguous";
|
|
666
|
-
/**
|
|
667
|
-
* Classify Codex 0.154's non-blocking inline-question surface by current input
|
|
668
|
-
* ownership. The shared `Queued follow-up inputs` heading is not sufficient:
|
|
669
|
-
* ordinary queued messages use it too. An exact collapsed summary, after any
|
|
670
|
-
* ordinary queue preview is removed, proves Send-safe ownership even when the
|
|
671
|
-
* Composer is outside the viewport. Positive editor evidence without a
|
|
672
|
-
* complete shape remains fail-closed because paste plus Enter would otherwise
|
|
673
|
-
* submit the user's task as an answer.
|
|
674
|
-
*/
|
|
675
|
-
export declare function inspectCodexAsyncQuestionInputMode(styledScreen: string): CodexAsyncQuestionInputMode;
|
|
676
361
|
export declare function terminalApprovalFingerprint(agent: ExecutorKind, terminalControl: TerminalControlRef, inspection: TerminalScreenInspection, options?: {
|
|
677
362
|
screen?: string;
|
|
678
363
|
runtime?: TerminalRuntimeIdentity;
|
|
679
364
|
decision?: TerminalApprovalDecision;
|
|
680
365
|
}): string | undefined;
|
|
681
|
-
export declare function captureTerminalInteractionRuntimeOffer(input: {
|
|
682
|
-
agent: ExecutorKind;
|
|
683
|
-
terminalControl: TerminalControlRef;
|
|
684
|
-
screen: string;
|
|
685
|
-
runtime?: TerminalRuntimeIdentity;
|
|
686
|
-
now: Date;
|
|
687
|
-
approvalBlocked?: boolean;
|
|
688
|
-
/** Exact durable Watch endpoint evidence for legacy provider refs. */
|
|
689
|
-
trustedTerminalEvidence?: TerminalControlEvidence;
|
|
690
|
-
}): TerminalInteractionBridgeOffer | undefined;
|
|
691
|
-
export {};
|