kooyu 0.0.0-stage → 0.2.1
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/LICENSE +21 -0
- package/README.md +66 -2
- package/bin/kooyu.mjs +56 -0
- package/node_modules/@kodo/platform/LICENSE +21 -0
- package/node_modules/@kodo/platform/dist/index.d.ts +4 -0
- package/node_modules/@kodo/platform/dist/index.js +26 -0
- package/node_modules/@kodo/platform/dist/index.js.map +1 -0
- package/node_modules/@kodo/platform/package.json +16 -0
- package/node_modules/@kodo/protocol/LICENSE +21 -0
- package/node_modules/@kodo/protocol/dist/activity.d.ts +26 -0
- package/node_modules/@kodo/protocol/dist/activity.js +2 -0
- package/node_modules/@kodo/protocol/dist/activity.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/assistant-content.d.ts +10 -0
- package/node_modules/@kodo/protocol/dist/assistant-content.js +77 -0
- package/node_modules/@kodo/protocol/dist/assistant-content.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/automation-schedule.d.ts +18 -0
- package/node_modules/@kodo/protocol/dist/automation-schedule.js +98 -0
- package/node_modules/@kodo/protocol/dist/automation-schedule.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/client.d.ts +11 -0
- package/node_modules/@kodo/protocol/dist/client.js +75 -0
- package/node_modules/@kodo/protocol/dist/client.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/clients.d.ts +203 -0
- package/node_modules/@kodo/protocol/dist/clients.js +18 -0
- package/node_modules/@kodo/protocol/dist/clients.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/conversation.d.ts +11 -0
- package/node_modules/@kodo/protocol/dist/conversation.js +38 -0
- package/node_modules/@kodo/protocol/dist/conversation.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/files.d.ts +93 -0
- package/node_modules/@kodo/protocol/dist/files.js +44 -0
- package/node_modules/@kodo/protocol/dist/files.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/goals.d.ts +204 -0
- package/node_modules/@kodo/protocol/dist/goals.js +99 -0
- package/node_modules/@kodo/protocol/dist/goals.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/index.d.ts +678 -0
- package/node_modules/@kodo/protocol/dist/index.js +179 -0
- package/node_modules/@kodo/protocol/dist/index.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/notifications.d.ts +50 -0
- package/node_modules/@kodo/protocol/dist/notifications.js +15 -0
- package/node_modules/@kodo/protocol/dist/notifications.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/onboarding.d.ts +17 -0
- package/node_modules/@kodo/protocol/dist/onboarding.js +9 -0
- package/node_modules/@kodo/protocol/dist/onboarding.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/providers.d.ts +292 -0
- package/node_modules/@kodo/protocol/dist/providers.js +142 -0
- package/node_modules/@kodo/protocol/dist/providers.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/self-hosted.d.ts +146 -0
- package/node_modules/@kodo/protocol/dist/self-hosted.js +76 -0
- package/node_modules/@kodo/protocol/dist/self-hosted.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/settings.d.ts +137 -0
- package/node_modules/@kodo/protocol/dist/settings.js +80 -0
- package/node_modules/@kodo/protocol/dist/settings.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/skills.d.ts +27 -0
- package/node_modules/@kodo/protocol/dist/skills.js +2 -0
- package/node_modules/@kodo/protocol/dist/skills.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/web.d.ts +47 -0
- package/node_modules/@kodo/protocol/dist/web.js +13 -0
- package/node_modules/@kodo/protocol/dist/web.js.map +1 -0
- package/node_modules/@kodo/protocol/dist/workspace-files.d.ts +37 -0
- package/node_modules/@kodo/protocol/dist/workspace-files.js +2 -0
- package/node_modules/@kodo/protocol/dist/workspace-files.js.map +1 -0
- package/node_modules/@kodo/protocol/package.json +23 -0
- package/package.json +56 -4
- package/runtime/apps/web/dist/apple-touch-icon.png +0 -0
- package/runtime/apps/web/dist/art/prism-alabaster.jpg +0 -0
- package/runtime/apps/web/dist/art/prism-obsidian.jpg +0 -0
- package/runtime/apps/web/dist/assets/index-5gyqwenn.js +80191 -0
- package/runtime/apps/web/dist/assets/index-BC5Kj-z8.css +20556 -0
- package/runtime/apps/web/dist/favicon.ico +0 -0
- package/runtime/apps/web/dist/icon-192.png +0 -0
- package/runtime/apps/web/dist/icon-512.png +0 -0
- package/runtime/apps/web/dist/icon-maskable-512.png +0 -0
- package/runtime/apps/web/dist/icon.svg +21 -0
- package/runtime/apps/web/dist/index.html +21 -0
- package/runtime/apps/web/dist/manifest.webmanifest +35 -0
- package/runtime/apps/web/dist/sw.js +42 -0
- package/runtime/docs/verification.json +549 -0
- package/runtime/package-lock.json +12599 -0
- package/runtime/package.json +6 -0
- package/runtime/packages/host/dist/applications/http.d.ts +2 -0
- package/runtime/packages/host/dist/applications/http.js +36 -0
- package/runtime/packages/host/dist/applications/http.js.map +1 -0
- package/runtime/packages/host/dist/applications/oauth.d.ts +24 -0
- package/runtime/packages/host/dist/applications/oauth.js +216 -0
- package/runtime/packages/host/dist/applications/oauth.js.map +1 -0
- package/runtime/packages/host/dist/applications/permissions.d.ts +19 -0
- package/runtime/packages/host/dist/applications/permissions.js +103 -0
- package/runtime/packages/host/dist/applications/permissions.js.map +1 -0
- package/runtime/packages/host/dist/applications/service.d.ts +208 -0
- package/runtime/packages/host/dist/applications/service.js +340 -0
- package/runtime/packages/host/dist/applications/service.js.map +1 -0
- package/runtime/packages/host/dist/automations/schedule.d.ts +6 -0
- package/runtime/packages/host/dist/automations/schedule.js +123 -0
- package/runtime/packages/host/dist/automations/schedule.js.map +1 -0
- package/runtime/packages/host/dist/automations/service.d.ts +34 -0
- package/runtime/packages/host/dist/automations/service.js +420 -0
- package/runtime/packages/host/dist/automations/service.js.map +1 -0
- package/runtime/packages/host/dist/automations/webhooks.d.ts +65 -0
- package/runtime/packages/host/dist/automations/webhooks.js +238 -0
- package/runtime/packages/host/dist/automations/webhooks.js.map +1 -0
- package/runtime/packages/host/dist/clients/access.d.ts +11 -0
- package/runtime/packages/host/dist/clients/access.js +170 -0
- package/runtime/packages/host/dist/clients/access.js.map +1 -0
- package/runtime/packages/host/dist/clients/configuration.d.ts +16 -0
- package/runtime/packages/host/dist/clients/configuration.js +112 -0
- package/runtime/packages/host/dist/clients/configuration.js.map +1 -0
- package/runtime/packages/host/dist/clients/details.d.ts +6 -0
- package/runtime/packages/host/dist/clients/details.js +132 -0
- package/runtime/packages/host/dist/clients/details.js.map +1 -0
- package/runtime/packages/host/dist/clients/operations.d.ts +46 -0
- package/runtime/packages/host/dist/clients/operations.js +224 -0
- package/runtime/packages/host/dist/clients/operations.js.map +1 -0
- package/runtime/packages/host/dist/clients/sync.d.ts +13 -0
- package/runtime/packages/host/dist/clients/sync.js +55 -0
- package/runtime/packages/host/dist/clients/sync.js.map +1 -0
- package/runtime/packages/host/dist/clients/workbench.d.ts +5 -0
- package/runtime/packages/host/dist/clients/workbench.js +75 -0
- package/runtime/packages/host/dist/clients/workbench.js.map +1 -0
- package/runtime/packages/host/dist/configuration/config-files.d.ts +17 -0
- package/runtime/packages/host/dist/configuration/config-files.js +137 -0
- package/runtime/packages/host/dist/configuration/config-files.js.map +1 -0
- package/runtime/packages/host/dist/configuration/config.d.ts +43 -0
- package/runtime/packages/host/dist/configuration/config.js +297 -0
- package/runtime/packages/host/dist/configuration/config.js.map +1 -0
- package/runtime/packages/host/dist/configuration/engines.d.ts +24 -0
- package/runtime/packages/host/dist/configuration/engines.js +223 -0
- package/runtime/packages/host/dist/configuration/engines.js.map +1 -0
- package/runtime/packages/host/dist/configuration/onboarding.d.ts +5 -0
- package/runtime/packages/host/dist/configuration/onboarding.js +42 -0
- package/runtime/packages/host/dist/configuration/onboarding.js.map +1 -0
- package/runtime/packages/host/dist/configuration/permissions.d.ts +7 -0
- package/runtime/packages/host/dist/configuration/permissions.js +56 -0
- package/runtime/packages/host/dist/configuration/permissions.js.map +1 -0
- package/runtime/packages/host/dist/configuration/preferences.d.ts +4 -0
- package/runtime/packages/host/dist/configuration/preferences.js +17 -0
- package/runtime/packages/host/dist/configuration/preferences.js.map +1 -0
- package/runtime/packages/host/dist/configuration/skills.d.ts +32 -0
- package/runtime/packages/host/dist/configuration/skills.js +376 -0
- package/runtime/packages/host/dist/configuration/skills.js.map +1 -0
- package/runtime/packages/host/dist/credentials/vault.d.ts +57 -0
- package/runtime/packages/host/dist/credentials/vault.js +181 -0
- package/runtime/packages/host/dist/credentials/vault.js.map +1 -0
- package/runtime/packages/host/dist/devices/native-client.d.ts +34 -0
- package/runtime/packages/host/dist/devices/native-client.js +52 -0
- package/runtime/packages/host/dist/devices/native-client.js.map +1 -0
- package/runtime/packages/host/dist/devices/pairing.d.ts +25 -0
- package/runtime/packages/host/dist/devices/pairing.js +70 -0
- package/runtime/packages/host/dist/devices/pairing.js.map +1 -0
- package/runtime/packages/host/dist/devices/relay.d.ts +40 -0
- package/runtime/packages/host/dist/devices/relay.js +290 -0
- package/runtime/packages/host/dist/devices/relay.js.map +1 -0
- package/runtime/packages/host/dist/domain/session-rules.d.ts +4 -0
- package/runtime/packages/host/dist/domain/session-rules.js +35 -0
- package/runtime/packages/host/dist/domain/session-rules.js.map +1 -0
- package/runtime/packages/host/dist/execution/actions.d.ts +34 -0
- package/runtime/packages/host/dist/execution/actions.js +117 -0
- package/runtime/packages/host/dist/execution/actions.js.map +1 -0
- package/runtime/packages/host/dist/execution/browser.d.ts +105 -0
- package/runtime/packages/host/dist/execution/browser.js +317 -0
- package/runtime/packages/host/dist/execution/browser.js.map +1 -0
- package/runtime/packages/host/dist/execution/capacity.d.ts +16 -0
- package/runtime/packages/host/dist/execution/capacity.js +44 -0
- package/runtime/packages/host/dist/execution/capacity.js.map +1 -0
- package/runtime/packages/host/dist/execution/service.d.ts +73 -0
- package/runtime/packages/host/dist/execution/service.js +318 -0
- package/runtime/packages/host/dist/execution/service.js.map +1 -0
- package/runtime/packages/host/dist/execution/worker.d.ts +2 -0
- package/runtime/packages/host/dist/execution/worker.js +304 -0
- package/runtime/packages/host/dist/execution/worker.js.map +1 -0
- package/runtime/packages/host/dist/files/http-content.d.ts +6 -0
- package/runtime/packages/host/dist/files/http-content.js +81 -0
- package/runtime/packages/host/dist/files/http-content.js.map +1 -0
- package/runtime/packages/host/dist/files/store.d.ts +98 -0
- package/runtime/packages/host/dist/files/store.js +507 -0
- package/runtime/packages/host/dist/files/store.js.map +1 -0
- package/runtime/packages/host/dist/goals/service.d.ts +73 -0
- package/runtime/packages/host/dist/goals/service.js +639 -0
- package/runtime/packages/host/dist/goals/service.js.map +1 -0
- package/runtime/packages/host/dist/goals/workspace.d.ts +27 -0
- package/runtime/packages/host/dist/goals/workspace.js +228 -0
- package/runtime/packages/host/dist/goals/workspace.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/acp-client.d.ts +20 -0
- package/runtime/packages/host/dist/harnesses/acp-client.js +286 -0
- package/runtime/packages/host/dist/harnesses/acp-client.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/acp-history.d.ts +8 -0
- package/runtime/packages/host/dist/harnesses/acp-history.js +67 -0
- package/runtime/packages/host/dist/harnesses/acp-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/acp-sessions.d.ts +6 -0
- package/runtime/packages/host/dist/harnesses/acp-sessions.js +76 -0
- package/runtime/packages/host/dist/harnesses/acp-sessions.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/acp.d.ts +3 -0
- package/runtime/packages/host/dist/harnesses/acp.js +451 -0
- package/runtime/packages/host/dist/harnesses/acp.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/adapter.d.ts +83 -0
- package/runtime/packages/host/dist/harnesses/adapter.js +24 -0
- package/runtime/packages/host/dist/harnesses/adapter.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/asar.d.ts +3 -0
- package/runtime/packages/host/dist/harnesses/asar.js +77 -0
- package/runtime/packages/host/dist/harnesses/asar.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/claude-code.d.ts +12 -0
- package/runtime/packages/host/dist/harnesses/claude-code.js +535 -0
- package/runtime/packages/host/dist/harnesses/claude-code.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/claude-history.d.ts +17 -0
- package/runtime/packages/host/dist/harnesses/claude-history.js +101 -0
- package/runtime/packages/host/dist/harnesses/claude-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/codex-history.d.ts +13 -0
- package/runtime/packages/host/dist/harnesses/codex-history.js +107 -0
- package/runtime/packages/host/dist/harnesses/codex-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/codex.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/codex.js +430 -0
- package/runtime/packages/host/dist/harnesses/codex.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/cursor.d.ts +8 -0
- package/runtime/packages/host/dist/harnesses/cursor.js +119 -0
- package/runtime/packages/host/dist/harnesses/cursor.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/deepseek-harness.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/deepseek-harness.js +296 -0
- package/runtime/packages/host/dist/harnesses/deepseek-harness.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/desktop-installations.d.ts +6 -0
- package/runtime/packages/host/dist/harnesses/desktop-installations.js +247 -0
- package/runtime/packages/host/dist/harnesses/desktop-installations.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/desktop-opencode.d.ts +1 -0
- package/runtime/packages/host/dist/harnesses/desktop-opencode.js +39 -0
- package/runtime/packages/host/dist/harnesses/desktop-opencode.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/dsh-history.d.ts +9 -0
- package/runtime/packages/host/dist/harnesses/dsh-history.js +200 -0
- package/runtime/packages/host/dist/harnesses/dsh-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/dsh-native.d.ts +20 -0
- package/runtime/packages/host/dist/harnesses/dsh-native.js +106 -0
- package/runtime/packages/host/dist/harnesses/dsh-native.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/gemini.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/gemini.js +217 -0
- package/runtime/packages/host/dist/harnesses/gemini.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/grok-build.d.ts +6 -0
- package/runtime/packages/host/dist/harnesses/grok-build.js +152 -0
- package/runtime/packages/host/dist/harnesses/grok-build.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/input-modalities.d.ts +9 -0
- package/runtime/packages/host/dist/harnesses/input-modalities.js +17 -0
- package/runtime/packages/host/dist/harnesses/input-modalities.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/kimi-code.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/kimi-code.js +648 -0
- package/runtime/packages/host/dist/harnesses/kimi-code.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/kimi-interactions.d.ts +3 -0
- package/runtime/packages/host/dist/harnesses/kimi-interactions.js +82 -0
- package/runtime/packages/host/dist/harnesses/kimi-interactions.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/kodo.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/kodo.js +11 -0
- package/runtime/packages/host/dist/harnesses/kodo.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/launch-types.d.ts +12 -0
- package/runtime/packages/host/dist/harnesses/launch-types.js +2 -0
- package/runtime/packages/host/dist/harnesses/launch-types.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/model-metadata.d.ts +12 -0
- package/runtime/packages/host/dist/harnesses/model-metadata.js +43 -0
- package/runtime/packages/host/dist/harnesses/model-metadata.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/model-options.d.ts +31 -0
- package/runtime/packages/host/dist/harnesses/model-options.js +242 -0
- package/runtime/packages/host/dist/harnesses/model-options.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/models.d.ts +14 -0
- package/runtime/packages/host/dist/harnesses/models.js +161 -0
- package/runtime/packages/host/dist/harnesses/models.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/native-command.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/native-command.js +50 -0
- package/runtime/packages/host/dist/harnesses/native-command.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/native-defaults.d.ts +15 -0
- package/runtime/packages/host/dist/harnesses/native-defaults.js +165 -0
- package/runtime/packages/host/dist/harnesses/native-defaults.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/native-history.d.ts +4 -0
- package/runtime/packages/host/dist/harnesses/native-history.js +35 -0
- package/runtime/packages/host/dist/harnesses/native-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/native-interactions.d.ts +11 -0
- package/runtime/packages/host/dist/harnesses/native-interactions.js +50 -0
- package/runtime/packages/host/dist/harnesses/native-interactions.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/opencode-events.d.ts +13 -0
- package/runtime/packages/host/dist/harnesses/opencode-events.js +112 -0
- package/runtime/packages/host/dist/harnesses/opencode-events.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/opencode-history.d.ts +8 -0
- package/runtime/packages/host/dist/harnesses/opencode-history.js +50 -0
- package/runtime/packages/host/dist/harnesses/opencode-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/opencode.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/opencode.js +421 -0
- package/runtime/packages/host/dist/harnesses/opencode.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/pi.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/pi.js +11 -0
- package/runtime/packages/host/dist/harnesses/pi.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/registry.d.ts +3 -0
- package/runtime/packages/host/dist/harnesses/registry.js +32 -0
- package/runtime/packages/host/dist/harnesses/registry.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/retry.d.ts +4 -0
- package/runtime/packages/host/dist/harnesses/retry.js +19 -0
- package/runtime/packages/host/dist/harnesses/retry.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/rpc.d.ts +25 -0
- package/runtime/packages/host/dist/harnesses/rpc.js +202 -0
- package/runtime/packages/host/dist/harnesses/rpc.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/sdk-history.d.ts +6 -0
- package/runtime/packages/host/dist/harnesses/sdk-history.js +84 -0
- package/runtime/packages/host/dist/harnesses/sdk-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/session-presence.d.ts +14 -0
- package/runtime/packages/host/dist/harnesses/session-presence.js +139 -0
- package/runtime/packages/host/dist/harnesses/session-presence.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/subagents.d.ts +12 -0
- package/runtime/packages/host/dist/harnesses/subagents.js +44 -0
- package/runtime/packages/host/dist/harnesses/subagents.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/todos.d.ts +12 -0
- package/runtime/packages/host/dist/harnesses/todos.js +179 -0
- package/runtime/packages/host/dist/harnesses/todos.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/zcode-frames.d.ts +12 -0
- package/runtime/packages/host/dist/harnesses/zcode-frames.js +245 -0
- package/runtime/packages/host/dist/harnesses/zcode-frames.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/zcode-history.d.ts +6 -0
- package/runtime/packages/host/dist/harnesses/zcode-history.js +46 -0
- package/runtime/packages/host/dist/harnesses/zcode-history.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/zcode-sessions.d.ts +3 -0
- package/runtime/packages/host/dist/harnesses/zcode-sessions.js +86 -0
- package/runtime/packages/host/dist/harnesses/zcode-sessions.js.map +1 -0
- package/runtime/packages/host/dist/harnesses/zcode.d.ts +2 -0
- package/runtime/packages/host/dist/harnesses/zcode.js +532 -0
- package/runtime/packages/host/dist/harnesses/zcode.js.map +1 -0
- package/runtime/packages/host/dist/http/client-routes.d.ts +4 -0
- package/runtime/packages/host/dist/http/client-routes.js +85 -0
- package/runtime/packages/host/dist/http/client-routes.js.map +1 -0
- package/runtime/packages/host/dist/http/self-hosted-routes.d.ts +6 -0
- package/runtime/packages/host/dist/http/self-hosted-routes.js +365 -0
- package/runtime/packages/host/dist/http/self-hosted-routes.js.map +1 -0
- package/runtime/packages/host/dist/http/server.d.ts +15 -0
- package/runtime/packages/host/dist/http/server.js +960 -0
- package/runtime/packages/host/dist/http/server.js.map +1 -0
- package/runtime/packages/host/dist/http/work-routes.d.ts +17 -0
- package/runtime/packages/host/dist/http/work-routes.js +229 -0
- package/runtime/packages/host/dist/http/work-routes.js.map +1 -0
- package/runtime/packages/host/dist/kodo/credentials.d.ts +8 -0
- package/runtime/packages/host/dist/kodo/credentials.js +56 -0
- package/runtime/packages/host/dist/kodo/credentials.js.map +1 -0
- package/runtime/packages/host/dist/kodo/kernel.d.ts +11 -0
- package/runtime/packages/host/dist/kodo/kernel.js +566 -0
- package/runtime/packages/host/dist/kodo/kernel.js.map +1 -0
- package/runtime/packages/host/dist/kodo/self-hosted-tools.d.ts +4 -0
- package/runtime/packages/host/dist/kodo/self-hosted-tools.js +230 -0
- package/runtime/packages/host/dist/kodo/self-hosted-tools.js.map +1 -0
- package/runtime/packages/host/dist/kodo/tools.d.ts +6 -0
- package/runtime/packages/host/dist/kodo/tools.js +467 -0
- package/runtime/packages/host/dist/kodo/tools.js.map +1 -0
- package/runtime/packages/host/dist/kodo/work-tools.d.ts +10 -0
- package/runtime/packages/host/dist/kodo/work-tools.js +259 -0
- package/runtime/packages/host/dist/kodo/work-tools.js.map +1 -0
- package/runtime/packages/host/dist/lifecycle/doctor.d.ts +18 -0
- package/runtime/packages/host/dist/lifecycle/doctor.js +68 -0
- package/runtime/packages/host/dist/lifecycle/doctor.js.map +1 -0
- package/runtime/packages/host/dist/lifecycle/gate.d.ts +38 -0
- package/runtime/packages/host/dist/lifecycle/gate.js +65 -0
- package/runtime/packages/host/dist/lifecycle/gate.js.map +1 -0
- package/runtime/packages/host/dist/main.d.ts +1 -0
- package/runtime/packages/host/dist/main.js +159 -0
- package/runtime/packages/host/dist/main.js.map +1 -0
- package/runtime/packages/host/dist/memory/service.d.ts +46 -0
- package/runtime/packages/host/dist/memory/service.js +213 -0
- package/runtime/packages/host/dist/memory/service.js.map +1 -0
- package/runtime/packages/host/dist/messaging/outbox.d.ts +28 -0
- package/runtime/packages/host/dist/messaging/outbox.js +158 -0
- package/runtime/packages/host/dist/messaging/outbox.js.map +1 -0
- package/runtime/packages/host/dist/native-import.d.ts +23 -0
- package/runtime/packages/host/dist/native-import.js +234 -0
- package/runtime/packages/host/dist/native-import.js.map +1 -0
- package/runtime/packages/host/dist/notifications/apns.d.ts +62 -0
- package/runtime/packages/host/dist/notifications/apns.js +231 -0
- package/runtime/packages/host/dist/notifications/apns.js.map +1 -0
- package/runtime/packages/host/dist/notifications/delivery.d.ts +66 -0
- package/runtime/packages/host/dist/notifications/delivery.js +393 -0
- package/runtime/packages/host/dist/notifications/delivery.js.map +1 -0
- package/runtime/packages/host/dist/notifications/service.d.ts +32 -0
- package/runtime/packages/host/dist/notifications/service.js +146 -0
- package/runtime/packages/host/dist/notifications/service.js.map +1 -0
- package/runtime/packages/host/dist/providers/catalog.d.ts +35 -0
- package/runtime/packages/host/dist/providers/catalog.js +267 -0
- package/runtime/packages/host/dist/providers/catalog.js.map +1 -0
- package/runtime/packages/host/dist/providers/credential-relay.d.ts +18 -0
- package/runtime/packages/host/dist/providers/credential-relay.js +142 -0
- package/runtime/packages/host/dist/providers/credential-relay.js.map +1 -0
- package/runtime/packages/host/dist/providers/gateway.d.ts +23 -0
- package/runtime/packages/host/dist/providers/gateway.js +592 -0
- package/runtime/packages/host/dist/providers/gateway.js.map +1 -0
- package/runtime/packages/host/dist/providers/gemini-chat.d.ts +6 -0
- package/runtime/packages/host/dist/providers/gemini-chat.js +273 -0
- package/runtime/packages/host/dist/providers/gemini-chat.js.map +1 -0
- package/runtime/packages/host/dist/providers/model-option.d.ts +3 -0
- package/runtime/packages/host/dist/providers/model-option.js +40 -0
- package/runtime/packages/host/dist/providers/model-option.js.map +1 -0
- package/runtime/packages/host/dist/providers/model-reasoning.d.ts +6 -0
- package/runtime/packages/host/dist/providers/model-reasoning.js +20 -0
- package/runtime/packages/host/dist/providers/model-reasoning.js.map +1 -0
- package/runtime/packages/host/dist/providers/native-config.d.ts +6 -0
- package/runtime/packages/host/dist/providers/native-config.js +236 -0
- package/runtime/packages/host/dist/providers/native-config.js.map +1 -0
- package/runtime/packages/host/dist/providers/service.d.ts +175 -0
- package/runtime/packages/host/dist/providers/service.js +1208 -0
- package/runtime/packages/host/dist/providers/service.js.map +1 -0
- package/runtime/packages/host/dist/session-activity.d.ts +9 -0
- package/runtime/packages/host/dist/session-activity.js +105 -0
- package/runtime/packages/host/dist/session-activity.js.map +1 -0
- package/runtime/packages/host/dist/session-service.d.ts +481 -0
- package/runtime/packages/host/dist/session-service.js +3885 -0
- package/runtime/packages/host/dist/session-service.js.map +1 -0
- package/runtime/packages/host/dist/storage/schema.d.ts +7 -0
- package/runtime/packages/host/dist/storage/schema.js +191 -0
- package/runtime/packages/host/dist/storage/schema.js.map +1 -0
- package/runtime/packages/host/dist/storage/self-hosted.d.ts +13 -0
- package/runtime/packages/host/dist/storage/self-hosted.js +51 -0
- package/runtime/packages/host/dist/storage/self-hosted.js.map +1 -0
- package/runtime/packages/host/dist/storage/store.d.ts +56 -0
- package/runtime/packages/host/dist/storage/store.js +470 -0
- package/runtime/packages/host/dist/storage/store.js.map +1 -0
- package/runtime/packages/host/dist/tools/web.d.ts +77 -0
- package/runtime/packages/host/dist/tools/web.js +532 -0
- package/runtime/packages/host/dist/tools/web.js.map +1 -0
- package/runtime/packages/host/dist/updater.d.ts +56 -0
- package/runtime/packages/host/dist/updater.js +622 -0
- package/runtime/packages/host/dist/updater.js.map +1 -0
- package/runtime/packages/host/dist/voice.d.ts +25 -0
- package/runtime/packages/host/dist/voice.js +173 -0
- package/runtime/packages/host/dist/voice.js.map +1 -0
- package/runtime/packages/host/dist/workspaces/artifacts.d.ts +25 -0
- package/runtime/packages/host/dist/workspaces/artifacts.js +76 -0
- package/runtime/packages/host/dist/workspaces/artifacts.js.map +1 -0
- package/runtime/packages/host/dist/workspaces/directories.d.ts +10 -0
- package/runtime/packages/host/dist/workspaces/directories.js +45 -0
- package/runtime/packages/host/dist/workspaces/directories.js.map +1 -0
- package/runtime/packages/host/dist/workspaces/files.d.ts +15 -0
- package/runtime/packages/host/dist/workspaces/files.js +223 -0
- package/runtime/packages/host/dist/workspaces/files.js.map +1 -0
- package/runtime/packages/host/package.json +25 -0
- package/runtime/packages/platform/dist/index.d.ts +4 -0
- package/runtime/packages/platform/dist/index.js +26 -0
- package/runtime/packages/platform/dist/index.js.map +1 -0
- package/runtime/packages/platform/package.json +16 -0
- package/runtime/packages/protocol/dist/activity.d.ts +26 -0
- package/runtime/packages/protocol/dist/activity.js +2 -0
- package/runtime/packages/protocol/dist/activity.js.map +1 -0
- package/runtime/packages/protocol/dist/assistant-content.d.ts +10 -0
- package/runtime/packages/protocol/dist/assistant-content.js +77 -0
- package/runtime/packages/protocol/dist/assistant-content.js.map +1 -0
- package/runtime/packages/protocol/dist/automation-schedule.d.ts +18 -0
- package/runtime/packages/protocol/dist/automation-schedule.js +98 -0
- package/runtime/packages/protocol/dist/automation-schedule.js.map +1 -0
- package/runtime/packages/protocol/dist/client.d.ts +11 -0
- package/runtime/packages/protocol/dist/client.js +75 -0
- package/runtime/packages/protocol/dist/client.js.map +1 -0
- package/runtime/packages/protocol/dist/clients.d.ts +203 -0
- package/runtime/packages/protocol/dist/clients.js +18 -0
- package/runtime/packages/protocol/dist/clients.js.map +1 -0
- package/runtime/packages/protocol/dist/conversation.d.ts +11 -0
- package/runtime/packages/protocol/dist/conversation.js +38 -0
- package/runtime/packages/protocol/dist/conversation.js.map +1 -0
- package/runtime/packages/protocol/dist/files.d.ts +93 -0
- package/runtime/packages/protocol/dist/files.js +44 -0
- package/runtime/packages/protocol/dist/files.js.map +1 -0
- package/runtime/packages/protocol/dist/goals.d.ts +204 -0
- package/runtime/packages/protocol/dist/goals.js +99 -0
- package/runtime/packages/protocol/dist/goals.js.map +1 -0
- package/runtime/packages/protocol/dist/index.d.ts +678 -0
- package/runtime/packages/protocol/dist/index.js +179 -0
- package/runtime/packages/protocol/dist/index.js.map +1 -0
- package/runtime/packages/protocol/dist/notifications.d.ts +50 -0
- package/runtime/packages/protocol/dist/notifications.js +15 -0
- package/runtime/packages/protocol/dist/notifications.js.map +1 -0
- package/runtime/packages/protocol/dist/onboarding.d.ts +17 -0
- package/runtime/packages/protocol/dist/onboarding.js +9 -0
- package/runtime/packages/protocol/dist/onboarding.js.map +1 -0
- package/runtime/packages/protocol/dist/providers.d.ts +292 -0
- package/runtime/packages/protocol/dist/providers.js +142 -0
- package/runtime/packages/protocol/dist/providers.js.map +1 -0
- package/runtime/packages/protocol/dist/self-hosted.d.ts +146 -0
- package/runtime/packages/protocol/dist/self-hosted.js +76 -0
- package/runtime/packages/protocol/dist/self-hosted.js.map +1 -0
- package/runtime/packages/protocol/dist/settings.d.ts +137 -0
- package/runtime/packages/protocol/dist/settings.js +80 -0
- package/runtime/packages/protocol/dist/settings.js.map +1 -0
- package/runtime/packages/protocol/dist/skills.d.ts +27 -0
- package/runtime/packages/protocol/dist/skills.js +2 -0
- package/runtime/packages/protocol/dist/skills.js.map +1 -0
- package/runtime/packages/protocol/dist/web.d.ts +47 -0
- package/runtime/packages/protocol/dist/web.js +13 -0
- package/runtime/packages/protocol/dist/web.js.map +1 -0
- package/runtime/packages/protocol/dist/workspace-files.d.ts +37 -0
- package/runtime/packages/protocol/dist/workspace-files.js +2 -0
- package/runtime/packages/protocol/dist/workspace-files.js.map +1 -0
- package/runtime/packages/protocol/package.json +23 -0
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export { conversationEvents, conversationMessageIndex } from "./conversation.js";
|
|
3
|
+
export type { ConversationMark } from "./conversation.js";
|
|
4
|
+
export * from "./providers.js";
|
|
5
|
+
export * from "./settings.js";
|
|
6
|
+
export * from "./onboarding.js";
|
|
7
|
+
export * from "./skills.js";
|
|
8
|
+
export * from "./workspace-files.js";
|
|
9
|
+
export * from "./goals.js";
|
|
10
|
+
export * from "./notifications.js";
|
|
11
|
+
export * from "./web.js";
|
|
12
|
+
export * from "./files.js";
|
|
13
|
+
export * from "./activity.js";
|
|
14
|
+
import type { HarnessBinding, ModelParameters } from "./providers.js";
|
|
15
|
+
import { HARNESS_IDS } from "./client.js";
|
|
16
|
+
export { HARNESS_IDS, NATIVE_HARNESS_IDS, PROTOCOL_VERSION } from "./client.js";
|
|
17
|
+
export type HarnessId = (typeof HARNESS_IDS)[number];
|
|
18
|
+
export type PermissionMode = "read-only" | "workspace-write" | "full-access" | "accept-edits" | "bypass-permissions" | "plan" | "build" | "edit" | "yolo" | "guarded" | "opencode-ask" | "opencode-deny" | "opencode-allow" | "dsh:ask" | "dsh:allow" | "dsh:deny" | "kodo-tools-read" | "kodo-tools-none" | "kimi:manual" | "kimi:auto" | "kimi:yolo" | `acp:${string}`;
|
|
19
|
+
export type TransportKind = "sdk" | "app-server" | "http" | "acp";
|
|
20
|
+
export declare const CAPABILITIES: readonly ["directChat", "historyRead", "resume", "observeLive", "observeExternal", "steer", "cancel", "interaction", "usage", "quota"];
|
|
21
|
+
export type Capability = (typeof CAPABILITIES)[number];
|
|
22
|
+
export type CapabilitySupport = "supported" | "unsupported" | "unknown";
|
|
23
|
+
export type HarnessModelSupport = "binding-or-model" | "binding-required" | "native-models" | "native-only";
|
|
24
|
+
export interface ModelParameterSource {
|
|
25
|
+
kind: "native-catalog" | "native-runtime" | "native-config" | "user" | "endpoint" | "remote-catalog" | "bundled-catalog";
|
|
26
|
+
label: string;
|
|
27
|
+
reference?: string;
|
|
28
|
+
version?: string;
|
|
29
|
+
}
|
|
30
|
+
export type ModelParameter = "contextWindow" | "maxInputTokens" | "maxOutputTokens" | "reasoning" | "pricing";
|
|
31
|
+
/** USD / 1M tokens; perRequest is USD / API request. */
|
|
32
|
+
export interface ModelPricing {
|
|
33
|
+
input?: number;
|
|
34
|
+
output?: number;
|
|
35
|
+
cacheRead?: number;
|
|
36
|
+
cacheWrite?: number;
|
|
37
|
+
reasoning?: number;
|
|
38
|
+
perRequest?: number;
|
|
39
|
+
billingMode?: "tokens" | "request" | "hybrid";
|
|
40
|
+
/** Ordered context brackets, selected using total input including cache tokens. */
|
|
41
|
+
tiers?: (Omit<ModelPricing, "tiers" | "billingMode"> & {
|
|
42
|
+
upToInputTokens?: number;
|
|
43
|
+
})[];
|
|
44
|
+
}
|
|
45
|
+
export interface HarnessModelOption {
|
|
46
|
+
id: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
provider?: string;
|
|
49
|
+
/** Exact canonical ID reported by the native harness for an alias, never inferred. */
|
|
50
|
+
resolvedModel?: string;
|
|
51
|
+
source: "discovered" | "native-catalog" | "recent";
|
|
52
|
+
/** Explicitly marked by the native catalog or current session snapshot. */
|
|
53
|
+
isDefault?: boolean;
|
|
54
|
+
isCurrent?: boolean;
|
|
55
|
+
/** Native values, not a universal low/medium/high scale. */
|
|
56
|
+
reasoning?: string[];
|
|
57
|
+
/** Explicit input modalities from this exact configured route. */
|
|
58
|
+
input?: ("text" | "image")[];
|
|
59
|
+
/** Token limits are independent. Absence means unreported, never a product default. */
|
|
60
|
+
contextWindow?: number;
|
|
61
|
+
maxInputTokens?: number;
|
|
62
|
+
maxOutputTokens?: number;
|
|
63
|
+
pricing?: ModelPricing;
|
|
64
|
+
parameterSources?: Partial<Record<ModelParameter, ModelParameterSource>>;
|
|
65
|
+
}
|
|
66
|
+
export interface ModelSettings {
|
|
67
|
+
model: string | null;
|
|
68
|
+
reasoning: string | null;
|
|
69
|
+
revision: number;
|
|
70
|
+
}
|
|
71
|
+
export declare const permissionModeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
72
|
+
build: "build";
|
|
73
|
+
"read-only": "read-only";
|
|
74
|
+
"workspace-write": "workspace-write";
|
|
75
|
+
"full-access": "full-access";
|
|
76
|
+
"accept-edits": "accept-edits";
|
|
77
|
+
"bypass-permissions": "bypass-permissions";
|
|
78
|
+
plan: "plan";
|
|
79
|
+
edit: "edit";
|
|
80
|
+
yolo: "yolo";
|
|
81
|
+
guarded: "guarded";
|
|
82
|
+
"opencode-ask": "opencode-ask";
|
|
83
|
+
"opencode-deny": "opencode-deny";
|
|
84
|
+
"opencode-allow": "opencode-allow";
|
|
85
|
+
"dsh:ask": "dsh:ask";
|
|
86
|
+
"dsh:allow": "dsh:allow";
|
|
87
|
+
"dsh:deny": "dsh:deny";
|
|
88
|
+
"kodo-tools-read": "kodo-tools-read";
|
|
89
|
+
"kodo-tools-none": "kodo-tools-none";
|
|
90
|
+
"kimi:manual": "kimi:manual";
|
|
91
|
+
"kimi:auto": "kimi:auto";
|
|
92
|
+
"kimi:yolo": "kimi:yolo";
|
|
93
|
+
}>, z.ZodTemplateLiteral<`acp:${string}`>]>;
|
|
94
|
+
export declare const modelSettingsSchema: z.ZodObject<{
|
|
95
|
+
requestId: z.ZodString;
|
|
96
|
+
expectedRevision: z.ZodNumber;
|
|
97
|
+
model: z.ZodNullable<z.ZodString>;
|
|
98
|
+
reasoning: z.ZodNullable<z.ZodString>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
export interface HarnessDescriptor {
|
|
101
|
+
id: HarnessId;
|
|
102
|
+
name: string;
|
|
103
|
+
transport: TransportKind;
|
|
104
|
+
implementation: "implemented" | "partial" | "pending";
|
|
105
|
+
capabilities: Record<Capability, CapabilitySupport>;
|
|
106
|
+
modelSupport?: HarnessModelSupport;
|
|
107
|
+
/** Values the harness uses when Kodo does not override them, from its own config. */
|
|
108
|
+
nativeDefaults?: {
|
|
109
|
+
model: string | null;
|
|
110
|
+
reasoning: string | null;
|
|
111
|
+
permission: string | null;
|
|
112
|
+
};
|
|
113
|
+
/** Existing native configuration files, resolved on the host. */
|
|
114
|
+
configFiles?: string[];
|
|
115
|
+
configFileLocations?: {
|
|
116
|
+
path: string;
|
|
117
|
+
exists: boolean;
|
|
118
|
+
}[];
|
|
119
|
+
models?: HarnessModelOption[];
|
|
120
|
+
defaultModel?: {
|
|
121
|
+
provider?: string;
|
|
122
|
+
model: string;
|
|
123
|
+
} | null;
|
|
124
|
+
evidence?: string;
|
|
125
|
+
health?: {
|
|
126
|
+
installed: boolean;
|
|
127
|
+
launchable?: boolean;
|
|
128
|
+
modes?: {
|
|
129
|
+
cliOnly: {
|
|
130
|
+
launchable: boolean;
|
|
131
|
+
source: "sdk" | "cli" | null;
|
|
132
|
+
reason?: string;
|
|
133
|
+
};
|
|
134
|
+
desktopOnly: {
|
|
135
|
+
launchable: boolean;
|
|
136
|
+
source: "sdk" | "desktop-bundled" | null;
|
|
137
|
+
reason?: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
source?: "sdk" | "cli" | "desktop-bundled" | "configured" | null;
|
|
141
|
+
desktops?: {
|
|
142
|
+
name: string;
|
|
143
|
+
path: string;
|
|
144
|
+
version: string | null;
|
|
145
|
+
}[];
|
|
146
|
+
executable: string | null;
|
|
147
|
+
version: string | null;
|
|
148
|
+
authentication: "unknown" | "configured";
|
|
149
|
+
error?: string;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export type HarnessBindingDefaults = Partial<Record<HarnessId, string | null>>;
|
|
153
|
+
export interface BindingDefaults {
|
|
154
|
+
harnessBindingIds: HarnessBindingDefaults;
|
|
155
|
+
revision: number;
|
|
156
|
+
}
|
|
157
|
+
export interface Project {
|
|
158
|
+
id: string;
|
|
159
|
+
name: string;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
pinned?: boolean;
|
|
162
|
+
bindingDefaults?: HarnessBindingDefaults;
|
|
163
|
+
configRevision?: number;
|
|
164
|
+
}
|
|
165
|
+
export interface Workspace {
|
|
166
|
+
id: string;
|
|
167
|
+
projectId: string | null;
|
|
168
|
+
hostId: string;
|
|
169
|
+
rootPath: string;
|
|
170
|
+
}
|
|
171
|
+
export type SessionKind = "direct" | "supervisor";
|
|
172
|
+
export interface Session {
|
|
173
|
+
id: string;
|
|
174
|
+
title: string;
|
|
175
|
+
harnessId: HarnessId;
|
|
176
|
+
kind: SessionKind;
|
|
177
|
+
scope: "global" | "project";
|
|
178
|
+
projectId: string | null;
|
|
179
|
+
workspaceId: string | null;
|
|
180
|
+
executorId?: string;
|
|
181
|
+
hostId: string;
|
|
182
|
+
nativeSessionId: string | null;
|
|
183
|
+
phase: "draft" | "native";
|
|
184
|
+
createdAt: string;
|
|
185
|
+
instanceId: string;
|
|
186
|
+
bindingId: string | null;
|
|
187
|
+
bindingRevision: number | null;
|
|
188
|
+
bindingUnavailable?: boolean;
|
|
189
|
+
personalInstructions?: string;
|
|
190
|
+
model?: string | null;
|
|
191
|
+
reasoning?: string | null;
|
|
192
|
+
permissionMode?: PermissionMode | null;
|
|
193
|
+
settingsRevision?: number;
|
|
194
|
+
appliedSettingsRevision?: number;
|
|
195
|
+
/** Capabilities confirmed by this session's transport, refreshed on reconnect. */
|
|
196
|
+
nativeCapabilities?: Partial<Record<Capability, CapabilitySupport>>;
|
|
197
|
+
ownerEpoch: number;
|
|
198
|
+
runState: "idle" | "running" | "waiting-input" | "unknown";
|
|
199
|
+
retry?: {
|
|
200
|
+
attempt?: number;
|
|
201
|
+
maxAttempts?: number;
|
|
202
|
+
delayMs?: number;
|
|
203
|
+
since: string;
|
|
204
|
+
};
|
|
205
|
+
executionState: "settled" | "unknown";
|
|
206
|
+
connectionState: "connected" | "offline" | "reconnecting";
|
|
207
|
+
archived: boolean;
|
|
208
|
+
pinned: boolean;
|
|
209
|
+
unread?: boolean;
|
|
210
|
+
/** Inline message variants share one sidebar conversation and retain separate native contexts. */
|
|
211
|
+
conversation?: {
|
|
212
|
+
activeId: string;
|
|
213
|
+
branches: {
|
|
214
|
+
id: string;
|
|
215
|
+
rootEventId: string;
|
|
216
|
+
userEventId: string;
|
|
217
|
+
originalBranchId: string;
|
|
218
|
+
prefixEventIds: string[];
|
|
219
|
+
}[];
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
export interface Supervision {
|
|
223
|
+
id: string;
|
|
224
|
+
controllerSessionId: string;
|
|
225
|
+
targetSessionId: string;
|
|
226
|
+
mode: "observe" | "notify" | "continue";
|
|
227
|
+
state: "active" | "paused" | "revoked";
|
|
228
|
+
generation: number;
|
|
229
|
+
cursor: string | null;
|
|
230
|
+
goal?: string;
|
|
231
|
+
/** Exact goal this relation works toward; wakes carry it so results never cross goals. */
|
|
232
|
+
goalId?: string | null;
|
|
233
|
+
runId?: string | null;
|
|
234
|
+
continuous?: boolean;
|
|
235
|
+
trigger?: "turn-ended" | "settled";
|
|
236
|
+
/** Numeric limits use 0 (or omission) for unlimited. */
|
|
237
|
+
limits?: {
|
|
238
|
+
endAt?: string;
|
|
239
|
+
maxContinuations?: number;
|
|
240
|
+
maxFailures?: number;
|
|
241
|
+
budgetUsd?: number;
|
|
242
|
+
};
|
|
243
|
+
continuations?: number;
|
|
244
|
+
failures?: number;
|
|
245
|
+
}
|
|
246
|
+
export interface RuntimeEvent {
|
|
247
|
+
conversationBranchId?: string;
|
|
248
|
+
id: string;
|
|
249
|
+
sessionId: string;
|
|
250
|
+
nativeRunId: string | null;
|
|
251
|
+
sequence: number;
|
|
252
|
+
type: "message" | "text-delta" | "tool" | "todo" | "subagent" | "interaction" | "turn-ended" | "settled" | "disconnected" | "state" | "usage" | "supervision" | "handoff" | "error";
|
|
253
|
+
payload: unknown;
|
|
254
|
+
createdAt: string;
|
|
255
|
+
source: string;
|
|
256
|
+
}
|
|
257
|
+
/** Child execution is observable without changing the parent run's state or usage. */
|
|
258
|
+
export interface SubagentEvent {
|
|
259
|
+
agentId: string;
|
|
260
|
+
parentAgentId?: string;
|
|
261
|
+
name?: string;
|
|
262
|
+
status?: string;
|
|
263
|
+
toolCallId?: string;
|
|
264
|
+
event?: {
|
|
265
|
+
type: Exclude<RuntimeEvent["type"], "subagent">;
|
|
266
|
+
payload: unknown;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
/** Ephemeral adapter input derived from a pinned Harness binding. */
|
|
270
|
+
export interface BindingRuntime {
|
|
271
|
+
id: string;
|
|
272
|
+
revision: number;
|
|
273
|
+
name: string;
|
|
274
|
+
provider: string;
|
|
275
|
+
model: string;
|
|
276
|
+
baseUrl?: string;
|
|
277
|
+
credentialRef: string | null;
|
|
278
|
+
protocol?: "native" | "openai-completions" | "openai-responses" | "anthropic-messages" | "google-generative-ai";
|
|
279
|
+
modelParameters?: ModelParameters;
|
|
280
|
+
binding?: HarnessBinding;
|
|
281
|
+
}
|
|
282
|
+
export declare const createProjectSchema: z.ZodObject<{
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
rootPath: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strict>;
|
|
286
|
+
export declare const createSessionSchema: z.ZodObject<{
|
|
287
|
+
title: z.ZodString;
|
|
288
|
+
harnessId: z.ZodEnum<{
|
|
289
|
+
kodo: "kodo";
|
|
290
|
+
pi: "pi";
|
|
291
|
+
codex: "codex";
|
|
292
|
+
"claude-code": "claude-code";
|
|
293
|
+
"deepseek-harness": "deepseek-harness";
|
|
294
|
+
zcode: "zcode";
|
|
295
|
+
opencode: "opencode";
|
|
296
|
+
gemini: "gemini";
|
|
297
|
+
cursor: "cursor";
|
|
298
|
+
"kimi-code": "kimi-code";
|
|
299
|
+
"grok-build": "grok-build";
|
|
300
|
+
}>;
|
|
301
|
+
kind: z.ZodEnum<{
|
|
302
|
+
direct: "direct";
|
|
303
|
+
supervisor: "supervisor";
|
|
304
|
+
}>;
|
|
305
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
|
+
executorId: z.ZodOptional<z.ZodString>;
|
|
308
|
+
bindingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
312
|
+
build: "build";
|
|
313
|
+
"read-only": "read-only";
|
|
314
|
+
"workspace-write": "workspace-write";
|
|
315
|
+
"full-access": "full-access";
|
|
316
|
+
"accept-edits": "accept-edits";
|
|
317
|
+
"bypass-permissions": "bypass-permissions";
|
|
318
|
+
plan: "plan";
|
|
319
|
+
edit: "edit";
|
|
320
|
+
yolo: "yolo";
|
|
321
|
+
guarded: "guarded";
|
|
322
|
+
"opencode-ask": "opencode-ask";
|
|
323
|
+
"opencode-deny": "opencode-deny";
|
|
324
|
+
"opencode-allow": "opencode-allow";
|
|
325
|
+
"dsh:ask": "dsh:ask";
|
|
326
|
+
"dsh:allow": "dsh:allow";
|
|
327
|
+
"dsh:deny": "dsh:deny";
|
|
328
|
+
"kodo-tools-read": "kodo-tools-read";
|
|
329
|
+
"kodo-tools-none": "kodo-tools-none";
|
|
330
|
+
"kimi:manual": "kimi:manual";
|
|
331
|
+
"kimi:auto": "kimi:auto";
|
|
332
|
+
"kimi:yolo": "kimi:yolo";
|
|
333
|
+
}>, z.ZodTemplateLiteral<`acp:${string}`>]>>>;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
export type CreateProject = z.infer<typeof createProjectSchema>;
|
|
336
|
+
export type CreateSession = z.infer<typeof createSessionSchema>;
|
|
337
|
+
export interface Snapshot {
|
|
338
|
+
protocolVersion: number;
|
|
339
|
+
eventCursor?: number;
|
|
340
|
+
hostId: string;
|
|
341
|
+
stage: "development";
|
|
342
|
+
projects: Project[];
|
|
343
|
+
workspaces: Workspace[];
|
|
344
|
+
sessions: Session[];
|
|
345
|
+
harnesses: HarnessDescriptor[];
|
|
346
|
+
supervisions: Supervision[];
|
|
347
|
+
bindings: HarnessBinding[];
|
|
348
|
+
inbox: InboxItem[];
|
|
349
|
+
devices: {
|
|
350
|
+
id: string;
|
|
351
|
+
name: string;
|
|
352
|
+
createdAt: string;
|
|
353
|
+
expiresAt?: string;
|
|
354
|
+
}[];
|
|
355
|
+
projectGrants: ProjectGrant[];
|
|
356
|
+
bindingDefaults: BindingDefaults;
|
|
357
|
+
}
|
|
358
|
+
export interface ProjectGrant {
|
|
359
|
+
controllerSessionId: string;
|
|
360
|
+
projectId: string;
|
|
361
|
+
mode: "create-only" | "create-and-control";
|
|
362
|
+
goal: string;
|
|
363
|
+
limits: Supervision["limits"];
|
|
364
|
+
}
|
|
365
|
+
export interface Command {
|
|
366
|
+
id: string;
|
|
367
|
+
sessionId: string;
|
|
368
|
+
kind: "open" | "send" | "stop" | "interaction";
|
|
369
|
+
origin: "user" | "supervisor" | "wake" | "automation";
|
|
370
|
+
controllerId: string | null;
|
|
371
|
+
generation: number;
|
|
372
|
+
bindingRevision: number | null;
|
|
373
|
+
status: "accepted" | "dispatched" | "confirmed" | "unknown" | "rejected" | "cancelled";
|
|
374
|
+
nativeRunId: string | null;
|
|
375
|
+
body: Record<string, unknown>;
|
|
376
|
+
createdAt: string;
|
|
377
|
+
error?: string;
|
|
378
|
+
}
|
|
379
|
+
export interface InboxItem {
|
|
380
|
+
id: string;
|
|
381
|
+
sessionId: string;
|
|
382
|
+
type: string;
|
|
383
|
+
payload: unknown;
|
|
384
|
+
createdAt: string;
|
|
385
|
+
resolved: boolean;
|
|
386
|
+
read?: boolean;
|
|
387
|
+
}
|
|
388
|
+
export interface Usage {
|
|
389
|
+
id: string;
|
|
390
|
+
sessionId: string;
|
|
391
|
+
projectId: string | null;
|
|
392
|
+
bindingId: string | null;
|
|
393
|
+
source: string;
|
|
394
|
+
scope: "turn" | "session";
|
|
395
|
+
input: number | null;
|
|
396
|
+
output: number | null;
|
|
397
|
+
cacheRead: number | null;
|
|
398
|
+
cacheWrite: number | null;
|
|
399
|
+
costUsd: number | null;
|
|
400
|
+
costKind: "actual" | "estimate" | "unknown";
|
|
401
|
+
model: string | null;
|
|
402
|
+
firstTokenMs?: number | null;
|
|
403
|
+
durationMs?: number | null;
|
|
404
|
+
createdAt: string;
|
|
405
|
+
}
|
|
406
|
+
export declare const MAX_MESSAGE_ATTACHMENTS = 10;
|
|
407
|
+
export declare const sendSchema: z.ZodObject<{
|
|
408
|
+
requestId: z.ZodString;
|
|
409
|
+
text: z.ZodString;
|
|
410
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
411
|
+
steer: "steer";
|
|
412
|
+
new: "new";
|
|
413
|
+
queue: "queue";
|
|
414
|
+
}>>;
|
|
415
|
+
attachmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
416
|
+
replaceEventId: z.ZodOptional<z.ZodString>;
|
|
417
|
+
}, z.core.$strict>;
|
|
418
|
+
export declare const pendingMessageSchema: z.ZodObject<{
|
|
419
|
+
requestId: z.ZodString;
|
|
420
|
+
expectedRevision: z.ZodNumber;
|
|
421
|
+
action: z.ZodEnum<{
|
|
422
|
+
edit: "edit";
|
|
423
|
+
"send-now": "send-now";
|
|
424
|
+
}>;
|
|
425
|
+
text: z.ZodOptional<z.ZodString>;
|
|
426
|
+
}, z.core.$strict>;
|
|
427
|
+
export declare const watchSchema: z.ZodObject<{
|
|
428
|
+
controllerSessionId: z.ZodString;
|
|
429
|
+
targetSessionId: z.ZodString;
|
|
430
|
+
mode: z.ZodEnum<{
|
|
431
|
+
continue: "continue";
|
|
432
|
+
observe: "observe";
|
|
433
|
+
notify: "notify";
|
|
434
|
+
}>;
|
|
435
|
+
goal: z.ZodDefault<z.ZodString>;
|
|
436
|
+
goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
+
cursor: z.ZodDefault<z.ZodNumber>;
|
|
438
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
|
+
continuous: z.ZodDefault<z.ZodBoolean>;
|
|
440
|
+
trigger: z.ZodDefault<z.ZodEnum<{
|
|
441
|
+
"turn-ended": "turn-ended";
|
|
442
|
+
settled: "settled";
|
|
443
|
+
}>>;
|
|
444
|
+
limits: z.ZodDefault<z.ZodObject<{
|
|
445
|
+
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
446
|
+
maxContinuations: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
maxFailures: z.ZodOptional<z.ZodNumber>;
|
|
448
|
+
budgetUsd: z.ZodOptional<z.ZodNumber>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
}, z.core.$strict>;
|
|
451
|
+
export declare const projectGrantSchema: z.ZodObject<{
|
|
452
|
+
projectId: z.ZodString;
|
|
453
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
454
|
+
"create-only": "create-only";
|
|
455
|
+
"create-and-control": "create-and-control";
|
|
456
|
+
revoke: "revoke";
|
|
457
|
+
}>>;
|
|
458
|
+
goal: z.ZodDefault<z.ZodString>;
|
|
459
|
+
limits: z.ZodDefault<z.ZodObject<{
|
|
460
|
+
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
461
|
+
maxContinuations: z.ZodOptional<z.ZodNumber>;
|
|
462
|
+
maxFailures: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
budgetUsd: z.ZodOptional<z.ZodNumber>;
|
|
464
|
+
}, z.core.$strip>>;
|
|
465
|
+
}, z.core.$strict>;
|
|
466
|
+
export declare const harnessBindingDefaultsSchema: z.ZodRecord<z.ZodEnum<{
|
|
467
|
+
kodo: "kodo";
|
|
468
|
+
pi: "pi";
|
|
469
|
+
codex: "codex";
|
|
470
|
+
"claude-code": "claude-code";
|
|
471
|
+
"deepseek-harness": "deepseek-harness";
|
|
472
|
+
zcode: "zcode";
|
|
473
|
+
opencode: "opencode";
|
|
474
|
+
gemini: "gemini";
|
|
475
|
+
cursor: "cursor";
|
|
476
|
+
"kimi-code": "kimi-code";
|
|
477
|
+
"grok-build": "grok-build";
|
|
478
|
+
}> & z.core.$partial, z.ZodNullable<z.ZodString>>;
|
|
479
|
+
export declare const bindingDefaultsSchema: z.ZodObject<{
|
|
480
|
+
expectedRevision: z.ZodNumber;
|
|
481
|
+
harnessBindingIds: z.ZodRecord<z.ZodEnum<{
|
|
482
|
+
kodo: "kodo";
|
|
483
|
+
pi: "pi";
|
|
484
|
+
codex: "codex";
|
|
485
|
+
"claude-code": "claude-code";
|
|
486
|
+
"deepseek-harness": "deepseek-harness";
|
|
487
|
+
zcode: "zcode";
|
|
488
|
+
opencode: "opencode";
|
|
489
|
+
gemini: "gemini";
|
|
490
|
+
cursor: "cursor";
|
|
491
|
+
"kimi-code": "kimi-code";
|
|
492
|
+
"grok-build": "grok-build";
|
|
493
|
+
}> & z.core.$partial, z.ZodNullable<z.ZodString>>;
|
|
494
|
+
}, z.core.$strict>;
|
|
495
|
+
export declare const projectDefaultsSchema: z.ZodObject<{
|
|
496
|
+
expectedRevision: z.ZodNumber;
|
|
497
|
+
bindingDefaults: z.ZodRecord<z.ZodEnum<{
|
|
498
|
+
kodo: "kodo";
|
|
499
|
+
pi: "pi";
|
|
500
|
+
codex: "codex";
|
|
501
|
+
"claude-code": "claude-code";
|
|
502
|
+
"deepseek-harness": "deepseek-harness";
|
|
503
|
+
zcode: "zcode";
|
|
504
|
+
opencode: "opencode";
|
|
505
|
+
gemini: "gemini";
|
|
506
|
+
cursor: "cursor";
|
|
507
|
+
"kimi-code": "kimi-code";
|
|
508
|
+
"grok-build": "grok-build";
|
|
509
|
+
}> & z.core.$partial, z.ZodNullable<z.ZodString>>;
|
|
510
|
+
}, z.core.$strict>;
|
|
511
|
+
export interface NativeImportCandidate {
|
|
512
|
+
harnessId: HarnessId;
|
|
513
|
+
nativeSessionId: string;
|
|
514
|
+
title: string;
|
|
515
|
+
cwd: string | null;
|
|
516
|
+
projectId: string | null;
|
|
517
|
+
workspaceId: string | null;
|
|
518
|
+
createdAt: string | null;
|
|
519
|
+
updatedAt: string | null;
|
|
520
|
+
model: string | null;
|
|
521
|
+
messageCount: number | null;
|
|
522
|
+
alreadyImported: boolean;
|
|
523
|
+
existingSessionId: string | null;
|
|
524
|
+
}
|
|
525
|
+
export interface NativeImportDiscovery {
|
|
526
|
+
candidates: NativeImportCandidate[];
|
|
527
|
+
warnings: Array<{
|
|
528
|
+
harnessId: HarnessId;
|
|
529
|
+
message: string;
|
|
530
|
+
}>;
|
|
531
|
+
}
|
|
532
|
+
export declare const nativeImportItemSchema: z.ZodObject<{
|
|
533
|
+
harnessId: z.ZodEnum<{
|
|
534
|
+
kodo: "kodo";
|
|
535
|
+
pi: "pi";
|
|
536
|
+
codex: "codex";
|
|
537
|
+
"claude-code": "claude-code";
|
|
538
|
+
"deepseek-harness": "deepseek-harness";
|
|
539
|
+
zcode: "zcode";
|
|
540
|
+
opencode: "opencode";
|
|
541
|
+
gemini: "gemini";
|
|
542
|
+
cursor: "cursor";
|
|
543
|
+
"kimi-code": "kimi-code";
|
|
544
|
+
"grok-build": "grok-build";
|
|
545
|
+
}>;
|
|
546
|
+
nativeSessionId: z.ZodString;
|
|
547
|
+
title: z.ZodOptional<z.ZodString>;
|
|
548
|
+
cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
549
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
551
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
553
|
+
}, z.core.$strict>;
|
|
554
|
+
export declare const nativeImportSchema: z.ZodObject<{
|
|
555
|
+
items: z.ZodArray<z.ZodObject<{
|
|
556
|
+
harnessId: z.ZodEnum<{
|
|
557
|
+
kodo: "kodo";
|
|
558
|
+
pi: "pi";
|
|
559
|
+
codex: "codex";
|
|
560
|
+
"claude-code": "claude-code";
|
|
561
|
+
"deepseek-harness": "deepseek-harness";
|
|
562
|
+
zcode: "zcode";
|
|
563
|
+
opencode: "opencode";
|
|
564
|
+
gemini: "gemini";
|
|
565
|
+
cursor: "cursor";
|
|
566
|
+
"kimi-code": "kimi-code";
|
|
567
|
+
"grok-build": "grok-build";
|
|
568
|
+
}>;
|
|
569
|
+
nativeSessionId: z.ZodString;
|
|
570
|
+
title: z.ZodOptional<z.ZodString>;
|
|
571
|
+
cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
572
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
573
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
574
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
575
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
|
+
}, z.core.$strict>>;
|
|
577
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
578
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
579
|
+
}, z.core.$strict>;
|
|
580
|
+
export interface NativeImportResult {
|
|
581
|
+
imported: Session[];
|
|
582
|
+
skipped: Array<{
|
|
583
|
+
harnessId: HarnessId;
|
|
584
|
+
nativeSessionId: string;
|
|
585
|
+
reason: string;
|
|
586
|
+
}>;
|
|
587
|
+
errors: Array<{
|
|
588
|
+
harnessId: HarnessId;
|
|
589
|
+
nativeSessionId: string;
|
|
590
|
+
message: string;
|
|
591
|
+
}>;
|
|
592
|
+
}
|
|
593
|
+
export interface VoiceProviderOption {
|
|
594
|
+
providerId: string;
|
|
595
|
+
providerName: string;
|
|
596
|
+
endpointId: string;
|
|
597
|
+
protocol: string;
|
|
598
|
+
baseUrl: string;
|
|
599
|
+
hasCredential: boolean;
|
|
600
|
+
}
|
|
601
|
+
export interface VoiceStatus {
|
|
602
|
+
providerAvailable: boolean;
|
|
603
|
+
providers: VoiceProviderOption[];
|
|
604
|
+
configuredProviderId: string | null;
|
|
605
|
+
activeProviderId: string | null;
|
|
606
|
+
model: string;
|
|
607
|
+
engine: "auto" | "browser" | "provider";
|
|
608
|
+
language: "auto" | "zh-CN" | "en-US" | "ja-JP";
|
|
609
|
+
autoSend: boolean;
|
|
610
|
+
}
|
|
611
|
+
export interface VoiceTranscriptionResult {
|
|
612
|
+
text: string;
|
|
613
|
+
providerId: string;
|
|
614
|
+
providerName: string;
|
|
615
|
+
model: string;
|
|
616
|
+
durationMs: number;
|
|
617
|
+
}
|
|
618
|
+
export type AppUpdateAssetPlatform = "windows" | "macos-arm64" | "macos-x64" | "linux-appimage" | "linux-deb" | "android" | "ios" | "other";
|
|
619
|
+
export interface AppUpdateAsset {
|
|
620
|
+
name: string;
|
|
621
|
+
downloadUrl: string;
|
|
622
|
+
size: number;
|
|
623
|
+
sha256: string | null;
|
|
624
|
+
platform: AppUpdateAssetPlatform;
|
|
625
|
+
}
|
|
626
|
+
export interface AppUpdateRelease {
|
|
627
|
+
tag: string;
|
|
628
|
+
version: string;
|
|
629
|
+
buildNumber: number | null;
|
|
630
|
+
prerelease: boolean;
|
|
631
|
+
title: string;
|
|
632
|
+
notes: string;
|
|
633
|
+
publishedAt: string | null;
|
|
634
|
+
htmlUrl: string;
|
|
635
|
+
assets: AppUpdateAsset[];
|
|
636
|
+
recommendedAsset: AppUpdateAsset | null;
|
|
637
|
+
androidAsset: AppUpdateAsset | null;
|
|
638
|
+
}
|
|
639
|
+
export interface AppUpdateDownloadState {
|
|
640
|
+
state: "idle" | "downloading" | "verifying" | "ready" | "installing" | "error";
|
|
641
|
+
tag: string | null;
|
|
642
|
+
assetName: string | null;
|
|
643
|
+
downloadedBytes: number;
|
|
644
|
+
totalBytes: number | null;
|
|
645
|
+
localPath: string | null;
|
|
646
|
+
sha256Verified: boolean;
|
|
647
|
+
error: string | null;
|
|
648
|
+
}
|
|
649
|
+
export interface AppUpdateStatus {
|
|
650
|
+
distribution?: "npm";
|
|
651
|
+
updateCommand?: string;
|
|
652
|
+
currentVersion: string;
|
|
653
|
+
platform: string;
|
|
654
|
+
arch: string;
|
|
655
|
+
channel: "stable" | "preview";
|
|
656
|
+
autoCheck: boolean;
|
|
657
|
+
repository: string;
|
|
658
|
+
state: "idle" | "checking" | "available" | "up-to-date" | "error";
|
|
659
|
+
checkedAt: string | null;
|
|
660
|
+
updateAvailable: boolean;
|
|
661
|
+
latest: AppUpdateRelease | null;
|
|
662
|
+
error: string | null;
|
|
663
|
+
download: AppUpdateDownloadState;
|
|
664
|
+
}
|
|
665
|
+
export type ErrorCode = "INVALID_INPUT" | "NOT_FOUND" | "CONFLICT" | "NOT_IMPLEMENTED" | "UNSUPPORTED" | "UNAVAILABLE" | "UNAUTHORIZED" | "INTERNAL_ERROR";
|
|
666
|
+
export interface ApiError {
|
|
667
|
+
error: {
|
|
668
|
+
code: ErrorCode;
|
|
669
|
+
message: string;
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
export declare class KodoError extends Error {
|
|
673
|
+
readonly code: ErrorCode;
|
|
674
|
+
constructor(code: ErrorCode, message: string);
|
|
675
|
+
}
|
|
676
|
+
export * from "./self-hosted.js";
|
|
677
|
+
export * from "./automation-schedule.js";
|
|
678
|
+
export * from "./clients.js";
|