@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.
Files changed (421) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +43 -2
  3. package/dist/applet-gate.d.ts +47 -0
  4. package/dist/applet-gate.d.ts.map +1 -0
  5. package/dist/applet-gate.js +167 -0
  6. package/dist/applet-gate.js.map +1 -0
  7. package/dist/applet-root-surface.d.ts +135 -0
  8. package/dist/applet-root-surface.d.ts.map +1 -0
  9. package/dist/applet-root-surface.js +222 -0
  10. package/dist/applet-root-surface.js.map +1 -0
  11. package/dist/applet-value-bound.d.ts +24 -0
  12. package/dist/applet-value-bound.d.ts.map +1 -0
  13. package/dist/applet-value-bound.js +46 -0
  14. package/dist/applet-value-bound.js.map +1 -0
  15. package/dist/applets.cloud.plugin.d.ts +4 -0
  16. package/dist/applets.cloud.plugin.d.ts.map +1 -0
  17. package/dist/applets.cloud.plugin.js +11 -0
  18. package/dist/applets.cloud.plugin.js.map +1 -0
  19. package/dist/applets.consumer.plugin.d.ts +4 -0
  20. package/dist/applets.consumer.plugin.d.ts.map +1 -0
  21. package/dist/applets.consumer.plugin.js +11 -0
  22. package/dist/applets.consumer.plugin.js.map +1 -0
  23. package/dist/applets.plugin.d.ts +3 -0
  24. package/dist/applets.plugin.d.ts.map +1 -0
  25. package/dist/applets.plugin.js +30 -0
  26. package/dist/applets.plugin.js.map +1 -0
  27. package/dist/authorization.d.ts +87 -0
  28. package/dist/authorization.d.ts.map +1 -0
  29. package/dist/authorization.js +189 -0
  30. package/dist/authorization.js.map +1 -0
  31. package/dist/browser-runtime.d.ts +34 -0
  32. package/dist/browser-runtime.d.ts.map +1 -0
  33. package/dist/browser-runtime.js +5 -0
  34. package/dist/browser-runtime.js.map +1 -0
  35. package/dist/build-definition.d.ts +34 -0
  36. package/dist/build-definition.d.ts.map +1 -0
  37. package/dist/build-definition.js +44 -0
  38. package/dist/build-definition.js.map +1 -0
  39. package/dist/capabilities/capability.kind.d.ts +44 -0
  40. package/dist/capabilities/capability.kind.d.ts.map +1 -0
  41. package/dist/capabilities/capability.kind.js +17 -0
  42. package/dist/capabilities/capability.kind.js.map +1 -0
  43. package/dist/capabilities/runtime-dispatch.d.ts +9 -0
  44. package/dist/capabilities/runtime-dispatch.d.ts.map +1 -0
  45. package/dist/capabilities/runtime-dispatch.js +62 -0
  46. package/dist/capabilities/runtime-dispatch.js.map +1 -0
  47. package/dist/cli/applet-group.descriptor.d.ts +11 -0
  48. package/dist/cli/applet-group.descriptor.d.ts.map +1 -0
  49. package/dist/cli/applet-group.descriptor.js +19 -0
  50. package/dist/cli/applet-group.descriptor.js.map +1 -0
  51. package/dist/cli/applet-local-store.storage.descriptor.d.ts +66 -0
  52. package/dist/cli/applet-local-store.storage.descriptor.d.ts.map +1 -0
  53. package/dist/cli/applet-local-store.storage.descriptor.js +39 -0
  54. package/dist/cli/applet-local-store.storage.descriptor.js.map +1 -0
  55. package/dist/cli/applet-serve.process.descriptor.d.ts +37 -0
  56. package/dist/cli/applet-serve.process.descriptor.d.ts.map +1 -0
  57. package/dist/cli/applet-serve.process.descriptor.js +41 -0
  58. package/dist/cli/applet-serve.process.descriptor.js.map +1 -0
  59. package/dist/cli/commands/build.command.descriptor.d.ts +40 -0
  60. package/dist/cli/commands/build.command.descriptor.d.ts.map +1 -0
  61. package/dist/cli/commands/build.command.descriptor.js +52 -0
  62. package/dist/cli/commands/build.command.descriptor.js.map +1 -0
  63. package/dist/cli/commands/build.command.impl.d.ts +8 -0
  64. package/dist/cli/commands/build.command.impl.d.ts.map +1 -0
  65. package/dist/cli/commands/build.command.impl.js +116 -0
  66. package/dist/cli/commands/build.command.impl.js.map +1 -0
  67. package/dist/cli/commands/init.command.descriptor.d.ts +29 -0
  68. package/dist/cli/commands/init.command.descriptor.d.ts.map +1 -0
  69. package/dist/cli/commands/init.command.descriptor.js +23 -0
  70. package/dist/cli/commands/init.command.descriptor.js.map +1 -0
  71. package/dist/cli/commands/init.command.impl.d.ts +7 -0
  72. package/dist/cli/commands/init.command.impl.d.ts.map +1 -0
  73. package/dist/cli/commands/init.command.impl.js +64 -0
  74. package/dist/cli/commands/init.command.impl.js.map +1 -0
  75. package/dist/cli/commands/list.command.descriptor.d.ts +26 -0
  76. package/dist/cli/commands/list.command.descriptor.d.ts.map +1 -0
  77. package/dist/cli/commands/list.command.descriptor.js +22 -0
  78. package/dist/cli/commands/list.command.descriptor.js.map +1 -0
  79. package/dist/cli/commands/list.command.impl.d.ts +13 -0
  80. package/dist/cli/commands/list.command.impl.d.ts.map +1 -0
  81. package/dist/cli/commands/list.command.impl.js +47 -0
  82. package/dist/cli/commands/list.command.impl.js.map +1 -0
  83. package/dist/cli/commands/serve-stylesheet.d.ts +11 -0
  84. package/dist/cli/commands/serve-stylesheet.d.ts.map +1 -0
  85. package/dist/cli/commands/serve-stylesheet.js +50 -0
  86. package/dist/cli/commands/serve-stylesheet.js.map +1 -0
  87. package/dist/cli/commands/serve-surface.d.ts +36 -0
  88. package/dist/cli/commands/serve-surface.d.ts.map +1 -0
  89. package/dist/cli/commands/serve-surface.js +410 -0
  90. package/dist/cli/commands/serve-surface.js.map +1 -0
  91. package/dist/cli/commands/serve.command.descriptor.d.ts +42 -0
  92. package/dist/cli/commands/serve.command.descriptor.d.ts.map +1 -0
  93. package/dist/cli/commands/serve.command.descriptor.js +46 -0
  94. package/dist/cli/commands/serve.command.descriptor.js.map +1 -0
  95. package/dist/cli/commands/serve.command.impl.d.ts +110 -0
  96. package/dist/cli/commands/serve.command.impl.d.ts.map +1 -0
  97. package/dist/cli/commands/serve.command.impl.js +1105 -0
  98. package/dist/cli/commands/serve.command.impl.js.map +1 -0
  99. package/dist/cli/commands/serve.schemas.d.ts +127 -0
  100. package/dist/cli/commands/serve.schemas.d.ts.map +1 -0
  101. package/dist/cli/commands/serve.schemas.js +85 -0
  102. package/dist/cli/commands/serve.schemas.js.map +1 -0
  103. package/dist/cli/commands/served-applet-browser.d.ts +12 -0
  104. package/dist/cli/commands/served-applet-browser.d.ts.map +1 -0
  105. package/dist/cli/commands/served-applet-browser.js +48 -0
  106. package/dist/cli/commands/served-applet-browser.js.map +1 -0
  107. package/dist/cli/commands/served-applet-connection.d.ts +15 -0
  108. package/dist/cli/commands/served-applet-connection.d.ts.map +1 -0
  109. package/dist/cli/commands/served-applet-connection.js +25 -0
  110. package/dist/cli/commands/served-applet-connection.js.map +1 -0
  111. package/dist/cli/commands/served-applet-rpc.d.ts +16 -0
  112. package/dist/cli/commands/served-applet-rpc.d.ts.map +1 -0
  113. package/dist/cli/commands/served-applet-rpc.js +108 -0
  114. package/dist/cli/commands/served-applet-rpc.js.map +1 -0
  115. package/dist/cli/commands/served-applet-surface.d.ts +14 -0
  116. package/dist/cli/commands/served-applet-surface.d.ts.map +1 -0
  117. package/dist/cli/commands/served-applet-surface.js +99 -0
  118. package/dist/cli/commands/served-applet-surface.js.map +1 -0
  119. package/dist/cli/commands/templates.command.descriptor.d.ts +22 -0
  120. package/dist/cli/commands/templates.command.descriptor.d.ts.map +1 -0
  121. package/dist/cli/commands/templates.command.descriptor.js +21 -0
  122. package/dist/cli/commands/templates.command.descriptor.js.map +1 -0
  123. package/dist/cli/commands/templates.command.impl.d.ts +35 -0
  124. package/dist/cli/commands/templates.command.impl.d.ts.map +1 -0
  125. package/dist/cli/commands/templates.command.impl.js +59 -0
  126. package/dist/cli/commands/templates.command.impl.js.map +1 -0
  127. package/dist/cli/index.d.ts +7 -0
  128. package/dist/cli/index.d.ts.map +1 -0
  129. package/dist/cli/index.js +7 -0
  130. package/dist/cli/index.js.map +1 -0
  131. package/dist/cli/local-serve.authz-policy.descriptor.d.ts +22 -0
  132. package/dist/cli/local-serve.authz-policy.descriptor.d.ts.map +1 -0
  133. package/dist/cli/local-serve.authz-policy.descriptor.js +13 -0
  134. package/dist/cli/local-serve.authz-policy.descriptor.js.map +1 -0
  135. package/dist/cli/plugin.d.ts +19 -0
  136. package/dist/cli/plugin.d.ts.map +1 -0
  137. package/dist/cli/plugin.js +57 -0
  138. package/dist/cli/plugin.js.map +1 -0
  139. package/dist/cli/project-files.d.ts +48 -0
  140. package/dist/cli/project-files.d.ts.map +1 -0
  141. package/dist/cli/project-files.js +130 -0
  142. package/dist/cli/project-files.js.map +1 -0
  143. package/dist/client/contract.d.ts +113 -0
  144. package/dist/client/contract.d.ts.map +1 -0
  145. package/dist/client/contract.js +17 -0
  146. package/dist/client/contract.js.map +1 -0
  147. package/dist/client/index.d.ts +3 -0
  148. package/dist/client/index.d.ts.map +1 -0
  149. package/dist/client/index.js +3 -0
  150. package/dist/client/index.js.map +1 -0
  151. package/dist/client/repository.context.d.ts +113 -0
  152. package/dist/client/repository.context.d.ts.map +1 -0
  153. package/dist/client/repository.context.js +8 -0
  154. package/dist/client/repository.context.js.map +1 -0
  155. package/dist/client/runtime-client.d.ts +22 -0
  156. package/dist/client/runtime-client.d.ts.map +1 -0
  157. package/dist/client/runtime-client.js +200 -0
  158. package/dist/client/runtime-client.js.map +1 -0
  159. package/dist/companion-path.d.ts +25 -0
  160. package/dist/companion-path.d.ts.map +1 -0
  161. package/dist/companion-path.js +90 -0
  162. package/dist/companion-path.js.map +1 -0
  163. package/dist/component-ref.d.ts +12 -0
  164. package/dist/component-ref.d.ts.map +1 -0
  165. package/dist/component-ref.js +45 -0
  166. package/dist/component-ref.js.map +1 -0
  167. package/dist/composition-plan.d.ts +92 -0
  168. package/dist/composition-plan.d.ts.map +1 -0
  169. package/dist/composition-plan.js +44 -0
  170. package/dist/composition-plan.js.map +1 -0
  171. package/dist/composition.d.ts +97 -0
  172. package/dist/composition.d.ts.map +1 -0
  173. package/dist/composition.js +99 -0
  174. package/dist/composition.js.map +1 -0
  175. package/dist/config/applets.config.descriptor.d.ts +55 -0
  176. package/dist/config/applets.config.descriptor.d.ts.map +1 -0
  177. package/dist/config/applets.config.descriptor.js +37 -0
  178. package/dist/config/applets.config.descriptor.js.map +1 -0
  179. package/dist/config/load.d.ts +4 -0
  180. package/dist/config/load.d.ts.map +1 -0
  181. package/dist/config/load.js +12 -0
  182. package/dist/config/load.js.map +1 -0
  183. package/dist/content-path.d.ts +62 -0
  184. package/dist/content-path.d.ts.map +1 -0
  185. package/dist/content-path.js +121 -0
  186. package/dist/content-path.js.map +1 -0
  187. package/dist/contribution-registry.d.ts +270 -0
  188. package/dist/contribution-registry.d.ts.map +1 -0
  189. package/dist/contribution-registry.js +488 -0
  190. package/dist/contribution-registry.js.map +1 -0
  191. package/dist/docs/applets.docs.descriptor.d.ts +4 -0
  192. package/dist/docs/applets.docs.descriptor.d.ts.map +1 -0
  193. package/dist/docs/applets.docs.descriptor.js +74 -0
  194. package/dist/docs/applets.docs.descriptor.js.map +1 -0
  195. package/dist/host/local-host.contract.d.ts +7 -0
  196. package/dist/host/local-host.contract.d.ts.map +1 -0
  197. package/dist/host/local-host.contract.js +2 -0
  198. package/dist/host/local-host.contract.js.map +1 -0
  199. package/dist/host/local-host.impl.d.ts +9 -0
  200. package/dist/host/local-host.impl.d.ts.map +1 -0
  201. package/dist/host/local-host.impl.js +41 -0
  202. package/dist/host/local-host.impl.js.map +1 -0
  203. package/dist/host/local-host.plugin.d.ts +3 -0
  204. package/dist/host/local-host.plugin.d.ts.map +1 -0
  205. package/dist/host/local-host.plugin.js +16 -0
  206. package/dist/host/local-host.plugin.js.map +1 -0
  207. package/dist/index.d.ts +28 -0
  208. package/dist/index.d.ts.map +1 -0
  209. package/dist/index.js +27 -0
  210. package/dist/index.js.map +1 -0
  211. package/dist/local-project.d.ts +106 -0
  212. package/dist/local-project.d.ts.map +1 -0
  213. package/dist/local-project.js +277 -0
  214. package/dist/local-project.js.map +1 -0
  215. package/dist/manifest-hash.d.ts +12 -0
  216. package/dist/manifest-hash.d.ts.map +1 -0
  217. package/dist/manifest-hash.js +76 -0
  218. package/dist/manifest-hash.js.map +1 -0
  219. package/dist/presentation.d.ts +43 -0
  220. package/dist/presentation.d.ts.map +1 -0
  221. package/dist/presentation.js +36 -0
  222. package/dist/presentation.js.map +1 -0
  223. package/dist/retention.d.ts +34 -0
  224. package/dist/retention.d.ts.map +1 -0
  225. package/dist/retention.js +51 -0
  226. package/dist/retention.js.map +1 -0
  227. package/dist/schemas/applet-messages.d.ts +97 -0
  228. package/dist/schemas/applet-messages.d.ts.map +1 -0
  229. package/dist/schemas/applet-messages.js +51 -0
  230. package/dist/schemas/applet-messages.js.map +1 -0
  231. package/dist/schemas/capabilities.d.ts +37 -0
  232. package/dist/schemas/capabilities.d.ts.map +1 -0
  233. package/dist/schemas/capabilities.js +28 -0
  234. package/dist/schemas/capabilities.js.map +1 -0
  235. package/dist/schemas/component-release-ref.d.ts +13 -0
  236. package/dist/schemas/component-release-ref.d.ts.map +1 -0
  237. package/dist/schemas/component-release-ref.js +21 -0
  238. package/dist/schemas/component-release-ref.js.map +1 -0
  239. package/dist/schemas/contributes.d.ts +306 -0
  240. package/dist/schemas/contributes.d.ts.map +1 -0
  241. package/dist/schemas/contributes.js +184 -0
  242. package/dist/schemas/contributes.js.map +1 -0
  243. package/dist/schemas/definition.d.ts +301 -0
  244. package/dist/schemas/definition.d.ts.map +1 -0
  245. package/dist/schemas/definition.js +457 -0
  246. package/dist/schemas/definition.js.map +1 -0
  247. package/dist/schemas/dispatch.d.ts +52 -0
  248. package/dist/schemas/dispatch.d.ts.map +1 -0
  249. package/dist/schemas/dispatch.js +32 -0
  250. package/dist/schemas/dispatch.js.map +1 -0
  251. package/dist/schemas/grants.d.ts +56 -0
  252. package/dist/schemas/grants.d.ts.map +1 -0
  253. package/dist/schemas/grants.js +64 -0
  254. package/dist/schemas/grants.js.map +1 -0
  255. package/dist/schemas/index.d.ts +16 -0
  256. package/dist/schemas/index.d.ts.map +1 -0
  257. package/dist/schemas/index.js +16 -0
  258. package/dist/schemas/index.js.map +1 -0
  259. package/dist/schemas/instance.d.ts +230 -0
  260. package/dist/schemas/instance.d.ts.map +1 -0
  261. package/dist/schemas/instance.js +44 -0
  262. package/dist/schemas/instance.js.map +1 -0
  263. package/dist/schemas/lineage.d.ts +60 -0
  264. package/dist/schemas/lineage.d.ts.map +1 -0
  265. package/dist/schemas/lineage.js +52 -0
  266. package/dist/schemas/lineage.js.map +1 -0
  267. package/dist/schemas/observation.d.ts +70 -0
  268. package/dist/schemas/observation.d.ts.map +1 -0
  269. package/dist/schemas/observation.js +49 -0
  270. package/dist/schemas/observation.js.map +1 -0
  271. package/dist/schemas/patterns.d.ts +24 -0
  272. package/dist/schemas/patterns.d.ts.map +1 -0
  273. package/dist/schemas/patterns.js +24 -0
  274. package/dist/schemas/patterns.js.map +1 -0
  275. package/dist/schemas/publishing.d.ts +27 -0
  276. package/dist/schemas/publishing.d.ts.map +1 -0
  277. package/dist/schemas/publishing.js +20 -0
  278. package/dist/schemas/publishing.js.map +1 -0
  279. package/dist/schemas/run.d.ts +35 -0
  280. package/dist/schemas/run.d.ts.map +1 -0
  281. package/dist/schemas/run.js +26 -0
  282. package/dist/schemas/run.js.map +1 -0
  283. package/dist/schemas/share-link.d.ts +61 -0
  284. package/dist/schemas/share-link.d.ts.map +1 -0
  285. package/dist/schemas/share-link.js +68 -0
  286. package/dist/schemas/share-link.js.map +1 -0
  287. package/dist/schemas/state-events.d.ts +66 -0
  288. package/dist/schemas/state-events.d.ts.map +1 -0
  289. package/dist/schemas/state-events.js +66 -0
  290. package/dist/schemas/state-events.js.map +1 -0
  291. package/dist/schemas/subscription.d.ts +47 -0
  292. package/dist/schemas/subscription.d.ts.map +1 -0
  293. package/dist/schemas/subscription.js +46 -0
  294. package/dist/schemas/subscription.js.map +1 -0
  295. package/dist/schemas/template-revision.d.ts +53 -0
  296. package/dist/schemas/template-revision.d.ts.map +1 -0
  297. package/dist/schemas/template-revision.js +30 -0
  298. package/dist/schemas/template-revision.js.map +1 -0
  299. package/dist/selection.d.ts +22 -0
  300. package/dist/selection.d.ts.map +1 -0
  301. package/dist/selection.js +21 -0
  302. package/dist/selection.js.map +1 -0
  303. package/dist/storage/index.d.ts +27 -0
  304. package/dist/storage/index.d.ts.map +1 -0
  305. package/dist/storage/index.js +27 -0
  306. package/dist/storage/index.js.map +1 -0
  307. package/dist/storage/records.d.ts +28 -0
  308. package/dist/storage/records.d.ts.map +1 -0
  309. package/dist/storage/records.js +272 -0
  310. package/dist/storage/records.js.map +1 -0
  311. package/dist/svelte/applets-svelte.plugin.d.ts +38 -0
  312. package/dist/svelte/applets-svelte.plugin.d.ts.map +1 -0
  313. package/dist/svelte/applets-svelte.plugin.js +25 -0
  314. package/dist/svelte/components/AppletCanvas.svelte +488 -0
  315. package/dist/svelte/components/AppletCanvas.svelte.d.ts +53 -0
  316. package/dist/svelte/components/AppletCanvas.svelte.d.ts.map +1 -0
  317. package/dist/svelte/components/AppletCatalog.svelte +42 -0
  318. package/dist/svelte/components/AppletCatalog.svelte.d.ts +8 -0
  319. package/dist/svelte/components/AppletCatalog.svelte.d.ts.map +1 -0
  320. package/dist/svelte/components/AppletComposition.svelte +128 -0
  321. package/dist/svelte/components/AppletComposition.svelte.d.ts +30 -0
  322. package/dist/svelte/components/AppletComposition.svelte.d.ts.map +1 -0
  323. package/dist/svelte/components/AppletConsent.svelte +143 -0
  324. package/dist/svelte/components/AppletConsent.svelte.d.ts +12 -0
  325. package/dist/svelte/components/AppletConsent.svelte.d.ts.map +1 -0
  326. package/dist/svelte/components/LocalAppletView.svelte +102 -0
  327. package/dist/svelte/components/LocalAppletView.svelte.d.ts +13 -0
  328. package/dist/svelte/components/LocalAppletView.svelte.d.ts.map +1 -0
  329. package/dist/svelte/components/RunnableTracker.svelte +51 -0
  330. package/dist/svelte/components/RunnableTracker.svelte.d.ts +18 -0
  331. package/dist/svelte/components/RunnableTracker.svelte.d.ts.map +1 -0
  332. package/dist/svelte/index.d.ts +11 -0
  333. package/dist/svelte/index.d.ts.map +1 -0
  334. package/dist/svelte/index.js +10 -0
  335. package/dist/svelte/lib/canvas-lifecycle.d.ts +68 -0
  336. package/dist/svelte/lib/canvas-lifecycle.d.ts.map +1 -0
  337. package/dist/svelte/lib/canvas-lifecycle.js +99 -0
  338. package/dist/svelte/lib/capability-review.d.ts +64 -0
  339. package/dist/svelte/lib/capability-review.d.ts.map +1 -0
  340. package/dist/svelte/lib/capability-review.js +77 -0
  341. package/dist/svelte/lib/message-protocol.d.ts +184 -0
  342. package/dist/svelte/lib/message-protocol.d.ts.map +1 -0
  343. package/dist/svelte/lib/message-protocol.js +251 -0
  344. package/dist/svelte/runnable-source.d.ts +5 -0
  345. package/dist/svelte/runnable-source.d.ts.map +1 -0
  346. package/dist/svelte/runnable-source.js +92 -0
  347. package/dist/svelte/serve-index.svelte +39 -0
  348. package/dist/svelte/serve-index.svelte.d.ts +10 -0
  349. package/dist/svelte/serve-index.svelte.d.ts.map +1 -0
  350. package/dist/svelte/state.svelte.d.ts +26 -0
  351. package/dist/svelte/state.svelte.d.ts.map +1 -0
  352. package/dist/svelte/state.svelte.js +74 -0
  353. package/dist/svelte/styles.css +4 -0
  354. package/dist/svelte/tool-widgets/AppletToolCard.svelte +148 -0
  355. package/dist/svelte/tool-widgets/AppletToolCard.svelte.d.ts +5 -0
  356. package/dist/svelte/tool-widgets/AppletToolCard.svelte.d.ts.map +1 -0
  357. package/dist/svelte/tool-widgets/applet-tool-card.d.ts +41 -0
  358. package/dist/svelte/tool-widgets/applet-tool-card.d.ts.map +1 -0
  359. package/dist/svelte/tool-widgets/applet-tool-card.js +167 -0
  360. package/dist/svelte/tool-widgets/index.d.ts +3 -0
  361. package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
  362. package/dist/svelte/tool-widgets/index.js +2 -0
  363. package/dist/templates/index.d.ts +2 -0
  364. package/dist/templates/index.d.ts.map +1 -0
  365. package/dist/templates/index.js +2 -0
  366. package/dist/templates/index.js.map +1 -0
  367. package/dist/templates/template.kind.d.ts +39 -0
  368. package/dist/templates/template.kind.d.ts.map +1 -0
  369. package/dist/templates/template.kind.js +29 -0
  370. package/dist/templates/template.kind.js.map +1 -0
  371. package/dist/tools/applet.descriptor.d.ts +196 -0
  372. package/dist/tools/applet.descriptor.d.ts.map +1 -0
  373. package/dist/tools/applet.descriptor.js +81 -0
  374. package/dist/tools/applet.descriptor.js.map +1 -0
  375. package/dist/tools/applet.impl.d.ts +32 -0
  376. package/dist/tools/applet.impl.d.ts.map +1 -0
  377. package/dist/tools/applet.impl.js +485 -0
  378. package/dist/tools/applet.impl.js.map +1 -0
  379. package/dist/tools/applet.schemas.d.ts +198 -0
  380. package/dist/tools/applet.schemas.d.ts.map +1 -0
  381. package/dist/tools/applet.schemas.js +136 -0
  382. package/dist/tools/applet.schemas.js.map +1 -0
  383. package/dist/tools/index.d.ts +3 -0
  384. package/dist/tools/index.d.ts.map +1 -0
  385. package/dist/tools/index.js +3 -0
  386. package/dist/tools/index.js.map +1 -0
  387. package/dist/upgrade.d.ts +45 -0
  388. package/dist/upgrade.d.ts.map +1 -0
  389. package/dist/upgrade.js +179 -0
  390. package/dist/upgrade.js.map +1 -0
  391. package/dist/vite.d.ts +26 -0
  392. package/dist/vite.d.ts.map +1 -0
  393. package/dist/vite.js +28 -0
  394. package/dist/vite.js.map +1 -0
  395. package/package.json +264 -4
  396. package/templates/applet-tour/Applet.svelte +95 -0
  397. package/templates/applet-tour/applet.descriptor.ts +15 -0
  398. package/templates/assembly-field/Applet.svelte +242 -0
  399. package/templates/assembly-field/applet.descriptor.ts +7 -0
  400. package/templates/assembly-field/applet.storage.json +47 -0
  401. package/templates/assembly-field/schemas/settings.ts +14 -0
  402. package/templates/assembly-field/settings.ts +32 -0
  403. package/templates/benchmark-comparison/Applet.svelte +17 -0
  404. package/templates/benchmark-comparison/applet.descriptor.ts +7 -0
  405. package/templates/file-diff-viewer/Applet.svelte +91 -0
  406. package/templates/file-diff-viewer/applet.descriptor.ts +14 -0
  407. package/templates/file-diff-viewer/diff.ts +63 -0
  408. package/templates/file-viewer/Applet.svelte +80 -0
  409. package/templates/file-viewer/applet.descriptor.ts +14 -0
  410. package/templates/fleet-runs/Applet.svelte +14 -0
  411. package/templates/fleet-runs/applet.descriptor.ts +7 -0
  412. package/templates/graph-runbook-tracker/Applet.svelte +13 -0
  413. package/templates/graph-runbook-tracker/applet.descriptor.ts +7 -0
  414. package/templates/runbook-tracker/Applet.svelte +12 -0
  415. package/templates/runbook-tracker/applet.descriptor.ts +7 -0
  416. package/templates/runnable-tracker/Applet.svelte +16 -0
  417. package/templates/runnable-tracker/applet.descriptor.ts +10 -0
  418. package/templates/storage-viewer/Applet.svelte +90 -0
  419. package/templates/storage-viewer/applet.descriptor.ts +15 -0
  420. package/templates/workspace-graph-runbook-tracker/Applet.svelte +13 -0
  421. package/templates/workspace-graph-runbook-tracker/applet.descriptor.ts +7 -0
