@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,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consumer-scope DocumentRenderer implementation.
|
|
3
|
+
*
|
|
4
|
+
* Delegates page rendering to the PDF-OCR drainer process via HTTP.
|
|
5
|
+
* The drainer runs mupdf (native) and accepts internal render requests
|
|
6
|
+
* on its `/internal/render` endpoint.
|
|
7
|
+
*
|
|
8
|
+
* TODO(WS0): Wire VIBES_PDF_RENDER_ORIGIN in wrangler.toml / vibes config
|
|
9
|
+
* for the consumer environment. The drainer already exposes the endpoint;
|
|
10
|
+
* this impl just needs the origin bound.
|
|
11
|
+
*
|
|
12
|
+
* TODO(WS0): The drainer `/internal/render` request/response contract:
|
|
13
|
+
* POST ${VIBES_PDF_RENDER_ORIGIN}/internal/render
|
|
14
|
+
* Content-Type: application/json
|
|
15
|
+
* Body: { sourceUrl: string, page: number, clip?: { x, y, width, height }, dpi?: number }
|
|
16
|
+
* Response: { pngBase64: string }
|
|
17
|
+
*
|
|
18
|
+
* For renderOverview:
|
|
19
|
+
* POST ${VIBES_PDF_RENDER_ORIGIN}/internal/render
|
|
20
|
+
* Body: { sourceUrl: string, page: 0, dpi?: number } // page=0 = full overview
|
|
21
|
+
* Response: { pngBase64: string }
|
|
22
|
+
*/
|
|
23
|
+
import { CapabilityError, isCapabilityError, valueFreeFailure, settle } from '@vibesdotdev/kernel';
|
|
24
|
+
import * as z from 'zod/v4';
|
|
25
|
+
import { RenderPageClipInputSchema, createRenderPageClipResponseSchema } from "./render.interface.js";
|
|
26
|
+
const DrainerRenderRequestBodySchema = RenderPageClipInputSchema.omit({ maxEdge: true }).extend({ maxDim: RenderPageClipInputSchema.shape.maxEdge });
|
|
27
|
+
async function callDrainerRender(runtime, body) {
|
|
28
|
+
// TODO(WS0): bind VIBES_PDF_RENDER_ORIGIN to the consumer environment
|
|
29
|
+
const origin = runtime.getEnv('VIBES_PDF_RENDER_ORIGIN');
|
|
30
|
+
if (!origin) {
|
|
31
|
+
throw new CapabilityError('VIBES_PDF_RENDER_ORIGIN is not set. Bind it in the consumer environment config to enable PDF rendering.', 'UNAVAILABLE', { reason: 'pdf-render-origin-not-configured' });
|
|
32
|
+
}
|
|
33
|
+
const url = `${origin.replace(/\/$/, '')}/internal/render`;
|
|
34
|
+
const fetched = await settle(() => fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) }));
|
|
35
|
+
if (!fetched.ok) {
|
|
36
|
+
if (isCapabilityError(fetched.cause))
|
|
37
|
+
throw fetched.cause;
|
|
38
|
+
throw new CapabilityError('Drainer render unavailable.', 'UNAVAILABLE', { reason: 'drainer-render-failed', cause: valueFreeFailure(fetched.cause) });
|
|
39
|
+
}
|
|
40
|
+
const response = fetched.value;
|
|
41
|
+
if (!response.ok)
|
|
42
|
+
throw new CapabilityError('Drainer render refused the request.', 'UNAVAILABLE', { reason: 'drainer-render-failed', details: { status: response.status } });
|
|
43
|
+
const decoded = await settle(async () => createRenderPageClipResponseSchema(runtime, 'drainer-render-invalid-response').parse(await response.json()));
|
|
44
|
+
if (!decoded.ok) {
|
|
45
|
+
if (isCapabilityError(decoded.cause))
|
|
46
|
+
throw decoded.cause;
|
|
47
|
+
throw new CapabilityError('Drainer render response is invalid.', 'INTERNAL', { reason: 'drainer-render-invalid-response', cause: valueFreeFailure(decoded.cause) });
|
|
48
|
+
}
|
|
49
|
+
return decoded.value;
|
|
50
|
+
}
|
|
51
|
+
export class ConsumerDocumentRenderer {
|
|
52
|
+
runtime;
|
|
53
|
+
constructor(runtime) {
|
|
54
|
+
this.runtime = runtime;
|
|
55
|
+
}
|
|
56
|
+
async renderPageClip(input) {
|
|
57
|
+
const body = {
|
|
58
|
+
sourceUrl: input.sourceUrl,
|
|
59
|
+
page: input.page
|
|
60
|
+
};
|
|
61
|
+
if (input.clip)
|
|
62
|
+
body.clip = input.clip;
|
|
63
|
+
if (input.clipFrac)
|
|
64
|
+
body.clipFrac = input.clipFrac;
|
|
65
|
+
if (input.dpi !== undefined)
|
|
66
|
+
body.dpi = input.dpi;
|
|
67
|
+
if (input.maxEdge !== undefined)
|
|
68
|
+
body.maxDim = input.maxEdge;
|
|
69
|
+
if (input.gridCell)
|
|
70
|
+
body.gridCell = input.gridCell;
|
|
71
|
+
return callDrainerRender(this.runtime, body);
|
|
72
|
+
}
|
|
73
|
+
async renderOverview(input) {
|
|
74
|
+
// page=0 signals the drainer to render a full-document overview composite.
|
|
75
|
+
const body = {
|
|
76
|
+
sourceUrl: input.sourceUrl,
|
|
77
|
+
page: 0
|
|
78
|
+
};
|
|
79
|
+
if (input.dpi !== undefined)
|
|
80
|
+
body.dpi = input.dpi;
|
|
81
|
+
return callDrainerRender(this.runtime, body);
|
|
82
|
+
}
|
|
83
|
+
async renderGridCells(input) {
|
|
84
|
+
// Consumer/drainer scope has no single-fetch batch endpoint; render each cell
|
|
85
|
+
// via the per-cell path (the cloud impl is the SharePoint-safe single-fetch one).
|
|
86
|
+
const out = [];
|
|
87
|
+
for (const cell of input.cells) {
|
|
88
|
+
const r = await this.renderPageClip({ sourceUrl: input.sourceUrl, page: input.page, gridCell: cell });
|
|
89
|
+
out.push({ col: cell.col, row: cell.row, ...r });
|
|
90
|
+
}
|
|
91
|
+
return out;
|
|
92
|
+
}
|
|
93
|
+
async outline(_input) {
|
|
94
|
+
// The drainer-backed consumer renderer has no text-layer outline endpoint; the
|
|
95
|
+
// outline (index-first targeting) is a cloud-container capability. Consumer/CLI
|
|
96
|
+
// surfaces read pages directly, so this returns an empty index rather than throw.
|
|
97
|
+
return { pageCount: 0, pageWidthIn: null, pageHeightIn: null, sheets: [] };
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export function createConsumerDocumentRenderer(runtime) {
|
|
101
|
+
return new ConsumerDocumentRenderer(runtime);
|
|
102
|
+
}
|
|
103
|
+
export default createConsumerDocumentRenderer;
|
|
104
|
+
//# sourceMappingURL=render.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.impl.consumer.js","sourceRoot":"","sources":["../../../src/documents/render/render.impl.consumer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,EAAqB,MAAM,qBAAqB,CAAC;AACtH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAYtG,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,IAAI,CAAC,EAAE,OAAO,EAA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nE,OAAO,IAAI,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAC9C,CAAC;AAED,eAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DocumentRenderer interface.
|
|
3
|
+
*
|
|
4
|
+
* Internal (non-tool) contract for rendering page images from a document URL.
|
|
5
|
+
* Two implementations exist:
|
|
6
|
+
* - render.impl.consumer.ts — HTTP delegate to the PDF-OCR drainer
|
|
7
|
+
* - render.impl.cloud.ts — container binding or declared remote PDF service
|
|
8
|
+
*
|
|
9
|
+
* The plugin selects the correct impl at load time based on runtime scope.
|
|
10
|
+
* Neither impl is exported from the package's public surface — only the plugin
|
|
11
|
+
* and the document-read impl import them directly.
|
|
12
|
+
*/
|
|
13
|
+
import * as z from 'zod/v4';
|
|
14
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
15
|
+
/** JSON wire shapes owned by the renderer boundary. Geometry is unchanged. */
|
|
16
|
+
export declare const RenderGridCellSpecSchema: z.ZodObject<{
|
|
17
|
+
col: z.ZodNumber;
|
|
18
|
+
row: z.ZodNumber;
|
|
19
|
+
cols: z.ZodNumber;
|
|
20
|
+
rows: z.ZodNumber;
|
|
21
|
+
overlap: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const RenderPageClipInputSchema: z.ZodObject<{
|
|
24
|
+
sourceUrl: z.ZodString;
|
|
25
|
+
page: z.ZodNumber;
|
|
26
|
+
clip: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
x: z.ZodNumber;
|
|
28
|
+
y: z.ZodNumber;
|
|
29
|
+
width: z.ZodNumber;
|
|
30
|
+
height: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
clipFrac: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
x: z.ZodNumber;
|
|
34
|
+
y: z.ZodNumber;
|
|
35
|
+
w: z.ZodNumber;
|
|
36
|
+
h: z.ZodNumber;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
dpi: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
maxEdge: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
gridCell: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
col: z.ZodNumber;
|
|
42
|
+
row: z.ZodNumber;
|
|
43
|
+
cols: z.ZodNumber;
|
|
44
|
+
rows: z.ZodNumber;
|
|
45
|
+
overlap: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const RenderPageClipOutputSchema: z.ZodObject<{
|
|
49
|
+
pngBase64: z.ZodString;
|
|
50
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const RenderOverviewInputSchema: z.ZodObject<{
|
|
54
|
+
sourceUrl: z.ZodString;
|
|
55
|
+
dpi: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const RenderGridCellsInputSchema: z.ZodObject<{
|
|
58
|
+
sourceUrl: z.ZodString;
|
|
59
|
+
page: z.ZodNumber;
|
|
60
|
+
cells: z.ZodArray<z.ZodObject<{
|
|
61
|
+
col: z.ZodNumber;
|
|
62
|
+
row: z.ZodNumber;
|
|
63
|
+
cols: z.ZodNumber;
|
|
64
|
+
rows: z.ZodNumber;
|
|
65
|
+
overlap: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export declare const RenderedGridCellSchema: z.ZodObject<{
|
|
69
|
+
pngBase64: z.ZodString;
|
|
70
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
col: z.ZodNumber;
|
|
73
|
+
row: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export declare const DocumentOutlineInputSchema: z.ZodObject<{
|
|
76
|
+
sourceUrl: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const DocumentOutlineSheetSchema: z.ZodObject<{
|
|
79
|
+
page: z.ZodNumber;
|
|
80
|
+
number: z.ZodString;
|
|
81
|
+
title: z.ZodString;
|
|
82
|
+
garbled: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export declare const DocumentOutlineOutputSchema: z.ZodObject<{
|
|
85
|
+
pageCount: z.ZodNumber;
|
|
86
|
+
pageWidthIn: z.ZodNullable<z.ZodNumber>;
|
|
87
|
+
pageHeightIn: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
sheets: z.ZodArray<z.ZodObject<{
|
|
89
|
+
page: z.ZodNumber;
|
|
90
|
+
number: z.ZodString;
|
|
91
|
+
title: z.ZodString;
|
|
92
|
+
garbled: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
textLayerReliable: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type RenderGridCellSpec = z.infer<typeof RenderGridCellSpecSchema>;
|
|
97
|
+
export type RenderPageClipInput = z.infer<typeof RenderPageClipInputSchema>;
|
|
98
|
+
export type RenderPageClipOutput = z.infer<typeof RenderPageClipOutputSchema>;
|
|
99
|
+
export type RenderOverviewInput = z.infer<typeof RenderOverviewInputSchema>;
|
|
100
|
+
export type RenderGridCellsInput = z.infer<typeof RenderGridCellsInputSchema>;
|
|
101
|
+
export type RenderedGridCell = z.infer<typeof RenderedGridCellSchema>;
|
|
102
|
+
export type DocumentOutlineInput = z.infer<typeof DocumentOutlineInputSchema>;
|
|
103
|
+
export type DocumentOutlineSheet = z.infer<typeof DocumentOutlineSheetSchema>;
|
|
104
|
+
export type DocumentOutlineOutput = z.infer<typeof DocumentOutlineOutputSchema>;
|
|
105
|
+
/** Selected image fields admit independently of optional metadata. */
|
|
106
|
+
export declare function createRenderPageClipResponseSchema(runtime: VibesRuntime, reason: 'pdf-render-invalid-response' | 'pdf-render-grid-cell-invalid' | 'drainer-render-invalid-response'): z.ZodPreprocess<z.ZodObject<{
|
|
107
|
+
pngBase64: z.ZodString;
|
|
108
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
}, z.core.$strip>, unknown>;
|
|
111
|
+
/** Optional outline facts cannot invalidate admitted sheet/page content. */
|
|
112
|
+
export declare function createDocumentOutlineMetadataSchema(runtime: VibesRuntime): z.ZodPreprocess<z.ZodObject<{
|
|
113
|
+
pageCount: z.ZodNumber;
|
|
114
|
+
pageWidthIn: z.ZodNullable<z.ZodNumber>;
|
|
115
|
+
pageHeightIn: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
textLayerReliable: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
}, z.core.$strip>, unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Builds the renderer for the runtime a tool call was handed, so a renderer
|
|
120
|
+
* resolves its declared services (e.g. the cloud renderer's remote pdf-render
|
|
121
|
+
* origin) on that runtime, never an ambient one.
|
|
122
|
+
*/
|
|
123
|
+
export type DocumentRendererFactory = (runtime: VibesRuntime) => DocumentRenderer;
|
|
124
|
+
export interface DocumentRenderer {
|
|
125
|
+
/**
|
|
126
|
+
* Render a clip (or full page) of a document page to a PNG.
|
|
127
|
+
*/
|
|
128
|
+
renderPageClip(input: RenderPageClipInput): Promise<RenderPageClipOutput>;
|
|
129
|
+
/**
|
|
130
|
+
* Render a low-DPI overview of the full document (all pages tiled or
|
|
131
|
+
* single composite) suitable for TOC/structure extraction.
|
|
132
|
+
*/
|
|
133
|
+
renderOverview(input: RenderOverviewInput): Promise<RenderPageClipOutput>;
|
|
134
|
+
/**
|
|
135
|
+
* Render MANY foveated grid cells from a SINGLE source fetch. The source URL
|
|
136
|
+
* (e.g. a SharePoint pre-auth token) is fetched ONCE and all cells are cropped
|
|
137
|
+
* from it — fetching it once per cell concurrently gets the token rejected (401).
|
|
138
|
+
*/
|
|
139
|
+
renderGridCells(input: RenderGridCellsInput): Promise<RenderedGridCell[]>;
|
|
140
|
+
/**
|
|
141
|
+
* Read the document's sheet index from its TEXT LAYER (pdfinfo + pdftotext, NO
|
|
142
|
+
* vision/render). The "read the index first" step: the agent uses this to target
|
|
143
|
+
* only the casework sheets instead of vision-scanning every page.
|
|
144
|
+
*/
|
|
145
|
+
outline(input: DocumentOutlineInput): Promise<DocumentOutlineOutput>;
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=render.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.interface.d.ts","sourceRoot":"","sources":["../../../src/documents/render/render.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAmE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEzH,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB;;;;;;iBAA0G,CAAC;AAChJ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;iBAAmG,CAAC;AAC3I,eAAO,MAAM,yBAAyB;;;iBAAkE,CAAC;AACzG,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAAkG,CAAC;AAC1I,eAAO,MAAM,sBAAsB;;;;;;iBAA0E,CAAC;AAC9G,eAAO,MAAM,0BAA0B;;iBAAsC,CAAC;AAC9E,eAAO,MAAM,0BAA0B;;;;;iBAAyG,CAAC;AACjJ,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAAuM,CAAC;AAChP,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBA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B,EAAE,CAAC,CAAC;IAE1E;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrE"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DocumentRenderer interface.
|
|
3
|
+
*
|
|
4
|
+
* Internal (non-tool) contract for rendering page images from a document URL.
|
|
5
|
+
* Two implementations exist:
|
|
6
|
+
* - render.impl.consumer.ts — HTTP delegate to the PDF-OCR drainer
|
|
7
|
+
* - render.impl.cloud.ts — container binding or declared remote PDF service
|
|
8
|
+
*
|
|
9
|
+
* The plugin selects the correct impl at load time based on runtime scope.
|
|
10
|
+
* Neither impl is exported from the package's public surface — only the plugin
|
|
11
|
+
* and the document-read impl import them directly.
|
|
12
|
+
*/
|
|
13
|
+
import * as z from 'zod/v4';
|
|
14
|
+
import { CapabilityError, isCapabilityError, settleNow, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
15
|
+
/** JSON wire shapes owned by the renderer boundary. Geometry is unchanged. */
|
|
16
|
+
export const RenderGridCellSpecSchema = z.object({ col: z.number(), row: z.number(), cols: z.number(), rows: z.number(), overlap: z.number() });
|
|
17
|
+
export const RenderPageClipInputSchema = z.object({
|
|
18
|
+
sourceUrl: z.string(), page: z.number(),
|
|
19
|
+
clip: z.object({ x: z.number(), y: z.number(), width: z.number(), height: z.number() }).optional(),
|
|
20
|
+
clipFrac: z.object({ x: z.number(), y: z.number(), w: z.number(), h: z.number() }).optional(),
|
|
21
|
+
dpi: z.number().optional(), maxEdge: z.number().optional(), gridCell: RenderGridCellSpecSchema.optional()
|
|
22
|
+
});
|
|
23
|
+
export const RenderPageClipOutputSchema = z.object({ pngBase64: z.string(), width: z.number().optional(), height: z.number().optional() });
|
|
24
|
+
export const RenderOverviewInputSchema = z.object({ sourceUrl: z.string(), dpi: z.number().optional() });
|
|
25
|
+
export const RenderGridCellsInputSchema = z.object({ sourceUrl: z.string(), page: z.number(), cells: z.array(RenderGridCellSpecSchema) });
|
|
26
|
+
export const RenderedGridCellSchema = RenderPageClipOutputSchema.extend({ col: z.number(), row: z.number() });
|
|
27
|
+
export const DocumentOutlineInputSchema = z.object({ sourceUrl: z.string() });
|
|
28
|
+
export const DocumentOutlineSheetSchema = z.object({ page: z.number(), number: z.string(), title: z.string(), garbled: z.boolean().optional() });
|
|
29
|
+
export const DocumentOutlineOutputSchema = z.object({ pageCount: z.number(), pageWidthIn: z.number().nullable(), pageHeightIn: z.number().nullable(), sheets: z.array(DocumentOutlineSheetSchema), textLayerReliable: z.boolean().optional() });
|
|
30
|
+
/** Selected image fields admit independently of optional metadata. */
|
|
31
|
+
export function createRenderPageClipResponseSchema(runtime, reason) {
|
|
32
|
+
return z.preprocess(value => {
|
|
33
|
+
const required = settleNow(() => RenderPageClipOutputSchema.pick({ pngBase64: true }).parse(value));
|
|
34
|
+
if (!required.ok) {
|
|
35
|
+
if (isCapabilityError(required.cause))
|
|
36
|
+
throw required.cause;
|
|
37
|
+
throw new CapabilityError('Document render response is invalid.', 'INTERNAL', { reason, cause: valueFreeFailure(required.cause) });
|
|
38
|
+
}
|
|
39
|
+
const image = required.value;
|
|
40
|
+
for (const metadata of [
|
|
41
|
+
{ key: 'width', schema: RenderPageClipOutputSchema.pick({ width: true }).transform(data => data.width) },
|
|
42
|
+
{ key: 'height', schema: RenderPageClipOutputSchema.pick({ height: true }).transform(data => data.height) }
|
|
43
|
+
]) {
|
|
44
|
+
const admitted = settleNow(() => metadata.schema.parse(value));
|
|
45
|
+
if (admitted.ok) {
|
|
46
|
+
if (admitted.value !== undefined)
|
|
47
|
+
image[metadata.key] = admitted.value;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const failure = isCapabilityError(admitted.cause) ? admitted.cause : new CapabilityError('Document render metadata is invalid.', 'INTERNAL', { reason: 'pdf-render-metadata-invalid', cause: valueFreeFailure(admitted.cause) });
|
|
51
|
+
settleNow(() => runtime.diagnostics.error('Document render metadata refused', { scope: 'docs', plugin: 'docs', error: failure }));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return image;
|
|
55
|
+
}, RenderPageClipOutputSchema);
|
|
56
|
+
}
|
|
57
|
+
/** Optional outline facts cannot invalidate admitted sheet/page content. */
|
|
58
|
+
export function createDocumentOutlineMetadataSchema(runtime) {
|
|
59
|
+
const metadataSchema = DocumentOutlineOutputSchema.omit({ sheets: true });
|
|
60
|
+
return z.preprocess(value => {
|
|
61
|
+
const metadata = {
|
|
62
|
+
pageCount: DocumentOutlineOutputSchema.pick({ pageCount: true }).extend({ pageCount: DocumentOutlineOutputSchema.shape.pageCount.default(0) }).parse(value).pageCount,
|
|
63
|
+
pageWidthIn: null,
|
|
64
|
+
pageHeightIn: null
|
|
65
|
+
};
|
|
66
|
+
for (const geometry of [
|
|
67
|
+
{ key: 'pageWidthIn', schema: metadataSchema.pick({ pageWidthIn: true }).extend({ pageWidthIn: metadataSchema.shape.pageWidthIn.default(null) }).transform(data => data.pageWidthIn) },
|
|
68
|
+
{ key: 'pageHeightIn', schema: metadataSchema.pick({ pageHeightIn: true }).extend({ pageHeightIn: metadataSchema.shape.pageHeightIn.default(null) }).transform(data => data.pageHeightIn) }
|
|
69
|
+
]) {
|
|
70
|
+
const admitted = settleNow(() => geometry.schema.parse(value));
|
|
71
|
+
if (admitted.ok)
|
|
72
|
+
metadata[geometry.key] = admitted.value;
|
|
73
|
+
else {
|
|
74
|
+
const failure = isCapabilityError(admitted.cause) ? admitted.cause : new CapabilityError('Document outline metadata is invalid.', 'INTERNAL', { reason: 'pdf-render-metadata-invalid', cause: valueFreeFailure(admitted.cause) });
|
|
75
|
+
settleNow(() => runtime.diagnostics.error('Document outline metadata refused', { scope: 'docs', plugin: 'docs', error: failure }));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const reliability = settleNow(() => metadataSchema.pick({ textLayerReliable: true }).parse(value));
|
|
79
|
+
if (reliability.ok) {
|
|
80
|
+
if (reliability.value.textLayerReliable !== undefined)
|
|
81
|
+
metadata.textLayerReliable = reliability.value.textLayerReliable;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
const failure = isCapabilityError(reliability.cause) ? reliability.cause : new CapabilityError('Document outline metadata is invalid.', 'INTERNAL', { reason: 'pdf-render-metadata-invalid', cause: valueFreeFailure(reliability.cause) });
|
|
85
|
+
settleNow(() => runtime.diagnostics.error('Document outline metadata refused', { scope: 'docs', plugin: 'docs', error: failure }));
|
|
86
|
+
}
|
|
87
|
+
return metadata;
|
|
88
|
+
}, metadataSchema);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=render.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.interface.js","sourceRoot":"","sources":["../../../src/documents/render/render.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAqB,MAAM,qBAAqB,CAAC;AAEzH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAChJ,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,E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KAAK,SAAS;gBAAE,QAAQ,CAAC,iBAAiB,GAAG,WAAW,CAAC,KAAK,CAAC,iBAAiB,CAAC;QACzH,CAAC;aAAM,CAAC;YACP,MAAM,OAAO,GAAG,iBAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,uCAAuC,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,6BAA6B,EAAE,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC3O,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,mCAAmC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QACpI,CAAC;QACD,OAAO,QAAQ,CAAC;IACjB,CAAC,EAAE,cAAc,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/** The ai worker's service binding (`AI_INTERNAL`, `AI_SERVICE`): a worker-to-worker fetcher. */
|
|
3
|
+
export interface AIServiceBinding {
|
|
4
|
+
fetch(input: string, init?: RequestInit): Promise<Response>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The ai service bindings' owning schema for `runtime.getBinding`. It admits
|
|
8
|
+
* the native binding itself, never a copy, so `fetch` keeps its receiver.
|
|
9
|
+
*/
|
|
10
|
+
export declare const AIServiceBindingSchema: z.ZodCustom<AIServiceBinding, AIServiceBinding>;
|
|
11
|
+
//# sourceMappingURL=ai-service-binding.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-service-binding.schema.d.ts","sourceRoot":"","sources":["../../../src/documents/schemas/ai-service-binding.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,iGAAiG;AACjG,MAAM,WAAW,gBAAgB;IAChC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC5D;AAID;;;GAGG;AACH,eAAO,MAAM,sBAAsB,iDAElC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
const AIServiceBindingMethodsSchema = z.object({ fetch: z.function() });
|
|
3
|
+
/**
|
|
4
|
+
* The ai service bindings' owning schema for `runtime.getBinding`. It admits
|
|
5
|
+
* the native binding itself, never a copy, so `fetch` keeps its receiver.
|
|
6
|
+
*/
|
|
7
|
+
export const AIServiceBindingSchema = z.custom((value) => AIServiceBindingMethodsSchema.safeParse(value).success);
|
|
8
|
+
//# sourceMappingURL=ai-service-binding.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-service-binding.schema.js","sourceRoot":"","sources":["../../../src/documents/schemas/ai-service-binding.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAO5B,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC7C,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CACjE,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* document.read tool schemas.
|
|
3
|
+
*
|
|
4
|
+
* Input/output schemas for the `document.read` tool. These schemas are
|
|
5
|
+
* MCP-safe: no .refine(), .transform(), .pipe(), or .preprocess() — the
|
|
6
|
+
* MCP JSON-schema adapter (z.toJSONSchema) rejects those. Validation and
|
|
7
|
+
* business logic live in the impl.
|
|
8
|
+
*/
|
|
9
|
+
import * as z from 'zod/v4';
|
|
10
|
+
/**
|
|
11
|
+
* Minimal document ref — identifies the source document.
|
|
12
|
+
*
|
|
13
|
+
* Deliberately NOT imported from @vibesdotdev/storage to avoid a dep cycle
|
|
14
|
+
* (storage depends on runtime; documents depends on storage; importing the
|
|
15
|
+
* storage ref type back into the schema layer would close that cycle on the
|
|
16
|
+
* schema surface which must stay dep-free).
|
|
17
|
+
*/
|
|
18
|
+
export declare const DocumentRefSchema: z.ZodObject<{
|
|
19
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
path: z.ZodOptional<z.ZodString>;
|
|
21
|
+
url: z.ZodOptional<z.ZodString>;
|
|
22
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
sourceRefreshUrl: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type DocumentRef = z.infer<typeof DocumentRefSchema>;
|
|
26
|
+
export declare const DocumentReadInputSchema: z.ZodObject<{
|
|
27
|
+
ref: z.ZodObject<{
|
|
28
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
path: z.ZodOptional<z.ZodString>;
|
|
30
|
+
url: z.ZodOptional<z.ZodString>;
|
|
31
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
sourceRefreshUrl: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
35
|
+
question: z.ZodOptional<z.ZodString>;
|
|
36
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
|
+
schemaId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
vocabulary: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
rowContainerKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
41
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
42
|
+
visionFocusHint: z.ZodOptional<z.ZodString>;
|
|
43
|
+
promptVersion: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type DocumentReadInput = z.infer<typeof DocumentReadInputSchema>;
|
|
46
|
+
export declare const DocumentPageResultSchema: z.ZodObject<{
|
|
47
|
+
index: z.ZodNumber;
|
|
48
|
+
title: z.ZodOptional<z.ZodString>;
|
|
49
|
+
text: z.ZodString;
|
|
50
|
+
cacheHit: z.ZodBoolean;
|
|
51
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
error: "error";
|
|
53
|
+
ready: "ready";
|
|
54
|
+
processing: "processing";
|
|
55
|
+
}>>;
|
|
56
|
+
cacheKey: z.ZodOptional<z.ZodString>;
|
|
57
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
message: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export type DocumentPageResult = z.infer<typeof DocumentPageResultSchema>;
|
|
61
|
+
export declare const DocumentReadMarkdownOutputSchema: z.ZodObject<{
|
|
62
|
+
kind: z.ZodLiteral<"markdown">;
|
|
63
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
64
|
+
index: z.ZodNumber;
|
|
65
|
+
title: z.ZodOptional<z.ZodString>;
|
|
66
|
+
text: z.ZodString;
|
|
67
|
+
cacheHit: z.ZodBoolean;
|
|
68
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
error: "error";
|
|
70
|
+
ready: "ready";
|
|
71
|
+
processing: "processing";
|
|
72
|
+
}>>;
|
|
73
|
+
cacheKey: z.ZodOptional<z.ZodString>;
|
|
74
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
message: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const DocumentReadStructuredOutputSchema: z.ZodObject<{
|
|
79
|
+
kind: z.ZodLiteral<"structured">;
|
|
80
|
+
rows: 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>>>;
|
|
81
|
+
diagnostics: 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>>>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const DocumentReadOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"markdown">;
|
|
85
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
86
|
+
index: z.ZodNumber;
|
|
87
|
+
title: z.ZodOptional<z.ZodString>;
|
|
88
|
+
text: z.ZodString;
|
|
89
|
+
cacheHit: z.ZodBoolean;
|
|
90
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
error: "error";
|
|
92
|
+
ready: "ready";
|
|
93
|
+
processing: "processing";
|
|
94
|
+
}>>;
|
|
95
|
+
cacheKey: z.ZodOptional<z.ZodString>;
|
|
96
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
message: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
kind: z.ZodLiteral<"structured">;
|
|
101
|
+
rows: 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>>>;
|
|
102
|
+
diagnostics: 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>>>>;
|
|
103
|
+
}, z.core.$strip>], "kind">;
|
|
104
|
+
export type DocumentReadMarkdownOutput = z.infer<typeof DocumentReadMarkdownOutputSchema>;
|
|
105
|
+
export type DocumentReadStructuredOutput = z.infer<typeof DocumentReadStructuredOutputSchema>;
|
|
106
|
+
export type DocumentReadOutput = z.infer<typeof DocumentReadOutputSchema>;
|
|
107
|
+
//# sourceMappingURL=document-read.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-read.schema.d.ts","sourceRoot":"","sources":["../../../src/documents/schemas/document-read.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;iBAW5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAM5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;iBAiElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;iBAiBnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;iBAG3C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;2BAGnC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* document.read tool schemas.
|
|
3
|
+
*
|
|
4
|
+
* Input/output schemas for the `document.read` tool. These schemas are
|
|
5
|
+
* MCP-safe: no .refine(), .transform(), .pipe(), or .preprocess() — the
|
|
6
|
+
* MCP JSON-schema adapter (z.toJSONSchema) rejects those. Validation and
|
|
7
|
+
* business logic live in the impl.
|
|
8
|
+
*/
|
|
9
|
+
import * as z from 'zod/v4';
|
|
10
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
11
|
+
/**
|
|
12
|
+
* Minimal document ref — identifies the source document.
|
|
13
|
+
*
|
|
14
|
+
* Deliberately NOT imported from @vibesdotdev/storage to avoid a dep cycle
|
|
15
|
+
* (storage depends on runtime; documents depends on storage; importing the
|
|
16
|
+
* storage ref type back into the schema layer would close that cycle on the
|
|
17
|
+
* schema surface which must stay dep-free).
|
|
18
|
+
*/
|
|
19
|
+
export const DocumentRefSchema = z.object({
|
|
20
|
+
/** Storage provider id (e.g. a SharePoint or Vibes-R2 provider id). */
|
|
21
|
+
providerId: z.string().optional(),
|
|
22
|
+
/** Path within the provider (relative key or object path). */
|
|
23
|
+
path: z.string().optional(),
|
|
24
|
+
/** Fully-qualified URL for externally-hosted documents. */
|
|
25
|
+
url: z.string().optional(),
|
|
26
|
+
/** Owning document id, when the producer can refresh short-lived URLs. */
|
|
27
|
+
documentId: z.string().optional(),
|
|
28
|
+
/** Internal endpoint that mints a fresh source URL for async reads. */
|
|
29
|
+
sourceRefreshUrl: z.string().optional()
|
|
30
|
+
});
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
// document.read — input
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
export const DocumentReadInputSchema = z.object({
|
|
35
|
+
/** Identifies the source document. One of providerId+path or url is required. */
|
|
36
|
+
ref: DocumentRefSchema,
|
|
37
|
+
/**
|
|
38
|
+
* 1-based page numbers to read. When omitted the tool reads a TOC/overview
|
|
39
|
+
* pass first, then returns guidance on which pages to target.
|
|
40
|
+
*/
|
|
41
|
+
pages: z.array(z.number().int().positive()).optional(),
|
|
42
|
+
/** Free-form question to answer from the document. */
|
|
43
|
+
question: z.string().optional(),
|
|
44
|
+
/**
|
|
45
|
+
* JSON-schema for structured extraction. When present the tool returns
|
|
46
|
+
* `kind: 'structured'` output with typed rows instead of raw markdown.
|
|
47
|
+
* Inline schema takes precedence over schemaId when both are provided.
|
|
48
|
+
*/
|
|
49
|
+
schema: z.record(z.string(), z.unknown()).optional(),
|
|
50
|
+
/**
|
|
51
|
+
* Runtime-registered schema id for structured extraction. When set and
|
|
52
|
+
* `schema` is not provided, the impl resolves the schema from the runtime
|
|
53
|
+
* via `runtime.query('ai/extraction-schema').withId(schemaId)` and uses its
|
|
54
|
+
* `descriptor.jsonSchema` as the extract schema.
|
|
55
|
+
*
|
|
56
|
+
* Example: `'casework.cabinet'` resolves the casework cabinet-row schema.
|
|
57
|
+
*/
|
|
58
|
+
schemaId: z.string().optional(),
|
|
59
|
+
/**
|
|
60
|
+
* Domain-specific vocabulary hints for the OCR/vision model (e.g. trade
|
|
61
|
+
* names, part numbers, abbreviations). Improves recognition accuracy.
|
|
62
|
+
*/
|
|
63
|
+
vocabulary: z.array(z.string()).optional(),
|
|
64
|
+
/**
|
|
65
|
+
* Extra object keys the vision model may wrap the extracted row array under,
|
|
66
|
+
* declared by the schema's owner (filled from the resolved extraction-schema
|
|
67
|
+
* descriptor's `rowContainerKeys`). Forwarded to the extractor as data.
|
|
68
|
+
*/
|
|
69
|
+
rowContainerKeys: z.array(z.string()).optional(),
|
|
70
|
+
/** Additional freeform instructions forwarded to the OCR/extract model. */
|
|
71
|
+
instructions: z.string().optional(),
|
|
72
|
+
/**
|
|
73
|
+
* Optional OCR/vision model override (resolver name, e.g. 'google/gemini-2.5-flash').
|
|
74
|
+
* Normally left unset by callers — `document.read` fills it from the resolved
|
|
75
|
+
* extraction-schema descriptor's `preferredModelName` so a DOMAIN declares the model
|
|
76
|
+
* it needs. An explicit caller value takes precedence; both override the global default.
|
|
77
|
+
*/
|
|
78
|
+
modelName: z.string().optional(),
|
|
79
|
+
/**
|
|
80
|
+
* Hint for the vision tiling step — "dense text", "large drawing", "table",
|
|
81
|
+
* etc. Controls foveation parameters in the drainer.
|
|
82
|
+
*/
|
|
83
|
+
visionFocusHint: z.string().optional(),
|
|
84
|
+
/**
|
|
85
|
+
* Prompt version string used as a cache-key component. Bump this to
|
|
86
|
+
* invalidate cached OCR for a given ref+page combination.
|
|
87
|
+
*/
|
|
88
|
+
promptVersion: z.string().optional()
|
|
89
|
+
});
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
91
|
+
// document.read — output (discriminated union on `kind`)
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
export const DocumentPageResultSchema = z.object({
|
|
94
|
+
/** 1-based page index. */
|
|
95
|
+
index: z.number().int().positive(),
|
|
96
|
+
/** Optional section title extracted from the TOC or heading. */
|
|
97
|
+
title: z.string().optional(),
|
|
98
|
+
/** OCR / vision markdown text for this page. */
|
|
99
|
+
text: z.string(),
|
|
100
|
+
/** True when the result was served from the documents.page-cache. */
|
|
101
|
+
cacheHit: z.boolean(),
|
|
102
|
+
/** Async read status for large foveated sheets. */
|
|
103
|
+
status: z.enum(['ready', 'processing', 'error']).optional(),
|
|
104
|
+
/** Cache key to re-read after an async foveated read completes. */
|
|
105
|
+
cacheKey: z.string().optional(),
|
|
106
|
+
/** Queue job id, when this call started a background foveated read. */
|
|
107
|
+
jobId: z.string().optional(),
|
|
108
|
+
/** Human-readable status for the model/caller. */
|
|
109
|
+
message: z.string().optional()
|
|
110
|
+
});
|
|
111
|
+
export const DocumentReadMarkdownOutputSchema = z.object({
|
|
112
|
+
kind: z.literal('markdown'),
|
|
113
|
+
pages: z.array(DocumentPageResultSchema)
|
|
114
|
+
});
|
|
115
|
+
export const DocumentReadStructuredOutputSchema = z.object({
|
|
116
|
+
kind: z.literal('structured'),
|
|
117
|
+
rows: z.array(JsonValueSchema),
|
|
118
|
+
diagnostics: z.record(z.string(), JsonValueSchema).optional()
|
|
119
|
+
});
|
|
120
|
+
export const DocumentReadOutputSchema = z.discriminatedUnion('kind', [
|
|
121
|
+
DocumentReadMarkdownOutputSchema,
|
|
122
|
+
DocumentReadStructuredOutputSchema
|
|
123
|
+
]);
|
|
124
|
+
//# sourceMappingURL=document-read.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-read.schema.js","sourceRoot":"","sources":["../../../src/documents/schemas/document-read.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,uEAAuE;IACvE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,8DAA8D;IAC9D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,2DAA2D;IAC3D,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,0EAA0E;IAC1E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAA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