@kortix/sdk 0.9.98
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 +313 -0
- package/dist/files/client.d.ts +96 -0
- package/dist/files/client.d.ts.map +1 -0
- package/dist/files/client.js +346 -0
- package/dist/files/client.js.map +1 -0
- package/dist/files/types.d.ts +82 -0
- package/dist/files/types.d.ts.map +1 -0
- package/dist/files/types.js +6 -0
- package/dist/files/types.js.map +1 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +93 -0
- package/dist/index.js.map +1 -0
- package/dist/kortix.d.ts +897 -0
- package/dist/kortix.d.ts.map +1 -0
- package/dist/kortix.js +772 -0
- package/dist/kortix.js.map +1 -0
- package/dist/opencode/client.d.ts +89 -0
- package/dist/opencode/client.d.ts.map +1 -0
- package/dist/opencode/client.js +191 -0
- package/dist/opencode/client.js.map +1 -0
- package/dist/opencode/env.d.ts +13 -0
- package/dist/opencode/env.d.ts.map +1 -0
- package/dist/opencode/env.js +63 -0
- package/dist/opencode/env.js.map +1 -0
- package/dist/opencode/kortix-master.d.ts +487 -0
- package/dist/opencode/kortix-master.d.ts.map +1 -0
- package/dist/opencode/kortix-master.js +313 -0
- package/dist/opencode/kortix-master.js.map +1 -0
- package/dist/opencode/triggers.d.ts +6 -0
- package/dist/opencode/triggers.d.ts.map +1 -0
- package/dist/opencode/triggers.js +34 -0
- package/dist/opencode/triggers.js.map +1 -0
- package/dist/platform/api/errors.d.ts +106 -0
- package/dist/platform/api/errors.d.ts.map +1 -0
- package/dist/platform/api/errors.js +137 -0
- package/dist/platform/api/errors.js.map +1 -0
- package/dist/platform/api-client.d.ts +35 -0
- package/dist/platform/api-client.d.ts.map +1 -0
- package/dist/platform/api-client.js +279 -0
- package/dist/platform/api-client.js.map +1 -0
- package/dist/platform/auth-core.d.ts +60 -0
- package/dist/platform/auth-core.d.ts.map +1 -0
- package/dist/platform/auth-core.js +104 -0
- package/dist/platform/auth-core.js.map +1 -0
- package/dist/platform/auth.d.ts +88 -0
- package/dist/platform/auth.d.ts.map +1 -0
- package/dist/platform/auth.js +161 -0
- package/dist/platform/auth.js.map +1 -0
- package/dist/platform/config-node.d.ts +33 -0
- package/dist/platform/config-node.d.ts.map +1 -0
- package/dist/platform/config-node.js +63 -0
- package/dist/platform/config-node.js.map +1 -0
- package/dist/platform/config.d.ts +77 -0
- package/dist/platform/config.d.ts.map +1 -0
- package/dist/platform/config.js +62 -0
- package/dist/platform/config.js.map +1 -0
- package/dist/platform/feature-flags.d.ts +25 -0
- package/dist/platform/feature-flags.d.ts.map +1 -0
- package/dist/platform/feature-flags.js +114 -0
- package/dist/platform/feature-flags.js.map +1 -0
- package/dist/platform/fresh-sessions.d.ts +4 -0
- package/dist/platform/fresh-sessions.d.ts.map +1 -0
- package/dist/platform/fresh-sessions.js +22 -0
- package/dist/platform/fresh-sessions.js.map +1 -0
- package/dist/platform/instance-routes.d.ts +17 -0
- package/dist/platform/instance-routes.d.ts.map +1 -0
- package/dist/platform/instance-routes.js +105 -0
- package/dist/platform/instance-routes.js.map +1 -0
- package/dist/platform/logger.d.ts +20 -0
- package/dist/platform/logger.d.ts.map +1 -0
- package/dist/platform/logger.js +44 -0
- package/dist/platform/logger.js.map +1 -0
- package/dist/platform/opencode-errors.d.ts +20 -0
- package/dist/platform/opencode-errors.d.ts.map +1 -0
- package/dist/platform/opencode-errors.js +71 -0
- package/dist/platform/opencode-errors.js.map +1 -0
- package/dist/platform/platform-client/backups.d.ts +22 -0
- package/dist/platform/platform-client/backups.d.ts.map +1 -0
- package/dist/platform/platform-client/backups.js +16 -0
- package/dist/platform/platform-client/backups.js.map +1 -0
- package/dist/platform/platform-client/index.d.ts +21 -0
- package/dist/platform/platform-client/index.d.ts.map +1 -0
- package/dist/platform/platform-client/index.js +21 -0
- package/dist/platform/platform-client/index.js.map +1 -0
- package/dist/platform/platform-client/instance-admin.d.ts +67 -0
- package/dist/platform/platform-client/instance-admin.d.ts.map +1 -0
- package/dist/platform/platform-client/instance-admin.js +59 -0
- package/dist/platform/platform-client/instance-admin.js.map +1 -0
- package/dist/platform/platform-client/invites.d.ts +35 -0
- package/dist/platform/platform-client/invites.d.ts.map +1 -0
- package/dist/platform/platform-client/invites.js +25 -0
- package/dist/platform/platform-client/invites.js.map +1 -0
- package/dist/platform/platform-client/lifecycle.d.ts +78 -0
- package/dist/platform/platform-client/lifecycle.d.ts.map +1 -0
- package/dist/platform/platform-client/lifecycle.js +151 -0
- package/dist/platform/platform-client/lifecycle.js.map +1 -0
- package/dist/platform/platform-client/members.d.ts +81 -0
- package/dist/platform/platform-client/members.d.ts.map +1 -0
- package/dist/platform/platform-client/members.js +59 -0
- package/dist/platform/platform-client/members.js.map +1 -0
- package/dist/platform/platform-client/shared.d.ts +44 -0
- package/dist/platform/platform-client/shared.d.ts.map +1 -0
- package/dist/platform/platform-client/shared.js +177 -0
- package/dist/platform/platform-client/shared.js.map +1 -0
- package/dist/platform/platform-client/ssh.d.ts +29 -0
- package/dist/platform/platform-client/ssh.d.ts.map +1 -0
- package/dist/platform/platform-client/ssh.js +14 -0
- package/dist/platform/platform-client/ssh.js.map +1 -0
- package/dist/platform/platform-client/types.d.ts +56 -0
- package/dist/platform/platform-client/types.d.ts.map +1 -0
- package/dist/platform/platform-client/types.js +19 -0
- package/dist/platform/platform-client/types.js.map +1 -0
- package/dist/platform/platform-client/updates.d.ts +117 -0
- package/dist/platform/platform-client/updates.d.ts.map +1 -0
- package/dist/platform/platform-client/updates.js +97 -0
- package/dist/platform/platform-client/updates.js.map +1 -0
- package/dist/platform/platform-client/urls.d.ts +18 -0
- package/dist/platform/platform-client/urls.d.ts.map +1 -0
- package/dist/platform/platform-client/urls.js +31 -0
- package/dist/platform/platform-client/urls.js.map +1 -0
- package/dist/platform/projects-client/access.d.ts +273 -0
- package/dist/platform/projects-client/access.d.ts.map +1 -0
- package/dist/platform/projects-client/access.js +89 -0
- package/dist/platform/projects-client/access.js.map +1 -0
- package/dist/platform/projects-client/accounts.d.ts +184 -0
- package/dist/platform/projects-client/accounts.d.ts.map +1 -0
- package/dist/platform/projects-client/accounts.js +78 -0
- package/dist/platform/projects-client/accounts.js.map +1 -0
- package/dist/platform/projects-client/agent-config.d.ts +58 -0
- package/dist/platform/projects-client/agent-config.d.ts.map +1 -0
- package/dist/platform/projects-client/agent-config.js +9 -0
- package/dist/platform/projects-client/agent-config.js.map +1 -0
- package/dist/platform/projects-client/agent-scope.d.ts +12 -0
- package/dist/platform/projects-client/agent-scope.d.ts.map +1 -0
- package/dist/platform/projects-client/agent-scope.js +6 -0
- package/dist/platform/projects-client/agent-scope.js.map +1 -0
- package/dist/platform/projects-client/apps.d.ts +98 -0
- package/dist/platform/projects-client/apps.d.ts.map +1 -0
- package/dist/platform/projects-client/apps.js +29 -0
- package/dist/platform/projects-client/apps.js.map +1 -0
- package/dist/platform/projects-client/audit.d.ts +85 -0
- package/dist/platform/projects-client/audit.d.ts.map +1 -0
- package/dist/platform/projects-client/audit.js +51 -0
- package/dist/platform/projects-client/audit.js.map +1 -0
- package/dist/platform/projects-client/billing.d.ts +336 -0
- package/dist/platform/projects-client/billing.d.ts.map +1 -0
- package/dist/platform/projects-client/billing.js +260 -0
- package/dist/platform/projects-client/billing.js.map +1 -0
- package/dist/platform/projects-client/change-requests.d.ts +119 -0
- package/dist/platform/projects-client/change-requests.d.ts.map +1 -0
- package/dist/platform/projects-client/change-requests.js +56 -0
- package/dist/platform/projects-client/change-requests.js.map +1 -0
- package/dist/platform/projects-client/channels.d.ts +135 -0
- package/dist/platform/projects-client/channels.d.ts.map +1 -0
- package/dist/platform/projects-client/channels.js +103 -0
- package/dist/platform/projects-client/channels.js.map +1 -0
- package/dist/platform/projects-client/connectors.d.ts +148 -0
- package/dist/platform/projects-client/connectors.d.ts.map +1 -0
- package/dist/platform/projects-client/connectors.js +66 -0
- package/dist/platform/projects-client/connectors.js.map +1 -0
- package/dist/platform/projects-client/files.d.ts +37 -0
- package/dist/platform/projects-client/files.d.ts.map +1 -0
- package/dist/platform/projects-client/files.js +58 -0
- package/dist/platform/projects-client/files.js.map +1 -0
- package/dist/platform/projects-client/gateway.d.ts +177 -0
- package/dist/platform/projects-client/gateway.d.ts.map +1 -0
- package/dist/platform/projects-client/gateway.js +59 -0
- package/dist/platform/projects-client/gateway.js.map +1 -0
- package/dist/platform/projects-client/git-history.d.ts +74 -0
- package/dist/platform/projects-client/git-history.d.ts.map +1 -0
- package/dist/platform/projects-client/git-history.js +40 -0
- package/dist/platform/projects-client/git-history.js.map +1 -0
- package/dist/platform/projects-client/github.d.ts +62 -0
- package/dist/platform/projects-client/github.d.ts.map +1 -0
- package/dist/platform/projects-client/github.js +30 -0
- package/dist/platform/projects-client/github.js.map +1 -0
- package/dist/platform/projects-client/index.d.ts +32 -0
- package/dist/platform/projects-client/index.d.ts.map +1 -0
- package/dist/platform/projects-client/index.js +34 -0
- package/dist/platform/projects-client/index.js.map +1 -0
- package/dist/platform/projects-client/marketplace-catalog.d.ts +76 -0
- package/dist/platform/projects-client/marketplace-catalog.d.ts.map +1 -0
- package/dist/platform/projects-client/marketplace-catalog.js +48 -0
- package/dist/platform/projects-client/marketplace-catalog.js.map +1 -0
- package/dist/platform/projects-client/marketplace.d.ts +80 -0
- package/dist/platform/projects-client/marketplace.d.ts.map +1 -0
- package/dist/platform/projects-client/marketplace.js +52 -0
- package/dist/platform/projects-client/marketplace.js.map +1 -0
- package/dist/platform/projects-client/model-defaults.d.ts +36 -0
- package/dist/platform/projects-client/model-defaults.d.ts.map +1 -0
- package/dist/platform/projects-client/model-defaults.js +16 -0
- package/dist/platform/projects-client/model-defaults.js.map +1 -0
- package/dist/platform/projects-client/policies.d.ts +21 -0
- package/dist/platform/projects-client/policies.d.ts.map +1 -0
- package/dist/platform/projects-client/policies.js +10 -0
- package/dist/platform/projects-client/policies.js.map +1 -0
- package/dist/platform/projects-client/projects.d.ts +235 -0
- package/dist/platform/projects-client/projects.d.ts.map +1 -0
- package/dist/platform/projects-client/projects.js +161 -0
- package/dist/platform/projects-client/projects.js.map +1 -0
- package/dist/platform/projects-client/public-session-shares.d.ts +52 -0
- package/dist/platform/projects-client/public-session-shares.d.ts.map +1 -0
- package/dist/platform/projects-client/public-session-shares.js +54 -0
- package/dist/platform/projects-client/public-session-shares.js.map +1 -0
- package/dist/platform/projects-client/review.d.ts +57 -0
- package/dist/platform/projects-client/review.d.ts.map +1 -0
- package/dist/platform/projects-client/review.js +28 -0
- package/dist/platform/projects-client/review.js.map +1 -0
- package/dist/platform/projects-client/sandbox-shares.d.ts +25 -0
- package/dist/platform/projects-client/sandbox-shares.d.ts.map +1 -0
- package/dist/platform/projects-client/sandbox-shares.js +29 -0
- package/dist/platform/projects-client/sandbox-shares.js.map +1 -0
- package/dist/platform/projects-client/sandbox.d.ts +123 -0
- package/dist/platform/projects-client/sandbox.d.ts.map +1 -0
- package/dist/platform/projects-client/sandbox.js +45 -0
- package/dist/platform/projects-client/sandbox.js.map +1 -0
- package/dist/platform/projects-client/secrets.d.ts +122 -0
- package/dist/platform/projects-client/secrets.d.ts.map +1 -0
- package/dist/platform/projects-client/secrets.js +34 -0
- package/dist/platform/projects-client/secrets.js.map +1 -0
- package/dist/platform/projects-client/session-sandbox.d.ts +61 -0
- package/dist/platform/projects-client/session-sandbox.d.ts.map +1 -0
- package/dist/platform/projects-client/session-sandbox.js +82 -0
- package/dist/platform/projects-client/session-sandbox.js.map +1 -0
- package/dist/platform/projects-client/sessions.d.ts +216 -0
- package/dist/platform/projects-client/sessions.d.ts.map +1 -0
- package/dist/platform/projects-client/sessions.js +74 -0
- package/dist/platform/projects-client/sessions.js.map +1 -0
- package/dist/platform/projects-client/setup-links.d.ts +35 -0
- package/dist/platform/projects-client/setup-links.d.ts.map +1 -0
- package/dist/platform/projects-client/setup-links.js +24 -0
- package/dist/platform/projects-client/setup-links.js.map +1 -0
- package/dist/platform/projects-client/shared.d.ts +66 -0
- package/dist/platform/projects-client/shared.d.ts.map +1 -0
- package/dist/platform/projects-client/shared.js +44 -0
- package/dist/platform/projects-client/shared.js.map +1 -0
- package/dist/platform/projects-client/tokens.d.ts +77 -0
- package/dist/platform/projects-client/tokens.d.ts.map +1 -0
- package/dist/platform/projects-client/tokens.js +43 -0
- package/dist/platform/projects-client/tokens.js.map +1 -0
- package/dist/platform/projects-client/transcription.d.ts +5 -0
- package/dist/platform/projects-client/transcription.d.ts.map +1 -0
- package/dist/platform/projects-client/transcription.js +14 -0
- package/dist/platform/projects-client/transcription.js.map +1 -0
- package/dist/platform/projects-client/triggers.d.ts +102 -0
- package/dist/platform/projects-client/triggers.d.ts.map +1 -0
- package/dist/platform/projects-client/triggers.js +27 -0
- package/dist/platform/projects-client/triggers.js.map +1 -0
- package/dist/platform/session-id.d.ts +9 -0
- package/dist/platform/session-id.d.ts.map +1 -0
- package/dist/platform/session-id.js +23 -0
- package/dist/platform/session-id.js.map +1 -0
- package/dist/platform/storage/managed-storage.d.ts +97 -0
- package/dist/platform/storage/managed-storage.d.ts.map +1 -0
- package/dist/platform/storage/managed-storage.js +271 -0
- package/dist/platform/storage/managed-storage.js.map +1 -0
- package/dist/platform/strings.d.ts +12 -0
- package/dist/platform/strings.d.ts.map +1 -0
- package/dist/platform/strings.js +17 -0
- package/dist/platform/strings.js.map +1 -0
- package/dist/platform/ui.d.ts +11 -0
- package/dist/platform/ui.d.ts.map +1 -0
- package/dist/platform/ui.js +22 -0
- package/dist/platform/ui.js.map +1 -0
- package/dist/react/chat/index.d.ts +3 -0
- package/dist/react/chat/index.d.ts.map +1 -0
- package/dist/react/chat/index.js +7 -0
- package/dist/react/chat/index.js.map +1 -0
- package/dist/react/chat/render-parts.d.ts +39 -0
- package/dist/react/chat/render-parts.d.ts.map +1 -0
- package/dist/react/chat/render-parts.js +34 -0
- package/dist/react/chat/render-parts.js.map +1 -0
- package/dist/react/chat/use-chat-turns.d.ts +19 -0
- package/dist/react/chat/use-chat-turns.d.ts.map +1 -0
- package/dist/react/chat/use-chat-turns.js +27 -0
- package/dist/react/chat/use-chat-turns.js.map +1 -0
- package/dist/react/file-keys.d.ts +18 -0
- package/dist/react/file-keys.d.ts.map +1 -0
- package/dist/react/file-keys.js +18 -0
- package/dist/react/file-keys.js.map +1 -0
- package/dist/react/index.d.ts +12 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +49 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/model-flatten.d.ts +33 -0
- package/dist/react/model-flatten.d.ts.map +1 -0
- package/dist/react/model-flatten.js +59 -0
- package/dist/react/model-flatten.js.map +1 -0
- package/dist/react/opencode.d.ts +43 -0
- package/dist/react/opencode.d.ts.map +1 -0
- package/dist/react/opencode.js +100 -0
- package/dist/react/opencode.js.map +1 -0
- package/dist/react/prefetch-session-start.d.ts +10 -0
- package/dist/react/prefetch-session-start.d.ts.map +1 -0
- package/dist/react/prefetch-session-start.js +17 -0
- package/dist/react/prefetch-session-start.js.map +1 -0
- package/dist/react/provider-refresh.d.ts +7 -0
- package/dist/react/provider-refresh.d.ts.map +1 -0
- package/dist/react/provider-refresh.js +28 -0
- package/dist/react/provider-refresh.js.map +1 -0
- package/dist/react/provider-selection.d.ts +31 -0
- package/dist/react/provider-selection.d.ts.map +1 -0
- package/dist/react/provider-selection.js +135 -0
- package/dist/react/provider-selection.js.map +1 -0
- package/dist/react/route-project.d.ts +7 -0
- package/dist/react/route-project.d.ts.map +1 -0
- package/dist/react/route-project.js +19 -0
- package/dist/react/route-project.js.map +1 -0
- package/dist/react/session-start-stash.d.ts +56 -0
- package/dist/react/session-start-stash.d.ts.map +1 -0
- package/dist/react/session-start-stash.js +202 -0
- package/dist/react/session-start-stash.js.map +1 -0
- package/dist/react/use-canonical-opencode-session.d.ts +35 -0
- package/dist/react/use-canonical-opencode-session.d.ts.map +1 -0
- package/dist/react/use-canonical-opencode-session.js +52 -0
- package/dist/react/use-canonical-opencode-session.js.map +1 -0
- package/dist/react/use-change-requests.d.ts +321 -0
- package/dist/react/use-change-requests.d.ts.map +1 -0
- package/dist/react/use-change-requests.js +43 -0
- package/dist/react/use-change-requests.js.map +1 -0
- package/dist/react/use-current-runtime.d.ts +8 -0
- package/dist/react/use-current-runtime.d.ts.map +1 -0
- package/dist/react/use-current-runtime.js +12 -0
- package/dist/react/use-current-runtime.js.map +1 -0
- package/dist/react/use-gateway-catalog-sync.d.ts +2 -0
- package/dist/react/use-gateway-catalog-sync.d.ts.map +1 -0
- package/dist/react/use-gateway-catalog-sync.js +39 -0
- package/dist/react/use-gateway-catalog-sync.js.map +1 -0
- package/dist/react/use-kortix-master.d.ts +384 -0
- package/dist/react/use-kortix-master.d.ts.map +1 -0
- package/dist/react/use-kortix-master.js +958 -0
- package/dist/react/use-kortix-master.js.map +1 -0
- package/dist/react/use-model-store.d.ts +71 -0
- package/dist/react/use-model-store.d.ts.map +1 -0
- package/dist/react/use-model-store.js +411 -0
- package/dist/react/use-model-store.js.map +1 -0
- package/dist/react/use-opencode-config.d.ts +15 -0
- package/dist/react/use-opencode-config.d.ts.map +1 -0
- package/dist/react/use-opencode-config.js +79 -0
- package/dist/react/use-opencode-config.js.map +1 -0
- package/dist/react/use-opencode-events/diagnostics.d.ts +11 -0
- package/dist/react/use-opencode-events/diagnostics.d.ts.map +1 -0
- package/dist/react/use-opencode-events/diagnostics.js +58 -0
- package/dist/react/use-opencode-events/diagnostics.js.map +1 -0
- package/dist/react/use-opencode-events/handle-event.d.ts +20 -0
- package/dist/react/use-opencode-events/handle-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-event.js +450 -0
- package/dist/react/use-opencode-events/handle-event.js.map +1 -0
- package/dist/react/use-opencode-events/helpers.d.ts +30 -0
- package/dist/react/use-opencode-events/helpers.d.ts.map +1 -0
- package/dist/react/use-opencode-events/helpers.js +93 -0
- package/dist/react/use-opencode-events/helpers.js.map +1 -0
- package/dist/react/use-opencode-events/index.d.ts +25 -0
- package/dist/react/use-opencode-events/index.d.ts.map +1 -0
- package/dist/react/use-opencode-events/index.js +242 -0
- package/dist/react/use-opencode-events/index.js.map +1 -0
- package/dist/react/use-opencode-events/types.d.ts +10 -0
- package/dist/react/use-opencode-events/types.d.ts.map +1 -0
- package/dist/react/use-opencode-events/types.js +2 -0
- package/dist/react/use-opencode-events/types.js.map +1 -0
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts +22 -0
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts.map +1 -0
- package/dist/react/use-opencode-events/use-event-stream-refs.js +158 -0
- package/dist/react/use-opencode-events/use-event-stream-refs.js.map +1 -0
- package/dist/react/use-opencode-local.d.ts +139 -0
- package/dist/react/use-opencode-local.d.ts.map +1 -0
- package/dist/react/use-opencode-local.js +484 -0
- package/dist/react/use-opencode-local.js.map +1 -0
- package/dist/react/use-opencode-mcp.d.ts +34 -0
- package/dist/react/use-opencode-mcp.d.ts.map +1 -0
- package/dist/react/use-opencode-mcp.js +190 -0
- package/dist/react/use-opencode-mcp.js.map +1 -0
- package/dist/react/use-opencode-pty.d.ts +30 -0
- package/dist/react/use-opencode-pty.d.ts.map +1 -0
- package/dist/react/use-opencode-pty.js +126 -0
- package/dist/react/use-opencode-pty.js.map +1 -0
- package/dist/react/use-opencode-sessions/agents.d.ts +14 -0
- package/dist/react/use-opencode-sessions/agents.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/agents.js +82 -0
- package/dist/react/use-opencode-sessions/agents.js.map +1 -0
- package/dist/react/use-opencode-sessions/commands.d.ts +8 -0
- package/dist/react/use-opencode-sessions/commands.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/commands.js +46 -0
- package/dist/react/use-opencode-sessions/commands.js.map +1 -0
- package/dist/react/use-opencode-sessions/files.d.ts +2 -0
- package/dist/react/use-opencode-sessions/files.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/files.js +181 -0
- package/dist/react/use-opencode-sessions/files.js.map +1 -0
- package/dist/react/use-opencode-sessions/index.d.ts +15 -0
- package/dist/react/use-opencode-sessions/index.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/index.js +21 -0
- package/dist/react/use-opencode-sessions/index.js.map +1 -0
- package/dist/react/use-opencode-sessions/keys.d.ts +94 -0
- package/dist/react/use-opencode-sessions/keys.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/keys.js +39 -0
- package/dist/react/use-opencode-sessions/keys.js.map +1 -0
- package/dist/react/use-opencode-sessions/mcp.d.ts +3 -0
- package/dist/react/use-opencode-sessions/mcp.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/mcp.js +23 -0
- package/dist/react/use-opencode-sessions/mcp.js.map +1 -0
- package/dist/react/use-opencode-sessions/messages.d.ts +75 -0
- package/dist/react/use-opencode-sessions/messages.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/messages.js +319 -0
- package/dist/react/use-opencode-sessions/messages.js.map +1 -0
- package/dist/react/use-opencode-sessions/parts.d.ts +23 -0
- package/dist/react/use-opencode-sessions/parts.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/parts.js +49 -0
- package/dist/react/use-opencode-sessions/parts.js.map +1 -0
- package/dist/react/use-opencode-sessions/permissions.d.ts +17 -0
- package/dist/react/use-opencode-sessions/permissions.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/permissions.js +66 -0
- package/dist/react/use-opencode-sessions/permissions.js.map +1 -0
- package/dist/react/use-opencode-sessions/projects.d.ts +5 -0
- package/dist/react/use-opencode-sessions/projects.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/projects.js +54 -0
- package/dist/react/use-opencode-sessions/projects.js.map +1 -0
- package/dist/react/use-opencode-sessions/providers.d.ts +10 -0
- package/dist/react/use-opencode-sessions/providers.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/providers.js +98 -0
- package/dist/react/use-opencode-sessions/providers.js.map +1 -0
- package/dist/react/use-opencode-sessions/sessions.d.ts +35 -0
- package/dist/react/use-opencode-sessions/sessions.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/sessions.js +380 -0
- package/dist/react/use-opencode-sessions/sessions.js.map +1 -0
- package/dist/react/use-opencode-sessions/shared.d.ts +43 -0
- package/dist/react/use-opencode-sessions/shared.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/shared.js +109 -0
- package/dist/react/use-opencode-sessions/shared.js.map +1 -0
- package/dist/react/use-opencode-sessions/sharing.d.ts +4 -0
- package/dist/react/use-opencode-sessions/sharing.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/sharing.js +57 -0
- package/dist/react/use-opencode-sessions/sharing.js.map +1 -0
- package/dist/react/use-opencode-sessions/tools.d.ts +5 -0
- package/dist/react/use-opencode-sessions/tools.d.ts.map +1 -0
- package/dist/react/use-opencode-sessions/tools.js +54 -0
- package/dist/react/use-opencode-sessions/tools.js.map +1 -0
- package/dist/react/use-permission-self-heal.d.ts +45 -0
- package/dist/react/use-permission-self-heal.d.ts.map +1 -0
- package/dist/react/use-permission-self-heal.js +144 -0
- package/dist/react/use-permission-self-heal.js.map +1 -0
- package/dist/react/use-project-config.d.ts +11 -0
- package/dist/react/use-project-config.d.ts.map +1 -0
- package/dist/react/use-project-config.js +22 -0
- package/dist/react/use-project-config.js.map +1 -0
- package/dist/react/use-project-models.d.ts +11 -0
- package/dist/react/use-project-models.d.ts.map +1 -0
- package/dist/react/use-project-models.js +25 -0
- package/dist/react/use-project-models.js.map +1 -0
- package/dist/react/use-project-secrets.d.ts +265 -0
- package/dist/react/use-project-secrets.d.ts.map +1 -0
- package/dist/react/use-project-secrets.js +41 -0
- package/dist/react/use-project-secrets.js.map +1 -0
- package/dist/react/use-project-triggers.d.ts +228 -0
- package/dist/react/use-project-triggers.d.ts.map +1 -0
- package/dist/react/use-project-triggers.js +42 -0
- package/dist/react/use-project-triggers.js.map +1 -0
- package/dist/react/use-question-self-heal.d.ts +36 -0
- package/dist/react/use-question-self-heal.d.ts.map +1 -0
- package/dist/react/use-question-self-heal.js +95 -0
- package/dist/react/use-question-self-heal.js.map +1 -0
- package/dist/react/use-runtime-phase.d.ts +9 -0
- package/dist/react/use-runtime-phase.d.ts.map +1 -0
- package/dist/react/use-runtime-phase.js +20 -0
- package/dist/react/use-runtime-phase.js.map +1 -0
- package/dist/react/use-runtime-reconnect.d.ts +90 -0
- package/dist/react/use-runtime-reconnect.d.ts.map +1 -0
- package/dist/react/use-runtime-reconnect.js +234 -0
- package/dist/react/use-runtime-reconnect.js.map +1 -0
- package/dist/react/use-session-picks.d.ts +17 -0
- package/dist/react/use-session-picks.d.ts.map +1 -0
- package/dist/react/use-session-picks.js +36 -0
- package/dist/react/use-session-picks.js.map +1 -0
- package/dist/react/use-session-prefetch.d.ts +18 -0
- package/dist/react/use-session-prefetch.d.ts.map +1 -0
- package/dist/react/use-session-prefetch.js +84 -0
- package/dist/react/use-session-prefetch.js.map +1 -0
- package/dist/react/use-session-send.d.ts +183 -0
- package/dist/react/use-session-send.d.ts.map +1 -0
- package/dist/react/use-session-send.js +287 -0
- package/dist/react/use-session-send.js.map +1 -0
- package/dist/react/use-session-sync.d.ts +24 -0
- package/dist/react/use-session-sync.d.ts.map +1 -0
- package/dist/react/use-session-sync.js +375 -0
- package/dist/react/use-session-sync.js.map +1 -0
- package/dist/react/use-session.d.ts +171 -0
- package/dist/react/use-session.d.ts.map +1 -0
- package/dist/react/use-session.js +396 -0
- package/dist/react/use-session.js.map +1 -0
- package/dist/react/use-visible-agents.d.ts +22 -0
- package/dist/react/use-visible-agents.d.ts.map +1 -0
- package/dist/react/use-visible-agents.js +45 -0
- package/dist/react/use-visible-agents.js.map +1 -0
- package/dist/server.d.ts +55 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +122 -0
- package/dist/server.js.map +1 -0
- package/dist/session/health.d.ts +49 -0
- package/dist/session/health.d.ts.map +1 -0
- package/dist/session/health.js +57 -0
- package/dist/session/health.js.map +1 -0
- package/dist/session/index.d.ts +19 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +19 -0
- package/dist/session/index.js.map +1 -0
- package/dist/session/preview.d.ts +24 -0
- package/dist/session/preview.d.ts.map +1 -0
- package/dist/session/preview.js +85 -0
- package/dist/session/preview.js.map +1 -0
- package/dist/session/url.d.ts +160 -0
- package/dist/session/url.d.ts.map +1 -0
- package/dist/session/url.js +522 -0
- package/dist/session/url.js.map +1 -0
- package/dist/state/chat-events.d.ts +141 -0
- package/dist/state/chat-events.d.ts.map +1 -0
- package/dist/state/chat-events.js +135 -0
- package/dist/state/chat-events.js.map +1 -0
- package/dist/state/current-runtime.d.ts +44 -0
- package/dist/state/current-runtime.d.ts.map +1 -0
- package/dist/state/current-runtime.js +44 -0
- package/dist/state/current-runtime.js.map +1 -0
- package/dist/state/diagnostics-store.d.ts +114 -0
- package/dist/state/diagnostics-store.d.ts.map +1 -0
- package/dist/state/diagnostics-store.js +319 -0
- package/dist/state/diagnostics-store.js.map +1 -0
- package/dist/state/event-stream.d.ts +134 -0
- package/dist/state/event-stream.d.ts.map +1 -0
- package/dist/state/event-stream.js +424 -0
- package/dist/state/event-stream.js.map +1 -0
- package/dist/state/idb-sync-cache.d.ts +18 -0
- package/dist/state/idb-sync-cache.d.ts.map +1 -0
- package/dist/state/idb-sync-cache.js +209 -0
- package/dist/state/idb-sync-cache.js.map +1 -0
- package/dist/state/opencode-compaction-store.d.ts +10 -0
- package/dist/state/opencode-compaction-store.d.ts.map +1 -0
- package/dist/state/opencode-compaction-store.js +32 -0
- package/dist/state/opencode-compaction-store.js.map +1 -0
- package/dist/state/opencode-pending-store.d.ts +19 -0
- package/dist/state/opencode-pending-store.d.ts.map +1 -0
- package/dist/state/opencode-pending-store.js +76 -0
- package/dist/state/opencode-pending-store.js.map +1 -0
- package/dist/state/sandbox-connection-store.d.ts +62 -0
- package/dist/state/sandbox-connection-store.d.ts.map +1 -0
- package/dist/state/sandbox-connection-store.js +290 -0
- package/dist/state/sandbox-connection-store.js.map +1 -0
- package/dist/state/server-store/active.d.ts +49 -0
- package/dist/state/server-store/active.d.ts.map +1 -0
- package/dist/state/server-store/active.js +76 -0
- package/dist/state/server-store/active.js.map +1 -0
- package/dist/state/server-store/types.d.ts +12 -0
- package/dist/state/server-store/types.d.ts.map +1 -0
- package/dist/state/server-store/types.js +2 -0
- package/dist/state/server-store/types.js.map +1 -0
- package/dist/state/server-store/url-helpers.d.ts +33 -0
- package/dist/state/server-store/url-helpers.d.ts.map +1 -0
- package/dist/state/server-store/url-helpers.js +55 -0
- package/dist/state/server-store/url-helpers.js.map +1 -0
- package/dist/state/server-store.d.ts +18 -0
- package/dist/state/server-store.d.ts.map +1 -0
- package/dist/state/server-store.js +23 -0
- package/dist/state/server-store.js.map +1 -0
- package/dist/state/session-runtime-registry.d.ts +49 -0
- package/dist/state/session-runtime-registry.d.ts.map +1 -0
- package/dist/state/session-runtime-registry.js +85 -0
- package/dist/state/session-runtime-registry.js.map +1 -0
- package/dist/state/sync-store/ascending-id.d.ts +2 -0
- package/dist/state/sync-store/ascending-id.d.ts.map +1 -0
- package/dist/state/sync-store/ascending-id.js +21 -0
- package/dist/state/sync-store/ascending-id.js.map +1 -0
- package/dist/state/sync-store/binary.d.ts +7 -0
- package/dist/state/sync-store/binary.d.ts.map +1 -0
- package/dist/state/sync-store/binary.js +21 -0
- package/dist/state/sync-store/binary.js.map +1 -0
- package/dist/state/sync-store/stream-cache.d.ts +2 -0
- package/dist/state/sync-store/stream-cache.d.ts.map +1 -0
- package/dist/state/sync-store/stream-cache.js +29 -0
- package/dist/state/sync-store/stream-cache.js.map +1 -0
- package/dist/state/sync-store/types.d.ts +29 -0
- package/dist/state/sync-store/types.d.ts.map +1 -0
- package/dist/state/sync-store/types.js +2 -0
- package/dist/state/sync-store/types.js.map +1 -0
- package/dist/state/sync-store.d.ts +39 -0
- package/dist/state/sync-store.d.ts.map +1 -0
- package/dist/state/sync-store.js +692 -0
- package/dist/state/sync-store.js.map +1 -0
- package/dist/state/tab-store.d.ts +91 -0
- package/dist/state/tab-store.d.ts.map +1 -0
- package/dist/state/tab-store.js +369 -0
- package/dist/state/tab-store.js.map +1 -0
- package/dist/transcript.d.ts +40 -0
- package/dist/transcript.d.ts.map +1 -0
- package/dist/transcript.js +126 -0
- package/dist/transcript.js.map +1 -0
- package/dist/turns/classify.d.ts +166 -0
- package/dist/turns/classify.d.ts.map +1 -0
- package/dist/turns/classify.js +259 -0
- package/dist/turns/classify.js.map +1 -0
- package/dist/turns/errors.d.ts +11 -0
- package/dist/turns/errors.d.ts.map +1 -0
- package/dist/turns/errors.js +85 -0
- package/dist/turns/errors.js.map +1 -0
- package/dist/turns/index.d.ts +264 -0
- package/dist/turns/index.d.ts.map +1 -0
- package/dist/turns/index.js +1243 -0
- package/dist/turns/index.js.map +1 -0
- package/dist/turns/tool-registry.d.ts +33 -0
- package/dist/turns/tool-registry.d.ts.map +1 -0
- package/dist/turns/tool-registry.js +108 -0
- package/dist/turns/tool-registry.js.map +1 -0
- package/dist/turns/types.d.ts +125 -0
- package/dist/turns/types.d.ts.map +1 -0
- package/dist/turns/types.js +12 -0
- package/dist/turns/types.js.map +1 -0
- package/dist/turns/view-model.d.ts +127 -0
- package/dist/turns/view-model.d.ts.map +1 -0
- package/dist/turns/view-model.js +401 -0
- package/dist/turns/view-model.js.map +1 -0
- package/package.json +155 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error-message unwrapping — extracted from turns/index.ts so it can be
|
|
3
|
+
* shared with classify.ts (classifyTurn's TurnError normalization) without
|
|
4
|
+
* creating an index.ts <-> classify.ts import cycle.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Extract human-readable error message from a raw error value.
|
|
8
|
+
* Matches SolidJS `unwrap()` function — session-turn.tsx:34-81
|
|
9
|
+
*/
|
|
10
|
+
export function unwrapError(raw) {
|
|
11
|
+
if (!raw)
|
|
12
|
+
return 'An error occurred';
|
|
13
|
+
if (typeof raw === 'string') {
|
|
14
|
+
// Strip "Error: " prefix
|
|
15
|
+
let str = raw.startsWith('Error: ') ? raw.slice(7) : raw;
|
|
16
|
+
// Try JSON parsing (might be double-encoded)
|
|
17
|
+
try {
|
|
18
|
+
const parsed = JSON.parse(str);
|
|
19
|
+
if (typeof parsed === 'string') {
|
|
20
|
+
str = parsed; // double-encoded string
|
|
21
|
+
try {
|
|
22
|
+
const inner = JSON.parse(str);
|
|
23
|
+
return extractErrorFromObject(inner) || str;
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
return str;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return extractErrorFromObject(parsed) || str;
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// Not directly parseable as JSON — router/executor errors commonly wrap
|
|
33
|
+
// a JSON body inside a plain-text prefix, e.g. router tool credit
|
|
34
|
+
// failures: `Error: 402 Error: {"error":true,"message":"Insufficient
|
|
35
|
+
// credits","status":402}`. Extract the outermost {...} substring (if
|
|
36
|
+
// any) and try that instead of surfacing the raw prefixed string.
|
|
37
|
+
const embedded = extractEmbeddedJsonMessage(str);
|
|
38
|
+
return embedded ?? str;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// (`!raw` at the top already excluded null — typeof alone suffices here.)
|
|
42
|
+
if (typeof raw === 'object') {
|
|
43
|
+
return extractErrorFromObject(raw) || 'An error occurred';
|
|
44
|
+
}
|
|
45
|
+
return String(raw);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Best-effort extraction of a human message from a JSON object embedded
|
|
49
|
+
* somewhere inside a larger non-JSON string. Takes the substring spanning
|
|
50
|
+
* the first `{` to the last `}` — correct for the common single-object case
|
|
51
|
+
* (nested double-wrapped errors don't nest braces inside the outer text) and
|
|
52
|
+
* cheap; falls back to `undefined` (never throws) if that substring isn't
|
|
53
|
+
* valid JSON or has no recognizable error shape.
|
|
54
|
+
*/
|
|
55
|
+
function extractEmbeddedJsonMessage(str) {
|
|
56
|
+
const start = str.indexOf('{');
|
|
57
|
+
const end = str.lastIndexOf('}');
|
|
58
|
+
if (start === -1 || end === -1 || end <= start)
|
|
59
|
+
return undefined;
|
|
60
|
+
try {
|
|
61
|
+
const parsed = JSON.parse(str.slice(start, end + 1));
|
|
62
|
+
return extractErrorFromObject(parsed);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function extractErrorFromObject(obj) {
|
|
69
|
+
if (typeof obj !== 'object' || obj === null || Array.isArray(obj))
|
|
70
|
+
return undefined;
|
|
71
|
+
// Try common error shapes
|
|
72
|
+
const record = obj;
|
|
73
|
+
if (typeof record.message === 'string' && record.message)
|
|
74
|
+
return record.message;
|
|
75
|
+
if (typeof record.error === 'string' && record.error)
|
|
76
|
+
return record.error;
|
|
77
|
+
const data = record.data;
|
|
78
|
+
if (typeof data?.message === 'string')
|
|
79
|
+
return data.message;
|
|
80
|
+
const error = record.error;
|
|
81
|
+
if (typeof error?.message === 'string')
|
|
82
|
+
return error.message;
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/turns/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,IAAI,CAAC,GAAG;QAAE,OAAO,mBAAmB,CAAC;IAErC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,yBAAyB;QACzB,IAAI,GAAG,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAEzD,6CAA6C;QAC7C,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC/B,GAAG,G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QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAY;IAC1C,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IACpF,0BAA0B;IAC1B,MAAM,MAAM,GAAG,GAA8B,CAAC;IAC9C,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO;QAAE,OAAO,MAAM,CAAC,OAAO,CAAC;IAChF,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC;IAC1E,MAAM,IAAI,GAAG,MAAM,CAAC,IAAgD,CAAC;IACrE,IAAI,OAAO,IAAI,EAAE,OAAO,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,OAAO,CAAC;IAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,KAAiD,CAAC;IACvE,IAAI,OAAO,KAAK,EAAE,OAAO,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC,OAAO,CAAC;IAC7D,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turn grouping & part helpers — framework-agnostic.
|
|
3
|
+
*
|
|
4
|
+
* Pure functions that transform SDK message data into view-model shapes.
|
|
5
|
+
* Single implementation shared by the web and mobile UIs.
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: No React / DOM / framework imports allowed in this module.
|
|
8
|
+
* Matches the SolidJS reference in opencode/packages/ui/src/components/session-turn.tsx
|
|
9
|
+
*/
|
|
10
|
+
import type { Diagnostic, MessageInfoLike, MessageWithPartsLike, ModelPricingLookup, PartLike, PartWithMessage, RequestWithToolLike, RetryInfo, SessionStatusLike, ToolInfo, ToolPartLike, TurnCostInfo, TurnLike } from './types.js';
|
|
11
|
+
export type * from './types.js';
|
|
12
|
+
export { unwrapError } from './errors.js';
|
|
13
|
+
export * from './tool-registry.js';
|
|
14
|
+
export * from './classify.js';
|
|
15
|
+
export * from './view-model.js';
|
|
16
|
+
export declare function isTextPart<P extends PartLike>(part: P): part is P & {
|
|
17
|
+
type: 'text';
|
|
18
|
+
};
|
|
19
|
+
export declare function isReasoningPart<P extends PartLike>(part: P): part is P & {
|
|
20
|
+
type: 'reasoning';
|
|
21
|
+
};
|
|
22
|
+
export declare function isToolPart<P extends PartLike>(part: P): part is P & {
|
|
23
|
+
type: 'tool';
|
|
24
|
+
};
|
|
25
|
+
export declare function isFilePart<P extends PartLike>(part: P): part is P & {
|
|
26
|
+
type: 'file';
|
|
27
|
+
};
|
|
28
|
+
export declare function isAgentPart<P extends PartLike>(part: P): part is P & {
|
|
29
|
+
type: 'agent';
|
|
30
|
+
};
|
|
31
|
+
export declare function isCompactionPart<P extends PartLike>(part: P): part is P & {
|
|
32
|
+
type: 'compaction';
|
|
33
|
+
};
|
|
34
|
+
export declare function isSnapshotPart<P extends PartLike>(part: P): part is P & {
|
|
35
|
+
type: 'snapshot';
|
|
36
|
+
};
|
|
37
|
+
export declare function isPatchPart<P extends PartLike>(part: P): part is P & {
|
|
38
|
+
type: 'patch';
|
|
39
|
+
};
|
|
40
|
+
/** Get the text content from any part that has a `text` field. */
|
|
41
|
+
export declare function getPartText(part: PartLike): string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Check if a file part is an image or PDF attachment.
|
|
44
|
+
* Matches SolidJS `isAttachment()` — session-turn.tsx:128
|
|
45
|
+
*/
|
|
46
|
+
export declare function isAttachment<P extends PartLike>(part: P): part is P & {
|
|
47
|
+
type: 'file';
|
|
48
|
+
};
|
|
49
|
+
/** Split user message parts into attachment parts and sticky (non-attachment) parts. */
|
|
50
|
+
export declare function splitUserParts<P extends PartLike>(parts: readonly P[]): {
|
|
51
|
+
attachments: Array<P & {
|
|
52
|
+
type: 'file';
|
|
53
|
+
}>;
|
|
54
|
+
stickyParts: P[];
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Group messages into turns: each turn starts with a user message followed
|
|
58
|
+
* by 0+ assistant messages.
|
|
59
|
+
*
|
|
60
|
+
* Uses parentID-based linking (matching SolidJS session-turn.tsx:272-292):
|
|
61
|
+
* assistant messages are associated with their parent user message via
|
|
62
|
+
* `parentID`. Falls back to sequential ordering when parentID is absent.
|
|
63
|
+
*/
|
|
64
|
+
export declare function groupMessagesIntoTurns<M extends MessageWithPartsLike>(messages: readonly M[]): TurnLike<M>[];
|
|
65
|
+
/** Collect all parts from a turn's assistant messages. */
|
|
66
|
+
export declare function collectTurnParts<M extends MessageWithPartsLike>(turn: TurnLike<M>): PartWithMessage<M>[];
|
|
67
|
+
/** Find the last non-empty text part in a turn (the "response"). */
|
|
68
|
+
export declare function findLastTextPart<P extends PartLike>(parts: ReadonlyArray<{
|
|
69
|
+
part: P;
|
|
70
|
+
}>): (P & {
|
|
71
|
+
type: 'text';
|
|
72
|
+
}) | undefined;
|
|
73
|
+
/** Check if a turn has tool steps. */
|
|
74
|
+
export declare function turnHasSteps(parts: ReadonlyArray<{
|
|
75
|
+
part: PartLike;
|
|
76
|
+
}>): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Detect "shell mode": user message is entirely synthetic text parts AND
|
|
79
|
+
* there's exactly one assistant message with exactly one part which is a bash tool.
|
|
80
|
+
*
|
|
81
|
+
* Stricter than our previous implementation — matches SolidJS session-turn.tsx:364-379
|
|
82
|
+
* which checks `msgParts.length !== 1` (exactly one assistant part total).
|
|
83
|
+
*/
|
|
84
|
+
export declare function isShellMode(turn: TurnLike): boolean;
|
|
85
|
+
/** Get the bash tool part when in shell mode. */
|
|
86
|
+
export declare function getShellModePart<M extends MessageWithPartsLike>(turn: TurnLike<M>): (M['parts'][number] & {
|
|
87
|
+
type: 'tool';
|
|
88
|
+
}) | undefined;
|
|
89
|
+
/** Check if this is the last user message in the session. */
|
|
90
|
+
export declare function isLastUserMessage(messageId: string, allMessages: readonly MessageWithPartsLike[]): boolean;
|
|
91
|
+
/** Derive the "working" state for a turn. Only the last turn shows as working. */
|
|
92
|
+
export declare function getWorkingState(sessionStatus: SessionStatusLike | undefined, isLast: boolean): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the last text part (the "response") should be extracted from the
|
|
95
|
+
* steps list and shown separately in the Response section.
|
|
96
|
+
*
|
|
97
|
+
* Matches SolidJS session-turn.tsx:440-443
|
|
98
|
+
*/
|
|
99
|
+
export declare function shouldHideResponsePart(working: boolean, responsePartId: string | undefined): boolean;
|
|
100
|
+
/** Tool part references to hide from the step list when permission/question is pending. */
|
|
101
|
+
export interface HiddenToolRef {
|
|
102
|
+
messageID: string;
|
|
103
|
+
callID: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Get the list of tool parts to hide from the step list.
|
|
107
|
+
* Matches SolidJS session-turn.tsx:332-339
|
|
108
|
+
*/
|
|
109
|
+
export declare function getHiddenToolParts(permission: RequestWithToolLike | undefined, question: RequestWithToolLike | undefined): HiddenToolRef[];
|
|
110
|
+
/** Check if a specific tool part should be hidden due to active permission/question. */
|
|
111
|
+
export declare function isToolPartHidden(part: Pick<ToolPartLike, 'callID'>, messageId: string, hidden: HiddenToolRef[]): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Collect answered question parts that should be shown outside of the
|
|
114
|
+
* steps list. Questions are always rendered standalone (never inside steps),
|
|
115
|
+
* so answered questions are shown regardless of stepsExpanded state.
|
|
116
|
+
*/
|
|
117
|
+
export declare function getAnsweredQuestionParts<M extends MessageWithPartsLike>(turn: TurnLike<M>, _stepsExpanded: boolean, hasActiveQuestion: boolean): PartWithMessage<M>[];
|
|
118
|
+
/** Extract error message from assistant messages in a turn. */
|
|
119
|
+
export declare function getTurnError(turn: TurnLike): string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Derive human-readable status from a part.
|
|
122
|
+
* Matches SolidJS computeStatusFromPart — session-turn.tsx:83-119
|
|
123
|
+
*/
|
|
124
|
+
export declare function computeStatusFromPart(part: PartLike | undefined): string | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Get status text for a turn, with child session delegation.
|
|
127
|
+
*
|
|
128
|
+
* Matches SolidJS rawStatus — session-turn.tsx:381-428
|
|
129
|
+
* When the last part is a running `task` tool, drills into the child session
|
|
130
|
+
* to derive the real status.
|
|
131
|
+
*/
|
|
132
|
+
export declare function getTurnStatus(parts: ReadonlyArray<{
|
|
133
|
+
part: PartLike;
|
|
134
|
+
}>, childMessages?: readonly MessageWithPartsLike[]): string;
|
|
135
|
+
export declare function formatDuration(ms: number): string;
|
|
136
|
+
/**
|
|
137
|
+
* Extract child session ID from a task tool part's metadata.
|
|
138
|
+
*/
|
|
139
|
+
export declare function getChildSessionId(part: Pick<ToolPartLike, 'tool' | 'state'>): string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Extract the error message from a child (sub-agent) session's raw messages.
|
|
142
|
+
*
|
|
143
|
+
* Mirrors `getTurnError` but operates over the flat `MessageWithParts` list
|
|
144
|
+
* returned by `useOpenCodeMessages`, so a parent thread can surface a sub-agent
|
|
145
|
+
* failure (e.g. "Free usage exceeded, subscribe to Go") that otherwise only
|
|
146
|
+
* lives on the child session and never reaches the parent's turn renderer.
|
|
147
|
+
* Scans newest-first so the most recent failure wins.
|
|
148
|
+
*/
|
|
149
|
+
export declare function getChildSessionError(childMessages: readonly MessageWithPartsLike[] | undefined): string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Collect all tool parts from a child session's assistant messages.
|
|
152
|
+
* Matches SolidJS getSessionToolParts — message-part.tsx:160-174
|
|
153
|
+
*/
|
|
154
|
+
export declare function getChildSessionToolParts<M extends MessageWithPartsLike>(childMessages: readonly M[]): Array<M['parts'][number] & {
|
|
155
|
+
type: 'tool';
|
|
156
|
+
}>;
|
|
157
|
+
export declare function shouldShowToolPart(part: Pick<ToolPartLike, 'tool'>): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Get icon, title, subtitle for a tool part.
|
|
160
|
+
* Matches SolidJS getToolInfo — message-part.tsx:184-270
|
|
161
|
+
*
|
|
162
|
+
* Icon names are Lucide icon names used by the React frontend.
|
|
163
|
+
*/
|
|
164
|
+
export declare function getToolInfo(tool: string, input?: Record<string, any>): ToolInfo;
|
|
165
|
+
/** Extract filename from a path. */
|
|
166
|
+
export declare function getFilename(path: string | undefined): string | undefined;
|
|
167
|
+
/** Extract filename + parent directory, e.g. "main.go /workspace" */
|
|
168
|
+
export declare function getFileWithDir(path: string | undefined): string | undefined;
|
|
169
|
+
/** Extract directory from a path and strip trailing slash. */
|
|
170
|
+
export declare function getDirectory(path: string | undefined): string | undefined;
|
|
171
|
+
/** Strip the project root directory from paths for display. */
|
|
172
|
+
export declare function relativizePath(path: string, projectDir?: string): string;
|
|
173
|
+
/**
|
|
174
|
+
* One-line label for an agent/task card, with graceful fallbacks when the
|
|
175
|
+
* tool input has no description.
|
|
176
|
+
*/
|
|
177
|
+
export declare function getAgentCardLabel(input: Record<string, unknown>): string;
|
|
178
|
+
/**
|
|
179
|
+
* Filter diagnostics for a file path, keeping only errors (severity=1), max 3.
|
|
180
|
+
* Matches SolidJS getDiagnostics — message-part.tsx:53-90
|
|
181
|
+
*/
|
|
182
|
+
export declare function getDiagnostics(diagnosticsByFile: Record<string, Diagnostic[]> | undefined, filePath: string | undefined): Diagnostic[];
|
|
183
|
+
/** Get the permission request matching a specific tool part. */
|
|
184
|
+
export declare function getPermissionForTool<T extends RequestWithToolLike>(permissions: readonly T[], callID: string): T | undefined;
|
|
185
|
+
/** Get the question request matching a specific tool part. */
|
|
186
|
+
export declare function getQuestionForTool<T extends RequestWithToolLike>(questions: readonly T[], callID: string): T | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Platform markup applied to raw provider costs.
|
|
189
|
+
*
|
|
190
|
+
* The step-finish parts report raw provider cost (what the LLM vendor charges).
|
|
191
|
+
* The billing system deducts cost × COST_MARKUP from the user's credits.
|
|
192
|
+
* We apply the same multiplier here so the UI matches what's actually billed.
|
|
193
|
+
*
|
|
194
|
+
* Must stay in sync with KORTIX_MARKUP in apps/api/src/config.ts.
|
|
195
|
+
*/
|
|
196
|
+
export declare const COST_MARKUP = 1.2;
|
|
197
|
+
/**
|
|
198
|
+
* Aggregate cost/token info from step-finish parts in a turn.
|
|
199
|
+
* Returns undefined if no step-finish parts found.
|
|
200
|
+
*
|
|
201
|
+
* The cost is multiplied by COST_MARKUP so the displayed value matches
|
|
202
|
+
* the actual credits deducted (raw provider cost × 1.2).
|
|
203
|
+
*/
|
|
204
|
+
export declare function getTurnCost(parts: ReadonlyArray<PartWithMessage>, lookup?: ModelPricingLookup): TurnCostInfo | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Aggregate billed cost for an entire session from step-finish parts.
|
|
207
|
+
* Matches per-turn `getTurnCost` and mobile session stats aggregation.
|
|
208
|
+
*/
|
|
209
|
+
export declare function getSessionCost(messages: ReadonlyArray<{
|
|
210
|
+
info?: MessageInfoLike;
|
|
211
|
+
parts: PartLike[];
|
|
212
|
+
}>, lookup?: ModelPricingLookup): number;
|
|
213
|
+
/** Format cost in USD (e.g. "$0.0032") */
|
|
214
|
+
export declare function formatCost(cost: number): string;
|
|
215
|
+
/** Format token count (e.g. "12.3k") */
|
|
216
|
+
export declare function formatTokens(tokens: number): string;
|
|
217
|
+
/**
|
|
218
|
+
* Extract retry info from session status.
|
|
219
|
+
* Truncates message to 60 chars matching SolidJS session-turn.tsx:695
|
|
220
|
+
*/
|
|
221
|
+
export declare function getRetryInfo(status: SessionStatusLike | undefined): RetryInfo | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* Extract the full retry error message from session status (not truncated).
|
|
224
|
+
*/
|
|
225
|
+
export declare function getRetryMessage(status: SessionStatusLike | undefined): string | undefined;
|
|
226
|
+
/** Check if a user message has associated file diffs. */
|
|
227
|
+
export declare function hasDiffs(userMessage: MessageWithPartsLike): boolean;
|
|
228
|
+
/** Strip ANSI escape codes from terminal output. */
|
|
229
|
+
export declare function stripAnsi(str: string): string;
|
|
230
|
+
/**
|
|
231
|
+
* Build a map from parent session ID → array of child session IDs.
|
|
232
|
+
* Used to aggregate child session status (permissions, busy) in the sidebar.
|
|
233
|
+
* Matches SolidJS reference `childMapByParent()` in helpers.ts.
|
|
234
|
+
*/
|
|
235
|
+
export declare function childMapByParent(sessions: ReadonlyArray<{
|
|
236
|
+
id: string;
|
|
237
|
+
parentID?: string;
|
|
238
|
+
}>): Map<string, string[]>;
|
|
239
|
+
/**
|
|
240
|
+
* Sort comparator for sessions.
|
|
241
|
+
* Two tiers:
|
|
242
|
+
* 1. Sessions updated within `now - 60s` are pinned to top, sorted by ID (stable).
|
|
243
|
+
* 2. Older sessions sorted by `updated` time descending.
|
|
244
|
+
* Matches SolidJS reference `sortSessions()` in helpers.ts.
|
|
245
|
+
*/
|
|
246
|
+
export declare function sortSessions(now: number): (a: {
|
|
247
|
+
id: string;
|
|
248
|
+
time: {
|
|
249
|
+
updated?: number;
|
|
250
|
+
created: number;
|
|
251
|
+
};
|
|
252
|
+
}, b: {
|
|
253
|
+
id: string;
|
|
254
|
+
time: {
|
|
255
|
+
updated?: number;
|
|
256
|
+
created: number;
|
|
257
|
+
};
|
|
258
|
+
}) => number;
|
|
259
|
+
/**
|
|
260
|
+
* Recursively collect ALL descendant session IDs for a given parent.
|
|
261
|
+
* Walks the full tree so deeply nested sub-agents are included.
|
|
262
|
+
*/
|
|
263
|
+
export declare function allDescendantIds(childMap: Map<string, string[]>, sessionId: string): string[];
|
|
264
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/turns/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EACf,oBAAoB,EAEpB,kBAAkB,EAClB,QAAQ,EACR,eAAe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