@mininglamp-oss/octo-runtime 1.1.9 → 1.1.11
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 +2 -2
- package/apps/cli/README.md +1 -1
- package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.d.ts → apps/cli/dist/adapter-configuration.d.ts} +1 -0
- package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.js → apps/cli/dist/adapter-configuration.js} +1 -0
- package/apps/cli/dist/adapter-configurations.d.ts +1 -1
- package/apps/cli/dist/adapter-configurations.js +1 -1
- package/apps/cli/dist/adapters.d.ts +7 -0
- package/apps/cli/dist/adapters.js +77 -0
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/command-tree.js +2 -3
- package/apps/cli/dist/extras.js +11 -1
- package/apps/cli/dist/help.js +1 -1
- package/apps/cli/dist/index.js +18 -1
- package/apps/cli/dist/main.d.ts +2 -0
- package/apps/cli/dist/main.js +67 -34
- package/apps/cli/dist/manifest.json +0 -5
- package/apps/cli/dist/module-manifest.js +21 -3
- package/apps/cli/dist/output.d.ts +19 -1
- package/apps/cli/dist/output.js +180 -33
- package/apps/cli/dist/playboard-interrupt.d.ts +6 -0
- package/apps/cli/dist/playboard-interrupt.js +86 -0
- package/apps/cli/dist/playboard.d.ts +2 -0
- package/apps/cli/dist/playboard.js +10 -11
- package/apps/cli/dist/state.d.ts +5 -2
- package/apps/cli/dist/state.js +48 -13
- package/dist/public/codex.d.ts +1 -0
- package/dist/public/codex.js +1 -0
- package/dist/public/executor-kernel.d.ts +4 -1
- package/dist/public/executor-kernel.js +2 -1
- package/dist/public/extra.d.ts +1 -1
- package/dist/public/host.d.ts +5 -0
- package/dist/public/host.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +20 -0
- 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 +6 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +68 -253
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +11 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +198 -52
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +58 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +650 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.js +15 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- 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/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +2 -0
- 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/activity.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +25 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/reasoning.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +12 -30
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.js +125 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +77 -0
- 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 +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +11 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +18 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +67 -34
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +21 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +19 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +180 -33
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.js +86 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +10 -11
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.d.ts +5 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.js +48 -13
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +23 -24
- package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +30 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +199 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +465 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.js +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.d.ts +59 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +287 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.d.ts +21 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.js +138 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.d.ts +8 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +65 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.d.ts +82 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.js +371 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +23 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +72 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +54 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +1219 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +5988 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +56 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc-fixtures.json +53 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +538 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +116 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +4525 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +761 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +663 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +191 -0
- 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 +29 -21
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +173 -14
- 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 +1 -30
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.js +2 -199
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +1 -8
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -444
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/endpoint.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.d.ts +17 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.js +21 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +11 -9
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +14 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +5 -7
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +6 -7
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.d.ts +1 -53
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.js +2 -280
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.d.ts +14 -13
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +84 -187
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.d.ts +5 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.js +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.d.ts +20 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.js +180 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -8
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +75 -45
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +9 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +60 -5
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.js +18 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +1 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +2 -23
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.d.ts +2 -72
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.js +2 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +2 -2
- 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/extra.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-BVxePruX.js → index-BLMf2Etg.js} +1 -3
- 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/endpoint.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +12 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.d.ts +5 -1
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.js +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.d.ts +44 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.js +207 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +23 -3
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +27 -4
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +133 -25
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +10 -3
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +18 -4
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.d.ts +5 -6
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.js +33 -45
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/identity.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +5 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +19 -15
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +65 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/package.json +33 -29
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +42 -36
- package/apps/cli/dist/worker.js +0 -18
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.d.ts +0 -63
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.js +0 -846
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +0 -54
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.js +0 -154
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.js +0 -18
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.js +0 -59
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.js +0 -88
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.js +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +0 -42
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +0 -292
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.d.ts +0 -64
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.js +0 -674
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.js +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.js +0 -96
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +0 -279
- /package/{apps/cli/dist/worker.d.ts → node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.js} +0 -0
- /package/node_modules/@mininglamp-oss/{octo-runtime-cli/dist/worker.d.ts → octo-runtime-protocol/dist/adapter-metadata.js} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
export type { HostedAdapterMetadata } from "./adapter-metadata.js";
|
|
1
2
|
export { assertAsyncQuestions, assertQuestionRequest, assertQuestionResponse, questionAnswerText } from "./questions.js";
|
|
2
3
|
export type { AsyncUserInputQuestion, AsyncQuestionReplySnapshot, QuestionRequest, QuestionResponse } from "./generated/protocol-types.js";
|
|
3
4
|
export { assertJsonByteLimit } from "./json-size.js";
|
|
4
5
|
export { INVOKE_REQUEST_MAX_BYTES, assertInvokeRequestSize } from "./invoke-size.js";
|
|
5
6
|
export * from "./stream-limits.js";
|
|
7
|
+
export { assertKernelStatus, assertServiceProcessSnapshot } from "./service-processes.js";
|
|
6
8
|
export * from "./run-protocol.js";
|
|
7
|
-
export type { KernelLookupKey, KernelRunRef, KernelRunSnapshot, KernelStatus } from "./generated/protocol-types.js";
|
|
9
|
+
export type { KernelLookupKey, KernelRunRef, KernelRunSnapshot, KernelStatus, ServiceProcessSnapshot } from "./generated/protocol-types.js";
|
|
8
10
|
export * from "./invoke-input.js";
|
|
9
11
|
export * from "./model-context.js";
|
|
10
12
|
export * from "./execution-plan.js";
|
|
@@ -5,6 +5,7 @@ import { assertSessionName } from "./invoke-input.js";
|
|
|
5
5
|
export { assertJsonByteLimit } from "./json-size.js";
|
|
6
6
|
export { INVOKE_REQUEST_MAX_BYTES, assertInvokeRequestSize } from "./invoke-size.js";
|
|
7
7
|
export * from "./stream-limits.js";
|
|
8
|
+
export { assertKernelStatus, assertServiceProcessSnapshot } from "./service-processes.js";
|
|
8
9
|
export * from "./run-protocol.js";
|
|
9
10
|
export * from "./invoke-input.js";
|
|
10
11
|
export * from "./model-context.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { KernelStatus, ServiceProcessSnapshot } from "./generated/protocol-types.js";
|
|
2
|
+
/** status 的安全进程白名单与共享 Schema 对齐,拒绝任意 argv/env 扩展字段。 */
|
|
3
|
+
export declare function assertServiceProcessSnapshot(value: unknown): asserts value is ServiceProcessSnapshot;
|
|
4
|
+
/** 兼容没有服务快照的旧 status;有快照时完整校验后才能交给 doctor。 */
|
|
5
|
+
export declare function assertKernelStatus(value: unknown): asserts value is KernelStatus;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const record = (value) => {
|
|
2
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
3
|
+
throw new TypeError("INVALID_KERNEL_STATUS");
|
|
4
|
+
return value;
|
|
5
|
+
};
|
|
6
|
+
const positive = (value) => typeof value === "number" && Number.isSafeInteger(value) && value > 0;
|
|
7
|
+
/** status 的安全进程白名单与共享 Schema 对齐,拒绝任意 argv/env 扩展字段。 */
|
|
8
|
+
export function assertServiceProcessSnapshot(value) {
|
|
9
|
+
const item = record(value);
|
|
10
|
+
if (Object.keys(item).some((key) => ![
|
|
11
|
+
"scope_id",
|
|
12
|
+
"service_id",
|
|
13
|
+
"incarnation",
|
|
14
|
+
"provider",
|
|
15
|
+
"owner_pid",
|
|
16
|
+
"pid",
|
|
17
|
+
"state",
|
|
18
|
+
"observation",
|
|
19
|
+
"ownership"
|
|
20
|
+
].includes(key)) ||
|
|
21
|
+
["scope_id", "service_id", "provider"].some((key) => typeof item[key] !== "string" || !item[key].length) ||
|
|
22
|
+
typeof item.incarnation !== "number" ||
|
|
23
|
+
!Number.isSafeInteger(item.incarnation) ||
|
|
24
|
+
item.incarnation < 0 ||
|
|
25
|
+
!positive(item.owner_pid) ||
|
|
26
|
+
(item.pid !== undefined && !positive(item.pid)) ||
|
|
27
|
+
typeof item.state !== "string" ||
|
|
28
|
+
![
|
|
29
|
+
"not_started",
|
|
30
|
+
"starting",
|
|
31
|
+
"ready",
|
|
32
|
+
"recovering",
|
|
33
|
+
"degraded",
|
|
34
|
+
"closing",
|
|
35
|
+
"closed",
|
|
36
|
+
"cleanup_incomplete"
|
|
37
|
+
].includes(item.state) ||
|
|
38
|
+
typeof item.observation !== "string" ||
|
|
39
|
+
!["alive", "exited", "unknown"].includes(item.observation) ||
|
|
40
|
+
item.ownership !== "owned")
|
|
41
|
+
throw new TypeError("INVALID_KERNEL_STATUS");
|
|
42
|
+
}
|
|
43
|
+
/** 兼容没有服务快照的旧 status;有快照时完整校验后才能交给 doctor。 */
|
|
44
|
+
export function assertKernelStatus(value) {
|
|
45
|
+
const item = record(value);
|
|
46
|
+
if (Object.keys(item).some((key) => ![
|
|
47
|
+
"ipc_version",
|
|
48
|
+
"kernel_instance_id",
|
|
49
|
+
"pid",
|
|
50
|
+
"execution_ready",
|
|
51
|
+
"service_processes"
|
|
52
|
+
].includes(key)) ||
|
|
53
|
+
item.ipc_version !== 1 ||
|
|
54
|
+
typeof item.kernel_instance_id !== "string" ||
|
|
55
|
+
!item.kernel_instance_id ||
|
|
56
|
+
!positive(item.pid) ||
|
|
57
|
+
typeof item.execution_ready !== "boolean")
|
|
58
|
+
throw new TypeError("INVALID_KERNEL_STATUS");
|
|
59
|
+
if (item.service_processes !== undefined) {
|
|
60
|
+
if (!Array.isArray(item.service_processes) || item.service_processes.length > 256)
|
|
61
|
+
throw new TypeError("INVALID_KERNEL_STATUS");
|
|
62
|
+
for (const process of item.service_processes)
|
|
63
|
+
assertServiceProcessSnapshot(process);
|
|
64
|
+
}
|
|
65
|
+
}
|
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.11",
|
|
4
4
|
"description": "Provider-neutral Agent runtime for unified execution through provider adapters",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"octo-runtime": "apps/cli/dist/index.js"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
|
+
"./adapters/codex": {
|
|
20
|
+
"types": "./dist/public/codex.d.ts",
|
|
21
|
+
"import": "./dist/public/codex.js"
|
|
22
|
+
},
|
|
19
23
|
"./adapters/dsh": {
|
|
20
24
|
"types": "./dist/public/dsh.d.ts",
|
|
21
25
|
"import": "./dist/public/dsh.js"
|
|
@@ -86,33 +90,33 @@
|
|
|
86
90
|
"access": "public"
|
|
87
91
|
},
|
|
88
92
|
"dependencies": {
|
|
93
|
+
"@mininglamp-oss/octo-runtime-client": "1.1.11",
|
|
94
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.11",
|
|
89
95
|
"commander": "15.0.0",
|
|
90
|
-
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.
|
|
96
|
+
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.11",
|
|
91
97
|
"semver": "7.8.5",
|
|
92
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
93
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.9",
|
|
98
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.11",
|
|
94
99
|
"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.
|
|
100
|
+
"@mininglamp-oss/octo-runtime-extra-webui": "1.1.11",
|
|
101
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.11",
|
|
102
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.11",
|
|
103
|
+
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.11",
|
|
104
|
+
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.11",
|
|
105
|
+
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.11",
|
|
106
|
+
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.11",
|
|
107
|
+
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.11",
|
|
108
|
+
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.11",
|
|
109
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.11",
|
|
110
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.11",
|
|
111
|
+
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.11",
|
|
112
|
+
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.11",
|
|
113
|
+
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.11",
|
|
109
114
|
"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-
|
|
114
|
-
"@mininglamp-oss/octo-runtime-
|
|
115
|
-
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.9",
|
|
115
|
+
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.11",
|
|
116
|
+
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.11",
|
|
117
|
+
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.11",
|
|
118
|
+
"@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.11",
|
|
119
|
+
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.11",
|
|
116
120
|
"mdast-util-from-markdown": "2.1.0",
|
|
117
121
|
"@types/mdast": "4.0.4",
|
|
118
122
|
"@types/unist": "3.0.3",
|
|
@@ -148,19 +152,20 @@
|
|
|
148
152
|
"micromark-util-sanitize-uri": "2.0.1",
|
|
149
153
|
"micromark-util-decode-string": "2.0.1",
|
|
150
154
|
"unist-util-stringify-position": "4.0.0",
|
|
151
|
-
"@mininglamp-oss/octo-runtime-cross-service": "1.1.
|
|
155
|
+
"@mininglamp-oss/octo-runtime-cross-service": "1.1.11",
|
|
152
156
|
"iconv-lite": "0.7.3",
|
|
153
157
|
"safer-buffer": "2.1.2",
|
|
154
|
-
"@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.
|
|
155
|
-
"@mininglamp-oss/octo-runtime-cli": "1.1.
|
|
158
|
+
"@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.11",
|
|
159
|
+
"@mininglamp-oss/octo-runtime-cli": "1.1.11",
|
|
156
160
|
"json5": "2.2.3"
|
|
157
161
|
},
|
|
158
162
|
"bundleDependencies": [
|
|
163
|
+
"@mininglamp-oss/octo-runtime-client",
|
|
164
|
+
"@mininglamp-oss/octo-runtime-protocol",
|
|
159
165
|
"commander",
|
|
160
166
|
"@mininglamp-oss/octo-runtime-adapter-dsh",
|
|
161
167
|
"semver",
|
|
162
168
|
"@mininglamp-oss/octo-runtime-adapter-sdk",
|
|
163
|
-
"@mininglamp-oss/octo-runtime-protocol",
|
|
164
169
|
"import-meta-resolve",
|
|
165
170
|
"@mininglamp-oss/octo-runtime-extra-webui",
|
|
166
171
|
"@mininglamp-oss/octo-runtime-adapter-acp",
|
|
@@ -180,7 +185,6 @@
|
|
|
180
185
|
"@mininglamp-oss/octo-runtime-adapter-opencode",
|
|
181
186
|
"@mininglamp-oss/octo-runtime-adapter-qodercli",
|
|
182
187
|
"@mininglamp-oss/octo-runtime-adapter-qoderclicn",
|
|
183
|
-
"@mininglamp-oss/octo-runtime-adapter-zcode-gui",
|
|
184
188
|
"@mininglamp-oss/octo-runtime-extra-channel-gateway",
|
|
185
189
|
"@mininglamp-oss/octo-runtime-host-sdk",
|
|
186
190
|
"mdast-util-from-markdown",
|
|
@@ -122,11 +122,48 @@
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
+
"ServiceProcessSnapshot": {
|
|
126
|
+
"title": "ServiceProcessSnapshot",
|
|
127
|
+
"type": "object",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"required": [
|
|
130
|
+
"scope_id",
|
|
131
|
+
"service_id",
|
|
132
|
+
"incarnation",
|
|
133
|
+
"provider",
|
|
134
|
+
"owner_pid",
|
|
135
|
+
"state",
|
|
136
|
+
"observation",
|
|
137
|
+
"ownership"
|
|
138
|
+
],
|
|
139
|
+
"properties": {
|
|
140
|
+
"scope_id": { "type": "string", "minLength": 1 },
|
|
141
|
+
"service_id": { "type": "string", "minLength": 1 },
|
|
142
|
+
"incarnation": { "type": "integer", "minimum": 0 },
|
|
143
|
+
"provider": { "type": "string", "minLength": 1 },
|
|
144
|
+
"owner_pid": { "type": "integer", "minimum": 1 },
|
|
145
|
+
"pid": { "type": "integer", "minimum": 1 },
|
|
146
|
+
"state": {
|
|
147
|
+
"enum": [
|
|
148
|
+
"not_started",
|
|
149
|
+
"starting",
|
|
150
|
+
"ready",
|
|
151
|
+
"recovering",
|
|
152
|
+
"degraded",
|
|
153
|
+
"closing",
|
|
154
|
+
"closed",
|
|
155
|
+
"cleanup_incomplete"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"observation": { "enum": ["alive", "exited", "unknown"] },
|
|
159
|
+
"ownership": { "const": "owned" }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
125
162
|
"KernelStatus": {
|
|
126
163
|
"title": "KernelStatus",
|
|
127
164
|
"type": "object",
|
|
128
165
|
"additionalProperties": false,
|
|
129
|
-
"required": ["ipc_version", "kernel_instance_id", "pid", "
|
|
166
|
+
"required": ["ipc_version", "kernel_instance_id", "pid", "execution_ready"],
|
|
130
167
|
"properties": {
|
|
131
168
|
"ipc_version": {
|
|
132
169
|
"const": 1
|
|
@@ -142,41 +179,10 @@
|
|
|
142
179
|
"execution_ready": {
|
|
143
180
|
"type": "boolean"
|
|
144
181
|
},
|
|
145
|
-
"
|
|
146
|
-
"type": "
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"properties": {
|
|
150
|
-
"pid": {
|
|
151
|
-
"type": "integer",
|
|
152
|
-
"minimum": 1
|
|
153
|
-
},
|
|
154
|
-
"generation": {
|
|
155
|
-
"type": "integer",
|
|
156
|
-
"minimum": 0
|
|
157
|
-
},
|
|
158
|
-
"restart_attempt": {
|
|
159
|
-
"type": "integer",
|
|
160
|
-
"minimum": 0
|
|
161
|
-
},
|
|
162
|
-
"recovery": {
|
|
163
|
-
"type": "object",
|
|
164
|
-
"additionalProperties": false,
|
|
165
|
-
"required": ["trigger", "stage", "code", "occurred_at"],
|
|
166
|
-
"properties": {
|
|
167
|
-
"trigger": { "enum": ["exit", "error", "heartbeat", "ipc"] },
|
|
168
|
-
"stage": { "enum": ["cleanup", "manifest", "starting", "backoff"] },
|
|
169
|
-
"code": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{0,95}$" },
|
|
170
|
-
"occurred_at": { "type": "string", "format": "date-time" },
|
|
171
|
-
"retry_at": { "type": "string", "format": "date-time" },
|
|
172
|
-
"exit_code": { "type": "integer" },
|
|
173
|
-
"signal": { "type": "string", "pattern": "^SIG[A-Z0-9]+$" }
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"state": {
|
|
177
|
-
"enum": ["starting", "ready", "recovering", "stopped", "exhausted"]
|
|
178
|
-
}
|
|
179
|
-
}
|
|
182
|
+
"service_processes": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"maxItems": 256,
|
|
185
|
+
"items": { "$ref": "#/definitions/ServiceProcessSnapshot" }
|
|
180
186
|
}
|
|
181
187
|
}
|
|
182
188
|
},
|
package/apps/cli/dist/worker.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// CLI 自有执行 worker。顶层 Kernel 仍由 CLI 调用进程创建;SDK 原生入口不使用此装配。
|
|
2
|
-
import { loadManifestAdapters } from "@mininglamp-oss/octo-runtime-executor-kernel/manifest-adapters";
|
|
3
|
-
import { serveWorker } from "@mininglamp-oss/octo-runtime-executor-kernel";
|
|
4
|
-
import { readExtraDirectory } from "@mininglamp-oss/octo-runtime-host-sdk";
|
|
5
|
-
import { dirname, join } from "node:path";
|
|
6
|
-
const adapters = await loadManifestAdapters();
|
|
7
|
-
// 旧显式清单允许省略 type;以所选实例真实类型判断,不猜包名,也不在父进程重复实例化。
|
|
8
|
-
if (adapters.some((adapter) => adapter.metadata.type === "openclaw")) {
|
|
9
|
-
const profileRoot = process.env.OCTO_RUNTIME_CLI_PROFILE_ROOT;
|
|
10
|
-
if (!profileRoot)
|
|
11
|
-
throw new Error("CLI_PROFILE_ROOT_REQUIRED");
|
|
12
|
-
const { initializeCliOpenClaw, syncCliOpenClawToolEnvironment } = await import("./openclaw.js");
|
|
13
|
-
await initializeCliOpenClaw(profileRoot);
|
|
14
|
-
if (process.env.OCTO_RUNTIME_CLI_SYNC_OPENCLAW_TOOLS === "1")
|
|
15
|
-
await syncCliOpenClawToolEnvironment(profileRoot, await readExtraDirectory(join(dirname(profileRoot), "extras")));
|
|
16
|
-
}
|
|
17
|
-
// 产品连接准备完成后才建立既有 list/probe 握手;所有实例仅交给唯一 Core 注册一次。
|
|
18
|
-
serveWorker(adapters);
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { type AcpApprovalBridge, type AdapterInvocationContext, type CanonicalEvent, type InvokeRequest } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
|
-
import { type ChildProcessWithoutNullStreams } from "node:child_process";
|
|
3
|
-
type JsonRecord = Record<string, unknown>;
|
|
4
|
-
interface ProcessExit {
|
|
5
|
-
code: number | null;
|
|
6
|
-
signal: NodeJS.Signals | null;
|
|
7
|
-
}
|
|
8
|
-
export interface ZcodeSessionEvent {
|
|
9
|
-
sessionId: string;
|
|
10
|
-
seq?: number;
|
|
11
|
-
type: string;
|
|
12
|
-
payload?: JsonRecord;
|
|
13
|
-
}
|
|
14
|
-
export interface ZcodeAppServerCommand {
|
|
15
|
-
command: string;
|
|
16
|
-
args: string[];
|
|
17
|
-
cwd: string;
|
|
18
|
-
env: NodeJS.ProcessEnv;
|
|
19
|
-
cleanup?: () => void | Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
export type ZcodeAppServerSpawn = (command: string, args: readonly string[], options: {
|
|
22
|
-
cwd: string;
|
|
23
|
-
env: NodeJS.ProcessEnv;
|
|
24
|
-
detached: boolean;
|
|
25
|
-
}) => ChildProcessWithoutNullStreams;
|
|
26
|
-
export declare class ZcodeAppServerRpcError extends Error {
|
|
27
|
-
readonly method: string;
|
|
28
|
-
readonly code: string | number;
|
|
29
|
-
readonly data?: unknown | undefined;
|
|
30
|
-
constructor(method: string, code: string | number, message: string, data?: unknown | undefined);
|
|
31
|
-
}
|
|
32
|
-
export declare class ZcodeAppServerProcessError extends Error {
|
|
33
|
-
readonly exit: ProcessExit;
|
|
34
|
-
constructor(message: string, exit: ProcessExit);
|
|
35
|
-
}
|
|
36
|
-
export interface NormalizerState {
|
|
37
|
-
stepId: string;
|
|
38
|
-
stepStarted: boolean;
|
|
39
|
-
stepFinished: boolean;
|
|
40
|
-
finalMessageStarted: boolean;
|
|
41
|
-
reasoningMessageStarted: boolean;
|
|
42
|
-
publicText: string;
|
|
43
|
-
tools: Map<string, {
|
|
44
|
-
name: string;
|
|
45
|
-
input: unknown;
|
|
46
|
-
terminal: boolean;
|
|
47
|
-
created: boolean;
|
|
48
|
-
}>;
|
|
49
|
-
}
|
|
50
|
-
export declare class ZcodeEventNormalizer {
|
|
51
|
-
#private;
|
|
52
|
-
constructor(runId: string);
|
|
53
|
-
normalize(event: ZcodeSessionEvent): CanonicalEvent[];
|
|
54
|
-
}
|
|
55
|
-
export declare function normalizeZcodeEvent(event: ZcodeSessionEvent, state: NormalizerState): CanonicalEvent[];
|
|
56
|
-
export declare function runZcodeAppServerTurn({ request, spec, spawnFn, context, approvalBridge }: {
|
|
57
|
-
request: InvokeRequest;
|
|
58
|
-
spec: ZcodeAppServerCommand;
|
|
59
|
-
context?: AdapterInvocationContext;
|
|
60
|
-
spawnFn?: ZcodeAppServerSpawn;
|
|
61
|
-
approvalBridge?: AcpApprovalBridge;
|
|
62
|
-
}): AsyncGenerator<CanonicalEvent>;
|
|
63
|
-
export {};
|