package/dist/vite.js ADDED
@@ -0,0 +1,28 @@
1
+ import { getRuntimePath } from '@vibesdotdev/paths';
2
+ import { APPLET_PROJECT_ROOT } from "./local-project.js";
3
+ /** Normal Vite aliases; the kernel supplies the consumer's actual workspace. */
4
+ export async function createAppletViteConfig(runtime, options) {
5
+ const paths = await getRuntimePath(runtime);
6
+ const workspace = await runtime.context('runtime/workspace-path');
7
+ const projects = paths.join(workspace, APPLET_PROJECT_ROOT);
8
+ const stylesheets = new Set();
9
+ return {
10
+ resolve: { alias: { $applets: projects } },
11
+ define: { __VIBES_APPLET_WORKSPACE_ROOT__: JSON.stringify(workspace) },
12
+ plugins: [{
13
+ name: 'vibes:applet-tailwind-sources',
14
+ enforce: 'pre',
15
+ configResolved(config) {
16
+ for (const file of options.stylesheets)
17
+ stylesheets.add(paths.resolve(config.root, file));
18
+ },
19
+ transform: {
20
+ order: 'pre',
21
+ handler(source, id) {
22
+ return stylesheets.has(id.split('?')[0]) ? `${source}\n@source ${JSON.stringify(projects)};\n` : null;
23
+ }
24
+ }
25
+ }]
26
+ };
27
+ }
28
+ //# sourceMappingURL=vite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.js","sourceRoot":"","sources":["../src/vite.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,gFAAgF;AAChF,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,OAAqB,EAAE,OAA2C;IAC9G,MAAM,KAAK,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,OAAO,CAAS,wBAAwB,CAAC,CAAC;IAC1E,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IACtC,OAAO;QACN,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;QAC1C,MAAM,EAAE,EAAE,+BAA+B,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;QACtE,OAAO,EAAE,CAAC;gBACT,IAAI,EAAE,+BAA+B;gBACrC,OAAO,EAAE,KAAc;gBACvB,cAAc,CAAC,MAAwB;oBACtC,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,WAAW;wBAAE,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC3F,CAAC;gBACD,SAAS,EAAE;oBACV,KAAK,EAAE,KAAc;oBACrB,OAAO,CAAC,MAAc,EAAE,EAAU;wBACjC,OAAO,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,aAAa,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;oBACxG,CAAC;iBACD;aACD,CAAC;KACF,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,266 @@
1
1
  {
2
2
  "name": "@vibesdotdev/applets",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0-rc.3",
4
+ "dependencies": {
5
+ "@vibesdotdev/auth": "^1.0.0-rc.5",
6
+ "@vibesdotdev/filesystem": "^1.0.0-rc.3",
7
+ "@vibesdotdev/infra-core": "^1.0.0-rc.5",
8
+ "@vibesdotdev/logging": "^1.0.0-rc.5",
9
+ "@vibesdotdev/shared": "^1.0.0-rc.4",
10
+ "@vibesdotdev/docs-contracts": "^1.0.0-rc.4",
11
+ "@vibesdotdev/os": "^1.0.0-rc.4",
12
+ "@vibesdotdev/paths": "^1.0.0-rc.3",
13
+ "@vibesdotdev/kernel": "^1.0.0-rc.8",
14
+ "@vibesdotdev/storage": "^1.0.0-rc.5",
15
+ "@vibesdotdev/tools": "^1.0.0-rc.5",
16
+ "zod": "^4.6.7"
17
+ },
18
+ "peerDependencies": {
19
+ "@vibesdotdev/kit": "^1.0.0-rc.0",
20
+ "@vibesdotdev/cli": "^1.0.0-rc.0",
21
+ "svelte": "^5.57.2",
22
+ "@vibesdotdev/kernel-rpc": "^1.0.0-rc.0",
23
+ "@vibesdotdev/runnable": "^1.0.0-rc.0",
24
+ "@vibesdotdev/surface-sveltekit": "^1.0.0-rc.0"
25
+ },
26
+ "main": "./dist/index.js",
27
+ "exports": {
28
+ "./svelte/styles.css": {
29
+ "style": "./dist/svelte/styles.css",
30
+ "bun": "./dist/svelte/styles.css",
31
+ "default": "./dist/svelte/styles.css"
32
+ },
33
+ ".": {
34
+ "bun": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "import": "./dist/index.js",
37
+ "default": "./dist/index.js"
38
+ },
39
+ "./host/local": {
40
+ "bun": "./dist/host/local-host.contract.js",
41
+ "types": "./dist/host/local-host.contract.d.ts",
42
+ "import": "./dist/host/local-host.contract.js",
43
+ "default": "./dist/host/local-host.contract.js"
44
+ },
45
+ "./host/local/plugin": {
46
+ "bun": "./dist/host/local-host.plugin.js",
47
+ "types": "./dist/host/local-host.plugin.d.ts",
48
+ "import": "./dist/host/local-host.plugin.js",
49
+ "default": "./dist/host/local-host.plugin.js"
50
+ },
51
+ "./vite": {
52
+ "types": "./dist/vite.d.ts",
53
+ "node": {
54
+ "bun": "./dist/vite.js",
55
+ "import": "./dist/vite.js",
56
+ "default": "./dist/vite.js"
57
+ }
58
+ },
59
+ "./schemas": {
60
+ "bun": "./dist/schemas/index.js",
61
+ "types": "./dist/schemas/index.d.ts",
62
+ "import": "./dist/schemas/index.js",
63
+ "default": "./dist/schemas/index.js"
64
+ },
65
+ "./client": {
66
+ "bun": "./dist/client/index.js",
67
+ "types": "./dist/client/index.d.ts",
68
+ "import": "./dist/client/index.js",
69
+ "default": "./dist/client/index.js"
70
+ },
71
+ "./storage": {
72
+ "bun": "./dist/storage/index.js",
73
+ "types": "./dist/storage/index.d.ts",
74
+ "import": "./dist/storage/index.js",
75
+ "default": "./dist/storage/index.js"
76
+ },
77
+ "./plugin": {
78
+ "bun": "./dist/applets.plugin.js",
79
+ "types": "./dist/applets.plugin.d.ts",
80
+ "import": "./dist/applets.plugin.js",
81
+ "default": "./dist/applets.plugin.js"
82
+ },
83
+ "./tools": {
84
+ "bun": "./dist/tools/index.js",
85
+ "types": "./dist/tools/index.d.ts",
86
+ "import": "./dist/tools/index.js",
87
+ "default": "./dist/tools/index.js"
88
+ },
89
+ "./tools/applet.impl": {
90
+ "bun": "./dist/tools/applet.impl.js",
91
+ "types": "./dist/tools/applet.impl.d.ts",
92
+ "import": "./dist/tools/applet.impl.js",
93
+ "default": "./dist/tools/applet.impl.js"
94
+ },
95
+ "./component-ref": {
96
+ "bun": "./dist/component-ref.js",
97
+ "types": "./dist/component-ref.d.ts",
98
+ "import": "./dist/component-ref.js",
99
+ "default": "./dist/component-ref.js"
100
+ },
101
+ "./browser-runtime": {
102
+ "bun": "./dist/browser-runtime.js",
103
+ "types": "./dist/browser-runtime.d.ts",
104
+ "import": "./dist/browser-runtime.js",
105
+ "default": "./dist/browser-runtime.js"
106
+ },
107
+ "./cli": {
108
+ "bun": "./dist/cli/index.js",
109
+ "types": "./dist/cli/index.d.ts",
110
+ "import": "./dist/cli/index.js",
111
+ "default": "./dist/cli/index.js"
112
+ },
113
+ "./cli/plugin": {
114
+ "bun": "./dist/cli/plugin.js",
115
+ "types": "./dist/cli/plugin.d.ts",
116
+ "import": "./dist/cli/plugin.js",
117
+ "default": "./dist/cli/plugin.js"
118
+ },
119
+ "./svelte": {
120
+ "bun": "./dist/svelte/index.js",
121
+ "types": "./dist/svelte/index.d.ts",
122
+ "svelte": "./dist/svelte/index.js",
123
+ "import": "./dist/svelte/index.js",
124
+ "default": "./dist/svelte/index.js"
125
+ },
126
+ "./svelte/AppletCanvas.svelte": {
127
+ "bun": "./dist/svelte/components/AppletCanvas.svelte",
128
+ "types": "./dist/svelte/components/AppletCanvas.svelte.d.ts",
129
+ "svelte": "./dist/svelte/components/AppletCanvas.svelte",
130
+ "default": "./dist/svelte/components/AppletCanvas.svelte"
131
+ },
132
+ "./svelte/AppletConsent.svelte": {
133
+ "bun": "./dist/svelte/components/AppletConsent.svelte",
134
+ "types": "./dist/svelte/components/AppletConsent.svelte.d.ts",
135
+ "svelte": "./dist/svelte/components/AppletConsent.svelte",
136
+ "default": "./dist/svelte/components/AppletConsent.svelte"
137
+ },
138
+ "./svelte/state": {
139
+ "bun": "./dist/svelte/state.svelte.js",
140
+ "types": "./dist/svelte/state.svelte.d.ts",
141
+ "import": "./dist/svelte/state.svelte.js",
142
+ "default": "./dist/svelte/state.svelte.js"
143
+ },
144
+ "./svelte/plugin": {
145
+ "bun": "./dist/svelte/applets-svelte.plugin.js",
146
+ "types": "./dist/svelte/applets-svelte.plugin.d.ts",
147
+ "import": "./dist/svelte/applets-svelte.plugin.js",
148
+ "default": "./dist/svelte/applets-svelte.plugin.js"
149
+ },
150
+ "./svelte/tool-widgets": {
151
+ "bun": "./dist/svelte/tool-widgets/index.js",
152
+ "types": "./dist/svelte/tool-widgets/index.d.ts",
153
+ "svelte": "./dist/svelte/tool-widgets/index.js",
154
+ "import": "./dist/svelte/tool-widgets/index.js",
155
+ "default": "./dist/svelte/tool-widgets/index.js"
156
+ },
157
+ "./messages": {
158
+ "types": "./dist/schemas/applet-messages.d.ts",
159
+ "bun": "./dist/schemas/applet-messages.js",
160
+ "import": "./dist/schemas/applet-messages.js",
161
+ "default": "./dist/schemas/applet-messages.js"
162
+ },
163
+ "./consumer.plugin": {
164
+ "bun": "./dist/applets.consumer.plugin.js",
165
+ "types": "./dist/applets.consumer.plugin.d.ts",
166
+ "import": "./dist/applets.consumer.plugin.js",
167
+ "default": "./dist/applets.consumer.plugin.js"
168
+ },
169
+ "./cloud.plugin": {
170
+ "bun": "./dist/applets.cloud.plugin.js",
171
+ "types": "./dist/applets.cloud.plugin.d.ts",
172
+ "import": "./dist/applets.cloud.plugin.js",
173
+ "default": "./dist/applets.cloud.plugin.js"
174
+ },
175
+ "./svelte/runnable": {
176
+ "bun": "./dist/svelte/runnable-source.js",
177
+ "types": "./dist/svelte/runnable-source.d.ts",
178
+ "import": "./dist/svelte/runnable-source.js",
179
+ "default": "./dist/svelte/runnable-source.js"
180
+ },
181
+ "./svelte/RunnableTracker.svelte": {
182
+ "bun": "./dist/svelte/components/RunnableTracker.svelte",
183
+ "types": "./dist/svelte/components/RunnableTracker.svelte.d.ts",
184
+ "svelte": "./dist/svelte/components/RunnableTracker.svelte",
185
+ "default": "./dist/svelte/components/RunnableTracker.svelte"
186
+ }
187
+ },
188
+ "files": [
189
+ "dist",
190
+ "README.md",
191
+ "LICENSE",
192
+ "templates"
193
+ ],
194
+ "scripts": {
195
+ "lint": "node ../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs .",
196
+ "build": "rm -rf dist && ${BUN:-bun} --bun tsc -p tsconfig.build.json && ${BUN:-bun} --bun svelte-package --input ./src/svelte --output ./dist/svelte --tsconfig ./tsconfig.svelte.json",
197
+ "check": "${BUN:-bun} --bun tsc -p tsconfig.json && ${BUN:-bun} --bun svelte-check --tsconfig ./tsconfig.svelte.check.json",
198
+ "test": "bun test"
199
+ },
200
+ "repository": {
201
+ "type": "git",
202
+ "url": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
203
+ "directory": "applets"
204
+ },
205
+ "publishConfig": {
206
+ "registry": "https://packages.vibes.dev",
207
+ "access": "public"
208
+ },
209
+ "vibes": {
210
+ "visibility": "public",
211
+ "registry": {
212
+ "repositoryId": "4b1374d4-6830-4bfd-98e3-de66416368a8",
213
+ "directory": "applets"
214
+ },
215
+ "publishLoadRuntime": "bun",
216
+ "publishProofProfiles": [
217
+ {
218
+ "id": "applets/svelte",
219
+ "requiredOptionalPeers": [
220
+ "@vibesdotdev/kit",
221
+ "@vibesdotdev/runnable",
222
+ "@vibesdotdev/surface-sveltekit",
223
+ "svelte"
224
+ ],
225
+ "importSpecifiers": [
226
+ "@vibesdotdev/applets/svelte"
227
+ ],
228
+ "surfaceProof": "sveltekit"
229
+ }
230
+ ],
231
+ "handedRuntimeLogging": true,
232
+ "featureFamilyProjections": [
233
+ {
234
+ "feature": "applets",
235
+ "role": "svelte",
236
+ "subpath": "svelte"
237
+ }
238
+ ]
239
+ },
240
+ "type": "module",
241
+ "types": "./dist/index.d.ts",
242
+ "license": "MIT",
243
+ "peerDependenciesMeta": {
244
+ "@vibesdotdev/cli": {
245
+ "optional": true
246
+ },
247
+ "@vibesdotdev/kit": {
248
+ "optional": true
249
+ },
250
+ "svelte": {
251
+ "optional": true
252
+ },
253
+ "@vibesdotdev/runnable": {
254
+ "optional": true
255
+ },
256
+ "@vibesdotdev/surface-sveltekit": {
257
+ "optional": true
258
+ }
259
+ },
260
+ "gitHead": "f1ff526c235b10c970497738beb16b0651c428c8",
261
+ "_vibes_source": {
262
+ "repo": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
263
+ "sha": "f1ff526c235b10c970497738beb16b0651c428c8",
264
+ "workspaceDigest": "sha256:1b23730c83b04ff8ccd8eb1edec1442e21e6bb81aa4b77a7cdef529428afad34"
265
+ }
266
+ }
@@ -0,0 +1,95 @@
1
+ <script lang="ts">
2
+ import { onMount } from 'svelte';
3
+
4
+ interface Step { title: string; body: string; url?: string }
5
+ let steps: Step[] = [
6
+ {
7
+ title: 'FileViewer',
8
+ body: 'Tabbed view/edit for handed files. Tabs, line numbers, dirty dots, edit mode. The host hands it {type:"files"} — here it shows its embedded demo. Built from the .vibes/applets/file-viewer template.',
9
+ url: '/applet/file-viewer/'
10
+ },
11
+ {
12
+ title: 'FileDiffViewer',
13
+ body: 'Unified and split diff with +/− stats. The LCS diff core is a self-contained module (diff.ts) — served as a second file, which is why serve transpiles TS sources.',
14
+ url: '/applet/file-diff-viewer/'
15
+ },
16
+ {
17
+ title: 'StorageViewer',
18
+ body: 'Directory tree for drives (consumer or cloud). v1 renders handed trees; the composition edge pins the manifest so a storage-backed host can feed it real browse results.',
19
+ url: '/applet/storage-viewer/'
20
+ },
21
+ {
22
+ title: 'vibes applet serve',
23
+ body: 'The verb that makes all of this local: author in .vibes/applets/{id}/, validate with build, view with serve. 127.0.0.1 only, compile-at-serve, no cloud. PR #119 in framework.'
24
+ },
25
+ {
26
+ title: 'Next: the review loop',
27
+ body: 'These viewers exist to review work with eyes on files — diffs of real changes, docs read head-to-toe. Approval states (pending/approved/discarded) ride the existing schema bones. That is the next build.'
28
+ }
29
+ ];
30
+ let i = 0;
31
+ let done = false;
32
+
33
+ function receive(event: MessageEvent) {
34
+ const data = event.data;
35
+ if (data && data.type === 'tour' && Array.isArray(data.steps)) {
36
+ const valid = data.steps.filter(
37
+ (s): s is Step => typeof s?.title === 'string' && typeof s?.body === 'string'
38
+ );
39
+ if (valid.length > 0) { steps = valid; i = 0; done = false; }
40
+ }
41
+ }
42
+ onMount(() => {
43
+ window.addEventListener('message', receive);
44
+ return () => window.removeEventListener('message', receive);
45
+ });
46
+
47
+ $: step = steps[i];
48
+ function next() { if (i < steps.length - 1) i++; else done = true; }
49
+ function back() { if (i > 0) i--; }
50
+ function restart() { i = 0; done = false; }
51
+ </script>
52
+
53
+ <style>
54
+ :host, .root { display: block; min-height: 100%; font: 14px/1.6 ui-sans-serif, -apple-system, sans-serif; background: #0d1117; color: #e6edf3; }
55
+ .root { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
56
+ .card { max-width: 480px; background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 24px 28px; }
57
+ .kicker { font-size: 11px; letter-spacing: 0.08em; color: #388bfd; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
58
+ h2 { margin: 0 0 10px; font-size: 20px; }
59
+ .body { color: #c9d1d9; margin-bottom: 18px; }
60
+ .url { display: inline-block; margin-bottom: 14px; font: 12px ui-monospace, Menlo, monospace; color: #79c0ff; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; padding: 4px 10px; text-decoration: none; }
61
+ .dots { display: flex; gap: 6px; margin-bottom: 16px; }
62
+ .dot { width: 8px; height: 8px; border-radius: 50%; background: #30363d; cursor: pointer; }
63
+ .dot.on { background: #388bfd; }
64
+ .actions { display: flex; justify-content: space-between; align-items: center; }
65
+ button, .primary { background: #21262d; color: #e6edf3; border: 1px solid #30363d; border-radius: 6px; padding: 6px 14px; cursor: pointer; font: inherit; }
66
+ .primary { background: #1f6feb; border-color: #1f6feb; }
67
+ button:disabled { opacity: 0.4; cursor: default; }
68
+ .final { text-align: center; }
69
+ .final .big { font-size: 28px; margin-bottom: 8px; }
70
+ </style>
71
+
72
+ <div class="root">
73
+ {#if done}
74
+ <div class="card final">
75
+ <div class="big">✓</div>
76
+ <h2>Tour complete</h2>
77
+ <p class="body">{steps.length} steps · the whole suite ran on your hardware.</p>
78
+ <button class="primary" onclick={restart}>Restart</button>
79
+ </div>
80
+ {:else if step}
81
+ <div class="card">
82
+ <div class="kicker">Step {i + 1} of {steps.length}</div>
83
+ <h2>{step.title}</h2>
84
+ {#if step.url}<a class="url" href={step.url} target="_blank" rel="noopener">{step.url} ↗</a>{/if}
85
+ <p class="body">{step.body}</p>
86
+ <div class="dots">
87
+ {#each steps as _, n (n)}<div class="dot" class:on={n === i} onclick={() => (i = n)}></div>{/each}
88
+ </div>
89
+ <div class="actions">
90
+ <button onclick={back} disabled={i === 0}>Back</button>
91
+ <button class="primary" onclick={next}>{i === steps.length - 1 ? 'Finish' : 'Next'}</button>
92
+ </div>
93
+ </div>
94
+ {/if}
95
+ </div>
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Tour applet — authoring descriptor (not published).
3
+ *
4
+ * Template #4 of the 2026-08-23 applet effort. Walks a viewer through the
5
+ * local applet suite: steps reference the served applets (127.0.0.1 ports),
6
+ * each step can open its target. Receives {type:'tour', steps} to override
7
+ * the built-in default tour.
8
+ */
9
+ export default {
10
+ id: 'applet-tour',
11
+ title: 'Applet Tour',
12
+ description: 'Guided walkthrough of the local applet suite.',
13
+ entry: 'Applet.svelte',
14
+ contributes: {}
15
+ };
@@ -0,0 +1,242 @@
1
+ <script lang="ts">
2
+ // The webgl subpath, not the /svelte barrel: the barrel re-exports
3
+ // SvelteKit-bound components ($app/*), which cannot load outside SvelteKit.
4
+ import { AssemblyField, type TargetId } from '@vibesdotdev/kit/components/webgl';
5
+ import { onMount } from 'svelte';
6
+
7
+ import type { AppletSvelteRuntimeProps } from '@vibesdotdev/applets/browser-runtime';
8
+ import { settingsSchema, type Settings } from './schemas/settings.ts';
9
+ import { createAssemblySettings } from './settings.ts';
10
+
11
+ let { vibes }: AppletSvelteRuntimeProps = $props();
12
+
13
+ const all: TargetId[] = ['flower', 'logo', 'temple', 'rose', 'mindmap'];
14
+ const labels = {
15
+ flower: 'Flower of life',
16
+ logo: 'The mark',
17
+ temple: 'Temple',
18
+ rose: 'Rose',
19
+ mindmap: 'Mind map'
20
+ } as const satisfies Record<TargetId, string>;
21
+
22
+ let settings = $state(settingsSchema.parse({}));
23
+ let hydrated = $state(false);
24
+ let failure = $state<string | null>(null);
25
+ let editor: ReturnType<typeof createAssemblySettings> | undefined;
26
+
27
+ function showFailure(cause: Error) {
28
+ failure = cause.message;
29
+ throw cause;
30
+ }
31
+
32
+ onMount(() => {
33
+ editor = createAssemblySettings(vibes, value => { settings = value; });
34
+ void editor.ready.then(() => { hydrated = true; }, showFailure);
35
+ });
36
+
37
+ function change(patch: Partial<Settings>) {
38
+ void editor?.update(patch).catch(showFailure);
39
+ }
40
+
41
+ let current = $state<TargetId>('flower');
42
+ let generation = $state(0);
43
+ let field = $state<{ show: (id: TargetId) => void } | null>(null);
44
+ let stage = $state<HTMLDivElement | null>(null);
45
+
46
+ function rebuild() {
47
+ generation += 1;
48
+ }
49
+
50
+ function reset() {
51
+ void editor?.reset().then(rebuild, showFailure);
52
+ }
53
+
54
+ /** Save the current frame as a PNG. The GL canvas keeps no back buffer, so
55
+ * the capture happens right after a fresh frame is drawn. */
56
+ function saveFrame() {
57
+ const canvas = stage?.querySelector('canvas');
58
+ if (!canvas) return;
59
+ requestAnimationFrame(() => {
60
+ canvas.toBlob((blob) => {
61
+ if (!blob) return;
62
+ const url = URL.createObjectURL(blob);
63
+ const a = document.createElement('a');
64
+ a.href = url;
65
+ a.download = `assembly-field-${current}-${Date.now()}.png`;
66
+ a.click();
67
+ setTimeout(() => URL.revokeObjectURL(url), 1000);
68
+ }, 'image/png');
69
+ });
70
+ }
71
+ </script>
72
+
73
+ <!-- The stage is the brand's dark world regardless of the host theme; the
74
+ kit's `.dark` tokens give the field its luminous signal colour. -->
75
+ <div class="stage dark" bind:this={stage}>
76
+ {#if hydrated}
77
+ {#key generation}
78
+ <AssemblyField
79
+ bind:this={field}
80
+ targets={all}
81
+ count={settings.count}
82
+ hold={settings.hold}
83
+ morph={settings.morph}
84
+ autoRotate={settings.autoRotate}
85
+ pointSize={settings.pointSize}
86
+ sweep={settings.sweep}
87
+ interactive={settings.interactive}
88
+ onTarget={(id) => (current = id)}
89
+ />
90
+ {/key}
91
+ {/if}
92
+
93
+ {#if settings.headline}
94
+ <div class="headline" aria-hidden="true">
95
+ <h1>It assembles. <em>You decide.</em></h1>
96
+ </div>
97
+ {/if}
98
+
99
+ <aside class="panel">
100
+ <p class="eyebrow">Assembly field · {labels[current]}</p>
101
+ <div class="row targets">
102
+ {#each all as id}
103
+ <button type="button" class:active={current === id} onclick={() => field?.show(id)}>{labels[id]}</button>
104
+ {/each}
105
+ </div>
106
+ <label>Points <span>{settings.count.toLocaleString()}</span><input type="range" min="4000" max="120000" step="2000" disabled={!hydrated} bind:value={() => settings.count, value => change({ count: value })} onchange={rebuild} /></label>
107
+ <label>Assembly <span>{settings.morph}s</span><input type="range" min="2" max="20" step="1" disabled={!hydrated} bind:value={() => settings.morph, value => change({ morph: value })} onchange={rebuild} /></label>
108
+ <label>Hold <span>{settings.hold}s</span><input type="range" min="3" max="40" step="1" disabled={!hydrated} bind:value={() => settings.hold, value => change({ hold: value })} onchange={rebuild} /></label>
109
+ <label>Orbit <span>{settings.autoRotate.toFixed(2)}</span><input type="range" min="0" max="0.4" step="0.01" disabled={!hydrated} bind:value={() => settings.autoRotate, value => change({ autoRotate: value })} onchange={rebuild} /></label>
110
+ <label>Point size <span>{settings.pointSize.toFixed(1)}</span><input type="range" min="1" max="4" step="0.1" disabled={!hydrated} bind:value={() => settings.pointSize, value => change({ pointSize: value })} onchange={rebuild} /></label>
111
+ <div class="row">
112
+ <label class="check"><input type="checkbox" disabled={!hydrated} bind:checked={() => settings.sweep, value => change({ sweep: value })} onchange={rebuild} /> Scan sweep</label>
113
+ <label class="check"><input type="checkbox" disabled={!hydrated} bind:checked={() => settings.interactive, value => change({ interactive: value })} onchange={rebuild} /> Pointer &amp; drag</label>
114
+ <label class="check"><input type="checkbox" disabled={!hydrated} bind:checked={() => settings.headline, value => change({ headline: value })} /> Headline</label>
115
+ </div>
116
+ <div class="row actions">
117
+ <button type="button" onclick={saveFrame}>Save frame</button>
118
+ <button type="button" disabled={!hydrated} onclick={reset}>Reset</button>
119
+ </div>
120
+ {#if failure}<p role="alert">{failure}</p>{/if}
121
+ {#if !hydrated && !failure}<p role="status">Loading settings…</p>{/if}
122
+ <p class="hint">Drag to orbit. Move the pointer to push the parts. Settings are saved through this applet. Reduced motion holds the assembled state.</p>
123
+ </aside>
124
+ </div>
125
+
126
+ <style>
127
+ .stage {
128
+ position: relative;
129
+ width: 100%;
130
+ min-height: 100vh;
131
+ background: #07110d;
132
+ color: #f2f5f0;
133
+ overflow: hidden;
134
+ font-family:
135
+ 'Figtree',
136
+ ui-sans-serif,
137
+ system-ui,
138
+ sans-serif;
139
+ }
140
+ .headline {
141
+ position: absolute;
142
+ left: 0;
143
+ right: 0;
144
+ top: 16%;
145
+ text-align: center;
146
+ pointer-events: none;
147
+ }
148
+ .headline h1 {
149
+ margin: 0;
150
+ font:
151
+ 400 clamp(40px, 7vw, 92px) / 1 'EB Garamond',
152
+ Garamond,
153
+ Georgia,
154
+ serif;
155
+ letter-spacing: -0.01em;
156
+ }
157
+ .headline em {
158
+ font-style: italic;
159
+ color: #5ee8a1;
160
+ }
161
+ .panel {
162
+ position: absolute;
163
+ left: 16px;
164
+ bottom: 16px;
165
+ width: min(340px, calc(100% - 32px));
166
+ padding: 14px 16px 12px;
167
+ border: 1px solid #1f2e27;
168
+ border-radius: 12px;
169
+ background: rgba(14, 26, 21, 0.72);
170
+ backdrop-filter: blur(10px);
171
+ display: grid;
172
+ gap: 8px;
173
+ font-size: 12px;
174
+ }
175
+ .eyebrow {
176
+ margin: 0 0 2px;
177
+ font-family: ui-monospace, Menlo, monospace;
178
+ font-size: 10px;
179
+ letter-spacing: 0.16em;
180
+ text-transform: uppercase;
181
+ color: #5ee8a1;
182
+ }
183
+ .row {
184
+ display: flex;
185
+ flex-wrap: wrap;
186
+ gap: 6px;
187
+ }
188
+ .targets button {
189
+ appearance: none;
190
+ border: 1px solid #1f2e27;
191
+ background: transparent;
192
+ color: #a3b5aa;
193
+ border-radius: 999px;
194
+ padding: 4px 10px;
195
+ font: inherit;
196
+ cursor: pointer;
197
+ }
198
+ .targets button.active {
199
+ border-color: #5ee8a1;
200
+ color: #5ee8a1;
201
+ }
202
+ .targets button:focus-visible,
203
+ .actions button:focus-visible {
204
+ outline: 2px solid #b9915a;
205
+ outline-offset: 2px;
206
+ }
207
+ .actions button {
208
+ appearance: none;
209
+ border: 1px solid #1f2e27;
210
+ background: rgba(94, 232, 161, 0.08);
211
+ color: #f2f5f0;
212
+ border-radius: 6px;
213
+ padding: 5px 10px;
214
+ font: inherit;
215
+ cursor: pointer;
216
+ }
217
+ label {
218
+ display: grid;
219
+ grid-template-columns: 1fr auto;
220
+ gap: 2px 8px;
221
+ color: #a3b5aa;
222
+ }
223
+ label span {
224
+ font-family: ui-monospace, Menlo, monospace;
225
+ color: #f2f5f0;
226
+ }
227
+ label input[type='range'] {
228
+ grid-column: 1 / -1;
229
+ width: 100%;
230
+ accent-color: #5ee8a1;
231
+ }
232
+ label.check {
233
+ display: inline-flex;
234
+ align-items: center;
235
+ gap: 6px;
236
+ accent-color: #5ee8a1;
237
+ }
238
+ .hint {
239
+ margin: 2px 0 0;
240
+ color: #6f8478;
241
+ }
242
+ </style>
@@ -0,0 +1,7 @@
1
+ export default {
2
+ id: 'assembly-field',
3
+ title: 'Assembly Field',
4
+ description: 'A WebGL point cloud that assembles the flower of life, the mark, a temple, a figure, and a mind map — the brand motif, with controls to iterate on it.',
5
+ entry: 'Applet.svelte',
6
+ contributes: {}
7
+ };