@vibes.diy/prompts 14.3.249 → 14.3.250

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 (114) 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/board-games.js +9 -4
  11. package/llms/board-games.js.map +1 -1
  12. package/llms/board-games.md +3 -153
  13. package/llms/callai.js +1 -0
  14. package/llms/callai.js.map +1 -1
  15. package/llms/callai.md +1 -1
  16. package/llms/canvas-theme-colors.d.ts +2 -0
  17. package/llms/canvas-theme-colors.js +7 -0
  18. package/llms/canvas-theme-colors.js.map +1 -0
  19. package/llms/canvas-theme-colors.md +70 -0
  20. package/llms/image-gen.js +1 -0
  21. package/llms/image-gen.js.map +1 -1
  22. package/llms/image-gen.md +1 -1
  23. package/llms/index.d.ts +20 -1
  24. package/llms/index.js +55 -0
  25. package/llms/index.js.map +1 -1
  26. package/llms/keepsake.d.ts +2 -0
  27. package/llms/keepsake.js +9 -0
  28. package/llms/keepsake.js.map +1 -0
  29. package/llms/keepsake.md +74 -0
  30. package/llms/live-rooms.d.ts +2 -0
  31. package/llms/live-rooms.js +28 -0
  32. package/llms/live-rooms.js.map +1 -0
  33. package/llms/live-rooms.md +288 -0
  34. package/llms/media-capture.d.ts +2 -0
  35. package/llms/media-capture.js +27 -0
  36. package/llms/media-capture.js.map +1 -0
  37. package/llms/media-capture.md +190 -0
  38. package/llms/mic-capture.d.ts +2 -0
  39. package/llms/mic-capture.js +7 -0
  40. package/llms/mic-capture.js.map +1 -0
  41. package/llms/mic-capture.md +76 -0
  42. package/llms/needs.d.ts +12 -0
  43. package/llms/needs.js +71 -0
  44. package/llms/needs.js.map +1 -0
  45. package/llms/p5.js +1 -0
  46. package/llms/p5.js.map +1 -1
  47. package/llms/p5.md +15 -69
  48. package/llms/photo-input.d.ts +2 -0
  49. package/llms/photo-input.js +7 -0
  50. package/llms/photo-input.js.map +1 -0
  51. package/llms/photo-input.md +141 -0
  52. package/llms/physics.js +1 -0
  53. package/llms/physics.js.map +1 -1
  54. package/llms/physics.md +7 -16
  55. package/llms/reskin.js +3 -8
  56. package/llms/reskin.js.map +1 -1
  57. package/llms/reskin.md +4 -72
  58. package/llms/richtext.md +2 -0
  59. package/llms/social-post.js +1 -0
  60. package/llms/social-post.js.map +1 -1
  61. package/llms/social-post.md +22 -4
  62. package/llms/sound-core.d.ts +2 -0
  63. package/llms/sound-core.js +7 -0
  64. package/llms/sound-core.js.map +1 -0
  65. package/llms/sound-core.md +131 -0
  66. package/llms/strudel.js +2 -0
  67. package/llms/strudel.js.map +1 -1
  68. package/llms/strudel.md +24 -25
  69. package/llms/surface-board.d.ts +2 -0
  70. package/llms/surface-board.js +8 -0
  71. package/llms/surface-board.js.map +1 -0
  72. package/llms/surface-board.md +140 -0
  73. package/llms/surface-play-area.d.ts +2 -0
  74. package/llms/surface-play-area.js +8 -0
  75. package/llms/surface-play-area.js.map +1 -0
  76. package/llms/surface-play-area.md +51 -0
  77. package/llms/surface-presence.d.ts +2 -0
  78. package/llms/surface-presence.js +9 -0
  79. package/llms/surface-presence.js.map +1 -0
  80. package/llms/surface-presence.md +118 -0
  81. package/llms/three-js.js +1 -1
  82. package/llms/three-js.js.map +1 -1
  83. package/llms/three-js.md +52 -18
  84. package/llms/touch-games.js +11 -11
  85. package/llms/touch-games.js.map +1 -1
  86. package/llms/touch-games.md +59 -354
  87. package/llms/types.d.ts +5 -0
  88. package/llms/ui-chat.js +2 -1
  89. package/llms/ui-chat.js.map +1 -1
  90. package/llms/ui-chat.md +25 -14
  91. package/llms/use-vibe.js +1 -0
  92. package/llms/use-vibe.js.map +1 -1
  93. package/llms/use-viewer.js +1 -0
  94. package/llms/use-viewer.js.map +1 -1
  95. package/llms/voxel.js +1 -0
  96. package/llms/voxel.js.map +1 -1
  97. package/llms/voxel.md +33 -109
  98. package/llms/web-audio.js +4 -21
  99. package/llms/web-audio.js.map +1 -1
  100. package/llms/web-audio.md +19 -951
  101. package/llms/web-music.d.ts +2 -0
  102. package/llms/web-music.js +8 -0
  103. package/llms/web-music.js.map +1 -0
  104. package/llms/web-music.md +895 -0
  105. package/llms/world-controls.d.ts +2 -0
  106. package/llms/world-controls.js +14 -0
  107. package/llms/world-controls.js.map +1 -0
  108. package/llms/world-controls.md +262 -0
  109. package/llms/worlds.js +2 -1
  110. package/llms/worlds.js.map +1 -1
  111. package/llms/worlds.md +5 -14
  112. package/package.json +5 -5
  113. package/prompts.js +5 -19
  114. package/prompts.js.map +1 -1
@@ -240,7 +240,7 @@ export function renderInstrumentArrangementSection(arrangement) {
240
240
  return [
241
241
  "## Instrument arrangement",
242
242
  "",
243
- `Lay out this app's instrument face as a ${arrangement} (web-audio, "Make it yours") and name it in the picks line, unless the person's own words name a machine or a layout, which then decide.`,
243
+ `Lay out this app's instrument face as a ${arrangement} (web-music, "Make it yours") and name it in the picks line, unless the person's own words name a machine or a layout, which then decide.`,
244
244
  ].join("\n");
245
245
  }
246
246
  //# sourceMappingURL=generation-variety.js.map
package/index.d.ts CHANGED
@@ -11,4 +11,4 @@ export * from "./themes/looks/index.js";
11
11
  export { parseContent } from "./segment-parser.js";
12
12
  export { normalizeComponentExports, transformImports, coreImportMap } from "./component-transforms.js";
13
13
  export { buildSchemaSystemMessage, schemaSystemMessageText } from "./build-schema-prompt.js";
