@vibes.diy/prompts 14.3.320 → 14.3.321
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 +2 -2
- package/llms/backend.md +4 -2
- package/llms/image-gen.md +2 -0
- package/llms/index.d.ts +2 -1
- package/llms/index.js +3 -0
- package/llms/index.js.map +1 -1
- package/llms/keepsake.md +3 -2
- package/llms/live-rooms.md +2 -0
- package/llms/maps.md +2 -0
- package/llms/occasion.md +5 -3
- package/llms/physics.md +2 -0
- package/llms/reskin.md +8 -4
- package/llms/stripe.md +2 -0
- package/llms/surface-stage.js +1 -1
- package/llms/surface-stage.js.map +1 -1
- package/llms/surface-stage.md +15 -1
- package/llms/touch-games.md +2 -0
- package/llms/use-viewer.md +2 -0
- package/llms/vibe-tools.d.ts +2 -0
- package/llms/vibe-tools.js +7 -0
- package/llms/vibe-tools.js.map +1 -0
- package/llms/vibe-tools.md +246 -0
- package/package.json +5 -5
- package/system-prompt-initial-instant.md +1 -1
- package/system-prompt-initial-oneshot.md +3 -1
- package/system-prompt-initial.md +3 -1
- package/system-prompt.md +3 -1
package/llms/access.md
CHANGED
|
@@ -28,7 +28,7 @@ writes.
|
|
|
28
28
|
|
|
29
29
|
`(doc, oldDoc, user: UserContext | null, ctx: Helpers) => AccessDescriptor` where `doc` is the document being written, `oldDoc` is the previous version (null for new documents), `user` is the authenticated user or `null` for anonymous requests, and `ctx` provides server helpers for checking materialized state.
|
|
30
30
|
|
|
31
|
-
**UserContext:** `{ userHandle: string, displayName?: string, backend?: "scheduled" | "onChange" | "fetch" }` — `userHandle` is stable unique id (use for all auth checks), `displayName` is display only (never use for identity checks), and `backend` is present only when the app's own `backend.js` issued this write, naming the handler that did (`scheduled`, `onChange` or `
|
|
31
|
+
**UserContext:** `{ userHandle: string, displayName?: string, backend?: "scheduled" | "onChange" | "fetch" | "tool" }` — `userHandle` is stable unique id (use for all auth checks), `displayName` is display only (never use for identity checks), and `backend` is present only when the app's own `backend.js` issued this write, naming the handler that did (`scheduled`, `onChange`, `fetch`, or `tool` for a vibe tool acting for its caller). Every write from a browser or the CLI arrives with `backend` absent, the app owner's own writes included — it says where a write came from, never who the writer is. Gate on `ctx.requireBackend(...)` rather than throwing on `user.backend` yourself: a bare `throw` on `user.backend` refuses the hand-repair lane admin mode exists for, and returns no descriptor for the write it refused.
|
|
32
32
|
|
|
33
33
|
**Helpers (`ctx`):** Opaque closures over the materialized grant state. They throw or pass — you cannot enumerate channels, list members, or iterate grants. They also throw when `user` is null: `ctx.requireAccess(channelId)` throws if user is not in the channel, `ctx.requireRole(roleName)` throws if user is not in the role, and `ctx.requireBackend()` throws unless the app's own `backend.js` issued this write — `ctx.requireBackend("scheduled")` narrows that to one handler. `ctx.requireBackend` reads the write's origin, not its writer, so it also passes when nobody is signed in (a guest calling your `fetch` handler, or an `onChange` run a signed-out write triggered), while `user` stays null and the write still needs `allowAnonymous: true`. All three no-op under admin mode.
|
|
34
34
|
|
|
@@ -318,7 +318,7 @@ The owner-handle version of this rule looks equivalent and is not. The person ho
|
|
|
318
318
|
|
|
319
319
|
This is not a wall against the app's own maintainer. `ctx.requireBackend` no-ops under admin mode, the same way `ctx.requireAccess` and `ctx.requireRole` do, so the owner or platform support repairing a document by hand passes the gate — and the function still runs, so the repaired doc gets the app's own channels and grants and lands routed. That is the point: a document nobody can hand-fix is a support dead end.
|
|
320
320
|
|
|
321
|
-
Name the handler. `ctx.requireBackend()` with no argument admits any of
|
|
321
|
+
Name the handler. `ctx.requireBackend()` with no argument admits any of them, and two of them act for a caller: `fetch` is a route any visitor can call, and `tool` runs for whoever an assistant is acting for. A bare `ctx.requireBackend()` on a run's state doc therefore reads as "only my machinery" while admitting anyone who can reach your `_api` endpoint, so name the handler you mean unless you genuinely accept them all.
|
|
322
322
|
|
|
323
323
|
One trap: applying a release's `seed.json` is the **platform** writing, not the app's `backend.js`, so a seeded document arrives with `backend` absent and `ctx.requireBackend` turns it away. Seed that type under a permissive rule, then tighten it once the app is running — or leave the machinery's own documents out of the seed entirely, which is usually what they want.
|
|
324
324
|
|
package/llms/backend.md
CHANGED
|
@@ -59,7 +59,8 @@ 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
60
|
`backend.js` from `App.jsx` — the browser can't run it. Each handler is a
|
|
61
61
|
top-level export (`export async function fetch(request, ctx)`, `scheduled`,
|
|
62
|
-
`onChange`); a `backend.js` that
|
|
62
|
+
`onChange`, or the static `tools` of the vibe-tools skill); a `backend.js` that
|
|
63
|
+
exports none of them saves as an error.
|
|
63
64
|
|
|
64
65
|
## Writes go through the access function
|
|
65
66
|
|
|
@@ -71,6 +72,7 @@ the exact gate user writes pass through — acting as the **trigger's identity**
|
|
|
71
72
|
| `onChange` | the user whose write triggered the event |
|
|
72
73
|
| `fetch` | the signed-in caller when verifiable — treat as possibly anonymous |
|
|
73
74
|
| `scheduled` | the app owner, **in admin mode** |
|
|
75
|
+
| `tools` | the person the tool is used for, never admin (see vibe-tools) |
|
|
74
76
|
|
|
75
77
|
So the permission model stays in `access.js`, and `backend.js` writes must be
|
|
76
78
|
allowed by it for the acting identity. If a `fetch` handler writes, make sure
|
|
@@ -78,7 +80,7 @@ the access function permits that write for an anonymous caller (or design the
|
|
|
78
80
|
write to happen in `onChange`/`scheduled`, which carry stronger identities).
|
|
79
81
|
|
|
80
82
|
The access function can tell where a write came from: `user.backend` names the
|
|
81
|
-
handler that issued it — `"scheduled"`, `"onChange"` or `"
|
|
83
|
+
handler that issued it — `"scheduled"`, `"onChange"`, `"fetch"` or `"tool"` — and is
|
|
82
84
|
absent for every write from a browser or the CLI, the app owner's own included.
|
|
83
85
|
What it does **not** change is identity. An `onChange` write still acts as the
|
|
84
86
|
triggering user, so anything it may write, that user's own client could write
|
package/llms/image-gen.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# ImgGen Component
|
|
2
2
|
|
|
3
|
+
**The moment this is for: a picture appears that nobody had a minute ago.** A band's gig poster gets its artwork, every card in a homemade deck gets its creature, a kid's story grows an illustration for each page, a listing gets the photo it was missing. The platform runs the image model and stores each picture as a version tied to the record it belongs to, so it is there for everyone who opens that record.
|
|
4
|
+
|
|
3
5
|
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
6
|
|
|
5
7
|
**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.
|
package/llms/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { chessVariantsConfig } from "./chess-variants.js";
|
|
|
7
7
|
export { surfaceBoardConfig } from "./surface-board.js";
|
|
8
8
|
export { ownerSecretConfig } from "./owner-secret.js";
|
|
9
9
|
export { groupPlanConfig } from "./group-plan.js";
|
|
10
|
+
export { vibeToolsConfig } from "./vibe-tools.js";
|
|
10
11
|
export { thirdPartyEmbedConfig } from "./third-party-embed.js";
|
|
11
12
|
export { weatherConfig } from "./weather.js";
|
|
12
13
|
export { keepsakeConfig } from "./keepsake.js";
|
|
@@ -85,7 +86,7 @@ export { uiTestimonialsConfig } from "./ui-testimonials.js";
|
|
|
85
86
|
export type { LlmConfig, SkillCredential, SkillEgress } from "./types.js";
|
|
86
87
|
export { cueMatches, cueMatchedSkills, type CueCatalogEntry } from "./cues.js";
|
|
87
88
|
export { expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames, type NeedsCatalogEntry } from "./needs.js";
|
|
88
|
-
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, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
|
|
89
|
+
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, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
|
|
89
90
|
export { mapsConfig } from "./maps.js";
|
|
90
91
|
export declare const SKILL_ALIASES: ReadonlyMap<string, string>;
|
|
91
92
|
export declare function canonicalSkillName(name: string): string;
|
package/llms/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { chessVariantsConfig } from "./chess-variants.js";
|
|
|
7
7
|
import { surfaceBoardConfig } from "./surface-board.js";
|
|
8
8
|
import { ownerSecretConfig } from "./owner-secret.js";
|
|
9
9
|
import { groupPlanConfig } from "./group-plan.js";
|
|
10
|
+
import { vibeToolsConfig } from "./vibe-tools.js";
|
|
10
11
|
import { thirdPartyEmbedConfig } from "./third-party-embed.js";
|
|
11
12
|
import { weatherConfig } from "./weather.js";
|
|
12
13
|
import { keepsakeConfig } from "./keepsake.js";
|
|
@@ -90,6 +91,7 @@ export { chessVariantsConfig } from "./chess-variants.js";
|
|
|
90
91
|
export { surfaceBoardConfig } from "./surface-board.js";
|
|
91
92
|
export { ownerSecretConfig } from "./owner-secret.js";
|
|
92
93
|
export { groupPlanConfig } from "./group-plan.js";
|
|
94
|
+
export { vibeToolsConfig } from "./vibe-tools.js";
|
|
93
95
|
export { thirdPartyEmbedConfig } from "./third-party-embed.js";
|
|
94
96
|
export { weatherConfig } from "./weather.js";
|
|
95
97
|
export { keepsakeConfig } from "./keepsake.js";
|
|
@@ -213,6 +215,7 @@ export const allConfigs = [
|
|
|
213
215
|
stripeSubscriptionsConfig,
|
|
214
216
|
squareConfig,
|
|
215
217
|
groupPlanConfig,
|
|
218
|
+
vibeToolsConfig,
|
|
216
219
|
blocklyConfig,
|
|
217
220
|
strudelConfig,
|
|
218
221
|
hydraConfig,
|
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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AkB,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;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"}
|
package/llms/keepsake.md
CHANGED
|
@@ -17,7 +17,8 @@ party) lists them below the studio; picking one opens it there.
|
|
|
17
17
|
element with a fixed shape (`aspect-ratio: 5 / 7` for a card, `2 / 1` for a
|
|
18
18
|
ticket, `1 / 1.414` for an A-size poster) holds the words as `div`s and
|
|
19
19
|
`span`s with the app's own classes (`.keepsake-title`, `.keepsake-meta`), set
|
|
20
|
-
in the display face,
|
|
20
|
+
in the display face (`var(--font-pick, <the face>)`, so a font picked in the
|
|
21
|
+
Look tab reaches the keepsake too), with the border, ornament, paper and stamp drawn in the
|
|
21
22
|
`SKIN` string. It is never a `Card`, and its words are never `Heading`s:
|
|
22
23
|
the hook classes belong to the screen, the keepsake has its own.
|
|
23
24
|
- **The components are the editing controls around it.** `Field` and `Input`
|
|
@@ -39,7 +40,7 @@ const SKIN = `
|
|
|
39
40
|
@media (min-width: 48rem) { [data-reskin] .studio { grid-template-columns: 22rem 1fr; align-items: start; } [data-reskin] .studio > .keepsake { order: 2; } }
|
|
40
41
|
[data-reskin] .keepsake { aspect-ratio: 5 / 7; width: min(100%, 26rem); margin-inline: auto; padding: 12%; display: grid; place-content: center; gap: 14px;
|
|
41
42
|
text-align: center; background: var(--surface); color: var(--ink); outline: 1px solid var(--ink); outline-offset: -14px;
|
|
42
|
-
box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 18%, transparent); font-family: 'Fraunces', serif; }
|
|
43
|
+
box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 18%, transparent); font-family: var(--font-pick, 'Fraunces', serif); }
|
|
43
44
|
[data-reskin] .keepsake-eyebrow { font-style: italic; color: var(--text-secondary); }
|
|
44
45
|
[data-reskin] .keepsake-title { font-size: clamp(28px, 7vw, 44px); font-weight: 600; line-height: 1.05; }
|
|
45
46
|
[data-reskin] .keepsake-rule { width: 40%; height: 1px; margin-inline: auto; background: var(--purple); }
|
package/llms/live-rooms.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Live rooms — a place people are in at the same time
|
|
2
2
|
|
|
3
|
+
**The moment this is for: everyone is here at once and can see it.** The game table fills as cousins open the link, a watch party counts down to the same second, a band's set list reorders while four phones look on, a standup sees who has joined. The link is the invitation: opening it lets anyone watch, and signing in puts them in the room, since presence is who is here now.
|
|
4
|
+
|
|
3
5
|
A room is a place several people are in at once: a game table, a shared build,
|
|
4
6
|
a chat thread, a watch party, a standup. Every room has the same four parts,
|
|
5
7
|
and each part has one home:
|
package/llms/maps.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Maps — a world overview, or a street map of places near the person
|
|
2
2
|
|
|
3
|
+
**The moment this is for: someone sees where, at a glance.** A traveler's year lights up country by country, friends pick tonight's taco spot from the pins around them, a run club sees Saturday's route, a neighbor finds the nearest little free library. Both maps come with the platform, the outlines bundled and the street map drawn by the platform (Google's map on most pages, the free map elsewhere, with no key in the app's code), so the first screen opens full of real places.
|
|
4
|
+
|
|
3
5
|
Maps come in two shapes, and the ask picks one. Countries, travel journals,
|
|
4
6
|
territory games and choropleths get the **world overview** below, drawn from
|
|
5
7
|
bundled outlines. An ask about places someone can walk or drive to (restaurants,
|
package/llms/occasion.md
CHANGED
|
@@ -28,8 +28,10 @@ colour, and keeps ink on every fill at 4.5:1.
|
|
|
28
28
|
`@import` in the `SKIN`, on `.ui-h1 .ui-h2 .ui-eyebrow` and the hero: a
|
|
29
29
|
spooky hand for Halloween (`Creepster`, `Butcherman`, or a softer `Fredoka`
|
|
30
30
|
for a family night), a storybook serif for the holidays, a round bubbly face
|
|
31
|
-
for a kid's party, an elegant serif or script for a wedding.
|
|
32
|
-
|
|
31
|
+
for a kid's party, an elegant serif or script for a wedding. The heading face
|
|
32
|
+
reads the Font card's pick first, `var(--font-pick, 'Creepster', cursive)`, so
|
|
33
|
+
a font picked in the Look tab reaches the headings too. Body text stays on a
|
|
34
|
+
plain readable face.
|
|
33
35
|
|
|
34
36
|
**3. Motif — the day's objects, repeated.** Pick the two or three things
|
|
35
37
|
everyone pictures (pumpkins, bats, candy; snowflakes, lights, ribbon;
|
|
@@ -83,7 +85,7 @@ const SKIN = `
|
|
|
83
85
|
radial-gradient(1.5px 1.5px at 40% 70%, #e8c66a99 50%, transparent), radial-gradient(1px 1px at 85% 60%, #fff7 50%, transparent), var(--bg);
|
|
84
86
|
background-size: 180px 180px, 220px 220px, 260px 260px, 200px 200px, auto;
|
|
85
87
|
}
|
|
86
|
-
[data-reskin] .ui-h1, [data-reskin] .ui-h2, [data-reskin] .hero-when { font-family: 'Playfair Display', serif; }
|
|
88
|
+
[data-reskin] .ui-h1, [data-reskin] .ui-h2, [data-reskin] .hero-when { font-family: var(--font-pick, 'Playfair Display', serif); }
|
|
87
89
|
[data-reskin] .hero { text-align: center; padding: 48px 16px 24px; }
|
|
88
90
|
[data-reskin] .hero-when { font-style: italic; color: var(--purple); font-size: 20px; }
|
|
89
91
|
[data-reskin] .clock { font-family: 'Playfair Display', serif; font-size: clamp(40px, 12vw, 88px); color: var(--purple); letter-spacing: 0.04em; }
|
package/llms/physics.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Physics — things with mass, built with Matter.js
|
|
2
2
|
|
|
3
|
+
**The moment this is for: someone lets go and watches what happens.** A paper boat rides the gutter a kid drew, a tower comes down in one good flick, a friend's plinko chip lands on the big number, the words of a birthday message tumble into a heap. The engine brings weight, bounce and collision, so every shape on screen is a body it moves, and the fun the person asked for is in which pieces exist and where they start.
|
|
4
|
+
|
|
3
5
|
When someone asks for physics, gravity, things that bounce, collide, tumble or
|
|
4
6
|
pile up, a marble run, a Rube Goldberg machine, plinko, a catapult or
|
|
5
7
|
slingshot, dominoes, a tower to knock down, pinball, a ragdoll, a page where
|
package/llms/reskin.md
CHANGED
|
@@ -56,7 +56,10 @@ open modal and dropdown included.
|
|
|
56
56
|
**3. The skin is one module-level CSS string.** Declare `const SKIN = \`…\``
|
|
57
57
|
above the component and render `<style>{SKIN}</style>` as the wrapper's first
|
|
58
58
|
child. Web fonts load from Google Fonts with an `@import` at the top of that
|
|
59
|
-
string.
|
|
59
|
+
string. A heading face reads the Font card's pick first,
|
|
60
|
+
`font-family: var(--font-pick, 'Silkscreen', monospace)`, so the skin's face is
|
|
61
|
+
the default and a font the person picks in the Look tab reaches every heading
|
|
62
|
+
too. Plain elements the skin adds — a title bar, a menu strip, a masthead
|
|
60
63
|
rule, a marquee — are ordinary `div`s and `span`s that take classes freely,
|
|
61
64
|
styled in the same string.
|
|
62
65
|
|
|
@@ -113,7 +116,7 @@ const SKIN = `
|
|
|
113
116
|
[data-reskin] .titlebar { height: 20px; border-bottom: 1px solid #000000; text-align: center; font-family: 'Silkscreen', monospace; font-size: 12px; line-height: 20px;
|
|
114
117
|
background: repeating-linear-gradient(#ffffff 0 1px, #000000 1px 2px); }
|
|
115
118
|
[data-reskin] .titlebar span { background: #ffffff; padding: 0 8px; }
|
|
116
|
-
[data-reskin] .ui-h1, [data-reskin] .ui-h2 { font-family: 'Silkscreen', monospace; letter-spacing: 0; }
|
|
119
|
+
[data-reskin] .ui-h1, [data-reskin] .ui-h2 { font-family: var(--font-pick, 'Silkscreen', monospace); letter-spacing: 0; }
|
|
117
120
|
[data-reskin] .ui-card, [data-reskin] .ui-rowcard { border: 1px solid #000000; }
|
|
118
121
|
[data-reskin] .ui-btn { border: 1px solid #000000; background: #ffffff; color: #000000; border-radius: 6px; }
|
|
119
122
|
[data-reskin] .ui-btn:active { background: #000000; color: #ffffff; }
|
|
@@ -233,8 +236,9 @@ win dialog). The board-games skill carries the worked example.
|
|
|
233
236
|
Name the five things a stranger would recognise and set each one:
|
|
234
237
|
|
|
235
238
|
- **Ground and surfaces:** `--bg`, `--surface`, `--ink`, `--text-secondary`.
|
|
236
|
-
- **Type:** one display face for `.ui-h1`/`.ui-h2`/`.ui-eyebrow`,
|
|
237
|
-
face on `--font-family`, the
|
|
239
|
+
- **Type:** one display face for `.ui-h1`/`.ui-h2`/`.ui-eyebrow`, read through
|
|
240
|
+
`var(--font-pick, <the face>)`, one body face on `--font-family`, the
|
|
241
|
+
heading scale and tracking.
|
|
238
242
|
- **Edges:** corners (`--r-card`, `--r-control`, `--r-pill`), borders on the
|
|
239
243
|
hook classes, and the composite surfaces (`none` for flat, a hard offset for
|
|
240
244
|
a print or brutalist feel).
|
package/llms/stripe.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Stripe payments — take real money into the owner's own Stripe account
|
|
2
2
|
|
|
3
|
+
**The moment this is for: someone pays, and the money is in the owner's own account.** The regulars settle the tab from their table, a neighbor chips in for the block-party band, a fan who followed a link buys the last print, a caller pays for the reading they just had. The built-in way there: the payer arrives as a guest, pays on Stripe's own page, and the order turns paid when Stripe says so. This recipe is one payment made at the press of Pay, so a running tab, a balance kept in the app or by-the-minute charging lands on that shape too, as a pack bought up front or one payment when the thing is done.
|
|
4
|
+
|
|
3
5
|
When someone asks to **take money** — pay the bill at a table, split the check,
|
|
4
6
|
take tips or donations, charge for a booking, collect dues, sell tickets, take
|
|
5
7
|
a deposit, sell a download, have a client pay an invoice — build it on **Stripe
|
package/llms/surface-stage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const surfaceStageConfig = {
|
|
2
2
|
name: "surface-stage",
|
|
3
3
|
label: "Stage surface",
|
|
4
|
-
description: "A picture set in the page: the stage drawn in its own medium (Three.js for depth and 3D infographics, SVG for flat, exact and printable, D3 for data-driven layout, canvas for pixels), framed in a Card with kit controls beside it, coloured from the theme, every target reachable by keyboard.",
|
|
4
|
+
description: "A picture set in the page: the stage drawn in its own medium (Three.js for depth and 3D infographics, SVG for flat, exact and printable, D3 for data-driven layout, canvas for pixels), framed in a Card with kit controls beside it, coloured from the theme and in the literal colours the subject names, every target reachable by keyboard.",
|
|
5
5
|
menu: false,
|
|
6
6
|
rail: "custom",
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface-stage.js","sourceRoot":"","sources":["../../jsr/llms/surface-stage.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,kBAAkB,GAAc;IAC3C,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"surface-stage.js","sourceRoot":"","sources":["../../jsr/llms/surface-stage.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,kBAAkB,GAAc;IAC3C,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,iVAAiV;IACnV,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;CACf,CAAC"}
|
package/llms/surface-stage.md
CHANGED
|
@@ -49,11 +49,25 @@ beside it: the picker, the year, Reset, Save.
|
|
|
49
49
|
|
|
50
50
|
**The stage wears the theme's colours.** SVG fills and strokes are theme utility classes:
|
|
51
51
|
`fill-card`, `fill-muted`, `fill-primary`, `fill-accent`, `fill-foreground`, `stroke-border`,
|
|
52
|
-
`stroke-foreground`. Two sides of a story are two of those tokens, and the legend beside the
|
|
52
|
+
`stroke-foreground`. Two sides of a story whose colours the subject leaves open are two of those tokens, and the legend beside the
|
|
53
53
|
stage draws its swatches with the same classes. A canvas or WebGL stage paints from the same
|
|
54
54
|
tokens resolved to colours when it mounts, so a palette change recolours every stage while its
|
|
55
55
|
shapes hold.
|
|
56
56
|
|
|
57
|
+
**A colour the subject names is painted as that colour.** When the colour is part of the meaning —
|
|
58
|
+
a district painted blue or red, the red team and the blue team, a traffic light's red, amber and
|
|
59
|
+
green — the stage paints that literal colour from a hex in its data, set on the shape's `fill`
|
|
60
|
+
attribute, and the legend swatch is a small `<svg>` square with the same `fill`. Theme classes
|
|
61
|
+
carry every fill the subject leaves open: an unpainted district, the borders, the labels, the
|
|
62
|
+
frame. A painted shape carries the hex alone, since a `fill-*` class would paint over it.
|
|
63
|
+
|
|
64
|
+
```jsx
|
|
65
|
+
const PAINT = { blue: "#2563eb", red: "#dc2626" };
|
|
66
|
+
const side = colors[d.id];
|
|
67
|
+
<path d={d.d} strokeWidth="2" fill={PAINT[side]} className={side ? "stroke-foreground" : "fill-muted stroke-foreground"} />
|
|
68
|
+
<svg viewBox="0 0 10 10" className="size-3" aria-hidden="true"><rect width="10" height="10" rx="2" fill={PAINT.blue} /></svg>
|
|
69
|
+
```
|
|
70
|
+
|
|
57
71
|
**Every target is reachable by touch and keyboard.** A shape the person taps in SVG is a labelled
|
|
58
72
|
group with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first, and the
|
|
59
73
|
`<svg>` carries `touch-manipulation select-none`:
|
package/llms/touch-games.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Touch games — the play area is the controller
|
|
2
2
|
|
|
3
|
+
**The moment this is for: a thumb on the screen and the game answering at once.** A friend on the bus finishes a lap and passes the phone, a kid beats a parent's score before dinner, someone opens the link in a queue and is playing before the queue moves.
|
|
4
|
+
|
|
3
5
|
Load this beside whatever draws the game — `three-js`, `voxel`, `physics`, `p5`, `worlds`,
|
|
4
6
|
`ui-game`, a plain `<canvas>` — whenever the app is something you play or steer in real time:
|
|
5
7
|
a runner, a racer, a flyer, a shooter, a snake, a launcher, a platformer, a pinball table, a
|
package/llms/use-viewer.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# useViewer Hook
|
|
2
2
|
|
|
3
|
+
**The moment this is for: people show up as themselves.** Teammates open the carpool sheet and see who else has a seat, players see whose name holds the Saturday court, a reader's poem hangs under their own handle. Sign-in is the platform's and is already there for every visitor, so an app's own sign-in screen is a button in the app's words wired to `requestLogin()`: the platform's sign-in opens behind it, and the handle that comes back through `viewer` is the whole account. Signing out lives in the Vibes Switch that opens from the logo, and `useViewer()` carries no sign-out member; an app asked for a sign-out button says in a line of its own that signing out is under the logo.
|
|
4
|
+
|
|
3
5
|
`useViewer()` is a **read-only window** into viewer identity. The platform owns the rules — who's the owner, who has been granted read or write — and `useViewer()` lets your app see who's signed in and render identity. You cannot grant or revoke access from code; you can only reflect the runtime's verdict in your UI.
|
|
4
6
|
|
|
5
7
|
**The current viewer's pill is system chrome — you don't build it.** The platform shows the current user inside the **Vibes Switch**, the panel that opens when you click the logo. So your app does **not** need a header pill for whoever is looking — don't render a no-prop `<ViewerTag />` just to show "who's signed in".
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const vibeToolsConfig = {
|
|
2
|
+
name: "vibe-tools",
|
|
3
|
+
label: "Vibe tools",
|
|
4
|
+
description: "The verbs a person could ask for by text instead of tapping (vote for a place, claim a slot, book a table, add a book to the list), declared in backend.js as a static `export const tools` (at most 8) so an assistant in a group chat can do them for that person. Each tool has a one-line description, typed input fields, who it is for (anyone, members, owner), and either a handler shared with the page's button through a fetch route or a declared one-record write (`key: \"caller\"` for one record per person). A tool always acts as its caller through access.js (`user.backend` is `tool`, never admin mode) and its callAI spends the caller's credits. An app whose actions only happen on the page does not need it",
|
|
5
|
+
cues: ["text the app", "ask the assistant to", "from the group chat", "vote by text", "claim by text", "tools for the agent"],
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=vibe-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vibe-tools.js","sourceRoot":"","sources":["../../jsr/llms/vibe-tools.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,eAAe,GAAc;IACxC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,ysBAAysB;IAC3sB,IAAI,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,CAAC;CAC9H,CAAC"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Vibe tools: the verbs a person can ask for by text
|
|
2
|
+
|
|
3
|
+
This doc is in view because the app has things a person does in one step that
|
|
4
|
+
they could just as well ask for in a message: vote for a place, claim a slot,
|
|
5
|
+
book a table, add a book to the list. A **tool** names one of those verbs, so an
|
|
6
|
+
assistant acting for that person (in a group chat, say) can do it for them with
|
|
7
|
+
the app's own rules. The page keeps its buttons; the tool is a second door to
|
|
8
|
+
the same action.
|
|
9
|
+
|
|
10
|
+
A tool is declared in `backend.js` as **`export const tools = { … }`**, a
|
|
11
|
+
static object whose keys are the tool names. Each tool has:
|
|
12
|
+
|
|
13
|
+
- **`description`**: one line, at most 280 characters, saying what happens in
|
|
14
|
+
the person's own words ("Vote for one place for the next meetup."). An
|
|
15
|
+
assistant reads it to decide when to use the tool, so name the result, not
|
|
16
|
+
the code.
|
|
17
|
+
- **`input`**: the fields the tool takes. A field is `"string"`, `"number"`
|
|
18
|
+
or `"boolean"`, or an object `{ type, description, optional, enum }`. At most
|
|
19
|
+
12 fields; a string is at most 2,000 characters. A field the tool does not
|
|
20
|
+
declare is refused before anything runs, and so is a wrong type or a value
|
|
21
|
+
outside `enum`.
|
|
22
|
+
- **`for`**: who may use it. `"anyone"` (the default) is anyone who can open
|
|
23
|
+
the app, `"members"` is the people it is shared with, `"owner"` is the
|
|
24
|
+
owner alone. A tool someone may not use is never even listed for them.
|
|
25
|
+
- **Either `handler` or `write`**, never both:
|
|
26
|
+
- `handler(input, ctx)` runs your code, with the same `ctx` as `fetch`.
|
|
27
|
+
- `write: { db, set, key }` saves one record and runs no code at all.
|
|
28
|
+
|
|
29
|
+
**A vibe declares at most 8 tools.** A ninth refuses the save. Names are
|
|
30
|
+
lowercase letters, digits and underscores, starting with a letter
|
|
31
|
+
(`vote`, `claim_slot`, `add_pick`). Keep the set to the verbs a person would
|
|
32
|
+
actually say: eight is a ceiling, and three good verbs beat eight thin ones.
|
|
33
|
+
A `backend.js` may export `tools` and nothing else; that saves fine.
|
|
34
|
+
|
|
35
|
+
## Who the tool acts as
|
|
36
|
+
|
|
37
|
+
**A tool always acts as the person it is used for, never as the owner.** The
|
|
38
|
+
host that runs the tool states that person, and the platform carries them
|
|
39
|
+
through:
|
|
40
|
+
|
|
41
|
+
- `ctx.userInfo` is that person (`ctx.userInfo.userHandle`).
|
|
42
|
+
- Every `ctx.db.put` passes `access.js` as them, with `user.backend` set to
|
|
43
|
+
`"tool"`. A tool never runs in admin mode and gets no bypass: it writes what
|
|
44
|
+
`access.js` admits for that person, and `access.js` can tell a tool's write
|
|
45
|
+
from a page's by that origin.
|
|
46
|
+
- `ctx.db.query` and `ctx.db.get` read what that person could read.
|
|
47
|
+
- `ctx.callAI` spends that person's credits (or the group's, when the host says
|
|
48
|
+
the group pays), never the owner's.
|
|
49
|
+
|
|
50
|
+
So the rules stay in `access.js`. When a rule treats both doors alike, a vote
|
|
51
|
+
the page would refuse, the tool refuses too, with the same reason, and the
|
|
52
|
+
reason comes back to the person.
|
|
53
|
+
|
|
54
|
+
## One handler, a button and a tool
|
|
55
|
+
|
|
56
|
+
The page and the tool share one function: the button reaches it through a
|
|
57
|
+
`fetch` route, the tool names it as its `handler`. The rule lives once, so the
|
|
58
|
+
two doors can never disagree. Each vote is its own record keyed by the voter,
|
|
59
|
+
so voting again changes your vote instead of adding a second one.
|
|
60
|
+
|
|
61
|
+
### `backend.js`
|
|
62
|
+
```js
|
|
63
|
+
// Summary: one recordVote function behind a /vote route (the page's button) and
|
|
64
|
+
// the vote tool (an assistant acting for the person). Both act as the voter.
|
|
65
|
+
async function recordVote(input, ctx) {
|
|
66
|
+
const me = ctx.userInfo && ctx.userInfo.userHandle;
|
|
67
|
+
if (!me) return { error: "sign in to vote" };
|
|
68
|
+
const place = String(input.place || "").trim();
|
|
69
|
+
if (!place) return { error: "say which place" };
|
|
70
|
+
await ctx.db.put(
|
|
71
|
+
{ type: "vote", place, voterHandle: me, at: new Date().toISOString() },
|
|
72
|
+
{ db: "meetup", id: `vote:${me}` }
|
|
73
|
+
);
|
|
74
|
+
return { ok: true, place };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export async function fetch(request, ctx) {
|
|
78
|
+
const url = new URL(request.url);
|
|
79
|
+
if (url.pathname === "/vote" && request.method === "POST") {
|
|
80
|
+
return Response.json(await recordVote(await request.json(), ctx));
|
|
81
|
+
}
|
|
82
|
+
return new Response("not found", { status: 404 });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const tools = {
|
|
86
|
+
vote: {
|
|
87
|
+
description: "Vote for one place for the next meetup. Voting again changes your vote.",
|
|
88
|
+
input: {
|
|
89
|
+
place: { type: "string", description: "The place, as the poll lists it" },
|
|
90
|
+
},
|
|
91
|
+
handler: recordVote,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### `access.js`
|
|
97
|
+
```js
|
|
98
|
+
// Summary: a signed-in person votes, one record each, keyed by their own
|
|
99
|
+
// handle; anyone who opens the app reads the votes.
|
|
100
|
+
export function meetup(doc, oldDoc, user, ctx) {
|
|
101
|
+
if (!user) throw { forbidden: "sign in to vote" };
|
|
102
|
+
if (doc.type !== "vote") throw { forbidden: "unknown record" };
|
|
103
|
+
if (doc.voterHandle !== user.userHandle || doc._id !== `vote:${user.userHandle}`)
|
|
104
|
+
throw { forbidden: "you vote for yourself" };
|
|
105
|
+
return { channels: ["meetup"], grant: { public: ["meetup"] } };
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### `App.jsx`
|
|
110
|
+
```jsx
|
|
111
|
+
import React from "react";
|
|
112
|
+
import { useFireproof } from "use-fireproof";
|
|
113
|
+
import { apiFetch } from "use-vibes";
|
|
114
|
+
import { Button, Heading, Row, Stack, Text } from "@vibes.diy/ui";
|
|
115
|
+
|
|
116
|
+
const PLACES = ["Thai Basil", "The Dock", "Rosa's"];
|
|
117
|
+
|
|
118
|
+
export default function App() {
|
|
119
|
+
const { useLiveQuery } = useFireproof("meetup");
|
|
120
|
+
const { docs: votes } = useLiveQuery("type", { key: "vote" });
|
|
121
|
+
const [note, setNote] = React.useState("");
|
|
122
|
+
|
|
123
|
+
async function vote(place) {
|
|
124
|
+
const res = await apiFetch("/vote", {
|
|
125
|
+
method: "POST",
|
|
126
|
+
headers: { "content-type": "application/json" },
|
|
127
|
+
body: JSON.stringify({ place }),
|
|
128
|
+
});
|
|
129
|
+
const out = res.ok ? await res.json() : { error: "try again" };
|
|
130
|
+
setNote(out.error || `You voted for ${out.place}`);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<Stack gap={4}>
|
|
135
|
+
<Heading level={1}>Where next?</Heading>
|
|
136
|
+
<Row gap={2} wrap>
|
|
137
|
+
{PLACES.map((place) => (
|
|
138
|
+
<Button key={place} onClick={() => vote(place)}>
|
|
139
|
+
{place} · {votes.filter((v) => v.place === place).length}
|
|
140
|
+
</Button>
|
|
141
|
+
))}
|
|
142
|
+
</Row>
|
|
143
|
+
{note && <Text muted>{note}</Text>}
|
|
144
|
+
</Stack>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
The handler returns a small object, and the person sees it as the answer.
|
|
150
|
+
Keep it short and plain: a result over 8,000 characters is cut. A throw comes
|
|
151
|
+
back as "the tool failed", so return `{ error: "…" }` for a refusal the person
|
|
152
|
+
should read.
|
|
153
|
+
|
|
154
|
+
## A declared write: one record, no code
|
|
155
|
+
|
|
156
|
+
When the verb is "save this", declare the record instead of writing a handler:
|
|
157
|
+
|
|
158
|
+
### `backend.js`
|
|
159
|
+
```js
|
|
160
|
+
// Summary: two tools-only verbs. add_pick saves a book on the picks list, one
|
|
161
|
+
// pick per person; suggest saves a new suggestion every time it is used.
|
|
162
|
+
export const tools = {
|
|
163
|
+
add_pick: {
|
|
164
|
+
description: "Add a book to this month's picks. Adding again replaces your pick.",
|
|
165
|
+
for: "members",
|
|
166
|
+
input: {
|
|
167
|
+
title: "string",
|
|
168
|
+
author: { type: "string", optional: true },
|
|
169
|
+
},
|
|
170
|
+
write: { db: "picks", set: { type: "pick" }, key: "caller" },
|
|
171
|
+
},
|
|
172
|
+
suggest: {
|
|
173
|
+
description: "Suggest a theme for a future month.",
|
|
174
|
+
input: { theme: "string" },
|
|
175
|
+
write: { db: "picks", set: { type: "suggestion" } },
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### `access.js`
|
|
181
|
+
```js
|
|
182
|
+
// Summary: a pick is one per person, written as its author; a suggestion is
|
|
183
|
+
// anyone's, added once and never rewritten. Anyone who opens the app reads both.
|
|
184
|
+
export function picks(doc, oldDoc, user, ctx) {
|
|
185
|
+
if (!user) throw { forbidden: "sign in first" };
|
|
186
|
+
// A record keeps its type, so nobody turns someone's pick into a suggestion to rewrite it.
|
|
187
|
+
if (oldDoc && oldDoc.type !== doc.type) throw { forbidden: "a record keeps its type" };
|
|
188
|
+
if (doc.type === "pick") {
|
|
189
|
+
if (doc._id !== `add_pick:${user.userHandle}`) throw { forbidden: "you pick for yourself" };
|
|
190
|
+
return { channels: ["club"], grant: { public: ["club"] } };
|
|
191
|
+
}
|
|
192
|
+
if (doc.type === "suggestion") {
|
|
193
|
+
if (oldDoc) throw { forbidden: "a suggestion is added, not edited" };
|
|
194
|
+
return { channels: ["club"], grant: { public: ["club"] } };
|
|
195
|
+
}
|
|
196
|
+
throw { forbidden: "unknown record" };
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
The record saved is the input with `set` laid over it, so `set` decides the
|
|
201
|
+
`type` and the person cannot. `set` holds literal values only: strings,
|
|
202
|
+
numbers, `true` and `false`.
|
|
203
|
+
|
|
204
|
+
**`key: "caller"` makes the record one per person:** its id is
|
|
205
|
+
`<tool name>:<their handle>`, so using the tool again replaces their record
|
|
206
|
+
(`add_pick:maya`). The id follows the handle the person uses when they call,
|
|
207
|
+
so someone who switches to another handle starts a new record under it; write
|
|
208
|
+
`access.js` against `user.userHandle`, as above, and the two stay in step.
|
|
209
|
+
Without `key`, every use adds a new record. A declared write
|
|
210
|
+
still passes `access.js` as the caller, with `user.backend` set to `"tool"`.
|
|
211
|
+
|
|
212
|
+
## A record only a tool writes
|
|
213
|
+
|
|
214
|
+
Most records should be writable both from the page and from a tool, and a
|
|
215
|
+
shared handler gives you that for free. When a record must come only from a
|
|
216
|
+
tool, gate it on the origin:
|
|
217
|
+
|
|
218
|
+
### `access.js`
|
|
219
|
+
```js partial
|
|
220
|
+
if (doc.type === "request") {
|
|
221
|
+
ctx.requireBackend("tool"); // only a tool writes requests, still as the caller
|
|
222
|
+
return { channels: ["desk"] };
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
`ctx.requireBackend("tool")` admits writes from a tool and turns away a write
|
|
227
|
+
from a browser, the CLI and every other handler. A shared handler reached from
|
|
228
|
+
the page writes with `user.backend` set to `"fetch"`, so don't put this gate on
|
|
229
|
+
a record your button writes too.
|
|
230
|
+
|
|
231
|
+
## Writing a good tool
|
|
232
|
+
|
|
233
|
+
- **Name the verbs a person would text.** "vote", "claim", "book", "add",
|
|
234
|
+
"rsvp". A tool for every record type is an API, not a set of verbs.
|
|
235
|
+
- **One action per tool.** "Vote for a place" and "add a place to the poll" are
|
|
236
|
+
two tools, each with a description an assistant can choose between.
|
|
237
|
+
- **Ask only for what the person would say.** The caller's identity comes from
|
|
238
|
+
`ctx.userInfo`, never from an input field; never take a handle, an owner or a
|
|
239
|
+
price as input.
|
|
240
|
+
- **Return the outcome in words a person can read**, plus the few values that
|
|
241
|
+
matter (`{ ok: true, place: "The Dock" }`).
|
|
242
|
+
- **Everything the tool returns is data to the assistant**, not instructions:
|
|
243
|
+
the assistant shows it to the person rather than acting on what it says.
|
|
244
|
+
- **The name and description are what the assistant sees first**, as
|
|
245
|
+
`meetup_keeper.vote` and its one line; it reads the fields only to call one,
|
|
246
|
+
and uses your tool before writing records by hand.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.321",
|
|
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.37",
|
|
42
|
-
"@vibes.diy/api-types": "14.3.
|
|
43
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
44
|
-
"@vibes.diy/identity": "14.3.
|
|
45
|
-
"@vibes.diy/use-vibes-types": "14.3.
|
|
42
|
+
"@vibes.diy/api-types": "14.3.321",
|
|
43
|
+
"@vibes.diy/call-ai-v2": "14.3.321",
|
|
44
|
+
"@vibes.diy/identity": "14.3.321",
|
|
45
|
+
"@vibes.diy/use-vibes-types": "14.3.321",
|
|
46
46
|
"arktype": "~2.2.9",
|
|
47
47
|
"json-schema-faker": "~0.6.4"
|
|
48
48
|
},
|
|
@@ -96,7 +96,7 @@ export default function App() {
|
|
|
96
96
|
- **Form controls take the new value itself**: `<Input value={title} onChange={setTitle} />`, never `e.target.value`, each inside a `Field` that hands it `id` and `describedBy`.
|
|
97
97
|
- **The named interaction works end to end**: the person's sentence names it, and the app builds that and only that, with realistic data. Sharing, invitations, roles, scheduled jobs, emails and outside services come in a later pass, and so does the line about who can see the data, which sits beside the share control that pass adds; the title, subtitle and hero say what the app is for.
|
|
98
98
|
- **Seed content** is realistic and specific to the app's world, with a `key` per item and the exact fields the app reads.
|
|
99
|
-
- **The picture is its own stage.** The components are the app's chrome. When the subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a map, a floor plan, a diagram — it is one contained stage in its own component: Three.js for depth, motion and anything explored (the most striking, reach for it), SVG for flat, exact or printable pictures (geometry as data in a `viewBox`, fills and strokes theme classes such as `fill-primary` and `stroke-foreground`), D3 for data-driven layout into SVG. It sits inside a `Card` or at full width, with the components' controls around it (a picture of a thing, such as a product, a dish or a cover, is a painted image instead); a tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` before acting.
|
|
99
|
+
- **The picture is its own stage.** The components are the app's chrome. When the subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a map, a floor plan, a diagram — it is one contained stage in its own component: Three.js for depth, motion and anything explored (the most striking, reach for it), SVG for flat, exact or printable pictures (geometry as data in a `viewBox`, fills and strokes theme classes such as `fill-primary` and `stroke-foreground`, and a colour the subject names, such as a blue district or a red team, painted as that colour from a hex in the stage's data with `fill={PAINT[side]}`), D3 for data-driven layout into SVG. It sits inside a `Card` or at full width, with the components' controls around it (a picture of a thing, such as a product, a dish or a cover, is a painted image instead); a tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` before acting.
|
|
100
100
|
- **Layout comes from the components** (`Stack`, `Row`, `Grid`, `Card`) and their `tone`, `size` and `variant` props; plain spacing like `p-6` sits on your own wrapping elements only. The look brief below says how the page is composed.
|
|
101
101
|
- **A bar fixed to the bottom of the screen — a tab bar, a nav, a save bar — rides above the platform's controls**, so every tab and button on it stays tappable: `BottomNav` sits there by itself, and a bar of your own puts `bottom: 'var(--vibes-controls-inset, 0px)'` in its `style` instead of using `bottom-0`.
|
|
102
102
|
- **Tapping a person opens their profile**: `<ViewerTag userHandle={m.userHandle} onClick={() => setProfile(m.userHandle)} />` binds the handle the tag shows, and a hero header is `<ViewerTag userHandle={profile} size={120} avatarOnly />` — the tag itself is the button, drawn natively. Opening a profile follows nobody.
|
|
@@ -18,7 +18,7 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
20
|
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
-
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below), or the photo the owner uploads. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`),
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below), or the photo the owner uploads. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`). A colour the subject itself names — a blue district, a red team, a traffic light's green — is painted as that colour: a hex in the stage's data (`const PAINT = { blue: "#2563eb", red: "#dc2626" }`) set with `fill={PAINT[side]}` on the shape and on its legend swatch, while theme classes carry every fill the subject leaves open. A tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
22
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
23
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
24
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
|
@@ -529,6 +529,8 @@ What you can see is the app's code, its files, and this conversation. The page a
|
|
|
529
529
|
|
|
530
530
|
When someone reports that their app won't open ("App not available", a blank screen, a dead end), describe the observable fact: the app didn't resolve on that visit. Offer a reload as the first thing to try, and say plainly that you don't know the cause when you don't — the platform reports the reason, and guessing one sends the person to fix something that was never wrong.
|
|
531
531
|
|
|
532
|
+
Every platform call you write is one a skill doc shows. When the brief asks for one the docs leave out, build the nearest shape they do show and say in the words you write beside the code what it does differently, so the person can choose.
|
|
533
|
+
|
|
532
534
|
### Static assets — reference bundle files by path
|
|
533
535
|
|
|
534
536
|
Static assets. Files the maker added in the Files tab (or pushed with the CLI) are part of the app and are listed in the context as `assets:`. Reference them by absolute path from the app root — `<img src="/logo.png" alt="…">`, `<audio src="/intro.mp3">`, `fetch("/data.csv")` — never by an external URL and never by inlining bytes. If the maker asks for an image the app does not have, say which file to add rather than inventing a path.
|
package/system-prompt-initial.md
CHANGED
|
@@ -18,7 +18,7 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
20
|
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
-
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below), or the photo the owner uploads. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`),
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below), or the photo the owner uploads. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`). A colour the subject itself names — a blue district, a red team, a traffic light's green — is painted as that colour: a hex in the stage's data (`const PAINT = { blue: "#2563eb", red: "#dc2626" }`) set with `fill={PAINT[side]}` on the shape and on its legend swatch, while theme classes carry every fill the subject leaves open. A tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
22
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
23
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
24
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
|
@@ -531,6 +531,8 @@ What you can see is the app's code, its files, and this conversation. The page a
|
|
|
531
531
|
|
|
532
532
|
When someone reports that their app won't open ("App not available", a blank screen, a dead end), describe the observable fact: the app didn't resolve on that visit. Offer a reload as the first thing to try, and say plainly that you don't know the cause when you don't — the platform reports the reason, and guessing one sends the person to fix something that was never wrong.
|
|
533
533
|
|
|
534
|
+
Every platform call you write is one a skill doc shows. When the brief asks for one the docs leave out, build the nearest shape they do show and say in the words you write beside the code what it does differently, so the person can choose.
|
|
535
|
+
|
|
534
536
|
### Static assets — reference bundle files by path
|
|
535
537
|
|
|
536
538
|
Static assets. Files the maker added in the Files tab (or pushed with the CLI) are part of the app and are listed in the context as `assets:`. Reference them by absolute path from the app root — `<img src="/logo.png" alt="…">`, `<audio src="/intro.mp3">`, `fetch("/data.csv")` — never by an external URL and never by inlining bytes. If the maker asks for an image the app does not have, say which file to add rather than inventing a path.
|
package/system-prompt.md
CHANGED
|
@@ -18,7 +18,7 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
20
|
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
-
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below), or the photo the owner uploads. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`),
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below), or the photo the owner uploads. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`). A colour the subject itself names — a blue district, a red team, a traffic light's green — is painted as that colour: a hex in the stage's data (`const PAINT = { blue: "#2563eb", red: "#dc2626" }`) set with `fill={PAINT[side]}` on the shape and on its legend swatch, while theme classes carry every fill the subject leaves open. A tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
22
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
23
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
24
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
|
@@ -825,6 +825,8 @@ What you can see is the app's code, its files, and this conversation. The page a
|
|
|
825
825
|
|
|
826
826
|
When someone reports that their app won't open ("App not available", a blank screen, a dead end), describe the observable fact: the app didn't resolve on that visit. Offer a reload as the first thing to try, and say plainly that you don't know the cause when you don't — the platform reports the reason, and guessing one sends the person to fix something that was never wrong.
|
|
827
827
|
|
|
828
|
+
Every platform call you write is one a skill doc shows. When the brief asks for one the docs leave out, build the nearest shape they do show and say in the words you write beside the code what it does differently, so the person can choose.
|
|
829
|
+
|
|
828
830
|
### Static assets — reference bundle files by path
|
|
829
831
|
|
|
830
832
|
Static assets. Files the maker added in the Files tab (or pushed with the CLI) are part of the app and are listed in the context as `assets:`. Reference them by absolute path from the app root — `<img src="/logo.png" alt="…">`, `<audio src="/intro.mp3">`, `fetch("/data.csv")` — never by an external URL and never by inlining bytes. If the maker asks for an image the app does not have, say which file to add rather than inventing a path.
|