aws-runtime-bridge 1.9.172 → 1.9.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +314 -0
- package/README.md +61 -2
- package/dist/adapter/AcodeSdkAdapter.d.ts +374 -1
- package/dist/adapter/AcodeSdkAdapter.js +3 -3
- package/dist/adapter/AdapterRegistry.d.ts +28 -0
- package/dist/adapter/ClaudeSdkAdapter.d.ts +71 -0
- package/dist/adapter/CodexSdkAdapter.d.ts +14 -0
- package/dist/adapter/OpencodeSdkAdapter.d.ts +44 -0
- package/dist/adapter/acode-tool-names.d.ts +9 -0
- package/dist/adapter/idle-poll-loop.d.ts +20 -0
- package/dist/adapter/index.d.ts +3 -0
- package/dist/adapter/instance-ai-config-resolver.d.ts +20 -0
- package/dist/adapter/prompts.d.ts +12 -0
- package/dist/adapter/types.d.ts +184 -0
- package/dist/browser/browser-bootstrap.d.ts +15 -0
- package/dist/browser/browser-connect-token.d.ts +11 -0
- package/dist/browser/browser-frame-encode.d.ts +32 -0
- package/dist/browser/browser-pool.d.ts +129 -0
- package/dist/browser/browser-profile-store.d.ts +41 -0
- package/dist/browser/browser-ws-bridge.d.ts +20 -0
- package/dist/browser/built-in-browser-tools.d.ts +44 -0
- package/dist/browser/element-locator.d.ts +25 -0
- package/dist/browser/element-picker.d.ts +30 -0
- package/dist/browser/frame-encode.d.ts +19 -0
- package/dist/browser/input-dispatcher.d.ts +35 -0
- package/dist/browser/listener-store.d.ts +44 -0
- package/dist/browser/page-listener-manager.d.ts +88 -0
- package/dist/browser/page-listener-types.d.ts +38 -0
- package/dist/browser/screencast-differ.d.ts +10 -0
- package/dist/browser/screencast-manager.d.ts +94 -0
- package/dist/browser/snapshot-serializer.d.ts +56 -0
- package/dist/browser/ssrf-guard.d.ts +44 -0
- package/dist/browser/stealth.d.ts +21 -0
- package/dist/browser/step-archive.d.ts +13 -0
- package/dist/browser/types.d.ts +100 -0
- package/dist/browser/ws-server.d.ts +54 -0
- package/dist/config.d.ts +138 -2
- package/dist/config.js +2 -2
- package/dist/desktop/built-in-desktop-tools.d.ts +68 -0
- package/dist/desktop/built-in-desktop-tools.js +2 -1
- package/dist/desktop/desktop-control.d.ts +142 -0
- package/dist/desktop/desktop-control.js +2 -0
- package/dist/desktop/desktop-mcp-client.d.ts +28 -0
- package/dist/desktop/desktop-staleness.d.ts +66 -0
- package/dist/desktop/desktop-staleness.js +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/middleware/auth.d.ts +26 -0
- package/dist/middleware/auth.js +1 -1
- package/dist/remote-desktop/computer-control.d.ts +3 -0
- package/dist/remote-desktop/coords.d.ts +6 -0
- package/dist/remote-desktop/frame-backpressure.d.ts +10 -0
- package/dist/remote-desktop/frame-encode.d.ts +3 -0
- package/dist/remote-desktop/index.js +2 -2
- package/dist/remote-desktop/input-dispatcher.d.ts +4 -0
- package/dist/remote-desktop/permission-manager.d.ts +3 -0
- package/dist/remote-desktop/screen-capture.d.ts +91 -0
- package/dist/remote-desktop/session-manager.d.ts +47 -0
- package/dist/remote-desktop/session-manager.js +1 -1
- package/dist/remote-desktop/system-backend.d.ts +64 -0
- package/dist/remote-desktop/types.d.ts +25 -0
- package/dist/remote-desktop/ui-automation.d.ts +11 -0
- package/dist/remote-desktop/win32-api.d.ts +10 -0
- package/dist/routes/acode-todos.d.ts +13 -0
- package/dist/routes/agent-state.d.ts +15 -0
- package/dist/routes/ai-sources.js +1 -1
- package/dist/routes/background-tasks.d.ts +18 -0
- package/dist/routes/background-tasks.js +2 -2
- package/dist/routes/bridge-temp-files.d.ts +1 -0
- package/dist/routes/bridge-temp-files.js +2 -0
- package/dist/routes/browser-listeners.d.ts +17 -0
- package/dist/routes/browser-sessions.d.ts +10 -0
- package/dist/routes/capabilities.js +1 -1
- package/dist/routes/dashboard-icon.d.ts +9 -0
- package/dist/routes/dashboard-icon.js +2 -0
- package/dist/routes/dashboard-theme.d.ts +24 -0
- package/dist/routes/dashboard-theme.js +157 -0
- package/dist/routes/dashboard.d.ts +9 -0
- package/dist/routes/dashboard.js +2021 -628
- package/dist/routes/debug-mount.d.ts +16 -0
- package/dist/routes/desktop-control.d.ts +15 -0
- package/dist/routes/desktop-control.js +2 -0
- package/dist/routes/events.d.ts +4 -0
- package/dist/routes/file-browser.d.ts +15 -10
- package/dist/routes/file-browser.js +1 -1
- package/dist/routes/file-change-diff.d.ts +25 -0
- package/dist/routes/file-diff-rollback.d.ts +28 -0
- package/dist/routes/file-snapshot.d.ts +7 -0
- package/dist/routes/git.d.ts +185 -0
- package/dist/routes/git.js +34 -34
- package/dist/routes/instance-tool-status.d.ts +5 -0
- package/dist/routes/instance.d.ts +8 -0
- package/dist/routes/instance.js +1 -1
- package/dist/routes/jdks.d.ts +4 -0
- package/dist/routes/launch.d.ts +5 -0
- package/dist/routes/lsp-providers.d.ts +11 -0
- package/dist/routes/lsp-providers.js +2 -0
- package/dist/routes/lsp.d.ts +41 -0
- package/dist/routes/lsp.js +4 -2
- package/dist/routes/mcp-extra.d.ts +15 -0
- package/dist/routes/mcp.d.ts +16 -0
- package/dist/routes/mcp.js +1 -1
- package/dist/routes/plugins.d.ts +19 -0
- package/dist/routes/plugins.js +1 -1
- package/dist/routes/processes.d.ts +4 -0
- package/dist/routes/properties.d.ts +4 -0
- package/dist/routes/pty.d.ts +29 -0
- package/dist/routes/runtime-binding.d.ts +3 -0
- package/dist/routes/sessions.d.ts +22 -0
- package/dist/routes/sessions.js +1 -1
- package/dist/routes/skills.d.ts +15 -0
- package/dist/routes/skills.js +1 -1
- package/dist/routes/sub-agents.d.ts +11 -0
- package/dist/routes/sub-agents.js +1 -1
- package/dist/routes/task-context.d.ts +5 -0
- package/dist/routes/tech-stack.d.ts +6 -0
- package/dist/routes/tech-stack.js +2 -0
- package/dist/routes/terminal.d.ts +122 -0
- package/dist/routes/terminal.js +22 -22
- package/dist/routes/workspace-index.d.ts +12 -0
- package/dist/routes/workspace-index.js +2 -0
- package/dist/routes/yml.d.ts +4 -0
- package/dist/scripts/migrate-user-scopes.d.ts +26 -0
- package/dist/scripts/migrate-user-scopes.js +2 -0
- package/dist/services/access-control.d.ts +21 -0
- package/dist/services/acode-bg-manager.d.ts +21 -0
- package/dist/services/acode-package.d.ts +10 -0
- package/dist/services/acode-package.js +1 -1
- package/dist/services/agent-capability-sync.d.ts +26 -0
- package/dist/services/agent-capability-sync.js +1 -1
- package/dist/services/agent-event-store.d.ts +20 -0
- package/dist/services/agent-ownership.d.ts +58 -0
- package/dist/services/agent-ownership.js +3 -0
- package/dist/services/agent-process-manager.d.ts +154 -0
- package/dist/services/agent-pty-manager.d.ts +39 -0
- package/dist/services/agent-pty-manager.js +5 -4
- package/dist/services/agent-startup-memory.d.ts +34 -0
- package/dist/services/agent-startup-memory.js +4 -4
- package/dist/services/ai-config-service.d.ts +26 -52
- package/dist/services/ai-config-service.js +1 -3
- package/dist/services/ai-source-apply.d.ts +7 -15
- package/dist/services/ai-source-apply.js +1 -1
- package/dist/services/auto-register.d.ts +165 -1
- package/dist/services/auto-register.js +1 -1
- package/dist/services/aws-client-agent-mcp.d.ts +14 -0
- package/dist/services/aws-client-agent-mcp.js +2 -2
- package/dist/services/bridge-package-publish-hooks.d.ts +14 -0
- package/dist/services/bridge-pairing.d.ts +82 -0
- package/dist/services/bridge-pairing.js +2 -0
- package/dist/services/bridge-temp-files.d.ts +65 -0
- package/dist/services/bridge-temp-files.js +2 -0
- package/dist/services/browser-session-manager.d.ts +71 -0
- package/dist/services/capability-config.d.ts +60 -15
- package/dist/services/capability-config.js +2 -2
- package/dist/services/change-cache-retention.d.ts +9 -0
- package/dist/services/changelog.d.ts +9 -0
- package/dist/services/cli-commands.d.ts +82 -0
- package/dist/services/cli-commands.js +6 -6
- package/dist/services/connection-key-rotation.d.ts +27 -0
- package/dist/services/connection-key-rotation.js +2 -0
- package/dist/services/debug-mount.d.ts +49 -0
- package/dist/services/desktop-mcp-manager.d.ts +103 -1
- package/dist/services/desktop-mcp-manager.js +1 -1
- package/dist/services/event-delta-pusher.d.ts +15 -0
- package/dist/services/fileSnapshotStore.d.ts +42 -0
- package/dist/services/fileSnapshotStore.js +1 -1
- package/dist/services/gitignore.d.ts +21 -0
- package/dist/services/gitignore.js +2 -0
- package/dist/services/instance-ai-config-service.d.ts +9 -0
- package/dist/services/instance-ai-config-service.js +1 -1
- package/dist/services/instance-features.d.ts +127 -0
- package/dist/services/instance-features.js +1 -1
- package/dist/services/instance-init-service.d.ts +3 -0
- package/dist/services/instance-init-service.js +1 -1
- package/dist/services/instance-state.d.ts +23 -0
- package/dist/services/jdk-scanner.d.ts +15 -0
- package/dist/services/launch-manager.d.ts +138 -0
- package/dist/services/launch-metrics.d.ts +42 -0
- package/dist/services/launch-streams.d.ts +19 -0
- package/dist/services/lifecycle-state.d.ts +5 -0
- package/dist/services/log-retention.d.ts +38 -0
- package/dist/services/log-retention.js +1 -1
- package/dist/services/lsp/install-manager.d.ts +55 -0
- package/dist/services/lsp/install-manager.js +2 -0
- package/dist/services/lsp/provider-registry.d.ts +108 -0
- package/dist/services/lsp/provider-registry.js +2 -0
- package/dist/services/lsp/uri-rewrite.d.ts +44 -0
- package/dist/services/lsp/uri-rewrite.js +2 -0
- package/dist/services/lsp-stdio-bridge.d.ts +41 -4
- package/dist/services/lsp-stdio-bridge.js +3 -3
- package/dist/services/mcp-deploy.d.ts +45 -4
- package/dist/services/mcp-deploy.js +4 -4
- package/dist/services/mcp-env-injector.d.ts +52 -0
- package/dist/services/mcp-launch-binding-queue.d.ts +12 -0
- package/dist/services/mcp-package.d.ts +22 -0
- package/dist/services/mcp-package.js +1 -1
- package/dist/services/mcp-probe-client.d.ts +19 -0
- package/dist/services/mcp-probe-client.js +1 -1
- package/dist/services/open-doc-events.d.ts +43 -0
- package/dist/services/open-doc-events.js +2 -0
- package/dist/services/open-doc-registry.d.ts +59 -0
- package/dist/services/open-doc-registry.js +2 -0
- package/dist/services/orphan-monitor.d.ts +43 -0
- package/dist/services/panel-auth.d.ts +24 -0
- package/dist/services/panel-env.d.ts +28 -0
- package/dist/services/plugin-deployment.d.ts +34 -1
- package/dist/services/plugin-deployment.js +2 -2
- package/dist/services/plugin-event-buffer.d.ts +21 -0
- package/dist/services/plugin-fs.d.ts +11 -0
- package/dist/services/plugin-handler-adapter.d.ts +13 -0
- package/dist/services/plugin-listener-runner.d.ts +10 -0
- package/dist/services/plugin-loader.d.ts +15 -0
- package/dist/services/plugin-manager.d.ts +95 -9
- package/dist/services/plugin-manager.js +4 -4
- package/dist/services/plugin-manifest.d.ts +14 -0
- package/dist/services/plugin-package.d.ts +13 -0
- package/dist/services/plugin-runtime.d.ts +15 -0
- package/dist/services/port-detector.d.ts +15 -0
- package/dist/services/process-detail.d.ts +3 -0
- package/dist/services/process-detector.d.ts +132 -0
- package/dist/services/process-registry.d.ts +120 -0
- package/dist/services/process-top.d.ts +6 -0
- package/dist/services/request-identity.d.ts +77 -0
- package/dist/services/request-identity.js +2 -0
- package/dist/services/request-invalid-dump.d.ts +4 -0
- package/dist/services/request-invalid-dump.js +1 -1
- package/dist/services/ring-buffer.d.ts +33 -0
- package/dist/services/runtime-binding.d.ts +56 -4
- package/dist/services/runtime-binding.js +4 -4
- package/dist/services/runtime-lifecycle-policy.d.ts +17 -0
- package/dist/services/runtime-resources-snapshot.d.ts +26 -0
- package/dist/services/runtime-resources-snapshot.js +2 -2
- package/dist/services/sdk-tool-file-change-recorder.d.ts +9 -0
- package/dist/services/session-output.d.ts +63 -0
- package/dist/services/session-output.js +3 -3
- package/dist/services/skill-manager.d.ts +42 -5
- package/dist/services/skill-manager.js +3 -3
- package/dist/services/snapshot-retention.d.ts +30 -0
- package/dist/services/snapshot-retention.js +2 -0
- package/dist/services/startup-config-wizard.d.ts +7 -1
- package/dist/services/startup-config-wizard.js +10 -10
- package/dist/services/system-metrics.d.ts +3 -0
- package/dist/services/tech-stack-scanner.d.ts +43 -0
- package/dist/services/tech-stack-scanner.js +2 -0
- package/dist/services/terminal-persistence.d.ts +43 -0
- package/dist/services/tool-installer.d.ts +12 -0
- package/dist/services/tunnel-client.d.ts +99 -2
- package/dist/services/tunnel-client.js +1 -1
- package/dist/services/update-log.d.ts +6 -0
- package/dist/services/update-notifier.d.ts +17 -0
- package/dist/services/update-notifier.js +2 -2
- package/dist/services/user-scope.d.ts +115 -0
- package/dist/services/user-scope.js +2 -0
- package/dist/services/windows-service-manager.d.ts +12 -0
- package/dist/services/workspace-files.d.ts +64 -0
- package/dist/services/workspace-index/index-manager.d.ts +46 -0
- package/dist/services/workspace-index/index-manager.js +2 -0
- package/dist/services/workspace-index/indexer.d.ts +15 -0
- package/dist/services/workspace-index/indexer.js +2 -0
- package/dist/services/workspace-index/query.d.ts +74 -0
- package/dist/services/workspace-index/query.js +5 -0
- package/dist/services/workspace-index/resolver.d.ts +26 -0
- package/dist/services/workspace-index/resolver.js +2 -0
- package/dist/services/workspace-index/types.d.ts +89 -0
- package/dist/services/workspace-index/types.js +2 -0
- package/dist/services/workspace-watch.d.ts +4 -0
- package/dist/services/workspaceTaskChangeWatcher.d.ts +49 -0
- package/dist/services/workspaceTaskChangeWatcher.js +2 -2
- package/dist/types.d.ts +9 -0
- package/dist/utils/config-write-queue.d.ts +11 -0
- package/dist/utils/env-safety.d.ts +21 -0
- package/dist/utils/file-utils.d.ts +15 -0
- package/dist/utils/instance-ai-config-debug-logger.d.ts +15 -0
- package/dist/utils/lifecycle-log.d.ts +5 -0
- package/dist/utils/logger.d.ts +13 -0
- package/dist/utils/logger.js +2 -1
- package/dist/utils/npm-version.d.ts +10 -0
- package/dist/utils/path-utils.d.ts +12 -0
- package/dist/utils/scheduler-url.d.ts +18 -0
- package/dist/utils/scheduler-url.js +2 -0
- package/dist/utils/sdk-package-loader.d.ts +13 -0
- package/dist/utils/sdk-package-loader.js +1 -1
- package/dist/utils/target-identity.d.ts +31 -0
- package/dist/utils/target-identity.js +2 -0
- package/dist/utils/validation.d.ts +17 -0
- package/dist/utils/yaml-utils.d.ts +48 -0
- package/package/acode/dist/__tests__/summary-request-helper.d.ts +12 -0
- package/package/acode/dist/__tests__/summary-request-helper.js +2 -0
- package/package/acode/dist/ask-user-question-tool.d.ts +17 -0
- package/package/acode/dist/await-complete-tool.d.ts +12 -0
- package/package/acode/dist/background-command-manager.d.ts +105 -0
- package/package/acode/dist/background-command-store.d.ts +27 -0
- package/package/acode/dist/background-command-tools.d.ts +8 -0
- package/package/acode/dist/background-output-ringbuffer.d.ts +15 -0
- package/package/acode/dist/built-in-file-tools.d.ts +65 -0
- package/package/acode/dist/built-in-symbols-tool.d.ts +3 -0
- package/package/acode/dist/builtins/commandArtifacts.d.ts +3 -0
- package/package/acode/dist/builtins/shellCommandPreparation.d.ts +17 -0
- package/package/acode/dist/builtins/shellCommandRunner.d.ts +4 -0
- package/package/acode/dist/builtins/shellOutputDecoder.d.ts +15 -0
- package/package/acode/dist/cache-control.d.ts +71 -0
- package/package/acode/dist/cache-control.js +2 -0
- package/package/acode/dist/commands/commandLoader.d.ts +3 -0
- package/package/acode/dist/commands/commandParser.d.ts +3 -0
- package/package/acode/dist/commands/commandRegistry.d.ts +3 -0
- package/package/acode/dist/compaction.d.ts +388 -4
- package/package/acode/dist/compaction.js +19 -17
- package/package/acode/dist/config.d.ts +3 -0
- package/package/acode/dist/context-overflow.d.ts +32 -0
- package/package/acode/dist/fs-utils.d.ts +18 -0
- package/package/acode/dist/hooks/hookBus.d.ts +3 -0
- package/package/acode/dist/image-utils.d.ts +35 -0
- package/package/acode/dist/index.d.ts +1 -0
- package/package/acode/dist/index.js +1 -1
- package/package/acode/dist/mcpToolNames.d.ts +32 -0
- package/package/acode/dist/microcompact.d.ts +110 -0
- package/package/acode/dist/microcompact.js +2 -0
- package/package/acode/dist/parsers/ast-cache.d.ts +41 -0
- package/package/acode/dist/parsers/file-index.d.ts +83 -0
- package/package/acode/dist/parsers/file-index.js +4 -0
- package/package/acode/dist/parsers/language-detector.d.ts +4 -0
- package/package/acode/dist/parsers/tree-sitter-loader.d.ts +12 -0
- package/package/acode/dist/parsers/types.d.ts +11 -0
- package/package/acode/dist/paths.d.ts +14 -0
- package/package/acode/dist/plugin-types.d.ts +34 -0
- package/package/acode/dist/read-file-state.d.ts +15 -0
- package/package/acode/dist/runtime-environment.d.ts +16 -0
- package/package/acode/dist/runtime.d.ts +828 -9
- package/package/acode/dist/runtime.js +40 -33
- package/package/acode/dist/skill-tool.d.ts +20 -0
- package/package/acode/dist/sub-agent-manager.d.ts +169 -0
- package/package/acode/dist/sub-agent-manager.js +1 -1
- package/package/acode/dist/sub-agent-store.d.ts +50 -0
- package/package/acode/dist/sub-agent-tools.d.ts +15 -0
- package/package/acode/dist/sub-agent-types.d.ts +13 -0
- package/package/acode/dist/terminal-tool.d.ts +15 -0
- package/package/acode/dist/terminal-types.d.ts +10 -0
- package/package/acode/dist/todo-store.d.ts +15 -0
- package/package/acode/dist/token-estimator.d.ts +32 -0
- package/package/acode/dist/token-estimator.js +2 -0
- package/package/acode/dist/tool-allocation.d.ts +113 -0
- package/package/acode/dist/tool-concurrency/index.d.ts +8 -0
- package/package/acode/dist/tool-concurrency/observability.d.ts +32 -0
- package/package/acode/dist/tool-concurrency/resource-lock.d.ts +30 -0
- package/package/acode/dist/tool-concurrency/scheduler.d.ts +19 -0
- package/package/acode/dist/tool-concurrency/types.d.ts +57 -0
- package/package/acode/dist/tool-group-manager.d.ts +195 -0
- package/package/acode/dist/tool-group-manager.js +4 -4
- package/package/acode/dist/types.d.ts +192 -0
- package/package/aws-client-agent-mcp/README.md +130 -215
- package/package/aws-client-agent-mcp/dist/ability-market-tools.d.ts +57 -0
- package/package/aws-client-agent-mcp/dist/ability-market-tools.js +1 -1
- package/package/aws-client-agent-mcp/dist/agent-client.d.ts +290 -3
- package/package/aws-client-agent-mcp/dist/agent-client.js +1 -1
- package/package/aws-client-agent-mcp/dist/config.d.ts +18 -0
- package/package/aws-client-agent-mcp/dist/constants.d.ts +2 -0
- package/package/aws-client-agent-mcp/dist/context-manager.d.ts +70 -0
- package/package/aws-client-agent-mcp/dist/http-client.d.ts +61 -0
- package/package/aws-client-agent-mcp/dist/index.d.ts +10 -0
- package/package/aws-client-agent-mcp/dist/logger.d.ts +24 -0
- package/package/aws-client-agent-mcp/dist/mcp-server.d.ts +610 -0
- package/package/aws-client-agent-mcp/dist/mcp-server.js +25 -23
- package/package/aws-client-agent-mcp/dist/mcp-tools.d.ts +158 -0
- package/package/aws-client-agent-mcp/dist/mcp-tools.js +38 -22
- package/package/aws-client-agent-mcp/dist/memory-store.d.ts +102 -2
- package/package/aws-client-agent-mcp/dist/memory-store.js +27 -2
- package/package/aws-client-agent-mcp/dist/memory-tools.d.ts +18 -0
- package/package/aws-client-agent-mcp/dist/memory-tools.js +13 -9
- package/package/aws-client-agent-mcp/dist/message-buffer.d.ts +86 -0
- package/package/aws-client-agent-mcp/dist/messageContent.d.ts +24 -0
- package/package/aws-client-agent-mcp/dist/office/office-equation.d.ts +19 -0
- package/package/aws-client-agent-mcp/dist/office/office-image.d.ts +18 -0
- package/package/aws-client-agent-mcp/dist/office/office-workspace.d.ts +29 -0
- package/package/aws-client-agent-mcp/dist/parent-lifecycle.d.ts +18 -0
- package/package/aws-client-agent-mcp/dist/runtime-launch-binding.d.ts +6 -0
- package/package/aws-client-agent-mcp/dist/server-memory-store.d.ts +5 -1
- package/package/aws-client-agent-mcp/dist/server-memory-store.js +1 -1
- package/package/aws-client-agent-mcp/dist/status-reporter.d.ts +41 -0
- package/package/aws-client-agent-mcp/dist/tool-groups.d.ts +136 -0
- package/package/aws-client-agent-mcp/dist/types.d.ts +174 -0
- package/package/aws-client-agent-mcp/dist/watchdog.d.ts +7 -0
- package/package/aws-client-agent-mcp/dist/websocket-client.d.ts +108 -0
- package/package.json +1 -1
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
2
13
|
import { EventEmitter } from 'node:events';
|
|
3
14
|
import { type AdapterSessionConfig, type BaseProviderAdapter, type ConversationMessage, type SessionStatus } from './types.js';
|
|
4
15
|
export declare class OpencodeSdkAdapter extends EventEmitter implements BaseProviderAdapter {
|
|
@@ -27,24 +38,57 @@ export declare class OpencodeSdkAdapter extends EventEmitter implements BaseProv
|
|
|
27
38
|
getSessionPid(sessionId: string): number | undefined;
|
|
28
39
|
cleanup(): void;
|
|
29
40
|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
30
44
|
private loadSdk;
|
|
31
45
|
private waitForServer;
|
|
32
46
|
|
|
47
|
+
|
|
48
|
+
|
|
33
49
|
private recordStartupOutput;
|
|
34
50
|
|
|
51
|
+
|
|
52
|
+
|
|
35
53
|
private formatStartupExitMessage;
|
|
36
54
|
|
|
55
|
+
|
|
56
|
+
|
|
37
57
|
private dispatchInitialPrompt;
|
|
38
58
|
private startSseLoop;
|
|
39
59
|
private runSseLoop;
|
|
40
60
|
private handleOpenCodeEvent;
|
|
41
61
|
private handlePartUpdate;
|
|
42
62
|
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
43
80
|
private getTodoStoreDir;
|
|
44
81
|
private syncTodosFromToolCall;
|
|
45
82
|
private emitEvent;
|
|
46
83
|
private startIdleDetection;
|
|
47
84
|
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
48
92
|
private armIdleCheck;
|
|
49
93
|
private stopIdleDetection;
|
|
50
94
|
private checkIdleState;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
2
5
|
export declare function getSemanticToolName(toolName: string): string;
|
|
3
6
|
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
4
10
|
export declare function isMessagePollingIdleCommand(command: string): boolean;
|
|
5
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
export declare function isPollMessageToolDescriptor(tool: Readonly<Record<string, unknown>>): boolean;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
2
5
|
import type { SessionStatus } from "./types.js";
|
|
3
6
|
export interface IdlePollLoopOptions {
|
|
4
7
|
readonly getStatus: () => SessionStatus | undefined;
|
|
5
8
|
readonly getCommand: () => string | undefined;
|
|
6
9
|
readonly isPollingCommand: (command: string) => boolean;
|
|
7
10
|
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
8
16
|
readonly dispatchPollingPrompt: (command: string, injected?: boolean) => void | Promise<void>;
|
|
9
17
|
readonly dispatchRegularIdleCommand: (command: string) => void | Promise<void>;
|
|
10
18
|
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
11
22
|
readonly preDispatchHook?: () => string | null | Promise<string | null>;
|
|
12
23
|
readonly pollDelayMs?: number;
|
|
13
24
|
readonly regularIdleDelayMs?: number;
|
|
14
25
|
}
|
|
15
26
|
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
16
30
|
export declare class IdlePollLoop {
|
|
17
31
|
private readonly options;
|
|
18
32
|
private timer;
|
|
@@ -21,8 +35,14 @@ export declare class IdlePollLoop {
|
|
|
21
35
|
private readonly regularIdleDelayMs;
|
|
22
36
|
constructor(options: IdlePollLoopOptions);
|
|
23
37
|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
24
41
|
start(): void;
|
|
25
42
|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
26
46
|
stop(): void;
|
|
27
47
|
private fire;
|
|
28
48
|
}
|
package/dist/adapter/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
export interface InstanceAiConfig {
|
|
4
11
|
model?: string;
|
|
5
12
|
baseURL?: string;
|
|
@@ -7,6 +14,8 @@ export interface InstanceAiConfig {
|
|
|
7
14
|
effort?: string;
|
|
8
15
|
}
|
|
9
16
|
|
|
17
|
+
|
|
18
|
+
|
|
10
19
|
export interface ResolvedAcodeProviderConfig {
|
|
11
20
|
|
|
12
21
|
model: string;
|
|
@@ -25,4 +34,15 @@ export interface ResolvedAcodeProviderConfig {
|
|
|
25
34
|
};
|
|
26
35
|
}
|
|
27
36
|
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
28
48
|
export declare function resolveAcodeProviderConfig(instanceConfig: InstanceAiConfig, globalConfig: InstanceAiConfig | undefined, defaultModel: string): ResolvedAcodeProviderConfig;
|
package/dist/adapter/types.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
2
7
|
import { EventEmitter } from "node:events";
|
|
3
8
|
export type SessionStatus = "starting" | "thinking" | "tool_using" | "waiting_input" | "completed" | "terminated" | "error" | "compacting";
|
|
4
9
|
export type ProviderEventType = "ai_request" | "text_delta" | "thinking" | "command_output" | "tool_use_start" | "tool_use_end" | "permission_request" | "ask_user_question" | "exit_plan_mode" | "turn_complete" | "session_complete" | "error" | "context_compaction" | "compaction_summary" | "runtime_capabilities" | "tool_batch_start" | "tool_batch_metrics" | "background_command_completed";
|
|
5
10
|
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
export type ToolActionType = "skill" | "mcp" | "idle" | "edit_file" | "write_file" | "read_file" | "bash" | "search" | "web" | "ai_request" | "lsp" | "notebook" | "other" | "context_compaction" | "runtime_capabilities" | "tool_batch" | "background_command";
|
|
7
15
|
|
|
16
|
+
|
|
17
|
+
|
|
8
18
|
export interface ToolActionInfo {
|
|
9
19
|
|
|
10
20
|
actionType: ToolActionType;
|
|
@@ -14,6 +24,8 @@ export interface ToolActionInfo {
|
|
|
14
24
|
actionDetail?: string;
|
|
15
25
|
}
|
|
16
26
|
|
|
27
|
+
|
|
28
|
+
|
|
17
29
|
export interface ToolMetadata {
|
|
18
30
|
|
|
19
31
|
mcpServer?: string;
|
|
@@ -21,13 +33,26 @@ export interface ToolMetadata {
|
|
|
21
33
|
[key: string]: unknown;
|
|
22
34
|
}
|
|
23
35
|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
24
39
|
export declare function redactTransientClipboardPastePaths(text: string): string;
|
|
25
40
|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
26
44
|
export declare function isTransientClipboardPasteFilePath(text: string): boolean;
|
|
27
45
|
|
|
46
|
+
|
|
47
|
+
|
|
28
48
|
export declare function redactTransientClipboardPastePathsInValue(value: unknown): unknown;
|
|
29
49
|
export declare function getCanonicalMcpDetail(rawToolName: string): string;
|
|
30
50
|
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
31
56
|
export declare function getToolActionInfo(toolName: string | undefined, toolInput?: Record<string, unknown>, metadata?: ToolMetadata): ToolActionInfo;
|
|
32
57
|
export interface RuntimeTokenUsage {
|
|
33
58
|
inputTokens: number;
|
|
@@ -37,10 +62,15 @@ export interface RuntimeTokenUsage {
|
|
|
37
62
|
|
|
38
63
|
maxOutput?: number;
|
|
39
64
|
|
|
65
|
+
|
|
40
66
|
inputLimit?: number;
|
|
41
67
|
|
|
68
|
+
|
|
69
|
+
|
|
42
70
|
compactionThreshold?: number;
|
|
43
71
|
|
|
72
|
+
|
|
73
|
+
|
|
44
74
|
cacheHitTokens?: number;
|
|
45
75
|
|
|
46
76
|
cacheMissTokens?: number;
|
|
@@ -55,6 +85,9 @@ export interface RuntimeStatusActionInfo {
|
|
|
55
85
|
actionResult?: string;
|
|
56
86
|
actionId?: string;
|
|
57
87
|
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
58
91
|
actionError?: string;
|
|
59
92
|
|
|
60
93
|
parentId?: string;
|
|
@@ -92,6 +125,7 @@ export interface ProviderEvent {
|
|
|
92
125
|
|
|
93
126
|
toolName?: string;
|
|
94
127
|
|
|
128
|
+
|
|
95
129
|
rawToolName?: string;
|
|
96
130
|
|
|
97
131
|
toolInput?: Record<string, unknown>;
|
|
@@ -146,6 +180,10 @@ export interface ProviderEvent {
|
|
|
146
180
|
|
|
147
181
|
capabilities?: RuntimeCapabilities;
|
|
148
182
|
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
149
187
|
batchId?: string;
|
|
150
188
|
|
|
151
189
|
batchToolCount?: number;
|
|
@@ -156,6 +194,9 @@ export interface ProviderEvent {
|
|
|
156
194
|
};
|
|
157
195
|
}
|
|
158
196
|
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
159
200
|
export interface RuntimeSkillGroup {
|
|
160
201
|
|
|
161
202
|
dir: string;
|
|
@@ -191,6 +232,11 @@ export interface RuntimeCapabilities {
|
|
|
191
232
|
skillGroups?: RuntimeSkillGroup[];
|
|
192
233
|
}
|
|
193
234
|
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
194
240
|
export interface RuntimeToolBatchMetrics {
|
|
195
241
|
|
|
196
242
|
toolCount: number;
|
|
@@ -210,6 +256,12 @@ export interface RuntimeToolBatchMetrics {
|
|
|
210
256
|
maxConcurrentObserved?: number;
|
|
211
257
|
}
|
|
212
258
|
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
213
265
|
export interface AdapterInstanceAiConfig {
|
|
214
266
|
model?: string;
|
|
215
267
|
baseURL?: string;
|
|
@@ -251,8 +303,21 @@ export interface AdapterSessionConfig {
|
|
|
251
303
|
|
|
252
304
|
memory?: string;
|
|
253
305
|
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
254
312
|
resumeContext?: string;
|
|
255
313
|
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
256
321
|
resumeTranscript?: unknown[];
|
|
257
322
|
|
|
258
323
|
model?: string;
|
|
@@ -263,6 +328,10 @@ export interface AdapterSessionConfig {
|
|
|
263
328
|
|
|
264
329
|
mcpConfigPath?: string;
|
|
265
330
|
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
266
335
|
instanceAiConfig?: AdapterInstanceAiConfig;
|
|
267
336
|
|
|
268
337
|
subAgentModel?: string;
|
|
@@ -337,24 +406,65 @@ export interface AskUserQuestionRequest {
|
|
|
337
406
|
}>;
|
|
338
407
|
}
|
|
339
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
340
422
|
export declare abstract class BaseProviderAdapter extends EventEmitter {
|
|
341
423
|
|
|
342
424
|
abstract readonly providerId: string;
|
|
343
425
|
|
|
344
426
|
abstract readonly displayName: string;
|
|
345
427
|
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
346
432
|
abstract startSession(sessionId: string, config: AdapterSessionConfig): Promise<void>;
|
|
347
433
|
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
348
438
|
abstract sendMessage(sessionId: string, message: string): Promise<void>;
|
|
349
439
|
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
350
444
|
abstract sendConfirmation(sessionId: string, accept: boolean): Promise<void>;
|
|
351
445
|
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
352
450
|
abstract sendQuestionAnswer?(sessionId: string, answers: Record<string, string>): Promise<void>;
|
|
353
451
|
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
354
455
|
abstract cancelQuestionAnswer?(sessionId: string, reason?: string): Promise<void>;
|
|
355
456
|
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
356
463
|
abstract submitToolPermissionDecision?(sessionId: string, requestId: string, allowed: boolean): boolean;
|
|
357
464
|
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
358
468
|
abstract getPendingToolAuthRequests?(sessionId: string): Array<{
|
|
359
469
|
requestId: string;
|
|
360
470
|
capability: string;
|
|
@@ -362,43 +472,117 @@ export declare abstract class BaseProviderAdapter extends EventEmitter {
|
|
|
362
472
|
requestedAt: number;
|
|
363
473
|
}>;
|
|
364
474
|
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
365
480
|
abstract setIdleCommands?(sessionId: string, commands: {
|
|
366
481
|
idleInputCommand: string;
|
|
367
482
|
nonInputCommand: string;
|
|
368
483
|
}): void;
|
|
369
484
|
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
370
489
|
abstract sendShortcutInput?(sessionId: string, command: string): Promise<void>;
|
|
371
490
|
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
372
495
|
abstract abortCurrentTurn(sessionId: string): Promise<void>;
|
|
373
496
|
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
374
502
|
abstract applyAgentFeatures?(agentId: string): Promise<void>;
|
|
375
503
|
|
|
504
|
+
|
|
505
|
+
|
|
376
506
|
abstract resetContext?(sessionId: string): Promise<void>;
|
|
377
507
|
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
378
513
|
abstract compactContext?(sessionId: string): unknown;
|
|
379
514
|
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
380
518
|
abstract terminateSession(sessionId: string): Promise<void>;
|
|
381
519
|
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
382
525
|
abstract resumeSession?(sessionId: string, providerSessionId: string, config: AdapterSessionConfig): Promise<void>;
|
|
383
526
|
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
384
530
|
abstract getConversation(sessionId: string): ConversationMessage[];
|
|
385
531
|
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
386
535
|
abstract hasSession(sessionId: string): boolean;
|
|
387
536
|
|
|
537
|
+
|
|
538
|
+
|
|
388
539
|
abstract getProviderSessionId(sessionId: string): string | undefined;
|
|
389
540
|
|
|
541
|
+
|
|
542
|
+
|
|
390
543
|
abstract getSessionStatus(sessionId: string): SessionStatus | undefined;
|
|
391
544
|
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
392
549
|
abstract notifyForceMessage?(sessionId: string): boolean;
|
|
393
550
|
|
|
551
|
+
|
|
552
|
+
|
|
394
553
|
abstract getSessionPid?(sessionId: string): number | undefined;
|
|
395
554
|
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
abstract hasActiveBlockingToolCall?(sessionId: string): boolean;
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
396
572
|
abstract getCapabilities?(sessionId: string): RuntimeCapabilities | undefined;
|
|
397
573
|
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
398
580
|
abstract getPendingQuestion?(sessionId: string): {
|
|
399
581
|
toolCallId: string;
|
|
400
582
|
questions: unknown[];
|
|
401
583
|
} | undefined;
|
|
402
584
|
|
|
585
|
+
|
|
586
|
+
|
|
403
587
|
abstract cleanup(): void;
|
|
404
588
|
}
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
export declare function isBrowserMissingError(error: unknown): boolean;
|
|
4
11
|
export interface BrowserInstallResult {
|
|
5
12
|
ok: boolean;
|
|
6
13
|
output: string;
|
|
7
14
|
}
|
|
8
15
|
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
9
19
|
export declare function installPlaywrightChromium(): Promise<BrowserInstallResult>;
|
|
10
20
|
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
11
26
|
export declare function formatBrowserLaunchError(error: Error, install: BrowserInstallResult): Error;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
3
12
|
export declare function createBrowserConnectToken(agentId: string, browserId?: string): {
|
|
4
13
|
token: string;
|
|
5
14
|
expiresAt: string;
|
|
6
15
|
} | undefined;
|
|
7
16
|
|
|
17
|
+
|
|
18
|
+
|
|
8
19
|
export declare function consumeBrowserConnectToken(agentId: string, browserId: string, token: string): boolean;
|
|
9
20
|
|
|
10
21
|
export declare function deleteBrowserConnectTokensForAgent(agentId: string): void;
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
2
29
|
import type { ScreencastDiffFrame } from "./types.js";
|
|
3
30
|
export declare const BROWSER_FRAME_MAGIC = 16979;
|
|
4
31
|
export declare const BROWSER_FRAME_VERSION = 1;
|
|
@@ -12,5 +39,10 @@ export interface BrowserFrameMeta {
|
|
|
12
39
|
url?: string;
|
|
13
40
|
}
|
|
14
41
|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
15
47
|
export declare function isIncrementalBinaryFrame(buf: Buffer | undefined | null): boolean;
|
|
16
48
|
export declare function encodeBrowserFrame(frame: ScreencastDiffFrame, seq: number, meta?: BrowserFrameMeta): Buffer;
|