@vibes.diy/prompts 14.3.205 → 14.3.206

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llms/backend.md CHANGED
@@ -57,7 +57,9 @@ the declared fallback, with its freshness and failure visible in saved status.
57
57
  heading naming `backend.js`, then one **complete** fenced block below it (the
58
58
  whole file — don't use SEARCH/REPLACE for it; re-emit the full file to change
59
59
  it). **Never put backend code inside an `App.jsx` block**, and never import
60
- `backend.js` from `App.jsx` — the browser can't run it.
60
+ `backend.js` from `App.jsx` — the browser can't run it. Each handler is a
61
+ top-level export (`export async function fetch(request, ctx)`, `scheduled`,
62
+ `onChange`); a `backend.js` that exports none of them saves as an error.
61
63
 
62
64
  ## Writes go through the access function
63
65
 
package/llms/stripe.js CHANGED
@@ -31,5 +31,21 @@ export const stripeConfig = {
31
31
  "donations",
32
32
  "pay with stripe",
33
33
  ],
34
+ routeCues: [
35
+ "with stripe",
36
+ "through stripe",
37
+ "via stripe",
38
+ "using stripe",
39
+ "stripe checkout",
40
+ "stripe account",
41
+ "pay by card",
42
+ "pays by card",
43
+ "pay with card",
44
+ "card payment",
45
+ "card payments",
46
+ "take payments",
47
+ "accept payments",
48
+ ],
49
+ routeBlockers: ["subscribe", "subscription", "subscriptions", "a month", "per month", "monthly"],
34
50
  };
35
51
  //# sourceMappingURL=stripe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stripe.js","sourceRoot":"","sources":["../../jsr/llms/stripe.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,iBAAiB;IACxB,WAAW,EACT,s8DAAs8D;IACx8D,IAAI,EAAE;QACJ,QAAQ;QACR,eAAe;QACf,cAAc;QACd,iBAAiB;QACjB,eAAe;QACf,cAAc;QACd,aAAa;QACb,UAAU;QACV,SAAS;QACT,MAAM;QACN,cAAc;QACd,SAAS;QACT,YAAY;QACZ,iBAAiB;QACjB,iBAAiB;QACjB,QAAQ;QACR,SAAS;QACT,cAAc;QACd,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,oBAAoB;QACpB,SAAS;QACT,QAAQ;QACR,UAAU;QACV,WAAW;QACX,iBAAiB;KAClB;CACF,CAAC"}
1
+ {"version":3,"file":"stripe.js","sourceRoot":"","sources":["../../jsr/llms/stripe.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,iBAAiB;IACxB,WAAW,EACT,s8DAAs8D;IACx8D,IAAI,EAAE;QACJ,QAAQ;QACR,eAAe;QACf,cAAc;QACd,iBAAiB;QACjB,eAAe;QACf,cAAc;QACd,aAAa;QACb,UAAU;QACV,SAAS;QACT,MAAM;QACN,cAAc;QACd,SAAS;QACT,YAAY;QACZ,iBAAiB;QACjB,iBAAiB;QACjB,QAAQ;QACR,SAAS;QACT,cAAc;QACd,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,oBAAoB;QACpB,SAAS;QACT,QAAQ;QACR,UAAU;QACV,WAAW;QACX,iBAAiB;KAClB;IAID,SAAS,EAAE;QACT,aAAa;QACb,gBAAgB;QAChB,YAAY;QACZ,cAAc;QACd,iBAAiB;QACjB,gBAAgB;QAChB,aAAa;QACb,cAAc;QACd,eAAe;QACf,cAAc;QACd,eAAe;QACf,eAAe;QACf,iBAAiB;KAClB;IAGD,aAAa,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC;CACjG,CAAC"}
@@ -194,10 +194,13 @@ The one-line hint follows the current view.
194
194
 
195
195
  The ☰ menu holds everything else, in this order: the views by name, fullscreen, how to play,
196
196
  who else is here and what they did lately (players and activity), then invite a friend and all
197
- worlds.
197
+ worlds. Every world's menu carries the first three: the views, a Fullscreen entry that fills the
198
+ phone with the world (`requestFullscreen()` on the root, from the tap itself), and a How to play
199
+ entry that keeps the gestures one tap away after the hint has moved on.
198
200
 
199
201
  **The desktop twin is the same world.** In the player views a click-to-play overlay calls
200
202
  `requestLock()`, so the mouse looks under pointer lock; WASD or the arrows walk and Space jumps.
203
+ The V key cycles the views just as the 🎥 button does, once per press, and the overlay's control legend names it (`V views`).
201
204
  `locked` reports the lock, so the overlay comes back when the player presses Esc, and `isTouch`
202
205
  keeps the overlay off phones. While locked, a click under the crosshair is the tap and a
203
206
  right-click is the hold (`onTap` / `onHold` at the screen centre). Free cam needs no lock: drag
@@ -224,6 +227,8 @@ export default function App() {
224
227
  const [camera] = React.useState(() => new THREE.PerspectiveCamera(70, 1, 0.1, 500));
225
228
  const [view, setView] = React.useState(() => (matchMedia("(pointer: coarse)").matches ? "Free cam" : "First person"));
226
229
  const [menuOpen, setMenuOpen] = React.useState(false);
230
+ const [howTo, setHowTo] = React.useState(false);
231
+ const [full, setFull] = React.useState(false);
227
232
  const me = React.useRef({ pos: new THREE.Vector3(0, 0, 12), yaw: 0, pitch: 0, move: [0, 0], vy: 0, zoom: 34 });
228
233
  const world = React.useRef({ hedges: [] });
229
234
 
@@ -315,7 +320,25 @@ export default function App() {
315
320
  };
316
321
  }, [camera]);
