@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,181 @@
|
|
|
1
|
+
import { getClient } from '../../opencode/client.js';
|
|
2
|
+
import { unwrap } from './shared.js';
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// File Search (direct SDK call, not a hook)
|
|
5
|
+
// ============================================================================
|
|
6
|
+
let mentionFileIndexCache;
|
|
7
|
+
let mentionDirScanCache;
|
|
8
|
+
export async function findOpenCodeFiles(query) {
|
|
9
|
+
const client = getClient();
|
|
10
|
+
const normalizedQuery = query.trim();
|
|
11
|
+
const ql = normalizedQuery.toLowerCase();
|
|
12
|
+
const rankFile = (path) => {
|
|
13
|
+
const lower = path.toLowerCase();
|
|
14
|
+
const base = lower.split('/').pop() ?? lower;
|
|
15
|
+
const depth = path.split('/').length - 1;
|
|
16
|
+
if (ql.length === 0)
|
|
17
|
+
return depth;
|
|
18
|
+
if (base === ql)
|
|
19
|
+
return 0 + depth * 0.01;
|
|
20
|
+
if (base.startsWith(ql))
|
|
21
|
+
return 10 + depth * 0.01;
|
|
22
|
+
if (base.includes(ql))
|
|
23
|
+
return 20 + depth * 0.01;
|
|
24
|
+
if (lower.startsWith(ql))
|
|
25
|
+
return 30 + depth * 0.01;
|
|
26
|
+
if (lower.includes(ql))
|
|
27
|
+
return 40 + depth * 0.01;
|
|
28
|
+
return 1000 + depth;
|
|
29
|
+
};
|
|
30
|
+
const fileMatchesQuery = (path) => {
|
|
31
|
+
if (ql.length === 0)
|
|
32
|
+
return true;
|
|
33
|
+
const lower = path.toLowerCase();
|
|
34
|
+
if (lower.includes(ql))
|
|
35
|
+
return true;
|
|
36
|
+
const base = lower.split('/').pop() ?? lower;
|
|
37
|
+
return base.includes(ql);
|
|
38
|
+
};
|
|
39
|
+
const readEntries = async (request) => {
|
|
40
|
+
try {
|
|
41
|
+
const result = await request;
|
|
42
|
+
const entries = unwrap(result);
|
|
43
|
+
if (!Array.isArray(entries))
|
|
44
|
+
return [];
|
|
45
|
+
const normalized = [];
|
|
46
|
+
for (const entry of entries) {
|
|
47
|
+
if (typeof entry === 'string' && entry.length > 0) {
|
|
48
|
+
normalized.push(entry);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (entry && typeof entry === 'object') {
|
|
52
|
+
const maybePath = entry.path;
|
|
53
|
+
const maybeType = entry.type;
|
|
54
|
+
if (typeof maybePath === 'string' && maybePath.length > 0) {
|
|
55
|
+
if (maybeType === 'directory' && !maybePath.endsWith('/')) {
|
|
56
|
+
normalized.push(`${maybePath}/`);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
normalized.push(maybePath);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return normalized;
|
|
65
|
+
}
|
|
66
|
+
catch {
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const [strictFiles, broadResults] = await Promise.all([
|
|
71
|
+
readEntries(client.find.files({ query: normalizedQuery, type: 'file', limit: 80 })),
|
|
72
|
+
readEntries(client.find.files({ query: normalizedQuery, limit: 80 })),
|
|
73
|
+
]);
|
|
74
|
+
const fileMatches = new Set();
|
|
75
|
+
const directoryMatches = [];
|
|
76
|
+
for (const entry of [...strictFiles, ...broadResults]) {
|
|
77
|
+
if (entry.endsWith('/')) {
|
|
78
|
+
directoryMatches.push(entry);
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
fileMatches.add(entry);
|
|
82
|
+
}
|
|
83
|
+
if (fileMatches.size < 20 && normalizedQuery.length > 0 && directoryMatches.length > 0) {
|
|
84
|
+
const expandedDirs = directoryMatches.slice(0, 6);
|
|
85
|
+
const dirChildren = await Promise.all(expandedDirs.map(async (dir) => {
|
|
86
|
+
const path = dir.endsWith('/') ? dir.slice(0, -1) : dir;
|
|
87
|
+
const children = await readEntries(client.file.list({ path }));
|
|
88
|
+
return children
|
|
89
|
+
.filter((child) => !child.endsWith('/'))
|
|
90
|
+
.filter((child) => fileMatchesQuery(child));
|
|
91
|
+
}));
|
|
92
|
+
for (const group of dirChildren) {
|
|
93
|
+
for (const child of group) {
|
|
94
|
+
fileMatches.add(child);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// Explicit root scan fallback for @mentions.
|
|
99
|
+
// Some backends under-return root-level files via find.files(query).
|
|
100
|
+
if (normalizedQuery.length > 0 && fileMatches.size < 20) {
|
|
101
|
+
const [rootWorkspace, rootEmpty] = await Promise.all([
|
|
102
|
+
readEntries(client.file.list({ path: '/workspace' })),
|
|
103
|
+
readEntries(client.file.list({ path: '' })),
|
|
104
|
+
]);
|
|
105
|
+
for (const entry of [...rootWorkspace, ...rootEmpty]) {
|
|
106
|
+
if (entry.endsWith('/'))
|
|
107
|
+
continue;
|
|
108
|
+
if (fileMatchesQuery(entry))
|
|
109
|
+
fileMatches.add(entry);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// Directory scan fallback for @mentions.
|
|
113
|
+
// Builds a lightweight index from root + first-level directories (e.g.
|
|
114
|
+
// /workspace/Desktop, /workspace/test) to catch substring matches that
|
|
115
|
+
// find.files(query) may miss.
|
|
116
|
+
if (normalizedQuery.length > 0 && fileMatches.size < 20) {
|
|
117
|
+
const now = Date.now();
|
|
118
|
+
const cacheFresh = mentionDirScanCache && now - mentionDirScanCache.fetchedAt < 60_000;
|
|
119
|
+
if (!cacheFresh) {
|
|
120
|
+
const roots = await Promise.all([
|
|
121
|
+
readEntries(client.file.list({ path: '/workspace' })),
|
|
122
|
+
readEntries(client.file.list({ path: '' })),
|
|
123
|
+
]);
|
|
124
|
+
const rootEntries = Array.from(new Set([...roots[0], ...roots[1]]));
|
|
125
|
+
const fileSet = new Set();
|
|
126
|
+
const firstLevelDirs = rootEntries
|
|
127
|
+
.filter((entry) => entry.endsWith('/'))
|
|
128
|
+
.map((entry) => (entry.endsWith('/') ? entry.slice(0, -1) : entry))
|
|
129
|
+
.slice(0, 80);
|
|
130
|
+
for (const entry of rootEntries) {
|
|
131
|
+
if (!entry.endsWith('/'))
|
|
132
|
+
fileSet.add(entry);
|
|
133
|
+
}
|
|
134
|
+
const childLists = await Promise.all(firstLevelDirs.map((dir) => readEntries(client.file.list({ path: dir }))));
|
|
135
|
+
for (const children of childLists) {
|
|
136
|
+
for (const child of children) {
|
|
137
|
+
if (!child.endsWith('/'))
|
|
138
|
+
fileSet.add(child);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
mentionDirScanCache = {
|
|
142
|
+
files: Array.from(fileSet),
|
|
143
|
+
fetchedAt: now,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
for (const path of mentionDirScanCache?.files ?? []) {
|
|
147
|
+
if (fileMatchesQuery(path))
|
|
148
|
+
fileMatches.add(path);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
// Fallback index for @mentions: some backends return sparse results for
|
|
152
|
+
// incremental filename fragments. Build/cached a broad file index and filter
|
|
153
|
+
// client-side to keep mention search responsive and tolerant.
|
|
154
|
+
if (normalizedQuery.length > 0 && fileMatches.size < 10) {
|
|
155
|
+
const now = Date.now();
|
|
156
|
+
const cacheFresh = mentionFileIndexCache && now - mentionFileIndexCache.fetchedAt < 60_000;
|
|
157
|
+
if (!cacheFresh) {
|
|
158
|
+
const [indexStrict, indexBroad] = await Promise.all([
|
|
159
|
+
readEntries(client.find.files({ query: '', type: 'file', limit: 2000 })),
|
|
160
|
+
readEntries(client.find.files({ query: '', limit: 2000 })),
|
|
161
|
+
]);
|
|
162
|
+
const indexSet = new Set();
|
|
163
|
+
for (const entry of [...indexStrict, ...indexBroad]) {
|
|
164
|
+
if (!entry.endsWith('/'))
|
|
165
|
+
indexSet.add(entry);
|
|
166
|
+
}
|
|
167
|
+
mentionFileIndexCache = {
|
|
168
|
+
files: Array.from(indexSet),
|
|
169
|
+
fetchedAt: now,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
for (const path of mentionFileIndexCache?.files ?? []) {
|
|
173
|
+
if (fileMatchesQuery(path))
|
|
174
|
+
fileMatches.add(path);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return Array.from(fileMatches)
|
|
178
|
+
.sort((a, b) => rankFile(a) - rankFile(b) || a.localeCompare(b))
|
|
179
|
+
.slice(0, 20);
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/react/use-opencode-sessions/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,+EAA+E;AAC/E,4CAA4C;AAC5C,+EAA+E;AAE/E,IAAI,qBAKS,CAAC;AAEd,I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K,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './keys.js';
|
|
2
|
+
export * from './sessions.js';
|
|
3
|
+
export * from './messages.js';
|
|
4
|
+
export * from './agents.js';
|
|
5
|
+
export * from './tools.js';
|
|
6
|
+
export * from './projects.js';
|
|
7
|
+
export * from './commands.js';
|
|
8
|
+
export * from './providers.js';
|
|
9
|
+
export * from './mcp.js';
|
|
10
|
+
export * from './sharing.js';
|
|
11
|
+
export * from './parts.js';
|
|
12
|
+
export * from './files.js';
|
|
13
|
+
export * from './permissions.js';
|
|
14
|
+
export { canQueryOpenCodeSession, clearProjectProviderCache } from './shared.js';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/use-opencode-sessions/index.ts"],"names":[],"mappings":"AAKA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Barrel for the OpenCode React hook surface, split into topical modules.
|
|
2
|
+
// Re-exports the EXACT public surface of the original use-opencode-sessions.ts
|
|
3
|
+
// (every useOpenCode* hook, the query-key factory, helpers, types, and SDK type
|
|
4
|
+
// re-exports). Internal helpers live in ./shared and are intentionally NOT
|
|
5
|
+
// re-exported here.
|
|
6
|
+
export * from './keys.js';
|
|
7
|
+
export * from './sessions.js';
|
|
8
|
+
export * from './messages.js';
|
|
9
|
+
export * from './agents.js';
|
|
10
|
+
export * from './tools.js';
|
|
11
|
+
export * from './projects.js';
|
|
12
|
+
export * from './commands.js';
|
|
13
|
+
export * from './providers.js';
|
|
14
|
+
export * from './mcp.js';
|
|
15
|
+
export * from './sharing.js';
|
|
16
|
+
export * from './parts.js';
|
|
17
|
+
export * from './files.js';
|
|
18
|
+
export * from './permissions.js';
|
|
19
|
+
// Public session/cache helpers that live in ./shared (otherwise internal).
|
|
20
|
+
export { canQueryOpenCodeSession, clearProjectProviderCache } from './shared.js';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/use-opencode-sessions/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,+EAA+E;AAC/E,gFAAgF;AAChF,2EAA2E;AAC3E,oBAAoB;AACpB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAE9B,2EAA2E;AAC3E,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Session, Message, Part, Agent, Command, Project, SessionStatus, PermissionRule, Model, McpStatus, Path as PathInfo, ProviderListResponse as SdkProviderListResponse, Worktree, WorktreeCreateInput, WorktreeRemoveInput, WorktreeResetInput } from '@opencode-ai/sdk/v2/client';
|
|
2
|
+
export type { Session, Message, Part, Agent, Command, Project, SessionStatus, PermissionRule, Model, McpStatus, PathInfo, Worktree, WorktreeCreateInput, WorktreeRemoveInput, WorktreeResetInput };
|
|
3
|
+
/**
|
|
4
|
+
* Shape returned by `client.session.messages()`:
|
|
5
|
+
* `Array<{ info: Message; parts: Part[] }>`
|
|
6
|
+
*/
|
|
7
|
+
export interface MessageWithParts {
|
|
8
|
+
info: Message;
|
|
9
|
+
parts: Part[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Provider list response — matches the actual SDK response from `client.provider.list()`.
|
|
13
|
+
* The SDK's inline model shape differs from the `Model` type, so we use the SDK's
|
|
14
|
+
* response type directly.
|
|
15
|
+
*/
|
|
16
|
+
export type ProviderListResponse = SdkProviderListResponse;
|
|
17
|
+
/**
|
|
18
|
+
* Prompt part (input to send message).
|
|
19
|
+
* Supports text, file references, and agent/mode mentions.
|
|
20
|
+
*/
|
|
21
|
+
export type PromptPart = {
|
|
22
|
+
type: 'text';
|
|
23
|
+
text: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'file';
|
|
27
|
+
mime: string;
|
|
28
|
+
url: string;
|
|
29
|
+
filename?: string;
|
|
30
|
+
source?: {
|
|
31
|
+
text: {
|
|
32
|
+
value: string;
|
|
33
|
+
start: number;
|
|
34
|
+
end: number;
|
|
35
|
+
};
|
|
36
|
+
type: 'file';
|
|
37
|
+
path: string;
|
|
38
|
+
};
|
|
39
|
+
} | {
|
|
40
|
+
type: 'agent';
|
|
41
|
+
name: string;
|
|
42
|
+
source?: {
|
|
43
|
+
value: string;
|
|
44
|
+
start: number;
|
|
45
|
+
end: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export interface SendMessageOptions {
|
|
49
|
+
model?: {
|
|
50
|
+
providerID: string;
|
|
51
|
+
modelID: string;
|
|
52
|
+
};
|
|
53
|
+
agent?: string;
|
|
54
|
+
variant?: string;
|
|
55
|
+
/** Session's working directory — lets opencode resolve project-scoped
|
|
56
|
+
* (`.opencode/agent/*.md`) agents when `agent` names one of them. */
|
|
57
|
+
directory?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Skill type from `client.app.skills()`.
|
|
61
|
+
*/
|
|
62
|
+
export interface Skill {
|
|
63
|
+
name: string;
|
|
64
|
+
description: string;
|
|
65
|
+
location: string;
|
|
66
|
+
content: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Tool list item from `client.tool.list()`.
|
|
70
|
+
*/
|
|
71
|
+
export interface ToolListItem {
|
|
72
|
+
id: string;
|
|
73
|
+
description: string;
|
|
74
|
+
parameters: unknown;
|
|
75
|
+
}
|
|
76
|
+
export declare const opencodeKeys: {
|
|
77
|
+
all: readonly ["opencode"];
|
|
78
|
+
sessions: (serverId?: string) => readonly ["opencode", "sessions", string];
|
|
79
|
+
session: (id: string) => readonly ["opencode", "session", string];
|
|
80
|
+
messages: (sessionId: string) => readonly ["opencode", "session", string, "messages"];
|
|
81
|
+
agents: () => readonly ["opencode", "agents", string];
|
|
82
|
+
toolIds: () => readonly ["opencode", "tool-ids", string];
|
|
83
|
+
tools: (providerID: string, modelID: string) => readonly ["opencode", "tools", string, string, string];
|
|
84
|
+
skills: () => readonly ["opencode", "skills", string];
|
|
85
|
+
projects: () => readonly ["opencode", "projects", string];
|
|
86
|
+
currentProject: () => readonly ["opencode", "project", "current", string];
|
|
87
|
+
commands: () => readonly ["opencode", "commands", string];
|
|
88
|
+
providers: () => readonly ["opencode", "providers", string];
|
|
89
|
+
pathInfo: () => readonly ["opencode", "path-info", string];
|
|
90
|
+
mcpStatus: () => readonly ["opencode", "mcp-status", string];
|
|
91
|
+
worktrees: () => readonly ["opencode", "worktrees", string];
|
|
92
|
+
};
|
|
93
|
+
export declare function useOpenCodeRuntimeReady(): boolean;
|
|
94
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE5F,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;yEACqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAMD,eAAO,MAAM,YAAY;;0BAED,MAAM;kBACd,MAAM;0BACE,MAAM;;;wBAGR,MAAM,WAAW,MAAM;;;;;;;;;CAS5C,CAAC;AAEF,wBAAgB,uBAAuB,YActC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useSandboxConnectionStore } from '../../state/sandbox-connection-store.js';
|
|
3
|
+
import { getActiveOpenCodeUrl } from '../../state/server-store/active.js';
|
|
4
|
+
import { useCurrentRuntime } from '../use-current-runtime.js';
|
|
5
|
+
import { activeServerKey } from './shared.js';
|
|
6
|
+
// ============================================================================
|
|
7
|
+
// Query Keys
|
|
8
|
+
// ============================================================================
|
|
9
|
+
export const opencodeKeys = {
|
|
10
|
+
all: ['opencode'],
|
|
11
|
+
sessions: (serverId) => ['opencode', 'sessions', serverId ?? activeServerKey()],
|
|
12
|
+
session: (id) => ['opencode', 'session', id],
|
|
13
|
+
messages: (sessionId) => ['opencode', 'session', sessionId, 'messages'],
|
|
14
|
+
agents: () => ['opencode', 'agents', activeServerKey()],
|
|
15
|
+
toolIds: () => ['opencode', 'tool-ids', activeServerKey()],
|
|
16
|
+
tools: (providerID, modelID) => ['opencode', 'tools', providerID, modelID, activeServerKey()],
|
|
17
|
+
skills: () => ['opencode', 'skills', activeServerKey()],
|
|
18
|
+
projects: () => ['opencode', 'projects', activeServerKey()],
|
|
19
|
+
currentProject: () => ['opencode', 'project', 'current', activeServerKey()],
|
|
20
|
+
commands: () => ['opencode', 'commands', activeServerKey()],
|
|
21
|
+
providers: () => ['opencode', 'providers', activeServerKey()],
|
|
22
|
+
pathInfo: () => ['opencode', 'path-info', activeServerKey()],
|
|
23
|
+
mcpStatus: () => ['opencode', 'mcp-status', activeServerKey()],
|
|
24
|
+
worktrees: () => ['opencode', 'worktrees', activeServerKey()],
|
|
25
|
+
};
|
|
26
|
+
export function useOpenCodeRuntimeReady() {
|
|
27
|
+
const connectedHealthy = useSandboxConnectionStore((s) => s.status === 'connected' && s.healthy === true);
|
|
28
|
+
// The health gate can flip true BEFORE the runtime URL is pinned — billing
|
|
29
|
+
// envs seed healthy=true optimistically, ahead of useSession's
|
|
30
|
+
// setCurrentRuntime(). Firing an opencode query in that gap makes getClient()
|
|
31
|
+
// throw "Server URL not ready — sandbox is still loading". So also require a
|
|
32
|
+
// resolved URL: subscribe to the runtime url (recomputes the instant the
|
|
33
|
+
// runtime pins) and fall back to getActiveOpenCodeUrl(), which covers the
|
|
34
|
+
// self-hosted default-sandbox case where the store url stays null.
|
|
35
|
+
const runtimeUrl = useCurrentRuntime((s) => s.url);
|
|
36
|
+
const hasUrl = !!(runtimeUrl || getActiveOpenCodeUrl());
|
|
37
|
+
return connectedHealthy && hasUrl;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingUR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CAAC;AAQ5D,wBAAgB,oBAAoB,8FAanC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
import { getClient } from '../../opencode/client.js';
|
|
4
|
+
import { opencodeKeys, useOpenCodeRuntimeReady } from './keys.js';
|
|
5
|
+
import { unwrap } from './shared.js';
|
|
6
|
+
// ============================================================================
|
|
7
|
+
// MCP Status Hook
|
|
8
|
+
// ============================================================================
|
|
9
|
+
export function useOpenCodeMcpStatus() {
|
|
10
|
+
const runtimeReady = useOpenCodeRuntimeReady();
|
|
11
|
+
return useQuery({
|
|
12
|
+
queryKey: opencodeKeys.mcpStatus(),
|
|
13
|
+
queryFn: async () => {
|
|
14
|
+
const client = getClient();
|
|
15
|
+
const result = await client.mcp.status();
|
|
16
|
+
return unwrap(result);
|
|
17
|
+
},
|
|
18
|
+
enabled: runtimeReady,
|
|
19
|
+
staleTime: Infinity,
|
|
20
|
+
gcTime: 5 * 60 * 1000,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=mcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../src/react/use-opencode-sessions/mcp.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E,MAAM,UAAU,oBAAoB;IAClC,MAAM,YAAY,GAAG,uBAAuB,EAAE,CAAC;IAC/C,OAAO,QAAQ,CAA4B;QACzC,QAAQ,EAAE,YAAY,CAAC,SAAS,EAAE;QAClC,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;YACzC,OAAO,MAAM,CAAC,MAAM,CAA8B,CAAC;QACrD,CAAC;QACD,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KACtB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { MessageWithParts, PromptPart, SendMessageOptions } from './keys.js';
|
|
2
|
+
/** Pull a human-readable message out of any error/response-error shape. */
|
|
3
|
+
export declare function extractSendErrorMessage(error: unknown): string;
|
|
4
|
+
/**
|
|
5
|
+
* The sandbox proxy returns `503 "opencode not ready"` while opencode's binary
|
|
6
|
+
* is still booting inside a freshly-created sandbox — or while a sandbox is
|
|
7
|
+
* waking from auto-stop and rebinding its port. Match the common "not ready /
|
|
8
|
+
* waking / booting / provisioning" shapes, not just the exact string.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isOpenCodeNotReadyError(error: unknown): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* A status the server might recover from on its own: no status (thrown
|
|
13
|
+
* transport error), any 5xx, or a 408/429 backpressure signal. A 4xx is a real
|
|
14
|
+
* client error (bad request / auth / unknown model) and is never retried.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isTransientSendStatus(status: number | undefined): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Delay (ms) to wait before the next send attempt, or `null` when the send
|
|
19
|
+
* should stop retrying and surface the error.
|
|
20
|
+
*
|
|
21
|
+
* @param attempt 1-based index of the attempt that just failed (1 = first send).
|
|
22
|
+
* The returned delay precedes attempt `attempt + 1`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getSendRetryDelayMs(attempt: number, status: number | undefined, error: unknown): number | null;
|
|
25
|
+
export declare function useOpenCodeMessages(sessionId: string): {
|
|
26
|
+
data: MessageWithParts[] | undefined;
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
isError: boolean;
|
|
29
|
+
error: null;
|
|
30
|
+
refetch: () => Promise<{
|
|
31
|
+
data: MessageWithParts[];
|
|
32
|
+
}>;
|
|
33
|
+
};
|
|
34
|
+
export declare function ascendingId(prefix?: 'msg' | 'prt'): string;
|
|
35
|
+
export interface SendOpenCodeMessageArgs {
|
|
36
|
+
sessionId: string;
|
|
37
|
+
parts: PromptPart[];
|
|
38
|
+
options?: SendMessageOptions;
|
|
39
|
+
messageID?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Error thrown by `promptOpenCodeMessage` on a non-2xx response — carries the
|
|
42
|
+
* HTTP status (mirroring `response`/`status` so `parseBillingError` can detect
|
|
43
|
+
* a 402) alongside the raw error payload. */
|
|
44
|
+
export interface SendOpenCodeMessageError extends Error {
|
|
45
|
+
status?: number;
|
|
46
|
+
response?: {
|
|
47
|
+
status: number;
|
|
48
|
+
};
|
|
49
|
+
data?: unknown;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Send a prompt to a session via `session.promptAsync()` — the server accepts
|
|
53
|
+
* the prompt and returns immediately (204); the actual turn streams back over
|
|
54
|
+
* SSE into the sync store. Callers must NOT await this for the turn to finish,
|
|
55
|
+
* only for the server's accept/reject of the prompt itself.
|
|
56
|
+
*
|
|
57
|
+
* Retries transient failures (a thrown transport error, or a 5xx/408/429
|
|
58
|
+
* response) with backoff — see the retry policy above. The sandbox proxy's
|
|
59
|
+
* `503 "opencode not ready"` boot signal gets the full ~30s boot/wake window so
|
|
60
|
+
* the very first prompt against a cold or waking sandbox lands on its own
|
|
61
|
+
* instead of surfacing an error the user can't act on. A real 4xx (bad
|
|
62
|
+
* request / auth / unknown model) is never retried.
|
|
63
|
+
*
|
|
64
|
+
* `getClient()` is resolved INSIDE the retry loop (not once up front) so its
|
|
65
|
+
* own "Server URL not ready" throw — the runtime url not pinned yet, which a
|
|
66
|
+
* brand-new session's very first prompt can race — gets the same boot-window
|
|
67
|
+
* retry treatment instead of propagating instantly with zero retries.
|
|
68
|
+
*
|
|
69
|
+
* Extracted from `useSendOpenCodeMessage`'s mutationFn so it's a plain async
|
|
70
|
+
* function callable — and unit-testable — without a mutation/hook context.
|
|
71
|
+
*/
|
|
72
|
+
export declare function promptOpenCodeMessage({ sessionId, parts, options, messageID, }: SendOpenCodeMessageArgs): Promise<void>;
|
|
73
|
+
export declare function useSendOpenCodeMessage(): import("@tanstack/react-query").UseMutationResult<void, Error, SendOpenCodeMessageArgs, unknown>;
|
|
74
|
+
export declare function useAbortOpenCodeSession(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
|
|
75
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/react/use-opencode-sessions/messages.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAiC/E,2EAA2E;AAC3E,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAgB9D;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI/D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEzE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,KAAK,EAAE,OAAO,GACb,MAAM,GAAG,IAAI,CAef;AAqFD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM;;;;;;;;EAiBpD;AAaD,wBAAgB,WAAW,CAAC,MAAM,GAAE,KAAK,GAAG,KAAa,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