@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,366 @@
|
|
|
1
|
+
import type { DocsTopicDescriptor } from '@vibesdotdev/docs/schemas';
|
|
2
|
+
import type { DocsClient } from '@vibesdotdev/docs';
|
|
3
|
+
import { CapabilityError, type VibesRuntime } from '@vibesdotdev/kernel';
|
|
4
|
+
export interface DocsStateInitOptions {
|
|
5
|
+
/** Pre-built docs client (tests / cross-runtime). When omitted, the store
|
|
6
|
+
* resolves `getVibesDocsClient(runtime)` lazily from `runtimeStore`. */
|
|
7
|
+
client?: DocsClient;
|
|
8
|
+
/** The captured `getRuntimeSvelteContext()` store; required when `client` is omitted. */
|
|
9
|
+
runtimeStore?: {
|
|
10
|
+
load(): Promise<VibesRuntime>;
|
|
11
|
+
};
|
|
12
|
+
/** Initial docs list from `+layout.server.ts`, if available. */
|
|
13
|
+
initialDocs?: readonly DocsTopicDescriptor[];
|
|
14
|
+
/** Initial active doc id from `+layout.server.ts`, if available. */
|
|
15
|
+
initialActiveDocId?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export declare class DocsState {
|
|
18
|
+
docs: {
|
|
19
|
+
kind: "docs/topic";
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
body: {
|
|
23
|
+
type: "markdown";
|
|
24
|
+
sourceType: "package" | "raw";
|
|
25
|
+
source: string;
|
|
26
|
+
} | {
|
|
27
|
+
type: "component";
|
|
28
|
+
path: string;
|
|
29
|
+
exportKey: string;
|
|
30
|
+
props?: Record<string, unknown> | undefined;
|
|
31
|
+
} | {
|
|
32
|
+
type: "route";
|
|
33
|
+
path: string;
|
|
34
|
+
} | {
|
|
35
|
+
type: "openapi";
|
|
36
|
+
source: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: "graphql";
|
|
39
|
+
source: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: "descriptor-ref";
|
|
42
|
+
kind: string;
|
|
43
|
+
id: string;
|
|
44
|
+
};
|
|
45
|
+
tags: string[];
|
|
46
|
+
surfaces: ("cli" | "web" | "in-app" | "mcp")[];
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
summary?: string | undefined;
|
|
49
|
+
parent?: string | undefined;
|
|
50
|
+
track?: "start-here" | "framework-kit" | "platform-cloud" | "local-tooling" | "api-reference" | "internals" | undefined;
|
|
51
|
+
order?: number | undefined;
|
|
52
|
+
subject?: {
|
|
53
|
+
kind: string;
|
|
54
|
+
id: string;
|
|
55
|
+
} | undefined;
|
|
56
|
+
man?: {
|
|
57
|
+
name?: string | undefined;
|
|
58
|
+
section?: number | undefined;
|
|
59
|
+
synopsis?: string | undefined;
|
|
60
|
+
options?: {
|
|
61
|
+
flag: string;
|
|
62
|
+
description: string;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
examples?: {
|
|
65
|
+
description: string;
|
|
66
|
+
command: string;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
seeAlso?: string[] | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
hardware?: ("consumer" | "cloud")[] | undefined;
|
|
71
|
+
citationOrigin?: {
|
|
72
|
+
link: {
|
|
73
|
+
kind: string;
|
|
74
|
+
id: string;
|
|
75
|
+
source: string;
|
|
76
|
+
role: string;
|
|
77
|
+
};
|
|
78
|
+
scope: string;
|
|
79
|
+
revision: {
|
|
80
|
+
scheme: string;
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
83
|
+
anchor?: {
|
|
84
|
+
kind: "code";
|
|
85
|
+
path: string;
|
|
86
|
+
startLine: number;
|
|
87
|
+
endLine: number;
|
|
88
|
+
} | {
|
|
89
|
+
kind: "region";
|
|
90
|
+
start: number;
|
|
91
|
+
end: number;
|
|
92
|
+
} | {
|
|
93
|
+
kind: "fragment";
|
|
94
|
+
id: string;
|
|
95
|
+
} | {
|
|
96
|
+
kind: "heading";
|
|
97
|
+
slug: string;
|
|
98
|
+
} | undefined;
|
|
99
|
+
freshness?: {
|
|
100
|
+
modifiedAt?: string | undefined;
|
|
101
|
+
stale?: boolean | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
citationFreshness?: {
|
|
105
|
+
document: {
|
|
106
|
+
link: {
|
|
107
|
+
kind: string;
|
|
108
|
+
id: string;
|
|
109
|
+
source: string;
|
|
110
|
+
role: string;
|
|
111
|
+
};
|
|
112
|
+
scope: string;
|
|
113
|
+
revision: {
|
|
114
|
+
scheme: string;
|
|
115
|
+
value: string;
|
|
116
|
+
};
|
|
117
|
+
anchor?: {
|
|
118
|
+
kind: "code";
|
|
119
|
+
path: string;
|
|
120
|
+
startLine: number;
|
|
121
|
+
endLine: number;
|
|
122
|
+
} | {
|
|
123
|
+
kind: "region";
|
|
124
|
+
start: number;
|
|
125
|
+
end: number;
|
|
126
|
+
} | {
|
|
127
|
+
kind: "fragment";
|
|
128
|
+
id: string;
|
|
129
|
+
} | {
|
|
130
|
+
kind: "heading";
|
|
131
|
+
slug: string;
|
|
132
|
+
} | undefined;
|
|
133
|
+
freshness?: {
|
|
134
|
+
modifiedAt?: string | undefined;
|
|
135
|
+
stale?: boolean | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
};
|
|
138
|
+
references: {
|
|
139
|
+
link: {
|
|
140
|
+
kind: string;
|
|
141
|
+
id: string;
|
|
142
|
+
source: string;
|
|
143
|
+
role: string;
|
|
144
|
+
};
|
|
145
|
+
scope: string;
|
|
146
|
+
revision: {
|
|
147
|
+
scheme: string;
|
|
148
|
+
value: string;
|
|
149
|
+
};
|
|
150
|
+
anchor?: {
|
|
151
|
+
kind: "code";
|
|
152
|
+
path: string;
|
|
153
|
+
startLine: number;
|
|
154
|
+
endLine: number;
|
|
155
|
+
} | {
|
|
156
|
+
kind: "region";
|
|
157
|
+
start: number;
|
|
158
|
+
end: number;
|
|
159
|
+
} | {
|
|
160
|
+
kind: "fragment";
|
|
161
|
+
id: string;
|
|
162
|
+
} | {
|
|
163
|
+
kind: "heading";
|
|
164
|
+
slug: string;
|
|
165
|
+
} | undefined;
|
|
166
|
+
freshness?: {
|
|
167
|
+
modifiedAt?: string | undefined;
|
|
168
|
+
stale?: boolean | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
}[];
|
|
171
|
+
} | undefined;
|
|
172
|
+
}[];
|
|
173
|
+
activeDocId: string | null;
|
|
174
|
+
searchQuery: string;
|
|
175
|
+
results: {
|
|
176
|
+
kind: "docs/topic";
|
|
177
|
+
id: string;
|
|
178
|
+
title: string;
|
|
179
|
+
body: {
|
|
180
|
+
type: "markdown";
|
|
181
|
+
sourceType: "package" | "raw";
|
|
182
|
+
source: string;
|
|
183
|
+
} | {
|
|
184
|
+
type: "component";
|
|
185
|
+
path: string;
|
|
186
|
+
exportKey: string;
|
|
187
|
+
props?: Record<string, unknown> | undefined;
|
|
188
|
+
} | {
|
|
189
|
+
type: "route";
|
|
190
|
+
path: string;
|
|
191
|
+
} | {
|
|
192
|
+
type: "openapi";
|
|
193
|
+
source: string;
|
|
194
|
+
} | {
|
|
195
|
+
type: "graphql";
|
|
196
|
+
source: string;
|
|
197
|
+
} | {
|
|
198
|
+
type: "descriptor-ref";
|
|
199
|
+
kind: string;
|
|
200
|
+
id: string;
|
|
201
|
+
};
|
|
202
|
+
tags: string[];
|
|
203
|
+
surfaces: ("cli" | "web" | "in-app" | "mcp")[];
|
|
204
|
+
enabled: boolean;
|
|
205
|
+
summary?: string | undefined;
|
|
206
|
+
parent?: string | undefined;
|
|
207
|
+
track?: "start-here" | "framework-kit" | "platform-cloud" | "local-tooling" | "api-reference" | "internals" | undefined;
|
|
208
|
+
order?: number | undefined;
|
|
209
|
+
subject?: {
|
|
210
|
+
kind: string;
|
|
211
|
+
id: string;
|
|
212
|
+
} | undefined;
|
|
213
|
+
man?: {
|
|
214
|
+
name?: string | undefined;
|
|
215
|
+
section?: number | undefined;
|
|
216
|
+
synopsis?: string | undefined;
|
|
217
|
+
options?: {
|
|
218
|
+
flag: string;
|
|
219
|
+
description: string;
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
examples?: {
|
|
222
|
+
description: string;
|
|
223
|
+
command: string;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
seeAlso?: string[] | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
hardware?: ("consumer" | "cloud")[] | undefined;
|
|
228
|
+
citationOrigin?: {
|
|
229
|
+
link: {
|
|
230
|
+
kind: string;
|
|
231
|
+
id: string;
|
|
232
|
+
source: string;
|
|
233
|
+
role: string;
|
|
234
|
+
};
|
|
235
|
+
scope: string;
|
|
236
|
+
revision: {
|
|
237
|
+
scheme: string;
|
|
238
|
+
value: string;
|
|
239
|
+
};
|
|
240
|
+
anchor?: {
|
|
241
|
+
kind: "code";
|
|
242
|
+
path: string;
|
|
243
|
+
startLine: number;
|
|
244
|
+
endLine: number;
|
|
245
|
+
} | {
|
|
246
|
+
kind: "region";
|
|
247
|
+
start: number;
|
|
248
|
+
end: number;
|
|
249
|
+
} | {
|
|
250
|
+
kind: "fragment";
|
|
251
|
+
id: string;
|
|
252
|
+
} | {
|
|
253
|
+
kind: "heading";
|
|
254
|
+
slug: string;
|
|
255
|
+
} | undefined;
|
|
256
|
+
freshness?: {
|
|
257
|
+
modifiedAt?: string | undefined;
|
|
258
|
+
stale?: boolean | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
citationFreshness?: {
|
|
262
|
+
document: {
|
|
263
|
+
link: {
|
|
264
|
+
kind: string;
|
|
265
|
+
id: string;
|
|
266
|
+
source: string;
|
|
267
|
+
role: string;
|
|
268
|
+
};
|
|
269
|
+
scope: string;
|
|
270
|
+
revision: {
|
|
271
|
+
scheme: string;
|
|
272
|
+
value: string;
|
|
273
|
+
};
|
|
274
|
+
anchor?: {
|
|
275
|
+
kind: "code";
|
|
276
|
+
path: string;
|
|
277
|
+
startLine: number;
|
|
278
|
+
endLine: number;
|
|
279
|
+
} | {
|
|
280
|
+
kind: "region";
|
|
281
|
+
start: number;
|
|
282
|
+
end: number;
|
|
283
|
+
} | {
|
|
284
|
+
kind: "fragment";
|
|
285
|
+
id: string;
|
|
286
|
+
} | {
|
|
287
|
+
kind: "heading";
|
|
288
|
+
slug: string;
|
|
289
|
+
} | undefined;
|
|
290
|
+
freshness?: {
|
|
291
|
+
modifiedAt?: string | undefined;
|
|
292
|
+
stale?: boolean | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
};
|
|
295
|
+
references: {
|
|
296
|
+
link: {
|
|
297
|
+
kind: string;
|
|
298
|
+
id: string;
|
|
299
|
+
source: string;
|
|
300
|
+
role: string;
|
|
301
|
+
};
|
|
302
|
+
scope: string;
|
|
303
|
+
revision: {
|
|
304
|
+
scheme: string;
|
|
305
|
+
value: string;
|
|
306
|
+
};
|
|
307
|
+
anchor?: {
|
|
308
|
+
kind: "code";
|
|
309
|
+
path: string;
|
|
310
|
+
startLine: number;
|
|
311
|
+
endLine: number;
|
|
312
|
+
} | {
|
|
313
|
+
kind: "region";
|
|
314
|
+
start: number;
|
|
315
|
+
end: number;
|
|
316
|
+
} | {
|
|
317
|
+
kind: "fragment";
|
|
318
|
+
id: string;
|
|
319
|
+
} | {
|
|
320
|
+
kind: "heading";
|
|
321
|
+
slug: string;
|
|
322
|
+
} | undefined;
|
|
323
|
+
freshness?: {
|
|
324
|
+
modifiedAt?: string | undefined;
|
|
325
|
+
stale?: boolean | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
}[];
|
|
328
|
+
} | undefined;
|
|
329
|
+
}[];
|
|
330
|
+
initialized: boolean;
|
|
331
|
+
loading: boolean;
|
|
332
|
+
failure: CapabilityError | null;
|
|
333
|
+
get error(): string | null;
|
|
334
|
+
private client;
|
|
335
|
+
private generation;
|
|
336
|
+
/** The doc descriptor matching `activeDocId`, or null. */
|
|
337
|
+
get activeDoc(): DocsTopicDescriptor | null;
|
|
338
|
+
/** Total enabled docs. */
|
|
339
|
+
get count(): number;
|
|
340
|
+
/** Resolve a body string for the active doc, when it's markdown/raw. */
|
|
341
|
+
get activeBody(): string | null;
|
|
342
|
+
/** Resolve the handed runtime's semantic client and refresh this projection. */
|
|
343
|
+
init(options?: DocsStateInitOptions): Promise<void>;
|
|
344
|
+
/**
|
|
345
|
+
* Seed reactive state from a server-side payload. Safe to call before or
|
|
346
|
+
* after `init()`. Repeated seeds replace existing values, matching
|
|
347
|
+
* `invalidateAll()` semantics.
|
|
348
|
+
*/
|
|
349
|
+
seedInitial(options: DocsStateInitOptions): void;
|
|
350
|
+
/**
|
|
351
|
+
* Update the search query and refresh the filtered results synchronously
|
|
352
|
+
* against the loaded docs list. Falls back to a local substring scan when
|
|
353
|
+
* the runtime client is absent (e.g. seeded-only contexts).
|
|
354
|
+
*/
|
|
355
|
+
setSearchQuery(query: string): void;
|
|
356
|
+
/** Select a doc as active. Pass null to clear. */
|
|
357
|
+
setActiveDoc(id: string | null): void;
|
|
358
|
+
/** Resolve the body of any docs descriptor via the runtime client. */
|
|
359
|
+
resolveBody(doc: DocsTopicDescriptor): string | null;
|
|
360
|
+
dispose(): void;
|
|
361
|
+
}
|
|
362
|
+
/** Establish in a parent layout to share one projection among its descendants. */
|
|
363
|
+
export declare function getDocsState(): DocsState;
|
|
364
|
+
/** Retained name as a context accessor; call during component initialization. */
|
|
365
|
+
export declare const docsState: typeof getDocsState;
|
|
366
|
+
//# sourceMappingURL=state.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/state.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAuB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE9F,MAAM,WAAW,oBAAoB;IACpC;4EACwE;IACxE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,yFAAyF;IACzF,YAAY,CAAC,EAAE;QAAE,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC,CAAA;KAAE,CAAC;IACjD,gEAAgE;IAChE,WAAW,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC7C,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,qBAAa,SAAS;IACrB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAqC;IACzC,WAAW,gBAA+B;IAC1C,WAAW,SAAsB;IACjC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAqC;IAE5C,WAAW,UAAiB;IAC5B,OAAO,UAAiB;IACxB,OAAO,yBAAwC;IAE/C,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IAED,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,UAAU,CAAK;IAEvB,0DAA0D;IAC1D,IAAI,SAAS,IAAI,mBAAmB,GAAG,IAAI,CAG1C;IAED,0BAA0B;IAC1B,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,wEAAwE;IACxE,IAAI,UAAU,IAAI,MAAM,GAAG,IAAI,CAI9B;IAED,gFAAgF;IAC1E,IAAI,CAAC,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAsC7D;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAUhD;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAmBnC,kDAAkD;IAClD,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIrC,sEAAsE;IACtE,WAAW,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,GAAG,IAAI;IAIpD,OAAO,IAAI,IAAI;CAWf;AAID,kFAAkF;AAClF,wBAAgB,YAAY,IAAI,SAAS,CAOxC;AAED,iFAAiF;AACjF,eAAO,MAAM,SAAS,qBAAe,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context-owned reactive projection of runtime/client:docs.
|
|
3
|
+
* Call getDocsState during component initialization; a parent can establish
|
|
4
|
+
* the context for sibling loader, search and viewer components.
|
|
5
|
+
*/
|
|
6
|
+
import { getContext, setContext, onDestroy } from 'svelte';
|
|
7
|
+
import { CapabilityError, CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
8
|
+
export class DocsState {
|
|
9
|
+
docs = $state([]);
|
|
10
|
+
activeDocId = $state(null);
|
|
11
|
+
searchQuery = $state('');
|
|
12
|
+
results = $state([]);
|
|
13
|
+
initialized = $state(false);
|
|
14
|
+
loading = $state(false);
|
|
15
|
+
failure = $state(null);
|
|
16
|
+
get error() {
|
|
17
|
+
return this.failure?.message ?? null;
|
|
18
|
+
}
|
|
19
|
+
client = null;
|
|
20
|
+
generation = 0;
|
|
21
|
+
/** The doc descriptor matching `activeDocId`, or null. */
|
|
22
|
+
get activeDoc() {
|
|
23
|
+
if (!this.activeDocId)
|
|
24
|
+
return null;
|
|
25
|
+
return this.docs.find((d) => d.id === this.activeDocId) ?? null;
|
|
26
|
+
}
|
|
27
|
+
/** Total enabled docs. */
|
|
28
|
+
get count() {
|
|
29
|
+
return this.docs.length;
|
|
30
|
+
}
|
|
31
|
+
/** Resolve a body string for the active doc, when it's markdown/raw. */
|
|
32
|
+
get activeBody() {
|
|
33
|
+
const doc = this.activeDoc;
|
|
34
|
+
if (!doc || !this.client)
|
|
35
|
+
return null;
|
|
36
|
+
return this.client.resolveBody(doc);
|
|
37
|
+
}
|
|
38
|
+
/** Resolve the handed runtime's semantic client and refresh this projection. */
|
|
39
|
+
async init(options = {}) {
|
|
40
|
+
const generation = ++this.generation;
|
|
41
|
+
this.loading = true;
|
|
42
|
+
this.failure = null;
|
|
43
|
+
try {
|
|
44
|
+
const { getVibesDocsClient } = await import('@vibesdotdev/docs');
|
|
45
|
+
if (!options.client && !options.runtimeStore) {
|
|
46
|
+
throw new CapabilityError('Docs state needs a client or runtimeStore.', 'INVALID_INPUT', {
|
|
47
|
+
reason: 'runtime-required', retryable: false
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
let client = options.client;
|
|
51
|
+
if (!client && options.runtimeStore)
|
|
52
|
+
client = await getVibesDocsClient(await options.runtimeStore.load());
|
|
53
|
+
if (!client)
|
|
54
|
+
return;
|
|
55
|
+
if (generation !== this.generation)
|
|
56
|
+
return;
|
|
57
|
+
if (this.client !== client) {
|
|
58
|
+
this.searchQuery = '';
|
|
59
|
+
this.activeDocId = null;
|
|
60
|
+
}
|
|
61
|
+
this.client = client;
|
|
62
|
+
this.docs = client.list();
|
|
63
|
+
this.setSearchQuery(this.searchQuery);
|
|
64
|
+
this.seedInitial(options);
|
|
65
|
+
this.initialized = true;
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
if (generation !== this.generation)
|
|
69
|
+
return;
|
|
70
|
+
this.client = null;
|
|
71
|
+
this.docs = [];
|
|
72
|
+
this.results = [];
|
|
73
|
+
this.activeDocId = null;
|
|
74
|
+
this.searchQuery = '';
|
|
75
|
+
this.failure = CapabilityError.from(CaughtFailureSchema.parse(err));
|
|
76
|
+
this.initialized = true;
|
|
77
|
+
}
|
|
78
|
+
finally {
|
|
79
|
+
if (generation === this.generation)
|
|
80
|
+
this.loading = false;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Seed reactive state from a server-side payload. Safe to call before or
|
|
85
|
+
* after `init()`. Repeated seeds replace existing values, matching
|
|
86
|
+
* `invalidateAll()` semantics.
|
|
87
|
+
*/
|
|
88
|
+
seedInitial(options) {
|
|
89
|
+
if (options.initialDocs) {
|
|
90
|
+
this.docs = [...options.initialDocs];
|
|
91
|
+
this.results = this.results.length === 0 ? [...options.initialDocs] : this.results;
|
|
92
|
+
}
|
|
93
|
+
if (options.initialActiveDocId !== undefined) {
|
|
94
|
+
this.activeDocId = options.initialActiveDocId;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Update the search query and refresh the filtered results synchronously
|
|
99
|
+
* against the loaded docs list. Falls back to a local substring scan when
|
|
100
|
+
* the runtime client is absent (e.g. seeded-only contexts).
|
|
101
|
+
*/
|
|
102
|
+
setSearchQuery(query) {
|
|
103
|
+
this.searchQuery = query;
|
|
104
|
+
const q = query.trim().toLowerCase();
|
|
105
|
+
if (!q) {
|
|
106
|
+
this.results = this.docs;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (this.client) {
|
|
110
|
+
this.results = this.client.search(query);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.results = this.docs.filter((d) => {
|
|
114
|
+
if (d.id.toLowerCase().includes(q))
|
|
115
|
+
return true;
|
|
116
|
+
if (d.title.toLowerCase().includes(q))
|
|
117
|
+
return true;
|
|
118
|
+
if ((d.summary ?? '').toLowerCase().includes(q))
|
|
119
|
+
return true;
|
|
120
|
+
return d.tags.some((tag) => tag.toLowerCase().includes(q));
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/** Select a doc as active. Pass null to clear. */
|
|
124
|
+
setActiveDoc(id) {
|
|
125
|
+
this.activeDocId = id;
|
|
126
|
+
}
|
|
127
|
+
/** Resolve the body of any docs descriptor via the runtime client. */
|
|
128
|
+
resolveBody(doc) {
|
|
129
|
+
return this.client?.resolveBody(doc) ?? null;
|
|
130
|
+
}
|
|
131
|
+
dispose() {
|
|
132
|
+
this.generation++;
|
|
133
|
+
this.loading = false;
|
|
134
|
+
this.client = null;
|
|
135
|
+
this.initialized = false;
|
|
136
|
+
this.docs = [];
|
|
137
|
+
this.results = [];
|
|
138
|
+
this.activeDocId = null;
|
|
139
|
+
this.searchQuery = '';
|
|
140
|
+
this.failure = null;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const DOCS_STATE_KEY = Symbol('docs-state');
|
|
144
|
+
/** Establish in a parent layout to share one projection among its descendants. */
|
|
145
|
+
export function getDocsState() {
|
|
146
|
+
const inherited = getContext(DOCS_STATE_KEY);
|
|
147
|
+
if (inherited)
|
|
148
|
+
return inherited;
|
|
149
|
+
const state = new DocsState();
|
|
150
|
+
setContext(DOCS_STATE_KEY, state);
|
|
151
|
+
onDestroy(() => state.dispose());
|
|
152
|
+
return state;
|
|
153
|
+
}
|
|
154
|
+
/** Retained name as a context accessor; call during component initialization. */
|
|
155
|
+
export const docsState = getDocsState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tailwind v4 source declaration for consumers — mirrors @vibesdotdev/kit's
|
|
3
|
+
* styles.css pattern. Apps that @import this file get this package's
|
|
4
|
+
* components scanned by their Tailwind build, so utility classes used only
|
|
5
|
+
* inside these components are emitted in the app's CSS bundle (Tailwind
|
|
6
|
+
* never scans node_modules). Paths resolve relative to this file.
|
|
7
|
+
*/
|
|
8
|
+
@source "./";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* First-party widget for `docs`: search query and topic hits.
|
|
4
|
+
*/
|
|
5
|
+
import { Badge } from '@vibesdotdev/kit/components/ui/badge';
|
|
6
|
+
import {
|
|
7
|
+
ToolCard,
|
|
8
|
+
ToolCardBody,
|
|
9
|
+
type ToolWidgetProps
|
|
10
|
+
} from '@vibesdotdev/kit/components/tool-widgets';
|
|
11
|
+
import { docsToolCardModel } from './models.js';
|
|
12
|
+
|
|
13
|
+
let { tool, compact = false }: ToolWidgetProps = $props();
|
|
14
|
+
|
|
15
|
+
const model = $derived(docsToolCardModel(tool));
|
|
16
|
+
const title = $derived(
|
|
17
|
+
model.query ? `${model.hits.length} docs hit${model.hits.length === 1 ? '' : 's'}` : 'Docs'
|
|
18
|
+
);
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<ToolCard {tool} {compact} {title} icon="lucide:book-open">
|
|
22
|
+
<ToolCardBody {compact}>
|
|
23
|
+
{#if model.query}
|
|
24
|
+
<Badge variant="secondary" class="max-w-full truncate text-caption">{model.query}</Badge>
|
|
25
|
+
{/if}
|
|
26
|
+
{#if model.hits.length}
|
|
27
|
+
<ul class="space-y-1.5">
|
|
28
|
+
{#each model.hits as hit (hit.id)}
|
|
29
|
+
<li class="min-w-0">
|
|
30
|
+
<p class="truncate font-medium text-foreground">{hit.title}</p>
|
|
31
|
+
{#if hit.summary}
|
|
32
|
+
<p class="line-clamp-2 text-footnote text-muted-foreground">{hit.summary}</p>
|
|
33
|
+
{/if}
|
|
34
|
+
</li>
|
|
35
|
+
{/each}
|
|
36
|
+
</ul>
|
|
37
|
+
{:else if !tool.error}
|
|
38
|
+
<p class="text-muted-foreground italic">No matching topics.</p>
|
|
39
|
+
{/if}
|
|
40
|
+
</ToolCardBody>
|
|
41
|
+
</ToolCard>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ToolWidgetProps } from '@vibesdotdev/kit/components/tool-widgets';
|
|
2
|
+
declare const DocsToolCard: import("svelte").Component<ToolWidgetProps, {}, "">;
|
|
3
|
+
type DocsToolCard = ReturnType<typeof DocsToolCard>;
|
|
4
|
+
export default DocsToolCard;
|
|
5
|
+
//# sourceMappingURL=DocsToolCard.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocsToolCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/tool-widgets/DocsToolCard.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,eAAe,EACpB,MAAM,0CAA0C,CAAC;AAyCnD,QAAA,MAAM,YAAY,qDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* First-party widget for `document.read`: source path and a text excerpt.
|
|
4
|
+
*/
|
|
5
|
+
import {
|
|
6
|
+
ToolCard,
|
|
7
|
+
ToolCardBody,
|
|
8
|
+
type ToolWidgetProps
|
|
9
|
+
} from '@vibesdotdev/kit/components/tool-widgets';
|
|
10
|
+
import { documentReadToolCardModel } from './models.js';
|
|
11
|
+
|
|
12
|
+
let { tool, compact = false }: ToolWidgetProps = $props();
|
|
13
|
+
|
|
14
|
+
const model = $derived(documentReadToolCardModel(tool));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<ToolCard {tool} {compact} title={model.path || 'Read document'} icon="lucide:file-text">
|
|
18
|
+
<ToolCardBody {compact}>
|
|
19
|
+
{#if model.path}
|
|
20
|
+
<p class="truncate font-mono text-footnote text-muted-foreground">{model.path}</p>
|
|
21
|
+
{/if}
|
|
22
|
+
{#if model.excerpt}
|
|
23
|
+
<p class="whitespace-pre-wrap text-foreground">{model.excerpt}</p>
|
|
24
|
+
{:else if !tool.error}
|
|
25
|
+
<p class="text-muted-foreground italic">No excerpt returned.</p>
|
|
26
|
+
{/if}
|
|
27
|
+
</ToolCardBody>
|
|
28
|
+
</ToolCard>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* First-party widget for `document.read`: source path and a text excerpt.
|
|
3
|
+
*/
|
|
4
|
+
import { type ToolWidgetProps } from '@vibesdotdev/kit/components/tool-widgets';
|
|
5
|
+
declare const DocumentReadToolCard: import("svelte").Component<ToolWidgetProps, {}, "">;
|
|
6
|
+
type DocumentReadToolCard = ReturnType<typeof DocumentReadToolCard>;
|
|
7
|
+
export default DocumentReadToolCard;
|
|
8
|
+
//# sourceMappingURL=DocumentReadToolCard.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentReadToolCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/tool-widgets/DocumentReadToolCard.svelte.ts"],"names":[],"mappings":"AAGA;;OAEI;AACJ,OAAO,EAGL,KAAK,eAAe,EACpB,MAAM,0CAA0C,CAAC;AA4BnD,QAAA,MAAM,oBAAoB,qDAAwC,CAAC;AACnE,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACpE,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* First-party widget for `presentations`: the requested presentation title.
|
|
4
|
+
*/
|
|
5
|
+
import {
|
|
6
|
+
ToolCard,
|
|
7
|
+
ToolCardBody,
|
|
8
|
+
type ToolWidgetProps
|
|
9
|
+
} from '@vibesdotdev/kit/components/tool-widgets';
|
|
10
|
+
import { presentationsToolCardModel } from './models.js';
|
|
11
|
+
|
|
12
|
+
let { tool, compact = false }: ToolWidgetProps = $props();
|
|
13
|
+
|
|
14
|
+
const model = $derived(presentationsToolCardModel(tool));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<ToolCard {tool} {compact} title={model.title || 'Presentation'} icon="lucide:presentation">
|
|
18
|
+
<ToolCardBody {compact}>
|
|
19
|
+
{#if model.title}
|
|
20
|
+
<p class="text-foreground">{model.title}</p>
|
|
21
|
+
{:else if !tool.error}
|
|
22
|
+
<p class="text-muted-foreground italic">No presentation title.</p>
|
|
23
|
+
{/if}
|
|
24
|
+
</ToolCardBody>
|
|
25
|
+
</ToolCard>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* First-party widget for `presentations`: the requested presentation title.
|
|
3
|
+
*/
|
|
4
|
+
import { type ToolWidgetProps } from '@vibesdotdev/kit/components/tool-widgets';
|
|
5
|
+
declare const PresentationsToolCard: import("svelte").Component<ToolWidgetProps, {}, "">;
|
|
6
|
+
type PresentationsToolCard = ReturnType<typeof PresentationsToolCard>;
|
|
7
|
+
export default PresentationsToolCard;
|
|
8
|
+
//# sourceMappingURL=PresentationsToolCard.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresentationsToolCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/tool-widgets/PresentationsToolCard.svelte.ts"],"names":[],"mappings":"AAGA;;OAEI;AACJ,OAAO,EAGL,KAAK,eAAe,EACpB,MAAM,0CAA0C,CAAC;AAyBnD,QAAA,MAAM,qBAAqB,qDAAwC,CAAC;AACpE,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,eAAe,qBAAqB,CAAC"}
|