@vibes.diy/prompts 14.3.249 → 14.3.251

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 (137) hide show
  1. package/generation-variety.js +1 -1
  2. package/index.d.ts +1 -1
  3. package/index.js +1 -1
  4. package/index.js.map +1 -1
  5. package/llms/backend.js +1 -0
  6. package/llms/backend.js.map +1 -1
  7. package/llms/blockly.js +1 -0
  8. package/llms/blockly.js.map +1 -1
  9. package/llms/blockly.md +2 -3
  10. package/llms/bluesky.js +2 -0
  11. package/llms/bluesky.js.map +1 -1
  12. package/llms/board-games.js +9 -4
  13. package/llms/board-games.js.map +1 -1
  14. package/llms/board-games.md +3 -153
  15. package/llms/callai.js +1 -0
  16. package/llms/callai.js.map +1 -1
  17. package/llms/callai.md +1 -1
  18. package/llms/canvas-theme-colors.d.ts +2 -0
  19. package/llms/canvas-theme-colors.js +7 -0
  20. package/llms/canvas-theme-colors.js.map +1 -0
  21. package/llms/canvas-theme-colors.md +70 -0
  22. package/llms/image-gen.js +1 -0
  23. package/llms/image-gen.js.map +1 -1
  24. package/llms/image-gen.md +1 -1
  25. package/llms/index.d.ts +24 -2
  26. package/llms/index.js +64 -0
  27. package/llms/index.js.map +1 -1
  28. package/llms/keepsake.d.ts +2 -0
  29. package/llms/keepsake.js +9 -0
  30. package/llms/keepsake.js.map +1 -0
  31. package/llms/keepsake.md +74 -0
  32. package/llms/live-rooms.d.ts +2 -0
  33. package/llms/live-rooms.js +28 -0
  34. package/llms/live-rooms.js.map +1 -0
  35. package/llms/live-rooms.md +288 -0
  36. package/llms/media-capture.d.ts +2 -0
  37. package/llms/media-capture.js +27 -0
  38. package/llms/media-capture.js.map +1 -0
  39. package/llms/media-capture.md +190 -0
  40. package/llms/mic-capture.d.ts +2 -0
  41. package/llms/mic-capture.js +7 -0
  42. package/llms/mic-capture.js.map +1 -0
  43. package/llms/mic-capture.md +76 -0
  44. package/llms/needs.d.ts +12 -0
  45. package/llms/needs.js +71 -0
  46. package/llms/needs.js.map +1 -0
  47. package/llms/owner-secret.d.ts +2 -0
  48. package/llms/owner-secret.js +8 -0
  49. package/llms/owner-secret.js.map +1 -0
  50. package/llms/owner-secret.md +82 -0
  51. package/llms/p5.js +1 -0
  52. package/llms/p5.js.map +1 -1
  53. package/llms/p5.md +15 -69
  54. package/llms/photo-input.d.ts +2 -0
  55. package/llms/photo-input.js +7 -0
  56. package/llms/photo-input.js.map +1 -0
  57. package/llms/photo-input.md +141 -0
  58. package/llms/physics.js +1 -0
  59. package/llms/physics.js.map +1 -1
  60. package/llms/physics.md +7 -16
  61. package/llms/reskin.js +3 -8
  62. package/llms/reskin.js.map +1 -1
  63. package/llms/reskin.md +12 -78
  64. package/llms/richtext.md +2 -0
  65. package/llms/social-post.js +1 -0
  66. package/llms/social-post.js.map +1 -1
  67. package/llms/social-post.md +22 -4
  68. package/llms/sound-core.d.ts +2 -0
  69. package/llms/sound-core.js +7 -0
  70. package/llms/sound-core.js.map +1 -0
  71. package/llms/sound-core.md +131 -0
  72. package/llms/spotify.js +11 -1
  73. package/llms/spotify.js.map +1 -1
  74. package/llms/spotify.md +54 -50
  75. package/llms/strudel.js +2 -0
  76. package/llms/strudel.js.map +1 -1
  77. package/llms/strudel.md +24 -25
  78. package/llms/surface-board.d.ts +2 -0
  79. package/llms/surface-board.js +8 -0
  80. package/llms/surface-board.js.map +1 -0
  81. package/llms/surface-board.md +140 -0
  82. package/llms/surface-play-area.d.ts +2 -0
  83. package/llms/surface-play-area.js +8 -0
  84. package/llms/surface-play-area.js.map +1 -0
  85. package/llms/surface-play-area.md +51 -0
  86. package/llms/surface-presence.d.ts +2 -0
  87. package/llms/surface-presence.js +9 -0
  88. package/llms/surface-presence.js.map +1 -0
  89. package/llms/surface-presence.md +118 -0
  90. package/llms/third-party-embed.d.ts +2 -0
  91. package/llms/third-party-embed.js +8 -0
  92. package/llms/third-party-embed.js.map +1 -0
  93. package/llms/third-party-embed.md +110 -0
  94. package/llms/three-js.js +1 -1
  95. package/llms/three-js.js.map +1 -1
  96. package/llms/three-js.md +52 -18
  97. package/llms/touch-games.js +11 -11
  98. package/llms/touch-games.js.map +1 -1
  99. package/llms/touch-games.md +59 -354
  100. package/llms/types.d.ts +14 -0
  101. package/llms/ui-chat.js +2 -1
  102. package/llms/ui-chat.js.map +1 -1
  103. package/llms/ui-chat.md +25 -14
  104. package/llms/ui-weather.js +1 -1
  105. package/llms/ui-weather.js.map +1 -1
  106. package/llms/ui-weather.md +1 -2
  107. package/llms/use-vibe.js +1 -0
  108. package/llms/use-vibe.js.map +1 -1
  109. package/llms/use-viewer.js +1 -0
  110. package/llms/use-viewer.js.map +1 -1
  111. package/llms/voxel.js +1 -0
  112. package/llms/voxel.js.map +1 -1
  113. package/llms/voxel.md +33 -109
  114. package/llms/weather.d.ts +2 -0
  115. package/llms/weather.js +12 -0
  116. package/llms/weather.js.map +1 -0
  117. package/llms/weather.md +248 -0
  118. package/llms/web-audio.js +4 -21
  119. package/llms/web-audio.js.map +1 -1
  120. package/llms/web-audio.md +19 -951
  121. package/llms/web-music.d.ts +2 -0
  122. package/llms/web-music.js +8 -0
  123. package/llms/web-music.js.map +1 -0
  124. package/llms/web-music.md +895 -0
  125. package/llms/world-controls.d.ts +2 -0
  126. package/llms/world-controls.js +14 -0
  127. package/llms/world-controls.js.map +1 -0
  128. package/llms/world-controls.md +262 -0
  129. package/llms/worlds.js +2 -1
  130. package/llms/worlds.js.map +1 -1
  131. package/llms/worlds.md +5 -14
  132. package/llms/youtube.js +10 -1
  133. package/llms/youtube.js.map +1 -1
  134. package/llms/youtube.md +67 -53
  135. package/package.json +5 -5
  136. package/prompts.js +5 -19
  137. package/prompts.js.map +1 -1
