vibes-diy 14.3.404 → 14.3.405

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.
@@ -30112,13 +30112,11 @@ function oklchHex(l3, c3, h5) {
30112
30112
  return `#${ch(rgb.r)}${ch(rgb.g)}${ch(rgb.b)}`;
30113
30113
  }
30114
30114
  function hexOklch(hex4) {
30115
- const hit = OKLCH_CACHE.get(hex4);
30116
- if (hit !== void 0) return hit;
30117
- const o4 = toOklch(parseCssColor(hex4));
30118
- if (o4 === void 0) throw new Error(`pouf-rooms: unparseable colour ${hex4}`);
30119
- const v3 = { l: o4.l, c: o4.c, h: o4.h };
30120
- OKLCH_CACHE.set(hex4, v3);
30121
- return v3;
30115
+ return OKLCH_CACHE.get(hex4).once(() => {
30116
+ const o4 = toOklch(parseCssColor(hex4));
30117
+ if (o4 === void 0) throw new Error(`pouf-rooms: unparseable colour ${hex4}`);
30118
+ return { l: o4.l, c: o4.c, h: o4.h };
30119
+ });
30122
30120
  }
30123
30121
  function poufToned(hex4, h5, t3) {
30124
30122
  if (t3 <= 0) return hex4;
@@ -30219,12 +30217,7 @@ function oklabDistance(a4, b4) {
30219
30217
  );
30220
30218
  }
30221
30219
  function onAccentClears(fill) {
30222
- let v3 = ON_ACCENT_CACHE.get(fill);
30223
- if (v3 === void 0) {
30224
- v3 = (contrastRatio(POUF_ON_ACCENT, fill) ?? 0) >= ON_ACCENT_MIN_CONTRAST;
30225
- ON_ACCENT_CACHE.set(fill, v3);
30226
- }
30227
- return v3;
30220
+ return ON_ACCENT_CACHE.get(fill).once(() => (contrastRatio(POUF_ON_ACCENT, fill) ?? 0) >= ON_ACCENT_MIN_CONTRAST);
30228
30221
  }
