@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
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VIBES DEV LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
6
|
+
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
16
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
18
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vibesdotdev/docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Runtime documentation descriptors, renderers, and CLI helpers for Vibes docs surfaces.
|
|
4
|
+
|
|
5
|
+
This package is part of the public Vibes framework package set. The source repository is private while the public repository split is being prepared, so package documentation is published on the Vibes docs site.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
bun add @vibesdotdev/docs
|
|
11
|
+
# or
|
|
12
|
+
npm install @vibesdotdev/docs
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
- Package guide: https://docs.vibes.dev/docs
|
|
18
|
+
- Vibes docs: https://docs.vibes.dev
|
|
19
|
+
|
|
20
|
+
## Plugin composition
|
|
21
|
+
|
|
22
|
+
Use `@vibesdotdev/docs/documents/cloud.plugin` in cloud hosts and
|
|
23
|
+
`@vibesdotdev/docs/documents/consumer.plugin` in consumer hosts.
|
|
24
|
+
`./documents/universal.plugin` exposes contracts with a typed refusal when no
|
|
25
|
+
renderer is composed. The established `./documents/plugin` combines both scopes.
|
|
26
|
+
|
|
27
|
+
Presentations expose matching `./documents/presentations/universal.plugin`,
|
|
28
|
+
`./documents/presentations/cloud.plugin` and
|
|
29
|
+
`./documents/presentations/consumer.plugin` entrypoints. The established
|
|
30
|
+
`./documents/presentations/plugin` remains a consumer composition.
|
|
31
|
+
|
|
32
|
+
Compose `docsTuiPlugin` from `./tui/plugin` with Docs and TUI. It resolves
|
|
33
|
+
the owned Docs client at activation; hosts pass their runtime through
|
|
34
|
+
`TuiRuntimeProvider` when rendering the resolved app.
|
|
35
|
+
|
|
36
|
+
## Runtime clients and compatible entrypoints
|
|
37
|
+
|
|
38
|
+
Resolve topic discovery through `getVibesDocsClient(runtime)`. DOCX hosts
|
|
39
|
+
compose `./documents/docx/plugin` and resolve `getVibesDocxClient(runtime)`
|
|
40
|
+
from `./documents/docx/client` before using synchronous registry facades.
|
|
41
|
+
Templates and schemas live in runtime descriptors; custom registries isolate
|
|
42
|
+
namespaces. The retained `defaultRegistry` forwards each call to the supplied
|
|
43
|
+
runtime. Generation preserves validated defaults/transforms and refuses invalid
|
|
44
|
+
transformed data with `INVALID_INPUT/docx-render-data-invalid`.
|
|
45
|
+
|
|
46
|
+
The package root exposes topic contracts, the semantic client and parsing/render
|
|
47
|
+
helpers. CLI, TUI, Svelte and document plugins use explicit subpaths.
|
|
48
|
+
`./runbooks` and `./runbooks/plugin` forward to
|
|
49
|
+
`@vibesdotdev/runbooks`, which owns catalogs, workflows and their commands.
|
|
50
|
+
|
|
51
|
+
## Verification
|
|
52
|
+
|
|
53
|
+
`bun run check` typechecks production code, tests and Svelte TypeScript, then
|
|
54
|
+
runs Svelte diagnostics. `bun run test` exercises composed runtimes and the real
|
|
55
|
+
TUI renderer in process. `bun run build` emits production artifacts separately
|
|
56
|
+
from tests and builds Svelte under `dist/svelte`. Workspace rules and the
|
|
57
|
+
configured Oxlint ratchet complete the package checks.
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
MIT. See [LICENSE](LICENSE) for the terms.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## Svelte state lifetime
|
|
65
|
+
|
|
66
|
+
The semantic owner remains `runtime/client:docs`. Reactive search and selection
|
|
67
|
+
are projections owned by the Svelte component context, disposed with their
|
|
68
|
+
provider. Wrap consumers in `<DocsLoader>…</DocsLoader>`, or call
|
|
69
|
+
`getDocsState()` in a parent layout before rendering sibling loader/search/viewer
|
|
70
|
+
components. The retained `docsState` export is now the same context accessor:
|
|
71
|
+
call `docsState()` during component initialization instead of reading a global
|
|
72
|
+
store. Separate trees never share clients, selection, or search results.
|
|
73
|
+
Origin resolution reads the handed runtime each time without module caches.
|
|
74
|
+
The `./runbooks` forwarding entrypoint exports both `RunbookManager` and the
|
|
75
|
+
callable `createRunbook` from the canonical catalog owner.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs CLI Slice Plugin
|
|
3
|
+
*
|
|
4
|
+
* Registers the `vibes docs` CLI surface + top-level `vibes man` command
|
|
5
|
+
* against the `cli/group` and `cli/command` kinds owned by
|
|
6
|
+
* `@vibesdotdev/cli`. The core `@vibesdotdev/docs/plugin` keeps the
|
|
7
|
+
* `docs/topic` kind and docs client — surface-neutral pieces every consumer needs.
|
|
8
|
+
*
|
|
9
|
+
* Apps that ship a CLI surface (cli-bin and similar) auto-resolve this
|
|
10
|
+
* via the package-plugin resolver, which picks up any `*.plugin` export.
|
|
11
|
+
*/
|
|
12
|
+
declare const defaultExport: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
13
|
+
export default defaultExport;
|
|
14
|
+
//# sourceMappingURL=cli.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.plugin.d.ts","sourceRoot":"","sources":["../../src/cli/cli.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA0BH,QAAA,MAAM,aAAa,6CAwBjB,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs CLI Slice Plugin
|
|
3
|
+
*
|
|
4
|
+
* Registers the `vibes docs` CLI surface + top-level `vibes man` command
|
|
5
|
+
* against the `cli/group` and `cli/command` kinds owned by
|
|
6
|
+
* `@vibesdotdev/cli`. The core `@vibesdotdev/docs/plugin` keeps the
|
|
7
|
+
* `docs/topic` kind and docs client — surface-neutral pieces every consumer needs.
|
|
8
|
+
*
|
|
9
|
+
* Apps that ship a CLI surface (cli-bin and similar) auto-resolve this
|
|
10
|
+
* via the package-plugin resolver, which picks up any `*.plugin` export.
|
|
11
|
+
*/
|
|
12
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
13
|
+
// Docs CLI group + remaining commands.
|
|
14
|
+
//
|
|
15
|
+
// `docs.list`, `docs.search`, and `docs.show` migrated to
|
|
16
|
+
// `@vibesdotdev/docs/cli` in-package export
|
|
17
|
+
// (Wave 4). They were removed from this plugin atomically in the
|
|
18
|
+
// same change to avoid duplicate `cli/command` id registrations.
|
|
19
|
+
//
|
|
20
|
+
// The group descriptor stays here so older consumers that import
|
|
21
|
+
// `@vibesdotdev/docs/cli.plugin` directly still get a working
|
|
22
|
+
// `vibes docs` group (it's idempotent with the docs-cli group).
|
|
23
|
+
import docsGroup from "./docs.cli-group.descriptor.js";
|
|
24
|
+
import docsOpen from "./commands/open/docs.open.cli-command.descriptor.js";
|
|
25
|
+
import docsGenerate from "./commands/generate/docs.generate.cli-command.descriptor.js";
|
|
26
|
+
import manCommand from "./commands/man/man.cli-command.descriptor.js";
|
|
27
|
+
// Primary `vibes docs` commands folded into the in-package docs/cli surface.
|
|
28
|
+
import { listCommandDescriptor } from "./commands/docs.list.command.descriptor.js";
|
|
29
|
+
import { searchCommandDescriptor } from "./commands/search.command.descriptor.js";
|
|
30
|
+
import { showCommandDescriptor } from "./commands/docs.show.command.descriptor.js";
|
|
31
|
+
const CLI_COMMAND = { kind: 'cli/command' };
|
|
32
|
+
// Hoisted const: tsc rewriteRelativeImportExtensions does not rewrite `.ts` specifiers inside `export default <expr>` (TS 6.0.3).
|
|
33
|
+
const defaultExport = createRuntimePlugin({
|
|
34
|
+
id: 'docs.cli',
|
|
35
|
+
name: 'Docs CLI Surface',
|
|
36
|
+
description: '`vibes docs open|generate|list|search|show` + `vibes man`',
|
|
37
|
+
dependencies: ['docs', 'cli'],
|
|
38
|
+
descriptors: [
|
|
39
|
+
docsGroup,
|
|
40
|
+
docsOpen,
|
|
41
|
+
docsGenerate,
|
|
42
|
+
manCommand,
|
|
43
|
+
listCommandDescriptor,
|
|
44
|
+
searchCommandDescriptor,
|
|
45
|
+
showCommandDescriptor
|
|
46
|
+
],
|
|
47
|
+
loaders: [
|
|
48
|
+
loader('docs.open', CLI_COMMAND, () => import("./commands/open/docs.open.cli-command.impl.js")),
|
|
49
|
+
loader('docs.generate', CLI_COMMAND, () => import("./commands/generate/docs.generate.cli-command.impl.js")),
|
|
50
|
+
loader('man', CLI_COMMAND, () => import("./commands/man/man.cli-command.impl.js")),
|
|
51
|
+
loader('docs.list', CLI_COMMAND, () => import("./commands/docs.list.command.impl.js")),
|
|
52
|
+
loader('docs.search', CLI_COMMAND, () => import("./commands/search.command.impl.js")),
|
|
53
|
+
loader('docs.show', CLI_COMMAND, () => import("./commands/docs.show.command.impl.js"))
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
export default defaultExport;
|
|
57
|
+
//# sourceMappingURL=cli.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.plugin.js","sourceRoot":"","sources":["../../src/cli/cli.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElE,uCAAuC;AACvC,EAAE;AACF,0DAA0D;AAC1D,4CAA4C;AAC5C,iEAAiE;AACjE,iEAAiE;AACjE,EAAE;AACF,iE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AAW,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,sCAAsC,CAAC,CAAC;KACtF;CACD,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs list` — list all registered documentation topics.
|
|
3
|
+
*/
|
|
4
|
+
export declare const listCommandDescriptor: {
|
|
5
|
+
readonly kind: "cli/command";
|
|
6
|
+
readonly id: "docs.list";
|
|
7
|
+
readonly name: "list";
|
|
8
|
+
readonly description: "List all registered documentation topics";
|
|
9
|
+
readonly group: "docs";
|
|
10
|
+
readonly arguments: [];
|
|
11
|
+
readonly options: [{
|
|
12
|
+
readonly flags: "--tag <tag>";
|
|
13
|
+
readonly description: "Only topics matching the tag";
|
|
14
|
+
}, {
|
|
15
|
+
readonly flags: "--parent <id>";
|
|
16
|
+
readonly description: "Only topics whose parent matches";
|
|
17
|
+
}];
|
|
18
|
+
readonly aliases: ["ls"];
|
|
19
|
+
readonly surfaces: ["cli"];
|
|
20
|
+
readonly hardware: ["consumer", "cloud"];
|
|
21
|
+
readonly enabled: true;
|
|
22
|
+
readonly examples: [{
|
|
23
|
+
readonly command: "vibes docs list";
|
|
24
|
+
readonly description: "List all registered documentation topics";
|
|
25
|
+
readonly expectExit: 0;
|
|
26
|
+
}, {
|
|
27
|
+
readonly command: "vibes docs list --json";
|
|
28
|
+
readonly description: "Emit topics as JSON";
|
|
29
|
+
readonly expectExit: 0;
|
|
30
|
+
}];
|
|
31
|
+
};
|
|
32
|
+
export default listCommandDescriptor;
|
|
33
|
+
//# sourceMappingURL=docs.list.command.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.list.command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/docs.list.command.descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhC,CAAC;AAEH,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs list` — list all registered documentation topics.
|
|
3
|
+
*/
|
|
4
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
5
|
+
export const listCommandDescriptor = createRuntimeAsset({
|
|
6
|
+
kind: 'cli/command',
|
|
7
|
+
id: 'docs.list',
|
|
8
|
+
name: 'list',
|
|
9
|
+
description: 'List all registered documentation topics',
|
|
10
|
+
group: 'docs',
|
|
11
|
+
arguments: [],
|
|
12
|
+
options: [
|
|
13
|
+
{ flags: '--tag <tag>', description: 'Only topics matching the tag' },
|
|
14
|
+
{ flags: '--parent <id>', description: 'Only topics whose parent matches' }
|
|
15
|
+
],
|
|
16
|
+
aliases: ['ls'],
|
|
17
|
+
surfaces: ['cli'],
|
|
18
|
+
hardware: ['consumer', 'cloud'],
|
|
19
|
+
enabled: true,
|
|
20
|
+
examples: [
|
|
21
|
+
{
|
|
22
|
+
command: 'vibes docs list',
|
|
23
|
+
description: 'List all registered documentation topics',
|
|
24
|
+
expectExit: 0
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
command: 'vibes docs list --json',
|
|
28
|
+
description: 'Emit topics as JSON',
|
|
29
|
+
expectExit: 0
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
export default listCommandDescriptor;
|
|
34
|
+
//# sourceMappingURL=docs.list.command.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.list.command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/commands/docs.list.command.descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;IACvD,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,0CAA0C;IACvD,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,EAAE;IACb,OAAO,EAAE;QACR,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA8B,EAAE;QACrE,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,kCAAkC,EAAE;KAC3E;IACD,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE;QACT;YACC,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,0CAA0C;YACvD,UAAU,EAAE,CAAC;SACb;QACD;YACC,OAAO,EAAE,wBAAwB;YACjC,WAAW,EAAE,qBAAqB;YAClC,UAAU,EAAE,CAAC;SACb;KACD;CACD,CAAC,CAAC;AAEH,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs list` implementation.
|
|
3
|
+
*
|
|
4
|
+
* Queries the `docs/topic` kind directly via the runtime (per the
|
|
5
|
+
* tools-cli pilot — runtime.query is the canonical data path when
|
|
6
|
+
* the data flows through a registered kind). Emits structured JSON
|
|
7
|
+
* (`--json` / `--format=json`) or a hand-formatted table.
|
|
8
|
+
*/
|
|
9
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
10
|
+
export interface DocsListArgs {
|
|
11
|
+
}
|
|
12
|
+
export interface DocsListOpts {
|
|
13
|
+
tag?: string;
|
|
14
|
+
parent?: string;
|
|
15
|
+
format?: string;
|
|
16
|
+
json?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function execute(_args: DocsListArgs, opts: DocsListOpts, context: {
|
|
19
|
+
runtime: VibesRuntime;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
declare const _default: {
|
|
22
|
+
execute: typeof execute;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=docs.list.command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.list.command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/docs.list.command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAAqD,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAG3G,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AA8ED,wBAAsB,OAAO,CAC5B,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,GAChC,OAAO,CAAC,IAAI,CAAC,CA6Bf;;;;AAED,wBAA2B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs list` implementation.
|
|
3
|
+
*
|
|
4
|
+
* Queries the `docs/topic` kind directly via the runtime (per the
|
|
5
|
+
* tools-cli pilot — runtime.query is the canonical data path when
|
|
6
|
+
* the data flows through a registered kind). Emits structured JSON
|
|
7
|
+
* (`--json` / `--format=json`) or a hand-formatted table.
|
|
8
|
+
*/
|
|
9
|
+
import { commandWriters, writeJson } from '@vibesdotdev/cli/output';
|
|
10
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
11
|
+
import { settleNow, valueFreeFailure, settle } from '@vibesdotdev/kernel';
|
|
12
|
+
function descriptorToRow(d) {
|
|
13
|
+
return {
|
|
14
|
+
id: d.id,
|
|
15
|
+
title: d.title ?? d.id,
|
|
16
|
+
summary: d.summary,
|
|
17
|
+
parent: d.parent,
|
|
18
|
+
tags: d.tags ? [...d.tags] : [],
|
|
19
|
+
bodyType: d.body?.type ?? 'unknown'
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function gatherTopics(runtime, opts) {
|
|
23
|
+
if (!runtime.hasKind('docs/topic'))
|
|
24
|
+
return [];
|
|
25
|
+
const descriptors = runtime
|
|
26
|
+
.query('docs/topic')
|
|
27
|
+
.enabled()
|
|
28
|
+
.descriptors();
|
|
29
|
+
let rows = descriptors.map(descriptorToRow);
|
|
30
|
+
if (opts.tag) {
|
|
31
|
+
const tag = opts.tag;
|
|
32
|
+
rows = rows.filter((r) => r.tags.includes(tag));
|
|
33
|
+
}
|
|
34
|
+
if (opts.parent) {
|
|
35
|
+
const parent = opts.parent;
|
|
36
|
+
rows = rows.filter((r) => r.parent === parent);
|
|
37
|
+
}
|
|
38
|
+
rows.sort((a, b) => a.id.localeCompare(b.id));
|
|
39
|
+
return rows;
|
|
40
|
+
}
|
|
41
|
+
async function printTable(runtime, rows) {
|
|
42
|
+
const writers = await commandWriters(runtime);
|
|
43
|
+
if (rows.length === 0) {
|
|
44
|
+
writers.log('No documentation topics registered.');
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
writers.log(`\nDocumentation Topics (${rows.length}):\n`);
|
|
48
|
+
writers.log(`${'ID'.padEnd(32)} ${'Type'.padEnd(10)} ${'Parent'.padEnd(14)} Title`);
|
|
49
|
+
writers.log('-'.repeat(96));
|
|
50
|
+
for (const r of rows) {
|
|
51
|
+
writers.log(`${r.id.slice(0, 32).padEnd(32)} ${r.bodyType.slice(0, 10).padEnd(10)} ${(r.parent ?? '-').slice(0, 14).padEnd(14)} ${r.title}`);
|
|
52
|
+
}
|
|
53
|
+
writers.log('');
|
|
54
|
+
}
|
|
55
|
+
async function resolveUIContext(runtime) {
|
|
56
|
+
return settle(() => runtime.context('cli/ui'));
|
|
57
|
+
}
|
|
58
|
+
export async function execute(_args, opts, context) {
|
|
59
|
+
const options = {
|
|
60
|
+
tag: opts.tag,
|
|
61
|
+
parent: opts.parent,
|
|
62
|
+
format: opts.format,
|
|
63
|
+
json: opts.json === true
|
|
64
|
+
};
|
|
65
|
+
const rows = gatherTopics(context.runtime, options);
|
|
66
|
+
const format = options.json ? 'json' : options.format;
|
|
67
|
+
const wantsStructured = format === 'json' || format === 'yaml' || format === 'markdown';
|
|
68
|
+
if (wantsStructured) {
|
|
69
|
+
const uiResult = await resolveUIContext(context.runtime);
|
|
70
|
+
if (uiResult.ok && uiResult.value?.render) {
|
|
71
|
+
uiResult.value.render(rows, { format: format ?? 'json' });
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (!uiResult.ok) {
|
|
75
|
+
const diagnostic = settleNow(() => getLogger('docs.list', context.runtime).debug('cli/ui context unavailable; writing structured JSON', {
|
|
76
|
+
error: valueFreeFailure(uiResult.cause)
|
|
77
|
+
}));
|
|
78
|
+
if (!diagnostic.ok)
|
|
79
|
+
settleNow(() => context.runtime.diagnostics.error('Docs structured fallback diagnostic failed', { scope: 'docs', plugin: 'docs', error: new AggregateError([uiResult.cause, diagnostic.cause], 'Primary failure and diagnostic failed.', { cause: uiResult.cause }) }));
|
|
80
|
+
}
|
|
81
|
+
await writeJson(context.runtime, rows);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
await printTable(context.runtime, rows);
|
|
85
|
+
}
|
|
86
|
+
export default { execute };
|
|
87
|
+
//# sourceMappingURL=docs.list.command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.list.command.impl.js","sourceRoot":"","sources":["../../../src/cli/commands/docs.list.command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAmC,MAAM,qBAAqB,CAAC;AA4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AI,CAAC,UAAU,CAAC,EAAE;gBAAE,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,4CAA4C,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,cAAc,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,wCAAwC,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7R,CAAC;QACD,MAAM,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACvC,OAAO;IACR,CAAC;IAED,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAED,eAAe,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs show <topicId>` — render a topic to stdout.
|
|
3
|
+
*
|
|
4
|
+
* Supports either a single topic id (`vibes docs show ai.providers`)
|
|
5
|
+
* or a subject reference (`vibes docs show <kind> <id>`), mirroring
|
|
6
|
+
* the legacy command for backwards compatibility.
|
|
7
|
+
*/
|
|
8
|
+
export declare const showCommandDescriptor: {
|
|
9
|
+
readonly kind: "cli/command";
|
|
10
|
+
readonly id: "docs.show";
|
|
11
|
+
readonly name: "show";
|
|
12
|
+
readonly description: "Render a documentation topic to stdout in man-page format";
|
|
13
|
+
readonly group: "docs";
|
|
14
|
+
readonly arguments: [{
|
|
15
|
+
readonly name: "topic";
|
|
16
|
+
readonly description: "Topic id (e.g. ai.providers) or subject kind (when followed by an id)";
|
|
17
|
+
readonly required: true;
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "id";
|
|
20
|
+
readonly description: "When supplied, the previous argument is treated as a subject kind";
|
|
21
|
+
readonly required: false;
|
|
22
|
+
}];
|
|
23
|
+
readonly options: [{
|
|
24
|
+
readonly flags: "--bare";
|
|
25
|
+
readonly description: "Skip the man-page envelope; emit body only";
|
|
26
|
+
}, {
|
|
27
|
+
readonly flags: "--no-color";
|
|
28
|
+
readonly description: "Disable ANSI color";
|
|
29
|
+
}];
|
|
30
|
+
readonly surfaces: ["cli"];
|
|
31
|
+
readonly hardware: ["consumer", "cloud"];
|
|
32
|
+
readonly enabled: true;
|
|
33
|
+
readonly examples: [{
|
|
34
|
+
readonly command: "vibes docs show ai.providers";
|
|
35
|
+
readonly description: "Render the ai.providers topic";
|
|
36
|
+
readonly expectExit: 0;
|
|
37
|
+
}, {
|
|
38
|
+
readonly command: "vibes docs show ai.providers --json";
|
|
39
|
+
readonly description: "Emit the descriptor + body as JSON";
|
|
40
|
+
readonly expectExit: 0;
|
|
41
|
+
}];
|
|
42
|
+
};
|
|
43
|
+
export default showCommandDescriptor;
|
|
44
|
+
//# sourceMappingURL=docs.show.command.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.show.command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/docs.show.command.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqChC,CAAC;AAEH,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs show <topicId>` — render a topic to stdout.
|
|
3
|
+
*
|
|
4
|
+
* Supports either a single topic id (`vibes docs show ai.providers`)
|
|
5
|
+
* or a subject reference (`vibes docs show <kind> <id>`), mirroring
|
|
6
|
+
* the legacy command for backwards compatibility.
|
|
7
|
+
*/
|
|
8
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
9
|
+
export const showCommandDescriptor = createRuntimeAsset({
|
|
10
|
+
kind: 'cli/command',
|
|
11
|
+
id: 'docs.show',
|
|
12
|
+
name: 'show',
|
|
13
|
+
description: 'Render a documentation topic to stdout in man-page format',
|
|
14
|
+
group: 'docs',
|
|
15
|
+
arguments: [
|
|
16
|
+
{
|
|
17
|
+
name: 'topic',
|
|
18
|
+
description: 'Topic id (e.g. ai.providers) or subject kind (when followed by an id)',
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'id',
|
|
23
|
+
description: 'When supplied, the previous argument is treated as a subject kind',
|
|
24
|
+
required: false
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
options: [
|
|
28
|
+
{ flags: '--bare', description: 'Skip the man-page envelope; emit body only' },
|
|
29
|
+
{ flags: '--no-color', description: 'Disable ANSI color' }
|
|
30
|
+
],
|
|
31
|
+
surfaces: ['cli'],
|
|
32
|
+
hardware: ['consumer', 'cloud'],
|
|
33
|
+
enabled: true,
|
|
34
|
+
examples: [
|
|
35
|
+
{
|
|
36
|
+
command: 'vibes docs show ai.providers',
|
|
37
|
+
description: 'Render the ai.providers topic',
|
|
38
|
+
expectExit: 0
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
command: 'vibes docs show ai.providers --json',
|
|
42
|
+
description: 'Emit the descriptor + body as JSON',
|
|
43
|
+
expectExit: 0
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
export default showCommandDescriptor;
|
|
48
|
+
//# sourceMappingURL=docs.show.command.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.show.command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/commands/docs.show.command.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;IACvD,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,2DAA2D;IACxE,KAAK,EAAE,MAAM;IACb,SAAS,EAAE;QACV;YACC,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,uEAAuE;YACpF,QAAQ,EAAE,IAAI;SACd;QACD;YACC,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,mEAAmE;YAChF,QAAQ,EAAE,KAAK;SACf;KACD;IACD,OAAO,EAAE;QACR,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,4CAA4C,EAAE;QAC9E,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE;KAC1D;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE;QACT;YACC,OAAO,EAAE,8BAA8B;YACvC,WAAW,EAAE,+BAA+B;YAC5C,UAAU,EAAE,CAAC;SACb;QACD;YACC,OAAO,EAAE,qCAAqC;YAC9C,WAAW,EAAE,oCAAoC;YACjD,UAAU,EAAE,CAAC;SACb;KACD;CACD,CAAC,CAAC;AAEH,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs show` implementation.
|
|
3
|
+
*
|
|
4
|
+
* Uses the `DocsClient` (registered runtime client id `'docs'`) for
|
|
5
|
+
* subject + id lookup and body resolution, then renders via
|
|
6
|
+
* `renderTopicToTerminal` from `@vibesdotdev/docs/render`. JSON output
|
|
7
|
+
* emits the raw descriptor + resolved body without ANSI envelope.
|
|
8
|
+
*/
|
|
9
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel';
|
|
10
|
+
interface ShowArgs {
|
|
11
|
+
topic?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
}
|
|
14
|
+
interface ShowOptions {
|
|
15
|
+
bare?: boolean;
|
|
16
|
+
color?: boolean;
|
|
17
|
+
format?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function execute(args: ShowArgs, opts: ShowOptions, context: {
|
|
20
|
+
runtime: VibesRuntime;
|
|
21
|
+
}): Promise<void>;
|
|
22
|
+
declare const _default: {
|
|
23
|
+
execute: typeof execute;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
26
|
+
//# sourceMappingURL=docs.show.command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.show.command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/docs.show.command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,UAAU,QAAQ;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,UAAU,WAAW;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAoBD,wBAAsB,OAAO,CAC5B,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,GAChC,OAAO,CAAC,IAAI,CAAC,CA0Df;;;;AAED,wBAA2B"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes docs show` implementation.
|
|
3
|
+
*
|
|
4
|
+
* Uses the `DocsClient` (registered runtime client id `'docs'`) for
|
|
5
|
+
* subject + id lookup and body resolution, then renders via
|
|
6
|
+
* `renderTopicToTerminal` from `@vibesdotdev/docs/render`. JSON output
|
|
7
|
+
* emits the raw descriptor + resolved body without ANSI envelope.
|
|
8
|
+
*/
|
|
9
|
+
import { getVibesDocsClient } from "../../client/index.js";
|
|
10
|
+
import { renderTopicToTerminal, stripAnsi } from '@vibesdotdev/docs/render';
|
|
11
|
+
import { commandWriters, writeJson, writeStdoutLine } from '@vibesdotdev/cli/output';
|
|
12
|
+
import { requestCLIExit } from '@vibesdotdev/cli/providers';
|
|
13
|
+
function findTopic(docs, topicArg, idArg) {
|
|
14
|
+
if (idArg) {
|
|
15
|
+
return docs.findBySubject({ kind: topicArg, id: idArg });
|
|
16
|
+
}
|
|
17
|
+
const byId = docs.findById(topicArg);
|
|
18
|
+
if (byId)
|
|
19
|
+
return byId;
|
|
20
|
+
// Fall back to subject lookups across tools and descriptor-backed docs kinds.
|
|
21
|
+
for (const kind of ['tools/tool', 'rules/rule', 'runnable/runnable', 'runbook', 'diagnostics/check']) {
|
|
22
|
+
const bySubject = docs.findBySubject({ kind, id: topicArg });
|
|
23
|
+
if (bySubject)
|
|
24
|
+
return bySubject;
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
export async function execute(args, opts, context) {
|
|
29
|
+
const { topic, id } = args;
|
|
30
|
+
const topicArg = topic ? topic.trim() : '';
|
|
31
|
+
const idArg = id !== undefined && id !== null ? String(id).trim() : null;
|
|
32
|
+
const options = {
|
|
33
|
+
bare: opts.bare === true,
|
|
34
|
+
color: opts.color !== false,
|
|
35
|
+
format: opts.format
|
|
36
|
+
};
|
|
37
|
+
const wantsJson = options.format === 'json';
|
|
38
|
+
if (!topicArg) {
|
|
39
|
+
const message = 'topic is required (usage: vibes docs show <topic>)';
|
|
40
|
+
if (wantsJson) {
|
|
41
|
+
await writeJson(context.runtime, { error: message });
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const writers = await commandWriters(context.runtime);
|
|
45
|
+
writers.log(message);
|
|
46
|
+
}
|
|
47
|
+
requestCLIExit(1);
|
|
48
|
+
}
|
|
49
|
+
const docs = await getVibesDocsClient(context.runtime);
|
|
50
|
+
const descriptor = findTopic(docs, topicArg, idArg);
|
|
51
|
+
if (!descriptor) {
|
|
52
|
+
const subjectLabel = idArg ? `${topicArg}:${idArg}` : topicArg;
|
|
53
|
+
const message = `No topic registered for "${subjectLabel}"`;
|
|
54
|
+
if (wantsJson) {
|
|
55
|
+
await writeJson(context.runtime, { error: message });
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const writers = await commandWriters(context.runtime);
|
|
59
|
+
writers.log(message);
|
|
60
|
+
writers.log('Run `vibes docs list` to see registered topics.');
|
|
61
|
+
}
|
|
62
|
+
requestCLIExit(1);
|
|
63
|
+
}
|
|
64
|
+
const body = docs.resolveBody(descriptor) ??
|
|
65
|
+
`(${descriptor.body.type} body — no markdown text)`;
|
|
66
|
+
if (wantsJson) {
|
|
67
|
+
// Pure JSON via cli/output — never banner mixed on stdout.
|
|
68
|
+
await writeJson(context.runtime, { id: descriptor.id, descriptor, body });
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const siblings = docs.siblingTopicIds(descriptor);
|
|
72
|
+
let output = renderTopicToTerminal(context.runtime, descriptor, body, {
|
|
73
|
+
siblingTopicIds: siblings,
|
|
74
|
+
bare: options.bare === true
|
|
75
|
+
});
|
|
76
|
+
if (options.color === false || context.runtime.getEnv('NO_COLOR')) {
|
|
77
|
+
output = stripAnsi(output);
|
|
78
|
+
}
|
|
79
|
+
await writeStdoutLine(context.runtime, output);
|
|
80
|
+
}
|
|
81
|
+
export default { execute };
|
|
82
|
+
//# sourceMappingURL=docs.show.command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.show.command.impl.js","sourceRoot":"","sources":["../../../src/cli/commands/docs.show.command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,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UAAU,CAAC,IAAI,CAAC,IAAI,2BAA2B,CAAC;IAErD,IAAI,SAAS,EAAE,CAAC;QACf,2DAA2D;QAC3D,MAAM,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1E,OAAO;IACR,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAClD,IAAI,MAAM,GAAG,qBAAqB,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE;QACrE,eAAe,EAAE,QAAQ;QACzB,IAAI,EAAE,OAAO,CAAC,IAAI,KAAK,IAAI;KAC3B,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QACnE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IACD,MAAM,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,eAAe,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.generate.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/generate/docs.generate.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEtF,QAAA,MAAM,UAAU,EAAE,yBAuDjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|