@vibes.diy/prompts 14.3.82 → 14.3.84
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/access.md +105 -15
- package/llms/blockly.d.ts +2 -0
- package/llms/blockly.js +59 -0
- package/llms/blockly.js.map +1 -0
- package/llms/blockly.md +964 -0
- package/llms/fireproof.md +4 -4
- package/llms/index.d.ts +7 -1
- package/llms/index.js +18 -0
- package/llms/index.js.map +1 -1
- package/llms/motion.d.ts +2 -0
- package/llms/motion.js +47 -0
- package/llms/motion.js.map +1 -0
- package/llms/motion.md +601 -0
- package/llms/physics.d.ts +2 -0
- package/llms/physics.js +44 -0
- package/llms/physics.js.map +1 -0
- package/llms/physics.md +635 -0
- package/llms/richtext.d.ts +2 -0
- package/llms/richtext.js +47 -0
- package/llms/richtext.js.map +1 -0
- package/llms/richtext.md +612 -0
- package/llms/strudel.d.ts +2 -0
- package/llms/strudel.js +36 -0
- package/llms/strudel.js.map +1 -0
- package/llms/strudel.md +686 -0
- package/llms/web-audio.md +2 -0
- package/llms/worlds.d.ts +2 -0
- package/llms/worlds.js +45 -0
- package/llms/worlds.js.map +1 -0
- package/llms/worlds.md +826 -0
- package/package.json +5 -4
- package/restyle.js +3 -2
- package/restyle.js.map +1 -1
- package/system-prompt-initial-oneshot.md +3 -2
- package/system-prompt-initial.md +3 -2
- package/system-prompt.md +6 -3
package/llms/web-audio.md
CHANGED
|
@@ -291,6 +291,8 @@ The shape that works (filenames illustrative — split by responsibility, matche
|
|
|
291
291
|
|
|
292
292
|
## 8) Heavyweight audio engines arrive by runtime import
|
|
293
293
|
|
|
294
|
+
Music written as text patterns — Strudel, Tidal-style mini-notation, a groovebox whose pads write a pattern — has its own skill, `strudel`, built on the same runtime-import shape; this section is the general rule for any engine.
|
|
295
|
+
|
|
294
296
|
When the app needs a serious sound engine — sampled drums, a full synth framework — rather than hand-built oscillators, import the engine with its full pinned esm.sh URL in a memoized module-level loader, and call that loader only from a user gesture. Laziness is doing two jobs here: a body-position `await import("engine-name")` with a bare specifier ships unrewritten — the import rewrite covers only the top-of-file import region — and dies at runtime with `Failed to resolve module specifier`, so the specifier is the complete versioned URL; and an engine plus its sample bank stays off first paint entirely.
|
|
295
297
|
|
|
296
298
|
The gesture handler unlocks synchronously FIRST, before any await: call `unlockAudio()` (§1) at the top of the handler and keep its return — the context the gesture unlocked. Then await the loader, and bind the engine to that SAME context before creating any voice: `Tone.setContext(ctx)` drives the engine on the already-running context, and `Tone.getContext().rawContext === ctx` verifies the identity. Without the bind, `Tone.start()` resumes a context the engine created lazily after the await — a different context from the one the gesture unlocked. Verified on desktop Chromium; on mobile the engine's first sound still follows the loader's await, so claim only what desktop evidence shows (iOS counts a synchronous start inside the gesture, and a lazily imported engine starts after an await).
|
package/llms/worlds.d.ts
ADDED
package/llms/worlds.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const worldsConfig = {
|
|
2
|
+
name: "worlds",
|
|
3
|
+
label: "Generative worlds",
|
|
4
|
+
description: "Living simulations on a canvas: ecosystems and terrariums (grass, grazers, hunters), ant farms, " +
|
|
5
|
+
"Conway's Game of Life and other cellular automata, falling sand, forest fires, boids and flocks, " +
|
|
6
|
+
"petri dishes, weather drifting over a map — a grid of cells in a typed array, two rule functions " +
|
|
7
|
+
"that seed and step it, one seeded random generator so the same seed grows the same world on every " +
|
|
8
|
+
"device, a tick loop on its own clock with play, pause, step and speed, the grid painted as pixels " +
|
|
9
|
+
"through ImageData in the app's theme colours, dials for the rates, a census on a slow clock, and " +
|
|
10
|
+
"kept moments as recipes (seed, dials, tick, recorded taps) that replay into a living gallery. " +
|
|
11
|
+
"ecosystem, terrarium, ant farm, game of life, cellular automaton, falling sand, forest fire, " +
|
|
12
|
+
"boids, flocking, simulation, petri dish, predator prey, evolution, artificial life, screensaver world",
|
|
13
|
+
cues: [
|
|
14
|
+
"ecosystem",
|
|
15
|
+
"terrarium",
|
|
16
|
+
"ant farm",
|
|
17
|
+
"ant colony",
|
|
18
|
+
"game of life",
|
|
19
|
+
"conway",
|
|
20
|
+
"cellular automaton",
|
|
21
|
+
"cellular automata",
|
|
22
|
+
"automaton",
|
|
23
|
+
"falling sand",
|
|
24
|
+
"sand simulation",
|
|
25
|
+
"forest fire",
|
|
26
|
+
"boids",
|
|
27
|
+
"flocking",
|
|
28
|
+
"flock of",
|
|
29
|
+
"petri dish",
|
|
30
|
+
"predator",
|
|
31
|
+
"prey",
|
|
32
|
+
"artificial life",
|
|
33
|
+
"a-life",
|
|
34
|
+
"simulation",
|
|
35
|
+
"simulate",
|
|
36
|
+
"evolve",
|
|
37
|
+
"evolution sim",
|
|
38
|
+
"aquarium sim",
|
|
39
|
+
"fish tank",
|
|
40
|
+
"langton",
|
|
41
|
+
"turmite",
|
|
42
|
+
"weather simulation",
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=worlds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worlds.js","sourceRoot":"","sources":["../../jsr/llms/worlds.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,kGAAkG;QAClG,mGAAmG;QACnG,mGAAmG;QACnG,oGAAoG;QACpG,oGAAoG;QACpG,mGAAmG;QACnG,gGAAgG;QAChG,+FAA+F;QAC/F,uGAAuG;IACzG,IAAI,EAAE;QACJ,WAAW;QACX,WAAW;QACX,UAAU;QACV,YAAY;QACZ,cAAc;QACd,QAAQ;QACR,oBAAoB;QACpB,mBAAmB;QACnB,WAAW;QACX,cAAc;QACd,iBAAiB;QACjB,aAAa;QACb,OAAO;QACP,UAAU;QACV,UAAU;QACV,YAAY;QACZ,UAAU;QACV,MAAM;QACN,iBAAiB;QACjB,QAAQ;QACR,YAAY;QACZ,UAAU;QACV,QAAQ;QACR,eAAe;QACf,cAAc;QACd,WAAW;QACX,SAAS;QACT,SAAS;QACT,oBAAoB;KACrB;CACF,CAAC"}
|