@kortix/sdk 0.15.0 → 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 +43 -2
- 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 +4 -4
- 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 -3
- 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 -1
- package/dist/browser/stores/runtime-pending-store.js.map +1 -0
- package/dist/browser/stores/sandbox-connection-store.d.ts +18 -3
- package/dist/browser/stores/sandbox-connection-store.d.ts.map +1 -1
- package/dist/browser/stores/sandbox-connection-store.js +57 -3
- package/dist/browser/stores/sandbox-connection-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.js +3 -3
- package/dist/core/agents/composer-agents.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/kortix.d.ts +12 -4
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/project-access-resources.d.ts +4 -1
- package/dist/core/client/project-access-resources.d.ts.map +1 -1
- package/dist/core/client/project-core.d.ts +3 -3
- package/dist/core/client/project-core.d.ts.map +1 -1
- package/dist/core/client/project-operations-admin.d.ts +4 -0
- package/dist/core/client/project-operations-admin.d.ts.map +1 -1
- package/dist/core/client/project-operations-review.d.ts +5 -0
- package/dist/core/client/project-operations-review.d.ts.map +1 -1
- package/dist/core/client/project-operations-review.js +5 -0
- package/dist/core/client/project-operations-review.js.map +1 -1
- package/dist/core/client/project-operations-workspace.d.ts +4 -0
- package/dist/core/client/project-operations-workspace.d.ts.map +1 -1
- package/dist/core/client/project-operations.d.ts +4 -0
- package/dist/core/client/project-operations.d.ts.map +1 -1
- package/dist/core/client/session-handle.d.ts +1 -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/files/client.js +1 -1
- package/dist/core/files/client.js.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/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 -5
- package/dist/core/http/runtime-errors.d.ts.map +1 -1
- package/dist/core/http/runtime-errors.js +7 -12
- package/dist/core/http/runtime-errors.js.map +1 -1
- package/dist/core/models/provider-connections.d.ts +6 -1
- package/dist/core/models/provider-connections.d.ts.map +1 -1
- package/dist/core/models/provider-connections.js +6 -1
- package/dist/core/models/provider-connections.js.map +1 -1
- 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/projects-client/agent-config.d.ts +7 -8
- 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 +11 -3
- package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
- package/dist/core/rest/projects-client/apps.js +7 -2
- package/dist/core/rest/projects-client/apps.js.map +1 -1
- package/dist/core/rest/projects-client/artifacts.d.ts.map +1 -1
- package/dist/core/rest/projects-client/artifacts.js +11 -6
- package/dist/core/rest/projects-client/artifacts.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/goals.d.ts +260 -83
- package/dist/core/rest/projects-client/goals.d.ts.map +1 -1
- package/dist/core/rest/projects-client/goals.js +245 -400
- package/dist/core/rest/projects-client/goals.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 +35 -19
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +3 -2
- package/dist/core/rest/projects-client/projects.js.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/session-sandbox.d.ts +2 -2
- package/dist/core/rest/projects-client/session-sandbox.js +1 -1
- package/dist/core/rest/projects-client/sessions.d.ts +16 -18
- package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sessions.js +2 -2
- package/dist/core/rest/projects-client/sessions.js.map +1 -1
- package/dist/core/rest/projects-client/spaces.d.ts +32 -0
- package/dist/core/rest/projects-client/spaces.d.ts.map +1 -1
- package/dist/core/rest/projects-client/spaces.js +13 -0
- package/dist/core/rest/projects-client/spaces.js.map +1 -1
- package/dist/core/rest/projects-client/triggers.d.ts +6 -0
- package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
- package/dist/core/rest/projects-client/triggers.js.map +1 -1
- package/dist/core/runtime/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/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/runtime-actions.d.ts +3 -2
- package/dist/core/session/runtime-actions.d.ts.map +1 -1
- package/dist/core/session/runtime-actions.js.map +1 -1
- package/dist/core/session/server-store/active.d.ts +2 -2
- package/dist/core/session/server-store/active.js +2 -2
- 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-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 +3 -3
- 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 +2 -2
- 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/event-attempt.js +1 -1
- package/dist/core/stream/event-attempt.js.map +1 -1
- package/dist/core/stream/event-stream.d.ts +6 -6
- package/dist/core/stream/event-stream.js +4 -4
- package/dist/core/turns/shell.d.ts +2 -2
- package/dist/core/turns/shell.js +2 -2
- 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 +8 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/kortix.esm.min.js +51 -66
- package/dist/kortix.global.js +51 -66
- 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 +6 -4
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +11 -10
- package/dist/react/index.js.map +1 -1
- package/dist/react/initial-session-pin.d.ts +1 -1
- package/dist/react/initial-session-pin.d.ts.map +1 -1
- package/dist/react/initial-session-pin.js +3 -3
- package/dist/react/initial-session-pin.js.map +1 -1
- package/dist/react/provider-refresh.d.ts +1 -1
- package/dist/react/provider-refresh.js +4 -4
- package/dist/react/provider-refresh.js.map +1 -1
- package/dist/react/query-keys.d.ts +8 -2
- package/dist/react/query-keys.d.ts.map +1 -1
- package/dist/react/query-keys.js +8 -2
- 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.js +1 -1
- package/dist/react/runtime-actions.js.map +1 -1
- package/dist/react/{opencode.d.ts → runtime-hooks.d.ts} +14 -14
- package/dist/react/runtime-hooks.d.ts.map +1 -0
- package/dist/react/{opencode.js → runtime-hooks.js} +19 -19
- 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/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-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-canonical-opencode-session.d.ts → use-canonical-runtime-session.d.ts} +6 -6
- 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 -5
- 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.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-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 +13 -26
- package/dist/react/use-project-apps.d.ts.map +1 -1
- package/dist/react/use-project-apps.js +15 -4
- package/dist/react/use-project-apps.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 +11 -1
- package/dist/react/use-project-spaces.d.ts.map +1 -1
- package/dist/react/use-project-spaces.js +22 -1
- package/dist/react/use-project-spaces.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-runtime-boot-stalled.d.ts +1 -1
- package/dist/react/use-runtime-boot-stalled.js +1 -1
- package/dist/react/{use-opencode-config.d.ts → use-runtime-config.d.ts} +4 -4
- package/dist/react/use-runtime-config.d.ts.map +1 -0
- package/dist/react/{use-opencode-config.js → use-runtime-config.js} +5 -5
- 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 -3
- 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 -1
- 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-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.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 +1 -1
- 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 -2
- 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 +4 -4
- package/dist/react/use-runtime-events/helpers.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/helpers.js +6 -5
- package/dist/react/use-runtime-events/helpers.js.map +1 -0
- package/dist/react/use-runtime-events/hydrate-core.d.ts.map +1 -0
- package/dist/react/use-runtime-events/hydrate-core.js.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/index.d.ts +2 -2
- package/dist/react/use-runtime-events/index.d.ts.map +1 -0
- package/dist/react/{use-opencode-events → use-runtime-events}/index.js +8 -8
- 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-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 -1
- package/dist/react/use-runtime-local.d.ts.map +1 -0
- package/dist/react/{use-opencode-local.js → use-runtime-local.js} +1 -1
- 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 -1
- package/dist/react/use-runtime-pty.d.ts.map +1 -0
- package/dist/react/{use-opencode-pty.js → use-runtime-pty.js} +3 -3
- 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-opencode-sessions → use-runtime-sessions}/agents.d.ts +2 -3
- package/dist/react/use-runtime-sessions/agents.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/agents.js +2 -3
- package/dist/react/use-runtime-sessions/agents.js.map +1 -0
- package/dist/react/use-runtime-sessions/commands.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/commands.js.map +1 -0
- package/dist/react/use-runtime-sessions/files.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/files.js.map +1 -0
- package/dist/react/use-runtime-sessions/index.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/index.js +3 -4
- package/dist/react/use-runtime-sessions/index.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/keys.d.ts +23 -23
- package/dist/react/use-runtime-sessions/keys.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/keys.js +22 -22
- package/dist/react/use-runtime-sessions/keys.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/log-sessions.d.ts +1 -1
- package/dist/react/use-runtime-sessions/log-sessions.d.ts.map +1 -0
- 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 -2
- package/dist/react/use-runtime-sessions/messages.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/messages.js +3 -3
- package/dist/react/use-runtime-sessions/messages.js.map +1 -0
- package/dist/react/use-runtime-sessions/permissions.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/permissions.js.map +1 -0
- package/dist/react/use-runtime-sessions/projects.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/projects.js.map +1 -0
- package/dist/react/use-runtime-sessions/providers.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/providers.js +3 -3
- package/dist/react/use-runtime-sessions/providers.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/sessions.d.ts +1 -1
- package/dist/react/use-runtime-sessions/sessions.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/sessions.js +13 -12
- package/dist/react/use-runtime-sessions/sessions.js.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/shared.d.ts +5 -5
- package/dist/react/use-runtime-sessions/shared.d.ts.map +1 -0
- package/dist/react/{use-opencode-sessions → use-runtime-sessions}/shared.js +5 -5
- package/dist/react/use-runtime-sessions/shared.js.map +1 -0
- package/dist/react/use-runtime-sessions/vcs.d.ts.map +1 -0
- package/dist/react/use-runtime-sessions/vcs.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 -5
- 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 +1 -1
- package/dist/react/use-session-sync.js +4 -4
- 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 +6 -6
- package/dist/react/use-session.d.ts.map +1 -1
- package/dist/react/use-session.js +30 -21
- package/dist/react/use-session.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 -3
- 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/react/opencode.d.ts.map +0 -1
- package/dist/react/opencode.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.map +0 -1
- 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.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.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-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.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.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.map +0 -1
- 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/messages.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/messages.js.map +0 -1
- package/dist/react/use-opencode-sessions/permissions.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/permissions.js.map +0 -1
- 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.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/vcs.d.ts.map +0 -1
- package/dist/react/use-opencode-sessions/vcs.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-interaction-event.js +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-message-event.js +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}/hydrate-core.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/hydrate-core.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.d.ts +0 -0
- /package/dist/react/{use-opencode-events → use-runtime-events}/types.js +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/commands.d.ts +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/commands.js +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/files.d.ts +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/files.js +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/index.d.ts +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/log-sessions.js +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/permissions.d.ts +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/permissions.js +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/projects.d.ts +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/projects.js +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/providers.d.ts +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/vcs.d.ts +0 -0
- /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/vcs.js +0 -0
|
@@ -1,19 +1,24 @@
|
|
|
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
|
*/
|
|
18
|
+
import { ApiError } from '../../http/api-client.js';
|
|
14
19
|
import type { ResourceBinding } from './manifest-spaces.js';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
20
|
+
import type { ProjectConfigSummary } from './projects.js';
|
|
21
|
+
import type { ProjectReminder } from './session-reminders.js';
|
|
17
22
|
export type ProjectGoalStatus = 'draft' | 'active' | 'waiting_on_user' | 'waiting_external' | 'verifying' | 'done' | 'stopped' | 'abandoned';
|
|
18
23
|
export interface ProjectGoalCriterion {
|
|
19
24
|
id: string;
|
|
@@ -51,8 +56,13 @@ export interface ProjectGoalTransition {
|
|
|
51
56
|
by: string;
|
|
52
57
|
}
|
|
53
58
|
/**
|
|
54
|
-
* A goal's definition and state
|
|
55
|
-
* (`parseGoalFile`)
|
|
59
|
+
* A goal's definition and state in the shape GOAL.md front matter had
|
|
60
|
+
* (`parseGoalFile`). `ProjectGoal.goal` holds it, derived from the server
|
|
61
|
+
* record: `success_criteria[].met` is the owner's claim (`reported_met`),
|
|
62
|
+
* never verification (read `ProjectGoal.criteria[].verified`), `items`,
|
|
63
|
+
* `transitions` and `links` are empty (read `listProjectGoalEvents`), and
|
|
64
|
+
* `body` is absent (read `getProjectGoalFiles(...).brief`). Lifecycle fields
|
|
65
|
+
* written into a GOAL.md file change nothing: the API owns them.
|
|
56
66
|
*/
|
|
57
67
|
export interface ProjectGoalDocument {
|
|
58
68
|
version: 1;
|
|
@@ -108,91 +118,249 @@ export interface ProjectGoalDocument {
|
|
|
108
118
|
* - `ask_overdue`: an open ask is past its due time.
|
|
109
119
|
* - `verification_stalled`: verification started more than 24 hours ago.
|
|
110
120
|
* - `unreadable`: GOAL.md (or a legacy goal.json) is missing or has no goal.
|
|
121
|
+
* - `blocked`: the server records why the goal cannot go on by itself
|
|
122
|
+
* (`ProjectGoal.blockedReason`: credits, a cap, a lost owner, storage, the flag, setup).
|
|
111
123
|
*/
|
|
112
|
-
export type ProjectGoalIssue = 'no_heartbeat' | 'heartbeat_paused' | 'heartbeat_failed' | 'missed_wake' | 'ask_overdue' | 'verification_stalled' | 'unreadable';
|
|
124
|
+
export type ProjectGoalIssue = 'no_heartbeat' | 'heartbeat_paused' | 'heartbeat_failed' | 'missed_wake' | 'ask_overdue' | 'verification_stalled' | 'unreadable' | 'blocked';
|
|
113
125
|
export interface ProjectGoalHealth {
|
|
114
126
|
/** `closed`: done or abandoned. `attention`: at least one issue. */
|
|
115
127
|
state: 'healthy' | 'attention' | 'closed';
|
|
116
128
|
issues: ProjectGoalIssue[];
|
|
117
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* One goal as the API holds it (`ProjectGoalRecord`), in the shape the SDK
|
|
132
|
+
* has always returned plus the server fields. Use `goalId` to address it and
|
|
133
|
+
* send `revision` back on every write.
|
|
134
|
+
*/
|
|
118
135
|
export interface ProjectGoal {
|
|
119
|
-
/** The folder name. Unique within
|
|
136
|
+
/** The folder name. Unique within the folder's parent. Use `goalId` to address a goal. */
|
|
120
137
|
slug: string;
|
|
121
|
-
/** `company`: under `/Company
|
|
138
|
+
/** `company`: a folder under `/Company/`. `personal`: any other folder (a person's own or a shared one). Read `folder` for where it is. */
|
|
122
139
|
scope: 'company' | 'personal';
|
|
123
140
|
driveId: string;
|
|
124
|
-
/** The folder's path in Files, for example `/
|
|
141
|
+
/** The folder's path in Files, for example `/Users/<user_id>/Goals/bank-close`. */
|
|
125
142
|
folder: string;
|
|
126
|
-
/**
|
|
143
|
+
/** The record in the shape of GOAL.md front matter (see `ProjectGoalDocument`). Never null for a server record. */
|
|
127
144
|
goal: ProjectGoalDocument | null;
|
|
128
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated The API owns the heartbeat and does not expose its reminder.
|
|
147
|
+
* Always null; read `record.next_wake_at` and `record.last_wake_at`.
|
|
148
|
+
*/
|
|
129
149
|
heartbeat: ProjectReminder | null;
|
|
150
|
+
/** The goal's current owner session (`record.owner_session_id`). */
|
|
130
151
|
coordinatorSessionId: string | null;
|
|
131
152
|
health: ProjectGoalHealth;
|
|
153
|
+
/** The project the goal belongs to. */
|
|
154
|
+
projectId: string;
|
|
155
|
+
/** The goal's stable id (`goal_id`): its page is `/projects/<projectId>/goals/<goalId>`. */
|
|
156
|
+
goalId: string;
|
|
157
|
+
/** Compare-and-set token: every write sends the revision it read. A stale one throws `ProjectGoalConflictError`. */
|
|
158
|
+
revision: number;
|
|
159
|
+
/** What the caller may do on this goal now. Show only these controls. */
|
|
160
|
+
capabilities: ProjectGoalCapabilities;
|
|
161
|
+
/** Why the goal cannot go on by itself, or null. */
|
|
162
|
+
blockedReason: ProjectGoalBlockedReason | null;
|
|
163
|
+
/** The latest independent verification, or null. */
|
|
164
|
+
verification: ProjectGoalVerification | null;
|
|
165
|
+
/** Done criteria: `reported_met` is the owner's claim, `verified` is the verifier's pass. */
|
|
166
|
+
criteria: ProjectGoalCriterionStatus[];
|
|
167
|
+
/** The server record as the API returned it. */
|
|
168
|
+
record: ProjectGoalRecord;
|
|
132
169
|
}
|
|
133
|
-
/**
|
|
134
|
-
export
|
|
170
|
+
/** States of the server record. */
|
|
171
|
+
export type ProjectGoalRecordState = 'draft' | 'active' | 'waiting_on_user' | 'verifying' | 'done' | 'stopped';
|
|
135
172
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
173
|
+
* Why a goal cannot make progress by itself right now.
|
|
174
|
+
* - `credits`: a wake was refused for credits; it goes on after a top-up and a person's resume.
|
|
175
|
+
* - `wake_cap`: `max_wakes_per_day` reached; it goes on the next UTC day by itself.
|
|
176
|
+
* - `session_cap`: `max_sessions` reached; a person raises the cap.
|
|
177
|
+
* - `owner_lost`: the owner session failed and no successor took over; a person restarts it.
|
|
178
|
+
* - `storage`: the goal's folder in Files could not be read or written.
|
|
179
|
+
* - `flag_off`: the project's `goals` flag is off; nothing runs until it is on and a person resumes.
|
|
180
|
+
* - `setup`: create did not finish; the API finishes it by itself.
|
|
181
|
+
*/
|
|
182
|
+
export type ProjectGoalBlockedReason = 'credits' | 'wake_cap' | 'session_cap' | 'owner_lost' | 'storage' | 'flag_off' | 'setup';
|
|
183
|
+
/** What the caller may do on a goal now. A person who may not sees no control. */
|
|
184
|
+
export interface ProjectGoalCapabilities {
|
|
185
|
+
read: boolean;
|
|
186
|
+
edit: boolean;
|
|
187
|
+
pause: boolean;
|
|
188
|
+
resume: boolean;
|
|
189
|
+
stop: boolean;
|
|
190
|
+
restart: boolean;
|
|
191
|
+
answer: boolean;
|
|
192
|
+
edit_criteria: boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface ProjectGoalCriterionStatus {
|
|
195
|
+
id: string;
|
|
196
|
+
text: string;
|
|
197
|
+
/** The owner's claim. Not verification: see `verified`. */
|
|
198
|
+
reported_met: boolean;
|
|
199
|
+
/** A path relative to the goal folder, under `evidence/`. */
|
|
200
|
+
evidence: string | null;
|
|
201
|
+
/** True only after a passed verification of the current criteria. */
|
|
202
|
+
verified: boolean;
|
|
203
|
+
}
|
|
204
|
+
export interface ProjectGoalVerification {
|
|
205
|
+
attempt: number;
|
|
206
|
+
verifier_session_id: string;
|
|
207
|
+
criteria_revision: number;
|
|
208
|
+
started_at: string;
|
|
209
|
+
decided_at: string | null;
|
|
210
|
+
outcome: 'pending' | 'pass' | 'fail';
|
|
211
|
+
results: Array<{
|
|
212
|
+
criterion_id: string;
|
|
213
|
+
result: 'pass' | 'fail' | 'inconclusive';
|
|
214
|
+
note: string;
|
|
215
|
+
}>;
|
|
216
|
+
/** Evidence files the verdict covered: path → sha256 at verdict time. */
|
|
217
|
+
evidence_hashes: Record<string, string>;
|
|
218
|
+
}
|
|
219
|
+
/** A goal as `GET /projects/:projectId/goals` returns it (`packages/api-contract` `Goal`). */
|
|
220
|
+
export interface ProjectGoalRecord {
|
|
221
|
+
goal_id: string;
|
|
222
|
+
project_id: string;
|
|
223
|
+
revision: number;
|
|
224
|
+
title: string;
|
|
225
|
+
state: ProjectGoalRecordState;
|
|
226
|
+
/** The question the goal waits on while `waiting_on_user`. */
|
|
227
|
+
waiting_on: string | null;
|
|
228
|
+
/** When a `waiting_on_user` goal wakes to chase, if it asked to. */
|
|
229
|
+
chase_at: string | null;
|
|
230
|
+
summary: string;
|
|
231
|
+
paused_at: string | null;
|
|
232
|
+
paused_by_user_id: string | null;
|
|
233
|
+
stopped_at: string | null;
|
|
234
|
+
blocked_reason: ProjectGoalBlockedReason | null;
|
|
235
|
+
assigned_user_id: string | null;
|
|
236
|
+
created_by_user_id: string;
|
|
237
|
+
agent: string | null;
|
|
238
|
+
space: string | null;
|
|
239
|
+
drive_id: string;
|
|
240
|
+
/** The folder in Files, for example `/Users/<user_id>/Goals/<slug>`. */
|
|
241
|
+
folder: string;
|
|
242
|
+
/** The same folder as the owner's sandbox sees it, for example `/drives/me/Goals/<slug>`. */
|
|
243
|
+
box_folder: string;
|
|
244
|
+
slug: string;
|
|
245
|
+
owner_session_id: string | null;
|
|
246
|
+
/** Every owner and verifier session the goal used, oldest first. */
|
|
247
|
+
sessions: Array<{
|
|
248
|
+
id: string;
|
|
249
|
+
role: 'owner' | 'verifier';
|
|
250
|
+
since: string;
|
|
251
|
+
}>;
|
|
252
|
+
criteria_revision: number;
|
|
253
|
+
criteria: ProjectGoalCriterionStatus[];
|
|
254
|
+
verification: ProjectGoalVerification | null;
|
|
255
|
+
heartbeat_every: string;
|
|
256
|
+
next_wake_at: string | null;
|
|
257
|
+
last_wake_at: string | null;
|
|
258
|
+
max_wakes_per_day: number;
|
|
259
|
+
/** Wakes the server admitted this UTC day. */
|
|
260
|
+
wakes_today: number;
|
|
261
|
+
max_sessions: number;
|
|
262
|
+
/** `legacy_unverified`: imported from a folder; a `done` there was never verified by the API. */
|
|
263
|
+
provenance: 'api' | 'legacy_unverified';
|
|
264
|
+
created_at: string;
|
|
265
|
+
updated_at: string;
|
|
266
|
+
capabilities: ProjectGoalCapabilities;
|
|
267
|
+
}
|
|
268
|
+
/** One line of a goal's audit trail (`GET …/goals/:goalId/events`). */
|
|
269
|
+
export interface ProjectGoalEvent {
|
|
270
|
+
id: string;
|
|
271
|
+
goal_id: string;
|
|
272
|
+
at: string;
|
|
273
|
+
/** For example `created`, `activated`, `waiting`, `answered`, `paused`, `resumed`, `stopped`, `restarted`, `wake_admitted`, `wake_refused`, `verification_requested`, `verdict`, `handover`, `owner_adopted`, `criteria_changed`, `progress`, `blocked`, `unblocked`, `edited`. */
|
|
274
|
+
kind: string;
|
|
275
|
+
actor_kind: 'user' | 'session' | 'platform';
|
|
276
|
+
actor_id: string | null;
|
|
277
|
+
from_state: ProjectGoalRecordState | null;
|
|
278
|
+
to_state: ProjectGoalRecordState | null;
|
|
279
|
+
/** A short human-readable line. */
|
|
280
|
+
message: string;
|
|
281
|
+
data: Record<string, unknown>;
|
|
282
|
+
}
|
|
283
|
+
/** A write's result: the document as before, plus the goal as the server holds it now (with its new `revision`). */
|
|
284
|
+
export interface ProjectGoalWriteResult extends ProjectGoalDocument {
|
|
285
|
+
projectGoal: ProjectGoal;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* A goal write sent a stale `revision` (`409 goal_conflict`): someone or
|
|
289
|
+
* something changed the goal first. `goal` is the goal as it is now. Show it
|
|
290
|
+
* and let the person decide again; never resend the write blindly.
|
|
291
|
+
*/
|
|
292
|
+
export declare class ProjectGoalConflictError extends ApiError {
|
|
293
|
+
goal: ProjectGoal;
|
|
294
|
+
constructor(source: ApiError, goal: ProjectGoal);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* A goal's health at `now` (ms). For a server record (`ProjectGoalRecord`) it
|
|
298
|
+
* reads the server fields: `blocked_reason`, `next_wake_at` (a wake more than
|
|
299
|
+
* 15 minutes overdue), and the start of a pending verification (more than 24
|
|
300
|
+
* hours). A paused or waiting goal has no wake due, unless it asked to chase.
|
|
301
|
+
* `heartbeat` is ignored for a record. A `ProjectGoalDocument` (a GOAL.md
|
|
302
|
+
* read by hand) is judged by its heartbeat reminder, as before.
|
|
303
|
+
*/
|
|
304
|
+
export declare function goalHealth(goal: ProjectGoalDocument | ProjectGoalRecord | null, heartbeat: ProjectReminder | null, now?: number): ProjectGoalHealth;
|
|
305
|
+
/**
|
|
306
|
+
* Every goal in the project the caller may read, from the API: their own,
|
|
307
|
+
* the ones assigned to them, the ones in folders shared with them, and all
|
|
308
|
+
* of them for a project admin. Empty when the `goals` flag is off.
|
|
138
309
|
*/
|
|
139
310
|
export declare function listProjectGoals(projectId: string, options?: {
|
|
140
311
|
now?: number;
|
|
141
312
|
}): Promise<ProjectGoal[]>;
|
|
313
|
+
/** One goal by its `goal_id`. Throws `ApiError` 404 (no such goal) or 403 (no access). */
|
|
314
|
+
export declare function getProjectGoal(projectId: string, goalId: string, options?: {
|
|
315
|
+
now?: number;
|
|
316
|
+
}): Promise<ProjectGoal>;
|
|
317
|
+
/** A page of a goal's audit trail, oldest first. Pass `nextCursor` back as `cursor` for the next page; null: no more. */
|
|
318
|
+
export declare function listProjectGoalEvents(projectId: string, goalId: string, options?: {
|
|
319
|
+
cursor?: string | null;
|
|
320
|
+
}): Promise<{
|
|
321
|
+
events: ProjectGoalEvent[];
|
|
322
|
+
nextCursor: string | null;
|
|
323
|
+
}>;
|
|
324
|
+
/** The goal a write addresses: its id and the revision the caller read. Other `ProjectGoal` fields are accepted and ignored. */
|
|
325
|
+
type GoalTarget = Pick<ProjectGoal, 'goalId' | 'revision'> & Partial<Omit<ProjectGoal, 'goalId' | 'revision'>>;
|
|
142
326
|
/**
|
|
143
|
-
* Bind a goal to a space or an agent
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* the document as written. Grouping only: it grants nothing.
|
|
327
|
+
* Bind a goal to a space or an agent (`PATCH …/goals/:goalId`): null clears
|
|
328
|
+
* one, an absent key keeps it. Grouping only: it grants nothing. A stale
|
|
329
|
+
* `revision` throws `ProjectGoalConflictError`.
|
|
147
330
|
*/
|
|
148
|
-
export declare function setProjectGoalBinding(goal:
|
|
331
|
+
export declare function setProjectGoalBinding(goal: GoalTarget, binding: ResourceBinding): Promise<ProjectGoalWriteResult>;
|
|
149
332
|
export interface ProjectGoalFiles {
|
|
333
|
+
/** `GOAL.md`: the brief (title, context, criteria as the agent reads them). */
|
|
334
|
+
brief: string | null;
|
|
150
335
|
/** `log.md`: the append-only timeline. */
|
|
151
336
|
log: string | null;
|
|
152
337
|
/** `notes.md`: request, constraints, threads, what was learned. */
|
|
153
338
|
notes: string | null;
|
|
154
|
-
/** `evidence/verification.md`: the independent verifier's
|
|
339
|
+
/** `evidence/verification.md`: the independent verifier's report. */
|
|
155
340
|
verification: string | null;
|
|
156
341
|
}
|
|
157
342
|
/** A goal folder's text files. A missing file is null. */
|
|
158
343
|
export declare function getProjectGoalFiles(driveId: string, folder: string): Promise<ProjectGoalFiles>;
|
|
159
344
|
/**
|
|
160
|
-
* A person stops a goal (any open state → `stopped
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* again. Returns the document as written. Throws on a closed goal and on a
|
|
164
|
-
* legacy `goal.json` folder.
|
|
345
|
+
* A person stops a goal (`POST …/stop`): any open state → `stopped`. The API
|
|
346
|
+
* removes the heartbeat and aborts the owner's running turn. A retry on a
|
|
347
|
+
* goal that is already stopped finishes that cleanup and succeeds.
|
|
165
348
|
*/
|
|
166
|
-
export declare function stopProjectGoal(projectId: string, goal:
|
|
349
|
+
export declare function stopProjectGoal(projectId: string, goal: GoalTarget, reason: string): Promise<ProjectGoalWriteResult>;
|
|
167
350
|
/**
|
|
168
|
-
* A person pauses a goal
|
|
169
|
-
*
|
|
170
|
-
* and the
|
|
171
|
-
* up where the goal was. A turn already running finishes; no new one starts.
|
|
172
|
-
* Throws on a closed goal. On a goal GOAL.md already records as paused (a
|
|
173
|
-
* retry after the heartbeat update failed) it only disables the heartbeat.
|
|
351
|
+
* A person pauses a goal (`POST …/pause`). The state does not change; no new
|
|
352
|
+
* turn starts until a person resumes it. A turn already running finishes,
|
|
353
|
+
* and the API refuses its lifecycle writes.
|
|
174
354
|
*/
|
|
175
|
-
export declare function pauseProjectGoal(projectId: string, goal:
|
|
355
|
+
export declare function pauseProjectGoal(projectId: string, goal: GoalTarget, reason: string): Promise<ProjectGoalWriteResult>;
|
|
356
|
+
/** A person resumes a paused goal (`POST …/resume`): the heartbeat runs again and the owner wakes once. */
|
|
357
|
+
export declare function resumeProjectGoal(projectId: string, goal: GoalTarget): Promise<ProjectGoalWriteResult>;
|
|
176
358
|
/**
|
|
177
|
-
* A person
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* retry after a later step failed finishes the steps left: a goal GOAL.md
|
|
181
|
-
* already records as running gets its heartbeat enabled, and a wake when it
|
|
182
|
-
* has no live heartbeat.
|
|
359
|
+
* A person starts a stopped goal again (`POST …/restart`): `active` when it
|
|
360
|
+
* has criteria, else `draft`. When the owner session is gone the API starts a
|
|
361
|
+
* new one (within `max_sessions`).
|
|
183
362
|
*/
|
|
184
|
-
export declare function
|
|
185
|
-
/**
|
|
186
|
-
* A person starts a stopped goal again, in place: GOAL.md moves `stopped` →
|
|
187
|
-
* `active` (→ `draft` when it has no done criteria yet, so the owner writes
|
|
188
|
-
* them first) on the version it read (a concurrent write throws `ApiError`
|
|
189
|
-
* 409), `log.md` records the move, and then the owner session wakes. Its turn
|
|
190
|
-
* end (`kortix goals check --enforce`) arms the heartbeat the stop removed.
|
|
191
|
-
* The wake id names the stop, so a retry is deduped. A retry after the wake
|
|
192
|
-
* failed (the goal is open again, but no live heartbeat wakes it) writes
|
|
193
|
-
* nothing and only wakes the owner. Throws on any other goal.
|
|
194
|
-
*/
|
|
195
|
-
export declare function restartProjectGoal(projectId: string, goal: Pick<ProjectGoal, 'driveId' | 'folder' | 'heartbeat' | 'scope' | 'slug' | 'coordinatorSessionId'>, reason: string): Promise<ProjectGoalDocument>;
|
|
363
|
+
export declare function restartProjectGoal(projectId: string, goal: GoalTarget, reason: string): Promise<ProjectGoalWriteResult>;
|
|
196
364
|
/**
|
|
197
365
|
* The agent that owns a new goal. A goal lives in Files, so its owner needs
|
|
198
366
|
* Files mounted: My Kortix (sandbox `mykortix`) has none. Named: that agent,
|
|
@@ -213,51 +381,60 @@ export interface GoalAgentConfig {
|
|
|
213
381
|
*/
|
|
214
382
|
export declare function defaultGoalAgent(config: GoalAgentConfig): string | null;
|
|
215
383
|
export interface CreateProjectGoalInput {
|
|
216
|
-
/** What should be true when the goal is done, in the person's words. */
|
|
384
|
+
/** What should be true when the goal is done, in the person's words. The first line is the title; the rest is the context. */
|
|
217
385
|
outcome: string;
|
|
218
386
|
/** Done criteria someone else can check: at most 8. Blank lines are dropped. None: the agent writes them. */
|
|
219
387
|
criteria?: string[];
|
|
220
|
-
/** The agent that works it
|
|
388
|
+
/** The agent that works it. It needs Files, so never My Kortix. Omitted: the server picks the project's default agent, else the first agent that can. */
|
|
221
389
|
agent?: string | null;
|
|
222
|
-
/** The person it is for: a user id. Omitted: nobody
|
|
390
|
+
/** The person it is for: a user id. Omitted: nobody. */
|
|
223
391
|
assignedUser?: string | null;
|
|
224
392
|
/**
|
|
225
|
-
* The
|
|
226
|
-
*
|
|
227
|
-
*
|
|
393
|
+
* The goal's id (an RFC 4122 v4 UUID) and the create's idempotency key:
|
|
394
|
+
* pass the same id to retry a create, and the API returns the same goal.
|
|
395
|
+
* Omitted: `sessionId`, else a new id.
|
|
396
|
+
*/
|
|
397
|
+
goalId?: string;
|
|
398
|
+
/**
|
|
399
|
+
* @deprecated Pass `goalId`. Still the idempotency key when `goalId` is
|
|
400
|
+
* omitted: it is sent as the goal id. The API picks the owner session's id.
|
|
228
401
|
*/
|
|
229
402
|
sessionId?: string;
|
|
230
|
-
/**
|
|
403
|
+
/** @deprecated Ignored: the API records the creation time. */
|
|
231
404
|
now?: string;
|
|
232
405
|
}
|
|
233
406
|
export interface CreatedProjectGoal {
|
|
234
407
|
slug: string;
|
|
235
|
-
/** A goal a person creates from the app
|
|
408
|
+
/** A goal a person creates from the app lives in their own folder. */
|
|
236
409
|
scope: 'personal';
|
|
237
410
|
driveId: string;
|
|
238
411
|
folder: string;
|
|
239
|
-
/** The owner session, already started on its first wake. */
|
|
412
|
+
/** The owner session, already started on its first wake. Empty while the API still finishes the setup (`blockedReason: 'setup'`). */
|
|
240
413
|
sessionId: string;
|
|
414
|
+
/** The goal's id: the one sent, or the one generated. */
|
|
415
|
+
goalId: string;
|
|
416
|
+
/** The goal as the API holds it after the create. */
|
|
417
|
+
goal: ProjectGoal;
|
|
241
418
|
}
|
|
242
419
|
/**
|
|
243
|
-
* A person creates a goal
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* the session its owner: no step depends on the model remembering it.
|
|
250
|
-
* A slug another goal holds gets `-2`, `-3`, …. Retrying with the same
|
|
251
|
-
* `sessionId` is safe: a `409` session create is the session that already
|
|
252
|
-
* exists, a folder it owns is reused, and the first wake is deduped.
|
|
420
|
+
* A person creates a goal (`POST /projects/:projectId/goals`). The API puts
|
|
421
|
+
* it in the caller's own folder, writes GOAL.md and log.md, starts the owner
|
|
422
|
+
* session with its heartbeat, and sends the first wake. `goalId` is the
|
|
423
|
+
* idempotency key: a retry with the same id returns the same goal and starts
|
|
424
|
+
* nothing twice. Throws before any request on an empty outcome or more than
|
|
425
|
+
* 8 criteria; the API refuses an agent without Files.
|
|
253
426
|
*/
|
|
254
427
|
export declare function createProjectGoal(projectId: string, input: CreateProjectGoalInput): Promise<CreatedProjectGoal>;
|
|
255
428
|
/**
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
429
|
+
* A person answers a goal (`POST …/answer`): the API queues the text into
|
|
430
|
+
* the owner session, attributed to the caller, and a goal waiting on a
|
|
431
|
+
* person goes back to active. `answerId` is the idempotency key: pass the
|
|
432
|
+
* same id to retry, and the owner gets the answer once. Omitted: a new id.
|
|
433
|
+
* Resolves when the answer is durable, not when it is read.
|
|
259
434
|
*/
|
|
260
|
-
export declare function replyToProjectGoal(projectId: string, goal: Pick<ProjectGoal, '
|
|
435
|
+
export declare function replyToProjectGoal(projectId: string, goal: Pick<ProjectGoal, 'goalId'> & Partial<Omit<ProjectGoal, 'goalId'>>, text: string, options?: {
|
|
436
|
+
answerId?: string;
|
|
437
|
+
}): Promise<void>;
|
|
261
438
|
/** What a session reads when a person asks it to turn the conversation into a goal. */
|
|
262
439
|
export declare const MAKE_GOAL_PROMPT: string;
|
|
263
440
|
/** "Make this a goal" from a chat: queue `MAKE_GOAL_PROMPT` into that session. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../../../../src/core/rest/projects-client/goals.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../../../../src/core/rest/projects-client/goals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,QAAQ,EAAc,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,KAAK,EAAE,oBA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