@vibesdotdev/docs 0.0.0-stage → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,247 @@
|
|
|
1
|
+
import { parseMarkdown } from '@vibesdotdev/docs/render';
|
|
2
|
+
/**
|
|
3
|
+
* Filter the descriptor set down to topics renderable as standalone web pages
|
|
4
|
+
* via the dynamic `[...slug]` route — `markdown`, `component`, and
|
|
5
|
+
* `descriptor-ref` bodies. Excludes `route` bodies (those have their own
|
|
6
|
+
* SvelteKit routes) and `openapi`/`graphql` (which route through dedicated
|
|
7
|
+
* explorer routes added in Tier 3/4).
|
|
8
|
+
*/
|
|
9
|
+
export function pageRenderableTopics(descriptors) {
|
|
10
|
+
return descriptors.filter((d) => {
|
|
11
|
+
if (d.enabled === false)
|
|
12
|
+
return false;
|
|
13
|
+
if (!d.surfaces.includes('web'))
|
|
14
|
+
return false;
|
|
15
|
+
switch (d.body.type) {
|
|
16
|
+
case 'markdown':
|
|
17
|
+
case 'component':
|
|
18
|
+
case 'descriptor-ref':
|
|
19
|
+
return true;
|
|
20
|
+
case 'route':
|
|
21
|
+
case 'openapi':
|
|
22
|
+
case 'graphql':
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Build the prerender entries list for `+page.ts`'s `entries()` export.
|
|
29
|
+
* Returns `[{ slug: ['tools', 'list'] }, ...]` for each page-renderable topic.
|
|
30
|
+
*
|
|
31
|
+
* The slug is the topic id split on `.` so `tools.list` becomes
|
|
32
|
+
* `/tools/list` in the URL (SvelteKit `[...slug]` joins the array back).
|
|
33
|
+
* Topics with no `.` in the id become single-segment slugs like `['guide']`
|
|
34
|
+
* → `/guide`.
|
|
35
|
+
*/
|
|
36
|
+
export function topicEntries(descriptors) {
|
|
37
|
+
return pageRenderableTopics(descriptors).map((d) => ({
|
|
38
|
+
slug: idToSlug(d.id)
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Topic id → URL slug. `tools.list` → `tools/list`; `guide` → `guide`.
|
|
43
|
+
*/
|
|
44
|
+
export function idToSlug(id) {
|
|
45
|
+
return id.replaceAll('.', '/');
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* URL slug → topic id. Inverse of `idToSlug`. SvelteKit hands the dynamic
|
|
49
|
+
* route a `params.slug` string with `/` separators; we restore dots.
|
|
50
|
+
*/
|
|
51
|
+
export function slugToId(slug) {
|
|
52
|
+
return slug.replaceAll('/', '.');
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Resolve + parse a topic for rendering. Returns the descriptor + parsed AST
|
|
56
|
+
* (markdown bodies only). Non-markdown bodies return `parsed: null` — the
|
|
57
|
+
* `<MarkdownView />` component skips the walk and the page's +page.svelte
|
|
58
|
+
* picks the appropriate branch (route navigation, component mount, etc.).
|
|
59
|
+
*/
|
|
60
|
+
export function indexedTopicFor(descriptors, id) {
|
|
61
|
+
const descriptor = descriptors.find((d) => d.id === id) ?? null;
|
|
62
|
+
if (!descriptor)
|
|
63
|
+
return null;
|
|
64
|
+
const body = descriptor.body;
|
|
65
|
+
if (body.type === 'markdown' && body.sourceType === 'raw') {
|
|
66
|
+
return { descriptor, parsed: parseMarkdown(body.source) };
|
|
67
|
+
}
|
|
68
|
+
return { descriptor, parsed: null };
|
|
69
|
+
}
|
|
70
|
+
export function inferTrackForParent(parent, id) {
|
|
71
|
+
const p = (parent ?? id ?? '').toLowerCase();
|
|
72
|
+
const root = p.split('.')[0];
|
|
73
|
+
if (root === 'getting-started' || root === 'tutorials' || root === 'guided-flows') {
|
|
74
|
+
return 'start-here';
|
|
75
|
+
}
|
|
76
|
+
if (root === 'ui' ||
|
|
77
|
+
root === 'kit' ||
|
|
78
|
+
root === 'charts' ||
|
|
79
|
+
root === 'chat' ||
|
|
80
|
+
root === 'app' ||
|
|
81
|
+
root === 'theme' ||
|
|
82
|
+
root === 'media') {
|
|
83
|
+
return 'framework-kit';
|
|
84
|
+
}
|
|
85
|
+
if (root === 'platform' ||
|
|
86
|
+
root === 'storage' ||
|
|
87
|
+
root === 'auth' ||
|
|
88
|
+
root === 'workers' ||
|
|
89
|
+
root === 'integrations' ||
|
|
90
|
+
root === 'cache' ||
|
|
91
|
+
root === 'secrets' ||
|
|
92
|
+
root === 'account' ||
|
|
93
|
+
root === 'forge' ||
|
|
94
|
+
root === 'notifications') {
|
|
95
|
+
return 'platform-cloud';
|
|
96
|
+
}
|
|
97
|
+
if (root === 'cli' ||
|
|
98
|
+
root === 'tools' ||
|
|
99
|
+
root === 'localdb' ||
|
|
100
|
+
root === 'session' ||
|
|
101
|
+
root === 'agents' ||
|
|
102
|
+
root === 'ai' ||
|
|
103
|
+
root === 'mcp' ||
|
|
104
|
+
root === 'knowledge' ||
|
|
105
|
+
root === 'workbench' ||
|
|
106
|
+
root === 'desktop' ||
|
|
107
|
+
root === 'vessel') {
|
|
108
|
+
return 'local-tooling';
|
|
109
|
+
}
|
|
110
|
+
if (root === 'api' || root === 'api-explorer' || root === 'packages' || root === 'runtime-client') {
|
|
111
|
+
return 'api-reference';
|
|
112
|
+
}
|
|
113
|
+
return 'internals';
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Humanize a parent id (`runtime-client` → `Runtime Client`, `ai` → `Ai`,
|
|
117
|
+
* `ai.providers` → `Ai Providers`). Matches the layout's title casing so the
|
|
118
|
+
* synthesized section page header reads consistently with the sidebar group.
|
|
119
|
+
*/
|
|
120
|
+
function titleizeParent(id) {
|
|
121
|
+
return id.replace(/(^|\.|_|-)([a-z])/g, (_, sep, c) => {
|
|
122
|
+
const space = sep === '' ? '' : ' ';
|
|
123
|
+
return `${space}${c.toUpperCase()}`;
|
|
124
|
+
}).trim();
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Return one entry per implicit section root. A "section root" is any
|
|
128
|
+
* `parent` value referenced by an enabled web-surface topic that does *not*
|
|
129
|
+
* itself have a matching topic descriptor. Children are sorted the same way
|
|
130
|
+
* as `buildSidebar`.
|
|
131
|
+
*
|
|
132
|
+
* Use this to generate auto-index pages at `/<parent>` so visiting a section
|
|
133
|
+
* URL (e.g. `/ai`, `/runnable`) lands on a TOC instead of a 404.
|
|
134
|
+
*/
|
|
135
|
+
export function sectionRoots(descriptors) {
|
|
136
|
+
const enabled = descriptors.filter((d) => d.enabled !== false && d.surfaces.includes('web'));
|
|
137
|
+
const knownIds = new Set(enabled.map((d) => d.id));
|
|
138
|
+
const byParent = new Map();
|
|
139
|
+
for (const d of enabled) {
|
|
140
|
+
if (!d.parent)
|
|
141
|
+
continue;
|
|
142
|
+
if (knownIds.has(d.parent))
|
|
143
|
+
continue;
|
|
144
|
+
const href = d.body.type === 'route' ? d.body.path : `/${idToSlug(d.id)}`;
|
|
145
|
+
const entry = {
|
|
146
|
+
id: d.id,
|
|
147
|
+
title: d.title,
|
|
148
|
+
summary: d.summary,
|
|
149
|
+
href,
|
|
150
|
+
bodyType: d.body.type,
|
|
151
|
+
parent: d.parent,
|
|
152
|
+
tags: d.tags,
|
|
153
|
+
order: d.order ?? Number.MAX_SAFE_INTEGER
|
|
154
|
+
};
|
|
155
|
+
const list = byParent.get(d.parent) ?? [];
|
|
156
|
+
list.push(entry);
|
|
157
|
+
byParent.set(d.parent, list);
|
|
158
|
+
}
|
|
159
|
+
const roots = [];
|
|
160
|
+
for (const [parent, entries] of byParent) {
|
|
161
|
+
entries.sort((a, b) => {
|
|
162
|
+
if (a.order !== b.order)
|
|
163
|
+
return a.order - b.order;
|
|
164
|
+
return a.title.localeCompare(b.title);
|
|
165
|
+
});
|
|
166
|
+
roots.push({
|
|
167
|
+
id: parent,
|
|
168
|
+
title: titleizeParent(parent),
|
|
169
|
+
children: entries
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
roots.sort((a, b) => a.id.localeCompare(b.id));
|
|
173
|
+
return roots;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Look up a single implicit section root by id. Returns null if the id is a
|
|
177
|
+
* real topic, or if no topic declares it as a parent.
|
|
178
|
+
*/
|
|
179
|
+
export function sectionRootFor(descriptors, id) {
|
|
180
|
+
return sectionRoots(descriptors).find((r) => r.id === id) ?? null;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Group ids pinned ahead of the alphabetical sort in {@link buildSidebar} —
|
|
184
|
+
* orientation content a first-time visitor needs before anything else, so it
|
|
185
|
+
* must never be buried by where its name falls in the alphabet. Order within
|
|
186
|
+
* this list is the pin order (first entry sorts first).
|
|
187
|
+
*/
|
|
188
|
+
const PINNED_GROUPS = ['getting-started'];
|
|
189
|
+
/**
|
|
190
|
+
* Build the sidebar grouped by `parent`. Topics without a parent fall into a
|
|
191
|
+
* synthetic root group. `body.type: 'route'` topics use their `path` as the
|
|
192
|
+
* href; everything else uses the slug derived from the id.
|
|
193
|
+
*/
|
|
194
|
+
export function buildSidebar(descriptors) {
|
|
195
|
+
const enabled = descriptors.filter((d) => d.enabled !== false && d.surfaces.includes('web'));
|
|
196
|
+
const grouped = new Map();
|
|
197
|
+
for (const d of enabled) {
|
|
198
|
+
const href = d.body.type === 'route' ? d.body.path : `/${idToSlug(d.id)}`;
|
|
199
|
+
const entry = {
|
|
200
|
+
id: d.id,
|
|
201
|
+
title: d.title,
|
|
202
|
+
summary: d.summary,
|
|
203
|
+
href,
|
|
204
|
+
bodyType: d.body.type,
|
|
205
|
+
parent: d.parent,
|
|
206
|
+
track: d.track ?? inferTrackForParent(d.parent, d.id),
|
|
207
|
+
tags: d.tags,
|
|
208
|
+
order: d.order ?? Number.MAX_SAFE_INTEGER
|
|
209
|
+
};
|
|
210
|
+
const key = d.parent;
|
|
211
|
+
const list = grouped.get(key) ?? [];
|
|
212
|
+
list.push(entry);
|
|
213
|
+
grouped.set(key, list);
|
|
214
|
+
}
|
|
215
|
+
const groups = [];
|
|
216
|
+
for (const [parent, entries] of grouped) {
|
|
217
|
+
entries.sort((a, b) => {
|
|
218
|
+
if (a.order !== b.order)
|
|
219
|
+
return a.order - b.order;
|
|
220
|
+
return a.title.localeCompare(b.title);
|
|
221
|
+
});
|
|
222
|
+
const groupTrack = entries.find((e) => e.track)?.track ?? inferTrackForParent(parent);
|
|
223
|
+
groups.push({
|
|
224
|
+
parent,
|
|
225
|
+
track: groupTrack,
|
|
226
|
+
title: parent ?? 'Overview',
|
|
227
|
+
entries
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
groups.sort((a, b) => {
|
|
231
|
+
if (a.parent === undefined && b.parent !== undefined)
|
|
232
|
+
return -1;
|
|
233
|
+
if (a.parent !== undefined && b.parent === undefined)
|
|
234
|
+
return 1;
|
|
235
|
+
const aPin = PINNED_GROUPS.indexOf(a.parent ?? '');
|
|
236
|
+
const bPin = PINNED_GROUPS.indexOf(b.parent ?? '');
|
|
237
|
+
if (aPin !== -1 || bPin !== -1) {
|
|
238
|
+
if (aPin === -1)
|
|
239
|
+
return 1;
|
|
240
|
+
if (bPin === -1)
|
|
241
|
+
return -1;
|
|
242
|
+
return aPin - bPin;
|
|
243
|
+
}
|
|
244
|
+
return (a.parent ?? '').localeCompare(b.parent ?? '');
|
|
245
|
+
});
|
|
246
|
+
return groups;
|
|
247
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Svelte context API for the docs topic registry.
|
|
3
|
+
*
|
|
4
|
+
* Apps that embed `<HelpIcon />` set the topics array once at layout level
|
|
5
|
+
* (`setDocsTopics(topics)`); the helper components resolve topic ids
|
|
6
|
+
* locally via this context. Keeps the components decoupled from any
|
|
7
|
+
* specific runtime client or app's registry path.
|
|
8
|
+
*/
|
|
9
|
+
import type { DocsTopicDescriptor } from '@vibesdotdev/docs/schemas';
|
|
10
|
+
export declare function setDocsTopics(topics: readonly DocsTopicDescriptor[]): void;
|
|
11
|
+
export declare function getDocsTopics(): readonly DocsTopicDescriptor[];
|
|
12
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/svelte/context.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,mBAAmB,EAAE,GAAG,IAAI,CAE1E;AAED,wBAAgB,aAAa,IAAI,SAAS,mBAAmB,EAAE,CAE9D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Svelte context API for the docs topic registry.
|
|
3
|
+
*
|
|
4
|
+
* Apps that embed `<HelpIcon />` set the topics array once at layout level
|
|
5
|
+
* (`setDocsTopics(topics)`); the helper components resolve topic ids
|
|
6
|
+
* locally via this context. Keeps the components decoupled from any
|
|
7
|
+
* specific runtime client or app's registry path.
|
|
8
|
+
*/
|
|
9
|
+
import { getContext, setContext } from 'svelte';
|
|
10
|
+
const DOCS_TOPICS_KEY = Symbol('docs-topics');
|
|
11
|
+
export function setDocsTopics(topics) {
|
|
12
|
+
setContext(DOCS_TOPICS_KEY, topics);
|
|
13
|
+
}
|
|
14
|
+
export function getDocsTopics() {
|
|
15
|
+
return getContext(DOCS_TOPICS_KEY) ?? [];
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs-app origin for in-app "Open in docs" links.
|
|
3
|
+
*
|
|
4
|
+
* Preferred source when a runtime is in hand: the declared `docs`
|
|
5
|
+
* `infra/service` (`serviceOrigin`). When that service is undeclared, or
|
|
6
|
+
* when no runtime is in the svelte tree, the `docs.svelte` `publicOrigin`
|
|
7
|
+
* descriptor default (`https://docs.vibes.dev`) keeps the link.
|
|
8
|
+
*/
|
|
9
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
10
|
+
/** Schema default for Open in docs; read when it runs, never at import. */
|
|
11
|
+
export declare function docsPublicOriginDefault(): string;
|
|
12
|
+
export declare function resolveDocsServiceOrigin(runtime: VibesRuntime): Promise<string>;
|
|
13
|
+
export declare function docsTopicHref(origin: string | null | undefined, topicId: string): string;
|
|
14
|
+
//# sourceMappingURL=docs-origin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-origin.d.ts","sourceRoot":"","sources":["../../src/svelte/docs-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQzE,2EAA2E;AAC3E,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAwBD,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAMrF;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAKxF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs-app origin for in-app "Open in docs" links.
|
|
3
|
+
*
|
|
4
|
+
* Preferred source when a runtime is in hand: the declared `docs`
|
|
5
|
+
* `infra/service` (`serviceOrigin`). When that service is undeclared, or
|
|
6
|
+
* when no runtime is in the svelte tree, the `docs.svelte` `publicOrigin`
|
|
7
|
+
* descriptor default (`https://docs.vibes.dev`) keeps the link.
|
|
8
|
+
*/
|
|
9
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
10
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
11
|
+
import { serviceOrigin } from '@vibesdotdev/infra-core/service';
|
|
12
|
+
import { DOCS_SVELTE_CONFIG_MANIFEST_ID, DocsSvelteConfigSchema } from "../config/docs.svelte.config.descriptor.js";
|
|
13
|
+
/** Schema default for Open in docs; read when it runs, never at import. */
|
|
14
|
+
export function docsPublicOriginDefault() {
|
|
15
|
+
return DocsSvelteConfigSchema.parse({}).publicOrigin.replace(/\/$/, '');
|
|
16
|
+
}
|
|
17
|
+
async function readDocsPublicOrigin(runtime) {
|
|
18
|
+
if (!runtime.hasKind('config/manifest')) {
|
|
19
|
+
return docsPublicOriginDefault();
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
const { ConfigManifest } = await import('@vibesdotdev/config/manifest/config-manifest');
|
|
23
|
+
const config = await ConfigManifest.forRuntime(runtime, DOCS_SVELTE_CONFIG_MANIFEST_ID).load();
|
|
24
|
+
return config.publicOrigin.replace(/\/$/, '');
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
if (error instanceof CapabilityError && error.reason === 'config-manifest-unregistered') {
|
|
28
|
+
getLogger('docs.svelte.origin', runtime).warn('docs.svelte publicOrigin unread; using schema default', {
|
|
29
|
+
error: error.message
|
|
30
|
+
});
|
|
31
|
+
return docsPublicOriginDefault();
|
|
32
|
+
}
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export async function resolveDocsServiceOrigin(runtime) {
|
|
37
|
+
if (runtime.hasKind('infra/service')) {
|
|
38
|
+
const selected = await runtime.query('infra/service').withId('docs').select();
|
|
39
|
+
if (selected)
|
|
40
|
+
return (await serviceOrigin(runtime, 'docs')).replace(/\/$/, '');
|
|
41
|
+
}
|
|
42
|
+
return readDocsPublicOrigin(runtime);
|
|
43
|
+
}
|
|
44
|
+
export function docsTopicHref(origin, topicId) {
|
|
45
|
+
const declared = origin?.replace(/\/$/, '');
|
|
46
|
+
const base = declared && declared.length > 0 ? declared : docsPublicOriginDefault();
|
|
47
|
+
const path = topicId.replaceAll('.', '/');
|
|
48
|
+
return path ? `${base}/${path}` : `${base}/`;
|
|
49
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare const docsToolWidgetDescriptor: {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: "tools/ui";
|
|
4
|
+
surfaces: ("cli" | "web" | "tui" | "worker" | "bridge")[];
|
|
5
|
+
role: "badge" | "widget" | "approval";
|
|
6
|
+
targetToolId: string;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
description?: string | undefined;
|
|
9
|
+
tags?: string[] | undefined;
|
|
10
|
+
enabled?: boolean | undefined;
|
|
11
|
+
priority?: number | undefined;
|
|
12
|
+
capabilityId?: string | undefined;
|
|
13
|
+
requiredContext?: string[] | undefined;
|
|
14
|
+
optionalContext?: string[] | undefined;
|
|
15
|
+
config?: unknown;
|
|
16
|
+
retention?: string | {
|
|
17
|
+
reason: string;
|
|
18
|
+
maxAgeDays?: number | undefined;
|
|
19
|
+
maxEntries?: number | undefined;
|
|
20
|
+
maxBytes?: number | undefined;
|
|
21
|
+
cascadeFrom?: string | undefined;
|
|
22
|
+
ageField?: string | undefined;
|
|
23
|
+
enforcedBy?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
hardware?: ("consumer" | "cloud")[] | undefined;
|
|
26
|
+
targetId?: string | undefined;
|
|
27
|
+
placement?: "inline" | "top" | "bottom" | undefined;
|
|
28
|
+
};
|
|
29
|
+
export declare const documentReadToolWidgetDescriptor: {
|
|
30
|
+
id: string;
|
|
31
|
+
kind: "tools/ui";
|
|
32
|
+
surfaces: ("cli" | "web" | "tui" | "worker" | "bridge")[];
|
|
33
|
+
role: "badge" | "widget" | "approval";
|
|
34
|
+
targetToolId: string;
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
description?: string | undefined;
|
|
37
|
+
tags?: string[] | undefined;
|
|
38
|
+
enabled?: boolean | undefined;
|
|
39
|
+
priority?: number | undefined;
|
|
40
|
+
capabilityId?: string | undefined;
|
|
41
|
+
requiredContext?: string[] | undefined;
|
|
42
|
+
optionalContext?: string[] | undefined;
|
|
43
|
+
config?: unknown;
|
|
44
|
+
retention?: string | {
|
|
45
|
+
reason: string;
|
|
46
|
+
maxAgeDays?: number | undefined;
|
|
47
|
+
maxEntries?: number | undefined;
|
|
48
|
+
maxBytes?: number | undefined;
|
|
49
|
+
cascadeFrom?: string | undefined;
|
|
50
|
+
ageField?: string | undefined;
|
|
51
|
+
enforcedBy?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
hardware?: ("consumer" | "cloud")[] | undefined;
|
|
54
|
+
targetId?: string | undefined;
|
|
55
|
+
placement?: "inline" | "top" | "bottom" | undefined;
|
|
56
|
+
};
|
|
57
|
+
export declare const runbookToolWidgetDescriptor: {
|
|
58
|
+
id: string;
|
|
59
|
+
kind: "tools/ui";
|
|
60
|
+
surfaces: ("cli" | "web" | "tui" | "worker" | "bridge")[];
|
|
61
|
+
role: "badge" | "widget" | "approval";
|
|
62
|
+
targetToolId: string;
|
|
63
|
+
name?: string | undefined;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
tags?: string[] | undefined;
|
|
66
|
+
enabled?: boolean | undefined;
|
|
67
|
+
priority?: number | undefined;
|
|
68
|
+
capabilityId?: string | undefined;
|
|
69
|
+
requiredContext?: string[] | undefined;
|
|
70
|
+
optionalContext?: string[] | undefined;
|
|
71
|
+
config?: unknown;
|
|
72
|
+
retention?: string | {
|
|
73
|
+
reason: string;
|
|
74
|
+
maxAgeDays?: number | undefined;
|
|
75
|
+
maxEntries?: number | undefined;
|
|
76
|
+
maxBytes?: number | undefined;
|
|
77
|
+
cascadeFrom?: string | undefined;
|
|
78
|
+
ageField?: string | undefined;
|
|
79
|
+
enforcedBy?: string | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
hardware?: ("consumer" | "cloud")[] | undefined;
|
|
82
|
+
targetId?: string | undefined;
|
|
83
|
+
placement?: "inline" | "top" | "bottom" | undefined;
|
|
84
|
+
};
|
|
85
|
+
export declare const presentationsToolWidgetDescriptor: {
|
|
86
|
+
id: string;
|
|
87
|
+
kind: "tools/ui";
|
|
88
|
+
surfaces: ("cli" | "web" | "tui" | "worker" | "bridge")[];
|
|
89
|
+
role: "badge" | "widget" | "approval";
|
|
90
|
+
targetToolId: string;
|
|
91
|
+
name?: string | undefined;
|
|
92
|
+
description?: string | undefined;
|
|
93
|
+
tags?: string[] | undefined;
|
|
94
|
+
enabled?: boolean | undefined;
|
|
95
|
+
priority?: number | undefined;
|
|
96
|
+
capabilityId?: string | undefined;
|
|
97
|
+
requiredContext?: string[] | undefined;
|
|
98
|
+
optionalContext?: string[] | undefined;
|
|
99
|
+
config?: unknown;
|
|
100
|
+
retention?: string | {
|
|
101
|
+
reason: string;
|
|
102
|
+
maxAgeDays?: number | undefined;
|
|
103
|
+
maxEntries?: number | undefined;
|
|
104
|
+
maxBytes?: number | undefined;
|
|
105
|
+
cascadeFrom?: string | undefined;
|
|
106
|
+
ageField?: string | undefined;
|
|
107
|
+
enforcedBy?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
hardware?: ("consumer" | "cloud")[] | undefined;
|
|
110
|
+
targetId?: string | undefined;
|
|
111
|
+
placement?: "inline" | "top" | "bottom" | undefined;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Runtime plugin (read-surface parity).
|
|
115
|
+
*
|
|
116
|
+
* Designed Kit cards for docs-owned agent tools register `tools/ui` here so
|
|
117
|
+
* Chat hosts discover them through the widget registry, not a host-local table.
|
|
118
|
+
*/
|
|
119
|
+
export declare const docsSveltePlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
120
|
+
export default docsSveltePlugin;
|
|
121
|
+
//# sourceMappingURL=docs-svelte.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-svelte.plugin.d.ts","sourceRoot":"","sources":["../../src/svelte/docs-svelte.plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAC;AAC7F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3C,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0D,CAAC;AACnG,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE5C,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,6CAyB3B,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
2
|
+
import { createSvelteToolWidgetDescriptor, createSvelteToolWidgetLoader } from '@vibesdotdev/tools/svelte/tool-widgets';
|
|
3
|
+
export const docsToolWidgetDescriptor = createSvelteToolWidgetDescriptor({ toolId: 'docs' });
|
|
4
|
+
export const documentReadToolWidgetDescriptor = createSvelteToolWidgetDescriptor({
|
|
5
|
+
toolId: 'document.read'
|
|
6
|
+
});
|
|
7
|
+
export const runbookToolWidgetDescriptor = createSvelteToolWidgetDescriptor({ toolId: 'runbook' });
|
|
8
|
+
export const presentationsToolWidgetDescriptor = createSvelteToolWidgetDescriptor({
|
|
9
|
+
toolId: 'presentations'
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Runtime plugin (read-surface parity).
|
|
13
|
+
*
|
|
14
|
+
* Designed Kit cards for docs-owned agent tools register `tools/ui` here so
|
|
15
|
+
* Chat hosts discover them through the widget registry, not a host-local table.
|
|
16
|
+
*/
|
|
17
|
+
export const docsSveltePlugin = createRuntimePlugin({
|
|
18
|
+
id: '@vibesdotdev/docs/svelte',
|
|
19
|
+
name: 'Docs Svelte',
|
|
20
|
+
description: 'Svelte/browser surface for docs-owned tool cards',
|
|
21
|
+
dependencies: ['tools'],
|
|
22
|
+
descriptors: [
|
|
23
|
+
docsToolWidgetDescriptor,
|
|
24
|
+
documentReadToolWidgetDescriptor,
|
|
25
|
+
runbookToolWidgetDescriptor,
|
|
26
|
+
presentationsToolWidgetDescriptor
|
|
27
|
+
],
|
|
28
|
+
loaders: [
|
|
29
|
+
createSvelteToolWidgetLoader(docsToolWidgetDescriptor, () => import('./tool-widgets/DocsToolCard.svelte')),
|
|
30
|
+
createSvelteToolWidgetLoader(documentReadToolWidgetDescriptor, () => import('./tool-widgets/DocumentReadToolCard.svelte')),
|
|
31
|
+
createSvelteToolWidgetLoader(runbookToolWidgetDescriptor, () => import('./tool-widgets/RunbookToolCard.svelte')),
|
|
32
|
+
createSvelteToolWidgetLoader(presentationsToolWidgetDescriptor, () => import('./tool-widgets/PresentationsToolCard.svelte'))
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
export default docsSveltePlugin;
|