@kortix/sdk 0.13.46 → 0.13.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -44
- package/dist/browser/session-sync/server-transcript-mirror.d.ts +1 -1
- package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
- package/dist/browser/session-sync/session-sync-registry.d.ts +1 -1
- package/dist/browser/session-sync/session-sync-registry.d.ts.map +1 -1
- package/dist/browser/session-sync/visibility.d.ts +0 -12
- package/dist/browser/session-sync/visibility.d.ts.map +1 -1
- package/dist/browser/session-sync/visibility.js +23 -2
- package/dist/browser/session-sync/visibility.js.map +1 -1
- package/dist/browser/stores/opencode-pending-store.d.ts +1 -1
- package/dist/browser/stores/opencode-pending-store.d.ts.map +1 -1
- package/dist/browser/stores/sandbox-connection-store.d.ts +8 -0
- package/dist/browser/stores/sandbox-connection-store.d.ts.map +1 -1
- package/dist/browser/stores/sandbox-connection-store.js +14 -0
- package/dist/browser/stores/sandbox-connection-store.js.map +1 -1
- package/dist/browser/stores/sync-store/reconcile-parts.d.ts +1 -1
- package/dist/browser/stores/sync-store/reconcile-parts.d.ts.map +1 -1
- package/dist/browser/stores/sync-store/types.d.ts +1 -1
- package/dist/browser/stores/sync-store/types.d.ts.map +1 -1
- package/dist/browser/stores/sync-store.d.ts +1 -1
- package/dist/browser/stores/sync-store.d.ts.map +1 -1
- package/dist/browser/stores/sync-store.js +79 -60
- package/dist/browser/stores/sync-store.js.map +1 -1
- package/dist/core/agents/composer-agents.d.ts +8 -6
- package/dist/core/agents/composer-agents.d.ts.map +1 -1
- package/dist/core/agents/composer-agents.js +3 -3
- package/dist/core/agents/composer-agents.js.map +1 -1
- package/dist/core/client/binding-types.d.ts +2 -0
- package/dist/core/client/binding-types.d.ts.map +1 -0
- package/dist/core/client/binding-types.js +2 -0
- package/dist/core/client/binding-types.js.map +1 -0
- package/dist/core/client/facade-accounts.d.ts +57 -0
- package/dist/core/client/facade-accounts.d.ts.map +1 -0
- package/dist/core/client/facade-accounts.js +59 -0
- package/dist/core/client/facade-accounts.js.map +1 -0
- package/dist/core/client/facade-catalog.d.ts +58 -0
- package/dist/core/client/facade-catalog.d.ts.map +1 -0
- package/dist/core/client/facade-catalog.js +70 -0
- package/dist/core/client/facade-catalog.js.map +1 -0
- package/dist/core/client/facade-commerce.d.ts +45 -0
- package/dist/core/client/facade-commerce.d.ts.map +1 -0
- package/dist/core/client/facade-commerce.js +53 -0
- package/dist/core/client/facade-commerce.js.map +1 -0
- package/dist/core/client/facade-iam.d.ts +54 -0
- package/dist/core/client/facade-iam.d.ts.map +1 -0
- package/dist/core/client/facade-iam.js +62 -0
- package/dist/core/client/facade-iam.js.map +1 -0
- package/dist/core/client/facade-identity.d.ts +104 -0
- package/dist/core/client/facade-identity.d.ts.map +1 -0
- package/dist/core/client/facade-identity.js +36 -0
- package/dist/core/client/facade-identity.js.map +1 -0
- package/dist/core/client/facade-preview.d.ts +4 -0
- package/dist/core/client/facade-preview.d.ts.map +1 -0
- package/dist/core/client/facade-preview.js +61 -0
- package/dist/core/client/facade-preview.js.map +1 -0
- package/dist/core/client/kortix.d.ts +662 -985
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/kortix.js +31 -1162
- package/dist/core/client/kortix.js.map +1 -1
- package/dist/core/client/project-access-resources.d.ts +38 -0
- package/dist/core/client/project-access-resources.d.ts.map +1 -0
- package/dist/core/client/project-access-resources.js +37 -0
- package/dist/core/client/project-access-resources.js.map +1 -0
- package/dist/core/client/project-access-security.d.ts +117 -0
- package/dist/core/client/project-access-security.d.ts.map +1 -0
- package/dist/core/client/project-access-security.js +41 -0
- package/dist/core/client/project-access-security.js.map +1 -0
- package/dist/core/client/project-connections.d.ts +34 -0
- package/dist/core/client/project-connections.d.ts.map +1 -0
- package/dist/core/client/project-connections.js +20 -0
- package/dist/core/client/project-connections.js.map +1 -0
- package/dist/core/client/project-connectors.d.ts +21 -0
- package/dist/core/client/project-connectors.d.ts.map +1 -0
- package/dist/core/client/project-connectors.js +20 -0
- package/dist/core/client/project-connectors.js.map +1 -0
- package/dist/core/client/project-core.d.ts +72 -0
- package/dist/core/client/project-core.d.ts.map +1 -0
- package/dist/core/client/project-core.js +24 -0
- package/dist/core/client/project-core.js.map +1 -0
- package/dist/core/client/project-membership.d.ts +64 -0
- package/dist/core/client/project-membership.d.ts.map +1 -0
- package/dist/core/client/project-membership.js +26 -0
- package/dist/core/client/project-membership.js.map +1 -0
- package/dist/core/client/project-operations-admin.d.ts +112 -0
- package/dist/core/client/project-operations-admin.d.ts.map +1 -0
- package/dist/core/client/project-operations-admin.js +24 -0
- package/dist/core/client/project-operations-admin.js.map +1 -0
- package/dist/core/client/project-operations-review.d.ts +44 -0
- package/dist/core/client/project-operations-review.d.ts.map +1 -0
- package/dist/core/client/project-operations-review.js +34 -0
- package/dist/core/client/project-operations-review.js.map +1 -0
- package/dist/core/client/project-operations-workspace.d.ts +91 -0
- package/dist/core/client/project-operations-workspace.d.ts.map +1 -0
- package/dist/core/client/project-operations-workspace.js +36 -0
- package/dist/core/client/project-operations-workspace.js.map +1 -0
- package/dist/core/client/project-operations.d.ts +225 -0
- package/dist/core/client/project-operations.d.ts.map +1 -0
- package/dist/core/client/project-operations.js +47 -0
- package/dist/core/client/project-operations.js.map +1 -0
- package/dist/core/client/project-platform-resources.d.ts +36 -0
- package/dist/core/client/project-platform-resources.d.ts.map +1 -0
- package/dist/core/client/project-platform-resources.js +29 -0
- package/dist/core/client/project-platform-resources.js.map +1 -0
- package/dist/core/client/project-platform-security.d.ts +83 -0
- package/dist/core/client/project-platform-security.d.ts.map +1 -0
- package/dist/core/client/project-platform-security.js +39 -0
- package/dist/core/client/project-platform-security.js.map +1 -0
- package/dist/core/client/project-platform-settings.d.ts +58 -0
- package/dist/core/client/project-platform-settings.d.ts.map +1 -0
- package/dist/core/client/project-platform-settings.js +28 -0
- package/dist/core/client/project-platform-settings.js.map +1 -0
- package/dist/core/client/session-actions-resources.d.ts +18 -0
- package/dist/core/client/session-actions-resources.d.ts.map +1 -0
- package/dist/core/client/session-actions-resources.js +31 -0
- package/dist/core/client/session-actions-resources.js.map +1 -0
- package/dist/core/client/session-actions-security.d.ts +31 -0
- package/dist/core/client/session-actions-security.d.ts.map +1 -0
- package/dist/core/client/session-actions-security.js +51 -0
- package/dist/core/client/session-actions-security.js.map +1 -0
- package/dist/core/client/session-actions-services.d.ts +64 -0
- package/dist/core/client/session-actions-services.d.ts.map +1 -0
- package/dist/core/client/session-actions-services.js +59 -0
- package/dist/core/client/session-actions-services.js.map +1 -0
- package/dist/core/client/session-context.d.ts +22 -0
- package/dist/core/client/session-context.d.ts.map +1 -0
- package/dist/core/client/session-context.js +2 -0
- package/dist/core/client/session-context.js.map +1 -0
- package/dist/core/client/session-defaults.d.ts +9 -0
- package/dist/core/client/session-defaults.d.ts.map +1 -0
- package/dist/core/client/session-defaults.js +45 -0
- package/dist/core/client/session-defaults.js.map +1 -0
- package/dist/core/client/session-files.d.ts +26 -0
- package/dist/core/client/session-files.d.ts.map +1 -0
- package/dist/core/client/session-files.js +24 -0
- package/dist/core/client/session-files.js.map +1 -0
- package/dist/core/client/session-handle.d.ts +186 -0
- package/dist/core/client/session-handle.d.ts.map +1 -0
- package/dist/core/client/session-handle.js +68 -0
- package/dist/core/client/session-handle.js.map +1 -0
- package/dist/core/client/session-lifecycle-resources.d.ts +67 -0
- package/dist/core/client/session-lifecycle-resources.d.ts.map +1 -0
- package/dist/core/client/session-lifecycle-resources.js +56 -0
- package/dist/core/client/session-lifecycle-resources.js.map +1 -0
- package/dist/core/client/session-lifecycle-security.d.ts +65 -0
- package/dist/core/client/session-lifecycle-security.d.ts.map +1 -0
- package/dist/core/client/session-lifecycle-security.js +54 -0
- package/dist/core/client/session-lifecycle-security.js.map +1 -0
- package/dist/core/client/session-preview.d.ts +26 -0
- package/dist/core/client/session-preview.d.ts.map +1 -0
- package/dist/core/client/session-preview.js +31 -0
- package/dist/core/client/session-preview.js.map +1 -0
- package/dist/core/client/session-readiness.d.ts +11 -0
- package/dist/core/client/session-readiness.d.ts.map +1 -0
- package/dist/core/client/session-readiness.js +77 -0
- package/dist/core/client/session-readiness.js.map +1 -0
- package/dist/core/client/session-runtime.d.ts +35 -0
- package/dist/core/client/session-runtime.d.ts.map +1 -0
- package/dist/core/client/session-runtime.js +30 -0
- package/dist/core/client/session-runtime.js.map +1 -0
- package/dist/core/client/session-shared.d.ts +46 -0
- package/dist/core/client/session-shared.d.ts.map +1 -0
- package/dist/core/client/session-shared.js +48 -0
- package/dist/core/client/session-shared.js.map +1 -0
- package/dist/core/client/session-start.d.ts +3 -0
- package/dist/core/client/session-start.d.ts.map +1 -0
- package/dist/core/client/session-start.js +60 -0
- package/dist/core/client/session-start.js.map +1 -0
- package/dist/core/files/client.d.ts.map +1 -1
- package/dist/core/files/client.js +29 -3
- package/dist/core/files/client.js.map +1 -1
- package/dist/core/http/api-client.d.ts.map +1 -1
- package/dist/core/http/api-client.js +2 -419
- package/dist/core/http/api-client.js.map +1 -1
- package/dist/core/http/config.d.ts +15 -0
- package/dist/core/http/config.d.ts.map +1 -1
- package/dist/core/http/config.js.map +1 -1
- package/dist/core/http/request.d.ts +3 -0
- package/dist/core/http/request.d.ts.map +1 -0
- package/dist/core/http/request.js +215 -0
- package/dist/core/http/request.js.map +1 -0
- package/dist/core/http/response-error.d.ts +3 -0
- package/dist/core/http/response-error.d.ts.map +1 -0
- package/dist/core/http/response-error.js +113 -0
- package/dist/core/http/response-error.js.map +1 -0
- package/dist/core/http/runtime-errors.d.ts +23 -0
- package/dist/core/http/runtime-errors.d.ts.map +1 -1
- package/dist/core/http/runtime-errors.js +39 -1
- package/dist/core/http/runtime-errors.js.map +1 -1
- package/dist/core/http/transport.d.ts +13 -1
- package/dist/core/http/transport.d.ts.map +1 -1
- package/dist/core/http/transport.js +25 -4
- package/dist/core/http/transport.js.map +1 -1
- package/dist/core/models/composer-model.d.ts +1 -1
- package/dist/core/models/composer-model.d.ts.map +1 -1
- package/dist/core/models/model-flatten.d.ts +8 -1
- package/dist/core/models/model-flatten.d.ts.map +1 -1
- package/dist/core/models/model-flatten.js +2 -0
- package/dist/core/models/model-flatten.js.map +1 -1
- package/dist/core/models/model-key.d.ts +11 -0
- package/dist/core/models/model-key.d.ts.map +1 -1
- package/dist/core/models/model-key.js +20 -0
- package/dist/core/models/model-key.js.map +1 -1
- package/dist/core/models/provider-selection.d.ts +1 -1
- package/dist/core/models/provider-selection.d.ts.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.d.ts +14 -19
- package/dist/core/rest/platform-client/host-boundary.d.ts.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.js +7 -38
- package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
- package/dist/core/rest/projects-client/admin-providers.d.ts +64 -3
- package/dist/core/rest/projects-client/admin-providers.d.ts.map +1 -1
- package/dist/core/rest/projects-client/admin-providers.js.map +1 -1
- package/dist/core/rest/projects-client/agent-config.d.ts +8 -0
- package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
- package/dist/core/rest/projects-client/agent-config.js.map +1 -1
- package/dist/core/rest/projects-client/apps.d.ts +30 -0
- package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
- package/dist/core/rest/projects-client/apps.js +10 -0
- package/dist/core/rest/projects-client/apps.js.map +1 -1
- package/dist/core/rest/projects-client/audit-filter.d.ts +6 -0
- package/dist/core/rest/projects-client/audit-filter.d.ts.map +1 -0
- package/dist/core/rest/projects-client/audit-filter.js +11 -0
- package/dist/core/rest/projects-client/audit-filter.js.map +1 -0
- package/dist/core/rest/projects-client/audit.d.ts +6 -18
- package/dist/core/rest/projects-client/audit.d.ts.map +1 -1
- package/dist/core/rest/projects-client/audit.js +30 -108
- package/dist/core/rest/projects-client/audit.js.map +1 -1
- package/dist/core/rest/projects-client/channels.d.ts +19 -0
- package/dist/core/rest/projects-client/channels.d.ts.map +1 -1
- package/dist/core/rest/projects-client/channels.js.map +1 -1
- package/dist/core/rest/projects-client/connectors.d.ts +4 -3
- package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
- package/dist/core/rest/projects-client/connectors.js.map +1 -1
- package/dist/core/rest/projects-client/iam-roles.d.ts +5 -0
- package/dist/core/rest/projects-client/iam-roles.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-roles.js +9 -0
- package/dist/core/rest/projects-client/iam-roles.js.map +1 -1
- package/dist/core/rest/projects-client/projects.d.ts +11 -6
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +0 -2
- package/dist/core/rest/projects-client/projects.js.map +1 -1
- package/dist/core/rest/projects-client/secrets.d.ts +61 -8
- package/dist/core/rest/projects-client/secrets.d.ts.map +1 -1
- package/dist/core/rest/projects-client/secrets.js +52 -0
- package/dist/core/rest/projects-client/secrets.js.map +1 -1
- package/dist/core/rest/projects-client/session-sandbox.d.ts +6 -0
- package/dist/core/rest/projects-client/session-sandbox.d.ts.map +1 -1
- package/dist/core/rest/projects-client/session-sandbox.js.map +1 -1
- package/dist/core/rest/projects-client/sessions.d.ts +49 -24
- package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sessions.js +33 -4
- package/dist/core/rest/projects-client/sessions.js.map +1 -1
- package/dist/core/rest/projects-client/triggers.d.ts +12 -0
- package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
- package/dist/core/rest/projects-client/triggers.js.map +1 -1
- package/dist/core/runtime/client.d.ts +12 -11
- package/dist/core/runtime/client.d.ts.map +1 -1
- package/dist/core/runtime/client.js +36 -5
- package/dist/core/runtime/client.js.map +1 -1
- package/dist/core/runtime/runtime-rest-client.d.ts +462 -0
- package/dist/core/runtime/runtime-rest-client.d.ts.map +1 -0
- package/dist/core/runtime/runtime-rest-client.js +309 -0
- package/dist/core/runtime/runtime-rest-client.js.map +1 -0
- package/dist/core/runtime/runtime-types.d.ts +1174 -0
- package/dist/core/runtime/runtime-types.d.ts.map +1 -0
- package/dist/core/runtime/runtime-types.js +2 -0
- package/dist/core/runtime/runtime-types.js.map +1 -0
- package/dist/core/runtime/transcript-types.d.ts +564 -0
- package/dist/core/runtime/transcript-types.d.ts.map +1 -0
- package/dist/core/runtime/transcript-types.js +57 -0
- package/dist/core/runtime/transcript-types.js.map +1 -0
- package/dist/core/session/health.d.ts +2 -1
- package/dist/core/session/health.d.ts.map +1 -1
- package/dist/core/session/health.js.map +1 -1
- package/dist/core/session/host-signals.d.ts +16 -0
- package/dist/core/session/host-signals.d.ts.map +1 -0
- package/dist/core/session/host-signals.js +20 -0
- package/dist/core/session/host-signals.js.map +1 -0
- package/dist/core/session/index.d.ts +3 -0
- package/dist/core/session/index.d.ts.map +1 -1
- package/dist/core/session/index.js +2 -0
- package/dist/core/session/index.js.map +1 -1
- package/dist/core/session/open-bundle.d.ts +16 -0
- package/dist/core/session/open-bundle.d.ts.map +1 -1
- package/dist/core/session/open-bundle.js +31 -0
- package/dist/core/session/open-bundle.js.map +1 -1
- package/dist/core/session/runtime-sessions.d.ts +26 -0
- package/dist/core/session/runtime-sessions.d.ts.map +1 -0
- package/dist/core/session/runtime-sessions.js +39 -0
- package/dist/core/session/runtime-sessions.js.map +1 -0
- package/dist/core/session/runtime-verbs.d.ts +55 -0
- package/dist/core/session/runtime-verbs.d.ts.map +1 -0
- package/dist/core/session/runtime-verbs.js +124 -0
- package/dist/core/session/runtime-verbs.js.map +1 -0
- package/dist/core/session/wake-escalation.d.ts +1 -1
- package/dist/core/session/wake-escalation.js +1 -1
- package/dist/core/session/wire-message-id.d.ts +55 -12
- package/dist/core/session/wire-message-id.d.ts.map +1 -1
- package/dist/core/session/wire-message-id.js +62 -12
- package/dist/core/session/wire-message-id.js.map +1 -1
- package/dist/core/session/working-evidence.d.ts +15 -0
- package/dist/core/session/working-evidence.d.ts.map +1 -0
- package/dist/core/session/working-evidence.js +27 -0
- package/dist/core/session/working-evidence.js.map +1 -0
- package/dist/core/session/working-project.d.ts +3 -0
- package/dist/core/session/working-project.d.ts.map +1 -0
- package/dist/core/session/working-project.js +187 -0
- package/dist/core/session/working-project.js.map +1 -0
- package/dist/core/session/working-runtime.d.ts +33 -0
- package/dist/core/session/working-runtime.d.ts.map +1 -0
- package/dist/core/session/working-runtime.js +46 -0
- package/dist/core/session/working-runtime.js.map +1 -0
- package/dist/core/session/working-time.d.ts +2 -0
- package/dist/core/session/working-time.d.ts.map +1 -0
- package/dist/core/session/working-time.js +7 -0
- package/dist/core/session/working-time.js.map +1 -0
- package/dist/core/session/working.d.ts.map +1 -1
- package/dist/core/session/working.js +2 -316
- package/dist/core/session/working.js.map +1 -1
- package/dist/core/session-sync/session-sync-controller.d.ts +1 -1
- package/dist/core/session-sync/session-sync-controller.d.ts.map +1 -1
- package/dist/core/stream/event-stream.d.ts +25 -6
- package/dist/core/stream/event-stream.d.ts.map +1 -1
- package/dist/core/stream/event-stream.js +63 -9
- package/dist/core/stream/event-stream.js.map +1 -1
- package/dist/core/turns/classify.d.ts +31 -2
- package/dist/core/turns/classify.d.ts.map +1 -1
- package/dist/core/turns/classify.js +94 -0
- package/dist/core/turns/classify.js.map +1 -1
- package/dist/core/turns/index.d.ts +1 -0
- package/dist/core/turns/index.d.ts.map +1 -1
- package/dist/core/turns/index.js +1 -0
- package/dist/core/turns/index.js.map +1 -1
- package/dist/core/turns/parts.d.ts +6 -1
- package/dist/core/turns/parts.d.ts.map +1 -1
- package/dist/core/turns/parts.js +57 -49
- package/dist/core/turns/parts.js.map +1 -1
- package/dist/core/turns/segments/narration.d.ts.map +1 -1
- package/dist/core/turns/segments/narration.js +40 -130
- package/dist/core/turns/segments/narration.js.map +1 -1
- package/dist/core/turns/segments/turn-busy-visibility.d.ts +1 -1
- package/dist/core/turns/segments/turn-busy-visibility.js +1 -1
- package/dist/core/turns/segments/working-turn.js +1 -1
- package/dist/core/turns/segments/working-turn.js.map +1 -1
- package/dist/core/turns/tool-kind.d.ts +15 -0
- package/dist/core/turns/tool-kind.d.ts.map +1 -0
- package/dist/core/turns/tool-kind.js +115 -0
- package/dist/core/turns/tool-kind.js.map +1 -0
- package/dist/core/turns/tool-registry.d.ts +6 -7
- package/dist/core/turns/tool-registry.d.ts.map +1 -1
- package/dist/core/turns/tool-registry.js +78 -73
- package/dist/core/turns/tool-registry.js.map +1 -1
- package/dist/core/turns/tools/tool-meta.d.ts +1 -0
- package/dist/core/turns/tools/tool-meta.d.ts.map +1 -1
- package/dist/core/turns/tools/tool-meta.js +7 -6
- package/dist/core/turns/tools/tool-meta.js.map +1 -1
- package/dist/core/turns/view-model.d.ts.map +1 -1
- package/dist/core/turns/view-model.js +19 -12
- package/dist/core/turns/view-model.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/kortix.esm.min.js +46 -45
- package/dist/kortix.global.js +46 -45
- package/dist/node/app-viewer.js +1 -1
- package/dist/node/app-viewer.js.map +1 -1
- package/dist/node/auth.js +1 -1
- package/dist/node/auth.js.map +1 -1
- package/dist/node/scoped-client.d.ts +20 -0
- package/dist/node/scoped-client.d.ts.map +1 -0
- package/dist/node/scoped-client.js +170 -0
- package/dist/node/scoped-client.js.map +1 -0
- package/dist/node/server.d.ts +2 -21
- package/dist/node/server.d.ts.map +1 -1
- package/dist/node/server.js +2 -170
- package/dist/node/server.js.map +1 -1
- package/dist/react/index.d.ts +4 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +3 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/prefetch-session-open.d.ts +13 -0
- package/dist/react/prefetch-session-open.d.ts.map +1 -1
- package/dist/react/prefetch-session-open.js +22 -1
- package/dist/react/prefetch-session-open.js.map +1 -1
- package/dist/react/query-keys.d.ts +3 -2
- package/dist/react/query-keys.d.ts.map +1 -1
- package/dist/react/query-keys.js +4 -4
- package/dist/react/query-keys.js.map +1 -1
- package/dist/react/sign-in-with-kortix.d.ts +8 -8
- package/dist/react/use-admin-providers.d.ts +18 -0
- package/dist/react/use-admin-providers.d.ts.map +1 -0
- package/dist/react/use-admin-providers.js +36 -0
- package/dist/react/use-admin-providers.js.map +1 -0
- package/dist/react/use-feature-flag.d.ts +2 -2
- package/dist/react/use-feature-flag.d.ts.map +1 -1
- package/dist/react/use-feature-flag.js +3 -2
- package/dist/react/use-feature-flag.js.map +1 -1
- package/dist/react/use-kortix-master.d.ts +1 -1
- package/dist/react/use-opencode-config.d.ts +7 -1
- package/dist/react/use-opencode-config.d.ts.map +1 -1
- package/dist/react/use-opencode-config.js +9 -1
- package/dist/react/use-opencode-config.js.map +1 -1
- package/dist/react/use-opencode-events/diagnostics.d.ts +1 -1
- package/dist/react/use-opencode-events/diagnostics.d.ts.map +1 -1
- package/dist/react/use-opencode-events/handle-event.d.ts +4 -6
- package/dist/react/use-opencode-events/handle-event.d.ts.map +1 -1
- package/dist/react/use-opencode-events/handle-event.js +43 -594
- package/dist/react/use-opencode-events/handle-event.js.map +1 -1
- package/dist/react/use-opencode-events/handle-interaction-event.d.ts +4 -0
- package/dist/react/use-opencode-events/handle-interaction-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-interaction-event.js +42 -0
- package/dist/react/use-opencode-events/handle-interaction-event.js.map +1 -0
- package/dist/react/use-opencode-events/handle-message-event.d.ts +4 -0
- package/dist/react/use-opencode-events/handle-message-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-message-event.js +33 -0
- package/dist/react/use-opencode-events/handle-message-event.js.map +1 -0
- package/dist/react/use-opencode-events/handle-session-event.d.ts +5 -0
- package/dist/react/use-opencode-events/handle-session-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-session-event.js +243 -0
- package/dist/react/use-opencode-events/handle-session-event.js.map +1 -0
- package/dist/react/use-opencode-events/handle-workspace-event.d.ts +4 -0
- package/dist/react/use-opencode-events/handle-workspace-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-workspace-event.js +113 -0
- package/dist/react/use-opencode-events/handle-workspace-event.js.map +1 -0
- package/dist/react/use-opencode-events/handler-context.d.ts +29 -0
- package/dist/react/use-opencode-events/handler-context.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handler-context.js +2 -0
- package/dist/react/use-opencode-events/handler-context.js.map +1 -0
- package/dist/react/use-opencode-events/hydrate-core.d.ts +23 -0
- package/dist/react/use-opencode-events/hydrate-core.d.ts.map +1 -0
- package/dist/react/use-opencode-events/hydrate-core.js +126 -0
- package/dist/react/use-opencode-events/hydrate-core.js.map +1 -0
- package/dist/react/use-opencode-events/index.d.ts +1 -0
- package/dist/react/use-opencode-events/index.d.ts.map +1 -1
- package/dist/react/use-opencode-events/index.js +40 -143
- package/dist/react/use-opencode-events/index.js.map +1 -1
- package/dist/react/use-opencode-events/runtime-stream-signals.d.ts +45 -0
- package/dist/react/use-opencode-events/runtime-stream-signals.d.ts.map +1 -0
- package/dist/react/use-opencode-events/runtime-stream-signals.js +32 -0
- package/dist/react/use-opencode-events/runtime-stream-signals.js.map +1 -0
- package/dist/react/use-opencode-events/stream-revival.d.ts +0 -21
- package/dist/react/use-opencode-events/stream-revival.d.ts.map +1 -1
- package/dist/react/use-opencode-events/stream-revival.js +33 -2
- package/dist/react/use-opencode-events/stream-revival.js.map +1 -1
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts +1 -1
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts.map +1 -1
- package/dist/react/use-opencode-local.d.ts +1 -1
- package/dist/react/use-opencode-local.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/agents.d.ts +1 -1
- package/dist/react/use-opencode-sessions/agents.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/commands.d.ts +4 -1
- package/dist/react/use-opencode-sessions/commands.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/commands.js +6 -1
- package/dist/react/use-opencode-sessions/commands.js.map +1 -1
- package/dist/react/use-opencode-sessions/files.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/files.js +8 -33
- package/dist/react/use-opencode-sessions/files.js.map +1 -1
- package/dist/react/use-opencode-sessions/keys.d.ts +12 -1
- package/dist/react/use-opencode-sessions/keys.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/keys.js +10 -0
- package/dist/react/use-opencode-sessions/keys.js.map +1 -1
- package/dist/react/use-opencode-sessions/mcp.d.ts +1 -1
- package/dist/react/use-opencode-sessions/mcp.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/messages.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/messages.js +8 -2
- package/dist/react/use-opencode-sessions/messages.js.map +1 -1
- package/dist/react/use-opencode-sessions/parts.d.ts +2 -2
- package/dist/react/use-opencode-sessions/parts.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/projects.d.ts +1 -1
- package/dist/react/use-opencode-sessions/projects.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/providers.d.ts +1 -1
- package/dist/react/use-opencode-sessions/providers.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/providers.js +12 -2
- package/dist/react/use-opencode-sessions/providers.js.map +1 -1
- package/dist/react/use-opencode-sessions/sessions.d.ts +8 -3
- package/dist/react/use-opencode-sessions/sessions.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/sessions.js +9 -2
- package/dist/react/use-opencode-sessions/sessions.js.map +1 -1
- package/dist/react/use-opencode-sessions/shared.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/shared.js +6 -1
- package/dist/react/use-opencode-sessions/shared.js.map +1 -1
- package/dist/react/use-opencode-sessions/sharing.d.ts +1 -1
- package/dist/react/use-opencode-sessions/sharing.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/vcs.d.ts +1 -1
- package/dist/react/use-opencode-sessions/vcs.d.ts.map +1 -1
- package/dist/react/use-project-apps.d.ts +6 -0
- package/dist/react/use-project-apps.d.ts.map +1 -1
- package/dist/react/use-project-gateway.d.ts +28 -0
- package/dist/react/use-project-gateway.d.ts.map +1 -0
- package/dist/react/use-project-gateway.js +120 -0
- package/dist/react/use-project-gateway.js.map +1 -0
- package/dist/react/use-project-secrets.d.ts +6 -6
- package/dist/react/use-project-sessions.d.ts +1 -1
- package/dist/react/use-project-sessions.d.ts.map +1 -1
- package/dist/react/use-project-sessions.js +2 -3
- package/dist/react/use-project-sessions.js.map +1 -1
- package/dist/react/use-session-messages.d.ts +4 -2
- package/dist/react/use-session-messages.d.ts.map +1 -1
- package/dist/react/use-session-messages.js +1 -1
- package/dist/react/use-session-messages.js.map +1 -1
- package/dist/react/use-session-participants.d.ts +10 -0
- package/dist/react/use-session-participants.d.ts.map +1 -0
- package/dist/react/use-session-participants.js +19 -0
- package/dist/react/use-session-participants.js.map +1 -0
- package/dist/react/use-session-prompts.d.ts +6 -0
- package/dist/react/use-session-prompts.d.ts.map +1 -1
- package/dist/react/use-session-prompts.js +17 -1
- package/dist/react/use-session-prompts.js.map +1 -1
- package/dist/react/use-session-sync.d.ts +4 -5
- package/dist/react/use-session-sync.d.ts.map +1 -1
- package/dist/react/use-session-sync.js +4 -1
- package/dist/react/use-session-sync.js.map +1 -1
- package/dist/react/use-session-transcript-history.d.ts.map +1 -1
- package/dist/react/use-session-transcript-history.js +14 -5
- package/dist/react/use-session-transcript-history.js.map +1 -1
- package/dist/react/use-session-working.d.ts +1 -1
- package/dist/react/use-session-working.d.ts.map +1 -1
- package/dist/react/use-session.d.ts +21 -9
- package/dist/react/use-session.d.ts.map +1 -1
- package/dist/react/use-session.js +64 -17
- package/dist/react/use-session.js.map +1 -1
- package/dist/react/use-teams-installations.d.ts +14 -0
- package/dist/react/use-teams-installations.d.ts.map +1 -1
- package/dist/react/use-teams-installations.js.map +1 -1
- package/dist/react/use-tunnel.d.ts +9 -0
- package/dist/react/use-tunnel.d.ts.map +1 -1
- package/dist/react/use-tunnel.js +9 -3
- package/dist/react/use-tunnel.js.map +1 -1
- package/dist/react/use-visible-agents.d.ts +1 -1
- package/dist/react/use-visible-agents.d.ts.map +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transcript.d.ts.map +1 -1
- package/dist/workspace-search/client.d.ts +20 -0
- package/dist/workspace-search/client.d.ts.map +1 -0
- package/dist/workspace-search/client.js +235 -0
- package/dist/workspace-search/client.js.map +1 -0
- package/dist/workspace-search/core.d.ts +2 -2
- package/dist/workspace-search/core.d.ts.map +1 -1
- package/dist/workspace-search/core.js +44 -4
- package/dist/workspace-search/core.js.map +1 -1
- package/dist/workspace-search/index.d.ts +3 -0
- package/dist/workspace-search/index.d.ts.map +1 -0
- package/dist/workspace-search/index.js +3 -0
- package/dist/workspace-search/index.js.map +1 -0
- package/package.json +7 -5
- package/dist/core/runtime/opencode-v2-event-aliases.d.ts +0 -184
- package/dist/core/runtime/opencode-v2-event-aliases.d.ts.map +0 -1
- package/dist/core/runtime/opencode-v2-event-aliases.js +0 -2
- package/dist/core/runtime/opencode-v2-event-aliases.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
The **single, opinionated data layer** for the Kortix API. One typed
|
|
4
4
|
client wraps both the **Kortix REST API** and the **agent runtime** so a
|
|
5
|
-
host app — web, mobile, reference — imports **only `@kortix/sdk
|
|
6
|
-
|
|
5
|
+
host app — web, mobile, reference — imports **only `@kortix/sdk`**. The SDK
|
|
6
|
+
owns its types: the transcript is Kortix's own format (`kortix.transcript.v1`),
|
|
7
|
+
and the package depends on no harness SDK. (The no-raw-`backendApi`/`authenticatedFetch` rule
|
|
7
8
|
below is the target state, not yet fully true of apps/web — see Rules of the
|
|
8
9
|
road.)
|
|
9
10
|
|
|
@@ -247,9 +248,11 @@ Older subpaths (`@kortix/sdk/projects-client`, `/turns`, …) still work and are
|
|
|
247
248
|
the four that are real, and **API-MAP.md**'s Stability table for the full
|
|
248
249
|
list of aliases (20 of them).
|
|
249
250
|
|
|
250
|
-
> **React Native / Expo:** REST works.
|
|
251
|
-
>
|
|
252
|
-
>
|
|
251
|
+
> **React Native / Expo:** REST works. Live streaming works with a host
|
|
252
|
+
> transport: pass `configureKortix({ eventStreamTransport })` (one connection's
|
|
253
|
+
> messages over the wire your runtime has, e.g. `react-native-sse`), and report
|
|
254
|
+
> foreground and network changes with `notifyHostSignal`. `apps/mobile` runs
|
|
255
|
+
> `useSession` from `@kortix/sdk/react` this way.
|
|
253
256
|
|
|
254
257
|
## Quick start
|
|
255
258
|
|
|
@@ -324,17 +327,19 @@ await s.send("Build me a widget"); // provisions/resumes if needed, then prompts
|
|
|
324
327
|
await s.rewind(userMessageId); // stages a reversible rollback on this session
|
|
325
328
|
await s.restoreRewind(); // restores the removed path before the next prompt
|
|
326
329
|
await s.previews();
|
|
330
|
+
await s.participants(); // who can open the session
|
|
327
331
|
await s.reloadConfig({ refresh_repo: false });
|
|
328
332
|
await s.reloadConfigStream(
|
|
329
333
|
{ refresh_repo: false },
|
|
330
334
|
(event) => event.type === "phase" && console.log(event.phase),
|
|
331
335
|
);
|
|
332
336
|
|
|
333
|
-
//
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
await s.
|
|
337
|
+
// The session verbs, bound to THIS session's own runtime (each provisions it first).
|
|
338
|
+
const { messages, hasMore } = await s.messages({ limit: 50 }); // { info, parts }[], oldest first
|
|
339
|
+
const { statuses, permissions, questions } = await s.pending();
|
|
340
|
+
await s.answerPermission(permissions[0].id, "once"); // "once" | "always" | "reject"
|
|
341
|
+
await s.answerQuestion(questions[0].id, [["Yes"]]); // null dismisses it
|
|
342
|
+
await s.compact(); // only when health() lists `session.compact`
|
|
338
343
|
```
|
|
339
344
|
|
|
340
345
|
React consumers use `useAccountSecretResources(accountId)` and
|
|
@@ -366,9 +371,9 @@ const browserSession = await apps.access.session(app.app_id);
|
|
|
366
371
|
|
|
367
372
|
Access modes are `private`, `project`, `restricted`, `public`, and `password`. An access session exchanges a five-minute URL for an eight-hour, host-only cookie. A stopped or idle App resumes on the same public request. Transient machine requests receive `202 app_starting` and `Retry-After: 3`.
|
|
368
373
|
|
|
369
|
-
|
|
374
|
+
`send()` reads the persisted session model and
|
|
370
375
|
agent before the first prompt on a handle. This prevents a snapshot-inherited
|
|
371
|
-
|
|
376
|
+
runtime session from reusing stale snapshot defaults. A per-call choice
|
|
372
377
|
overrides a `setModel()` or `setAgent()` choice. A handle choice overrides the
|
|
373
378
|
persisted session default.
|
|
374
379
|
|
|
@@ -390,27 +395,27 @@ every given label, and `useProjectSessions(projectId, { labels })` does the same
|
|
|
390
395
|
React. Each label is 1–64 characters, at most 20 per session; one metadata write is at
|
|
391
396
|
most 16,384 characters of JSON. Example: `examples/12-session-labels.ts`.
|
|
392
397
|
|
|
393
|
-
###
|
|
398
|
+
### Who wrote each message
|
|
394
399
|
|
|
395
|
-
With the project flag `human_messaging` on, `createProjectSession(projectId, { participants, initial_prompt })`
|
|
396
|
-
opens a conversation with project members (1–20 emails; `initial_prompt` is required). The prompt posts
|
|
397
|
-
from the caller with no agent turn; the agent runs when a participant replies.
|
|
398
|
-
`listProjectSessions(projectId, { participant: 'me' })` lists the conversations you were asked into.
|
|
399
400
|
`kortix.session(projectId, sessionId).messageAuthors()` (or `getSessionMessageAuthors`) returns
|
|
400
401
|
`{ authors, initial_author }`: `authors` maps a runtime message id to a `SessionMessageAuthor`,
|
|
401
|
-
`{ kind: 'member', user_id, name, email }` or `{ kind: 'session', session_id, name }`.
|
|
402
|
+
`{ kind: 'member', user_id, name, email, avatar_url }` or `{ kind: 'session', session_id, name, agent? }`.
|
|
402
403
|
In React, `useSessionMessageAuthors(projectId, sessionId, messageCount)` reads the same data.
|
|
403
|
-
Authorship works without the flag. See `apps/web/content/docs/connect/messaging.mdx`.
|
|
404
404
|
|
|
405
405
|
### React runtime
|
|
406
406
|
|
|
407
|
-
`useSession(projectId, sessionId)` opens the
|
|
408
|
-
`POST /start`. The
|
|
409
|
-
|
|
407
|
+
`useSession(projectId, sessionId)` opens the session runtime returned by
|
|
408
|
+
`POST /start`. The runtime is OpenCode or pi; the hook reads the same routes,
|
|
409
|
+
transcript and events from both. The hook owns messages, rewind and restore,
|
|
410
|
+
cancellation, commands, permissions, and questions. Hosts do not construct
|
|
411
|
+
runtime routes. A feature one harness lacks is a capability: gate its control
|
|
412
|
+
with `runtimeSupports(health?.capabilities, 'session.rewind')`. pi lists
|
|
413
|
+
`session.subagents` only, so rewind, compaction, slash commands, the todo list
|
|
414
|
+
and the runtime config document stay hidden or empty on a pi session.
|
|
410
415
|
|
|
411
416
|
Every session saves its transcript at the end of each turn. `useSession` reads saved
|
|
412
417
|
messages from the platform database while `/start` continues. It uses the
|
|
413
|
-
server-validated
|
|
418
|
+
server-validated runtime session id and lets the live read reconcile the saved messages by ID.
|
|
414
419
|
Missing or rejected history falls back to the existing runtime path.
|
|
415
420
|
|
|
416
421
|
`useSession().savedTranscript` says whether that saved conversation can show before the
|
|
@@ -428,20 +433,21 @@ the paged session list. Both are per user and bounded; clear both on sign-out. S
|
|
|
428
433
|
states have one set of words for every host: `sessionListStatus`, `SESSION_LIST_STATUS`,
|
|
429
434
|
`sessionConnectionLabel`, `SESSION_NOTICE`, and `turnRetryLabel`.
|
|
430
435
|
|
|
431
|
-
A server-rendered host can seed a known
|
|
436
|
+
A server-rendered host can seed a known runtime session pin while `/start` runs:
|
|
432
437
|
|
|
433
438
|
```tsx
|
|
434
439
|
useSession(projectId, sessionId, {
|
|
435
|
-
|
|
440
|
+
initialRuntimeSessionId: persistedSession.runtime_session_id ?? persistedSession.opencode_session_id,
|
|
436
441
|
});
|
|
437
442
|
```
|
|
438
443
|
|
|
439
444
|
Use only a pin that the host authorized for the same `(projectId, sessionId)`.
|
|
440
445
|
The seed hydrates cached content. It does not choose the runtime identity.
|
|
441
446
|
The pin returned by `/start` always replaces a stale seed. The SDK also scopes
|
|
442
|
-
|
|
447
|
+
runtime query and synchronization controllers to the sandbox runtime. Two
|
|
443
448
|
sandboxes cannot share browser cache state when a snapshot exposes the same
|
|
444
|
-
|
|
449
|
+
runtime session id during adoption. `opencode_session_id` is the older name
|
|
450
|
+
of `runtime_session_id`; read it only as the fallback above.
|
|
445
451
|
|
|
446
452
|
After a project replaces its repository, a session created before the
|
|
447
453
|
replacement still starts. It runs the project's CURRENT config release and
|
|
@@ -479,8 +485,8 @@ exhaustive — see `API-MAP.md` for the full per-domain surface:
|
|
|
479
485
|
| `kortix.validateToken()` | pasted-API-key validation helper — `GET /accounts/me`, never throws, resolves `{valid, identity?, error?}` |
|
|
480
486
|
| `kortix.connectors` | Connector data plane for an agent-minted session token: `catalog` · `tools` · `search` · `describe` · `call` (`{ account }`) · `accounts` · `uploadAttachment` |
|
|
481
487
|
| `kortix.project(id)` | id-bound handle: `.apps` (stable serverless App URLs, access, artifacts, deployments, logs, rollback, start/stop) · `.secrets` · `.access` · `.connectors` (data plane + configuration + Connections) · `.policies` · `.triggers` · `.files` · `.git` · `.changeRequests` (incl. `requestChanges`) · `.sessions` · `.tokens` (project-scoped CLI PATs — the `KORTIX_TOKEN` shape) · `.marketplace` / `.registry` (install/update/remove catalog items) · `.setupLinks.{requestSecret,requestConnector}` (agent-minted secret-entry / connector links) · `.validateManifest` · `.gitToken` · `.setDefaultAgent(name)` · `.session(sid)` (+ more namespaces: `.review`, `.approvals`, `.gateway` (incl. `.routing` and `.playground`), `.channels`, `.modelDefaults`, `.sandbox`) |
|
|
482
|
-
| `kortix.session(pid, sid)` | id-bound handle: lifecycle (`get`/`update`/`delete`/`start`/`restart`/`stop`/`reloadConfig`/`reloadConfigStream`/`setSharing`/`previews`/`commit`/`publicShares`/`ensureReady`) · `providerSecretPool.{list,get,set}` · finalized `cost()` · `send`/`abort`/`rewind`/`restoreRewind`/`setModel`/`setAgent` · `transcript()` · `.files` · runtime URL helpers (`health`/`previewUrl`/`proxyUrl`) ·
|
|
483
|
-
| `kortix.runtime()` | the
|
|
488
|
+
| `kortix.session(pid, sid)` | id-bound handle: lifecycle (`get`/`update`/`delete`/`start`/`restart`/`stop`/`reloadConfig`/`reloadConfigStream`/`setSharing`/`participants`/`previews`/`commit`/`publicShares`/`ensureReady`) · `providerSecretPool.{list,get,set}` · finalized `cost()` · `send`/`abort`/`rewind`/`restoreRewind`/`setModel`/`setAgent` · `transcript()` · `.files` · runtime URL helpers (`health`/`previewUrl`/`proxyUrl`) · runtime REST escape hatches: `stream()` and the deprecated `.runtime` |
|
|
489
|
+
| `kortix.runtime()` | the runtime REST client for the active sandbox (the SDK's own `RuntimeClient`, frozen at the `@opencode-ai/sdk` 1.18.23 route shapes); use a session-scoped handle in multi-tenant code |
|
|
484
490
|
|
|
485
491
|
Runnable, self-contained scripts for the highest-value flows live in
|
|
486
492
|
[`examples/`](./examples): list projects with a PAT, send + stream, the
|
|
@@ -557,7 +563,7 @@ restart. Credentials are encrypted server-side and are never returned, placed
|
|
|
557
563
|
in `KORTIX_SESSION_CONTEXT`, or injected into the sandbox environment. Raw env
|
|
558
564
|
and MCP configuration are not session-create inputs.
|
|
559
565
|
|
|
560
|
-
|
|
566
|
+
`session.stream()` is a thin facade over the
|
|
561
567
|
framework-free `openEventStream`
|
|
562
568
|
primitive (also exported directly, for hosts that want to manage the client
|
|
563
569
|
themselves): it resolves THIS handle's own runtime (`ensureReady()`), connects
|
|
@@ -574,7 +580,14 @@ const handle = await kortix.session(pid, sid).stream({
|
|
|
574
580
|
handle.close();
|
|
575
581
|
```
|
|
576
582
|
|
|
577
|
-
`session.stream()` emits
|
|
583
|
+
`session.stream()` emits the runtime's events (`message.updated`,
|
|
584
|
+
`message.part.updated`, `session.status`, `permission.*`, `question.*`, …),
|
|
585
|
+
the same from OpenCode and pi. Use `useSession()` in React.
|
|
586
|
+
|
|
587
|
+
Events arrive in batches, 16 ms apart. Consecutive `message.part.delta` events
|
|
588
|
+
for one part field in a batch arrive as one event: `properties.delta` is their
|
|
589
|
+
text joined in order, `id` is the last event's id, and `coalesced` lists the
|
|
590
|
+
events it replaced.
|
|
578
591
|
|
|
579
592
|
`@kortix/sdk/react`'s `useRuntimeEventStream` uses the exact same primitive
|
|
580
593
|
under the hood — it just also writes into the React Query cache.
|
|
@@ -635,7 +648,8 @@ mode — see its README.
|
|
|
635
648
|
|
|
636
649
|
Everything needed to render an agent transcript without adopting any Kortix
|
|
637
650
|
UI: `classifyPart`/`classifyTurn` (framework-free, from the root entry)
|
|
638
|
-
normalize all twelve
|
|
651
|
+
normalize all twelve part types of the Kortix transcript format
|
|
652
|
+
(`kortix.transcript.v1`; both harnesses emit it) (text, reasoning, tool, file,
|
|
639
653
|
subtask, patch, snapshot, agent, retry, compaction, step, + a forward-compat
|
|
640
654
|
`unknown`) into a typed `ClassifiedPart`, and normalize a failed assistant
|
|
641
655
|
turn's `info.error` into a `{ name, message }` `TurnError` — so "assistant
|
|
@@ -699,7 +713,8 @@ the root import — offers the same agents and models and sends the same pick.
|
|
|
699
713
|
| `composerSelectableAgents(agents, { enableProjects?, includeSubagents? })` | roster → picker list (no hidden agents, no subagents, `project-manager` only with `enableProjects`) |
|
|
700
714
|
| `resolveComposerAgent({ agents, boundAgent, defaultAgent, selectedAgent })` | → the agent to send, and `disabled` when none is accessible |
|
|
701
715
|
| `pickerProviderList({ gatewayEnabled, modelPicker, runtimeProviders, llmCatalogProviders, secretNames })` | raw sources → provider list |
|
|
702
|
-
| `flattenModels(providers, { providerMode })` | provider list → `
|
|
716
|
+
| `flattenModels(providers, { providerMode })` | provider list → `ModelOption[]` (a `FlatModel` plus `id`, the ref a pick stores) |
|
|
717
|
+
| `modelRefToKey(ref, gatewayEnabled)` | a stored ref (session pin, channel binding, trigger, agent `model`) → `ModelKey`; `kortix/x` and `x` are one gateway model |
|
|
703
718
|
| `createModelVisibility({ catalogModels, pins?, connectedProviderIds?, freeTier? })` | → default-visibility predicate |
|
|
704
719
|
| `modelInDefaultView(model, { search, isStoreVisible, selected })` | → whether the empty-search picker shows the model |
|
|
705
720
|
| `resolveModelDefault(modelDefaults, agentName)` | `/model-defaults` → agent → project → account → platform default |
|
|
@@ -712,7 +727,7 @@ tree-shake (Metro) stays small.
|
|
|
712
727
|
## Errors
|
|
713
728
|
|
|
714
729
|
One typed hierarchy, produced by **every** HTTP layer — `backendApi`, the
|
|
715
|
-
`authenticatedFetch`, the files client, the
|
|
730
|
+
`authenticatedFetch`, the files client, the runtime REST client, and
|
|
716
731
|
`ensureReady()` all throw/return the same classes (from
|
|
717
732
|
the root barrel; `@kortix/sdk/react` re-exports them too). They're real classes: `instanceof` works across every host, and
|
|
718
733
|
`name`/shape are preserved for legacy `error.name === 'ApiError'` sniffers.
|
|
@@ -765,7 +780,7 @@ LLM session retries can carry the gateway's structured failure chain. Use
|
|
|
765
780
|
`provider`, gateway `code`, `requestId`, and ordered `attemptFailures`. Each
|
|
766
781
|
failure identifies the provider, route model, resolved model, stage, upstream
|
|
767
782
|
status when available, concrete code, and bounded message. Plain legacy retry
|
|
768
|
-
messages remain supported and return `details: undefined`. When
|
|
783
|
+
messages remain supported and return `details: undefined`. When the runtime keeps
|
|
769
784
|
only the HTTP error message, `getRetryMessage(status)` still returns the full
|
|
770
785
|
gateway composite. That message includes the request ID and each candidate's
|
|
771
786
|
provider, resolved model, HTTP status, code, and bounded message.
|
|
@@ -779,7 +794,7 @@ That is the whole map — learn it once.
|
|
|
779
794
|
|
|
780
795
|
| import | when you use it | why it is separate |
|
|
781
796
|
| --- | --- | --- |
|
|
782
|
-
| `@kortix/sdk` | **almost always.** `createKortix`, `configureKortix`, the REST surface, `files`, session URLs + health (`runtimeSupports` reads a runtime's `capabilities`), `classifyPart`/`classifyTurn`/`toolViewModel`, `openEventStream`, `narrowChatEvent`, the message queue, the error classes, and every domain type | — |
|
|
797
|
+
| `@kortix/sdk` | **almost always.** `createKortix`, `configureKortix`, the REST surface, `files`, session URLs + health (`runtimeSupports` reads a runtime's `capabilities`), `classifyPart`/`classifyTurn`/`toolViewModel`/`toToolView`/`toolKind`, `openEventStream`, `narrowChatEvent`, the message queue, the error classes, and every domain type | — |
|
|
783
798
|
| `@kortix/sdk/react` | hooks and providers: `useSession`, every `useRuntime*` (each pre-W4 `useOpenCode*` name is a deprecated alias), `useChatTurns`/`renderParts`, the domain hooks | `react` is an **optional peer dependency**. Putting these at the root would force React on a CLI, a worker, or a React Native host |
|
|
784
799
|
| `@kortix/sdk/server` | `runWithKortix`, `createScopedKortix`, `getScopedConfig` — per-request config isolation in a Node/Bun backend | imports `node:async_hooks`. Never let it into a browser bundle |
|
|
785
800
|
| `@kortix/sdk/wire-message-id` | `mintWireMessageId`, `mintWireMessageIdAbove`, `newestWireIdClock`, `wireIdClock`, `wireIdClockDelta`, `maxWireIdClock`, `isWireIdAheadOf` — the OpenCode wire message-id clock | not a dependency split: the root exports the same names. A server that mints ids loads this one import-free module instead of the whole barrel |
|
|
@@ -820,6 +835,7 @@ interface KortixPlatformConfig {
|
|
|
820
835
|
getToken: () => Promise<string | null>;
|
|
821
836
|
/** @deprecated Inert: the SDK sends no client label. */
|
|
822
837
|
clientSource?: 'api' | 'cli' | 'mobile' | 'tui' | 'web';
|
|
838
|
+
clientVersion?: string; // '<surface>/<version>', sent as X-Kortix-Client-Version
|
|
823
839
|
getUserId?: () => Promise<string | null>;
|
|
824
840
|
billingEnabled?: boolean;
|
|
825
841
|
sandboxId?: string | null;
|
|
@@ -835,6 +851,12 @@ authenticated (`credential_kind`: browser session, personal access token,
|
|
|
835
851
|
connected app, agent session, API key, service account), never a label the
|
|
836
852
|
client reports about itself.
|
|
837
853
|
|
|
854
|
+
Set `clientVersion` to the host's surface and release version, for example
|
|
855
|
+
`cli/0.13.42`. The SDK sends it as `X-Kortix-Client-Version` on every request.
|
|
856
|
+
The API writes it to its request log only, so a route is retired only when no
|
|
857
|
+
supported client version still calls it. It is telemetry: it never reaches the
|
|
858
|
+
audit log and grants nothing. A blank value sends nothing.
|
|
859
|
+
|
|
838
860
|
The SDK is host-agnostic: no Next.js / web coupling in the core. The host injects
|
|
839
861
|
its token getter and toast/notify sinks; the SDK does the rest. Today that's proven
|
|
840
862
|
in React DOM (`apps/web` and the `apps/whitelabel-demo` reference app are the
|
|
@@ -843,16 +865,17 @@ The framework-free core — turn classification, session URLs and health, the
|
|
|
843
865
|
REST clients, file operations, transcript formatting — has no React or DOM
|
|
844
866
|
dependency and is usable from any JS host, all of it from the root entry;
|
|
845
867
|
`apps/mobile` imports `classifyTurn` from `@kortix/sdk` this way.
|
|
846
|
-
React Native
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
868
|
+
`apps/mobile` (React Native) also runs `useSession` from `@kortix/sdk/react`.
|
|
869
|
+
Its only platform code for the session runtime is the event transport
|
|
870
|
+
(`eventStreamTransport`, `react-native-sse`) and the lifecycle signals
|
|
871
|
+
(`notifyHostSignal` from `AppState` and its network listener).
|
|
850
872
|
|
|
851
873
|
## Rules of the road
|
|
852
874
|
|
|
853
|
-
- **No
|
|
854
|
-
`@kortix/sdk
|
|
855
|
-
(
|
|
875
|
+
- **No harness SDK in host code.** Import transcript and runtime types from
|
|
876
|
+
`@kortix/sdk`, and reach the runtime through the session verbs. `session.runtime`
|
|
877
|
+
(the raw REST compatibility client) is deprecated.
|
|
878
|
+
(Holds today — no host imports `@opencode-ai/sdk`, and neither does the SDK.)
|
|
856
879
|
- **No raw `backendApi` / `authenticatedFetch` in host code.** Use the facade or a
|
|
857
880
|
subpath module. (Aspirational: apps/web still calls `backendApi` via its
|
|
858
881
|
`@/lib/api-client` re-export in ~30 files and keeps a parallel
|
|
@@ -934,7 +957,7 @@ pnpm --filter @kortix/sdk test # facade, files, react hooks, turns, transcript
|
|
|
934
957
|
```
|
|
935
958
|
|
|
936
959
|
See **`API-MAP.md`** for the complete endpoint catalogue. It covers the Kortix
|
|
937
|
-
REST API and
|
|
960
|
+
REST API and the session runtime's REST routes. See **`CHANGELOG.md`** for
|
|
938
961
|
per-release changes.
|
|
939
962
|
|
|
940
963
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* cache could not guarantee (it also held optimistic stubs that never existed
|
|
31
31
|
* on the runtime).
|
|
32
32
|
*/
|
|
33
|
-
import type { Message, Part } from "
|
|
33
|
+
import type { Message, Part } from "../../core/runtime/runtime-types.js";
|
|
34
34
|
import { type SessionTranscriptSyncEnvelope } from "../../core/rest/projects-client/sessions.js";
|
|
35
35
|
import type { SavedCopyStore } from "../../core/session-sync/saved-copy-store.js";
|
|
36
36
|
/** How many mirrored messages a first paint asks for. Matches the sync
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-transcript-mirror.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"server-transcript-mirror.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACN,KAAK,6BAA6B,EAElC,MAAM,0CAA0C,CAAC;AAMlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E;;6BAE6B;AAC7B,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAC/C,oDAAoD;IACpD,gBAAgB,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,WAAW,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAgB7E;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACvC,QAAQ,EAAE,6BAA6B,GACrC,KAAK,CAAC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CAczC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,MAAM,GAAG,SAAS,GACvB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAQjD;AAED;;;;GAIG;AACH,wBAAsB,2BAA2B,CAAC,KAAK,EAAE;IACxD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAyChD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC7D,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAahD;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD;;;GAGG;AACH,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,cAAc,EACrB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CASf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Message, Part, SessionStatus } from '
|
|
1
|
+
import type { Message, Part, SessionStatus } from '../../core/runtime/runtime-types.js';
|
|
2
2
|
import { SessionSyncController, type SessionSyncPage, type SessionSyncReason } from '../../core/session-sync/session-sync-controller.js';
|
|
3
3
|
interface MessagesResponse {
|
|
4
4
|
data?: Array<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-sync-registry.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/session-sync-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"session-sync-registry.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/session-sync-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIrF,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAGvB,MAAM,iDAAiD,CAAC;AAIzD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,UAAU,oBAAoB;IAC5B,OAAO,EAAE;QACP,QAAQ,EAAE,CACR,OAAO,EAAE;YACP,SAAS,EAAE,MAAM,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EACD,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,KAC/B,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;SAAE,CAAC,CAAC;KAClE,CAAC;CACH;AAED,eAAO,MAAM,8BAA8B,eAAoC,CAAC;AAChF,KAAK,qBAAqB,GAAG,MAAM,GAAG,OAAO,8BAA8B,CAAC;AA0G5E,wBAAsB,sBAAsB,CAC1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,SAAS,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,GACxB,IAAI,CAMN"}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run something when the tab comes back to the foreground.
|
|
3
|
-
*
|
|
4
|
-
* A backgrounded tab is throttled, not paused and not told: browsers clamp its
|
|
5
|
-
* timers (Chrome to roughly one tick a minute), so the transcript liveness
|
|
6
|
-
* poll — 10s while a session is working — effectively stops, and the SSE
|
|
7
|
-
* connection can be dropped without a visible error. Return is therefore the
|
|
8
|
-
* moment the tab is LEAST sure it has the runtime's messages, and the only
|
|
9
|
-
* moment it can find out cheaply.
|
|
10
|
-
*
|
|
11
|
-
* Framework-free and injectable so the rule is testable without a DOM.
|
|
12
|
-
*/
|
|
13
1
|
export interface VisibilityTarget {
|
|
14
2
|
visibilityState: string;
|
|
15
3
|
addEventListener: (type: 'visibilitychange', handler: () => void) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/visibility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/visibility.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAC1E,mBAAmB,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CAC9E;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,IAAI,EACf,MAAM,GAAE,gBAAgB,GAAG,SAEkB,GAC5C,MAAM,IAAI,CAiBZ"}
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run something when the tab comes back to the foreground.
|
|
3
|
+
*
|
|
4
|
+
* A backgrounded tab is throttled, not paused and not told: browsers clamp its
|
|
5
|
+
* timers (Chrome to roughly one tick a minute), so the transcript liveness
|
|
6
|
+
* poll — 10s while a session is working — effectively stops, and the SSE
|
|
7
|
+
* connection can be dropped without a visible error. Return is therefore the
|
|
8
|
+
* moment the tab is LEAST sure it has the runtime's messages, and the only
|
|
9
|
+
* moment it can find out cheaply.
|
|
10
|
+
*
|
|
11
|
+
* Framework-free and injectable so the rule is testable without a DOM.
|
|
12
|
+
*/
|
|
13
|
+
import { onHostSignal } from '../../core/session/host-signals.js';
|
|
1
14
|
export function onTabVisible(run, target = typeof document === 'undefined'
|
|
2
15
|
? undefined
|
|
3
16
|
: document) {
|
|
17
|
+
// A host without a document (React Native) reports the return itself.
|
|
18
|
+
const stopHost = onHostSignal((signal) => {
|
|
19
|
+
if (signal === 'visible')
|
|
20
|
+
run();
|
|
21
|
+
});
|
|
4
22
|
if (!target)
|
|
5
|
-
return
|
|
23
|
+
return stopHost;
|
|
6
24
|
const handler = () => {
|
|
7
25
|
// Only the transition INTO visible. `visibilitychange` fires on the way out
|
|
8
26
|
// too, and reading a tail the moment a tab is hidden repairs nothing.
|
|
@@ -11,6 +29,9 @@ export function onTabVisible(run, target = typeof document === 'undefined'
|
|
|
11
29
|
run();
|
|
12
30
|
};
|
|
13
31
|
target.addEventListener('visibilitychange', handler);
|
|
14
|
-
return () =>
|
|
32
|
+
return () => {
|
|
33
|
+
stopHost();
|
|
34
|
+
target.removeEventListener('visibilitychange', handler);
|
|
35
|
+
};
|
|
15
36
|
}
|
|
16
37
|
//# sourceMappingURL=visibility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibility.js","sourceRoot":"","sources":["../../../src/browser/session-sync/visibility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"visibility.js","sourceRoot":"","sources":["../../../src/browser/session-sync/visibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAQ/D,MAAM,UAAU,YAAY,CAC1B,GAAe,EACf,SAAuC,OAAO,QAAQ,KAAK,WAAW;IACpE,CAAC,CAAC,SAAS;IACX,CAAC,CAAE,QAAwC;IAE7C,sEAAsE;IACtE,MAAM,QAAQ,GAAG,YAAY,CAAC,CAAC,MAAM,EAAE,EAAE;QACvC,IAAI,MAAM,KAAK,SAAS;YAAE,GAAG,EAAE,CAAC;IAClC,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,MAAM;QAAE,OAAO,QAAQ,CAAC;IAC7B,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,4EAA4E;QAC5E,sEAAsE;QACtE,IAAI,MAAM,CAAC,eAAe,KAAK,SAAS;YAAE,OAAO;QACjD,GAAG,EAAE,CAAC;IACR,CAAC,CAAC;IACF,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACrD,OAAO,GAAG,EAAE;QACV,QAAQ,EAAE,CAAC;QACX,MAAM,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PermissionRequest, QuestionRequest } from '
|
|
1
|
+
import type { PermissionRequest, QuestionRequest } from '../../core/runtime/runtime-types.js';
|
|
2
2
|
interface OpenCodePendingState {
|
|
3
3
|
permissions: Record<string, PermissionRequest>;
|
|
4
4
|
questions: Record<string, QuestionRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode-pending-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/opencode-pending-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"opencode-pending-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/opencode-pending-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAe3F,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAK3C,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAMhC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAE7C,aAAa,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,KAAK,EAAE,MAAM,IAAI,CAAC;IAGlB,sBAAsB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IACtD,oBAAoB,EAAE,MAAM,MAAM,CAAC;CACpC;AAED,eAAO,MAAM,sBAAsB,mFA4EhC,CAAC;AAGJ,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,mFAAyB,CAAC"}
|
|
@@ -59,6 +59,14 @@ interface SandboxConnectionStore {
|
|
|
59
59
|
export declare const useSandboxConnectionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SandboxConnectionStore>>;
|
|
60
60
|
/** Record the health probe's `capabilities`; an unchanged list keeps the same array. */
|
|
61
61
|
export declare function setRuntimeCapabilities(capabilities: readonly string[] | null): void;
|
|
62
|
+
/**
|
|
63
|
+
* `/start` answered `ready`: the API reached the daemon, so the runtime is
|
|
64
|
+
* proven healthy server-side. Claim it, seed connected + healthy, and record
|
|
65
|
+
* what it serves when the answer lists it (`SessionStartResult.capabilities`).
|
|
66
|
+
* Without the list the capabilities stay unknown until the health probe
|
|
67
|
+
* answers, and every capability is assumed until then.
|
|
68
|
+
*/
|
|
69
|
+
export declare function seedConnectionFromReadyStart(serverUrl: string, capabilities?: readonly string[] | null): void;
|
|
62
70
|
export declare function requestRuntimeReconnect(): void;
|
|
63
71
|
/** Only updates status if it actually changed. */
|
|
64
72
|
export declare function setSandboxStatus(next: SandboxConnectionStatus): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-connection-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/sandbox-connection-store.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,uBAAuB,GAChC,YAAY,GACZ,WAAW,GACX,aAAa,CAAC;AAEjB,UAAU,sBAAsB;IAC/B,MAAM,EAAE,uBAAuB,CAAC;IAChC,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,YAAY,EAAE,OAAO,CAAC;IACtB,gEAAgE;IAChE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iFAAiF;IACjF,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kEAAkE;IAClE,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,kDAAkD;IAClD,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,mEAAmE;IACnE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,mBAAmB,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;;;;;;;;;;OAWG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;;;;;;OASG;IACH,MAAM,EAAE,OAAO,CAAC;CAChB;AAkDD,eAAO,MAAM,yBAAyB,qFAenC,CAAC;AAEJ,wFAAwF;AACxF,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,QAS5E;AAED,wBAAgB,uBAAuB,SAWtC;AAID,kDAAkD;AAClD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,uBAAuB,QAoC7D;AAED,wBAAgB,oBAAoB,SAGnC;AAED,wBAAgB,oBAAoB,SAUnC;AAED,wBAAgB,gBAAgB,SAI/B;AAaD,wBAAgB,oBAAoB,CAAC,SAAS,CAAC,EAAE,MAAM,QAkEtD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,GAAE,MAAmB,QAI1D;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,SAMvC;AAED,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,EAC5B,OAAO,CAAC,EAAE;IACT;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,QAiCD;AAGD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,yBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"sandbox-connection-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/sandbox-connection-store.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,uBAAuB,GAChC,YAAY,GACZ,WAAW,GACX,aAAa,CAAC;AAEjB,UAAU,sBAAsB;IAC/B,MAAM,EAAE,uBAAuB,CAAC;IAChC,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,YAAY,EAAE,OAAO,CAAC;IACtB,gEAAgE;IAChE,iB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,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,EAC5B,OAAO,CAAC,EAAE;IACT;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,QAiCD;AAGD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,yBAAmB,CAAC"}
|
|
@@ -75,6 +75,20 @@ export function setRuntimeCapabilities(capabilities) {
|
|
|
75
75
|
if (!same)
|
|
76
76
|
useSandboxConnectionStore.setState({ runtimeCapabilities: capabilities });
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* `/start` answered `ready`: the API reached the daemon, so the runtime is
|
|
80
|
+
* proven healthy server-side. Claim it, seed connected + healthy, and record
|
|
81
|
+
* what it serves when the answer lists it (`SessionStartResult.capabilities`).
|
|
82
|
+
* Without the list the capabilities stay unknown until the health probe
|
|
83
|
+
* answers, and every capability is assumed until then.
|
|
84
|
+
*/
|
|
85
|
+
export function seedConnectionFromReadyStart(serverUrl, capabilities) {
|
|
86
|
+
resetForServerSwitch(serverUrl);
|
|
87
|
+
setSandboxStatus("connected");
|
|
88
|
+
setRuntimeHealth(true);
|
|
89
|
+
if (capabilities)
|
|
90
|
+
setRuntimeCapabilities(capabilities);
|
|
91
|
+
}
|
|
78
92
|
export function requestRuntimeReconnect() {
|
|
79
93
|
useSandboxConnectionStore.setState((state) => ({
|
|
80
94
|
// A manual retry is a fresh look: whatever we concluded about the box
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-connection-store.js","sourceRoot":"","sources":["../../../src/browser/stores/sandbox-connection-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiEhD,sEAAsE;AACtE,6EAA6E;AAC7E,0EAA0E;AAC1E,gFAAgF;AAChF,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,gFAAgF;AAChF,gFAA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AC,YAAY,KAAK,gBAAgB,EAAE,CAAC;QAC3E,OAAO,CAAC,YAAY,GAAG,gBAAgB,CAAC;IACzC,CAAC;SAAM,IAAI,OAAO,IAAI,KAAK,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;QACnD,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7B,CAAC;IACD,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,oEAAoE;IACpE,EAAE;IACF,2EAA2E;IAC3E,4EAA4E;IAC5E,IAAI,OAAO,IAAI,OAAO,EAAE,MAAM,EAAE,CAAC;QAChC,IAAI,KAAK,CAAC,cAAc,KAAK,IAAI;YAAE,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAClE,CAAC;SAAM,IAAI,KAAK,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;QAC1C,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACrC,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrC,yBAAyB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;AACF,CAAC;AAED,0EAA0E;AAC1E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"sandbox-connection-store.js","sourceRoot":"","sources":["../../../src/browser/stores/sandbox-connection-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiEhD,sEAAsE;AACtE,6EAA6E;AAC7E,0EAA0E;AAC1E,gFAAgF;AAChF,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,gFAAgF;AAChF,gFAAgF;AAChF,8EAA8E;AAC9E,kFAAkF;AAClF,kFAAkF;AAClF,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AAK,CAAC,eAAe,KAAK,OAAO;QAAE,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC;IAClG,MAAM,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;IACvD,IAAI,YAAY,KAAK,SAAS,IAAI,KAAK,CAAC,YAAY,KAAK,gBAAgB,EAAE,CAAC;QAC3E,OAAO,CAAC,YAAY,GAAG,gBAAgB,CAAC;IACzC,CAAC;SAAM,IAAI,OAAO,IAAI,KAAK,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;QACnD,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7B,CAAC;IACD,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,oEAAoE;IACpE,EAAE;IACF,2EAA2E;IAC3E,4EAA4E;IAC5E,IAAI,OAAO,IAAI,OAAO,EAAE,MAAM,EAAE,CAAC;QAChC,IAAI,KAAK,CAAC,cAAc,KAAK,IAAI;YAAE,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAClE,CAAC;SAAM,IAAI,KAAK,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;QAC1C,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACrC,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrC,yBAAyB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;AACF,CAAC;AAED,0EAA0E;AAC1E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Part } from "
|
|
1
|
+
import type { Part } from "../../../core/runtime/runtime-types.js";
|
|
2
2
|
/** Reconcile a transcript page's parts without changing the caller's message ordering. */
|
|
3
3
|
export declare function reconcileHydratedParts(msgs: Array<{
|
|
4
4
|
info: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile-parts.d.ts","sourceRoot":"","sources":["../../../../src/browser/stores/sync-store/reconcile-parts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"reconcile-parts.d.ts","sourceRoot":"","sources":["../../../../src/browser/stores/sync-store/reconcile-parts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAQhE,0FAA0F;AAC1F,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,EACpD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,EAC7B,QAAQ,EAAE;IACT,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACnC,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CACvC,GACC,IAAI,CAgDN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssistantMessage, Message, Part, SnapshotFileDiff } from "
|
|
1
|
+
import type { AssistantMessage, Message, Part, SnapshotFileDiff } from "../../../core/runtime/runtime-types.js";
|
|
2
2
|
import type { AbortReason } from "../../../core/http/abort-error.js";
|
|
3
3
|
export type { SessionRewindState } from "../../../core/session/rewind.js";
|
|
4
4
|
export type FileDiff = Omit<SnapshotFileDiff, "patch"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/browser/stores/sync-store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,gBAAgB,EAChB,OAAO,EACP,IAAI,EACJ,gBAAgB,EAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/browser/stores/sync-store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,gBAAgB,EAChB,OAAO,EACP,IAAI,EACJ,gBAAgB,EAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAIvE,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC;CAChD;AAED;;0BAE0B;AAC1B,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,mBAAmB,CAAC;AAMxF,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;CACd"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Message, Event as RuntimeEvent, Part, SessionStatus, Todo } from "
|
|
1
|
+
import type { Message, Event as RuntimeEvent, Part, SessionStatus, Todo } from "../../core/runtime/runtime-types.js";
|
|
2
2
|
import { ascendingId } from "./sync-store/ascending-id.js";
|
|
3
3
|
import { Binary } from "./sync-store/binary.js";
|
|
4
4
|
import type { FileDiff, MessageError, MessageWithParts, SessionRewindState } from "./sync-store/types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/sync-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,OAAO,EACP,KAAK,IAAI,YAAY,EACrB,IAAI,EAEJ,aAAa,EAEb,IAAI,EACJ,MAAM,
|
|
1
|
+
{"version":3,"file":"sync-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/sync-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,OAAO,EACP,KAAK,IAAI,YAAY,EACrB,IAAI,EAEJ,aAAa,EAEb,IAAI,EACJ,MAAM,kCAAkC,CAAC;AAS1C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,OAAO,KAAK,EACX,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAChC,CAAC,EAAE,aAAa,GAAG,SAAS,EAC5B,CAAC,EAAE,aAAa,GAAG,SAAS,GAC1B,OAAO,CAMT;AAmHD;;;;;;;;;GASG;AAMH,UAAU,SAAS;IAElB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC7C;;;;;;;;;;;OAWG;IACH,mBAAmB,EAAE,MAAM,CAAC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