vibes-diy 14.3.455 → 14.3.456
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 +23 -7
- package/package.json +8 -8
|
@@ -22988,7 +22988,6 @@ function isKnownThemeSlug(slug) {
|
|
|
22988
22988
|
var THEME_SLUGS, THEME_SLUG_SET;
|
|
22989
22989
|
var init_theme_slugs = __esm({
|
|
22990
22990
|
"../prompts/pkg/themes/theme-slugs.ts"() {
|
|
22991
|
-
"use strict";
|
|
22992
22991
|
THEME_SLUGS = [
|
|
22993
22992
|
"aether",
|
|
22994
22993
|
"archive",
|
|
@@ -25434,7 +25433,6 @@ function poufRoomOfSeed(seed) {
|
|
|
25434
25433
|
var STYLE_PRESETS, FLOOR_PRESET_SLUG, STAMPABLE_STYLE_PRESETS, HOUSE_COLORWAY_SLUGS, POUF_ROOM_SLUGS, POUF_ROOM_ACCENT_PINS, POUF_STYLE_PRESETS, POUF_BOLD_TONE, POUF_BOLD_PRESETS;
|
|
25435
25434
|
var init_style_presets = __esm({
|
|
25436
25435
|
"../prompts/pkg/themes/style-presets.ts"() {
|
|
25437
|
-
"use strict";
|
|
25438
25436
|
init_pouf_rooms();
|
|
25439
25437
|
STYLE_PRESETS = [
|
|
25440
25438
|
{
|
|
@@ -26601,7 +26599,6 @@ function lookColorwaySeed(slug, colorway) {
|
|
|
26601
26599
|
var LOOK_SLUGS_WITH_BRIEF, LOOK_SLUGS_WITH_OWN_TOKENS, LOOK_SLUGS_SERVING_LOOK_PACKAGES, SERVED_LOOK_VOICE, LOOK_VARIETY_DIALECTS, LOOK_COLORWAYS, LOOK_DRAW_POOLS, ROOM_SHORTLIST_MAX, LOOK_FIELD_HUES, LOOK_INHERITED_COLORWAYS, LOOK_WHOLE_PALETTE_COLORWAYS;
|
|
26602
26600
|
var init_looks = __esm({
|
|
26603
26601
|
"../prompts/pkg/themes/looks/index.ts"() {
|
|
26604
|
-
"use strict";
|
|
26605
26602
|
init_generation_variety();
|
|
26606
26603
|
init_style_presets();
|
|
26607
26604
|
init_field_hues();
|
|
@@ -122817,17 +122814,36 @@ __name(replayInitiatorForTurn, "replayInitiatorForTurn");
|
|
|
122817
122814
|
// ../vibes.diy/api/svc/intern/chat-history-page.ts
|
|
122818
122815
|
init_types3();
|
|
122819
122816
|
import { and as and136, desc as desc34, eq as eq159, inArray as inArray41, isNotNull as isNotNull5, lt as lt14, ne as ne18, or as or15, sql as sql32 } from "drizzle-orm";
|
|
122817
|
+
var HISTORY_PAGE_ROW_BUDGET = 250;
|
|
122818
|
+
function fitHistoryPage(turns2, limit, rowBudget) {
|
|
122819
|
+
const page = [];
|
|
122820
|
+
let rows = 0;
|
|
122821
|
+
for (const turn of turns2) {
|
|
122822
|
+
if (page.length >= limit) break;
|
|
122823
|
+
if (page.length > 0 && rows + turn.rows > rowBudget) break;
|
|
122824
|
+
page.push(turn);
|
|
122825
|
+
rows += turn.rows;
|
|
122826
|
+
}
|
|
122827
|
+
return { page, hasMore: turns2.length > page.length };
|
|
122828
|
+
}
|
|
122829
|
+
__name(fitHistoryPage, "fitHistoryPage");
|
|
122820
122830
|
async function selectChatHistoryPage(vctx, args) {
|
|
122821
122831
|
const t = vctx.sql.tables.chatSections;
|
|
122822
122832
|
const created = sql32`min(${t.created})`;
|
|
122823
|
-
const
|
|
122833
|
+
const sectionRows = sql32`count(*)`;
|
|
122834
|
+
const rows = await vctx.sql.db.select({ promptId: t.promptId, created, rows: sectionRows }).from(t).where(and136(eq159(t.chatId, args.chatId), ne18(t.blockSeq, RESEARCH_BLOCK_SEQ))).groupBy(t.promptId).having(
|
|
122824
122835
|
args.before === void 0 ? void 0 : or15(lt14(created, args.before.created), and136(eq159(created, args.before.created), lt14(t.promptId, args.before.promptId)))
|
|
122825
122836
|
).orderBy(desc34(created), desc34(t.promptId)).limit(args.limit + 1);
|
|
122826
|
-
const page =
|
|
122827
|
-
|
|
122837
|
+
const { page, hasMore } = fitHistoryPage(
|
|
122838
|
+
rows.map((row) => ({ promptId: row.promptId, created: row.created, rows: Number(row.rows) })),
|
|
122839
|
+
args.limit,
|
|
122840
|
+
args.rowBudget ?? HISTORY_PAGE_ROW_BUDGET
|
|
122841
|
+
);
|
|
122842
|
+
const last = page.at(-1);
|
|
122843
|
+
const before = last === void 0 ? void 0 : { created: last.created, promptId: last.promptId };
|
|
122828
122844
|
return {
|
|
122829
122845
|
promptIds: page.map((row) => row.promptId),
|
|
122830
|
-
history: { hasMore
|
|
122846
|
+
history: { hasMore, ...before === void 0 ? {} : { before } }
|
|
122831
122847
|
};
|
|
122832
122848
|
}
|
|
122833
122849
|
__name(selectChatHistoryPage, "selectChatHistoryPage");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.456",
|
|
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.456",
|
|
56
|
+
"@vibes.diy/api-types": "14.3.456",
|
|
57
|
+
"@vibes.diy/call-ai-v2": "14.3.456",
|
|
58
|
+
"@vibes.diy/cmd-harness": "14.3.456",
|
|
59
|
+
"@vibes.diy/cmd-tools": "14.3.456",
|
|
60
|
+
"@vibes.diy/identity": "14.3.456",
|
|
61
|
+
"@vibes.diy/prompts": "14.3.456",
|
|
62
62
|
"acorn": "~8.19.0",
|
|
63
63
|
"acorn-jsx": "~5.3.2",
|
|
64
64
|
"arktype": "~2.2.10",
|