@vibes.diy/prompts 6.1.2 → 6.2.0

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/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from "./themes/index.js";
8
8
  export { parseContent } from "./segment-parser.js";
9
9
  export { normalizeComponentExports, transformImports, coreImportMap } from "./component-transforms.js";
10
10
  export { buildSchemaSystemMessage } from "./build-schema-prompt.js";
11
+ export { allConfigs } from "./llms/index.js";
package/index.js CHANGED
@@ -8,4 +8,5 @@ export * from "./themes/index.js";
8
8
  export { parseContent } from "./segment-parser.js";
9
9
  export { normalizeComponentExports, transformImports, coreImportMap } from "./component-transforms.js";
10
10
  export { buildSchemaSystemMessage } from "./build-schema-prompt.js";
11
+ export { allConfigs } from "./llms/index.js";
11
12
  //# 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,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEvG,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../jsr/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEvG,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAIpE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
package/llms/calendar.js CHANGED
@@ -2,5 +2,6 @@ export const calendarConfig = {
2
2
  name: "calendar",
3
3
  label: "calendar-ics",
4
4
  description: "live calendar subscriptions (webcal/.ics): serve each user's dated items — favorites, RSVPs, picks, bookings — as a phone-calendar feed that updates automatically as they add more; includes the backend.js aggregation recipe and the iOS-proof ICS format rules",
5
+ cues: ["calendar", "webcal", "ics", "calendar feed", "calendar subscription", "rsvp", "ical"],
5
6
  };
6
7
  //# sourceMappingURL=calendar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../jsr/llms/calendar.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,oQAAoQ;CACvQ,CAAC"}