14
- export { allConfigs, canonicalSkillName, cueMatches, cueMatchedSkills, SKILL_ALIASES, type CueCatalogEntry } from "./llms/index.js";
14
+ export { allConfigs, canonicalSkillName, cueMatches, cueMatchedSkills, expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames, SKILL_ALIASES, SKILL_SPLITS, SKILL_CATALOG_EPOCH, storedSkillNames, type CueCatalogEntry, type NeedsCatalogEntry, } from "./llms/index.js";
package/index.js CHANGED
@@ -11,5 +11,5 @@ export * from "./themes/looks/index.js";
11
11
  export { parseContent } from "./segment-parser.js";
12
12
  export { normalizeComponentExports, transformImports, coreImportMap } from "./component-transforms.js";
13
13
  export { buildSchemaSystemMessage, schemaSystemMessageText } from "./build-schema-prompt.js";
14
- export { allConfigs, canonicalSkillName, cueMatches, cueMatchedSkills, SKILL_ALIASES } from "./llms/index.js";
14
+ export { allConfigs, canonicalSkillName, cueMatches, cueMatchedSkills, expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames, SKILL_ALIASES, SKILL_SPLITS, SKILL_CATALOG_EPOCH, storedSkillNames, } from "./llms/index.js";
15
15
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../jsr/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEvG,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAI7F,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAwB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../jsr/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEvG,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAI7F,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GAGjB,MAAM,iBAAiB,CAAC"}
package/llms/backend.js CHANGED
@@ -2,6 +2,7 @@ export const backendConfig = {
2
2
  name: "backend",
3
3
  label: "backend-js",
4
4
  description: "server-side backend.js file: answer HTTP/webhook requests at the app's /_api URL, react to committed data changes, and run scheduled jobs — its writes go through the app's own access rules; reads a web page, feed or API the person names and hands it to the page through /_api; emails, notifies and reminds people through ctx.notify by handle — a weekly digest, a summary for the owner, a Monday email to the manager — and invites a recipient who is not in the app yet; sends a record to a tool the person names (Slack, Google Sheets, a CRM, Zapier) through a Zapier Catch Hook the owner connects; and takes records in from Zapier — a Google Forms response, a new sheet row, an email — at its /_api URL, checked against a shared secret",
5
+ universal: "edits",
5
6
  cues: ["email", "notify", "remind", "digest", "zapier", "catch hook", "webhook", "slack", "sheets", "crm", "google forms"],
6
7
  };
7
8
  //# sourceMappingURL=backend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backend.js","sourceRoot":"","sources":["../../jsr/llms/backend.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,guBAAguB;IAKluB,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,CAAC;CAC3H,CAAC"}