package/llms/index.js CHANGED
@@ -2,11 +2,26 @@ import { backendConfig } from "./backend.js";
2
2
  import { mapsConfig } from "./maps.js";
3
3
  import { calendarConfig } from "./calendar.js";
4
4
  import { boardGamesConfig } from "./board-games.js";
5
+ import { surfaceBoardConfig } from "./surface-board.js";
6
+ import { ownerSecretConfig } from "./owner-secret.js";
7
+ import { thirdPartyEmbedConfig } from "./third-party-embed.js";
8
+ import { weatherConfig } from "./weather.js";
9
+ import { keepsakeConfig } from "./keepsake.js";
5
10
  import { callaiConfig } from "./callai.js";
6
11
  import { fireproofConfig } from "./fireproof.js";
7
12
  import { imageGenConfig } from "./image-gen.js";
13
+ import { soundCoreConfig } from "./sound-core.js";
14
+ import { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
15
+ import { surfacePlayAreaConfig } from "./surface-play-area.js";
16
+ import { worldControlsConfig } from "./world-controls.js";
17
+ import { micCaptureConfig } from "./mic-capture.js";
18
+ import { photoInputConfig } from "./photo-input.js";
19
+ import { mediaCaptureConfig } from "./media-capture.js";
8
20
  import { webAudioConfig } from "./web-audio.js";
21
+ import { webMusicConfig } from "./web-music.js";
9
22
  import { d3Config } from "./d3.js";
23
+ import { surfacePresenceConfig } from "./surface-presence.js";
24
+ import { liveRoomsConfig } from "./live-rooms.js";
10
25
  import { threeJsConfig } from "./three-js.js";
11
26
  import { p5Config } from "./p5.js";
12
27
  import { voxelConfig } from "./voxel.js";
@@ -63,11 +78,26 @@ import { uiTestimonialsConfig } from "./ui-testimonials.js";
63
78
  export { backendConfig } from "./backend.js";
64
79
  export { calendarConfig } from "./calendar.js";
65
80
  export { boardGamesConfig } from "./board-games.js";
81
+ export { surfaceBoardConfig } from "./surface-board.js";
82
+ export { ownerSecretConfig } from "./owner-secret.js";
83
+ export { thirdPartyEmbedConfig } from "./third-party-embed.js";
84
+ export { weatherConfig } from "./weather.js";
85
+ export { keepsakeConfig } from "./keepsake.js";
66
86
  export { callaiConfig } from "./callai.js";
67
87
  export { fireproofConfig } from "./fireproof.js";
68
88
  export { imageGenConfig } from "./image-gen.js";
89
+ export { soundCoreConfig } from "./sound-core.js";
90
+ export { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
91
+ export { surfacePlayAreaConfig } from "./surface-play-area.js";
92
+ export { worldControlsConfig } from "./world-controls.js";
93
+ export { micCaptureConfig } from "./mic-capture.js";
94
+ export { photoInputConfig } from "./photo-input.js";
95
+ export { mediaCaptureConfig } from "./media-capture.js";
69
96
  export { webAudioConfig } from "./web-audio.js";
97
+ export { webMusicConfig } from "./web-music.js";
70
98
  export { d3Config } from "./d3.js";
99
+ export { surfacePresenceConfig } from "./surface-presence.js";
100
+ export { liveRoomsConfig } from "./live-rooms.js";
71
101
  export { threeJsConfig } from "./three-js.js";
72
102
  export { p5Config } from "./p5.js";
73
103
  export { voxelConfig } from "./voxel.js";
@@ -122,11 +152,22 @@ export { uiLandingConfig } from "./ui-landing.js";
122
152
  export { uiCalendarConfig } from "./ui-calendar.js";
123
153
  export { uiTestimonialsConfig } from "./ui-testimonials.js";
124
154
  export { cueMatches, cueMatchedSkills } from "./cues.js";
155
+ export { expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames } from "./needs.js";
125
156
  export const allConfigs = [
126
157
  callaiConfig,
127
158
  imageGenConfig,
159
+ soundCoreConfig,
160
+ micCaptureConfig,
161
+ photoInputConfig,
128
162
  webAudioConfig,
163
+ webMusicConfig,
164
+ mediaCaptureConfig,
129
165
  d3Config,
166
+ canvasThemeColorsConfig,
167
+ surfacePlayAreaConfig,
168
+ worldControlsConfig,
169
+ surfacePresenceConfig,
170
+ liveRoomsConfig,
130
171
  voxelConfig,
131
172
  threeJsConfig,
132
173
  p5Config,
@@ -139,14 +180,18 @@ export const allConfigs = [
139
180
  backendConfig,
140
181
  mapsConfig,
141
182
  calendarConfig,
183
+ surfaceBoardConfig,
142
184
  boardGamesConfig,
143
185
  accessConfig,
144
186
  connectionsConfig,
145
187
  socialPostConfig,
146
188
  githubConfig,
189
+ ownerSecretConfig,
190
+ thirdPartyEmbedConfig,
147
191
  youtubeConfig,
148
192
  blueskyConfig,
149
193
  spotifyConfig,
194
+ weatherConfig,
150
195
  stripeConfig,
151
196
  stripeSubscriptionsConfig,
152
197
  blocklyConfig,
@@ -157,6 +202,7 @@ export const allConfigs = [
157
202
  richtextConfig,
158
203
  reskinConfig,
159
204
  matchStyleConfig,
205
+ keepsakeConfig,
160
206
  uiTodoConfig,
161
207
  uiFeedConfig,
162
208
  uiChatConfig,
@@ -191,4 +237,22 @@ export const SKILL_ALIASES = new Map(allConfigs.flatMap((c) => (c.aliases ?? [])
191
237
  export function canonicalSkillName(name) {
192
238
  return SKILL_ALIASES.get(name) ?? name;
193
239
  }
240
+ export const SKILL_CATALOG_EPOCH = 1;
241
+ export const SKILL_SPLITS = new Map([
242
+ ["web-audio", { into: ["web-audio", "web-music"], epoch: 1 }],
243
+ ["touch-games", { into: ["touch-games", "world-controls"], epoch: 1 }],
244
+ ["reskin", { into: ["reskin", "keepsake"], epoch: 1 }],
245
+ ]);
246
+ export function storedSkillNames(names, catalog) {
247
+ const out = [];
248
+ for (const name of names) {
249
+ const canonical = canonicalSkillName(name);
250
+ const split = SKILL_SPLITS.get(canonical);
251
+ const into = split !== undefined && (catalog === undefined || catalog < split.epoch) ? split.into : [canonical];
252
+ for (const n of into)
253
+ if (out.includes(n) === false)
254
+ out.push(n);
255
+ }
256
+ return out;
257
+ }
194
258
  //# sourceMappingURL=index.js.map
package/llms/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../jsr/llms/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AA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;QAC1C,MAAM,IAAI,GAAG,KAAK,KAAK,SAAS,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAChH,KAAK,MAAM,CAAC,IAAI,IAAI;YAAE,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,KAAK;gBAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { LlmConfig } from "./types.js";
2
+ export declare const keepsakeConfig: LlmConfig;
@@ -0,0 +1,9 @@
1
+ export const keepsakeConfig = {
2
+ name: "keepsake",
3
+ label: "Keepsake",
4
+ description: "A thing people print, share or hand out — a ticket, invitation, menu, poster, certificate or place card: one framed artifact drawn by the skin in a fixed shape, with the look's components as its editing controls beside it, and a print style that prints only the artifact",
5
+ cues: ["printable", "to print", "print out", "invitation card", "a poster", "certificate", "place card"],
6
+ needs: ["reskin"],
7
+ rail: "reskin",
8
+ };
9
+ //# sourceMappingURL=keepsake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keepsake.js","sourceRoot":"","sources":["../../jsr/llms/keepsake.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,gRAAgR;IAClR,IAAI,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,CAAC;IACxG,KAAK,EAAE,CAAC,QAAQ,CAAC;IACjB,IAAI,EAAE,QAAQ;CACf,CAAC"}
@@ -0,0 +1,74 @@
1
+ # Keepsake — the thing they print, share or hand out
2
+
3
+ A keepsake is drawn with the reskin technique: one `data-reskin` wrapper re-scoping the look's
4
+ tokens and one `SKIN` string rendered as its first child. The reskin doc loads with this one.
5
+
6
+ Tickets, invitations, menus, posters, certificates, place cards, a recipe
7
+ card: the designed object is the point, and a page of `Card`s and `RowCard`s
8
+ around it makes it look like an admin screen. Build one framed artifact and
9
+ let the components edit it.
10
+
11
+ - **The keepsake is plain elements styled by the skin.** One `.keepsake`
12
+ element with a fixed shape (`aspect-ratio: 5 / 7` for a card, `2 / 1` for a
13
+ ticket, `1 / 1.414` for an A-size poster) holds the words as `div`s and
14
+ `span`s with the app's own classes (`.keepsake-title`, `.keepsake-meta`), set
15
+ in the display face, with the border, ornament, paper and stamp drawn in the
16
+ `SKIN` string. It is never a `Card`, and its words are never `Heading`s:
17
+ the hook classes belong to the screen, the keepsake has its own.
18
+ - **The components are the editing controls around it.** `Field` and `Input`
19
+ for the words, `Segmented` for a variant (theme, size), `Button` for Print
20
+ and Share. On a wide screen they sit beside the keepsake; on a phone the
21
+ keepsake comes first and the controls follow, so the first frame is the
22
+ thing itself, filled with a believable example rather than blanks.
23
+ - **Print shows only the keepsake.** A `@media print` block in the skin hides
24
+ everything else and sets `@page` to the keepsake's size; the Print button
25
+ calls `window.print()`.
26
+ - **Its colours come from the wrapper's tokens**, so the Look tab and a later
27
+ reskin restyle the keepsake along with the controls.
28
+
29
+ ```jsx
30
+ import React, { useState } from "react";
31
+ import { Button, Field, Input, Stack } from "@vibes.diy/ui";
32
+
33
+ const SKIN = `
34
+ @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,600;1,400&display=swap');
35
+ [data-reskin] .studio { display: grid; gap: 24px; padding: 16px; grid-template-columns: 1fr; }
36
+ @media (min-width: 48rem) { [data-reskin] .studio { grid-template-columns: 22rem 1fr; align-items: start; } [data-reskin] .studio > .keepsake { order: 2; } }
37
+ [data-reskin] .keepsake { aspect-ratio: 5 / 7; width: min(100%, 26rem); margin-inline: auto; padding: 12%; display: grid; place-content: center; gap: 14px;
38
+ text-align: center; background: var(--surface); color: var(--ink); outline: 1px solid var(--ink); outline-offset: -14px;
39
+ box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 18%, transparent); font-family: 'Fraunces', serif; }
40
+ [data-reskin] .keepsake-eyebrow { font-style: italic; color: var(--text-secondary); }
41
+ [data-reskin] .keepsake-title { font-size: clamp(28px, 7vw, 44px); font-weight: 600; line-height: 1.05; }
42
+ [data-reskin] .keepsake-rule { width: 40%; height: 1px; margin-inline: auto; background: var(--purple); }
43
+ @media print {
44
+ @page { size: 5in 7in; margin: 0; }
45
+ body:has([data-reskin]) * { visibility: hidden; }
46
+ [data-reskin] .keepsake, [data-reskin] .keepsake * { visibility: visible; }
47
+ [data-reskin] .keepsake { position: fixed; inset: 0; width: 100%; box-shadow: none; }
48
+ }
49
+ `;
50
+
51
+ export default function App() {
52
+ const [title, setTitle] = useState("Maya turns thirty");
53
+ const [when, setWhen] = useState("Saturday 14 June · 7pm · The Rooftop");
54
+
55
+ return (
56
+ <div data-reskin>
57
+ <style>{SKIN}</style>
58
+ <div className="studio">
59
+ <div className="keepsake">
60
+ <span className="keepsake-eyebrow">You are invited</span>
61
+ <span className="keepsake-title">{title}</span>
62
+ <span className="keepsake-rule" />
63
+ <span>{when}</span>
64
+ </div>
65
+ <Stack gap={3}>
66
+ <Field label="Headline">{(id, d) => <Input id={id} describedBy={d} value={title} onChange={setTitle} />}</Field>
67
+ <Field label="When and where">{(id, d) => <Input id={id} describedBy={d} value={when} onChange={setWhen} />}</Field>
68
+ <Button onClick={() => window.print()}>Print the invitation</Button>
69
+ </Stack>
70
+ </div>
71
+ </div>
72
+ );
73
+ }
74
+ ```
@@ -0,0 +1,2 @@
1
+ import type { LlmConfig } from "./types.js";
2
+ export declare const liveRoomsConfig: LlmConfig;
@@ -0,0 +1,28 @@
1
+ export const liveRoomsConfig = {
2
+ name: "live-rooms",
3
+ label: "Live rooms",
4
+ description: "A room people are in at the same time, for any app whose point is being there together and that no game, " +
5
+ "world or chat skill covers: a watch party, a standup, a shared timer or countdown, a hangout, a live poll, a " +
6
+ "room friends join from a link. Covers the room id in the URL (#room=), the invite link, presence as a " +
7
+ "never-saved draft with a heartbeat and expiry, who is here with avatar faces and an 'N here' count, other " +
8
+ "people's cursors, optimistic local-first writes, seats and turns with a shared turn clock. A block world, a " +
9
+ "board or card game, or a group chat names its own skill, which loads this one.",
10
+ teaches: ["presence draft", "turn clock"],
11
+ cues: [
12
+ "who's here",
13
+ "who is here",
14
+ "who's online",
15
+ "see who's online",
16
+ "multiplayer",
17
+ "join my room",
18
+ "join the room",
19
+ "room code",
20
+ "invite link",
21
+ "watch party",
22
+ "live cursors",
23
+ "play with friends",
24
+ "play online",
25
+ ],
26
+ needs: ["surface-presence"],
27
+ };
28
+ //# sourceMappingURL=live-rooms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-rooms.js","sourceRoot":"","sources":["../../jsr/llms/live-rooms.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,eAAe,GAAc;IACxC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,2GAA2G;QAC3G,+GAA+G;QAC/G,wGAAwG;QACxG,4GAA4G;QAC5G,8GAA8G;QAC9G,gFAAgF;IAGlF,OAAO,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;IAGzC,IAAI,EAAE;QACJ,YAAY;QACZ,aAAa;QACb,cAAc;QACd,kBAAkB;QAClB,aAAa;QACb,cAAc;QACd,eAAe;QACf,WAAW;QACX,aAAa;QACb,aAAa;QACb,cAAc;QACd,mBAAmB;QACnB,aAAa;KACd;IACD,KAAK,EAAE,CAAC,kBAAkB,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,288 @@
1
+ # Live rooms — a place people are in at the same time
2
+
3
+ A room is a place several people are in at once: a game table, a shared build,
4
+ a chat thread, a watch party, a standup. Every room has the same four parts,
5
+ and each part has one home:
6
+
7
+ 1. **The room is in the URL.** `#room=<id>` names it, so the link someone copies
8
+ from the address bar is the invitation, and opening it is joining.
9
+ 2. **Presence is a draft that is never saved.** Each person `merge()`s a small
10
+ presence document on a heartbeat; the platform drops it about 12 seconds
11
+ after its last update and when the tab disconnects. Who is here is the set of
12
+ fresh presence rows.
13
+ 3. **What lasts is saved, one document per thing,** applied locally first and
14
+ written after, so nobody waits on the network.
15
+ 4. **A turn game passes one state document from seat to seat**, and a shared
16
+ clock is a time stamp every phone counts down to.
17
+
18
+ The who-is-here chips, the "N here" badge, cursors and the invite button are
19
+ drawn by the presence surface below this doc; this doc hands it the people.
20
+
21
+ ## The room is in the URL
22
+
23
+ The app's hash is its own address: set it with `history.replaceState`, and the
24
+ platform mirrors it into the address bar the person sees and copies. A link
25
+ opened later reaches the app as a `hashchange` after the first render, so read
26
+ the hash on load **and** listen for it.
27
+
28
+ A new room is a short random id the creator's press saves as a `room` document
29
+ (`_id: room:<id>`). That saved document is what opens the room's channel:
30
+ a presence draft reaches only the peers already on its channel, and a channel's
31
+ grant comes from a saved document, so save the room on the creator's press,
32
+ never on load. An app with one shared space (one world, one board for the
33
+ office) uses a fixed id and saves its room record on the first person's first
34
+ action.
35
+
36
+ The invite is the room's public address, copied with
37
+ `navigator.clipboard.writeText`. The app's own host names its handle and slug
38
+ in its first label (`<slug>--<handle>.…`), so the address is built from that.
39
+
40
+ ## Presence: a heartbeat, an expiry, and who is here
41
+
42
+ - **One presence draft per person per room**: `_id: presence:<roomId>:<handle>`,
43
+ with `type`, `roomId` and `userHandle` as its index fields. `merge()` it,
44
+ never `save()` it. A saved presence row would outlive its person forever.
45
+ - **Heartbeat.** Send when the state changes, at most a few times a second, and
46
+ every 4 seconds while nothing changes, so a still player stays inside the
47
+ platform's 12-second expiry. Keep fast-changing state (a pose, a cursor) in a
48
+ ref the heartbeat reads, not in React state.
49
+ - **Expiry on the receiver.** Stamp each row with the time it ARRIVED (a peer's
50
+ clock is not yours) and count a person as here while that arrival is under 15
51
+ seconds old. Rely on disconnect and expiry for leaving: a `merge()` sent while
52
+ a component unmounts may never reach anyone.
53
+ - **You are here too.** Your own draft does not come back through your own live
54
+ query, so who-is-here is you plus the fresh peers, one entry per handle.
55
+ - **Same person, two tabs**: one id per handle shows them once. If each tab must
56
+ count (two cursors), suffix the id with a per-tab id and let the access rule
57
+ accept that suffix.
58
+ - **Signed-in people are present.** A presence draft has to name its sender, so
59
+ an anonymous visitor watches the room (its channel is public) and is asked to
60
+ sign in to join, with `requestLogin()` and the app's own words.
61
+
62
+ ## Saved state: optimistic, one document per thing
63
+
64
+ - **Apply locally, then write.** Update the screen from the person's own move
65
+ first and `put` after, so the room never waits on the network.
66
+ - **Know the substrate.** A live query returns the latest version of every
67
+ matching document, deliveries can arrive out of order, and when two writes
68
+ target the same `_id` the server keeps whichever ARRIVED last, not the newer
69
+ client time stamp. So give each move, message, mark or cell its own document
70
+ with a deterministic `_id`, and never fold the whole room into one document
71
+ everybody saves: one person's save would erase everyone else's.
72
+ - **Clear an optimistic overlay only when the synced value AGREES with it**,
73
+ never when the key merely exists: a re-edited key always has an older synced
74
+ value, and clearing against it flashes the old state back.
75
+ - **Gate the sync, never the local edit.** Read `can.create(...)` to decide
76
+ whether to write; a slow or closed verdict must never freeze the room.
77
+ - Many people editing the same keys many times a second (a shared block world)
78
+ need an ordering fold on top of this; the engine skill that draws that world
79
+ owns it.
80
+
81
+ ## Turns and the clock
82
+
83
+ - **The game is one `state` document per room** (`_id: state:<roomId>`) with
84
+ `seats`, `phase` (`"seating"` then `"playing"`), `turn` and the board. A
85
+ move writes the next state with `turn` passed to the next seat; every phone
86
+ renders from the live query, and a short highlight on the moved piece shows
87
+ what changed.
88
+ - **Seats.** While `phase` is `"seating"`, a signed-in person takes the next
89
+ seat by appending their own handle; a seated player starts the game, which
90
+ fixes the seats and gives the first turn to `seats[0]`. A rejected seat means
91
+ someone sat first: re-read and try again.
92
+ - **The turn clock** is a time stamp, never a running timer: the mover writes
93
+ `turnEndsAt: Date.now() + TURN_MS`, and each phone shows
94
+ `Math.max(0, turnEndsAt - Date.now())` on a short interval, so every screen
95
+ ticks together. Past `turnEndsAt`, any seated player may pass the late turn.
96
+ - **Rounds a host runs** (a quiz, a reveal) keep `{ round, phase, endsAt }` on
97
+ the room document; only the host writes it, and the whole room flips at once.
98
+ - **Tell the next player.** A turn that waits on someone away from the app is a
99
+ `ctx.notify` from `backend.js` with `path: "#room=<id>"`, so the tap lands in
100
+ the room.
101
+
102
+ ## A room people can join
103
+
104
+ ### `lib/room.js`
105
+ ```js app=room
106
+ import React from "react";
107
+
108
+ const HEARTBEAT_MS = 4000; // well inside the platform's 12 s draft expiry
109
+ const SEND_EVERY_MS = 250; // a moving cursor sends at most four times a second
110
+ const FRESH_MS = 15000; // counted as here while the last arrival is this recent
111
+
112
+ const ROOM_IN_HASH = /(?:^#|&)room=([\w-]+)/;
113
+ const readRoom = () => ROOM_IN_HASH.exec(window.location.hash)?.[1] ?? null;
114
+ export const newRoomId = () => crypto.randomUUID().slice(0, 8);
115
+
116
+ /** The room named in the URL, and a way to move to another one (null leaves). */
117
+ export function useRoomId() {
118
+ const [roomId, setRoomId] = React.useState(readRoom);
119
+ React.useEffect(() => {
120
+ const onHash = () => setRoomId(readRoom());
121
+ window.addEventListener("hashchange", onHash);
122
+ return () => window.removeEventListener("hashchange", onHash);
123
+ }, []);
124
+ const go = React.useCallback((id) => {
125
+ history.replaceState(null, "", id ? `#room=${id}` : window.location.pathname + window.location.search);
126
+ setRoomId(id);
127
+ }, []);
128
+ return [roomId, go];
129
+ }
130
+
131
+ /** The room's public address, from the app's own host (`<slug>--<handle>.…`); a platform value replaces this in #8343. */
132
+ export function roomLink(roomId) {
133
+ const label = window.location.hostname.split(".")[0];
134
+ const cut = label.indexOf("--");
135
+ return `https://vibes.diy/vibe/${label.slice(cut + 2)}/${label.slice(0, cut)}#room=${roomId}`;
136
+ }
137
+
138
+ /**
139
+ * Sends this person's presence draft. Mount it with key={roomId + ":" + handle} so a new
140
+ * room starts a new draft. `stateRef.current` (a cursor, a pose, a selected cell) rides along.
141
+ */
142
+ export function Presence({ roomId, handle, useDocument, stateRef }) {
143
+ const { merge } = useDocument({ _id: `presence:${roomId}:${handle}`, type: "presence", roomId, userHandle: handle });
144
+ React.useEffect(() => {
145
+ let sent = "";
146
+ let lastSent = 0;
147
+ const beat = () => {
148
+ const state = stateRef?.current ?? null;
149
+ const stamp = JSON.stringify(state);
150
+ const now = Date.now();
151
+ if (stamp === sent && now - lastSent < HEARTBEAT_MS) return;
152
+ merge({ state, at: now }); // broadcast only: presence is never saved
153
+ sent = stamp;
154
+ lastSent = now;
155
+ };
156
+ beat();
157
+ const timer = setInterval(beat, SEND_EVERY_MS);
158
+ return () => clearInterval(timer);
159
+ }, [merge, stateRef]);
160
+ return null;
161
+ }
162
+
163
+ /** Who is here: you first, then every peer whose draft arrived in the last FRESH_MS. */
164
+ export function useHere(roomId, useLiveQuery, me) {
165
+ const { docs } = useLiveQuery("roomId", { key: roomId });
166
+ const arrivals = React.useRef(new Map()); // _id -> { at, seenAt } stamped on OUR clock
167
+ const [now, setNow] = React.useState(() => Date.now());
168
+ React.useEffect(() => {
169
+ const t = Date.now();
170
+ for (const d of docs) {
171
+ if (d.type !== "presence") continue;
172
+ const prev = arrivals.current.get(d._id);
173
+ if (prev === undefined || prev.at !== d.at) arrivals.current.set(d._id, { at: d.at, seenAt: t });
174
+ }
175
+ setNow(t);
176
+ }, [docs]);
177
+ React.useEffect(() => {
178
+ const timer = setInterval(() => setNow(Date.now()), 3000);
179
+ return () => clearInterval(timer);
180
+ }, []);
181
+ const people = new Map();
182
+ if (me) people.set(me, { handle: me, state: null, isMe: true });
183
+ for (const d of docs) {
184
+ if (d.type !== "presence" || !d.userHandle || people.has(d.userHandle)) continue;
185
+ const seen = arrivals.current.get(d._id);
186
+ if (seen && now - seen.seenAt < FRESH_MS) people.set(d.userHandle, { handle: d.userHandle, state: d.state, isMe: false });
187
+ }
188
+ return [...people.values()];
189
+ }
190
+ ```
191
+
192
+ ### `App.jsx`
193
+ ```jsx app=room
194
+ // The room's wiring; the presence bar (the surface doc's HereBar) draws its people.
195
+ import React from "react";
196
+ import { useFireproof } from "use-fireproof";
197
+ import { useViewer, useVibe } from "use-vibes";
198
+ import { Button, Skeleton, Stack } from "@vibes.diy/ui";
199
+ import { Presence, newRoomId, roomLink, useHere, useRoomId } from "./lib/room.js";
200
+ import { HereBar } from "./lib/here.jsx";
201
+
202
+ export default function App() {
203
+ const { database, useDocument, useLiveQuery } = useFireproof("room");
204
+ const { can, me } = useVibe("room");
205
+ const { requestLogin } = useViewer();
206
+ const [roomId, go] = useRoomId();
207
+ const handle = me?.userHandle;
208
+ const cursorRef = React.useRef(null);
209
+ const here = useHere(roomId, useLiveQuery, handle);
210
+ // The next room's id is drawn up front, so the verdict reads the very document the press writes.
211
+ const [nextId, setNextId] = React.useState(newRoomId);
212
+ const draft = { _id: `room:${nextId}`, type: "room", roomId: nextId, hostHandle: handle };
213
+ const canOpen = can.create(draft);
214
+
215
+ async function startRoom() {
216
+ go(nextId); // the screen moves at once; the saved room opens its channel for everyone after
217
+ setNextId(newRoomId());
218
+ await database.put({ ...draft, createdAt: Date.now() });
219
+ }
220
+
221
+ if (!roomId) {
222
+ if (!handle) return <Button onClick={requestLogin}>Sign in to start a room</Button>;
223
+ if (canOpen.pending) return <Skeleton />;
224
+ return (
225
+ <Button onClick={startRoom} disabled={canOpen.ok !== true}>
226
+ Start a room
227
+ </Button>
228
+ );
229
+ }
230
+ return (
231
+ <Stack>
232
+ {handle && <Presence key={`${roomId}:${handle}`} roomId={roomId} handle={handle} useDocument={useDocument} stateRef={cursorRef} />}
233
+ <HereBar people={here} onInvite={() => navigator.clipboard.writeText(roomLink(roomId))} />
234
+ {!handle && <Button variant="quiet" onClick={requestLogin}>Sign in to join the room</Button>}
235
+ <Button variant="quiet" onClick={() => go(null)}>Leave</Button>
236
+ </Stack>
237
+ );
238
+ }
239
+ ```
240
+
241
+ ### `access.js`
242
+ ```js app=room
243
+ export default function (doc, oldDoc, user, ctx) {
244
+ const room = (id) => `room:${id}`;
245
+ if (doc.type === "room") {
246
+ if (!user) throw { forbidden: "sign in to start a room" };
247
+ if (typeof doc.roomId !== "string" || doc._id !== room(doc.roomId)) throw { forbidden: "rooms live at room:<id>" };
248
+ if (oldDoc && oldDoc.hostHandle !== user.userHandle) throw { forbidden: "only the host changes the room" };
249
+ if (!oldDoc && doc.hostHandle !== user.userHandle) throw { forbidden: "you host the room you start" };
250
+ return { channels: [room(doc.roomId)], grant: { public: [room(doc.roomId)] } };
251
+ }
252
+ if (doc.type === "presence") {
253
+ // Never saved, but the broadcast still runs this branch to find its channel.
254
+ if (!user || doc.userHandle !== user.userHandle) throw { forbidden: "not you" };
255
+ if (typeof doc.roomId !== "string" || doc._id !== `presence:${doc.roomId}:${user.userHandle}`) throw { forbidden: "presence ID" };
256
+ if (typeof doc.at !== "number") throw { forbidden: "presence needs its time" };
257
+ return { channels: [room(doc.roomId)] };
258
+ }
259
+ if (doc.type === "state") {
260
+ if (!user) throw { forbidden: "sign in to play" };
261
+ if (doc._id !== `state:${doc.roomId}` || !Array.isArray(doc.seats)) throw { forbidden: "one game per room" };
262
+ if (!oldDoc) {
263
+ if (doc.seats.join() !== user.userHandle || doc.phase !== "seating") throw { forbidden: "start seating with your own seat" };
264
+ } else if (oldDoc.phase === "seating") {
265
+ const kept = oldDoc.seats.every((s, i) => doc.seats[i] === s);
266
+ // Taking a seat changes the seats alone: the phase stays seating and the turn is untouched.
267
+ const sat = kept && doc.phase === "seating" && doc.turn === oldDoc.turn && doc.seats.length === oldDoc.seats.length + 1 && doc.seats.at(-1) === user.userHandle && !oldDoc.seats.includes(user.userHandle);
268
+ const started = doc.phase === "playing" && doc.seats.join() === oldDoc.seats.join() && oldDoc.seats.includes(user.userHandle) && doc.turn === doc.seats[0];
269
+ if (!sat && !started) throw { forbidden: "take the next seat, or start with these seats" };
270
+ } else {
271
+ if (doc.seats.join() !== oldDoc.seats.join()) throw { forbidden: "seats are fixed" };
272
+ const late = typeof oldDoc.turnEndsAt === "number" && Date.now() > oldDoc.turnEndsAt && oldDoc.seats.includes(user.userHandle);
273
+ if (oldDoc.turn !== user.userHandle && !late) throw { forbidden: "wait for your turn" };
274
+ const next = oldDoc.seats[(oldDoc.seats.indexOf(oldDoc.turn) + 1) % oldDoc.seats.length];
275
+ if (doc.turn !== next && !doc.winner) throw { forbidden: "the turn passes to the next seat" };
276
+ }
277
+ return { channels: [room(doc.roomId)] };
278
+ }
279
+ throw { forbidden: "unknown document type" };
280
+ }
281
+ ```
282
+
283
+ Rename `room` to the app's own noun (`table`, `world`, `party`) in ids, types and copy, and
284
+ keep every document a room holds on the room's channel with its `roomId` field, so one live
285
+ query on `roomId` returns the room's people and its things. Each type the app adds (a move, a
286
+ message, a mark) gets its own branch before the final throw. A room only its members may enter
287
+ swaps `grant.public` for member grants and adds `ctx.requireAccess(room(doc.roomId))` to the
288
+ presence branch.
@@ -0,0 +1,2 @@
1
+ import type { LlmConfig } from "./types.js";
2
+ export declare const mediaCaptureConfig: LlmConfig;
@@ -0,0 +1,27 @@
1
+ export const mediaCaptureConfig = {
2
+ name: "media-capture",
3
+ needs: ["photo-input", "mic-capture"],
4
+ label: "Media capture",
5
+ description: "Voice memos, voice notes and any app that records audio, and any app where the person adds a photo or uses the camera: a plant or receipt identifier, profile and avatar photos, a selfie booth, a scanner. The photo picker that offers Take Photo and the photo library (preview, paste, drag-and-drop, downscale, location stripped), a live camera viewfinder (front/back switch, permission asked on the tap, a picker when the camera is blocked), and a voice recorder (timer, level meter, play back before saving).",
6
+ cues: [
7
+ "photo",
8
+ "selfie",
9
+ "scan",
10
+ "scanner",
11
+ "camera",
12
+ "take a picture",
13
+ "take a photo",
14
+ "upload a picture",
15
+ "upload a photo",
16
+ "photo booth",
17
+ "photobooth",
18
+ "voice memo",
19
+ "voice note",
20
+ "voice recorder",
21
+ "record audio",
22
+ "record my voice",
23
+ "microphone",
24
+ "qr code",
25
+ ],
26
+ };
27
+ //# sourceMappingURL=media-capture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-capture.js","sourceRoot":"","sources":["../../jsr/llms/media-capture.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,kBAAkB,GAAc;IAC3C,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;IACrC,KAAK,EAAE,eAAe;IACtB,WAAW,EAIT,8fAA8f;IAEhgB,IAAI,EAAE;QACJ,OAAO;QACP,QAAQ;QACR,MAAM;QACN,SAAS;QACT,QAAQ;QACR,gBAAgB;QAChB,cAAc;QACd,kBAAkB;QAClB,gBAAgB;QAChB,aAAa;QACb,YAAY;QACZ,YAAY;QACZ,YAAY;QACZ,gBAAgB;QAChB,cAAc;QACd,iBAAiB;QACjB,YAAY;QACZ,SAAS;KACV;CACF,CAAC"}