@mininglamp-oss/octo-runtime 1.1.8 → 1.1.9
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/apps/cli/README.md +3 -1
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/command-tree.js +3 -1
- package/apps/cli/dist/output.js +5 -2
- package/apps/cli/dist/playboard.js +11 -2
- package/dist/public/executor-kernel.d.ts +2 -2
- package/dist/public/executor-kernel.js +1 -1
- package/dist/public/protocol.d.ts +1 -1
- package/dist/public/protocol.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +200 -106
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/async-questions.d.ts +27 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/async-questions.js +205 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.d.ts +30 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.js +223 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-V5W6ZTYC.js → chunk-FGFEM7JP.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-CFKMMCO6.js → chunk-R3PDZLX5.js} +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-LO34KB7D.js → chunk-TSRZVLIG.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/gateway.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/gateway.js +57 -13
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +4 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +5 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +11 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -24
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/launchd.d.ts +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/launchd.js +12 -11
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/experience.js +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +5 -4
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +7 -4
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +9 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +6 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.d.ts +30 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.js +199 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.js +16 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +36 -19
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +6 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +14 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +71 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +14 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-B127MhT-.js → index-BVxePruX.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +63 -12
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +110 -5
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +7 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +28 -6
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.js +84 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +11 -5
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/package.json +27 -27
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +156 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CanonicalEvent } from "./index.js";
|
|
2
2
|
import type { ProtocolMode, RunProtocolErrorCode, HostInvokeOptions, HostRunReceipt, HostFrame, NativeHostFrame, CanonicalHostFrame, ControlHostFrame, HostControl, NativeInteractionResponse, AdapterProtocolSupport } from "./generated/protocol-types.js";
|
|
3
3
|
export type { ProtocolMode, RunProtocolErrorCode, HostInvokeOptions, HostRunReceipt, HostFrame, NativeHostFrame, CanonicalHostFrame, ControlHostFrame, HostControl, NativeInteractionResponse, AdapterProtocolSupport };
|
|
4
|
-
export declare const RUN_PROTOCOL_ERRORS: readonly ["PROTOCOL_MODE_INVALID", "PROTOCOL_MODE_UNSUPPORTED", "EXECUTION_PROTOCOL_MISMATCH", "EXECUTION_IDENTITY_CONFLICT", "NATIVE_METHOD_UNSUPPORTED", "NATIVE_RESPONSE_INVALID", "INTERACTION_NOT_ACTIVE", "HOST_EXECUTION_FAILED", "HOST_ENDED_WITHOUT_TERMINAL", "PROVIDER_MESSAGE_TOO_LARGE", "HOST_FRAME_TOO_LARGE", "STREAM_QUEUE_ITEM_TOO_LARGE", "STREAM_QUEUE_BYTES_EXCEEDED", "STREAM_QUEUE_ITEMS_EXCEEDED", "STREAM_GAP", "STREAM_EXPIRED", "REMOTE_NATIVE_UNSUPPORTED", "HOST_FRAME_INVALID", "HOST_CONTROL_INVALID", "HOST_RECEIPT_INVALID", "PROTOCOL_SUPPORT_INVALID"];
|
|
4
|
+
export declare const RUN_PROTOCOL_ERRORS: readonly ["PROTOCOL_MODE_INVALID", "PROTOCOL_MODE_UNSUPPORTED", "EXECUTION_PROTOCOL_MISMATCH", "EXECUTION_IDENTITY_CONFLICT", "NATIVE_METHOD_UNSUPPORTED", "NATIVE_RESPONSE_INVALID", "INTERACTION_NOT_ACTIVE", "INVALID_QUESTION_RESPONSE", "ASYNC_ANSWER_REJECTED", "OPERATION_OUTCOME_UNKNOWN", "HOST_EXECUTION_FAILED", "HOST_ENDED_WITHOUT_TERMINAL", "PROVIDER_MESSAGE_TOO_LARGE", "HOST_FRAME_TOO_LARGE", "STREAM_QUEUE_ITEM_TOO_LARGE", "STREAM_QUEUE_BYTES_EXCEEDED", "STREAM_QUEUE_ITEMS_EXCEEDED", "STREAM_GAP", "STREAM_EXPIRED", "REMOTE_NATIVE_UNSUPPORTED", "HOST_FRAME_INVALID", "HOST_CONTROL_INVALID", "HOST_RECEIPT_INVALID", "PROTOCOL_SUPPORT_INVALID"];
|
|
5
5
|
export declare function protocolError(code: (typeof RUN_PROTOCOL_ERRORS)[number], message?: string): Error & {
|
|
6
6
|
code: (typeof RUN_PROTOCOL_ERRORS)[number];
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertJsonValue } from "./context.js";
|
|
2
2
|
import { assertExecutionEvidence } from "./actmode.js";
|
|
3
3
|
import { assertCanonicalEvent, assertFailureEnvelope } from "./index.js";
|
|
4
|
-
import { safeCapacityEvidence } from "./failure.js";
|
|
4
|
+
import { safeCapacityEvidence, isCodexLocalFailure } from "./failure.js";
|
|
5
5
|
import { isStreamCapacityReason } from "./stream-limits.js";
|
|
6
6
|
export const RUN_PROTOCOL_ERRORS = [
|
|
7
7
|
"PROTOCOL_MODE_INVALID",
|
|
@@ -11,6 +11,9 @@ export const RUN_PROTOCOL_ERRORS = [
|
|
|
11
11
|
"NATIVE_METHOD_UNSUPPORTED",
|
|
12
12
|
"NATIVE_RESPONSE_INVALID",
|
|
13
13
|
"INTERACTION_NOT_ACTIVE",
|
|
14
|
+
"INVALID_QUESTION_RESPONSE",
|
|
15
|
+
"ASYNC_ANSWER_REJECTED",
|
|
16
|
+
"OPERATION_OUTCOME_UNKNOWN",
|
|
14
17
|
"HOST_EXECUTION_FAILED",
|
|
15
18
|
"HOST_ENDED_WITHOUT_TERMINAL",
|
|
16
19
|
"PROVIDER_MESSAGE_TOO_LARGE",
|
|
@@ -124,8 +127,9 @@ export function assertHostControl(value) {
|
|
|
124
127
|
try {
|
|
125
128
|
assertFailureEnvelope(value.failure);
|
|
126
129
|
const evidence = safeCapacityEvidence(value.failure.params);
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
const localCodex = value.code === "HOST_EXECUTION_FAILED" && isCodexLocalFailure(value.failure);
|
|
131
|
+
if ((!localCodex &&
|
|
132
|
+
(!isStreamCapacityReason(value.code) || value.failure.reasonCode !== value.code)) ||
|
|
129
133
|
!exactKeys(value.failure, [
|
|
130
134
|
"schemaVersion",
|
|
131
135
|
"code",
|
|
@@ -154,11 +158,13 @@ export function assertHostControl(value) {
|
|
|
154
158
|
return;
|
|
155
159
|
}
|
|
156
160
|
if (value.type === "interaction" &&
|
|
157
|
-
exactKeys(value, ["type", "requestId", "status"], ["expiresAt"]) &&
|
|
161
|
+
exactKeys(value, ["type", "requestId", "status"], ["expiresAt", "responseRequired"]) &&
|
|
158
162
|
requestId(value.requestId) &&
|
|
159
163
|
["pending", "resolved", "expired", "invalidated"].includes(String(value.status)) &&
|
|
160
164
|
(!Object.hasOwn(value, "expiresAt") || safeInteger(value.expiresAt, 1)) &&
|
|
161
|
-
(value.status !== "pending" || safeInteger(value.expiresAt, 1))
|
|
165
|
+
(value.status !== "pending" || safeInteger(value.expiresAt, 1)) &&
|
|
166
|
+
(!Object.hasOwn(value, "responseRequired") ||
|
|
167
|
+
(value.status === "pending" && typeof value.responseRequired === "boolean")))
|
|
162
168
|
return;
|
|
163
169
|
if (value.type === "gap" &&
|
|
164
170
|
exactKeys(value, ["type", "requested_after_seq", "oldest_seq", "latest_seq"]) &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Provider-neutral Agent runtime for unified execution through provider adapters",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -87,32 +87,32 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"commander": "15.0.0",
|
|
90
|
-
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.
|
|
90
|
+
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.9",
|
|
91
91
|
"semver": "7.8.5",
|
|
92
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
93
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
92
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.9",
|
|
93
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.9",
|
|
94
94
|
"import-meta-resolve": "4.2.0",
|
|
95
|
-
"@mininglamp-oss/octo-runtime-extra-webui": "1.1.
|
|
96
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
97
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
98
|
-
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.
|
|
99
|
-
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.
|
|
100
|
-
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.
|
|
101
|
-
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.
|
|
102
|
-
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.
|
|
103
|
-
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.
|
|
104
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
105
|
-
"@mininglamp-oss/octo-runtime-executor-core": "1.1.
|
|
106
|
-
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.
|
|
107
|
-
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.
|
|
108
|
-
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.
|
|
95
|
+
"@mininglamp-oss/octo-runtime-extra-webui": "1.1.9",
|
|
96
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.9",
|
|
97
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.9",
|
|
98
|
+
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.9",
|
|
99
|
+
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.9",
|
|
100
|
+
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.9",
|
|
101
|
+
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.9",
|
|
102
|
+
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.9",
|
|
103
|
+
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.9",
|
|
104
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.9",
|
|
105
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.9",
|
|
106
|
+
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.9",
|
|
107
|
+
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.9",
|
|
108
|
+
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.9",
|
|
109
109
|
"ws": "8.22.0",
|
|
110
|
-
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.
|
|
111
|
-
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.
|
|
112
|
-
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.
|
|
113
|
-
"@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.
|
|
114
|
-
"@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.
|
|
115
|
-
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.
|
|
110
|
+
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.9",
|
|
111
|
+
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.9",
|
|
112
|
+
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.9",
|
|
113
|
+
"@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.9",
|
|
114
|
+
"@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.9",
|
|
115
|
+
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.9",
|
|
116
116
|
"mdast-util-from-markdown": "2.1.0",
|
|
117
117
|
"@types/mdast": "4.0.4",
|
|
118
118
|
"@types/unist": "3.0.3",
|
|
@@ -148,11 +148,11 @@
|
|
|
148
148
|
"micromark-util-sanitize-uri": "2.0.1",
|
|
149
149
|
"micromark-util-decode-string": "2.0.1",
|
|
150
150
|
"unist-util-stringify-position": "4.0.0",
|
|
151
|
-
"@mininglamp-oss/octo-runtime-cross-service": "1.1.
|
|
151
|
+
"@mininglamp-oss/octo-runtime-cross-service": "1.1.9",
|
|
152
152
|
"iconv-lite": "0.7.3",
|
|
153
153
|
"safer-buffer": "2.1.2",
|
|
154
|
-
"@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.
|
|
155
|
-
"@mininglamp-oss/octo-runtime-cli": "1.1.
|
|
154
|
+
"@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.9",
|
|
155
|
+
"@mininglamp-oss/octo-runtime-cli": "1.1.9",
|
|
156
156
|
"json5": "2.2.3"
|
|
157
157
|
},
|
|
158
158
|
"bundleDependencies": [
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
"NATIVE_METHOD_UNSUPPORTED",
|
|
191
191
|
"NATIVE_RESPONSE_INVALID",
|
|
192
192
|
"INTERACTION_NOT_ACTIVE",
|
|
193
|
+
"INVALID_QUESTION_RESPONSE",
|
|
194
|
+
"ASYNC_ANSWER_REJECTED",
|
|
195
|
+
"OPERATION_OUTCOME_UNKNOWN",
|
|
193
196
|
"HOST_EXECUTION_FAILED",
|
|
194
197
|
"HOST_ENDED_WITHOUT_TERMINAL",
|
|
195
198
|
"PROVIDER_MESSAGE_TOO_LARGE",
|
|
@@ -484,6 +487,10 @@
|
|
|
484
487
|
"status": {
|
|
485
488
|
"enum": ["pending", "resolved", "expired", "invalidated"]
|
|
486
489
|
},
|
|
490
|
+
"responseRequired": {
|
|
491
|
+
"description": "Whether an external response is required. Omission means required; false does not imply resolution or completion.",
|
|
492
|
+
"type": "boolean"
|
|
493
|
+
},
|
|
487
494
|
"expiresAt": {
|
|
488
495
|
"type": "integer",
|
|
489
496
|
"minimum": 1,
|
|
@@ -499,6 +506,9 @@
|
|
|
499
506
|
},
|
|
500
507
|
"then": {
|
|
501
508
|
"required": ["expiresAt"]
|
|
509
|
+
},
|
|
510
|
+
"else": {
|
|
511
|
+
"not": { "required": ["responseRequired"] }
|
|
502
512
|
}
|
|
503
513
|
},
|
|
504
514
|
{
|
|
@@ -1824,7 +1834,7 @@
|
|
|
1824
1834
|
"run_timeout_ms": {
|
|
1825
1835
|
"type": "integer",
|
|
1826
1836
|
"minimum": 100,
|
|
1827
|
-
"maximum":
|
|
1837
|
+
"maximum": 604800000
|
|
1828
1838
|
},
|
|
1829
1839
|
"cancel_grace_ms": {
|
|
1830
1840
|
"type": "integer",
|
|
@@ -2449,6 +2459,10 @@
|
|
|
2449
2459
|
"description": "Whether the provider declares that later invocations can resume this session.",
|
|
2450
2460
|
"type": "boolean"
|
|
2451
2461
|
},
|
|
2462
|
+
"requireResume": {
|
|
2463
|
+
"description": "Require the original provider session; adapters must reject rather than start a fresh fallback. Currently implemented by Codex.",
|
|
2464
|
+
"type": "boolean"
|
|
2465
|
+
},
|
|
2452
2466
|
"resumeOutcome": {
|
|
2453
2467
|
"description": "Continuity outcome for this session update. Compaction applies to the next turn; fresh fallback applies to the current turn.",
|
|
2454
2468
|
"type": "string",
|
|
@@ -2503,7 +2517,7 @@
|
|
|
2503
2517
|
"runTimeoutMs": {
|
|
2504
2518
|
"type": "integer",
|
|
2505
2519
|
"minimum": 100,
|
|
2506
|
-
"maximum":
|
|
2520
|
+
"maximum": 604800000
|
|
2507
2521
|
},
|
|
2508
2522
|
"cancelGraceMs": {
|
|
2509
2523
|
"type": "integer",
|
|
@@ -2578,12 +2592,113 @@
|
|
|
2578
2592
|
}
|
|
2579
2593
|
}
|
|
2580
2594
|
},
|
|
2595
|
+
"AsyncUserInputQuestion": {
|
|
2596
|
+
"type": "object",
|
|
2597
|
+
"additionalProperties": false,
|
|
2598
|
+
"required": ["title", "options"],
|
|
2599
|
+
"properties": {
|
|
2600
|
+
"title": {
|
|
2601
|
+
"type": "string",
|
|
2602
|
+
"minLength": 1,
|
|
2603
|
+
"maxLength": 4096,
|
|
2604
|
+
"pattern": "[^\u0009-\u000d\u0020\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
|
|
2605
|
+
},
|
|
2606
|
+
"options": {
|
|
2607
|
+
"type": ["array", "null"],
|
|
2608
|
+
"maxItems": 50,
|
|
2609
|
+
"items": {
|
|
2610
|
+
"type": "string",
|
|
2611
|
+
"minLength": 1,
|
|
2612
|
+
"maxLength": 4096,
|
|
2613
|
+
"pattern": "[^\u0009-\u000d\u0020\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
"QuestionRequest": {
|
|
2619
|
+
"description": "Non-blocking question batch. IDs are positions scoped to this interaction, not provider-native question IDs.",
|
|
2620
|
+
"type": "object",
|
|
2621
|
+
"additionalProperties": false,
|
|
2622
|
+
"required": ["schema", "messageId", "questions"],
|
|
2623
|
+
"properties": {
|
|
2624
|
+
"schema": { "const": "octo.question-request/v1", "type": "string" },
|
|
2625
|
+
"messageId": { "type": "string", "minLength": 1 },
|
|
2626
|
+
"questions": {
|
|
2627
|
+
"type": "array",
|
|
2628
|
+
"minItems": 1,
|
|
2629
|
+
"maxItems": 50,
|
|
2630
|
+
"items": {
|
|
2631
|
+
"type": "object",
|
|
2632
|
+
"additionalProperties": false,
|
|
2633
|
+
"required": ["id", "title", "options", "allowCustom"],
|
|
2634
|
+
"properties": {
|
|
2635
|
+
"id": { "type": "string", "pattern": "^q:(0|[1-9][0-9]?)$" },
|
|
2636
|
+
"title": {
|
|
2637
|
+
"type": "string",
|
|
2638
|
+
"minLength": 1,
|
|
2639
|
+
"maxLength": 4096,
|
|
2640
|
+
"pattern": "[^\u0009-\u000d\u0020\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
|
|
2641
|
+
},
|
|
2642
|
+
"options": {
|
|
2643
|
+
"type": ["array", "null"],
|
|
2644
|
+
"maxItems": 50,
|
|
2645
|
+
"items": {
|
|
2646
|
+
"type": "string",
|
|
2647
|
+
"minLength": 1,
|
|
2648
|
+
"maxLength": 4096,
|
|
2649
|
+
"pattern": "[^\u0009-\u000d\u0020\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
|
|
2650
|
+
}
|
|
2651
|
+
},
|
|
2652
|
+
"allowCustom": { "type": "boolean", "const": true }
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
},
|
|
2658
|
+
"QuestionResponse": {
|
|
2659
|
+
"type": "object",
|
|
2660
|
+
"additionalProperties": false,
|
|
2661
|
+
"required": ["schema", "answers"],
|
|
2662
|
+
"properties": {
|
|
2663
|
+
"schema": { "type": "string", "const": "octo.question-response/v1" },
|
|
2664
|
+
"answers": {
|
|
2665
|
+
"type": "array",
|
|
2666
|
+
"minItems": 1,
|
|
2667
|
+
"maxItems": 50,
|
|
2668
|
+
"items": {
|
|
2669
|
+
"type": "object",
|
|
2670
|
+
"additionalProperties": false,
|
|
2671
|
+
"required": ["questionId", "text"],
|
|
2672
|
+
"properties": {
|
|
2673
|
+
"questionId": { "type": "string", "pattern": "^q:(0|[1-9][0-9]?)$" },
|
|
2674
|
+
"text": {
|
|
2675
|
+
"type": "string",
|
|
2676
|
+
"minLength": 1,
|
|
2677
|
+
"maxLength": 4096,
|
|
2678
|
+
"pattern": "[^\u0009-\u000d\u0020\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
},
|
|
2581
2685
|
"CanonicalEventPayload": {
|
|
2582
2686
|
"title": "CanonicalEventPayload",
|
|
2583
2687
|
"description": "Shared canonical event payload. The open dictionary carries structured tool, surface, and usage fields while common lifecycle fields remain explicit.",
|
|
2584
2688
|
"type": "object",
|
|
2585
2689
|
"additionalProperties": true,
|
|
2586
2690
|
"properties": {
|
|
2691
|
+
"delivery": {
|
|
2692
|
+
"description": "Async questions do not block provider work. Omitted for existing synchronous interactions.",
|
|
2693
|
+
"type": "string",
|
|
2694
|
+
"const": "async"
|
|
2695
|
+
},
|
|
2696
|
+
"questions": {
|
|
2697
|
+
"description": "Message snapshot only; an active interaction.requested authorizes submission.",
|
|
2698
|
+
"type": "array",
|
|
2699
|
+
"maxItems": 50,
|
|
2700
|
+
"items": { "$ref": "#/definitions/AsyncUserInputQuestion" }
|
|
2701
|
+
},
|
|
2587
2702
|
"providerSession": {
|
|
2588
2703
|
"$ref": "#/definitions/ProviderSession"
|
|
2589
2704
|
},
|
|
@@ -2629,13 +2744,31 @@
|
|
|
2629
2744
|
}
|
|
2630
2745
|
}
|
|
2631
2746
|
},
|
|
2747
|
+
"AsyncQuestionReplySnapshot": {
|
|
2748
|
+
"description": "Host-owned supplement state, never stored by Kernel. Submitting or unknown records cannot be replayed.",
|
|
2749
|
+
"type": "object",
|
|
2750
|
+
"additionalProperties": false,
|
|
2751
|
+
"required": ["schema", "ref", "question", "providerSession", "completed", "phase"],
|
|
2752
|
+
"properties": {
|
|
2753
|
+
"schema": { "const": "octo.async-question-reply/v1" },
|
|
2754
|
+
"ref": { "$ref": "#/definitions/KernelRunRef" },
|
|
2755
|
+
"question": { "$ref": "#/definitions/InteractionRequestedPayload" },
|
|
2756
|
+
"providerSession": { "$ref": "#/definitions/ProviderSession" },
|
|
2757
|
+
"providerEpoch": { "type": "integer", "minimum": 0 },
|
|
2758
|
+
"completed": { "type": "boolean" },
|
|
2759
|
+
"phase": {
|
|
2760
|
+
"enum": ["pending", "submitting", "answered", "cancelled", "invalidated", "unknown"]
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2632
2764
|
"InteractionRequestedPayload": {
|
|
2633
2765
|
"title": "InteractionRequestedPayload",
|
|
2634
|
-
"description": "Provider-neutral
|
|
2766
|
+
"description": "Provider-neutral interaction. Omitted delivery retains synchronous blocking semantics; async questions allow continued work. Only Adapter-owned automatic approvals may omit external responses; this does not imply completion.",
|
|
2635
2767
|
"type": "object",
|
|
2636
2768
|
"additionalProperties": false,
|
|
2637
|
-
"required": ["interactionId", "kind", "request", "executionInstanceId"
|
|
2769
|
+
"required": ["interactionId", "kind", "request", "executionInstanceId"],
|
|
2638
2770
|
"properties": {
|
|
2771
|
+
"delivery": { "type": "string", "const": "async" },
|
|
2639
2772
|
"executionInstanceId": {
|
|
2640
2773
|
"type": "string",
|
|
2641
2774
|
"minLength": 1,
|
|
@@ -2655,6 +2788,10 @@
|
|
|
2655
2788
|
"type": "string",
|
|
2656
2789
|
"enum": ["approval", "question", "elicitation"]
|
|
2657
2790
|
},
|
|
2791
|
+
"responseRequired": {
|
|
2792
|
+
"description": "Whether an external response is required. Omission means required; only an Adapter-owned automatic approval may set false.",
|
|
2793
|
+
"type": "boolean"
|
|
2794
|
+
},
|
|
2658
2795
|
"request": {
|
|
2659
2796
|
"description": "Display-safe provider request projected for the responding product.",
|
|
2660
2797
|
"type": "object",
|
|
@@ -2662,6 +2799,18 @@
|
|
|
2662
2799
|
"tsType": "Record<string, unknown>"
|
|
2663
2800
|
}
|
|
2664
2801
|
},
|
|
2802
|
+
"allOf": [
|
|
2803
|
+
{
|
|
2804
|
+
"if": { "required": ["delivery"], "properties": { "delivery": { "const": "async" } } },
|
|
2805
|
+
"then": {
|
|
2806
|
+
"properties": {
|
|
2807
|
+
"kind": { "const": "question" },
|
|
2808
|
+
"request": { "$ref": "#/definitions/QuestionRequest" }
|
|
2809
|
+
}
|
|
2810
|
+
},
|
|
2811
|
+
"else": { "required": ["expiresAt"] }
|
|
2812
|
+
}
|
|
2813
|
+
],
|
|
2665
2814
|
"if": {
|
|
2666
2815
|
"properties": {
|
|
2667
2816
|
"kind": {
|
|
@@ -2676,6 +2825,9 @@
|
|
|
2676
2825
|
"$ref": "#/definitions/ApprovalRequest"
|
|
2677
2826
|
}
|
|
2678
2827
|
}
|
|
2828
|
+
},
|
|
2829
|
+
"else": {
|
|
2830
|
+
"properties": { "responseRequired": { "const": true } }
|
|
2679
2831
|
}
|
|
2680
2832
|
},
|
|
2681
2833
|
"ApprovalRequest": {
|