1
+ {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../jsr/llms/calendar.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,oQAAoQ;IACtQ,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,CAAC;CAC9F,CAAC"}
package/llms/d3.js CHANGED
@@ -2,6 +2,25 @@ export const d3Config = {
2
2
  name: "d3",
3
3
  label: "D3.js",
4
4
  description: "D3.js data visualization library for creating interactive charts, graphs, maps, and data-driven documents using SVG, HTML, CSS. Includes scales, selections, transitions, animations, force simulations, geographic projections, data binding, DOM manipulation, data viz, dataviz",
5
+ cues: [
6
+ "chart",
7
+ "charts",
8
+ "graph",
9
+ "graphs",
10
+ "plot",
11
+ "plots",
12
+ "d3",
13
+ "visualization",
14
+ "visualisation",
15
+ "dataviz",
16
+ "data viz",
17
+ "diagram",
18
+ "histogram",
19
+ "scatter",
20
+ "map",
21
+ "maps",
22
+ "geographic",
23
+ ],
5
24
  importModule: "d3",
6
25
  importName: "d3",
7
26
  importType: "namespace",
package/llms/d3.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"d3.js","sourceRoot":"","sources":["../../jsr/llms/d3.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAc;IACjC,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,OAAO;IACd,WAAW,EACT,oRAAoR;IACtR,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,WAAW;CACxB,CAAC"}
1
+ {"version":3,"file":"d3.js","sourceRoot":"","sources":["../../jsr/llms/d3.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAc;IACjC,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,OAAO;IACd,WAAW,EACT,oRAAoR;IACtR,IAAI,EAAE;QACJ,OAAO;QACP,QAAQ;QACR,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,IAAI;QACJ,eAAe;QACf,eAAe;QACf,SAAS;QACT,UAAU;QACV,SAAS;QACT,WAAW;QACX,SAAS;QAGT,KAAK;QACL,MAAM;QACN,YAAY;KACb;IACD,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,WAAW;CACxB,CAAC"}
package/llms/image-gen.js CHANGED
@@ -2,6 +2,20 @@ export const imageGenConfig = {
2
2
  name: "image-gen",
3
3
  label: "Image Generation",
4
4
  description: "Generate and edit images",
5
+ cues: [
6
+ "image",
7
+ "images",
8
+ "img",
9
+ "photo",
10
+ "photos",
11
+ "picture",
12
+ "pictures",
13
+ "avatar",
14
+ "illustration",
15
+ "logo",
16
+ "image upload",
17
+ "upload a photo",
18
+ ],
5
19
  importModule: "use-vibes",
6
20
  importName: "ImgGen",
7
21
  };
@@ -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,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,YAAY,EAAE,WAAW;IACzB,UAAU,EAAE,QAAQ;CACrB,CAAC"}
package/llms/image-gen.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Generate and edit images from a text prompt. Each generated image lands as a file ref on the doc — display reads the platform-minted URL via `_files`.
4
4
 
5
+ **When to use it:** reach for `<ImgGen>` when a picture adds real value — items whose identity includes an image (cards, creatures, products, covers), user-personalized art (avatars, portraits from a photo), or apps whose whole point is imagery. Most text/data apps (lists, trackers, notes, forms) need **no** images — leave the import unused rather than decorating with gratuitous pictures.
6
+
5
7
  ## Basic Usage
6
8
 
7
9
  Start with a minimal image generation component:
@@ -51,7 +53,20 @@ export default function App() {
51
53
  >>>>>>> REPLACE
52
54
  ```
53
55
 
54
- The input image is automatically resized (max 1024px) and compressed as JPEG before sending. img2img is currently supported on `prodia/*` models.
56
+ The input image is automatically resized (max 1024px) and compressed as JPEG before sending.
57
+
58
+ `images` accepts **either** a raw `File` (fresh from an `<input type="file">`) **or** a stored Fireproof file ref — anything shaped like `{ file: () => Promise<File> }` passes straight through. So if the app has already saved the upload onto a doc, feed it back directly:
59
+
60
+ ```jsx
61
+ // doc was saved earlier with: database.put({ ..., _files: { photo: file } })
62
+ <ImgGen prompt="Turn this pet into a cute cartoon character" images={[doc._files.photo]} _id={doc._id} database={database} />
63
+ ```
64
+
65
+ Do **not** invent wrappers like `images={x?.file ? something : undefined}` — pass the `_files` entry itself. If the stored ref might be absent, gate the whole `<ImgGen>` mount on it instead: `{doc._files?.photo && <ImgGen images={[doc._files.photo]} ... />}`.
66
+
67
+ **Displaying an img2img result later** (gallery, detail view, reload): render by `_id` and do NOT re-pass `images` — `<ImgGen _id={doc._id} database={database} showControls={false} />` shows the stored version. Passing `images` on a doc that already has one forces a fresh generation instead of displaying the saved result. Generate once with `images`, display forever with `_id` alone.
68
+
69
+ Do **not** set `model` for img2img: when an input image is present the platform automatically selects its image-**edit** default, which is tuned to produce edits faithful to the source. An explicit `model` override bypasses that routing — only use one when the app has a specific, stated reason.
55
70
 
56
71
  ## Loading a Specific Doc
57
72
 
@@ -142,7 +157,7 @@ Model ids follow the `provider/model-name` form from the platform's model catalo
142
157
  #### Props
143
158
 
144
159
  - `prompt`: text prompt (required unless `_id` is provided)
145
- - `images`: array of `File` objects for img2img (uses first image)
160
+ - `images`: array of `File` objects **or stored `_files` refs** for img2img (uses first image; only pass while generating — display stored results via `_id`)
146
161
  - `_id`: load a specific doc instead of generating
147
162
  - `database`: Fireproof db name or instance (default `"ImgGen"`)
148
163
  - `className`, `alt`, `style`: standard image styling
package/llms/three-js.js CHANGED
@@ -2,6 +2,7 @@ export const threeJsConfig = {
2
2
  name: "three-js",
3
3
  label: "Three.js",
4
4
  description: "Three.js 3D graphics library for WebGL rendering: mesh geometry, materials, lighting, animation, cameras, textures, GLSL shaders, GLTF/OBJ/FBX model loading, physics, particle systems, post-processing, visual effects, 3js",
5
+ cues: ["3d", "three.js", "threejs", "3js", "webgl", "shader", "shaders", "mesh", "gltf", "3d model", "3d scene"],
5
6
  importModule: "three",
6
7
  importName: "THREE",
7
8
  importType: "namespace",
@@ -1 +1 @@
1
- {"version":3,"file":"three-js.js","sourceRoot":"","sources":["../../jsr/llms/three-js.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,+NAA+N;IACjO,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,WAAW;CACxB,CAAC"}
1
+ {"version":3,"file":"three-js.js","sourceRoot":"","sources":["../../jsr/llms/three-js.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,+NAA+N;IACjO,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC;IAChH,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,WAAW;CACxB,CAAC"}
package/llms/types.d.ts CHANGED
@@ -2,6 +2,7 @@ export interface LlmConfig {
2
2
  name: string;
3
3
  label: string;
4
4
  description: string;
5
+ cues?: string[];
5
6
  importModule?: string;
6
7
  importName?: string;
7
8
  importType?: "named" | "namespace" | "default";
package/llms/voxel.js CHANGED
@@ -11,6 +11,7 @@ export const voxelConfig = {
11
11
  "multi-file project split for bigger games. " +
12
12
  "minecraft, voxel, block world, sandbox, blocks, mining, building, first-person, 3d game, " +
13
13
  "procedural world, chunks, terrain, overworld, creative mode, survival, crafting, nether",
14
+ cues: ["voxel", "voxels", "minecraft", "block world", "blocky", "sandbox game"],
14
15
  importModule: "three",
15
16
  importName: "THREE",
16
17
  importType: "namespace",
package/llms/voxel.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"voxel.js","sourceRoot":"","sources":["../../jsr/llms/voxel.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,WAAW,EACT,yFAAyF;QACzF,6FAA6F;QAC7F,4FAA4F;QAC5F,yFAAyF;QACzF,+FAA+F;QAC/F,2FAA2F;QAC3F,yFAAyF;QACzF,6CAA6C;QAC7C,2FAA2F;QAC3F,yFAAyF;IAC3F,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,WAAW;CACxB,CAAC"}
1
+ {"version":3,"file":"voxel.js","sourceRoot":"","sources":["../../jsr/llms/voxel.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,WAAW,EACT,yFAAyF;QACzF,6FAA6F;QAC7F,4FAA4F;QAC5F,yFAAyF;QACzF,+FAA+F;QAC/F,2FAA2F;QAC3F,yFAAyF;QACzF,6CAA6C;QAC7C,2FAA2F;QAC3F,yFAAyF;IAC3F,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,CAAC;IAC/E,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,WAAW;CACxB,CAAC"}
package/llms/web-audio.js CHANGED
@@ -2,5 +2,19 @@ export const webAudioConfig = {
2
2
  name: "web-audio",
3
3
  label: "Web Audio API",
4
4
  description: "Web Audio fundamentals; echo/delay with effects in the feedback path; mic monitoring with a metronome; audio‑clock scheduling; timing design for multi‑channel drum machines and MIDI synths with accurate voice overlap.",
5
+ cues: [
6
+ "audio",
7
+ "sound",
8
+ "sounds",
9
+ "music",
10
+ "synth",
11
+ "synthesizer",
12
+ "oscillator",
13
+ "metronome",
14
+ "drum machine",
15
+ "midi",
16
+ "melody",
17
+ "web audio",
18
+ ],
5
19
  };
6
20
  //# sourceMappingURL=web-audio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-audio.js","sourceRoot":"","sources":["../../jsr/llms/web-audio.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,2NAA2N;CAC9N,CAAC"}
1
+ {"version":3,"file":"web-audio.js","sourceRoot":"","sources":["../../jsr/llms/web-audio.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,2NAA2N;IAC7N,IAAI,EAAE;QACJ,OAAO;QACP,OAAO;QACP,QAAQ;QACR,OAAO;QACP,OAAO;QACP,aAAa;QACb,YAAY;QACZ,WAAW;QACX,cAAc;QACd,MAAM;QACN,QAAQ;QACR,WAAW;KACZ;CACF,CAAC"}
package/llms/webxr.js CHANGED
@@ -6,6 +6,19 @@ export const webxrConfig = {
6
6
  "controller and hand-tracking events, PBR materials, Quest performance patterns. " +
7
7
  "babylon, babylonjs, WebXR, VR, AR, spatial computing, immersive, mixed reality, xr, " +
8
8
  "augmented reality, virtual reality, Quest, Vision Pro",
9
+ cues: [
10
+ "webxr",
11
+ "vr",
12
+ "ar",
13
+ "virtual reality",
14
+ "augmented reality",
15
+ "babylon",
16
+ "immersive",
17
+ "mixed reality",
18
+ "headset",
19
+ "quest",
20
+ "vision pro",
21
+ ],
9
22
  importModule: "@babylonjs/core",
10
23
  importName: "BABYLON",
11
24
  importType: "namespace",
package/llms/webxr.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"webxr.js","sourceRoot":"","sources":["../../jsr/llms/webxr.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,gFAAgF;QAChF,4FAA4F;QAC5F,kFAAkF;QAClF,sFAAsF;QACtF,uDAAuD;IACzD,YAAY,EAAE,iBAAiB;IAC/B,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,WAAW;CACxB,CAAC"}
1
+ {"version":3,"file":"webxr.js","sourceRoot":"","sources":["../../jsr/llms/webxr.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,gFAAgF;QAChF,4FAA4F;QAC5F,kFAAkF;QAClF,sFAAsF;QACtF,uDAAuD;IACzD,IAAI,EAAE;QACJ,OAAO;QACP,IAAI;QACJ,IAAI;QACJ,iBAAiB;QACjB,mBAAmB;QACnB,SAAS;QACT,WAAW;QACX,eAAe;QACf,SAAS;QACT,OAAO;QACP,YAAY;KACb;IACD,YAAY,EAAE,iBAAiB;IAC/B,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,WAAW;CACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/prompts",
3
- "version": "6.1.2",
3
+ "version": "6.2.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "description": "",
@@ -24,9 +24,9 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@adviser/cement": "~0.5.34",
27
- "@vibes.diy/call-ai-v2": "^6.1.2",
28
- "@vibes.diy/identity": "^6.1.2",
29
- "@vibes.diy/use-vibes-types": "^6.1.2",
27
+ "@vibes.diy/call-ai-v2": "^6.2.0",
28
+ "@vibes.diy/identity": "^6.2.0",
29
+ "@vibes.diy/use-vibes-types": "^6.2.0",
30
30
  "arktype": "~2.2.3",
31
31
  "json-schema-faker": "~0.6.2"
32
32
  },