vibes-diy 14.3.383 → 14.3.385
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.
|
@@ -354402,7 +354402,7 @@ async function setGroupPayer(vctx, args3, seams = {}) {
|
|
|
354402
354402
|
return refuse7(GROUP_PAYER_ERROR.notGroup, "That isn't a group.");
|
|
354403
354403
|
}
|
|
354404
354404
|
const bridges = vctx.phoneLink?.bridgeUserIds ?? [];
|
|
354405
|
-
const bridgeCaller = args3.inProcessLane === true || bridges.includes(args3.callerUserId);
|
|
354405
|
+
const bridgeCaller = args3.inProcessLane === true || args3.webLane !== void 0 || bridges.includes(args3.callerUserId);
|
|
354406
354406
|
if (args3.sponsored === true) {
|
|
354407
354407
|
if (!bridgeCaller) {
|
|
354408
354408
|
return refuse7(GROUP_PAYER_ERROR.notBridge, "Only the bridge can run a turn on a sponsor's credits.");
|
|
@@ -354418,6 +354418,13 @@ async function setGroupPayer(vctx, args3, seams = {}) {
|
|
|
354418
354418
|
if (sponsor.isErr())
|
|
354419
354419
|
return refuse7(GROUP_PAYER_ERROR.unavailable, "Couldn't check the sponsor. Try again in a moment.", read2.causeClass);
|
|
354420
354420
|
let sponsorUserId = sponsor.Ok();
|
|
354421
|
+
if (sponsorUserId === void 0 && args3.webLane !== void 0) {
|
|
354422
|
+
const owner = args3.webLane.guestSponsorUserId;
|
|
354423
|
+
if (owner === void 0 || !canPayForGroup(owner))
|
|
354424
|
+
return refuse7(GROUP_PAYER_ERROR.notSponsored, "This chat's owner isn't covering signed-out guests.");
|
|
354425
|
+
sponsorUserId = owner;
|
|
354426
|
+
vctx.logger.Info().Str("groupUserId", args3.groupUserId).Str("payerUserId", owner).Msg("group-payer: web guest on owner");
|
|
354427
|
+
}
|
|
354421
354428
|
if (sponsorUserId === void 0) {
|
|
354422
354429
|
sponsorUserId = args3.inProcessLane === true ? bridges[0] ?? args3.groupUserId : args3.callerUserId;
|
|
354423
354430
|
vctx.logger.Info().Str("groupUserId", args3.groupUserId).Str("payerUserId", sponsorUserId).Msg("group-payer: bridge sponsor");
|
|
@@ -104665,7 +104665,7 @@ async function setGroupPayer(vctx, args, seams = {}) {
|
|
|
104665
104665
|
return refuse7(GROUP_PAYER_ERROR.notGroup, "That isn't a group.");
|
|
104666
104666
|
}
|
|
104667
104667
|
const bridges = vctx.phoneLink?.bridgeUserIds ?? [];
|
|
104668
|
-
const bridgeCaller = args.inProcessLane === true || bridges.includes(args.callerUserId);
|
|
104668
|
+
const bridgeCaller = args.inProcessLane === true || args.webLane !== void 0 || bridges.includes(args.callerUserId);
|
|
104669
104669
|
if (args.sponsored === true) {
|
|
104670
104670
|
if (!bridgeCaller) {
|
|
104671
104671
|
return refuse7(GROUP_PAYER_ERROR.notBridge, "Only the bridge can run a turn on a sponsor's credits.");
|
|
@@ -104681,6 +104681,13 @@ async function setGroupPayer(vctx, args, seams = {}) {
|
|
|
104681
104681
|
if (sponsor.isErr())
|
|
104682
104682
|
return refuse7(GROUP_PAYER_ERROR.unavailable, "Couldn't check the sponsor. Try again in a moment.", read.causeClass);
|
|
104683
104683
|
let sponsorUserId = sponsor.Ok();
|
|
104684
|
+
if (sponsorUserId === void 0 && args.webLane !== void 0) {
|
|
104685
|
+
const owner = args.webLane.guestSponsorUserId;
|
|
104686
|
+
if (owner === void 0 || !canPayForGroup(owner))
|
|
104687
|
+
return refuse7(GROUP_PAYER_ERROR.notSponsored, "This chat's owner isn't covering signed-out guests.");
|
|
104688
|
+
sponsorUserId = owner;
|
|
104689
|
+
vctx.logger.Info().Str("groupUserId", args.groupUserId).Str("payerUserId", owner).Msg("group-payer: web guest on owner");
|
|
104690
|
+
}
|
|
104684
104691
|
if (sponsorUserId === void 0) {
|
|
104685
104692
|
sponsorUserId = args.inProcessLane === true ? bridges[0] ?? args.groupUserId : args.callerUserId;
|
|
104686
104693
|
vctx.logger.Info().Str("groupUserId", args.groupUserId).Str("payerUserId", sponsorUserId).Msg("group-payer: bridge sponsor");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.385",
|
|
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.385",
|
|
45
|
+
"@vibes.diy/api-types": "14.3.385",
|
|
46
|
+
"@vibes.diy/call-ai-v2": "14.3.385",
|
|
47
|
+
"@vibes.diy/cmd-harness": "14.3.385",
|
|
48
|
+
"@vibes.diy/cmd-tools": "14.3.385",
|
|
49
|
+
"@vibes.diy/identity": "14.3.385",
|
|
50
|
+
"@vibes.diy/prompts": "14.3.385",
|
|
51
51
|
"acorn": "~8.19.0",
|
|
52
52
|
"acorn-jsx": "~5.3.2",
|
|
53
53
|
"arktype": "~2.2.9",
|