1
+ {"version":3,"file":"backend.js","sourceRoot":"","sources":["../../jsr/llms/backend.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,guBAAguB;IAKluB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,CAAC;CAC3H,CAAC"}
package/llms/blockly.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export const blocklyConfig = {
2
2
  name: "blockly",
3
+ needs: ["canvas-theme-colors"],
3
4
  label: "Blockly",
4
5
  description: "Block editors built with Blockly, where people snap pieces together instead of typing code. " +
5
6
  "Two audiences, one recipe. Teaching code: Scratch-like coding playgrounds for kids and " +
@@ -1 +1 @@
1
- {"version":3,"file":"blockly.js","sourceRoot":"","sources":["../../jsr/llms/blockly.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,WAAW,EACT,8FAA8F;QAC9F,yFAAyF;QACzF,6FAA6F;QAC7F,2FAA2F;QAC3F,4FAA4F;QAC5F,iGAAiG;QACjG,kGAAkG;QAClG,iGAAiG;QACjG,4FAA4F;QAC5F,8FAA8F;QAC9F,gGAAgG;QAChG,gGAAgG;QAChG,8FAA8F;QAC9F,gGAAgG;QAChG,qGAAqG;QACrG,gGAAgG;QAChG,mFAAmF;IACrF,IAAI,EAAE;QACJ,SAAS;QACT,SAAS;QACT,cAAc;QACd,cAAc;QACd,cAAc;QACd,eAAe;QACf,oBAAoB;QACpB,kBAAkB;QAClB,sBAAsB;QACtB,sBAAsB;QACtB,eAAe;QACf,aAAa;QACb,eAAe;QACf,eAAe;QACf,cAAc;QACd,cAAc;QACd,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,kBAAkB;QAClB,mBAAmB;QACnB,eAAe;QACf,SAAS;QACT,UAAU;QACV,kBAAkB;QAClB,oBAAoB;QACpB,mBAAmB;QACnB,oBAAoB;QACpB,cAAc;QACd,qBAAqB;QACrB,eAAe;QACf,mBAAmB;KACpB;CAMF,CAAC"}
1
+ {"version":3,"file":"blockly.js","sourceRoot":"","sources":["../../jsr/llms/blockly.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,SAAS;IAEf,KAAK,EAAE,CAAC,qBAAqB,CAAC;IAC9B,KAAK,EAAE,SAAS;IAChB,WAAW,EACT,8FAA8F;QAC9F,yFAAyF;QACzF,6FAA6F;QAC7F,2FAA2F;QAC3F,4FAA4F;QAC5F,iGAAiG;QACjG,kGAAkG;QAClG,iGAAiG;QACjG,4FAA4F;QAC5F,8FAA8F;QAC9F,gGAAgG;QAChG,gGAAgG;QAChG,8FAA8F;QAC9F,gGAAgG;QAChG,qGAAqG;QACrG,gGAAgG;QAChG,mFAAmF;IACrF,IAAI,EAAE;QACJ,SAAS;QACT,SAAS;QACT,cAAc;QACd,cAAc;QACd,cAAc;QACd,eAAe;QACf,oBAAoB;QACpB,kBAAkB;QAClB,sBAAsB;QACtB,sBAAsB;QACtB,eAAe;QACf,aAAa;QACb,eAAe;QACf,eAAe;QACf,cAAc;QACd,cAAc;QACd,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,kBAAkB;QAClB,mBAAmB;QACnB,eAAe;QACf,SAAS;QACT,UAAU;QACV,kBAAkB;QAClB,oBAAoB;QACpB,mBAAmB;QACnB,oBAAoB;QACpB,cAAc;QACd,qBAAqB;QACrB,eAAe;QACf,mBAAmB;KACpB;CAMF,CAAC"}
package/llms/blockly.md CHANGED
@@ -868,9 +868,8 @@ with "Keep it" as the moment to sign in.
868
868
 
869
869
  Blockly draws its own chrome inside the host, so the app's theme reaches it
870
870
  through a Blockly theme, built from the injected CSS variables resolved to
871
- concrete colours at mount (the same probe-element trick the p5 and three-js
872
- docs use — a `var(--background, #fff)` on a hidden span, read back with
873
- `getComputedStyle`):
871
+ concrete colours at mount with `cssColor` from `lib/look.js` (the canvas theme
872
+ colours):
874
873
 
875
874
  ```js
876
875
  const theme = Blockly.Theme.defineTheme("vibe", {
@@ -1,12 +1,15 @@
1
1
  export const boardGamesConfig = {
2
2
  name: "board-games",
3
3
  label: "Board, tile and card games",
4
- description: "Board, tile and card games played one tap, guess or card at a time: bingo cards dealt per player from a shared pool, " +
5
- "daily word guesses with an on-screen keyboard and a share grid, crosswords, word searches, grouping puzzles, letter hives, " +
6
- "sudoku, minesweeper, 2048, checkers, chess, go, hex, mancala, solitaire and other card games with hidden hands, trivia rooms " +
7
- "and dice scoresheets with house rules. Covers SVG boards in the app's theme tokens (square, hex, ring, graph and stacked " +
4
+ description: "Load it for every board, tile, card or word game — chess, checkers, tic-tac-toe, connect four, go, mancala, sudoku, " +
5
+ "minesweeper, 2048, solitaire — turn-based play one move, tap, guess or card at a time, alone, against the app, passing " +
6
+ "one phone or against a friend on their own phone from a shared link; also bingo " +
7
+ "cards dealt per player from a shared pool, daily word guesses with an on-screen keyboard and a share grid, crosswords, word " +
8
+ "searches, grouping puzzles, letter hives, hex, poker and other card games with hidden hands, trivia rooms and dice " +
9
+ "scoresheets with house rules. Covers SVG boards in the app's theme tokens (square, hex, ring, graph and stacked " +
8
10
  "shapes) dressed in a look from the request's world (a dauber on paper, skate wheels, poker chips, wooden tiles), seeded deals and daily seeds, win-line detection, turns, undo, AI opponents, and who sees what — public tables, " +
9
11
  "private hands, members-only clubs.",
12
+ needs: ["live-rooms", "surface-board"],
10
13
  cues: [
11
14
  "bingo",
12
15
  "word game",
@@ -24,6 +27,8 @@ export const boardGamesConfig = {
24
27
  "minesweeper",
25
28
  "mancala",
26
29
  "tic-tac-toe",
30
+ "tic tac toe",
31
+ "connect four",
27
32
  ],
28
33
  };
29
34
  //# sourceMappingURL=board-games.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"board-games.js","sourceRoot":"","sources":["../../jsr/llms/board-games.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAc;IACzC,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,uHAAuH;QACvH,6HAA6H;QAC7H,+HAA+H;QAC/H,2HAA2H;QAC3H,mOAAmO;QACnO,oCAAoC;IACtC,IAAI,EAAE;QACJ,OAAO;QACP,WAAW;QACX,QAAQ;QACR,WAAW;QACX,aAAa;QACb,QAAQ;QACR,OAAO;QACP,UAAU;QACV,WAAW;QACX,WAAW;QACX,YAAY;QACZ,eAAe;QACf,cAAc;QACd,aAAa;QACb,SAAS;QACT,aAAa;KACd;CACF,CAAC"}
1
+ {"version":3,"file":"board-games.js","sourceRoot":"","sources":["../../jsr/llms/board-games.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,gBAAgB,GAAc;IACzC,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,sHAAsH;QACtH,yHAAyH;QACzH,kFAAkF;QAClF,8HAA8H;QAC9H,qHAAqH;QACrH,kHAAkH;QAClH,mOAAmO;QACnO,oCAAoC;IAEtC,KAAK,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;IACtC,IAAI,EAAE;QACJ,OAAO;QACP,WAAW;QACX,QAAQ;QACR,WAAW;QACX,aAAa;QACb,QAAQ;QACR,OAAO;QACP,UAAU;QACV,WAAW;QACX,WAAW;QACX,YAAY;QACZ,eAAe;QACf,cAAc;QACd,aAAa;QACb,SAAS;QACT,aAAa;QACb,aAAa;QACb,cAAc;KACf;CACF,CAAC"}
@@ -18,7 +18,7 @@ Every game here has the same three parts, and each part has one home:
18
18
 
19
19
  ## Draw the board in SVG, the chrome with components
20
20
 
21
- The board is one `<svg>` with a `viewBox`, and every fill and stroke on it is a theme utility class such as `fill-card`, `stroke-border` or `fill-primary`, so the board restyles with the app's palette.
21
+ The board is one `<svg>` with a `viewBox`, and every fill and stroke on it is a theme utility class such as `fill-card`, `stroke-border` or `fill-primary`, so the board restyles with the app's palette. How the board looks is the board surface, which loads with this skill: on an app built from the UI's components, the whole app sits inside its one wrapper first, and a material the ask names (inlaid wood, green felt) is a colour token set on that wrapper, never a palette utility standing in for it. The geometry below is the same on every look.
22
22
 
23
23
  - **Square, responsive, crisp.** `viewBox="0 0 500 500"` with `className="w-full max-w-md aspect-square"` scales the whole board — squares, lines, letters — as one picture, from a phone to a laptop. Geometry is in board units (one cell = 100), so the maths stays integer.
24
24
  - **Colour through the room's tokens.** `fill-card stroke-border` for a quiet cell, `fill-primary` with `fill-primary-foreground` text for a marked one, `fill-success` / `fill-warning` / `fill-muted` for a guess's right / present / absent, `stroke-primary` for a winning line. The utilities are the same names the page's other elements use, so an owner's palette swap restyles the board too, and the look lint reads them as tokens.
@@ -29,142 +29,6 @@ The board is one `<svg>` with a `viewBox`, and every fill and stroke on it is a
29
29
  - **Text that fits.** Words wrap into at most four `<tspan>` lines and the font steps down as lines grow (`wrapLabel` below). Cap what a host can type at about 40 characters per square, and show the count while they type, so every square reads at arm's length.
30
30
  - **A cell is a board shape, never an icon button.** A square that holds words is an SVG `<g role="button">` (or a plain `<button>` tile that fills its grid column); an `IconButton` is a fixed small square sized for one glyph, so a phrase inside it shrinks and clips.
31
31
 
32
- ## Dress the board in the game's world
33
-
34
- A board in plain rounded rectangles plays fine and looks like a spreadsheet. Before drawing, pick **one physical thing from the request's world** that a player would recognise on a real table, and let it decide four parts of the board: the frame, the column header, what a mark looks like, and how a win shows. Everything stays in the theme's token classes, so the dressing restyles with the palette.
35
-
36
- **Choose the material from the request, in this order:**
37
-
38
- 1. **The request's own subject.** A rollerblade club's bingo marks squares with skate wheels; a baby-shower bingo uses pacifiers or footprints; a road trip uses licence plates; a bird walk uses binocular rings; a wine night uses glass rings.
39
- 2. **The game's classic table.** Bingo is a paper card with a dauber; checkers are poker chips on felt; chess is an inlaid wood board; word tiles are wooden letter tiles; sudoku is pencil on graph paper; mancala is seeds in carved pits; memory is a deck of card backs; a trivia board is a TV game-show wall.
40
- 3. **The look the app already has.** When neither gives a strong picture, the board takes the shapes of the room's own components (its radius, its ledge shadow, its type).
41
-
42
- **Then dress the four parts:**
43
-
44
- - **Frame.** The material's edge: a ruled paper card with an ink border (`stroke-foreground`), a felt table (`fill-muted`), an inlaid border, a game-show wall with gaps between panels.
45
- - **Header.** A bingo card's five column letters can spell a word from the theme instead of B-I-N-G-O: SKATE for a skate club, BIRDS for a bird walk, ROADS for a road trip. A header with exactly as many letters as columns reads as part of the card.
46
- - **Mark.** The thing a real player puts down: a dauber blot, a wheel, a sticker, a chip, a pencil cross. The words underneath stay readable, so a mark is translucent (`opacity-60`) or the text flips to `fill-primary-foreground` on a solid mark. A mark animates once when it lands (a scale or a quarter turn, 150–500 ms) and stays put under `motion-reduce:transition-none`.
47
- - **Win.** The table's own celebration: a stroke drawn through the line, the winning marks changing colour together, a game-show panel flip. The win line is `stroke-accent` drawn over the marks.
48
-
49
- **Two dressed bingo cards** (the same `BingoBoard` as below, with a different cell and frame):
50
-
51
- - **Dauber on paper.** Cells are square `<rect>`s with no gaps and `stroke-foreground` rules; a dark header band carries the theme word. A mark is a slightly lumpy blot — a `<path>` circle with uneven radii, rotated a little per cell from the seed — in `fill-primary opacity-60`, drawn above the cell and below the text.
52
- - **Skate wheels** (or any round token: chips, caps, coins). Each cell is a `<circle>` in `fill-muted`; a marked cell fills `fill-foreground` with `fill-background` text and gains a dashed tread ring (`stroke-primary`, `strokeDasharray="6 5"`) that turns half a turn as it lands. The free centre is the hub, in `fill-accent`.
53
-
54
- ```jsx
55
- // A dauber blot and a wheel, each one cell of a 100-unit grid centred on (cx, cy).
56
- function Blot({ cx, cy, turn }) {
57
- return <path d={`M ${cx - 36} ${cy} q 2 -38 38 -37 q 37 3 35 39 q -3 34 -38 35 q -37 -2 -35 -37 z`} transform={`rotate(${turn} ${cx} ${cy})`} className="fill-primary opacity-60 transition-transform duration-200 motion-reduce:transition-none" />;
58
- }
59
- function Wheel({ cx, cy, on }) {
60
- // Drawn round (0, 0) inside a translated group, so a CSS rotate turns the ring about its own centre.
61
- return (
62
- <g transform={`translate(${cx} ${cy})`}>
63
- <circle r="44" className={on ? "fill-foreground" : "fill-muted"} />
64
- {/* Always mounted, so marking changes the rotation and the transition has a "from". */}
65
- <circle r="44" fill="none" strokeWidth="5" strokeDasharray="6 5" className={`stroke-primary transition duration-500 motion-reduce:transition-none ${on ? "rotate-180 opacity-100" : "rotate-0 opacity-0"}`} />
66
- </g>
67
- );
68
- }
69
- ```
70
-
71
- **The same move on other boards:** checkers as poker chips (two concentric `<circle>`s with a dashed edge stripe); a word-guess as wooden tiles (a `<rect>` with a lighter top edge, letters in the display face); sudoku as graph paper (thin `stroke-border` rules, thick box rules, entries in a handwritten-looking face and givens in the body face); memory as a deck (a card back with a pattern drawn from the deck's seed, flipped with a `scaleX` transition); mancala as carved pits (an ellipse with an inner shadow ring and seeds as small circles scattered from the seed).
72
-
73
-
74
- ## Board surface — the board is the app
75
-
76
- On a board game the board is the thing people came for, so the look's components only frame it: the title, a `Stat` or `Badge` for the score and the turn, `Button`s for New game / Undo / Share, a `Dialog` for the win. Taste goes into the board itself — its material, tiles, pieces, texture and motion — and a board drawn from `Card`s, `RowCard`s or one `IconButton` per square reads as an admin screen, whatever the palette.
77
-
78
- On an app built from the UI's components (the default look or any look on its surface) the board takes the `reskin` technique, even when the person never asked for a look:
79
-
80
- - **One wrapper.** The app renders inside a root `<div data-reskin>` with `<style>{SKIN}</style>` as its first child, `SKIN` one module-level CSS string. A later "make it look like a 1970s wooden set" then lands in the same place.
81
- - **Colour from the look's tokens.** The board's CSS reads `var(--surface)`, `var(--ink)`, `var(--purple)`, `var(--up)`, `var(--down)` and `var(--r-card)`, so the Look tab and a reskin restyle the board with the chrome. A material colour no token carries (walnut, felt green) is set as a token on the wrapper first, `--felt: …`, and read from there.
82
- - **Plain elements for tiles and pieces.** The board is SVG or a CSS grid of `div`s with the app's own class names (`.board`, `.sq`, `.sq--dark`, `.piece`), each cell a `<g role="button">` or `div role="button" tabIndex={0}` as above. They take classes freely; the look's components never do.
83
- - **Texture and motion on the board, capture-safe.** Grain or felt is a gradient on `.board`; a piece slides with a `transform` transition and lands once; the first frame is already a full board.
84
-
85
- ```jsx
86
- import React, { useState } from "react";
87
- import { Badge, Button, Heading, Row, Stack } from "@vibes.diy/ui";
88
-
89
- const SKIN = `
90
- [data-reskin], body:has([data-reskin]) { --felt: color-mix(in srgb, var(--up) 55%, var(--ink)); }
91
- [data-reskin] .board { display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr); width: min(100%, 28rem); aspect-ratio: 1;
92
- padding: 10px; border-radius: var(--r-card); background: var(--ink); touch-action: manipulation; user-select: none; }
93
- [data-reskin] .sq { display: grid; place-items: center; background: var(--surface); }
94
- [data-reskin] .sq--dark { background: repeating-linear-gradient(135deg, var(--felt) 0 3px, color-mix(in srgb, var(--felt) 88%, var(--ink)) 3px 6px); }
95
- [data-reskin] .piece { width: 76%; aspect-ratio: 1; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--surface) 60%, transparent);
96
- box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 45%, transparent); transition: transform 180ms ease; }
97
- [data-reskin] .piece--red { background: var(--down); }
98
- [data-reskin] .piece--black { background: var(--ink); border-color: var(--text-secondary); }
99
- [data-reskin] .sq[aria-pressed="true"] .piece { transform: translateY(-4px) scale(1.06); }
100
- `;
101
-
102
- const START = Array.from({ length: 64 }, (_, i) => {
103
- const dark = (Math.floor(i / 8) + i) % 2 === 1;
104
- return !dark ? null : i < 24 ? "black" : i >= 40 ? "red" : null;
105
- });
106
-
107
- export default function App() {
108
- const [cells, setCells] = useState(START);
109
- const [held, setHeld] = useState(-1);
110
- const [turn, setTurn] = useState("red");
111
-
112
- // Any empty square takes the held piece here; a real game asks legalMoves(state) first (below).
113
- function tap(i) {
114
- if (cells[i] === turn) return setHeld(i);
115
- if (held < 0 || cells[i] !== null) return;
116
- setCells(cells.map((c, j) => (j === i ? turn : j === held ? null : c)));
117
- setHeld(-1);
118
- setTurn(turn === "red" ? "black" : "red");
119
- }
120
-
121
- function newGame() {
122
- setCells(START);
123
- setHeld(-1);
124
- setTurn("red");
125
- }
126
-
127
- return (
128
- <div data-reskin>
129
- <style>{SKIN}</style>
130
- <Stack gap={4}>
131
- <Row gap={2} align="center">
132
- <Heading level={1}>Checkers</Heading>
133
- <Badge tone={turn === "red" ? "down" : "idle"}>{turn} to move</Badge>
134
- </Row>
135
- <div className="board" role="group" aria-label="Checkers board">
136
- {cells.map((c, i) => (
137
- <div
138
- key={i}
139
- role="button"
140
- tabIndex={0}
141
- aria-label={`Square ${i + 1}${c ? `, ${c}` : ""}`}
142
- aria-pressed={held === i}
143
- className={(Math.floor(i / 8) + i) % 2 === 1 ? "sq sq--dark" : "sq"}
144
- onClick={() => tap(i)}
145
- onKeyDown={(e) => {
146
- if (e.key !== "Enter" && e.key !== " ") return;
147
- e.preventDefault();
148
- tap(i);
149
- }}
150
- >
151
- {c && <span className={`piece piece--${c}`} />}
152
- </div>
153
- ))}
154
- </div>
155
- <Row gap={2}>
156
- <Button variant="quiet" onClick={newGame}>
157
- New game
158
- </Button>
159
- </Row>
160
- </Stack>
161
- </div>
162
- );
163
- }
164
- ```
165
-
166
- The rules functions, seeds and access shapes below are unchanged; this is only where the board's look lives. The same move covers a puzzle grid, a card table (a `.table` in felt, `.card` faces as plain elements) and the HUD around a canvas or voxel world, where the canvas is the board and the components are the frame.
167
-
168
32
  ## Seeds — the same deal on every device
169
33
 
170
34
  Every deal, shuffle and daily puzzle comes from a seed, so the same player sees the same card on every reload and every device.
@@ -533,8 +397,7 @@ const canFound = (card, pile) => (pile.length ? pile.at(-1).suit === card.suit &
533
397
  ## Turns, rooms and opponents
534
398
 
535
399
  - **Pass-and-play** — one device, players take turns: the state names `turn`, the screen between turns says "Hand it to Sam" with a tap-to-reveal, and nothing else changes. It is the fastest way to play two-up on a couch.
536
- - **Two phones** — the game is one `state` doc; a move writes the next state with `turn` passed to the next seat, and both boards follow the live query. `useLiveQuery` delivers the opponent's move; a short highlight on the moved piece shows what changed.
537
- - **Host-run rounds** (trivia boards, a charades round, a quiz battle) — the host's `room` doc holds `{ round, phase: "question" | "reveal", endsAt }`; every phone renders from it, so the whole room flips together. The countdown reads `endsAt - Date.now()` on each phone, so they tick together. Each team writes one `answer` doc per round; the host taps Reveal to change `phase`. The host can fill a round with `callAI` ("ten questions about Q3 launches", with a schema of `{ q, choices, answer }`).
400
+ - **Two phones, or a whole room of them** — a game played across devices is a live room: the room in the link, who is at the table, seats, the turn passing and the turn clock are the live-rooms doc above. The board, its rule functions and its `applyMove` stay this doc's; the room's one `state` document carries the position. A host-run round (trivia boards, a charades round, a quiz battle) fills its questions with `callAI` ("ten questions about Q3 launches", with a schema of `{ q, choices, answer }`), and each team writes one `answer` doc per round.
538
401
  - **An AI opponent picks from the legal moves.** Send `callAI` the position and the list from `legalMoves(state)` with a schema `{ move: { enum: [...] } }`, apply its pick through the same `applyMove`, and the rules stay the app's own. A small search (minimax a few plies deep) is a fine opponent for checkers, hex or mancala and answers instantly.
539
402
  - **Vision into a position** — a photo of a board read by `callAI` with an image and a schema for the cells (for chess, a FEN string) — fills the same state the board draws.
540
403
 
@@ -545,20 +408,7 @@ The access skill's rule for playful apps is the default here: **An open-nature a
545
408
  Hidden information stays per-player readable inside a public game: a player's own hand, or their guesses before they share, routes to a channel only that player holds.
546
409
 
547
410
  - **Bingo** — the host edits the pool on the game doc; each player writes only their own marks; all of it on the game's public channel (the worked example above).
548
- - **Turn-based** — only the player whose turn it is can write a move. The single `state` doc's previous version names whose turn it was, so the rule reads `oldDoc`:
549
-
550
- ```js
551
- if (doc.type === "state") {
552
- if (oldDoc) {
553
- if (oldDoc.turn !== user.userHandle) throw { forbidden: "wait for your turn" };
554
- if (doc.seats.join() !== oldDoc.seats.join()) throw { forbidden: "seats are fixed" };
555
- const next = oldDoc.seats[(oldDoc.seats.indexOf(user.userHandle) + 1) % oldDoc.seats.length];
556
- if (doc.turn !== next && !doc.winner) throw { forbidden: "the turn passes to the next seat" };
557
- } else if (!doc.seats.includes(user.userHandle)) throw { forbidden: "take a seat to start" };
558
- return { channels: [`game:${doc._id}`], grant: { public: [`game:${doc._id}`] } };
559
- }
560
- ```
561
-
411
+ - **Turn-based** — only the player whose turn it is writes a move: the live-rooms `state` branch, which reads `oldDoc.turn`.
562
412
  - **Daily puzzles** — everyone shares one seed. A player's in-progress guesses live on their own `user:<handle>` channel; tapping Share writes a `result` doc (the emoji grid, the count, no letters) to the public results channel, which feeds the leaderboard.
563
413
 
564
414
  ```js
package/llms/callai.js CHANGED
@@ -2,6 +2,7 @@ export const callaiConfig = {
2
2
  name: "callai",
3
3
  label: "callAI",
4
4
  description: "easy API for LLM requests with streaming support",
5
+ universal: "always",
5
6
  importModule: "call-ai",
6
7
  importName: "callAI",
7
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"callai.js","sourceRoot":"","sources":["../../jsr/llms/callai.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,kDAAkD;IAC/D,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,QAAQ;CACrB,CAAC"}
1
+ {"version":3,"file":"callai.js","sourceRoot":"","sources":["../../jsr/llms/callai.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,kDAAkD;IAC/D,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,QAAQ;CACrB,CAAC"}
package/llms/callai.md CHANGED
@@ -334,7 +334,7 @@ export default function App() {
334
334
 
335
335
  Send an image by passing the prompt as an array of content parts: an `image_url` part carrying the picture beside a `text` part asking the question.
336
336
 
337
- The prompt is the content of one user message, so a plain string means exactly one text part and the array is that same message's parts. Read the picture the user picked with a `FileReader` and hand over the data URL it produces, straight from the camera or photo library — `callAI` shrinks a large photo to a model-friendly size (1568px on its long edge) before sending it, so the app passes the whole picture and leaves the resizing to the platform:
337
+ The prompt is the content of one user message, so a plain string means exactly one text part and the array is that same message's parts. The picture comes from `<input type="file" accept="image/*">` behind a `Button`, with no `capture` attribute so a phone offers the camera and the photo library both (the `media-capture` skill, when loaded, adds preview, paste and drag-and-drop). Read the picture the user picked with a `FileReader` and hand over the data URL it produces — `callAI` shrinks a large photo to a model-friendly size (1568px on its long edge) before sending it, so the app passes the whole picture and leaves the resizing to the platform:
338
338
 
339
339
  ### `App.jsx`
340
340
  ```javascript
@@ -0,0 +1,2 @@
1
+ import type { LlmConfig } from "./types.js";
2
+ export declare const canvasThemeColorsConfig: LlmConfig;
@@ -0,0 +1,7 @@
1
+ export const canvasThemeColorsConfig = {
2
+ name: "canvas-theme-colors",
3
+ label: "Canvas theme colours",
4
+ description: "The app's theme tokens as concrete colours a canvas, p5 sketch, Three.js scene or Blockly theme can paint with: cssColor, readLook and watchLook in lib/look.js, read at mount and repainted on a restyle.",
5
+ menu: false,
6
+ };
7
+ //# sourceMappingURL=canvas-theme-colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canvas-theme-colors.js","sourceRoot":"","sources":["../../jsr/llms/canvas-theme-colors.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,uBAAuB,GAAc;IAChD,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,4MAA4M;IAC9M,IAAI,EAAE,KAAK;CACZ,CAAC"}
@@ -0,0 +1,70 @@
1
+ # Canvas theme colours — the look's tokens as colours a canvas can paint
2
+
3
+ Canvas pixels read the app's look from `lib/look.js`: resolve the theme tokens to concrete colours at mount, and repaint when the owner restyles.
4
+
5
+ The platform injects the app's colours as CSS variables (`--background`, `--surface`, `--primary`,
6
+ `--secondary`, `--accent`, `--text-primary`, `--text-secondary`, `--border`), and everything
7
+ outside a canvas follows them through Tailwind utilities. A 2D canvas, a p5 sketch, a Three.js
8
+ scene, a cellular world or a Blockly theme needs real colours instead, and a literal like
9
+ `"#00e5ff"` is the one part of a themed vibe its owner can never restyle. One module turns tokens
10
+ into colours every one of those can paint with; a literal is only the fallback for an app with no
11
+ theme injected.
12
+
13
+ ## `lib/look.js`
14
+
15
+ ```js
16
+ // look.js — the look's tokens as colours a 2D canvas or a Three.js scene can paint with.
17
+ // A computed colour can come back as oklch(), color-mix() or a translucent rgba(); filling one pixel
18
+ // over `under` turns any of them into the opaque hex the eye sees, which THREE.Color, p5's color()
19
+ // and ctx.fillStyle all read.
20
+ export function cssColor(host, token, fallback, under = "#ffffff") {
21
+ const probe = document.createElement("span");
22
+ probe.style.display = "none";
23
+ probe.style.color = `var(${token}, ${fallback})`;
24
+ host.appendChild(probe);
25
+ const value = getComputedStyle(probe).color;
26
+ probe.remove();
27
+ const ctx = document.createElement("canvas").getContext("2d");
28
+ ctx.fillStyle = under;
29
+ ctx.fillRect(0, 0, 1, 1);
30
+ ctx.fillStyle = fallback;
31
+ ctx.fillStyle = value; // a value the canvas cannot parse leaves the fallback in place
32
+ ctx.fillRect(0, 0, 1, 1);
33
+ const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data;
34
+ return `#${[r, g, b].map((n) => n.toString(16).padStart(2, "0")).join("")}`;
35
+ }
36
+
37
+ // A look may give its surface or border as a tint over the background (a dark look's surface
38
+ // can be rgba(255,255,255,0.04)), so every other token lands on the resolved backdrop.
39
+ export function readLook(host) {
40
+ const backdrop = cssColor(host, "--background", "#f7f3ea");
41
+ return {
42
+ backdrop,
43
+ surface: cssColor(host, "--surface", "#ffffff", backdrop),
44
+ lead: cssColor(host, "--primary", "#5b4bff", backdrop),
45
+ accent: cssColor(host, "--accent", "#ff7a59", backdrop),
46
+ ink: cssColor(host, "--text-primary", "#1a1325", backdrop),
47
+ line: cssColor(host, "--border", "#d9d2c3", backdrop),
48
+ };
49
+ }
50
+
51
+ // The Style tab restyles a running app by rewriting a <style> in the document head, with no
52
+ // remount, so the canvas is told: onChange gets a fresh look and repaints without a restart.
53
+ export function watchLook(host, onChange) {
54
+ const observer = new MutationObserver(() => onChange(readLook(host)));
55
+ observer.observe(document.head, { childList: true, subtree: true, characterData: true });
56
+ return () => observer.disconnect();
57
+ }
58
+ ```
59
+
60
+ ## Using it
61
+
62
+ - **Read inside the code that builds the drawing**, never at module scope: a scene's `useEffect`,
63
+ a sketch's `setup`, a world's mount. A rebuilt instance then picks up the current theme.
64
+ - **Call `watchLook` in that same effect and return its cleanup**, and keep every colour the
65
+ drawing uses in one `paint(look)` it runs at mount and on each change, so a restyle recolours
66
+ the canvas in place without restarting the game or losing its state.
67
+ - **`cssColor` alone** serves a single token (`cssColor(host, "--accent", "#00e5ff")`); pass the
68
+ resolved backdrop as the fourth argument for a token that may be a translucent tint.
69
+ - **The hex is opaque.** Keep alpha in the drawing library's hands (p5's `setAlpha`, a Three.js
70
+ material's `opacity`, `ctx.globalAlpha`) rather than appending digits to the string.
package/llms/image-gen.js CHANGED
@@ -16,6 +16,7 @@ export const imageGenConfig = {
16
16
  "image upload",
17
17
  "upload a photo",
18
18
  ],
19
+ universal: "always",
19
20
  importModule: "use-vibes",
20
21
  importName: "ImgGen",
21
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"image-gen.js","sourceRoot":"","sources":["../../jsr/llms/image-gen.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE;QACJ,OAAO;QACP,QAAQ;QACR,KAAK;QACL,OAAO;QACP,QAAQ;QACR,SAAS;QACT,UAAU;QACV,QAAQ;QACR,cAAc;QACd,MAAM;QACN,cAAc;QACd,gBAAgB;KACjB;IACD,YAAY,EAAE,WAAW;IACzB,UAAU,EAAE,QAAQ;CACrB,CAAC"}
1
+ {"version":3,"file":"image-gen.js","sourceRoot":"","sources":["../../jsr/llms/image-gen.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE;QACJ,OAAO;QACP,QAAQ;QACR,KAAK;QACL,OAAO;QACP,QAAQ;QACR,SAAS;QACT,UAAU;QACV,QAAQ;QACR,cAAc;QACd,MAAM;QACN,cAAc;QACd,gBAAgB;KACjB;IACD,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,WAAW;IACzB,UAAU,EAAE,QAAQ;CACrB,CAAC"}
package/llms/image-gen.md CHANGED
@@ -106,7 +106,7 @@ Do **not** set `model` for img2img: when an input image is present the platform
106
106
 
107
107
  ## Restyling a Captured Photo
108
108
 
109
- A photo booth, a style camera or an avatar-from-a-selfie app saves the camera frame and style prompt on the shot's own record, then uses that record's `_id` for its styled result. Save a fresh shot record with its source frame and style prompt for each deliberate new attempt. The styled picture's frame is simply `<ImgGen>`, shown at full size: ImgGen paints the saved result when there is one, and otherwise its own progress bar, its own message when a picture needs another try, and — in the Vibes iPhone app — the **Create with Image Playground** button that a picture started by the camera (rather than a tap) waits on. The person sees each of those right in the frame. Your own words about the shot sit beside or below the frame.
109
+ A photo booth, a style camera or an avatar-from-a-selfie app takes its shot through the `media-capture` skill when that is loaded, and otherwise through `<input type="file" accept="image/*">` behind a `Button` with no `capture` attribute, so a phone offers Take Photo and the photo library alike. It saves the shot and style prompt on the shot's own record, then uses that record's `_id` for its styled result. Save a fresh shot record with its source frame and style prompt for each deliberate new attempt. The styled picture's frame is simply `<ImgGen>`, shown at full size: ImgGen paints the saved result when there is one, and otherwise its own progress bar, its own message when a picture needs another try, and — in the Vibes iPhone app — the **Create with Image Playground** button that a picture started by the camera (rather than a tap) waits on. The person sees each of those right in the frame. Your own words about the shot sit beside or below the frame.
110
110
 
111
111
  Mount that same `<ImgGen>` wherever an unstyled shot is shown in full — the fresh-capture card and the detail view — so a shot saved in one visit styles the next time it opens. Gallery tiles read the saved result through `useImgGen` and show the original until it arrives.
112
112
 
package/llms/index.d.ts CHANGED
@@ -2,11 +2,23 @@ import type { LlmConfig } from "./types.js";
2
2
  export { backendConfig } from "./backend.js";
3
3
  export { calendarConfig } from "./calendar.js";
4
4
  export { boardGamesConfig } from "./board-games.js";
5
+ export { surfaceBoardConfig } from "./surface-board.js";
6
+ export { keepsakeConfig } from "./keepsake.js";
5
7
  export { callaiConfig } from "./callai.js";
6
8
  export { fireproofConfig } from "./fireproof.js";
7
9
  export { imageGenConfig } from "./image-gen.js";
10
+ export { soundCoreConfig } from "./sound-core.js";
11
+ export { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
12
+ export { surfacePlayAreaConfig } from "./surface-play-area.js";
13
+ export { worldControlsConfig } from "./world-controls.js";
14
+ export { micCaptureConfig } from "./mic-capture.js";
15
+ export { photoInputConfig } from "./photo-input.js";
16
+ export { mediaCaptureConfig } from "./media-capture.js";
8
17
  export { webAudioConfig } from "./web-audio.js";
18
+ export { webMusicConfig } from "./web-music.js";
9
19
  export { d3Config } from "./d3.js";
20
+ export { surfacePresenceConfig } from "./surface-presence.js";
21
+ export { liveRoomsConfig } from "./live-rooms.js";
10
22
  export { threeJsConfig } from "./three-js.js";
11
23
  export { p5Config } from "./p5.js";
12
24
  export { voxelConfig } from "./voxel.js";
@@ -62,7 +74,14 @@ export { uiCalendarConfig } from "./ui-calendar.js";
62
74
  export { uiTestimonialsConfig } from "./ui-testimonials.js";
63
75
  export type { LlmConfig } from "./types.js";
64
76
  export { cueMatches, cueMatchedSkills, type CueCatalogEntry } from "./cues.js";
65
- export declare const allConfigs: readonly [LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
77
+ export { expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames, type NeedsCatalogEntry } from "./needs.js";
78
+ export declare const allConfigs: readonly [LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
66
79
  export { mapsConfig } from "./maps.js";
67
80
  export declare const SKILL_ALIASES: ReadonlyMap<string, string>;
68
81
  export declare function canonicalSkillName(name: string): string;
82
+ export declare const SKILL_CATALOG_EPOCH = 1;
83
+ export declare const SKILL_SPLITS: ReadonlyMap<string, {
84
+ readonly into: readonly string[];
85
+ readonly epoch: number;
86
+ }>;
87
+ export declare function storedSkillNames(names: readonly string[], catalog?: number): string[];
package/llms/index.js CHANGED
@@ -2,11 +2,23 @@ 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 { keepsakeConfig } from "./keepsake.js";
5
7
  import { callaiConfig } from "./callai.js";
6
8
  import { fireproofConfig } from "./fireproof.js";
7
9
  import { imageGenConfig } from "./image-gen.js";
10
+ import { soundCoreConfig } from "./sound-core.js";
11
+ import { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
12
+ import { surfacePlayAreaConfig } from "./surface-play-area.js";
13
+ import { worldControlsConfig } from "./world-controls.js";
14
+ import { micCaptureConfig } from "./mic-capture.js";
15
+ import { photoInputConfig } from "./photo-input.js";
16
+ import { mediaCaptureConfig } from "./media-capture.js";
8
17
  import { webAudioConfig } from "./web-audio.js";
18
+ import { webMusicConfig } from "./web-music.js";
9
19
  import { d3Config } from "./d3.js";
20
+ import { surfacePresenceConfig } from "./surface-presence.js";
21
+ import { liveRoomsConfig } from "./live-rooms.js";
10
22
  import { threeJsConfig } from "./three-js.js";
11
23
  import { p5Config } from "./p5.js";
12
24
  import { voxelConfig } from "./voxel.js";
@@ -63,11 +75,23 @@ import { uiTestimonialsConfig } from "./ui-testimonials.js";
63
75
  export { backendConfig } from "./backend.js";
64
76
  export { calendarConfig } from "./calendar.js";
65
77
  export { boardGamesConfig } from "./board-games.js";
78
+ export { surfaceBoardConfig } from "./surface-board.js";
79
+ export { keepsakeConfig } from "./keepsake.js";
66
80
  export { callaiConfig } from "./callai.js";
67
81
  export { fireproofConfig } from "./fireproof.js";
68
82
  export { imageGenConfig } from "./image-gen.js";
83
+ export { soundCoreConfig } from "./sound-core.js";
84
+ export { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
85
+ export { surfacePlayAreaConfig } from "./surface-play-area.js";
86
+ export { worldControlsConfig } from "./world-controls.js";
87
+ export { micCaptureConfig } from "./mic-capture.js";
88
+ export { photoInputConfig } from "./photo-input.js";
89
+ export { mediaCaptureConfig } from "./media-capture.js";
69
90
  export { webAudioConfig } from "./web-audio.js";
91
+ export { webMusicConfig } from "./web-music.js";
70
92
  export { d3Config } from "./d3.js";
93
+ export { surfacePresenceConfig } from "./surface-presence.js";
94
+ export { liveRoomsConfig } from "./live-rooms.js";
71
95
  export { threeJsConfig } from "./three-js.js";
72
96
  export { p5Config } from "./p5.js";
73
97
  export { voxelConfig } from "./voxel.js";
@@ -122,11 +146,22 @@ export { uiLandingConfig } from "./ui-landing.js";
122
146
  export { uiCalendarConfig } from "./ui-calendar.js";
123
147
  export { uiTestimonialsConfig } from "./ui-testimonials.js";
124
148
  export { cueMatches, cueMatchedSkills } from "./cues.js";
149
+ export { expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames } from "./needs.js";
125
150
  export const allConfigs = [
126
151
  callaiConfig,
127
152
  imageGenConfig,
153
+ soundCoreConfig,
154
+ micCaptureConfig,
155
+ photoInputConfig,
128
156
  webAudioConfig,
157
+ webMusicConfig,
158
+ mediaCaptureConfig,
129
159
  d3Config,
160
+ canvasThemeColorsConfig,
161
+ surfacePlayAreaConfig,
162
+ worldControlsConfig,
163
+ surfacePresenceConfig,
164
+ liveRoomsConfig,
130
165
  voxelConfig,
131
166
  threeJsConfig,
132
167
  p5Config,
@@ -139,6 +174,7 @@ export const allConfigs = [
139
174
  backendConfig,
140
175
  mapsConfig,
141
176
  calendarConfig,
177
+ surfaceBoardConfig,
142
178
  boardGamesConfig,
143
179
  accessConfig,
144
180
  connectionsConfig,
@@ -157,6 +193,7 @@ export const allConfigs = [
157
193
  richtextConfig,
158
194
  reskinConfig,
159
195
  matchStyleConfig,
196
+ keepsakeConfig,
160
197
  uiTodoConfig,
161
198
  uiFeedConfig,
162
199
  uiChatConfig,
@@ -191,4 +228,22 @@ export const SKILL_ALIASES = new Map(allConfigs.flatMap((c) => (c.aliases ?? [])
191
228
  export function canonicalSkillName(name) {
192
229
  return SKILL_ALIASES.get(name) ?? name;
193
230
  }
231
+ export const SKILL_CATALOG_EPOCH = 1;
232
+ export const SKILL_SPLITS = new Map([
233
+ ["web-audio", { into: ["web-audio", "web-music"], epoch: 1 }],
234
+ ["touch-games", { into: ["touch-games", "world-controls"], epoch: 1 }],
235
+ ["reskin", { into: ["reskin", "keepsake"], epoch: 1 }],
236
+ ]);
237
+ export function storedSkillNames(names, catalog) {
238
+ const out = [];
239
+ for (const name of names) {
240
+ const canonical = canonicalSkillName(name);
241
+ const split = SKILL_SPLITS.get(canonical);
242
+ const into = split !== undefined && (catalog === undefined || catalog < split.epoch) ? split.into : [canonical];
243
+ for (const n of into)
244
+ if (out.includes(n) === false)
245
+ out.push(n);
246
+ }
247
+ return out;
248
+ }
194
249
  //# sourceMappingURL=index.js.map