30229
30222
  function clearsHardChecks(d2, merged2) {
30230
30223
  for (const fill of Object.values(d2.accents)) if (!onAccentClears(fill)) return false;
@@ -30299,6 +30292,7 @@ var init_pouf_rooms = __esm({
30299
30292
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
30300
30293
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
30301
30294
  init_performance2();
30295
+ init_esm();
30302
30296
  init_color_math();
30303
30297
  POUF_ON_ACCENT = "#1a1a1a";
30304
30298
  POUF_HOME_ACCENTS = Object.freeze({
@@ -30333,7 +30327,7 @@ var init_pouf_rooms = __esm({
30333
30327
  return h5 >= 125 && h5 <= 215 ? 0.085 : 0.12;
30334
30328
  }, "chromaCap");
30335
30329
  __name(oklchHex, "oklchHex");
30336
- OKLCH_CACHE = /* @__PURE__ */ new Map();
30330
+ OKLCH_CACHE = new KeyedResolvOnce();
30337
30331
  __name(hexOklch, "hexOklch");
30338
30332
  pastel = /* @__PURE__ */ __name((h5) => oklchHex(lightnessAt(h5), chromaCap(h5), h5), "pastel");
30339
30333
  TONE_DROP_L = 0.15;
@@ -30388,7 +30382,7 @@ var init_pouf_rooms = __esm({
30388
30382
  __name(homeRoom, "homeRoom");
30389
30383
  __name(draftAccents, "draftAccents");
30390
30384
  __name(oklabDistance, "oklabDistance");
30391
- ON_ACCENT_CACHE = /* @__PURE__ */ new Map();
30385
+ ON_ACCENT_CACHE = new KeyedResolvOnce();
30392
30386
  __name(onAccentClears, "onAccentClears");
30393
30387
  __name(clearsHardChecks, "clearsHardChecks");
30394
30388
  __name(shrinkNudge, "shrinkNudge");
@@ -213676,6 +213670,11 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
213676
213670
  init_performance2();
213677
213671
  init_esm();
213678
213672
 
213673
+ // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/types/acquisition-channel.ts
213674
+ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
213675
+ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
213676
+ init_performance2();
213677
+
213679
213678
  // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/types/vibes-diy-api.ts
213680
213679
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
213681
213680
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
@@ -257819,6 +257818,7 @@ __name(renderPoufTokenDisciplineBlock, "renderPoufTokenDisciplineBlock");
257819
257818
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
257820
257819
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
257821
257820
  init_performance2();
257821
+ init_esm();
257822
257822
  init_color_math();
257823
257823
  init_pouf_rooms();
257824
257824
  init_color_math();
@@ -257849,26 +257849,25 @@ __name(resolveHues, "resolveHues");
257849
257849
  var PASTEL_PAPER_FLOOR_L = 0.92;
257850
257850
  var PASTEL_FILL_CEILING_L = 0.91;
257851
257851
  var lerp = /* @__PURE__ */ __name((a4, b4, t3) => a4 + (b4 - a4) * t3, "lerp");
257852
- var cuspCache = /* @__PURE__ */ new Map();
257852
+ var cuspCache = new KeyedResolvOnce();
257853
257853
  function cuspLightness(hue) {
257854
257854
  const key = Math.round((hue % 360 + 360) % 360);
257855
- const hit = cuspCache.get(key);
257856
- if (hit !== void 0) return hit;
257857
- let bestL = 0.7;
257858
- let bestC = -1;
257859
- const scan = /* @__PURE__ */ __name((from4, to2, step) => {
257860
- for (let l3 = from4; l3 <= to2; l3 += step) {
257861
- const c3 = gamutMap({ l: l3, c: 0.4, h: key }).c;
257862
- if (c3 > bestC) {
257863
- bestC = c3;
257864
- bestL = l3;
257865
- }
257866
- }
257867
- }, "scan");
257868
- scan(0.05, 0.98, 0.02);
257869
- scan(Math.max(0.02, bestL - 0.02), Math.min(0.99, bestL + 0.02), 2e-3);
257870
- cuspCache.set(key, bestL);
257871
- return bestL;
257855
+ return cuspCache.get(key).once(() => {
257856
+ let bestL = 0.7;
257857
+ let bestC = -1;
257858
+ const scan = /* @__PURE__ */ __name((from4, to2, step) => {
257859
+ for (let l3 = from4; l3 <= to2; l3 += step) {
257860
+ const c3 = gamutMap({ l: l3, c: 0.4, h: key }).c;
257861
+ if (c3 > bestC) {
257862
+ bestC = c3;
257863
+ bestL = l3;
257864
+ }
257865
+ }
257866
+ }, "scan");
257867
+ scan(0.05, 0.98, 0.02);
257868
+ scan(Math.max(0.02, bestL - 0.02), Math.min(0.99, bestL + 0.02), 2e-3);
257869
+ return bestL;
257870
+ });
257872
257871
  }
257873
257872
  __name(cuspLightness, "cuspLightness");
257874
257873
  var CUSP_CHROMA_FLOOR = 0.06;
@@ -361662,12 +361661,21 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
361662
361661
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
361663
361662
  init_performance2();
361664
361663
 
361664
+ // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/text-lane/policy/record-param.ts
361665
+ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
361666
+ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
361667
+ init_performance2();
361668
+
361665
361669
  // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/text-lane/policy/for-messages.ts
361666
361670
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
361667
361671
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
361668
361672
  init_performance2();
361669
361673
 
361670
361674
  // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/text-lane/policy/copy.ts
361675
+ var GROUP_INVITE_DUE_LEAD = "[If this turn texts them a link to an app you made, it is their first, and its Done text ends, after a blank line, with one or two sentences in your words inviting their group, in place of the closing question, and then the group link on its own line: https://good.vibes.diy/group?a= followed by that app's handle/slug, the part of its link after /vibe/ (https://vibes.diy/vibe/kim/most-likely-to gives https://good.vibes.diy/group?a=kim/most-likely-to). ";
361676
+ var GROUP_INVITE_DUE_TAIL = "they can add more people there and send, and once you've said hello they can all ask you for anything together, like a game, a plan, or a group pic turned into superheroes. That invitation is the Done text's one offer. A turn that texts no link leaves it out.]";
361677
+ var GROUP_INVITE_DUE_NOTE = GROUP_INVITE_DUE_LEAD + "The facts: on that page they type a friend's number, and one tap opens a group text with that friend and you on it and their app in the first line; " + GROUP_INVITE_DUE_TAIL;
361678
+ var GROUP_INVITE_DUE_FRIENDS_FIRST_NOTE = GROUP_INVITE_DUE_LEAD + "The facts: it reaches them as a link that opens a new text to them and you, with their app already in the first line; they tap + to add friends, " + GROUP_INVITE_DUE_TAIL;
361671
361679
  var GROUP_PHOTO_OFFER = "Send a group photo and I'll turn everyone in it into superheroes. Rather skip the camera? Tell me three words about you, or send your pet, and I'll make your hero from that. Or ask me for a poll, a signup or a plan.";
361672
361680
  var STARTED = `I'm on for this group! ${GROUP_PHOTO_OFFER} "vibes stop" pauses me anytime.`;
361673
361681
  var BILLING_URL = "https://vibes.diy/settings?tab=billing";
@@ -385503,7 +385511,7 @@ A TEXT CONVERSATION. This conversation is a text thread. The person may be readi
385503
385511
  - Say it, then do it. When a turn starts a build, its first words come before its first tool call: one line, a sentence or two, naming what is on the way, in the person's terms, such as "On it: a 3D racer with drift and a lap timer." or "On it: your own copy of Cabin Weekend, a cost splitter." Then any lookups run silently; a list, a search or a read gets no line of its own.
385504
385512
  - One message, sometimes in two texts. Messages often sends a link as its own text, a moment after the words that go with it, so a message that ends mid-sentence ("text me when new events are about to start on") and a bare link are one ask: read them together and answer it once. A vibe link on its own is never a dead end: the link names the vibe, so read it with check_vibe_access, or with with_vibe when it is the person's own, and carry on with what they asked. When a note beside the message says its link is already read for you, that note is your read: answer from it at once, and a message that opens a group or shares the app gets a first reply about that app, what it is and the one thing to do in it, in a line or two.
385505
385513
  - One thought, several texts. People send one thought as several texts: a caption then its link, a photo then its words, a sentence then the rest of it. A note in square brackets opens each message, saying how many texts it joins and over how long, and how soon it came after the text you last answered. When what you have introduces something still on its way ("look what I made", "here it is", a thought that stops halfway) and the note says (wait) is open, reply with exactly (wait) and nothing else: the person sees nothing, and the message comes back to you once the rest is in, or after 20 seconds. Wait once per message at most. When the note says you waited, answer it then with your best guess, and a question is fine. A text that arrives right after your answer and reads as the rest of the last one goes with it: answer both as one message and carry on in the new direction, easy and cheerful.
385506
- - Pictures travel both ways. A photo the person sends is in front of you. A picture they ask for (their photo as an alien pilot, a card for Sam) is yours to paint with make_picture, as your first call, in the turn the photo arrives. \`photo\` counts the photos on the message you are answering, and \`earlierPhoto\` reaches a photo texted earlier in this chat, any time in it, 1 being the newest before this message: "Marcus's photo from before" or "do mine again as a poster" paints from it, and nobody is asked to send it again. The picture goes first, then one short line that keeps the chat going (Chris, 2026-11-18: a picture with nothing after it ends the conversation). That line is an easy next idea or question anyone can answer in a word ("Want the pirate ship version next?", "Should I do everyone?"), or, where it fits, an offer to remind or update them; when its receipt carries an offer, the offer is that line. No line goes before the call and no description of the picture: they are looking at it. When a tool failed, the line says that instead. Paint once per ask. A repeated ask after a picture you sent ("post it here", "send it again", the link again, "hello?") means it has not reached them yet: send that same picture again with send_picture, with no words. Our delivery trouble is ours, never theirs: a picture that did not reach them you send again yourself with send_picture, unasked, and you never tell them it is waiting, apologize for it, or ask them to reply or type anything ("send it again") to get it. The same goes for an app that turned a picture down: when you paint it another way, it just goes out, with no word about the app, its rules or how you made it. A picture travels only as a picture, so a picture's file address (an assets. or /_files/ link) never goes in a text; one that is held or slow is on its way, so send it again with send_picture or say it is on its way. When they will want more, start the app that makes them after the paint, and its Done text is "Here's the app if you want more: <link>". One to one, a hero of them (their selfie or their words as a superhero) always brings its app, because that app is how they share their hero with friends: the picture goes out first, and after the paint, start the app that holds it, a page showing that picture with a button to make a friend's hero. Its brief carries no picture link, since a chat picture's link opens only in this chat: it names the record the page shows the picture from (database heroes, record hero, field imageUrl). Once create_vibe answers the app's address, with_vibe put_doc that record with imageUrl set to the picture's link, which copies the picture into the app. Its Done text offers it as theirs to share whenever they like, opening with "Here's your hero's app if you want to share it: <link>" in place of "Done:". A hero is the one picture with words before it. The line before the call names your guess in a few words, the hero's name and power ("Captain Daybreak you, coming up."). A photo that never reached you ("did you get my pic?") gets one cheerful line asking them to send it again with whatever they would like made of it, and a superhero is one idea among many (a movie poster, a party invite, a game): name a few, so the choice reads as theirs. A vibe named for pictures is this chat's picture app. When someone sends or names a vibe for their pictures ("use this to make me vintage" and someone's portrait app, or its app link on its own), that vibe is this chat's picture app, theirs or someone else's, and it decides the style: every photo goes into it. The first photo goes straight in, with no lookup first: your first call is make_picture with photo (or earlierPhoto) and \`vibe\` holding only the app's ownerHandle and appSlug from its link, and no prompt. make_picture copies the app's own newest record that has a prompt (written as them, its time now), keeps the photo where that record keeps its own, paints it with the app's prompt as it is, and answers \`record\` (its dbName, docId, like and photoKey) for you to write down. A later ask that changes the look ("now as pirates", "add a cocktail") names the record: make_picture with \`vibe\` holding that dbName, a new docId, \`like\` and \`photoKey\`. When the app builds its own prompt (its answer said \`made.promptFrom: "builder"\`), the change is the person's own words as \`vibe.addition\`, with no prompt, and the app writes the prompt it paints. Otherwise it is the changed prompt in \`vibe.record\`, the app's prompt with their words added the way the app's own records add theirs (with_vibe get_doc reads the prompt to change). The words you add are the ones in this message: a picture make_picture painted in the chat instead (its answer says it was not saved into the app) leaves the app's look and the record to copy as they were, so "same thing but rainy" after it is the app's own prompt with rain, and that other look stays in the chat. When make_picture answers that the app has no record to copy, learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection) and name the record with \`vibe.like\` or \`vibe.record\`, and \`vibe.photoKey\` set to the _files key its records keep their starting photo under (such as original). When its records carry their own prompt (an image app's record), that record is the vibe's own tool: leave \`prompt\` out of make_picture so the record's prompt paints it. The picture lands in the chat where you call it and in the app's own list, so a make_picture with no \`vibe\` misses the app. After the paint, write the picture app down with remember (which vibe, its database, its photo key, the record to copy with \`like\`: the one you just made, and whether it builds its own prompt), and every later photo in the chat goes through it the same way, copying that record; when the look changes, the record that carries the new look becomes the one to copy, and you write that down too, with no link needed and no words, until someone names another vibe or asks for something else, which you also write down. A link to it with no photo yet gets one short line: "Got it, photos here go through Era Portraits. Send one." A link to one record of a vibe, its address ending in #<key>=<id> (https://vibes.diy/vibe/<handle>/<appSlug>#portrait=portrait-\u2026, the share button's own link), is someone sharing that record: post its picture. Read it with with_vibe get_doc (the id is the part after =; list_databases finds its database), then send_picture naming that record, with one short line after it that keeps the chat going. Never make_picture on a shared record unless they ask to change it, and a shared record leaves the chat's picture app as it was. A message whose photo did not reach you as a picture but carries such a link: the link's picture is that photo, so send it. A caption that introduces it ("A photo is waiting for you:") and the link are one message. Never say you can't do something you have not tried this turn: try the write, and what its tool answers is what you pass on. A picture saved in a vibe (a greeting card an image button painted, a photo someone added) goes into the chat with send_picture, where it arrives as a photo. Asked to post, send or show one, find its record with with_vibe's query_docs and send it.
385514
+ - Pictures travel both ways. A photo the person sends is in front of you. A picture they ask for (their photo as an alien pilot, a card for Sam) is yours to paint with make_picture, as your first call, in the turn the photo arrives. \`photo\` counts the photos on the message you are answering, and \`earlierPhoto\` reaches a photo texted earlier in this chat, any time in it, 1 being the newest before this message: "Marcus's photo from before" or "do mine again as a poster" paints from it, and nobody is asked to send it again. The picture goes first, then one short line that keeps the chat going (Chris, 2026-11-18: a picture with nothing after it ends the conversation). That line is an easy next idea or question anyone can answer in a word ("Want the pirate ship version next?", "Should I do everyone?"), or, where it fits, an offer to remind or update them; when its receipt carries an offer, the offer is that line. No line goes before the call and no description of the picture: they are looking at it. When a tool failed, the line says that instead. Paint once per ask. A repeated ask after a picture you sent ("post it here", "send it again", the link again, "hello?") means it has not reached them yet: send that same picture again with send_picture, with no words. Our delivery trouble is ours, never theirs: a picture that did not reach them you send again yourself with send_picture, unasked, and you never tell them it is waiting, apologize for it, or ask them to reply or type anything ("send it again") to get it. The same goes for an app that turned a picture down: when you paint it another way, it just goes out, with no word about the app, its rules or how you made it. A picture travels only as a picture, so a picture's file address (an assets. or /_files/ link) never goes in a text; one that is held or slow is on its way, so send it again with send_picture or say it is on its way. When they will want more, start the app that makes them after the paint, and its Done text is "Here's the app if you want more: <link>". One to one, a hero of them (their selfie or their words as a superhero) always brings its app, because that app is how they share their hero with friends: the picture goes out first, and after the paint, start the app that holds it, a page showing that picture with a button to make a friend's hero. Its brief carries no picture link, since a chat picture's link opens only in this chat: it names the record the page shows the picture from (database heroes, record hero, field imageUrl). Once create_vibe answers the app's address, with_vibe put_doc that record with imageUrl set to the picture's link, which copies the picture into the app. Its Done text offers it as theirs to share whenever they like, opening with "Here's your hero's app if you want to share it: <link>" in place of "Done:". A hero is the one picture with words before it, once you have something to paint: a photo of them (this message's or an earlier one) or three words about them. The line before the call names your guess in a few words, the hero's name and power ("Captain Daybreak you, coming up."). With nothing to paint yet, there is no call and no "coming up": the answer is one short message asking for a selfie or three words ("Speedster it is. Send a selfie, or three words about you, and your hero's on the way."). A photo that never reached you ("did you get my pic?") gets one cheerful line asking them to send it again with whatever they would like made of it, and a superhero is one idea among many (a movie poster, a party invite, a game): name a few, so the choice reads as theirs. A vibe named for pictures is this chat's picture app. When someone sends or names a vibe for their pictures ("use this to make me vintage" and someone's portrait app, or its app link on its own), that vibe is this chat's picture app, theirs or someone else's, and it decides the style: every photo goes into it. The first photo goes straight in, with no lookup first: your first call is make_picture with photo (or earlierPhoto) and \`vibe\` holding only the app's ownerHandle and appSlug from its link, and no prompt. make_picture copies the app's own newest record that has a prompt (written as them, its time now), keeps the photo where that record keeps its own, paints it with the app's prompt as it is, and answers \`record\` (its dbName, docId, like and photoKey) for you to write down. A later ask that changes the look ("now as pirates", "add a cocktail") names the record: make_picture with \`vibe\` holding that dbName, a new docId, \`like\` and \`photoKey\`. When the app builds its own prompt (its answer said \`made.promptFrom: "builder"\`), the change is the person's own words as \`vibe.addition\`, with no prompt, and the app writes the prompt it paints. Otherwise it is the changed prompt in \`vibe.record\`, the app's prompt with their words added the way the app's own records add theirs (with_vibe get_doc reads the prompt to change). The words you add are the ones in this message: a picture make_picture painted in the chat instead (its answer says it was not saved into the app) leaves the app's look and the record to copy as they were, so "same thing but rainy" after it is the app's own prompt with rain, and that other look stays in the chat. When make_picture answers that the app has no record to copy, learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection) and name the record with \`vibe.like\` or \`vibe.record\`, and \`vibe.photoKey\` set to the _files key its records keep their starting photo under (such as original). When its records carry their own prompt (an image app's record), that record is the vibe's own tool: leave \`prompt\` out of make_picture so the record's prompt paints it. The picture lands in the chat where you call it and in the app's own list, so a make_picture with no \`vibe\` misses the app. After the paint, write the picture app down with remember (which vibe, its database, its photo key, the record to copy with \`like\`: the one you just made, and whether it builds its own prompt), and every later photo in the chat goes through it the same way, copying that record; when the look changes, the record that carries the new look becomes the one to copy, and you write that down too, with no link needed and no words, until someone names another vibe or asks for something else, which you also write down. A link to it with no photo yet gets one short line: "Era Portraits it is. Send a photo and you're in." A link to one record of a vibe, its address ending in #<key>=<id> (https://vibes.diy/vibe/<handle>/<appSlug>#portrait=portrait-\u2026, the share button's own link), is someone sharing that record: post its picture. Read it with with_vibe get_doc (the id is the part after =; list_databases finds its database), then send_picture naming that record, with one short line after it that keeps the chat going. Never make_picture on a shared record unless they ask to change it, and a shared record leaves the chat's picture app as it was. A message whose photo did not reach you as a picture but carries such a link: the link's picture is that photo, so send it. A caption that introduces it ("A photo is waiting for you:") and the link are one message. Never say you can't do something you have not tried this turn: try the write, and what its tool answers is what you pass on. A picture saved in a vibe (a greeting card an image button painted, a photo someone added) goes into the chat with send_picture, where it arrives as a photo. Asked to post, send or show one, find its record with with_vibe's query_docs and send it.
385507
385515
  - Keep the thread going. You speak when they write or one of their vibes wakes you, so every reply leaves them something worth answering: a next step they would enjoy, an update you could send them on a schedule (a reminder the day before the meetup, the forecast each morning, Monday's round-up), or something one of their vibes can do for them. When a picture app's receipt carries an offer, it goes in the same text as that first picture, as its one line, glad to have something good for them: in your own words from what \`about\` says it does (the offer's \`ask\` is only its gist, never its wording), and for one that texts later a short question that says plainly you will text them later and about what ("Want me to text you a reminder before the next meetup?"), promising only what its tool does. Ask it once. A yes, typed or a \u{1F44D} on that text, is the go: call its tool, and after a \u{1F44D} the next thing they see is the result.
385508
385516
  - Plain text, in short messages. Whole sentences in short paragraphs, each link written out in full from https://, no headings and no markup. A bit's wink is the one pair of stars a text carries. A reply that still runs long folds as the general instruction says, its summary above a line holding only ${AGENT_FOLD_MARKER}, and that summary is the text the phone receives.
385509
385517
  - Their words, not the machinery. Say what happened for them, in their terms. When a step is out of your reach, say the next thing that happens and who does it, like a friend who knows the place: "Tap it; if it's private, you'll see Ask to join." Asked who they are talking to, the whole answer is one sentence like "I'm Vibes, I make and run apps for you. What's on your plate?" Asked what you can do, or what this is, say it in a sentence or two of your own: you make apps for them and their friends and help organize plans (a poll, a game, a signup, a time that works for everyone), then offer one thing to try, such as "make a trivia game about us", and say "help" shows more. This replaces the general instruction's line about models, which comes up only when they ask which model.
@@ -436,6 +436,7 @@
436
436
  "vibes.diy/api/svc/intern/text-lane/policy/copy.ts",
437
437
  "vibes.diy/api/svc/intern/text-lane/policy/for-messages.ts",
438
438
  "vibes.diy/api/svc/intern/text-lane/policy/reactions.ts",
439
+ "vibes.diy/api/svc/intern/text-lane/policy/record-param.ts",
439
440
  "vibes.diy/api/svc/intern/text-lane/policy/reminder-reply.ts",
440
441
  "vibes.diy/api/svc/intern/text-lane/send-policy.ts",
441
442
  "vibes.diy/api/svc/intern/text-lane/text-principal.ts",
@@ -760,6 +761,7 @@
760
761
  "vibes.diy/api/types/access-fn-limit-msg.ts",
761
762
  "vibes.diy/api/types/access-function.ts",
762
763
  "vibes.diy/api/types/access-summary.ts",
764
+ "vibes.diy/api/types/acquisition-channel.ts",
763
765
  "vibes.diy/api/types/agent-chat.ts",
764
766
  "vibes.diy/api/types/agent-connector-note.ts",
765
767
  "vibes.diy/api/types/agent-discussion-entry.ts",
@@ -3170,6 +3172,7 @@
3170
3172
  "vibes.diy/api/svc/intern/text-lane/policy/copy.ts",
3171
3173
  "vibes.diy/api/svc/intern/text-lane/policy/for-messages.ts",
3172
3174
  "vibes.diy/api/svc/intern/text-lane/policy/reactions.ts",
3175
+ "vibes.diy/api/svc/intern/text-lane/policy/record-param.ts",
3173
3176
  "vibes.diy/api/svc/intern/text-lane/policy/reminder-reply.ts",
3174
3177
  "vibes.diy/api/svc/intern/text-lane/send-policy.ts",
3175
3178
  "vibes.diy/api/svc/intern/text-lane/text-principal.ts",
@@ -3500,6 +3503,7 @@
3500
3503
  "vibes.diy/api/types/access-fn-limit-msg.ts",
3501
3504
  "vibes.diy/api/types/access-function.ts",
3502
3505
  "vibes.diy/api/types/access-summary.ts",
3506
+ "vibes.diy/api/types/acquisition-channel.ts",
3503
3507
  "vibes.diy/api/types/agent-chat.ts",
3504
3508
  "vibes.diy/api/types/agent-connector-note.ts",
3505
3509
  "vibes.diy/api/types/agent-discussion-entry.ts",
@@ -15954,6 +15954,14 @@ var init_share_link_tag = __esm({
15954
15954
  }
15955
15955
  });
15956
15956
 
15957
+ // ../vibes.diy/api/types/acquisition-channel.ts
15958
+ var init_acquisition_channel = __esm({
15959
+ "../vibes.diy/api/types/acquisition-channel.ts"() {
15960
+ "use strict";
15961
+ init_share_link_tag();
15962
+ }
15963
+ });
15964
+
15957
15965
  // ../vibes.diy/api/types/vibes-diy-api.ts
15958
15966
  import { type as type63 } from "arktype";
15959
15967
  var LLMChatEntry;
@@ -19948,6 +19956,7 @@ var init_types3 = __esm({
19948
19956
  init_iframe_src_params();
19949
19957
  init_tracking_params();
19950
19958
  init_share_link_tag();
19959
+ init_acquisition_channel();
19951
19960
  init_vibes_diy_api();
19952
19961
  init_invite();
19953
19962
  init_invite_note();
@@ -24224,6 +24233,7 @@ var init_colorsets = __esm({
24224
24233
  });
24225
24234
 
24226
24235
  // ../prompts/pkg/themes/pouf-rooms.ts
24236
+ import { KeyedResolvOnce as KeyedResolvOnce2 } from "@adviser/cement";
24227
24237
  function lightnessAt(hue) {
24228
24238
  const h = wrapHue(hue);
24229
24239
  const first = LIGHTNESS_POINTS[0];
@@ -24242,13 +24252,11 @@ function oklchHex(l, c, h) {
24242
24252
  return `#${ch(rgb.r)}${ch(rgb.g)}${ch(rgb.b)}`;
24243
24253
  }
24244
24254
  function hexOklch(hex) {
24245
- const hit = OKLCH_CACHE.get(hex);
24246
- if (hit !== void 0) return hit;
24247
- const o = toOklch(parseCssColor(hex));
24248
- if (o === void 0) throw new Error(`pouf-rooms: unparseable colour ${hex}`);
24249
- const v = { l: o.l, c: o.c, h: o.h };
24250
- OKLCH_CACHE.set(hex, v);
24251
- return v;
24255
+ return OKLCH_CACHE.get(hex).once(() => {
24256
+ const o = toOklch(parseCssColor(hex));
24257
+ if (o === void 0) throw new Error(`pouf-rooms: unparseable colour ${hex}`);
24258
+ return { l: o.l, c: o.c, h: o.h };
24259
+ });
24252
24260
  }
24253
24261
  function poufToned(hex, h, t) {
24254
24262
  if (t <= 0) return hex;
@@ -24349,12 +24357,7 @@ function oklabDistance(a, b) {
24349
24357
  );
24350
24358
  }
24351
24359
  function onAccentClears(fill) {
24352
- let v = ON_ACCENT_CACHE.get(fill);
24353
- if (v === void 0) {
24354
- v = (contrastRatio(POUF_ON_ACCENT, fill) ?? 0) >= ON_ACCENT_MIN_CONTRAST;
24355
- ON_ACCENT_CACHE.set(fill, v);
24356
- }
24357
- return v;
24360
+ return ON_ACCENT_CACHE.get(fill).once(() => (contrastRatio(POUF_ON_ACCENT, fill) ?? 0) >= ON_ACCENT_MIN_CONTRAST);
24358
24361
  }
24359
24362
  function clearsHardChecks(d, merged) {
24360
24363
  for (const fill of Object.values(d.accents)) if (!onAccentClears(fill)) return false;
@@ -24460,7 +24463,7 @@ var init_pouf_rooms = __esm({
24460
24463
  return h >= 125 && h <= 215 ? 0.085 : 0.12;
24461
24464
  }, "chromaCap");
24462
24465
  __name(oklchHex, "oklchHex");
24463
- OKLCH_CACHE = /* @__PURE__ */ new Map();
24466
+ OKLCH_CACHE = new KeyedResolvOnce2();
24464
24467
  __name(hexOklch, "hexOklch");
24465
24468
  pastel = /* @__PURE__ */ __name((h) => oklchHex(lightnessAt(h), chromaCap(h), h), "pastel");
24466
24469
  TONE_DROP_L = 0.15;
@@ -24515,7 +24518,7 @@ var init_pouf_rooms = __esm({
24515
24518
  __name(homeRoom, "homeRoom");
24516
24519
  __name(draftAccents, "draftAccents");
24517
24520
  __name(oklabDistance, "oklabDistance");
24518
- ON_ACCENT_CACHE = /* @__PURE__ */ new Map();
24521
+ ON_ACCENT_CACHE = new KeyedResolvOnce2();
24519
24522
  __name(onAccentClears, "onAccentClears");
24520
24523
  __name(clearsHardChecks, "clearsHardChecks");
24521
24524
  __name(shrinkNudge, "shrinkNudge");
@@ -24525,6 +24528,7 @@ var init_pouf_rooms = __esm({
24525
24528
  });
24526
24529
 
24527
24530
  // ../prompts/pkg/themes/palette-gen.ts
24531
+ import { KeyedResolvOnce as KeyedResolvOnce3 } from "@adviser/cement";
24528
24532
  function resolveHues(hues, scheme) {
24529
24533
  const steps = SCHEME_STEPS[scheme];
24530
24534
  const control2 = hues[1] ?? DERIVED_HUE;
@@ -24541,23 +24545,22 @@ function resolveHues(hues, scheme) {
24541
24545
  }
24542
24546
  function cuspLightness(hue) {
24543
24547
  const key = Math.round((hue % 360 + 360) % 360);
24544
- const hit = cuspCache.get(key);
24545
- if (hit !== void 0) return hit;
24546
- let bestL = 0.7;
24547
- let bestC = -1;
24548
- const scan = /* @__PURE__ */ __name((from, to, step) => {
24549
- for (let l = from; l <= to; l += step) {
24550
- const c = gamutMap({ l, c: 0.4, h: key }).c;
24551
- if (c > bestC) {
24552
- bestC = c;
24553
- bestL = l;
24554
- }
24555
- }
24556
- }, "scan");
24557
- scan(0.05, 0.98, 0.02);
24558
- scan(Math.max(0.02, bestL - 0.02), Math.min(0.99, bestL + 0.02), 2e-3);
24559
- cuspCache.set(key, bestL);
24560
- return bestL;
24548
+ return cuspCache.get(key).once(() => {
24549
+ let bestL = 0.7;
24550
+ let bestC = -1;
24551
+ const scan = /* @__PURE__ */ __name((from, to, step) => {
24552
+ for (let l = from; l <= to; l += step) {
24553
+ const c = gamutMap({ l, c: 0.4, h: key }).c;
24554
+ if (c > bestC) {
24555
+ bestC = c;
24556
+ bestL = l;
24557
+ }
24558
+ }
24559
+ }, "scan");
24560
+ scan(0.05, 0.98, 0.02);
24561
+ scan(Math.max(0.02, bestL - 0.02), Math.min(0.99, bestL + 0.02), 2e-3);
24562
+ return bestL;
24563
+ });
24561
24564
  }
24562
24565
  function cuspTarget(hue, chroma) {
24563
24566
  return lerp(NEUTRAL_CUSP_L, cuspLightness(hue), clamp01(chroma / CUSP_CHROMA_FLOOR));
@@ -24864,7 +24867,7 @@ var init_palette_gen = __esm({
24864
24867
  PASTEL_PAPER_FLOOR_L = 0.92;
24865
24868
  PASTEL_FILL_CEILING_L = 0.91;
24866
24869
  lerp = /* @__PURE__ */ __name((a, b, t) => a + (b - a) * t, "lerp");
24867
- cuspCache = /* @__PURE__ */ new Map();
24870
+ cuspCache = new KeyedResolvOnce3();
24868
24871
  __name(cuspLightness, "cuspLightness");
24869
24872
  CUSP_CHROMA_FLOOR = 0.06;
24870
24873
  NEUTRAL_CUSP_L = 0.75;
@@ -26437,7 +26440,7 @@ Secretly name this theme "Viridian Pulse", capturing Sterling's original playful
26437
26440
  });
26438
26441
 
26439
26442
  // ../prompts/pkg/prompts.ts
26440
- import { loadAsset, KeyedResolvOnce as KeyedResolvOnce2 } from "@adviser/cement";
26443
+ import { loadAsset, KeyedResolvOnce as KeyedResolvOnce4 } from "@adviser/cement";
26441
26444
  async function getDefaultSkills() {
26442
26445
  return ["fireproof", "callai", "image-gen", "use-vibe"];
26443
26446
  }
@@ -26737,7 +26740,7 @@ var init_prompts = __esm({
26737
26740
  __name(coreSkillNames, "coreSkillNames");
26738
26741
  STARTER_IMPORTS_POINTER = "// The import lines for this app are in the <starter-imports> block after the skill docs below \u2014 use them verbatim here.";
26739
26742
  __name(generateImportStatements, "generateImportStatements");
26740
- keyedLoadAsset = new KeyedResolvOnce2();
26743
+ keyedLoadAsset = new KeyedResolvOnce4();
26741
26744
  INSTANT_REPLACED_SKILLS = /* @__PURE__ */ new Set([
26742
26745
  "fireproof",
26743
26746
  "image-gen",
@@ -82899,7 +82902,7 @@ __export(vibe_pkg_hashed_import_map_exports, {
82899
82902
  vibePkgHashedPathsFor: () => vibePkgHashedPathsFor,
82900
82903
  vibePkgManifestUrl: () => vibePkgManifestUrl
82901
82904
  });
82902
- import { BuildURI as BuildURI9, exception2Result as exception2Result142, KeyedResolvOnce as KeyedResolvOnce3, Result as Result92, stream2string as stream2string2 } from "@adviser/cement";
82905
+ import { BuildURI as BuildURI9, exception2Result as exception2Result142, KeyedResolvOnce as KeyedResolvOnce5, Result as Result92, stream2string as stream2string2 } from "@adviser/cement";
82903
82906
  import { type as type118 } from "arktype";
82904
82907
  function importMapHashOf(paths) {
82905
82908
  const versions = lockedVersions;
@@ -82977,7 +82980,7 @@ var init_vibe_pkg_hashed_import_map = __esm({
82977
82980
  );
82978
82981
  __name(parseVibePkgManifest, "parseVibePkgManifest");
82979
82982
  __name(vibePkgManifestUrl, "vibePkgManifestUrl");
82980
- manifestOnce = new KeyedResolvOnce3({ resetAfter: 6e4 });
82983
+ manifestOnce = new KeyedResolvOnce5({ resetAfter: 6e4 });
82981
82984
  __name(resetVibePkgManifestCacheForTests, "resetVibePkgManifestCacheForTests");
82982
82985
  __name(loadVibePkgHashedPaths, "loadVibePkgHashedPaths");
82983
82986
  __name(vibePkgHashedPathsFor, "vibePkgHashedPathsFor");
@@ -88106,7 +88109,7 @@ var init_sql = __esm({
88106
88109
  });
88107
88110
 
88108
88111
  // ../vibes.diy/api/svc/intern/github-app-auth.ts
88109
- import { exception2Result as exception2Result145, KeyedResolvOnce as KeyedResolvOnce4, Result as Result96, TxtEnDecoderSingleton as TxtEnDecoderSingleton9, URI as URI18 } from "@adviser/cement";
88112
+ import { exception2Result as exception2Result145, KeyedResolvOnce as KeyedResolvOnce6, Result as Result96, TxtEnDecoderSingleton as TxtEnDecoderSingleton9, URI as URI18 } from "@adviser/cement";
88110
88113
  function b64url(bytes) {
88111
88114
  let bin = "";
88112
88115
  for (const b of bytes) bin += String.fromCharCode(b);
@@ -88305,7 +88308,7 @@ var init_github_app_auth = __esm({
88305
88308
  PERMISSIONS_NOT_GRANTED = "github installation token refused: permissions not granted";
88306
88309
  __name(isInstallationPermissionsNotGranted, "isInstallationPermissionsNotGranted");
88307
88310
  __name(getInstallationToken, "getInstallationToken");
88308
- appHtmlUrlOnce = new KeyedResolvOnce4({ resetAfter: 60 * 60 * 1e3 });
88311
+ appHtmlUrlOnce = new KeyedResolvOnce6({ resetAfter: 60 * 60 * 1e3 });
88309
88312
  }
88310
88313
  });
88311
88314
 
@@ -89614,13 +89617,13 @@ var init_prompt_asset_fetch = __esm({
89614
89617
  });
89615
89618
 
89616
89619
  // ../vibes.diy/api/svc/public/github-templates.ts
89617
- import { BuildURI as BuildURI12, KeyedResolvOnce as KeyedResolvOnce5, loadAsset as loadAsset2 } from "@adviser/cement";
89620
+ import { BuildURI as BuildURI12, KeyedResolvOnce as KeyedResolvOnce7, loadAsset as loadAsset2 } from "@adviser/cement";
89618
89621
  var templateOnce;
89619
89622
  var init_github_templates = __esm({
89620
89623
  "../vibes.diy/api/svc/public/github-templates.ts"() {
89621
89624
  "use strict";
89622
89625
  init_prompt_asset_fetch();
89623
- templateOnce = new KeyedResolvOnce5();
89626
+ templateOnce = new KeyedResolvOnce7();
89624
89627
  }
89625
89628
  });
89626
89629
 
@@ -94678,7 +94681,7 @@ var init_asset_session2 = __esm({
94678
94681
  });
94679
94682
 
94680
94683
  // ../vibes.diy/google-maps-shim/src/osm-places.ts
94681
- import { exception2Result as exception2Result172, KeyedResolvOnce as KeyedResolvOnce6, Result as Result118, URI as URI37 } from "@adviser/cement";
94684
+ import { exception2Result as exception2Result172, KeyedResolvOnce as KeyedResolvOnce8, Result as Result118, URI as URI37 } from "@adviser/cement";
94682
94685
  function unknownPlaceTypes(types) {
94683
94686
  return types.filter((t) => !Object.hasOwn(FREE_PLACE_TYPES, t));
94684
94687
  }
@@ -95193,7 +95196,7 @@ var init_osm_places = __esm({
95193
95196
  __name(fetchJson, "fetchJson");
95194
95197
  __name(geoapifySearch, "geoapifySearch");
95195
95198
  __name(overpassSearch, "overpassSearch");
95196
- areaAnswers = new KeyedResolvOnce6({ resetAfter: 60 * 60 * 1e3, lru: { maxEntries: 500 } });
95199
+ areaAnswers = new KeyedResolvOnce8({ resetAfter: 60 * 60 * 1e3, lru: { maxEntries: 500 } });
95197
95200
  __name(areaCacheKey, "areaCacheKey");
95198
95201
  __name(searchPlacesFree, "searchPlacesFree");
95199
95202
  }
@@ -111138,6 +111141,14 @@ var init_reactions = __esm({
111138
111141
  }
111139
111142
  });
111140
111143
 
111144
+ // ../vibes.diy/api/svc/intern/text-lane/policy/record-param.ts
111145
+ var init_record_param = __esm({
111146
+ "../vibes.diy/api/svc/intern/text-lane/policy/record-param.ts"() {
111147
+ "use strict";
111148
+ init_tracking_params();
111149
+ }
111150
+ });
111151
+
111141
111152
  // ../vibes.diy/api/svc/intern/text-lane/policy/for-messages.ts
111142
111153
  var init_for_messages = __esm({
111143
111154
  "../vibes.diy/api/svc/intern/text-lane/policy/for-messages.ts"() {
@@ -111159,12 +111170,17 @@ function accountCredits(vibes = 0) {
111159
111170
  function pictureAppMemory(app) {
111160
111171
  return `This chat's picture app is ${app.ownerHandle}/${app.appSlug}, set from its link. Photos go through it: make_picture with the photo and vibe {ownerHandle: "${app.ownerHandle}", appSlug: "${app.appSlug}"}, nothing else.`;
111161
111172
  }
111162
- var GROUP_PHOTO_OFFER, STARTED, BILLING_URL, OUT_OF_CREDITS2;
111173
+ var GROUP_INVITE_DUE_LEAD, GROUP_INVITE_DUE_TAIL, GROUP_INVITE_DUE_NOTE, GROUP_INVITE_DUE_FRIENDS_FIRST_NOTE, GROUP_PHOTO_OFFER, STARTED, BILLING_URL, OUT_OF_CREDITS2;
111163
111174
  var init_copy = __esm({
111164
111175
  "../vibes.diy/api/svc/intern/text-lane/policy/copy.ts"() {
111165
111176
  "use strict";
111166
111177
  init_reactions();
111178
+ init_record_param();
111167
111179
  init_for_messages();
111180
+ GROUP_INVITE_DUE_LEAD = "[If this turn texts them a link to an app you made, it is their first, and its Done text ends, after a blank line, with one or two sentences in your words inviting their group, in place of the closing question, and then the group link on its own line: https://good.vibes.diy/group?a= followed by that app's handle/slug, the part of its link after /vibe/ (https://vibes.diy/vibe/kim/most-likely-to gives https://good.vibes.diy/group?a=kim/most-likely-to). ";
111181
+ GROUP_INVITE_DUE_TAIL = "they can add more people there and send, and once you've said hello they can all ask you for anything together, like a game, a plan, or a group pic turned into superheroes. That invitation is the Done text's one offer. A turn that texts no link leaves it out.]";
111182
+ GROUP_INVITE_DUE_NOTE = GROUP_INVITE_DUE_LEAD + "The facts: on that page they type a friend's number, and one tap opens a group text with that friend and you on it and their app in the first line; " + GROUP_INVITE_DUE_TAIL;
111183
+ GROUP_INVITE_DUE_FRIENDS_FIRST_NOTE = GROUP_INVITE_DUE_LEAD + "The facts: it reaches them as a link that opens a new text to them and you, with their app already in the first line; they tap + to add friends, " + GROUP_INVITE_DUE_TAIL;
111168
111184
  GROUP_PHOTO_OFFER = "Send a group photo and I'll turn everyone in it into superheroes. Rather skip the camera? Tell me three words about you, or send your pet, and I'll make your hero from that. Or ask me for a poll, a signup or a plan.";
111169
111185
  STARTED = `I'm on for this group! ${GROUP_PHOTO_OFFER} "vibes stop" pauses me anytime.`;
111170
111186
  BILLING_URL = "https://vibes.diy/settings?tab=billing";
@@ -135740,7 +135756,7 @@ A TEXT CONVERSATION. This conversation is a text thread. The person may be readi
135740
135756
  - Say it, then do it. When a turn starts a build, its first words come before its first tool call: one line, a sentence or two, naming what is on the way, in the person's terms, such as "On it: a 3D racer with drift and a lap timer." or "On it: your own copy of Cabin Weekend, a cost splitter." Then any lookups run silently; a list, a search or a read gets no line of its own.
135741
135757
  - One message, sometimes in two texts. Messages often sends a link as its own text, a moment after the words that go with it, so a message that ends mid-sentence ("text me when new events are about to start on") and a bare link are one ask: read them together and answer it once. A vibe link on its own is never a dead end: the link names the vibe, so read it with check_vibe_access, or with with_vibe when it is the person's own, and carry on with what they asked. When a note beside the message says its link is already read for you, that note is your read: answer from it at once, and a message that opens a group or shares the app gets a first reply about that app, what it is and the one thing to do in it, in a line or two.
135742
135758
  - One thought, several texts. People send one thought as several texts: a caption then its link, a photo then its words, a sentence then the rest of it. A note in square brackets opens each message, saying how many texts it joins and over how long, and how soon it came after the text you last answered. When what you have introduces something still on its way ("look what I made", "here it is", a thought that stops halfway) and the note says (wait) is open, reply with exactly (wait) and nothing else: the person sees nothing, and the message comes back to you once the rest is in, or after 20 seconds. Wait once per message at most. When the note says you waited, answer it then with your best guess, and a question is fine. A text that arrives right after your answer and reads as the rest of the last one goes with it: answer both as one message and carry on in the new direction, easy and cheerful.
135743
- - Pictures travel both ways. A photo the person sends is in front of you. A picture they ask for (their photo as an alien pilot, a card for Sam) is yours to paint with make_picture, as your first call, in the turn the photo arrives. \`photo\` counts the photos on the message you are answering, and \`earlierPhoto\` reaches a photo texted earlier in this chat, any time in it, 1 being the newest before this message: "Marcus's photo from before" or "do mine again as a poster" paints from it, and nobody is asked to send it again. The picture goes first, then one short line that keeps the chat going (Chris, 2026-11-18: a picture with nothing after it ends the conversation). That line is an easy next idea or question anyone can answer in a word ("Want the pirate ship version next?", "Should I do everyone?"), or, where it fits, an offer to remind or update them; when its receipt carries an offer, the offer is that line. No line goes before the call and no description of the picture: they are looking at it. When a tool failed, the line says that instead. Paint once per ask. A repeated ask after a picture you sent ("post it here", "send it again", the link again, "hello?") means it has not reached them yet: send that same picture again with send_picture, with no words. Our delivery trouble is ours, never theirs: a picture that did not reach them you send again yourself with send_picture, unasked, and you never tell them it is waiting, apologize for it, or ask them to reply or type anything ("send it again") to get it. The same goes for an app that turned a picture down: when you paint it another way, it just goes out, with no word about the app, its rules or how you made it. A picture travels only as a picture, so a picture's file address (an assets. or /_files/ link) never goes in a text; one that is held or slow is on its way, so send it again with send_picture or say it is on its way. When they will want more, start the app that makes them after the paint, and its Done text is "Here's the app if you want more: <link>". One to one, a hero of them (their selfie or their words as a superhero) always brings its app, because that app is how they share their hero with friends: the picture goes out first, and after the paint, start the app that holds it, a page showing that picture with a button to make a friend's hero. Its brief carries no picture link, since a chat picture's link opens only in this chat: it names the record the page shows the picture from (database heroes, record hero, field imageUrl). Once create_vibe answers the app's address, with_vibe put_doc that record with imageUrl set to the picture's link, which copies the picture into the app. Its Done text offers it as theirs to share whenever they like, opening with "Here's your hero's app if you want to share it: <link>" in place of "Done:". A hero is the one picture with words before it. The line before the call names your guess in a few words, the hero's name and power ("Captain Daybreak you, coming up."). A photo that never reached you ("did you get my pic?") gets one cheerful line asking them to send it again with whatever they would like made of it, and a superhero is one idea among many (a movie poster, a party invite, a game): name a few, so the choice reads as theirs. A vibe named for pictures is this chat's picture app. When someone sends or names a vibe for their pictures ("use this to make me vintage" and someone's portrait app, or its app link on its own), that vibe is this chat's picture app, theirs or someone else's, and it decides the style: every photo goes into it. The first photo goes straight in, with no lookup first: your first call is make_picture with photo (or earlierPhoto) and \`vibe\` holding only the app's ownerHandle and appSlug from its link, and no prompt. make_picture copies the app's own newest record that has a prompt (written as them, its time now), keeps the photo where that record keeps its own, paints it with the app's prompt as it is, and answers \`record\` (its dbName, docId, like and photoKey) for you to write down. A later ask that changes the look ("now as pirates", "add a cocktail") names the record: make_picture with \`vibe\` holding that dbName, a new docId, \`like\` and \`photoKey\`. When the app builds its own prompt (its answer said \`made.promptFrom: "builder"\`), the change is the person's own words as \`vibe.addition\`, with no prompt, and the app writes the prompt it paints. Otherwise it is the changed prompt in \`vibe.record\`, the app's prompt with their words added the way the app's own records add theirs (with_vibe get_doc reads the prompt to change). The words you add are the ones in this message: a picture make_picture painted in the chat instead (its answer says it was not saved into the app) leaves the app's look and the record to copy as they were, so "same thing but rainy" after it is the app's own prompt with rain, and that other look stays in the chat. When make_picture answers that the app has no record to copy, learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection) and name the record with \`vibe.like\` or \`vibe.record\`, and \`vibe.photoKey\` set to the _files key its records keep their starting photo under (such as original). When its records carry their own prompt (an image app's record), that record is the vibe's own tool: leave \`prompt\` out of make_picture so the record's prompt paints it. The picture lands in the chat where you call it and in the app's own list, so a make_picture with no \`vibe\` misses the app. After the paint, write the picture app down with remember (which vibe, its database, its photo key, the record to copy with \`like\`: the one you just made, and whether it builds its own prompt), and every later photo in the chat goes through it the same way, copying that record; when the look changes, the record that carries the new look becomes the one to copy, and you write that down too, with no link needed and no words, until someone names another vibe or asks for something else, which you also write down. A link to it with no photo yet gets one short line: "Got it, photos here go through Era Portraits. Send one." A link to one record of a vibe, its address ending in #<key>=<id> (https://vibes.diy/vibe/<handle>/<appSlug>#portrait=portrait-\u2026, the share button's own link), is someone sharing that record: post its picture. Read it with with_vibe get_doc (the id is the part after =; list_databases finds its database), then send_picture naming that record, with one short line after it that keeps the chat going. Never make_picture on a shared record unless they ask to change it, and a shared record leaves the chat's picture app as it was. A message whose photo did not reach you as a picture but carries such a link: the link's picture is that photo, so send it. A caption that introduces it ("A photo is waiting for you:") and the link are one message. Never say you can't do something you have not tried this turn: try the write, and what its tool answers is what you pass on. A picture saved in a vibe (a greeting card an image button painted, a photo someone added) goes into the chat with send_picture, where it arrives as a photo. Asked to post, send or show one, find its record with with_vibe's query_docs and send it.
135759
+ - Pictures travel both ways. A photo the person sends is in front of you. A picture they ask for (their photo as an alien pilot, a card for Sam) is yours to paint with make_picture, as your first call, in the turn the photo arrives. \`photo\` counts the photos on the message you are answering, and \`earlierPhoto\` reaches a photo texted earlier in this chat, any time in it, 1 being the newest before this message: "Marcus's photo from before" or "do mine again as a poster" paints from it, and nobody is asked to send it again. The picture goes first, then one short line that keeps the chat going (Chris, 2026-11-18: a picture with nothing after it ends the conversation). That line is an easy next idea or question anyone can answer in a word ("Want the pirate ship version next?", "Should I do everyone?"), or, where it fits, an offer to remind or update them; when its receipt carries an offer, the offer is that line. No line goes before the call and no description of the picture: they are looking at it. When a tool failed, the line says that instead. Paint once per ask. A repeated ask after a picture you sent ("post it here", "send it again", the link again, "hello?") means it has not reached them yet: send that same picture again with send_picture, with no words. Our delivery trouble is ours, never theirs: a picture that did not reach them you send again yourself with send_picture, unasked, and you never tell them it is waiting, apologize for it, or ask them to reply or type anything ("send it again") to get it. The same goes for an app that turned a picture down: when you paint it another way, it just goes out, with no word about the app, its rules or how you made it. A picture travels only as a picture, so a picture's file address (an assets. or /_files/ link) never goes in a text; one that is held or slow is on its way, so send it again with send_picture or say it is on its way. When they will want more, start the app that makes them after the paint, and its Done text is "Here's the app if you want more: <link>". One to one, a hero of them (their selfie or their words as a superhero) always brings its app, because that app is how they share their hero with friends: the picture goes out first, and after the paint, start the app that holds it, a page showing that picture with a button to make a friend's hero. Its brief carries no picture link, since a chat picture's link opens only in this chat: it names the record the page shows the picture from (database heroes, record hero, field imageUrl). Once create_vibe answers the app's address, with_vibe put_doc that record with imageUrl set to the picture's link, which copies the picture into the app. Its Done text offers it as theirs to share whenever they like, opening with "Here's your hero's app if you want to share it: <link>" in place of "Done:". A hero is the one picture with words before it, once you have something to paint: a photo of them (this message's or an earlier one) or three words about them. The line before the call names your guess in a few words, the hero's name and power ("Captain Daybreak you, coming up."). With nothing to paint yet, there is no call and no "coming up": the answer is one short message asking for a selfie or three words ("Speedster it is. Send a selfie, or three words about you, and your hero's on the way."). A photo that never reached you ("did you get my pic?") gets one cheerful line asking them to send it again with whatever they would like made of it, and a superhero is one idea among many (a movie poster, a party invite, a game): name a few, so the choice reads as theirs. A vibe named for pictures is this chat's picture app. When someone sends or names a vibe for their pictures ("use this to make me vintage" and someone's portrait app, or its app link on its own), that vibe is this chat's picture app, theirs or someone else's, and it decides the style: every photo goes into it. The first photo goes straight in, with no lookup first: your first call is make_picture with photo (or earlierPhoto) and \`vibe\` holding only the app's ownerHandle and appSlug from its link, and no prompt. make_picture copies the app's own newest record that has a prompt (written as them, its time now), keeps the photo where that record keeps its own, paints it with the app's prompt as it is, and answers \`record\` (its dbName, docId, like and photoKey) for you to write down. A later ask that changes the look ("now as pirates", "add a cocktail") names the record: make_picture with \`vibe\` holding that dbName, a new docId, \`like\` and \`photoKey\`. When the app builds its own prompt (its answer said \`made.promptFrom: "builder"\`), the change is the person's own words as \`vibe.addition\`, with no prompt, and the app writes the prompt it paints. Otherwise it is the changed prompt in \`vibe.record\`, the app's prompt with their words added the way the app's own records add theirs (with_vibe get_doc reads the prompt to change). The words you add are the ones in this message: a picture make_picture painted in the chat instead (its answer says it was not saved into the app) leaves the app's look and the record to copy as they were, so "same thing but rainy" after it is the app's own prompt with rain, and that other look stays in the chat. When make_picture answers that the app has no record to copy, learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection) and name the record with \`vibe.like\` or \`vibe.record\`, and \`vibe.photoKey\` set to the _files key its records keep their starting photo under (such as original). When its records carry their own prompt (an image app's record), that record is the vibe's own tool: leave \`prompt\` out of make_picture so the record's prompt paints it. The picture lands in the chat where you call it and in the app's own list, so a make_picture with no \`vibe\` misses the app. After the paint, write the picture app down with remember (which vibe, its database, its photo key, the record to copy with \`like\`: the one you just made, and whether it builds its own prompt), and every later photo in the chat goes through it the same way, copying that record; when the look changes, the record that carries the new look becomes the one to copy, and you write that down too, with no link needed and no words, until someone names another vibe or asks for something else, which you also write down. A link to it with no photo yet gets one short line: "Era Portraits it is. Send a photo and you're in." A link to one record of a vibe, its address ending in #<key>=<id> (https://vibes.diy/vibe/<handle>/<appSlug>#portrait=portrait-\u2026, the share button's own link), is someone sharing that record: post its picture. Read it with with_vibe get_doc (the id is the part after =; list_databases finds its database), then send_picture naming that record, with one short line after it that keeps the chat going. Never make_picture on a shared record unless they ask to change it, and a shared record leaves the chat's picture app as it was. A message whose photo did not reach you as a picture but carries such a link: the link's picture is that photo, so send it. A caption that introduces it ("A photo is waiting for you:") and the link are one message. Never say you can't do something you have not tried this turn: try the write, and what its tool answers is what you pass on. A picture saved in a vibe (a greeting card an image button painted, a photo someone added) goes into the chat with send_picture, where it arrives as a photo. Asked to post, send or show one, find its record with with_vibe's query_docs and send it.
135744
135760
  - Keep the thread going. You speak when they write or one of their vibes wakes you, so every reply leaves them something worth answering: a next step they would enjoy, an update you could send them on a schedule (a reminder the day before the meetup, the forecast each morning, Monday's round-up), or something one of their vibes can do for them. When a picture app's receipt carries an offer, it goes in the same text as that first picture, as its one line, glad to have something good for them: in your own words from what \`about\` says it does (the offer's \`ask\` is only its gist, never its wording), and for one that texts later a short question that says plainly you will text them later and about what ("Want me to text you a reminder before the next meetup?"), promising only what its tool does. Ask it once. A yes, typed or a \u{1F44D} on that text, is the go: call its tool, and after a \u{1F44D} the next thing they see is the result.
135745
135761
  - Plain text, in short messages. Whole sentences in short paragraphs, each link written out in full from https://, no headings and no markup. A bit's wink is the one pair of stars a text carries. A reply that still runs long folds as the general instruction says, its summary above a line holding only ${AGENT_FOLD_MARKER}, and that summary is the text the phone receives.
135746
135762
  - Their words, not the machinery. Say what happened for them, in their terms. When a step is out of your reach, say the next thing that happens and who does it, like a friend who knows the place: "Tap it; if it's private, you'll see Ask to join." Asked who they are talking to, the whole answer is one sentence like "I'm Vibes, I make and run apps for you. What's on your plate?" Asked what you can do, or what this is, say it in a sentence or two of your own: you make apps for them and their friends and help organize plans (a poll, a game, a signup, a time that works for everyone), then offer one thing to try, such as "make a trivia game about us", and say "help" shows more. This replaces the general instruction's line about models, which comes up only when they ask which model.
@@ -137358,6 +137374,7 @@ var init_maker_identity = __esm({
137358
137374
  "../vibes.diy/api/svc/intern/maker-identity.ts"() {
137359
137375
  "use strict";
137360
137376
  init_types3();
137377
+ init_types3();
137361
137378
  __name(appUrl, "appUrl");
137362
137379
  PROMO_SIGNUP_WINDOW_MS = 24 * 60 * 60 * 1e3;
137363
137380
  __name(isFirstDayRedemption, "isFirstDayRedemption");
@@ -171516,7 +171533,7 @@ var init_ws_proxy = __esm({
171516
171533
  });
171517
171534
 
171518
171535
  // ../vibes.diy/api/impl/websocket-connection.ts
171519
- import { BuildURI as BuildURI22, exception2Result as exception2Result392, Future as Future4, KeyedResolvOnce as KeyedResolvOnce7, OnFunc as OnFunc2, Result as Result379, URI as URI49 } from "@adviser/cement";
171536
+ import { BuildURI as BuildURI22, exception2Result as exception2Result392, Future as Future4, KeyedResolvOnce as KeyedResolvOnce9, OnFunc as OnFunc2, Result as Result379, URI as URI49 } from "@adviser/cement";
171520
171537
  function runtimeWebSocketImpl() {
171521
171538
  return {
171522
171539
  globalWebSocket: typeof globalThis.WebSocket === "undefined" ? void 0 : globalThis.WebSocket,
@@ -171675,7 +171692,7 @@ var init_websocket_connection = __esm({
171675
171692
  "use strict";
171676
171693
  init_types3();
171677
171694
  init_ws_proxy();
171678
- vibesDiyApiPerConnection = new KeyedResolvOnce7();
171695
+ vibesDiyApiPerConnection = new KeyedResolvOnce9();
171679
171696
  __name(runtimeWebSocketImpl, "runtimeWebSocketImpl");
171680
171697
  __name(createWebSocket, "createWebSocket");
171681
171698
  __name(connectionCacheKey, "connectionCacheKey");
@@ -174752,7 +174769,7 @@ var init_keybag_item_schema = __esm({
174752
174769
  });
174753
174770
 
174754
174771
  // ../vibes.diy/identity/keybag/key-bag.ts
174755
- import { KeyedResolvOnce as KeyedResolvOnce8, Lazy as Lazy16, Option as Option140 } from "@adviser/cement";
174772
+ import { KeyedResolvOnce as KeyedResolvOnce10, Lazy as Lazy16, Option as Option140 } from "@adviser/cement";
174756
174773
  import { z as z7 } from "zod";
174757
174774
  var KeyedDeviceIdKeyBagItemSchema, deviceIdKey;
174758
174775
  var init_key_bag = __esm({
@@ -175065,7 +175082,7 @@ var init_key_bag_memory = __esm({
175065
175082
  });
175066
175083
 
175067
175084
  // ../vibes.diy/identity/keybag/keybag.ts
175068
- import { URI as URI51, runtimeFn as runtimeFn3, KeyedResolvOnce as KeyedResolvOnce9 } from "@adviser/cement";
175085
+ import { URI as URI51, runtimeFn as runtimeFn3, KeyedResolvOnce as KeyedResolvOnce11 } from "@adviser/cement";
175069
175086
  var keyBagProviderFactories, _keyBags;
175070
175087
  var init_keybag = __esm({
175071
175088
  "../vibes.diy/identity/keybag/keybag.ts"() {
@@ -175085,7 +175102,7 @@ var init_keybag = __esm({
175085
175102
  }
175086
175103
  ].map((i) => [i.protocol, i])
175087
175104
  );
175088
- _keyBags = new KeyedResolvOnce9();
175105
+ _keyBags = new KeyedResolvOnce11();
175089
175106
  }
175090
175107
  });
175091
175108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibes-diy",
3
- "version": "14.3.404",
3
+ "version": "14.3.405",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "description": "Command-line tool for vibes.diy — vibes give agents superpowers: generate, edit, pull, push, and publish AI-built apps. Login is free and easy.",
@@ -41,13 +41,13 @@
41
41
  "@neondatabase/serverless": "~1.2.1",
42
42
  "@noble/hashes": "~2.4.0",
43
43
  "@shadcn/lint": "~0.2.3",
44
- "@vibes.diy/api-impl": "14.3.404",
45
- "@vibes.diy/api-types": "14.3.404",
46
- "@vibes.diy/call-ai-v2": "14.3.404",
47
- "@vibes.diy/cmd-harness": "14.3.404",
48
- "@vibes.diy/cmd-tools": "14.3.404",
49
- "@vibes.diy/identity": "14.3.404",
50
- "@vibes.diy/prompts": "14.3.404",
44
+ "@vibes.diy/api-impl": "14.3.405",
45
+ "@vibes.diy/api-types": "14.3.405",
46
+ "@vibes.diy/call-ai-v2": "14.3.405",
47
+ "@vibes.diy/cmd-harness": "14.3.405",
48
+ "@vibes.diy/cmd-tools": "14.3.405",
49
+ "@vibes.diy/identity": "14.3.405",
50
+ "@vibes.diy/prompts": "14.3.405",
51
51
  "acorn": "~8.19.0",
52
52
  "acorn-jsx": "~5.3.2",
53
53
  "arktype": "~2.2.9",