@kortix/sdk 0.14.19 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +262 -22
- package/dist/browser/session-sync/server-transcript-mirror.d.ts +4 -4
- package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
- package/dist/browser/session-sync/server-transcript-mirror.js +5 -5
- package/dist/browser/session-sync/server-transcript-mirror.js.map +1 -1
- package/dist/browser/session-sync/session-cache-ownership.d.ts +5 -5
- package/dist/browser/session-sync/session-cache-ownership.js +5 -5
- package/dist/browser/session-sync/session-sync-registry.d.ts +1 -1
- package/dist/browser/session-sync/session-sync-registry.js +1 -1
- package/dist/browser/stores/{opencode-compaction-store.d.ts → runtime-compaction-store.d.ts} +3 -3
- package/dist/browser/stores/runtime-compaction-store.d.ts.map +1 -0
- package/dist/browser/stores/{opencode-compaction-store.js → runtime-compaction-store.js} +2 -2
- package/dist/browser/stores/runtime-compaction-store.js.map +1 -0
- package/dist/browser/stores/{opencode-pending-store.d.ts → runtime-pending-store.d.ts} +3 -5
- package/dist/browser/stores/runtime-pending-store.d.ts.map +1 -0
- package/dist/browser/stores/{opencode-pending-store.js → runtime-pending-store.js} +1 -4
- package/dist/browser/stores/runtime-pending-store.js.map +1 -0
- package/dist/browser/stores/sandbox-connection-store.d.ts +18 -5
- package/dist/browser/stores/sandbox-connection-store.d.ts.map +1 -1
- package/dist/browser/stores/sandbox-connection-store.js +57 -6
- package/dist/browser/stores/sandbox-connection-store.js.map +1 -1
- package/dist/browser/stores/server-store.d.ts +1 -1
- package/dist/browser/stores/server-store.d.ts.map +1 -1
- package/dist/browser/stores/server-store.js +2 -2
- package/dist/browser/stores/server-store.js.map +1 -1
- package/dist/browser/stores/sync-store.d.ts +2 -2
- package/dist/browser/stores/sync-store.js +3 -3
- package/dist/browser/stores/sync-store.js.map +1 -1
- package/dist/core/agents/composer-agents.d.ts +0 -2
- package/dist/core/agents/composer-agents.d.ts.map +1 -1
- package/dist/core/agents/composer-agents.js +3 -6
- package/dist/core/agents/composer-agents.js.map +1 -1
- package/dist/core/artifact-doc/base64.d.ts +17 -0
- package/dist/core/artifact-doc/base64.d.ts.map +1 -0
- package/dist/core/artifact-doc/base64.js +69 -0
- package/dist/core/artifact-doc/base64.js.map +1 -0
- package/dist/core/artifact-doc/index.d.ts +7 -0
- package/dist/core/artifact-doc/index.d.ts.map +1 -0
- package/dist/core/artifact-doc/index.js +7 -0
- package/dist/core/artifact-doc/index.js.map +1 -0
- package/dist/core/artifact-doc/sync.d.ts +178 -0
- package/dist/core/artifact-doc/sync.d.ts.map +1 -0
- package/dist/core/artifact-doc/sync.js +838 -0
- package/dist/core/artifact-doc/sync.js.map +1 -0
- package/dist/core/artifact-live/connection.d.ts +116 -0
- package/dist/core/artifact-live/connection.d.ts.map +1 -0
- package/dist/core/artifact-live/connection.js +433 -0
- package/dist/core/artifact-live/connection.js.map +1 -0
- package/dist/core/artifact-live/index.d.ts +8 -0
- package/dist/core/artifact-live/index.d.ts.map +1 -0
- package/dist/core/artifact-live/index.js +7 -0
- package/dist/core/artifact-live/index.js.map +1 -0
- package/dist/core/artifact-live/protocol.d.ts +167 -0
- package/dist/core/artifact-live/protocol.d.ts.map +1 -0
- package/dist/core/artifact-live/protocol.js +153 -0
- package/dist/core/artifact-live/protocol.js.map +1 -0
- package/dist/core/client/facade-accounts.d.ts +5 -0
- package/dist/core/client/facade-accounts.d.ts.map +1 -1
- package/dist/core/client/facade-accounts.js +5 -0
- package/dist/core/client/facade-accounts.js.map +1 -1
- package/dist/core/client/facade-commerce.d.ts +2 -0
- package/dist/core/client/facade-commerce.d.ts.map +1 -1
- package/dist/core/client/facade-commerce.js +2 -0
- package/dist/core/client/facade-commerce.js.map +1 -1
- package/dist/core/client/facade-identity.d.ts +5 -0
- package/dist/core/client/facade-identity.d.ts.map +1 -1
- package/dist/core/client/kortix.d.ts +83 -15
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/project-access-resources.d.ts +13 -0
- package/dist/core/client/project-access-resources.d.ts.map +1 -1
- package/dist/core/client/project-access-resources.js +8 -0
- package/dist/core/client/project-access-resources.js.map +1 -1
- package/dist/core/client/project-artifacts.d.ts +40 -0
- package/dist/core/client/project-artifacts.d.ts.map +1 -1
- package/dist/core/client/project-artifacts.js +16 -0
- package/dist/core/client/project-artifacts.js.map +1 -1
- package/dist/core/client/project-core.d.ts +5 -3
- package/dist/core/client/project-core.d.ts.map +1 -1
- package/dist/core/client/project-core.js +2 -0
- package/dist/core/client/project-core.js.map +1 -1
- package/dist/core/client/project-operations-admin.d.ts +22 -13
- package/dist/core/client/project-operations-admin.d.ts.map +1 -1
- package/dist/core/client/project-operations-admin.js +5 -1
- package/dist/core/client/project-operations-admin.js.map +1 -1
- package/dist/core/client/project-operations-review.d.ts +8 -1
- package/dist/core/client/project-operations-review.d.ts.map +1 -1
- package/dist/core/client/project-operations-review.js +8 -1
- package/dist/core/client/project-operations-review.js.map +1 -1
- package/dist/core/client/project-operations-workspace.d.ts +5 -0
- package/dist/core/client/project-operations-workspace.d.ts.map +1 -1
- package/dist/core/client/project-operations.d.ts +17 -12
- package/dist/core/client/project-operations.d.ts.map +1 -1
- package/dist/core/client/project-platform-resources.d.ts +1 -0
- package/dist/core/client/project-platform-resources.d.ts.map +1 -1
- package/dist/core/client/project-platform-resources.js +1 -0
- package/dist/core/client/project-platform-resources.js.map +1 -1
- package/dist/core/client/session-actions-resources.d.ts +9 -3
- package/dist/core/client/session-actions-resources.d.ts.map +1 -1
- package/dist/core/client/session-actions-resources.js +11 -3
- package/dist/core/client/session-actions-resources.js.map +1 -1
- package/dist/core/client/session-handle.d.ts +5 -1
- package/dist/core/client/session-handle.d.ts.map +1 -1
- package/dist/core/client/session-handle.js +3 -3
- package/dist/core/client/session-handle.js.map +1 -1
- package/dist/core/client/session-start.js +1 -1
- package/dist/core/client/session-start.js.map +1 -1
- package/dist/core/connectors/connect-link.d.ts +81 -0
- package/dist/core/connectors/connect-link.d.ts.map +1 -0
- package/dist/core/connectors/connect-link.js +134 -0
- package/dist/core/connectors/connect-link.js.map +1 -0
- package/dist/core/connectors/connector-accounts.d.ts +154 -0
- package/dist/core/connectors/connector-accounts.d.ts.map +1 -0
- package/dist/core/connectors/connector-accounts.js +234 -0
- package/dist/core/connectors/connector-accounts.js.map +1 -0
- package/dist/core/connectors/connector-oauth2-sign-in.d.ts +108 -0
- package/dist/core/connectors/connector-oauth2-sign-in.d.ts.map +1 -0
- package/dist/core/connectors/connector-oauth2-sign-in.js +164 -0
- package/dist/core/connectors/connector-oauth2-sign-in.js.map +1 -0
- package/dist/core/connectors/connector-status.d.ts +49 -0
- package/dist/core/connectors/connector-status.d.ts.map +1 -0
- package/dist/core/connectors/connector-status.js +116 -0
- package/dist/core/connectors/connector-status.js.map +1 -0
- package/dist/core/files/client.d.ts.map +1 -1
- package/dist/core/files/client.js +1 -1
- package/dist/core/files/client.js.map +1 -1
- package/dist/core/files/types.d.ts +0 -2
- package/dist/core/files/types.d.ts.map +1 -1
- package/dist/core/http/abort-error.d.ts +12 -13
- package/dist/core/http/abort-error.d.ts.map +1 -1
- package/dist/core/http/abort-error.js +14 -15
- package/dist/core/http/abort-error.js.map +1 -1
- package/dist/core/http/api-client.js +2 -2
- package/dist/core/http/api-client.js.map +1 -1
- package/dist/core/http/config.d.ts +2 -2
- package/dist/core/http/config.d.ts.map +1 -1
- package/dist/core/http/response-error.d.ts.map +1 -1
- package/dist/core/http/response-error.js +2 -0
- package/dist/core/http/response-error.js.map +1 -1
- package/dist/core/http/runtime-errors.d.ts +4 -37
- package/dist/core/http/runtime-errors.d.ts.map +1 -1
- package/dist/core/http/runtime-errors.js +7 -48
- package/dist/core/http/runtime-errors.js.map +1 -1
- package/dist/core/models/composer-model.d.ts +4 -4
- package/dist/core/models/composer-model.d.ts.map +1 -1
- package/dist/core/models/composer-model.js +8 -8
- package/dist/core/models/composer-model.js.map +1 -1
- package/dist/core/models/provider-connections.d.ts +177 -0
- package/dist/core/models/provider-connections.d.ts.map +1 -0
- package/dist/core/models/provider-connections.js +190 -0
- package/dist/core/models/provider-connections.js.map +1 -0
- package/dist/core/models/provider-selection.js +1 -1
- package/dist/core/models/provider-selection.js.map +1 -1
- package/dist/core/multi-agent/tool-data.d.ts +77 -0
- package/dist/core/multi-agent/tool-data.d.ts.map +1 -0
- package/dist/core/multi-agent/tool-data.js +145 -0
- package/dist/core/multi-agent/tool-data.js.map +1 -0
- package/dist/core/rest/platform-client/capture.d.ts +107 -1
- package/dist/core/rest/platform-client/capture.d.ts.map +1 -1
- package/dist/core/rest/platform-client/capture.js.map +1 -1
- package/dist/core/rest/projects-client/account-secret-resources.d.ts +58 -0
- package/dist/core/rest/projects-client/account-secret-resources.d.ts.map +1 -1
- package/dist/core/rest/projects-client/account-secret-resources.js +16 -0
- package/dist/core/rest/projects-client/account-secret-resources.js.map +1 -1
- package/dist/core/rest/projects-client/agent-capabilities.d.ts +1 -1
- package/dist/core/rest/projects-client/agent-capabilities.d.ts.map +1 -1
- package/dist/core/rest/projects-client/agent-capabilities.js +10 -4
- package/dist/core/rest/projects-client/agent-capabilities.js.map +1 -1
- package/dist/core/rest/projects-client/agent-config.d.ts +7 -10
- package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
- package/dist/core/rest/projects-client/agent-config.js.map +1 -1
- package/dist/core/rest/projects-client/apps.d.ts +94 -1
- package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
- package/dist/core/rest/projects-client/apps.js +37 -1
- package/dist/core/rest/projects-client/apps.js.map +1 -1
- package/dist/core/rest/projects-client/artifact-doc.d.ts +118 -0
- package/dist/core/rest/projects-client/artifact-doc.d.ts.map +1 -0
- package/dist/core/rest/projects-client/artifact-doc.js +122 -0
- package/dist/core/rest/projects-client/artifact-doc.js.map +1 -0
- package/dist/core/rest/projects-client/artifact-live.d.ts +22 -0
- package/dist/core/rest/projects-client/artifact-live.d.ts.map +1 -0
- package/dist/core/rest/projects-client/artifact-live.js +25 -0
- package/dist/core/rest/projects-client/artifact-live.js.map +1 -0
- package/dist/core/rest/projects-client/artifacts.d.ts +17 -0
- package/dist/core/rest/projects-client/artifacts.d.ts.map +1 -1
- package/dist/core/rest/projects-client/artifacts.js +35 -6
- package/dist/core/rest/projects-client/artifacts.js.map +1 -1
- package/dist/core/rest/projects-client/asks.d.ts +76 -0
- package/dist/core/rest/projects-client/asks.d.ts.map +1 -0
- package/dist/core/rest/projects-client/asks.js +17 -0
- package/dist/core/rest/projects-client/asks.js.map +1 -0
- package/dist/core/rest/projects-client/audit.d.ts +0 -2
- package/dist/core/rest/projects-client/audit.d.ts.map +1 -1
- package/dist/core/rest/projects-client/audit.js.map +1 -1
- package/dist/core/rest/projects-client/billing.d.ts +20 -0
- package/dist/core/rest/projects-client/billing.d.ts.map +1 -1
- package/dist/core/rest/projects-client/billing.js +10 -0
- package/dist/core/rest/projects-client/billing.js.map +1 -1
- package/dist/core/rest/projects-client/channels.d.ts +2 -2
- package/dist/core/rest/projects-client/channels.d.ts.map +1 -1
- package/dist/core/rest/projects-client/drives.d.ts +5 -0
- package/dist/core/rest/projects-client/drives.d.ts.map +1 -1
- package/dist/core/rest/projects-client/drives.js.map +1 -1
- package/dist/core/rest/projects-client/gateway.d.ts +50 -2
- package/dist/core/rest/projects-client/gateway.d.ts.map +1 -1
- package/dist/core/rest/projects-client/gateway.js +18 -0
- package/dist/core/rest/projects-client/gateway.js.map +1 -1
- package/dist/core/rest/projects-client/goal-file.d.ts.map +1 -1
- package/dist/core/rest/projects-client/goal-file.js +2 -0
- package/dist/core/rest/projects-client/goal-file.js.map +1 -1
- package/dist/core/rest/projects-client/goals.d.ts +312 -38
- package/dist/core/rest/projects-client/goals.d.ts.map +1 -1
- package/dist/core/rest/projects-client/goals.js +302 -167
- package/dist/core/rest/projects-client/goals.js.map +1 -1
- package/dist/core/rest/projects-client/iam-actions.d.ts +10 -2
- package/dist/core/rest/projects-client/iam-actions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-actions.js +10 -2
- package/dist/core/rest/projects-client/iam-actions.js.map +1 -1
- package/dist/core/rest/projects-client/iam-probe.d.ts +19 -3
- package/dist/core/rest/projects-client/iam-probe.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-probe.js +94 -10
- package/dist/core/rest/projects-client/iam-probe.js.map +1 -1
- package/dist/core/rest/projects-client/index.d.ts +3 -0
- package/dist/core/rest/projects-client/index.d.ts.map +1 -1
- package/dist/core/rest/projects-client/index.js +3 -0
- package/dist/core/rest/projects-client/index.js.map +1 -1
- package/dist/core/rest/projects-client/notifications.d.ts +15 -6
- package/dist/core/rest/projects-client/notifications.d.ts.map +1 -1
- package/dist/core/rest/projects-client/notifications.js +0 -2
- package/dist/core/rest/projects-client/notifications.js.map +1 -1
- package/dist/core/rest/projects-client/project-agents.js +1 -1
- package/dist/core/rest/projects-client/project-agents.js.map +1 -1
- package/dist/core/rest/projects-client/projects.d.ts +72 -25
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +6 -5
- package/dist/core/rest/projects-client/projects.js.map +1 -1
- package/dist/core/rest/projects-client/public-session-shares.d.ts +1 -1
- package/dist/core/rest/projects-client/public-session-shares.d.ts.map +1 -1
- package/dist/core/rest/projects-client/public-session-shares.js +1 -1
- package/dist/core/rest/projects-client/public-session-shares.js.map +1 -1
- package/dist/core/rest/projects-client/rooms.d.ts +49 -23
- package/dist/core/rest/projects-client/rooms.d.ts.map +1 -1
- package/dist/core/rest/projects-client/rooms.js +43 -46
- package/dist/core/rest/projects-client/rooms.js.map +1 -1
- package/dist/core/rest/projects-client/runtime-triggers.d.ts +7 -1
- package/dist/core/rest/projects-client/runtime-triggers.d.ts.map +1 -1
- package/dist/core/rest/projects-client/runtime-triggers.js.map +1 -1
- package/dist/core/rest/projects-client/session-sandbox.d.ts +2 -4
- package/dist/core/rest/projects-client/session-sandbox.d.ts.map +1 -1
- package/dist/core/rest/projects-client/session-sandbox.js +4 -5
- package/dist/core/rest/projects-client/session-sandbox.js.map +1 -1
- package/dist/core/rest/projects-client/sessions.d.ts +42 -45
- package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sessions.js +13 -7
- package/dist/core/rest/projects-client/sessions.js.map +1 -1
- package/dist/core/rest/projects-client/spaces.d.ts +68 -0
- package/dist/core/rest/projects-client/spaces.d.ts.map +1 -1
- package/dist/core/rest/projects-client/spaces.js +25 -1
- package/dist/core/rest/projects-client/spaces.js.map +1 -1
- package/dist/core/rest/projects-client/triggers.d.ts +22 -3
- package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
- package/dist/core/rest/projects-client/triggers.js.map +1 -1
- package/dist/core/runtime/client.d.ts +2 -18
- package/dist/core/runtime/client.d.ts.map +1 -1
- package/dist/core/runtime/client.js +2 -14
- package/dist/core/runtime/client.js.map +1 -1
- package/dist/core/runtime/kortix-master.d.ts +1 -0
- package/dist/core/runtime/kortix-master.d.ts.map +1 -1
- package/dist/core/runtime/kortix-master.js.map +1 -1
- package/dist/core/runtime/pty.js +2 -2
- package/dist/core/runtime/runtime-not-ready-error.d.ts +12 -0
- package/dist/core/runtime/runtime-not-ready-error.d.ts.map +1 -0
- package/dist/core/runtime/runtime-not-ready-error.js +15 -0
- package/dist/core/runtime/runtime-not-ready-error.js.map +1 -0
- package/dist/core/runtime/runtime-types.d.ts +19 -1
- package/dist/core/runtime/runtime-types.d.ts.map +1 -1
- package/dist/core/runtime/transcript-types.d.ts +18 -0
- package/dist/core/runtime/transcript-types.d.ts.map +1 -1
- package/dist/core/session/compaction.d.ts +2 -2
- package/dist/core/session/compaction.js +2 -2
- package/dist/core/session/control-stream.d.ts +50 -2
- package/dist/core/session/control-stream.d.ts.map +1 -1
- package/dist/core/session/control-stream.js +99 -9
- package/dist/core/session/control-stream.js.map +1 -1
- package/dist/core/session/current-runtime.d.ts +1 -1
- package/dist/core/session/health.d.ts +9 -19
- package/dist/core/session/health.d.ts.map +1 -1
- package/dist/core/session/health.js +2 -2
- package/dist/core/session/health.js.map +1 -1
- package/dist/core/session/index.d.ts +1 -1
- package/dist/core/session/index.js +1 -1
- package/dist/core/session/runtime-actions.d.ts +6 -13
- package/dist/core/session/runtime-actions.d.ts.map +1 -1
- package/dist/core/session/runtime-actions.js +5 -36
- package/dist/core/session/runtime-actions.js.map +1 -1
- package/dist/core/session/runtime-sessions.d.ts +2 -2
- package/dist/core/session/runtime-sessions.d.ts.map +1 -1
- package/dist/core/session/runtime-sessions.js +3 -3
- package/dist/core/session/runtime-sessions.js.map +1 -1
- package/dist/core/session/runtime-verbs.d.ts +2 -2
- package/dist/core/session/runtime-verbs.d.ts.map +1 -1
- package/dist/core/session/runtime-verbs.js +29 -87
- package/dist/core/session/runtime-verbs.js.map +1 -1
- package/dist/core/session/server-store/active.d.ts +2 -4
- package/dist/core/session/server-store/active.d.ts.map +1 -1
- package/dist/core/session/server-store/active.js +2 -5
- package/dist/core/session/server-store/active.js.map +1 -1
- package/dist/core/session/server-store/types.d.ts +2 -2
- package/dist/core/session/server-store/types.d.ts.map +1 -1
- package/dist/core/session/server-store/url-helpers.d.ts +5 -5
- package/dist/core/session/server-store/url-helpers.js +5 -5
- package/dist/core/session/session-runtime-registry.d.ts +1 -1
- package/dist/core/session/session-runtime-registry.js +1 -1
- package/dist/core/session/url.d.ts +2 -2
- package/dist/core/session/url.js +4 -4
- package/dist/core/session/url.js.map +1 -1
- package/dist/core/session/wire-message-id.d.ts +12 -42
- package/dist/core/session/wire-message-id.d.ts.map +1 -1
- package/dist/core/session/wire-message-id.js +11 -37
- package/dist/core/session/wire-message-id.js.map +1 -1
- package/dist/core/session/working-server.d.ts +13 -1
- package/dist/core/session/working-server.d.ts.map +1 -1
- package/dist/core/session/working-server.js +15 -1
- package/dist/core/session/working-server.js.map +1 -1
- package/dist/core/session/working.d.ts.map +1 -1
- package/dist/core/session/working.js +3 -1
- package/dist/core/session/working.js.map +1 -1
- package/dist/core/session-log/v1-view.d.ts +2 -2
- package/dist/core/session-log/v1-view.d.ts.map +1 -1
- package/dist/core/session-log/v1-view.js +3 -1
- package/dist/core/session-log/v1-view.js.map +1 -1
- package/dist/core/session-log/v1.d.ts +2 -2
- package/dist/core/session-log/v1.d.ts.map +1 -1
- package/dist/core/session-sync/saved-copy-store.d.ts +3 -3
- package/dist/core/session-sync/saved-copy-store.d.ts.map +1 -1
- package/dist/core/session-sync/saved-copy-store.js +5 -5
- package/dist/core/session-sync/saved-copy-store.js.map +1 -1
- package/dist/core/session-sync/saved-transcript.d.ts +5 -5
- package/dist/core/session-sync/saved-transcript.d.ts.map +1 -1
- package/dist/core/session-sync/saved-transcript.js +3 -3
- package/dist/core/session-sync/saved-transcript.js.map +1 -1
- package/dist/core/session-sync/session-sync-controller.js +2 -2
- package/dist/core/session-sync/session-sync-controller.js.map +1 -1
- package/dist/core/stream/chat-events.d.ts +9 -2
- package/dist/core/stream/chat-events.d.ts.map +1 -1
- package/dist/core/stream/chat-events.js +13 -0
- package/dist/core/stream/chat-events.js.map +1 -1
- package/dist/core/stream/event-attempt.js +1 -1
- package/dist/core/stream/event-attempt.js.map +1 -1
- package/dist/core/stream/event-stream.d.ts +7 -9
- package/dist/core/stream/event-stream.d.ts.map +1 -1
- package/dist/core/stream/event-stream.js +6 -7
- package/dist/core/stream/event-stream.js.map +1 -1
- package/dist/core/turns/parts.d.ts +7 -1
- package/dist/core/turns/parts.d.ts.map +1 -1
- package/dist/core/turns/parts.js +18 -1
- package/dist/core/turns/parts.js.map +1 -1
- package/dist/core/turns/segments/work-split.d.ts +1 -1
- package/dist/core/turns/segments/work-split.d.ts.map +1 -1
- package/dist/core/turns/segments/work-split.js +37 -3
- package/dist/core/turns/segments/work-split.js.map +1 -1
- package/dist/core/turns/shell.d.ts +2 -2
- package/dist/core/turns/shell.js +2 -2
- package/dist/core/turns/tools/workflow-run.d.ts.map +1 -1
- package/dist/core/turns/tools/workflow-run.js +140 -2
- package/dist/core/turns/tools/workflow-run.js.map +1 -1
- package/dist/core/turns/types.d.ts +1 -2
- package/dist/core/turns/types.d.ts.map +1 -1
- package/dist/core/turns/types.js +1 -2
- package/dist/core/turns/types.js.map +1 -1
- package/dist/core/wire-values.d.ts +81 -0
- package/dist/core/wire-values.d.ts.map +1 -0
- package/dist/core/wire-values.js +177 -0
- package/dist/core/wire-values.js.map +1 -0
- package/dist/index.d.ts +36 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -20
- package/dist/index.js.map +1 -1
- package/dist/kortix.esm.min.js +57 -52
- package/dist/kortix.global.js +57 -52
- package/dist/platform/auth-core.d.ts +2 -2
- package/dist/platform/auth-core.js +2 -2
- package/dist/react/chat/use-chat-turns.d.ts +1 -1
- package/dist/react/chat/use-chat-turns.d.ts.map +1 -1
- package/dist/react/hold-live-start.d.ts.map +1 -1
- package/dist/react/hold-live-start.js +4 -11
- package/dist/react/hold-live-start.js.map +1 -1
- package/dist/react/index.d.ts +13 -14
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +18 -25
- package/dist/react/index.js.map +1 -1
- package/dist/react/initial-session-pin.d.ts +2 -2
- package/dist/react/initial-session-pin.d.ts.map +1 -1
- package/dist/react/initial-session-pin.js +4 -4
- package/dist/react/initial-session-pin.js.map +1 -1
- package/dist/react/provider-refresh.d.ts +1 -1
- package/dist/react/provider-refresh.d.ts.map +1 -1
- package/dist/react/provider-refresh.js +16 -9
- package/dist/react/provider-refresh.js.map +1 -1
- package/dist/react/query-keys.d.ts +50 -10
- package/dist/react/query-keys.d.ts.map +1 -1
- package/dist/react/query-keys.js +52 -10
- package/dist/react/query-keys.js.map +1 -1
- package/dist/react/reset-identity-state.js +1 -1
- package/dist/react/reset-identity-state.js.map +1 -1
- package/dist/react/runtime-actions.d.ts +3 -24
- package/dist/react/runtime-actions.d.ts.map +1 -1
- package/dist/react/runtime-actions.js +4 -49
- package/dist/react/runtime-actions.js.map +1 -1
- package/dist/react/{opencode.d.ts → runtime-hooks.d.ts} +14 -15
- package/dist/react/runtime-hooks.d.ts.map +1 -0
- package/dist/react/{opencode.js → runtime-hooks.js} +19 -20
- package/dist/react/runtime-hooks.js.map +1 -0
- package/dist/react/session-start-stash.d.ts +1 -1
- package/dist/react/session-start-stash.js +8 -8
- package/dist/react/session-start-stash.js.map +1 -1
- package/dist/react/session-stop.d.ts +5 -5
- package/dist/react/session-stop.d.ts.map +1 -1
- package/dist/react/session-stop.js +3 -3
- package/dist/react/session-stop.js.map +1 -1
- package/dist/react/session-title-sync.js +1 -1
- package/dist/react/session-transcript-subscription.d.ts +2 -2
- package/dist/react/session-transcript-subscription.js +2 -2
- package/dist/react/sign-in-with-kortix.d.ts +2 -2
- package/dist/react/turn-end-handoff.d.ts +1 -1
- package/dist/react/turn-end-handoff.d.ts.map +1 -1
- package/dist/react/turn-end-handoff.js +2 -2
- package/dist/react/turn-end-handoff.js.map +1 -1
- package/dist/react/use-admin-accounts.d.ts +0 -53
- package/dist/react/use-admin-accounts.d.ts.map +1 -1
- package/dist/react/use-admin-accounts.js +0 -29
- package/dist/react/use-admin-accounts.js.map +1 -1
- package/dist/react/use-admin-credit-codes.d.ts +34 -0
- package/dist/react/use-admin-credit-codes.d.ts.map +1 -0
- package/dist/react/use-admin-credit-codes.js +48 -0
- package/dist/react/use-admin-credit-codes.js.map +1 -0
- package/dist/react/use-admin-sandboxes.d.ts +0 -137
- package/dist/react/use-admin-sandboxes.d.ts.map +1 -1
- package/dist/react/use-admin-sandboxes.js +0 -34
- package/dist/react/use-admin-sandboxes.js.map +1 -1
- package/dist/react/use-artifact-live.d.ts +41 -0
- package/dist/react/use-artifact-live.d.ts.map +1 -0
- package/dist/react/use-artifact-live.js +114 -0
- package/dist/react/use-artifact-live.js.map +1 -0
- package/dist/react/use-artifacts.d.ts +4 -1
- package/dist/react/use-artifacts.d.ts.map +1 -1
- package/dist/react/use-artifacts.js +8 -2
- package/dist/react/use-artifacts.js.map +1 -1
- package/dist/react/{use-canonical-opencode-session.d.ts → use-canonical-runtime-session.d.ts} +6 -12
- package/dist/react/use-canonical-runtime-session.d.ts.map +1 -0
- package/dist/react/{use-canonical-opencode-session.js → use-canonical-runtime-session.js} +5 -10
- package/dist/react/use-canonical-runtime-session.js.map +1 -0
- package/dist/react/use-goals.d.ts +48 -9
- package/dist/react/use-goals.d.ts.map +1 -1
- package/dist/react/use-goals.js +106 -16
- package/dist/react/use-goals.js.map +1 -1
- package/dist/react/use-kortix-master.d.ts +1 -1
- package/dist/react/use-kortix-master.d.ts.map +1 -1
- package/dist/react/use-kortix-master.js +4 -4
- package/dist/react/use-kortix-master.js.map +1 -1
- package/dist/react/use-model-store.d.ts +1 -1
- package/dist/react/use-model-store.d.ts.map +1 -1
- package/dist/react/use-model-store.js +14 -3
- package/dist/react/use-model-store.js.map +1 -1
- package/dist/react/use-notifications.js +1 -1
- package/dist/react/use-notifications.js.map +1 -1
- package/dist/react/use-permission-self-heal.d.ts +1 -1
- package/dist/react/use-permission-self-heal.js +2 -2
- package/dist/react/use-permission-self-heal.js.map +1 -1
- package/dist/react/use-project-apps.d.ts +28 -24
- package/dist/react/use-project-apps.d.ts.map +1 -1
- package/dist/react/use-project-apps.js +41 -2
- package/dist/react/use-project-apps.js.map +1 -1
- package/dist/react/use-project-gateway.d.ts +4 -4
- package/dist/react/use-project-gateway.d.ts.map +1 -1
- package/dist/react/use-project-gateway.js +21 -5
- package/dist/react/use-project-gateway.js.map +1 -1
- package/dist/react/use-project-session.d.ts +1 -1
- package/dist/react/use-project-session.js +1 -1
- package/dist/react/use-project-spaces.d.ts +22 -3
- package/dist/react/use-project-spaces.d.ts.map +1 -1
- package/dist/react/use-project-spaces.js +36 -3
- package/dist/react/use-project-spaces.js.map +1 -1
- package/dist/react/use-provider-secrets.d.ts +18 -0
- package/dist/react/use-provider-secrets.d.ts.map +1 -1
- package/dist/react/use-provider-secrets.js +28 -1
- package/dist/react/use-provider-secrets.js.map +1 -1
- package/dist/react/use-question-self-heal.js +1 -1
- package/dist/react/use-question-self-heal.js.map +1 -1
- package/dist/react/use-rooms.d.ts +21 -3
- package/dist/react/use-rooms.d.ts.map +1 -1
- package/dist/react/use-rooms.js +22 -3
- package/dist/react/use-rooms.js.map +1 -1
- package/dist/react/use-runtime-boot-stalled.d.ts +1 -1
- package/dist/react/use-runtime-boot-stalled.js +1 -1
- package/dist/react/use-runtime-config.d.ts +15 -0
- package/dist/react/use-runtime-config.d.ts.map +1 -0
- package/dist/react/use-runtime-config.js +44 -0
- package/dist/react/use-runtime-config.js.map +1 -0
- package/dist/react/use-runtime-events/diagnostics.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/diagnostics.js +1 -1
- package/dist/react/use-runtime-events/diagnostics.js.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/handle-event.d.ts +3 -19
- package/dist/react/use-runtime-events/handle-event.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/handle-event.js +1 -13
- package/dist/react/use-runtime-events/handle-event.js.map +1 -0
- package/dist/react/use-runtime-events/handle-interaction-event.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/handle-interaction-event.js +13 -2
- package/dist/react/use-runtime-events/handle-interaction-event.js.map +1 -0
- package/dist/react/use-runtime-events/handle-message-event.d.ts.map +1 -0
- package/dist/react/use-runtime-events/handle-message-event.js +19 -0
- package/dist/react/use-runtime-events/handle-message-event.js.map +1 -0
- package/dist/react/use-runtime-events/handle-session-event.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/handle-session-event.js +7 -55
- package/dist/react/use-runtime-events/handle-session-event.js.map +1 -0
- package/dist/react/use-runtime-events/handle-workspace-event.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/handle-workspace-event.js +6 -6
- package/dist/react/use-runtime-events/handle-workspace-event.js.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/handler-context.d.ts +2 -9
- package/dist/react/use-runtime-events/handler-context.d.ts.map +1 -0
- package/dist/react/use-runtime-events/handler-context.js.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/helpers.d.ts +6 -6
- package/dist/react/use-runtime-events/helpers.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/helpers.js +10 -9
- package/dist/react/use-runtime-events/helpers.js.map +1 -0
- package/dist/react/use-runtime-events/hydrate-core.d.ts +22 -0
- package/dist/react/use-runtime-events/hydrate-core.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/hydrate-core.js +4 -78
- package/dist/react/use-runtime-events/hydrate-core.js.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/index.d.ts +6 -9
- package/dist/react/use-runtime-events/index.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/index.js +22 -45
- package/dist/react/use-runtime-events/index.js.map +1 -0
- package/dist/react/use-runtime-events/log-control.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/log-control.js +11 -7
- package/dist/react/use-runtime-events/log-control.js.map +1 -0
- package/dist/react/use-runtime-events/rehydrate-targets.d.ts.map +1 -0
- package/dist/react/use-runtime-events/rehydrate-targets.js.map +1 -0
- package/dist/react/use-runtime-events/runtime-stream-signals.d.ts.map +1 -0
- package/dist/react/use-runtime-events/runtime-stream-signals.js.map +1 -0
- package/dist/react/use-runtime-events/stream-revival.d.ts.map +1 -0
- package/dist/react/use-runtime-events/stream-revival.js.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/types.d.ts +1 -1
- package/dist/react/use-runtime-events/types.d.ts.map +1 -0
- package/dist/react/use-runtime-events/types.js.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/use-event-stream-refs.d.ts +3 -3
- package/dist/react/use-runtime-events/use-event-stream-refs.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/use-event-stream-refs.js +4 -4
- package/dist/react/use-runtime-events/use-event-stream-refs.js.map +1 -0
- package/dist/react/{use-opencode-local.d.ts → use-runtime-local.d.ts} +1 -19
- package/dist/react/use-runtime-local.d.ts.map +1 -0
- package/dist/react/{use-opencode-local.js → use-runtime-local.js} +15 -20
- package/dist/react/use-runtime-local.js.map +1 -0
- package/dist/react/use-runtime-phase.js +1 -1
- package/dist/react/use-runtime-phase.js.map +1 -1
- package/dist/react/{use-opencode-pty.d.ts → use-runtime-pty.d.ts} +1 -3
- package/dist/react/use-runtime-pty.d.ts.map +1 -0
- package/dist/react/{use-opencode-pty.js → use-runtime-pty.js} +3 -6
- package/dist/react/use-runtime-pty.js.map +1 -0
- package/dist/react/use-runtime-reconnect.d.ts +13 -2
- package/dist/react/use-runtime-reconnect.d.ts.map +1 -1
- package/dist/react/use-runtime-reconnect.js +43 -7
- package/dist/react/use-runtime-reconnect.js.map +1 -1
- package/dist/react/use-runtime-sessions/agents.d.ts +14 -0
- package/dist/react/use-runtime-sessions/agents.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/agents.js +4 -25
- package/dist/react/use-runtime-sessions/agents.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/commands.d.ts +0 -8
- package/dist/react/use-runtime-sessions/commands.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/commands.js +11 -39
- package/dist/react/use-runtime-sessions/commands.js.map +1 -0
- package/dist/react/use-runtime-sessions/files.d.ts +2 -0
- package/dist/react/use-runtime-sessions/files.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/files.js +0 -3
- package/dist/react/use-runtime-sessions/files.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/index.d.ts +1 -5
- package/dist/react/use-runtime-sessions/index.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/index.js +17 -0
- package/dist/react/use-runtime-sessions/index.js.map +1 -0
- package/dist/react/use-runtime-sessions/keys.d.ts +115 -0
- package/dist/react/use-runtime-sessions/keys.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/keys.js +22 -27
- package/dist/react/use-runtime-sessions/keys.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/log-sessions.d.ts +2 -5
- package/dist/react/use-runtime-sessions/log-sessions.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/log-sessions.js +0 -6
- package/dist/react/use-runtime-sessions/log-sessions.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/messages.d.ts +2 -20
- package/dist/react/use-runtime-sessions/messages.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/messages.js +3 -38
- package/dist/react/use-runtime-sessions/messages.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/permissions.d.ts +4 -4
- package/dist/react/use-runtime-sessions/permissions.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/permissions.js +75 -0
- package/dist/react/use-runtime-sessions/permissions.js.map +1 -0
- package/dist/react/use-runtime-sessions/projects.d.ts +4 -0
- package/dist/react/use-runtime-sessions/projects.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/projects.js +0 -22
- package/dist/react/use-runtime-sessions/projects.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/providers.d.ts +0 -2
- package/dist/react/use-runtime-sessions/providers.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/providers.js +3 -6
- package/dist/react/use-runtime-sessions/providers.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/sessions.d.ts +1 -29
- package/dist/react/use-runtime-sessions/sessions.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/sessions.js +224 -0
- package/dist/react/use-runtime-sessions/sessions.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/shared.d.ts +5 -12
- package/dist/react/use-runtime-sessions/shared.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/shared.js +5 -13
- package/dist/react/use-runtime-sessions/shared.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/vcs.d.ts +0 -2
- package/dist/react/use-runtime-sessions/vcs.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/vcs.js +7 -23
- package/dist/react/use-runtime-sessions/vcs.js.map +1 -0
- package/dist/react/use-session-asks.d.ts +43 -0
- package/dist/react/use-session-asks.d.ts.map +1 -0
- package/dist/react/use-session-asks.js +75 -0
- package/dist/react/use-session-asks.js.map +1 -0
- package/dist/react/use-session-log.d.ts +1 -1
- package/dist/react/use-session-log.js +1 -1
- package/dist/react/use-session-model-selection.d.ts +1 -1
- package/dist/react/use-session-model-selection.d.ts.map +1 -1
- package/dist/react/use-session-model-selection.js +1 -1
- package/dist/react/use-session-model-selection.js.map +1 -1
- package/dist/react/use-session-prefetch.d.ts +1 -1
- package/dist/react/use-session-prefetch.d.ts.map +1 -1
- package/dist/react/use-session-prefetch.js +1 -1
- package/dist/react/use-session-prefetch.js.map +1 -1
- package/dist/react/use-session-prompts.d.ts +1 -1
- package/dist/react/use-session-prompts.d.ts.map +1 -1
- package/dist/react/use-session-prompts.js +5 -3
- package/dist/react/use-session-prompts.js.map +1 -1
- package/dist/react/use-session-send.d.ts +5 -7
- package/dist/react/use-session-send.d.ts.map +1 -1
- package/dist/react/use-session-send.js +1 -1
- package/dist/react/use-session-send.js.map +1 -1
- package/dist/react/use-session-stream.d.ts +10 -1
- package/dist/react/use-session-stream.d.ts.map +1 -1
- package/dist/react/use-session-stream.js +59 -12
- package/dist/react/use-session-stream.js.map +1 -1
- package/dist/react/use-session-sync.d.ts +2 -2
- package/dist/react/use-session-sync.d.ts.map +1 -1
- package/dist/react/use-session-sync.js +9 -10
- package/dist/react/use-session-sync.js.map +1 -1
- package/dist/react/use-session-working.d.ts +2 -2
- package/dist/react/use-session-working.d.ts.map +1 -1
- package/dist/react/use-session-working.js +10 -5
- package/dist/react/use-session-working.js.map +1 -1
- package/dist/react/use-session.d.ts +7 -7
- package/dist/react/use-session.d.ts.map +1 -1
- package/dist/react/use-session.js +51 -87
- package/dist/react/use-session.js.map +1 -1
- package/dist/react/use-tunnel.d.ts +0 -89
- package/dist/react/use-tunnel.d.ts.map +1 -1
- package/dist/react/use-tunnel.js +0 -38
- package/dist/react/use-tunnel.js.map +1 -1
- package/dist/react/use-visible-agents.js +1 -1
- package/dist/react/use-visible-agents.js.map +1 -1
- package/dist/workspace-search/client.d.ts.map +1 -1
- package/dist/workspace-search/client.js +0 -1
- package/dist/workspace-search/client.js.map +1 -1
- package/package.json +3 -103
- package/dist/browser/stores/opencode-compaction-store.d.ts.map +0 -1
- package/dist/browser/stores/opencode-compaction-store.js.map +0 -1
- package/dist/browser/stores/opencode-pending-store.d.ts.map +0 -1
- package/dist/browser/stores/opencode-pending-store.js.map +0 -1
- package/dist/core/session/message-queue.d.ts +0 -204
- package/dist/core/session/message-queue.d.ts.map +0 -1
- package/dist/core/session/message-queue.js +0 -218
- package/dist/core/session/message-queue.js.map +0 -1
- package/dist/deprecated/api-client.d.ts +0 -6
- package/dist/deprecated/api-client.d.ts.map +0 -1
- package/dist/deprecated/api-client.js +0 -6
- package/dist/deprecated/api-client.js.map +0 -1
- package/dist/deprecated/auth.d.ts +0 -6
- package/dist/deprecated/auth.d.ts.map +0 -1
- package/dist/deprecated/auth.js +0 -6
- package/dist/deprecated/auth.js.map +0 -1
- package/dist/deprecated/config.d.ts +0 -6
- package/dist/deprecated/config.d.ts.map +0 -1
- package/dist/deprecated/config.js +0 -6
- package/dist/deprecated/config.js.map +0 -1
- package/dist/deprecated/event-stream.d.ts +0 -6
- package/dist/deprecated/event-stream.d.ts.map +0 -1
- package/dist/deprecated/event-stream.js +0 -6
- package/dist/deprecated/event-stream.js.map +0 -1
- package/dist/deprecated/feature-flags.d.ts +0 -6
- package/dist/deprecated/feature-flags.d.ts.map +0 -1
- package/dist/deprecated/feature-flags.js +0 -6
- package/dist/deprecated/feature-flags.js.map +0 -1
- package/dist/deprecated/files.d.ts +0 -6
- package/dist/deprecated/files.d.ts.map +0 -1
- package/dist/deprecated/files.js +0 -6
- package/dist/deprecated/files.js.map +0 -1
- package/dist/deprecated/fresh-sessions.d.ts +0 -6
- package/dist/deprecated/fresh-sessions.d.ts.map +0 -1
- package/dist/deprecated/fresh-sessions.js +0 -6
- package/dist/deprecated/fresh-sessions.js.map +0 -1
- package/dist/deprecated/idb-sync-cache.d.ts +0 -7
- package/dist/deprecated/idb-sync-cache.d.ts.map +0 -1
- package/dist/deprecated/idb-sync-cache.js +0 -7
- package/dist/deprecated/idb-sync-cache.js.map +0 -1
- package/dist/deprecated/instance-routes.d.ts +0 -6
- package/dist/deprecated/instance-routes.d.ts.map +0 -1
- package/dist/deprecated/instance-routes.js +0 -6
- package/dist/deprecated/instance-routes.js.map +0 -1
- package/dist/deprecated/opencode-client.d.ts +0 -6
- package/dist/deprecated/opencode-client.d.ts.map +0 -1
- package/dist/deprecated/opencode-client.js +0 -6
- package/dist/deprecated/opencode-client.js.map +0 -1
- package/dist/deprecated/opencode-errors.d.ts +0 -6
- package/dist/deprecated/opencode-errors.d.ts.map +0 -1
- package/dist/deprecated/opencode-errors.js +0 -6
- package/dist/deprecated/opencode-errors.js.map +0 -1
- package/dist/deprecated/opencode-pending-store.d.ts +0 -7
- package/dist/deprecated/opencode-pending-store.d.ts.map +0 -1
- package/dist/deprecated/opencode-pending-store.js +0 -7
- package/dist/deprecated/opencode-pending-store.js.map +0 -1
- package/dist/deprecated/platform-client.d.ts +0 -6
- package/dist/deprecated/platform-client.d.ts.map +0 -1
- package/dist/deprecated/platform-client.js +0 -6
- package/dist/deprecated/platform-client.js.map +0 -1
- package/dist/deprecated/projects-client.d.ts +0 -6
- package/dist/deprecated/projects-client.d.ts.map +0 -1
- package/dist/deprecated/projects-client.js +0 -6
- package/dist/deprecated/projects-client.js.map +0 -1
- package/dist/deprecated/sandbox-connection-store.d.ts +0 -7
- package/dist/deprecated/sandbox-connection-store.d.ts.map +0 -1
- package/dist/deprecated/sandbox-connection-store.js +0 -7
- package/dist/deprecated/sandbox-connection-store.js.map +0 -1
- package/dist/deprecated/server-store.d.ts +0 -7
- package/dist/deprecated/server-store.d.ts.map +0 -1
- package/dist/deprecated/server-store.js +0 -7
- package/dist/deprecated/server-store.js.map +0 -1
- package/dist/deprecated/session-url.d.ts +0 -6
- package/dist/deprecated/session-url.d.ts.map +0 -1
- package/dist/deprecated/session-url.js +0 -6
- package/dist/deprecated/session-url.js.map +0 -1
- package/dist/deprecated/session.d.ts +0 -6
- package/dist/deprecated/session.d.ts.map +0 -1
- package/dist/deprecated/session.js +0 -6
- package/dist/deprecated/session.js.map +0 -1
- package/dist/deprecated/sync-store.d.ts +0 -7
- package/dist/deprecated/sync-store.d.ts.map +0 -1
- package/dist/deprecated/sync-store.js +0 -7
- package/dist/deprecated/sync-store.js.map +0 -1
- package/dist/deprecated/turns.d.ts +0 -6
- package/dist/deprecated/turns.d.ts.map +0 -1
- package/dist/deprecated/turns.js +0 -6
- package/dist/deprecated/turns.js.map +0 -1
- package/dist/internal/opencode-pending-store.d.ts +0 -7
- package/dist/internal/opencode-pending-store.d.ts.map +0 -1
- package/dist/internal/opencode-pending-store.js +0 -7
- package/dist/internal/opencode-pending-store.js.map +0 -1
- package/dist/internal/sandbox-connection-store.d.ts +0 -7
- package/dist/internal/sandbox-connection-store.d.ts.map +0 -1
- package/dist/internal/sandbox-connection-store.js +0 -7
- package/dist/internal/sandbox-connection-store.js.map +0 -1
- package/dist/internal/server-store.d.ts +0 -7
- package/dist/internal/server-store.d.ts.map +0 -1
- package/dist/internal/server-store.js +0 -7
- package/dist/internal/server-store.js.map +0 -1
- package/dist/internal/sync-store.d.ts +0 -7
- package/dist/internal/sync-store.d.ts.map +0 -1
- package/dist/internal/sync-store.js +0 -7
- package/dist/internal/sync-store.js.map +0 -1
- package/dist/react/opencode.d.ts.map +0 -1
- package/dist/react/opencode.js.map +0 -1
- package/dist/react/retired-endpoint.d.ts +0 -10
- package/dist/react/retired-endpoint.d.ts.map +0 -1
- package/dist/react/retired-endpoint.js +0 -22
- package/dist/react/retired-endpoint.js.map +0 -1
- package/dist/react/use-admin-analytics.d.ts +0 -394
- package/dist/react/use-admin-analytics.d.ts.map +0 -1
- package/dist/react/use-admin-analytics.js +0 -123
- package/dist/react/use-admin-analytics.js.map +0 -1
- package/dist/react/use-admin-billing.d.ts +0 -31
- package/dist/react/use-admin-billing.d.ts.map +0 -1
- package/dist/react/use-admin-billing.js +0 -24
- package/dist/react/use-admin-billing.js.map +0 -1
- package/dist/react/use-admin-feedback.d.ts +0 -138
- package/dist/react/use-admin-feedback.d.ts.map +0 -1
- package/dist/react/use-admin-feedback.js +0 -61
- package/dist/react/use-admin-feedback.js.map +0 -1
- package/dist/react/use-canonical-opencode-session.d.ts.map +0 -1
- package/dist/react/use-canonical-opencode-session.js.map +0 -1
- package/dist/react/use-opencode-config.d.ts +0 -28
- package/dist/react/use-opencode-config.d.ts.map +0 -1
- package/dist/react/use-opencode-config.js +0 -95
- package/dist/react/use-opencode-config.js.map +0 -1
- package/dist/react/use-opencode-events/diagnostics.d.ts.map +0 -1
- package/dist/react/use-opencode-events/diagnostics.js.map +0 -1
- package/dist/react/use-opencode-events/handle-event.d.ts.map +0 -1
- package/dist/react/use-opencode-events/handle-event.js.map +0 -1
- package/dist/react/use-opencode-events/handle-interaction-event.d.ts.map +0 -1
- package/dist/react/use-opencode-events/handle-interaction-event.js.map +0 -1
- package/dist/react/use-opencode-events/handle-message-event.d.ts.map +0 -1
- package/dist/react/use-opencode-events/handle-message-event.js +0 -33
- package/dist/react/use-opencode-events/handle-message-event.js.map +0 -1
- package/dist/react/use-opencode-events/handle-session-event.d.ts.map +0 -1
- package/dist/react/use-opencode-events/handle-session-event.js.map +0 -1
- package/dist/react/use-opencode-events/handle-workspace-event.d.ts.map +0 -1
- package/dist/react/use-opencode-events/handle-workspace-event.js.map +0 -1
- package/dist/react/use-opencode-events/handler-context.d.ts.map +0 -1
- package/dist/react/use-opencode-events/handler-context.js.map +0 -1
- package/dist/react/use-opencode-events/helpers.d.ts.map +0 -1
- package/dist/react/use-opencode-events/helpers.js.map +0 -1
- package/dist/react/use-opencode-events/hydrate-core.d.ts +0 -37
- package/dist/react/use-opencode-events/hydrate-core.d.ts.map +0 -1
- package/dist/react/use-opencode-events/hydrate-core.js.map +0 -1
- package/dist/react/use-opencode-events/index.d.ts.map +0 -1
- package/dist/react/use-opencode-events/index.js.map +0 -1
- package/dist/react/use-opencode-events/log-control.d.ts.map +0 -1
- package/dist/react/use-opencode-events/log-control.js.map +0 -1
- package/dist/react/use-opencode-events/rehydrate-targets.d.ts.map +0 -1
- package/dist/react/use-opencode-events/rehydrate-targets.js.map +0 -1
- package/dist/react/use-opencode-events/runtime-stream-signals.d.ts.map +0 -1
- package/dist/react/use-opencode-events/runtime-stream-signals.js.map +0 -1
- package/dist/react/use-opencode-events/stream-revival.d.ts.map +0 -1
- package/dist/react/use-opencode-events/stream-revival.js.map +0 -1
- package/dist/react/use-opencode-events/types.d.ts.map +0 -1
- package/dist/react/use-opencode-events/types.js.map +0 -1
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts.map +0 -1
- package/dist/react/use-opencode-events/use-event-stream-refs.js.map +0 -1
- package/dist/react/use-opencode-local.d.ts.map +0 -1
- package/dist/react/use-opencode-local.js.map +0 -1
- package/dist/react/use-opencode-mcp.d.ts +0 -41
- package/dist/react/use-opencode-mcp.d.ts.map +0 -1
- package/dist/react/use-opencode-mcp.js +0 -196
- package/dist/react/use-opencode-mcp.js.map +0 -1
- package/dist/react/use-opencode-pty.d.ts.map +0 -1
- package/dist/react/use-opencode-pty.js.map +0 -1
- package/dist/react/use-opencode-sessions/agents.d.ts +0 -21
- package/dist/react/use-opencode-sessions/agents.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/agents.js.map +0 -1
- package/dist/react/use-opencode-sessions/commands.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/commands.js.map +0 -1
- package/dist/react/use-opencode-sessions/files.d.ts +0 -4
- package/dist/react/use-opencode-sessions/files.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/files.js.map +0 -1
- package/dist/react/use-opencode-sessions/index.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/index.js +0 -22
- package/dist/react/use-opencode-sessions/index.js.map +0 -1
- package/dist/react/use-opencode-sessions/keys.d.ts +0 -149
- package/dist/react/use-opencode-sessions/keys.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/keys.js.map +0 -1
- package/dist/react/use-opencode-sessions/log-sessions.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/log-sessions.js.map +0 -1
- package/dist/react/use-opencode-sessions/mcp.d.ts +0 -4
- package/dist/react/use-opencode-sessions/mcp.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/mcp.js +0 -24
- package/dist/react/use-opencode-sessions/mcp.js.map +0 -1
- package/dist/react/use-opencode-sessions/messages.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/messages.js.map +0 -1
- package/dist/react/use-opencode-sessions/no-compaction-model-error.d.ts +0 -31
- package/dist/react/use-opencode-sessions/no-compaction-model-error.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/no-compaction-model-error.js +0 -34
- package/dist/react/use-opencode-sessions/no-compaction-model-error.js.map +0 -1
- package/dist/react/use-opencode-sessions/parts.d.ts +0 -27
- package/dist/react/use-opencode-sessions/parts.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/parts.js +0 -53
- package/dist/react/use-opencode-sessions/parts.js.map +0 -1
- package/dist/react/use-opencode-sessions/permissions.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/permissions.js +0 -145
- package/dist/react/use-opencode-sessions/permissions.js.map +0 -1
- package/dist/react/use-opencode-sessions/projects.d.ts +0 -10
- package/dist/react/use-opencode-sessions/projects.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/projects.js.map +0 -1
- package/dist/react/use-opencode-sessions/providers.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/providers.js.map +0 -1
- package/dist/react/use-opencode-sessions/sessions.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/sessions.js +0 -400
- package/dist/react/use-opencode-sessions/sessions.js.map +0 -1
- package/dist/react/use-opencode-sessions/shared.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/shared.js.map +0 -1
- package/dist/react/use-opencode-sessions/sharing.d.ts +0 -6
- package/dist/react/use-opencode-sessions/sharing.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/sharing.js +0 -59
- package/dist/react/use-opencode-sessions/sharing.js.map +0 -1
- package/dist/react/use-opencode-sessions/tools.d.ts +0 -10
- package/dist/react/use-opencode-sessions/tools.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/tools.js +0 -60
- package/dist/react/use-opencode-sessions/tools.js.map +0 -1
- package/dist/react/use-opencode-sessions/vcs.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/vcs.js.map +0 -1
- package/dist/react/use-system-status.d.ts +0 -48
- package/dist/react/use-system-status.d.ts.map +0 -1
- package/dist/react/use-system-status.js +0 -15
- package/dist/react/use-system-status.js.map +0 -1
- /package/dist/react/{use-opencode-events → use-runtime-events}/diagnostics.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/handle-interaction-event.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/handle-message-event.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/handle-session-event.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/handle-workspace-event.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/handler-context.js +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/log-control.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/rehydrate-targets.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/rehydrate-targets.js +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/runtime-stream-signals.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/runtime-stream-signals.js +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/stream-revival.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/stream-revival.js +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/types.js +0 -0
|
@@ -1,35 +1,75 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Goals (project flag `goals`): what a person wants plus a definition of
|
|
3
|
-
* done. An assigned agent works it
|
|
4
|
-
* verifier session
|
|
5
|
-
* `/Company/Goals/<slug>/` by default: `GOAL.md` (front matter = definition
|
|
6
|
-
* and state, `parseGoalFile`), `log.md` (append-only), `evidence/`. The
|
|
7
|
-
* `kortix goals` CLI writes it inside the owner session's sandbox. Its
|
|
8
|
-
* heartbeat is a loop on the owner session. Older folders hold `goal.json`.
|
|
3
|
+
* done. An assigned agent works it in an owner session until an independent
|
|
4
|
+
* verifier session passes every criterion.
|
|
9
5
|
*
|
|
10
|
-
* The
|
|
11
|
-
*
|
|
12
|
-
*
|
|
6
|
+
* The API owns the lifecycle (`/v1/projects/:projectId/goals/*`): state,
|
|
7
|
+
* pause, stop, owner, verifier, caps, wakes and verification live in the
|
|
8
|
+
* goal record, and every write carries the `revision` it read (a stale one
|
|
9
|
+
* throws `ProjectGoalConflictError` with the current goal). The goal's folder
|
|
10
|
+
* in Files holds the brief (`GOAL.md`), `log.md` and `evidence/`; lifecycle
|
|
11
|
+
* fields written into GOAL.md change nothing.
|
|
12
|
+
*
|
|
13
|
+
* Who may do what is the server's decision; `ProjectGoal.capabilities` says
|
|
14
|
+
* it per goal for the caller. A person creates, pauses, resumes, stops,
|
|
15
|
+
* restarts and answers; the owner session reports progress; only the
|
|
16
|
+
* verifier session decides done.
|
|
13
17
|
*/
|
|
14
|
-
import { ApiError } from '../../http/api-client.js';
|
|
18
|
+
import { ApiError, backendApi } from '../../http/api-client.js';
|
|
15
19
|
import { generateSessionId } from '../../../platform/session-id.js';
|
|
16
20
|
import { mintWireMessageId } from '../../session/wire-message-id.js';
|
|
17
|
-
import {
|
|
18
|
-
import { formatGoalFile, parseGoalFile } from './goal-file.js';
|
|
21
|
+
import { readDriveFile } from './drives.js';
|
|
19
22
|
import { createSessionPrompt } from './sessions.js';
|
|
20
|
-
import {
|
|
23
|
+
import { unwrap } from './shared.js';
|
|
24
|
+
/**
|
|
25
|
+
* A goal write sent a stale `revision` (`409 goal_conflict`): someone or
|
|
26
|
+
* something changed the goal first. `goal` is the goal as it is now. Show it
|
|
27
|
+
* and let the person decide again; never resend the write blindly.
|
|
28
|
+
*/
|
|
29
|
+
export class ProjectGoalConflictError extends ApiError {
|
|
30
|
+
goal;
|
|
31
|
+
constructor(source, goal) {
|
|
32
|
+
super(source.message || 'The goal changed.', {
|
|
33
|
+
status: source.status,
|
|
34
|
+
code: 'goal_conflict',
|
|
35
|
+
details: source.details,
|
|
36
|
+
data: source.data,
|
|
37
|
+
response: source.response,
|
|
38
|
+
name: 'ProjectGoalConflictError',
|
|
39
|
+
});
|
|
40
|
+
this.goal = goal;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
21
43
|
const CLOSED = new Set(['done', 'stopped', 'abandoned']);
|
|
22
44
|
const MISSED_WAKE_MS = 15 * 60_000;
|
|
23
45
|
const VERIFICATION_STALLED_MS = 24 * 3_600_000;
|
|
24
|
-
|
|
46
|
+
function isRecord(goal) {
|
|
47
|
+
return typeof goal.goal_id === 'string';
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A goal's health at `now` (ms). For a server record (`ProjectGoalRecord`) it
|
|
51
|
+
* reads the server fields: `blocked_reason`, `next_wake_at` (a wake more than
|
|
52
|
+
* 15 minutes overdue), and the start of a pending verification (more than 24
|
|
53
|
+
* hours). A paused or waiting goal has no wake due, unless it asked to chase.
|
|
54
|
+
* `heartbeat` is ignored for a record. A `ProjectGoalDocument` (a GOAL.md
|
|
55
|
+
* read by hand) is judged by its heartbeat reminder, as before.
|
|
56
|
+
*/
|
|
25
57
|
export function goalHealth(goal, heartbeat, now = Date.now()) {
|
|
26
58
|
if (!goal)
|
|
27
59
|
return { state: 'attention', issues: ['unreadable'] };
|
|
60
|
+
if (isRecord(goal))
|
|
61
|
+
return recordHealth(goal, now);
|
|
28
62
|
if (CLOSED.has(goal.status))
|
|
29
63
|
return { state: 'closed', issues: [] };
|
|
64
|
+
if (goal.paused_at && heartbeat?.state !== 'active')
|
|
65
|
+
return { state: 'healthy', issues: [] };
|
|
30
66
|
const issues = [];
|
|
31
|
-
|
|
32
|
-
|
|
67
|
+
const restartedAt = [...(goal.transitions ?? [])].reverse().find((t) => t.from === 'stopped')?.at;
|
|
68
|
+
const waking = !!restartedAt && Date.parse(restartedAt) > now - MISSED_WAKE_MS;
|
|
69
|
+
if (!heartbeat || heartbeat.state === 'done') {
|
|
70
|
+
if (!waking)
|
|
71
|
+
issues.push('no_heartbeat');
|
|
72
|
+
}
|
|
33
73
|
else if (heartbeat.state === 'paused')
|
|
34
74
|
issues.push('heartbeat_paused');
|
|
35
75
|
else if (heartbeat.last_status === 'failed')
|
|
@@ -46,197 +86,292 @@ export function goalHealth(goal, heartbeat, now = Date.now()) {
|
|
|
46
86
|
}
|
|
47
87
|
return { state: issues.length ? 'attention' : 'healthy', issues };
|
|
48
88
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
89
|
+
function recordHealth(goal, now) {
|
|
90
|
+
if (goal.state === 'done' || goal.state === 'stopped')
|
|
91
|
+
return { state: 'closed', issues: [] };
|
|
92
|
+
if (goal.paused_at)
|
|
93
|
+
return { state: 'healthy', issues: [] };
|
|
94
|
+
// The reason explains the stall; a wake check on top would say the same twice.
|
|
95
|
+
if (goal.blocked_reason)
|
|
96
|
+
return { state: 'attention', issues: ['blocked'] };
|
|
97
|
+
const issues = [];
|
|
98
|
+
const overdue = !!goal.next_wake_at && Date.parse(goal.next_wake_at) < now - MISSED_WAKE_MS;
|
|
99
|
+
if (goal.state === 'active') {
|
|
100
|
+
if (!goal.next_wake_at)
|
|
101
|
+
issues.push('no_heartbeat');
|
|
102
|
+
else if (overdue)
|
|
103
|
+
issues.push('missed_wake');
|
|
59
104
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
try {
|
|
63
|
-
return await (await readDriveFile(driveId, path)).blob.text();
|
|
105
|
+
else if (goal.state === 'waiting_on_user' && goal.chase_at && overdue) {
|
|
106
|
+
issues.push('missed_wake');
|
|
64
107
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return null;
|
|
68
|
-
throw error;
|
|
108
|
+
if (goal.state === 'verifying' && goal.verification?.outcome === 'pending' && Date.parse(goal.verification.started_at) < now - VERIFICATION_STALLED_MS) {
|
|
109
|
+
issues.push('verification_stalled');
|
|
69
110
|
}
|
|
111
|
+
return { state: issues.length ? 'attention' : 'healthy', issues };
|
|
70
112
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
113
|
+
/** The record in the shape of GOAL.md front matter, for callers that read `ProjectGoal.goal`. */
|
|
114
|
+
function recordDocument(record) {
|
|
115
|
+
return {
|
|
116
|
+
version: 1,
|
|
117
|
+
objective: record.title,
|
|
118
|
+
status: record.state,
|
|
119
|
+
summary: record.summary,
|
|
120
|
+
success_criteria: record.criteria.map((c) => ({ id: c.id, text: c.text, met: c.reported_met, evidence: c.evidence })),
|
|
121
|
+
items: [],
|
|
122
|
+
sessions: record.sessions,
|
|
123
|
+
reminder_id: null,
|
|
124
|
+
transitions: [],
|
|
125
|
+
verified_by: record.verification?.outcome === 'pass' ? record.verification.verifier_session_id : null,
|
|
126
|
+
next_wake_at: record.next_wake_at,
|
|
127
|
+
space: record.space,
|
|
128
|
+
agent: record.agent,
|
|
129
|
+
assigned_user: record.assigned_user_id,
|
|
130
|
+
links: [],
|
|
131
|
+
waiting_on: record.waiting_on,
|
|
132
|
+
heartbeat_every: record.heartbeat_every,
|
|
133
|
+
max_wakes_per_day: record.max_wakes_per_day,
|
|
134
|
+
max_sessions: record.max_sessions,
|
|
135
|
+
wake_day: null,
|
|
136
|
+
wake_count: record.wakes_today,
|
|
137
|
+
last_wake_at: record.last_wake_at,
|
|
138
|
+
paused_at: record.paused_at,
|
|
139
|
+
paused_by: record.paused_by_user_id,
|
|
140
|
+
format: 'goal.md',
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function toProjectGoal(record, now = Date.now()) {
|
|
144
|
+
return {
|
|
145
|
+
slug: record.slug,
|
|
146
|
+
scope: record.folder.startsWith('/Company/') ? 'company' : 'personal',
|
|
147
|
+
driveId: record.drive_id,
|
|
148
|
+
folder: record.folder,
|
|
149
|
+
goal: recordDocument(record),
|
|
150
|
+
heartbeat: null,
|
|
151
|
+
coordinatorSessionId: record.owner_session_id,
|
|
152
|
+
health: goalHealth(record, null, now),
|
|
153
|
+
projectId: record.project_id,
|
|
154
|
+
goalId: record.goal_id,
|
|
155
|
+
revision: record.revision,
|
|
156
|
+
capabilities: record.capabilities,
|
|
157
|
+
blockedReason: record.blocked_reason,
|
|
158
|
+
verification: record.verification,
|
|
159
|
+
criteria: record.criteria,
|
|
160
|
+
record,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function written(record) {
|
|
164
|
+
const projectGoal = toProjectGoal(record);
|
|
165
|
+
return { ...recordDocument(record), projectGoal };
|
|
166
|
+
}
|
|
167
|
+
/** A `409 goal_conflict` with the current goal becomes a `ProjectGoalConflictError`; anything else is thrown as is. */
|
|
168
|
+
function conflict(error) {
|
|
169
|
+
if (!(error instanceof ApiError) || error.status !== 409)
|
|
170
|
+
return error;
|
|
171
|
+
const body = error.details;
|
|
172
|
+
if (body?.error !== 'goal_conflict' || !body.goal || typeof body.goal.goal_id !== 'string')
|
|
173
|
+
return error;
|
|
174
|
+
return new ProjectGoalConflictError(error, toProjectGoal(body.goal));
|
|
175
|
+
}
|
|
176
|
+
/** Send one goal write; a `409 goal_conflict` throws `ProjectGoalConflictError`. */
|
|
177
|
+
async function goalWrite(send) {
|
|
74
178
|
try {
|
|
75
|
-
|
|
76
|
-
if (!value || typeof value !== 'object' || typeof value.objective !== 'string')
|
|
77
|
-
return null;
|
|
78
|
-
// A member can write any JSON here: keep only object entries of real arrays.
|
|
79
|
-
const list = (v) => (Array.isArray(v) ? v.filter((x) => x && typeof x === 'object') : []);
|
|
80
|
-
return {
|
|
81
|
-
...value,
|
|
82
|
-
success_criteria: list(value.success_criteria),
|
|
83
|
-
items: list(value.items),
|
|
84
|
-
sessions: list(value.sessions),
|
|
85
|
-
transitions: list(value.transitions),
|
|
86
|
-
format: 'goal.json',
|
|
87
|
-
};
|
|
179
|
+
return unwrap(await send(), 'Goal request failed').goal;
|
|
88
180
|
}
|
|
89
|
-
catch {
|
|
90
|
-
|
|
181
|
+
catch (error) {
|
|
182
|
+
throw conflict(error);
|
|
91
183
|
}
|
|
92
184
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
async function readGoalDocument(driveId, folder) {
|
|
99
|
-
const md = await readText(driveId, `${folder}/GOAL.md`);
|
|
100
|
-
if (md !== null)
|
|
101
|
-
return parseGoalFile(md);
|
|
102
|
-
return parseGoalJson(await readText(driveId, `${folder}/goal.json`));
|
|
103
|
-
}
|
|
104
|
-
/** The session that works the goal now: the last `owner` (or legacy `coordinator`). */
|
|
105
|
-
function ownerSessionId(goal) {
|
|
106
|
-
return [...(goal?.sessions ?? [])].reverse().find((s) => s.role === 'owner' || s.role === 'coordinator')?.id ?? null;
|
|
107
|
-
}
|
|
108
|
-
/** The heartbeat: the goal's recorded reminder, else a reminder whose prompt names the goal folder. */
|
|
109
|
-
function findHeartbeat(reminders, goal, scope, slug) {
|
|
110
|
-
const live = reminders.filter((r) => r.state !== 'done');
|
|
111
|
-
const byId = goal?.reminder_id ? live.find((r) => r.id === goal.reminder_id) : undefined;
|
|
112
|
-
if (byId)
|
|
113
|
-
return byId;
|
|
114
|
-
const boxFolder = goalBoxFolder({ scope, slug });
|
|
115
|
-
return live.find((r) => new RegExp(`${boxFolder.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}(?![\\w-])`).test(r.prompt)) ?? null;
|
|
185
|
+
const goalsPath = (projectId) => `/projects/${encodeURIComponent(projectId)}/goals`;
|
|
186
|
+
const goalPath = (projectId, goalId) => `${goalsPath(projectId)}/${encodeURIComponent(goalId)}`;
|
|
187
|
+
/** The route is not there for this caller: no such project route (404) or the `goals` flag is off (403 `feature_disabled`). */
|
|
188
|
+
function routeOff(error) {
|
|
189
|
+
return error instanceof ApiError && (error.status === 404 || (error.status === 403 && error.code === 'feature_disabled'));
|
|
116
190
|
}
|
|
117
191
|
/**
|
|
118
|
-
* Every goal in the project the caller
|
|
119
|
-
*
|
|
192
|
+
* Every goal in the project the caller may read, from the API: their own,
|
|
193
|
+
* the ones assigned to them, the ones in folders shared with them, and all
|
|
194
|
+
* of them for a project admin. Empty when the `goals` flag is off.
|
|
120
195
|
*/
|
|
121
196
|
export async function listProjectGoals(projectId, options) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
197
|
+
let records;
|
|
198
|
+
try {
|
|
199
|
+
records = unwrap(await backendApi.get(goalsPath(projectId)), 'Goals request failed').goals;
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
if (routeOff(error))
|
|
203
|
+
return [];
|
|
126
204
|
throw error;
|
|
127
|
-
}
|
|
128
|
-
if (!drive)
|
|
129
|
-
return [];
|
|
130
|
-
const roots = [{ scope: 'company', path: '/Company/Goals' }];
|
|
131
|
-
if (drive.personalFolder)
|
|
132
|
-
roots.push({ scope: 'personal', path: `${drive.personalFolder}/Goals` });
|
|
133
|
-
const folders = (await Promise.all(roots.map(async (root) => (await folderDirs(drive.driveId, root.path)).sort().map((folder) => ({ ...root, folder }))))).flat();
|
|
134
|
-
if (folders.length === 0)
|
|
135
|
-
return [];
|
|
136
|
-
const [{ reminders }, docs] = await Promise.all([
|
|
137
|
-
listProjectReminders(projectId),
|
|
138
|
-
Promise.all(folders.map((f) => readGoalDocument(drive.driveId, f.folder))),
|
|
139
|
-
]);
|
|
205
|
+
}
|
|
140
206
|
const now = options?.now ?? Date.now();
|
|
141
|
-
return
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
health: goalHealth(goal, heartbeat, now),
|
|
154
|
-
};
|
|
155
|
-
});
|
|
207
|
+
return records.map((record) => toProjectGoal(record, now));
|
|
208
|
+
}
|
|
209
|
+
/** One goal by its `goal_id`. Throws `ApiError` 404 (no such goal) or 403 (no access). */
|
|
210
|
+
export async function getProjectGoal(projectId, goalId, options) {
|
|
211
|
+
const { goal } = unwrap(await backendApi.get(goalPath(projectId, goalId)), 'Goal request failed');
|
|
212
|
+
return toProjectGoal(goal, options?.now);
|
|
213
|
+
}
|
|
214
|
+
/** A page of a goal's audit trail, oldest first. Pass `nextCursor` back as `cursor` for the next page; null: no more. */
|
|
215
|
+
export async function listProjectGoalEvents(projectId, goalId, options) {
|
|
216
|
+
const query = options?.cursor ? `?cursor=${encodeURIComponent(options.cursor)}` : '';
|
|
217
|
+
const page = unwrap(await backendApi.get(`${goalPath(projectId, goalId)}/events${query}`), 'Goal events request failed');
|
|
218
|
+
return { events: page.events, nextCursor: page.next_cursor };
|
|
156
219
|
}
|
|
157
220
|
/**
|
|
158
|
-
* Bind a goal to a space or an agent
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* the document as written. Grouping only: it grants nothing.
|
|
221
|
+
* Bind a goal to a space or an agent (`PATCH …/goals/:goalId`): null clears
|
|
222
|
+
* one, an absent key keeps it. Grouping only: it grants nothing. A stale
|
|
223
|
+
* `revision` throws `ProjectGoalConflictError`.
|
|
162
224
|
*/
|
|
163
225
|
export async function setProjectGoalBinding(goal, binding) {
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
226
|
+
const projectId = goal.projectId ?? goal.record?.project_id;
|
|
227
|
+
if (!projectId)
|
|
228
|
+
throw new Error('setProjectGoalBinding needs the goal\'s projectId.');
|
|
229
|
+
return written(await goalWrite(() => backendApi.patch(goalPath(projectId, goal.goalId), { revision: goal.revision, ...binding })));
|
|
230
|
+
}
|
|
231
|
+
async function readText(driveId, path) {
|
|
232
|
+
try {
|
|
233
|
+
return await (await readDriveFile(driveId, path)).blob.text();
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
if (error instanceof ApiError && error.status === 404)
|
|
237
|
+
return null;
|
|
238
|
+
throw error;
|
|
239
|
+
}
|
|
175
240
|
}
|
|
176
241
|
/** A goal folder's text files. A missing file is null. */
|
|
177
242
|
export async function getProjectGoalFiles(driveId, folder) {
|
|
178
|
-
const [log, notes, verification] = await Promise.all([
|
|
243
|
+
const [brief, log, notes, verification] = await Promise.all([
|
|
244
|
+
readText(driveId, `${folder}/GOAL.md`),
|
|
179
245
|
readText(driveId, `${folder}/log.md`),
|
|
180
246
|
readText(driveId, `${folder}/notes.md`),
|
|
181
247
|
readText(driveId, `${folder}/evidence/verification.md`),
|
|
182
248
|
]);
|
|
183
|
-
return { log, notes, verification };
|
|
249
|
+
return { brief, log, notes, verification };
|
|
184
250
|
}
|
|
185
251
|
/**
|
|
186
|
-
* A person stops a goal (any open state → `stopped
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* again. Returns the document as written. Throws on a closed goal and on a
|
|
190
|
-
* legacy `goal.json` folder.
|
|
252
|
+
* A person stops a goal (`POST …/stop`): any open state → `stopped`. The API
|
|
253
|
+
* removes the heartbeat and aborts the owner's running turn. A retry on a
|
|
254
|
+
* goal that is already stopped finishes that cleanup and succeeds.
|
|
191
255
|
*/
|
|
192
256
|
export async function stopProjectGoal(projectId, goal, reason) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
257
|
+
return written(await goalWrite(() => backendApi.post(`${goalPath(projectId, goal.goalId)}/stop`, { revision: goal.revision, reason })));
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* A person pauses a goal (`POST …/pause`). The state does not change; no new
|
|
261
|
+
* turn starts until a person resumes it. A turn already running finishes,
|
|
262
|
+
* and the API refuses its lifecycle writes.
|
|
263
|
+
*/
|
|
264
|
+
export async function pauseProjectGoal(projectId, goal, reason) {
|
|
265
|
+
return written(await goalWrite(() => backendApi.post(`${goalPath(projectId, goal.goalId)}/pause`, { revision: goal.revision, reason })));
|
|
266
|
+
}
|
|
267
|
+
/** A person resumes a paused goal (`POST …/resume`): the heartbeat runs again and the owner wakes once. */
|
|
268
|
+
export async function resumeProjectGoal(projectId, goal) {
|
|
269
|
+
return written(await goalWrite(() => backendApi.post(`${goalPath(projectId, goal.goalId)}/resume`, { revision: goal.revision })));
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* A person starts a stopped goal again (`POST …/restart`): `active` when it
|
|
273
|
+
* has criteria, else `draft`. When the owner session is gone the API starts a
|
|
274
|
+
* new one (within `max_sessions`).
|
|
275
|
+
*/
|
|
276
|
+
export async function restartProjectGoal(projectId, goal, reason) {
|
|
277
|
+
return written(await goalWrite(() => backendApi.post(`${goalPath(projectId, goal.goalId)}/restart`, { revision: goal.revision, reason })));
|
|
278
|
+
}
|
|
279
|
+
const MAX_GOAL_CRITERIA = 8;
|
|
280
|
+
/** My Kortix's sandbox slugs (current and legacy): a session on one mounts no Files, so it cannot run `kortix goals`. */
|
|
281
|
+
const NO_FILES_SANDBOXES = new Set(['mykortix', 'meta']);
|
|
282
|
+
function goalAgents(config) {
|
|
283
|
+
return (config.agents ?? []).filter((a) => a.enabled !== false && !a.hidden && !a.platform && !NO_FILES_SANDBOXES.has(a.sandbox ?? '') && !NO_FILES_SANDBOXES.has(a.name));
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* The agent a new goal runs when none is named: the project's default agent
|
|
287
|
+
* if it can work a goal, else the first primary agent that can, else the
|
|
288
|
+
* first that can. Null when none can (no agent with Files). A composer that
|
|
289
|
+
* starts goals opens its agent picker on this agent.
|
|
290
|
+
*/
|
|
291
|
+
export function defaultGoalAgent(config) {
|
|
292
|
+
const agents = goalAgents(config);
|
|
293
|
+
const pick = agents.find((a) => a.name === config.default_agent) ?? agents.find((a) => a.mode !== 'subagent') ?? agents[0];
|
|
294
|
+
return pick?.name ?? null;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* A person creates a goal (`POST /projects/:projectId/goals`). The API puts
|
|
298
|
+
* it in the caller's own folder, writes GOAL.md and log.md, starts the owner
|
|
299
|
+
* session with its heartbeat, and sends the first wake. `goalId` is the
|
|
300
|
+
* idempotency key: a retry with the same id returns the same goal and starts
|
|
301
|
+
* nothing twice. Throws before any request on an empty outcome or more than
|
|
302
|
+
* 8 criteria; the API refuses an agent without Files.
|
|
303
|
+
*/
|
|
304
|
+
export async function createProjectGoal(projectId, input) {
|
|
305
|
+
const text = input.outcome.trim();
|
|
306
|
+
if (!text)
|
|
307
|
+
throw new Error('Describe the outcome.');
|
|
308
|
+
const [firstLine = '', ...rest] = text.split('\n');
|
|
309
|
+
const context = briefContext(rest);
|
|
310
|
+
const brief = context ? `${firstLine.trim()}\n${context}` : firstLine.trim();
|
|
311
|
+
const criteria = (input.criteria ?? []).map((c) => c.trim()).filter(Boolean);
|
|
312
|
+
if (criteria.length > MAX_GOAL_CRITERIA)
|
|
313
|
+
throw new Error(`A goal has at most ${MAX_GOAL_CRITERIA} done criteria.`);
|
|
314
|
+
const goalId = input.goalId ?? input.sessionId ?? generateSessionId();
|
|
315
|
+
const payload = { goal_id: goalId, brief };
|
|
316
|
+
if (criteria.length)
|
|
317
|
+
payload.criteria = criteria;
|
|
318
|
+
if (input.agent)
|
|
319
|
+
payload.agent = input.agent;
|
|
320
|
+
if (input.assignedUser)
|
|
321
|
+
payload.assigned_user_id = input.assignedUser;
|
|
322
|
+
const goal = toProjectGoal(await goalWrite(() => backendApi.post(goalsPath(projectId), payload)));
|
|
323
|
+
return {
|
|
324
|
+
slug: goal.slug,
|
|
325
|
+
scope: 'personal',
|
|
326
|
+
driveId: goal.driveId,
|
|
327
|
+
folder: goal.folder,
|
|
328
|
+
sessionId: goal.coordinatorSessionId ?? '',
|
|
329
|
+
goalId: goal.goalId,
|
|
330
|
+
goal,
|
|
208
331
|
};
|
|
209
|
-
await uploadDriveFile(goal.driveId, path, new TextEncoder().encode(formatGoalFile(next)), { ifMatch: version });
|
|
210
|
-
const log = (await readText(goal.driveId, `${goal.folder}/log.md`)) ?? '# Log\n';
|
|
211
|
-
await uploadDriveFile(goal.driveId, `${goal.folder}/log.md`, new TextEncoder().encode(`${log.trimEnd()}\n- ${at} ${current.status} → stopped: ${reason}\n`));
|
|
212
|
-
if (goal.heartbeat?.session_id && goal.heartbeat.state !== 'done') {
|
|
213
|
-
await deleteSessionReminder(projectId, goal.heartbeat.session_id, goal.heartbeat.id);
|
|
214
|
-
}
|
|
215
|
-
return next;
|
|
216
332
|
}
|
|
217
333
|
/**
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
334
|
+
* A brief's lines after its first, as Markdown that reads as written: a plain
|
|
335
|
+
* line right after a list item gets a blank line before it, so it is not
|
|
336
|
+
* folded into that item (Markdown's lazy continuation).
|
|
221
337
|
*/
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
338
|
+
function briefContext(lines) {
|
|
339
|
+
const out = [];
|
|
340
|
+
const item = /^\s*([-*+]|\d+[.)])\s/;
|
|
341
|
+
for (const line of lines) {
|
|
342
|
+
const previous = out.at(-1);
|
|
343
|
+
if (previous !== undefined && item.test(previous) && line.trim() && !item.test(line) && !/^\s/.test(line))
|
|
344
|
+
out.push('');
|
|
345
|
+
out.push(line.trimEnd());
|
|
346
|
+
}
|
|
347
|
+
return out.join('\n').trim();
|
|
226
348
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
349
|
+
/**
|
|
350
|
+
* A person answers a goal (`POST …/answer`): the API queues the text into
|
|
351
|
+
* the owner session, attributed to the caller, and a goal waiting on a
|
|
352
|
+
* person goes back to active. `answerId` is the idempotency key: pass the
|
|
353
|
+
* same id to retry, and the owner gets the answer once. Omitted: a new id.
|
|
354
|
+
* Resolves when the answer is durable, not when it is read.
|
|
355
|
+
*/
|
|
356
|
+
export async function replyToProjectGoal(projectId, goal, text, options) {
|
|
357
|
+
// The body is not read: an answer route that replies `202` with no goal is as good as one that returns it.
|
|
358
|
+
const response = await backendApi.post(`${goalPath(projectId, goal.goalId)}/answer`, {
|
|
359
|
+
answer_id: options?.answerId ?? generateSessionId(),
|
|
360
|
+
text,
|
|
233
361
|
});
|
|
362
|
+
if (!response.success)
|
|
363
|
+
throw conflict(response.error ?? new Error('Goal request failed'));
|
|
234
364
|
}
|
|
235
365
|
/** What a session reads when a person asks it to turn the conversation into a goal. */
|
|
236
366
|
export const MAKE_GOAL_PROMPT = 'Make this a goal. Load the kortix-goals skill, then turn what we discussed into a goal with `kortix goals new`: ' +
|
|
237
367
|
'state the outcome, write the done criteria someone else can check, and start working it.';
|
|
238
368
|
/** "Make this a goal" from a chat: queue `MAKE_GOAL_PROMPT` into that session. */
|
|
239
369
|
export async function makeSessionGoal(projectId, sessionId) {
|
|
240
|
-
await
|
|
370
|
+
await createSessionPrompt(projectId, sessionId, {
|
|
371
|
+
clientMessageId: generateSessionId(),
|
|
372
|
+
messageId: mintWireMessageId(),
|
|
373
|
+
parts: [{ type: 'text', text: MAKE_GOAL_PROMPT }],
|
|
374
|
+
remintOnDelivery: true,
|
|
375
|
+
});
|
|
241
376
|
}
|
|
242
377
|
//# sourceMappingURL=goals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goals.js","sourceRoot":"","sources":["../../../../src/core/rest/projects-client/goals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAwB,MAAM,qBAAqB,CAAC;AAuIxG,MAAM,MAAM,GAAG,IAAI,GAAG,CAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;AAC5E,MAAM,cAAc,GAAG,EAAE,GAAG,MAAM,CAAC;AACnC,MAAM,uBAAuB,GAAG,EAAE,GAAG,SAAS,CAAC;AAE/C,6EAA6E;AAC7E,MAAM,UAAU,UAAU,CACxB,IAAgC,EAChC,SAAiC,EACjC,MAAc,IAAI,CAAC,GAAG,EAAE;IAExB,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;IACjE,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;QAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,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,SAAS,EAAE;QAC9C,eAAe,EAAE,iBAAiB,EAAE;QACpC,SAAS,EAAE,iBAAiB,EAAE;QAC9B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;QACjD,gBAAgB,EAAE,IAAI;KACvB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -63,9 +63,17 @@ export declare const PROJECT_ACTIONS: {
|
|
|
63
63
|
readonly PROJECT_REVIEW_SUBMIT: "project.review.submit";
|
|
64
64
|
/** A verdict on a review item: approve, reject, request changes, answer. */
|
|
65
65
|
readonly PROJECT_REVIEW_ACT: "project.review.act";
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* List rooms and read their messages (`agent_rooms` flag).
|
|
68
|
+
*
|
|
69
|
+
* @deprecated Rooms were removed (2026-11); the API no longer serves these routes. Removed in the next major.
|
|
70
|
+
*/
|
|
67
71
|
readonly PROJECT_ROOM_READ: "project.room.read";
|
|
68
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Create a room, post, put a session in or take it out, set the topic.
|
|
74
|
+
*
|
|
75
|
+
* @deprecated Rooms were removed (2026-11); the API no longer serves these routes. Removed in the next major.
|
|
76
|
+
*/
|
|
69
77
|
readonly PROJECT_ROOM_WRITE: "project.room.write";
|
|
70
78
|
readonly PROJECT_ARTIFACT_READ: "project.artifact.read";
|
|
71
79
|
readonly PROJECT_ARTIFACT_COMMENT: "project.artifact.comment";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-actions.d.ts","sourceRoot":"","sources":["../../../../src/core/rest/projects-client/iam-actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,gBAAgB,CAAC;AAEnE;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;IAG1B,sFAAsF;;;;;;;;;;;;;;;;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