@jini-ai/core 0.7.3-next.2 → 0.7.4
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 +7 -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/batch-tool-inputs.d.ts +3 -3
- package/dist/batch-tool-inputs.js +18 -6
- 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 +9 -3
- 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 +12 -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 +8 -4
- 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 +464 -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 +30 -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 +170 -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/contracts/vault/vendor-credential-sets.d.ts +12 -0
- package/dist/errors/catalog.js +3 -3
- 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/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/records.d.ts +1 -1
- package/dist/records.js +1 -1
- package/dist/redaction-collectors.js +84 -40
- 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 +5 -2
- package/dist/redaction-patterns.js +19 -10
- package/dist/redaction-spans.d.ts +5 -1
- package/dist/redaction-spans.js +2 -2
- package/dist/redaction.d.ts +5 -0
- package/dist/redaction.js +5 -0
- package/dist/registration-kit.d.ts +12 -0
- package/dist/registration-kit.js +21 -4
- 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/format-timestamp.js +3 -2
- 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 +25 -0
- package/dist/tool-metadata/media-generation.js +30 -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 +1430 -5
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Declarative plugin data-module grammar: column, index and table declarations, the module
|
|
3
|
+
* declaration and its provenance. Types only (XP4); `@jini-ai/db` keeps the DDL engine.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @agent-note Saved format. The first declare that applies DDL stores these fields in
|
|
7
|
+
* `_plugin_identity`; they are never updated. Later declares compare all three with strict string
|
|
8
|
+
* equality, so a renamed publisher or moved URL is refused as `consent-required` the next time
|
|
9
|
+
* that plugin has DDL to apply, unless both sides carry the same `signature`.
|
|
10
|
+
*/
|
|
11
|
+
export interface PluginProvenance {
|
|
12
|
+
sourceUrl: string;
|
|
13
|
+
publisher: string;
|
|
14
|
+
signature?: string;
|
|
15
|
+
}
|
|
16
|
+
export type ColumnType = "TEXT" | "INTEGER" | "REAL" | "BLOB";
|
|
17
|
+
export type PluginTier = "tier-1" | "tier-2" | "tier-3";
|
|
18
|
+
export interface ColumnDecl {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly type: ColumnType;
|
|
21
|
+
readonly notNull?: boolean;
|
|
22
|
+
readonly primaryKey?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Declared FKs / the SDK stress-test finding — the dataModule seam's
|
|
26
|
+
* declared-index grammar. Comments' moderation-queue query pattern
|
|
27
|
+
* (`workspace_id, entry_id, status`) is the concrete demand this grows the seam against, per
|
|
28
|
+
* OQ-1's own instruction not to silently work around the gap. Deliberately NOT a foreign-key
|
|
29
|
+
* declaration seam too — the original design says referential integrity to `entries`/parent
|
|
30
|
+
* comments is "chokepoint-validated, not FK-enforced (v1)", so only indexes are the real,
|
|
31
|
+
* load-bearing need; adding FK-declaration grammar with no consumer would be speculative.
|
|
32
|
+
*/
|
|
33
|
+
export interface IndexDecl {
|
|
34
|
+
/** SHORT name; core prefixes it the same way tables are (`idx_p_{pluginId}__{name}`). */
|
|
35
|
+
readonly name: string;
|
|
36
|
+
readonly columns: readonly string[];
|
|
37
|
+
readonly unique?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface TableDecl {
|
|
40
|
+
/** SHORT name; core prefixes it with the reserved `p_{pluginId}__` namespace. */
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly columns: readonly ColumnDecl[];
|
|
43
|
+
readonly indexes?: readonly IndexDecl[];
|
|
44
|
+
/** Share policy belongs to the table owner. Missing declarations still refuse nonempty data.
|
|
45
|
+
* Portable columns are explicit so later personal fields cannot silently enter an archive. */
|
|
46
|
+
readonly portability?: {
|
|
47
|
+
readonly kind: "private";
|
|
48
|
+
} | {
|
|
49
|
+
readonly kind: "portable";
|
|
50
|
+
readonly columns: readonly string[];
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface DataModuleDecl {
|
|
54
|
+
readonly pluginId: string;
|
|
55
|
+
/** §3/T6: `dataModule` is scoped to Tier-2/Tier-3 only — a Tier-1 declaration is rejected. */
|
|
56
|
+
readonly pluginTier: PluginTier;
|
|
57
|
+
readonly tables: readonly TableDecl[];
|
|
58
|
+
/** §5/§6/T5 — used by the namespace-adoption guard. */
|
|
59
|
+
readonly provenance: PluginProvenance;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=db-data-modules.d.ts.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ExportRunSnapshot } from "./export-run.js";
|
|
2
|
+
/** One place this site was published or deployed to before, as `GET .../system/publish/destinations`
|
|
3
|
+
* lists it (`static-publish/publish-history.ts`'s `PublishDestination`), newest first. Labels and
|
|
4
|
+
* target ids are the server's; no secret is ever in a row (`credentialId` names a saved connection). */
|
|
5
|
+
export type StaticDeploymentDestination = {
|
|
6
|
+
id: string;
|
|
7
|
+
kind: "static";
|
|
8
|
+
lastPublishedAt: string;
|
|
9
|
+
label: string;
|
|
10
|
+
url: string;
|
|
11
|
+
target: string;
|
|
12
|
+
projectName: string;
|
|
13
|
+
credentialId?: string;
|
|
14
|
+
configFields: Readonly<Record<string, string>>;
|
|
15
|
+
};
|
|
16
|
+
export type DeployRunDestination = {
|
|
17
|
+
id: string;
|
|
18
|
+
kind: "deploy";
|
|
19
|
+
/** `started` = the host accepted the deploy but nothing confirmed it landed. */
|
|
20
|
+
status: "started" | "confirmed";
|
|
21
|
+
statusMessage?: string;
|
|
22
|
+
target: string;
|
|
23
|
+
label: string;
|
|
24
|
+
url: string;
|
|
25
|
+
lastPublishedAt: string;
|
|
26
|
+
/** The saved peer at this deploy's address, when there is one: content publishes there. */
|
|
27
|
+
linkedPeerId?: string;
|
|
28
|
+
};
|
|
29
|
+
export type DeploymentDestination<Peer extends {
|
|
30
|
+
kind: string;
|
|
31
|
+
}> = StaticDeploymentDestination | DeployRunDestination | Peer;
|
|
32
|
+
/**
|
|
33
|
+
* @file What `useStaticExport` needs from the outside world, as an interface rather than a direct
|
|
34
|
+
* `lib/api` import — same shape as `deployment-overview-port.hooks.ts`/`dockerfile-source-port.hooks.ts`
|
|
35
|
+
* in this directory.
|
|
36
|
+
*/
|
|
37
|
+
export interface StaticExportPort {
|
|
38
|
+
/** Starts a new export run and resolves with the just-started `"running"` snapshot (or, if this
|
|
39
|
+
* is the actual write and the server refuses it outright — e.g. malformed options — a rejection).
|
|
40
|
+
* A `409` while a run is already in flight also surfaces as a rejection; see `use-static-export
|
|
41
|
+
* .hooks.ts`'s own handling of that case. */
|
|
42
|
+
triggerSiteExport(required: {}, optional?: {
|
|
43
|
+
options?: {
|
|
44
|
+
clean?: boolean;
|
|
45
|
+
};
|
|
46
|
+
}): Promise<ExportRunSnapshot>;
|
|
47
|
+
/** The current/most recent run's status — polled while `status === "running"`. */
|
|
48
|
+
getSiteExportStatus(): Promise<ExportRunSnapshot>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @file What `useStaticPublish` needs from the outside world, as an interface rather than a direct
|
|
52
|
+
* `lib/api` import — same shape as `static-export-port.hooks.ts` in this directory.
|
|
53
|
+
*/
|
|
54
|
+
export interface StaticPublishPort<Target, Config extends object, Preview, Run> {
|
|
55
|
+
/** The deploy targets the server's deploy registry lists, with their form field specs — the
|
|
56
|
+
* publish card's host tabs, fields and help all come from this. */
|
|
57
|
+
listPublishTargets(): Promise<Target[]>;
|
|
58
|
+
/** Pure read: validates `config`, reports the base path a real publish would use, and whether a
|
|
59
|
+
* credential is configured — never starts a run. */
|
|
60
|
+
getPublishPreview(config: Config, optional?: {}): Promise<Preview>;
|
|
61
|
+
/** Starts a new publish and resolves with the just-started `"running"` snapshot. A `409` while a
|
|
62
|
+
* run is already in flight surfaces as a rejection, same as `StaticExportPort.triggerSiteExport`.
|
|
63
|
+
*
|
|
64
|
+
* `credentialId` is the saved connection the operator chose — see `api.ts`'s `triggerPublish` for
|
|
65
|
+
* why the server needs it named rather than resolving the current default itself. */
|
|
66
|
+
triggerPublish(input: {
|
|
67
|
+
config: Config;
|
|
68
|
+
projectName: string;
|
|
69
|
+
credentialId?: string;
|
|
70
|
+
}, optional?: {}): Promise<Run>;
|
|
71
|
+
/** The current/most recent publish run's status — polled while `status === "running"`. */
|
|
72
|
+
getPublishStatus(): Promise<Run>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=deployment-admin.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The dev restart-on-request port. Types only.
|
|
3
|
+
*
|
|
4
|
+
* After a site switch, a supervised dev server asks its supervisor to restart the API child onto
|
|
5
|
+
* the new site. The server only writes a supervisor request; it never kills, signals or re-execs
|
|
6
|
+
* itself. The port exists only under a dev supervisor, so unsupervised boots have no port and
|
|
7
|
+
* callers fall back to restart instructions. The file-backed implementation stays with the host.
|
|
8
|
+
*/
|
|
9
|
+
export type DevRestartDecision = {
|
|
10
|
+
accepted: true;
|
|
11
|
+
} | {
|
|
12
|
+
accepted: false;
|
|
13
|
+
reason: string;
|
|
14
|
+
};
|
|
15
|
+
export interface DevRestartPort {
|
|
16
|
+
/** False when the launcher is pinned by an explicit shell site override. */
|
|
17
|
+
canSwitchSite?: boolean;
|
|
18
|
+
/** Legacy requests write after the chat delivery delay. Opt-in callers await the supervisor's
|
|
19
|
+
* precheck; acceptance schedules a restart and does not claim a completed boot. */
|
|
20
|
+
requestRestart(required: {
|
|
21
|
+
reason: string;
|
|
22
|
+
}, optional?: {
|
|
23
|
+
awaitAcceptance?: boolean;
|
|
24
|
+
}): void | Promise<DevRestartDecision | void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=dev-supervisor-dev-restart.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The dev restart-on-request port. Types only.
|
|
3
|
+
*
|
|
4
|
+
* After a site switch, a supervised dev server asks its supervisor to restart the API child onto
|
|
5
|
+
* the new site. The server only writes a supervisor request; it never kills, signals or re-execs
|
|
6
|
+
* itself. The port exists only under a dev supervisor, so unsupervised boots have no port and
|
|
7
|
+
* callers fall back to restart instructions. The file-backed implementation stays with the host.
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=dev-supervisor-dev-restart.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Single-object delivery and the resolved deploy-target credential. Types only.
|
|
3
|
+
*
|
|
4
|
+
* Additive copy of the declarations in `@jini-ai/devops/deploy` (`core/artifact-store.ts`,
|
|
5
|
+
* `deploy/host-kit.ts`). `DeployFile` (its `data` is a Node `Buffer`) and `PluginDeployHostKit`
|
|
6
|
+
* (built from `typeof` the devops runtime helpers and the `DeployError` class) stay in devops.
|
|
7
|
+
*/
|
|
8
|
+
export type SiteUpdateAvailability = {
|
|
9
|
+
kind: 'unavailable';
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'current';
|
|
12
|
+
runningVersion: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'available';
|
|
15
|
+
runningVersion: string;
|
|
16
|
+
latest: string;
|
|
17
|
+
notes: string;
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'check-failed';
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The most recent update attempt, so the owner sees the settled result after reconnecting. `updating`
|
|
23
|
+
* means the hand-off was accepted and the replacement is not yet verified; it is never a finished update.
|
|
24
|
+
* `summary` is safe, host-written copy.
|
|
25
|
+
*/
|
|
26
|
+
export type SiteUpdateLastAttempt = {
|
|
27
|
+
status: 'updating' | 'updated' | 'rolled-back' | 'failed';
|
|
28
|
+
toVersion: string;
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
export type SiteUpdateStatusReply = {
|
|
32
|
+
availability: SiteUpdateAvailability;
|
|
33
|
+
lastAttempt?: SiteUpdateLastAttempt;
|
|
34
|
+
};
|
|
35
|
+
/** A private locator is kept by the consumer; only verified public URLs reach recipients. */
|
|
36
|
+
export interface ArtifactUpload {
|
|
37
|
+
readonly key: string;
|
|
38
|
+
readonly bytes: Uint8Array;
|
|
39
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Single-object delivery. Publishing a whole tree must never own these objects.
|
|
43
|
+
*
|
|
44
|
+
* The share-facing view of `@jini-ai/core/object-store`: `upload`/`delete` are an `ObjectStore`'s
|
|
45
|
+
* `put`/`delete`, `url`/`verify` its `publicAccess`. Hosts select the provider that hands one out
|
|
46
|
+
* through the object-store registry by capability, not by a vendor id.
|
|
47
|
+
*/
|
|
48
|
+
export interface ArtifactStorePort {
|
|
49
|
+
upload(required: ArtifactUpload, optional?: {
|
|
50
|
+
signal?: AbortSignal;
|
|
51
|
+
}): Promise<{
|
|
52
|
+
url: string;
|
|
53
|
+
}>;
|
|
54
|
+
delete(required: {
|
|
55
|
+
key: string;
|
|
56
|
+
}, optional?: {
|
|
57
|
+
signal?: AbortSignal;
|
|
58
|
+
}): Promise<void>;
|
|
59
|
+
/** Anonymous read, or confirmed 404/410 when present=false. Errors are not absence. */
|
|
60
|
+
verify(required: {
|
|
61
|
+
key: string;
|
|
62
|
+
url: string;
|
|
63
|
+
present: boolean;
|
|
64
|
+
bytes?: number;
|
|
65
|
+
}, optional?: {
|
|
66
|
+
signal?: AbortSignal;
|
|
67
|
+
}): Promise<boolean>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The resolved saved credential a module builds its target from: always a
|
|
71
|
+
* `token`, plus whatever extra fields that host's credential carries (an
|
|
72
|
+
* account id, bucket coordinates, ...).
|
|
73
|
+
*/
|
|
74
|
+
export type DeployTargetCredential = {
|
|
75
|
+
readonly token: string;
|
|
76
|
+
} & Readonly<Record<string, string | undefined>>;
|
|
77
|
+
//# sourceMappingURL=devops-deploy.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Single-object delivery and the resolved deploy-target credential. Types only.
|
|
3
|
+
*
|
|
4
|
+
* Additive copy of the declarations in `@jini-ai/devops/deploy` (`core/artifact-store.ts`,
|
|
5
|
+
* `deploy/host-kit.ts`). `DeployFile` (its `data` is a Node `Buffer`) and `PluginDeployHostKit`
|
|
6
|
+
* (built from `typeof` the devops runtime helpers and the `DeployError` class) stay in devops.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=devops-deploy.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Public-domain TLS probe result shape. Types only; this module owns the declarations that
|
|
3
|
+
* `@jini-ai/diagnostics/domain-dns` (`domain-dns/index.ts`) used to declare. That package imports
|
|
4
|
+
* them from here and keeps its runtime values.
|
|
5
|
+
*/
|
|
6
|
+
export interface TlsStatus {
|
|
7
|
+
status: "verified" | "invalid" | "unavailable";
|
|
8
|
+
httpStatus: number | null;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=diagnostics-domain-dns.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Public-domain TLS probe result shape. Types only; this module owns the declarations that
|
|
3
|
+
* `@jini-ai/diagnostics/domain-dns` (`domain-dns/index.ts`) used to declare. That package imports
|
|
4
|
+
* them from here and keeps its runtime values.
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=diagnostics-domain-dns.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The tracker facade contract. Moved from `@jini-ai/diagnostics/observability`
|
|
3
|
+
* (`tracker-types.ts`); diagnostics keeps the implementation (`createTracker`, `createNoopTracker`)
|
|
4
|
+
* and its provider/option types, and imports these declarations from here.
|
|
5
|
+
*/
|
|
6
|
+
import type { AgentRunTrackingInput, AgentRunTrackingOptions, AgentRunTrackingOutcome, OperationAttributes, OperationTrackingOutcome, RequestTrackingInput, RequestTrackingOptions, RequestTrackingOutcome, MetricInput, MetricOptions, TraceIds } from "../observability.js";
|
|
7
|
+
/** Capture-only consumer port; higher-layer analytics adapters satisfy it structurally. */
|
|
8
|
+
export interface CaptureEvent {
|
|
9
|
+
name: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
properties?: Readonly<Record<string, string | number | boolean>>;
|
|
12
|
+
}
|
|
13
|
+
/** Signals share one dependency; each method retains its own typed payload. */
|
|
14
|
+
export interface TrackerErrorContext {
|
|
15
|
+
level?: 'warning' | 'error';
|
|
16
|
+
operation?: string;
|
|
17
|
+
attributes?: OperationAttributes;
|
|
18
|
+
/** Convenience label for callers that only know the route. */
|
|
19
|
+
route?: string;
|
|
20
|
+
exactSecrets?: readonly string[];
|
|
21
|
+
}
|
|
22
|
+
/** Record a semantic outcome; the facade owns ending the underlying lifecycle. First outcome wins unless work throws; explicit cancellation is preserved. */
|
|
23
|
+
export interface TrackerSpan<Outcome = OperationTrackingOutcome> {
|
|
24
|
+
setOutcome(outcome: Outcome): void;
|
|
25
|
+
}
|
|
26
|
+
/** Fixed labels and ids only; never pass user text or credential values as span attributes.
|
|
27
|
+
* `traceparent` is a structural W3C parent for work that cannot inherit the active span (a
|
|
28
|
+
* background delivery of a persisted event); it is never recorded as an attribute. */
|
|
29
|
+
export interface OperationSpanOptions {
|
|
30
|
+
attributes?: OperationAttributes;
|
|
31
|
+
traceparent?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface RequestSpanOptions {
|
|
34
|
+
request: RequestTrackingInput & RequestTrackingOptions;
|
|
35
|
+
}
|
|
36
|
+
export interface AgentSpanOptions {
|
|
37
|
+
agent: AgentRunTrackingInput & AgentRunTrackingOptions;
|
|
38
|
+
}
|
|
39
|
+
/** Provider failures never escape. Application callback errors retain their original identity.
|
|
40
|
+
* Required fields precede optional settings; no provider-specific types cross this boundary. */
|
|
41
|
+
export interface Tracker {
|
|
42
|
+
/** Current tracing IDs, absent without an active span; optional for older host facades. */
|
|
43
|
+
activeTraceIds?(required?: Record<string, never>, optional?: Record<string, never>): TraceIds | undefined;
|
|
44
|
+
/** Awaitable local admission; does not wait for remote delivery. */
|
|
45
|
+
capture(input: Pick<CaptureEvent, "name" | "userId">, options?: Pick<CaptureEvent, "properties">): void | Promise<void>;
|
|
46
|
+
error(input: {
|
|
47
|
+
error: Error;
|
|
48
|
+
}, options?: {
|
|
49
|
+
context?: TrackerErrorContext;
|
|
50
|
+
}): void;
|
|
51
|
+
trace<T>(input: {
|
|
52
|
+
name: string;
|
|
53
|
+
run: (span: TrackerSpan<RequestTrackingOutcome>) => T | Promise<T>;
|
|
54
|
+
}, options: RequestSpanOptions): Promise<T>;
|
|
55
|
+
trace<T>(input: {
|
|
56
|
+
name: string;
|
|
57
|
+
run: (span: TrackerSpan<AgentRunTrackingOutcome>) => T | Promise<T>;
|
|
58
|
+
}, options: AgentSpanOptions): Promise<T>;
|
|
59
|
+
trace<T>(input: {
|
|
60
|
+
name: string;
|
|
61
|
+
run: (span: TrackerSpan) => T | Promise<T>;
|
|
62
|
+
}, options?: OperationSpanOptions): Promise<T>;
|
|
63
|
+
/** Numeric measurement; defaults to a gauge. Fixed names and low-cardinality attributes only. */
|
|
64
|
+
metric(input: MetricInput, options?: MetricOptions): void;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=diagnostics-observability.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The outbox drainer handle and the per-event retry-policy seam a host supplies.
|
|
3
|
+
*
|
|
4
|
+
* Additive verbatim copy of the declarations in `@jini-ai/infra/events/outbox` (`drainer.ts`,
|
|
5
|
+
* `ports.ts`) with their structural closure; infra keeps its identical declarations and exports
|
|
6
|
+
* until the paired cutover. Distinct from `contracts/events`'s change-set outbox port: this is the
|
|
7
|
+
* generic event-envelope worker's vocabulary.
|
|
8
|
+
*/
|
|
9
|
+
/** The complete application envelope passes through unchanged; only name is read by the worker. */
|
|
10
|
+
export interface EventEnvelope {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
}
|
|
13
|
+
export interface OutboxDrainer {
|
|
14
|
+
/** Stops scheduling drains, then resolves once a drain already running has settled. Idempotent. */
|
|
15
|
+
stop(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retry policy for one event, chosen by the host per event name. Events with no policy keep the
|
|
19
|
+
* default six attempts and 15s..30min equal-jitter backoff. `error` is whatever failed the attempt
|
|
20
|
+
* (a publish failure, or a storage failure recording a delivery). A policy that throws, or returns an
|
|
21
|
+
* invalid cap or delay, is reported and the row falls back to the default policy (see worker.ts).
|
|
22
|
+
*/
|
|
23
|
+
export interface OutboxRetryPolicy {
|
|
24
|
+
/** Positive integer cap; a failed attempt at or past it is terminal. */
|
|
25
|
+
readonly maxAttempts: number;
|
|
26
|
+
/** Finite, nonnegative delay before the next attempt. */
|
|
27
|
+
backoffMs(required: {
|
|
28
|
+
attempts: number;
|
|
29
|
+
random: () => number;
|
|
30
|
+
error: unknown;
|
|
31
|
+
}): number;
|
|
32
|
+
/** `false` makes this failure terminal at once; absent means every failure is retryable. */
|
|
33
|
+
retryable?(required: {
|
|
34
|
+
error: unknown;
|
|
35
|
+
}): boolean;
|
|
36
|
+
/** The values this event's failures may store in `lastError`; absent means the class label only. */
|
|
37
|
+
readonly failureCodes?: OutboxFailureCodes;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A closed list of failure codes for one event. `lastError` is a persisted field a status view
|
|
41
|
+
* reads back, so the worker stores `codeOf(...)` only when the result is in `codes`: a code is
|
|
42
|
+
* approved by listing, never by shape, because a thrown value's own `code` is caller text and could
|
|
43
|
+
* be a secret. Anything else (no result, a result not on the list, a throw, which is reported) stores
|
|
44
|
+
* the class label, exactly as an event with no list does.
|
|
45
|
+
*/
|
|
46
|
+
export interface OutboxFailureCodes {
|
|
47
|
+
readonly codes: readonly string[];
|
|
48
|
+
codeOf(required: {
|
|
49
|
+
error: unknown;
|
|
50
|
+
}): string | undefined;
|
|
51
|
+
}
|
|
52
|
+
/** The only per-event retry seam: return a policy for events that need one, `undefined` otherwise. */
|
|
53
|
+
export type OutboxRetryPolicyResolver = (required: {
|
|
54
|
+
event: EventEnvelope;
|
|
55
|
+
}) => OutboxRetryPolicy | undefined;
|
|
56
|
+
//# sourceMappingURL=events-outbox.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The outbox drainer handle and the per-event retry-policy seam a host supplies.
|
|
3
|
+
*
|
|
4
|
+
* Additive verbatim copy of the declarations in `@jini-ai/infra/events/outbox` (`drainer.ts`,
|
|
5
|
+
* `ports.ts`) with their structural closure; infra keeps its identical declarations and exports
|
|
6
|
+
* until the paired cutover. Distinct from `contracts/events`'s change-set outbox port: this is the
|
|
7
|
+
* generic event-envelope worker's vocabulary.
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=events-outbox.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The public status and snapshot of a static-site export run. Types only.
|
|
3
|
+
*
|
|
4
|
+
* One neutral owner for the shape the export runner publishes and the admin Import & Export and
|
|
5
|
+
* Deployment screens read, so the two sides cannot drift. Runner-only state (the in-flight slot, the
|
|
6
|
+
* engine and clock ports) stays in `@jini-ai/devops/deploy/site/export-run`.
|
|
7
|
+
*/
|
|
8
|
+
export type ExportRunStatus = "idle" | "running" | "completed" | "errored";
|
|
9
|
+
export interface ExportRunCounts {
|
|
10
|
+
routesSucceeded: number;
|
|
11
|
+
routesFailed: number;
|
|
12
|
+
assetsSucceeded: number;
|
|
13
|
+
assetsFailed: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The full-fidelity, JSON-transportable status of the current/most recent export run. Narrower
|
|
17
|
+
* than the engine's full report on purpose: peak-memory bytes are never echoed back; only counts
|
|
18
|
+
* plus full failure detail, so no route or asset bytes ever cross this boundary.
|
|
19
|
+
*/
|
|
20
|
+
export interface ExportRunSnapshot {
|
|
21
|
+
status: ExportRunStatus;
|
|
22
|
+
startedAtIso: string | null;
|
|
23
|
+
finishedAtIso: string | null;
|
|
24
|
+
outputDir: string | null;
|
|
25
|
+
/** Present only once `status` is `"completed"`. */
|
|
26
|
+
basePath?: string;
|
|
27
|
+
/** Present only once `status` is `"completed"`. Failed routes or assets make the copy incomplete. */
|
|
28
|
+
ok?: boolean;
|
|
29
|
+
counts?: ExportRunCounts;
|
|
30
|
+
failedRoutes?: {
|
|
31
|
+
path: string;
|
|
32
|
+
kind: string;
|
|
33
|
+
reason: string;
|
|
34
|
+
}[];
|
|
35
|
+
failedAssets?: {
|
|
36
|
+
url: string;
|
|
37
|
+
reason: string;
|
|
38
|
+
}[];
|
|
39
|
+
skippedManifestEntries?: {
|
|
40
|
+
reason: string;
|
|
41
|
+
detail: string;
|
|
42
|
+
}[];
|
|
43
|
+
unreferencedThemeFiles?: string[];
|
|
44
|
+
droppedReferences?: {
|
|
45
|
+
page: string;
|
|
46
|
+
url: string;
|
|
47
|
+
attribute: string;
|
|
48
|
+
reason: "not-exported" | "needs-server";
|
|
49
|
+
}[];
|
|
50
|
+
basePathRewriteWarning?: string;
|
|
51
|
+
/** Present only when `status` is `"errored"` — always a message, never the raw error object. */
|
|
52
|
+
error?: string;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=export-run.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The public status and snapshot of a static-site export run. Types only.
|
|
3
|
+
*
|
|
4
|
+
* One neutral owner for the shape the export runner publishes and the admin Import & Export and
|
|
5
|
+
* Deployment screens read, so the two sides cannot drift. Runner-only state (the in-flight slot, the
|
|
6
|
+
* engine and clock ports) stays in `@jini-ai/devops/deploy/site/export-run`.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=export-run.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { OperatorLocaleDeps } from "../headless/plugin-host.js";
|
|
2
|
+
import type { Clock as ClockPort, UUID } from "../../primitives/index.js";
|
|
3
|
+
import type { AuthorizeFn } from "../events.js";
|
|
4
|
+
import type { KeyringPort, SecretSealerPort } from "../vault.js";
|
|
5
|
+
import type { ExternalMcpServerRepoPort } from "../hosted-mcp.js";
|
|
6
|
+
import type { ExternalMcpOAuthService } from "./api-connections-hosted-mcp.js";
|
|
7
|
+
export interface ExternalMcpToolDeps extends OperatorLocaleDeps {
|
|
8
|
+
/** The current connection's original listing only; null means this source has no verified cache. */
|
|
9
|
+
externalMcpKnownToolNames?: (required: {
|
|
10
|
+
serverId: string;
|
|
11
|
+
admissionRevision: string;
|
|
12
|
+
}) => readonly string[] | null;
|
|
13
|
+
/** Live saved-server probe: connect, list tools, close; never invoke a remote tool.
|
|
14
|
+
* Test connection refuses when absent. Configuration readiness must never implement this port. */
|
|
15
|
+
externalMcpProbe?: (required: {
|
|
16
|
+
serverId: string;
|
|
17
|
+
}) => Promise<{
|
|
18
|
+
ok: boolean;
|
|
19
|
+
body: Readonly<Record<string, unknown>>;
|
|
20
|
+
}>;
|
|
21
|
+
workspaceId: UUID;
|
|
22
|
+
authorize: AuthorizeFn;
|
|
23
|
+
clock: ClockPort;
|
|
24
|
+
externalMcpServerRepo: ExternalMcpServerRepoPort;
|
|
25
|
+
siteAssistantSecretSealer: SecretSealerPort;
|
|
26
|
+
siteAssistantSecretKeyring: KeyringPort;
|
|
27
|
+
externalMcpOAuth?: ExternalMcpOAuthService;
|
|
28
|
+
derivedPublicOrigin?: string;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=external-mcp-tool-ports.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Durable JSON file read-state, quarantine-notice and lock-option shapes. Types only; this
|
|
3
|
+
* module owns the declarations that `@jini-ai/platform/fs/durable-json` (`fs/durable-json.ts`) used
|
|
4
|
+
* to declare. That package imports them from here and keeps its runtime values.
|
|
5
|
+
*/
|
|
6
|
+
export type JsonFileRead = {
|
|
7
|
+
state: "ok";
|
|
8
|
+
value: unknown;
|
|
9
|
+
} | {
|
|
10
|
+
state: "missing";
|
|
11
|
+
} | {
|
|
12
|
+
state: "unreadable";
|
|
13
|
+
text?: string;
|
|
14
|
+
};
|
|
15
|
+
export interface QuarantineNotice {
|
|
16
|
+
label: string;
|
|
17
|
+
consequence: string;
|
|
18
|
+
}
|
|
19
|
+
export interface FileLockOptions {
|
|
20
|
+
waitMs?: number;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=fs-durable-json.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Durable JSON file read-state, quarantine-notice and lock-option shapes. Types only; this
|
|
3
|
+
* module owns the declarations that `@jini-ai/platform/fs/durable-json` (`fs/durable-json.ts`) used
|
|
4
|
+
* to declare. That package imports them from here and keeps its runtime values.
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=fs-durable-json.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file SPEC-016 C-004 / U-002-B1 — the dialect-neutral half of the site-wide gated-mutation write
|
|
3
|
+
* watermark: the transaction-boundary guard every concrete stamping adapter is built on.
|
|
4
|
+
*
|
|
5
|
+
* Purpose:
|
|
6
|
+
* `stampWatermark` only inspects `OpenTransactionHandle.isOpen` and invokes `increment()` — it
|
|
7
|
+
* never touches a schema, a table, or a SQL dialect, which is what lets it live in `core` without
|
|
8
|
+
* creating a dependency on `db`. The real stamp, read and boot-time mirror reconciliation run on the
|
|
9
|
+
* content kernel, every dialect (`platform/db/watermark-kernel.ts`: `kernelStampWatermark`,
|
|
10
|
+
* `readKernelWatermark`, `reconcileMirror`; SPEC-016 C-004/U-004/REQ-01/REQ-04/REQ-05/INV-01). Since
|
|
11
|
+
* R1h no production path adapts a transaction to this guard; it is kept with its unit test as the
|
|
12
|
+
* contract's reference shape.
|
|
13
|
+
*
|
|
14
|
+
* Architectural role:
|
|
15
|
+
* Core primitive shared by every gated-mutation domain (database, recovery, ...); no domain-specific
|
|
16
|
+
* or dialect-specific knowledge here.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Opaque transaction-boundary guard. Real callers pass the concrete SQLite/Postgres transaction
|
|
20
|
+
* object; `stampWatermark` only inspects `isOpen` and invokes `increment()`.
|
|
21
|
+
*/
|
|
22
|
+
export interface OpenTransactionHandle {
|
|
23
|
+
readonly isOpen: true;
|
|
24
|
+
/** Performs the actual +1 write against the open transaction and returns the new value. */
|
|
25
|
+
increment(): number;
|
|
26
|
+
}
|
|
27
|
+
/** Thrown when `stampWatermark` is called without an open transaction (U-002-B1). */
|
|
28
|
+
export declare class WatermarkTransactionRequiredError extends Error {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Advances the watermark by exactly 1 using the caller-supplied transaction handle. Throws
|
|
32
|
+
* `WatermarkTransactionRequiredError` rather than silently succeeding outside an open transaction
|
|
33
|
+
* (AC-02/U-002-B1) — a watermark stamp with no transaction backing it can never be atomic with the
|
|
34
|
+
* sibling mutation it is meant to certify.
|
|
35
|
+
*
|
|
36
|
+
* @complexity O(1).
|
|
37
|
+
* @overallScore 100
|
|
38
|
+
*/
|
|
39
|
+
export declare function stampWatermark(required: {
|
|
40
|
+
tx: OpenTransactionHandle | null;
|
|
41
|
+
}, _optional?: Record<string, never>): {
|
|
42
|
+
newValue: number;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=watermark.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file SPEC-016 C-004 / U-002-B1 — the dialect-neutral half of the site-wide gated-mutation write
|
|
3
|
+
* watermark: the transaction-boundary guard every concrete stamping adapter is built on.
|
|
4
|
+
*
|
|
5
|
+
* Purpose:
|
|
6
|
+
* `stampWatermark` only inspects `OpenTransactionHandle.isOpen` and invokes `increment()` — it
|
|
7
|
+
* never touches a schema, a table, or a SQL dialect, which is what lets it live in `core` without
|
|
8
|
+
* creating a dependency on `db`. The real stamp, read and boot-time mirror reconciliation run on the
|
|
9
|
+
* content kernel, every dialect (`platform/db/watermark-kernel.ts`: `kernelStampWatermark`,
|
|
10
|
+
* `readKernelWatermark`, `reconcileMirror`; SPEC-016 C-004/U-004/REQ-01/REQ-04/REQ-05/INV-01). Since
|
|
11
|
+
* R1h no production path adapts a transaction to this guard; it is kept with its unit test as the
|
|
12
|
+
* contract's reference shape.
|
|
13
|
+
*
|
|
14
|
+
* Architectural role:
|
|
15
|
+
* Core primitive shared by every gated-mutation domain (database, recovery, ...); no domain-specific
|
|
16
|
+
* or dialect-specific knowledge here.
|
|
17
|
+
*/
|
|
18
|
+
/** Thrown when `stampWatermark` is called without an open transaction (U-002-B1). */
|
|
19
|
+
export class WatermarkTransactionRequiredError extends Error {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Advances the watermark by exactly 1 using the caller-supplied transaction handle. Throws
|
|
23
|
+
* `WatermarkTransactionRequiredError` rather than silently succeeding outside an open transaction
|
|
24
|
+
* (AC-02/U-002-B1) — a watermark stamp with no transaction backing it can never be atomic with the
|
|
25
|
+
* sibling mutation it is meant to certify.
|
|
26
|
+
*
|
|
27
|
+
* @complexity O(1).
|
|
28
|
+
* @overallScore 100
|
|
29
|
+
*/
|
|
30
|
+
export function stampWatermark(required, _optional = {}) {
|
|
31
|
+
const { tx } = required;
|
|
32
|
+
if (!tx || !tx.isOpen) {
|
|
33
|
+
throw new WatermarkTransactionRequiredError("stampWatermark must be called with an open transaction handle");
|
|
34
|
+
}
|
|
35
|
+
return { newValue: tx.increment() };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=watermark.js.map
|