vibes-diy 14.3.458 → 14.3.459
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.
|
@@ -32319,7 +32319,7 @@ var init_text_turn = __esm({
|
|
|
32319
32319
|
}).or({ kind: "'picture'", url: "string", mimeType: "string", "name?": "string", "sticker?": "true" }).or({ kind: "'picture-missed'" }).or({ kind: "'poll'", question: "string", options: "string[]" }).or({ kind: "'background'", "clear?": "true" })
|
|
32320
32320
|
);
|
|
32321
32321
|
textTurnLine = lazyType(
|
|
32322
|
-
() => type({ "+": "reject", reply: foldedReplyWire }).or({ "+": "reject", done: "true", chatId: "string", "credits?": "number" }).or({ "+": "reject", error: "string", "detail?": "string" }).or({ "+": "reject", reaction: "string" }).or({ "+": "reject", confirm: { action: "'unpublish'", ownerHandle: "string", appSlug: "string" } }).or({ "+": "reject", copy: { ownerHandle: "string", appSlug: "string", remixOf: "string" } }).or({ "+": "reject", idle: "true", chatId: "string" })
|
|
32322
|
+
() => type({ "+": "reject", reply: foldedReplyWire }).or({ "+": "reject", done: "true", chatId: "string", "credits?": "number", "ownerHandle?": "string" }).or({ "+": "reject", error: "string", "detail?": "string" }).or({ "+": "reject", reaction: "string" }).or({ "+": "reject", confirm: { action: "'unpublish'", ownerHandle: "string", appSlug: "string" } }).or({ "+": "reject", copy: { ownerHandle: "string", appSlug: "string", remixOf: "string" } }).or({ "+": "reject", idle: "true", chatId: "string" })
|
|
32323
32323
|
);
|
|
32324
32324
|
}
|
|
32325
32325
|
});
|
|
@@ -10974,7 +10974,7 @@ var init_text_turn = __esm({
|
|
|
10974
10974
|
}).or({ kind: "'picture'", url: "string", mimeType: "string", "name?": "string", "sticker?": "true" }).or({ kind: "'picture-missed'" }).or({ kind: "'poll'", question: "string", options: "string[]" }).or({ kind: "'background'", "clear?": "true" })
|
|
10975
10975
|
);
|
|
10976
10976
|
textTurnLine = lazyType(
|
|
10977
|
-
() => type34({ "+": "reject", reply: foldedReplyWire }).or({ "+": "reject", done: "true", chatId: "string", "credits?": "number" }).or({ "+": "reject", error: "string", "detail?": "string" }).or({ "+": "reject", reaction: "string" }).or({ "+": "reject", confirm: { action: "'unpublish'", ownerHandle: "string", appSlug: "string" } }).or({ "+": "reject", copy: { ownerHandle: "string", appSlug: "string", remixOf: "string" } }).or({ "+": "reject", idle: "true", chatId: "string" })
|
|
10977
|
+
() => type34({ "+": "reject", reply: foldedReplyWire }).or({ "+": "reject", done: "true", chatId: "string", "credits?": "number", "ownerHandle?": "string" }).or({ "+": "reject", error: "string", "detail?": "string" }).or({ "+": "reject", reaction: "string" }).or({ "+": "reject", confirm: { action: "'unpublish'", ownerHandle: "string", appSlug: "string" } }).or({ "+": "reject", copy: { ownerHandle: "string", appSlug: "string", remixOf: "string" } }).or({ "+": "reject", idle: "true", chatId: "string" })
|
|
10978
10978
|
);
|
|
10979
10979
|
}
|
|
10980
10980
|
});
|
|
@@ -60184,6 +60184,8 @@ async function moveAppsOffProvisionalHandle(db, t, input) {
|
|
|
60184
60184
|
const cc = t.chatContexts;
|
|
60185
60185
|
await db.update(cc).set({ ownerHandle: input.toHandle }).where(and62(eq75(cc.ownerHandle, input.fromHandle), eq75(cc.appSlug, AGENT_CHAT_APP_SLUG), eq75(cc.userId, input.userId)));
|
|
60186
60186
|
await copyAgentDiscussionDeletions(db, t, input);
|
|
60187
|
+
const tl = t.textLinks;
|
|
60188
|
+
await db.update(tl).set({ ownerHandle: input.toHandle }).where(and62(eq75(tl.ownerHandle, input.fromHandle), eq75(tl.userId, input.userId)));
|
|
60187
60189
|
const hb = t.handleBinding;
|
|
60188
60190
|
await db.update(hb).set({ migratedAway: 1 }).where(and62(eq75(hb.handle, input.fromHandle), eq75(hb.userId, input.userId)));
|
|
60189
60191
|
return Result64.Ok({ moved, deferred });
|
|
@@ -122695,6 +122697,7 @@ async function readAgentDiscussionChoices(vctx, args) {
|
|
|
122695
122697
|
__name(readAgentDiscussionChoices, "readAgentDiscussionChoices");
|
|
122696
122698
|
|
|
122697
122699
|
// ../vibes.diy/api/svc/intern/ensure-chat-id.ts
|
|
122700
|
+
init_resolve_active_handle();
|
|
122698
122701
|
init_developer_grants();
|
|
122699
122702
|
init_platform_admin();
|
|
122700
122703
|
import { generate as generate5 } from "random-words";
|
|
@@ -124245,10 +124248,11 @@ async function ensureAgentChat(ctx, args) {
|
|
|
124245
124248
|
}
|
|
124246
124249
|
const hb = ctx.sql.tables.handleBinding;
|
|
124247
124250
|
const rOwned = await exception2Result284(
|
|
124248
|
-
() => ctx.sql.db.select({ handle: hb.handle }).from(hb).where(and136(eq159(hb.userId, args.userId), eq159(hb.handle, ownerHandle))).limit(1)
|
|
124251
|
+
() => ctx.sql.db.select({ handle: hb.handle, migratedAway: hb.migratedAway }).from(hb).where(and136(eq159(hb.userId, args.userId), eq159(hb.handle, ownerHandle))).limit(1)
|
|
124249
124252
|
);
|
|
124250
124253
|
if (rOwned.isErr()) return Result170.Err(`Failed to check handle ownership: ${rOwned.Err().message}`);
|
|
124251
124254
|
if (rOwned.Ok().length === 0) return Result170.Err(`ownerHandle "${ownerHandle}" is not one of this account's handles`);
|
|
124255
|
+
const retired = rOwned.Ok()[0]?.migratedAway === 1;
|
|
124252
124256
|
const cc = ctx.sql.tables.chatContexts;
|
|
124253
124257
|
if (args.chatId !== void 0) {
|
|
124254
124258
|
const named2 = args.chatId;
|
|
@@ -124263,8 +124267,23 @@ async function ensureAgentChat(ctx, args) {
|
|
|
124263
124267
|
).limit(1)
|
|
124264
124268
|
);
|
|
124265
124269
|
if (rNamed.isErr()) return Result170.Err(`Failed to query the agent discussion: ${rNamed.Err().message}`);
|
|
124266
|
-
if (rNamed.Ok().length
|
|
124267
|
-
return Result170.
|
|
124270
|
+
if (rNamed.Ok().length > 0) return Result170.Ok({ appSlug: AGENT_CHAT_APP_SLUG, ownerHandle, chatId: named2, chatCreated: false });
|
|
124271
|
+
if (!retired) return Result170.Err(`agent discussion ${named2} not found`);
|
|
124272
|
+
const rMoved = await exception2Result284(
|
|
124273
|
+
() => ctx.sql.db.select({ ownerHandle: cc.ownerHandle }).from(cc).where(and136(eq159(cc.chatId, named2), eq159(cc.userId, args.userId), eq159(cc.appSlug, AGENT_CHAT_APP_SLUG))).limit(1)
|
|
124274
|
+
);
|
|
124275
|
+
if (rMoved.isErr()) return Result170.Err(`Failed to query the agent discussion: ${rMoved.Err().message}`);
|
|
124276
|
+
const movedTo = rMoved.Ok()[0]?.ownerHandle;
|
|
124277
|
+
if (movedTo === void 0) return Result170.Err(`agent discussion ${named2} not found`);
|
|
124278
|
+
return Result170.Ok({ appSlug: AGENT_CHAT_APP_SLUG, ownerHandle: movedTo, chatId: named2, chatCreated: false });
|
|
124279
|
+
}
|
|
124280
|
+
if (retired) {
|
|
124281
|
+
const rActive = await exception2Result284(() => resolveActiveHandle(ctx, args.userId));
|
|
124282
|
+
if (rActive.isErr()) return Result170.Err(`Failed to resolve the active handle: ${rActive.Err().message}`);
|
|
124283
|
+
const active = rActive.Ok();
|
|
124284
|
+
if (active !== void 0 && active !== ownerHandle) {
|
|
124285
|
+
return ensureAgentChat(ctx, { ...args, ownerHandle: active });
|
|
124286
|
+
}
|
|
124268
124287
|
}
|
|
124269
124288
|
if (args.newDiscussion === true) {
|
|
124270
124289
|
const fresh = `agent-${ctx.sthis.nextId(12).str}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.459",
|
|
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.",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"@neondatabase/serverless": "~1.2.1",
|
|
53
53
|
"@noble/hashes": "~2.4.0",
|
|
54
54
|
"@shadcn/lint": "~0.2.3",
|
|
55
|
-
"@vibes.diy/api-impl": "14.3.
|
|
56
|
-
"@vibes.diy/api-types": "14.3.
|
|
57
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
58
|
-
"@vibes.diy/cmd-harness": "14.3.
|
|
59
|
-
"@vibes.diy/cmd-tools": "14.3.
|
|
60
|
-
"@vibes.diy/identity": "14.3.
|
|
61
|
-
"@vibes.diy/prompts": "14.3.
|
|
55
|
+
"@vibes.diy/api-impl": "14.3.459",
|
|
56
|
+
"@vibes.diy/api-types": "14.3.459",
|
|
57
|
+
"@vibes.diy/call-ai-v2": "14.3.459",
|
|
58
|
+
"@vibes.diy/cmd-harness": "14.3.459",
|
|
59
|
+
"@vibes.diy/cmd-tools": "14.3.459",
|
|
60
|
+
"@vibes.diy/identity": "14.3.459",
|
|
61
|
+
"@vibes.diy/prompts": "14.3.459",
|
|
62
62
|
"acorn": "~8.19.0",
|
|
63
63
|
"acorn-jsx": "~5.3.2",
|
|
64
64
|
"arktype": "~2.2.10",
|