@vibesdotdev/applets 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 +43 -2
- package/dist/applet-gate.d.ts +47 -0
- package/dist/applet-gate.d.ts.map +1 -0
- package/dist/applet-gate.js +167 -0
- package/dist/applet-gate.js.map +1 -0
- package/dist/applet-root-surface.d.ts +135 -0
- package/dist/applet-root-surface.d.ts.map +1 -0
- package/dist/applet-root-surface.js +222 -0
- package/dist/applet-root-surface.js.map +1 -0
- package/dist/applet-value-bound.d.ts +24 -0
- package/dist/applet-value-bound.d.ts.map +1 -0
- package/dist/applet-value-bound.js +46 -0
- package/dist/applet-value-bound.js.map +1 -0
- package/dist/applets.cloud.plugin.d.ts +4 -0
- package/dist/applets.cloud.plugin.d.ts.map +1 -0
- package/dist/applets.cloud.plugin.js +11 -0
- package/dist/applets.cloud.plugin.js.map +1 -0
- package/dist/applets.consumer.plugin.d.ts +4 -0
- package/dist/applets.consumer.plugin.d.ts.map +1 -0
- package/dist/applets.consumer.plugin.js +11 -0
- package/dist/applets.consumer.plugin.js.map +1 -0
- package/dist/applets.plugin.d.ts +3 -0
- package/dist/applets.plugin.d.ts.map +1 -0
- package/dist/applets.plugin.js +30 -0
- package/dist/applets.plugin.js.map +1 -0
- package/dist/authorization.d.ts +87 -0
- package/dist/authorization.d.ts.map +1 -0
- package/dist/authorization.js +189 -0
- package/dist/authorization.js.map +1 -0
- package/dist/browser-runtime.d.ts +34 -0
- package/dist/browser-runtime.d.ts.map +1 -0
- package/dist/browser-runtime.js +5 -0
- package/dist/browser-runtime.js.map +1 -0
- package/dist/build-definition.d.ts +34 -0
- package/dist/build-definition.d.ts.map +1 -0
- package/dist/build-definition.js +44 -0
- package/dist/build-definition.js.map +1 -0
- package/dist/capabilities/capability.kind.d.ts +44 -0
- package/dist/capabilities/capability.kind.d.ts.map +1 -0
- package/dist/capabilities/capability.kind.js +17 -0
- package/dist/capabilities/capability.kind.js.map +1 -0
- package/dist/capabilities/runtime-dispatch.d.ts +9 -0
- package/dist/capabilities/runtime-dispatch.d.ts.map +1 -0
- package/dist/capabilities/runtime-dispatch.js +62 -0
- package/dist/capabilities/runtime-dispatch.js.map +1 -0
- package/dist/cli/applet-group.descriptor.d.ts +11 -0
- package/dist/cli/applet-group.descriptor.d.ts.map +1 -0
- package/dist/cli/applet-group.descriptor.js +19 -0
- package/dist/cli/applet-group.descriptor.js.map +1 -0
- package/dist/cli/applet-local-store.storage.descriptor.d.ts +66 -0
- package/dist/cli/applet-local-store.storage.descriptor.d.ts.map +1 -0
- package/dist/cli/applet-local-store.storage.descriptor.js +39 -0
- package/dist/cli/applet-local-store.storage.descriptor.js.map +1 -0
- package/dist/cli/applet-serve.process.descriptor.d.ts +37 -0
- package/dist/cli/applet-serve.process.descriptor.d.ts.map +1 -0
- package/dist/cli/applet-serve.process.descriptor.js +41 -0
- package/dist/cli/applet-serve.process.descriptor.js.map +1 -0
- package/dist/cli/commands/build.command.descriptor.d.ts +40 -0
- package/dist/cli/commands/build.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/build.command.descriptor.js +52 -0
- package/dist/cli/commands/build.command.descriptor.js.map +1 -0
- package/dist/cli/commands/build.command.impl.d.ts +8 -0
- package/dist/cli/commands/build.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/build.command.impl.js +116 -0
- package/dist/cli/commands/build.command.impl.js.map +1 -0
- package/dist/cli/commands/init.command.descriptor.d.ts +29 -0
- package/dist/cli/commands/init.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/init.command.descriptor.js +23 -0
- package/dist/cli/commands/init.command.descriptor.js.map +1 -0
- package/dist/cli/commands/init.command.impl.d.ts +7 -0
- package/dist/cli/commands/init.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/init.command.impl.js +64 -0
- package/dist/cli/commands/init.command.impl.js.map +1 -0
- package/dist/cli/commands/list.command.descriptor.d.ts +26 -0
- package/dist/cli/commands/list.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/list.command.descriptor.js +22 -0
- package/dist/cli/commands/list.command.descriptor.js.map +1 -0
- package/dist/cli/commands/list.command.impl.d.ts +13 -0
- package/dist/cli/commands/list.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/list.command.impl.js +47 -0
- package/dist/cli/commands/list.command.impl.js.map +1 -0
- package/dist/cli/commands/serve-stylesheet.d.ts +11 -0
- package/dist/cli/commands/serve-stylesheet.d.ts.map +1 -0
- package/dist/cli/commands/serve-stylesheet.js +50 -0
- package/dist/cli/commands/serve-stylesheet.js.map +1 -0
- package/dist/cli/commands/serve-surface.d.ts +36 -0
- package/dist/cli/commands/serve-surface.d.ts.map +1 -0
- package/dist/cli/commands/serve-surface.js +410 -0
- package/dist/cli/commands/serve-surface.js.map +1 -0
- package/dist/cli/commands/serve.command.descriptor.d.ts +42 -0
- package/dist/cli/commands/serve.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/serve.command.descriptor.js +46 -0
- package/dist/cli/commands/serve.command.descriptor.js.map +1 -0
- package/dist/cli/commands/serve.command.impl.d.ts +110 -0
- package/dist/cli/commands/serve.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/serve.command.impl.js +1105 -0
- package/dist/cli/commands/serve.command.impl.js.map +1 -0
- package/dist/cli/commands/serve.schemas.d.ts +127 -0
- package/dist/cli/commands/serve.schemas.d.ts.map +1 -0
- package/dist/cli/commands/serve.schemas.js +85 -0
- package/dist/cli/commands/serve.schemas.js.map +1 -0
- package/dist/cli/commands/served-applet-browser.d.ts +12 -0
- package/dist/cli/commands/served-applet-browser.d.ts.map +1 -0
- package/dist/cli/commands/served-applet-browser.js +48 -0
- package/dist/cli/commands/served-applet-browser.js.map +1 -0
- package/dist/cli/commands/served-applet-connection.d.ts +15 -0
- package/dist/cli/commands/served-applet-connection.d.ts.map +1 -0
- package/dist/cli/commands/served-applet-connection.js +25 -0
- package/dist/cli/commands/served-applet-connection.js.map +1 -0
- package/dist/cli/commands/served-applet-rpc.d.ts +16 -0
- package/dist/cli/commands/served-applet-rpc.d.ts.map +1 -0
- package/dist/cli/commands/served-applet-rpc.js +108 -0
- package/dist/cli/commands/served-applet-rpc.js.map +1 -0
- package/dist/cli/commands/served-applet-surface.d.ts +14 -0
- package/dist/cli/commands/served-applet-surface.d.ts.map +1 -0
- package/dist/cli/commands/served-applet-surface.js +99 -0
- package/dist/cli/commands/served-applet-surface.js.map +1 -0
- package/dist/cli/commands/templates.command.descriptor.d.ts +22 -0
- package/dist/cli/commands/templates.command.descriptor.d.ts.map +1 -0
- package/dist/cli/commands/templates.command.descriptor.js +21 -0
- package/dist/cli/commands/templates.command.descriptor.js.map +1 -0
- package/dist/cli/commands/templates.command.impl.d.ts +35 -0
- package/dist/cli/commands/templates.command.impl.d.ts.map +1 -0
- package/dist/cli/commands/templates.command.impl.js +59 -0
- package/dist/cli/commands/templates.command.impl.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +7 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/local-serve.authz-policy.descriptor.d.ts +22 -0
- package/dist/cli/local-serve.authz-policy.descriptor.d.ts.map +1 -0
- package/dist/cli/local-serve.authz-policy.descriptor.js +13 -0
- package/dist/cli/local-serve.authz-policy.descriptor.js.map +1 -0
- package/dist/cli/plugin.d.ts +19 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +57 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/project-files.d.ts +48 -0
- package/dist/cli/project-files.d.ts.map +1 -0
- package/dist/cli/project-files.js +130 -0
- package/dist/cli/project-files.js.map +1 -0
- package/dist/client/contract.d.ts +113 -0
- package/dist/client/contract.d.ts.map +1 -0
- package/dist/client/contract.js +17 -0
- package/dist/client/contract.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/repository.context.d.ts +113 -0
- package/dist/client/repository.context.d.ts.map +1 -0
- package/dist/client/repository.context.js +8 -0
- package/dist/client/repository.context.js.map +1 -0
- package/dist/client/runtime-client.d.ts +22 -0
- package/dist/client/runtime-client.d.ts.map +1 -0
- package/dist/client/runtime-client.js +200 -0
- package/dist/client/runtime-client.js.map +1 -0
- package/dist/companion-path.d.ts +25 -0
- package/dist/companion-path.d.ts.map +1 -0
- package/dist/companion-path.js +90 -0
- package/dist/companion-path.js.map +1 -0
- package/dist/component-ref.d.ts +12 -0
- package/dist/component-ref.d.ts.map +1 -0
- package/dist/component-ref.js +45 -0
- package/dist/component-ref.js.map +1 -0
- package/dist/composition-plan.d.ts +92 -0
- package/dist/composition-plan.d.ts.map +1 -0
- package/dist/composition-plan.js +44 -0
- package/dist/composition-plan.js.map +1 -0
- package/dist/composition.d.ts +97 -0
- package/dist/composition.d.ts.map +1 -0
- package/dist/composition.js +99 -0
- package/dist/composition.js.map +1 -0
- package/dist/config/applets.config.descriptor.d.ts +55 -0
- package/dist/config/applets.config.descriptor.d.ts.map +1 -0
- package/dist/config/applets.config.descriptor.js +37 -0
- package/dist/config/applets.config.descriptor.js.map +1 -0
- package/dist/config/load.d.ts +4 -0
- package/dist/config/load.d.ts.map +1 -0
- package/dist/config/load.js +12 -0
- package/dist/config/load.js.map +1 -0
- package/dist/content-path.d.ts +62 -0
- package/dist/content-path.d.ts.map +1 -0
- package/dist/content-path.js +121 -0
- package/dist/content-path.js.map +1 -0
- package/dist/contribution-registry.d.ts +270 -0
- package/dist/contribution-registry.d.ts.map +1 -0
- package/dist/contribution-registry.js +488 -0
- package/dist/contribution-registry.js.map +1 -0
- package/dist/docs/applets.docs.descriptor.d.ts +4 -0
- package/dist/docs/applets.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/applets.docs.descriptor.js +74 -0
- package/dist/docs/applets.docs.descriptor.js.map +1 -0
- package/dist/host/local-host.contract.d.ts +7 -0
- package/dist/host/local-host.contract.d.ts.map +1 -0
- package/dist/host/local-host.contract.js +2 -0
- package/dist/host/local-host.contract.js.map +1 -0
- package/dist/host/local-host.impl.d.ts +9 -0
- package/dist/host/local-host.impl.d.ts.map +1 -0
- package/dist/host/local-host.impl.js +41 -0
- package/dist/host/local-host.impl.js.map +1 -0
- package/dist/host/local-host.plugin.d.ts +3 -0
- package/dist/host/local-host.plugin.d.ts.map +1 -0
- package/dist/host/local-host.plugin.js +16 -0
- package/dist/host/local-host.plugin.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/local-project.d.ts +106 -0
- package/dist/local-project.d.ts.map +1 -0
- package/dist/local-project.js +277 -0
- package/dist/local-project.js.map +1 -0
- package/dist/manifest-hash.d.ts +12 -0
- package/dist/manifest-hash.d.ts.map +1 -0
- package/dist/manifest-hash.js +76 -0
- package/dist/manifest-hash.js.map +1 -0
- package/dist/presentation.d.ts +43 -0
- package/dist/presentation.d.ts.map +1 -0
- package/dist/presentation.js +36 -0
- package/dist/presentation.js.map +1 -0
- package/dist/retention.d.ts +34 -0
- package/dist/retention.d.ts.map +1 -0
- package/dist/retention.js +51 -0
- package/dist/retention.js.map +1 -0
- package/dist/schemas/applet-messages.d.ts +97 -0
- package/dist/schemas/applet-messages.d.ts.map +1 -0
- package/dist/schemas/applet-messages.js +51 -0
- package/dist/schemas/applet-messages.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +37 -0
- package/dist/schemas/capabilities.d.ts.map +1 -0
- package/dist/schemas/capabilities.js +28 -0
- package/dist/schemas/capabilities.js.map +1 -0
- package/dist/schemas/component-release-ref.d.ts +13 -0
- package/dist/schemas/component-release-ref.d.ts.map +1 -0
- package/dist/schemas/component-release-ref.js +21 -0
- package/dist/schemas/component-release-ref.js.map +1 -0
- package/dist/schemas/contributes.d.ts +306 -0
- package/dist/schemas/contributes.d.ts.map +1 -0
- package/dist/schemas/contributes.js +184 -0
- package/dist/schemas/contributes.js.map +1 -0
- package/dist/schemas/definition.d.ts +301 -0
- package/dist/schemas/definition.d.ts.map +1 -0
- package/dist/schemas/definition.js +457 -0
- package/dist/schemas/definition.js.map +1 -0
- package/dist/schemas/dispatch.d.ts +52 -0
- package/dist/schemas/dispatch.d.ts.map +1 -0
- package/dist/schemas/dispatch.js +32 -0
- package/dist/schemas/dispatch.js.map +1 -0
- package/dist/schemas/grants.d.ts +56 -0
- package/dist/schemas/grants.d.ts.map +1 -0
- package/dist/schemas/grants.js +64 -0
- package/dist/schemas/grants.js.map +1 -0
- package/dist/schemas/index.d.ts +16 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +16 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/instance.d.ts +230 -0
- package/dist/schemas/instance.d.ts.map +1 -0
- package/dist/schemas/instance.js +44 -0
- package/dist/schemas/instance.js.map +1 -0
- package/dist/schemas/lineage.d.ts +60 -0
- package/dist/schemas/lineage.d.ts.map +1 -0
- package/dist/schemas/lineage.js +52 -0
- package/dist/schemas/lineage.js.map +1 -0
- package/dist/schemas/observation.d.ts +70 -0
- package/dist/schemas/observation.d.ts.map +1 -0
- package/dist/schemas/observation.js +49 -0
- package/dist/schemas/observation.js.map +1 -0
- package/dist/schemas/patterns.d.ts +24 -0
- package/dist/schemas/patterns.d.ts.map +1 -0
- package/dist/schemas/patterns.js +24 -0
- package/dist/schemas/patterns.js.map +1 -0
- package/dist/schemas/publishing.d.ts +27 -0
- package/dist/schemas/publishing.d.ts.map +1 -0
- package/dist/schemas/publishing.js +20 -0
- package/dist/schemas/publishing.js.map +1 -0
- package/dist/schemas/run.d.ts +35 -0
- package/dist/schemas/run.d.ts.map +1 -0
- package/dist/schemas/run.js +26 -0
- package/dist/schemas/run.js.map +1 -0
- package/dist/schemas/share-link.d.ts +61 -0
- package/dist/schemas/share-link.d.ts.map +1 -0
- package/dist/schemas/share-link.js +68 -0
- package/dist/schemas/share-link.js.map +1 -0
- package/dist/schemas/state-events.d.ts +66 -0
- package/dist/schemas/state-events.d.ts.map +1 -0
- package/dist/schemas/state-events.js +66 -0
- package/dist/schemas/state-events.js.map +1 -0
- package/dist/schemas/subscription.d.ts +47 -0
- package/dist/schemas/subscription.d.ts.map +1 -0
- package/dist/schemas/subscription.js +46 -0
- package/dist/schemas/subscription.js.map +1 -0
- package/dist/schemas/template-revision.d.ts +53 -0
- package/dist/schemas/template-revision.d.ts.map +1 -0
- package/dist/schemas/template-revision.js +30 -0
- package/dist/schemas/template-revision.js.map +1 -0
- package/dist/selection.d.ts +22 -0
- package/dist/selection.d.ts.map +1 -0
- package/dist/selection.js +21 -0
- package/dist/selection.js.map +1 -0
- package/dist/storage/index.d.ts +27 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +27 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/records.d.ts +28 -0
- package/dist/storage/records.d.ts.map +1 -0
- package/dist/storage/records.js +272 -0
- package/dist/storage/records.js.map +1 -0
- package/dist/svelte/applets-svelte.plugin.d.ts +38 -0
- package/dist/svelte/applets-svelte.plugin.d.ts.map +1 -0
- package/dist/svelte/applets-svelte.plugin.js +25 -0
- package/dist/svelte/components/AppletCanvas.svelte +488 -0
- package/dist/svelte/components/AppletCanvas.svelte.d.ts +53 -0
- package/dist/svelte/components/AppletCanvas.svelte.d.ts.map +1 -0
- package/dist/svelte/components/AppletCatalog.svelte +42 -0
- package/dist/svelte/components/AppletCatalog.svelte.d.ts +8 -0
- package/dist/svelte/components/AppletCatalog.svelte.d.ts.map +1 -0
- package/dist/svelte/components/AppletComposition.svelte +128 -0
- package/dist/svelte/components/AppletComposition.svelte.d.ts +30 -0
- package/dist/svelte/components/AppletComposition.svelte.d.ts.map +1 -0
- package/dist/svelte/components/AppletConsent.svelte +143 -0
- package/dist/svelte/components/AppletConsent.svelte.d.ts +12 -0
- package/dist/svelte/components/AppletConsent.svelte.d.ts.map +1 -0
- package/dist/svelte/components/LocalAppletView.svelte +102 -0
- package/dist/svelte/components/LocalAppletView.svelte.d.ts +13 -0
- package/dist/svelte/components/LocalAppletView.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunnableTracker.svelte +51 -0
- package/dist/svelte/components/RunnableTracker.svelte.d.ts +18 -0
- package/dist/svelte/components/RunnableTracker.svelte.d.ts.map +1 -0
- package/dist/svelte/index.d.ts +11 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +10 -0
- package/dist/svelte/lib/canvas-lifecycle.d.ts +68 -0
- package/dist/svelte/lib/canvas-lifecycle.d.ts.map +1 -0
- package/dist/svelte/lib/canvas-lifecycle.js +99 -0
- package/dist/svelte/lib/capability-review.d.ts +64 -0
- package/dist/svelte/lib/capability-review.d.ts.map +1 -0
- package/dist/svelte/lib/capability-review.js +77 -0
- package/dist/svelte/lib/message-protocol.d.ts +184 -0
- package/dist/svelte/lib/message-protocol.d.ts.map +1 -0
- package/dist/svelte/lib/message-protocol.js +251 -0
- package/dist/svelte/runnable-source.d.ts +5 -0
- package/dist/svelte/runnable-source.d.ts.map +1 -0
- package/dist/svelte/runnable-source.js +92 -0
- package/dist/svelte/serve-index.svelte +39 -0
- package/dist/svelte/serve-index.svelte.d.ts +10 -0
- package/dist/svelte/serve-index.svelte.d.ts.map +1 -0
- package/dist/svelte/state.svelte.d.ts +26 -0
- package/dist/svelte/state.svelte.d.ts.map +1 -0
- package/dist/svelte/state.svelte.js +74 -0
- package/dist/svelte/styles.css +4 -0
- package/dist/svelte/tool-widgets/AppletToolCard.svelte +148 -0
- package/dist/svelte/tool-widgets/AppletToolCard.svelte.d.ts +5 -0
- package/dist/svelte/tool-widgets/AppletToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/applet-tool-card.d.ts +41 -0
- package/dist/svelte/tool-widgets/applet-tool-card.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/applet-tool-card.js +167 -0
- package/dist/svelte/tool-widgets/index.d.ts +3 -0
- package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.js +2 -0
- package/dist/templates/index.d.ts +2 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +2 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/template.kind.d.ts +39 -0
- package/dist/templates/template.kind.d.ts.map +1 -0
- package/dist/templates/template.kind.js +29 -0
- package/dist/templates/template.kind.js.map +1 -0
- package/dist/tools/applet.descriptor.d.ts +196 -0
- package/dist/tools/applet.descriptor.d.ts.map +1 -0
- package/dist/tools/applet.descriptor.js +81 -0
- package/dist/tools/applet.descriptor.js.map +1 -0
- package/dist/tools/applet.impl.d.ts +32 -0
- package/dist/tools/applet.impl.d.ts.map +1 -0
- package/dist/tools/applet.impl.js +485 -0
- package/dist/tools/applet.impl.js.map +1 -0
- package/dist/tools/applet.schemas.d.ts +198 -0
- package/dist/tools/applet.schemas.d.ts.map +1 -0
- package/dist/tools/applet.schemas.js +136 -0
- package/dist/tools/applet.schemas.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/upgrade.d.ts +45 -0
- package/dist/upgrade.d.ts.map +1 -0
- package/dist/upgrade.js +179 -0
- package/dist/upgrade.js.map +1 -0
- package/dist/vite.d.ts +26 -0
- package/dist/vite.d.ts.map +1 -0
- package/dist/vite.js +28 -0
- package/dist/vite.js.map +1 -0
- package/package.json +264 -4
- package/templates/applet-tour/Applet.svelte +95 -0
- package/templates/applet-tour/applet.descriptor.ts +15 -0
- package/templates/assembly-field/Applet.svelte +242 -0
- package/templates/assembly-field/applet.descriptor.ts +7 -0
- package/templates/assembly-field/applet.storage.json +47 -0
- package/templates/assembly-field/schemas/settings.ts +14 -0
- package/templates/assembly-field/settings.ts +32 -0
- package/templates/benchmark-comparison/Applet.svelte +17 -0
- package/templates/benchmark-comparison/applet.descriptor.ts +7 -0
- package/templates/file-diff-viewer/Applet.svelte +91 -0
- package/templates/file-diff-viewer/applet.descriptor.ts +14 -0
- package/templates/file-diff-viewer/diff.ts +63 -0
- package/templates/file-viewer/Applet.svelte +80 -0
- package/templates/file-viewer/applet.descriptor.ts +14 -0
- package/templates/fleet-runs/Applet.svelte +14 -0
- package/templates/fleet-runs/applet.descriptor.ts +7 -0
- package/templates/graph-runbook-tracker/Applet.svelte +13 -0
- package/templates/graph-runbook-tracker/applet.descriptor.ts +7 -0
- package/templates/runbook-tracker/Applet.svelte +12 -0
- package/templates/runbook-tracker/applet.descriptor.ts +7 -0
- package/templates/runnable-tracker/Applet.svelte +16 -0
- package/templates/runnable-tracker/applet.descriptor.ts +10 -0
- package/templates/storage-viewer/Applet.svelte +90 -0
- package/templates/storage-viewer/applet.descriptor.ts +15 -0
- package/templates/workspace-graph-runbook-tracker/Applet.svelte +13 -0
- package/templates/workspace-graph-runbook-tracker/applet.descriptor.ts +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-hash.js","sourceRoot":"","sources":["../src/manifest-hash.ts"],"names":[],"mappings":"AA2BA,SAAS,QAAQ,CAAC,GAAY;IAC7B,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AAChC,CAAC;AAED,SAAS,QAAQ,CAAC,GAAY;IAC7B,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,CAAC;AAChD,CAAC;AAED,SAAS,SAAS,CAAC,KAAmB;IACrC,wEAAwE;IACxE,EAAE;IACF,8EAA8E;IAC9E,6EAA6E;IAC7E,2EAA2E;IAC3E,yEAAyE;IACzE,kDAAkD;IAClD,EAAE;IACF,8EAA8E;IAC9E,8EAA8E;IAC9E,YAAY;IACZ,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,iBAAiB,CAAC;IAClD,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,MAAM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,EAClC,kBAA6C;IAE7C,IAAI,CAAC,kBAAkB;QAAE,OAAO,KAAK,CAAC;IACtC,OAAO,CAAC,MAAM,yBAAyB,CAAC,QAAQ,CAAC,CAAC,KAAK,kBAAkB,CAAC;AAC3E,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import type { Component } from 'svelte';
|
|
3
|
+
import type { Manifest } from '@vibesdotdev/kit/forms';
|
|
4
|
+
import { type JsonObject } from '@vibesdotdev/kernel/schemas/json';
|
|
5
|
+
import type { AppletSvelteRuntimeProps } from './browser-runtime.ts';
|
|
6
|
+
/** Presentation metadata is shared by the catalog and the applet route. */
|
|
7
|
+
export declare const AppletPresentationSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodDefault<z.ZodString>;
|
|
11
|
+
entry: z.ZodDefault<z.ZodString>;
|
|
12
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
none: "none";
|
|
14
|
+
standard: "standard";
|
|
15
|
+
}>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type AppletPresentation = z.infer<typeof AppletPresentationSchema>;
|
|
18
|
+
/** Local, build-visible descriptors may compose Kit's existing form contract. */
|
|
19
|
+
export interface AppletInputForm extends Omit<Manifest, 'schema'> {
|
|
20
|
+
schema: z.ZodType<JsonObject>;
|
|
21
|
+
}
|
|
22
|
+
export interface AppletViewDefinition extends AppletPresentation {
|
|
23
|
+
inputs?: AppletInputForm;
|
|
24
|
+
}
|
|
25
|
+
export declare const AppletRouteSchema: z.ZodObject<{
|
|
26
|
+
path: z.ZodArray<z.ZodString>;
|
|
27
|
+
query: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type AppletRoute = z.infer<typeof AppletRouteSchema>;
|
|
30
|
+
export type AppletViewProps = AppletSvelteRuntimeProps & {
|
|
31
|
+
input: JsonObject;
|
|
32
|
+
route: AppletRoute;
|
|
33
|
+
};
|
|
34
|
+
export type AppletComponentLoader = () => Promise<Component<AppletViewProps>>;
|
|
35
|
+
/** Preserve repeated query values and nested paths; authored schemas own input validation. */
|
|
36
|
+
export declare function readAppletLocation(definition: AppletViewDefinition, path: string | undefined, url: URL): {
|
|
37
|
+
route: {
|
|
38
|
+
path: string[];
|
|
39
|
+
query: Record<string, string[]>;
|
|
40
|
+
};
|
|
41
|
+
input: JsonObject;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../src/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB;;;;;;;;;iBAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,iFAAiF;AACjF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAChE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;CAC9B;AACD,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC/D,MAAM,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,WAAW,CAAA;CAAE,CAAC;AACnG,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;AAE9E,8FAA8F;AAC9F,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,GAAG;;;;;;EAetG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { JsonObjectSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
3
|
+
import { appletProjectIdSchema } from "./local-project.js";
|
|
4
|
+
import { appletRelativePathSchema } from "./schemas/definition.js";
|
|
5
|
+
/** Presentation metadata is shared by the catalog and the applet route. */
|
|
6
|
+
export const AppletPresentationSchema = z.object({
|
|
7
|
+
id: appletProjectIdSchema,
|
|
8
|
+
title: z.string().min(1).max(160),
|
|
9
|
+
description: z.string().max(1000).default(''),
|
|
10
|
+
entry: appletRelativePathSchema.default('Applet.svelte'),
|
|
11
|
+
shell: z.enum(['standard', 'none']).default('standard')
|
|
12
|
+
});
|
|
13
|
+
export const AppletRouteSchema = z.object({
|
|
14
|
+
path: z.array(z.string().max(2048)).max(128),
|
|
15
|
+
query: z.record(z.string().max(256), z.array(z.string().max(8192)).max(128))
|
|
16
|
+
});
|
|
17
|
+
/** Preserve repeated query values and nested paths; authored schemas own input validation. */
|
|
18
|
+
export function readAppletLocation(definition, path, url) {
|
|
19
|
+
const query = Object.create(null);
|
|
20
|
+
for (const [key, value] of url.searchParams)
|
|
21
|
+
(query[key] ??= []).push(value);
|
|
22
|
+
const route = {
|
|
23
|
+
path: AppletRouteSchema.shape.path.parse(path ? path.split('/') : []),
|
|
24
|
+
query: Object.fromEntries(Object.entries(query).map(([key, values]) => [
|
|
25
|
+
AppletRouteSchema.shape.query.keyType.parse(key),
|
|
26
|
+
AppletRouteSchema.shape.query.valueType.parse(values)
|
|
27
|
+
]))
|
|
28
|
+
};
|
|
29
|
+
const encoded = url.searchParams.getAll('_input');
|
|
30
|
+
if (encoded.length > 1 || (encoded[0]?.length ?? 0) > 8192)
|
|
31
|
+
throw new Error('Applet input is too large or repeated.');
|
|
32
|
+
const values = JsonObjectSchema.parse(encoded[0] ? JSON.parse(encoded[0]) : {});
|
|
33
|
+
const input = definition.inputs ? definition.inputs.schema.parse(values) : values;
|
|
34
|
+
return { route, input: JsonObjectSchema.parse(input) };
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../src/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,gBAAgB,EAAmB,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,2EAA2E;AAC3E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,qBAAqB;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7C,KAAK,EAAE,wBAAwB,CAAC,OAAO,CAAC,eAAe,CAAC;IACxD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,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AAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC;SACrD,CAAC,CAAC;KACH,CAAC;IACF,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAClD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IACtH,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChF,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAClF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release retention — refuse Component deletion while an exact release is
|
|
3
|
+
* referenced by an applet (surface notification carrying an `applet` or
|
|
4
|
+
* `component` artifact with a matching componentRef).
|
|
5
|
+
*
|
|
6
|
+
* The check is a pure function over a notification list so it is testable
|
|
7
|
+
* without a runtime. The caller (platform-web DELETE handler) is responsible
|
|
8
|
+
* for sourcing the notification list via the surface store.
|
|
9
|
+
*/
|
|
10
|
+
import type { SurfaceNotification } from '@vibesdotdev/os/surface/schemas/artifact';
|
|
11
|
+
export interface ReleaseReference {
|
|
12
|
+
notificationId: string;
|
|
13
|
+
componentRef: string;
|
|
14
|
+
/** The artifact that carries the reference. */
|
|
15
|
+
artifactType: string;
|
|
16
|
+
/** Parsed component id from the componentRef. */
|
|
17
|
+
componentId: string;
|
|
18
|
+
/** Parsed version from the componentRef, or 'latest'. */
|
|
19
|
+
componentVersion: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Scan surface notifications for artifacts that reference the given Component id.
|
|
23
|
+
*
|
|
24
|
+
* Matches on the UUID portion of the componentRef — any version (including
|
|
25
|
+
* 'latest') counts as a reference. The caller decides whether to refuse
|
|
26
|
+
* deletion or warn.
|
|
27
|
+
*/
|
|
28
|
+
export declare function findReleaseReferences(notifications: SurfaceNotification[], componentId: string): ReleaseReference[];
|
|
29
|
+
/**
|
|
30
|
+
* Retention verdict — true means the Component is referenced and deletion
|
|
31
|
+
* should be refused.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isReleaseRetained(notifications: SurfaceNotification[], componentId: string): boolean;
|
|
34
|
+
//# sourceMappingURL=retention.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../src/retention.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,MAAM,WAAW,gBAAgB;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,gBAAgB,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,aAAa,EAAE,mBAAmB,EAAE,EACpC,WAAW,EAAE,MAAM,GACjB,gBAAgB,EAAE,CA0BpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,aAAa,EAAE,mBAAmB,EAAE,EACpC,WAAW,EAAE,MAAM,GACjB,OAAO,CAET"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release retention — refuse Component deletion while an exact release is
|
|
3
|
+
* referenced by an applet (surface notification carrying an `applet` or
|
|
4
|
+
* `component` artifact with a matching componentRef).
|
|
5
|
+
*
|
|
6
|
+
* The check is a pure function over a notification list so it is testable
|
|
7
|
+
* without a runtime. The caller (platform-web DELETE handler) is responsible
|
|
8
|
+
* for sourcing the notification list via the surface store.
|
|
9
|
+
*/
|
|
10
|
+
import { parseAppletComponentRef } from "./component-ref.js";
|
|
11
|
+
/**
|
|
12
|
+
* Scan surface notifications for artifacts that reference the given Component id.
|
|
13
|
+
*
|
|
14
|
+
* Matches on the UUID portion of the componentRef — any version (including
|
|
15
|
+
* 'latest') counts as a reference. The caller decides whether to refuse
|
|
16
|
+
* deletion or warn.
|
|
17
|
+
*/
|
|
18
|
+
export function findReleaseReferences(notifications, componentId) {
|
|
19
|
+
const refs = [];
|
|
20
|
+
const normalizedId = componentId.toLowerCase();
|
|
21
|
+
for (const notification of notifications) {
|
|
22
|
+
for (const artifact of notification.artifacts ?? []) {
|
|
23
|
+
if (artifact.type !== 'applet' && artifact.type !== 'component')
|
|
24
|
+
continue;
|
|
25
|
+
const rawRef = artifact.componentRef;
|
|
26
|
+
if (!rawRef)
|
|
27
|
+
continue;
|
|
28
|
+
const parsed = parseAppletComponentRef(rawRef);
|
|
29
|
+
if (!parsed)
|
|
30
|
+
continue;
|
|
31
|
+
if (parsed.id === normalizedId) {
|
|
32
|
+
refs.push({
|
|
33
|
+
notificationId: notification.id,
|
|
34
|
+
componentRef: rawRef,
|
|
35
|
+
artifactType: artifact.type,
|
|
36
|
+
componentId: parsed.id,
|
|
37
|
+
componentVersion: parsed.version
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return refs;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Retention verdict — true means the Component is referenced and deletion
|
|
46
|
+
* should be refused.
|
|
47
|
+
*/
|
|
48
|
+
export function isReleaseRetained(notifications, componentId) {
|
|
49
|
+
return findReleaseReferences(notifications, componentId).length > 0;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=retention.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retention.js","sourceRoot":"","sources":["../src/retention.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAc7D;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CACpC,aAAoC,EACpC,WAAmB;IAEnB,MAAM,IAAI,GAAuB,EAAE,CAAC;IACpC,MAAM,YAAY,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC;IAE/C,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QAC1C,KAAK,MAAM,QAAQ,IAAI,YAAY,CAAC,SAAS,IAAI,EAAE,EAAE,CAAC;YACrD,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW;gBAAE,SAAS;YAC1E,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,CAAC;YACrC,IAAI,CAAC,MAAM;gBAAE,SAAS;YAEtB,MAAM,MAAM,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;YAC/C,IAAI,CAAC,MAAM;gBAAE,SAAS;YAEtB,IAAI,MAAM,CAAC,EAAE,KAAK,YAAY,EAAE,CAAC;gBAChC,IAAI,CAAC,IAAI,CAAC;oBACT,cAAc,EAAE,YAAY,CAAC,EAAE;oBAC/B,YAAY,EAAE,MAAM;oBACpB,YAAY,EAAE,QAAQ,CAAC,IAAI;oBAC3B,WAAW,EAAE,MAAM,CAAC,EAAE;oBACtB,gBAAgB,EAAE,MAAM,CAAC,OAAO;iBAChC,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAChC,aAAoC,EACpC,WAAmB;IAEnB,OAAO,qBAAqB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host→applet message contracts — schema-first, shared by both sides.
|
|
3
|
+
*
|
|
4
|
+
* A host that hands one of these messages and an applet that validates
|
|
5
|
+
* against the same schema are speaking a versioned contract from
|
|
6
|
+
* @vibesdotdev/applets, not ad-hoc shapes copied between files. The local
|
|
7
|
+
* serve server and the upstream consent canvas both speak these.
|
|
8
|
+
*/
|
|
9
|
+
import * as z from 'zod/v4';
|
|
10
|
+
export declare const appletIdSchema: z.ZodString;
|
|
11
|
+
/** file-viewer: the handed file set. */
|
|
12
|
+
export declare const filesMessageSchema: z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<"files">;
|
|
14
|
+
files: z.ZodArray<z.ZodObject<{
|
|
15
|
+
path: z.ZodString;
|
|
16
|
+
content: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type FilesMessage = z.infer<typeof filesMessageSchema>;
|
|
20
|
+
/** file-diff-viewer: one handed before/after pair. */
|
|
21
|
+
export declare const diffMessageSchema: z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"diff">;
|
|
23
|
+
path: z.ZodString;
|
|
24
|
+
before: z.ZodString;
|
|
25
|
+
after: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type DiffMessage = z.infer<typeof diffMessageSchema>;
|
|
28
|
+
/** storage-viewer: a handed directory tree. */
|
|
29
|
+
export declare const treeEntrySchema: z.ZodObject<{
|
|
30
|
+
path: z.ZodString;
|
|
31
|
+
kind: z.ZodEnum<{
|
|
32
|
+
file: "file";
|
|
33
|
+
dir: "dir";
|
|
34
|
+
}>;
|
|
35
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const treeMessageSchema: z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<"tree">;
|
|
39
|
+
root: z.ZodOptional<z.ZodString>;
|
|
40
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
41
|
+
path: z.ZodString;
|
|
42
|
+
kind: z.ZodEnum<{
|
|
43
|
+
file: "file";
|
|
44
|
+
dir: "dir";
|
|
45
|
+
}>;
|
|
46
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type TreeMessage = z.infer<typeof treeMessageSchema>;
|
|
50
|
+
/** applet-tour: a handed walkthrough. */
|
|
51
|
+
export declare const tourStepSchema: z.ZodObject<{
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
body: z.ZodString;
|
|
54
|
+
url: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const tourMessageSchema: z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"tour">;
|
|
58
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
59
|
+
title: z.ZodString;
|
|
60
|
+
body: z.ZodString;
|
|
61
|
+
url: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type TourMessage = z.infer<typeof tourMessageSchema>;
|
|
65
|
+
/** Union for dispatch: parse an unknown message into its contract. */
|
|
66
|
+
export declare const appletMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<"files">;
|
|
68
|
+
files: z.ZodArray<z.ZodObject<{
|
|
69
|
+
path: z.ZodString;
|
|
70
|
+
content: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<"diff">;
|
|
74
|
+
path: z.ZodString;
|
|
75
|
+
before: z.ZodString;
|
|
76
|
+
after: z.ZodString;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<"tree">;
|
|
79
|
+
root: z.ZodOptional<z.ZodString>;
|
|
80
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
81
|
+
path: z.ZodString;
|
|
82
|
+
kind: z.ZodEnum<{
|
|
83
|
+
file: "file";
|
|
84
|
+
dir: "dir";
|
|
85
|
+
}>;
|
|
86
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<"tour">;
|
|
90
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
91
|
+
title: z.ZodString;
|
|
92
|
+
body: z.ZodString;
|
|
93
|
+
url: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
}, z.core.$strip>], "type">;
|
|
96
|
+
export type AppletMessage = z.infer<typeof appletMessageSchema>;
|
|
97
|
+
//# sourceMappingURL=applet-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applet-messages.d.ts","sourceRoot":"","sources":["../../src/schemas/applet-messages.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,cAAc,aAA2C,CAAC;AAEvE,wCAAwC;AACxC,eAAO,MAAM,kBAAkB;;;;;;iBAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,sDAAsD;AACtD,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,+CAA+C;AAC/C,eAAO,MAAM,eAAe;;;;;;;iBAI1B,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;iBAI5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,yCAAyC;AACzC,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,sEAAsE;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host→applet message contracts — schema-first, shared by both sides.
|
|
3
|
+
*
|
|
4
|
+
* A host that hands one of these messages and an applet that validates
|
|
5
|
+
* against the same schema are speaking a versioned contract from
|
|
6
|
+
* @vibesdotdev/applets, not ad-hoc shapes copied between files. The local
|
|
7
|
+
* serve server and the upstream consent canvas both speak these.
|
|
8
|
+
*/
|
|
9
|
+
import * as z from 'zod/v4';
|
|
10
|
+
export const appletIdSchema = z.string().regex(/^[a-z0-9][a-z0-9-]*$/);
|
|
11
|
+
/** file-viewer: the handed file set. */
|
|
12
|
+
export const filesMessageSchema = z.object({
|
|
13
|
+
type: z.literal('files'),
|
|
14
|
+
files: z.array(z.object({ path: z.string(), content: z.string() }))
|
|
15
|
+
});
|
|
16
|
+
/** file-diff-viewer: one handed before/after pair. */
|
|
17
|
+
export const diffMessageSchema = z.object({
|
|
18
|
+
type: z.literal('diff'),
|
|
19
|
+
path: z.string(),
|
|
20
|
+
before: z.string(),
|
|
21
|
+
after: z.string()
|
|
22
|
+
});
|
|
23
|
+
/** storage-viewer: a handed directory tree. */
|
|
24
|
+
export const treeEntrySchema = z.object({
|
|
25
|
+
path: z.string(),
|
|
26
|
+
kind: z.enum(['dir', 'file']),
|
|
27
|
+
size: z.number().optional()
|
|
28
|
+
});
|
|
29
|
+
export const treeMessageSchema = z.object({
|
|
30
|
+
type: z.literal('tree'),
|
|
31
|
+
root: z.string().optional(),
|
|
32
|
+
entries: z.array(treeEntrySchema)
|
|
33
|
+
});
|
|
34
|
+
/** applet-tour: a handed walkthrough. */
|
|
35
|
+
export const tourStepSchema = z.object({
|
|
36
|
+
title: z.string(),
|
|
37
|
+
body: z.string(),
|
|
38
|
+
url: z.string().optional()
|
|
39
|
+
});
|
|
40
|
+
export const tourMessageSchema = z.object({
|
|
41
|
+
type: z.literal('tour'),
|
|
42
|
+
steps: z.array(tourStepSchema).min(1)
|
|
43
|
+
});
|
|
44
|
+
/** Union for dispatch: parse an unknown message into its contract. */
|
|
45
|
+
export const appletMessageSchema = z.discriminatedUnion('type', [
|
|
46
|
+
filesMessageSchema,
|
|
47
|
+
diffMessageSchema,
|
|
48
|
+
treeMessageSchema,
|
|
49
|
+
tourMessageSchema
|
|
50
|
+
]);
|
|
51
|
+
//# sourceMappingURL=applet-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applet-messages.js","sourceRoot":"","sources":["../../src/schemas/applet-messages.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAEvE,wCAAwC;AACxC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,C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zC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACrC,CAAC,CAAC;AAGH,sEAAsE;AACtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC/D,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capability vocabulary — stable names for authority an Applet may request.
|
|
3
|
+
*
|
|
4
|
+
* Component authors may explain why a capability is needed but cannot define
|
|
5
|
+
* or grant authority. Trust is server-attested policy; this module deliberately
|
|
6
|
+
* does not claim a broker registry while no broker invocation boundary exists.
|
|
7
|
+
*/
|
|
8
|
+
import * as z from 'zod/v4';
|
|
9
|
+
export declare const appletCapabilityKindSchema: z.ZodEnum<{
|
|
10
|
+
"storage.read": "storage.read";
|
|
11
|
+
"storage.write": "storage.write";
|
|
12
|
+
"network.fetch": "network.fetch";
|
|
13
|
+
"clipboard.read": "clipboard.read";
|
|
14
|
+
"clipboard.write": "clipboard.write";
|
|
15
|
+
"geolocation.read": "geolocation.read";
|
|
16
|
+
"notification.send": "notification.send";
|
|
17
|
+
"workboard.create": "workboard.create";
|
|
18
|
+
"workboard.update": "workboard.update";
|
|
19
|
+
"applet.snapshot.create": "applet.snapshot.create";
|
|
20
|
+
"applet.snapshot.update": "applet.snapshot.update";
|
|
21
|
+
"output.create": "output.create";
|
|
22
|
+
"output.update": "output.update";
|
|
23
|
+
}>;
|
|
24
|
+
export declare const appletCapabilityRiskSchema: z.ZodEnum<{
|
|
25
|
+
low: "low";
|
|
26
|
+
medium: "medium";
|
|
27
|
+
high: "high";
|
|
28
|
+
}>;
|
|
29
|
+
export declare const appletCapabilityCostPostureSchema: z.ZodEnum<{
|
|
30
|
+
free: "free";
|
|
31
|
+
metered: "metered";
|
|
32
|
+
quota: "quota";
|
|
33
|
+
}>;
|
|
34
|
+
export type AppletCapabilityKind = z.infer<typeof appletCapabilityKindSchema>;
|
|
35
|
+
export type AppletCapabilityRisk = z.infer<typeof appletCapabilityRiskSchema>;
|
|
36
|
+
export type AppletCapabilityCostPosture = z.infer<typeof appletCapabilityCostPostureSchema>;
|
|
37
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/schemas/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;EAgBrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;EAAoC,CAAC;AAE5E,eAAO,MAAM,iCAAiC;;;;EAAuC,CAAC;AAEtF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capability vocabulary — stable names for authority an Applet may request.
|
|
3
|
+
*
|
|
4
|
+
* Component authors may explain why a capability is needed but cannot define
|
|
5
|
+
* or grant authority. Trust is server-attested policy; this module deliberately
|
|
6
|
+
* does not claim a broker registry while no broker invocation boundary exists.
|
|
7
|
+
*/
|
|
8
|
+
import * as z from 'zod/v4';
|
|
9
|
+
export const appletCapabilityKindSchema = z.enum([
|
|
10
|
+
'storage.read',
|
|
11
|
+
'storage.write',
|
|
12
|
+
'network.fetch',
|
|
13
|
+
'clipboard.read',
|
|
14
|
+
'clipboard.write',
|
|
15
|
+
'geolocation.read',
|
|
16
|
+
'notification.send',
|
|
17
|
+
'workboard.create',
|
|
18
|
+
'workboard.update',
|
|
19
|
+
'applet.snapshot.create',
|
|
20
|
+
'applet.snapshot.update',
|
|
21
|
+
/** @deprecated Persistence compatibility only; use applet.snapshot.*. */
|
|
22
|
+
'output.create',
|
|
23
|
+
/** @deprecated Persistence compatibility only; use applet.snapshot.*. */
|
|
24
|
+
'output.update'
|
|
25
|
+
]);
|
|
26
|
+
export const appletCapabilityRiskSchema = z.enum(['low', 'medium', 'high']);
|
|
27
|
+
export const appletCapabilityCostPostureSchema = z.enum(['free', 'metered', 'quota']);
|
|
28
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/schemas/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,yEAAyE;IACzE,eAAe;IACf,yEAAyE;IACzE,eAAe;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component release reference — pins an applet to one exact Platform Component
|
|
3
|
+
* release. No mutable/latest binding; the version and digests are immutable.
|
|
4
|
+
*/
|
|
5
|
+
import * as z from 'zod/v4';
|
|
6
|
+
export declare const componentReleaseRefSchema: z.ZodObject<{
|
|
7
|
+
componentId: z.ZodUUID;
|
|
8
|
+
version: z.ZodString;
|
|
9
|
+
bundleHash: z.ZodString;
|
|
10
|
+
manifestHash: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ComponentReleaseRef = z.infer<typeof componentReleaseRefSchema>;
|
|
13
|
+
//# sourceMappingURL=component-release-ref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-release-ref.d.ts","sourceRoot":"","sources":["../../src/schemas/component-release-ref.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,yBAAyB;;;;;iBAcpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component release reference — pins an applet to one exact Platform Component
|
|
3
|
+
* release. No mutable/latest binding; the version and digests are immutable.
|
|
4
|
+
*/
|
|
5
|
+
import * as z from 'zod/v4';
|
|
6
|
+
export const componentReleaseRefSchema = z.object({
|
|
7
|
+
componentId: z.uuid(),
|
|
8
|
+
version: z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1)
|
|
11
|
+
.max(32)
|
|
12
|
+
.regex(/^[a-zA-Z0-9.+_-]+$/, 'Component release versions must be URL-safe')
|
|
13
|
+
.refine((version) => version.toLowerCase() !== 'latest', {
|
|
14
|
+
message: 'Applet instances and composition must pin an exact Component release'
|
|
15
|
+
}),
|
|
16
|
+
/** Bundle digest at publish time — the exact bytes consent and execution bind to. */
|
|
17
|
+
bundleHash: z.string().min(1),
|
|
18
|
+
/** Manifest digest at publish time — exact capabilities/props/schemas. */
|
|
19
|
+
manifestHash: z.string().min(1).optional()
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=component-release-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-release-ref.js","sourceRoot":"","sources":["../../src/schemas/component-release-ref.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE;IACrB,OAAO,EAAE,CAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,oBAAoB,EAAE,6CAA6C,CAAC;SAC1E,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,QAAQ,EAAE;QACxD,OAAO,EAAE,sEAAsE;KAC/E,CAAC;IACH,qFAAqF;IACrF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,0EAA0E;IAC1E,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC"}
|