@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,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The dialect-neutral restore-point contract a host's gated-mutation flow captures before a
|
|
3
|
+
* destructive change. Types only: the host keeps the per-dialect adapters and the watermark mirror.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A site's restore-point mechanism, evaluated per dialect (SQLite: always cheap file-snapshot;
|
|
7
|
+
* Postgres: dump/blue-green tooling, or an externally-managed PITR system, or nothing at all).
|
|
8
|
+
*/
|
|
9
|
+
export interface RestoreCapability {
|
|
10
|
+
costClass: "cheap" | "expensive" | "unavailable";
|
|
11
|
+
kind: "file-snapshot" | "logical-dump" | "external";
|
|
12
|
+
}
|
|
13
|
+
/** Dialect-neutral restore-point capability surface (SPEC-016 C-007). */
|
|
14
|
+
export interface DbOpsPort {
|
|
15
|
+
/** Pure, side-effect-free static check of what this site's restore mechanism can do. */
|
|
16
|
+
getCapabilities(): Promise<{
|
|
17
|
+
restorePoint: RestoreCapability;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Captures a real restore-point artifact, stamped with the watermark value at capture time.
|
|
21
|
+
* `directory` writes the artifact there instead of the adapter's default (beside the live
|
|
22
|
+
* database): a site export passes a private temp folder so it never writes into source-site storage.
|
|
23
|
+
*/
|
|
24
|
+
captureRestorePoint(required: {
|
|
25
|
+
scopeId: string;
|
|
26
|
+
}, optional?: {
|
|
27
|
+
directory?: string;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
artifactRef: string;
|
|
30
|
+
watermarkAtCapture: number;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Physically restores the live database from a previously-captured artifact (ADR-045 §3
|
|
34
|
+
* restore ceremony, closing the "ledger-only" disclosed gap). A real (SQLite) adapter performs
|
|
35
|
+
* an atomic file swap and reports `restartRequired: true` — the running process keeps its own
|
|
36
|
+
* open file handle to the now-unlinked old data until it restarts and reopens the path fresh.
|
|
37
|
+
* A test/dev double with no real file to restore into reports `restartRequired: false`.
|
|
38
|
+
*/
|
|
39
|
+
restoreFromArtifact(required: {
|
|
40
|
+
artifactRef: string;
|
|
41
|
+
}): Promise<{
|
|
42
|
+
restartRequired: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=gated-mutations-ports.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The dialect-neutral restore-point contract a host's gated-mutation flow captures before a
|
|
3
|
+
* destructive change. Types only: the host keeps the per-dialect adapters and the watermark mirror.
|
|
4
|
+
*/
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=gated-mutations-ports.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The wire envelopes shared by every 3-endpoint gated-mutation ceremony (taxonomy merge-term,
|
|
3
|
+
* database migrate-forward, recovery restore, ...). Each mirrors the gated-mutations gateway's own
|
|
4
|
+
* `plan`/`confirm`/`execute` shape; `GatedPlanResult`/`GatedConfirmResult` are the shared envelope,
|
|
5
|
+
* `TDetails` varies per ceremony. Types only — no runtime.
|
|
6
|
+
*/
|
|
7
|
+
/** What a ceremony's `plan` endpoint returns: the plan's id and hash plus its per-ceremony details. */
|
|
8
|
+
export interface GatedPlanResult<TDetails = unknown> {
|
|
9
|
+
planId: string;
|
|
10
|
+
planHash: string;
|
|
11
|
+
details: TDetails;
|
|
12
|
+
}
|
|
13
|
+
/** What a ceremony's `confirm` endpoint returns: the token its `execute` endpoint requires. */
|
|
14
|
+
export interface GatedConfirmResult {
|
|
15
|
+
confirmationToken: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=gated-results.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The wire envelopes shared by every 3-endpoint gated-mutation ceremony (taxonomy merge-term,
|
|
3
|
+
* database migrate-forward, recovery restore, ...). Each mirrors the gated-mutations gateway's own
|
|
4
|
+
* `plan`/`confirm`/`execute` shape; `GatedPlanResult`/`GatedConfirmResult` are the shared envelope,
|
|
5
|
+
* `TDetails` varies per ceremony. Types only — no runtime.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=gated-results.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The owner's per-site grant for permanent deletes through the admin assistant chat: which
|
|
3
|
+
* permanent-delete tool ids exist and the stored policy shape. The tool table (labels, groups, admin
|
|
4
|
+
* destinations), the settings key and the guidance text are host-owned values; only the types live
|
|
5
|
+
* here so server, UI and tests share them without importing the host's contract module.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Every tool id a chat permanent-delete grant can name. The host's tool table (labels, groups, admin
|
|
9
|
+
* destinations) checks each of its ids against this union with `satisfies`; keep the two in step.
|
|
10
|
+
*/
|
|
11
|
+
export type ChatPermanentDeleteToolId = "trash_empty" | "trash_purge_item" | "media_purge_asset" | "comments_purge_comment" | "identity_user_delete" | "deployment_ops_unset_secret" | "external_mcp_delete" | "custom_credential_delete" | "deployment_delete_provider_credential" | "source_control_delete_credential" | "webhooks_delete_subscription" | "identity_role_delete" | "identity_policy_delete";
|
|
12
|
+
export interface AssistantPermanentDeletesPolicy {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
allowedToolIds: string[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=headless-assistant-permanent-deletes-policy.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The owner's per-site grant for permanent deletes through the admin assistant chat: which
|
|
3
|
+
* permanent-delete tool ids exist and the stored policy shape. The tool table (labels, groups, admin
|
|
4
|
+
* destinations), the settings key and the guidance text are host-owned values; only the types live
|
|
5
|
+
* here so server, UI and tests share them without importing the host's contract module.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=headless-assistant-permanent-deletes-policy.js.map
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The admin Sites screen's wire shapes and the port its hooks read sites through.
|
|
3
|
+
* Types only: the host keeps the HTTP client, the route handlers and the rules; these shapes carry
|
|
4
|
+
* no host names.
|
|
5
|
+
*/
|
|
6
|
+
/** One row of the admin Sites screen — mirrors `SiteListEntry` in
|
|
7
|
+
* the host's site registry. Only directories carrying a valid
|
|
8
|
+
* `.site-meta.json` commit marker appear; see {@link AdminSiteBinding.listed} for why that matters. */
|
|
9
|
+
export interface AdminSiteListEntry {
|
|
10
|
+
/** Folder name under `sites/` — the id every write in this feature takes. */
|
|
11
|
+
name: string;
|
|
12
|
+
dir: string;
|
|
13
|
+
/** `config.json.name`; may differ from the folder name. */
|
|
14
|
+
displayName: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
/** True when this row is the site the SERVER PROCESS is bound to right now — never a pending
|
|
17
|
+
* choice. A newly-activated site stays `false` here until the operator restarts. */
|
|
18
|
+
active: boolean;
|
|
19
|
+
running?: {
|
|
20
|
+
pid: number;
|
|
21
|
+
port: number;
|
|
22
|
+
app: string;
|
|
23
|
+
scheme: "http" | "https";
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** What the running server is actually serving — mirrors `SiteBinding` in the host's site registry, plus
|
|
27
|
+
* the route's own `listed`. Kept separate from the list because they can disagree, which is the
|
|
28
|
+
* whole reason this field exists. */
|
|
29
|
+
export interface AdminSiteBinding {
|
|
30
|
+
dir: string;
|
|
31
|
+
name: string;
|
|
32
|
+
/** The host's site-directory override is set, which OUTRANKS the site selection Activate writes — so an activate
|
|
33
|
+
* would be ignored on the next boot. The screen must say so rather than offer a dead button. */
|
|
34
|
+
dirOverridden: boolean;
|
|
35
|
+
/** Whether `dir` appears in `sites[]` at all. `false` for a site created before the
|
|
36
|
+
* `.site-meta.json` marker existed (this repo's own dev site folder), which is how the list can
|
|
37
|
+
* come back EMPTY on a server that is plainly serving something. */
|
|
38
|
+
listed: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Mirrors the `GET .../system/sites` response in
|
|
41
|
+
* the host's sites route. */
|
|
42
|
+
export interface AdminLocalSiteState {
|
|
43
|
+
name: string;
|
|
44
|
+
status: "starting" | "running" | "stopped" | "crashed";
|
|
45
|
+
pid: number | null;
|
|
46
|
+
port: number | null;
|
|
47
|
+
daemonPort: number | null;
|
|
48
|
+
adminUrl: string | null;
|
|
49
|
+
app?: string;
|
|
50
|
+
external?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface AdminTrashedSite {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
displayName: string;
|
|
56
|
+
}
|
|
57
|
+
export type AdminLocalSiteAction = "start" | "stop" | "stop-serving" | "trash" | "restore" | "delete" | "switch";
|
|
58
|
+
export interface AdminSitesSnapshot {
|
|
59
|
+
sitesHome?: string;
|
|
60
|
+
localManagementEnabled?: boolean;
|
|
61
|
+
canSwitchNow?: boolean;
|
|
62
|
+
/** Stopping the serving site hands its address to `target`, the most recently started site still
|
|
63
|
+
* running; `null` means nothing can take over. `available` is false on a host that cannot restart. */
|
|
64
|
+
stopServing?: {
|
|
65
|
+
available: boolean;
|
|
66
|
+
target: string | null;
|
|
67
|
+
chatRunning: boolean;
|
|
68
|
+
};
|
|
69
|
+
localSites?: AdminLocalSiteState[];
|
|
70
|
+
trash?: AdminTrashedSite[];
|
|
71
|
+
/** The deployment capability flag (a host environment switch) — Create/Activate 403 when off. */
|
|
72
|
+
switchingEnabled: boolean;
|
|
73
|
+
sites: AdminSiteListEntry[];
|
|
74
|
+
/** Card preview version tokens (`{ [site name]: capture mtime }`), only for sites with a capture.
|
|
75
|
+
* Absent from an older server; see the host's preview-URL helper. */
|
|
76
|
+
previewVersions?: Record<string, number>;
|
|
77
|
+
currentSite: AdminSiteBinding;
|
|
78
|
+
/** The site name a previous Activate persisted to `.env`, pending a restart — `null` when none. */
|
|
79
|
+
persistedSiteName: string | null;
|
|
80
|
+
/** The admin password a new site gets when the create form's password is left blank. Sent only
|
|
81
|
+
* when switching is enabled; absent from an older server. Never written in this bundle. */
|
|
82
|
+
starterAdminPassword?: string;
|
|
83
|
+
}
|
|
84
|
+
/** The `201` body of `POST .../system/sites`. */
|
|
85
|
+
export interface AdminCreatedSite {
|
|
86
|
+
name: string;
|
|
87
|
+
dir: string;
|
|
88
|
+
siteId: string;
|
|
89
|
+
}
|
|
90
|
+
/** What happened to the create request's `agentPluginTokens`: `saved` = sealed into the new site,
|
|
91
|
+
* connected on its first start; `failed` = the site exists but the tokens were not kept. */
|
|
92
|
+
export interface AdminCreatedSiteAgentPluginTokens {
|
|
93
|
+
status: "none" | "saved" | "failed";
|
|
94
|
+
pluginIds: string[];
|
|
95
|
+
}
|
|
96
|
+
/** One installed Agent Plugin the create form can connect with a pasted access token
|
|
97
|
+
* (`GET .../system/sites/token-sign-in-plugins`). */
|
|
98
|
+
export interface AdminTokenSignInPlugin {
|
|
99
|
+
pluginId: string;
|
|
100
|
+
displayName: string;
|
|
101
|
+
/** The plugin's own page for creating a token. */
|
|
102
|
+
helpUrl: string;
|
|
103
|
+
}
|
|
104
|
+
/** The `200` body of `POST .../system/sites/:name/activate`. Nothing was killed, signalled, or
|
|
105
|
+
* re-exec'd — `restartInstructions` is the server's own prose for what the human must now do, and
|
|
106
|
+
* the screen renders it verbatim rather than hardcoding a second copy. */
|
|
107
|
+
export interface AdminSiteActivation {
|
|
108
|
+
ok: boolean;
|
|
109
|
+
/** Warm switch destination; navigate to this site's own origin. */
|
|
110
|
+
url?: string;
|
|
111
|
+
restarting?: boolean;
|
|
112
|
+
activeSiteName: string;
|
|
113
|
+
restartRequired: boolean;
|
|
114
|
+
restartInstructions: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* What the Sites screen hooks need from the outside world, as an interface rather than a direct
|
|
118
|
+
* API import. One port for all three routes rather than one per operation: they read and write the
|
|
119
|
+
* same `sites/` resource, and a test double for one is a double for the resource.
|
|
120
|
+
*
|
|
121
|
+
* `siteRowState`/`activationOutlook`/`siteNameErrorKey` (`rules.ts`) are deliberately NOT here —
|
|
122
|
+
* they are pure rules with no I/O, and per the pattern a hook imports rules directly rather than
|
|
123
|
+
* having them injected.
|
|
124
|
+
*/
|
|
125
|
+
export interface SitesPort {
|
|
126
|
+
openSite?(required: {
|
|
127
|
+
url: string;
|
|
128
|
+
}, optional?: Record<string, never>): void;
|
|
129
|
+
manageLocalSite?(input: {
|
|
130
|
+
name: string;
|
|
131
|
+
action: AdminLocalSiteAction;
|
|
132
|
+
confirmed?: boolean;
|
|
133
|
+
checked?: boolean;
|
|
134
|
+
}, optional?: Record<string, never>): Promise<unknown>;
|
|
135
|
+
listSites(): Promise<AdminSitesSnapshot>;
|
|
136
|
+
createSite(input: {
|
|
137
|
+
name: string;
|
|
138
|
+
adminPassword?: string;
|
|
139
|
+
agentPluginTokens?: Record<string, string>;
|
|
140
|
+
}, optional?: Record<string, never>): Promise<{
|
|
141
|
+
site: AdminCreatedSite;
|
|
142
|
+
agentPluginTokens?: AdminCreatedSiteAgentPluginTokens;
|
|
143
|
+
}>;
|
|
144
|
+
listTokenSignInPlugins(): Promise<{
|
|
145
|
+
plugins: AdminTokenSignInPlugin[];
|
|
146
|
+
}>;
|
|
147
|
+
activateSite(required: {
|
|
148
|
+
name: string;
|
|
149
|
+
}, optional?: Record<string, never>): Promise<AdminSiteActivation>;
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=hooks-sites-port-hooks.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The admin Sites screen's wire shapes and the port its hooks read sites through.
|
|
3
|
+
* Types only: the host keeps the HTTP client, the route handlers and the rules; these shapes carry
|
|
4
|
+
* no host names.
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=hooks-sites-port-hooks.js.map
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The plugin host's discovery record, package-file listing and installer port, with the
|
|
3
|
+
* manifest shapes they carry, as types only.
|
|
4
|
+
*
|
|
5
|
+
* An additive copy of the declarations in `@jini-ai/plugins/host/node` (`discovery-types.ts`,
|
|
6
|
+
* `manifest-types.ts`, `plugin-claims.ts`, `node/package-files.ts`, `node/install.ts`) and of
|
|
7
|
+
* `PluginIdentityExtension` from `@jini-ai/core/plugin-directory`; those modules keep their
|
|
8
|
+
* identical declarations, values and exports until the paired cutover.
|
|
9
|
+
*/
|
|
10
|
+
import type { PluginProviderDeclaration } from '../plugin-sdk.js';
|
|
11
|
+
import type { PluginConflict } from "./plugins-host.js";
|
|
12
|
+
/** Identical identity metadata for portable agent packages and host site plugins. */
|
|
13
|
+
export interface PluginIdentityExtension {
|
|
14
|
+
readonly id?: string;
|
|
15
|
+
readonly provides?: readonly string[];
|
|
16
|
+
readonly [key: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface BrowserProviderDeclaration {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly kind: 'chart';
|
|
21
|
+
readonly contractVersion: 1;
|
|
22
|
+
readonly kinds: readonly string[];
|
|
23
|
+
readonly javascript: string;
|
|
24
|
+
readonly stylesheet?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Trust-tier vocabulary. Literal encoding reused verbatim from the
|
|
27
|
+
* existing, approved data-module precedent (`DataModuleDecl.pluginTier`). */
|
|
28
|
+
export type PluginTier = "tier-1" | "tier-2" | "tier-3";
|
|
29
|
+
/** REQ-06 field declaration — `ext.{pluginId}.{field}` (BR-06). `queryable` MUST be `false` in
|
|
30
|
+
* v1 (EC-04); a `true` value is a validation error (`QUERYABLE_UNSUPPORTED_V1`), not silently
|
|
31
|
+
* coerced. */
|
|
32
|
+
export interface PluginManifestFieldDecl {
|
|
33
|
+
readonly path: string;
|
|
34
|
+
readonly type: "string" | "integer" | "number" | "boolean";
|
|
35
|
+
readonly queryable: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Optional, human-readable, action-oriented description of what this field represents and how an
|
|
38
|
+
* agent should use it (2026-08-26 addition — `features/plugin-runtime/capability-tool-registrations.ts`
|
|
39
|
+
* is the sole consumer: it is folded into the indexed `search_tools` description for this plugin's
|
|
40
|
+
* capability-read tool when the plugin is enabled). Absent on every pre-existing manifest — this
|
|
41
|
+
* is additive, not a widened requirement, so no previously-valid manifest becomes invalid by
|
|
42
|
+
* omitting it; a plugin author who wants their capability to rank well against a real user query
|
|
43
|
+
* simply adds one.
|
|
44
|
+
*/
|
|
45
|
+
readonly description?: string;
|
|
46
|
+
}
|
|
47
|
+
/** `jini.plugin.json` — the ecosystem compatibility surface. */
|
|
48
|
+
export interface PluginManifest {
|
|
49
|
+
/** Storage/activation key. Publisher identity lives in extensions[identityNamespace].id. */
|
|
50
|
+
readonly id: string;
|
|
51
|
+
readonly keywords?: readonly string[];
|
|
52
|
+
readonly extensions?: Readonly<Record<string, PluginIdentityExtension>>;
|
|
53
|
+
readonly name: string;
|
|
54
|
+
readonly version: string;
|
|
55
|
+
readonly sdkRange: string;
|
|
56
|
+
readonly engine: number;
|
|
57
|
+
readonly tier: PluginTier;
|
|
58
|
+
readonly capabilities: readonly string[];
|
|
59
|
+
readonly hooks: readonly string[];
|
|
60
|
+
readonly fields: readonly PluginManifestFieldDecl[];
|
|
61
|
+
readonly integrity: Readonly<Record<string, string>>;
|
|
62
|
+
/** Parsed-and-stored, UNUSED in v1 (forward-compat, no behavior — state.spec.md §2). */
|
|
63
|
+
readonly adminSurfaces?: readonly unknown[] | null;
|
|
64
|
+
/** Reviewed bundled chart assets only; host admission supplies trust outside this manifest. */
|
|
65
|
+
readonly browserProviders?: readonly BrowserProviderDeclaration[];
|
|
66
|
+
/** Content types the plugin declares (AW-7 Tier 1, 2026-10-04) — no longer unused: validated by
|
|
67
|
+
* `declarative-content-types.ts`, claimed by key (`plugin-claims.ts`), created at enable. */
|
|
68
|
+
readonly contentTypes?: readonly unknown[] | null;
|
|
69
|
+
readonly provenance?: {
|
|
70
|
+
readonly sourceUrl?: string;
|
|
71
|
+
readonly signature?: string;
|
|
72
|
+
} | null;
|
|
73
|
+
readonly dependencies?: Readonly<Record<string, string>> | null;
|
|
74
|
+
/**
|
|
75
|
+
* What this plugin says it provides, by name (2026-10-04, conflict detection — see
|
|
76
|
+
* `plugin-claims.ts` and `ADS-memory/specs/005-plugin-system/conflicts.spec.md`). Optional and
|
|
77
|
+
* additive: a manifest without it claims only what its other fields already imply (its hooks and,
|
|
78
|
+
* when it declares `fields`, its generated capability tool). Each entry is a CLAIM: two enabled
|
|
79
|
+
* plugins, or a plugin and core, naming the same thing is refused at enable time and quarantined
|
|
80
|
+
* at boot rather than silently letting one overwrite the other. Declaring a surface the runtime
|
|
81
|
+
* does not mount yet (settings, widgets, routes — `adminSurfaces` are still unwired) is
|
|
82
|
+
* still binding for conflicts, so a plugin cannot squat a name today that a future mount would
|
|
83
|
+
* then have to arbitrate.
|
|
84
|
+
*/
|
|
85
|
+
readonly contributes?: PluginContributions | null;
|
|
86
|
+
}
|
|
87
|
+
/** `jini.plugin.json`'s `contributes` block — optional named surfaces and provider declarations. */
|
|
88
|
+
export interface PluginContributions {
|
|
89
|
+
/** Server provider factories; identity is exclusive within one contract. */
|
|
90
|
+
readonly providers?: readonly PluginProviderDeclaration[];
|
|
91
|
+
/** `"METHOD /path"` or `"/path"` (every method). Parameter names do not distinguish routes. */
|
|
92
|
+
readonly routes?: readonly string[];
|
|
93
|
+
/** Agent tool ids. The generated prefixes `plugin_capability_`/`agent_plugin_` are reserved. */
|
|
94
|
+
readonly tools?: readonly string[];
|
|
95
|
+
/** Data-module tables — must sit in this plugin's own `p_{id}__` namespace. */
|
|
96
|
+
readonly tables?: readonly string[];
|
|
97
|
+
readonly settings?: readonly string[];
|
|
98
|
+
readonly widgets?: readonly string[];
|
|
99
|
+
/** Permission ids this plugin DEFINES (not ones it merely requires). */
|
|
100
|
+
readonly permissions?: readonly string[];
|
|
101
|
+
}
|
|
102
|
+
/** One validation-vocabulary entry (errors.spec.md §3). `file` names the offending packaged file
|
|
103
|
+
* when applicable; `null` for manifest-level errors with no single implicated file. This is the
|
|
104
|
+
* shared shape used verbatim by both `PLUGINS_LIST.plugins[].errors[]` and
|
|
105
|
+
* `PLUGIN_INVALID.details.errors[]` (errors.spec.md §4 — "one validator, two surfaces"). */
|
|
106
|
+
export interface PluginValidationError {
|
|
107
|
+
readonly code: string;
|
|
108
|
+
readonly file: string | null;
|
|
109
|
+
readonly message: string;
|
|
110
|
+
}
|
|
111
|
+
/** In-memory, rebuilt each discovery pass — NOT persisted (state.spec.md §2). Feeds `PLUGINS_LIST`
|
|
112
|
+
* once activation state is projected onto it by the caller (the HTTP route layer, C-016/C-017 —
|
|
113
|
+
* discovery itself does not know about `plugin_activations`). */
|
|
114
|
+
export interface PluginDiscoveryRecord {
|
|
115
|
+
readonly warnings?: readonly string[];
|
|
116
|
+
readonly id: string;
|
|
117
|
+
readonly name: string;
|
|
118
|
+
readonly version: string;
|
|
119
|
+
readonly source: "built-in" | "site";
|
|
120
|
+
/** (1.1.2, REQ-10/REQ-18) The plugin's trust tier, projected verbatim from the already-required
|
|
121
|
+
* `PluginManifest.tier` — mirrors how `source` already passes through
|
|
122
|
+
* unchanged. Optional on this stub type only so pre-existing fixtures in unrelated test files
|
|
123
|
+
* (`activation.integration.test.ts`, `loader.integration.test.ts`) that construct
|
|
124
|
+
* `PluginDiscoveryRecord` literals for concerns unrelated to REQ-10/`PLUGINS_LIST` are not forced
|
|
125
|
+
* to retrofit it; the real `discoverPlugins()` implementation must always populate it (a
|
|
126
|
+
* discovered plugin's manifest always has a validated `tier` by the time a record exists),
|
|
127
|
+
* enforced behaviorally by the dedicated REQ-10 pass-through tests in `plugins-dto.unit.test.ts`
|
|
128
|
+
* / `plugins-http.integration.test.ts`, not by widening this field to non-optional everywhere. */
|
|
129
|
+
readonly tier?: "tier-1" | "tier-2" | "tier-3";
|
|
130
|
+
readonly status: "valid" | "invalid" | "incompatible";
|
|
131
|
+
readonly errors: readonly PluginValidationError[];
|
|
132
|
+
/**
|
|
133
|
+
* (Milestone 1b, 2026-08-20) The already-parsed, already-`validateManifest()`-checked manifest
|
|
134
|
+
* this record was built from — present after manifest validation (`undefined` otherwise:
|
|
135
|
+
* an invalid/incompatible candidate's raw JSON may not conform to `PluginManifest`'s shape at
|
|
136
|
+
* all, so this field never claims a validated type for a manifest that failed validation).
|
|
137
|
+
* A later whole-set publisher collision omits the losing manifest and marks its record invalid.
|
|
138
|
+
* The incumbent keeps its reservation; the rejected claim must not reappear in host lookup.
|
|
139
|
+
*
|
|
140
|
+
* Exists so a composition root's enable path (`packages/plugins/src/host/node/runtime-core.ts`'s `onPluginEnabled()`)
|
|
141
|
+
* can hand `loadPlugin()` the SAME manifest object this discovery pass already parsed, instead of
|
|
142
|
+
* re-reading `jini.plugin.json` a second time. This matters beyond avoiding duplicate I/O: every
|
|
143
|
+
* real caller of `onPluginEnabled` (`activation.ts`'s `setPluginEnabled`, BR-05 step 1) already
|
|
144
|
+
* calls `discoverPlugins()` fresh, in the SAME request, immediately before invoking it (see
|
|
145
|
+
* a host module) — so reusing that record's manifest is not a staleness
|
|
146
|
+
* risk, it is the one-and-only read for this attempt. A second, independent load-time re-read
|
|
147
|
+
* would instead open a narrow TOCTOU window: an attacker who can write to `installDir` between
|
|
148
|
+
* the discovery read and a second load-time read could swap in a self-consistent tampered
|
|
149
|
+
* manifest+entry pair that the discovery pass never actually validated. Reusing this field closes
|
|
150
|
+
* that window by construction — there is only one read to race against, not two.
|
|
151
|
+
*
|
|
152
|
+
* Built-in records also carry it (trivially, from `BuiltInPluginSource.manifest`) for type
|
|
153
|
+
* uniformity, but `onPluginEnabled`'s built-in branch does not need it — it already has the
|
|
154
|
+
* composition root's own static `PluginRuntimeSource.manifest`, unchanged from before this slice.
|
|
155
|
+
*/
|
|
156
|
+
readonly manifest?: PluginManifest | undefined;
|
|
157
|
+
}
|
|
158
|
+
export type PluginPackageFileOmission = "binary" | "too-large" | "symlink" | "unreadable";
|
|
159
|
+
export interface PluginPackageFile {
|
|
160
|
+
/** `/`-separated, relative to the plugin's own directory. */
|
|
161
|
+
readonly relativePath: string;
|
|
162
|
+
/** Bytes on disk; `0` for a symlink or a file that could not be opened. */
|
|
163
|
+
readonly sizeBytes: number;
|
|
164
|
+
/** The file's UTF-8 text — `null` exactly when `omitted` is set. */
|
|
165
|
+
readonly content: string | null;
|
|
166
|
+
readonly omitted: PluginPackageFileOmission | null;
|
|
167
|
+
}
|
|
168
|
+
export interface PluginPackageFiles {
|
|
169
|
+
readonly files: readonly PluginPackageFile[];
|
|
170
|
+
/** A file-count, entry, or total-byte cap stopped the walk before every file was listed. */
|
|
171
|
+
readonly truncated: boolean;
|
|
172
|
+
}
|
|
173
|
+
export interface PluginInstallPreview {
|
|
174
|
+
readonly warnings?: readonly string[];
|
|
175
|
+
readonly publisherId?: string;
|
|
176
|
+
readonly provides?: readonly string[];
|
|
177
|
+
readonly keywords?: readonly string[];
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
version: string;
|
|
181
|
+
tier: PluginTier;
|
|
182
|
+
capabilities: readonly string[];
|
|
183
|
+
hooks: readonly string[];
|
|
184
|
+
/** `false` only for a tier-1 (manifest-only) package — the runtime never imports anything for it. */
|
|
185
|
+
hasCode: boolean;
|
|
186
|
+
digest: string;
|
|
187
|
+
upgradeFrom?: string;
|
|
188
|
+
/** Content-type keys the manifest declares (AW-7 Tier 1); created when the plugin is turned on. */
|
|
189
|
+
contentTypes: readonly string[];
|
|
190
|
+
/** What turning it on would clash with — see {@link PluginInstallDeps.conflicts}. Informational
|
|
191
|
+
* only: not part of the consent digest, and enable re-checks (the enable-time conflict gate). */
|
|
192
|
+
conflicts: readonly PluginConflict[];
|
|
193
|
+
}
|
|
194
|
+
export type PluginInstallInput = ({
|
|
195
|
+
sourceDir: string;
|
|
196
|
+
archive?: never;
|
|
197
|
+
} | {
|
|
198
|
+
archive: Uint8Array;
|
|
199
|
+
sourceDir?: never;
|
|
200
|
+
}) & {
|
|
201
|
+
replace?: boolean;
|
|
202
|
+
};
|
|
203
|
+
export interface PluginInstallerPort {
|
|
204
|
+
preview(required: PluginInstallInput, optional?: PluginInstallOptions): Promise<PluginInstallPreview>;
|
|
205
|
+
install(required: PluginInstallInput & {
|
|
206
|
+
expectedDigest: string;
|
|
207
|
+
}, optional?: PluginInstallOptions): Promise<PluginInstallPreview>;
|
|
208
|
+
}
|
|
209
|
+
/** Not a model input: the source authoring service opts into immutable version publication. */
|
|
210
|
+
export interface PluginInstallOptions {
|
|
211
|
+
readonly versionAppend?: boolean;
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=host-node.d.ts.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/** One tagged region located in a document, as reported by the injected parser. */
|
|
2
|
+
export interface ParsedRegion {
|
|
3
|
+
/** The `data-agent-element` value. */
|
|
4
|
+
readonly handle: string;
|
|
5
|
+
/** The `data-agent-role` value, if the markup carries one. */
|
|
6
|
+
readonly role?: string;
|
|
7
|
+
/** The `data-agent-label` value, if present. Page-authored and therefore untrusted for display. */
|
|
8
|
+
readonly label?: string;
|
|
9
|
+
/** Index of the first character of the region's INNER content. */
|
|
10
|
+
readonly innerStart: number;
|
|
11
|
+
/** Index one past the last character of the region's inner content. */
|
|
12
|
+
readonly innerEnd: number;
|
|
13
|
+
}
|
|
14
|
+
/** A discovered handle, including unsafe regions so reads never silently lose an address. */
|
|
15
|
+
export interface ScannedRegion extends ParsedRegion {
|
|
16
|
+
readonly tag: string;
|
|
17
|
+
/** Outer offsets; -1 means parse5 could not locate the boundary. Never splice a problem region. */
|
|
18
|
+
readonly start: number;
|
|
19
|
+
readonly end: number;
|
|
20
|
+
/** Why this region cannot safely be replaced or moved. */
|
|
21
|
+
readonly problem?: string;
|
|
22
|
+
}
|
|
23
|
+
/** A direct fragment child, used for host tagging advice; implicit closes are allowed here. */
|
|
24
|
+
export interface HtmlTopLevelElement {
|
|
25
|
+
readonly tag: string;
|
|
26
|
+
readonly handle?: string;
|
|
27
|
+
readonly start: number;
|
|
28
|
+
readonly end: number;
|
|
29
|
+
readonly innerStart: number;
|
|
30
|
+
readonly innerEnd: number;
|
|
31
|
+
}
|
|
32
|
+
/** Reusable analysis of exactly one source string. Parse errors are diagnostics, not read failures. */
|
|
33
|
+
export interface HtmlRegionScan {
|
|
34
|
+
readonly regions: readonly ScannedRegion[];
|
|
35
|
+
readonly topLevel: readonly HtmlTopLevelElement[];
|
|
36
|
+
/** A raw-source handle could not be accounted for in the recovered tree. */
|
|
37
|
+
readonly documentProblem?: string;
|
|
38
|
+
readonly parseErrorReasons?: readonly string[];
|
|
39
|
+
}
|
|
40
|
+
/** Why lookup could not identify a single safe span. Legacy handle values are deliberately retained. */
|
|
41
|
+
export type RegionLookupProblem = {
|
|
42
|
+
readonly kind: "absent";
|
|
43
|
+
readonly available: readonly string[];
|
|
44
|
+
} | {
|
|
45
|
+
readonly kind: "ambiguous";
|
|
46
|
+
readonly count: number;
|
|
47
|
+
} | {
|
|
48
|
+
readonly kind: "not-replaceable";
|
|
49
|
+
readonly tag: string;
|
|
50
|
+
};
|
|
51
|
+
export type RegionLookup = {
|
|
52
|
+
readonly region: ScannedRegion;
|
|
53
|
+
} | {
|
|
54
|
+
readonly problem: RegionLookupProblem;
|
|
55
|
+
};
|
|
56
|
+
export type RegionMoveProblem = "self" | "into-itself";
|
|
57
|
+
/** Host-owned slug policy keeps suggestions compatible without adding a slugifier dependency. */
|
|
58
|
+
export interface RegionHandleOptions {
|
|
59
|
+
readonly slugify: (text: string) => string;
|
|
60
|
+
}
|
|
61
|
+
/** A top-level element needing a handle, with a suggestion only when its own heading provides one. */
|
|
62
|
+
export interface UntaggedSection {
|
|
63
|
+
readonly tag: string;
|
|
64
|
+
readonly suggestedHandle: string | undefined;
|
|
65
|
+
}
|
|
66
|
+
export interface PageHtmlRegionPorts {
|
|
67
|
+
scanHtmlRegions(required: {
|
|
68
|
+
readonly html: string;
|
|
69
|
+
}, optional?: Record<string, never>): HtmlRegionScan & {
|
|
70
|
+
readonly parseErrorReasons: readonly string[];
|
|
71
|
+
};
|
|
72
|
+
handlesMadeAmbiguous(required: {
|
|
73
|
+
readonly before: HtmlRegionScan;
|
|
74
|
+
readonly after: HtmlRegionScan;
|
|
75
|
+
}, optional?: Record<string, never>): string[];
|
|
76
|
+
locateRegion(required: {
|
|
77
|
+
readonly scan: HtmlRegionScan;
|
|
78
|
+
readonly handle: string;
|
|
79
|
+
}, optional?: Record<string, never>): RegionLookup;
|
|
80
|
+
moveRegion(required: {
|
|
81
|
+
readonly html: string;
|
|
82
|
+
readonly moving: ScannedRegion;
|
|
83
|
+
readonly target: ScannedRegion;
|
|
84
|
+
readonly placement: "before" | "after";
|
|
85
|
+
}, optional?: Record<string, never>): {
|
|
86
|
+
readonly html: string;
|
|
87
|
+
} | {
|
|
88
|
+
readonly problem: RegionMoveProblem;
|
|
89
|
+
};
|
|
90
|
+
regionHandlesIn(required: {
|
|
91
|
+
readonly scan: HtmlRegionScan;
|
|
92
|
+
}, optional?: Record<string, never>): string[];
|
|
93
|
+
replaceRegionInner(required: {
|
|
94
|
+
readonly html: string;
|
|
95
|
+
readonly region: ParsedRegion;
|
|
96
|
+
readonly fragment: string;
|
|
97
|
+
}, optional?: Record<string, never>): string;
|
|
98
|
+
untaggedTopLevelSections(required: {
|
|
99
|
+
readonly html: string;
|
|
100
|
+
readonly scan: HtmlRegionScan;
|
|
101
|
+
}, options: RegionHandleOptions): readonly UntaggedSection[];
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=html-region-ports.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Rate-limit data shapes a host hands to `@jini-ai/http-kit/rate-limit`: the window/budget
|
|
3
|
+
* profile and the structural request a client address is resolved from. Counting, stores and the
|
|
4
|
+
* trust policy stay in http-kit; these types sit in core so callers can declare profiles and
|
|
5
|
+
* request sources without depending on the http-kit package.
|
|
6
|
+
*/
|
|
7
|
+
/** Host-selected window and request budget; no product profiles live here. */
|
|
8
|
+
export interface RateLimitProfile {
|
|
9
|
+
readonly windowSeconds: number;
|
|
10
|
+
readonly max: number;
|
|
11
|
+
readonly burst: number;
|
|
12
|
+
}
|
|
13
|
+
/** Structural request shape; transport/framework trust configuration stays outside. */
|
|
14
|
+
export interface ClientIpSource {
|
|
15
|
+
readonly socket: {
|
|
16
|
+
readonly remoteAddress?: string;
|
|
17
|
+
};
|
|
18
|
+
readonly headers: Record<string, string | string[] | undefined>;
|
|
19
|
+
readonly ip?: string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=http-kit-rate-limit.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Rate-limit data shapes a host hands to `@jini-ai/http-kit/rate-limit`: the window/budget
|
|
3
|
+
* profile and the structural request a client address is resolved from. Counting, stores and the
|
|
4
|
+
* trust policy stay in http-kit; these types sit in core so callers can declare profiles and
|
|
5
|
+
* request sources without depending on the http-kit package.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=http-kit-rate-limit.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The settings-route error mapping a host hands the settings HTTP adapter.
|
|
3
|
+
*
|
|
4
|
+
* Additive verbatim copy of the declaration in `@jini-ai/http-kit/settings` (`settings/shared.ts`);
|
|
5
|
+
* http-kit keeps its identical declaration and exports until the paired cutover.
|
|
6
|
+
*/
|
|
7
|
+
export interface SettingsErrorMapping {
|
|
8
|
+
readonly matches: (error: unknown) => boolean;
|
|
9
|
+
readonly status: number;
|
|
10
|
+
readonly code: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=http-kit-settings.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The settings-route error mapping a host hands the settings HTTP adapter.
|
|
3
|
+
*
|
|
4
|
+
* Additive verbatim copy of the declaration in `@jini-ai/http-kit/settings` (`settings/shared.ts`);
|
|
5
|
+
* http-kit keeps its identical declaration and exports until the paired cutover.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=http-kit-settings.js.map
|