@mininglamp-oss/octo-runtime 1.1.12 → 1.1.14
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/README.md +1 -1
- package/apps/cli/dist/adapters.d.ts +19 -1
- package/apps/cli/dist/adapters.js +154 -28
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/codex.d.ts +5 -0
- package/apps/cli/dist/codex.js +36 -0
- package/apps/cli/dist/kernel.d.ts +4 -0
- package/apps/cli/dist/kernel.js +84 -0
- package/apps/cli/dist/main.js +8 -7
- package/apps/cli/dist/manifest.json +33 -22
- package/apps/cli/dist/output.d.ts +1 -0
- package/apps/cli/dist/output.js +8 -4
- package/apps/cli/dist/playboard.js +21 -12
- package/apps/cli/dist/provider-launch.d.ts +28 -0
- package/apps/cli/dist/provider-launch.js +52 -0
- package/apps/cli/dist/providers.d.ts +182 -0
- package/apps/cli/dist/providers.js +34 -0
- package/dist/public/adapter-sdk.d.ts +2 -0
- package/dist/public/adapter-sdk.js +2 -0
- package/dist/public/protocol.d.ts +2 -2
- package/dist/public/protocol.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +26 -10
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +44 -53
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +10 -35
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +21 -29
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/agent-env.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/agent-env.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +14 -68
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +77 -61
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +19 -31
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +28 -18
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/agent-env.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/agent-env.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +55 -54
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.d.ts +54 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.js +147 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/environment.js +4 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +20 -92
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +103 -217
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.d.ts +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.js +4 -11
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +9 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +77 -81
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-SMTJTIN7.js → chunk-AE3OJBDS.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-H3S6WM37.js → chunk-NGR74QLF.js} +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-RISQ6NGV.js → chunk-XIUZ6GXG.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +0 -1
- 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.d.ts +6 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +16 -21
- 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/dist/adapter.d.ts +14 -16
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +29 -46
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/agent-env.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/agent-env.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +4 -7
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.d.ts +13 -21
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.js +47 -36
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +24 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +14 -7
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +24 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +13 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +24 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +14 -7
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +7 -7
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +28 -31
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +16 -25
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +113 -179
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +24 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +14 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +24 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +14 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.d.ts +48 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +234 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +7 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +5 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +25 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +112 -59
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +11 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +89 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.d.ts +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.js +25 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +10 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +19 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +154 -28
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.js +36 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.js +84 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +8 -7
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +33 -22
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +21 -12
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.d.ts +28 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.js +52 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.d.ts +182 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.js +34 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -20
- package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +3 -104
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +166 -1870
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +122 -65
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +13 -85
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-output-silence.d.ts +21 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-output-silence.js +176 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +17 -20
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +3 -9
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +1 -8
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +1 -5
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +3 -292
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.js +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +18 -13
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +90 -608
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +32 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +7 -18
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +34 -189
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +11 -22
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +38 -78
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +5 -40
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/package.json +34 -37
- package/packages/octo-runtime-protocol/schema/kernel-ipc.schema.json +3 -104
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +166 -1870
- package/dist/public/codex.d.ts +0 -1
- package/dist/public/codex.js +0 -1
- package/dist/public/dsh.d.ts +0 -2
- package/dist/public/dsh.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.d.ts +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.js +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +0 -1219
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +0 -5988
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +0 -56
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +0 -116
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +0 -761
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +0 -663
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +0 -191
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.js +0 -89
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.d.ts +0 -33
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.js +0 -93
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.js +0 -36
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +0 -80
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +0 -9
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.js +0 -68
- /package/node_modules/@mininglamp-oss/octo-runtime-client/{schema → fixtures}/kernel-ipc-fixtures.json +0 -0
- /package/packages/octo-runtime-protocol/{schema → test/fixtures}/kernel-ipc-fixtures.json +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { assertContextEnvelope, assertModelInputParts } from "./index.js";
|
|
2
2
|
import { assertJsonValue } from "./context.js";
|
|
3
3
|
import { canonicalEvents } from "./run-protocol.js";
|
|
4
4
|
import { assertJsonByteLimit } from "./json-size.js";
|
|
@@ -39,11 +39,40 @@ export function createInputInvoke(source) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
export function assertInvokeInput(value) {
|
|
42
|
+
if (value &&
|
|
43
|
+
typeof value === "object" &&
|
|
44
|
+
("controlInstructions" in value ||
|
|
45
|
+
("agentEnv" in value &&
|
|
46
|
+
value.agentEnv &&
|
|
47
|
+
typeof value.agentEnv === "object" &&
|
|
48
|
+
"controlInstructions" in value.agentEnv)))
|
|
49
|
+
throw new TypeError("CONTROL_INSTRUCTIONS_REMOVED: controlInstructions was removed; provide application prompts in inputs.parts");
|
|
42
50
|
assertJsonByteLimit(value instanceof InvokeInput ? { ...value } : value, INVOKE_REQUEST_MAX_BYTES, "INVOKE_REQUEST_TOO_LARGE");
|
|
43
51
|
assertJsonValue(value);
|
|
44
52
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
45
53
|
throw new TypeError("InvokeInput must be a JSON object");
|
|
46
54
|
const input = value;
|
|
55
|
+
const allowed = new Set([
|
|
56
|
+
"inputs",
|
|
57
|
+
"agentEnv",
|
|
58
|
+
"sessionId",
|
|
59
|
+
"sessionName",
|
|
60
|
+
"protocol_mode",
|
|
61
|
+
"invocationId",
|
|
62
|
+
"runId",
|
|
63
|
+
"sessionGeneration",
|
|
64
|
+
"providerEpoch",
|
|
65
|
+
"prompt",
|
|
66
|
+
"modelInput",
|
|
67
|
+
"runMetadata",
|
|
68
|
+
"providerSession",
|
|
69
|
+
"continuityMode",
|
|
70
|
+
"freshFallbackModelInput",
|
|
71
|
+
"freshFallbackModelInputParts",
|
|
72
|
+
"freshFallbackImagesUnavailable"
|
|
73
|
+
]);
|
|
74
|
+
if (Object.keys(input).some((key) => !allowed.has(key)))
|
|
75
|
+
throw new TypeError("InvokeInput contains an unknown field; use AgentEnv items for execution settings");
|
|
47
76
|
if ([
|
|
48
77
|
"protocolMode",
|
|
49
78
|
"adapterType",
|
|
@@ -52,9 +81,7 @@ export function assertInvokeInput(value) {
|
|
|
52
81
|
"contexts",
|
|
53
82
|
"agentSource",
|
|
54
83
|
"workdir",
|
|
55
|
-
"controlInstructions",
|
|
56
84
|
"approvalMode",
|
|
57
|
-
"agentConfig",
|
|
58
85
|
"runtimeLimits"
|
|
59
86
|
].some((key) => Object.hasOwn(input, key)))
|
|
60
87
|
throw new TypeError("InvokeInput requires the unified JSON contract, not a prepared request wrapper");
|
|
@@ -127,11 +154,11 @@ export function assertSessionName(value) {
|
|
|
127
154
|
}
|
|
128
155
|
/** Lossless field reorganization of a validated prepared execution, excluding its local signal. */
|
|
129
156
|
export function invocationInput(request, protocol_mode = "native", adapterType) {
|
|
130
|
-
const { protocolVersion: _version, signal: _signal, executionEnvOverrides: _executionEnvOverrides, agentSessionId,
|
|
157
|
+
const { protocolVersion: _version, signal: _signal, executionEnvOverrides: _executionEnvOverrides, agentSessionId, agentEnv, modelInputParts, ...fields } = request;
|
|
131
158
|
void _version;
|
|
132
159
|
void _signal;
|
|
133
160
|
void _executionEnvOverrides;
|
|
134
|
-
const contexts = structuredClone(
|
|
161
|
+
const contexts = structuredClone(agentEnv);
|
|
135
162
|
if (adapterType) {
|
|
136
163
|
const adapter = contexts.items.find((item) => item.namespace === "octo.execution" && item.name === "adapter");
|
|
137
164
|
if (adapter && adapter.payload.type !== adapterType)
|
|
@@ -140,87 +167,20 @@ export function invocationInput(request, protocol_mode = "native", adapterType)
|
|
|
140
167
|
contexts.items.push({
|
|
141
168
|
namespace: "octo.execution",
|
|
142
169
|
name: "adapter",
|
|
143
|
-
payload: {
|
|
144
|
-
type: adapterType,
|
|
145
|
-
...(adapterType === "openclaw"
|
|
146
|
-
? { provider_agent_id: request.agentConfig.providerAgentId ?? "main" }
|
|
147
|
-
: {})
|
|
148
|
-
}
|
|
170
|
+
payload: { type: adapterType }
|
|
149
171
|
});
|
|
150
172
|
}
|
|
151
173
|
return InvokeInput.check({
|
|
152
174
|
...fields,
|
|
153
175
|
sessionId: agentSessionId,
|
|
154
|
-
agentEnv:
|
|
155
|
-
...contexts,
|
|
156
|
-
agentSource,
|
|
157
|
-
workdir,
|
|
158
|
-
controlInstructions,
|
|
159
|
-
approvalMode,
|
|
160
|
-
agentConfig,
|
|
161
|
-
runtimeLimits
|
|
162
|
-
}).filter(([, value]) => value !== undefined)),
|
|
176
|
+
agentEnv: contexts,
|
|
163
177
|
protocol_mode,
|
|
164
178
|
inputs: modelInputParts ?? [{ type: "text", text: request.modelInput }]
|
|
165
179
|
});
|
|
166
180
|
}
|
|
167
|
-
/**
|
|
181
|
+
/** 公共层只校验信封;共性与私有 payload 由消费它的 Adapter 校验。 */
|
|
168
182
|
export function assertAgentEnv(value) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
throw new TypeError("agentEnv must be an execution envelope");
|
|
173
|
-
const env = value;
|
|
174
|
-
assertContextEnvelope({ schema: env.schema, items: env.items });
|
|
175
|
-
const allowed = new Set([
|
|
176
|
-
"schema",
|
|
177
|
-
"items",
|
|
178
|
-
"agentSource",
|
|
179
|
-
"workdir",
|
|
180
|
-
"controlInstructions",
|
|
181
|
-
"approvalMode",
|
|
182
|
-
"agentConfig",
|
|
183
|
-
"runtimeLimits"
|
|
184
|
-
]);
|
|
185
|
-
if (Object.keys(env).some((key) => !allowed.has(key)))
|
|
186
|
-
throw new TypeError("agentEnv contains an unknown execution setting");
|
|
187
|
-
for (const item of env.items)
|
|
188
|
-
if (!(item.namespace === "octo.execution" ||
|
|
189
|
-
(item.namespace === "octo.security" && item.name === "approval_policy") ||
|
|
190
|
-
(item.namespace === "octo.control" && item.name === "instructions")))
|
|
191
|
-
throw new TypeError("agentEnv cannot contain business context; prepare inputs in the application");
|
|
192
|
-
for (const key of ["workdir", "controlInstructions"])
|
|
193
|
-
if (env[key] !== undefined && typeof env[key] !== "string")
|
|
194
|
-
throw new TypeError(`agentEnv.${key} must be a string`);
|
|
195
|
-
if (env.agentSource !== undefined)
|
|
196
|
-
assertAgentSource(env.agentSource);
|
|
197
|
-
if (env.approvalMode !== undefined)
|
|
198
|
-
assertApprovalMode(env.approvalMode);
|
|
199
|
-
if (env.runtimeLimits !== undefined)
|
|
200
|
-
assertRuntimeLimits(env.runtimeLimits);
|
|
201
|
-
if (env.agentConfig !== undefined &&
|
|
202
|
-
(!env.agentConfig || typeof env.agentConfig !== "object" || Array.isArray(env.agentConfig)))
|
|
203
|
-
throw new TypeError("agentEnv.agentConfig must be a JSON object");
|
|
204
|
-
if (env.agentConfig) {
|
|
205
|
-
const config = env.agentConfig;
|
|
206
|
-
for (const key of [
|
|
207
|
-
"workdir",
|
|
208
|
-
"model",
|
|
209
|
-
"sandbox",
|
|
210
|
-
"providerAgentId",
|
|
211
|
-
"effort",
|
|
212
|
-
"openclawConfigPath",
|
|
213
|
-
"openclawStateDir"
|
|
214
|
-
])
|
|
215
|
-
if (config[key] !== undefined && typeof config[key] !== "string")
|
|
216
|
-
throw new TypeError(`agentConfig.${key} must be a string`);
|
|
217
|
-
if (config.timeoutSeconds !== undefined &&
|
|
218
|
-
(typeof config.timeoutSeconds !== "number" || config.timeoutSeconds <= 0))
|
|
219
|
-
throw new TypeError("agentConfig.timeoutSeconds must be positive");
|
|
220
|
-
if (config.providerOptions !== undefined &&
|
|
221
|
-
(!config.providerOptions ||
|
|
222
|
-
typeof config.providerOptions !== "object" ||
|
|
223
|
-
Array.isArray(config.providerOptions)))
|
|
224
|
-
throw new TypeError("agentConfig.providerOptions must be a JSON object");
|
|
225
|
-
}
|
|
183
|
+
if (value && typeof value === "object" && "controlInstructions" in value)
|
|
184
|
+
throw new TypeError("CONTROL_INSTRUCTIONS_REMOVED: controlInstructions was removed; provide application prompts in inputs.parts");
|
|
185
|
+
assertContextEnvelope(value);
|
|
226
186
|
}
|
|
@@ -63,6 +63,12 @@ export function providerInputParts(request, freshFallback = false) {
|
|
|
63
63
|
if (freshFallback && request.freshFallbackImagesUnavailable)
|
|
64
64
|
throw new TypeError("ARTIFACT_UNAVAILABLE: historical images cannot be restored");
|
|
65
65
|
assertImageRecoveryParts(request);
|
|
66
|
+
// 显式恢复文本属于调用方完整输入;不能被 Core 保留的当前轮 parts 覆盖。
|
|
67
|
+
// 图片恢复已由上面的检查保证,禁止用纯文本悄悄丢弃当前图片。
|
|
68
|
+
if (freshFallback &&
|
|
69
|
+
request.freshFallbackModelInputParts === undefined &&
|
|
70
|
+
request.freshFallbackModelInput !== undefined)
|
|
71
|
+
return [{ type: "text", text: request.freshFallbackModelInput }];
|
|
66
72
|
const parts = freshFallback
|
|
67
73
|
? (request.freshFallbackModelInputParts ?? request.modelInputParts)
|
|
68
74
|
: request.modelInputParts;
|
|
@@ -1,7 +1,8 @@
|
|
|
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
|
-
|
|
4
|
+
import { RUN_PROTOCOL_ERRORS } from "./generated/protocol-types.js";
|
|
5
|
+
export { RUN_PROTOCOL_ERRORS } from "./generated/protocol-types.js";
|
|
5
6
|
export declare function protocolError(code: (typeof RUN_PROTOCOL_ERRORS)[number], message?: string): Error & {
|
|
6
7
|
code: (typeof RUN_PROTOCOL_ERRORS)[number];
|
|
7
8
|
};
|
|
@@ -1,34 +1,9 @@
|
|
|
1
1
|
import { assertJsonValue } from "./context.js";
|
|
2
|
-
import { assertExecutionEvidence } from "./actmode.js";
|
|
3
2
|
import { assertCanonicalEvent, assertFailureEnvelope } from "./index.js";
|
|
4
|
-
import { safeCapacityEvidence, isCodexLocalFailure } from "./failure.js";
|
|
3
|
+
import { safeCapacityEvidence, isCodexLocalFailure, isWorkdirFailureReason } from "./failure.js";
|
|
5
4
|
import { isStreamCapacityReason } from "./stream-limits.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"PROTOCOL_MODE_UNSUPPORTED",
|
|
9
|
-
"EXECUTION_PROTOCOL_MISMATCH",
|
|
10
|
-
"EXECUTION_IDENTITY_CONFLICT",
|
|
11
|
-
"NATIVE_METHOD_UNSUPPORTED",
|
|
12
|
-
"NATIVE_RESPONSE_INVALID",
|
|
13
|
-
"INTERACTION_NOT_ACTIVE",
|
|
14
|
-
"INVALID_QUESTION_RESPONSE",
|
|
15
|
-
"ASYNC_ANSWER_REJECTED",
|
|
16
|
-
"OPERATION_OUTCOME_UNKNOWN",
|
|
17
|
-
"HOST_EXECUTION_FAILED",
|
|
18
|
-
"HOST_ENDED_WITHOUT_TERMINAL",
|
|
19
|
-
"PROVIDER_MESSAGE_TOO_LARGE",
|
|
20
|
-
"HOST_FRAME_TOO_LARGE",
|
|
21
|
-
"STREAM_QUEUE_ITEM_TOO_LARGE",
|
|
22
|
-
"STREAM_QUEUE_BYTES_EXCEEDED",
|
|
23
|
-
"STREAM_QUEUE_ITEMS_EXCEEDED",
|
|
24
|
-
"STREAM_GAP",
|
|
25
|
-
"STREAM_EXPIRED",
|
|
26
|
-
"REMOTE_NATIVE_UNSUPPORTED",
|
|
27
|
-
"HOST_FRAME_INVALID",
|
|
28
|
-
"HOST_CONTROL_INVALID",
|
|
29
|
-
"HOST_RECEIPT_INVALID",
|
|
30
|
-
"PROTOCOL_SUPPORT_INVALID"
|
|
31
|
-
];
|
|
5
|
+
import { RUN_PROTOCOL_ERRORS } from "./generated/protocol-types.js";
|
|
6
|
+
export { RUN_PROTOCOL_ERRORS } from "./generated/protocol-types.js";
|
|
32
7
|
export function protocolError(code, message = code) {
|
|
33
8
|
return Object.assign(new Error(message), { code });
|
|
34
9
|
}
|
|
@@ -98,17 +73,6 @@ export function assertHostControl(value) {
|
|
|
98
73
|
assertProtocolJson(value, "HOST_CONTROL_INVALID");
|
|
99
74
|
if (!isRecord(value))
|
|
100
75
|
throw protocolError("HOST_CONTROL_INVALID");
|
|
101
|
-
if (value.type === "evidence" &&
|
|
102
|
-
value.name === "execution" &&
|
|
103
|
-
exactKeys(value, ["type", "name", "payload"])) {
|
|
104
|
-
try {
|
|
105
|
-
assertExecutionEvidence(value.payload);
|
|
106
|
-
}
|
|
107
|
-
catch {
|
|
108
|
-
throw protocolError("HOST_CONTROL_INVALID");
|
|
109
|
-
}
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
76
|
if (value.type === "evidence" &&
|
|
113
77
|
exactKeys(value, ["type", "name", "payload"]) &&
|
|
114
78
|
value.name === "session" &&
|
|
@@ -129,7 +93,8 @@ export function assertHostControl(value) {
|
|
|
129
93
|
const evidence = safeCapacityEvidence(value.failure.params);
|
|
130
94
|
const localCodex = value.code === "HOST_EXECUTION_FAILED" && isCodexLocalFailure(value.failure);
|
|
131
95
|
if ((!localCodex &&
|
|
132
|
-
(!isStreamCapacityReason(value.code)
|
|
96
|
+
((!isStreamCapacityReason(value.code) && !isWorkdirFailureReason(value.code)) ||
|
|
97
|
+
value.failure.reasonCode !== value.code)) ||
|
|
133
98
|
!exactKeys(value.failure, [
|
|
134
99
|
"schemaVersion",
|
|
135
100
|
"code",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KERNEL_IPC_VERSION } from "./generated/protocol-types.js";
|
|
1
2
|
const record = (value) => {
|
|
2
3
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
3
4
|
throw new TypeError("INVALID_KERNEL_STATUS");
|
|
@@ -50,7 +51,7 @@ export function assertKernelStatus(value) {
|
|
|
50
51
|
"execution_ready",
|
|
51
52
|
"service_processes"
|
|
52
53
|
].includes(key)) ||
|
|
53
|
-
item.ipc_version !==
|
|
54
|
+
item.ipc_version !== KERNEL_IPC_VERSION ||
|
|
54
55
|
typeof item.kernel_instance_id !== "string" ||
|
|
55
56
|
!item.kernel_instance_id ||
|
|
56
57
|
!positive(item.pid) ||
|
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.14",
|
|
4
4
|
"description": "Provider-neutral Agent runtime for unified execution through provider adapters",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,15 +16,11 @@
|
|
|
16
16
|
"octo-runtime": "apps/cli/dist/index.js"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
|
-
"./
|
|
20
|
-
"types": "./dist/public/
|
|
21
|
-
"import": "./dist/public/
|
|
19
|
+
"./adapter-sdk": {
|
|
20
|
+
"types": "./dist/public/adapter-sdk.d.ts",
|
|
21
|
+
"import": "./dist/public/adapter-sdk.js"
|
|
22
22
|
},
|
|
23
|
-
"./
|
|
24
|
-
"types": "./dist/public/dsh.d.ts",
|
|
25
|
-
"import": "./dist/public/dsh.js"
|
|
26
|
-
},
|
|
27
|
-
"./executor-kernel/ipc-fixtures.json": "./packages/octo-runtime-protocol/schema/kernel-ipc-fixtures.json",
|
|
23
|
+
"./executor-kernel/ipc-fixtures.json": "./packages/octo-runtime-protocol/test/fixtures/kernel-ipc-fixtures.json",
|
|
28
24
|
"./protocol/schema.json": "./packages/octo-runtime-protocol/schema/protocol.schema.json",
|
|
29
25
|
"./executor-kernel/ipc-schema.json": "./packages/octo-runtime-protocol/schema/kernel-ipc.schema.json",
|
|
30
26
|
"./executor-kernel": {
|
|
@@ -50,7 +46,8 @@
|
|
|
50
46
|
"files": [
|
|
51
47
|
"apps",
|
|
52
48
|
"dist/public",
|
|
53
|
-
"packages/octo-runtime-protocol/schema/*.json",
|
|
49
|
+
"packages/octo-runtime-protocol/schema/*.schema.json",
|
|
50
|
+
"packages/octo-runtime-protocol/test/fixtures/kernel-ipc-fixtures.json",
|
|
54
51
|
"LICENSE",
|
|
55
52
|
"NOTICE"
|
|
56
53
|
],
|
|
@@ -58,45 +55,45 @@
|
|
|
58
55
|
"access": "public"
|
|
59
56
|
},
|
|
60
57
|
"dependencies": {
|
|
61
|
-
"@mininglamp-oss/octo-runtime-
|
|
62
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
58
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.14",
|
|
59
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.14",
|
|
60
|
+
"import-meta-resolve": "4.2.0",
|
|
61
|
+
"@mininglamp-oss/octo-runtime-client": "1.1.14",
|
|
63
62
|
"commander": "15.0.0",
|
|
64
|
-
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.
|
|
63
|
+
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.14",
|
|
65
64
|
"semver": "7.8.6",
|
|
66
|
-
"@mininglamp-oss/octo-runtime-adapter-
|
|
67
|
-
"
|
|
68
|
-
"@mininglamp-oss/octo-runtime-adapter-
|
|
69
|
-
"@mininglamp-oss/octo-runtime-
|
|
70
|
-
"@mininglamp-oss/octo-runtime-adapter-
|
|
71
|
-
"@mininglamp-oss/octo-runtime-adapter-
|
|
72
|
-
"@mininglamp-oss/octo-runtime-adapter-
|
|
73
|
-
"@mininglamp-oss/octo-runtime-adapter-
|
|
74
|
-
"@mininglamp-oss/octo-runtime-
|
|
75
|
-
"@mininglamp-oss/octo-runtime-
|
|
76
|
-
"@mininglamp-oss/octo-runtime-
|
|
77
|
-
"@mininglamp-oss/octo-runtime-
|
|
78
|
-
"@mininglamp-oss/octo-runtime-adapter-
|
|
79
|
-
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.12",
|
|
80
|
-
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.12",
|
|
65
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.14",
|
|
66
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.14",
|
|
67
|
+
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.14",
|
|
68
|
+
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.14",
|
|
69
|
+
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.14",
|
|
70
|
+
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.14",
|
|
71
|
+
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.14",
|
|
72
|
+
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.14",
|
|
73
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.14",
|
|
74
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.14",
|
|
75
|
+
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.14",
|
|
76
|
+
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.14",
|
|
77
|
+
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.14",
|
|
81
78
|
"ws": "8.22.1",
|
|
82
|
-
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.
|
|
83
|
-
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.
|
|
84
|
-
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.
|
|
85
|
-
"@mininglamp-oss/octo-runtime-cross-service": "1.1.
|
|
79
|
+
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.14",
|
|
80
|
+
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.14",
|
|
81
|
+
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.14",
|
|
82
|
+
"@mininglamp-oss/octo-runtime-cross-service": "1.1.14",
|
|
86
83
|
"iconv-lite": "0.7.3",
|
|
87
84
|
"safer-buffer": "2.1.2",
|
|
88
|
-
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.
|
|
89
|
-
"@mininglamp-oss/octo-runtime-cli": "1.1.
|
|
85
|
+
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.14",
|
|
86
|
+
"@mininglamp-oss/octo-runtime-cli": "1.1.14",
|
|
90
87
|
"json5": "2.2.3"
|
|
91
88
|
},
|
|
92
89
|
"bundleDependencies": [
|
|
93
|
-
"@mininglamp-oss/octo-runtime-
|
|
90
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk",
|
|
94
91
|
"@mininglamp-oss/octo-runtime-protocol",
|
|
92
|
+
"import-meta-resolve",
|
|
93
|
+
"@mininglamp-oss/octo-runtime-client",
|
|
95
94
|
"commander",
|
|
96
95
|
"@mininglamp-oss/octo-runtime-adapter-dsh",
|
|
97
96
|
"semver",
|
|
98
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk",
|
|
99
|
-
"import-meta-resolve",
|
|
100
97
|
"@mininglamp-oss/octo-runtime-adapter-acp",
|
|
101
98
|
"@mininglamp-oss/octo-runtime-acp-client",
|
|
102
99
|
"@mininglamp-oss/octo-runtime-adapter-antigravity",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "urn:mininglamp-oss:octo-runtime:kernel-ipc:
|
|
4
|
-
"title": "Kernel IPC
|
|
3
|
+
"$id": "urn:mininglamp-oss:octo-runtime:kernel-ipc:v2",
|
|
4
|
+
"title": "Kernel IPC v2",
|
|
5
5
|
"description": "One UTF-8 LF-terminated JSON-RPC request per local connection. No batches. Closing a connection never cancels execution. Source sequence numbers belong to the Kernel instance. Receipts and events retain the original Run protocol identities.",
|
|
6
6
|
"definitions": {
|
|
7
7
|
"Request": {
|
|
@@ -433,106 +433,5 @@
|
|
|
433
433
|
"description": "Open error namespace; preserve unknown codes and data."
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
|
-
"$ref": "#/definitions/Request"
|
|
437
|
-
"x-octo-methods": [
|
|
438
|
-
{
|
|
439
|
-
"method": "status",
|
|
440
|
-
"name": "Status",
|
|
441
|
-
"params": {
|
|
442
|
-
"$ref": "#/definitions/EmptyParams"
|
|
443
|
-
},
|
|
444
|
-
"result": {
|
|
445
|
-
"$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelStatus"
|
|
446
|
-
},
|
|
447
|
-
"stream": false,
|
|
448
|
-
"sideEffect": false
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"method": "adapter.list",
|
|
452
|
-
"name": "List",
|
|
453
|
-
"params": {
|
|
454
|
-
"$ref": "#/definitions/EmptyParams"
|
|
455
|
-
},
|
|
456
|
-
"result": {
|
|
457
|
-
"type": "array",
|
|
458
|
-
"items": {
|
|
459
|
-
"$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/HostedAdapterMetadataWire"
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
"stream": false,
|
|
463
|
-
"sideEffect": false
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"method": "agent_run.invoke",
|
|
467
|
-
"name": "Submit",
|
|
468
|
-
"params": {
|
|
469
|
-
"$ref": "#/definitions/InvokeParams"
|
|
470
|
-
},
|
|
471
|
-
"result": {
|
|
472
|
-
"$ref": "#/definitions/InvokeResult"
|
|
473
|
-
},
|
|
474
|
-
"stream": false,
|
|
475
|
-
"sideEffect": true
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"method": "agent_run.get",
|
|
479
|
-
"name": "Get",
|
|
480
|
-
"params": {
|
|
481
|
-
"$ref": "#/definitions/GetParams"
|
|
482
|
-
},
|
|
483
|
-
"result": {
|
|
484
|
-
"$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunSnapshot"
|
|
485
|
-
},
|
|
486
|
-
"stream": false,
|
|
487
|
-
"sideEffect": false
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"method": "agent_run.subscribe",
|
|
491
|
-
"name": "Subscribe",
|
|
492
|
-
"params": {
|
|
493
|
-
"$ref": "#/definitions/SubscribeParams"
|
|
494
|
-
},
|
|
495
|
-
"result": {
|
|
496
|
-
"$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunSnapshot"
|
|
497
|
-
},
|
|
498
|
-
"stream": true,
|
|
499
|
-
"sideEffect": false
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"method": "agent_run.cancel",
|
|
503
|
-
"name": "Cancel",
|
|
504
|
-
"params": {
|
|
505
|
-
"$ref": "#/definitions/CancelParams"
|
|
506
|
-
},
|
|
507
|
-
"result": {
|
|
508
|
-
"$ref": "#/definitions/CancelResult"
|
|
509
|
-
},
|
|
510
|
-
"stream": false,
|
|
511
|
-
"sideEffect": true
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"method": "agent_run.respond",
|
|
515
|
-
"name": "Respond",
|
|
516
|
-
"params": {
|
|
517
|
-
"$ref": "#/definitions/RespondParams"
|
|
518
|
-
},
|
|
519
|
-
"result": {
|
|
520
|
-
"$ref": "#/definitions/EmptyResult"
|
|
521
|
-
},
|
|
522
|
-
"stream": false,
|
|
523
|
-
"sideEffect": true
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"method": "agent_run.native.respond",
|
|
527
|
-
"name": "RespondNative",
|
|
528
|
-
"params": {
|
|
529
|
-
"$ref": "#/definitions/RespondNativeParams"
|
|
530
|
-
},
|
|
531
|
-
"result": {
|
|
532
|
-
"$ref": "#/definitions/EmptyResult"
|
|
533
|
-
},
|
|
534
|
-
"stream": false,
|
|
535
|
-
"sideEffect": true
|
|
536
|
-
}
|
|
537
|
-
]
|
|
436
|
+
"$ref": "#/definitions/Request"
|
|
538
437
|
}
|