@vibes.diy/prompts 14.3.316 → 14.3.318
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/agent-guides/service.md +49 -0
- package/llms/access.md +1 -1
- package/llms/backend.md +23 -9
- package/llms/hydra.md +1 -2
- package/llms/strudel.md +1 -2
- package/package.json +7 -7
- package/prompts.d.ts +4 -0
- package/prompts.js +18 -0
- package/prompts.js.map +1 -1
- package/system-prompt-initial-oneshot.md +1 -1
- package/system-prompt-initial.md +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Vibes, the service
|
|
2
|
+
|
|
3
|
+
Read this when someone asks about Vibes itself: what it costs, what credits are, what they get before and after signing up, how linking a phone works. Answer in your own words and keep it short, the way a friend who works here would. Nothing here is read out whole, and the numbers are the ones to use.
|
|
4
|
+
|
|
5
|
+
## What Vibes is
|
|
6
|
+
|
|
7
|
+
Vibes (https://vibes.diy) makes apps for people. They say what they want by chatting on the web or texting Vibes, and Vibes builds it. Each app, a vibe, has its own link (https://vibes.diy/vibe/<handle>/<appSlug>), is ready to share from the start, and can hold records for a whole group, run on a schedule, send notes, or connect an account they already use. Anyone can remix a published vibe into their own copy.
|
|
8
|
+
|
|
9
|
+
## Credits
|
|
10
|
+
|
|
11
|
+
The AI's work spends credits: building or changing an app, painting a picture, a web search, an app's own AI features. An ordinary build is about {{BUILD_CREDITS}} credits.
|
|
12
|
+
|
|
13
|
+
Credits sit in two buckets. Monthly credits refill to the full grant on the account's monthly anniversary and do not roll over. Top-up credits (the welcome bonus and anything bought) never expire. Monthly credits are spent first.
|
|
14
|
+
|
|
15
|
+
When the balance hits zero, the next build step pauses and says the two ways forward: get more now, or pick up again on the refill date.
|
|
16
|
+
|
|
17
|
+
## Plans
|
|
18
|
+
|
|
19
|
+
- Guest, not signed up (including someone texting Vibes before they link their phone): {{GUEST_CREDITS}} credits to try things, about {{GUEST_BUILDS}} builds. They never refill.
|
|
20
|
+
- Free account: signing up is free. It adds a one-time {{WELCOME_BONUS_CREDITS}}-credit welcome bonus that never expires, plus {{FREE_MONTHLY_CREDITS}} credits every month. Credits used as a guest don't come out of the new account.
|
|
21
|
+
- Vibes Plus, {{PLUS_PRICE}}/month: {{PLUS_MONTHLY_CREDITS}} credits every month. Plus is what unlocks buying more: {{TOPUP_PRICE}} for {{TOPUP_CREDITS}} credits that never expire, up to {{MAX_TOPUP_PRICE}} in one checkout, and auto-refill, which buys a set amount when the balance runs low, up to a monthly limit they choose.
|
|
22
|
+
- Vibes Pro, {{PRO_PRICE}}/month: {{PRO_MONTHLY_CREDITS}} credits every month and everything in Plus. Pro also adds a switch on each of their apps that turns remixing off, which keeps that app's code private. Upgrading from Plus is prorated.
|
|
23
|
+
- Cancelling: Manage or cancel membership on the billing page, any time. The membership runs to the end of the month already paid for. Card charges show as "Fireproof Storage" on a statement.
|
|
24
|
+
|
|
25
|
+
## What a guest can do
|
|
26
|
+
|
|
27
|
+
Everything that matters to try it: make apps, use them, share their links, text Vibes, and follow a public vibe for its updates (no account needed for that). On the web their guest apps show in My Vibes in that same browser; clearing the browser's storage loses them, so signing up is how they keep them everywhere.
|
|
28
|
+
|
|
29
|
+
## Signing up and linking a phone
|
|
30
|
+
|
|
31
|
+
- On the web: sign in at https://vibes.diy. It's free.
|
|
32
|
+
- By text: replying "link me" gets them a sign-in link by text. Or on https://vibes.diy/agent they tap Link your phone and text Vibes the code it shows.
|
|
33
|
+
- Linking claims what they made as a guest: the apps move into their account, and the old links keep working.
|
|
34
|
+
- In a group text, each member links their own phone before Vibes acts for them, and a group's request runs on the credits of the member who asked.
|
|
35
|
+
- Vibes texts over iMessage (iPhone, iPad, Mac). On Android or Windows, the same chat is at https://vibes.diy/agent in the browser.
|
|
36
|
+
|
|
37
|
+
## Where things live
|
|
38
|
+
|
|
39
|
+
- Credits, plan, top-ups, auto-refill, cancelling: {{BILLING_URL}}
|
|
40
|
+
- Their account, email and handles: https://vibes.diy/settings
|
|
41
|
+
- Who can open one app, and how it runs: that app's Settings tab.
|
|
42
|
+
- The full credits page: https://vibes.diy/docs/credits
|
|
43
|
+
|
|
44
|
+
## Privacy basics
|
|
45
|
+
|
|
46
|
+
- Each app is open, gated or private, and its owner decides; publishing and unpublishing are theirs too.
|
|
47
|
+
- A key or password for a service goes in a secure field the platform shows them. Vibes never sees it.
|
|
48
|
+
- Card details stay with Stripe, never in a chat or an app.
|
|
49
|
+
- Following someone and sharing data with them are separate: https://vibes.diy/docs/privacy
|
package/llms/access.md
CHANGED
|
@@ -550,7 +550,7 @@ Every item a visitor creates lands on their own `user:<handle>` channel, private
|
|
|
550
550
|
|
|
551
551
|
**The sharing shape follows what one record is.** A record a person keeps for their own life — a check-in, an entry, a line in a list, a plant on a windowsill, a stretch in a routine — belongs to the collection it sits in: the whole collection is private to its person, and the way to share it is adding a friend, who then sees the collection. A piece made for readers — a post, an article, a gallery piece, a portfolio entry — carries its own draft-then-publish step, the ritual readers already know from blogs. A thing made to be seen the moment it exists — a meme, a caption, a guestbook line, a character in a cast — lands on an always-on shared channel. The person's own words move the dial: "let me pick which ones each friend sees" adds choosing items per friend to the add-a-friend control, and "drafts" or "publish" brings the per-item step to any record. Each shape ships with its one who-can-see line beside the control it describes, while the title, subtitle and hero say what the app is for:
|
|
552
552
|
|
|
553
|
-
- **A collection, shared by adding a friend.** Everything the person keeps routes to their tree, the channel named by their handle (`user:<handle>`), which only they read, and the first screen carries the add-a-friend control — the platform's `HandleInput` writing a `member` doc that grants that handle the collection's channel (`grant: { users: { [doc.userHandle]: [ch] } }`), the shape the notes example above works through. The friend sees the collection
|
|
553
|
+
- **A collection, shared by adding a friend.** Everything the person keeps routes to their tree, the channel named by their handle (`user:<handle>`), which only they read, and the first screen carries the add-a-friend control — the platform's `HandleInput` writing a `member` doc that grants that handle the collection's channel (`grant: { users: { [doc.userHandle]: [ch] } }`), the shape the notes example above works through. The friend sees the collection because the app reads `member` records back and lists each tree one names beside the person's own: a friend who opens the app picks the tree they were let into and reads its records there, so what a tree shows is every record in that tree, queried by the tree's own field rather than by `authorHandle`. The cue beside the control reads in the app's words ("Yours alone — add a friend to share your sill"). This is the resting shape for a tracker, a log, a list, a routine, a shelf, and for an ask kept to themselves ("only I", "just me", "nobody else"). When the person asks to choose what each friend sees, the `member` doc carries the chosen ids and grants that friend each item's own channel — the worked example _A friend sees the items picked for them_ below.
|
|
554
554
|
- **A piece, drafted and then published.** Publish at the granularity of a **channel**: channels are the unit of read isolation, so the piece gets its **own** channel and only that channel's read-grant flips, from a `visibility` field the access fn reads — the sketches shape above (`const ch = \`entry:${doc._id}\`; const grant = { users: { [user.userHandle]: [ch] } }; if (doc.visibility === "public") grant.public = [ch];`) — for anonymous visitors, or grant a shared app channel for all granted members; the person's other pieces stay on their own channels, each with its own switch. Gate the control on `useVibe(dbName).can`, and reflect the result back in the affordance ("Published — anyone can see this", with an unpublish to flip it back). A publish control that names its destination — "Publish to the wall", "Share to the group" — is the best shape. Making the person's _whole_ space public is fine when that is the intent.
|
|
555
555
|
- **A thing, seen the moment it is made.** **An open-nature app — an image or meme wall, a bingo card, a party game — puts its records on an always-on `grant.public` channel from the first rules it ships, builds no publish step, and admits anonymous readers**, so everyone with the link sees what people make the moment they make it. The always-on channel is the least-surprise shape for anything playful and low-stakes that strangers are meant to see (an image or meme wall, a guestbook, a caption contest): a `grant.public` channel, a members' channel, or an `audience` arm. A group's own records — a bill the roommates split, a club's reading list, a family's itinerary — are not that shape by default: they live on the group's object channel, read by the people let into it through the invite screen, and that channel's `grant.public` turns on only when the person asks for everyone with the link to see them.
|
|
556
556
|
|
package/llms/backend.md
CHANGED
|
@@ -652,19 +652,33 @@ const budget = await ctx.youtube.status(); // { available, unitsLeftToday, daily
|
|
|
652
652
|
```
|
|
653
653
|
|
|
654
654
|
For the button, an `sms:` link opens Messages with the ask written out.
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
655
|
+
Ask `https://vibes.diy/_text-number` for Vibes' phone number once on load:
|
|
656
|
+
with it, the button texts from any phone, Android included. Until it answers
|
|
657
|
+
(or where texting isn't set up yet, a `503`), Vibes is an iMessage address,
|
|
658
|
+
so on an iPhone, iPad or Mac the button texts `vibes@vibes.diy`, and anywhere
|
|
659
|
+
else the same ask opens Vibes in the browser with the words waiting in the
|
|
660
|
+
box (`https://vibes.diy/agent?text=`), and the reminders arrive as Vibes
|
|
661
|
+
notifications. iPadOS reports itself as a Mac. `?&body=` is the form both iOS
|
|
662
|
+
and Android read for a phone number. `target="_blank"` is what lets the tap
|
|
663
|
+
leave the app's frame:
|
|
660
664
|
|
|
661
665
|
```jsx
|
|
662
666
|
const ask = `Please notify me about changes to the schedule on ${appUrl}`;
|
|
667
|
+
const [textNumber, setTextNumber] = useState();
|
|
668
|
+
useEffect(() => {
|
|
669
|
+
fetch("https://vibes.diy/_text-number")
|
|
670
|
+
.then((r) => (r.ok ? r.json() : null))
|
|
671
|
+
.then((res) => res?.phoneNumber && setTextNumber(res.phoneNumber))
|
|
672
|
+
.catch(() => {});
|
|
673
|
+
}, []);
|
|
663
674
|
const imessage = /iPhone|iPad|iPod|Macintosh/.test(navigator.userAgent);
|
|
664
|
-
const
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
675
|
+
const words = encodeURIComponent(ask);
|
|
676
|
+
const href = textNumber
|
|
677
|
+
? `sms:${textNumber}?&body=${words}`
|
|
678
|
+
: imessage
|
|
679
|
+
? `sms:vibes@vibes.diy&body=${words}`
|
|
680
|
+
: `https://vibes.diy/agent?text=${words}`;
|
|
681
|
+
<a href={href} target="_blank" rel="noopener">{textNumber || imessage ? "Text me reminders" : "Get reminders"}</a>
|
|
668
682
|
```
|
|
669
683
|
|
|
670
684
|
A follower ends it by replying "stop", and their follow lapses on its own
|
package/llms/hydra.md
CHANGED
|
@@ -40,8 +40,7 @@ on `hydra.synth`, the app runs its own `requestAnimationFrame` loop calling
|
|
|
40
40
|
`hydra.tick(dt)` (stopped when the stage unmounts), and the microphone waits
|
|
41
41
|
for a "Listen" press.
|
|
42
42
|
|
|
43
|
-
Hydra is AGPL-
|
|
44
|
-
way a browser links to any page, so the two programs stay separate:
|
|
43
|
+
Hydra is AGPL-3.0 licensed; load it from its own CDN address as shown and
|
|
45
44
|
**credit Hydra visibly** (a footer line with a link to hydra.ojack.xyz is the
|
|
46
45
|
house shape), and keep its code at its URL rather than copied into the app.
|
|
47
46
|
|
package/llms/strudel.md
CHANGED
|
@@ -37,8 +37,7 @@ started it has passed, so the handed-in context is the one that plays
|
|
|
37
37
|
(measured 2026-10-07: the engine plays through it, `running`, events firing
|
|
38
38
|
after a 1.7 s load).
|
|
39
39
|
|
|
40
|
-
Strudel is AGPL-
|
|
41
|
-
way a browser links to any page, so the two programs stay separate:
|
|
40
|
+
Strudel is AGPL-3.0 licensed; load it from its own CDN address as shown and
|
|
42
41
|
**credit Strudel visibly** (a footer line with a link to strudel.cc is the
|
|
43
42
|
house shape), and keep its code at its URL rather than copied into the app.
|
|
44
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.318",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@adviser/cement": "~0.5.
|
|
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.
|
|
41
|
+
"@adviser/cement": "~0.5.37",
|
|
42
|
+
"@vibes.diy/api-types": "14.3.318",
|
|
43
|
+
"@vibes.diy/call-ai-v2": "14.3.318",
|
|
44
|
+
"@vibes.diy/identity": "14.3.318",
|
|
45
|
+
"@vibes.diy/use-vibes-types": "14.3.318",
|
|
46
46
|
"arktype": "~2.2.9",
|
|
47
|
-
"json-schema-faker": "~0.6.
|
|
47
|
+
"json-schema-faker": "~0.6.4"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": ">=19.1.0"
|
package/prompts.d.ts
CHANGED
|
@@ -32,4 +32,8 @@ export declare function getRecoveryStitchAddendum(pkgBaseUrl?: string, fetchFn?:
|
|
|
32
32
|
export declare function getCliFooter(): Promise<string>;
|
|
33
33
|
export declare function getMcpFooter(): Promise<string>;
|
|
34
34
|
export declare function getSkillText(name: string): Promise<string>;
|
|
35
|
+
export declare const AGENT_GUIDE_NAMES: readonly ["service"];
|
|
36
|
+
export type AgentGuideName = (typeof AGENT_GUIDE_NAMES)[number];
|
|
37
|
+
export declare function isAgentGuideName(name: string): name is AgentGuideName;
|
|
38
|
+
export declare function getAgentGuideText(name: AgentGuideName): Promise<string>;
|
|
35
39
|
export declare function getThemeText(slug: string): Promise<string>;
|
package/prompts.js
CHANGED
|
@@ -339,6 +339,24 @@ export async function getSkillText(name) {
|
|
|
339
339
|
}
|
|
340
340
|
return rText.Ok();
|
|
341
341
|
}
|
|
342
|
+
export const AGENT_GUIDE_NAMES = ["service"];
|
|
343
|
+
export function isAgentGuideName(name) {
|
|
344
|
+
return AGENT_GUIDE_NAMES.includes(name);
|
|
345
|
+
}
|
|
346
|
+
export async function getAgentGuideText(name) {
|
|
347
|
+
if (isAgentGuideName(name) === false)
|
|
348
|
+
return Promise.reject(new Error(`unknown agent guide: ${String(name)}`));
|
|
349
|
+
const rText = await keyedLoadAsset.get(`agent-guide:${name}`).once(async () => {
|
|
350
|
+
return loadAsset(`./agent-guides/${name}.md`, {
|
|
351
|
+
fallBackUrl: DEFAULT_PKG_BASE_URL,
|
|
352
|
+
basePath: () => import.meta.url,
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
if (rText.isErr()) {
|
|
356
|
+
return Promise.reject(rText.Err());
|
|
357
|
+
}
|
|
358
|
+
return rText.Ok();
|
|
359
|
+
}
|
|
342
360
|
export async function getThemeText(slug) {
|
|
343
361
|
const rText = await keyedLoadAsset.get(`theme:${slug}`).once(async () => {
|
|
344
362
|
return loadAsset(`./themes/${slug}.md`, {
|
package/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../jsr/prompts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAmB,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAClH,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,kCAAkC,EAClC,YAAY,EACZ,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,OAAO,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;AAC1D,CAAC;AAmCD,MAAM,UAAU,cAAc,CAAC,OAA+C;IAG5E,IAAI,OAAO,KAAK,iBAAiB;QAAE,OAAO,EAAE,CAAC;IAC7C,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,iBAAiB,CAAC;IAG3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AAE,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;QAC5E,OAAO,SAAS,CAAC,kBAAkB,IAAI,KAAK,EAAE;YAC5C,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,IAAI,CAAC,GAAG;SAChC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,IAAI,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;QAClB,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,KAAK,CAAC,EAAE,EAAE,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAY;IAC7C,MAAM,KAAK,GAAG,MAAM,cAAc,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;QACtE,OAAO,SAAS,CAAC,YAAY,IAAI,KAAK,EAAE;YACtC,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,IAAI,CAAC,GAAG;SAChC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,IAAI,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;QAClB,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,KAAK,CAAC,EAAE,EAAE,CAAC;AACpB,CAAC"}
|
|
@@ -420,7 +420,7 @@ Write this turn's `access.js` against precisely these shapes: the person's own r
|
|
|
420
420
|
|
|
421
421
|
- **Keep the opening view useful.** The person arrives inside their own tree: the first screen is the app at work, named for the app, with a rename that writes the settings record when they want a name of their own. The header carries the app's name once; a separate name line becomes useful after a rename or a second object. A second-object form joins the object list when useful. Show the person's own tree, each tree a membership lets them into, and the whole readable type-query result of second objects, including ones someone else made; `creatorHandle` identifies their makers.
|
|
422
422
|
- **A page set up for visitors is a product its provider owns.** "My booking page", "my clients", "my menu" are the words of the service provider speaking — usually the person who made the app, never assumed to be — so every signed-in person can set up pages of their own (`_id: "page-" + crypto.randomUUID()`, a write-once `creatorHandle`), what visitors make on it carries its `pageId` and is read only by that visitor and the page's provider, and each page has its own `#page=<pageId>` link its provider copies to share. Clients can offer services too, by setting up a page of their own. No rule or screen reads who owns the vibe. The access skill's _A page a person sets up for their own visitors_ has the rules.
|
|
423
|
-
- **Invite with the actual membership candidate.** When the ask names sharing, a group or other people, include `HandleInput` from `useViewer()` and a handler that saves `{ _id: "member:" + place + ":" + handle, type: "member", studioHandle: me.userHandle, userHandle: handle, addedBy: me.userHandle, authorHandle: me.userHandle }` for the person's own tree, or the same record with `loomId` for a loom. Every member record carries the same `studioHandle` as the tree it joins — the field the rules require of every record in a tree — in the `can.create` preview that decides whether the card shows and in the record the invite saves, both built by one `memberFor`. Construct that value after the picker resolves the handle, gate it with `can.create`, then persist the same value. The `member` branch admits exactly that shape: in a tree the writer grants their own channel, on a second object its admin grants that object's channel, and the subject, place and writer stay fixed. A resolved `invite:<id>` is stored as the subject just like a handle. Await a real membership write and readback before saying a named person is in. When the app is a person's own collection, this same control is its first-screen share, with the line "Yours alone — add a friend to share it" beside it; otherwise, when sharing was not asked for, offer inviting as a closing option.
|
|
423
|
+
- **Invite with the actual membership candidate.** When the ask names sharing, a group or other people, include `HandleInput` from `useViewer()` and a handler that saves `{ _id: "member:" + place + ":" + handle, type: "member", studioHandle: me.userHandle, userHandle: handle, addedBy: me.userHandle, authorHandle: me.userHandle }` for the person's own tree, or the same record with `loomId` for a loom. Every member record carries the same `studioHandle` as the tree it joins — the field the rules require of every record in a tree — in the `can.create` preview that decides whether the card shows and in the record the invite saves, both built by one `memberFor`. Construct that value after the picker resolves the handle, gate it with `can.create`, then persist the same value. The `member` branch admits exactly that shape: in a tree the writer grants their own channel, on a second object its admin grants that object's channel, and the subject, place and writer stay fixed. A resolved `invite:<id>` is stored as the subject just like a handle. Await a real membership write and readback before saying a named person is in. The friend's side is the other half of the same feature: the app reads `member` records back and lists each tree one names beside the person's own, as the `places` picker above does, and a tree shows its records from every writer, so a friend who opens the app picks the owner's tree and sees everything in it, keyed by the tree's field (`studioHandle`) rather than by who wrote each record. When the app is a person's own collection, this same control is its first-screen share, with the line "Yours alone — add a friend to share it" beside it; otherwise, when sharing was not asked for, offer inviting as a closing option.
|
|
424
424
|
- **Persist the sharing choice.** A public/follower toggle writes the field its rules read (`isPublic`, `sharedWithFollowers`), with the full edited candidate checked before saving. Its who-can-see line sits beside that control and describes the channel the rules actually share. Follow `access.md` for follower consent and channel granularity.
|
|
425
425
|
- **Protect supporting records.** A membership record containing contact details or a capability token belongs only to its intended readers; choose its private channel accordingly while its grant admits the recipient to the place's channel. Keep contact/token-bearing types distinct from ordinary content and out of content queries and Ask inputs.
|
|
426
426
|
- **Keep examples and the file protocol consistent.** The first build writes the files and privacy rules the surrounding prompt requires. `seed.json` uses these same types, field names and place keys, with `"@owner"` in writer and tree fields (`authorHandle`, `studioHandle`), and leaves the settings record out so the demo opens named for the app. The access rules admit every example record, and the final `// Summary:` accurately describes those rules; private records begin private. Follow the existing attachment/file protocol for uploaded files and their visibility.
|
package/system-prompt-initial.md
CHANGED
|
@@ -422,7 +422,7 @@ Write this turn's `access.js` against precisely these shapes: the person's own r
|
|
|
422
422
|
|
|
423
423
|
- **Keep the opening view useful.** The person arrives inside their own tree: the first screen is the app at work, named for the app, with a rename that writes the settings record when they want a name of their own. The header carries the app's name once; a separate name line becomes useful after a rename or a second object. A second-object form joins the object list when useful. Show the person's own tree, each tree a membership lets them into, and the whole readable type-query result of second objects, including ones someone else made; `creatorHandle` identifies their makers.
|
|
424
424
|
- **A page set up for visitors is a product its provider owns.** "My booking page", "my clients", "my menu" are the words of the service provider speaking — usually the person who made the app, never assumed to be — so every signed-in person can set up pages of their own (`_id: "page-" + crypto.randomUUID()`, a write-once `creatorHandle`), what visitors make on it carries its `pageId` and is read only by that visitor and the page's provider, and each page has its own `#page=<pageId>` link its provider copies to share. Clients can offer services too, by setting up a page of their own. No rule or screen reads who owns the vibe. The access skill's _A page a person sets up for their own visitors_ has the rules.
|
|
425
|
-
- **Invite with the actual membership candidate.** When the ask names sharing, a group or other people, include `HandleInput` from `useViewer()` and a handler that saves `{ _id: "member:" + place + ":" + handle, type: "member", studioHandle: me.userHandle, userHandle: handle, addedBy: me.userHandle, authorHandle: me.userHandle }` for the person's own tree, or the same record with `loomId` for a loom. Every member record carries the same `studioHandle` as the tree it joins — the field the rules require of every record in a tree — in the `can.create` preview that decides whether the card shows and in the record the invite saves, both built by one `memberFor`. Construct that value after the picker resolves the handle, gate it with `can.create`, then persist the same value. The `member` branch admits exactly that shape: in a tree the writer grants their own channel, on a second object its admin grants that object's channel, and the subject, place and writer stay fixed. A resolved `invite:<id>` is stored as the subject just like a handle. Await a real membership write and readback before saying a named person is in. When the app is a person's own collection, this same control is its first-screen share, with the line "Yours alone — add a friend to share it" beside it; otherwise, when sharing was not asked for, offer inviting as a closing option.
|
|
425
|
+
- **Invite with the actual membership candidate.** When the ask names sharing, a group or other people, include `HandleInput` from `useViewer()` and a handler that saves `{ _id: "member:" + place + ":" + handle, type: "member", studioHandle: me.userHandle, userHandle: handle, addedBy: me.userHandle, authorHandle: me.userHandle }` for the person's own tree, or the same record with `loomId` for a loom. Every member record carries the same `studioHandle` as the tree it joins — the field the rules require of every record in a tree — in the `can.create` preview that decides whether the card shows and in the record the invite saves, both built by one `memberFor`. Construct that value after the picker resolves the handle, gate it with `can.create`, then persist the same value. The `member` branch admits exactly that shape: in a tree the writer grants their own channel, on a second object its admin grants that object's channel, and the subject, place and writer stay fixed. A resolved `invite:<id>` is stored as the subject just like a handle. Await a real membership write and readback before saying a named person is in. The friend's side is the other half of the same feature: the app reads `member` records back and lists each tree one names beside the person's own, as the `places` picker above does, and a tree shows its records from every writer, so a friend who opens the app picks the owner's tree and sees everything in it, keyed by the tree's field (`studioHandle`) rather than by who wrote each record. When the app is a person's own collection, this same control is its first-screen share, with the line "Yours alone — add a friend to share it" beside it; otherwise, when sharing was not asked for, offer inviting as a closing option.
|
|
426
426
|
- **Persist the sharing choice.** A public/follower toggle writes the field its rules read (`isPublic`, `sharedWithFollowers`), with the full edited candidate checked before saving. Its who-can-see line sits beside that control and describes the channel the rules actually share. Follow `access.md` for follower consent and channel granularity.
|
|
427
427
|
- **Protect supporting records.** A membership record containing contact details or a capability token belongs only to its intended readers; choose its private channel accordingly while its grant admits the recipient to the place's channel. Keep contact/token-bearing types distinct from ordinary content and out of content queries and Ask inputs.
|
|
428
428
|
- **Keep examples and the file protocol consistent.** The first build writes the files and privacy rules the surrounding prompt requires. `seed.json` uses these same types, field names and place keys, with `"@owner"` in writer and tree fields (`authorHandle`, `studioHandle`), and leaves the settings record out so the demo opens named for the app. The access rules admit every example record, and the final `// Summary:` accurately describes those rules; private records begin private. Follow the existing attachment/file protocol for uploaded files and their visibility.
|