vibes-diy 14.3.415 → 14.3.418
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.
- package/cli/cmds/run/run-bundle.js +22 -3
- package/package.json +8 -8
|
@@ -98826,7 +98826,7 @@ async function startingPhotoRef(mctx, args, withSender) {
|
|
|
98826
98826
|
return Result137.Ok(from === void 0 ? { uploadId } : { uploadId, from });
|
|
98827
98827
|
}
|
|
98828
98828
|
return Result137.Err(
|
|
98829
|
-
photos.length === 0 ? "This message carries no photo. A photo texted earlier in this chat is `earlierPhoto` (1 is the newest)
|
|
98829
|
+
photos.length === 0 ? "This message carries no photo. A photo texted earlier in this chat is `earlierPhoto` (1 is the newest); if there is none, " + NO_PHOTO_YET : `This message carries ${photos.length} photo(s); photo ${args.photo} isn't one.`
|
|
98830
98830
|
);
|
|
98831
98831
|
}
|
|
98832
98832
|
const n = args.earlierPhoto ?? 1;
|
|
@@ -98835,10 +98835,17 @@ async function startingPhotoRef(mctx, args, withSender) {
|
|
|
98835
98835
|
if (hit !== void 0)
|
|
98836
98836
|
return Result137.Ok(hit.from === void 0 ? { uploadId: hit.uploadId } : { uploadId: hit.uploadId, from: hit.from });
|
|
98837
98837
|
return Result137.Err(
|
|
98838
|
-
earlier.length === 0 ? "No photo was texted earlier in this chat, besides this message's own." : `This chat's earlier photos, newest first: ${describeChatPhotos(earlier, Date.now())}. Pass one of those numbers.`
|
|
98838
|
+
earlier.length === 0 ? mctx.inputPhotos.length > 0 ? "No photo was texted earlier in this chat, besides this message's own: start from it with `photo: 1`." : "No photo was texted earlier in this chat, besides this message's own. " + NO_PHOTO_YET : `This chat's earlier photos, newest first: ${describeChatPhotos(earlier, Date.now())}. Pass one of those numbers.`
|
|
98839
98839
|
);
|
|
98840
98840
|
}
|
|
98841
98841
|
__name(startingPhotoRef, "startingPhotoRef");
|
|
98842
|
+
function paintFailedText(target2) {
|
|
98843
|
+
if (target2 === void 0) return "The picture didn't come out this time. Try once more, or say so plainly.";
|
|
98844
|
+
const keys = `dbName "${target2.dbName}", docId "${target2.docId}"${target2.photoKey === void 0 ? "" : `, photoKey "${target2.photoKey}"`}`;
|
|
98845
|
+
return `The picture didn't come out this time. Try once more with the same call into the same record, \`vibe\` with ${keys}, so it still lands in the app; or say so plainly.`;
|
|
98846
|
+
}
|
|
98847
|
+
__name(paintFailedText, "paintFailedText");
|
|
98848
|
+
var NO_PHOTO_YET = `They most likely haven't picked one yet, even if their words say it's attached: ask for it as the fun next step ("Send me your selfie and I'll suit you up") or offer three words about them instead, and never say it didn't come through, failed or needs sending again.`;
|
|
98842
98849
|
function senderKey(from) {
|
|
98843
98850
|
return (from ?? "").trim().replace(/^@/, "").toLowerCase();
|
|
98844
98851
|
}
|
|
@@ -99341,7 +99348,19 @@ async function makePicture(vctx, mctx, args) {
|
|
|
99341
99348
|
if (rPaint.isErr()) {
|
|
99342
99349
|
const cause = paintFailureClass(rPaint.Err().message);
|
|
99343
99350
|
vctx.logger.Warn().Str("chatId", mctx.chatId).Str("model", model).Str("cause", cause).Msg("make_picture: paint failed");
|
|
99344
|
-
return {
|
|
99351
|
+
return {
|
|
99352
|
+
...refusal(
|
|
99353
|
+
"failed",
|
|
99354
|
+
paintFailedText(
|
|
99355
|
+
vibe2 === void 0 ? void 0 : {
|
|
99356
|
+
dbName: vibe2.dbName,
|
|
99357
|
+
docId: vibe2.docId,
|
|
99358
|
+
...args.vibe?.photoKey === void 0 ? {} : { photoKey: args.vibe.photoKey }
|
|
99359
|
+
}
|
|
99360
|
+
)
|
|
99361
|
+
),
|
|
99362
|
+
cause
|
|
99363
|
+
};
|
|
99345
99364
|
}
|
|
99346
99365
|
const painted2 = rPaint.Ok();
|
|
99347
99366
|
mark("paint");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.418",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"description": "Command-line tool for vibes.diy — vibes give agents superpowers: generate, edit, pull, push, and publish AI-built apps. Login is free and easy.",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@neondatabase/serverless": "~1.2.1",
|
|
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.418",
|
|
45
|
+
"@vibes.diy/api-types": "14.3.418",
|
|
46
|
+
"@vibes.diy/call-ai-v2": "14.3.418",
|
|
47
|
+
"@vibes.diy/cmd-harness": "14.3.418",
|
|
48
|
+
"@vibes.diy/cmd-tools": "14.3.418",
|
|
49
|
+
"@vibes.diy/identity": "14.3.418",
|
|
50
|
+
"@vibes.diy/prompts": "14.3.418",
|
|
51
51
|
"acorn": "~8.19.0",
|
|
52
52
|
"acorn-jsx": "~5.3.2",
|
|
53
53
|
"arktype": "~2.2.9",
|