@jini-ai/core 0.7.3-next.1 → 0.7.3-next.3
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/CHANGELOG.md +2 -0
- package/README.md +68 -0
- package/dist/admin-runtime/admin-http.d.ts +43 -0
- package/dist/admin-runtime/admin-http.js +11 -0
- package/dist/admin-runtime/index.d.ts +1 -0
- package/dist/config/env-schema.d.ts +31 -0
- package/dist/config/env-schema.js +29 -0
- package/dist/contracts/agents/definition.d.ts +9 -1
- package/dist/contracts/agents/index.d.ts +1 -0
- package/dist/contracts/agents/inventory.d.ts +29 -0
- package/dist/contracts/agents/inventory.js +8 -0
- package/dist/contracts/agents/provider-ports.d.ts +117 -0
- package/dist/contracts/agents/provider-ports.js +2 -0
- package/dist/contracts/agents/proxy-provider-kit.d.ts +122 -0
- package/dist/contracts/agents/proxy-provider-kit.js +119 -0
- package/dist/contracts/agents/proxy-provider.d.ts +34 -0
- package/dist/contracts/agents/proxy-provider.js +2 -0
- package/dist/contracts/blob-gc.d.ts +69 -0
- package/dist/contracts/blob-gc.js +13 -0
- package/dist/contracts/credentials.d.ts +5 -19
- package/dist/contracts/desktop-zoom.d.ts +7 -0
- package/dist/contracts/desktop-zoom.js +6 -0
- package/dist/contracts/events/change-set.d.ts +12 -3
- package/dist/contracts/events/command.d.ts +11 -5
- package/dist/contracts/events/ports.d.ts +38 -0
- package/dist/contracts/events/ports.js +8 -1
- package/dist/contracts/events.d.ts +2 -1
- package/dist/contracts/events.js +1 -1
- package/dist/contracts/execution.d.ts +541 -0
- package/dist/contracts/execution.js +2 -0
- package/dist/contracts/find-in-page.d.ts +12 -0
- package/dist/contracts/find-in-page.js +7 -0
- package/dist/contracts/headless/chart-providers.d.ts +12 -0
- package/dist/contracts/headless/chart-providers.js +2 -0
- package/dist/contracts/headless/chat-attachment.d.ts +21 -0
- package/dist/contracts/headless/chat-attachment.js +9 -0
- package/dist/contracts/headless/contracts.d.ts +179 -0
- package/dist/contracts/headless/contracts.js +2 -0
- package/dist/contracts/headless/form-delivery-status.d.ts +35 -0
- package/dist/contracts/headless/form-delivery-status.js +2 -0
- package/dist/contracts/headless/member-login.d.ts +3 -0
- package/dist/contracts/headless/member-login.js +3 -0
- package/dist/contracts/headless/operator-locale.d.ts +17 -0
- package/dist/contracts/headless/operator-locale.js +2 -0
- package/dist/contracts/headless/plugin-export-catalog.d.ts +21 -0
- package/dist/contracts/headless/plugin-export-catalog.js +2 -0
- package/dist/contracts/headless/plugin-host.d.ts +128 -0
- package/dist/contracts/headless/plugin-host.js +2 -0
- package/dist/contracts/headless/plugin-install-source.d.ts +82 -0
- package/dist/contracts/headless/plugin-install-source.js +12 -0
- package/dist/contracts/headless/site-cookie-consent.d.ts +41 -0
- package/dist/contracts/headless/site-cookie-consent.js +2 -0
- package/dist/contracts/hosted-mcp/admissions.d.ts +125 -0
- package/dist/contracts/hosted-mcp/admissions.js +3 -0
- package/dist/contracts/hosted-mcp/record.d.ts +7 -2
- package/dist/contracts/hosted-mcp.d.ts +1 -0
- package/dist/contracts/mail.d.ts +28 -2
- package/dist/contracts/mail.js +3 -0
- package/dist/contracts/observability.d.ts +15 -0
- package/dist/contracts/observability.js +1 -0
- package/dist/contracts/run-attempt.d.ts +14 -0
- package/dist/contracts/run-attempt.js +7 -0
- package/dist/contracts/server/api-error.js +1 -0
- package/dist/contracts/server/client-facing-error.d.ts +25 -0
- package/dist/contracts/server/client-facing-error.js +21 -0
- package/dist/contracts/server/deferred-body.d.ts +65 -0
- package/dist/contracts/server/deferred-body.js +2 -0
- package/dist/contracts/server/failure-copy.d.ts +19 -0
- package/dist/contracts/server/failure-copy.js +26 -0
- package/dist/contracts/server/json-route.d.ts +52 -26
- package/dist/contracts/server/json-route.js +128 -32
- package/dist/contracts/server/request-body.d.ts +12 -0
- package/dist/contracts/server/request-body.js +7 -3
- package/dist/contracts/server/route-reply.d.ts +32 -0
- package/dist/contracts/server/route-reply.js +26 -0
- package/dist/contracts/server.d.ts +4 -0
- package/dist/contracts/server.js +4 -0
- package/dist/contracts/site/admin-sites.d.ts +134 -0
- package/dist/contracts/site/admin-sites.js +7 -0
- package/dist/contracts/site/admin-surfaces-connections.d.ts +128 -0
- package/dist/contracts/site/admin-surfaces-connections.js +2 -0
- package/dist/contracts/site/agent-plugins-admin-surfaces.d.ts +218 -0
- package/dist/contracts/site/agent-plugins-admin-surfaces.js +2 -0
- package/dist/contracts/site/agent-plugins-connect.d.ts +25 -0
- package/dist/contracts/site/agent-plugins-connect.js +2 -0
- package/dist/contracts/site/agent-plugins-lifecycle.d.ts +151 -0
- package/dist/contracts/site/agent-plugins-lifecycle.js +2 -0
- package/dist/contracts/site/agent-plugins-manifest.d.ts +41 -0
- package/dist/contracts/site/agent-plugins-manifest.js +11 -0
- package/dist/contracts/site/agent-runtime.d.ts +110 -0
- package/dist/contracts/site/agent-runtime.js +2 -0
- package/dist/contracts/site/agentic-core.d.ts +44 -0
- package/dist/contracts/site/agentic-core.js +9 -0
- package/dist/contracts/site/agentic-dom.d.ts +27 -0
- package/dist/contracts/site/agentic-dom.js +2 -0
- package/dist/contracts/site/agentic.d.ts +37 -0
- package/dist/contracts/site/agentic.js +8 -0
- package/dist/contracts/site/analytics.d.ts +81 -0
- package/dist/contracts/site/analytics.js +2 -0
- package/dist/contracts/site/api-ai-assistant-api-types.d.ts +182 -0
- package/dist/contracts/site/api-ai-assistant-api-types.js +2 -0
- package/dist/contracts/site/api-connections-hosted-mcp.d.ts +176 -0
- package/dist/contracts/site/api-connections-hosted-mcp.js +2 -0
- package/dist/contracts/site/api-security-api-types.d.ts +177 -0
- package/dist/contracts/site/api-security-api-types.js +2 -0
- package/dist/contracts/site/approval-i18n.d.ts +32 -0
- package/dist/contracts/site/approval-i18n.js +156 -0
- package/dist/contracts/site/asset-transfer-tool-ports.d.ts +54 -0
- package/dist/contracts/site/asset-transfer-tool-ports.js +2 -0
- package/dist/contracts/site/assistant-host-ports.d.ts +23 -0
- package/dist/contracts/site/assistant-host-ports.js +2 -0
- package/dist/contracts/site/assistant-mcp-services.d.ts +26 -0
- package/dist/contracts/site/assistant-mcp-services.js +8 -0
- package/dist/contracts/site/assistant-tool-contributions.d.ts +45 -0
- package/dist/contracts/site/assistant-tool-contributions.js +2 -0
- package/dist/contracts/site/chat-core.d.ts +93 -0
- package/dist/contracts/site/chat-core.js +13 -0
- package/dist/contracts/site/client-directives.d.ts +21 -0
- package/dist/contracts/site/client-directives.js +8 -0
- package/dist/contracts/site/cms-admin-media.d.ts +61 -0
- package/dist/contracts/site/cms-admin-media.js +7 -0
- package/dist/contracts/site/cms-agent-plugins.d.ts +114 -0
- package/dist/contracts/site/cms-agent-plugins.js +17 -0
- package/dist/contracts/site/cms-assistant.d.ts +74 -0
- package/dist/contracts/site/cms-assistant.js +17 -0
- package/dist/contracts/site/cms-core.d.ts +17 -0
- package/dist/contracts/site/cms-core.js +12 -0
- package/dist/contracts/site/cms-external-mcp.d.ts +206 -0
- package/dist/contracts/site/cms-external-mcp.js +13 -0
- package/dist/contracts/site/cms-forms.d.ts +192 -0
- package/dist/contracts/site/cms-forms.js +15 -0
- package/dist/contracts/site/cms-integrations.d.ts +47 -0
- package/dist/contracts/site/cms-integrations.js +8 -0
- package/dist/contracts/site/cms-mail.d.ts +39 -0
- package/dist/contracts/site/cms-mail.js +12 -0
- package/dist/contracts/site/cms-media.d.ts +449 -0
- package/dist/contracts/site/cms-media.js +3 -0
- package/dist/contracts/site/cms-menus.d.ts +109 -0
- package/dist/contracts/site/cms-menus.js +13 -0
- package/dist/contracts/site/cms-plugins.d.ts +81 -0
- package/dist/contracts/site/cms-plugins.js +13 -0
- package/dist/contracts/site/cms-publish-content.d.ts +129 -0
- package/dist/contracts/site/cms-publish-content.js +13 -0
- package/dist/contracts/site/cms-recovery.d.ts +37 -0
- package/dist/contracts/site/cms-recovery.js +13 -0
- package/dist/contracts/site/cms-seo.d.ts +124 -0
- package/dist/contracts/site/cms-seo.js +17 -0
- package/dist/contracts/site/cms-settings.d.ts +47 -0
- package/dist/contracts/site/cms-settings.js +15 -0
- package/dist/contracts/site/cms-sites.d.ts +24 -0
- package/dist/contracts/site/cms-sites.js +12 -0
- package/dist/contracts/site/cms-system-deploy.d.ts +37 -0
- package/dist/contracts/site/cms-system-deploy.js +9 -0
- package/dist/contracts/site/cms-trash.d.ts +235 -0
- package/dist/contracts/site/cms-trash.js +10 -0
- package/dist/contracts/site/cms-workspace.d.ts +14 -0
- package/dist/contracts/site/cms-workspace.js +7 -0
- package/dist/contracts/site/comments-providers.d.ts +187 -0
- package/dist/contracts/site/comments-providers.js +2 -0
- package/dist/contracts/site/commerce.d.ts +35 -0
- package/dist/contracts/site/commerce.js +12 -0
- package/dist/contracts/site/composition-provider-config-source.d.ts +46 -0
- package/dist/contracts/site/composition-provider-config-source.js +2 -0
- package/dist/contracts/site/content-editor-ports.d.ts +239 -0
- package/dist/contracts/site/content-editor-ports.js +2 -0
- package/dist/contracts/site/contracts-resources.d.ts +21 -0
- package/dist/contracts/site/contracts-resources.js +7 -0
- package/dist/contracts/site/cookie-consent-react.d.ts +44 -0
- package/dist/contracts/site/cookie-consent-react.js +8 -0
- package/dist/contracts/site/cookie-consent.d.ts +100 -0
- package/dist/contracts/site/cookie-consent.js +9 -0
- package/dist/contracts/site/core-commands.d.ts +66 -0
- package/dist/contracts/site/core-commands.js +15 -0
- package/dist/contracts/site/core-consent-refusal.d.ts +7 -0
- package/dist/contracts/site/core-consent-refusal.js +2 -0
- package/dist/contracts/site/core-custom-credential-categories.d.ts +14 -0
- package/dist/contracts/site/core-custom-credential-categories.js +7 -0
- package/dist/contracts/site/core-public-page-security-headers.d.ts +13 -0
- package/dist/contracts/site/core-public-page-security-headers.js +3 -0
- package/dist/contracts/site/core-run-events.d.ts +49 -0
- package/dist/contracts/site/core-run-events.js +11 -0
- package/dist/contracts/site/core-runtime-mode.d.ts +9 -0
- package/dist/contracts/site/core-runtime-mode.js +2 -0
- package/dist/contracts/site/core-theme-slots.d.ts +31 -0
- package/dist/contracts/site/core-theme-slots.js +3 -0
- package/dist/contracts/site/credential-project-half.d.ts +18 -0
- package/dist/contracts/site/credential-project-half.js +2 -0
- package/dist/contracts/site/custom-credential-publish-compatibility.d.ts +11 -0
- package/dist/contracts/site/custom-credential-publish-compatibility.js +2 -0
- package/dist/contracts/site/daemon-core-rpc.d.ts +114 -0
- package/dist/contracts/site/daemon-core-rpc.js +2 -0
- package/dist/contracts/site/daemon-http.d.ts +197 -0
- package/dist/contracts/site/daemon-http.js +11 -0
- package/dist/contracts/site/daemon-surface-exchanges.d.ts +46 -0
- package/dist/contracts/site/daemon-surface-exchanges.js +2 -0
- package/dist/contracts/site/daemon-tool-audit.d.ts +43 -0
- package/dist/contracts/site/daemon-tool-audit.js +9 -0
- package/dist/contracts/site/daemon-tool-recovery.d.ts +36 -0
- package/dist/contracts/site/daemon-tool-recovery.js +9 -0
- package/dist/contracts/site/daemon.d.ts +45 -0
- package/dist/contracts/site/daemon.js +2 -0
- package/dist/contracts/site/database-introspection.d.ts +46 -0
- package/dist/contracts/site/database-introspection.js +2 -0
- package/dist/contracts/site/db-data-modules.d.ts +61 -0
- package/dist/contracts/site/db-data-modules.js +6 -0
- package/dist/contracts/site/deployment-admin.d.ts +74 -0
- package/dist/contracts/site/deployment-admin.js +2 -0
- package/dist/contracts/site/dev-supervisor-dev-restart.d.ts +26 -0
- package/dist/contracts/site/dev-supervisor-dev-restart.js +10 -0
- package/dist/contracts/site/devops-deploy.d.ts +77 -0
- package/dist/contracts/site/devops-deploy.js +9 -0
- package/dist/contracts/site/diagnostics-domain-dns.d.ts +10 -0
- package/dist/contracts/site/diagnostics-domain-dns.js +7 -0
- package/dist/contracts/site/diagnostics-observability.d.ts +66 -0
- package/dist/contracts/site/diagnostics-observability.js +2 -0
- package/dist/contracts/site/events-outbox.d.ts +56 -0
- package/dist/contracts/site/events-outbox.js +10 -0
- package/dist/contracts/site/export-run.d.ts +54 -0
- package/dist/contracts/site/export-run.js +9 -0
- package/dist/contracts/site/external-mcp-tool-ports.d.ts +28 -0
- package/dist/contracts/site/external-mcp-tool-ports.js +2 -0
- package/dist/contracts/site/fs-durable-json.d.ts +22 -0
- package/dist/contracts/site/fs-durable-json.js +7 -0
- package/dist/contracts/site/gated-mutations/watermark.d.ts +44 -0
- package/dist/contracts/site/gated-mutations/watermark.js +37 -0
- package/dist/contracts/site/gated-mutations-ports.d.ts +45 -0
- package/dist/contracts/site/gated-mutations-ports.js +6 -0
- package/dist/contracts/site/gated-results.d.ts +17 -0
- package/dist/contracts/site/gated-results.js +8 -0
- package/dist/contracts/site/headless-assistant-permanent-deletes-policy.d.ts +16 -0
- package/dist/contracts/site/headless-assistant-permanent-deletes-policy.js +8 -0
- package/dist/contracts/site/hooks-sites-port-hooks.d.ts +151 -0
- package/dist/contracts/site/hooks-sites-port-hooks.js +7 -0
- package/dist/contracts/site/host-node.d.ts +213 -0
- package/dist/contracts/site/host-node.js +2 -0
- package/dist/contracts/site/html-region-ports.d.ts +103 -0
- package/dist/contracts/site/html-region-ports.js +2 -0
- package/dist/contracts/site/http-kit-rate-limit.d.ts +21 -0
- package/dist/contracts/site/http-kit-rate-limit.js +8 -0
- package/dist/contracts/site/http-kit-settings.d.ts +12 -0
- package/dist/contracts/site/http-kit-settings.js +8 -0
- package/dist/contracts/site/human-confirm.d.ts +42 -0
- package/dist/contracts/site/human-confirm.js +2 -0
- package/dist/contracts/site/installed-skill.d.ts +16 -0
- package/dist/contracts/site/installed-skill.js +2 -0
- package/dist/contracts/site/integrations-api-connections.d.ts +19 -0
- package/dist/contracts/site/integrations-api-connections.js +7 -0
- package/dist/contracts/site/integrations-credentialed-http.d.ts +16 -0
- package/dist/contracts/site/integrations-credentialed-http.js +8 -0
- package/dist/contracts/site/legacy-owner-store.d.ts +15 -0
- package/dist/contracts/site/legacy-owner-store.js +5 -0
- package/dist/contracts/site/lifecycle-boot-lifecycle.d.ts +27 -0
- package/dist/contracts/site/lifecycle-boot-lifecycle.js +10 -0
- package/dist/contracts/site/lifecycle-host-tools.d.ts +64 -0
- package/dist/contracts/site/lifecycle-host-tools.js +2 -0
- package/dist/contracts/site/media-provider-contribution.d.ts +118 -0
- package/dist/contracts/site/media-provider-contribution.js +3 -0
- package/dist/contracts/site/media-providers-catalog.d.ts +42 -0
- package/dist/contracts/site/media-providers-catalog.js +7 -0
- package/dist/contracts/site/media-tool-ports.d.ts +166 -0
- package/dist/contracts/site/media-tool-ports.js +2 -0
- package/dist/contracts/site/media-upload-limits.d.ts +6 -0
- package/dist/contracts/site/media-upload-limits.js +7 -0
- package/dist/contracts/site/nav.d.ts +46 -0
- package/dist/contracts/site/nav.js +10 -0
- package/dist/contracts/site/oauth-callback-page.d.ts +47 -0
- package/dist/contracts/site/oauth-callback-page.js +31 -0
- package/dist/contracts/site/packaging-electron.d.ts +20 -0
- package/dist/contracts/site/packaging-electron.js +7 -0
- package/dist/contracts/site/page-html-store.d.ts +138 -0
- package/dist/contracts/site/page-html-store.js +2 -0
- package/dist/contracts/site/platform-mail.d.ts +221 -0
- package/dist/contracts/site/platform-mail.js +2 -0
- package/dist/contracts/site/platform-process.d.ts +23 -0
- package/dist/contracts/site/platform-process.js +7 -0
- package/dist/contracts/site/platform-server-logs.d.ts +51 -0
- package/dist/contracts/site/platform-server-logs.js +15 -0
- package/dist/contracts/site/platform-site-dir.d.ts +58 -0
- package/dist/contracts/site/platform-site-dir.js +7 -0
- package/dist/contracts/site/plugin-directory.d.ts +29 -0
- package/dist/contracts/site/plugin-directory.js +2 -0
- package/dist/contracts/site/plugins-host.d.ts +92 -0
- package/dist/contracts/site/plugins-host.js +2 -0
- package/dist/contracts/site/post-author.d.ts +8 -0
- package/dist/contracts/site/post-author.js +5 -0
- package/dist/contracts/site/post-kind.d.ts +10 -0
- package/dist/contracts/site/post-kind.js +2 -0
- package/dist/contracts/site/post-revision-lock.d.ts +17 -0
- package/dist/contracts/site/post-revision-lock.js +16 -0
- package/dist/contracts/site/project-key-attachments.d.ts +78 -0
- package/dist/contracts/site/project-key-attachments.js +2 -0
- package/dist/contracts/site/protocol-mcp-ui.d.ts +37 -0
- package/dist/contracts/site/protocol-mcp-ui.js +12 -0
- package/dist/contracts/site/public-origin.d.ts +9 -0
- package/dist/contracts/site/public-origin.js +22 -0
- package/dist/contracts/site/publish-ports.d.ts +42 -0
- package/dist/contracts/site/publish-ports.js +31 -0
- package/dist/contracts/site/recovery-operation-lock.d.ts +27 -0
- package/dist/contracts/site/recovery-operation-lock.js +11 -0
- package/dist/contracts/site/recovery-reconcile-interrupted-migration.d.ts +16 -0
- package/dist/contracts/site/recovery-reconcile-interrupted-migration.js +12 -0
- package/dist/contracts/site/request-facts.d.ts +28 -0
- package/dist/contracts/site/request-facts.js +28 -0
- package/dist/contracts/site/routines.d.ts +64 -0
- package/dist/contracts/site/routines.js +2 -0
- package/dist/contracts/site/sandbox-node-worker.d.ts +15 -0
- package/dist/contracts/site/sandbox-node-worker.js +9 -0
- package/dist/contracts/site/search.d.ts +181 -0
- package/dist/contracts/site/search.js +2 -0
- package/dist/contracts/site/secrets-credential-sets.d.ts +117 -0
- package/dist/contracts/site/secrets-credential-sets.js +2 -0
- package/dist/contracts/site/secrets-credential-token.d.ts +11 -0
- package/dist/contracts/site/secrets-credential-token.js +7 -0
- package/dist/contracts/site/seo-content-analysis.d.ts +18 -0
- package/dist/contracts/site/seo-content-analysis.js +7 -0
- package/dist/contracts/site/site-assistant-visitor-tools-management.d.ts +85 -0
- package/dist/contracts/site/site-assistant-visitor-tools-management.js +8 -0
- package/dist/contracts/site/site-import-history.d.ts +67 -0
- package/dist/contracts/site/site-import-history.js +2 -0
- package/dist/contracts/site/site-key.d.ts +133 -0
- package/dist/contracts/site/site-key.js +9 -0
- package/dist/contracts/site/site-serving-gate.d.ts +13 -0
- package/dist/contracts/site/site-serving-gate.js +22 -0
- package/dist/contracts/site/skill-install.d.ts +17 -0
- package/dist/contracts/site/skill-install.js +2 -0
- package/dist/contracts/site/skills-install.d.ts +21 -0
- package/dist/contracts/site/skills-install.js +7 -0
- package/dist/contracts/site/soft-delete.d.ts +13 -0
- package/dist/contracts/site/soft-delete.js +13 -0
- package/dist/contracts/site/source-control-credentials.d.ts +197 -0
- package/dist/contracts/site/source-control-credentials.js +2 -0
- package/dist/contracts/site/strict-base64.d.ts +30 -0
- package/dist/contracts/site/strict-base64.js +33 -0
- package/dist/contracts/site/tool-metadata-approval-policy.d.ts +13 -0
- package/dist/contracts/site/tool-metadata-approval-policy.js +2 -0
- package/dist/contracts/site/ui-sections.d.ts +27 -0
- package/dist/contracts/site/ui-sections.js +13 -0
- package/dist/contracts/site/user-management-react.d.ts +276 -0
- package/dist/contracts/site/user-management-react.js +9 -0
- package/dist/contracts/site/user-management-server.d.ts +104 -0
- package/dist/contracts/site/user-management-server.js +2 -0
- package/dist/contracts/site/user-management.d.ts +379 -0
- package/dist/contracts/site/user-management.js +2 -0
- package/dist/contracts/site/vault-context.d.ts +15 -0
- package/dist/contracts/site/vault-context.js +6 -0
- package/dist/contracts/site/vendor-credentials.d.ts +37 -0
- package/dist/contracts/site/vendor-credentials.js +2 -0
- package/dist/contracts/site/web-evidence-capture-budget.d.ts +16 -0
- package/dist/contracts/site/web-evidence-capture-budget.js +7 -0
- package/dist/contracts/site/web-evidence-playwright.d.ts +38 -0
- package/dist/contracts/site/web-evidence-playwright.js +9 -0
- package/dist/contracts/site/web-screenshot.d.ts +58 -0
- package/dist/contracts/site/web-screenshot.js +7 -0
- package/dist/contracts/site/widgets-html.d.ts +40 -0
- package/dist/contracts/site/widgets-html.js +7 -0
- package/dist/contracts/speech-transcription.d.ts +27 -0
- package/dist/contracts/speech-transcription.js +8 -0
- package/dist/contracts/standing-draft.d.ts +38 -0
- package/dist/contracts/standing-draft.js +2 -0
- package/dist/contracts/storage/cleanup-preview.d.ts +23 -0
- package/dist/contracts/storage/cleanup-preview.js +2 -0
- package/dist/contracts/storage/rows.d.ts +6 -2
- package/dist/contracts/storage/rows.js +3 -3
- package/dist/contracts/storage/sqlite-compaction.d.ts +108 -0
- package/dist/contracts/storage/sqlite-compaction.js +7 -0
- package/dist/contracts/storage.d.ts +2 -0
- package/dist/contracts/tool-result-block.d.ts +21 -0
- package/dist/contracts/tool-result-block.js +8 -0
- package/dist/errors/catalog.js +2 -2
- package/dist/errors/reporter.d.ts +81 -13
- package/dist/errors/reporter.js +220 -32
- package/dist/errors/route-refusal.d.ts +29 -0
- package/dist/errors/route-refusal.js +25 -0
- package/dist/errors/testing.d.ts +6 -7
- package/dist/errors/testing.js +7 -4
- package/dist/extension-capability-vocabulary.d.ts +29 -0
- package/dist/extension-capability-vocabulary.js +31 -0
- package/dist/gated-mutations/gateway.d.ts +2 -0
- package/dist/gated-mutations/gateway.js +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/keyset-cursor.d.ts +25 -0
- package/dist/keyset-cursor.js +20 -0
- package/dist/native-approval-memory.d.ts +22 -0
- package/dist/native-approval-memory.js +32 -0
- package/dist/net/public-dns-vocabulary.d.ts +17 -0
- package/dist/net/public-dns-vocabulary.js +14 -0
- package/dist/object-store.d.ts +7 -0
- package/dist/object-store.js +1 -0
- package/dist/operator-locale.d.ts +29 -0
- package/dist/operator-locale.js +27 -0
- package/dist/optimistic-concurrency.d.ts +23 -0
- package/dist/origin-validation.d.ts +7 -0
- package/dist/origin-validation.js +8 -1
- package/dist/primitives/creator-kind.d.ts +27 -0
- package/dist/primitives/creator-kind.js +20 -0
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.js +2 -0
- package/dist/primitives/lazy-proxy.d.ts +5 -0
- package/dist/primitives/lazy-proxy.js +17 -0
- package/dist/redaction-collectors.js +60 -39
- package/dist/redaction-exact-secrets.js +4 -4
- package/dist/redaction-labels.d.ts +3 -1
- package/dist/redaction-labels.js +3 -3
- package/dist/redaction-patterns.d.ts +3 -1
- package/dist/redaction-patterns.js +1 -1
- package/dist/redaction-spans.d.ts +5 -1
- package/dist/redaction-spans.js +2 -2
- package/dist/registration-kit.d.ts +12 -0
- package/dist/registration-kit.js +14 -0
- package/dist/scheduled-publish.d.ts +57 -0
- package/dist/scheduled-publish.js +33 -0
- package/dist/settings/ensure-definitions.d.ts +8 -0
- package/dist/settings/guarded-reads.d.ts +58 -0
- package/dist/settings/guarded-reads.js +48 -0
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +1 -0
- package/dist/settings/settings.d.ts +8 -0
- package/dist/settings/write-definition-rename.js +2 -2
- package/dist/settings/write-definition-retype.js +4 -4
- package/dist/settings/write-definition-status.js +4 -4
- package/dist/settings/write-service.d.ts +14 -6
- package/dist/settings/write-service.js +2 -2
- package/dist/surface-exchanges.d.ts +32 -1
- package/dist/text/descriptor-i18n.d.ts +4 -1
- package/dist/text/descriptor-i18n.js +4 -1
- package/dist/text/index.d.ts +3 -0
- package/dist/text/index.js +2 -0
- package/dist/text/merge-locale-overlays.d.ts +25 -0
- package/dist/text/merge-locale-overlays.js +23 -0
- package/dist/text/upload-limit-message.d.ts +19 -0
- package/dist/text/upload-limit-message.js +29 -0
- package/dist/tool-access-change.d.ts +12 -0
- package/dist/tool-access-change.js +6 -0
- package/dist/tool-metadata/agent-pause.d.ts +21 -0
- package/dist/tool-metadata/agent-pause.js +9 -0
- package/dist/tool-metadata/agent-plugins.d.ts +72 -0
- package/dist/tool-metadata/agent-plugins.js +54 -0
- package/dist/tool-metadata/analytics.d.ts +14 -0
- package/dist/tool-metadata/analytics.js +17 -0
- package/dist/tool-metadata/change-sets.d.ts +24 -0
- package/dist/tool-metadata/change-sets.js +19 -0
- package/dist/tool-metadata/comments.d.ts +105 -0
- package/dist/tool-metadata/comments.js +106 -0
- package/dist/tool-metadata/commerce.d.ts +30 -0
- package/dist/tool-metadata/commerce.js +11 -0
- package/dist/tool-metadata/consent.d.ts +57 -0
- package/dist/tool-metadata/consent.js +16 -0
- package/dist/tool-metadata/content-duplication.d.ts +13 -0
- package/dist/tool-metadata/content-duplication.js +14 -0
- package/dist/tool-metadata/content-types.d.ts +74 -0
- package/dist/tool-metadata/content-types.js +96 -0
- package/dist/tool-metadata/custom-credentials.d.ts +117 -0
- package/dist/tool-metadata/custom-credentials.js +105 -0
- package/dist/tool-metadata/database-transfer.d.ts +48 -0
- package/dist/tool-metadata/database-transfer.js +32 -0
- package/dist/tool-metadata/database.d.ts +90 -0
- package/dist/tool-metadata/database.js +111 -0
- package/dist/tool-metadata/deploy-ops.d.ts +99 -0
- package/dist/tool-metadata/deploy-ops.js +96 -0
- package/dist/tool-metadata/deployments.d.ts +101 -0
- package/dist/tool-metadata/deployments.js +81 -0
- package/dist/tool-metadata/domain-dns.d.ts +84 -0
- package/dist/tool-metadata/domain-dns.js +99 -0
- package/dist/tool-metadata/email-templates.d.ts +54 -0
- package/dist/tool-metadata/email-templates.js +41 -0
- package/dist/tool-metadata/entries.d.ts +54 -0
- package/dist/tool-metadata/entries.js +70 -0
- package/dist/tool-metadata/external-mcp.d.ts +86 -0
- package/dist/tool-metadata/external-mcp.js +80 -0
- package/dist/tool-metadata/files-copy.d.ts +14 -0
- package/dist/tool-metadata/files-copy.js +18 -0
- package/dist/tool-metadata/forms.d.ts +94 -0
- package/dist/tool-metadata/forms.js +117 -0
- package/dist/tool-metadata/frontend-control.d.ts +118 -0
- package/dist/tool-metadata/frontend-control.js +78 -0
- package/dist/tool-metadata/fs-files.d.ts +36 -0
- package/dist/tool-metadata/fs-files.js +46 -0
- package/dist/tool-metadata/identity.d.ts +184 -0
- package/dist/tool-metadata/identity.js +226 -0
- package/dist/tool-metadata/image-transform.d.ts +14 -0
- package/dist/tool-metadata/image-transform.js +18 -0
- package/dist/tool-metadata/mail-status.d.ts +132 -0
- package/dist/tool-metadata/mail-status.js +104 -0
- package/dist/tool-metadata/media-generation.d.ts +24 -0
- package/dist/tool-metadata/media-generation.js +29 -0
- package/dist/tool-metadata/media-import.d.ts +34 -0
- package/dist/tool-metadata/media-import.js +40 -0
- package/dist/tool-metadata/media-video-conversion.d.ts +19 -0
- package/dist/tool-metadata/media-video-conversion.js +20 -0
- package/dist/tool-metadata/media.d.ts +106 -0
- package/dist/tool-metadata/media.js +103 -0
- package/dist/tool-metadata/members.d.ts +71 -0
- package/dist/tool-metadata/members.js +69 -0
- package/dist/tool-metadata/navigation.d.ts +54 -0
- package/dist/tool-metadata/navigation.js +71 -0
- package/dist/tool-metadata/newsletter.d.ts +190 -0
- package/dist/tool-metadata/newsletter.js +246 -0
- package/dist/tool-metadata/observability.d.ts +13 -0
- package/dist/tool-metadata/observability.js +8 -0
- package/dist/tool-metadata/pages.d.ts +47 -0
- package/dist/tool-metadata/pages.js +67 -0
- package/dist/tool-metadata/permanent-delete.d.ts +139 -0
- package/dist/tool-metadata/permanent-delete.js +121 -0
- package/dist/tool-metadata/plugin-runtime.d.ts +144 -0
- package/dist/tool-metadata/plugin-runtime.js +88 -0
- package/dist/tool-metadata/post.d.ts +87 -0
- package/dist/tool-metadata/post.js +117 -0
- package/dist/tool-metadata/recovery.d.ts +65 -0
- package/dist/tool-metadata/recovery.js +78 -0
- package/dist/tool-metadata/redirects.d.ts +73 -0
- package/dist/tool-metadata/redirects.js +93 -0
- package/dist/tool-metadata/routines.d.ts +61 -0
- package/dist/tool-metadata/routines.js +40 -0
- package/dist/tool-metadata/search.d.ts +49 -0
- package/dist/tool-metadata/search.js +33 -0
- package/dist/tool-metadata/seo.d.ts +64 -0
- package/dist/tool-metadata/seo.js +83 -0
- package/dist/tool-metadata/server-logs.d.ts +14 -0
- package/dist/tool-metadata/server-logs.js +11 -0
- package/dist/tool-metadata/settings.d.ts +90 -0
- package/dist/tool-metadata/settings.js +117 -0
- package/dist/tool-metadata/site-backup.d.ts +84 -0
- package/dist/tool-metadata/site-backup.js +30 -0
- package/dist/tool-metadata/site-evidence.d.ts +13 -0
- package/dist/tool-metadata/site-evidence.js +10 -0
- package/dist/tool-metadata/site-guide.d.ts +18 -0
- package/dist/tool-metadata/site-guide.js +15 -0
- package/dist/tool-metadata/site-inspection.d.ts +44 -0
- package/dist/tool-metadata/site-inspection.js +53 -0
- package/dist/tool-metadata/site-update.d.ts +30 -0
- package/dist/tool-metadata/site-update.js +22 -0
- package/dist/tool-metadata/sites.d.ts +52 -0
- package/dist/tool-metadata/sites.js +55 -0
- package/dist/tool-metadata/skills.d.ts +13 -0
- package/dist/tool-metadata/skills.js +10 -0
- package/dist/tool-metadata/source-control.d.ts +26 -0
- package/dist/tool-metadata/source-control.js +23 -0
- package/dist/tool-metadata/trash.d.ts +32 -0
- package/dist/tool-metadata/trash.js +27 -0
- package/dist/tool-metadata/visitor-tools.d.ts +49 -0
- package/dist/tool-metadata/visitor-tools.js +12 -0
- package/dist/tool-metadata/web-screenshot.d.ts +14 -0
- package/dist/tool-metadata/web-screenshot.js +23 -0
- package/dist/tool-metadata/web.d.ts +14 -0
- package/dist/tool-metadata/web.js +21 -0
- package/dist/tool-metadata/webhooks.d.ts +65 -0
- package/dist/tool-metadata/webhooks.js +77 -0
- package/dist/tool-metadata/widgets.d.ts +124 -0
- package/dist/tool-metadata/widgets.js +161 -0
- package/dist/tool-metadata/workspace.d.ts +43 -0
- package/dist/tool-metadata/workspace.js +49 -0
- package/dist/tool-read-cards.d.ts +88 -0
- package/dist/tool-read-cards.js +158 -0
- package/dist/tool-registry.d.ts +25 -0
- package/package.json +1382 -6
- package/plugin-directory.d.ts +2 -2
- package/plugin-directory.js +16 -10
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Type-only copy of the plugin lookup vocabulary declared in `@jini-ai/core/plugin-directory`
|
|
3
|
+
* (`plugin-directory.d.ts` at the package root, outside `src/`), so contracts under `src/contracts/**`
|
|
4
|
+
* can name it through a relative core import. The root declaration and its runtime helpers stay
|
|
5
|
+
* unchanged; the two copies are structurally identical.
|
|
6
|
+
*/
|
|
7
|
+
export interface PluginProvider {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly version: string | null;
|
|
10
|
+
readonly enabled: boolean;
|
|
11
|
+
readonly family: string;
|
|
12
|
+
/** Stable storage/activation key; publisher identity never becomes a filesystem path. */
|
|
13
|
+
readonly localId: string;
|
|
14
|
+
readonly keywords: readonly string[];
|
|
15
|
+
readonly provides: readonly string[];
|
|
16
|
+
}
|
|
17
|
+
export interface PluginLookupPort {
|
|
18
|
+
getPlugin(required: {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly family?: string;
|
|
21
|
+
}, optional?: Record<string, never>): Promise<PluginProvider | null>;
|
|
22
|
+
findProviders(required: {
|
|
23
|
+
readonly capability: string;
|
|
24
|
+
}, optional?: {
|
|
25
|
+
readonly enabledOnly?: boolean;
|
|
26
|
+
}): Promise<readonly PluginProvider[]>;
|
|
27
|
+
}
|
|
28
|
+
export type PluginIdentityCandidate = Pick<PluginProvider, 'id' | 'family' | 'localId'>;
|
|
29
|
+
//# sourceMappingURL=plugin-directory.d.ts.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Plugin-host seam types shared with hosts: activation records and their repo port, provider
|
|
3
|
+
* key usage, claim conflicts, the removal port and the contributions snapshot. Types only (XP4).
|
|
4
|
+
*/
|
|
5
|
+
import type { UUID } from "../../primitives/ids.js";
|
|
6
|
+
import type { PluginProviderContribution, PluginRouteContribution, PluginSdk, PluginToolContribution, PluginWidgetContribution } from "../plugin-sdk.js";
|
|
7
|
+
/** `plugin_activations` row (durable, behind the gateway) — state.spec.md §2. */
|
|
8
|
+
export interface PluginActivationRecord {
|
|
9
|
+
readonly pluginId: string;
|
|
10
|
+
readonly workspaceId: UUID;
|
|
11
|
+
/** The active (enabled) installed version — the "active pointer". */
|
|
12
|
+
readonly version: string;
|
|
13
|
+
readonly enabled: boolean;
|
|
14
|
+
readonly updatedAt: string;
|
|
15
|
+
/** Present only while automatic quarantine is active. A normal enable/disable save omits these
|
|
16
|
+
* fields, which clears the durable marker and makes re-enable the operator recovery action. */
|
|
17
|
+
readonly quarantinedAt?: string;
|
|
18
|
+
readonly quarantineReason?: string;
|
|
19
|
+
readonly quarantineFailureCount?: number;
|
|
20
|
+
}
|
|
21
|
+
/** Persistence contract — shaped identically to `PresentationSettingsRepoPort` (rule-of-two, two
|
|
22
|
+
* adapters from day one: `repo.memory.ts` / `repo.sqlite.ts`). */
|
|
23
|
+
export interface PluginActivationRepoPort {
|
|
24
|
+
getActivation(required: {
|
|
25
|
+
workspaceId: UUID;
|
|
26
|
+
pluginId: string;
|
|
27
|
+
}, optional?: Record<string, never>): Promise<PluginActivationRecord | null>;
|
|
28
|
+
save(record: PluginActivationRecord, optional?: Record<string, never>): Promise<void>;
|
|
29
|
+
deleteActivation(required: {
|
|
30
|
+
workspaceId: UUID;
|
|
31
|
+
pluginId: string;
|
|
32
|
+
}, optional?: Record<string, never>): Promise<void>;
|
|
33
|
+
/** Every row across every workspace — used by discovery's `enabled` projection and by any
|
|
34
|
+
* future migration, mirrors `PresentationSettingsRepoPort.listAll`. */
|
|
35
|
+
listAll(required?: Record<string, never>, optional?: Record<string, never>): Promise<PluginActivationRecord[]>;
|
|
36
|
+
}
|
|
37
|
+
/** Storage-neutral contracts for a provider plugin's saved configuration. */
|
|
38
|
+
export interface ProviderKeyUsage {
|
|
39
|
+
readonly keyId?: string;
|
|
40
|
+
readonly store: "project" | "site";
|
|
41
|
+
readonly usedByThisSite: boolean;
|
|
42
|
+
readonly usedBy: readonly string[];
|
|
43
|
+
}
|
|
44
|
+
export interface ProviderWriteResult extends ProviderKeyUsage {
|
|
45
|
+
readonly keyId: string;
|
|
46
|
+
}
|
|
47
|
+
/** One conflict, as the admin screen and the agent see it — the detector's conflict plus the
|
|
48
|
+
* holder's display name. */
|
|
49
|
+
export interface PluginConflict {
|
|
50
|
+
readonly kind: string;
|
|
51
|
+
readonly key: string;
|
|
52
|
+
readonly heldBy: string;
|
|
53
|
+
readonly heldByName: string;
|
|
54
|
+
readonly heldKey: string;
|
|
55
|
+
}
|
|
56
|
+
/** Structural host removal port, matching the host's trash port without a CMS dependency edge. */
|
|
57
|
+
export type RemoveEntity = (required: {
|
|
58
|
+
workspaceId: string;
|
|
59
|
+
id: string;
|
|
60
|
+
display: {
|
|
61
|
+
title: string;
|
|
62
|
+
subtitle?: string | null;
|
|
63
|
+
};
|
|
64
|
+
at: string;
|
|
65
|
+
expectedVersion: number | null;
|
|
66
|
+
actor: {
|
|
67
|
+
principalId: string;
|
|
68
|
+
pluginId?: string | null;
|
|
69
|
+
};
|
|
70
|
+
priorMarker?: string | null;
|
|
71
|
+
}) => Promise<{
|
|
72
|
+
ok: true;
|
|
73
|
+
version: number | null;
|
|
74
|
+
} | {
|
|
75
|
+
ok: false;
|
|
76
|
+
reason: 'not-found' | 'version-changed';
|
|
77
|
+
} | {
|
|
78
|
+
ok: false;
|
|
79
|
+
reason: 'blocked';
|
|
80
|
+
code: string;
|
|
81
|
+
count: number;
|
|
82
|
+
}>;
|
|
83
|
+
export type RemovePluginFn = RemoveEntity;
|
|
84
|
+
export interface PluginContributionsSnapshot {
|
|
85
|
+
readonly pluginId: string;
|
|
86
|
+
readonly sdk: PluginSdk;
|
|
87
|
+
readonly providers?: readonly PluginProviderContribution[];
|
|
88
|
+
readonly routes: readonly PluginRouteContribution[];
|
|
89
|
+
readonly tools: readonly PluginToolContribution[];
|
|
90
|
+
readonly widgets: readonly PluginWidgetContribution[];
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=plugins-host.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The public byline contract, shared by all theme engines. Hidden credits never enter template data. */
|
|
2
|
+
export declare function postAuthorForDisplay(required: {
|
|
3
|
+
post: {
|
|
4
|
+
author?: string | null;
|
|
5
|
+
showAuthor?: boolean;
|
|
6
|
+
};
|
|
7
|
+
}, _optional?: Record<string, never>): string | null;
|
|
8
|
+
//# sourceMappingURL=post-author.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The public byline contract, shared by all theme engines. Hidden credits never enter template data. */
|
|
2
|
+
export function postAuthorForDisplay(required, _optional = {}) {
|
|
3
|
+
return required.post.showAuthor === true ? required.post.author?.trim() || null : null;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=post-author.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @file Storage kinds of the shared posts table; every reader of post rows uses this one union. */
|
|
2
|
+
import type { PublicPostKind } from "./cms-core.js";
|
|
3
|
+
/**
|
|
4
|
+
* Storage kinds sharing the bespoke `posts` table: the public kinds (`PublicPostKind`, a blog-style
|
|
5
|
+
* post or a standalone page) plus `email-template`. Email templates share storage through the Pages
|
|
6
|
+
* HTML store but belong only to mail authoring; public, theme, SEO and widget readers accept
|
|
7
|
+
* `PublicPostKind`. Fixed at creation; v1 has no kind-conversion path.
|
|
8
|
+
*/
|
|
9
|
+
export type PostKind = PublicPostKind | "email-template";
|
|
10
|
+
//# sourceMappingURL=post-kind.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The lock-key name of a post's revision fence. A contract, not post-slice behavior: the post
|
|
3
|
+
* repo and revision thinning take this fence, and the change-set repo adapter in `platform/db` takes
|
|
4
|
+
* the same one before it inserts an item naming a post revision — so the key's spelling is shared
|
|
5
|
+
* vocabulary that both sides must agree on, and `platform/` must not import a feature slice for it.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The one fence over a post's revision stream: `appendRevision` and revision thinning
|
|
9
|
+
* (`revision-thinning.ts`) both take it, so a thinning apply never runs between an append's read of
|
|
10
|
+
* the latest row and its insert, and a new newest row cannot appear mid-apply.
|
|
11
|
+
* @complexity O(1).
|
|
12
|
+
*/
|
|
13
|
+
export declare function postRevisionLockKey({ workspaceId, postId }: {
|
|
14
|
+
workspaceId: string;
|
|
15
|
+
postId: string;
|
|
16
|
+
}, _optional?: Record<string, never>): string;
|
|
17
|
+
//# sourceMappingURL=post-revision-lock.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The lock-key name of a post's revision fence. A contract, not post-slice behavior: the post
|
|
3
|
+
* repo and revision thinning take this fence, and the change-set repo adapter in `platform/db` takes
|
|
4
|
+
* the same one before it inserts an item naming a post revision — so the key's spelling is shared
|
|
5
|
+
* vocabulary that both sides must agree on, and `platform/` must not import a feature slice for it.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The one fence over a post's revision stream: `appendRevision` and revision thinning
|
|
9
|
+
* (`revision-thinning.ts`) both take it, so a thinning apply never runs between an append's read of
|
|
10
|
+
* the latest row and its insert, and a new newest row cannot appear mid-apply.
|
|
11
|
+
* @complexity O(1).
|
|
12
|
+
*/
|
|
13
|
+
export function postRevisionLockKey({ workspaceId, postId }, _optional = {}) {
|
|
14
|
+
return `post_revisions:${workspaceId}:${postId}`;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=post-revision-lock.js.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { VaultRecord, VaultRepoPort } from "../vault.js";
|
|
2
|
+
/** Host-owned project transaction; callers share the vault and reference commit boundary. */
|
|
3
|
+
export type ProjectKeyTransaction = <T>(required: {
|
|
4
|
+
run: () => Promise<T>;
|
|
5
|
+
}, optional?: Record<string, never>) => Promise<T>;
|
|
6
|
+
/** Project-local references. Only the meta UUID identifies a site; workspace ids are never safe. */
|
|
7
|
+
export interface KeyAttachments {
|
|
8
|
+
keyForLabel?(required: {
|
|
9
|
+
siteId: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}, optional?: Record<string, never>): Promise<string | null>;
|
|
12
|
+
keysFor(required: {
|
|
13
|
+
siteId: string;
|
|
14
|
+
}, optional?: Record<string, never>): Promise<readonly string[]>;
|
|
15
|
+
attach(required: {
|
|
16
|
+
siteId: string;
|
|
17
|
+
keyId: string;
|
|
18
|
+
siteName: string;
|
|
19
|
+
}, optional?: Record<string, never>): Promise<void>;
|
|
20
|
+
detach(required: {
|
|
21
|
+
siteId: string;
|
|
22
|
+
keyId: string;
|
|
23
|
+
}, optional?: Record<string, never>): Promise<void>;
|
|
24
|
+
isAttached(required: {
|
|
25
|
+
siteId: string;
|
|
26
|
+
keyId: string;
|
|
27
|
+
}, optional?: Record<string, never>): Promise<boolean>;
|
|
28
|
+
usersOf(required: {
|
|
29
|
+
keyId: string;
|
|
30
|
+
}, optional?: Record<string, never>): Promise<readonly {
|
|
31
|
+
siteId: string;
|
|
32
|
+
siteName: string;
|
|
33
|
+
}[]>;
|
|
34
|
+
removeKey(required: {
|
|
35
|
+
keyId: string;
|
|
36
|
+
}, optional?: Record<string, never>): Promise<void>;
|
|
37
|
+
renameSite(required: {
|
|
38
|
+
siteId: string;
|
|
39
|
+
siteName: string;
|
|
40
|
+
}, optional?: Record<string, never>): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
/** A vault reader that may also offer an indexed `findByLabel` over the same (possibly site-granted) rows.
|
|
43
|
+
* Structural only: the Project Keys grant wrapper produces it and the custom-credential repo consumes it.
|
|
44
|
+
*/
|
|
45
|
+
export type SiteGrantedVault = VaultRepoPort & {
|
|
46
|
+
findByLabel?: (input: {
|
|
47
|
+
workspaceId: string;
|
|
48
|
+
label: string;
|
|
49
|
+
}, options?: Record<string, never>) => Promise<VaultRecord | null>;
|
|
50
|
+
};
|
|
51
|
+
/** Site storage contains references only. Grants and secrets remain in the owner database. */
|
|
52
|
+
export interface SiteKeyReferences {
|
|
53
|
+
set(input: {
|
|
54
|
+
credentialId: string;
|
|
55
|
+
}, options?: Record<string, never>): Promise<void>;
|
|
56
|
+
has(input: {
|
|
57
|
+
credentialId: string;
|
|
58
|
+
}, options?: Record<string, never>): Promise<boolean>;
|
|
59
|
+
remove(input: {
|
|
60
|
+
credentialId: string;
|
|
61
|
+
}, options?: Record<string, never>): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
/** A consumer binding names one owner credential; a live owner grant still authorizes every use. */
|
|
64
|
+
export interface SiteOAuthBindings {
|
|
65
|
+
read(input: {
|
|
66
|
+
consumerId: string;
|
|
67
|
+
}, options?: Record<string, never>): Promise<{
|
|
68
|
+
credentialId: string;
|
|
69
|
+
} | null>;
|
|
70
|
+
set(input: {
|
|
71
|
+
consumerId: string;
|
|
72
|
+
credentialId: string;
|
|
73
|
+
}, options?: Record<string, never>): Promise<void>;
|
|
74
|
+
remove(input: {
|
|
75
|
+
consumerId: string;
|
|
76
|
+
}, options?: Record<string, never>): Promise<void>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=project-key-attachments.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The `ui://` resource wire shape a tool result carries so a host knows to render a View
|
|
3
|
+
* instead of handing text to the model. Types only.
|
|
4
|
+
*
|
|
5
|
+
* Additive copy of the declarations in `@jini-ai/protocol/mcp-ui` (`mcp-ui-resource.ts`); the
|
|
6
|
+
* builders and parsers (`createUIResource`, `parseUIResource`) and the MIME constants stay there.
|
|
7
|
+
* `@modelcontextprotocol/ext-apps` fixes `RESOURCE_MIME_TYPE = "text/html;profile=mcp-app"`, and
|
|
8
|
+
* `@mcp-ui/server` declares the ``ui://${string}`` URI scheme and the wider MIME union reproduced in
|
|
9
|
+
* {@link UIResourceMimeType}.
|
|
10
|
+
*/
|
|
11
|
+
/** The `ui://` URI scheme MCP Apps fixes for UI resources. */
|
|
12
|
+
export type UIResourceUri = `ui://${string}`;
|
|
13
|
+
/**
|
|
14
|
+
* MIME types a UI resource may declare.
|
|
15
|
+
*
|
|
16
|
+
* `@jini-ai/protocol/mcp-ui` emits its `MCP_UI_MIME_TYPE`; the other two are accepted on the parse side because
|
|
17
|
+
* the published union lists them — `text/html` for pre-standardization mcp-ui hosts and
|
|
18
|
+
* `text/html+skybridge` for the Apps SDK adapter — and a resource built by some *other* server is
|
|
19
|
+
* exactly the case its `parseUIResource` exists for.
|
|
20
|
+
*/
|
|
21
|
+
export type UIResourceMimeType = 'text/html' | 'text/html;profile=mcp-app' | 'text/html+skybridge';
|
|
22
|
+
/** The text-bearing UI resource body (mcp-ui's `HTMLTextContent`). `@jini-ai/protocol/mcp-ui` never emits the `blob` variant. */
|
|
23
|
+
export interface UIResourceContent {
|
|
24
|
+
readonly uri: UIResourceUri;
|
|
25
|
+
readonly mimeType: UIResourceMimeType;
|
|
26
|
+
readonly text: string;
|
|
27
|
+
readonly _meta?: Readonly<Record<string, unknown>>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* An MCP `EmbeddedResource` carrying UI — the object a tool result's `content` array holds, and the
|
|
31
|
+
* object a host hands to its View renderer.
|
|
32
|
+
*/
|
|
33
|
+
export interface UIResource {
|
|
34
|
+
readonly type: 'resource';
|
|
35
|
+
readonly resource: UIResourceContent;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=protocol-mcp-ui.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The `ui://` resource wire shape a tool result carries so a host knows to render a View
|
|
3
|
+
* instead of handing text to the model. Types only.
|
|
4
|
+
*
|
|
5
|
+
* Additive copy of the declarations in `@jini-ai/protocol/mcp-ui` (`mcp-ui-resource.ts`); the
|
|
6
|
+
* builders and parsers (`createUIResource`, `parseUIResource`) and the MIME constants stay there.
|
|
7
|
+
* `@modelcontextprotocol/ext-apps` fixes `RESOURCE_MIME_TYPE = "text/html;profile=mcp-app"`, and
|
|
8
|
+
* `@mcp-ui/server` declares the ``ui://${string}`` URI scheme and the wider MIME union reproduced in
|
|
9
|
+
* {@link UIResourceMimeType}.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=protocol-mcp-ui.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function resolvePublicOrigin({ configured: raw, derivedPublicOrigin, invalidConfiguredOrigin }: {
|
|
2
|
+
configured: string | undefined;
|
|
3
|
+
derivedPublicOrigin: string | undefined;
|
|
4
|
+
invalidConfiguredOrigin(input: {
|
|
5
|
+
configured: string;
|
|
6
|
+
reason: 'url' | 'protocol';
|
|
7
|
+
}): undefined;
|
|
8
|
+
}, _optional?: {}): string | undefined;
|
|
9
|
+
//# sourceMappingURL=public-origin.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function resolvePublicOrigin({ configured: raw, derivedPublicOrigin, invalidConfiguredOrigin }, _optional = {}) {
|
|
2
|
+
const configured = raw?.trim();
|
|
3
|
+
let origin;
|
|
4
|
+
if (configured) {
|
|
5
|
+
let url;
|
|
6
|
+
try {
|
|
7
|
+
url = new URL(configured);
|
|
8
|
+
}
|
|
9
|
+
catch {
|
|
10
|
+
url = undefined;
|
|
11
|
+
}
|
|
12
|
+
if (url === undefined)
|
|
13
|
+
origin = invalidConfiguredOrigin({ configured, reason: 'url' });
|
|
14
|
+
else if (url.protocol !== 'http:' && url.protocol !== 'https:')
|
|
15
|
+
origin = invalidConfiguredOrigin({ configured, reason: 'protocol' });
|
|
16
|
+
else
|
|
17
|
+
origin = url.origin;
|
|
18
|
+
}
|
|
19
|
+
origin ??= derivedPublicOrigin || undefined;
|
|
20
|
+
return origin;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=public-origin.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The product-neutral shape of a publish engine's port bag.
|
|
3
|
+
*
|
|
4
|
+
* A publish engine is generic over the bag a host hands it: it never reads a field of it, it only
|
|
5
|
+
* passes `deps.ports` on to the handler each registered type builds. The bag is the one place that
|
|
6
|
+
* names what a site's publishable types need, so the engine's own files import nothing from the
|
|
7
|
+
* post, media, navigation, taxonomy, entries, content-type or theme features.
|
|
8
|
+
*
|
|
9
|
+
* ## One typed bag, keyed by `entityType`
|
|
10
|
+
*
|
|
11
|
+
* Every registered type used to widen the engine's deps with its own flat, individually-optional
|
|
12
|
+
* field (`mediaRepo`, `redirectsWriteDeps`, `menuRepo`, `navLocationBindingRepo`, …), each threaded
|
|
13
|
+
* by hand through the routes, the tool registrations and every composition root. A type could ship
|
|
14
|
+
* with a real `apply()` before it could actually travel, because every one of those builders forgot
|
|
15
|
+
* some of the fields and nothing complained: the fields were OPTIONAL, so a missing one silently
|
|
16
|
+
* degraded `pack`/`inspect`/`precheck` to "nothing to report" instead of failing anywhere.
|
|
17
|
+
*
|
|
18
|
+
* {@link PublishPorts} replaces that with ONE type, one key per registered `entityType`, so a root
|
|
19
|
+
* that forgets a type's ports is a type error at exactly one place instead of an N-file scavenger
|
|
20
|
+
* hunt. Each key's value is that type's own slice, exhaustive for that type, so a root that does
|
|
21
|
+
* supply a slice can no longer misspell or half-supply one of its fields. The engine's `ports`
|
|
22
|
+
* argument may still be `Partial` — a caller that only ever exports/plans (never applies) has no use
|
|
23
|
+
* for supplying every type's ports — which is why this contract stays a plain mapped type and leaves
|
|
24
|
+
* optionality to the consumer.
|
|
25
|
+
*
|
|
26
|
+
* This package owns only the keyed-bag shape. The slices themselves belong to the feature that owns
|
|
27
|
+
* the entity type (a capability package names its own port types here), and a host composes them with
|
|
28
|
+
* its own host-only slices by intersection — this contract never imports a feature.
|
|
29
|
+
*/
|
|
30
|
+
/** What a bag's `Slices` map must look like: `entityType` -> that type's port slice. */
|
|
31
|
+
export type PublishPortsSlices = {
|
|
32
|
+
readonly [entityType: string]: object;
|
|
33
|
+
};
|
|
34
|
+
/** The keyed bag: one slice per `entityType` named in `Slices`. */
|
|
35
|
+
export type PublishPorts<Slices extends PublishPortsSlices> = {
|
|
36
|
+
readonly [K in keyof Slices]: Slices[K];
|
|
37
|
+
};
|
|
38
|
+
/** The `entityType` keys a bag names. */
|
|
39
|
+
export type PublishPortsEntityType<Bag extends PublishPortsSlices> = Extract<keyof Bag, string>;
|
|
40
|
+
/** One entity type's slice of a bag. */
|
|
41
|
+
export type PublishPortsSlice<Bag extends PublishPortsSlices, K extends PublishPortsEntityType<Bag>> = Bag[K];
|
|
42
|
+
//# sourceMappingURL=publish-ports.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The product-neutral shape of a publish engine's port bag.
|
|
3
|
+
*
|
|
4
|
+
* A publish engine is generic over the bag a host hands it: it never reads a field of it, it only
|
|
5
|
+
* passes `deps.ports` on to the handler each registered type builds. The bag is the one place that
|
|
6
|
+
* names what a site's publishable types need, so the engine's own files import nothing from the
|
|
7
|
+
* post, media, navigation, taxonomy, entries, content-type or theme features.
|
|
8
|
+
*
|
|
9
|
+
* ## One typed bag, keyed by `entityType`
|
|
10
|
+
*
|
|
11
|
+
* Every registered type used to widen the engine's deps with its own flat, individually-optional
|
|
12
|
+
* field (`mediaRepo`, `redirectsWriteDeps`, `menuRepo`, `navLocationBindingRepo`, …), each threaded
|
|
13
|
+
* by hand through the routes, the tool registrations and every composition root. A type could ship
|
|
14
|
+
* with a real `apply()` before it could actually travel, because every one of those builders forgot
|
|
15
|
+
* some of the fields and nothing complained: the fields were OPTIONAL, so a missing one silently
|
|
16
|
+
* degraded `pack`/`inspect`/`precheck` to "nothing to report" instead of failing anywhere.
|
|
17
|
+
*
|
|
18
|
+
* {@link PublishPorts} replaces that with ONE type, one key per registered `entityType`, so a root
|
|
19
|
+
* that forgets a type's ports is a type error at exactly one place instead of an N-file scavenger
|
|
20
|
+
* hunt. Each key's value is that type's own slice, exhaustive for that type, so a root that does
|
|
21
|
+
* supply a slice can no longer misspell or half-supply one of its fields. The engine's `ports`
|
|
22
|
+
* argument may still be `Partial` — a caller that only ever exports/plans (never applies) has no use
|
|
23
|
+
* for supplying every type's ports — which is why this contract stays a plain mapped type and leaves
|
|
24
|
+
* optionality to the consumer.
|
|
25
|
+
*
|
|
26
|
+
* This package owns only the keyed-bag shape. The slices themselves belong to the feature that owns
|
|
27
|
+
* the entity type (a capability package names its own port types here), and a host composes them with
|
|
28
|
+
* its own host-only slices by intersection — this contract never imports a feature.
|
|
29
|
+
*/
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=publish-ports.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The shared gated-operation lock's data shapes: the handle a holder keeps and the result of an
|
|
3
|
+
* acquire attempt. The lock itself (one host-shared, in-process registry keyed by `siteId`) lives in
|
|
4
|
+
* `@jini-ai/db/recovery/operation-lock`; these types sit in core so any package can name a lock
|
|
5
|
+
* handle or acquire result without depending on the db package.
|
|
6
|
+
*
|
|
7
|
+
* The lock tracks in-flight state per `siteId` only, never per-domain, so two domains racing to
|
|
8
|
+
* mutate the same site (for example migrate-forward and restore) cannot both be "in flight".
|
|
9
|
+
*/
|
|
10
|
+
export interface OperationLockHandle {
|
|
11
|
+
siteId: string;
|
|
12
|
+
operationKind: string;
|
|
13
|
+
/** ISO-8601 UTC. */
|
|
14
|
+
acquiredAt: string;
|
|
15
|
+
}
|
|
16
|
+
export interface OperationLockError {
|
|
17
|
+
code: "OPERATION_IN_FLIGHT";
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
export type AcquireOperationLockResult = {
|
|
21
|
+
ok: true;
|
|
22
|
+
value: OperationLockHandle;
|
|
23
|
+
} | {
|
|
24
|
+
ok: false;
|
|
25
|
+
error: OperationLockError;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=recovery-operation-lock.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The shared gated-operation lock's data shapes: the handle a holder keeps and the result of an
|
|
3
|
+
* acquire attempt. The lock itself (one host-shared, in-process registry keyed by `siteId`) lives in
|
|
4
|
+
* `@jini-ai/db/recovery/operation-lock`; these types sit in core so any package can name a lock
|
|
5
|
+
* handle or acquire result without depending on the db package.
|
|
6
|
+
*
|
|
7
|
+
* The lock tracks in-flight state per `siteId` only, never per-domain, so two domains racing to
|
|
8
|
+
* mutate the same site (for example migrate-forward and restore) cannot both be "in flight".
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=recovery-operation-lock.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The per-site serve-status port read by the serving gate and written by boot-time crash
|
|
3
|
+
* reconciliation. Types only.
|
|
4
|
+
*
|
|
5
|
+
* Owner of these declarations; `@jini-ai/db/recovery/reconcile-interrupted-migration` re-exports
|
|
6
|
+
* the types from here. A crashed-mid-
|
|
7
|
+
* migration site is set to `BLOCKED_PENDING_RECOVERY` and blocks normal site open until an
|
|
8
|
+
* operator resolves it via Recovery. The reconciler itself and its other ports stay in the db
|
|
9
|
+
* package.
|
|
10
|
+
*/
|
|
11
|
+
export type SiteServeStatus = "SERVING" | "PENDING_MIGRATION" | "BLOCKED_PENDING_RECOVERY";
|
|
12
|
+
export interface SiteStatusPort {
|
|
13
|
+
get(siteId: string): Promise<SiteServeStatus>;
|
|
14
|
+
set(siteId: string, status: SiteServeStatus): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=recovery-reconcile-interrupted-migration.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The per-site serve-status port read by the serving gate and written by boot-time crash
|
|
3
|
+
* reconciliation. Types only.
|
|
4
|
+
*
|
|
5
|
+
* Owner of these declarations; `@jini-ai/db/recovery/reconcile-interrupted-migration` re-exports
|
|
6
|
+
* the types from here. A crashed-mid-
|
|
7
|
+
* migration site is set to `BLOCKED_PENDING_RECOVERY` and blocks normal site open until an
|
|
8
|
+
* operator resolves it via Recovery. The reconciler itself and its other ports stay in the db
|
|
9
|
+
* package.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=recovery-reconcile-interrupted-migration.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The per-request facts a frontend hook needs that a web `Request` cannot carry: which address
|
|
3
|
+
* counts as the client, which protocol the request was served over, whether it counts as secure, and
|
|
4
|
+
* the host app's parsed query. Express (and its trust-proxy setting) decides these, so the host
|
|
5
|
+
* adapter computes them once per dispatch (`server/inbound/shared/request-facts.ts`) and hands them to
|
|
6
|
+
* Jini's hooks through `locals`. This file has no Express import so domain code can read them.
|
|
7
|
+
*/
|
|
8
|
+
/** The key the facts sit under in a hook's `locals`. */
|
|
9
|
+
export declare const JINI_REQUEST_FACTS = "jiniRequestFacts";
|
|
10
|
+
export interface RequestFacts {
|
|
11
|
+
/** Express's answer to "who is the client" under this app's trust-proxy setting (or `"unknown"`). The quota key. */
|
|
12
|
+
readonly clientAddress: string;
|
|
13
|
+
/** The protocol the visitor-origin check compares with: the first `X-Forwarded-Proto` hop when exactly `http`/`https`, otherwise Express's own. NOT the same fact as `secure`. */
|
|
14
|
+
readonly servingProtocol: string;
|
|
15
|
+
/** Express's `req.secure`: whether the request counts as HTTPS under the trust-proxy setting. Decides the cookie's `Secure`. */
|
|
16
|
+
readonly secure: boolean;
|
|
17
|
+
/** The host app's parsed query (its own `qs` rules: a repeated or bracketed key is an array or an object). */
|
|
18
|
+
readonly query: Readonly<Record<string, unknown>>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The facts the host adapter put in `locals`.
|
|
22
|
+
* @throws Error when they are absent or malformed: the route was mounted without the adapter. There is deliberately no default
|
|
23
|
+
* address: a default would put every request in one shared quota key, and fail open instead of failing loudly.
|
|
24
|
+
*/
|
|
25
|
+
export declare function readRequestFacts({ locals }: {
|
|
26
|
+
readonly locals: Readonly<Record<string, unknown>>;
|
|
27
|
+
}, _optional?: Record<string, never>): RequestFacts;
|
|
28
|
+
//# sourceMappingURL=request-facts.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The per-request facts a frontend hook needs that a web `Request` cannot carry: which address
|
|
3
|
+
* counts as the client, which protocol the request was served over, whether it counts as secure, and
|
|
4
|
+
* the host app's parsed query. Express (and its trust-proxy setting) decides these, so the host
|
|
5
|
+
* adapter computes them once per dispatch (`server/inbound/shared/request-facts.ts`) and hands them to
|
|
6
|
+
* Jini's hooks through `locals`. This file has no Express import so domain code can read them.
|
|
7
|
+
*/
|
|
8
|
+
/** The key the facts sit under in a hook's `locals`. */
|
|
9
|
+
export const JINI_REQUEST_FACTS = "jiniRequestFacts";
|
|
10
|
+
function isFacts(value) {
|
|
11
|
+
if (typeof value !== "object" || value === null)
|
|
12
|
+
return false;
|
|
13
|
+
const facts = value;
|
|
14
|
+
const texts = typeof facts.clientAddress === "string" && typeof facts.servingProtocol === "string";
|
|
15
|
+
return texts && typeof facts.secure === "boolean" && typeof facts.query === "object" && facts.query !== null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The facts the host adapter put in `locals`.
|
|
19
|
+
* @throws Error when they are absent or malformed: the route was mounted without the adapter. There is deliberately no default
|
|
20
|
+
* address: a default would put every request in one shared quota key, and fail open instead of failing loudly.
|
|
21
|
+
*/
|
|
22
|
+
export function readRequestFacts({ locals }, _optional = {}) {
|
|
23
|
+
const facts = locals[JINI_REQUEST_FACTS];
|
|
24
|
+
if (!isFacts(facts))
|
|
25
|
+
throw new Error(`request facts are missing from locals.${JINI_REQUEST_FACTS}: the route was mounted without mountJiniRoutes or requestHookInput`);
|
|
26
|
+
return facts;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=request-facts.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2
|
+
export type RoutineSchedule = {
|
|
3
|
+
kind: 'hourly';
|
|
4
|
+
minute: number;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'daily';
|
|
7
|
+
time: string;
|
|
8
|
+
timezone: string;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'weekdays';
|
|
11
|
+
time: string;
|
|
12
|
+
timezone: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'weekly';
|
|
15
|
+
time: string;
|
|
16
|
+
timezone: string;
|
|
17
|
+
weekday: Weekday;
|
|
18
|
+
};
|
|
19
|
+
export interface RoutineRunSummary {
|
|
20
|
+
runId: string;
|
|
21
|
+
trigger: 'manual' | 'scheduled';
|
|
22
|
+
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'interrupted';
|
|
23
|
+
startedAt: number;
|
|
24
|
+
completedAt?: number;
|
|
25
|
+
projectId: string;
|
|
26
|
+
conversationId: string;
|
|
27
|
+
agentRunId: string;
|
|
28
|
+
assistantMessageId?: string | null;
|
|
29
|
+
agentId?: string | null;
|
|
30
|
+
model?: string | null;
|
|
31
|
+
summary?: string;
|
|
32
|
+
error?: string;
|
|
33
|
+
errorCode?: string;
|
|
34
|
+
catchUp?: boolean;
|
|
35
|
+
slotAt?: number | null;
|
|
36
|
+
approvalState?: 'none' | 'waiting' | 'approved' | 'declined' | 'expired';
|
|
37
|
+
approvalSince?: number | null;
|
|
38
|
+
}
|
|
39
|
+
export interface RoutineRow {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
prompt: string;
|
|
43
|
+
schedule: RoutineSchedule;
|
|
44
|
+
target: {
|
|
45
|
+
mode: 'create_each_run';
|
|
46
|
+
} | {
|
|
47
|
+
mode: 'reuse';
|
|
48
|
+
projectId: string;
|
|
49
|
+
};
|
|
50
|
+
skillId: string | null;
|
|
51
|
+
agentId: string | null;
|
|
52
|
+
model: string | null;
|
|
53
|
+
creatorId: string;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
nextRunAt: number | null;
|
|
56
|
+
revision: number;
|
|
57
|
+
createdAt: number;
|
|
58
|
+
updatedAt: number;
|
|
59
|
+
lastRun: RoutineRunSummary | null;
|
|
60
|
+
}
|
|
61
|
+
export type RoutineAvailability = {
|
|
62
|
+
state: 'ready' | 'desktop-only' | 'assistant-off' | 'other-window' | 'error';
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=routines.d.ts.map
|