vibes-diy 14.3.361 → 14.3.363
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.
|
@@ -356636,7 +356636,7 @@ var makePictureInput = lazyType(
|
|
|
356636
356636
|
"photo?": "number.integer >= 1",
|
|
356637
356637
|
"earlierPhoto?": "number.integer >= 1",
|
|
356638
356638
|
"sourceRecord?": type({ ...recordRef, "fileKey?": "string" }).onUndeclaredKey("reject"),
|
|
356639
|
-
"vibe?": type({ ...recordRef, "photoKey?": "string > 0" }).onUndeclaredKey("reject")
|
|
356639
|
+
"vibe?": type({ ...recordRef, "photoKey?": "string > 0", "record?": "Record<string, unknown>" }).onUndeclaredKey("reject")
|
|
356640
356640
|
}).onUndeclaredKey("reject")
|
|
356641
356641
|
);
|
|
356642
356642
|
function makePictureToolDefinition() {
|
|
@@ -356680,7 +356680,11 @@ function makePictureToolDefinition() {
|
|
|
356680
356680
|
docId: { type: "string" },
|
|
356681
356681
|
photoKey: {
|
|
356682
356682
|
type: "string",
|
|
356683
|
-
description: "With `photo` or `earlierPhoto`: also save that photo on the record under this _files key (the key the app keeps its starting photo under, such as original). The record must already exist
|
|
356683
|
+
description: "With `photo` or `earlierPhoto`: also save that photo on the record under this _files key (the key the app keeps its starting photo under, such as original). The record must already exist, or come in `record`."
|
|
356684
|
+
},
|
|
356685
|
+
record: {
|
|
356686
|
+
type: "object",
|
|
356687
|
+
description: "The record's own fields, in the shape the app's records have (its authorHandle the `writesAs` handle list_databases names, its prompt set the way theirs are). Saved through the app's rules before the paint, so no put_doc is needed first."
|
|
356684
356688
|
}
|
|
356685
356689
|
},
|
|
356686
356690
|
required: ["ownerHandle", "appSlug", "dbName", "docId"],
|
|
@@ -356704,6 +356708,9 @@ function checkMakePictureArgs(raw) {
|
|
|
356704
356708
|
if (starts > 1) {
|
|
356705
356709
|
return refusal("invalid-input", "Start from one picture: `photo`, `earlierPhoto` or `sourceRecord`.");
|
|
356706
356710
|
}
|
|
356711
|
+
if (parsed3.vibe?.record !== void 0 && Array.isArray(parsed3.vibe.record)) {
|
|
356712
|
+
return refusal("invalid-input", "`vibe.record` is the record's fields, as an object.");
|
|
356713
|
+
}
|
|
356707
356714
|
if (parsed3.vibe?.photoKey !== void 0 && parsed3.photo === void 0 && parsed3.earlierPhoto === void 0) {
|
|
356708
356715
|
return refusal("invalid-input", "`vibe.photoKey` saves the photo it starts from, so pass `photo` or `earlierPhoto` with it.");
|
|
356709
356716
|
}
|
|
@@ -356996,6 +357003,31 @@ async function makePicture(vctx, mctx, args3) {
|
|
|
356996
357003
|
if (resolved.ok === false) return resolved;
|
|
356997
357004
|
writer = resolved.writer;
|
|
356998
357005
|
}
|
|
357006
|
+
if (vibe2 !== void 0 && args3.vibe?.record !== void 0) {
|
|
357007
|
+
const { _id: _ignoredId, _files: _ignoredFiles, ...fields } = args3.vibe.record;
|
|
357008
|
+
const at5 = {
|
|
357009
|
+
userId: writer.userId,
|
|
357010
|
+
ownerHandle: vibe2.ownerHandle,
|
|
357011
|
+
appSlug: vibe2.appSlug,
|
|
357012
|
+
dbName: vibe2.dbName,
|
|
357013
|
+
adminMode: false,
|
|
357014
|
+
actingHandle: writer.ownerHandle
|
|
357015
|
+
};
|
|
357016
|
+
const rHad = await exception2Result(() => getDocForCaller(vctx, { ...at5, docId: vibe2.docId }));
|
|
357017
|
+
if (rHad.isErr()) return refusal("failed", "That record could not be read just now. Try once more.");
|
|
357018
|
+
const had = rHad.Ok().kind === "ok" ? rHad.Ok().doc : {};
|
|
357019
|
+
await reserveImgGenForAgent(vctx, {
|
|
357020
|
+
ownerHandle: vibe2.ownerHandle,
|
|
357021
|
+
appSlug: vibe2.appSlug,
|
|
357022
|
+
dbName: vibe2.dbName,
|
|
357023
|
+
docId: vibe2.docId,
|
|
357024
|
+
userId: writer.userId
|
|
357025
|
+
});
|
|
357026
|
+
const rSaved = await exception2Result(() => putDocForCaller(vctx, { ...at5, docId: vibe2.docId, doc: { ...had, ...fields } }));
|
|
357027
|
+
if (rSaved.isErr()) return refusal("failed", "That record could not be saved just now. Try once more.");
|
|
357028
|
+
const saved = rSaved.Ok();
|
|
357029
|
+
if (saved.kind === "denied") return refusal("denied", `That app's rules didn't take the record: ${saved.message}`);
|
|
357030
|
+
}
|
|
356999
357031
|
let recordModel;
|
|
357000
357032
|
if (vibe2 !== void 0) {
|
|
357001
357033
|
const rRecord = await exception2Result(
|
|
@@ -378385,7 +378417,7 @@ A TEXT CONVERSATION. This conversation is a text thread. The person may be readi
|
|
|
378385
378417
|
- 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.
|
|
378386
378418
|
- 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.
|
|
378387
378419
|
- 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.
|
|
378388
|
-
- 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, in the last 6 hours, 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. 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, with the picture's link in the brief. 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. Learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection; query_docs only when that is not enough),
|
|
378420
|
+
- 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, in the last 6 hours, 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. 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, with the picture's link in the brief. 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. Learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection; query_docs only when that is not enough), then call make_picture with photo (or earlierPhoto) and \`vibe\` naming their new record, its fields in \`vibe.record\` in that shape (written as them, its authorHandle the \`writesAs\` handle list_databases names, its prompt set the way the app's own records set theirs), which saves it before the paint with no put_doc first, 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, the record shape and its photo key), and every later photo in the chat goes through it the same way, 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.
|
|
378389
378421
|
- 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.
|
|
378390
378422
|
- 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.
|
|
378391
378423
|
- 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.
|
|
@@ -27201,6 +27201,7 @@ var init_version_timeline = __esm({
|
|
|
27201
27201
|
var POUF_ENTRY_EXPORTS, POUF_TAUGHT_NAMES;
|
|
27202
27202
|
var init_exports = __esm({
|
|
27203
27203
|
"../vibes.diy/pouf/exports.ts"() {
|
|
27204
|
+
"use strict";
|
|
27204
27205
|
POUF_ENTRY_EXPORTS = {
|
|
27205
27206
|
index: [
|
|
27206
27207
|
"AlertBell",
|
|
@@ -107027,7 +107028,11 @@ function makePictureToolDefinition() {
|
|
|
107027
107028
|
docId: { type: "string" },
|
|
107028
107029
|
photoKey: {
|
|
107029
107030
|
type: "string",
|
|
107030
|
-
description: "With `photo` or `earlierPhoto`: also save that photo on the record under this _files key (the key the app keeps its starting photo under, such as original). The record must already exist
|
|
107031
|
+
description: "With `photo` or `earlierPhoto`: also save that photo on the record under this _files key (the key the app keeps its starting photo under, such as original). The record must already exist, or come in `record`."
|
|
107032
|
+
},
|
|
107033
|
+
record: {
|
|
107034
|
+
type: "object",
|
|
107035
|
+
description: "The record's own fields, in the shape the app's records have (its authorHandle the `writesAs` handle list_databases names, its prompt set the way theirs are). Saved through the app's rules before the paint, so no put_doc is needed first."
|
|
107031
107036
|
}
|
|
107032
107037
|
},
|
|
107033
107038
|
required: ["ownerHandle", "appSlug", "dbName", "docId"],
|
|
@@ -107049,6 +107054,9 @@ function checkMakePictureArgs(raw) {
|
|
|
107049
107054
|
if (starts > 1) {
|
|
107050
107055
|
return refusal("invalid-input", "Start from one picture: `photo`, `earlierPhoto` or `sourceRecord`.");
|
|
107051
107056
|
}
|
|
107057
|
+
if (parsed.vibe?.record !== void 0 && Array.isArray(parsed.vibe.record)) {
|
|
107058
|
+
return refusal("invalid-input", "`vibe.record` is the record's fields, as an object.");
|
|
107059
|
+
}
|
|
107052
107060
|
if (parsed.vibe?.photoKey !== void 0 && parsed.photo === void 0 && parsed.earlierPhoto === void 0) {
|
|
107053
107061
|
return refusal("invalid-input", "`vibe.photoKey` saves the photo it starts from, so pass `photo` or `earlierPhoto` with it.");
|
|
107054
107062
|
}
|
|
@@ -107328,6 +107336,31 @@ async function makePicture(vctx, mctx, args) {
|
|
|
107328
107336
|
if (resolved.ok === false) return resolved;
|
|
107329
107337
|
writer = resolved.writer;
|
|
107330
107338
|
}
|
|
107339
|
+
if (vibe2 !== void 0 && args.vibe?.record !== void 0) {
|
|
107340
|
+
const { _id: _ignoredId, _files: _ignoredFiles, ...fields } = args.vibe.record;
|
|
107341
|
+
const at2 = {
|
|
107342
|
+
userId: writer.userId,
|
|
107343
|
+
ownerHandle: vibe2.ownerHandle,
|
|
107344
|
+
appSlug: vibe2.appSlug,
|
|
107345
|
+
dbName: vibe2.dbName,
|
|
107346
|
+
adminMode: false,
|
|
107347
|
+
actingHandle: writer.ownerHandle
|
|
107348
|
+
};
|
|
107349
|
+
const rHad = await exception2Result209(() => getDocForCaller(vctx, { ...at2, docId: vibe2.docId }));
|
|
107350
|
+
if (rHad.isErr()) return refusal("failed", "That record could not be read just now. Try once more.");
|
|
107351
|
+
const had = rHad.Ok().kind === "ok" ? rHad.Ok().doc : {};
|
|
107352
|
+
await reserveImgGenForAgent(vctx, {
|
|
107353
|
+
ownerHandle: vibe2.ownerHandle,
|
|
107354
|
+
appSlug: vibe2.appSlug,
|
|
107355
|
+
dbName: vibe2.dbName,
|
|
107356
|
+
docId: vibe2.docId,
|
|
107357
|
+
userId: writer.userId
|
|
107358
|
+
});
|
|
107359
|
+
const rSaved = await exception2Result209(() => putDocForCaller(vctx, { ...at2, docId: vibe2.docId, doc: { ...had, ...fields } }));
|
|
107360
|
+
if (rSaved.isErr()) return refusal("failed", "That record could not be saved just now. Try once more.");
|
|
107361
|
+
const saved = rSaved.Ok();
|
|
107362
|
+
if (saved.kind === "denied") return refusal("denied", `That app's rules didn't take the record: ${saved.message}`);
|
|
107363
|
+
}
|
|
107331
107364
|
let recordModel;
|
|
107332
107365
|
if (vibe2 !== void 0) {
|
|
107333
107366
|
const rRecord = await exception2Result209(
|
|
@@ -107690,7 +107723,7 @@ var init_agent_make_picture_tool = __esm({
|
|
|
107690
107723
|
"photo?": "number.integer >= 1",
|
|
107691
107724
|
"earlierPhoto?": "number.integer >= 1",
|
|
107692
107725
|
"sourceRecord?": type141({ ...recordRef, "fileKey?": "string" }).onUndeclaredKey("reject"),
|
|
107693
|
-
"vibe?": type141({ ...recordRef, "photoKey?": "string > 0" }).onUndeclaredKey("reject")
|
|
107726
|
+
"vibe?": type141({ ...recordRef, "photoKey?": "string > 0", "record?": "Record<string, unknown>" }).onUndeclaredKey("reject")
|
|
107694
107727
|
}).onUndeclaredKey("reject")
|
|
107695
107728
|
);
|
|
107696
107729
|
__name(makePictureToolDefinition, "makePictureToolDefinition");
|
|
@@ -129406,7 +129439,7 @@ A TEXT CONVERSATION. This conversation is a text thread. The person may be readi
|
|
|
129406
129439
|
- 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.
|
|
129407
129440
|
- 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.
|
|
129408
129441
|
- 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.
|
|
129409
|
-
- 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, in the last 6 hours, 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. 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, with the picture's link in the brief. 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. Learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection; query_docs only when that is not enough),
|
|
129442
|
+
- 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, in the last 6 hours, 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. 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, with the picture's link in the brief. 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. Learn its shape from one with_vibe list_databases call (its \`samples\` holds a record of each collection; query_docs only when that is not enough), then call make_picture with photo (or earlierPhoto) and \`vibe\` naming their new record, its fields in \`vibe.record\` in that shape (written as them, its authorHandle the \`writesAs\` handle list_databases names, its prompt set the way the app's own records set theirs), which saves it before the paint with no put_doc first, 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, the record shape and its photo key), and every later photo in the chat goes through it the same way, 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.
|
|
129410
129443
|
- 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.
|
|
129411
129444
|
- 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.
|
|
129412
129445
|
- 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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.363",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"description": "Command-line tool for vibes.diy — generate, edit, pull, push, and publish AI-built apps",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@neondatabase/serverless": "~1.2.0",
|
|
42
42
|
"@noble/hashes": "~2.4.0",
|
|
43
43
|
"@shadcn/lint": "~0.2.3",
|
|
44
|
-
"@vibes.diy/api-impl": "14.3.
|
|
45
|
-
"@vibes.diy/api-types": "14.3.
|
|
46
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
47
|
-
"@vibes.diy/cmd-harness": "14.3.
|
|
48
|
-
"@vibes.diy/cmd-tools": "14.3.
|
|
49
|
-
"@vibes.diy/identity": "14.3.
|
|
50
|
-
"@vibes.diy/prompts": "14.3.
|
|
44
|
+
"@vibes.diy/api-impl": "14.3.363",
|
|
45
|
+
"@vibes.diy/api-types": "14.3.363",
|
|
46
|
+
"@vibes.diy/call-ai-v2": "14.3.363",
|
|
47
|
+
"@vibes.diy/cmd-harness": "14.3.363",
|
|
48
|
+
"@vibes.diy/cmd-tools": "14.3.363",
|
|
49
|
+
"@vibes.diy/identity": "14.3.363",
|
|
50
|
+
"@vibes.diy/prompts": "14.3.363",
|
|
51
51
|
"acorn": "~8.19.0",
|
|
52
52
|
"acorn-jsx": "~5.3.2",
|
|
53
53
|
"arktype": "~2.2.9",
|