317
322
 
318
- const cycle = () => setView(VIEWS[(VIEWS.indexOf(view) + 1) % VIEWS.length]);
323
+ const cycle = () => setView((v) => VIEWS[(VIEWS.indexOf(v) + 1) % VIEWS.length]);
324
+ React.useEffect(() => {
325
+ // V cycles the views on a keyboard, once per press; a text field keeps its own V.
326
+ const onKey = (e) => {
327
+ if (e.code !== "KeyV" || e.repeat || e.target.closest?.("input, textarea, [contenteditable]")) return;
328
+ cycle();
329
+ };
330
+ const onFull = () => setFull(document.fullscreenElement !== null);
331
+ addEventListener("keydown", onKey);
332
+ document.addEventListener("fullscreenchange", onFull);
333
+ return () => {
334
+ removeEventListener("keydown", onKey);
335
+ document.removeEventListener("fullscreenchange", onFull);
336
+ };
337
+ }, []);
338
+ const toggleFullscreen = () => {
339
+ if (document.fullscreenElement) document.exitFullscreen();
340
+ else if (document.fullscreenEnabled) rootRef.current.requestFullscreen().catch(() => {});
341
+ };
319
342
  return (
320
343
  <div ref={rootRef} className="relative h-dvh w-full overflow-hidden bg-background text-foreground select-none touch-none">
321
344
  <canvas ref={canvasRef} className="absolute inset-0 block w-full h-full select-none touch-none" />
@@ -336,9 +359,18 @@ export default function App() {
336
359
  {v}
337
360
  </Button>
338
361
  ))}
339
- <Text size="sm" muted>
340
- Left thumb walks, right thumb looks. Tap a hedge to bloom it, hold to trim it, flick up to jump.
341
- </Text>
362
+ <Button variant="quiet" onClick={toggleFullscreen}>
363
+ {full ? "Exit fullscreen" : "Fullscreen"}
364
+ </Button>
365
+ <Button variant="quiet" onClick={() => setHowTo(!howTo)}>
366
+ How to play
367
+ </Button>
368
+ {howTo && (
369
+ <Text size="sm" muted>
370
+ Left thumb walks, right thumb looks. Tap a hedge to bloom it, hold to trim it, flick up to jump. On a
371
+ keyboard, V changes the view.
372
+ </Text>
373
+ )}
342
374
  </Stack>
343
375
  </Card>
344
376
  </div>
