vibes-diy 14.3.322 → 14.3.323

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.
@@ -367546,7 +367546,50 @@ function guidedRemixCatalogLines(entries = guidedRemixesFor()) {
367546
367546
  __name(guidedRemixCatalogLines, "guidedRemixCatalogLines");
367547
367547
  var QUESTION_KIT = [
367548
367548
  // Source: vibes/group-poll (one question, one answer per person, a tally only onChange writes).
367549
- { kind: "poll", ownerHandle: "jchris", appSlug: "group-poll", questionDb: "poll", questionId: "question" }
367549
+ {
367550
+ kind: "poll",
367551
+ ownerHandle: "jchris",
367552
+ appSlug: "group-poll",
367553
+ questionDb: "poll",
367554
+ questionId: "question",
367555
+ options: { min: 2, max: 8, means: "the answers to pick from" }
367556
+ },
367557
+ // Source: vibes/group-rsvp (who's coming, with guests; the first option is the coming one).
367558
+ {
367559
+ kind: "rsvp",
367560
+ ownerHandle: "jchris",
367561
+ appSlug: "group-rsvp",
367562
+ questionDb: "rsvp",
367563
+ questionId: "question",
367564
+ options: { min: 2, max: 8, means: "the answers, the coming one first", default: ["Yes", "Maybe", "No"] }
367565
+ },
367566
+ // Source: vibes/group-signup (a sheet each person signs, with an optional note).
367567
+ {
367568
+ kind: "signup",
367569
+ ownerHandle: "jchris",
367570
+ appSlug: "group-signup",
367571
+ questionDb: "signup",
367572
+ questionId: "question",
367573
+ options: { min: 0, max: 0, means: "nothing: each person just signs up" }
367574
+ },
367575
+ // Source: vibes/group-slots (each person claims one slot, first come first served).
367576
+ {
367577
+ kind: "slots",
367578
+ ownerHandle: "jchris",
367579
+ appSlug: "group-slots",
367580
+ questionDb: "slots",
367581
+ questionId: "question",
367582
+ options: { min: 1, max: 20, means: "the slots, one thing to bring or do each" }
367583
+ },
367584
+ // Source: vibes/group-survey (one to five questions answered in words; a private one comes back unsigned).
367585
+ {
367586
+ kind: "survey",
367587
+ ownerHandle: "jchris",
367588
+ appSlug: "group-survey",
367589
+ questionDb: "survey",
367590
+ questionId: "question",
367591
+ options: { min: 1, max: 5, means: "the survey's questions, each answered in words" }
367592
+ }
367550
367593
  ];
367551
367594
  function questionKitFor(kind) {
367552
367595
  return QUESTION_KIT.find((k4) => k4.kind === kind);
@@ -367707,7 +367750,7 @@ YOUR OWN VIBES ARE YOURS TO TEND. A vibe under one of the person's handles, and
367707
367750
  The question you save is for a step that leaves the platform or cannot be undone: an email or text to someone outside Vibes, spending or charging money, changing a price, opening a private vibe to the whole world, deleting what other people wrote, and a step's go-live button. Ask it in one plain question, and take that step on a clear yes. The question offers only what a tool of yours can then do. With no tool that emails, texts or pays, the offer is the thing you can do, said as what it gives them: "I'll make the club an invite page you can text Sam. Want it?" A yes builds the page, and the Done text hands over the link to send: "Done: <link> Text this to Sam to bring them in." Asked to get a thing to a person ("send Sam the card"), put the thing itself in the chat, ready to forward. Connecting an account that takes real money is the person's own step, from a link. Inside a vibe, do the step and tell them after.
367708
367751
  Something the person hands you to work from (a receipt, a list, a menu) is read by you, now, and what they asked of it is answered in the reply, in the same turn. A split is arithmetic you show: each person's items, tax and tip in proportion, one line per person, and shares that add up to the total exactly; with no word on who had what, split it evenly and say so. A vibe to keep it is the side note, made when they will keep using it, with its lines written in as records before the link goes out: one record per line (an item with its price, a name with its dish), keyed to its parent (the receipt, the list), raw as given, with totals derived from the lines. When the picture is not in front of you, the first text asks for the lines as the step to their answer: "Type the receipt's lines here (each item and price, then tax and tip) and I'll split it to the cent." "What do we need to book it" gets the bookable list (place, date, time, party size, who calls) and never a claim that a table is booked.
367709
367752
 
367710
- 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. 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 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 ("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. 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 link pasted on its own never adds a vibe; it is members sharing it. 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. The group writes as itself only in a vibe this chat added; anywhere else with_vibe 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.
367753
+ 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 ("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. 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 link pasted on its own never adds a vibe; it is members sharing it. 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. The group writes as itself only in a vibe this chat added; anywhere else with_vibe 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.
367711
367754
 
367712
367755
  WHAT THIS CHAT IS CONNECTED TO. In a group, chat_status says what this chat is connected to: each added vibe with its link, who added it, what it may do here and how often it runs on its own, and how many of today's updates from vibes are used. Call it when a member asks what is added, what a vibe can do here, or why one did or did not post, and answer from it. Say a platform fact solution first, in the app's own words, with its link: the vibe by its name, what it does for the group, then the link to open it ("Meetup Keeper is in here: it posts the next meetup and reminds you the day before. https://vibes.diy/vibe/team/meetup-keeper"). The machinery's words stay out of the chat: say the group, the vibe, an update and its link, never principal, wake, tenant, handle or sponsor. A day's updates all used is said only when someone asks why a vibe went quiet ("Meetup Keeper has used today's updates; it picks up again tomorrow."), and never volunteered. Credits and sign-ins are each member's own, answered in their own chat with Vibes and at https://vibes.diy/settings?tab=billing. When the context names what changed in this chat since the last turn, a change the chat has not heard about gets one line with its link; one already posted needs nothing more.
367713
367756
 
@@ -379512,14 +379555,15 @@ init_esm();
379512
379555
  init_out4();
379513
379556
  init_lazy_type();
379514
379557
  var ASK_GROUP_TOOL_NAME = "ask_group";
379515
- var ASK_GROUP_MAX_OPTIONS = 8;
379558
+ var ASK_GROUP_MAX_OPTIONS = Math.max(...QUESTION_KIT.map((k4) => k4.options.max));
379516
379559
  var MAX_QUESTION_CHARS = 300;
379517
379560
  var MAX_OPTION_CHARS = 100;
379518
379561
  var MAX_EXPECTED = 100;
379519
379562
  var askGroupInput = lazyType(
379520
379563
  () => type({
379564
+ "kind?": "'poll' | 'rsvp' | 'signup' | 'slots' | 'survey'",
379521
379565
  question: "string",
379522
- options: "string[]",
379566
+ "options?": "string[]",
379523
379567
  "private?": "boolean",
379524
379568
  "expected?": "number"
379525
379569
  }).onUndeclaredKey("reject")
@@ -379529,26 +379573,40 @@ function askGroupToolDefinition() {
379529
379573
  type: "function",
379530
379574
  function: {
379531
379575
  name: ASK_GROUP_TOOL_NAME,
379532
- description: "Ask everyone in this group chat one question at once: it makes the group its own poll vibe from the question kit, with your question and options already in it, and answers with the link. 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. 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.",
379576
+ 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). 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.",
379533
379577
  parameters: {
379534
379578
  type: "object",
379535
379579
  properties: {
379536
- question: { type: "string", description: `The question, in the group's words (up to ${MAX_QUESTION_CHARS} characters).` },
379580
+ kind: {
379581
+ type: "string",
379582
+ enum: QUESTION_KIT.map((k4) => k4.kind),
379583
+ description: "Which kit vibe asks it: poll (default), rsvp, signup, slots or survey."
379584
+ },
379585
+ question: {
379586
+ type: "string",
379587
+ description: `The question, event, sheet or survey title, in the group's words (up to ${MAX_QUESTION_CHARS} characters).`
379588
+ },
379537
379589
  options: {
379538
379590
  type: "array",
379539
379591
  items: { type: "string" },
379540
- description: `The answers to pick from, 2 to ${ASK_GROUP_MAX_OPTIONS}, each a few words.`
379592
+ description: `Each a few words. ${QUESTION_KIT.map((k4) => `${k4.kind}: ${optionsRule(k4)}`).join("; ")}.`
379541
379593
  },
379542
379594
  private: { type: "boolean", description: "true when each answer should be seen only by the person who gave it." },
379543
379595
  expected: { type: "number", description: "How many people should answer; usually everyone in the chat." }
379544
379596
  },
379545
- required: ["question", "options"],
379597
+ required: ["question"],
379546
379598
  additionalProperties: false
379547
379599
  }
379548
379600
  }
379549
379601
  };
379550
379602
  }
379551
379603
  __name(askGroupToolDefinition, "askGroupToolDefinition");
379604
+ function optionsRule(kit) {
379605
+ const o4 = kit.options;
379606
+ const count6 = o4.max === 0 ? "none" : o4.min === o4.max ? `${o4.min}` : `${o4.min} to ${o4.max}`;
379607
+ return `${count6}, ${o4.means}${o4.default === void 0 ? "" : ` (default ${o4.default.join(", ")})`}`;
379608
+ }
379609
+ __name(optionsRule, "optionsRule");
379552
379610
  function refusal2(reason, message5) {
379553
379611
  return Result.Ok(JSON.stringify({ ok: false, reason, message: message5 }));
379554
379612
  }
@@ -379609,6 +379667,7 @@ function askGroupQuestionDoc(input3) {
379609
379667
  return {
379610
379668
  _id: "question",
379611
379669
  type: "question",
379670
+ kind: input3.kind ?? "poll",
379612
379671
  question: input3.question,
379613
379672
  options: [...input3.options],
379614
379673
  private: input3.private,
@@ -379632,15 +379691,21 @@ function createAskGroupTool(vctx, args3) {
379632
379691
  const raw = exception2Result(() => JSON.parse(input3.call.arguments));
379633
379692
  const parsed3 = raw.isOk() ? askGroupInput(raw.Ok()) : void 0;
379634
379693
  if (parsed3 === void 0 || parsed3 instanceof type.errors) {
379635
- return refusal2("invalid-input", "ask_group takes a question and 2 to 8 options.");
379694
+ return refusal2(
379695
+ "invalid-input",
379696
+ "ask_group takes a question, a kind (poll, rsvp, signup, slots or survey; poll by default) and that kind's options."
379697
+ );
379636
379698
  }
379699
+ const kind = parsed3.kind ?? "poll";
379700
+ const kit = questionKitFor(kind);
379637
379701
  const question2 = parsed3.question.trim();
379638
- const options = parsed3.options.map((o4) => o4.trim()).filter((o4) => o4 !== "");
379702
+ const given = (parsed3.options ?? []).map((o4) => o4.trim()).filter((o4) => o4 !== "");
379703
+ const options = given.length === 0 && kit?.options.default !== void 0 ? [...kit.options.default] : given;
379639
379704
  if (question2 === "" || question2.length > MAX_QUESTION_CHARS) {
379640
379705
  return refusal2("invalid-input", `The question is one line of up to ${MAX_QUESTION_CHARS} characters.`);
379641
379706
  }
379642
- if (options.length < 2 || options.length > ASK_GROUP_MAX_OPTIONS || options.some((o4) => o4.length > MAX_OPTION_CHARS)) {
379643
- return refusal2("invalid-input", `A poll takes 2 to ${ASK_GROUP_MAX_OPTIONS} options, each a few words.`);
379707
+ if (kit !== void 0 && (options.length < kit.options.min || options.length > kit.options.max || options.some((o4) => o4.length > MAX_OPTION_CHARS))) {
379708
+ return refusal2("invalid-input", `A ${kind} takes options: ${optionsRule(kit)}.`);
379644
379709
  }
379645
379710
  if (new Set(options.map((o4) => o4.toLowerCase())).size !== options.length) {
379646
379711
  return refusal2("invalid-input", "Each option is different from the others.");
@@ -379649,12 +379714,11 @@ function createAskGroupTool(vctx, args3) {
379649
379714
  if (expected !== void 0 && (!Number.isInteger(expected) || expected < 1 || expected > MAX_EXPECTED)) {
379650
379715
  return refusal2("invalid-input", `expected is how many people should answer, 1 to ${MAX_EXPECTED}.`);
379651
379716
  }
379652
- const kit = questionKitFor("poll");
379653
379717
  const rCopy = kit === void 0 ? Result.Err("unavailable") : await deps.remix(kit, args3.actor.ownerHandle);
379654
379718
  if (kit === void 0 || rCopy.isErr()) {
379655
379719
  return refusal2(
379656
379720
  "kit-unavailable",
379657
- "The poll kit could not be copied just now. Build the group a poll with create_vibe instead, with this question and these options, and post its link once."
379721
+ `The ${kind} kit could not be copied just now. Build the group one with create_vibe instead, with this question and these options, and post its link once.`
379658
379722
  );
379659
379723
  }
379660
379724
  const target2 = rCopy.Ok();
@@ -379664,6 +379728,7 @@ function createAskGroupTool(vctx, args3) {
379664
379728
  target2,
379665
379729
  kit,
379666
379730
  askGroupQuestionDoc({
379731
+ kind,
379667
379732
  question: question2,
379668
379733
  options,
379669
379734
  private: parsed3.private === true,
@@ -379675,13 +379740,14 @@ function createAskGroupTool(vctx, args3) {
379675
379740
  vctx.logger.Warn().Any("target", target2).Str("message", seeded.message).Msg("ask_group: question not saved");
379676
379741
  return refusal2(
379677
379742
  "not-seeded",
379678
- `The poll was made at ${link3} but the question did not save in it. Try ask_group once more, or open it with with_vibe and put the question record there.`
379743
+ `The ${kind} was made at ${link3} but the question did not save in it. Try ask_group once more, or open it with with_vibe and put the question record there.`
379679
379744
  );
379680
379745
  }
379681
- vctx.logger.Info().Any("event", { tool: ASK_GROUP_TOOL_NAME, ownerHandle: target2.ownerHandle, appSlug: target2.appSlug, opened }).Msg("agent-ask-group");
379746
+ vctx.logger.Info().Any("event", { tool: ASK_GROUP_TOOL_NAME, kind, ownerHandle: target2.ownerHandle, appSlug: target2.appSlug, opened }).Msg("agent-ask-group");
379682
379747
  return Result.Ok(
379683
379748
  JSON.stringify({
379684
379749
  ok: true,
379750
+ kind,
379685
379751
  ownerHandle: target2.ownerHandle,
379686
379752
  appSlug: target2.appSlug,
379687
379753
  link: link3,
@@ -379692,7 +379758,7 @@ function createAskGroupTool(vctx, args3) {
379692
379758
  ...opened ? { open: "Anyone with the link can answer, signed in, so nobody needs letting in first." } : {
379693
379759
  note: "It is still members-only: open it with vibe_settings set_posture open before you post the link, so everyone can answer."
379694
379760
  },
379695
- next: "Post the link in the chat once, in one message. Each person answers there as themselves; text nobody one to one. The poll's result comes back to you here as a note; say it in one line."
379761
+ next: "Post the link in the chat once, in one message. Each person answers there as themselves; text nobody one to one. Its result comes back to you here as a note; say it in one line" + (kind === "survey" && parsed3.private === true ? ", what was said and never who said it." : ".")
379696
379762
  })
379697
379763
  );
379698
379764
  }, "executor");
@@ -396834,8 +396900,10 @@ var EXCLUDED_OWNER_HANDLE_PATTERNS = [
396834
396900
  // NOT in the shared list, and it must be here: automated eval runs build
396835
396901
  // under the `eval` handle (owner directive 2026-09-03), which sits on a staff
396836
396902
  // ACCOUNT that `EXCLUDED_HANDLE_PATTERNS` excludes by its OTHER handles — so
396837
- // `eval` itself has no entry by name anywhere else.
396838
- /^eval$/i,
396903
+ // `eval` itself has no entry by name anywhere else. The whole eval family
396904
+ // (`eval`, `eval-<job>-<yyyymm>`, `evalpr<n>`), since agent handles are
396905
+ // named qa or eval from any staff account (owner, 2026-11-11).
396906
+ EVAL_HANDLE_FAMILY,
396839
396907
  // The Bluesky mention-build lane's own handle (agents/social-mention-builds.md).
396840
396908
  /^mentions$/i,
396841
396909
  // Marcus Estes's three accounts: test batches run under them, so their apps
@@ -118143,7 +118143,50 @@ var init_agent_guided_catalog = __esm({
118143
118143
  __name(guidedRemixCatalogLines, "guidedRemixCatalogLines");
118144
118144
  QUESTION_KIT = [
118145
118145
  // Source: vibes/group-poll (one question, one answer per person, a tally only onChange writes).
118146
- { kind: "poll", ownerHandle: "jchris", appSlug: "group-poll", questionDb: "poll", questionId: "question" }
118146
+ {
118147
+ kind: "poll",
118148
+ ownerHandle: "jchris",
118149
+ appSlug: "group-poll",
118150
+ questionDb: "poll",
118151
+ questionId: "question",
118152
+ options: { min: 2, max: 8, means: "the answers to pick from" }
118153
+ },
118154
+ // Source: vibes/group-rsvp (who's coming, with guests; the first option is the coming one).
118155
+ {
118156
+ kind: "rsvp",
118157
+ ownerHandle: "jchris",
118158
+ appSlug: "group-rsvp",
118159
+ questionDb: "rsvp",
118160
+ questionId: "question",
118161
+ options: { min: 2, max: 8, means: "the answers, the coming one first", default: ["Yes", "Maybe", "No"] }
118162
+ },
118163
+ // Source: vibes/group-signup (a sheet each person signs, with an optional note).
118164
+ {
118165
+ kind: "signup",
118166
+ ownerHandle: "jchris",
118167
+ appSlug: "group-signup",
118168
+ questionDb: "signup",
118169
+ questionId: "question",
118170
+ options: { min: 0, max: 0, means: "nothing: each person just signs up" }
118171
+ },
118172
+ // Source: vibes/group-slots (each person claims one slot, first come first served).
118173
+ {
118174
+ kind: "slots",
118175
+ ownerHandle: "jchris",
118176
+ appSlug: "group-slots",
118177
+ questionDb: "slots",
118178
+ questionId: "question",
118179
+ options: { min: 1, max: 20, means: "the slots, one thing to bring or do each" }
118180
+ },
118181
+ // Source: vibes/group-survey (one to five questions answered in words; a private one comes back unsigned).
118182
+ {
118183
+ kind: "survey",
118184
+ ownerHandle: "jchris",
118185
+ appSlug: "group-survey",
118186
+ questionDb: "survey",
118187
+ questionId: "question",
118188
+ options: { min: 1, max: 5, means: "the survey's questions, each answered in words" }
118189
+ }
118147
118190
  ];
118148
118191
  __name(questionKitFor, "questionKitFor");
118149
118192
  }
@@ -118323,7 +118366,7 @@ YOUR OWN VIBES ARE YOURS TO TEND. A vibe under one of the person's handles, and
118323
118366
  The question you save is for a step that leaves the platform or cannot be undone: an email or text to someone outside Vibes, spending or charging money, changing a price, opening a private vibe to the whole world, deleting what other people wrote, and a step's go-live button. Ask it in one plain question, and take that step on a clear yes. The question offers only what a tool of yours can then do. With no tool that emails, texts or pays, the offer is the thing you can do, said as what it gives them: "I'll make the club an invite page you can text Sam. Want it?" A yes builds the page, and the Done text hands over the link to send: "Done: <link> Text this to Sam to bring them in." Asked to get a thing to a person ("send Sam the card"), put the thing itself in the chat, ready to forward. Connecting an account that takes real money is the person's own step, from a link. Inside a vibe, do the step and tell them after.
118324
118367
  Something the person hands you to work from (a receipt, a list, a menu) is read by you, now, and what they asked of it is answered in the reply, in the same turn. A split is arithmetic you show: each person's items, tax and tip in proportion, one line per person, and shares that add up to the total exactly; with no word on who had what, split it evenly and say so. A vibe to keep it is the side note, made when they will keep using it, with its lines written in as records before the link goes out: one record per line (an item with its price, a name with its dish), keyed to its parent (the receipt, the list), raw as given, with totals derived from the lines. When the picture is not in front of you, the first text asks for the lines as the step to their answer: "Type the receipt's lines here (each item and price, then tax and tip) and I'll split it to the cent." "What do we need to book it" gets the bookable list (place, date, time, party size, who calls) and never a claim that a table is booked.
118325
118368
 
118326
- 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. 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 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 ("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. 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 link pasted on its own never adds a vibe; it is members sharing it. 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. The group writes as itself only in a vibe this chat added; anywhere else with_vibe 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.
118369
+ 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 ("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. 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 link pasted on its own never adds a vibe; it is members sharing it. 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. The group writes as itself only in a vibe this chat added; anywhere else with_vibe 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.
118327
118370
 
118328
118371
  WHAT THIS CHAT IS CONNECTED TO. In a group, chat_status says what this chat is connected to: each added vibe with its link, who added it, what it may do here and how often it runs on its own, and how many of today's updates from vibes are used. Call it when a member asks what is added, what a vibe can do here, or why one did or did not post, and answer from it. Say a platform fact solution first, in the app's own words, with its link: the vibe by its name, what it does for the group, then the link to open it ("Meetup Keeper is in here: it posts the next meetup and reminds you the day before. https://vibes.diy/vibe/team/meetup-keeper"). The machinery's words stay out of the chat: say the group, the vibe, an update and its link, never principal, wake, tenant, handle or sponsor. A day's updates all used is said only when someone asks why a vibe went quiet ("Meetup Keeper has used today's updates; it picks up again tomorrow."), and never volunteered. Credits and sign-ins are each member's own, answered in their own chat with Vibes and at https://vibes.diy/settings?tab=billing. When the context names what changed in this chat since the last turn, a change the chat has not heard about gets one line with its link; one already posted needs nothing more.
118329
118372
 
@@ -130630,25 +130673,38 @@ function askGroupToolDefinition() {
130630
130673
  type: "function",
130631
130674
  function: {
130632
130675
  name: ASK_GROUP_TOOL_NAME,
130633
- description: "Ask everyone in this group chat one question at once: it makes the group its own poll vibe from the question kit, with your question and options already in it, and answers with the link. 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. 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.",
130676
+ 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). 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.",
130634
130677
  parameters: {
130635
130678
  type: "object",
130636
130679
  properties: {
130637
- question: { type: "string", description: `The question, in the group's words (up to ${MAX_QUESTION_CHARS} characters).` },
130680
+ kind: {
130681
+ type: "string",
130682
+ enum: QUESTION_KIT.map((k) => k.kind),
130683
+ description: "Which kit vibe asks it: poll (default), rsvp, signup, slots or survey."
130684
+ },
130685
+ question: {
130686
+ type: "string",
130687
+ description: `The question, event, sheet or survey title, in the group's words (up to ${MAX_QUESTION_CHARS} characters).`
130688
+ },
130638
130689
  options: {
130639
130690
  type: "array",
130640
130691
  items: { type: "string" },
130641
- description: `The answers to pick from, 2 to ${ASK_GROUP_MAX_OPTIONS}, each a few words.`
130692
+ description: `Each a few words. ${QUESTION_KIT.map((k) => `${k.kind}: ${optionsRule(k)}`).join("; ")}.`
130642
130693
  },
130643
130694
  private: { type: "boolean", description: "true when each answer should be seen only by the person who gave it." },
130644
130695
  expected: { type: "number", description: "How many people should answer; usually everyone in the chat." }
130645
130696
  },
130646
- required: ["question", "options"],
130697
+ required: ["question"],
130647
130698
  additionalProperties: false
130648
130699
  }
130649
130700
  }
130650
130701
  };
130651
130702
  }
130703
+ function optionsRule(kit) {
130704
+ const o = kit.options;
130705
+ const count6 = o.max === 0 ? "none" : o.min === o.max ? `${o.min}` : `${o.min} to ${o.max}`;
130706
+ return `${count6}, ${o.means}${o.default === void 0 ? "" : ` (default ${o.default.join(", ")})`}`;
130707
+ }
130652
130708
  function refusal2(reason, message3) {
130653
130709
  return Result223.Ok(JSON.stringify({ ok: false, reason, message: message3 }));
130654
130710
  }
@@ -130707,6 +130763,7 @@ function askGroupQuestionDoc(input) {
130707
130763
  return {
130708
130764
  _id: "question",
130709
130765
  type: "question",
130766
+ kind: input.kind ?? "poll",
130710
130767
  question: input.question,
130711
130768
  options: [...input.options],
130712
130769
  private: input.private,
@@ -130729,15 +130786,21 @@ function createAskGroupTool(vctx, args) {
130729
130786
  const raw = exception2Result287(() => JSON.parse(input.call.arguments));
130730
130787
  const parsed = raw.isOk() ? askGroupInput(raw.Ok()) : void 0;
130731
130788
  if (parsed === void 0 || parsed instanceof type176.errors) {
130732
- return refusal2("invalid-input", "ask_group takes a question and 2 to 8 options.");
130789
+ return refusal2(
130790
+ "invalid-input",
130791
+ "ask_group takes a question, a kind (poll, rsvp, signup, slots or survey; poll by default) and that kind's options."
130792
+ );
130733
130793
  }
130794
+ const kind = parsed.kind ?? "poll";
130795
+ const kit = questionKitFor(kind);
130734
130796
  const question2 = parsed.question.trim();
130735
- const options = parsed.options.map((o) => o.trim()).filter((o) => o !== "");
130797
+ const given = (parsed.options ?? []).map((o) => o.trim()).filter((o) => o !== "");
130798
+ const options = given.length === 0 && kit?.options.default !== void 0 ? [...kit.options.default] : given;
130736
130799
  if (question2 === "" || question2.length > MAX_QUESTION_CHARS) {
130737
130800
  return refusal2("invalid-input", `The question is one line of up to ${MAX_QUESTION_CHARS} characters.`);
130738
130801
  }
130739
- if (options.length < 2 || options.length > ASK_GROUP_MAX_OPTIONS || options.some((o) => o.length > MAX_OPTION_CHARS)) {
130740
- return refusal2("invalid-input", `A poll takes 2 to ${ASK_GROUP_MAX_OPTIONS} options, each a few words.`);
130802
+ if (kit !== void 0 && (options.length < kit.options.min || options.length > kit.options.max || options.some((o) => o.length > MAX_OPTION_CHARS))) {
130803
+ return refusal2("invalid-input", `A ${kind} takes options: ${optionsRule(kit)}.`);
130741
130804
  }
130742
130805
  if (new Set(options.map((o) => o.toLowerCase())).size !== options.length) {
130743
130806
  return refusal2("invalid-input", "Each option is different from the others.");
@@ -130746,12 +130809,11 @@ function createAskGroupTool(vctx, args) {
130746
130809
  if (expected !== void 0 && (!Number.isInteger(expected) || expected < 1 || expected > MAX_EXPECTED)) {
130747
130810
  return refusal2("invalid-input", `expected is how many people should answer, 1 to ${MAX_EXPECTED}.`);
130748
130811
  }
130749
- const kit = questionKitFor("poll");
130750
130812
  const rCopy = kit === void 0 ? Result223.Err("unavailable") : await deps.remix(kit, args.actor.ownerHandle);
130751
130813
  if (kit === void 0 || rCopy.isErr()) {
130752
130814
  return refusal2(
130753
130815
  "kit-unavailable",
130754
- "The poll kit could not be copied just now. Build the group a poll with create_vibe instead, with this question and these options, and post its link once."
130816
+ `The ${kind} kit could not be copied just now. Build the group one with create_vibe instead, with this question and these options, and post its link once.`
130755
130817
  );
130756
130818
  }
130757
130819
  const target2 = rCopy.Ok();
@@ -130761,6 +130823,7 @@ function createAskGroupTool(vctx, args) {
130761
130823
  target2,
130762
130824
  kit,
130763
130825
  askGroupQuestionDoc({
130826
+ kind,
130764
130827
  question: question2,
130765
130828
  options,
130766
130829
  private: parsed.private === true,
@@ -130772,13 +130835,14 @@ function createAskGroupTool(vctx, args) {
130772
130835
  vctx.logger.Warn().Any("target", target2).Str("message", seeded.message).Msg("ask_group: question not saved");
130773
130836
  return refusal2(
130774
130837
  "not-seeded",
130775
- `The poll was made at ${link} but the question did not save in it. Try ask_group once more, or open it with with_vibe and put the question record there.`
130838
+ `The ${kind} was made at ${link} but the question did not save in it. Try ask_group once more, or open it with with_vibe and put the question record there.`
130776
130839
  );
130777
130840
  }
130778
- vctx.logger.Info().Any("event", { tool: ASK_GROUP_TOOL_NAME, ownerHandle: target2.ownerHandle, appSlug: target2.appSlug, opened }).Msg("agent-ask-group");
130841
+ vctx.logger.Info().Any("event", { tool: ASK_GROUP_TOOL_NAME, kind, ownerHandle: target2.ownerHandle, appSlug: target2.appSlug, opened }).Msg("agent-ask-group");
130779
130842
  return Result223.Ok(
130780
130843
  JSON.stringify({
130781
130844
  ok: true,
130845
+ kind,
130782
130846
  ownerHandle: target2.ownerHandle,
130783
130847
  appSlug: target2.appSlug,
130784
130848
  link,
@@ -130789,7 +130853,7 @@ function createAskGroupTool(vctx, args) {
130789
130853
  ...opened ? { open: "Anyone with the link can answer, signed in, so nobody needs letting in first." } : {
130790
130854
  note: "It is still members-only: open it with vibe_settings set_posture open before you post the link, so everyone can answer."
130791
130855
  },
130792
- next: "Post the link in the chat once, in one message. Each person answers there as themselves; text nobody one to one. The poll's result comes back to you here as a note; say it in one line."
130856
+ next: "Post the link in the chat once, in one message. Each person answers there as themselves; text nobody one to one. Its result comes back to you here as a note; say it in one line" + (kind === "survey" && parsed.private === true ? ", what was said and never who said it." : ".")
130793
130857
  })
130794
130858
  );
130795
130859
  }, "executor");
@@ -130806,19 +130870,21 @@ var init_agent_ask_group_tool = __esm({
130806
130870
  init_app_documents_write_eventos();
130807
130871
  init_agent_guided_catalog();
130808
130872
  ASK_GROUP_TOOL_NAME = "ask_group";
130809
- ASK_GROUP_MAX_OPTIONS = 8;
130873
+ ASK_GROUP_MAX_OPTIONS = Math.max(...QUESTION_KIT.map((k) => k.options.max));
130810
130874
  MAX_QUESTION_CHARS = 300;
130811
130875
  MAX_OPTION_CHARS = 100;
130812
130876
  MAX_EXPECTED = 100;
130813
130877
  askGroupInput = lazyType(
130814
130878
  () => type176({
130879
+ "kind?": "'poll' | 'rsvp' | 'signup' | 'slots' | 'survey'",
130815
130880
  question: "string",
130816
- options: "string[]",
130881
+ "options?": "string[]",
130817
130882
  "private?": "boolean",
130818
130883
  "expected?": "number"
130819
130884
  }).onUndeclaredKey("reject")
130820
130885
  );
130821
130886
  __name(askGroupToolDefinition, "askGroupToolDefinition");
130887
+ __name(optionsRule, "optionsRule");
130822
130888
  __name(refusal2, "refusal");
130823
130889
  __name(liveAskGroupDeps, "liveAskGroupDeps");
130824
130890
  __name(askGroupQuestionDoc, "askGroupQuestionDoc");
@@ -149394,8 +149460,10 @@ var init_vibe_traffic_source = __esm({
149394
149460
  // NOT in the shared list, and it must be here: automated eval runs build
149395
149461
  // under the `eval` handle (owner directive 2026-09-03), which sits on a staff
149396
149462
  // ACCOUNT that `EXCLUDED_HANDLE_PATTERNS` excludes by its OTHER handles — so
149397
- // `eval` itself has no entry by name anywhere else.
149398
- /^eval$/i,
149463
+ // `eval` itself has no entry by name anywhere else. The whole eval family
149464
+ // (`eval`, `eval-<job>-<yyyymm>`, `evalpr<n>`), since agent handles are
149465
+ // named qa or eval from any staff account (owner, 2026-11-11).
149466
+ EVAL_HANDLE_FAMILY,
149399
149467
  // The Bluesky mention-build lane's own handle (agents/social-mention-builds.md).
149400
149468
  /^mentions$/i,
149401
149469
  // Marcus Estes's three accounts: test batches run under them, so their apps
@@ -154993,15 +155061,22 @@ var init_ws_proxy = __esm({
154993
155061
 
154994
155062
  // ../vibes.diy/api/impl/websocket-connection.ts
154995
155063
  import { BuildURI as BuildURI21, exception2Result as exception2Result351, Future as Future4, KeyedResolvOnce as KeyedResolvOnce8, OnFunc as OnFunc2, Result as Result346, URI as URI47 } from "@adviser/cement";
155064
+ function runtimeWebSocketImpl() {
155065
+ return {
155066
+ globalWebSocket: typeof globalThis.WebSocket === "undefined" ? void 0 : globalThis.WebSocket,
155067
+ loadWs: /* @__PURE__ */ __name(() => import("ws"), "loadWs")
155068
+ };
155069
+ }
154996
155070
  async function createWebSocket(url, opts = {}) {
154997
155071
  const { ca, proxy, connector } = opts;
155072
+ const impl = opts.impl ?? runtimeWebSocketImpl();
154998
155073
  if (proxy?.kind === "invalid") {
154999
155074
  throw new Error(proxy.message);
155000
155075
  }
155001
- if (typeof globalThis.WebSocket !== "undefined" && ca === void 0 && proxy?.kind !== "proxy") {
155002
- return new WebSocket(url);
155076
+ if (impl.globalWebSocket !== void 0 && ca === void 0 && proxy?.kind !== "proxy") {
155077
+ return new impl.globalWebSocket(url);
155003
155078
  }
155004
- const ws = await import("ws");
155079
+ const ws = await impl.loadWs();
155005
155080
  if (proxy?.kind === "proxy") {
155006
155081
  if (connector === void 0) {
155007
155082
  throw new Error("a proxy is configured but this runtime has no CONNECT tunnel connector");
@@ -155109,7 +155184,7 @@ function getVibesDiyWebSocketConnection(url, presetWs, opts = {}) {
155109
155184
  ws.onmessage = (event) => {
155110
155185
  onMessage.invoke({ type: "MessageEvent", event });
155111
155186
  };
155112
- if (ws.readyState === WebSocket.OPEN) {
155187
+ if (ws.readyState === WS_READY_STATE_OPEN) {
155113
155188
  opened = true;
155114
155189
  clearOpenTimer();
155115
155190
  waitOpen.resolve(ws);
@@ -155124,11 +155199,9 @@ function getVibesDiyWebSocketConnection(url, presetWs, opts = {}) {
155124
155199
  nativeClose?.();
155125
155200
  return Promise.resolve();
155126
155201
  }, "close"),
155127
- // The spec's OPEN constant (1), not `WebSocket.OPEN`: on the node "ws"
155128
- // path there may be no global WebSocket to read it from.
155129
155202
  isOpen: /* @__PURE__ */ __name(() => ws2.readyState === WS_READY_STATE_OPEN, "isOpen"),
155130
155203
  send: /* @__PURE__ */ __name((data) => {
155131
- if (ws2.readyState === WebSocket.CLOSING || ws2.readyState === WebSocket.CLOSED) {
155204
+ if (ws2.readyState === WS_READY_STATE_CLOSING || ws2.readyState === WS_READY_STATE_CLOSED) {
155132
155205
  return fail(`WebSocket is not open (readyState=${ws2.readyState})`);
155133
155206
  }
155134
155207
  const rSend = exception2Result351(() => ws2.send(data));
@@ -155140,19 +155213,22 @@ function getVibesDiyWebSocketConnection(url, presetWs, opts = {}) {
155140
155213
  }));
155141
155214
  });
155142
155215
  }
155143
- var vibesDiyApiPerConnection, WS_OPEN_TIMEOUT_MS, WS_READY_STATE_OPEN;
155216
+ var vibesDiyApiPerConnection, WS_OPEN_TIMEOUT_MS, WS_READY_STATE_OPEN, WS_READY_STATE_CLOSING, WS_READY_STATE_CLOSED;
155144
155217
  var init_websocket_connection = __esm({
155145
155218
  "../vibes.diy/api/impl/websocket-connection.ts"() {
155146
155219
  "use strict";
155147
155220
  init_types3();
155148
155221
  init_ws_proxy();
155149
155222
  vibesDiyApiPerConnection = new KeyedResolvOnce8();
155223
+ __name(runtimeWebSocketImpl, "runtimeWebSocketImpl");
155150
155224
  __name(createWebSocket, "createWebSocket");
155151
155225
  __name(connectionCacheKey, "connectionCacheKey");
155152
155226
  WS_OPEN_TIMEOUT_MS = 2e4;
155153
155227
  __name(proxyRouteKey, "proxyRouteKey");
155154
155228
  __name(describeTarget, "describeTarget");
155155
155229
  WS_READY_STATE_OPEN = 1;
155230
+ WS_READY_STATE_CLOSING = 2;
155231
+ WS_READY_STATE_CLOSED = 3;
155156
155232
  __name(getVibesDiyWebSocketConnection, "getVibesDiyWebSocketConnection");
155157
155233
  }
155158
155234
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibes-diy",
3
- "version": "14.3.322",
3
+ "version": "14.3.323",
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.322",
45
- "@vibes.diy/api-types": "14.3.322",
46
- "@vibes.diy/call-ai-v2": "14.3.322",
47
- "@vibes.diy/cmd-harness": "14.3.322",
48
- "@vibes.diy/cmd-tools": "14.3.322",
49
- "@vibes.diy/identity": "14.3.322",
50
- "@vibes.diy/prompts": "14.3.322",
44
+ "@vibes.diy/api-impl": "14.3.323",
45
+ "@vibes.diy/api-types": "14.3.323",
46
+ "@vibes.diy/call-ai-v2": "14.3.323",
47
+ "@vibes.diy/cmd-harness": "14.3.323",
48
+ "@vibes.diy/cmd-tools": "14.3.323",
49
+ "@vibes.diy/identity": "14.3.323",
50
+ "@vibes.diy/prompts": "14.3.323",
51
51
  "acorn": "~8.19.0",
52
52
  "acorn-jsx": "~5.3.2",
53
53
  "arktype": "~2.2.9",