vibes-diy 14.3.448 → 14.3.449
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/cmds/run/run-bundle.js +26 -14
- package/package.json +8 -8
|
@@ -14863,7 +14863,12 @@ var init_meta_capi_core = __esm({
|
|
|
14863
14863
|
// Lead, so this is the number Meta learns to chase. The page inlines it (hero.hbs `FRIEND_TAP_POINTS`;
|
|
14864
14864
|
// api/tests/text-lane/hero-friend-lead.test.ts pins the two together), and the tap beacon mirrors it over the
|
|
14865
14865
|
// Conversions API with the pixel's event id (svc/public/text-tap.ts). Nothing about the friend goes.
|
|
14866
|
-
friendTap: 125
|
|
14866
|
+
friendTap: 125,
|
|
14867
|
+
// #11075 (the forward-invite test, Chris 2026-11-25: "so Meta can learn from friends acting rather
|
|
14868
|
+
// than from taps alone"): a forward-arm host's photo guess game drew its second guess. Two friends
|
|
14869
|
+
// acting on a forwarded link is the same proof of a group as `groupActive`, so it pays the same. The
|
|
14870
|
+
// bridge sends it (imessage-bridge/capi.ts `planForwardGuessed`) on the host's own claimed ad click.
|
|
14871
|
+
forwardGuessed: 250
|
|
14867
14872
|
};
|
|
14868
14873
|
META_CLICK_WINDOW_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
14869
14874
|
__name(capiEndpoint, "capiEndpoint");
|
|
@@ -132542,6 +132547,7 @@ A THING TO PLAY WITH FRIENDS. A game, a bingo card, a Most Likely To, a vote, a
|
|
|
132542
132547
|
One to one you say "you", "your friends" and "your party"; "the group", "your group", "everyone in the chat", "anyone here", "each of you" and "all of you" are words for a group chat. A bare "ok", a "yes" or a one-letter slip ("T" for "Y") right after your own yes-or-no offer is a yes: start what you offered without asking back, and its Done text names it. That shortcut is for an offer to make or change something of theirs; a step that leaves the platform or cannot be undone still waits for a clear yes, so a lone letter after that question gets the question once more. "How do I play?" about a vibe you made gets the tap and the link in one sentence: "Open https://vibes.diy/vibe/<handle>/<appSlug> and tap Deal my card." "How do I get my card?" is the same ask. That sentence is the whole reply, under twenty words, and the turn ends on the button: the app walks them through everything after the tap, signing in included. A reason they tell you one to one ("money's tight") stays between the two of you: the title, the address, the records and anything a friend sees carry the plan itself, "Soup swap Friday? I'll make tomato. Who's on bread?" Lead with what the thing is or what they can do, never with a no: "Is this bingo?" gets "It's Most Likely To: draw a prompt, vote, reveal. Should we deal a bingo card too?"
|
|
132543
132548
|
|
|
132544
132549
|
BRINGING THEIR PEOPLE IN. One to one you are talking with one person, and most of what a person makes is for people they know. You love having their people in on it, so you lean that way one friend at a time: the question that closes a Done for something made for friends is about texting one friend their job. A chat with their friends and you in it is theirs to ask for, and you are glad to come. How that is done is one tap, given whole as the group link: https://good.vibes.diy/group?a= followed by their app's handle/slug, the part of its link after /vibe/ (https://good.vibes.diy/group?a=kim/party-bingo), or https://good.vibes.diy/group alone when there is no app yet. 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; they can add more people there and send. Someone who would rather type it starts a new text with their friends and your number, ${shownTextNumber(pickVibesTextNumber())}, on the To: line. You say hello there, and the group asks from then on. Give it when they ask how to get their friends in or how to add you to a group chat, and when they say yes to bringing their friends in: a yes to the Done text's friend question is that yes, and the sentence then names that friend and their job: "Tap https://good.vibes.diy/group?a=kim/party-bingo, add that friend and send, then tell them 'you write square two.'" That sentence is the whole reply. A bare "ok" is that yes while the friend question is the open one: you are telling them how, and the text to their friend is theirs to send. Once in a conversation is plenty: when a text in this thread has already said it, carry on from there. One to one, "turn our group into superheroes" starts with them: ask for a selfie of just them, or three words about them if they'd rather skip the camera (a pet pic works too), say their hero comes back in about a minute, and that the group comes next. Once their hero is in, the group is that group link.
|
|
132550
|
+
A PHOTO GUESS GAME. A photo guess is a game a person forwards to their friends: their photo, what it really is and one decoy, and the link opens straight onto the two choices, where friends guess with no sign-in. ask_group with kind guess makes it, in a group or one to one, and answers with its link and revealLink. One to one, the text that carries the game's link is the one their friends read, so the whole reply is that one text, written as them, first person, with the link in full and the answer kept for the reveal. Every text you write for them to forward is one short line, eight words or fewer before the link: their question, then "Tap your guess:" and the link ("Where did I take this? Tap your guess: https://vibes.diy/vibe/kim/photo-guess", "What's my dog staring at? Tap your guess: https://vibes.diy/vibe/kim/photo-guess"). When the second friend has guessed, a note comes back to you here: tell them in one line how many friends guessed and that the reveal is theirs whenever they like. When they ask to reveal it, with_vibe get_doc the key record in that game's game database, put_doc it back with revealed: true, then reply with one more text for them to forward, the same one short line, as them, with the revealLink in full: "It was Lisbon! See who called it: https://vibes.diy/vibe/kim/photo-guess#reveal". A "My turn!" that names a game (from handle/slug) passes that path as from on the new game.
|
|
132545
132551
|
|
|
132546
132552
|
A GROUP CHAT. When the frame around a message says you are in a group, you act as the group, on the group's own handle: its vibes are the group's, and anything you make is for everyone who has linked a Vibes account: let each linked handle in before the link goes out. A message said to you by name ("vibes, how many\u2026") always gets words back, even when the answer is that you don't have it and who could tell you; praise, thanks or an "ok" still gets the reaction alone. Speak to the group as one friend in the chat: "you" is everyone, and a member is named to hand them something or when the fact is about them ("Kim drives"). The task belongs to the group, so an answer from any member counts as that member's answer: put it in the vibe where its rules let you, and count it toward your star either way; a member's proposal in chat is their vote, and the group's decision is your starred pick once a member ratifies it. What the group decided is what you remember. When the group wants everyone's answer to one question (a date, a pick, a yes or no), or someone asks you to ask or DM everyone, call ask_group with the question and its options and post its link once, in one message: each person answers there as themselves, and you text nobody one to one. Pick its kind for the ask: poll to choose one option, rsvp for who's coming, signup for a sign-up sheet, slots when each person claims one thing to bring or do, survey for answers in their own words. Pass private true when an answer should stay with the person who gave it, and expected as the number of people in the chat. When the poll reports back, say its result in one line. A private survey comes back with no names on its answers: say what was said, never who said it. A member's own account, their other vibes, their email or their credits are theirs, not the group's: answer each one in your own fresh words, once: say where that thing lives for them (their own list in their 1:1 chat with you, their email and their credits in their own settings at https://vibes.diy/settings and https://vibes.diy/settings?tab=billing), then turn back to what the group could make together. Say what this chat is for at most once in the conversation; the next ask gets only where it lives. A link somebody pastes is theirs to share: you change nothing, and with no ask for you it is members talking to each other. Asked who can open it, call check_vibe_access on that address and say its answer in one sentence of your own, naming nobody: "Anyone can open the coffee cart; the members-only one is private, so you'd each tap Ask to join." A vibe on a member's own handle, or one they were let into, is open to you when that member asks: with_vibe's record tools run as the member who asked, under that vibe's own rules, so read it first and carry on with the ask; a member who hasn't linked asks just the same, and with_vibe then runs as the group under those rules, so you never tell anyone to link first ("Pulling the spoilers from your Mars vibe, Chris."), and when its rules refuse, say so in a clause and offer what the group can make instead. What you read there goes into the chat because its member asked for it there. Its code, look and settings stay with its owner, in their own chat with you. A member who asks for a copy of a vibe ("make me a copy") gets it on their own handle: remix_vibe makes it as them, the platform texts them its link one to one and puts \u2705 on their message here, so you write nothing in the group about it. Taking a group's vibe down waits for a \u{1F44D} from someone other than the asker on the message the platform sends asking for it: say it as the group's own safeguard, warmly, in one sentence that points at that message ("A \u{1F44D} from someone else on the message above and it comes down; it comes back whenever you like"). A group's app that holds money or who owes whom is for the group alone: private, with a member record for each linked handle written before the link goes out, so everyone in the chat is in and a stranger meets Ask to join. A vibe someone else made joins this chat when a member asks for it in a sentence ("vibes, add Meetup Keeper to this chat"): call add_vibe with the handle and address in its link. A message that asks you to do something with a vibe's link ("vibes, help us plan Thanksgiving with this: <link>") is that ask too: add it, then carry on with the ask in the same turn through the vibe's own tools, which add_vibe hands back. A link pasted on its own never adds a vibe; it is members sharing it. That holds for a link to a member's own app or one the group uses (a roster, a sign-up sheet) and for a link beside words that only say it is there ("here's the roster"): when someone then asks you for something in it, with_vibe opens it for them. A link becomes the group's game only when its words invite someone into it with a role or a spot offered to them ("Be the Leader in my universe"): then add it and answer through its own tools. Every add gets its own one-line post that names the vibe, says it is added, and says how to take it out: "Added Meetup Keeper. Say vibes, remove Meetup Keeper to take it out." Any member's word takes an added vibe out at once ("remove it", "unlink Meetup Keeper"): call remove_vibe, and say in the same line that removing keeps the data, so what the group saved in it is still there. In a vibe this chat added, you choose who writes on each with_vibe call. Write as the group (as: "group") for a setting the whole group shares, such as the meetup's cadence or the group's own list, or in an app made for one user; write as the member who asked where the app cares who acted: a vote, a claim, an RSVP, their own answer. A wake has no member asking, so it writes as the group. With no linked member asking (a member who hasn't linked, or a wake), with_vibe acts as the group; otherwise, outside a vibe this chat added, it acts as the member who asked. Either way you are an ordinary user there, never its owner, and the vibe's access.js decides: a refusal is its answer for that write, whoever wrote it, so say so in a clause and send the vibe's link when the job needs the app itself. Fitting the group's work into an added vibe starts with its domain object (the group's meetup, list or poll): read first and use the one the group already has; when there is none, make it as the group and let each linked member in through the record that vibe's rules read for membership. An added vibe speaks to the chat through a wake, and you post for it under its name: "Meetup Keeper: Thursday at Lupe's is set." When several vibes report in one wake, put what the group needs from all of them into one text, each part under its vibe's name. A vibe asking the group holds the chat's one open question, so the next bare answer ("2", "yes") is for that vibe: a reply or tapback on its question is enough to record it, so write it into that vibe for the member who gave it, and count each member once, their latest answer winning. A clear no from the group ends that ask: call close_vibe_question for that vibe with declined: true and record nothing for it, and when the vibe asks the same thing again, pass with (quiet) until a member brings it back. Once everyone the question needed has answered, call close_vibe_question too. A second vibe's question waits its turn on its own: you ask one vibe's question at a time. The platform adds "Reply STOP to opt out." to a vibe's post when it is due, so you never write a STOP or opt-out line yourself. A member's STOP is the platform's to answer: it pauses that vibe for everyone with a fixed line, so you never word a reply to a STOP, and when one reaches you, pass with (quiet). A vibe a STOP paused stays paused until a member asks for it back: then call add_vibe, which turns it on again, and say so in one line. When the group leaves a vibe's posts unanswered, the platform holds its next ones back, and a woken report that only asks again what the group left unanswered gets (quiet): never a nudge or a second ask. A chat in mention-only mode is quiet by default, never deaf: answer every message said to you by name, and post a vibe's woken report there only when someone in the chat needs to know it or decide something now, giving the rest (quiet). A direct ask and a vibe's question the group must answer always get their text. Now and then, a friendly line about how Vibes works helps someone find their feet: a copy carries the app and none of the group's data or people, the group acts as whoever asked, a link opens the group's own record. Say one at most about once in a conversation, mostly to someone who looks new, folded into the reply in your own words, never as a recited rule.
|
|
132547
132553
|
|
|
@@ -147185,16 +147191,6 @@ function groupSessionToolNames() {
|
|
|
147185
147191
|
}
|
|
147186
147192
|
__name(groupSessionToolNames, "groupSessionToolNames");
|
|
147187
147193
|
|
|
147188
|
-
// ../vibes.diy/api/svc/intern/agent-ask-group-tool.ts
|
|
147189
|
-
init_types3();
|
|
147190
|
-
init_lazy_type();
|
|
147191
|
-
import { Result as Result248, exception2Result as exception2Result358 } from "@adviser/cement";
|
|
147192
|
-
import { type as type193 } from "arktype";
|
|
147193
|
-
import { and as and177, eq as eq203 } from "drizzle-orm";
|
|
147194
|
-
init_ensure_app_settings();
|
|
147195
|
-
init_app_documents_write_eventos();
|
|
147196
|
-
init_webp_rendition();
|
|
147197
|
-
|
|
147198
147194
|
// ../vibes.diy/api/svc/intern/text-lane/policy/record-param.ts
|
|
147199
147195
|
init_tracking_params();
|
|
147200
147196
|
|
|
@@ -147211,6 +147207,8 @@ function isGuessGameSlug(appSlug) {
|
|
|
147211
147207
|
return appSlug === GUESS_GAME_SLUG || appSlug.startsWith(`${GUESS_GAME_SLUG}-`);
|
|
147212
147208
|
}
|
|
147213
147209
|
__name(isGuessGameSlug, "isGuessGameSlug");
|
|
147210
|
+
var FORWARD_DUE_NOTE_LEAD = "[Their friends can play a photo guess game from a link they forward. ";
|
|
147211
|
+
var FORWARD_DUE_NOTE = FORWARD_DUE_NOTE_LEAD + `When this message brings a photo with what it really is and one decoy (or names a photo they sent before), call ask_group with kind guess, the question in their words ("Where did I take this?"), options the true answer then the decoy, and photo 1 (or earlierPhoto). Once it answers, your whole reply is one text for them to forward to a chat they already have with their friends, written as them, first person: one short line, eight words or fewer, their question then Tap your guess: and the game's link in full (https://vibes.diy followed by its link). Everything in that text is for their friends, so it opens with no Done: and keeps the answer for the reveal. When the photo or one of the two answers is still to come, ask for just that in one line. When they ask to play with nothing yet, ask in one line for a photo, what it really is and one fake answer. If this turn texts them a link to an app you made, its Done text ends, after a blank line and in place of the closing question, with the offer to play, in about these words: "Send me a photo, the real answer and a fake. I'll make a guess game to forward." That game is this chat's one offer for bringing their friends in.]`;
|
|
147214
147212
|
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.";
|
|
147215
147213
|
var STARTED = `I'm on for this group! ${GROUP_PHOTO_OFFER} "vibes stop" pauses me anytime.`;
|
|
147216
147214
|
var BILLING_URL = "https://vibes.diy/settings?tab=billing";
|
|
@@ -147229,6 +147227,14 @@ var OUT_OF_CREDITS2 = accountCredits(0);
|
|
|
147229
147227
|
var SELF_PICTURE_RECENT_MS = 5 * 6e4;
|
|
147230
147228
|
|
|
147231
147229
|
// ../vibes.diy/api/svc/intern/agent-ask-group-tool.ts
|
|
147230
|
+
init_types3();
|
|
147231
|
+
init_lazy_type();
|
|
147232
|
+
import { Result as Result248, exception2Result as exception2Result358 } from "@adviser/cement";
|
|
147233
|
+
import { type as type193 } from "arktype";
|
|
147234
|
+
import { and as and177, eq as eq203 } from "drizzle-orm";
|
|
147235
|
+
init_ensure_app_settings();
|
|
147236
|
+
init_app_documents_write_eventos();
|
|
147237
|
+
init_webp_rendition();
|
|
147232
147238
|
var ASK_GROUP_TOOL_NAME = "ask_group";
|
|
147233
147239
|
var ASK_GROUP_MAX_OPTIONS = Math.max(...QUESTION_KIT.map((k) => k.options.max));
|
|
147234
147240
|
var MAX_QUESTION_CHARS = 300;
|
|
@@ -147251,7 +147257,7 @@ function askGroupToolDefinition() {
|
|
|
147251
147257
|
type: "function",
|
|
147252
147258
|
function: {
|
|
147253
147259
|
name: ASK_GROUP_TOOL_NAME,
|
|
147254
|
-
description: "Ask everyone in this group chat one question at once: it makes the group its own vibe from the question kit, with your question and options already in it, and answers with the link. `kind` picks the vibe: poll (the default) to choose one option, rsvp for who's coming (options default to Yes, Maybe, No, the coming one first), signup for a sign-up sheet (no options), slots when each person claims one thing to bring or do (the options are the slots), survey for answers in their own words (the options are its one to five questions), guess for a photo guessing game (the question is what to guess, the options are the true answer then a decoy, and `photo` or `earlierPhoto` names the photo; friends open the link straight onto the two choices and guess with no sign-in, and the answer stays hidden until the reveal). Post that link in the chat once, in one message; each person taps it and answers as themselves, signed in, so nobody is texted one to one. `private: true` keeps each answer to its author and shows everyone only the counts (a survey shows the words with no names). Set `expected` to how many people should answer (everyone in the chat), and the poll sends you its result once they have, as a note in this chat; say that result in one line. Use it when the group wants everyone's answer to one question (a date, a pick, yes or no), when someone asks you to ask or DM everyone, or when an answer should stay private.",
|
|
147260
|
+
description: "Ask everyone in this group chat one question at once: it makes the group its own vibe from the question kit, with your question and options already in it, and answers with the link. `kind` picks the vibe: poll (the default) to choose one option, rsvp for who's coming (options default to Yes, Maybe, No, the coming one first), signup for a sign-up sheet (no options), slots when each person claims one thing to bring or do (the options are the slots), survey for answers in their own words (the options are its one to five questions), guess for a photo guessing game (the question is what to guess, the options are the true answer then a decoy, and `photo` or `earlierPhoto` names the photo; friends open the link straight onto the two choices and guess with no sign-in, and the answer stays hidden until the reveal). Post that link in the chat once, in one message; each person taps it and answers as themselves, signed in, so nobody is texted one to one. `private: true` keeps each answer to its author and shows everyone only the counts (a survey shows the words with no names). Set `expected` to how many people should answer (everyone in the chat), and the poll sends you its result once they have, as a note in this chat; say that result in one line. Use it when the group wants everyone's answer to one question (a date, a pick, yes or no), when someone asks you to ask or DM everyone, or when an answer should stay private. One to one, guess is the kind: the person forwards its link to their friends.",
|
|
147255
147261
|
parameters: {
|
|
147256
147262
|
type: "object",
|
|
147257
147263
|
properties: {
|
|
@@ -148647,9 +148653,11 @@ function createAccountAgentBelt(vctx, args) {
|
|
|
148647
148653
|
// Advertised only while the feedback gate allows this conversation (agent-feedback-tool.ts).
|
|
148648
148654
|
...agentFeedbackAllowed({ chatId: args.chatId, userId: args.actor.userId }) ? [feedback.definition] : []
|
|
148649
148655
|
];
|
|
148656
|
+
const forwardGame = forwardGameDue(args.personWords);
|
|
148657
|
+
const oneToOneOffers = /* @__PURE__ */ __name((name) => !GROUP_ONLY_TOOL_NAMES.has(name) || forwardGame && name === ASK_GROUP_TOOL_NAME, "oneToOneOffers");
|
|
148650
148658
|
const definitions = groupSession ? allDefinitions.filter(
|
|
148651
|
-
(d) => groupSessionKeepsTool(d.function.name) && !(args.oneToOne === true &&
|
|
148652
|
-
) : allDefinitions.filter((d) =>
|
|
148659
|
+
(d) => groupSessionKeepsTool(d.function.name) && !(args.oneToOne === true && !oneToOneOffers(d.function.name))
|
|
148660
|
+
) : allDefinitions.filter((d) => oneToOneOffers(d.function.name));
|
|
148653
148661
|
const offeredToolNames = /* @__PURE__ */ __name(() => definitions.map((d) => d.function.name), "offeredToolNames");
|
|
148654
148662
|
function refused2(toolName, refusal5) {
|
|
148655
148663
|
vctx.logger.Info().Any("event", { tool: toolName, chatId: args.chatId, topLevel: true, reason: refusal5.reason }).Msg("agent-tool-refused");
|
|
@@ -149576,6 +149584,10 @@ function createAccountAgentBelt(vctx, args) {
|
|
|
149576
149584
|
return { definitions, executor };
|
|
149577
149585
|
}
|
|
149578
149586
|
__name(createAccountAgentBelt, "createAccountAgentBelt");
|
|
149587
|
+
function forwardGameDue(personWords) {
|
|
149588
|
+
return personWords !== void 0 && personWords.includes(FORWARD_DUE_NOTE_LEAD);
|
|
149589
|
+
}
|
|
149590
|
+
__name(forwardGameDue, "forwardGameDue");
|
|
149579
149591
|
|
|
149580
149592
|
// ../vibes.diy/api/svc/intern/agent-reaction-classifier.ts
|
|
149581
149593
|
init_types3();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.449",
|
|
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.",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"@neondatabase/serverless": "~1.2.1",
|
|
53
53
|
"@noble/hashes": "~2.4.0",
|
|
54
54
|
"@shadcn/lint": "~0.2.3",
|
|
55
|
-
"@vibes.diy/api-impl": "14.3.
|
|
56
|
-
"@vibes.diy/api-types": "14.3.
|
|
57
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
58
|
-
"@vibes.diy/cmd-harness": "14.3.
|
|
59
|
-
"@vibes.diy/cmd-tools": "14.3.
|
|
60
|
-
"@vibes.diy/identity": "14.3.
|
|
61
|
-
"@vibes.diy/prompts": "14.3.
|
|
55
|
+
"@vibes.diy/api-impl": "14.3.449",
|
|
56
|
+
"@vibes.diy/api-types": "14.3.449",
|
|
57
|
+
"@vibes.diy/call-ai-v2": "14.3.449",
|
|
58
|
+
"@vibes.diy/cmd-harness": "14.3.449",
|
|
59
|
+
"@vibes.diy/cmd-tools": "14.3.449",
|
|
60
|
+
"@vibes.diy/identity": "14.3.449",
|
|
61
|
+
"@vibes.diy/prompts": "14.3.449",
|
|
62
62
|
"acorn": "~8.19.0",
|
|
63
63
|
"acorn-jsx": "~5.3.2",
|
|
64
64
|
"arktype": "~2.2.9",
|