@mininglamp-oss/octo-runtime 1.1.11 → 1.1.13
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 +26 -142
- package/apps/cli/README.md +7 -102
- package/apps/cli/dist/adapters.d.ts +19 -1
- package/apps/cli/dist/adapters.js +153 -27
- 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/command-tree.d.ts +1 -13
- package/apps/cli/dist/command-tree.js +130 -316
- package/apps/cli/dist/foreground.d.ts +1 -2
- package/apps/cli/dist/help.d.ts +0 -1
- package/apps/cli/dist/help.js +2 -13
- package/apps/cli/dist/kernel.d.ts +4 -0
- package/apps/cli/dist/kernel.js +84 -0
- package/apps/cli/dist/logs.d.ts +2 -2
- package/apps/cli/dist/logs.js +14 -17
- package/apps/cli/dist/main.js +63 -180
- package/apps/cli/dist/manifest.json +33 -72
- package/apps/cli/dist/module-manifest.d.ts +1 -1
- package/apps/cli/dist/module-manifest.js +2 -3
- package/apps/cli/dist/openclaw.d.ts +0 -8
- package/apps/cli/dist/openclaw.js +2 -114
- package/apps/cli/dist/output.d.ts +1 -0
- package/apps/cli/dist/output.js +16 -23
- package/apps/cli/dist/playboard.js +32 -15
- 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/apps/cli/dist/service-control.js +0 -1
- package/dist/public/adapter-sdk.d.ts +2 -0
- package/dist/public/adapter-sdk.js +2 -0
- package/dist/public/host.d.ts +2 -4
- package/dist/public/host.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/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 +15 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +24 -28
- 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 +22 -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/index.d.ts +14 -68
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +60 -43
- 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 +29 -18
- 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 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +42 -35
- 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 +104 -216
- 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-R3PDZLX5.js → chunk-H3S6WM37.js} +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FGFEM7JP.js → chunk-RISQ6NGV.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-TSRZVLIG.js → chunk-SMTJTIN7.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.d.ts +4 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +15 -17
- 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 +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +14 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +23 -30
- 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 +48 -26
- 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 +16 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +15 -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 +16 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +14 -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 +16 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +15 -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 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +27 -29
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +4 -4
- 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 +109 -178
- 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 +16 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +15 -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 +16 -14
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +15 -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 +49 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +256 -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 +26 -13
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +117 -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/module-manifest.d.ts +1 -13
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.js +4 -27
- 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/dist/runtime-log-worker.js +4 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +6 -60
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +0 -83
- 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 +153 -27
- 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/command-tree.d.ts +1 -13
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +130 -316
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/foreground.d.ts +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +2 -13
- 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/logs.d.ts +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +14 -17
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +63 -180
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +33 -72
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.d.ts +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.js +2 -114
- 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 +16 -23
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +32 -15
- 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/dist/service-control.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -23
- package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +31 -20
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +80 -50
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +17 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +3 -15
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +19 -4
- package/node_modules/@mininglamp-oss/octo-runtime-client/{schema → fixtures}/kernel-ipc-fixtures.json +28 -6
- 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 +316 -1250
- 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 +28 -57
- 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 -78
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +5 -0
- 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 +18 -18
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +1 -7
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -18
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -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 -5
- 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 -2
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +3 -267
- 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 +17 -3
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +104 -373
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +32 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.js +20 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +6 -15
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +33 -178
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +23 -36
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +54 -45
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +1 -6
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +9 -17
- 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 -28
- 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/node_modules/semver/classes/range.js +2 -2
- package/node_modules/semver/internal/constants.js +30 -0
- package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
- package/node_modules/semver/package.json +1 -1
- package/node_modules/ws/README.md +21 -29
- package/node_modules/ws/lib/buffer-util.js +13 -2
- package/node_modules/ws/lib/sender.js +4 -1
- package/node_modules/ws/lib/websocket.js +8 -3
- package/node_modules/ws/package.json +1 -1
- package/package.json +37 -148
- package/packages/octo-runtime-protocol/schema/kernel-ipc.schema.json +3 -104
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +316 -1250
- package/packages/octo-runtime-protocol/{schema → test/fixtures}/kernel-ipc-fixtures.json +28 -6
- package/apps/cli/dist/extra-command-config.d.ts +0 -4
- package/apps/cli/dist/extra-command-config.js +0 -50
- package/apps/cli/dist/extra-commands.d.ts +0 -15
- package/apps/cli/dist/extra-commands.js +0 -275
- package/apps/cli/dist/extras.d.ts +0 -8
- package/apps/cli/dist/extras.js +0 -82
- package/apps/cli/dist/global-extras.d.ts +0 -16
- package/apps/cli/dist/global-extras.js +0 -201
- package/apps/cli/dist/status-output.d.ts +0 -10
- package/apps/cli/dist/status-output.js +0 -65
- package/dist/public/channel-gateway-commands.d.ts +0 -1
- package/dist/public/channel-gateway-commands.js +0 -1
- package/dist/public/channel-gateway.d.ts +0 -3
- package/dist/public/channel-gateway.js +0 -1
- package/dist/public/channel-wecom-commands.d.ts +0 -1
- package/dist/public/channel-wecom-commands.js +0 -1
- package/dist/public/channel-wecom.d.ts +0 -2
- package/dist/public/channel-wecom.js +0 -1
- 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/dist/public/extra.d.ts +0 -5
- package/dist/public/extra.js +0 -3
- package/dist/public/webui-commands.d.ts +0 -1
- package/dist/public/webui-commands.js +0 -1
- package/dist/public/webui.d.ts +0 -1
- package/dist/public/webui.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.js +0 -50
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.js +0 -275
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.d.ts +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +0 -82
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.js +0 -201
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.js +0 -65
- 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-executor-core/dist/model-input.d.ts +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +0 -62
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +0 -50
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +0 -140
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +0 -27
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.d.ts +0 -17
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.js +0 -123
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +0 -1489
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +0 -28
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +0 -77
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +0 -71
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.js +0 -153
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +0 -28
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.js +0 -124
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +0 -172
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +0 -22
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +0 -46
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +0 -285
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +0 -109
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +0 -36
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +0 -98
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +0 -17
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +0 -238
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +0 -29
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +0 -171
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +0 -44
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +0 -392
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +0 -27
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +0 -87
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.js +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.d.ts +0 -9
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +0 -162
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.js +0 -154
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +0 -34
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +0 -67
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +0 -588
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.js +0 -83
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +0 -132
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +0 -226
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +0 -65
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +0 -202
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +0 -112
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +0 -138
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -48
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +0 -116
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.d.ts +0 -51
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.js +0 -79
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +0 -30
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +0 -222
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.d.ts +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +0 -92
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +0 -173
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.d.ts +0 -84
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +0 -110
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.d.ts +0 -87
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.js +0 -45
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.js +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +0 -23
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.js +0 -75
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +0 -22
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +0 -136
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.d.ts +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.js +0 -40
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +0 -70
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +0 -646
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +0 -17
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +0 -91
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +0 -18
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +0 -148
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +0 -257
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +0 -133
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +0 -21
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +0 -76
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +0 -163
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +0 -113
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -75
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.js +0 -117
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +0 -74
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +0 -19
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +0 -90
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +0 -85
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.d.ts +0 -34
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +0 -430
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.js +0 -63
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +0 -60
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +0 -9
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +0 -71
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +0 -44
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +0 -357
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +0 -33
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.d.ts +0 -11
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +0 -754
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +0 -35
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.js +0 -93
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.js +0 -128
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.d.ts +0 -78
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.js +0 -69
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.js +0 -95
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +0 -85
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.js +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.js +0 -109
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.js +0 -73
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +0 -24
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.d.ts +0 -45
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.js +0 -258
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.d.ts +0 -21
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +0 -124
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.d.ts +0 -53
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.js +0 -219
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.js +0 -52
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +0 -31
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/config-schema.json +0 -134
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.js +0 -51
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +0 -423
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.d.ts +0 -25
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.js +0 -130
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-BLMf2Etg.js +0 -73
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CYTpqItx.css +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +0 -28
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +0 -32
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +0 -165
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.d.ts +0 -44
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.js +0 -207
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.d.ts +0 -70
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.js +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +0 -154
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.js +0 -21
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +0 -45
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +0 -417
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +0 -62
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +0 -389
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.d.ts +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.js +0 -39
- 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/@types/debug/LICENSE +0 -21
- package/node_modules/@types/debug/README.md +0 -69
- package/node_modules/@types/debug/index.d.ts +0 -50
- package/node_modules/@types/debug/package.json +0 -58
- package/node_modules/@types/mdast/LICENSE +0 -21
- package/node_modules/@types/mdast/README.md +0 -15
- package/node_modules/@types/mdast/index.d.ts +0 -1123
- package/node_modules/@types/mdast/package.json +0 -47
- package/node_modules/@types/ms/LICENSE +0 -21
- package/node_modules/@types/ms/README.md +0 -82
- package/node_modules/@types/ms/index.d.ts +0 -63
- package/node_modules/@types/ms/package.json +0 -26
- package/node_modules/@types/unist/LICENSE +0 -21
- package/node_modules/@types/unist/README.md +0 -15
- package/node_modules/@types/unist/index.d.ts +0 -119
- package/node_modules/@types/unist/package.json +0 -60
- package/node_modules/character-entities/index.d.ts +0 -6
- package/node_modules/character-entities/index.js +0 -2132
- package/node_modules/character-entities/license +0 -22
- package/node_modules/character-entities/package.json +0 -78
- package/node_modules/character-entities/readme.md +0 -152
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -64
- package/node_modules/debug/src/browser.js +0 -272
- package/node_modules/debug/src/common.js +0 -292
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/decode-named-character-reference/index.d.ts +0 -13
- package/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
- package/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
- package/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
- package/node_modules/decode-named-character-reference/index.dom.js +0 -32
- package/node_modules/decode-named-character-reference/index.js +0 -19
- package/node_modules/decode-named-character-reference/license +0 -22
- package/node_modules/decode-named-character-reference/package.json +0 -90
- package/node_modules/decode-named-character-reference/readme.md +0 -136
- package/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/dequal/license +0 -21
- package/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/dequal/package.json +0 -57
- package/node_modules/dequal/readme.md +0 -112
- package/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/devlop/license +0 -22
- package/node_modules/devlop/package.json +0 -80
- package/node_modules/devlop/readme.md +0 -360
- package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1455
- package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -321
- package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1270
- package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -321
- package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/license +0 -22
- package/node_modules/mdast-util-from-markdown/package.json +0 -98
- package/node_modules/mdast-util-from-markdown/readme.md +0 -549
- package/node_modules/mdast-util-to-string/index.d.ts +0 -2
- package/node_modules/mdast-util-to-string/index.js +0 -5
- package/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
- package/node_modules/mdast-util-to-string/lib/index.js +0 -108
- package/node_modules/mdast-util-to-string/license +0 -22
- package/node_modules/mdast-util-to-string/package.json +0 -78
- package/node_modules/mdast-util-to-string/readme.md +0 -218
- package/node_modules/micromark/dev/index.d.ts +0 -82
- package/node_modules/micromark/dev/index.d.ts.map +0 -1
- package/node_modules/micromark/dev/index.js +0 -68
- package/node_modules/micromark/dev/lib/compile.d.ts +0 -16
- package/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/compile.js +0 -1162
- package/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
- package/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/constructs.js +0 -101
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/create-tokenizer.js +0 -718
- package/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
- package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/content.js +0 -99
- package/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
- package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/document.js +0 -449
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
- package/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
- package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/text.js +0 -248
- package/node_modules/micromark/dev/lib/parse.d.ts +0 -10
- package/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/parse.js +0 -58
- package/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
- package/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/postprocess.js +0 -19
- package/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
- package/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/preprocess.js +0 -139
- package/node_modules/micromark/dev/stream.d.ts +0 -35
- package/node_modules/micromark/dev/stream.d.ts.map +0 -1
- package/node_modules/micromark/dev/stream.js +0 -270
- package/node_modules/micromark/index.d.ts +0 -82
- package/node_modules/micromark/index.d.ts.map +0 -1
- package/node_modules/micromark/index.js +0 -60
- package/node_modules/micromark/lib/compile.d.ts +0 -16
- package/node_modules/micromark/lib/compile.d.ts.map +0 -1
- package/node_modules/micromark/lib/compile.js +0 -1068
- package/node_modules/micromark/lib/constructs.d.ts +0 -73
- package/node_modules/micromark/lib/constructs.d.ts.map +0 -1
- package/node_modules/micromark/lib/constructs.js +0 -85
- package/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/micromark/lib/create-tokenizer.js +0 -613
- package/node_modules/micromark/lib/initialize/content.d.ts +0 -4
- package/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/content.js +0 -79
- package/node_modules/micromark/lib/initialize/document.d.ts +0 -10
- package/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/document.js +0 -370
- package/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
- package/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/flow.js +0 -58
- package/node_modules/micromark/lib/initialize/text.d.ts +0 -8
- package/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/text.js +0 -216
- package/node_modules/micromark/lib/parse.d.ts +0 -10
- package/node_modules/micromark/lib/parse.d.ts.map +0 -1
- package/node_modules/micromark/lib/parse.js +0 -56
- package/node_modules/micromark/lib/postprocess.d.ts +0 -9
- package/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
- package/node_modules/micromark/lib/postprocess.js +0 -18
- package/node_modules/micromark/lib/preprocess.d.ts +0 -13
- package/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
- package/node_modules/micromark/lib/preprocess.js +0 -112
- package/node_modules/micromark/license +0 -22
- package/node_modules/micromark/package.json +0 -87
- package/node_modules/micromark/readme.md +0 -488
- package/node_modules/micromark/stream.d.ts +0 -35
- package/node_modules/micromark/stream.d.ts.map +0 -1
- package/node_modules/micromark/stream.js +0 -256
- package/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
- package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/index.js +0 -22
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -294
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -472
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -178
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -229
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -938
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -658
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -119
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -71
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +0 -67
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -213
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
- package/node_modules/micromark-core-commonmark/index.d.ts +0 -23
- package/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/index.js +0 -22
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/attention.js +0 -231
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -422
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -159
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
- package/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
- package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/content.js +0 -163
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -191
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -827
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/label-end.js +0 -561
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -110
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -63
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
- package/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/list.js +0 -213
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +0 -61
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -187
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
- package/node_modules/micromark-core-commonmark/license +0 -22
- package/node_modules/micromark-core-commonmark/package.json +0 -62
- package/node_modules/micromark-core-commonmark/readme.md +0 -171
- package/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
- package/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-destination/dev/index.js +0 -255
- package/node_modules/micromark-factory-destination/index.d.ts +0 -42
- package/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-destination/index.js +0 -206
- package/node_modules/micromark-factory-destination/license +0 -22
- package/node_modules/micromark-factory-destination/package.json +0 -57
- package/node_modules/micromark-factory-destination/readme.md +0 -234
- package/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
- package/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-label/dev/index.js +0 -172
- package/node_modules/micromark-factory-label/index.d.ts +0 -37
- package/node_modules/micromark-factory-label/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-label/index.js +0 -148
- package/node_modules/micromark-factory-label/license +0 -22
- package/node_modules/micromark-factory-label/package.json +0 -60
- package/node_modules/micromark-factory-label/readme.md +0 -224
- package/node_modules/micromark-factory-space/dev/index.d.ts +0 -60
- package/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-space/dev/index.js +0 -122
- package/node_modules/micromark-factory-space/index.d.ts +0 -60
- package/node_modules/micromark-factory-space/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-space/index.js +0 -116
- package/node_modules/micromark-factory-space/license +0 -22
- package/node_modules/micromark-factory-space/package.json +0 -46
- package/node_modules/micromark-factory-space/readme.md +0 -225
- package/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
- package/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-title/dev/index.js +0 -169
- package/node_modules/micromark-factory-title/index.d.ts +0 -36
- package/node_modules/micromark-factory-title/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-title/index.js +0 -158
- package/node_modules/micromark-factory-title/license +0 -22
- package/node_modules/micromark-factory-title/package.json +0 -58
- package/node_modules/micromark-factory-title/readme.md +0 -229
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
- package/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
- package/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-whitespace/index.js +0 -44
- package/node_modules/micromark-factory-whitespace/license +0 -22
- package/node_modules/micromark-factory-whitespace/package.json +0 -57
- package/node_modules/micromark-factory-whitespace/readme.md +0 -205
- package/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/micromark-util-character/license +0 -22
- package/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
- package/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-chunked/dev/index.js +0 -89
- package/node_modules/micromark-util-chunked/index.d.ts +0 -41
- package/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
- package/node_modules/micromark-util-chunked/index.js +0 -81
- package/node_modules/micromark-util-chunked/license +0 -22
- package/node_modules/micromark-util-chunked/package.json +0 -57
- package/node_modules/micromark-util-chunked/readme.md +0 -219
- package/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
- package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-classify-character/dev/index.js +0 -38
- package/node_modules/micromark-util-classify-character/index.d.ts +0 -18
- package/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
- package/node_modules/micromark-util-classify-character/index.js +0 -27
- package/node_modules/micromark-util-classify-character/license +0 -22
- package/node_modules/micromark-util-classify-character/package.json +0 -59
- package/node_modules/micromark-util-classify-character/readme.md +0 -205
- package/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
- package/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
- package/node_modules/micromark-util-combine-extensions/index.js +0 -143
- package/node_modules/micromark-util-combine-extensions/license +0 -22
- package/node_modules/micromark-util-combine-extensions/package.json +0 -52
- package/node_modules/micromark-util-combine-extensions/readme.md +0 -201
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
- package/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
- package/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
- package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
- package/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
- package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-string/dev/index.js +0 -53
- package/node_modules/micromark-util-decode-string/index.d.ts +0 -14
- package/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-string/index.js +0 -45
- package/node_modules/micromark-util-decode-string/license +0 -22
- package/node_modules/micromark-util-decode-string/package.json +0 -63
- package/node_modules/micromark-util-decode-string/readme.md +0 -179
- package/node_modules/micromark-util-edit-map/dev/index.d.ts +0 -78
- package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-edit-map/dev/index.js +0 -237
- package/node_modules/micromark-util-edit-map/index.d.ts +0 -78
- package/node_modules/micromark-util-edit-map/index.d.ts.map +0 -1
- package/node_modules/micromark-util-edit-map/index.js +0 -225
- package/node_modules/micromark-util-edit-map/license +0 -22
- package/node_modules/micromark-util-edit-map/package.json +0 -48
- package/node_modules/micromark-util-edit-map/readme.md +0 -234
- package/node_modules/micromark-util-encode/index.d.ts +0 -14
- package/node_modules/micromark-util-encode/index.d.ts.map +0 -1
- package/node_modules/micromark-util-encode/index.js +0 -33
- package/node_modules/micromark-util-encode/license +0 -22
- package/node_modules/micromark-util-encode/package.json +0 -47
- package/node_modules/micromark-util-encode/readme.md +0 -176
- package/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
- package/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
- package/node_modules/micromark-util-html-tag-name/index.js +0 -93
- package/node_modules/micromark-util-html-tag-name/license +0 -22
- package/node_modules/micromark-util-html-tag-name/package.json +0 -47
- package/node_modules/micromark-util-html-tag-name/readme.md +0 -193
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
- package/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
- package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
- package/node_modules/micromark-util-normalize-identifier/index.js +0 -33
- package/node_modules/micromark-util-normalize-identifier/license +0 -22
- package/node_modules/micromark-util-normalize-identifier/package.json +0 -58
- package/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
- package/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
- package/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
- package/node_modules/micromark-util-resolve-all/index.js +0 -32
- package/node_modules/micromark-util-resolve-all/license +0 -22
- package/node_modules/micromark-util-resolve-all/package.json +0 -48
- package/node_modules/micromark-util-resolve-all/readme.md +0 -238
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
- package/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
- package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
- package/node_modules/micromark-util-sanitize-uri/index.js +0 -107
- package/node_modules/micromark-util-sanitize-uri/license +0 -22
- package/node_modules/micromark-util-sanitize-uri/package.json +0 -59
- package/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
- package/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
- package/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/index.js +0 -228
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
- package/node_modules/micromark-util-subtokenize/license +0 -22
- package/node_modules/micromark-util-subtokenize/package.json +0 -60
- package/node_modules/micromark-util-subtokenize/readme.md +0 -181
- package/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/micromark-util-types/index.d.ts +0 -1315
- package/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/micromark-util-types/license +0 -22
- package/node_modules/micromark-util-types/package.json +0 -37
- package/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/unist-util-stringify-position/index.d.ts +0 -1
- package/node_modules/unist-util-stringify-position/index.js +0 -1
- package/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
- package/node_modules/unist-util-stringify-position/lib/index.js +0 -84
- package/node_modules/unist-util-stringify-position/license +0 -22
- package/node_modules/unist-util-stringify-position/package.json +0 -80
- package/node_modules/unist-util-stringify-position/readme.md +0 -206
- package/packages/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
- package/packages/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
- package/packages/octo-runtime-extra-webui/config-schema.json +0 -134
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { constants } from "node:fs";
|
|
2
|
+
import { access, stat } from "node:fs/promises";
|
|
3
|
+
import { isAbsolute } from "node:path";
|
|
4
|
+
import { assertAgentEnv, assertApprovalMode, assertAgentSource, assertContextEnvs, assertContextMcp, assertRuntimeLimits, contextItem, CONTEXT_SCHEMA, DEFAULT_RUN_TIMEOUT_MS } from "@mininglamp-oss/octo-runtime-protocol";
|
|
5
|
+
/**
|
|
6
|
+
* 在 Adapter 消费本轮 AgentEnv 时,按 namespace/name 精确读取 bean 的 payload;不存在则返回 undefined。
|
|
7
|
+
* 公共与私有 bean 都可读取。私有名称、字段和类型由宿主与对应 Adapter 约定,无须公共 schema 注册。
|
|
8
|
+
* T 仅提供编译期类型提示,不做运行时校验;必填检查、默认值及 Provider 原生映射由消费方负责。
|
|
9
|
+
* 返回原 payload 引用,不复制或修改信封;调用方应只读使用,不写回默认值或跨调用保存配置。
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const options = agentEnvItem<{ agentId: string }>(req.agentEnv, "adapter.my-adapter", "options");
|
|
13
|
+
* if (!options || typeof options.agentId !== "string" || !options.agentId.trim())
|
|
14
|
+
* throw new TypeError("MY_ADAPTER_AGENT_ID_REQUIRED");
|
|
15
|
+
*
|
|
16
|
+
* @see https://github.com/Mininglamp-OSS/octo-runtime/blob/main/docs/zh-CN/getting-started/sdk.md
|
|
17
|
+
* @see https://github.com/Mininglamp-OSS/octo-runtime/blob/main/docs/en/getting-started/sdk.md
|
|
18
|
+
*/
|
|
19
|
+
export function agentEnvItem(env, namespace, name) {
|
|
20
|
+
return contextItem(env, namespace, name)?.payload;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Adapter 读取公共 octo.execution/model bean 的 selection.id,取得本轮显式选择的 Provider 模型标识。
|
|
24
|
+
* 条目或 id 缺失时返回 undefined;不补默认模型、不查询模型目录,也不读取私有 options 中的同名字段。
|
|
25
|
+
* 本函数只读不改写 AgentEnv;字段类型、可用性检查及 Provider 原生参数映射仍由 Adapter 负责。
|
|
26
|
+
* 私有配置使用 agentEnvItem<T>(request.agentEnv, namespace, name),不扩展公共 model bean。
|
|
27
|
+
*
|
|
28
|
+
* @see https://github.com/Mininglamp-OSS/octo-runtime/blob/main/docs/zh-CN/getting-started/sdk.md
|
|
29
|
+
* @see https://github.com/Mininglamp-OSS/octo-runtime/blob/main/docs/en/getting-started/sdk.md
|
|
30
|
+
*/
|
|
31
|
+
export function invocationModel(request) {
|
|
32
|
+
return agentEnvItem(request.agentEnv, "octo.execution", "model")
|
|
33
|
+
?.selection?.id;
|
|
34
|
+
}
|
|
35
|
+
export function invocationEffort(request) {
|
|
36
|
+
return agentEnvItem(request.agentEnv, "octo.execution", "model")?.reasoning?.effort;
|
|
37
|
+
}
|
|
38
|
+
export function invocationWorkdir(request) {
|
|
39
|
+
return (agentEnvItem(request.agentEnv, "octo.execution", "workspace")?.path ?? "");
|
|
40
|
+
}
|
|
41
|
+
export function invocationApprovalMode(request) {
|
|
42
|
+
const mode = agentEnvItem(request.agentEnv, "octo.security", "approval_policy")
|
|
43
|
+
?.mode ?? "ask";
|
|
44
|
+
assertApprovalMode(mode);
|
|
45
|
+
return mode;
|
|
46
|
+
}
|
|
47
|
+
export function invocationAgentSource(request) {
|
|
48
|
+
const source = agentEnvItem(request.agentEnv, "octo.execution", "agent")?.source ??
|
|
49
|
+
"provisioned";
|
|
50
|
+
assertAgentSource(source);
|
|
51
|
+
return source;
|
|
52
|
+
}
|
|
53
|
+
/** Harness 私有选项仍是原始 payload;不生成公共配置副本。 */
|
|
54
|
+
export function invocationOptions(request, adapterType) {
|
|
55
|
+
const type = adapterType ??
|
|
56
|
+
agentEnvItem(request.agentEnv, "octo.execution", "adapter")?.type;
|
|
57
|
+
return agentEnvItem(request.agentEnv, `adapter.${type}`, "options") ?? {};
|
|
58
|
+
}
|
|
59
|
+
const connections = new WeakMap();
|
|
60
|
+
/** 可信连接选项只绑定本次 Adapter 调用,不写回调用方信封。 */
|
|
61
|
+
export function bindInvocationConnection(request, options) {
|
|
62
|
+
if (options)
|
|
63
|
+
connections.set(request, { ...options });
|
|
64
|
+
else
|
|
65
|
+
connections.delete(request);
|
|
66
|
+
}
|
|
67
|
+
export function invocationProviderOptions(request, adapterType) {
|
|
68
|
+
return { ...invocationOptions(request, adapterType), ...connections.get(request) };
|
|
69
|
+
}
|
|
70
|
+
export function invocationOption(request, key, adapterType) {
|
|
71
|
+
const value = invocationProviderOptions(request, adapterType)[key];
|
|
72
|
+
if (value !== undefined && typeof value !== "string")
|
|
73
|
+
throw new TypeError(`ADAPTER_OPTION_INVALID: ${key}`);
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
export function invocationTimeoutSeconds(request, adapterType) {
|
|
77
|
+
const value = invocationOptions(request, adapterType).timeoutSeconds;
|
|
78
|
+
if (value !== undefined && (typeof value !== "number" || !Number.isFinite(value) || value <= 0))
|
|
79
|
+
throw new TypeError("ADAPTER_OPTION_INVALID: timeoutSeconds");
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
const LIMIT_NAMES = {
|
|
83
|
+
first_frame_timeout_ms: "firstFrameTimeoutMs",
|
|
84
|
+
model_idle_timeout_ms: "modelIdleTimeoutMs",
|
|
85
|
+
model_idle_warning_ms: "modelIdleWarningMs",
|
|
86
|
+
model_idle_policy: "modelIdlePolicy",
|
|
87
|
+
tool_timeout_ms: "toolTimeoutMs",
|
|
88
|
+
tool_wall_timeout_ms: "toolWallTimeoutMs",
|
|
89
|
+
run_timeout_ms: "runTimeoutMs",
|
|
90
|
+
cancel_grace_ms: "cancelGraceMs",
|
|
91
|
+
enforcement: "enforcement"
|
|
92
|
+
};
|
|
93
|
+
/** Adapter 解释预算,Core 仅按本地回调执行计时,不解析配置条目。 */
|
|
94
|
+
export function invocationRuntimeLimits(request) {
|
|
95
|
+
const payload = agentEnvItem(request.agentEnv, "octo.execution", "limits");
|
|
96
|
+
if (!payload)
|
|
97
|
+
return undefined;
|
|
98
|
+
const result = {};
|
|
99
|
+
for (const [key, value] of Object.entries(payload)) {
|
|
100
|
+
if (!Object.hasOwn(LIMIT_NAMES, key))
|
|
101
|
+
throw new TypeError("ADAPTER_LIMIT_UNSUPPORTED");
|
|
102
|
+
result[LIMIT_NAMES[key]] = value;
|
|
103
|
+
}
|
|
104
|
+
assertRuntimeLimits(result);
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
/** 每个 Harness 拥有自己的默认信封;不包含隐式 cwd、模型或业务材料。 */
|
|
108
|
+
export function defaultAgentEnv(type, source = "provisioned") {
|
|
109
|
+
return {
|
|
110
|
+
schema: CONTEXT_SCHEMA,
|
|
111
|
+
items: [
|
|
112
|
+
{ namespace: "octo.execution", name: "adapter", payload: { type } },
|
|
113
|
+
{ namespace: "octo.execution", name: "agent", payload: { source } },
|
|
114
|
+
{ namespace: "octo.security", name: "approval_policy", payload: { mode: "ask" } },
|
|
115
|
+
{
|
|
116
|
+
namespace: "octo.execution",
|
|
117
|
+
name: "limits",
|
|
118
|
+
payload: { run_timeout_ms: DEFAULT_RUN_TIMEOUT_MS }
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
/** 调用方显式补缺省条目,保留已提交条目的顺序和值,返回独立副本。 */
|
|
124
|
+
export function withAgentEnvDefaults(submitted, defaults) {
|
|
125
|
+
assertAgentEnv(submitted);
|
|
126
|
+
assertAgentEnv(defaults);
|
|
127
|
+
const keys = new Set(submitted.items.map((item) => `${item.namespace}/${item.name}`));
|
|
128
|
+
const result = structuredClone({
|
|
129
|
+
schema: submitted.schema,
|
|
130
|
+
items: [
|
|
131
|
+
...submitted.items,
|
|
132
|
+
...defaults.items.filter((item) => !keys.has(`${item.namespace}/${item.name}`))
|
|
133
|
+
]
|
|
134
|
+
});
|
|
135
|
+
assertAgentEnv(result);
|
|
136
|
+
return result;
|
|
137
|
+
}
|
|
138
|
+
/** 调用方显式替换同名 bean;不解释 payload,不改变其他条目的相对顺序。 */
|
|
139
|
+
export function withAgentEnvItems(env, items) {
|
|
140
|
+
const base = env ?? { schema: CONTEXT_SCHEMA, items: [] };
|
|
141
|
+
assertAgentEnv(base);
|
|
142
|
+
// 先校验覆盖信封,避免 Map 将调用方重复键静默折叠。
|
|
143
|
+
assertAgentEnv({ schema: CONTEXT_SCHEMA, items });
|
|
144
|
+
const overrides = new Map(items.map((item) => [`${item.namespace}/${item.name}`, item]));
|
|
145
|
+
const merged = base.items.map((item) => {
|
|
146
|
+
const key = `${item.namespace}/${item.name}`;
|
|
147
|
+
const next = overrides.get(key) ?? item;
|
|
148
|
+
overrides.delete(key);
|
|
149
|
+
return next;
|
|
150
|
+
});
|
|
151
|
+
const result = structuredClone({
|
|
152
|
+
schema: CONTEXT_SCHEMA,
|
|
153
|
+
items: [...merged, ...overrides.values()]
|
|
154
|
+
});
|
|
155
|
+
assertAgentEnv(result);
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
/** 公共 bean 的消费校验;未消费的私有扩展不参与,也不需要中央注册。 */
|
|
159
|
+
export function assertAdapterAgentEnv(request) {
|
|
160
|
+
assertAgentEnv(request.agentEnv);
|
|
161
|
+
invocationApprovalMode(request);
|
|
162
|
+
invocationAgentSource(request);
|
|
163
|
+
invocationRuntimeLimits(request);
|
|
164
|
+
for (const item of request.agentEnv.items) {
|
|
165
|
+
if (item.namespace === "octo.security" && item.name === "approval_policy") {
|
|
166
|
+
assertFields(item.payload, ["mode"]);
|
|
167
|
+
assertApprovalMode(item.payload.mode);
|
|
168
|
+
}
|
|
169
|
+
if (item.namespace !== "octo.execution")
|
|
170
|
+
continue;
|
|
171
|
+
const value = item.payload;
|
|
172
|
+
if (item.name === "adapter") {
|
|
173
|
+
assertFields(value, ["type"]);
|
|
174
|
+
if (typeof value.type !== "string" || !value.type)
|
|
175
|
+
throw new TypeError("ADAPTER_TYPE_INVALID");
|
|
176
|
+
}
|
|
177
|
+
if (item.name === "agent") {
|
|
178
|
+
assertFields(value, ["source"]);
|
|
179
|
+
assertAgentSource(value.source);
|
|
180
|
+
}
|
|
181
|
+
if (item.name === "workspace" &&
|
|
182
|
+
(Object.keys(value).some((k) => k !== "path") || typeof value.path !== "string"))
|
|
183
|
+
throw new TypeError("WORKDIR_INVALID");
|
|
184
|
+
if (item.name === "actmode") {
|
|
185
|
+
assertFields(value, ["mode"]);
|
|
186
|
+
if (!["plan", "default"].includes(String(value.mode)))
|
|
187
|
+
throw new TypeError("CONTEXT_SCHEMA_INVALID: actmode");
|
|
188
|
+
}
|
|
189
|
+
if (item.name === "model") {
|
|
190
|
+
assertFields(value, ["selection", "reasoning"]);
|
|
191
|
+
if (!Object.keys(value).length)
|
|
192
|
+
throw new TypeError("CONTEXT_SCHEMA_INVALID: model");
|
|
193
|
+
for (const [field, property] of [
|
|
194
|
+
["selection", "id"],
|
|
195
|
+
["reasoning", "effort"]
|
|
196
|
+
]) {
|
|
197
|
+
const bean = value[field];
|
|
198
|
+
if (bean === undefined)
|
|
199
|
+
continue;
|
|
200
|
+
if (!bean || typeof bean !== "object" || Array.isArray(bean))
|
|
201
|
+
throw new TypeError("CONTEXT_SCHEMA_INVALID: model");
|
|
202
|
+
const setting = bean;
|
|
203
|
+
assertFields(setting, [property, "use_provider_default"]);
|
|
204
|
+
if (setting.use_provider_default === true && setting[property] === undefined)
|
|
205
|
+
continue;
|
|
206
|
+
if (typeof setting[property] !== "string" ||
|
|
207
|
+
!setting[property] ||
|
|
208
|
+
setting.use_provider_default !== undefined)
|
|
209
|
+
throw new TypeError("CONTEXT_SCHEMA_INVALID: model");
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (item.name === "envs")
|
|
213
|
+
assertContextEnvs(value);
|
|
214
|
+
if (item.name === "mcp")
|
|
215
|
+
assertContextMcp(value);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
function assertFields(value, allowed) {
|
|
219
|
+
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
220
|
+
throw new TypeError("CONTEXT_SCHEMA_INVALID");
|
|
221
|
+
}
|
|
222
|
+
/** 调用方准备目录;Adapter 在启动 Provider 前检查,不创建或替换路径。 */
|
|
223
|
+
export async function assertAdapterWorkdir(request, workspace = true) {
|
|
224
|
+
const path = invocationWorkdir(request);
|
|
225
|
+
if (!workspace || (invocationAgentSource(request) === "preset" && !path))
|
|
226
|
+
return;
|
|
227
|
+
const messages = {
|
|
228
|
+
WORKDIR_REQUIRED: "A prepared working directory is required; create it and provide its absolute path.",
|
|
229
|
+
WORKDIR_INVALID: "Working directory must be an absolute path without NUL characters.",
|
|
230
|
+
WORKDIR_NOT_FOUND: "Working directory does not exist; create it before invoking Runtime.",
|
|
231
|
+
WORKDIR_NOT_DIRECTORY: "Working directory must point to an existing directory.",
|
|
232
|
+
WORKDIR_UNAVAILABLE: "Working directory is not accessible; check directory access permissions."
|
|
233
|
+
};
|
|
234
|
+
const fail = (code) => {
|
|
235
|
+
throw Object.assign(new TypeError(messages[code]), { code });
|
|
236
|
+
};
|
|
237
|
+
if (!path)
|
|
238
|
+
fail("WORKDIR_REQUIRED");
|
|
239
|
+
if (!isAbsolute(path) || path.includes("\0"))
|
|
240
|
+
fail("WORKDIR_INVALID");
|
|
241
|
+
try {
|
|
242
|
+
if (!(await stat(path)).isDirectory())
|
|
243
|
+
fail("WORKDIR_NOT_DIRECTORY");
|
|
244
|
+
await access(path, constants.X_OK);
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
const code = error && typeof error === "object" && "code" in error ? String(error.code) : "";
|
|
248
|
+
if (code.startsWith("WORKDIR_"))
|
|
249
|
+
throw error;
|
|
250
|
+
fail(code === "ENOENT"
|
|
251
|
+
? "WORKDIR_NOT_FOUND"
|
|
252
|
+
: code === "ENOTDIR"
|
|
253
|
+
? "WORKDIR_NOT_DIRECTORY"
|
|
254
|
+
: "WORKDIR_UNAVAILABLE");
|
|
255
|
+
}
|
|
256
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { invocationApprovalMode } from "./agent-env.js";
|
|
1
2
|
import { randomUUID } from "node:crypto";
|
|
2
3
|
import { sanitizePublicValue } from "./public-display.js";
|
|
3
4
|
import { contextHash } from "@mininglamp-oss/octo-runtime-protocol";
|
|
@@ -24,7 +25,8 @@ export class AcpApprovalBridge {
|
|
|
24
25
|
requestPermission(params, providerExpiresAt) {
|
|
25
26
|
if (this.#closed || this.request.signal?.aborted)
|
|
26
27
|
return Promise.reject(new Error("APPROVAL_WAIT_UNAVAILABLE"));
|
|
27
|
-
const automatic = (this.options.effectiveApprovalMode ?? this.request
|
|
28
|
+
const automatic = (this.options.effectiveApprovalMode ?? invocationApprovalMode(this.request)) ===
|
|
29
|
+
"full_access";
|
|
28
30
|
const options = Array.isArray(params.options) ? params.options.filter(isObject) : [];
|
|
29
31
|
const option = (kind) => {
|
|
30
32
|
const candidate = options.find((value) => value.kind === kind);
|
|
@@ -118,7 +120,10 @@ export class AcpApprovalBridge {
|
|
|
118
120
|
expiresAt: new Date(expiresAt).toISOString(),
|
|
119
121
|
request: {
|
|
120
122
|
schema: "octo.approval-request/v1",
|
|
121
|
-
policy: {
|
|
123
|
+
policy: {
|
|
124
|
+
mode: invocationApprovalMode(this.request),
|
|
125
|
+
hash: contextHash(this.request.agentEnv)
|
|
126
|
+
},
|
|
122
127
|
operation: {
|
|
123
128
|
kind: "tool_execution",
|
|
124
129
|
summary: typeof tool.title === "string" && tool.title
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertContextEnvs, contextItem } from "@mininglamp-oss/octo-runtime-protocol";
|
|
2
2
|
/** Read only the frozen execution context; never expose its values as model input. */
|
|
3
3
|
export function invocationEnvs(request) {
|
|
4
|
-
const envs = contextItem(request.
|
|
4
|
+
const envs = contextItem(request.agentEnv, "octo.execution", "envs")?.payload ?? {
|
|
5
5
|
env_variables: []
|
|
6
6
|
};
|
|
7
7
|
assertContextEnvs(envs);
|
|
@@ -9,7 +9,11 @@ export interface AdapterScopeCleanup {
|
|
|
9
9
|
unresolvedServiceIds: readonly string[];
|
|
10
10
|
failedCleanupServiceIds: readonly string[];
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Core 每次注册独占本地调用作用域;构造不得启动进程,关闭后不再接纳。
|
|
14
|
+
* close 回收本 scope 的调用/订阅/租约,不隐含获得宿主注入 Engine 或共享连接的销毁权。
|
|
15
|
+
* Adapter 构造方法和参数由实现者决定;统一的是注册后的执行合同。
|
|
16
|
+
*/
|
|
13
17
|
export interface AdapterExecutionScope {
|
|
14
18
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncIterable<AdapterOutput>;
|
|
15
19
|
respondInteraction?(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { AdapterInvocationContext } from "./activity.js";
|
|
2
2
|
import type { CreateAdapterExecutionScope } from "./execution-scope.js";
|
|
3
3
|
export type { AdapterExecutionScope, AdapterScopeCleanup, CreateAdapterExecutionScope, ServiceProcessSnapshot } from "./execution-scope.js";
|
|
4
|
+
export * from "./agent-env.js";
|
|
5
|
+
export { snapshotProviderLaunch, assertProviderCommand, type ProviderLaunch } from "./provider-launch.js";
|
|
4
6
|
import { type ReasoningLevelMap } from "./reasoning.js";
|
|
5
7
|
export type { AdapterInvocationContext, ProviderActivity } from "./activity.js";
|
|
6
8
|
export { invocationEnvironment, invocationEnvs, mergeProcessEnvironment, processEnvironmentValue } from "./environment.js";
|
|
7
9
|
export { invocationMcpServers, expandMcpValue, assertMcpOptions } from "./mcp.js";
|
|
8
10
|
export { actmodeEvidence } from "./actmode.js";
|
|
9
|
-
import { type CanonicalEvent, type AdapterProtocolSupport, type HostControl, type NativeHostFrame, type InvokeRequest, type StreamLimitPolicy } from "@mininglamp-oss/octo-runtime-protocol";
|
|
10
|
-
export { freshFallbackInputText,
|
|
11
|
+
import { type CanonicalEvent, type AdapterProtocolSupport, type HostControl, type NativeHostFrame, type InvokeRequest, type AgentEnv, type InteractionResponse, type NativeInteractionResponse, type StreamLimitPolicy } from "@mininglamp-oss/octo-runtime-protocol";
|
|
12
|
+
export { freshFallbackInputText, hasImageInput, providerInputParts, providerInputText } from "@mininglamp-oss/octo-runtime-protocol";
|
|
11
13
|
export type { CanonicalEvent, InvokeRequest, MessageChannel, MessageExposure, MessageProvenance } from "@mininglamp-oss/octo-runtime-protocol";
|
|
12
14
|
export { acpToolTerminalStatus, normalizeAcpToolUpdate } from "./acp-tool.js";
|
|
13
15
|
export { AcpTurnNormalizer } from "./acp-turn.js";
|
|
@@ -17,7 +19,7 @@ export { watchLineLimit } from "./line-limit.js";
|
|
|
17
19
|
export { readBoundedLines } from "./bounded-lines.js";
|
|
18
20
|
export { HourlyLogWriter, HOURLY_LOG_MAX_BYTES } from "./hourly-log.js";
|
|
19
21
|
export { RuntimeLogging, assertRuntimeLogging, noopRuntimeLog, type RuntimeLog, type RuntimeLogLevel, type RuntimeLoggingOptions } from "./runtime-log.js";
|
|
20
|
-
export {
|
|
22
|
+
export { kernelStatusRecord, type KernelStatusRecord } from "./service-status.js";
|
|
21
23
|
export { sanitizePublicValue, sanitizeDiagnosticBody } from "./public-display.js";
|
|
22
24
|
export { DEFAULT_REASONING_LEVEL_MAPS, OMNI_REASONING_LEVELS, mapReasoningEffort, reasoningLevelMap, type OmniReasoningLevel, type ReasoningLevelMap } from "./reasoning.js";
|
|
23
25
|
/** Adapter 的编写输入;defineAdapter 在省略协议声明时补 canonical-only 默认值。 */
|
|
@@ -47,14 +49,16 @@ export interface ProbeResult {
|
|
|
47
49
|
/** 工厂的编写输入;直接交给 Core 注册时须满足完整的 HostedAdapter 合同。 */
|
|
48
50
|
export interface Adapter<TOutput extends AdapterOutput = AdapterOutput> {
|
|
49
51
|
metadata: AdapterMetadata;
|
|
52
|
+
defaultAgentEnv?: AgentEnv;
|
|
53
|
+
respondInteraction?(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
54
|
+
respondNative?(invocationId: string, response: NativeInteractionResponse): Promise<void>;
|
|
50
55
|
createExecutionScope?: CreateAdapterExecutionScope;
|
|
51
56
|
probe?: (options?: AdapterProbeOptions) => Promise<ProbeResult>;
|
|
52
57
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* Core
|
|
56
|
-
*
|
|
57
|
-
* should yield a failure terminal after confirmed cleanup for expected execution failures.
|
|
58
|
+
* 消费本轮请求并输出 Provider 事件,可通过 context 报告 watchdog 进度。
|
|
59
|
+
* Core 在受理前核对传输模式,配置校验由 Adapter 负责,拒绝时迭代可抛错。
|
|
60
|
+
* 受理后 Core 将异常转换为失败事件,并独立核实资源回收;预期执行失败应在
|
|
61
|
+
* Adapter 确认清理完成后输出失败终态,不能把执行终态当成清理完成的证明。
|
|
58
62
|
*/
|
|
59
63
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncIterable<TOutput>;
|
|
60
64
|
}
|
|
@@ -62,7 +66,8 @@ export interface Adapter<TOutput extends AdapterOutput = AdapterOutput> {
|
|
|
62
66
|
* 工厂输出必须表达已补齐的协议声明,供宿主直接注册;保留作者扩展的字段和方法。
|
|
63
67
|
* 禁止与允许省略字段的编写输入混用,否则会把注册前的类型错误推迟到运行时。
|
|
64
68
|
*/
|
|
65
|
-
export type DefinedAdapter<TAdapter extends Adapter = Adapter> = Readonly<Omit<TAdapter, "metadata"> & {
|
|
69
|
+
export type DefinedAdapter<TAdapter extends Adapter = Adapter> = Readonly<Omit<TAdapter, "metadata" | "defaultAgentEnv"> & {
|
|
70
|
+
readonly defaultAgentEnv: AgentEnv;
|
|
66
71
|
metadata: Omit<TAdapter["metadata"], "protocolSupport"> & {
|
|
67
72
|
protocolSupport: AdapterProtocolSupport;
|
|
68
73
|
};
|
|
@@ -73,6 +78,13 @@ export type DriverFrame = Pick<NativeHostFrame, "kind" | "messageKind" | "payloa
|
|
|
73
78
|
control: HostControl;
|
|
74
79
|
};
|
|
75
80
|
export type AdapterOutput = CanonicalEvent | DriverFrame;
|
|
81
|
+
/**
|
|
82
|
+
* 执行尚未启动 Provider 的纯配置/目录校验;返回后才能开始探针或执行。
|
|
83
|
+
* 回调不得创建 Provider 资源。失败证据只绑定本次 context,供 Core 核对清理责任。
|
|
84
|
+
*/
|
|
85
|
+
export declare function runAdapterPreparation(context: AdapterInvocationContext | undefined, prepare: () => void | Promise<void>): Promise<void>;
|
|
86
|
+
/** SDK 尚未调用 Provider 的准备失败;Core 可确认此路径没有 Provider 资源待回收。 */
|
|
87
|
+
export declare function isAdapterPreparationFailure(error: unknown, context: AdapterInvocationContext): boolean;
|
|
76
88
|
/** The fully materialized subprocess contract produced immediately before spawn. */
|
|
77
89
|
export interface CommandSpec {
|
|
78
90
|
command: string;
|
|
@@ -141,11 +153,12 @@ export declare function parseJsonLine(line: string): Record<string, unknown> | n
|
|
|
141
153
|
*/
|
|
142
154
|
export declare function createJsonCliAdapter<TNative = Record<string, unknown>>(options: JsonCliAdapterOptions<TNative>): DefinedAdapter<Adapter<CanonicalEvent>>;
|
|
143
155
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
156
|
+
* 探测宿主已绑定的绝对启动链;不搜索安装,版本参数接在宿主前缀参数之后。
|
|
157
|
+
* 返回目标可执行性和可选版本;版本命令失败不等于目标不可用,版本门禁由 Provider 决定。
|
|
158
|
+
* 文件缺失与权限不足分别报告,失败不选择其他安装,也不解释前缀参数中的入口。
|
|
147
159
|
*/
|
|
148
|
-
export declare function probeCommand(command: string, { env, cwd }?: {
|
|
160
|
+
export declare function probeCommand(command: string, { env, cwd, args }?: {
|
|
149
161
|
env?: NodeJS.ProcessEnv;
|
|
150
162
|
cwd?: string;
|
|
163
|
+
args?: readonly string[];
|
|
151
164
|
}): Promise<ProbeResult>;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
import { invocationEffort, invocationWorkdir } from "./agent-env.js";
|
|
1
2
|
import { execFile, spawn } from "node:child_process";
|
|
2
3
|
import { constants } from "node:fs";
|
|
3
4
|
import { access, stat } from "node:fs/promises";
|
|
4
|
-
import {
|
|
5
|
+
import { resolve } from "node:path";
|
|
5
6
|
import { createInterface } from "node:readline";
|
|
6
7
|
import { promisify } from "node:util";
|
|
7
|
-
import { invocationEnvironment, mergeProcessEnvironment
|
|
8
|
+
import { invocationEnvironment, mergeProcessEnvironment } from "./environment.js";
|
|
8
9
|
import { createProcessCleanup } from "./process-cleanup.js";
|
|
9
|
-
import {
|
|
10
|
+
import { defaultAgentEnv, assertAdapterAgentEnv, assertAdapterWorkdir, bindInvocationConnection, invocationApprovalMode, invocationAgentSource, invocationRuntimeLimits } from "./agent-env.js";
|
|
11
|
+
export * from "./agent-env.js";
|
|
12
|
+
import { assertProviderCommand } from "./provider-launch.js";
|
|
13
|
+
export { snapshotProviderLaunch, assertProviderCommand } from "./provider-launch.js";
|
|
10
14
|
import { watchLineLimit } from "./line-limit.js";
|
|
11
15
|
import { mapReasoningEffort, reasoningLevelMap } from "./reasoning.js";
|
|
12
16
|
export { invocationEnvironment, invocationEnvs, mergeProcessEnvironment, processEnvironmentValue } from "./environment.js";
|
|
13
17
|
export { invocationMcpServers, expandMcpValue, assertMcpOptions } from "./mcp.js";
|
|
14
18
|
export { actmodeEvidence } from "./actmode.js";
|
|
15
19
|
import { DEFAULT_STREAM_LIMIT_POLICY, isTerminal, assertProtocolSupport } from "@mininglamp-oss/octo-runtime-protocol";
|
|
16
|
-
export { freshFallbackInputText,
|
|
20
|
+
export { freshFallbackInputText, hasImageInput, providerInputParts, providerInputText } from "@mininglamp-oss/octo-runtime-protocol";
|
|
17
21
|
export { acpToolTerminalStatus, normalizeAcpToolUpdate } from "./acp-tool.js";
|
|
18
22
|
export { AcpTurnNormalizer } from "./acp-turn.js";
|
|
19
23
|
export { AcpApprovalBridge } from "./approval.js";
|
|
@@ -22,9 +26,37 @@ export { watchLineLimit } from "./line-limit.js";
|
|
|
22
26
|
export { readBoundedLines } from "./bounded-lines.js";
|
|
23
27
|
export { HourlyLogWriter, HOURLY_LOG_MAX_BYTES } from "./hourly-log.js";
|
|
24
28
|
export { RuntimeLogging, assertRuntimeLogging, noopRuntimeLog } from "./runtime-log.js";
|
|
25
|
-
export {
|
|
29
|
+
export { kernelStatusRecord } from "./service-status.js";
|
|
26
30
|
export { sanitizePublicValue, sanitizeDiagnosticBody } from "./public-display.js";
|
|
27
31
|
export { DEFAULT_REASONING_LEVEL_MAPS, OMNI_REASONING_LEVELS, mapReasoningEffort, reasoningLevelMap } from "./reasoning.js";
|
|
32
|
+
const preparationFailures = new WeakMap();
|
|
33
|
+
/**
|
|
34
|
+
* 执行尚未启动 Provider 的纯配置/目录校验;返回后才能开始探针或执行。
|
|
35
|
+
* 回调不得创建 Provider 资源。失败证据只绑定本次 context,供 Core 核对清理责任。
|
|
36
|
+
*/
|
|
37
|
+
export async function runAdapterPreparation(context, prepare) {
|
|
38
|
+
try {
|
|
39
|
+
await prepare();
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
if (context && error !== null && typeof error === "object") {
|
|
43
|
+
const contexts = preparationFailures.get(error) ?? new WeakSet();
|
|
44
|
+
contexts.add(context);
|
|
45
|
+
preparationFailures.set(error, contexts);
|
|
46
|
+
}
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/** SDK 尚未调用 Provider 的准备失败;Core 可确认此路径没有 Provider 资源待回收。 */
|
|
51
|
+
export function isAdapterPreparationFailure(error, context) {
|
|
52
|
+
if (error === null || typeof error !== "object")
|
|
53
|
+
return false;
|
|
54
|
+
const contexts = preparationFailures.get(error);
|
|
55
|
+
if (!contexts?.has(context))
|
|
56
|
+
return false;
|
|
57
|
+
contexts.delete(context);
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
28
60
|
/**
|
|
29
61
|
* 接收编写输入并返回可注册的 Adapter,省略协议时仅补 canonical-only 声明。
|
|
30
62
|
* 返回类型必须保留字段必有的保证;不得根据缺省声明推断 native 支持。
|
|
@@ -42,21 +74,45 @@ export function defineAdapter(adapter, levels = reasoningLevelMap(adapter.metada
|
|
|
42
74
|
modes: ["canonical"],
|
|
43
75
|
nativeMethods: []
|
|
44
76
|
};
|
|
77
|
+
const defaults = structuredClone(adapter.defaultAgentEnv ??
|
|
78
|
+
defaultAgentEnv(metadata.type, metadata.agentSources.includes("provisioned") ? "provisioned" : "preset"));
|
|
45
79
|
return Object.freeze({
|
|
46
80
|
...adapter,
|
|
81
|
+
get defaultAgentEnv() {
|
|
82
|
+
return structuredClone(defaults);
|
|
83
|
+
},
|
|
47
84
|
metadata: {
|
|
48
85
|
...metadata,
|
|
49
86
|
protocolSupport
|
|
50
87
|
},
|
|
51
88
|
async *invoke(request, context) {
|
|
52
|
-
|
|
53
|
-
|
|
89
|
+
// 可信连接归本次调用;同一低层请求被并发复用时也不能相互覆盖。
|
|
90
|
+
if (context?.providerOptions)
|
|
91
|
+
request = { ...request };
|
|
92
|
+
bindInvocationConnection(request, context?.providerOptions);
|
|
93
|
+
let requested;
|
|
94
|
+
let native;
|
|
95
|
+
await runAdapterPreparation(context, async () => {
|
|
96
|
+
assertAdapterAgentEnv(request);
|
|
97
|
+
context?.configureRuntimeLimits?.(invocationRuntimeLimits(request));
|
|
98
|
+
if (request.agentEnv.items.some((item) => item.namespace === "octo.execution" && item.name === "agent") &&
|
|
99
|
+
!metadata.agentSources.includes(invocationAgentSource(request)))
|
|
100
|
+
throw new Error(`AGENT_SOURCE_UNSUPPORTED: ${metadata.type}`);
|
|
101
|
+
if (invocationApprovalMode(request) !== "full_access" &&
|
|
102
|
+
(context?.protocolMode === "native"
|
|
103
|
+
? !adapter.respondNative
|
|
104
|
+
: !adapter.respondInteraction))
|
|
105
|
+
throw new Error(`APPROVAL_MODE_UNSUPPORTED: ${metadata.type} does not implement execution-time approval responses`);
|
|
106
|
+
await assertAdapterWorkdir(request, metadata.workspace !== false);
|
|
107
|
+
assertProtocolSupport(protocolSupport, {
|
|
108
|
+
protocolMode: context?.protocolMode ?? "canonical"
|
|
109
|
+
});
|
|
110
|
+
const mcp = request.agentEnv.items.find((item) => item.namespace === "octo.execution" && item.name === "mcp");
|
|
111
|
+
if (mcp && Object.keys(mcp.payload.mcpServers).length && !adapter.metadata.mcp)
|
|
112
|
+
throw new Error(`MCP_UNSUPPORTED: ${adapter.metadata.type}`);
|
|
113
|
+
requested = invocationEffort(request);
|
|
114
|
+
native = mapReasoningEffort(adapter.metadata.type, requested, levels);
|
|
54
115
|
});
|
|
55
|
-
const mcp = request.context.items.find((item) => item.namespace === "octo.execution" && item.name === "mcp");
|
|
56
|
-
if (mcp && Object.keys(mcp.payload.mcpServers).length && !adapter.metadata.mcp)
|
|
57
|
-
throw new Error(`MCP_UNSUPPORTED: ${adapter.metadata.type}`);
|
|
58
|
-
const requested = request.agentConfig.effort;
|
|
59
|
-
const native = mapReasoningEffort(adapter.metadata.type, requested, levels);
|
|
60
116
|
if (requested !== undefined && context?.protocolMode !== "native") {
|
|
61
117
|
if (native === undefined || native !== requested)
|
|
62
118
|
yield {
|
|
@@ -92,9 +148,9 @@ export function defineAdapter(adapter, levels = reasoningLevelMap(adapter.metada
|
|
|
92
148
|
*/
|
|
93
149
|
export async function* spawnJsonLines(options) {
|
|
94
150
|
const { command, args = [], cwd, env, input, signal, parseLine, onInputWritten } = options;
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
const child = spawn(
|
|
151
|
+
assertProviderCommand(command);
|
|
152
|
+
const processEnv = mergeProcessEnvironment(env ?? {});
|
|
153
|
+
const child = spawn(command, args, {
|
|
98
154
|
cwd,
|
|
99
155
|
env: processEnv,
|
|
100
156
|
stdio: ["pipe", "pipe", "pipe"],
|
|
@@ -241,8 +297,8 @@ export function createJsonCliAdapter(options) {
|
|
|
241
297
|
};
|
|
242
298
|
for await (const native of spawnJsonLines({
|
|
243
299
|
...spec,
|
|
244
|
-
cwd: spec.cwd ?? request
|
|
245
|
-
env: invocationEnvironment(request, spec.env),
|
|
300
|
+
cwd: spec.cwd ?? invocationWorkdir(request),
|
|
301
|
+
env: invocationEnvironment(request, spec.env, {}),
|
|
246
302
|
signal: request.signal,
|
|
247
303
|
rawMessageMaxBytes: context?.streamLimits?.rawMessageMaxBytes,
|
|
248
304
|
parseLine: parseJsonLine
|
|
@@ -271,51 +327,53 @@ export function createJsonCliAdapter(options) {
|
|
|
271
327
|
}, options.reasoningLevels);
|
|
272
328
|
}
|
|
273
329
|
/**
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
330
|
+
* 探测宿主已绑定的绝对启动链;不搜索安装,版本参数接在宿主前缀参数之后。
|
|
331
|
+
* 返回目标可执行性和可选版本;版本命令失败不等于目标不可用,版本门禁由 Provider 决定。
|
|
332
|
+
* 文件缺失与权限不足分别报告,失败不选择其他安装,也不解释前缀参数中的入口。
|
|
277
333
|
*/
|
|
278
|
-
export async function probeCommand(command, { env =
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
]
|
|
287
|
-
: [""];
|
|
288
|
-
return extensions.map((extension) => resolve(directory, command + extension));
|
|
289
|
-
});
|
|
290
|
-
for (const candidate of candidates) {
|
|
334
|
+
export async function probeCommand(command, { env = {}, cwd, args = [] } = {}) {
|
|
335
|
+
assertProviderCommand(command);
|
|
336
|
+
const candidate = command;
|
|
337
|
+
try {
|
|
338
|
+
await access(candidate, constants.X_OK);
|
|
339
|
+
if (!(await stat(candidate)).isFile())
|
|
340
|
+
return { available: false, command, reason: "invalid_executable" };
|
|
341
|
+
let version = null;
|
|
291
342
|
try {
|
|
292
|
-
await
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
windowsHide: true
|
|
304
|
-
});
|
|
305
|
-
const output = stdout.trim();
|
|
306
|
-
// Keep a version label, not arbitrary CLI banners or diagnostics.
|
|
307
|
-
version =
|
|
308
|
-
output.match(/(?:^|\s)v?(\d+\.\d+(?:\.\d+)?(?:[-+][A-Za-z0-9.-]+)?)(?=\s|$)/)?.[1] ??
|
|
309
|
-
null;
|
|
310
|
-
}
|
|
311
|
-
catch {
|
|
312
|
-
// Executable availability does not imply support for --version.
|
|
313
|
-
}
|
|
314
|
-
return { available: true, command: resolve(candidate), version };
|
|
343
|
+
const { stdout } = await promisify(execFile)(candidate, [...args, "--version"], {
|
|
344
|
+
env,
|
|
345
|
+
cwd,
|
|
346
|
+
timeout: 2_000,
|
|
347
|
+
maxBuffer: 4096,
|
|
348
|
+
windowsHide: true
|
|
349
|
+
});
|
|
350
|
+
const output = stdout.trim();
|
|
351
|
+
// Keep a version label, not arbitrary CLI banners or diagnostics.
|
|
352
|
+
version =
|
|
353
|
+
output.match(/(?:^|\s)v?(\d+\.\d+(?:\.\d+)?(?:[-+][A-Za-z0-9.-]+)?)(?=\s|$)/)?.[1] ?? null;
|
|
315
354
|
}
|
|
316
|
-
catch {
|
|
317
|
-
|
|
355
|
+
catch (error) {
|
|
356
|
+
const { code, syscall } = error;
|
|
357
|
+
// spawn 的系统错误表明目标不能启动;非零退出、超时或输出过大只使版本未知。
|
|
358
|
+
if (syscall?.startsWith("spawn"))
|
|
359
|
+
return {
|
|
360
|
+
available: false,
|
|
361
|
+
command,
|
|
362
|
+
reason: code === "EACCES" || code === "EPERM"
|
|
363
|
+
? "permission_denied"
|
|
364
|
+
: code === "ENOENT" || code === "ENOTDIR"
|
|
365
|
+
? "command_not_found"
|
|
366
|
+
: "command_launch_failed"
|
|
367
|
+
};
|
|
318
368
|
}
|
|
369
|
+
return { available: true, command: resolve(candidate), version };
|
|
370
|
+
}
|
|
371
|
+
catch (error) {
|
|
372
|
+
const code = error.code;
|
|
373
|
+
return {
|
|
374
|
+
available: false,
|
|
375
|
+
command,
|
|
376
|
+
reason: code === "EACCES" || code === "EPERM" ? "permission_denied" : "command_not_found"
|
|
377
|
+
};
|
|
319
378
|
}
|
|
320
|
-
return { available: false, command, reason: "command_not_found" };
|
|
321
379
|
}
|
|
@@ -12,7 +12,7 @@ export function expandMcpValue(value, env, path) {
|
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
export function invocationMcpServers(request, env = invocationEnvironment(request)) {
|
|
15
|
-
const payload = contextItem(request.
|
|
15
|
+
const payload = contextItem(request.agentEnv, "octo.execution", "mcp")?.payload ?? {
|
|
16
16
|
mcpServers: {}
|
|
17
17
|
};
|
|
18
18
|
assertContextMcp(payload);
|