@vibes.diy/base 14.3.371 → 14.3.372
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.
|
@@ -6,7 +6,7 @@ export declare const CODE_DRILL_TITLES: Readonly<{
|
|
|
6
6
|
readonly details: "App details";
|
|
7
7
|
readonly help: "Help";
|
|
8
8
|
}>;
|
|
9
|
-
export declare const CODE_CARD_CSS = "\n[data-vibe-menu] .vm-prompt-request { margin: 0 0 var(--space-14); font: 400 16px/1.3 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }\n/* The first build's request (PromptRequest, #7660) clamps to three lines so the\n status and expected-time bar stay on the first phone screen; \"Show all\" opens it. */\n[data-vibe-menu] .vm-prompt-request.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n[data-vibe-menu] .vm-prompt-more { display: block; margin: calc(var(--space-12) * -1) 0 var(--space-14); padding: 0; font: 700 12px/1.6 var(--font-tab); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }\n[data-vibe-menu] .vm-prompt-more:hover { color: var(--ink); }\n[data-vibe-menu] .vm-prompt-files { display: grid; gap: var(--space-12); margin-top: var(--space-16); }\n[data-vibe-menu] .vm-prompt-attached { margin-top: var(--space-2); font: 400 13px/1.4 var(--font-display); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n[data-vibe-menu] .vm-prompt-detail { font: 400 13px/1.4 var(--font-display); color: var(--muted); margin: var(--space-12) 0; overflow-wrap: anywhere; }\n[data-vibe-menu] .vm-prompt .vm-prompt-stop { flex: none; width: auto; height: 28px; margin-top: 0; }\n[data-vibe-menu] .vm-prompt-status { display: flex; align-items: center; gap: var(--space-12); border-top: var(--stroke-rule) solid var(--line-card); padding-top: var(--space-16); margin-bottom: var(--space-16); font: 400 14px/1.4 var(--font-display); color: var(--muted); }\n[data-vibe-menu] .vm-code .vm-moments { margin-bottom: var(--space-14); }\n/* The guest's Keep this app line (#7789): one quiet line in the card's flow\n above the composer, its button an inline text link. */\n[data-vibe-menu] .vm-keep-app { margin: 0 0 var(--space-12); line-height: 1.4; }\n[data-vibe-menu] .vm-keep-app > strong { color: var(--ink); font-weight: 700; }\n[data-vibe-menu] .vm-guest-build { margin: var(--space-8) 0 var(--space-12); line-height: 1.4; }\n[data-vibe-menu] .vm-guest-build > strong { color: var(--ink); font-weight: 700; }\n/* A guest's first build (#9462): the note and the build ask that later takes its\n place share one grid cell, the note kept as an invisible spacer under the ask,\n so the slot is always the taller of the two and the swap moves no line above it. */\n[data-vibe-menu] .vm-guest-slot { display: grid; }\n[data-vibe-menu] .vm-guest-slot > * { grid-area: 1 / 1; }\n/* An account's first build (#9641): the build ask's own room, held the same way. */\n[data-vibe-menu] .vm-ask-slot { display: grid; }\n[data-vibe-menu] .vm-ask-slot > * { grid-area: 1 / 1; }\n[data-vibe-menu] .vm-keep-app-cta { display: inline; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }\n/* The owner's check row (#9245): a muted line with a glyph, its button an inline\n text link kept on one line with its separator. */\n[data-vibe-menu] .vm-check { margin: 0 0 var(--space-14); }\n[data-vibe-menu] p.vm-check-row { display: flex; align-items: center; margin: 0; min-width: 0; white-space: nowrap; font: 400 14px/1.4 var(--font-display); color: var(--muted); }\n[data-vibe-menu] p.vm-check-row .vm-glyph { display: inline-block; flex: none; width: 14px; height: 14px; margin-right: var(--space-8); }\n[data-vibe-menu] .vm-check strong { color: var(--ink); font-weight: 700; }\n[data-vibe-menu] .vm-check.is-clear p.vm-check-row .vm-glyph { color: var(--ink); }\n/* One line at rest: the verdict gives way (ellipsis) before the button ever wraps. */\n[data-vibe-menu] .vm-check-sum { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n[data-vibe-menu] button.vm-check-toggle { padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; background: none; border: 0; }\n[data-vibe-menu] .vm-check-act-wrap { flex: none; white-space: nowrap; }\n[data-vibe-menu] button.vm-check-act { display: inline; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; background: none; border: 0; }\n[data-vibe-menu] .vm-check-detail { margin: var(--space-6) 0 0 calc(14px + var(--space-8)); font: 400 13px/1.45 var(--font-display); color: var(--muted); }\n[data-vibe-menu] .vm-check-detail ul { margin: 0; padding: 0; list-style: none; }\n[data-vibe-menu] .vm-check-detail li { overflow-wrap: anywhere; }\n[data-vibe-menu] p.vm-check-covers { margin: var(--space-6) 0 0; }\n[data-vibe-menu] p.vm-check-row[aria-busy=\"true\"] .vm-glyph { animation: vm-check-spin 1.4s linear infinite; }\n@keyframes vm-check-spin { to { transform: rotate(360deg); } }\n@media (prefers-reduced-motion: reduce) { [data-vibe-menu] p.vm-check-row[aria-busy=\"true\"] .vm-glyph { animation: none; } }\n[data-vibe-menu] .vm-code .vm-suggestions { margin-bottom: var(--space-14); }\n[data-vibe-menu] .vm-codemode { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; }\n[data-vibe-menu] .vm-codemode[data-fill] { flex: 1 1 auto; }\n/* The pinned top (kicker, composer, moment) keeps to half the Code mode card\n (80cqh) and scrolls on its own past that, so on a short frame (phone\n landscape) a multi-line composer stays reachable and the tab strip stays in\n the card. At normal sizes it never reaches the cap: only the tab body scrolls. */\n[data-vibe-menu] .vm-codemode-top { flex: none; max-height: 40cqh; overflow-y: auto; overscroll-behavior: contain; }\n[data-vibe-menu] .vm-codemode .vm-composer,\n[data-vibe-menu] .vm-codemode .vm-moments { margin-bottom: 10px; }\n\n/* The build ask (#8951): the agent's one question under the first build's live\n line, in the live line's own type. The card's composer below takes the answer;\n nothing is focused until a tap, so the keyboard stays closed while the first\n look plays. */\n[data-vibe-menu] .vm-build-ask { display: flex; align-items: flex-start; gap: var(--space-8); margin: var(--space-8) 0 var(--space-10); }\n[data-vibe-menu] .vm-build-ask-q { flex: 1; min-width: 0; margin: 0; padding: 0; text-align: left; font: 400 16px/1.3 var(--font-display); color: var(--ink); text-wrap: pretty; cursor: text; }\n[data-vibe-menu] .vm-build-ask-x { flex: none; width: 28px; height: 28px; padding: 0; font: 400 18px/1 var(--font-tab); color: var(--muted); cursor: pointer; }\n";
|
|
9
|
+
export declare const CODE_CARD_CSS = "\n[data-vibe-menu] .vm-prompt-request { margin: 0 0 var(--space-14); font: 400 16px/1.3 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }\n/* The first build's request (PromptRequest, #7660) clamps to three lines so the\n status and expected-time bar stay on the first phone screen; \"Show all\" opens it. */\n[data-vibe-menu] .vm-prompt-request.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n[data-vibe-menu] .vm-prompt-more { display: block; margin: calc(var(--space-12) * -1) 0 var(--space-14); padding: 0; font: 700 12px/1.6 var(--font-tab); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }\n[data-vibe-menu] .vm-prompt-more:hover { color: var(--ink); }\n[data-vibe-menu] .vm-prompt-files { display: grid; gap: var(--space-12); margin-top: var(--space-16); }\n[data-vibe-menu] .vm-prompt-attached { margin-top: var(--space-2); font: 400 13px/1.4 var(--font-display); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n[data-vibe-menu] .vm-prompt-detail { font: 400 13px/1.4 var(--font-display); color: var(--muted); margin: var(--space-12) 0; overflow-wrap: anywhere; }\n[data-vibe-menu] .vm-prompt .vm-prompt-stop { flex: none; width: auto; height: 28px; margin-top: 0; }\n[data-vibe-menu] .vm-prompt-status { display: flex; align-items: center; gap: var(--space-12); border-top: var(--stroke-rule) solid var(--line-card); padding-top: var(--space-16); margin-bottom: var(--space-16); font: 400 14px/1.4 var(--font-display); color: var(--muted); }\n[data-vibe-menu] .vm-code .vm-moments { margin-bottom: var(--space-14); }\n/* The guest's Keep this app line (#7789): one quiet line in the card's flow\n above the composer, its button an inline text link. */\n[data-vibe-menu] .vm-keep-app { margin: 0 0 var(--space-12); line-height: 1.4; }\n[data-vibe-menu] .vm-keep-app > strong { color: var(--ink); font-weight: 700; }\n[data-vibe-menu] .vm-guest-build { margin: var(--space-8) 0 var(--space-12); line-height: 1.4; }\n[data-vibe-menu] .vm-guest-build > strong { color: var(--ink); font-weight: 700; }\n/* A guest's first build (#9462): the note and the build ask that later takes its\n place share one grid cell, the note kept as an invisible spacer under the ask,\n so the slot is always the taller of the two and the swap moves no line above it. */\n[data-vibe-menu] .vm-guest-slot { display: grid; }\n[data-vibe-menu] .vm-guest-slot > * { grid-area: 1 / 1; }\n/* An account's first build (#9641): the build ask's own room, held the same way. */\n[data-vibe-menu] .vm-ask-slot { display: grid; }\n[data-vibe-menu] .vm-ask-slot > * { grid-area: 1 / 1; }\n[data-vibe-menu] .vm-ask-foot { align-items: end; }\n[data-vibe-menu] .vm-keep-app-cta { display: inline; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }\n/* The owner's check row (#9245): a muted line with a glyph, its button an inline\n text link kept on one line with its separator. */\n[data-vibe-menu] .vm-check { margin: 0 0 var(--space-14); }\n[data-vibe-menu] p.vm-check-row { display: flex; align-items: center; margin: 0; min-width: 0; white-space: nowrap; font: 400 14px/1.4 var(--font-display); color: var(--muted); }\n[data-vibe-menu] p.vm-check-row .vm-glyph { display: inline-block; flex: none; width: 14px; height: 14px; margin-right: var(--space-8); }\n[data-vibe-menu] .vm-check strong { color: var(--ink); font-weight: 700; }\n[data-vibe-menu] .vm-check.is-clear p.vm-check-row .vm-glyph { color: var(--ink); }\n/* One line at rest: the verdict gives way (ellipsis) before the button ever wraps. */\n[data-vibe-menu] .vm-check-sum { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n[data-vibe-menu] button.vm-check-toggle { padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; background: none; border: 0; }\n[data-vibe-menu] .vm-check-act-wrap { flex: none; white-space: nowrap; }\n[data-vibe-menu] button.vm-check-act { display: inline; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; background: none; border: 0; }\n[data-vibe-menu] .vm-check-detail { margin: var(--space-6) 0 0 calc(14px + var(--space-8)); font: 400 13px/1.45 var(--font-display); color: var(--muted); }\n[data-vibe-menu] .vm-check-detail ul { margin: 0; padding: 0; list-style: none; }\n[data-vibe-menu] .vm-check-detail li { overflow-wrap: anywhere; }\n[data-vibe-menu] p.vm-check-covers { margin: var(--space-6) 0 0; }\n[data-vibe-menu] p.vm-check-row[aria-busy=\"true\"] .vm-glyph { animation: vm-check-spin 1.4s linear infinite; }\n@keyframes vm-check-spin { to { transform: rotate(360deg); } }\n@media (prefers-reduced-motion: reduce) { [data-vibe-menu] p.vm-check-row[aria-busy=\"true\"] .vm-glyph { animation: none; } }\n[data-vibe-menu] .vm-code .vm-suggestions { margin-bottom: var(--space-14); }\n[data-vibe-menu] .vm-codemode { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; }\n[data-vibe-menu] .vm-codemode[data-fill] { flex: 1 1 auto; }\n/* The pinned top (kicker, composer, moment) keeps to half the Code mode card\n (80cqh) and scrolls on its own past that, so on a short frame (phone\n landscape) a multi-line composer stays reachable and the tab strip stays in\n the card. At normal sizes it never reaches the cap: only the tab body scrolls. */\n[data-vibe-menu] .vm-codemode-top { flex: none; max-height: 40cqh; overflow-y: auto; overscroll-behavior: contain; }\n[data-vibe-menu] .vm-codemode .vm-composer,\n[data-vibe-menu] .vm-codemode .vm-moments { margin-bottom: 10px; }\n\n/* The build ask (#8951): the agent's one question under the first build's live\n line, in the live line's own type. The card's composer below takes the answer;\n nothing is focused until a tap, so the keyboard stays closed while the first\n look plays. */\n[data-vibe-menu] .vm-build-ask { display: flex; align-items: flex-start; gap: var(--space-8); margin: var(--space-8) 0 var(--space-10); }\n[data-vibe-menu] .vm-build-ask-q { flex: 1; min-width: 0; margin: 0; padding: 0; text-align: left; font: 400 16px/1.3 var(--font-display); color: var(--ink); text-wrap: pretty; cursor: text; }\n[data-vibe-menu] .vm-build-ask-x { flex: none; width: 28px; height: 28px; padding: 0; font: 400 18px/1 var(--font-tab); color: var(--muted); cursor: pointer; }\n";
|
|
10
10
|
export declare const CODE_SUMMARY_LINE_CSS = "\n[data-vibe-menu] .vm-code.vm-ctab .vm-moment.is-summary > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n";
|
|
11
11
|
export interface CodeCardProps {
|
|
12
12
|
readonly viewer: ViewerSlice;
|
|
@@ -50,6 +50,7 @@ export const CODE_CARD_CSS = `
|
|
|
50
50
|
/* An account's first build (#9641): the build ask's own room, held the same way. */
|
|
51
51
|
[data-vibe-menu] .vm-ask-slot { display: grid; }
|
|
52
52
|
[data-vibe-menu] .vm-ask-slot > * { grid-area: 1 / 1; }
|
|
53
|
+
[data-vibe-menu] .vm-ask-foot { align-items: end; }
|
|
53
54
|
[data-vibe-menu] .vm-keep-app-cta { display: inline; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
54
55
|
/* The owner's check row (#9245): a muted line with a glyph, its button an inline
|
|
55
56
|
text link kept on one line with its separator. */
|
|
@@ -118,13 +119,6 @@ export function CodeCard(props) {
|
|
|
118
119
|
const pinnedLeftAt = React.useRef(undefined);
|
|
119
120
|
const handoffSawBuild = React.useRef(false);
|
|
120
121
|
const heldFirstBuild = React.useRef(null);
|
|
121
|
-
const [answering, setAnswering] = React.useState(false);
|
|
122
|
-
if (answering && (code.buildAsk === undefined || code.buildAsk === null))
|
|
123
|
-
setAnswering(false);
|
|
124
|
-
React.useLayoutEffect(() => {
|
|
125
|
-
if (answering)
|
|
126
|
-
composerField.current?.focus();
|
|
127
|
-
}, [answering]);
|
|
128
122
|
React.useLayoutEffect(() => {
|
|
129
123
|
if (focusAfterCodeMode.current && code.codeMode === false && composerField.current !== null) {
|
|
130
124
|
focusAfterCodeMode.current = false;
|
|
@@ -188,7 +182,6 @@ export function CodeCard(props) {
|
|
|
188
182
|
const buildAsk = editor ? (code.buildAsk ?? null) : null;
|
|
189
183
|
const askOpen = buildAsk !== null;
|
|
190
184
|
const buildAskNode = buildAsk !== null ? (React.createElement(BuildAskLine, { ask: buildAsk, visible: props.open === true, onAnswer: () => {
|
|
191
|
-
setAnswering(true);
|
|
192
185
|
composerField.current?.focus();
|
|
193
186
|
} })) : null;
|
|
194
187
|
const kickerNode = requestHead ?? (kicker !== "" ? React.createElement("p", { className: "vm-kicker" }, kicker) : null);
|
|
@@ -394,10 +387,7 @@ export function CodeCard(props) {
|
|
|
394
387
|
? { ...toggle, tail, history: hasHistory ? history : undefined }
|
|
395
388
|
: chatLog;
|
|
396
389
|
const building = working || bootHold;
|
|
397
|
-
const showComposer = code.composerHidden !== true &&
|
|
398
|
-
(firstBuild === false || (askOpen && answering)) &&
|
|
399
|
-
historyLoading === false &&
|
|
400
|
-
handoffHold === false;
|
|
390
|
+
const showComposer = code.composerHidden !== true && (firstBuild === false || askOpen) && historyLoading === false && handoffHold === false;
|
|
401
391
|
const guestBuildNode = editor === true && code.guestBuild === true && building === true && showComposer === false && buildAskNode === null ? (React.createElement("p", { className: "vm-sub vm-guest-build", "data-guest-build-note": "" },
|
|
402
392
|
React.createElement("strong", null, GUEST_BUILD_NOTE.lead),
|
|
403
393
|
" ",
|
|
@@ -415,7 +405,10 @@ export function CodeCard(props) {
|
|
|
415
405
|
buildAskNode,
|
|
416
406
|
React.createElement(BuildAskRoom, null))) : (buildAskNode);
|
|
417
407
|
const reserveRow = rowItems.length === 0 && editor === true && logOpens === false && (firstBuild || (handoffHold && moment.pinned === null));
|
|
418
|
-
const mainAction = showComposer ? (
|
|
408
|
+
const mainAction = showComposer ? (firstBuild && askOpen ? (React.createElement("div", { className: "vm-ask-slot vm-ask-foot", "data-build-ask-foot": "" },
|
|
409
|
+
React.createElement("div", { "data-stop-reserve": "", "aria-hidden": "true", inert: true, style: { visibility: "hidden" } },
|
|
410
|
+
React.createElement(StopIconButton, { disabled: true, onStop: () => undefined })),
|
|
411
|
+
React.createElement("div", { className: "vm-ask-foot-composer" }, composerNode))) : (composerNode)) : working ? (React.createElement(StopIconButton, { disabled: composer.stopDisabled === true, armedAt: latestStopArm(live?.expected?.fromMs, pinnedLeftAt.current), onStop: () => {
|
|
419
412
|
heldFirstBuild.current = null;
|
|
420
413
|
draft.stop();
|
|
421
414
|
}, latch: code.composerHidden !== true })) : bootHold ? (React.createElement("div", { "data-stop-reserve": "", "aria-hidden": "true", inert: true, style: { visibility: "hidden" } },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/base",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.372",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@adviser/cement": "~0.5.37",
|
|
12
12
|
"@emotion/css": "~11.13.5",
|
|
13
|
-
"@vibes.diy/api-types": "14.3.
|
|
14
|
-
"@vibes.diy/use-vibes-types": "14.3.
|
|
15
|
-
"@vibes.diy/vibe-runtime": "14.3.
|
|
16
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
13
|
+
"@vibes.diy/api-types": "14.3.372",
|
|
14
|
+
"@vibes.diy/use-vibes-types": "14.3.372",
|
|
15
|
+
"@vibes.diy/vibe-runtime": "14.3.372",
|
|
16
|
+
"@vibes.diy/vibe-types": "14.3.372",
|
|
17
17
|
"arktype": "~2.2.9",
|
|
18
18
|
"officeparser": "~8.7.1",
|
|
19
19
|
"qrcode-generator": "~2.0.4",
|