@@ -352,7 +384,7 @@ export default function App() {
352
384
  Click to play
353
385
  </Button>
354
386
  <Text size="sm" muted>
355
- WASD walk · mouse look · Space jump · click bloom · Esc frees the mouse
387
+ WASD walk · mouse look · Space jump · click bloom · V views · Esc frees the mouse
356
388
  </Text>
357
389
  </Stack>
358
390
  </Card>
package/llms/types.d.ts CHANGED
@@ -4,6 +4,8 @@ export interface LlmConfig {
4
4
  label: string;
5
5
  description: string;
6
6
  cues?: string[];
7
+ routeCues?: string[];
8
+ routeBlockers?: string[];
7
9
  importModule?: string;
8
10
  importName?: string;
9
11
  importType?: "named" | "namespace" | "default";
package/llms/voxel.md CHANGED
@@ -422,14 +422,13 @@ and nothing happens, or they don't know the mouse controls the camera at all.
422
422
  and only request lock from that click: its button calls the hook's `requestLock()`, and the hook's
423
423
  `locked` brings the overlay back when the player presses Esc. The overlay JSX is in `touch-games`;
424
424
  the voxel legend reads "WASD move · Mouse look · Shift sprint · Space jump · Click build ·
425
- Right-click break · G fly · 1–9 blocks".
425
+ Right-click break · G fly · V views · 1–9 blocks".
426
426
 
427
427
  ### View switcher: see your own character
428
428
 
429
429
  Include a view switcher between first-person and third-person so players can see their own avatar.
430
- The 🎥 camera button outside the menu cycles **Free cam → First person → Shoulder view**, and a
431
- keyboard shortcut (e.g. `V`, shown in the control legend) does the same; toggle once per press,
432
- ignoring key repeat. On a phone the world opens in Free cam, an overview that frames the island;
430
+ The 🎥 camera button outside the menu cycles **Free cam → First person → Shoulder view**, and the V key cycles them the same way on a keyboard, named in the control legend as `V views`.
431
+ Toggle once per press, ignoring key repeat. On a phone the world opens in Free cam, an overview that frames the island;
433
432
  back its radius off on a narrow screen as `touch-games` shows.
434
433
  Render a simple blocky local-player avatar in third-person, following
435
434
  the player's position and heading, and hide it in first-person so it does not
@@ -439,10 +438,10 @@ terrain blocks the view. Preserve aiming and the player's block-interaction
439
438
  reach as the camera moves. Keep the button reachable when pointer lock is
440
439
  released, and let the shortcut switch views during locked play.
441
440
 
442
- ### Optional fullscreen: keep the HUD with the world
441
+ ### Fullscreen in the menu: keep the HUD with the world
443
442
 
444
- Offer an optional fullscreen button for a larger play area; the Vibes iframe allows fullscreen.
445
- When included, call `requestFullscreen()` directly from the button's user
443
+ The ☰ menu offers a Fullscreen entry for a larger play area, right after the views and before How to play; the Vibes iframe allows fullscreen.
444
+ Call `requestFullscreen()` directly from the entry's user
446
445
  gesture on the game container that includes both the canvas and HUD. Check
447
446
  `document.fullscreenEnabled` and method availability, and handle a rejected
448
447
  request by keeping play usable in the embedded view. Derive the Enter/Exit
@@ -457,8 +456,8 @@ when needed. Remove the fullscreen listener on unmount.
457
456
  The world fills the screen (the `CanvasStage` above is `absolute inset-0` inside a
458
457
  `relative h-dvh w-full` root). Keep the crosshair, the block chip (the material in hand; a tap
459
458
  opens the palette), the hotbar (1–9 and 0 on a keyboard), undo and the 🎥 camera button on screen;
460
- put the title, settings, crafting recipes, the world-reset control and the player list behind
461
- **one** top-right menu button (`IconButton`) that toggles an overlay. The bottom-right corner
459
+ put everything else behind **one** top-right menu button (`IconButton`) that toggles an overlay.
460
+ The menu opens with the views by name, then Fullscreen, then How to play (the gestures and keys, one tap away once the hint has moved on), then the title, settings, crafting recipes, the world-reset control and the player list. The bottom-right corner
462
461
  belongs to the platform. A smaller boxed world is only for when the person asks for one.
463
462
 
464
463
  ### No text selection on the game surface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/prompts",
3
- "version": "14.3.205",
3
+ "version": "14.3.206",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "exports": {
@@ -39,10 +39,10 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@adviser/cement": "~0.5.34",
42
- "@vibes.diy/api-types": "14.3.205",
43
- "@vibes.diy/call-ai-v2": "14.3.205",
44
- "@vibes.diy/identity": "14.3.205",
45
- "@vibes.diy/use-vibes-types": "14.3.205",
42
+ "@vibes.diy/api-types": "14.3.206",
43
+ "@vibes.diy/call-ai-v2": "14.3.206",
44
+ "@vibes.diy/identity": "14.3.206",
45
+ "@vibes.diy/use-vibes-types": "14.3.206",
46
46
  "arktype": "~2.2.8",
47
47
  "json-schema-faker": "~0.6.3"
48
48
  },