vibes-diy 14.3.363 → 14.3.364
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.
|
@@ -336638,11 +336638,12 @@ function oneLine3(s2, max2) {
|
|
|
336638
336638
|
__name(oneLine3, "oneLine");
|
|
336639
336639
|
function renderPhoneAlert(_rule, row, fragment) {
|
|
336640
336640
|
const where = row.appSlug === null || row.appSlug === "" ? void 0 : row.appSlug;
|
|
336641
|
-
const
|
|
336641
|
+
const appMessage = row.notificationType === "app-message";
|
|
336642
|
+
const body = appMessage ? row.body.trim() : oneLine3(row.body, BODY_MAX_CHARS);
|
|
336642
336643
|
const link3 = where === void 0 ? `${SITE}/agent` : `${SITE}/vibe/${row.ownerHandle}/${where}`;
|
|
336643
336644
|
const own2 = row.actorHandle === null || row.actorHandle === "" || row.actorHandle === row.ownerHandle;
|
|
336644
336645
|
const head = [own2 ? void 0 : `@${row.actorHandle}`, where === void 0 ? void 0 : `in ${where}`].filter((p3) => p3 !== void 0).join(" ");
|
|
336645
|
-
const said2 =
|
|
336646
|
+
const said2 = appMessage || head === "" ? body : `${head}: ${body}`;
|
|
336646
336647
|
const hasLink = new RegExp(`${link3.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&")}(?![\\w-])`).test(body);
|
|
336647
336648
|
const tail = fragment !== void 0 && where !== void 0 ? [`${link3}${fragment}`] : hasLink ? [] : [link3];
|
|
336648
336649
|
return [said2, ...tail].join("\n");
|
|
@@ -339230,6 +339231,12 @@ function tapbackAnswerOf(words) {
|
|
|
339230
339231
|
return m?.[1];
|
|
339231
339232
|
}
|
|
339232
339233
|
__name(tapbackAnswerOf, "tapbackAnswerOf");
|
|
339234
|
+
function personAnswerText(text3) {
|
|
339235
|
+
if (text3 === null) return null;
|
|
339236
|
+
const said2 = text3.split("\n").filter((line3) => !/^\[[^\]]*\]$/.test(line3.trim())).join("\n").trim();
|
|
339237
|
+
return said2 === "" ? text3.trim() : said2;
|
|
339238
|
+
}
|
|
339239
|
+
__name(personAnswerText, "personAnswerText");
|
|
339233
339240
|
var TEXT_CONSENT_NO_SPEAKER_MESSAGE = "A later text needs the yes of the person it goes to, and no linked member is asking on this turn, so nobody's yes can be recorded. Ask the person who wants it to say yes themselves. Nothing ran.";
|
|
339234
339241
|
async function resolveTextConsentSpeaker(vctx, args3) {
|
|
339235
339242
|
if (!isGroupPrincipal(args3.actorUserId)) return { ok: true, userId: args3.actorUserId, ownerHandle: args3.actorHandle };
|
|
@@ -384398,7 +384405,7 @@ async function recordTextLaterYes(target2, wireName) {
|
|
|
384398
384405
|
chatId: consent.chatId,
|
|
384399
384406
|
question: rQuestion.isOk() ? rQuestion.Ok() ?? null : null,
|
|
384400
384407
|
method: answer13.method,
|
|
384401
|
-
answerText: answer13.text
|
|
384408
|
+
answerText: personAnswerText(answer13.text)
|
|
384402
384409
|
})
|
|
384403
384410
|
);
|
|
384404
384411
|
if (rRecorded.isOk() && rRecorded.Ok() === true) return void 0;
|
|
@@ -96490,11 +96490,12 @@ function oneLine3(s, max14) {
|
|
|
96490
96490
|
}
|
|
96491
96491
|
function renderPhoneAlert(_rule, row, fragment) {
|
|
96492
96492
|
const where = row.appSlug === null || row.appSlug === "" ? void 0 : row.appSlug;
|
|
96493
|
-
const
|
|
96493
|
+
const appMessage = row.notificationType === "app-message";
|
|
96494
|
+
const body = appMessage ? row.body.trim() : oneLine3(row.body, BODY_MAX_CHARS);
|
|
96494
96495
|
const link = where === void 0 ? `${SITE}/agent` : `${SITE}/vibe/${row.ownerHandle}/${where}`;
|
|
96495
96496
|
const own = row.actorHandle === null || row.actorHandle === "" || row.actorHandle === row.ownerHandle;
|
|
96496
96497
|
const head = [own ? void 0 : `@${row.actorHandle}`, where === void 0 ? void 0 : `in ${where}`].filter((p) => p !== void 0).join(" ");
|
|
96497
|
-
const said2 =
|
|
96498
|
+
const said2 = appMessage || head === "" ? body : `${head}: ${body}`;
|
|
96498
96499
|
const hasLink = new RegExp(`${link.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&")}(?![\\w-])`).test(body);
|
|
96499
96500
|
const tail = fragment !== void 0 && where !== void 0 ? [`${link}${fragment}`] : hasLink ? [] : [link];
|
|
96500
96501
|
return [said2, ...tail].join("\n");
|
|
@@ -99208,6 +99209,11 @@ function tapbackAnswerOf(words) {
|
|
|
99208
99209
|
const m = /^\(tapped (\S{1,16}) on your question\)$/u.exec((words ?? "").trim());
|
|
99209
99210
|
return m?.[1];
|
|
99210
99211
|
}
|
|
99212
|
+
function personAnswerText(text3) {
|
|
99213
|
+
if (text3 === null) return null;
|
|
99214
|
+
const said2 = text3.split("\n").filter((line2) => !/^\[[^\]]*\]$/.test(line2.trim())).join("\n").trim();
|
|
99215
|
+
return said2 === "" ? text3.trim() : said2;
|
|
99216
|
+
}
|
|
99211
99217
|
async function resolveTextConsentSpeaker(vctx, args) {
|
|
99212
99218
|
if (!isGroupPrincipal(args.actorUserId)) return { ok: true, userId: args.actorUserId, ownerHandle: args.actorHandle };
|
|
99213
99219
|
const rPayer = await readGroupPayer(vctx.sql, args.actorUserId);
|
|
@@ -99234,6 +99240,7 @@ var init_text_consents = __esm({
|
|
|
99234
99240
|
__name(recordTextConsent, "recordTextConsent");
|
|
99235
99241
|
__name(hasLiveTextConsent, "hasLiveTextConsent");
|
|
99236
99242
|
__name(tapbackAnswerOf, "tapbackAnswerOf");
|
|
99243
|
+
__name(personAnswerText, "personAnswerText");
|
|
99237
99244
|
TEXT_CONSENT_NO_SPEAKER_MESSAGE = "A later text needs the yes of the person it goes to, and no linked member is asking on this turn, so nobody's yes can be recorded. Ask the person who wants it to say yes themselves. Nothing ran.";
|
|
99238
99245
|
__name(resolveTextConsentSpeaker, "resolveTextConsentSpeaker");
|
|
99239
99246
|
}
|
|
@@ -135682,7 +135689,7 @@ async function recordTextLaterYes(target2, wireName) {
|
|
|
135682
135689
|
chatId: consent.chatId,
|
|
135683
135690
|
question: rQuestion.isOk() ? rQuestion.Ok() ?? null : null,
|
|
135684
135691
|
method: answer13.method,
|
|
135685
|
-
answerText: answer13.text
|
|
135692
|
+
answerText: personAnswerText(answer13.text)
|
|
135686
135693
|
})
|
|
135687
135694
|
);
|
|
135688
135695
|
if (rRecorded.isOk() && rRecorded.Ok() === true) return void 0;
|
|
@@ -135704,6 +135711,7 @@ var init_agent_vibe_tool_calls = __esm({
|
|
|
135704
135711
|
init_agent_find_vibes_tool();
|
|
135705
135712
|
init_vibe_tools3();
|
|
135706
135713
|
init_vibe_tool_offer();
|
|
135714
|
+
init_text_consents();
|
|
135707
135715
|
__name(json2, "json");
|
|
135708
135716
|
__name(parsedArgs, "parsedArgs");
|
|
135709
135717
|
__name(vibeToolCallAnswer, "vibeToolCallAnswer");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.364",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"description": "Command-line tool for vibes.diy — generate, edit, pull, push, and publish AI-built apps",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@neondatabase/serverless": "~1.2.0",
|
|
42
42
|
"@noble/hashes": "~2.4.0",
|
|
43
43
|
"@shadcn/lint": "~0.2.3",
|
|
44
|
-
"@vibes.diy/api-impl": "14.3.
|
|
45
|
-
"@vibes.diy/api-types": "14.3.
|
|
46
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
47
|
-
"@vibes.diy/cmd-harness": "14.3.
|
|
48
|
-
"@vibes.diy/cmd-tools": "14.3.
|
|
49
|
-
"@vibes.diy/identity": "14.3.
|
|
50
|
-
"@vibes.diy/prompts": "14.3.
|
|
44
|
+
"@vibes.diy/api-impl": "14.3.364",
|
|
45
|
+
"@vibes.diy/api-types": "14.3.364",
|
|
46
|
+
"@vibes.diy/call-ai-v2": "14.3.364",
|
|
47
|
+
"@vibes.diy/cmd-harness": "14.3.364",
|
|
48
|
+
"@vibes.diy/cmd-tools": "14.3.364",
|
|
49
|
+
"@vibes.diy/identity": "14.3.364",
|
|
50
|
+
"@vibes.diy/prompts": "14.3.364",
|
|
51
51
|
"acorn": "~8.19.0",
|
|
52
52
|
"acorn-jsx": "~5.3.2",
|
|
53
53
|
"arktype": "~2.2.9",
|