@vibesdotdev/docs 0.0.0-stage → 1.0.0-rc.2
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/LICENSE +18 -0
- package/README.md +74 -2
- package/dist/cli/cli.plugin.d.ts +14 -0
- package/dist/cli/cli.plugin.d.ts.map +1 -0
- package/dist/cli/cli.plugin.js +57 -0
- package/dist/cli/cli.plugin.js.map +1 -0
- package/dist/cli/commands/docs.list.command.descriptor.d.ts +33 -0
- package/dist/cli/commands/docs.list.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/docs.list.command.descriptor.js +34 -0
- package/dist/cli/commands/docs.list.command.descriptor.js.map +1 -0
- package/dist/cli/commands/docs.list.command.impl.d.ts +25 -0
- package/dist/cli/commands/docs.list.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/docs.list.command.impl.js +87 -0
- package/dist/cli/commands/docs.list.command.impl.js.map +1 -0
- package/dist/cli/commands/docs.show.command.descriptor.d.ts +44 -0
- package/dist/cli/commands/docs.show.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/docs.show.command.descriptor.js +48 -0
- package/dist/cli/commands/docs.show.command.descriptor.js.map +1 -0
- package/dist/cli/commands/docs.show.command.impl.d.ts +26 -0
- package/dist/cli/commands/docs.show.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/docs.show.command.impl.js +82 -0
- package/dist/cli/commands/docs.show.command.impl.js.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.d.ts +4 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.js +58 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.d.ts +24 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.js +283 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.js.map +1 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.d.ts +4 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.js +32 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.js.map +1 -0
- package/dist/cli/commands/man/man.cli-command.impl.d.ts +23 -0
- package/dist/cli/commands/man/man.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/commands/man/man.cli-command.impl.js +22 -0
- package/dist/cli/commands/man/man.cli-command.impl.js.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.d.ts +4 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.js +18 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.js.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.d.ts +14 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.js +52 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.js.map +1 -0
- package/dist/cli/commands/search.command.descriptor.d.ts +36 -0
- package/dist/cli/commands/search.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/search.command.descriptor.js +35 -0
- package/dist/cli/commands/search.command.descriptor.js.map +1 -0
- package/dist/cli/commands/search.command.impl.d.ts +25 -0
- package/dist/cli/commands/search.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/search.command.impl.js +113 -0
- package/dist/cli/commands/search.command.impl.js.map +1 -0
- package/dist/cli/directives/card.d.ts +11 -0
- package/dist/cli/directives/card.d.ts.map +1 -0
- package/dist/cli/directives/card.js +18 -0
- package/dist/cli/directives/card.js.map +1 -0
- package/dist/cli/directives/descriptor.d.ts +11 -0
- package/dist/cli/directives/descriptor.d.ts.map +1 -0
- package/dist/cli/directives/descriptor.js +20 -0
- package/dist/cli/directives/descriptor.js.map +1 -0
- package/dist/cli/directives/endpoint.d.ts +8 -0
- package/dist/cli/directives/endpoint.d.ts.map +1 -0
- package/dist/cli/directives/endpoint.js +31 -0
- package/dist/cli/directives/endpoint.js.map +1 -0
- package/dist/cli/directives/index.d.ts +9 -0
- package/dist/cli/directives/index.d.ts.map +1 -0
- package/dist/cli/directives/index.js +37 -0
- package/dist/cli/directives/index.js.map +1 -0
- package/dist/cli/directives/install.d.ts +12 -0
- package/dist/cli/directives/install.d.ts.map +1 -0
- package/dist/cli/directives/install.js +27 -0
- package/dist/cli/directives/install.js.map +1 -0
- package/dist/cli/directives/shell.d.ts +10 -0
- package/dist/cli/directives/shell.d.ts.map +1 -0
- package/dist/cli/directives/shell.js +16 -0
- package/dist/cli/directives/shell.js.map +1 -0
- package/dist/cli/directives/usage.d.ts +9 -0
- package/dist/cli/directives/usage.d.ts.map +1 -0
- package/dist/cli/directives/usage.js +13 -0
- package/dist/cli/directives/usage.js.map +1 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.d.ts +22 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.d.ts.map +1 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.js +92 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.js.map +1 -0
- package/dist/cli/docs.cli-group.descriptor.d.ts +4 -0
- package/dist/cli/docs.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/docs.cli-group.descriptor.js +11 -0
- package/dist/cli/docs.cli-group.descriptor.js.map +1 -0
- package/dist/client/citations.d.ts +11 -0
- package/dist/client/citations.d.ts.map +1 -0
- package/dist/client/citations.js +197 -0
- package/dist/client/citations.js.map +1 -0
- package/dist/client/docs-client.d.ts +51 -0
- package/dist/client/docs-client.d.ts.map +1 -0
- package/dist/client/docs-client.js +298 -0
- package/dist/client/docs-client.js.map +1 -0
- package/dist/client/index.d.ts +12 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +13 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.d.ts +26 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +2 -0
- package/dist/client/types.js.map +1 -0
- package/dist/config/docs.svelte.config.descriptor.d.ts +50 -0
- package/dist/config/docs.svelte.config.descriptor.d.ts.map +1 -0
- package/dist/config/docs.svelte.config.descriptor.js +46 -0
- package/dist/config/docs.svelte.config.descriptor.js.map +1 -0
- package/dist/config/documents.source-refresh.config.descriptor.d.ts +41 -0
- package/dist/config/documents.source-refresh.config.descriptor.d.ts.map +1 -0
- package/dist/config/documents.source-refresh.config.descriptor.js +39 -0
- package/dist/config/documents.source-refresh.config.descriptor.js.map +1 -0
- package/dist/directives/index.d.ts +4 -0
- package/dist/directives/index.d.ts.map +1 -0
- package/dist/directives/index.js +3 -0
- package/dist/directives/index.js.map +1 -0
- package/dist/directives/registry.d.ts +31 -0
- package/dist/directives/registry.d.ts.map +1 -0
- package/dist/directives/registry.js +65 -0
- package/dist/directives/registry.js.map +1 -0
- package/dist/directives/types.d.ts +33 -0
- package/dist/directives/types.d.ts.map +1 -0
- package/dist/directives/types.js +2 -0
- package/dist/directives/types.js.map +1 -0
- package/dist/docs/agent-voice.docs.descriptor.d.ts +30 -0
- package/dist/docs/agent-voice.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/agent-voice.docs.descriptor.js +107 -0
- package/dist/docs/agent-voice.docs.descriptor.js.map +1 -0
- package/dist/docs/charts.usage.docs.descriptor.d.ts +27 -0
- package/dist/docs/charts.usage.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/charts.usage.docs.descriptor.js +90 -0
- package/dist/docs/charts.usage.docs.descriptor.js.map +1 -0
- package/dist/docs/command-palette.actions.docs.descriptor.d.ts +25 -0
- package/dist/docs/command-palette.actions.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/command-palette.actions.docs.descriptor.js +80 -0
- package/dist/docs/command-palette.actions.docs.descriptor.js.map +1 -0
- package/dist/docs/docs.directives.docs.descriptor.d.ts +22 -0
- package/dist/docs/docs.directives.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/docs.directives.docs.descriptor.js +104 -0
- package/dist/docs/docs.directives.docs.descriptor.js.map +1 -0
- package/dist/docs/docs.topics.docs.descriptor.d.ts +22 -0
- package/dist/docs/docs.topics.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/docs.topics.docs.descriptor.js +90 -0
- package/dist/docs/docs.topics.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.d.ts +30 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.js +93 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.d.ts +30 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.js +88 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.d.ts +30 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.js +101 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing.docs.descriptor.d.ts +28 -0
- package/dist/docs/fleet-pairing.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing.docs.descriptor.js +89 -0
- package/dist/docs/fleet-pairing.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started-cli.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started-cli.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started-cli.docs.descriptor.js +141 -0
- package/dist/docs/getting-started-cli.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.js +100 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started.docs.descriptor.js +63 -0
- package/dist/docs/getting-started.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.js +95 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.js.map +1 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.d.ts +22 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.js +114 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.js.map +1 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.d.ts +19 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.js +140 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.js +115 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.js +172 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.js +142 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.docs.descriptor.js +52 -0
- package/dist/docs/tutorials.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.js +121 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.js.map +1 -0
- package/dist/docs.plugin.d.ts +12 -0
- package/dist/docs.plugin.d.ts.map +1 -0
- package/dist/docs.plugin.js +118 -0
- package/dist/docs.plugin.js.map +1 -0
- package/dist/documents/documents.cloud.plugin.d.ts +3 -0
- package/dist/documents/documents.cloud.plugin.d.ts.map +1 -0
- package/dist/documents/documents.cloud.plugin.js +26 -0
- package/dist/documents/documents.cloud.plugin.js.map +1 -0
- package/dist/documents/documents.consumer.plugin.d.ts +3 -0
- package/dist/documents/documents.consumer.plugin.d.ts.map +1 -0
- package/dist/documents/documents.consumer.plugin.js +26 -0
- package/dist/documents/documents.consumer.plugin.js.map +1 -0
- package/dist/documents/documents.plugin.d.ts +3 -0
- package/dist/documents/documents.plugin.d.ts.map +1 -0
- package/dist/documents/documents.plugin.js +33 -0
- package/dist/documents/documents.plugin.js.map +1 -0
- package/dist/documents/docx/client.d.ts +56 -0
- package/dist/documents/docx/client.d.ts.map +1 -0
- package/dist/documents/docx/client.js +90 -0
- package/dist/documents/docx/client.js.map +1 -0
- package/dist/documents/docx/extract.d.ts +12 -0
- package/dist/documents/docx/extract.d.ts.map +1 -0
- package/dist/documents/docx/extract.js +62 -0
- package/dist/documents/docx/extract.js.map +1 -0
- package/dist/documents/docx/generator.d.ts +49 -0
- package/dist/documents/docx/generator.d.ts.map +1 -0
- package/dist/documents/docx/generator.js +101 -0
- package/dist/documents/docx/generator.js.map +1 -0
- package/dist/documents/docx/index.d.ts +19 -0
- package/dist/documents/docx/index.d.ts.map +1 -0
- package/dist/documents/docx/index.js +16 -0
- package/dist/documents/docx/index.js.map +1 -0
- package/dist/documents/docx/kinds.d.ts +10 -0
- package/dist/documents/docx/kinds.d.ts.map +1 -0
- package/dist/documents/docx/kinds.js +11 -0
- package/dist/documents/docx/kinds.js.map +1 -0
- package/dist/documents/docx/plugin/docx.plugin.d.ts +9 -0
- package/dist/documents/docx/plugin/docx.plugin.d.ts.map +1 -0
- package/dist/documents/docx/plugin/docx.plugin.js +35 -0
- package/dist/documents/docx/plugin/docx.plugin.js.map +1 -0
- package/dist/documents/docx/schemas/generator.d.ts +10 -0
- package/dist/documents/docx/schemas/generator.d.ts.map +1 -0
- package/dist/documents/docx/schemas/generator.js +2 -0
- package/dist/documents/docx/schemas/generator.js.map +1 -0
- package/dist/documents/docx/schemas/index.d.ts +4 -0
- package/dist/documents/docx/schemas/index.d.ts.map +1 -0
- package/dist/documents/docx/schemas/index.js +2 -0
- package/dist/documents/docx/schemas/index.js.map +1 -0
- package/dist/documents/docx/schemas/runtime.d.ts +68 -0
- package/dist/documents/docx/schemas/runtime.d.ts.map +1 -0
- package/dist/documents/docx/schemas/runtime.js +30 -0
- package/dist/documents/docx/schemas/runtime.js.map +1 -0
- package/dist/documents/docx/schemas/template-registry.d.ts +21 -0
- package/dist/documents/docx/schemas/template-registry.d.ts.map +1 -0
- package/dist/documents/docx/schemas/template-registry.js +2 -0
- package/dist/documents/docx/schemas/template-registry.js.map +1 -0
- package/dist/documents/docx/templates/index.d.ts +3 -0
- package/dist/documents/docx/templates/index.d.ts.map +1 -0
- package/dist/documents/docx/templates/index.js +2 -0
- package/dist/documents/docx/templates/index.js.map +1 -0
- package/dist/documents/docx/templates/loader.d.ts +20 -0
- package/dist/documents/docx/templates/loader.d.ts.map +1 -0
- package/dist/documents/docx/templates/loader.js +36 -0
- package/dist/documents/docx/templates/loader.js.map +1 -0
- package/dist/documents/docx/templates/types.d.ts +2 -0
- package/dist/documents/docx/templates/types.d.ts.map +1 -0
- package/dist/documents/docx/templates/types.js +2 -0
- package/dist/documents/docx/templates/types.js.map +1 -0
- package/dist/documents/index.d.ts +4 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/index.js +4 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/outline/parse-outline.d.ts +132 -0
- package/dist/documents/outline/parse-outline.d.ts.map +1 -0
- package/dist/documents/outline/parse-outline.js +246 -0
- package/dist/documents/outline/parse-outline.js.map +1 -0
- package/dist/documents/plugin.d.ts +3 -0
- package/dist/documents/plugin.d.ts.map +1 -0
- package/dist/documents/plugin.js +13 -0
- package/dist/documents/plugin.js.map +1 -0
- package/dist/documents/presentations/capabilities/index.d.ts +3 -0
- package/dist/documents/presentations/capabilities/index.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/index.js +3 -0
- package/dist/documents/presentations/capabilities/index.js.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.d.ts +333 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.js +101 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.js.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.d.ts +65 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.js +152 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.js.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.d.ts +68 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.js +100 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.js.map +1 -0
- package/dist/documents/presentations/client/contracts.d.ts +20 -0
- package/dist/documents/presentations/client/contracts.d.ts.map +1 -0
- package/dist/documents/presentations/client/contracts.js +2 -0
- package/dist/documents/presentations/client/contracts.js.map +1 -0
- package/dist/documents/presentations/client/index.d.ts +5 -0
- package/dist/documents/presentations/client/index.d.ts.map +1 -0
- package/dist/documents/presentations/client/index.js +5 -0
- package/dist/documents/presentations/client/index.js.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.d.ts +4 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.d.ts.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.js +13 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.js.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.d.ts +711 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.d.ts.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.js +72 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.js.map +1 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.d.ts +4 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.d.ts.map +1 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.js +54 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.js.map +1 -0
- package/dist/documents/presentations/index.d.ts +8 -0
- package/dist/documents/presentations/index.d.ts.map +1 -0
- package/dist/documents/presentations/index.js +8 -0
- package/dist/documents/presentations/index.js.map +1 -0
- package/dist/documents/presentations/presentations.consumer.plugin.d.ts +4 -0
- package/dist/documents/presentations/presentations.consumer.plugin.d.ts.map +1 -0
- package/dist/documents/presentations/presentations.consumer.plugin.js +16 -0
- package/dist/documents/presentations/presentations.consumer.plugin.js.map +1 -0
- package/dist/documents/presentations/presentations.plugin.d.ts +3 -0
- package/dist/documents/presentations/presentations.plugin.d.ts.map +1 -0
- package/dist/documents/presentations/presentations.plugin.js +48 -0
- package/dist/documents/presentations/presentations.plugin.js.map +1 -0
- package/dist/documents/presentations/review-read-authority.d.ts +117 -0
- package/dist/documents/presentations/review-read-authority.d.ts.map +1 -0
- package/dist/documents/presentations/review-read-authority.js +74 -0
- package/dist/documents/presentations/review-read-authority.js.map +1 -0
- package/dist/documents/presentations/schemas/index.d.ts +5 -0
- package/dist/documents/presentations/schemas/index.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/index.js +5 -0
- package/dist/documents/presentations/schemas/index.js.map +1 -0
- package/dist/documents/presentations/schemas/owner.d.ts +28 -0
- package/dist/documents/presentations/schemas/owner.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/owner.js +18 -0
- package/dist/documents/presentations/schemas/owner.js.map +1 -0
- package/dist/documents/presentations/schemas/request.d.ts +325 -0
- package/dist/documents/presentations/schemas/request.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/request.js +169 -0
- package/dist/documents/presentations/schemas/request.js.map +1 -0
- package/dist/documents/presentations/schemas/review.d.ts +154 -0
- package/dist/documents/presentations/schemas/review.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/review.js +83 -0
- package/dist/documents/presentations/schemas/review.js.map +1 -0
- package/dist/documents/presentations/schemas/surface.d.ts +315 -0
- package/dist/documents/presentations/schemas/surface.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/surface.js +125 -0
- package/dist/documents/presentations/schemas/surface.js.map +1 -0
- package/dist/documents/presentations/state-machine.d.ts +36 -0
- package/dist/documents/presentations/state-machine.d.ts.map +1 -0
- package/dist/documents/presentations/state-machine.js +158 -0
- package/dist/documents/presentations/state-machine.js.map +1 -0
- package/dist/documents/presentations/storage/index.d.ts +3 -0
- package/dist/documents/presentations/storage/index.d.ts.map +1 -0
- package/dist/documents/presentations/storage/index.js +3 -0
- package/dist/documents/presentations/storage/index.js.map +1 -0
- package/dist/documents/presentations/storage/owner-app.d.ts +12 -0
- package/dist/documents/presentations/storage/owner-app.d.ts.map +1 -0
- package/dist/documents/presentations/storage/owner-app.js +43 -0
- package/dist/documents/presentations/storage/owner-app.js.map +1 -0
- package/dist/documents/presentations/storage/owner-transforms.d.ts +476 -0
- package/dist/documents/presentations/storage/owner-transforms.d.ts.map +1 -0
- package/dist/documents/presentations/storage/owner-transforms.js +77 -0
- package/dist/documents/presentations/storage/owner-transforms.js.map +1 -0
- package/dist/documents/presentations/storage/records.d.ts +227 -0
- package/dist/documents/presentations/storage/records.d.ts.map +1 -0
- package/dist/documents/presentations/storage/records.js +145 -0
- package/dist/documents/presentations/storage/records.js.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.d.ts +543 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.d.ts.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.js +47 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.js.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.d.ts +8 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.d.ts.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.js +68 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.js.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.d.ts +504 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.d.ts.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.js +76 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.js.map +1 -0
- package/dist/documents/render/grid.d.ts +96 -0
- package/dist/documents/render/grid.d.ts.map +1 -0
- package/dist/documents/render/grid.js +115 -0
- package/dist/documents/render/grid.js.map +1 -0
- package/dist/documents/render/index.d.ts +2 -0
- package/dist/documents/render/index.d.ts.map +1 -0
- package/dist/documents/render/index.js +2 -0
- package/dist/documents/render/index.js.map +1 -0
- package/dist/documents/render/render.impl.cloud.d.ts +25 -0
- package/dist/documents/render/render.impl.cloud.d.ts.map +1 -0
- package/dist/documents/render/render.impl.cloud.js +245 -0
- package/dist/documents/render/render.impl.cloud.js.map +1 -0
- package/dist/documents/render/render.impl.consumer.d.ts +35 -0
- package/dist/documents/render/render.impl.consumer.d.ts.map +1 -0
- package/dist/documents/render/render.impl.consumer.js +104 -0
- package/dist/documents/render/render.impl.consumer.js.map +1 -0
- package/dist/documents/render/render.interface.d.ts +147 -0
- package/dist/documents/render/render.interface.d.ts.map +1 -0
- package/dist/documents/render/render.interface.js +90 -0
- package/dist/documents/render/render.interface.js.map +1 -0
- package/dist/documents/schemas/ai-service-binding.schema.d.ts +11 -0
- package/dist/documents/schemas/ai-service-binding.schema.d.ts.map +1 -0
- package/dist/documents/schemas/ai-service-binding.schema.js +8 -0
- package/dist/documents/schemas/ai-service-binding.schema.js.map +1 -0
- package/dist/documents/schemas/document-read.schema.d.ts +107 -0
- package/dist/documents/schemas/document-read.schema.d.ts.map +1 -0
- package/dist/documents/schemas/document-read.schema.js +124 -0
- package/dist/documents/schemas/document-read.schema.js.map +1 -0
- package/dist/documents/schemas/document-view.schema.d.ts +74 -0
- package/dist/documents/schemas/document-view.schema.d.ts.map +1 -0
- package/dist/documents/schemas/document-view.schema.js +66 -0
- package/dist/documents/schemas/document-view.schema.js.map +1 -0
- package/dist/documents/schemas/index.d.ts +3 -0
- package/dist/documents/schemas/index.d.ts.map +1 -0
- package/dist/documents/schemas/index.js +3 -0
- package/dist/documents/schemas/index.js.map +1 -0
- package/dist/documents/schemas/page-cache.schema.d.ts +29 -0
- package/dist/documents/schemas/page-cache.schema.d.ts.map +1 -0
- package/dist/documents/schemas/page-cache.schema.js +50 -0
- package/dist/documents/schemas/page-cache.schema.js.map +1 -0
- package/dist/documents/storage/index.d.ts +3 -0
- package/dist/documents/storage/index.d.ts.map +1 -0
- package/dist/documents/storage/index.js +2 -0
- package/dist/documents/storage/index.js.map +1 -0
- package/dist/documents/storage/page-cache.descriptor.d.ts +17 -0
- package/dist/documents/storage/page-cache.descriptor.d.ts.map +1 -0
- package/dist/documents/storage/page-cache.descriptor.js +45 -0
- package/dist/documents/storage/page-cache.descriptor.js.map +1 -0
- package/dist/documents/tools/descriptors.d.ts +248 -0
- package/dist/documents/tools/descriptors.d.ts.map +1 -0
- package/dist/documents/tools/descriptors.js +78 -0
- package/dist/documents/tools/descriptors.js.map +1 -0
- package/dist/documents/tools/document-read-loop-guard.d.ts +61 -0
- package/dist/documents/tools/document-read-loop-guard.d.ts.map +1 -0
- package/dist/documents/tools/document-read-loop-guard.js +314 -0
- package/dist/documents/tools/document-read-loop-guard.js.map +1 -0
- package/dist/documents/tools/document-read.impl.d.ts +77 -0
- package/dist/documents/tools/document-read.impl.d.ts.map +1 -0
- package/dist/documents/tools/document-read.impl.js +1139 -0
- package/dist/documents/tools/document-read.impl.js.map +1 -0
- package/dist/documents/tools/document-view.impl.d.ts +45 -0
- package/dist/documents/tools/document-view.impl.d.ts.map +1 -0
- package/dist/documents/tools/document-view.impl.js +168 -0
- package/dist/documents/tools/document-view.impl.js.map +1 -0
- package/dist/documents/tools/index.d.ts +3 -0
- package/dist/documents/tools/index.d.ts.map +1 -0
- package/dist/documents/tools/index.js +6 -0
- package/dist/documents/tools/index.js.map +1 -0
- package/dist/documents/tools/source-refresh.d.ts +33 -0
- package/dist/documents/tools/source-refresh.d.ts.map +1 -0
- package/dist/documents/tools/source-refresh.js +127 -0
- package/dist/documents/tools/source-refresh.js.map +1 -0
- package/dist/documents/tools/unavailable.impl.d.ts +5 -0
- package/dist/documents/tools/unavailable.impl.d.ts.map +1 -0
- package/dist/documents/tools/unavailable.impl.js +12 -0
- package/dist/documents/tools/unavailable.impl.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.d.ts +113 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.d.ts.map +1 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.js +35 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.js.map +1 -0
- package/dist/render/ansi.d.ts +86 -0
- package/dist/render/ansi.d.ts.map +1 -0
- package/dist/render/ansi.js +125 -0
- package/dist/render/ansi.js.map +1 -0
- package/dist/render/frontmatter.d.ts +21 -0
- package/dist/render/frontmatter.d.ts.map +1 -0
- package/dist/render/frontmatter.js +57 -0
- package/dist/render/frontmatter.js.map +1 -0
- package/dist/render/index.d.ts +10 -0
- package/dist/render/index.d.ts.map +1 -0
- package/dist/render/index.js +6 -0
- package/dist/render/index.js.map +1 -0
- package/dist/render/parse.d.ts +29 -0
- package/dist/render/parse.d.ts.map +1 -0
- package/dist/render/parse.js +145 -0
- package/dist/render/parse.js.map +1 -0
- package/dist/render/sections.d.ts +24 -0
- package/dist/render/sections.d.ts.map +1 -0
- package/dist/render/sections.js +76 -0
- package/dist/render/sections.js.map +1 -0
- package/dist/render/terminal.d.ts +15 -0
- package/dist/render/terminal.d.ts.map +1 -0
- package/dist/render/terminal.js +293 -0
- package/dist/render/terminal.js.map +1 -0
- package/dist/runbooks/index.d.ts +4 -0
- package/dist/runbooks/index.d.ts.map +1 -0
- package/dist/runbooks/index.js +3 -0
- package/dist/runbooks/index.js.map +1 -0
- package/dist/runbooks/runbooks.plugin.d.ts +3 -0
- package/dist/runbooks/runbooks.plugin.d.ts.map +1 -0
- package/dist/runbooks/runbooks.plugin.js +3 -0
- package/dist/runbooks/runbooks.plugin.js.map +1 -0
- package/dist/schemas/citations.schema.d.ts +21 -0
- package/dist/schemas/citations.schema.d.ts.map +1 -0
- package/dist/schemas/citations.schema.js +17 -0
- package/dist/schemas/citations.schema.js.map +1 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/topic.schema.d.ts +179 -0
- package/dist/schemas/topic.schema.d.ts.map +1 -0
- package/dist/schemas/topic.schema.js +15 -0
- package/dist/schemas/topic.schema.js.map +1 -0
- package/dist/svelte/build/highlight.d.ts +33 -0
- package/dist/svelte/build/highlight.d.ts.map +1 -0
- package/dist/svelte/build/highlight.js +95 -0
- package/dist/svelte/build/topic-index.d.ts +96 -0
- package/dist/svelte/build/topic-index.d.ts.map +1 -0
- package/dist/svelte/build/topic-index.js +247 -0
- package/dist/svelte/context.d.ts +12 -0
- package/dist/svelte/context.d.ts.map +1 -0
- package/dist/svelte/context.js +16 -0
- package/dist/svelte/docs-origin.d.ts +14 -0
- package/dist/svelte/docs-origin.d.ts.map +1 -0
- package/dist/svelte/docs-origin.js +49 -0
- package/dist/svelte/docs-svelte.plugin.d.ts +121 -0
- package/dist/svelte/docs-svelte.plugin.d.ts.map +1 -0
- package/dist/svelte/docs-svelte.plugin.js +35 -0
- package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte +261 -0
- package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte.d.ts +16 -0
- package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte.d.ts.map +1 -0
- package/dist/svelte/documents/presentations/index.d.ts +3 -0
- package/dist/svelte/documents/presentations/index.d.ts.map +1 -0
- package/dist/svelte/documents/presentations/index.js +2 -0
- package/dist/svelte/documents/presentations/monitor-state.d.ts +17 -0
- package/dist/svelte/documents/presentations/monitor-state.d.ts.map +1 -0
- package/dist/svelte/documents/presentations/monitor-state.js +38 -0
- package/dist/svelte/index.d.ts +20 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +16 -0
- package/dist/svelte/loaders.d.ts +57 -0
- package/dist/svelte/loaders.d.ts.map +1 -0
- package/dist/svelte/loaders.js +74 -0
- package/dist/svelte/state.svelte.d.ts +366 -0
- package/dist/svelte/state.svelte.d.ts.map +1 -0
- package/dist/svelte/state.svelte.js +155 -0
- package/dist/svelte/styles.css +8 -0
- package/dist/svelte/tool-widgets/DocsToolCard.svelte +41 -0
- package/dist/svelte/tool-widgets/DocsToolCard.svelte.d.ts +5 -0
- package/dist/svelte/tool-widgets/DocsToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte +28 -0
- package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte.d.ts +8 -0
- package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/PresentationsToolCard.svelte +25 -0
- package/dist/svelte/tool-widgets/PresentationsToolCard.svelte.d.ts +8 -0
- package/dist/svelte/tool-widgets/PresentationsToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/RunbookToolCard.svelte +29 -0
- package/dist/svelte/tool-widgets/RunbookToolCard.svelte.d.ts +8 -0
- package/dist/svelte/tool-widgets/RunbookToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.d.ts +7 -0
- package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.js +5 -0
- package/dist/svelte/tool-widgets/models.d.ts +47 -0
- package/dist/svelte/tool-widgets/models.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/models.js +112 -0
- package/dist/svelte/ui/DocViewer.svelte +122 -0
- package/dist/svelte/ui/DocViewer.svelte.d.ts +17 -0
- package/dist/svelte/ui/DocViewer.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/DocsLoader.svelte +37 -0
- package/dist/svelte/ui/DocsLoader.svelte.d.ts +21 -0
- package/dist/svelte/ui/DocsLoader.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/DocsSearch.svelte +129 -0
- package/dist/svelte/ui/DocsSearch.svelte.d.ts +15 -0
- package/dist/svelte/ui/DocsSearch.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Card.svelte +61 -0
- package/dist/svelte/ui/directives/Card.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Card.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Descriptor.svelte +73 -0
- package/dist/svelte/ui/directives/Descriptor.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Descriptor.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/DirectiveDispatch.svelte +45 -0
- package/dist/svelte/ui/directives/DirectiveDispatch.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/DirectiveDispatch.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Endpoint.svelte +68 -0
- package/dist/svelte/ui/directives/Endpoint.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Endpoint.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Install.svelte +112 -0
- package/dist/svelte/ui/directives/Install.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Install.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Shell.svelte +32 -0
- package/dist/svelte/ui/directives/Shell.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Shell.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Usage.svelte +14 -0
- package/dist/svelte/ui/directives/Usage.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Usage.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/help/HelpDialog.svelte +210 -0
- package/dist/svelte/ui/help/HelpDialog.svelte.d.ts +11 -0
- package/dist/svelte/ui/help/HelpDialog.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/help/HelpIcon.svelte +83 -0
- package/dist/svelte/ui/help/HelpIcon.svelte.d.ts +16 -0
- package/dist/svelte/ui/help/HelpIcon.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/markdown/CodeBlock.svelte +125 -0
- package/dist/svelte/ui/markdown/CodeBlock.svelte.d.ts +8 -0
- package/dist/svelte/ui/markdown/CodeBlock.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/markdown/MarkdownView.svelte +319 -0
- package/dist/svelte/ui/markdown/MarkdownView.svelte.d.ts +9 -0
- package/dist/svelte/ui/markdown/MarkdownView.svelte.d.ts.map +1 -0
- package/dist/tools/docs.descriptor.d.ts +48 -0
- package/dist/tools/docs.descriptor.d.ts.map +1 -0
- package/dist/tools/docs.descriptor.js +23 -0
- package/dist/tools/docs.descriptor.js.map +1 -0
- package/dist/tools/docs.impl.d.ts +7 -0
- package/dist/tools/docs.impl.d.ts.map +1 -0
- package/dist/tools/docs.impl.js +67 -0
- package/dist/tools/docs.impl.js.map +1 -0
- package/dist/tools/schemas.d.ts +43 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +30 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tui/docs-tui.plugin.d.ts +3 -0
- package/dist/tui/docs-tui.plugin.d.ts.map +1 -0
- package/dist/tui/docs-tui.plugin.js +18 -0
- package/dist/tui/docs-tui.plugin.js.map +1 -0
- package/dist/tui/index.d.ts +2 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +2 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.d.ts +38 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.d.ts.map +1 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.js +334 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.js.map +1 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.d.ts +13 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.d.ts.map +1 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.js +29 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.js.map +1 -0
- package/package.json +450 -4
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `document.view` — the agent-vision drawing tool.
|
|
3
|
+
*
|
|
4
|
+
* Where `document.read` hands the model a TRANSCRIPTION produced by a separate OCR
|
|
5
|
+
* model, `document.view` hands the model the RENDERED PIXELS of the sheet and lets it
|
|
6
|
+
* look for itself. It is how a vision agent (e.g. Grok 4.5) reads a construction /
|
|
7
|
+
* millwork drawing the way a human estimator does: take in the whole sheet to orient,
|
|
8
|
+
* then zoom into a region to read dimensions and labels.
|
|
9
|
+
*
|
|
10
|
+
* The image is delivered to the agent as a real image block via the loop's
|
|
11
|
+
* multimodal-tool-result path (`agentImages`), NOT as base64 in the text result.
|
|
12
|
+
*/
|
|
13
|
+
import * as z from 'zod/v4';
|
|
14
|
+
/** A zoom region as fractions of the sheet (0..1, top-left origin). */
|
|
15
|
+
export declare const DocumentViewRegionSchema: z.ZodObject<{
|
|
16
|
+
x: z.ZodNumber;
|
|
17
|
+
y: z.ZodNumber;
|
|
18
|
+
w: z.ZodNumber;
|
|
19
|
+
h: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type DocumentViewRegion = z.infer<typeof DocumentViewRegionSchema>;
|
|
22
|
+
export declare const DocumentViewInputSchema: z.ZodObject<{
|
|
23
|
+
ref: z.ZodObject<{
|
|
24
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
path: z.ZodOptional<z.ZodString>;
|
|
26
|
+
url: z.ZodOptional<z.ZodString>;
|
|
27
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
sourceRefreshUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
page: z.ZodNumber;
|
|
31
|
+
region: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
x: z.ZodNumber;
|
|
33
|
+
y: z.ZodNumber;
|
|
34
|
+
w: z.ZodNumber;
|
|
35
|
+
h: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
dpi: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type DocumentViewInput = z.infer<typeof DocumentViewInputSchema>;
|
|
40
|
+
/** One rendered image handed to the agent (matches the loop's AgentToolResultImage). */
|
|
41
|
+
export declare const DocumentViewImageSchema: z.ZodObject<{
|
|
42
|
+
data: z.ZodString;
|
|
43
|
+
mimeType: z.ZodString;
|
|
44
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
low: "low";
|
|
46
|
+
high: "high";
|
|
47
|
+
auto: "auto";
|
|
48
|
+
}>>;
|
|
49
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const DocumentViewOutputSchema: z.ZodObject<{
|
|
52
|
+
page: z.ZodNumber;
|
|
53
|
+
region: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
x: z.ZodNumber;
|
|
55
|
+
y: z.ZodNumber;
|
|
56
|
+
w: z.ZodNumber;
|
|
57
|
+
h: z.ZodNumber;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
imageWidth: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
imageHeight: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
agentImages: z.ZodArray<z.ZodObject<{
|
|
62
|
+
data: z.ZodString;
|
|
63
|
+
mimeType: z.ZodString;
|
|
64
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
low: "low";
|
|
66
|
+
high: "high";
|
|
67
|
+
auto: "auto";
|
|
68
|
+
}>>;
|
|
69
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
note: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type DocumentViewOutput = z.infer<typeof DocumentViewOutputSchema>;
|
|
74
|
+
//# sourceMappingURL=document-view.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-view.schema.d.ts","sourceRoot":"","sources":["../../../src/documents/schemas/document-view.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,uEAAuE;AACvE,eAAO,MAAM,wBAAwB;;;;;iBASnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;iBAiBlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,wFAAwF;AACxF,eAAO,MAAM,uBAAuB;;;;;;;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;iBAcnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `document.view` — the agent-vision drawing tool.
|
|
3
|
+
*
|
|
4
|
+
* Where `document.read` hands the model a TRANSCRIPTION produced by a separate OCR
|
|
5
|
+
* model, `document.view` hands the model the RENDERED PIXELS of the sheet and lets it
|
|
6
|
+
* look for itself. It is how a vision agent (e.g. Grok 4.5) reads a construction /
|
|
7
|
+
* millwork drawing the way a human estimator does: take in the whole sheet to orient,
|
|
8
|
+
* then zoom into a region to read dimensions and labels.
|
|
9
|
+
*
|
|
10
|
+
* The image is delivered to the agent as a real image block via the loop's
|
|
11
|
+
* multimodal-tool-result path (`agentImages`), NOT as base64 in the text result.
|
|
12
|
+
*/
|
|
13
|
+
import * as z from 'zod/v4';
|
|
14
|
+
import { DocumentRefSchema } from "./document-read.schema.js";
|
|
15
|
+
/** A zoom region as fractions of the sheet (0..1, top-left origin). */
|
|
16
|
+
export const DocumentViewRegionSchema = z.object({
|
|
17
|
+
/** Left edge, 0..1 across the sheet width. */
|
|
18
|
+
x: z.number().min(0).max(1),
|
|
19
|
+
/** Top edge, 0..1 down the sheet height. */
|
|
20
|
+
y: z.number().min(0).max(1),
|
|
21
|
+
/** Region width, 0..1 of the sheet width. */
|
|
22
|
+
w: z.number().min(0.01).max(1),
|
|
23
|
+
/** Region height, 0..1 of the sheet height. */
|
|
24
|
+
h: z.number().min(0.01).max(1)
|
|
25
|
+
});
|
|
26
|
+
export const DocumentViewInputSchema = z.object({
|
|
27
|
+
/** Identifies the source document (same ref shape as document.read). */
|
|
28
|
+
ref: DocumentRefSchema,
|
|
29
|
+
/** 1-based page/sheet number to render. */
|
|
30
|
+
page: z.number().int().positive(),
|
|
31
|
+
/**
|
|
32
|
+
* Optional zoom region in 0..1 sheet fractions. OMIT to get the whole sheet
|
|
33
|
+
* (downscaled to orient); SET it to lean in and read a region at high resolution.
|
|
34
|
+
* Pick the region from what you saw in a prior whole-sheet view.
|
|
35
|
+
*/
|
|
36
|
+
region: DocumentViewRegionSchema.optional(),
|
|
37
|
+
/**
|
|
38
|
+
* Optional render DPI override. Defaults are chosen for you: a modest DPI for the
|
|
39
|
+
* whole-sheet overview (fast, fits the vision budget) and a high DPI for a zoom
|
|
40
|
+
* (so small dimension text is legible).
|
|
41
|
+
*/
|
|
42
|
+
dpi: z.number().int().positive().max(600).optional()
|
|
43
|
+
});
|
|
44
|
+
/** One rendered image handed to the agent (matches the loop's AgentToolResultImage). */
|
|
45
|
+
export const DocumentViewImageSchema = z.object({
|
|
46
|
+
data: z.string(),
|
|
47
|
+
mimeType: z.string(),
|
|
48
|
+
detail: z.enum(['auto', 'low', 'high']).optional(),
|
|
49
|
+
caption: z.string().optional()
|
|
50
|
+
});
|
|
51
|
+
export const DocumentViewOutputSchema = z.object({
|
|
52
|
+
page: z.number().int().positive(),
|
|
53
|
+
/** The region rendered, when a zoom was requested. */
|
|
54
|
+
region: DocumentViewRegionSchema.optional(),
|
|
55
|
+
/** Rendered image pixel dimensions, when the renderer reports them. */
|
|
56
|
+
imageWidth: z.number().optional(),
|
|
57
|
+
imageHeight: z.number().optional(),
|
|
58
|
+
/**
|
|
59
|
+
* The rendered image(s), delivered to a vision model as real image blocks by the
|
|
60
|
+
* agent loop. Reserved field name — see the loop's AGENT_IMAGES_RESULT_FIELD.
|
|
61
|
+
*/
|
|
62
|
+
agentImages: z.array(DocumentViewImageSchema),
|
|
63
|
+
/** A short instruction to the agent on how to proceed (orient → zoom). */
|
|
64
|
+
note: z.string()
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=document-view.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-view.schema.js","sourceRoot":"","sources":["../../../src/documents/schemas/document-view.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,uEAAuE;AACvE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,8CAA8C;IAC9C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,4CAA4C;IAC5C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,6CAA6C;IAC7C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,+CAA+C;IAC/C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,wEAAwE;IACxE,GAAG,EAAE,iBAAiB;IACtB,2CAA2C;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC3C;;;;OAIG;IACH,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAGH,wFAAwF;AACxF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,sDAAsD;IACtD,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC3C,uEAAuE;IACvE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC;;;OAGG;IACH,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IAC7C,0EAA0E;IAC1E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/documents/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/documents/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* documents.page-cache record schema.
|
|
3
|
+
*
|
|
4
|
+
* Shape of individual cache records stored by the `documents.page-cache`
|
|
5
|
+
* storage manifest. One record per (ref × page × renderProfile × promptVersion)
|
|
6
|
+
* tuple. MCP-safe: no .refine(), .transform(), .pipe(), or .preprocess().
|
|
7
|
+
*/
|
|
8
|
+
import * as z from 'zod/v4';
|
|
9
|
+
export declare const DocumentPageCacheRecordSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
ref: z.ZodObject<{
|
|
12
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
path: z.ZodOptional<z.ZodString>;
|
|
14
|
+
url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
sourceRefreshUrl: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
page: z.ZodNumber;
|
|
19
|
+
renderProfile: z.ZodString;
|
|
20
|
+
promptVersion: z.ZodString;
|
|
21
|
+
ocrMarkdown: z.ZodString;
|
|
22
|
+
extractRows: z.ZodOptional<z.ZodArray<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>;
|
|
23
|
+
quality: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>;
|
|
24
|
+
ocrModelId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sourceHash: z.ZodString;
|
|
26
|
+
renderedAt: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type DocumentPageCacheRecord = z.infer<typeof DocumentPageCacheRecordSchema>;
|
|
29
|
+
//# sourceMappingURL=page-cache.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-cache.schema.d.ts","sourceRoot":"","sources":["../../../src/documents/schemas/page-cache.schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;iBAgDxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* documents.page-cache record schema.
|
|
3
|
+
*
|
|
4
|
+
* Shape of individual cache records stored by the `documents.page-cache`
|
|
5
|
+
* storage manifest. One record per (ref × page × renderProfile × promptVersion)
|
|
6
|
+
* tuple. MCP-safe: no .refine(), .transform(), .pipe(), or .preprocess().
|
|
7
|
+
*/
|
|
8
|
+
import * as z from 'zod/v4';
|
|
9
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
10
|
+
import { DocumentRefSchema } from "./document-read.schema.js";
|
|
11
|
+
export const DocumentPageCacheRecordSchema = z.object({
|
|
12
|
+
/** Stable unique identifier for this cache record (cache key). */
|
|
13
|
+
id: z.string(),
|
|
14
|
+
/** Reference to the source document — mirrors DocumentReadInput.ref. */
|
|
15
|
+
ref: DocumentRefSchema,
|
|
16
|
+
/** 1-based page number this record covers. */
|
|
17
|
+
page: z.number().int().positive(),
|
|
18
|
+
/**
|
|
19
|
+
* Render profile string that was used to produce the page image
|
|
20
|
+
* (e.g. "overview-96dpi", "tile-300dpi", "high-dpi-600dpi").
|
|
21
|
+
*/
|
|
22
|
+
renderProfile: z.string(),
|
|
23
|
+
/**
|
|
24
|
+
* Prompt version string at the time the record was written. Used as a
|
|
25
|
+
* cache-invalidation key — a new version bypasses any existing record.
|
|
26
|
+
*/
|
|
27
|
+
promptVersion: z.string(),
|
|
28
|
+
/** Full OCR/vision markdown text for this page. */
|
|
29
|
+
ocrMarkdown: z.string(),
|
|
30
|
+
/**
|
|
31
|
+
* Structured rows extracted from this page, when the original request
|
|
32
|
+
* included a JSON-schema. Null/undefined for plain markdown reads.
|
|
33
|
+
*/
|
|
34
|
+
extractRows: z.array(JsonValueSchema).optional(),
|
|
35
|
+
/**
|
|
36
|
+
* Quality metadata returned by the OCR/extract model
|
|
37
|
+
* (confidence scores, bounding-box coverage, etc.).
|
|
38
|
+
*/
|
|
39
|
+
quality: z.record(z.string(), JsonValueSchema).optional(),
|
|
40
|
+
/** Model id used for OCR/vision on this record. */
|
|
41
|
+
ocrModelId: z.string().optional(),
|
|
42
|
+
/**
|
|
43
|
+
* Hash of the rendered page bytes — used to detect source document changes
|
|
44
|
+
* even when the ref and page number are identical.
|
|
45
|
+
*/
|
|
46
|
+
sourceHash: z.string(),
|
|
47
|
+
/** ISO-8601 timestamp at which this record was last written. */
|
|
48
|
+
renderedAt: z.string()
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=page-cache.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-cache.schema.js","sourceRoot":"","sources":["../../../src/documents/schemas/page-cache.schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,kEAAkE;IAClE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IAEd,wEAAwE;IACxE,GAAG,EAAE,iBAAiB;IAEtB,8CAA8C;IAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAEjC;;;OAGG;IACH,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IAEzB;;;OAGG;IACH,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IAEzB,mDAAmD;IACnD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IAEvB;;;OAGG;IACH,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAEhD;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC,QAAQ,EAAE;IAEzD,mDAAmD;IACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEjC;;;OAGG;IACH,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IAEtB,gEAAgE;IAChE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/documents/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/documents/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* documents.page-cache storage manifest descriptor.
|
|
3
|
+
*
|
|
4
|
+
* Declares the persisted shape, allowed adapters, and per-scope selection
|
|
5
|
+
* hints for the document page cache. The cache stores one record per
|
|
6
|
+
* (ref × page × renderProfile × promptVersion) tuple.
|
|
7
|
+
*
|
|
8
|
+
* Implementation lives in `document-read.impl.ts`; the runtime resolver
|
|
9
|
+
* picks the adapter at query time:
|
|
10
|
+
* - consumer → storage.localdb / storage.json
|
|
11
|
+
* - cloud → storage.cloud-api against platform-web
|
|
12
|
+
* `/api/documents/page-cache` (vibesCrudCollection; ownerApp: platform).
|
|
13
|
+
*/
|
|
14
|
+
import type { StorageManifestDescriptor } from '@vibesdotdev/storage';
|
|
15
|
+
export declare const documentPageCacheDescriptor: StorageManifestDescriptor;
|
|
16
|
+
export default documentPageCacheDescriptor;
|
|
17
|
+
//# sourceMappingURL=page-cache.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-cache.descriptor.d.ts","sourceRoot":"","sources":["../../../src/documents/storage/page-cache.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAGtE,eAAO,MAAM,2BAA2B,EAAE,yBA6BzC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* documents.page-cache storage manifest descriptor.
|
|
3
|
+
*
|
|
4
|
+
* Declares the persisted shape, allowed adapters, and per-scope selection
|
|
5
|
+
* hints for the document page cache. The cache stores one record per
|
|
6
|
+
* (ref × page × renderProfile × promptVersion) tuple.
|
|
7
|
+
*
|
|
8
|
+
* Implementation lives in `document-read.impl.ts`; the runtime resolver
|
|
9
|
+
* picks the adapter at query time:
|
|
10
|
+
* - consumer → storage.localdb / storage.json
|
|
11
|
+
* - cloud → storage.cloud-api against platform-web
|
|
12
|
+
* `/api/documents/page-cache` (vibesCrudCollection; ownerApp: platform).
|
|
13
|
+
*/
|
|
14
|
+
import { DocumentPageCacheRecordSchema } from "../schemas/page-cache.schema.js";
|
|
15
|
+
export const documentPageCacheDescriptor = {
|
|
16
|
+
kind: 'storage/manifest',
|
|
17
|
+
id: 'documents.page-cache',
|
|
18
|
+
name: 'Document Page Cache',
|
|
19
|
+
description: 'Cached OCR/vision markdown per document page. Keyed by (ref × page × renderProfile × promptVersion).',
|
|
20
|
+
namespace: 'documents.page-cache',
|
|
21
|
+
schema: DocumentPageCacheRecordSchema,
|
|
22
|
+
dataType: 'records',
|
|
23
|
+
idField: 'id',
|
|
24
|
+
collectionField: 'records',
|
|
25
|
+
allowedAdapters: ['storage.json', 'storage.localdb', 'storage.cloud-api', 'storage.memory'],
|
|
26
|
+
defaultAdapter: 'storage.json',
|
|
27
|
+
adapterConfig: {
|
|
28
|
+
'storage.json': {
|
|
29
|
+
filename: 'documents-page-cache.json'
|
|
30
|
+
},
|
|
31
|
+
'storage.cloud-api': {
|
|
32
|
+
ownerApp: 'platform',
|
|
33
|
+
endpoint: '/api/documents/page-cache'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
scope: 'project',
|
|
37
|
+
sensitiveFields: [],
|
|
38
|
+
version: 1,
|
|
39
|
+
customTables: false,
|
|
40
|
+
internal: false,
|
|
41
|
+
enabled: true,
|
|
42
|
+
tags: ['documents', 'cache', 'ocr']
|
|
43
|
+
};
|
|
44
|
+
export default documentPageCacheDescriptor;
|
|
45
|
+
//# sourceMappingURL=page-cache.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-cache.descriptor.js","sourceRoot":"","sources":["../../../src/documents/storage/page-cache.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,MAAM,CAAC,MAAM,2BAA2B,GAA8B;IACrE,IAAI,EAAE,kBAAkB;IACxB,EAAE,EAAE,sBAAsB;IAC1B,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACV,sGAAsG;IACvG,SAAS,EAAE,sBAAsB;IACjC,MAAM,EAAE,6BAA6B;IACrC,QAAQ,EAAE,SAAS;IACnB,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,SAAS;IAC1B,eAAe,EAAE,CAAC,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,gBAAgB,CAAC;IAC3F,cAAc,EAAE,cAAc;IAC9B,aAAa,EAAE;QACd,cAAc,EAAE;YACf,QAAQ,EAAE,2BAA2B;SACrC;QACD,mBAAmB,EAAE;YACpB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,2BAA2B;SACrC;KACD;IACD,KAAK,EAAE,SAAS;IAChB,eAAe,EAAE,EAAE;IACnB,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC;CACnC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document agent-tool descriptors.
|
|
3
|
+
*
|
|
4
|
+
* Declares the `document.read` tool via `createRuntimeAsset`. The impl
|
|
5
|
+
* (cache-first orchestration, render delegation, vision-OCR) lives in
|
|
6
|
+
* `document-read.impl.ts` and is loaded lazily by the plugin.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DOCUMENT_TOOL_IDS: readonly ["document.read", "document.view"];
|
|
9
|
+
export type DocumentToolId = (typeof DOCUMENT_TOOL_IDS)[number];
|
|
10
|
+
export declare function isDocumentToolId(value: string): value is DocumentToolId;
|
|
11
|
+
export declare const documentReadToolDescriptor: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
mcpDescription: string;
|
|
16
|
+
subcategory: string;
|
|
17
|
+
safety: string;
|
|
18
|
+
requiresApproval: boolean;
|
|
19
|
+
schemas: {
|
|
20
|
+
input: import("zod").ZodObject<{
|
|
21
|
+
ref: import("zod").ZodObject<{
|
|
22
|
+
providerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
documentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
+
sourceRefreshUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
}, import("zod/v4/core").$strip>;
|
|
28
|
+
pages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
29
|
+
question: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
schema: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
31
|
+
schemaId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
vocabulary: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
33
|
+
rowContainerKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
34
|
+
instructions: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
modelName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
visionFocusHint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
promptVersion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
}, import("zod/v4/core").$strip>;
|
|
39
|
+
output: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
40
|
+
kind: import("zod").ZodLiteral<"markdown">;
|
|
41
|
+
pages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
42
|
+
index: import("zod").ZodNumber;
|
|
43
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
text: import("zod").ZodString;
|
|
45
|
+
cacheHit: import("zod").ZodBoolean;
|
|
46
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
47
|
+
error: "error";
|
|
48
|
+
ready: "ready";
|
|
49
|
+
processing: "processing";
|
|
50
|
+
}>>;
|
|
51
|
+
cacheKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
jobId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
}, import("zod/v4/core").$strip>>;
|
|
55
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
56
|
+
kind: import("zod").ZodLiteral<"structured">;
|
|
57
|
+
rows: import("zod").ZodArray<import("zod").ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, import("zod/v4/core").$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>;
|
|
58
|
+
diagnostics: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, import("zod/v4/core").$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>;
|
|
59
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
60
|
+
};
|
|
61
|
+
usageGuidance: {
|
|
62
|
+
when: string;
|
|
63
|
+
commonPatterns: string[];
|
|
64
|
+
};
|
|
65
|
+
kind: "tools/tool";
|
|
66
|
+
hardware: readonly ["consumer", "cloud"];
|
|
67
|
+
purpose: readonly ["agent", "direct", "worker"];
|
|
68
|
+
category: string;
|
|
69
|
+
tags: string[];
|
|
70
|
+
};
|
|
71
|
+
export declare const documentViewToolDescriptor: {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
mcpDescription: string;
|
|
76
|
+
subcategory: string;
|
|
77
|
+
safety: string;
|
|
78
|
+
requiresApproval: boolean;
|
|
79
|
+
schemas: {
|
|
80
|
+
input: import("zod").ZodObject<{
|
|
81
|
+
ref: import("zod").ZodObject<{
|
|
82
|
+
providerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
83
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
documentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
sourceRefreshUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
}, import("zod/v4/core").$strip>;
|
|
88
|
+
page: import("zod").ZodNumber;
|
|
89
|
+
region: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
90
|
+
x: import("zod").ZodNumber;
|
|
91
|
+
y: import("zod").ZodNumber;
|
|
92
|
+
w: import("zod").ZodNumber;
|
|
93
|
+
h: import("zod").ZodNumber;
|
|
94
|
+
}, import("zod/v4/core").$strip>>;
|
|
95
|
+
dpi: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
96
|
+
}, import("zod/v4/core").$strip>;
|
|
97
|
+
output: import("zod").ZodObject<{
|
|
98
|
+
page: import("zod").ZodNumber;
|
|
99
|
+
region: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
100
|
+
x: import("zod").ZodNumber;
|
|
101
|
+
y: import("zod").ZodNumber;
|
|
102
|
+
w: import("zod").ZodNumber;
|
|
103
|
+
h: import("zod").ZodNumber;
|
|
104
|
+
}, import("zod/v4/core").$strip>>;
|
|
105
|
+
imageWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
106
|
+
imageHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
107
|
+
agentImages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
108
|
+
data: import("zod").ZodString;
|
|
109
|
+
mimeType: import("zod").ZodString;
|
|
110
|
+
detail: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
111
|
+
low: "low";
|
|
112
|
+
high: "high";
|
|
113
|
+
auto: "auto";
|
|
114
|
+
}>>;
|
|
115
|
+
caption: import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
+
}, import("zod/v4/core").$strip>>;
|
|
117
|
+
note: import("zod").ZodString;
|
|
118
|
+
}, import("zod/v4/core").$strip>;
|
|
119
|
+
};
|
|
120
|
+
usageGuidance: {
|
|
121
|
+
when: string;
|
|
122
|
+
commonPatterns: string[];
|
|
123
|
+
};
|
|
124
|
+
kind: "tools/tool";
|
|
125
|
+
hardware: readonly ["consumer", "cloud"];
|
|
126
|
+
purpose: readonly ["agent", "direct", "worker"];
|
|
127
|
+
category: string;
|
|
128
|
+
tags: string[];
|
|
129
|
+
};
|
|
130
|
+
export declare const documentToolDescriptors: readonly [{
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
description: string;
|
|
134
|
+
mcpDescription: string;
|
|
135
|
+
subcategory: string;
|
|
136
|
+
safety: string;
|
|
137
|
+
requiresApproval: boolean;
|
|
138
|
+
schemas: {
|
|
139
|
+
input: import("zod").ZodObject<{
|
|
140
|
+
ref: import("zod").ZodObject<{
|
|
141
|
+
providerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
142
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
143
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
144
|
+
documentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
145
|
+
sourceRefreshUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
146
|
+
}, import("zod/v4/core").$strip>;
|
|
147
|
+
pages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
148
|
+
question: import("zod").ZodOptional<import("zod").ZodString>;
|
|
149
|
+
schema: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
150
|
+
schemaId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
151
|
+
vocabulary: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
152
|
+
rowContainerKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
153
|
+
instructions: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
+
modelName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
|
+
visionFocusHint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
156
|
+
promptVersion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
157
|
+
}, import("zod/v4/core").$strip>;
|
|
158
|
+
output: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
159
|
+
kind: import("zod").ZodLiteral<"markdown">;
|
|
160
|
+
pages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
161
|
+
index: import("zod").ZodNumber;
|
|
162
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
163
|
+
text: import("zod").ZodString;
|
|
164
|
+
cacheHit: import("zod").ZodBoolean;
|
|
165
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
166
|
+
error: "error";
|
|
167
|
+
ready: "ready";
|
|
168
|
+
processing: "processing";
|
|
169
|
+
}>>;
|
|
170
|
+
cacheKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
171
|
+
jobId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
172
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
}, import("zod/v4/core").$strip>>;
|
|
174
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
175
|
+
kind: import("zod").ZodLiteral<"structured">;
|
|
176
|
+
rows: import("zod").ZodArray<import("zod").ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, import("zod/v4/core").$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>;
|
|
177
|
+
diagnostics: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, import("zod/v4/core").$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>;
|
|
178
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
179
|
+
};
|
|
180
|
+
usageGuidance: {
|
|
181
|
+
when: string;
|
|
182
|
+
commonPatterns: string[];
|
|
183
|
+
};
|
|
184
|
+
kind: "tools/tool";
|
|
185
|
+
hardware: readonly ["consumer", "cloud"];
|
|
186
|
+
purpose: readonly ["agent", "direct", "worker"];
|
|
187
|
+
category: string;
|
|
188
|
+
tags: string[];
|
|
189
|
+
}, {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
description: string;
|
|
193
|
+
mcpDescription: string;
|
|
194
|
+
subcategory: string;
|
|
195
|
+
safety: string;
|
|
196
|
+
requiresApproval: boolean;
|
|
197
|
+
schemas: {
|
|
198
|
+
input: import("zod").ZodObject<{
|
|
199
|
+
ref: import("zod").ZodObject<{
|
|
200
|
+
providerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
201
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
202
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
203
|
+
documentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
|
+
sourceRefreshUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
205
|
+
}, import("zod/v4/core").$strip>;
|
|
206
|
+
page: import("zod").ZodNumber;
|
|
207
|
+
region: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
208
|
+
x: import("zod").ZodNumber;
|
|
209
|
+
y: import("zod").ZodNumber;
|
|
210
|
+
w: import("zod").ZodNumber;
|
|
211
|
+
h: import("zod").ZodNumber;
|
|
212
|
+
}, import("zod/v4/core").$strip>>;
|
|
213
|
+
dpi: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
214
|
+
}, import("zod/v4/core").$strip>;
|
|
215
|
+
output: import("zod").ZodObject<{
|
|
216
|
+
page: import("zod").ZodNumber;
|
|
217
|
+
region: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
218
|
+
x: import("zod").ZodNumber;
|
|
219
|
+
y: import("zod").ZodNumber;
|
|
220
|
+
w: import("zod").ZodNumber;
|
|
221
|
+
h: import("zod").ZodNumber;
|
|
222
|
+
}, import("zod/v4/core").$strip>>;
|
|
223
|
+
imageWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
224
|
+
imageHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
225
|
+
agentImages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
226
|
+
data: import("zod").ZodString;
|
|
227
|
+
mimeType: import("zod").ZodString;
|
|
228
|
+
detail: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
229
|
+
low: "low";
|
|
230
|
+
high: "high";
|
|
231
|
+
auto: "auto";
|
|
232
|
+
}>>;
|
|
233
|
+
caption: import("zod").ZodOptional<import("zod").ZodString>;
|
|
234
|
+
}, import("zod/v4/core").$strip>>;
|
|
235
|
+
note: import("zod").ZodString;
|
|
236
|
+
}, import("zod/v4/core").$strip>;
|
|
237
|
+
};
|
|
238
|
+
usageGuidance: {
|
|
239
|
+
when: string;
|
|
240
|
+
commonPatterns: string[];
|
|
241
|
+
};
|
|
242
|
+
kind: "tools/tool";
|
|
243
|
+
hardware: readonly ["consumer", "cloud"];
|
|
244
|
+
purpose: readonly ["agent", "direct", "worker"];
|
|
245
|
+
category: string;
|
|
246
|
+
tags: string[];
|
|
247
|
+
}];
|
|
248
|
+
//# sourceMappingURL=descriptors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptors.d.ts","sourceRoot":"","sources":["../../../src/documents/tools/descriptors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,eAAO,MAAM,iBAAiB,6CAA8C,CAAC;AAE7E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAEvE;AAUD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BrC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoE,CAAC"}
|