@vibesdotdev/docs 0.0.0-stage → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +74 -2
- package/dist/cli/cli.plugin.d.ts +14 -0
- package/dist/cli/cli.plugin.d.ts.map +1 -0
- package/dist/cli/cli.plugin.js +57 -0
- package/dist/cli/cli.plugin.js.map +1 -0
- package/dist/cli/commands/docs.list.command.descriptor.d.ts +33 -0
- package/dist/cli/commands/docs.list.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/docs.list.command.descriptor.js +34 -0
- package/dist/cli/commands/docs.list.command.descriptor.js.map +1 -0
- package/dist/cli/commands/docs.list.command.impl.d.ts +25 -0
- package/dist/cli/commands/docs.list.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/docs.list.command.impl.js +87 -0
- package/dist/cli/commands/docs.list.command.impl.js.map +1 -0
- package/dist/cli/commands/docs.show.command.descriptor.d.ts +44 -0
- package/dist/cli/commands/docs.show.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/docs.show.command.descriptor.js +48 -0
- package/dist/cli/commands/docs.show.command.descriptor.js.map +1 -0
- package/dist/cli/commands/docs.show.command.impl.d.ts +26 -0
- package/dist/cli/commands/docs.show.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/docs.show.command.impl.js +82 -0
- package/dist/cli/commands/docs.show.command.impl.js.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.d.ts +4 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.js +58 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.d.ts +24 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.js +283 -0
- package/dist/cli/commands/generate/docs.generate.cli-command.impl.js.map +1 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.d.ts +4 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.js +32 -0
- package/dist/cli/commands/man/man.cli-command.descriptor.js.map +1 -0
- package/dist/cli/commands/man/man.cli-command.impl.d.ts +23 -0
- package/dist/cli/commands/man/man.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/commands/man/man.cli-command.impl.js +22 -0
- package/dist/cli/commands/man/man.cli-command.impl.js.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.d.ts +4 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.js +18 -0
- package/dist/cli/commands/open/docs.open.cli-command.descriptor.js.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.d.ts +14 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.js +52 -0
- package/dist/cli/commands/open/docs.open.cli-command.impl.js.map +1 -0
- package/dist/cli/commands/search.command.descriptor.d.ts +36 -0
- package/dist/cli/commands/search.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/search.command.descriptor.js +35 -0
- package/dist/cli/commands/search.command.descriptor.js.map +1 -0
- package/dist/cli/commands/search.command.impl.d.ts +25 -0
- package/dist/cli/commands/search.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/search.command.impl.js +113 -0
- package/dist/cli/commands/search.command.impl.js.map +1 -0
- package/dist/cli/directives/card.d.ts +11 -0
- package/dist/cli/directives/card.d.ts.map +1 -0
- package/dist/cli/directives/card.js +18 -0
- package/dist/cli/directives/card.js.map +1 -0
- package/dist/cli/directives/descriptor.d.ts +11 -0
- package/dist/cli/directives/descriptor.d.ts.map +1 -0
- package/dist/cli/directives/descriptor.js +20 -0
- package/dist/cli/directives/descriptor.js.map +1 -0
- package/dist/cli/directives/endpoint.d.ts +8 -0
- package/dist/cli/directives/endpoint.d.ts.map +1 -0
- package/dist/cli/directives/endpoint.js +31 -0
- package/dist/cli/directives/endpoint.js.map +1 -0
- package/dist/cli/directives/index.d.ts +9 -0
- package/dist/cli/directives/index.d.ts.map +1 -0
- package/dist/cli/directives/index.js +37 -0
- package/dist/cli/directives/index.js.map +1 -0
- package/dist/cli/directives/install.d.ts +12 -0
- package/dist/cli/directives/install.d.ts.map +1 -0
- package/dist/cli/directives/install.js +27 -0
- package/dist/cli/directives/install.js.map +1 -0
- package/dist/cli/directives/shell.d.ts +10 -0
- package/dist/cli/directives/shell.d.ts.map +1 -0
- package/dist/cli/directives/shell.js +16 -0
- package/dist/cli/directives/shell.js.map +1 -0
- package/dist/cli/directives/usage.d.ts +9 -0
- package/dist/cli/directives/usage.d.ts.map +1 -0
- package/dist/cli/directives/usage.js +13 -0
- package/dist/cli/directives/usage.js.map +1 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.d.ts +22 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.d.ts.map +1 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.js +92 -0
- package/dist/cli/docs/docs.cli.docs.descriptor.js.map +1 -0
- package/dist/cli/docs.cli-group.descriptor.d.ts +4 -0
- package/dist/cli/docs.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/docs.cli-group.descriptor.js +11 -0
- package/dist/cli/docs.cli-group.descriptor.js.map +1 -0
- package/dist/client/citations.d.ts +11 -0
- package/dist/client/citations.d.ts.map +1 -0
- package/dist/client/citations.js +197 -0
- package/dist/client/citations.js.map +1 -0
- package/dist/client/docs-client.d.ts +51 -0
- package/dist/client/docs-client.d.ts.map +1 -0
- package/dist/client/docs-client.js +298 -0
- package/dist/client/docs-client.js.map +1 -0
- package/dist/client/index.d.ts +12 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +13 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.d.ts +26 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +2 -0
- package/dist/client/types.js.map +1 -0
- package/dist/config/docs.svelte.config.descriptor.d.ts +50 -0
- package/dist/config/docs.svelte.config.descriptor.d.ts.map +1 -0
- package/dist/config/docs.svelte.config.descriptor.js +46 -0
- package/dist/config/docs.svelte.config.descriptor.js.map +1 -0
- package/dist/config/documents.source-refresh.config.descriptor.d.ts +41 -0
- package/dist/config/documents.source-refresh.config.descriptor.d.ts.map +1 -0
- package/dist/config/documents.source-refresh.config.descriptor.js +39 -0
- package/dist/config/documents.source-refresh.config.descriptor.js.map +1 -0
- package/dist/directives/index.d.ts +4 -0
- package/dist/directives/index.d.ts.map +1 -0
- package/dist/directives/index.js +3 -0
- package/dist/directives/index.js.map +1 -0
- package/dist/directives/registry.d.ts +31 -0
- package/dist/directives/registry.d.ts.map +1 -0
- package/dist/directives/registry.js +65 -0
- package/dist/directives/registry.js.map +1 -0
- package/dist/directives/types.d.ts +33 -0
- package/dist/directives/types.d.ts.map +1 -0
- package/dist/directives/types.js +2 -0
- package/dist/directives/types.js.map +1 -0
- package/dist/docs/agent-voice.docs.descriptor.d.ts +30 -0
- package/dist/docs/agent-voice.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/agent-voice.docs.descriptor.js +107 -0
- package/dist/docs/agent-voice.docs.descriptor.js.map +1 -0
- package/dist/docs/charts.usage.docs.descriptor.d.ts +27 -0
- package/dist/docs/charts.usage.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/charts.usage.docs.descriptor.js +90 -0
- package/dist/docs/charts.usage.docs.descriptor.js.map +1 -0
- package/dist/docs/command-palette.actions.docs.descriptor.d.ts +25 -0
- package/dist/docs/command-palette.actions.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/command-palette.actions.docs.descriptor.js +80 -0
- package/dist/docs/command-palette.actions.docs.descriptor.js.map +1 -0
- package/dist/docs/docs.directives.docs.descriptor.d.ts +22 -0
- package/dist/docs/docs.directives.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/docs.directives.docs.descriptor.js +104 -0
- package/dist/docs/docs.directives.docs.descriptor.js.map +1 -0
- package/dist/docs/docs.topics.docs.descriptor.d.ts +22 -0
- package/dist/docs/docs.topics.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/docs.topics.docs.descriptor.js +90 -0
- package/dist/docs/docs.topics.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.d.ts +30 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.js +93 -0
- package/dist/docs/fleet-pairing-direct.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.d.ts +30 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.js +88 -0
- package/dist/docs/fleet-pairing-mdns.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.d.ts +30 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.js +101 -0
- package/dist/docs/fleet-pairing-platform.docs.descriptor.js.map +1 -0
- package/dist/docs/fleet-pairing.docs.descriptor.d.ts +28 -0
- package/dist/docs/fleet-pairing.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/fleet-pairing.docs.descriptor.js +89 -0
- package/dist/docs/fleet-pairing.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started-cli.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started-cli.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started-cli.docs.descriptor.js +141 -0
- package/dist/docs/getting-started-cli.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.js +100 -0
- package/dist/docs/getting-started.concepts.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started.docs.descriptor.js +63 -0
- package/dist/docs/getting-started.docs.descriptor.js.map +1 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.d.ts +4 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.js +95 -0
- package/dist/docs/getting-started.first-query.docs.descriptor.js.map +1 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.d.ts +22 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.js +114 -0
- package/dist/docs/guided-flows.flows.docs.descriptor.js.map +1 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.d.ts +19 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.js +140 -0
- package/dist/docs/runtime-rpc-relay.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.js +115 -0
- package/dist/docs/tutorials.ai-text-generation.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.js +172 -0
- package/dist/docs/tutorials.build-an-app.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.js +142 -0
- package/dist/docs/tutorials.crud-collection.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.docs.descriptor.js +52 -0
- package/dist/docs/tutorials.docs.descriptor.js.map +1 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.d.ts +4 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.js +121 -0
- package/dist/docs/tutorials.runtime-plugin.docs.descriptor.js.map +1 -0
- package/dist/docs.plugin.d.ts +12 -0
- package/dist/docs.plugin.d.ts.map +1 -0
- package/dist/docs.plugin.js +118 -0
- package/dist/docs.plugin.js.map +1 -0
- package/dist/documents/documents.cloud.plugin.d.ts +3 -0
- package/dist/documents/documents.cloud.plugin.d.ts.map +1 -0
- package/dist/documents/documents.cloud.plugin.js +26 -0
- package/dist/documents/documents.cloud.plugin.js.map +1 -0
- package/dist/documents/documents.consumer.plugin.d.ts +3 -0
- package/dist/documents/documents.consumer.plugin.d.ts.map +1 -0
- package/dist/documents/documents.consumer.plugin.js +26 -0
- package/dist/documents/documents.consumer.plugin.js.map +1 -0
- package/dist/documents/documents.plugin.d.ts +3 -0
- package/dist/documents/documents.plugin.d.ts.map +1 -0
- package/dist/documents/documents.plugin.js +33 -0
- package/dist/documents/documents.plugin.js.map +1 -0
- package/dist/documents/docx/client.d.ts +56 -0
- package/dist/documents/docx/client.d.ts.map +1 -0
- package/dist/documents/docx/client.js +90 -0
- package/dist/documents/docx/client.js.map +1 -0
- package/dist/documents/docx/extract.d.ts +12 -0
- package/dist/documents/docx/extract.d.ts.map +1 -0
- package/dist/documents/docx/extract.js +62 -0
- package/dist/documents/docx/extract.js.map +1 -0
- package/dist/documents/docx/generator.d.ts +49 -0
- package/dist/documents/docx/generator.d.ts.map +1 -0
- package/dist/documents/docx/generator.js +101 -0
- package/dist/documents/docx/generator.js.map +1 -0
- package/dist/documents/docx/index.d.ts +19 -0
- package/dist/documents/docx/index.d.ts.map +1 -0
- package/dist/documents/docx/index.js +16 -0
- package/dist/documents/docx/index.js.map +1 -0
- package/dist/documents/docx/kinds.d.ts +10 -0
- package/dist/documents/docx/kinds.d.ts.map +1 -0
- package/dist/documents/docx/kinds.js +11 -0
- package/dist/documents/docx/kinds.js.map +1 -0
- package/dist/documents/docx/plugin/docx.plugin.d.ts +9 -0
- package/dist/documents/docx/plugin/docx.plugin.d.ts.map +1 -0
- package/dist/documents/docx/plugin/docx.plugin.js +35 -0
- package/dist/documents/docx/plugin/docx.plugin.js.map +1 -0
- package/dist/documents/docx/schemas/generator.d.ts +10 -0
- package/dist/documents/docx/schemas/generator.d.ts.map +1 -0
- package/dist/documents/docx/schemas/generator.js +2 -0
- package/dist/documents/docx/schemas/generator.js.map +1 -0
- package/dist/documents/docx/schemas/index.d.ts +4 -0
- package/dist/documents/docx/schemas/index.d.ts.map +1 -0
- package/dist/documents/docx/schemas/index.js +2 -0
- package/dist/documents/docx/schemas/index.js.map +1 -0
- package/dist/documents/docx/schemas/runtime.d.ts +68 -0
- package/dist/documents/docx/schemas/runtime.d.ts.map +1 -0
- package/dist/documents/docx/schemas/runtime.js +30 -0
- package/dist/documents/docx/schemas/runtime.js.map +1 -0
- package/dist/documents/docx/schemas/template-registry.d.ts +21 -0
- package/dist/documents/docx/schemas/template-registry.d.ts.map +1 -0
- package/dist/documents/docx/schemas/template-registry.js +2 -0
- package/dist/documents/docx/schemas/template-registry.js.map +1 -0
- package/dist/documents/docx/templates/index.d.ts +3 -0
- package/dist/documents/docx/templates/index.d.ts.map +1 -0
- package/dist/documents/docx/templates/index.js +2 -0
- package/dist/documents/docx/templates/index.js.map +1 -0
- package/dist/documents/docx/templates/loader.d.ts +20 -0
- package/dist/documents/docx/templates/loader.d.ts.map +1 -0
- package/dist/documents/docx/templates/loader.js +36 -0
- package/dist/documents/docx/templates/loader.js.map +1 -0
- package/dist/documents/docx/templates/types.d.ts +2 -0
- package/dist/documents/docx/templates/types.d.ts.map +1 -0
- package/dist/documents/docx/templates/types.js +2 -0
- package/dist/documents/docx/templates/types.js.map +1 -0
- package/dist/documents/index.d.ts +4 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/index.js +4 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/outline/parse-outline.d.ts +132 -0
- package/dist/documents/outline/parse-outline.d.ts.map +1 -0
- package/dist/documents/outline/parse-outline.js +246 -0
- package/dist/documents/outline/parse-outline.js.map +1 -0
- package/dist/documents/plugin.d.ts +3 -0
- package/dist/documents/plugin.d.ts.map +1 -0
- package/dist/documents/plugin.js +13 -0
- package/dist/documents/plugin.js.map +1 -0
- package/dist/documents/presentations/capabilities/index.d.ts +3 -0
- package/dist/documents/presentations/capabilities/index.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/index.js +3 -0
- package/dist/documents/presentations/capabilities/index.js.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.d.ts +333 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.js +101 -0
- package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.js.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.d.ts +65 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.js +152 -0
- package/dist/documents/presentations/capabilities/presentations.directory.kind.js.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.d.ts +68 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.d.ts.map +1 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.js +100 -0
- package/dist/documents/presentations/capabilities/presentations.surface.kind.js.map +1 -0
- package/dist/documents/presentations/client/contracts.d.ts +20 -0
- package/dist/documents/presentations/client/contracts.d.ts.map +1 -0
- package/dist/documents/presentations/client/contracts.js +2 -0
- package/dist/documents/presentations/client/contracts.js.map +1 -0
- package/dist/documents/presentations/client/index.d.ts +5 -0
- package/dist/documents/presentations/client/index.d.ts.map +1 -0
- package/dist/documents/presentations/client/index.js +5 -0
- package/dist/documents/presentations/client/index.js.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.d.ts +4 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.d.ts.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.js +13 -0
- package/dist/documents/presentations/client/presentations.runtime-client.descriptor.js.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.d.ts +711 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.d.ts.map +1 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.js +72 -0
- package/dist/documents/presentations/client/presentations.runtime-client.impl.js.map +1 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.d.ts +4 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.d.ts.map +1 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.js +54 -0
- package/dist/documents/presentations/docs/presentations.docs.descriptor.js.map +1 -0
- package/dist/documents/presentations/index.d.ts +8 -0
- package/dist/documents/presentations/index.d.ts.map +1 -0
- package/dist/documents/presentations/index.js +8 -0
- package/dist/documents/presentations/index.js.map +1 -0
- package/dist/documents/presentations/presentations.consumer.plugin.d.ts +4 -0
- package/dist/documents/presentations/presentations.consumer.plugin.d.ts.map +1 -0
- package/dist/documents/presentations/presentations.consumer.plugin.js +16 -0
- package/dist/documents/presentations/presentations.consumer.plugin.js.map +1 -0
- package/dist/documents/presentations/presentations.plugin.d.ts +3 -0
- package/dist/documents/presentations/presentations.plugin.d.ts.map +1 -0
- package/dist/documents/presentations/presentations.plugin.js +48 -0
- package/dist/documents/presentations/presentations.plugin.js.map +1 -0
- package/dist/documents/presentations/review-read-authority.d.ts +117 -0
- package/dist/documents/presentations/review-read-authority.d.ts.map +1 -0
- package/dist/documents/presentations/review-read-authority.js +74 -0
- package/dist/documents/presentations/review-read-authority.js.map +1 -0
- package/dist/documents/presentations/schemas/index.d.ts +5 -0
- package/dist/documents/presentations/schemas/index.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/index.js +5 -0
- package/dist/documents/presentations/schemas/index.js.map +1 -0
- package/dist/documents/presentations/schemas/owner.d.ts +28 -0
- package/dist/documents/presentations/schemas/owner.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/owner.js +18 -0
- package/dist/documents/presentations/schemas/owner.js.map +1 -0
- package/dist/documents/presentations/schemas/request.d.ts +325 -0
- package/dist/documents/presentations/schemas/request.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/request.js +169 -0
- package/dist/documents/presentations/schemas/request.js.map +1 -0
- package/dist/documents/presentations/schemas/review.d.ts +154 -0
- package/dist/documents/presentations/schemas/review.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/review.js +83 -0
- package/dist/documents/presentations/schemas/review.js.map +1 -0
- package/dist/documents/presentations/schemas/surface.d.ts +315 -0
- package/dist/documents/presentations/schemas/surface.d.ts.map +1 -0
- package/dist/documents/presentations/schemas/surface.js +125 -0
- package/dist/documents/presentations/schemas/surface.js.map +1 -0
- package/dist/documents/presentations/state-machine.d.ts +36 -0
- package/dist/documents/presentations/state-machine.d.ts.map +1 -0
- package/dist/documents/presentations/state-machine.js +158 -0
- package/dist/documents/presentations/state-machine.js.map +1 -0
- package/dist/documents/presentations/storage/index.d.ts +3 -0
- package/dist/documents/presentations/storage/index.d.ts.map +1 -0
- package/dist/documents/presentations/storage/index.js +3 -0
- package/dist/documents/presentations/storage/index.js.map +1 -0
- package/dist/documents/presentations/storage/owner-app.d.ts +12 -0
- package/dist/documents/presentations/storage/owner-app.d.ts.map +1 -0
- package/dist/documents/presentations/storage/owner-app.js +43 -0
- package/dist/documents/presentations/storage/owner-app.js.map +1 -0
- package/dist/documents/presentations/storage/owner-transforms.d.ts +476 -0
- package/dist/documents/presentations/storage/owner-transforms.d.ts.map +1 -0
- package/dist/documents/presentations/storage/owner-transforms.js +77 -0
- package/dist/documents/presentations/storage/owner-transforms.js.map +1 -0
- package/dist/documents/presentations/storage/records.d.ts +227 -0
- package/dist/documents/presentations/storage/records.d.ts.map +1 -0
- package/dist/documents/presentations/storage/records.js +145 -0
- package/dist/documents/presentations/storage/records.js.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.d.ts +543 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.d.ts.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.js +47 -0
- package/dist/documents/presentations/tools/presentations.tool.descriptor.js.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.d.ts +8 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.d.ts.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.js +68 -0
- package/dist/documents/presentations/tools/presentations.tool.impl.consumer.js.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.d.ts +504 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.d.ts.map +1 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.js +76 -0
- package/dist/documents/presentations/tools/presentations.tool.schemas.js.map +1 -0
- package/dist/documents/render/grid.d.ts +96 -0
- package/dist/documents/render/grid.d.ts.map +1 -0
- package/dist/documents/render/grid.js +115 -0
- package/dist/documents/render/grid.js.map +1 -0
- package/dist/documents/render/index.d.ts +2 -0
- package/dist/documents/render/index.d.ts.map +1 -0
- package/dist/documents/render/index.js +2 -0
- package/dist/documents/render/index.js.map +1 -0
- package/dist/documents/render/render.impl.cloud.d.ts +25 -0
- package/dist/documents/render/render.impl.cloud.d.ts.map +1 -0
- package/dist/documents/render/render.impl.cloud.js +245 -0
- package/dist/documents/render/render.impl.cloud.js.map +1 -0
- package/dist/documents/render/render.impl.consumer.d.ts +35 -0
- package/dist/documents/render/render.impl.consumer.d.ts.map +1 -0
- package/dist/documents/render/render.impl.consumer.js +104 -0
- package/dist/documents/render/render.impl.consumer.js.map +1 -0
- package/dist/documents/render/render.interface.d.ts +147 -0
- package/dist/documents/render/render.interface.d.ts.map +1 -0
- package/dist/documents/render/render.interface.js +90 -0
- package/dist/documents/render/render.interface.js.map +1 -0
- package/dist/documents/schemas/ai-service-binding.schema.d.ts +11 -0
- package/dist/documents/schemas/ai-service-binding.schema.d.ts.map +1 -0
- package/dist/documents/schemas/ai-service-binding.schema.js +8 -0
- package/dist/documents/schemas/ai-service-binding.schema.js.map +1 -0
- package/dist/documents/schemas/document-read.schema.d.ts +107 -0
- package/dist/documents/schemas/document-read.schema.d.ts.map +1 -0
- package/dist/documents/schemas/document-read.schema.js +124 -0
- package/dist/documents/schemas/document-read.schema.js.map +1 -0
- package/dist/documents/schemas/document-view.schema.d.ts +74 -0
- package/dist/documents/schemas/document-view.schema.d.ts.map +1 -0
- package/dist/documents/schemas/document-view.schema.js +66 -0
- package/dist/documents/schemas/document-view.schema.js.map +1 -0
- package/dist/documents/schemas/index.d.ts +3 -0
- package/dist/documents/schemas/index.d.ts.map +1 -0
- package/dist/documents/schemas/index.js +3 -0
- package/dist/documents/schemas/index.js.map +1 -0
- package/dist/documents/schemas/page-cache.schema.d.ts +29 -0
- package/dist/documents/schemas/page-cache.schema.d.ts.map +1 -0
- package/dist/documents/schemas/page-cache.schema.js +50 -0
- package/dist/documents/schemas/page-cache.schema.js.map +1 -0
- package/dist/documents/storage/index.d.ts +3 -0
- package/dist/documents/storage/index.d.ts.map +1 -0
- package/dist/documents/storage/index.js +2 -0
- package/dist/documents/storage/index.js.map +1 -0
- package/dist/documents/storage/page-cache.descriptor.d.ts +17 -0
- package/dist/documents/storage/page-cache.descriptor.d.ts.map +1 -0
- package/dist/documents/storage/page-cache.descriptor.js +45 -0
- package/dist/documents/storage/page-cache.descriptor.js.map +1 -0
- package/dist/documents/tools/descriptors.d.ts +248 -0
- package/dist/documents/tools/descriptors.d.ts.map +1 -0
- package/dist/documents/tools/descriptors.js +78 -0
- package/dist/documents/tools/descriptors.js.map +1 -0
- package/dist/documents/tools/document-read-loop-guard.d.ts +61 -0
- package/dist/documents/tools/document-read-loop-guard.d.ts.map +1 -0
- package/dist/documents/tools/document-read-loop-guard.js +314 -0
- package/dist/documents/tools/document-read-loop-guard.js.map +1 -0
- package/dist/documents/tools/document-read.impl.d.ts +77 -0
- package/dist/documents/tools/document-read.impl.d.ts.map +1 -0
- package/dist/documents/tools/document-read.impl.js +1139 -0
- package/dist/documents/tools/document-read.impl.js.map +1 -0
- package/dist/documents/tools/document-view.impl.d.ts +45 -0
- package/dist/documents/tools/document-view.impl.d.ts.map +1 -0
- package/dist/documents/tools/document-view.impl.js +168 -0
- package/dist/documents/tools/document-view.impl.js.map +1 -0
- package/dist/documents/tools/index.d.ts +3 -0
- package/dist/documents/tools/index.d.ts.map +1 -0
- package/dist/documents/tools/index.js +6 -0
- package/dist/documents/tools/index.js.map +1 -0
- package/dist/documents/tools/source-refresh.d.ts +33 -0
- package/dist/documents/tools/source-refresh.d.ts.map +1 -0
- package/dist/documents/tools/source-refresh.js +127 -0
- package/dist/documents/tools/source-refresh.js.map +1 -0
- package/dist/documents/tools/unavailable.impl.d.ts +5 -0
- package/dist/documents/tools/unavailable.impl.d.ts.map +1 -0
- package/dist/documents/tools/unavailable.impl.js +12 -0
- package/dist/documents/tools/unavailable.impl.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.d.ts +113 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.d.ts.map +1 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.js +35 -0
- package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.js.map +1 -0
- package/dist/render/ansi.d.ts +86 -0
- package/dist/render/ansi.d.ts.map +1 -0
- package/dist/render/ansi.js +125 -0
- package/dist/render/ansi.js.map +1 -0
- package/dist/render/frontmatter.d.ts +21 -0
- package/dist/render/frontmatter.d.ts.map +1 -0
- package/dist/render/frontmatter.js +57 -0
- package/dist/render/frontmatter.js.map +1 -0
- package/dist/render/index.d.ts +10 -0
- package/dist/render/index.d.ts.map +1 -0
- package/dist/render/index.js +6 -0
- package/dist/render/index.js.map +1 -0
- package/dist/render/parse.d.ts +29 -0
- package/dist/render/parse.d.ts.map +1 -0
- package/dist/render/parse.js +145 -0
- package/dist/render/parse.js.map +1 -0
- package/dist/render/sections.d.ts +24 -0
- package/dist/render/sections.d.ts.map +1 -0
- package/dist/render/sections.js +76 -0
- package/dist/render/sections.js.map +1 -0
- package/dist/render/terminal.d.ts +15 -0
- package/dist/render/terminal.d.ts.map +1 -0
- package/dist/render/terminal.js +293 -0
- package/dist/render/terminal.js.map +1 -0
- package/dist/runbooks/index.d.ts +4 -0
- package/dist/runbooks/index.d.ts.map +1 -0
- package/dist/runbooks/index.js +3 -0
- package/dist/runbooks/index.js.map +1 -0
- package/dist/runbooks/runbooks.plugin.d.ts +3 -0
- package/dist/runbooks/runbooks.plugin.d.ts.map +1 -0
- package/dist/runbooks/runbooks.plugin.js +3 -0
- package/dist/runbooks/runbooks.plugin.js.map +1 -0
- package/dist/schemas/citations.schema.d.ts +21 -0
- package/dist/schemas/citations.schema.d.ts.map +1 -0
- package/dist/schemas/citations.schema.js +17 -0
- package/dist/schemas/citations.schema.js.map +1 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/topic.schema.d.ts +179 -0
- package/dist/schemas/topic.schema.d.ts.map +1 -0
- package/dist/schemas/topic.schema.js +15 -0
- package/dist/schemas/topic.schema.js.map +1 -0
- package/dist/svelte/build/highlight.d.ts +33 -0
- package/dist/svelte/build/highlight.d.ts.map +1 -0
- package/dist/svelte/build/highlight.js +95 -0
- package/dist/svelte/build/topic-index.d.ts +96 -0
- package/dist/svelte/build/topic-index.d.ts.map +1 -0
- package/dist/svelte/build/topic-index.js +247 -0
- package/dist/svelte/context.d.ts +12 -0
- package/dist/svelte/context.d.ts.map +1 -0
- package/dist/svelte/context.js +16 -0
- package/dist/svelte/docs-origin.d.ts +14 -0
- package/dist/svelte/docs-origin.d.ts.map +1 -0
- package/dist/svelte/docs-origin.js +49 -0
- package/dist/svelte/docs-svelte.plugin.d.ts +121 -0
- package/dist/svelte/docs-svelte.plugin.d.ts.map +1 -0
- package/dist/svelte/docs-svelte.plugin.js +35 -0
- package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte +261 -0
- package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte.d.ts +16 -0
- package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte.d.ts.map +1 -0
- package/dist/svelte/documents/presentations/index.d.ts +3 -0
- package/dist/svelte/documents/presentations/index.d.ts.map +1 -0
- package/dist/svelte/documents/presentations/index.js +2 -0
- package/dist/svelte/documents/presentations/monitor-state.d.ts +17 -0
- package/dist/svelte/documents/presentations/monitor-state.d.ts.map +1 -0
- package/dist/svelte/documents/presentations/monitor-state.js +38 -0
- package/dist/svelte/index.d.ts +20 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +16 -0
- package/dist/svelte/loaders.d.ts +57 -0
- package/dist/svelte/loaders.d.ts.map +1 -0
- package/dist/svelte/loaders.js +74 -0
- package/dist/svelte/state.svelte.d.ts +366 -0
- package/dist/svelte/state.svelte.d.ts.map +1 -0
- package/dist/svelte/state.svelte.js +155 -0
- package/dist/svelte/styles.css +8 -0
- package/dist/svelte/tool-widgets/DocsToolCard.svelte +41 -0
- package/dist/svelte/tool-widgets/DocsToolCard.svelte.d.ts +5 -0
- package/dist/svelte/tool-widgets/DocsToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte +28 -0
- package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte.d.ts +8 -0
- package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/PresentationsToolCard.svelte +25 -0
- package/dist/svelte/tool-widgets/PresentationsToolCard.svelte.d.ts +8 -0
- package/dist/svelte/tool-widgets/PresentationsToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/RunbookToolCard.svelte +29 -0
- package/dist/svelte/tool-widgets/RunbookToolCard.svelte.d.ts +8 -0
- package/dist/svelte/tool-widgets/RunbookToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.d.ts +7 -0
- package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.js +5 -0
- package/dist/svelte/tool-widgets/models.d.ts +47 -0
- package/dist/svelte/tool-widgets/models.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/models.js +112 -0
- package/dist/svelte/ui/DocViewer.svelte +122 -0
- package/dist/svelte/ui/DocViewer.svelte.d.ts +17 -0
- package/dist/svelte/ui/DocViewer.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/DocsLoader.svelte +37 -0
- package/dist/svelte/ui/DocsLoader.svelte.d.ts +21 -0
- package/dist/svelte/ui/DocsLoader.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/DocsSearch.svelte +129 -0
- package/dist/svelte/ui/DocsSearch.svelte.d.ts +15 -0
- package/dist/svelte/ui/DocsSearch.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Card.svelte +61 -0
- package/dist/svelte/ui/directives/Card.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Card.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Descriptor.svelte +73 -0
- package/dist/svelte/ui/directives/Descriptor.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Descriptor.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/DirectiveDispatch.svelte +45 -0
- package/dist/svelte/ui/directives/DirectiveDispatch.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/DirectiveDispatch.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Endpoint.svelte +68 -0
- package/dist/svelte/ui/directives/Endpoint.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Endpoint.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Install.svelte +112 -0
- package/dist/svelte/ui/directives/Install.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Install.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Shell.svelte +32 -0
- package/dist/svelte/ui/directives/Shell.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Shell.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/directives/Usage.svelte +14 -0
- package/dist/svelte/ui/directives/Usage.svelte.d.ts +8 -0
- package/dist/svelte/ui/directives/Usage.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/help/HelpDialog.svelte +210 -0
- package/dist/svelte/ui/help/HelpDialog.svelte.d.ts +11 -0
- package/dist/svelte/ui/help/HelpDialog.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/help/HelpIcon.svelte +83 -0
- package/dist/svelte/ui/help/HelpIcon.svelte.d.ts +16 -0
- package/dist/svelte/ui/help/HelpIcon.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/markdown/CodeBlock.svelte +125 -0
- package/dist/svelte/ui/markdown/CodeBlock.svelte.d.ts +8 -0
- package/dist/svelte/ui/markdown/CodeBlock.svelte.d.ts.map +1 -0
- package/dist/svelte/ui/markdown/MarkdownView.svelte +319 -0
- package/dist/svelte/ui/markdown/MarkdownView.svelte.d.ts +9 -0
- package/dist/svelte/ui/markdown/MarkdownView.svelte.d.ts.map +1 -0
- package/dist/tools/docs.descriptor.d.ts +48 -0
- package/dist/tools/docs.descriptor.d.ts.map +1 -0
- package/dist/tools/docs.descriptor.js +23 -0
- package/dist/tools/docs.descriptor.js.map +1 -0
- package/dist/tools/docs.impl.d.ts +7 -0
- package/dist/tools/docs.impl.d.ts.map +1 -0
- package/dist/tools/docs.impl.js +67 -0
- package/dist/tools/docs.impl.js.map +1 -0
- package/dist/tools/schemas.d.ts +43 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +30 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tui/docs-tui.plugin.d.ts +3 -0
- package/dist/tui/docs-tui.plugin.d.ts.map +1 -0
- package/dist/tui/docs-tui.plugin.js +18 -0
- package/dist/tui/docs-tui.plugin.js.map +1 -0
- package/dist/tui/index.d.ts +2 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +2 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.d.ts +38 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.d.ts.map +1 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.js +334 -0
- package/dist/tui/tui/docs-explorer.impl.consumer.js.map +1 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.d.ts +13 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.d.ts.map +1 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.js +29 -0
- package/dist/tui/tui/docs-explorer.tui.descriptor.js.map +1 -0
- package/package.json +450 -4
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
3
|
+
import { Badge } from '@vibesdotdev/kit/components/ui/badge';
|
|
4
|
+
import { Button } from '@vibesdotdev/kit/components/ui/button';
|
|
5
|
+
import * as Card from '@vibesdotdev/kit/components/ui/card';
|
|
6
|
+
import { Textarea } from '@vibesdotdev/kit/components/ui/textarea';
|
|
7
|
+
import { Icon } from '@vibesdotdev/kit/components';
|
|
8
|
+
import type {
|
|
9
|
+
PresentationRequest,
|
|
10
|
+
PresentationReviewAudience
|
|
11
|
+
} from '@vibesdotdev/docs/documents/presentations/schemas';
|
|
12
|
+
|
|
13
|
+
let {
|
|
14
|
+
surfaceState,
|
|
15
|
+
requests,
|
|
16
|
+
activeRequest = null,
|
|
17
|
+
busy = false,
|
|
18
|
+
error = null,
|
|
19
|
+
onRefresh,
|
|
20
|
+
onRespond,
|
|
21
|
+
onSubmitComment,
|
|
22
|
+
onFinish
|
|
23
|
+
}: {
|
|
24
|
+
surfaceState: 'connecting' | 'available' | 'stale' | 'offline';
|
|
25
|
+
requests: PresentationRequest[];
|
|
26
|
+
activeRequest?: PresentationRequest | null;
|
|
27
|
+
busy?: boolean;
|
|
28
|
+
error?: string | null;
|
|
29
|
+
onRefresh?: () => void;
|
|
30
|
+
onRespond?: (request: PresentationRequest, decision: 'accept' | 'decline') => void;
|
|
31
|
+
onSubmitComment?: (
|
|
32
|
+
request: PresentationRequest,
|
|
33
|
+
text: string,
|
|
34
|
+
audience: PresentationReviewAudience
|
|
35
|
+
) => void;
|
|
36
|
+
onFinish?: (request: PresentationRequest) => void;
|
|
37
|
+
} = $props();
|
|
38
|
+
|
|
39
|
+
let comment = $state('');
|
|
40
|
+
let audience = $state<PresentationReviewAudience>('request-participants');
|
|
41
|
+
let clock = $state(Date.now());
|
|
42
|
+
|
|
43
|
+
function getStateTone(state: typeof surfaceState): 'default' | 'secondary' | 'outline' | 'destructive' {
|
|
44
|
+
switch (state) {
|
|
45
|
+
case 'connecting':
|
|
46
|
+
return 'secondary';
|
|
47
|
+
case 'available':
|
|
48
|
+
return 'default';
|
|
49
|
+
case 'stale':
|
|
50
|
+
return 'outline';
|
|
51
|
+
case 'offline':
|
|
52
|
+
return 'destructive';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function targetHref(request: PresentationRequest): string | null {
|
|
57
|
+
if (request.target.view === 'session') {
|
|
58
|
+
return `/cockpit/${encodeURIComponent(request.sessionId)}`;
|
|
59
|
+
}
|
|
60
|
+
if (request.target.view === 'artifact' || request.target.view === 'image-review') {
|
|
61
|
+
return `/artifacts/${encodeURIComponent(request.target.link.id)}`;
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function submitComment(event: SubmitEvent) {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
const text = comment.trim();
|
|
69
|
+
if (!text || !activeRequest || busy) return;
|
|
70
|
+
onSubmitComment?.(activeRequest, text, audience);
|
|
71
|
+
comment = '';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function requesterLabel(request: PresentationRequest): string {
|
|
75
|
+
return request.requester.displayName ?? request.requester.id;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function remainingConsent(expiresAt: string): string {
|
|
79
|
+
const seconds = Math.max(0, Math.ceil((Date.parse(expiresAt) - clock) / 1000));
|
|
80
|
+
const minutes = Math.floor(seconds / 60);
|
|
81
|
+
const remainder = seconds % 60;
|
|
82
|
+
return minutes > 0 ? `${minutes}m ${remainder.toString().padStart(2, '0')}s` : `${seconds}s`;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
onMount(() => {
|
|
86
|
+
const timer = setInterval(() => {
|
|
87
|
+
clock = Date.now();
|
|
88
|
+
}, 1000);
|
|
89
|
+
return () => clearInterval(timer);
|
|
90
|
+
});
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<section class="mx-auto flex max-w-5xl flex-col gap-5 p-4" aria-label="Presentation monitor">
|
|
94
|
+
<header class="flex flex-wrap items-center justify-between gap-3 border-b border-border pb-4">
|
|
95
|
+
<div>
|
|
96
|
+
<div class="flex items-center gap-2">
|
|
97
|
+
<h1 class="text-2xl font-semibold text-foreground">Monitor</h1>
|
|
98
|
+
<Badge variant={getStateTone(surfaceState)}>
|
|
99
|
+
{surfaceState}
|
|
100
|
+
</Badge>
|
|
101
|
+
</div>
|
|
102
|
+
<p class="mt-1 text-sm text-muted-foreground">
|
|
103
|
+
This tab is an available presentation surface. Agents may ask; you decide.
|
|
104
|
+
</p>
|
|
105
|
+
</div>
|
|
106
|
+
<Button variant="outline" size="sm" disabled={busy} onclick={() => onRefresh?.()}>
|
|
107
|
+
<Icon icon="lucide:refresh-cw" class="mr-2 h-4 w-4" />
|
|
108
|
+
Refresh
|
|
109
|
+
</Button>
|
|
110
|
+
</header>
|
|
111
|
+
|
|
112
|
+
{#if error}
|
|
113
|
+
<div class="rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm text-destructive">
|
|
114
|
+
{error}
|
|
115
|
+
</div>
|
|
116
|
+
{/if}
|
|
117
|
+
|
|
118
|
+
{#if activeRequest}
|
|
119
|
+
<Card.Root class="border-primary/40">
|
|
120
|
+
<Card.Header>
|
|
121
|
+
<div class="flex flex-wrap items-center justify-between gap-2">
|
|
122
|
+
<div>
|
|
123
|
+
<Card.Title>{activeRequest.target.title ?? 'Live presentation'}</Card.Title>
|
|
124
|
+
<Card.Description>
|
|
125
|
+
{requesterLabel(activeRequest)} · session {activeRequest.sessionId.slice(0, 8)}
|
|
126
|
+
</Card.Description>
|
|
127
|
+
</div>
|
|
128
|
+
<Badge>{activeRequest.status}</Badge>
|
|
129
|
+
</div>
|
|
130
|
+
</Card.Header>
|
|
131
|
+
<Card.Content class="space-y-4">
|
|
132
|
+
<p class="whitespace-pre-wrap text-sm text-foreground">{activeRequest.message}</p>
|
|
133
|
+
<p
|
|
134
|
+
class="rounded-md border border-amber-500/30 bg-amber-500/5 p-3 text-xs text-muted-foreground"
|
|
135
|
+
>
|
|
136
|
+
Consent expires in {remainingConsent(activeRequest.expiresAt)}. When it ends, this
|
|
137
|
+
presentation closes; continuing requires a fresh request you approve.
|
|
138
|
+
</p>
|
|
139
|
+
{@const href = targetHref(activeRequest)}
|
|
140
|
+
{#if href}
|
|
141
|
+
<div class="space-y-2">
|
|
142
|
+
<div class="flex items-center justify-between gap-2">
|
|
143
|
+
<p class="text-xs text-muted-foreground">
|
|
144
|
+
Live target rendered by its owning HQ route
|
|
145
|
+
</p>
|
|
146
|
+
<Button href={href} variant="outline" size="sm">
|
|
147
|
+
<Icon icon="lucide:external-link" class="mr-2 h-4 w-4" />
|
|
148
|
+
Open separately
|
|
149
|
+
</Button>
|
|
150
|
+
</div>
|
|
151
|
+
<iframe
|
|
152
|
+
title={activeRequest.target.title ?? activeRequest.target.view}
|
|
153
|
+
src={href}
|
|
154
|
+
class="h-[34rem] w-full rounded-md border border-border bg-background"
|
|
155
|
+
></iframe>
|
|
156
|
+
</div>
|
|
157
|
+
{:else}
|
|
158
|
+
<p class="rounded-md bg-muted p-3 text-sm text-muted-foreground">
|
|
159
|
+
The {activeRequest.target.view} renderer is not mounted in this host yet. Your
|
|
160
|
+
feedback still binds to revision
|
|
161
|
+
<code>{activeRequest.target.revision ?? 'session-live'}</code>.
|
|
162
|
+
</p>
|
|
163
|
+
{/if}
|
|
164
|
+
|
|
165
|
+
<form class="space-y-2" onsubmit={submitComment}>
|
|
166
|
+
<label for="presentation-comment" class="text-sm font-medium text-foreground">
|
|
167
|
+
Comment or steer
|
|
168
|
+
</label>
|
|
169
|
+
<Textarea
|
|
170
|
+
id="presentation-comment"
|
|
171
|
+
bind:value={comment}
|
|
172
|
+
disabled={busy}
|
|
173
|
+
rows={4}
|
|
174
|
+
placeholder="What should the agent change, inspect, or explain?"
|
|
175
|
+
/>
|
|
176
|
+
<div class="flex flex-wrap items-center justify-between gap-2">
|
|
177
|
+
<label class="flex items-center gap-2 text-xs text-muted-foreground">
|
|
178
|
+
<input
|
|
179
|
+
type="checkbox"
|
|
180
|
+
checked={audience === 'owner-only'}
|
|
181
|
+
onchange={(event) =>
|
|
182
|
+
(audience = event.currentTarget.checked
|
|
183
|
+
? 'owner-only'
|
|
184
|
+
: 'request-participants')}
|
|
185
|
+
/>
|
|
186
|
+
Owner-only feedback
|
|
187
|
+
</label>
|
|
188
|
+
<div class="flex gap-2">
|
|
189
|
+
<Button type="submit" disabled={busy || !comment.trim()}>
|
|
190
|
+
Send feedback
|
|
191
|
+
</Button>
|
|
192
|
+
<Button
|
|
193
|
+
type="button"
|
|
194
|
+
variant="outline"
|
|
195
|
+
disabled={busy}
|
|
196
|
+
onclick={() => onFinish?.(activeRequest)}
|
|
197
|
+
>
|
|
198
|
+
Complete
|
|
199
|
+
</Button>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
</form>
|
|
203
|
+
</Card.Content>
|
|
204
|
+
</Card.Root>
|
|
205
|
+
{/if}
|
|
206
|
+
|
|
207
|
+
<div class="space-y-3">
|
|
208
|
+
<div>
|
|
209
|
+
<h2 class="text-lg font-semibold text-foreground">Incoming requests</h2>
|
|
210
|
+
<p class="text-sm text-muted-foreground">
|
|
211
|
+
Accepting gives temporary attention custody to the target—not control of this device.
|
|
212
|
+
</p>
|
|
213
|
+
</div>
|
|
214
|
+
{#if requests.length === 0}
|
|
215
|
+
<div class="rounded-md border border-dashed border-border p-8 text-center">
|
|
216
|
+
<Icon icon="lucide:presentation" class="mx-auto mb-3 h-8 w-8 text-muted-foreground" />
|
|
217
|
+
<p class="font-medium text-foreground">No one is asking for the screen.</p>
|
|
218
|
+
<p class="text-sm text-muted-foreground">A pleasantly boring state.</p>
|
|
219
|
+
</div>
|
|
220
|
+
{:else}
|
|
221
|
+
{#each requests as request (request.id)}
|
|
222
|
+
<Card.Root>
|
|
223
|
+
<Card.Header>
|
|
224
|
+
<div class="flex flex-wrap items-start justify-between gap-3">
|
|
225
|
+
<div>
|
|
226
|
+
<Card.Title class="text-base">
|
|
227
|
+
{request.target.title ?? request.target.view}
|
|
228
|
+
</Card.Title>
|
|
229
|
+
<Card.Description>
|
|
230
|
+
{requesterLabel(request)} · {request.urgency} · expires
|
|
231
|
+
{new Date(request.expiresAt).toLocaleTimeString()}
|
|
232
|
+
</Card.Description>
|
|
233
|
+
</div>
|
|
234
|
+
<Badge variant={request.urgency === 'high' ? 'destructive' : 'secondary'}>
|
|
235
|
+
{request.urgency}
|
|
236
|
+
</Badge>
|
|
237
|
+
</div>
|
|
238
|
+
</Card.Header>
|
|
239
|
+
<Card.Content>
|
|
240
|
+
<p class="mb-4 whitespace-pre-wrap text-sm text-foreground">{request.message}</p>
|
|
241
|
+
<div class="flex gap-2">
|
|
242
|
+
<Button
|
|
243
|
+
disabled={busy || activeRequest !== null}
|
|
244
|
+
onclick={() => onRespond?.(request, 'accept')}
|
|
245
|
+
>
|
|
246
|
+
Show me
|
|
247
|
+
</Button>
|
|
248
|
+
<Button
|
|
249
|
+
variant="outline"
|
|
250
|
+
disabled={busy}
|
|
251
|
+
onclick={() => onRespond?.(request, 'decline')}
|
|
252
|
+
>
|
|
253
|
+
Not now
|
|
254
|
+
</Button>
|
|
255
|
+
</div>
|
|
256
|
+
</Card.Content>
|
|
257
|
+
</Card.Root>
|
|
258
|
+
{/each}
|
|
259
|
+
{/if}
|
|
260
|
+
</div>
|
|
261
|
+
</section>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PresentationRequest, PresentationReviewAudience } from '@vibesdotdev/docs/documents/presentations/schemas';
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
surfaceState: 'connecting' | 'available' | 'stale' | 'offline';
|
|
4
|
+
requests: PresentationRequest[];
|
|
5
|
+
activeRequest?: PresentationRequest | null;
|
|
6
|
+
busy?: boolean;
|
|
7
|
+
error?: string | null;
|
|
8
|
+
onRefresh?: () => void;
|
|
9
|
+
onRespond?: (request: PresentationRequest, decision: 'accept' | 'decline') => void;
|
|
10
|
+
onSubmitComment?: (request: PresentationRequest, text: string, audience: PresentationReviewAudience) => void;
|
|
11
|
+
onFinish?: (request: PresentationRequest) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const PresentationMonitor: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
14
|
+
type PresentationMonitor = ReturnType<typeof PresentationMonitor>;
|
|
15
|
+
export default PresentationMonitor;
|
|
16
|
+
//# sourceMappingURL=PresentationMonitor.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresentationMonitor.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/svelte/documents/presentations/components/PresentationMonitor.svelte.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,MAAM,mDAAmD,CAAC;AAE3D,KAAK,gBAAgB,GAAI;IACxB,YAAY,EAAE,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;IAC/D,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,aAAa,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;IACnF,eAAe,CAAC,EAAE,CACjB,OAAO,EAAE,mBAAmB,EAC5B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,0BAA0B,KAChC,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD,CAAC;AA4NH,QAAA,MAAM,mBAAmB,sDAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/svelte/documents/presentations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACzF,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PresentationRequest, PresentationSurfaceCapability } from '@vibesdotdev/docs/documents/presentations/schemas';
|
|
2
|
+
export interface PresentationMonitorState {
|
|
3
|
+
incoming: PresentationRequest[];
|
|
4
|
+
active: PresentationRequest | null;
|
|
5
|
+
shouldAdvertiseAvailable: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function presentationMonitorIncomingRequestsPath(): string;
|
|
8
|
+
export declare function presentationMonitorActiveRequestPath(surfaceId: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Convert authoritative request history into the live state of one surface.
|
|
11
|
+
*
|
|
12
|
+
* The owner API durably reconciles expiry. This projection also fails closed
|
|
13
|
+
* if an older provider returns an elapsed active row, so a surface never keeps
|
|
14
|
+
* rendering or advertising itself busy from stale history.
|
|
15
|
+
*/
|
|
16
|
+
export declare function selectPresentationMonitorState(requests: PresentationRequest[], surfaceId: string | undefined, capabilities: readonly PresentationSurfaceCapability[], previousActiveRequestId: string | null, at?: Date): PresentationMonitorState;
|
|
17
|
+
//# sourceMappingURL=monitor-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-state.d.ts","sourceRoot":"","sources":["../../../../src/svelte/documents/presentations/monitor-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,6BAA6B,EAC7B,MAAM,mDAAmD,CAAC;AAE3D,MAAM,WAAW,wBAAwB;IACxC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,wBAAwB,EAAE,OAAO,CAAC;CAClC;AAYD,wBAAgB,uCAAuC,IAAI,MAAM,CAEhE;AAED,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC7C,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,YAAY,EAAE,SAAS,6BAA6B,EAAE,EACtD,uBAAuB,EAAE,MAAM,GAAG,IAAI,EACtC,EAAE,GAAE,IAAiB,GACnB,wBAAwB,CAyB1B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
function presentationMonitorRequestsPath(statuses, surfaceId) {
|
|
2
|
+
const query = new URLSearchParams();
|
|
3
|
+
for (const status of statuses)
|
|
4
|
+
query.append('status', status);
|
|
5
|
+
if (surfaceId)
|
|
6
|
+
query.set('surfaceId', surfaceId);
|
|
7
|
+
return `/api/presentations/requests?${query.toString()}`;
|
|
8
|
+
}
|
|
9
|
+
export function presentationMonitorIncomingRequestsPath() {
|
|
10
|
+
return presentationMonitorRequestsPath(['pending']);
|
|
11
|
+
}
|
|
12
|
+
export function presentationMonitorActiveRequestPath(surfaceId) {
|
|
13
|
+
return presentationMonitorRequestsPath(['accepted', 'presenting'], surfaceId);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Convert authoritative request history into the live state of one surface.
|
|
17
|
+
*
|
|
18
|
+
* The owner API durably reconciles expiry. This projection also fails closed
|
|
19
|
+
* if an older provider returns an elapsed active row, so a surface never keeps
|
|
20
|
+
* rendering or advertising itself busy from stale history.
|
|
21
|
+
*/
|
|
22
|
+
export function selectPresentationMonitorState(requests, surfaceId, capabilities, previousActiveRequestId, at = new Date()) {
|
|
23
|
+
const now = at.getTime();
|
|
24
|
+
const isLive = (request) => Date.parse(request.expiresAt) > now;
|
|
25
|
+
const hasCapabilities = (request) => request.requestedCapabilities.every((capability) => capabilities.includes(capability));
|
|
26
|
+
const incoming = requests.filter((request) => request.status === 'pending' &&
|
|
27
|
+
isLive(request) &&
|
|
28
|
+
(!request.preferredSurfaceId || request.preferredSurfaceId === surfaceId) &&
|
|
29
|
+
hasCapabilities(request));
|
|
30
|
+
const active = requests.find((request) => request.selectedSurfaceId === surfaceId &&
|
|
31
|
+
(request.status === 'accepted' || request.status === 'presenting') &&
|
|
32
|
+
isLive(request)) ?? null;
|
|
33
|
+
return {
|
|
34
|
+
incoming,
|
|
35
|
+
active,
|
|
36
|
+
shouldAdvertiseAvailable: previousActiveRequestId !== null && active === null
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vibesdotdev/docs/svelte — SvelteKit-bound docs surfaces.
|
|
3
|
+
*
|
|
4
|
+
* See `docs/architecture/DOCS-RUNTIME.md` for the overall design.
|
|
5
|
+
*/
|
|
6
|
+
export { default as MarkdownView } from './ui/markdown/MarkdownView.svelte';
|
|
7
|
+
export { default as HelpIcon } from './ui/help/HelpIcon.svelte';
|
|
8
|
+
export { default as HelpDialog } from './ui/help/HelpDialog.svelte';
|
|
9
|
+
export { default as DirectiveDispatch } from './ui/directives/DirectiveDispatch.svelte';
|
|
10
|
+
export { default as DocsLoader } from './ui/DocsLoader.svelte';
|
|
11
|
+
export { default as DocsSearch } from './ui/DocsSearch.svelte';
|
|
12
|
+
export { default as DocViewer } from './ui/DocViewer.svelte';
|
|
13
|
+
export { docsState, getDocsState, DocsState } from './state.svelte.ts';
|
|
14
|
+
export type { DocsStateInitOptions } from './state.svelte.ts';
|
|
15
|
+
export { setDocsTopics, getDocsTopics } from './context.ts';
|
|
16
|
+
export { pageRenderableTopics, topicEntries, idToSlug, slugToId, indexedTopicFor, buildSidebar, sectionRoots, sectionRootFor } from './build/topic-index.ts';
|
|
17
|
+
export type { IndexedTopic, SidebarEntry, SidebarGroup, SectionRoot } from './build/topic-index.ts';
|
|
18
|
+
export { highlightParsedTopic, rewriteTopicLinks } from './build/highlight.ts';
|
|
19
|
+
export type { HighlightedCodeToken } from './build/highlight.ts';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/svelte/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EACN,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vibesdotdev/docs/svelte — SvelteKit-bound docs surfaces.
|
|
3
|
+
*
|
|
4
|
+
* See `docs/architecture/DOCS-RUNTIME.md` for the overall design.
|
|
5
|
+
*/
|
|
6
|
+
export { default as MarkdownView } from './ui/markdown/MarkdownView.svelte';
|
|
7
|
+
export { default as HelpIcon } from './ui/help/HelpIcon.svelte';
|
|
8
|
+
export { default as HelpDialog } from './ui/help/HelpDialog.svelte';
|
|
9
|
+
export { default as DirectiveDispatch } from './ui/directives/DirectiveDispatch.svelte';
|
|
10
|
+
export { default as DocsLoader } from './ui/DocsLoader.svelte';
|
|
11
|
+
export { default as DocsSearch } from './ui/DocsSearch.svelte';
|
|
12
|
+
export { default as DocViewer } from './ui/DocViewer.svelte';
|
|
13
|
+
export { docsState, getDocsState, DocsState } from "./state.svelte.js";
|
|
14
|
+
export { setDocsTopics, getDocsTopics } from "./context.js";
|
|
15
|
+
export { pageRenderableTopics, topicEntries, idToSlug, slugToId, indexedTopicFor, buildSidebar, sectionRoots, sectionRootFor } from "./build/topic-index.js";
|
|
16
|
+
export { highlightParsedTopic, rewriteTopicLinks } from "./build/highlight.js";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SvelteKit `load` helpers for `@vibesdotdev/docs/svelte`.
|
|
3
|
+
*
|
|
4
|
+
* Exported under the `./loaders` subpath so SvelteKit keeps server-only
|
|
5
|
+
* code out of the browser bundle (see SURFACE-PACKAGE-CONVENTIONS §2.5 / §2.7).
|
|
6
|
+
*
|
|
7
|
+
* Two modes:
|
|
8
|
+
* - Runtime-backed (default): pulls topics directly from the registered
|
|
9
|
+
* `DocsClient` via `getVibesDocsClient(runtime)`. Used when the consuming app
|
|
10
|
+
* has the docs plugin installed in its runtime.
|
|
11
|
+
* - DI-fetcher: callers supply a `fetchers.listDocs` function. Useful when
|
|
12
|
+
* docs descriptors live behind a cross-origin HTTP API or in an app's
|
|
13
|
+
* own `src/server/` tree (mirrors the pattern in `account-svelte/src/
|
|
14
|
+
* loaders.ts`).
|
|
15
|
+
*/
|
|
16
|
+
import type { DocsTopicDescriptor } from '@vibesdotdev/docs/schemas';
|
|
17
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
18
|
+
export interface DocsLayoutData {
|
|
19
|
+
docs: DocsTopicDescriptor[];
|
|
20
|
+
activeDocId: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface DocsLayoutFetchers {
|
|
23
|
+
/** List enabled docs topics. */
|
|
24
|
+
listDocs: () => Promise<readonly DocsTopicDescriptor[]>;
|
|
25
|
+
}
|
|
26
|
+
export interface LoadDocsLayoutDataInput {
|
|
27
|
+
activeDocId?: string | null;
|
|
28
|
+
/** The request's runtime (`event.locals.runtime`); required unless `fetchers` is given. */
|
|
29
|
+
runtime?: VibesRuntime;
|
|
30
|
+
/** Provide to override the runtime-client lookup. */
|
|
31
|
+
fetchers?: DocsLayoutFetchers;
|
|
32
|
+
/** When true, propagates fetch errors instead of degrading. Default false. */
|
|
33
|
+
throwOnError?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Compose the docs layout payload for a SvelteKit `+layout.server.ts`.
|
|
37
|
+
*
|
|
38
|
+
* Returns a serializable object the consuming app spreads into its own
|
|
39
|
+
* `LayoutServerLoad` return. `docsState.seedInitial()` consumes the same
|
|
40
|
+
* fields on the client.
|
|
41
|
+
*
|
|
42
|
+
* Usage (runtime-backed):
|
|
43
|
+
*
|
|
44
|
+
* import { loadDocsLayoutData } from '@vibesdotdev/docs/svelte/loaders';
|
|
45
|
+
*
|
|
46
|
+
* export const load: LayoutServerLoad = async ({ locals }) => {
|
|
47
|
+
* return await loadDocsLayoutData({ runtime: locals.runtime, activeDocId: null });
|
|
48
|
+
* };
|
|
49
|
+
*
|
|
50
|
+
* Usage (DI):
|
|
51
|
+
*
|
|
52
|
+
* const data = await loadDocsLayoutData({
|
|
53
|
+
* fetchers: { listDocs: () => myDocsApi.list() }
|
|
54
|
+
* });
|
|
55
|
+
*/
|
|
56
|
+
export declare function loadDocsLayoutData(input?: LoadDocsLayoutDataInput): Promise<DocsLayoutData>;
|
|
57
|
+
//# sourceMappingURL=loaders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loaders.d.ts","sourceRoot":"","sources":["../../src/svelte/loaders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEzE,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IAClC,gCAAgC;IAChC,QAAQ,EAAE,MAAM,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,uBAAuB;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,2FAA2F;IAC3F,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,8EAA8E;IAC9E,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,kBAAkB,CACvC,KAAK,GAAE,uBAA4B,GACjC,OAAO,CAAC,cAAc,CAAC,CAsCzB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SvelteKit `load` helpers for `@vibesdotdev/docs/svelte`.
|
|
3
|
+
*
|
|
4
|
+
* Exported under the `./loaders` subpath so SvelteKit keeps server-only
|
|
5
|
+
* code out of the browser bundle (see SURFACE-PACKAGE-CONVENTIONS §2.5 / §2.7).
|
|
6
|
+
*
|
|
7
|
+
* Two modes:
|
|
8
|
+
* - Runtime-backed (default): pulls topics directly from the registered
|
|
9
|
+
* `DocsClient` via `getVibesDocsClient(runtime)`. Used when the consuming app
|
|
10
|
+
* has the docs plugin installed in its runtime.
|
|
11
|
+
* - DI-fetcher: callers supply a `fetchers.listDocs` function. Useful when
|
|
12
|
+
* docs descriptors live behind a cross-origin HTTP API or in an app's
|
|
13
|
+
* own `src/server/` tree (mirrors the pattern in `account-svelte/src/
|
|
14
|
+
* loaders.ts`).
|
|
15
|
+
*/
|
|
16
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
17
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
18
|
+
/**
|
|
19
|
+
* Compose the docs layout payload for a SvelteKit `+layout.server.ts`.
|
|
20
|
+
*
|
|
21
|
+
* Returns a serializable object the consuming app spreads into its own
|
|
22
|
+
* `LayoutServerLoad` return. `docsState.seedInitial()` consumes the same
|
|
23
|
+
* fields on the client.
|
|
24
|
+
*
|
|
25
|
+
* Usage (runtime-backed):
|
|
26
|
+
*
|
|
27
|
+
* import { loadDocsLayoutData } from '@vibesdotdev/docs/svelte/loaders';
|
|
28
|
+
*
|
|
29
|
+
* export const load: LayoutServerLoad = async ({ locals }) => {
|
|
30
|
+
* return await loadDocsLayoutData({ runtime: locals.runtime, activeDocId: null });
|
|
31
|
+
* };
|
|
32
|
+
*
|
|
33
|
+
* Usage (DI):
|
|
34
|
+
*
|
|
35
|
+
* const data = await loadDocsLayoutData({
|
|
36
|
+
* fetchers: { listDocs: () => myDocsApi.list() }
|
|
37
|
+
* });
|
|
38
|
+
*/
|
|
39
|
+
export async function loadDocsLayoutData(input = {}) {
|
|
40
|
+
const { activeDocId = null, fetchers, runtime, throwOnError = false } = input;
|
|
41
|
+
if (!fetchers && !runtime) {
|
|
42
|
+
throw new CapabilityError('loadDocsLayoutData needs `runtime` (event.locals.runtime) or `fetchers`.', 'INVALID_INPUT', { reason: 'runtime-required', retryable: false });
|
|
43
|
+
}
|
|
44
|
+
try {
|
|
45
|
+
let docs;
|
|
46
|
+
if (fetchers) {
|
|
47
|
+
docs = await fetchers.listDocs();
|
|
48
|
+
}
|
|
49
|
+
else if (runtime) {
|
|
50
|
+
const { getVibesDocsClient } = await import('@vibesdotdev/docs');
|
|
51
|
+
const client = await getVibesDocsClient(runtime);
|
|
52
|
+
docs = client.list();
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
docs = [];
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
docs: [...docs],
|
|
59
|
+
activeDocId
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
catch (err) {
|
|
63
|
+
if (!throwOnError && err instanceof Error && CapabilityError.isAbsenceOf(err, 'runtime/client', 'docs')) {
|
|
64
|
+
getLogger('docs.svelte.loaders', runtime).warn('docs client not registered; returning an empty list', {
|
|
65
|
+
error: err.message
|
|
66
|
+
});
|
|
67
|
+
return {
|
|
68
|
+
docs: [],
|
|
69
|
+
activeDocId
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
throw err;
|
|
73
|
+
}
|
|
74
|
+
}
|