vibes-diy 14.3.383 → 14.3.384
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");
|
|
@@ -27486,7 +27486,6 @@ var init_version_timeline = __esm({
|
|
|
27486
27486
|
var POUF_ENTRY_EXPORTS, POUF_TAUGHT_NAMES;
|
|
27487
27487
|
var init_exports = __esm({
|
|
27488
27488
|
"../vibes.diy/pouf/exports.ts"() {
|
|
27489
|
-
"use strict";
|
|
27490
27489
|
POUF_ENTRY_EXPORTS = {
|
|
27491
27490
|
index: [
|
|
27492
27491
|
"AlertBell",
|
|
@@ -104665,7 +104664,7 @@ async function setGroupPayer(vctx, args, seams = {}) {
|
|
|
104665
104664
|
return refuse7(GROUP_PAYER_ERROR.notGroup, "That isn't a group.");
|
|
104666
104665
|
}
|
|
104667
104666
|
const bridges = vctx.phoneLink?.bridgeUserIds ?? [];
|
|
104668
|
-
const bridgeCaller = args.inProcessLane === true || bridges.includes(args.callerUserId);
|
|
104667
|
+
const bridgeCaller = args.inProcessLane === true || args.webLane !== void 0 || bridges.includes(args.callerUserId);
|
|
104669
104668
|
if (args.sponsored === true) {
|
|
104670
104669
|
if (!bridgeCaller) {
|
|
104671
104670
|
return refuse7(GROUP_PAYER_ERROR.notBridge, "Only the bridge can run a turn on a sponsor's credits.");
|
|
@@ -104681,6 +104680,13 @@ async function setGroupPayer(vctx, args, seams = {}) {
|
|
|
104681
104680
|
if (sponsor.isErr())
|
|
104682
104681
|
return refuse7(GROUP_PAYER_ERROR.unavailable, "Couldn't check the sponsor. Try again in a moment.", read.causeClass);
|
|
104683
104682
|
let sponsorUserId = sponsor.Ok();
|
|
104683
|
+
if (sponsorUserId === void 0 && args.webLane !== void 0) {
|
|
104684
|
+
const owner = args.webLane.guestSponsorUserId;
|
|
104685
|
+
if (owner === void 0 || !canPayForGroup(owner))
|
|
104686
|
+
return refuse7(GROUP_PAYER_ERROR.notSponsored, "This chat's owner isn't covering signed-out guests.");
|
|
104687
|
+
sponsorUserId = owner;
|
|
104688
|
+
vctx.logger.Info().Str("groupUserId", args.groupUserId).Str("payerUserId", owner).Msg("group-payer: web guest on owner");
|
|
104689
|
+
}
|
|
104684
104690
|
if (sponsorUserId === void 0) {
|
|
104685
104691
|
sponsorUserId = args.inProcessLane === true ? bridges[0] ?? args.groupUserId : args.callerUserId;
|
|
104686
104692
|
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.384",
|
|
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.384",
|
|
45
|
+
"@vibes.diy/api-types": "14.3.384",
|
|
46
|
+
"@vibes.diy/call-ai-v2": "14.3.384",
|
|
47
|
+
"@vibes.diy/cmd-harness": "14.3.384",
|
|
48
|
+
"@vibes.diy/cmd-tools": "14.3.384",
|
|
49
|
+
"@vibes.diy/identity": "14.3.384",
|
|
50
|
+
"@vibes.diy/prompts": "14.3.384",
|
|
51
51
|
"acorn": "~8.19.0",
|
|
52
52
|
"acorn-jsx": "~5.3.2",
|
|
53
53
|
"arktype": "~2.2.9",
|