vibes-diy 14.3.371 → 14.3.372
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.
|
@@ -206078,7 +206078,7 @@ var reqCreationPromptChatSection = lazyType(
|
|
|
206078
206078
|
// that thinks its words go to a phone.
|
|
206079
206079
|
"byText?": "boolean",
|
|
206080
206080
|
// Which texting lane a `byText` message came by (#9576): `linq` from the
|
|
206081
|
-
// Linq
|
|
206081
|
+
// Linq lane (LinqBridge); absent is the Mac bridge. Read only beside `byText`, so a
|
|
206082
206082
|
// reminder set by text goes out on the lane it was asked on. Same contract
|
|
206083
206083
|
// as `byText`: a forged value routes the caller's own reminders, nothing else.
|
|
206084
206084
|
"textLane?": "'mac' | 'linq'",
|
|
@@ -245698,12 +245698,19 @@ function createLinqClient(opts) {
|
|
|
245698
245698
|
method: "GET",
|
|
245699
245699
|
path: `/chats/${encodeURIComponent(chatId)}`,
|
|
245700
245700
|
body: void 0,
|
|
245701
|
-
map: /* @__PURE__ */ __name((j3) =>
|
|
245702
|
-
|
|
245703
|
-
|
|
245704
|
-
|
|
245705
|
-
|
|
245706
|
-
|
|
245701
|
+
map: /* @__PURE__ */ __name((j3) => {
|
|
245702
|
+
const handles = Array.isArray(j3.handles) ? j3.handles.flatMap(
|
|
245703
|
+
(h5) => typeof h5 === "string" ? [h5] : h5?.is_me !== true && typeof h5?.handle === "string" ? [h5.handle] : []
|
|
245704
|
+
) : void 0;
|
|
245705
|
+
return {
|
|
245706
|
+
id: j3.id,
|
|
245707
|
+
from: j3.from,
|
|
245708
|
+
health: j3.health_status?.status,
|
|
245709
|
+
service: j3.service,
|
|
245710
|
+
...handles === void 0 ? {} : { handles },
|
|
245711
|
+
...typeof j3.is_group === "boolean" ? { isGroup: j3.is_group } : {}
|
|
245712
|
+
};
|
|
245713
|
+
}, "map")
|
|
245707
245714
|
}), "getChat"),
|
|
245708
245715
|
createContactCard: /* @__PURE__ */ __name((a4) => call2({
|
|
245709
245716
|
method: "POST",
|
|
@@ -353501,8 +353508,10 @@ async function setGroupPayer(vctx, args3, seams = {}) {
|
|
|
353501
353508
|
if (!isGroupPrincipal(args3.groupUserId)) {
|
|
353502
353509
|
return refuse7(GROUP_PAYER_ERROR.notGroup, "That isn't a group.");
|
|
353503
353510
|
}
|
|
353511
|
+
const bridges = vctx.phoneLink?.bridgeUserIds ?? [];
|
|
353512
|
+
const bridgeCaller = args3.inProcessLane === true || bridges.includes(args3.callerUserId);
|
|
353504
353513
|
if (args3.sponsored === true) {
|
|
353505
|
-
if (!
|
|
353514
|
+
if (!bridgeCaller) {
|
|
353506
353515
|
return refuse7(GROUP_PAYER_ERROR.notBridge, "Only the bridge can run a turn on a sponsor's credits.");
|
|
353507
353516
|
}
|
|
353508
353517
|
const read2 = await readGroupSetting({
|
|
@@ -353517,7 +353526,7 @@ async function setGroupPayer(vctx, args3, seams = {}) {
|
|
|
353517
353526
|
return refuse7(GROUP_PAYER_ERROR.unavailable, "Couldn't check the sponsor. Try again in a moment.", read2.causeClass);
|
|
353518
353527
|
let sponsorUserId = sponsor.Ok();
|
|
353519
353528
|
if (sponsorUserId === void 0) {
|
|
353520
|
-
sponsorUserId = args3.callerUserId;
|
|
353529
|
+
sponsorUserId = args3.inProcessLane === true ? bridges[0] ?? args3.groupUserId : args3.callerUserId;
|
|
353521
353530
|
vctx.logger.Info().Str("groupUserId", args3.groupUserId).Str("payerUserId", sponsorUserId).Msg("group-payer: bridge sponsor");
|
|
353522
353531
|
}
|
|
353523
353532
|
const guestAskerUserId = await phoneGuestAsker({ vctx, groupUserId: args3.groupUserId, guestAsker: args3.guestAsker, seams });
|
|
@@ -353536,7 +353545,7 @@ async function setGroupPayer(vctx, args3, seams = {}) {
|
|
|
353536
353545
|
await noteMemberTurn(vctx, args3.groupUserId);
|
|
353537
353546
|
return { type: "vibes.diy.res-set-group-payer", groupUserId: args3.groupUserId, payerUserId: sponsorUserId, sponsored: true };
|
|
353538
353547
|
}
|
|
353539
|
-
if (args3.guest === true && !
|
|
353548
|
+
if (args3.guest === true && !bridgeCaller) {
|
|
353540
353549
|
return refuse7(GROUP_PAYER_ERROR.notBridge, "Only the bridge can put a chat on its guest credits.");
|
|
353541
353550
|
}
|
|
353542
353551
|
if (args3.guest !== true && !canPayForGroup(args3.callerUserId)) {
|
|
@@ -356744,8 +356753,9 @@ async function phoneAlertsFor(vctx, args3) {
|
|
|
356744
356753
|
}
|
|
356745
356754
|
const r2 = await readPhoneAlerts(vctx, {
|
|
356746
356755
|
actor: { userId: args3.userId, ownerHandle: acting.handle },
|
|
356747
|
-
// A device credential is the Mac bridge (on the Mac, or hosted): its reminders go out here.
|
|
356748
|
-
lane
|
|
356756
|
+
// A device credential is the Mac bridge (on the Mac, or hosted): its reminders go out here. A
|
|
356757
|
+
// hosted bridge on another lane (Linq) names its own, so a reminder goes out where it was set.
|
|
356758
|
+
lane: args3.lane ?? "mac",
|
|
356749
356759
|
...args3.settles === true ? { settles: true } : {},
|
|
356750
356760
|
...args3.reader === void 0 ? {} : { reader: args3.reader },
|
|
356751
356761
|
...args3.now === void 0 ? {} : { now: args3.now }
|
|
@@ -356973,7 +356983,7 @@ var setVibeLinkPauseEvento = {
|
|
|
356973
356983
|
var BRIDGE_REACT_CHAT_ID = "bridge-react";
|
|
356974
356984
|
async function classifyBridgeReaction(vctx, args3) {
|
|
356975
356985
|
const bridges = vctx.phoneLink?.bridgeUserIds ?? [];
|
|
356976
|
-
if (!bridges.includes(args3.callerUserId)) {
|
|
356986
|
+
if (args3.inProcessLane !== true && !bridges.includes(args3.callerUserId)) {
|
|
356977
356987
|
return refuse9(PHONE_LINK_ERROR.bridgeNotAllowed, "This account can't classify reactions.");
|
|
356978
356988
|
}
|
|
356979
356989
|
const none2 = { type: "vibes.diy.res-classify-reaction" };
|
|
@@ -390883,7 +390893,7 @@ function createAccountAgentBelt(vctx, args3) {
|
|
|
390883
390893
|
...turnDeps,
|
|
390884
390894
|
// The picture app's one offer, once per chat (vibe-tool-offer.ts). A paused or opted-out chat
|
|
390885
390895
|
// never reaches a turn (the lane's gate drops the message before any belt is built:
|
|
390886
|
-
// text-lane/policy/gate.ts for the hosted
|
|
390896
|
+
// text-lane/policy/gate.ts for the hosted bridge, imessage-bridge/gate.ts for the bridge),
|
|
390887
390897
|
// so a belt only exists in a chat that may be asked.
|
|
390888
390898
|
offer: {
|
|
390889
390899
|
host: vibeToolsHost,
|
|
@@ -7952,7 +7952,7 @@ var init_chat = __esm({
|
|
|
7952
7952
|
// that thinks its words go to a phone.
|
|
7953
7953
|
"byText?": "boolean",
|
|
7954
7954
|
// Which texting lane a `byText` message came by (#9576): `linq` from the
|
|
7955
|
-
// Linq
|
|
7955
|
+
// Linq lane (LinqBridge); absent is the Mac bridge. Read only beside `byText`, so a
|
|
7956
7956
|
// reminder set by text goes out on the lane it was asked on. Same contract
|
|
7957
7957
|
// as `byText`: a forged value routes the caller's own reminders, nothing else.
|
|
7958
7958
|
"textLane?": "'mac' | 'linq'",
|
|
@@ -27278,6 +27278,7 @@ var init_version_timeline = __esm({
|
|
|
27278
27278
|
var POUF_ENTRY_EXPORTS, POUF_TAUGHT_NAMES;
|
|
27279
27279
|
var init_exports = __esm({
|
|
27280
27280
|
"../vibes.diy/pouf/exports.ts"() {
|
|
27281
|
+
"use strict";
|
|
27281
27282
|
POUF_ENTRY_EXPORTS = {
|
|
27282
27283
|
index: [
|
|
27283
27284
|
"AlertBell",
|
|
@@ -32873,12 +32874,19 @@ function createLinqClient(opts) {
|
|
|
32873
32874
|
method: "GET",
|
|
32874
32875
|
path: `/chats/${encodeURIComponent(chatId)}`,
|
|
32875
32876
|
body: void 0,
|
|
32876
|
-
map: /* @__PURE__ */ __name((j) =>
|
|
32877
|
-
|
|
32878
|
-
|
|
32879
|
-
|
|
32880
|
-
|
|
32881
|
-
|
|
32877
|
+
map: /* @__PURE__ */ __name((j) => {
|
|
32878
|
+
const handles = Array.isArray(j.handles) ? j.handles.flatMap(
|
|
32879
|
+
(h) => typeof h === "string" ? [h] : h?.is_me !== true && typeof h?.handle === "string" ? [h.handle] : []
|
|
32880
|
+
) : void 0;
|
|
32881
|
+
return {
|
|
32882
|
+
id: j.id,
|
|
32883
|
+
from: j.from,
|
|
32884
|
+
health: j.health_status?.status,
|
|
32885
|
+
service: j.service,
|
|
32886
|
+
...handles === void 0 ? {} : { handles },
|
|
32887
|
+
...typeof j.is_group === "boolean" ? { isGroup: j.is_group } : {}
|
|
32888
|
+
};
|
|
32889
|
+
}, "map")
|
|
32882
32890
|
}), "getChat"),
|
|
32883
32891
|
createContactCard: /* @__PURE__ */ __name((a) => call2({
|
|
32884
32892
|
method: "POST",
|
|
@@ -103700,8 +103708,10 @@ async function setGroupPayer(vctx, args, seams = {}) {
|
|
|
103700
103708
|
if (!isGroupPrincipal(args.groupUserId)) {
|
|
103701
103709
|
return refuse7(GROUP_PAYER_ERROR.notGroup, "That isn't a group.");
|
|
103702
103710
|
}
|
|
103711
|
+
const bridges = vctx.phoneLink?.bridgeUserIds ?? [];
|
|
103712
|
+
const bridgeCaller = args.inProcessLane === true || bridges.includes(args.callerUserId);
|
|
103703
103713
|
if (args.sponsored === true) {
|
|
103704
|
-
if (!
|
|
103714
|
+
if (!bridgeCaller) {
|
|
103705
103715
|
return refuse7(GROUP_PAYER_ERROR.notBridge, "Only the bridge can run a turn on a sponsor's credits.");
|
|
103706
103716
|
}
|
|
103707
103717
|
const read = await readGroupSetting({
|
|
@@ -103716,7 +103726,7 @@ async function setGroupPayer(vctx, args, seams = {}) {
|
|
|
103716
103726
|
return refuse7(GROUP_PAYER_ERROR.unavailable, "Couldn't check the sponsor. Try again in a moment.", read.causeClass);
|
|
103717
103727
|
let sponsorUserId = sponsor.Ok();
|
|
103718
103728
|
if (sponsorUserId === void 0) {
|
|
103719
|
-
sponsorUserId = args.callerUserId;
|
|
103729
|
+
sponsorUserId = args.inProcessLane === true ? bridges[0] ?? args.groupUserId : args.callerUserId;
|
|
103720
103730
|
vctx.logger.Info().Str("groupUserId", args.groupUserId).Str("payerUserId", sponsorUserId).Msg("group-payer: bridge sponsor");
|
|
103721
103731
|
}
|
|
103722
103732
|
const guestAskerUserId = await phoneGuestAsker({ vctx, groupUserId: args.groupUserId, guestAsker: args.guestAsker, seams });
|
|
@@ -103735,7 +103745,7 @@ async function setGroupPayer(vctx, args, seams = {}) {
|
|
|
103735
103745
|
await noteMemberTurn(vctx, args.groupUserId);
|
|
103736
103746
|
return { type: "vibes.diy.res-set-group-payer", groupUserId: args.groupUserId, payerUserId: sponsorUserId, sponsored: true };
|
|
103737
103747
|
}
|
|
103738
|
-
if (args.guest === true && !
|
|
103748
|
+
if (args.guest === true && !bridgeCaller) {
|
|
103739
103749
|
return refuse7(GROUP_PAYER_ERROR.notBridge, "Only the bridge can put a chat on its guest credits.");
|
|
103740
103750
|
}
|
|
103741
103751
|
if (args.guest !== true && !canPayForGroup(args.callerUserId)) {
|
|
@@ -107016,8 +107026,9 @@ async function phoneAlertsFor(vctx, args) {
|
|
|
107016
107026
|
}
|
|
107017
107027
|
const r = await readPhoneAlerts(vctx, {
|
|
107018
107028
|
actor: { userId: args.userId, ownerHandle: acting.handle },
|
|
107019
|
-
// A device credential is the Mac bridge (on the Mac, or hosted): its reminders go out here.
|
|
107020
|
-
lane
|
|
107029
|
+
// A device credential is the Mac bridge (on the Mac, or hosted): its reminders go out here. A
|
|
107030
|
+
// hosted bridge on another lane (Linq) names its own, so a reminder goes out where it was set.
|
|
107031
|
+
lane: args.lane ?? "mac",
|
|
107021
107032
|
...args.settles === true ? { settles: true } : {},
|
|
107022
107033
|
...args.reader === void 0 ? {} : { reader: args.reader },
|
|
107023
107034
|
...args.now === void 0 ? {} : { now: args.now }
|
|
@@ -107126,7 +107137,7 @@ async function vibeLinkPauseFor(vctx, args) {
|
|
|
107126
107137
|
}
|
|
107127
107138
|
async function classifyBridgeReaction(vctx, args) {
|
|
107128
107139
|
const bridges = vctx.phoneLink?.bridgeUserIds ?? [];
|
|
107129
|
-
if (!bridges.includes(args.callerUserId)) {
|
|
107140
|
+
if (args.inProcessLane !== true && !bridges.includes(args.callerUserId)) {
|
|
107130
107141
|
return refuse9(PHONE_LINK_ERROR.bridgeNotAllowed, "This account can't classify reactions.");
|
|
107131
107142
|
}
|
|
107132
107143
|
const none = { type: "vibes.diy.res-classify-reaction" };
|
|
@@ -142360,7 +142371,7 @@ function createAccountAgentBelt(vctx, args) {
|
|
|
142360
142371
|
...turnDeps,
|
|
142361
142372
|
// The picture app's one offer, once per chat (vibe-tool-offer.ts). A paused or opted-out chat
|
|
142362
142373
|
// never reaches a turn (the lane's gate drops the message before any belt is built:
|
|
142363
|
-
// text-lane/policy/gate.ts for the hosted
|
|
142374
|
+
// text-lane/policy/gate.ts for the hosted bridge, imessage-bridge/gate.ts for the bridge),
|
|
142364
142375
|
// so a belt only exists in a chat that may be asked.
|
|
142365
142376
|
offer: {
|
|
142366
142377
|
host: vibeToolsHost,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.372",
|
|
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.372",
|
|
45
|
+
"@vibes.diy/api-types": "14.3.372",
|
|
46
|
+
"@vibes.diy/call-ai-v2": "14.3.372",
|
|
47
|
+
"@vibes.diy/cmd-harness": "14.3.372",
|
|
48
|
+
"@vibes.diy/cmd-tools": "14.3.372",
|
|
49
|
+
"@vibes.diy/identity": "14.3.372",
|
|
50
|
+
"@vibes.diy/prompts": "14.3.372",
|
|
51
51
|
"acorn": "~8.19.0",
|
|
52
52
|
"acorn-jsx": "~5.3.2",
|
|
53
53
|
"arktype": "~2.2.9",
|