@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,124 @@
|
|
|
1
|
+
/** widgets registration declarations; shared placement rationale is in the host aggregator. */
|
|
2
|
+
export declare const toolMetadata: {
|
|
3
|
+
readonly widgets_bind_region: {
|
|
4
|
+
readonly search: {
|
|
5
|
+
readonly keywords: "widget sidebar footer region area slot place put add section";
|
|
6
|
+
readonly queries: readonly ["How do I set up a new widget area?", "Can you bind a new region key for widgets?", "If I bind a region that already exists, does it create a duplicate?", "I want to create an empty widget slot to fill later.", "How do I register a new widget region on the theme?"];
|
|
7
|
+
};
|
|
8
|
+
readonly approval: {
|
|
9
|
+
readonly class: "edit";
|
|
10
|
+
readonly confirmation: "direct";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
readonly widgets_create_instance: {
|
|
14
|
+
readonly search: {
|
|
15
|
+
readonly keywords: "widget gallery images photos grid carousel masonry create add new block sidebar footer";
|
|
16
|
+
readonly queries: readonly ["Can you create a new widget?", "How do I make a new widget instance with a specific config?", "If I create a widget, does it automatically show up on the site?", "I want to set up a new widget of a certain type.", "Can you validate a widget's config against its schema when creating it?"];
|
|
17
|
+
};
|
|
18
|
+
readonly approval: {
|
|
19
|
+
readonly class: "edit";
|
|
20
|
+
readonly confirmation: "direct";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly widgets_get_instance: {
|
|
24
|
+
readonly search: {
|
|
25
|
+
readonly keywords: "widget read view details one existing current where used which pages use uses used usage where banner";
|
|
26
|
+
readonly queries: readonly ["Where is this widget actually being used on the site?", "Can you show me one widget's config and everywhere it's placed?", "I want to see a widget's current state plus its region placements.", "Is this widget embedded inline anywhere?", "Can you show me the full details for a single widget instance?"];
|
|
27
|
+
};
|
|
28
|
+
readonly approval: {
|
|
29
|
+
readonly class: "read";
|
|
30
|
+
readonly confirmation: "direct";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly widgets_get_region: {
|
|
34
|
+
readonly search: {
|
|
35
|
+
readonly keywords: "widget region read view current placements existing";
|
|
36
|
+
readonly queries: readonly ["What widgets are placed in this specific region?", "Can you show me if any widget in this region is broken?", "I need the current version of a region before I update its placements.", "What's actually filling the sidebar widget area right now?", "Is a widget in this region missing or the wrong type?"];
|
|
37
|
+
};
|
|
38
|
+
readonly approval: {
|
|
39
|
+
readonly class: "read";
|
|
40
|
+
readonly confirmation: "direct";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly widgets_insert_embed: {
|
|
44
|
+
readonly search: {
|
|
45
|
+
readonly keywords: "widget embed insert add put inline post entry body content";
|
|
46
|
+
readonly queries: readonly ["Can you embed a widget inside this post's body?", "How do I add an inline widget to a page's content?", "Can I put a widget inside another widget?", "What happens if I try to embed too many widgets in one document?", "How do I insert a widget reference into the middle of a page?"];
|
|
47
|
+
};
|
|
48
|
+
readonly approval: {
|
|
49
|
+
readonly class: "edit";
|
|
50
|
+
readonly confirmation: "direct";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly widgets_list_instances: {
|
|
54
|
+
readonly search: {
|
|
55
|
+
readonly keywords: "widget widgets list existing placed blocks";
|
|
56
|
+
readonly queries: readonly ["What widgets do we have set up on the site?", "Can you show me only active widgets, not trashed ones?", "I want to filter widgets by type.", "Show me every widget instance and its current config.", "What widgets are currently active in the workspace?"];
|
|
57
|
+
};
|
|
58
|
+
readonly approval: {
|
|
59
|
+
readonly class: "read";
|
|
60
|
+
readonly confirmation: "direct";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly widgets_list_regions: {
|
|
64
|
+
readonly search: {
|
|
65
|
+
readonly keywords: "widget regions areas slots sidebar footer available";
|
|
66
|
+
readonly queries: readonly ["What widget regions are currently bound on the site?", "Can you show me each region and how many widgets are placed there?", "I want to see which theme areas have widgets assigned.", "Are there any regions that got orphaned after a theme switch?", "What widget slots exist right now?"];
|
|
67
|
+
};
|
|
68
|
+
readonly approval: {
|
|
69
|
+
readonly class: "read";
|
|
70
|
+
readonly confirmation: "direct";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly widgets_remove_embed: {
|
|
74
|
+
readonly search: {
|
|
75
|
+
readonly keywords: "widget embed remove delete take out inline post body";
|
|
76
|
+
readonly queries: readonly ["Can you remove this inline widget from the page body?", "How do I delete one embedded widget without deleting the widget itself?", "I want to take out a widget embed by its placement id.", "Can you pull a widget out of the page content?", "How do I remove an inline widget slot from an entry?"];
|
|
77
|
+
};
|
|
78
|
+
readonly approval: {
|
|
79
|
+
readonly class: "edit";
|
|
80
|
+
readonly confirmation: "direct";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly widgets_reorder_embeds: {
|
|
84
|
+
readonly search: {
|
|
85
|
+
readonly keywords: "widget embed reorder rearrange change order position swap";
|
|
86
|
+
readonly queries: readonly ["Can you swap which widget shows in each embed slot?", "How do I change the widgets assigned to existing embed slots without changing the layout?", "I want to reassign what fills each inline widget spot in a document.", "Can this add new embed slots, or only reshuffle existing ones?", "Do I need to specify a widget for every single slot, or can I skip some?"];
|
|
87
|
+
};
|
|
88
|
+
readonly approval: {
|
|
89
|
+
readonly class: "edit";
|
|
90
|
+
readonly confirmation: "direct";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly widgets_set_region_placements: {
|
|
94
|
+
readonly search: {
|
|
95
|
+
readonly keywords: "widget region replace set whole list sidebar footer bulk update";
|
|
96
|
+
readonly queries: readonly ["How do I change which widgets show up in the sidebar?", "Can you replace the whole list of widgets in this region?", "What happens if I reference a widget that's trashed in the placement list?", "I need to see the current placements before I overwrite them, right?", "How do I reorder or swap out widgets in a region all at once?"];
|
|
97
|
+
};
|
|
98
|
+
readonly approval: {
|
|
99
|
+
readonly class: "edit";
|
|
100
|
+
readonly confirmation: "direct";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly widgets_trash_instance: {
|
|
104
|
+
readonly search: {
|
|
105
|
+
readonly keywords: "widget delete remove trash soft delete remove delete take off widget footer sidebar header";
|
|
106
|
+
readonly queries: readonly ["Can you delete this widget?", "What happens to the places this widget is used if I trash it?", "How do I remove a widget instance — is it a hard delete?", "Can I trash a widget even if it's currently placed somewhere?", "Is there a way to permanently purge a widget, or just trash it?"];
|
|
107
|
+
};
|
|
108
|
+
readonly approval: {
|
|
109
|
+
readonly class: "trash";
|
|
110
|
+
readonly confirmation: "policy";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly widgets_update_instance: {
|
|
114
|
+
readonly search: {
|
|
115
|
+
readonly keywords: "widget update edit change config settings instance";
|
|
116
|
+
readonly queries: readonly ["Can you change the settings on this existing widget?", "How do I edit a widget's config?", "Can I change what type this widget is?", "I want to replace a widget's configuration entirely.", "How do I update the content inside a widget instance?"];
|
|
117
|
+
};
|
|
118
|
+
readonly approval: {
|
|
119
|
+
readonly class: "edit";
|
|
120
|
+
readonly confirmation: "direct";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
//# sourceMappingURL=widgets.d.ts.map
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/** widgets registration declarations; shared placement rationale is in the host aggregator. */
|
|
2
|
+
export const toolMetadata = {
|
|
3
|
+
// --- widgets -------------------------------------------------------------------------------------
|
|
4
|
+
"widgets_bind_region": {
|
|
5
|
+
search: {
|
|
6
|
+
keywords: "widget sidebar footer region area slot place put add section",
|
|
7
|
+
queries: [
|
|
8
|
+
"How do I set up a new widget area?",
|
|
9
|
+
"Can you bind a new region key for widgets?",
|
|
10
|
+
"If I bind a region that already exists, does it create a duplicate?",
|
|
11
|
+
"I want to create an empty widget slot to fill later.",
|
|
12
|
+
"How do I register a new widget region on the theme?",
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
16
|
+
},
|
|
17
|
+
"widgets_create_instance": {
|
|
18
|
+
search: {
|
|
19
|
+
keywords: "widget gallery images photos grid carousel masonry create add new block sidebar footer",
|
|
20
|
+
queries: [
|
|
21
|
+
"Can you create a new widget?",
|
|
22
|
+
"How do I make a new widget instance with a specific config?",
|
|
23
|
+
"If I create a widget, does it automatically show up on the site?",
|
|
24
|
+
"I want to set up a new widget of a certain type.",
|
|
25
|
+
"Can you validate a widget's config against its schema when creating it?",
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
29
|
+
},
|
|
30
|
+
"widgets_get_instance": {
|
|
31
|
+
search: {
|
|
32
|
+
keywords: "widget read view details one existing current where used which pages use uses used usage where banner",
|
|
33
|
+
queries: [
|
|
34
|
+
"Where is this widget actually being used on the site?",
|
|
35
|
+
"Can you show me one widget's config and everywhere it's placed?",
|
|
36
|
+
"I want to see a widget's current state plus its region placements.",
|
|
37
|
+
"Is this widget embedded inline anywhere?",
|
|
38
|
+
"Can you show me the full details for a single widget instance?",
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
approval: { class: 'read', confirmation: 'direct' },
|
|
42
|
+
},
|
|
43
|
+
"widgets_get_region": {
|
|
44
|
+
search: {
|
|
45
|
+
keywords: "widget region read view current placements existing",
|
|
46
|
+
queries: [
|
|
47
|
+
"What widgets are placed in this specific region?",
|
|
48
|
+
"Can you show me if any widget in this region is broken?",
|
|
49
|
+
"I need the current version of a region before I update its placements.",
|
|
50
|
+
"What's actually filling the sidebar widget area right now?",
|
|
51
|
+
"Is a widget in this region missing or the wrong type?",
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
approval: { class: 'read', confirmation: 'direct' },
|
|
55
|
+
},
|
|
56
|
+
"widgets_insert_embed": {
|
|
57
|
+
search: {
|
|
58
|
+
keywords: "widget embed insert add put inline post entry body content",
|
|
59
|
+
queries: [
|
|
60
|
+
"Can you embed a widget inside this post's body?",
|
|
61
|
+
"How do I add an inline widget to a page's content?",
|
|
62
|
+
"Can I put a widget inside another widget?",
|
|
63
|
+
"What happens if I try to embed too many widgets in one document?",
|
|
64
|
+
"How do I insert a widget reference into the middle of a page?",
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
68
|
+
},
|
|
69
|
+
"widgets_list_instances": {
|
|
70
|
+
search: {
|
|
71
|
+
keywords: "widget widgets list existing placed blocks",
|
|
72
|
+
queries: [
|
|
73
|
+
"What widgets do we have set up on the site?",
|
|
74
|
+
"Can you show me only active widgets, not trashed ones?",
|
|
75
|
+
"I want to filter widgets by type.",
|
|
76
|
+
"Show me every widget instance and its current config.",
|
|
77
|
+
"What widgets are currently active in the workspace?",
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
approval: { class: 'read', confirmation: 'direct' },
|
|
81
|
+
},
|
|
82
|
+
"widgets_list_regions": {
|
|
83
|
+
search: {
|
|
84
|
+
keywords: "widget regions areas slots sidebar footer available",
|
|
85
|
+
queries: [
|
|
86
|
+
"What widget regions are currently bound on the site?",
|
|
87
|
+
"Can you show me each region and how many widgets are placed there?",
|
|
88
|
+
"I want to see which theme areas have widgets assigned.",
|
|
89
|
+
"Are there any regions that got orphaned after a theme switch?",
|
|
90
|
+
"What widget slots exist right now?",
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
approval: { class: 'read', confirmation: 'direct' },
|
|
94
|
+
},
|
|
95
|
+
"widgets_remove_embed": {
|
|
96
|
+
search: {
|
|
97
|
+
keywords: "widget embed remove delete take out inline post body",
|
|
98
|
+
queries: [
|
|
99
|
+
"Can you remove this inline widget from the page body?",
|
|
100
|
+
"How do I delete one embedded widget without deleting the widget itself?",
|
|
101
|
+
"I want to take out a widget embed by its placement id.",
|
|
102
|
+
"Can you pull a widget out of the page content?",
|
|
103
|
+
"How do I remove an inline widget slot from an entry?",
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
107
|
+
},
|
|
108
|
+
"widgets_reorder_embeds": {
|
|
109
|
+
search: {
|
|
110
|
+
keywords: "widget embed reorder rearrange change order position swap",
|
|
111
|
+
queries: [
|
|
112
|
+
"Can you swap which widget shows in each embed slot?",
|
|
113
|
+
"How do I change the widgets assigned to existing embed slots without changing the layout?",
|
|
114
|
+
"I want to reassign what fills each inline widget spot in a document.",
|
|
115
|
+
"Can this add new embed slots, or only reshuffle existing ones?",
|
|
116
|
+
"Do I need to specify a widget for every single slot, or can I skip some?",
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
120
|
+
},
|
|
121
|
+
"widgets_set_region_placements": {
|
|
122
|
+
search: {
|
|
123
|
+
keywords: "widget region replace set whole list sidebar footer bulk update",
|
|
124
|
+
queries: [
|
|
125
|
+
"How do I change which widgets show up in the sidebar?",
|
|
126
|
+
"Can you replace the whole list of widgets in this region?",
|
|
127
|
+
"What happens if I reference a widget that's trashed in the placement list?",
|
|
128
|
+
"I need to see the current placements before I overwrite them, right?",
|
|
129
|
+
"How do I reorder or swap out widgets in a region all at once?",
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
133
|
+
},
|
|
134
|
+
"widgets_trash_instance": {
|
|
135
|
+
search: {
|
|
136
|
+
keywords: "widget delete remove trash soft delete remove delete take off widget footer sidebar header",
|
|
137
|
+
queries: [
|
|
138
|
+
"Can you delete this widget?",
|
|
139
|
+
"What happens to the places this widget is used if I trash it?",
|
|
140
|
+
"How do I remove a widget instance — is it a hard delete?",
|
|
141
|
+
"Can I trash a widget even if it's currently placed somewhere?",
|
|
142
|
+
"Is there a way to permanently purge a widget, or just trash it?",
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
approval: { class: 'trash', confirmation: 'policy' },
|
|
146
|
+
},
|
|
147
|
+
"widgets_update_instance": {
|
|
148
|
+
search: {
|
|
149
|
+
keywords: "widget update edit change config settings instance",
|
|
150
|
+
queries: [
|
|
151
|
+
"Can you change the settings on this existing widget?",
|
|
152
|
+
"How do I edit a widget's config?",
|
|
153
|
+
"Can I change what type this widget is?",
|
|
154
|
+
"I want to replace a widget's configuration entirely.",
|
|
155
|
+
"How do I update the content inside a widget instance?",
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=widgets.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** workspace registration declarations; shared placement rationale lives in the host aggregator. */
|
|
2
|
+
export declare const toolMetadata: {
|
|
3
|
+
readonly workspace_list: {
|
|
4
|
+
readonly search: {
|
|
5
|
+
readonly keywords: "workspace list available current site id name slug";
|
|
6
|
+
};
|
|
7
|
+
readonly approval: {
|
|
8
|
+
readonly class: "read";
|
|
9
|
+
readonly confirmation: "direct";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly workspace_get: {
|
|
13
|
+
readonly search: {
|
|
14
|
+
readonly keywords: "site name title settings workspace details info about";
|
|
15
|
+
readonly queries: readonly ["What's our workspace's name and id?", "Can you show me when this workspace was created?", "What's our current workspace slug?", "I want basic info about our own workspace.", "Do we have more than one workspace here?"];
|
|
16
|
+
};
|
|
17
|
+
readonly approval: {
|
|
18
|
+
readonly class: "read";
|
|
19
|
+
readonly confirmation: "direct";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly workspace_update: {
|
|
23
|
+
readonly search: {
|
|
24
|
+
readonly keywords: "site name title rename change workspace settings brand rename site site name rename my site";
|
|
25
|
+
readonly queries: readonly ["Can you rename our workspace?", "How do I change the workspace's URL slug?", "Will renaming the workspace affect anything else?", "Can I update just the name and leave the slug alone?", "How do I change our site's workspace name?"];
|
|
26
|
+
};
|
|
27
|
+
readonly approval: {
|
|
28
|
+
readonly class: "edit";
|
|
29
|
+
readonly confirmation: "direct";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly workspace_create: {
|
|
33
|
+
readonly search: {
|
|
34
|
+
readonly keywords: "workspace site create new add";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly workspace_delete: {
|
|
38
|
+
readonly search: {
|
|
39
|
+
readonly keywords: "workspace site delete remove destroy get rid of";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** workspace registration declarations; shared placement rationale lives in the host aggregator. */
|
|
2
|
+
export const toolMetadata = {
|
|
3
|
+
"workspace_list": {
|
|
4
|
+
search: { keywords: "workspace list available current site id name slug" },
|
|
5
|
+
approval: { class: 'read', confirmation: 'direct' },
|
|
6
|
+
},
|
|
7
|
+
// --- workspace / settings ------------------------------------------------------------------------------
|
|
8
|
+
"workspace_get": {
|
|
9
|
+
search: {
|
|
10
|
+
keywords: "site name title settings workspace details info about",
|
|
11
|
+
queries: [
|
|
12
|
+
"What's our workspace's name and id?",
|
|
13
|
+
"Can you show me when this workspace was created?",
|
|
14
|
+
"What's our current workspace slug?",
|
|
15
|
+
"I want basic info about our own workspace.",
|
|
16
|
+
"Do we have more than one workspace here?",
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
approval: { class: 'read', confirmation: 'direct' },
|
|
20
|
+
},
|
|
21
|
+
"workspace_update": {
|
|
22
|
+
search: {
|
|
23
|
+
keywords: "site name title rename change workspace settings brand rename site site name rename my site",
|
|
24
|
+
queries: [
|
|
25
|
+
"Can you rename our workspace?",
|
|
26
|
+
"How do I change the workspace's URL slug?",
|
|
27
|
+
"Will renaming the workspace affect anything else?",
|
|
28
|
+
"Can I update just the name and leave the slug alone?",
|
|
29
|
+
"How do I change our site's workspace name?",
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
approval: { class: 'edit', confirmation: 'direct' },
|
|
33
|
+
},
|
|
34
|
+
// workspace_create and workspace_delete are deliberately UNWIRED (never agent-callable — creating
|
|
35
|
+
// or deleting the single addressable workspace row would orphan or break every other domain's
|
|
36
|
+
// boot-wired workspaceId — see file header). Entries added for consistency, same reasoning as
|
|
37
|
+
// backup_execute_restore above.
|
|
38
|
+
"workspace_create": {
|
|
39
|
+
search: {
|
|
40
|
+
keywords: "workspace site create new add",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
"workspace_delete": {
|
|
44
|
+
search: {
|
|
45
|
+
keywords: "workspace site delete remove destroy get rid of",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { NormalizedToolInput } from './tool-input-normalization.js';
|
|
2
|
+
import type { ToolHandler } from './tool-registry.js';
|
|
3
|
+
/** A JSON object schema as published on a tool descriptor. */
|
|
4
|
+
export type ReadCardSchema = Readonly<Record<string, unknown>>;
|
|
5
|
+
/** Applies `rewriteText` to every string `description` in a JSON schema.
|
|
6
|
+
* @complexity O(n) in the schema size. */
|
|
7
|
+
export declare function rewriteSchemaDescriptions({ value, rewriteText }: {
|
|
8
|
+
value: unknown;
|
|
9
|
+
rewriteText: (required: {
|
|
10
|
+
text: string;
|
|
11
|
+
}) => string;
|
|
12
|
+
}, _optional?: {}): unknown;
|
|
13
|
+
/** The value at `path` inside `item`, or `undefined` when any step is not a record.
|
|
14
|
+
* @complexity O(path length). */
|
|
15
|
+
export declare function valueAtPath({ item, path }: {
|
|
16
|
+
item: unknown;
|
|
17
|
+
path: readonly string[];
|
|
18
|
+
}, _optional?: {}): unknown;
|
|
19
|
+
/**
|
|
20
|
+
* **The one shared handler factory** every merged (get+list) card wires through. Dispatches to
|
|
21
|
+
* `get` when the caller supplied `idProperty`, to `list` otherwise — both branches invoke the
|
|
22
|
+
* ORIGINAL, already-shipped handler completely unchanged, including its own input validation and
|
|
23
|
+
* its own permission enforcement.
|
|
24
|
+
*
|
|
25
|
+
* `value !== undefined` rather than a stricter non-empty-string check: an empty-string id is left
|
|
26
|
+
* for the underlying `get` handler's own `requireString` to reject with its own message, rather
|
|
27
|
+
* than this wrapper inventing a second, possibly-inconsistent validation error.
|
|
28
|
+
* A batch-enabled get owns `items` before id dispatch: its existing wrapper validates the batch
|
|
29
|
+
* and runs each item through get, so a missing item id fails instead of disclosing a whole list.
|
|
30
|
+
*
|
|
31
|
+
* @complexity O(1) plus whichever branch's own cost.
|
|
32
|
+
*/
|
|
33
|
+
export declare function dispatchByIdPresence({ idProperty, get, list }: {
|
|
34
|
+
idProperty: string;
|
|
35
|
+
get: ToolHandler;
|
|
36
|
+
list: ToolHandler;
|
|
37
|
+
}, { batchGet }?: {
|
|
38
|
+
batchGet?: boolean;
|
|
39
|
+
}): ToolHandler;
|
|
40
|
+
/**
|
|
41
|
+
* Builds a merged card's inputSchema as the union of its `get` and `list` members' own ALREADY-
|
|
42
|
+
* PUBLISHED schemas — never hand-authored, so it cannot drift from what those two tools actually
|
|
43
|
+
* accept. `idProperty` becomes optional in the union (its presence, not a `required` entry, is the
|
|
44
|
+
* dispatch signal {@link dispatchByIdPresence} reads) with a one-line note appended explaining that.
|
|
45
|
+
* `required` is the intersection of the two members' own required fields (with `idProperty` removed
|
|
46
|
+
* from `get`'s side first) — a field required by only ONE branch cannot be required overall, since
|
|
47
|
+
* the other branch never needs it.
|
|
48
|
+
*
|
|
49
|
+
* @param optional.sharedOnlyKeys - Properties a merged card may advertise only when BOTH branches
|
|
50
|
+
* declare them (e.g. a host's peer-read selector), since either branch may receive the call.
|
|
51
|
+
* @complexity O(p) in combined property count.
|
|
52
|
+
*/
|
|
53
|
+
export declare function unionInputSchema({ getSchema, listSchema, idProperty }: {
|
|
54
|
+
getSchema: ReadCardSchema;
|
|
55
|
+
listSchema: ReadCardSchema;
|
|
56
|
+
idProperty: string;
|
|
57
|
+
}, { sharedOnlyKeys }?: {
|
|
58
|
+
sharedOnlyKeys?: readonly string[];
|
|
59
|
+
}): ReadCardSchema;
|
|
60
|
+
/** Project the source selector `from` to `to`, including a source-owned batch's item schema.
|
|
61
|
+
* Other filters, required context and natural-key constraints are preserved verbatim.
|
|
62
|
+
* @complexity O(p) time/space in the single and batch-item properties; no effects.
|
|
63
|
+
*/
|
|
64
|
+
export declare function renameSchemaSelector({ inputSchema, from, to }: {
|
|
65
|
+
inputSchema: ReadCardSchema;
|
|
66
|
+
from: string;
|
|
67
|
+
to: string;
|
|
68
|
+
}, _options?: {}): ReadCardSchema;
|
|
69
|
+
/** Rename one selector without mutating caller input or exposing values in errors/notes.
|
|
70
|
+
* @throws ToolInputError for conflicting spellings, even when their values are equal.
|
|
71
|
+
* @complexity O(k) time/space for k input keys; no I/O.
|
|
72
|
+
*/
|
|
73
|
+
export declare function renameInputSelector({ input, from, to }: {
|
|
74
|
+
input: unknown;
|
|
75
|
+
from: string;
|
|
76
|
+
to: string;
|
|
77
|
+
}, _options?: {}): NormalizedToolInput;
|
|
78
|
+
/** Translate only the target selector at the root and in source-owned batch items.
|
|
79
|
+
* Batch execution, limits, per-item authorization and result envelopes remain with the batch owner.
|
|
80
|
+
* @throws ToolInputError if any single item contains both spellings, before a read begins.
|
|
81
|
+
* @complexity O(k) time/space in root and batch-item keys; no per-item I/O.
|
|
82
|
+
*/
|
|
83
|
+
export declare function renameInputSelectors({ input, from, to }: {
|
|
84
|
+
input: unknown;
|
|
85
|
+
from: string;
|
|
86
|
+
to: string;
|
|
87
|
+
}, _options?: {}): NormalizedToolInput;
|
|
88
|
+
//# sourceMappingURL=tool-read-cards.d.ts.map
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Generic mechanics for collapsing a host's paired read tools (a single-item `get` and a
|
|
3
|
+
* `list`) into one "read card" tool: input-schema union and selector renaming, get/list dispatch by
|
|
4
|
+
* selector presence, and the small path/description walkers those need. Pure and effect-free.
|
|
5
|
+
*
|
|
6
|
+
* The host owns which tools pair up, the card ids, permissions and every model-facing card copy; it
|
|
7
|
+
* passes the source registrations' own published schemas and handlers in. Nothing here re-validates
|
|
8
|
+
* input or re-checks permission: each branch calls the ORIGINAL handler unchanged, so its own input
|
|
9
|
+
* validation and permission enforcement run exactly once.
|
|
10
|
+
*/
|
|
11
|
+
import { isRecord } from './records.js';
|
|
12
|
+
import { ToolInputError } from './tool-input-errors.js';
|
|
13
|
+
/** Typed explicitly because a bare `{}` literal has no index signature. */
|
|
14
|
+
const EMPTY_SCHEMA = {};
|
|
15
|
+
/** The schema's `properties`, or an empty record. @complexity O(1). */
|
|
16
|
+
function schemaProperties({ schema }) {
|
|
17
|
+
return schema.properties ?? EMPTY_SCHEMA;
|
|
18
|
+
}
|
|
19
|
+
/** The schema's `required` list, or an empty list. @complexity O(1). */
|
|
20
|
+
function schemaRequired({ schema }) {
|
|
21
|
+
return schema.required ?? [];
|
|
22
|
+
}
|
|
23
|
+
/** Applies `rewriteText` to every string `description` in a JSON schema.
|
|
24
|
+
* @complexity O(n) in the schema size. */
|
|
25
|
+
export function rewriteSchemaDescriptions({ value, rewriteText }, _optional = {}) {
|
|
26
|
+
if (Array.isArray(value))
|
|
27
|
+
return value.map((child) => rewriteSchemaDescriptions({ value: child, rewriteText: rewriteText }));
|
|
28
|
+
if (typeof value !== "object" || value === null)
|
|
29
|
+
return value;
|
|
30
|
+
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, key === "description" && typeof child === "string" ? rewriteText({ text: child }) : rewriteSchemaDescriptions({ value: child, rewriteText: rewriteText })]));
|
|
31
|
+
}
|
|
32
|
+
/** The value at `path` inside `item`, or `undefined` when any step is not a record.
|
|
33
|
+
* @complexity O(path length). */
|
|
34
|
+
export function valueAtPath({ item, path }, _optional = {}) {
|
|
35
|
+
let current = item;
|
|
36
|
+
for (const key of path) {
|
|
37
|
+
const candidate = { value: current };
|
|
38
|
+
if (!isRecord(candidate))
|
|
39
|
+
return undefined;
|
|
40
|
+
current = candidate.value[key];
|
|
41
|
+
}
|
|
42
|
+
return current;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* **The one shared handler factory** every merged (get+list) card wires through. Dispatches to
|
|
46
|
+
* `get` when the caller supplied `idProperty`, to `list` otherwise — both branches invoke the
|
|
47
|
+
* ORIGINAL, already-shipped handler completely unchanged, including its own input validation and
|
|
48
|
+
* its own permission enforcement.
|
|
49
|
+
*
|
|
50
|
+
* `value !== undefined` rather than a stricter non-empty-string check: an empty-string id is left
|
|
51
|
+
* for the underlying `get` handler's own `requireString` to reject with its own message, rather
|
|
52
|
+
* than this wrapper inventing a second, possibly-inconsistent validation error.
|
|
53
|
+
* A batch-enabled get owns `items` before id dispatch: its existing wrapper validates the batch
|
|
54
|
+
* and runs each item through get, so a missing item id fails instead of disclosing a whole list.
|
|
55
|
+
*
|
|
56
|
+
* @complexity O(1) plus whichever branch's own cost.
|
|
57
|
+
*/
|
|
58
|
+
export function dispatchByIdPresence({ idProperty, get, list }, { batchGet = false } = {}) {
|
|
59
|
+
return async (ctx, options) => {
|
|
60
|
+
const candidate = { value: ctx.input };
|
|
61
|
+
if (batchGet && isRecord(candidate) && Object.hasOwn(candidate.value, "items"))
|
|
62
|
+
return get(ctx, options);
|
|
63
|
+
const value = isRecord(candidate) ? candidate.value[idProperty] : undefined;
|
|
64
|
+
return value !== undefined ? get(ctx, options) : list(ctx, options);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** The get-side id property entry of a union schema, with its "omit to list" note. @complexity O(1). */
|
|
68
|
+
function unionIdPropertyEntry({ getProps, idProperty }) {
|
|
69
|
+
const idSchema = getProps[idProperty];
|
|
70
|
+
if (!idSchema)
|
|
71
|
+
return {};
|
|
72
|
+
return {
|
|
73
|
+
[idProperty]: {
|
|
74
|
+
...idSchema,
|
|
75
|
+
description: `${idSchema.description ?? ""} Omit to list instead of fetching a single item.`.trim(),
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Builds a merged card's inputSchema as the union of its `get` and `list` members' own ALREADY-
|
|
81
|
+
* PUBLISHED schemas — never hand-authored, so it cannot drift from what those two tools actually
|
|
82
|
+
* accept. `idProperty` becomes optional in the union (its presence, not a `required` entry, is the
|
|
83
|
+
* dispatch signal {@link dispatchByIdPresence} reads) with a one-line note appended explaining that.
|
|
84
|
+
* `required` is the intersection of the two members' own required fields (with `idProperty` removed
|
|
85
|
+
* from `get`'s side first) — a field required by only ONE branch cannot be required overall, since
|
|
86
|
+
* the other branch never needs it.
|
|
87
|
+
*
|
|
88
|
+
* @param optional.sharedOnlyKeys - Properties a merged card may advertise only when BOTH branches
|
|
89
|
+
* declare them (e.g. a host's peer-read selector), since either branch may receive the call.
|
|
90
|
+
* @complexity O(p) in combined property count.
|
|
91
|
+
*/
|
|
92
|
+
export function unionInputSchema({ getSchema, listSchema, idProperty }, { sharedOnlyKeys = [] } = {}) {
|
|
93
|
+
const getProps = schemaProperties({ schema: getSchema });
|
|
94
|
+
const listProps = schemaProperties({ schema: listSchema });
|
|
95
|
+
const getRequired = new Set(schemaRequired({ schema: getSchema }).filter((key) => key !== idProperty));
|
|
96
|
+
const listRequired = new Set(schemaRequired({ schema: listSchema }));
|
|
97
|
+
const required = [...getRequired].filter((key) => listRequired.has(key));
|
|
98
|
+
const properties = { ...listProps, ...getProps, ...unionIdPropertyEntry({ getProps, idProperty }) };
|
|
99
|
+
for (const key of sharedOnlyKeys) {
|
|
100
|
+
if (!Object.hasOwn(listProps, key) || !Object.hasOwn(getProps, key))
|
|
101
|
+
delete properties[key];
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
type: "object",
|
|
105
|
+
additionalProperties: false,
|
|
106
|
+
required,
|
|
107
|
+
properties,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/** Project the source selector `from` to `to`, including a source-owned batch's item schema.
|
|
111
|
+
* Other filters, required context and natural-key constraints are preserved verbatim.
|
|
112
|
+
* @complexity O(p) time/space in the single and batch-item properties; no effects.
|
|
113
|
+
*/
|
|
114
|
+
export function renameSchemaSelector({ inputSchema, from, to }, _options = {}) {
|
|
115
|
+
// A schema-less reader keeps its empty fallback: there is no selector to project.
|
|
116
|
+
if (inputSchema.properties === undefined && inputSchema.required === undefined)
|
|
117
|
+
return inputSchema;
|
|
118
|
+
const properties = schemaProperties({ schema: inputSchema });
|
|
119
|
+
const projected = Object.fromEntries(Object.entries(properties).map(([key, value]) => [key === from ? to : key, value]));
|
|
120
|
+
const batch = properties.items;
|
|
121
|
+
if (batch?.items)
|
|
122
|
+
projected.items = { ...batch, items: renameSchemaSelector({ inputSchema: batch.items, from, to }) };
|
|
123
|
+
return { ...inputSchema, properties: projected,
|
|
124
|
+
required: schemaRequired({ schema: inputSchema }).map((key) => key === from ? to : key),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/** Rename one selector without mutating caller input or exposing values in errors/notes.
|
|
128
|
+
* @throws ToolInputError for conflicting spellings, even when their values are equal.
|
|
129
|
+
* @complexity O(k) time/space for k input keys; no I/O.
|
|
130
|
+
*/
|
|
131
|
+
export function renameInputSelector({ input, from, to }, _options = {}) {
|
|
132
|
+
const candidate = { value: input };
|
|
133
|
+
if (!isRecord(candidate) || !Object.hasOwn(candidate.value, from))
|
|
134
|
+
return { input, notes: [] };
|
|
135
|
+
if (Object.hasOwn(candidate.value, to))
|
|
136
|
+
throw new ToolInputError({ message: `Conflicting inputs '${from}' and '${to}' both name '${to}'. Send only '${to}'.` });
|
|
137
|
+
const { [from]: selector, ...rest } = candidate.value;
|
|
138
|
+
return { input: { ...rest, [to]: selector }, notes: [`${from}→${to}`] };
|
|
139
|
+
}
|
|
140
|
+
/** Translate only the target selector at the root and in source-owned batch items.
|
|
141
|
+
* Batch execution, limits, per-item authorization and result envelopes remain with the batch owner.
|
|
142
|
+
* @throws ToolInputError if any single item contains both spellings, before a read begins.
|
|
143
|
+
* @complexity O(k) time/space in root and batch-item keys; no per-item I/O.
|
|
144
|
+
*/
|
|
145
|
+
export function renameInputSelectors({ input, from, to }, _options = {}) {
|
|
146
|
+
const renamed = renameInputSelector({ input, from, to });
|
|
147
|
+
const candidate = { value: renamed.input };
|
|
148
|
+
if (!isRecord(candidate) || !Array.isArray(candidate.value.items))
|
|
149
|
+
return renamed;
|
|
150
|
+
const notes = [...renamed.notes];
|
|
151
|
+
const items = candidate.value.items.map((item, index) => {
|
|
152
|
+
const result = renameInputSelector({ input: item, from, to });
|
|
153
|
+
notes.push(...result.notes.map((note) => `items[${index}].${note}`));
|
|
154
|
+
return result.input;
|
|
155
|
+
});
|
|
156
|
+
return { input: { ...candidate.value, items }, notes };
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=tool-read-cards.js.map
|