vibes-diy 14.3.412 → 14.3.413

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.
@@ -29699,7 +29699,7 @@ var init_catalog_generated = __esm({
29699
29699
  {
29700
29700
  name: "BottomNav",
29701
29701
  entry: "interactive",
29702
- purpose: "Mobile bottom navigation",
29702
+ purpose: "Mobile bottom navigation between the app's routes, one tab per `href`; for tabs inside one screen, reach for `Tabs` or `Segmented` with `value`/`onChange`",
29703
29703
  props: [
29704
29704
  { name: "primary", type: "NavItem[]", required: true },
29705
29705
  { name: "groups", type: "NavGroup[]", required: true },
@@ -30089,7 +30089,7 @@ var init_catalog_generated = __esm({
30089
30089
  ],
30090
30090
  charts: ["AreaChart", "BarChart", "LineChart", "PieChart"]
30091
30091
  };
30092
- POUF_CATALOG_MD = '- `AlertBell` (`@vibes.diy/ui`) \u2014 A bell button with an unread count that opens the session\'s alert history. Props: `alerts` (required) AlertBellItem[]; `unread` (required) number; `connected` (required); `onOpen` (required) () => void\n- `Badge` (`@vibes.diy/ui`) \u2014 A small tonal label for a count, category or state. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Breadcrumb` (`@vibes.diy/ui`) \u2014 Shows where the current page sits in a hierarchy, with links back up. Props: `items` (required) BreadcrumbItem[]\n- `Button` (`@vibes.diy/ui`) \u2014 The action button; give one primary action per area. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `variant` solid|quiet; `block`; `disabled`; `loading`; `type` button|submit; `label` string; `tint` string\n- `CTA` (`@vibes.diy/ui`) \u2014 A call-to-action banner: a big tonal cushion with a headline and an action. Props: `title` (required) string; `description` string; `action` (required) ReactNode; `tone` purple (lead)|pink|blue|mint|yellow|surface\n- `Card` (`@vibes.diy/ui`) \u2014 The raised surface that groups related content into a panel. Props: `variant` default|flush|tight; `motion` none|lift|tilt-left|tilt-right\n- `Dot` (`@vibes.diy/ui`) \u2014 A status dot. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Empty` (`@vibes.diy/ui`) \u2014 The empty state for a list or panel with nothing in it yet. Props: `icon` IconLike; `title` (required) string\n- `ErrorBoundary` (`@vibes.diy/ui`) \u2014 Catches render crashes so one broken part can\'t blank the whole page. Props: `name` (required) string; `resetKey` string\n- `ErrorNote` (`@vibes.diy/ui`) \u2014 An inline message that says a request or action failed.\n- `Eyebrow` (`@vibes.diy/ui`) \u2014 A small uppercase label above a section heading.\n- `Field` (`@vibes.diy/ui`) \u2014 Wraps a form control with its label, hint and error text. Props: `label` (required) string; `children` (required) (id: string, describedBy: string | undefined) => ReactNode; `hint` string; `error` string\n- `Figure` (`@vibes.diy/ui`) \u2014 An image, framed in clay. Props: `src` (required) string; `alt` (required) string; `width` (required) number; `height` (required) number\n- `Footer` (`@vibes.diy/ui`) \u2014 A site footer on one big cushion: brand block plus columns of links, with an optional bottom note. Props: `brand` (required) ReactNode; `tagline` string\n- `Freshness` (`@vibes.diy/ui`) \u2014 Speaks only when the data on screen can no longer be trusted. Props: `at` (required) number; `isError`\n- `Grid` (`@vibes.diy/ui`) \u2014 Lays children out in columns, or main plus side, stacking on narrow screens. Props: `cols` 2|3|4|sidebar; `gap` 1|2|3|4|5|6\n- `Heading` (`@vibes.diy/ui`) \u2014 A page or section heading at level 1, 2 or 3. Props: `level` 1|2|3\n- `Highlight` (`@vibes.diy/ui`) \u2014 Puts a tonal swatch behind a word or short phrase to make it pop. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Icon` (`@vibes.diy/ui`) \u2014 A named glyph from the built-in icon set. Props: `name` (required) up|down|warn|info|idle|overview|chart|log|channels|activity|lab|history|performance|settings|database|menu|flat|ok|fail|off|live|draft|target|alerts|add|remove|search|close|expand|prev|next|photo|heart|heart-filled|comment|play|pause|rewind|forward|sun|cloud|rain|star|calendar|clock|user|users|mail|lock|send|home|trophy|flame|sparkle|music|cart|tag|dots|sword|shield|wand|smile|card|pin|wind|drop|gift; `size` sm|md|lg; `label` string\n- `IconButton` (`@vibes.diy/ui`) \u2014 A square, labelled icon action. Props: `icon` (required) ReactNode; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `variant` solid|quiet; `disabled`; `loading`; `type` button|submit; `tint` string\n- `IconTile` (`@vibes.diy/ui`) \u2014 A tonal icon tile that fronts a stat, list row or feature. Props: `icon` (required) IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `label` string\n- `Input` (`@vibes.diy/ui`) \u2014 A single-line text field; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `id` string; `name` string; `describedBy` string; `placeholder` string; `type` string; `autoComplete` string; `inputMode` none|search|email|tel|text|url|numeric|decimal; `autoCapitalize` string; `spellCheck`; `required`; `mono`; `invalid`; `disabled`; `label` string; `bare`\n- `Metric` (`@vibes.diy/ui`) \u2014 A labelled readout: small muted label, value beneath. Props: `label` (required) string; `value` (required) ReactNode; `num`; `mono`\n- `ModeBanner` (`@vibes.diy/ui`) \u2014 The draft/live (or any two-mode) indicator. Props: `live` (required)\n- `NavLink` (`@vibes.diy/ui`) \u2014 A navigation link that marks itself active on the current path. Props: `href` (required) string; `currentPath` (required) string; `icon` (required) IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Navbar` (`@vibes.diy/ui`) \u2014 A top navigation bar on a floating cushion. Props: `brand` (required) ReactNode; `label` string\n- `NumberInput` (`@vibes.diy/ui`) \u2014 A numeric field with step buttons; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `step` number; `min` number; `max` number; `id` string; `describedBy` string; `placeholder` string; `invalid`; `disabled`; `label` string\n- `Pagination` (`@vibes.diy/ui`) \u2014 Previous and next page controls with a page indicator for long lists. Props: `page` (required) number; `total` (required) number; `onChange` (required) (page: number) => void\n- `Row` (`@vibes.diy/ui`) \u2014 Lays children out horizontally with a gap, alignment and wrapping. Props: `gap` 1|2|3|4|5|6; `align` center|top; `justify` start|center|between|end; `wrap`\n- `RowCard` (`@vibes.diy/ui`) \u2014 One raised row per item in a list; clickable when given onClick. Props: `selected`\n- `Segmented` (`@vibes.diy/ui`) \u2014 A mutually-exclusive choice: grid vs list, draft vs live, and similar. Props: `value` (required) T; `onChange` (required) (value: T) => void; `options` (required) SegmentedOption<T>[]; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Shell` (`@vibes.diy/ui`) \u2014 The page frame: a sidebar column beside the main content.\n- `Sidebar` (`@vibes.diy/ui`) \u2014 The side navigation column inside Shell. Props: `mobile` show|hide\n- `Skeleton` (`@vibes.diy/ui`) \u2014 A loading placeholder shaped like the text, row or card it stands in for. Props: `variant` text|row|card; `count` number\n- `Spacer` (`@vibes.diy/ui`) \u2014 Pushes the items after it to the far end of a Row.\n- `Stack` (`@vibes.diy/ui`) \u2014 Stacks children vertically with an even gap. Props: `gap` 1|2|3|4|5|6\n- `Stat` (`@vibes.diy/ui`) \u2014 A headline figure on its own cushion. Props: `label` (required) string; `value` (required) string; `icon` (required) IconLike; `tone` (required) up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Status` (`@vibes.diy/ui`) \u2014 A labelled status dot that turns unknown when its reading goes stale. Props: `label` (required) string; `tone` (required) up|down|warn|info|idle|purple (lead)|orange (decorative); `at` number\n- `Table` (`@vibes.diy/ui`) \u2014 A data table with typed columns; rows can be clickable. Props: `columns` (required) TableColumn<T>[]; `rows` (required) T[]; `getKey` (required) (row: T) => string\n- `Text` (`@vibes.diy/ui`) \u2014 Body text: size, muted, numeric and monospace variants. Props: `size` sm|md; `muted`; `num`; `mono`; `truncate`\n- `Textarea` (`@vibes.diy/ui`) \u2014 A multi-line text field; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `id` string; `name` string; `describedBy` string; `placeholder` string; `autoComplete` string; `spellCheck`; `required`; `rows` number; `mono`; `invalid`; `disabled`; `label` string\n- `Accordion` (`@vibes.diy/ui/interactive`) \u2014 A stack of expandable sections with one open at a time. Props: `items` (required) AccordionItem[]; `defaultValue` string\n- `AspectRatio` (`@vibes.diy/ui/interactive`) \u2014 Holds media at a fixed width-to-height ratio. Props: `ratio` number\n- `Avatar` (`@vibes.diy/ui/interactive`) \u2014 A person\'s picture, with initials or an icon when there is none. Props: `src` string; `alt` string; `fallback` string; `icon` IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg\n- `BottomNav` (`@vibes.diy/ui/interactive`) \u2014 Mobile bottom navigation. Props: `primary` (required) NavItem[]; `groups` (required) NavGroup[]; `currentPath` (required) string\n- `Checkbox` (`@vibes.diy/ui/interactive`) \u2014 A labelled on/off checkbox. Props: `checked` (required) boolean | "indeterminate"; `onChange` (required) (checked: boolean | "indeterminate") => void; `id` string; `disabled`; `label` string; `hideLabel`\n- `Collapsible` (`@vibes.diy/ui/interactive`) \u2014 A single section that shows or hides its content from a trigger. Props: `trigger` (required) ReactNode; `open`\n- `Combobox` (`@vibes.diy/ui/interactive`) \u2014 A text field with suggestions to pick or type; its default lives in `value`, not placeholder. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) string[]; `loading`; `error` string; `id` string; `describedBy` string; `placeholder` string; `mono`; `label` string\n- `Confirm` (`@vibes.diy/ui/interactive`) \u2014 Wraps the button that opens it; asks to confirm an irreversible action such as a delete. Props: `title` (required) string; `body` (required) string; `confirmLabel` (required) string; `cancelLabel` (required) string; `onConfirm` (required) () => void; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `loading`\n- `ContextMenu` (`@vibes.diy/ui/interactive`) \u2014 A menu of actions that opens on right-click or long-press. Props: `items` (required) (MenuEntry | "separator")[]\n- `Dialog` (`@vibes.diy/ui/interactive`) \u2014 A modal window for a focused task or form. Props: `trigger` (required) ReactNode; `title` (required) string; `description` string; `open`; `size` md|lg\n- `DropdownMenu` (`@vibes.diy/ui/interactive`) \u2014 A menu of actions that opens from a trigger button. Props: `items` (required) ("separator" | MenuItem)[]; `label` string\n- `HoverCard` (`@vibes.diy/ui/interactive`) \u2014 A preview card that appears on hover over its trigger. Props: `content` (required) ReactNode; `side` top|right|bottom|left; `align` start|center|end\n- `Menubar` (`@vibes.diy/ui/interactive`) \u2014 An application menu bar (File / Edit / View\u2026). Props: `menus` (required) MenubarMenu[]\n- `Pad` (`@vibes.diy/ui/interactive`) \u2014 A square instrument pad that toggles on and off, with a playhead light and beat-group shading. Props: `on` (required); `onPress` (required) () => void; `label` (required) string; `playhead`; `downbeat`; `group` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `disabled`\n- `Progress` (`@vibes.diy/ui/interactive`) \u2014 A progress bar for a value out of a maximum. Props: `value` (required) number; `max` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `label` string\n- `RadioGroup` (`@vibes.diy/ui/interactive`) \u2014 A labelled set of options where exactly one is chosen. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) RadioOption[]; `label` (required) string; `disabled`\n- `ScrollArea` (`@vibes.diy/ui/interactive`) \u2014 A fixed-height region that scrolls its own content. Props: `maxHeight` string\n- `Select` (`@vibes.diy/ui/interactive`) \u2014 A dropdown for picking one option; its default lives in `value`, not placeholder. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) SelectOption[]; `id` string; `describedBy` string; `placeholder` string; `disabled`; `label` string\n- `Separator` (`@vibes.diy/ui/interactive`) \u2014 A thin divider line between groups of content.\n- `Sheet` (`@vibes.diy/ui/interactive`) \u2014 A panel that slides in from the side for secondary tasks. Props: `title` (required) string; `description` string; `open`\n- `Slider` (`@vibes.diy/ui/interactive`) \u2014 Picks a number in a range by dragging. Props: `value` (required) number[]; `onChange` (required) (value: number[]) => void; `min` number; `max` number; `step` number; `disabled`; `label` string; `hideLabel`\n- `StepGrid` (`@vibes.diy/ui/interactive`) \u2014 One sequencer row of Pads with a moving playhead and beat groups, wrapping to two lines on a phone. Props: `steps` (required) readonly (number | boolean)[]; `onToggle` (required) (index: number) => void; `label` (required) string; `playhead` number; `groupSize` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Switch` (`@vibes.diy/ui/interactive`) \u2014 A labelled on/off toggle for a setting that applies at once. Props: `checked` (required); `onChange` (required) (checked: boolean) => void; `id` string; `describedBy` string; `disabled`; `label` string\n- `Tabs` (`@vibes.diy/ui/interactive`) \u2014 Switches between panels of content under one heading. Props: `tabs` (required) Tab[]; `value` (required) string; `onChange` (required) (value: string) => void; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Toast` (`@vibes.diy/ui/interactive`) \u2014 One alert message with a severity and a dismiss button. Props: `id` (required) number; `severity` (required) critical|info; `onDismiss` (required) (id: number) => void\n- `ToastViewport` (`@vibes.diy/ui/interactive`) \u2014 Renders a list of alert messages your app keeps in state. Props: `toasts` (required) ToastItem[]; `onDismiss` (required) (id: number) => void\n- `Toaster` (`@vibes.diy/ui/interactive`) \u2014 Mount once in the app so toast() calls appear on screen.\n- `ToggleGroup` (`@vibes.diy/ui/interactive`) \u2014 A row of toggle buttons where several can be on at once. Props: `value` (required) string[]; `onChange` (required) (value: string[]) => void; `options` (required) ToggleOption[]; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Tooltip` (`@vibes.diy/ui/interactive`) \u2014 Wraps an element with a short hint on hover or focus; needs a TooltipProvider above it. Props: `tip` (required) string\n- `TooltipProvider` (`@vibes.diy/ui/interactive`) \u2014 Wrap the app once; every Tooltip must sit inside it.\n- `AreaChart` (`@vibes.diy/ui/charts`) \u2014 An area chart of one or more series over a category axis. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number; `stacked`\n- `BarChart` (`@vibes.diy/ui/charts`) \u2014 A bar chart of one or more series, optionally stacked. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number; `stacked`; `toneKey` string\n- `LineChart` (`@vibes.diy/ui/charts`) \u2014 A line chart of one or more series over a category axis. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number\n- `PieChart` (`@vibes.diy/ui/charts`) \u2014 A pie or donut chart of parts of a whole. Props: `data` (required) PieSlice[]; `height` number; `donut`; `labelled`';
30092
+ POUF_CATALOG_MD = '- `AlertBell` (`@vibes.diy/ui`) \u2014 A bell button with an unread count that opens the session\'s alert history. Props: `alerts` (required) AlertBellItem[]; `unread` (required) number; `connected` (required); `onOpen` (required) () => void\n- `Badge` (`@vibes.diy/ui`) \u2014 A small tonal label for a count, category or state. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Breadcrumb` (`@vibes.diy/ui`) \u2014 Shows where the current page sits in a hierarchy, with links back up. Props: `items` (required) BreadcrumbItem[]\n- `Button` (`@vibes.diy/ui`) \u2014 The action button; give one primary action per area. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `variant` solid|quiet; `block`; `disabled`; `loading`; `type` button|submit; `label` string; `tint` string\n- `CTA` (`@vibes.diy/ui`) \u2014 A call-to-action banner: a big tonal cushion with a headline and an action. Props: `title` (required) string; `description` string; `action` (required) ReactNode; `tone` purple (lead)|pink|blue|mint|yellow|surface\n- `Card` (`@vibes.diy/ui`) \u2014 The raised surface that groups related content into a panel. Props: `variant` default|flush|tight; `motion` none|lift|tilt-left|tilt-right\n- `Dot` (`@vibes.diy/ui`) \u2014 A status dot. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Empty` (`@vibes.diy/ui`) \u2014 The empty state for a list or panel with nothing in it yet. Props: `icon` IconLike; `title` (required) string\n- `ErrorBoundary` (`@vibes.diy/ui`) \u2014 Catches render crashes so one broken part can\'t blank the whole page. Props: `name` (required) string; `resetKey` string\n- `ErrorNote` (`@vibes.diy/ui`) \u2014 An inline message that says a request or action failed.\n- `Eyebrow` (`@vibes.diy/ui`) \u2014 A small uppercase label above a section heading.\n- `Field` (`@vibes.diy/ui`) \u2014 Wraps a form control with its label, hint and error text. Props: `label` (required) string; `children` (required) (id: string, describedBy: string | undefined) => ReactNode; `hint` string; `error` string\n- `Figure` (`@vibes.diy/ui`) \u2014 An image, framed in clay. Props: `src` (required) string; `alt` (required) string; `width` (required) number; `height` (required) number\n- `Footer` (`@vibes.diy/ui`) \u2014 A site footer on one big cushion: brand block plus columns of links, with an optional bottom note. Props: `brand` (required) ReactNode; `tagline` string\n- `Freshness` (`@vibes.diy/ui`) \u2014 Speaks only when the data on screen can no longer be trusted. Props: `at` (required) number; `isError`\n- `Grid` (`@vibes.diy/ui`) \u2014 Lays children out in columns, or main plus side, stacking on narrow screens. Props: `cols` 2|3|4|sidebar; `gap` 1|2|3|4|5|6\n- `Heading` (`@vibes.diy/ui`) \u2014 A page or section heading at level 1, 2 or 3. Props: `level` 1|2|3\n- `Highlight` (`@vibes.diy/ui`) \u2014 Puts a tonal swatch behind a word or short phrase to make it pop. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Icon` (`@vibes.diy/ui`) \u2014 A named glyph from the built-in icon set. Props: `name` (required) up|down|warn|info|idle|overview|chart|log|channels|activity|lab|history|performance|settings|database|menu|flat|ok|fail|off|live|draft|target|alerts|add|remove|search|close|expand|prev|next|photo|heart|heart-filled|comment|play|pause|rewind|forward|sun|cloud|rain|star|calendar|clock|user|users|mail|lock|send|home|trophy|flame|sparkle|music|cart|tag|dots|sword|shield|wand|smile|card|pin|wind|drop|gift; `size` sm|md|lg; `label` string\n- `IconButton` (`@vibes.diy/ui`) \u2014 A square, labelled icon action. Props: `icon` (required) ReactNode; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `variant` solid|quiet; `disabled`; `loading`; `type` button|submit; `tint` string\n- `IconTile` (`@vibes.diy/ui`) \u2014 A tonal icon tile that fronts a stat, list row or feature. Props: `icon` (required) IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `label` string\n- `Input` (`@vibes.diy/ui`) \u2014 A single-line text field; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `id` string; `name` string; `describedBy` string; `placeholder` string; `type` string; `autoComplete` string; `inputMode` none|search|email|tel|text|url|numeric|decimal; `autoCapitalize` string; `spellCheck`; `required`; `mono`; `invalid`; `disabled`; `label` string; `bare`\n- `Metric` (`@vibes.diy/ui`) \u2014 A labelled readout: small muted label, value beneath. Props: `label` (required) string; `value` (required) ReactNode; `num`; `mono`\n- `ModeBanner` (`@vibes.diy/ui`) \u2014 The draft/live (or any two-mode) indicator. Props: `live` (required)\n- `NavLink` (`@vibes.diy/ui`) \u2014 A navigation link that marks itself active on the current path. Props: `href` (required) string; `currentPath` (required) string; `icon` (required) IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Navbar` (`@vibes.diy/ui`) \u2014 A top navigation bar on a floating cushion. Props: `brand` (required) ReactNode; `label` string\n- `NumberInput` (`@vibes.diy/ui`) \u2014 A numeric field with step buttons; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `step` number; `min` number; `max` number; `id` string; `describedBy` string; `placeholder` string; `invalid`; `disabled`; `label` string\n- `Pagination` (`@vibes.diy/ui`) \u2014 Previous and next page controls with a page indicator for long lists. Props: `page` (required) number; `total` (required) number; `onChange` (required) (page: number) => void\n- `Row` (`@vibes.diy/ui`) \u2014 Lays children out horizontally with a gap, alignment and wrapping. Props: `gap` 1|2|3|4|5|6; `align` center|top; `justify` start|center|between|end; `wrap`\n- `RowCard` (`@vibes.diy/ui`) \u2014 One raised row per item in a list; clickable when given onClick. Props: `selected`\n- `Segmented` (`@vibes.diy/ui`) \u2014 A mutually-exclusive choice: grid vs list, draft vs live, and similar. Props: `value` (required) T; `onChange` (required) (value: T) => void; `options` (required) SegmentedOption<T>[]; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Shell` (`@vibes.diy/ui`) \u2014 The page frame: a sidebar column beside the main content.\n- `Sidebar` (`@vibes.diy/ui`) \u2014 The side navigation column inside Shell. Props: `mobile` show|hide\n- `Skeleton` (`@vibes.diy/ui`) \u2014 A loading placeholder shaped like the text, row or card it stands in for. Props: `variant` text|row|card; `count` number\n- `Spacer` (`@vibes.diy/ui`) \u2014 Pushes the items after it to the far end of a Row.\n- `Stack` (`@vibes.diy/ui`) \u2014 Stacks children vertically with an even gap. Props: `gap` 1|2|3|4|5|6\n- `Stat` (`@vibes.diy/ui`) \u2014 A headline figure on its own cushion. Props: `label` (required) string; `value` (required) string; `icon` (required) IconLike; `tone` (required) up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Status` (`@vibes.diy/ui`) \u2014 A labelled status dot that turns unknown when its reading goes stale. Props: `label` (required) string; `tone` (required) up|down|warn|info|idle|purple (lead)|orange (decorative); `at` number\n- `Table` (`@vibes.diy/ui`) \u2014 A data table with typed columns; rows can be clickable. Props: `columns` (required) TableColumn<T>[]; `rows` (required) T[]; `getKey` (required) (row: T) => string\n- `Text` (`@vibes.diy/ui`) \u2014 Body text: size, muted, numeric and monospace variants. Props: `size` sm|md; `muted`; `num`; `mono`; `truncate`\n- `Textarea` (`@vibes.diy/ui`) \u2014 A multi-line text field; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `id` string; `name` string; `describedBy` string; `placeholder` string; `autoComplete` string; `spellCheck`; `required`; `rows` number; `mono`; `invalid`; `disabled`; `label` string\n- `Accordion` (`@vibes.diy/ui/interactive`) \u2014 A stack of expandable sections with one open at a time. Props: `items` (required) AccordionItem[]; `defaultValue` string\n- `AspectRatio` (`@vibes.diy/ui/interactive`) \u2014 Holds media at a fixed width-to-height ratio. Props: `ratio` number\n- `Avatar` (`@vibes.diy/ui/interactive`) \u2014 A person\'s picture, with initials or an icon when there is none. Props: `src` string; `alt` string; `fallback` string; `icon` IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg\n- `BottomNav` (`@vibes.diy/ui/interactive`) \u2014 Mobile bottom navigation between the app\'s routes, one tab per `href`; for tabs inside one screen, reach for `Tabs` or `Segmented` with `value`/`onChange`. Props: `primary` (required) NavItem[]; `groups` (required) NavGroup[]; `currentPath` (required) string\n- `Checkbox` (`@vibes.diy/ui/interactive`) \u2014 A labelled on/off checkbox. Props: `checked` (required) boolean | "indeterminate"; `onChange` (required) (checked: boolean | "indeterminate") => void; `id` string; `disabled`; `label` string; `hideLabel`\n- `Collapsible` (`@vibes.diy/ui/interactive`) \u2014 A single section that shows or hides its content from a trigger. Props: `trigger` (required) ReactNode; `open`\n- `Combobox` (`@vibes.diy/ui/interactive`) \u2014 A text field with suggestions to pick or type; its default lives in `value`, not placeholder. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) string[]; `loading`; `error` string; `id` string; `describedBy` string; `placeholder` string; `mono`; `label` string\n- `Confirm` (`@vibes.diy/ui/interactive`) \u2014 Wraps the button that opens it; asks to confirm an irreversible action such as a delete. Props: `title` (required) string; `body` (required) string; `confirmLabel` (required) string; `cancelLabel` (required) string; `onConfirm` (required) () => void; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `loading`\n- `ContextMenu` (`@vibes.diy/ui/interactive`) \u2014 A menu of actions that opens on right-click or long-press. Props: `items` (required) (MenuEntry | "separator")[]\n- `Dialog` (`@vibes.diy/ui/interactive`) \u2014 A modal window for a focused task or form. Props: `trigger` (required) ReactNode; `title` (required) string; `description` string; `open`; `size` md|lg\n- `DropdownMenu` (`@vibes.diy/ui/interactive`) \u2014 A menu of actions that opens from a trigger button. Props: `items` (required) ("separator" | MenuItem)[]; `label` string\n- `HoverCard` (`@vibes.diy/ui/interactive`) \u2014 A preview card that appears on hover over its trigger. Props: `content` (required) ReactNode; `side` top|right|bottom|left; `align` start|center|end\n- `Menubar` (`@vibes.diy/ui/interactive`) \u2014 An application menu bar (File / Edit / View\u2026). Props: `menus` (required) MenubarMenu[]\n- `Pad` (`@vibes.diy/ui/interactive`) \u2014 A square instrument pad that toggles on and off, with a playhead light and beat-group shading. Props: `on` (required); `onPress` (required) () => void; `label` (required) string; `playhead`; `downbeat`; `group` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `disabled`\n- `Progress` (`@vibes.diy/ui/interactive`) \u2014 A progress bar for a value out of a maximum. Props: `value` (required) number; `max` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `label` string\n- `RadioGroup` (`@vibes.diy/ui/interactive`) \u2014 A labelled set of options where exactly one is chosen. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) RadioOption[]; `label` (required) string; `disabled`\n- `ScrollArea` (`@vibes.diy/ui/interactive`) \u2014 A fixed-height region that scrolls its own content. Props: `maxHeight` string\n- `Select` (`@vibes.diy/ui/interactive`) \u2014 A dropdown for picking one option; its default lives in `value`, not placeholder. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) SelectOption[]; `id` string; `describedBy` string; `placeholder` string; `disabled`; `label` string\n- `Separator` (`@vibes.diy/ui/interactive`) \u2014 A thin divider line between groups of content.\n- `Sheet` (`@vibes.diy/ui/interactive`) \u2014 A panel that slides in from the side for secondary tasks. Props: `title` (required) string; `description` string; `open`\n- `Slider` (`@vibes.diy/ui/interactive`) \u2014 Picks a number in a range by dragging. Props: `value` (required) number[]; `onChange` (required) (value: number[]) => void; `min` number; `max` number; `step` number; `disabled`; `label` string; `hideLabel`\n- `StepGrid` (`@vibes.diy/ui/interactive`) \u2014 One sequencer row of Pads with a moving playhead and beat groups, wrapping to two lines on a phone. Props: `steps` (required) readonly (number | boolean)[]; `onToggle` (required) (index: number) => void; `label` (required) string; `playhead` number; `groupSize` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Switch` (`@vibes.diy/ui/interactive`) \u2014 A labelled on/off toggle for a setting that applies at once. Props: `checked` (required); `onChange` (required) (checked: boolean) => void; `id` string; `describedBy` string; `disabled`; `label` string\n- `Tabs` (`@vibes.diy/ui/interactive`) \u2014 Switches between panels of content under one heading. Props: `tabs` (required) Tab[]; `value` (required) string; `onChange` (required) (value: string) => void; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Toast` (`@vibes.diy/ui/interactive`) \u2014 One alert message with a severity and a dismiss button. Props: `id` (required) number; `severity` (required) critical|info; `onDismiss` (required) (id: number) => void\n- `ToastViewport` (`@vibes.diy/ui/interactive`) \u2014 Renders a list of alert messages your app keeps in state. Props: `toasts` (required) ToastItem[]; `onDismiss` (required) (id: number) => void\n- `Toaster` (`@vibes.diy/ui/interactive`) \u2014 Mount once in the app so toast() calls appear on screen.\n- `ToggleGroup` (`@vibes.diy/ui/interactive`) \u2014 A row of toggle buttons where several can be on at once. Props: `value` (required) string[]; `onChange` (required) (value: string[]) => void; `options` (required) ToggleOption[]; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Tooltip` (`@vibes.diy/ui/interactive`) \u2014 Wraps an element with a short hint on hover or focus; needs a TooltipProvider above it. Props: `tip` (required) string\n- `TooltipProvider` (`@vibes.diy/ui/interactive`) \u2014 Wrap the app once; every Tooltip must sit inside it.\n- `AreaChart` (`@vibes.diy/ui/charts`) \u2014 An area chart of one or more series over a category axis. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number; `stacked`\n- `BarChart` (`@vibes.diy/ui/charts`) \u2014 A bar chart of one or more series, optionally stacked. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number; `stacked`; `toneKey` string\n- `LineChart` (`@vibes.diy/ui/charts`) \u2014 A line chart of one or more series over a category axis. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number\n- `PieChart` (`@vibes.diy/ui/charts`) \u2014 A pie or donut chart of parts of a whole. Props: `data` (required) PieSlice[]; `height` number; `donut`; `labelled`';
30093
30093
  }
30094
30094
  });
30095
30095
 
@@ -200593,6 +200593,8 @@ var BACKEND_OP_ONCHANGE = "onchange";
200593
200593
  var BACKEND_OP_STATUS = "status";
200594
200594
  var BACKEND_OP_DISARM = "disarm";
200595
200595
  var BACKEND_DISARM_REASON_HEADER = "x-backend-disarm-reason";
200596
+ var BACKEND_OP_TICK_AT = "tickat";
200597
+ var BACKEND_TICK_AT_HEADER = "x-backend-tick-at";
200596
200598
  var BACKEND_OP_CLIENT_LOG = "clientlog";
200597
200599
  var BACKEND_OP_TOOL = "tool";
200598
200600
  var BACKEND_LOG_COUNTRY_HEADER = "x-vibe-log-country";
@@ -200616,7 +200618,7 @@ function classifyBackendDoRequest(input3) {
200616
200618
  if (input3.youtubeOpUrl !== void 0 && input3.url === input3.youtubeOpUrl) return { lane: "youtube-op" };
200617
200619
  const authorized5 = isControlPlaneAuthorized(input3.internalSecret, input3.providedAuth);
200618
200620
  const addressed = !!input3.ownerHandle && !!input3.appSlug;
200619
- if (input3.op === BACKEND_OP_ARM || input3.op === BACKEND_OP_DISARM || input3.op === BACKEND_OP_ONCHANGE || input3.op === BACKEND_OP_STATUS || input3.op === BACKEND_OP_CLIENT_LOG || input3.op === BACKEND_OP_TOOL) {
200621
+ if (input3.op === BACKEND_OP_ARM || input3.op === BACKEND_OP_DISARM || input3.op === BACKEND_OP_ONCHANGE || input3.op === BACKEND_OP_STATUS || input3.op === BACKEND_OP_TICK_AT || input3.op === BACKEND_OP_CLIENT_LOG || input3.op === BACKEND_OP_TOOL) {
200620
200622
  if (authorized5 && addressed) {
200621
200623
  return { lane: "control-plane", op: input3.op, ownerHandle: input3.ownerHandle, appSlug: input3.appSlug };
200622
200624
  }
@@ -207920,6 +207922,33 @@ var resAppTickRearm = lazyType(
207920
207922
  "pausedIntervalMs?": "number"
207921
207923
  })
207922
207924
  );
207925
+ var reqAppTickAt = lazyType(
207926
+ () => type({
207927
+ type: "'vibes.diy.req-app-tick-at'",
207928
+ auth: dashAuthType,
207929
+ ownerHandle: "string",
207930
+ appSlug: "string",
207931
+ // An ISO 8601 instant, e.g. 2026-11-26T21:05:00-08:00.
207932
+ at: "string"
207933
+ })
207934
+ );
207935
+ var resAppTickAt = lazyType(
207936
+ () => type({
207937
+ type: "'vibes.diy.res-app-tick-at'",
207938
+ ownerHandle: "string",
207939
+ appSlug: "string",
207940
+ // The instant the handler saw as `event.scheduledTime`, normalized to UTC ISO.
207941
+ scheduledTime: "string",
207942
+ // The handler ran to completion.
207943
+ ran: "boolean",
207944
+ // Why it did not run: `no_schedule` (no `scheduled` export, or the owner
207945
+ // paused scheduled runs), `backend_disabled`, `account_suspended`,
207946
+ // `release_unavailable`, `executor_error` or `handler_error`.
207947
+ "reason?": "string",
207948
+ // The bounded failure text, when there is one.
207949
+ "detail?": "string"
207950
+ })
207951
+ );
207923
207952
  var reqAppTickDisarm = lazyType(
207924
207953
  () => type({
207925
207954
  type: "'vibes.diy.req-app-tick-disarm'",
@@ -210574,7 +210603,12 @@ var userSettingGroupPayer = lazyType(
210574
210603
  * guest's one-to-one chat. A sponsored group with no bridge account to fall back on can also
210575
210604
  * name itself its payer, so a self payer alone never says "one to one" (2026-11-20).
210576
210605
  */
210577
- "guest?": "true"
210606
+ "guest?": "true",
210607
+ /**
210608
+ * With `guest`: the ad cell the chat's first text came from (vibes.diy#10397), named by the
210609
+ * hosted bridge. Billing adds that cell's credits (TEXT_CELL_BONUS_CREDITS) to the allowance.
210610
+ */
210611
+ "cell?": "string"
210578
210612
  })
210579
210613
  );
210580
210614
  var userSettingGroupSponsor = lazyType(
@@ -249228,7 +249262,8 @@ function isEvalOwnedHandle(handle) {
249228
249262
  }
249229
249263
  __name(isEvalOwnedHandle, "isEvalOwnedHandle");
249230
249264
  var SEED_DOC_PREFIX = "seed:";
249231
- var SECOND_DAY_MS = 24 * 60 * 60 * 1e3;
249265
+ var REREPORT_AFTER_MS = 24 * 60 * 60 * 1e3;
249266
+ var RETURN_GAP_MS = 6 * 60 * 60 * 1e3;
249232
249267
 
249233
249268
  // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/unlimited-account.ts
249234
249269
  async function isUnlimitedAccount(ctx, args3) {
@@ -262880,6 +262915,10 @@ function includedCreditsForPlan(plan) {
262880
262915
  }
262881
262916
  __name(includedCreditsForPlan, "includedCreditsForPlan");
262882
262917
  var GUEST_INCLUDED_CREDITS = 500;
262918
+ var TEXT_CELL_BONUS_CREDITS = {
262919
+ "c-2653-us-far-out-expedition-01": 300,
262920
+ "c-2654-us-trivia-night-01": 300
262921
+ };
262883
262922
  var AGENT_FOLLOW_ON_MIN_CREDITS = 200;
262884
262923
  var WELCOME_BONUS_CREDITS = 1e3;
262885
262924
  var WELCOME_BONUS_BALANCE_ID = "welcome_bonus";
@@ -263896,6 +263935,8 @@ function captureCodegenDesignRepairSettled(vctx, args3) {
263896
263935
  // #9694: why a reply was refused for no longer being the same file (`FileIdentityRefusalKind`),
263897
263936
  // each kind once. Absent when no reply was refused that way.
263898
263937
  ...result.identityRefusals === void 0 ? {} : { design_repair_refusals: [...result.identityRefusals] },
263938
+ // #10405: abandoned while a provider call ran, and that call was aborted. Absent otherwise.
263939
+ ...result.stoppedMidCall === true ? { design_repair_stopped_mid_call: true } : {},
263899
263940
  ...clientProperties(vctx.client)
263900
263941
  }
263901
263942
  }).catch(() => {
@@ -265801,7 +265842,7 @@ init_esm();
265801
265842
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
265802
265843
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
265803
265844
  init_performance2();
265804
- var AGENT_SESSION_INSTRUCTION_VERSION = "2026-11-20.1";
265845
+ var AGENT_SESSION_INSTRUCTION_VERSION = "2026-11-20.2";
265805
265846
  var GROUP_READY_SHAPE = "each person's own records live on a channel named by their handle, granted on every write they make, so the app opens on their tree with nothing to create first, while a second or shared thing is its own document the person's own action writes; the rules key on user.userHandle, the tree's handle or that object's own creator, and the records are shaped so a friend can be let in later by a member record, so the app owner stands where everyone else stands.";
265806
265847
  var INVITE_SCREEN_WHEN = "The invite screen, the platform's HandleInput writing a membership into the person's tree or object, is part of the first build when the ask names other people, sharing, a group, a team, a family, a we or an our, or a person by name, and when the app is a person's own collection, where adding a friend is how the collection is shared";
265807
265848
  var SHARING_BASELINE = "Sharing is the baseline: every first build that is not privacy-sensitive ships a way to share on its first screen, specified asks and asks that name nobody else included, and the shape follows what one record is \u2014 a record a person keeps for their own life (a check-in, an entry, a line in a list) belongs to a collection that is private to its person and shared whole by the add-a-friend control on the first screen, which grants the friend it names the collection's channel; a piece made for readers (a post, an article, a gallery piece) carries a one-tap publish that puts it on its own channel, shared with everyone who can open the app, the drafting ritual readers already know; a thing made to be seen the moment it exists (a character in a cast, a caption) lands on an always-on shared channel everyone who opens the app can see. The person's own words move the dial: asking to pick which items each friend sees adds that choice to the add-a-friend control, and asking for drafts or publish brings the per-item step to any record. The create_vibe brief names the shape. A collection's add-a-friend control is its first-screen share; in the other two shapes the invite screen may wait for an option. Only a privacy-sensitive app keeps its sharing off until the person turns it on.";
@@ -265988,7 +266029,7 @@ A plain name or an email address is someone the invite screen adds: build the sc
265988
266029
  Either way the answer is the app doing it: the reply says their friend is in, or shows the place in their own garden plan or sketchbook where the address goes.
265989
266030
  A copy of this app at its own address is a remix the person opens themselves: when they ask for a copy, a duplicate, or a second version to keep apart from this one, hand them the link https://vibes.diy/remix/<handle>/<app>?skipChat=true with this app's handle and name from your <app-context> \u2014 the same link as the Remix button above the app's code \u2014 and say what opening it makes: their own copy of the app at a new address, named after this one, with records of its own, while this app stays as it is. Every action you offer is one you take in this chat or one the person takes from a link or control your reply names.
265990
266031
  The app's code is the person's to take anywhere: when they ask for the code, all the files, a download of it, or a way to put the app on GitHub or run it somewhere else, point them to Download code in the header of the Code tab, beside Remix above the app's code. One press saves every file of the version on screen as one .zip named after the app, ready to unpack into their editor, a repository of their own or any host. That pointer is the whole answer, a sentence or two, and the files travel in the .zip.
265991
- Who can open this app is a fact your <app-context> states on its publish state: line, so every answer about privacy, sharing, publishing or whether the app is live says what that line says now: published and live at its link, with who it opens for, or not published. When the person wants the app kept to themselves or to people they choose, the same reply names the control: Share, then Share settings, then Restricted, after which only the people listed there can open it. When they want it off its link altogether, the reply names the Vibe actions menu (the three dots) on the app's row in the side menu's list of apps, then Delete, which takes it down from its link and keeps its data.
266032
+ Who can open this app is a fact your <app-context> states on its publish state: line, so every answer about privacy, sharing, publishing or whether the app is live says what that line says now: published and live at its link, with who it opens for, or not published. When the person wants the app kept to themselves or to people they choose, the same reply names the control: Share, then Share settings, then Restricted, after which only the people listed there can open it. When they want it off its link altogether, the reply names the Vibe actions menu (the three dots) on the app's row in the side menu's list of apps, then Delete, which takes it down from its link and keeps its data. Unpublishing pauses the app's scheduled jobs, and publishing it again picks them back up, so a reply about taking it down or about its scheduled jobs says that plainly.
265992
266033
 
265993
266034
  Choose skills from the behavior: callai for record intake, a reply, a suggestion or any text the page asks the model
265994
266035
  for, access for record permissions, backend for server actions, image-gen for generated or transformed
@@ -270878,9 +270919,32 @@ function acquireBuildLock(args3) {
270878
270919
  acquiredAtMs: (clock.now ?? Date.now)(),
270879
270920
  wakesOnTerminal: args3.wakesOnTerminal === true
270880
270921
  });
270922
+ notifyAcquired(args3.scope, args3.chatId);
270881
270923
  return { acquired: true };
270882
270924
  }
270883
270925
  __name(acquireBuildLock, "acquireBuildLock");
270926
+ var acquireListenersByScope = /* @__PURE__ */ new WeakMap();
270927
+ function notifyAcquired(scope2, chatId) {
270928
+ const listeners3 = acquireListenersByScope.get(scope2)?.get(chatId);
270929
+ if (listeners3 === void 0) return;
270930
+ for (const listener of [...listeners3]) listener();
270931
+ }
270932
+ __name(notifyAcquired, "notifyAcquired");
270933
+ function onBuildLockAcquired(scope2, chatId, listener) {
270934
+ let byChat = acquireListenersByScope.get(scope2);
270935
+ if (byChat === void 0) {
270936
+ byChat = /* @__PURE__ */ new Map();
270937
+ acquireListenersByScope.set(scope2, byChat);
270938
+ }
270939
+ const listeners3 = byChat.get(chatId) ?? /* @__PURE__ */ new Set();
270940
+ byChat.set(chatId, listeners3);
270941
+ listeners3.add(listener);
270942
+ return () => {
270943
+ listeners3.delete(listener);
270944
+ if (listeners3.size === 0 && byChat.get(chatId) === listeners3) byChat.delete(chatId);
270945
+ };
270946
+ }
270947
+ __name(onBuildLockAcquired, "onBuildLockAcquired");
270884
270948
  function releaseBuildLock(scope2, chatId, promptId) {
270885
270949
  const locks = locksFor(scope2);
270886
270950
  if (locks.get(chatId)?.promptId === promptId) locks.delete(chatId);
@@ -294664,6 +294728,18 @@ async function readGuestCredits(vctx, userId) {
294664
294728
  }
294665
294729
  __name(readGuestCredits, "readGuestCredits");
294666
294730
  async function includedCreditsOf(vctx, userId) {
294731
+ if (isGroupPrincipal(userId)) {
294732
+ const t3 = vctx.sql.tables.userSettings;
294733
+ const cell = await exception2Result(async () => {
294734
+ const row2 = await vctx.sql.db.select({ settings: t3.settings }).from(t3).where(eq(t3.userId, userId)).limit(1);
294735
+ const payer = parseArrayWarning(row2[0]?.settings ?? [], userSettingItem).filtered.find(isUserSettingGroupPayer);
294736
+ return payer?.guest === true && payer.payerUserId === userId ? payer.cell : void 0;
294737
+ });
294738
+ if (cell.isErr()) return Result.Err(cell.Err());
294739
+ const name = cell.Ok();
294740
+ const bonus = name !== void 0 && Object.hasOwn(TEXT_CELL_BONUS_CREDITS, name) ? TEXT_CELL_BONUS_CREDITS[name] : 0;
294741
+ return Result.Ok(GUEST_INCLUDED_CREDITS + bonus);
294742
+ }
294667
294743
  const row = await readGuestPrincipal(vctx, userId);
294668
294744
  if (row.isErr()) return Result.Err(row.Err());
294669
294745
  const generation = phoneGuestGenerationOf(row.Ok()?.issuanceRequestId ?? "");
@@ -294761,6 +294837,8 @@ async function writeGroupPayer(sql2, args3) {
294761
294837
  const settings = row === void 0 ? [] : parseArrayWarning(row.settings ?? [], userSettingItem).filtered;
294762
294838
  const now3 = args3.now ?? (/* @__PURE__ */ new Date()).toISOString();
294763
294839
  const claimId = crypto.randomUUID();
294840
+ const prior = settings.find(isUserSettingGroupPayer);
294841
+ const cell = args3.guest !== true ? void 0 : args3.cell ?? (prior?.guest === true && prior.payerUserId === args3.groupUserId ? prior.cell : void 0);
294764
294842
  const nextSettings = [
294765
294843
  ...settings.filter((s2) => s2.type !== "groupPayer"),
294766
294844
  {
@@ -294770,7 +294848,8 @@ async function writeGroupPayer(sql2, args3) {
294770
294848
  claimId,
294771
294849
  ...args3.asker === true ? { asker: true } : {},
294772
294850
  ...args3.guestAskerUserId === void 0 ? {} : { guestAskerUserId: args3.guestAskerUserId },
294773
- ...args3.guest === true ? { guest: true } : {}
294851
+ ...args3.guest === true ? { guest: true } : {},
294852
+ ...cell === void 0 ? {} : { cell }
294774
294853
  }
294775
294854
  ];
294776
294855
  if (row === void 0) {
@@ -356344,7 +356423,9 @@ async function setGroupPayer(vctx, args3, seams = {}) {
356344
356423
  payerUserId,
356345
356424
  ...asker ? { asker } : {},
356346
356425
  // Marks the chat a guest's one to one, which framing reads (`readGroupIsGuestChat`).
356347
- ...args3.guest === true ? { guest: true } : {}
356426
+ ...args3.guest === true ? { guest: true } : {},
356427
+ // The ad cell it came from, when that cell adds credits (vibes.diy#10397).
356428
+ ...args3.guest === true && args3.cell !== void 0 && Object.hasOwn(TEXT_CELL_BONUS_CREDITS, args3.cell) ? { cell: args3.cell } : {}
356348
356429
  }), "write")
356349
356430
  });
356350
356431
  if (written.result.isErr())
@@ -365916,7 +365997,33 @@ var PLATFORM_EGRESS_LIST = [
365916
365997
  // stay out. RetrieveOrder's path carries the order id, hence the one prefix, pinned to that
365917
365998
  // single id segment so the order's nested custom-attributes reads stay out too.
365918
365999
  { host, omitOrigin: true, pathPrefix: "/v2/orders/", singleSegment: true, methods: ["GET"] }
365919
- ])
366000
+ ]),
366001
+ // Squarespace Commerce, for a packing-station vibe that reads a shop's orders (#8762).
366002
+ // api.squarespace.com sends no Access-Control-Allow-Origin on any response (measured
366003
+ // 2026-11-20), so the parity lane can never admit it. Auth is the OWNER's API key from
366004
+ // ctx.secrets as `Authorization: Bearer <key>`, and Squarespace requires a `User-Agent`.
366005
+ // READ ONLY and endpoint-exact: the order list, one order by id, and the profiles list.
366006
+ // Kept out: fulfilment (POST .../orders/{id}/fulfillments), order import, products,
366007
+ // inventory, transactions, webhook subscriptions and every write verb. Origin is sent as
366008
+ // usual: these are GETs, and a bad-key GET answered the same with and without a foreign
366009
+ // Origin (2026-11-20). If a real key's GET is refused for its Origin, set omitOrigin here.
366010
+ { host: "api.squarespace.com", path: "/1.0/commerce/orders", methods: ["GET"] },
366011
+ { host: "api.squarespace.com", pathPrefix: "/1.0/commerce/orders/", singleSegment: true, methods: ["GET"] },
366012
+ { host: "api.squarespace.com", path: "/1.0/profiles", methods: ["GET"] },
366013
+ // Shippo, the same packing station's labels (#8762). Auth is the owner's key from
366014
+ // ctx.secrets as `Authorization: ShippoToken <key>`. A bad-token GET and the preflight both
366015
+ // came back with ACAO:* (measured 2026-11-20), the same shape as Threads, whose
366016
+ // AUTHENTICATED answers the parity lane then refused; this entry keeps the feature off
366017
+ // that bet and names the surface. READ ONLY: orders, label transactions, one parcel, the
366018
+ // saved parcel templates. Kept out: buying a label (POST /transactions/), creating orders,
366019
+ // parcels or shipments, refunds, addresses, carrier accounts, webhooks, every nested
366020
+ // per-object path, and every write verb. Shippo's documented list paths end in `/`.
366021
+ { host: "api.goshippo.com", path: "/orders/", methods: ["GET"] },
366022
+ { host: "api.goshippo.com", pathPrefix: "/orders/", singleSegment: true, methods: ["GET"] },
366023
+ { host: "api.goshippo.com", path: "/transactions/", methods: ["GET"] },
366024
+ { host: "api.goshippo.com", pathPrefix: "/transactions/", singleSegment: true, methods: ["GET"] },
366025
+ { host: "api.goshippo.com", pathPrefix: "/parcels/", singleSegment: true, methods: ["GET"] },
366026
+ { host: "api.goshippo.com", path: "/user-parcel-templates", methods: ["GET"] }
365920
366027
  ];
365921
366028
  function hostMatchesAllowEntry(host, pattern) {
365922
366029
  const h5 = host.toLowerCase();
@@ -394356,7 +394463,7 @@ function vibeSettingsToolDefinitions() {
394356
394463
  type: "function",
394357
394464
  function: {
394358
394465
  name: VIBE_SETTINGS_TOOL_NAME,
394359
- description: "Read or change who can open and use one of the person's vibes, named by ownerHandle and appSlug from list_vibes. One action per call, and every answer reports the vibe's state after it. Actions: `read` \u2014 the current publish state, posture, signed-out writes, improvement switch and secret names; `publish` \u2014 put the latest version live at its link (and bring back a vibe that was unpublished); `unpublish` \u2014 take it down from its link, keeping everything so `publish` restores it exactly; `set_posture` with `posture` \u2014 `open` (anyone with the link can use it), `gated` (anyone can look, people ask to join) or `private` (only people the owner lets in); `set_anon_write` with `on` \u2014 whether signed-out visitors' saves reach the server; `set_auto_enhance` with `on` \u2014 whether Vibes DIY may improve this app for the owner; `list_secrets` \u2014 the names of the backend's secrets (values are never shown); `remove_secret` with `key`. A secret's VALUE is the person's to type on the vibe's Settings tab; link them there rather than asking for it. Changing who can open a vibe is the person's call: do it when they ask, and say what changed.",
394466
+ description: "Read or change who can open and use one of the person's vibes, named by ownerHandle and appSlug from list_vibes. One action per call, and every answer reports the vibe's state after it. Actions: `read` \u2014 the current publish state, posture, signed-out writes, improvement switch and secret names; `publish` \u2014 put the latest version live at its link (and bring back a vibe that was unpublished); `unpublish` \u2014 take it down from its link, keeping everything so `publish` restores it exactly; its scheduled jobs pause while it is down and pick back up on `publish`; `set_posture` with `posture` \u2014 `open` (anyone with the link can use it), `gated` (anyone can look, people ask to join) or `private` (only people the owner lets in); `set_anon_write` with `on` \u2014 whether signed-out visitors' saves reach the server; `set_auto_enhance` with `on` \u2014 whether Vibes DIY may improve this app for the owner; `list_secrets` \u2014 the names of the backend's secrets (values are never shown); `remove_secret` with `key`. A secret's VALUE is the person's to type on the vibe's Settings tab; link them there rather than asking for it. Changing who can open a vibe is the person's call: do it when they ask, and say what changed.",
394360
394467
  parameters: {
394361
394468
  type: "object",
394362
394469
  properties: {
@@ -401924,6 +402031,7 @@ __name(designRepairEnabled, "designRepairEnabled");
401924
402031
  var DESIGN_REPAIR_MAX_ATTEMPTS = 2;
401925
402032
  var DESIGN_REPAIR_CALL_MS = 6e4;
401926
402033
  var DESIGN_REPAIR_JOB_MS = 135e3;
402034
+ var DESIGN_REPAIR_WATCH_MS = 3e3;
401927
402035
  var DESIGN_REPAIR_MAX_OUTPUT_TOKENS = 16e3;
401928
402036
  var FINDINGS_ASKED_MAX = 20;
401929
402037
  var modelCallOverride;
@@ -402082,6 +402190,40 @@ async function abandonReason(vctx, args3, job) {
402082
402190
  return void 0;
402083
402191
  }
402084
402192
  __name(abandonReason, "abandonReason");
402193
+ var STOPS_A_CALL = /* @__PURE__ */ new Set(["build-in-flight", "commit-staged", "head-moved"]);
402194
+ function watchDuringCall(vctx, args3, job, everyMs) {
402195
+ const abort2 = new AbortController();
402196
+ let reason;
402197
+ let stopped = false;
402198
+ let timer;
402199
+ const hit = /* @__PURE__ */ __name((why) => {
402200
+ if (stopped || reason !== void 0) return;
402201
+ reason = why;
402202
+ abort2.abort();
402203
+ }, "hit");
402204
+ const unsubscribe = onBuildLockAcquired(vctx.connections, args3.chatId, () => hit("build-in-flight"));
402205
+ const schedule = /* @__PURE__ */ __name(() => {
402206
+ timer = setTimeout(/* @__PURE__ */ __name(function watchDesignRepairCall() {
402207
+ void exception2Result(() => abandonReason(vctx, args3, job)).then((checked3) => {
402208
+ if (stopped) return;
402209
+ const why = checked3.isOk() ? checked3.Ok() : void 0;
402210
+ if (why !== void 0 && STOPS_A_CALL.has(why)) hit(why);
402211
+ else schedule();
402212
+ });
402213
+ }, "watchDesignRepairCall"), everyMs);
402214
+ }, "schedule");
402215
+ schedule();
402216
+ return {
402217
+ signal: abort2.signal,
402218
+ reason: /* @__PURE__ */ __name(() => reason, "reason"),
402219
+ stop: /* @__PURE__ */ __name(() => {
402220
+ stopped = true;
402221
+ clearTimeout(timer);
402222
+ unsubscribe();
402223
+ }, "stop")
402224
+ };
402225
+ }
402226
+ __name(watchDuringCall, "watchDuringCall");
402085
402227
  function callUnderJob(call2, job) {
402086
402228
  return (req2) => {
402087
402229
  const both = new AbortController();
@@ -402111,8 +402253,10 @@ async function runDesignRepair(vctx, args3) {
402111
402253
  const jobTimer = setTimeout(/* @__PURE__ */ __name(function expireJob() {
402112
402254
  job.abort();
402113
402255
  }, "expireJob"), args3.jobMs ?? DESIGN_REPAIR_JOB_MS);
402114
- const call2 = callUnderJob(args3.callModel ?? repairModelCallFor(vctx), job.signal);
402256
+ const baseCall = args3.callModel ?? repairModelCallFor(vctx);
402257
+ const watchMs = args3.watchMs ?? DESIGN_REPAIR_WATCH_MS;
402115
402258
  let attempts = 0;
402259
+ let stoppedMidCall = false;
402116
402260
  let after;
402117
402261
  const identityKinds = /* @__PURE__ */ new Set();
402118
402262
  const end = /* @__PURE__ */ __name((outcome, reason, fsId) => ({
@@ -402124,7 +402268,8 @@ async function runDesignRepair(vctx, args3) {
402124
402268
  callMs: callDurations,
402125
402269
  ...after === void 0 ? {} : { after },
402126
402270
  ...fsId === void 0 ? {} : { fsId },
402127
- ...identityKinds.size === 0 ? {} : { identityRefusals: [...identityKinds] }
402271
+ ...identityKinds.size === 0 ? {} : { identityRefusals: [...identityKinds] },
402272
+ ...stoppedMidCall ? { stoppedMidCall: true } : {}
402128
402273
  }), "end");
402129
402274
  try {
402130
402275
  if (args3.findings.length === 0) return end("failed", "no-findings");
@@ -402147,8 +402292,17 @@ async function runDesignRepair(vctx, args3) {
402147
402292
  attempts = attempt;
402148
402293
  const last = attempt === maxAttempts;
402149
402294
  const callStartedAt = Date.now();
402150
- const answer14 = await callWithDeadline(call2, { model, messages, maxTokens: DESIGN_REPAIR_MAX_OUTPUT_TOKENS }, callMs);
402295
+ const watch = watchDuringCall(vctx, args3, job.signal, watchMs);
402296
+ const call2 = callUnderJob(baseCall, AbortSignal.any([job.signal, watch.signal]));
402297
+ const answer14 = await callWithDeadline(call2, { model, messages, maxTokens: DESIGN_REPAIR_MAX_OUTPUT_TOKENS }, callMs).finally(
402298
+ watch.stop
402299
+ );
402151
402300
  callDurations.push(Date.now() - callStartedAt);
402301
+ const stoppedBy = watch.reason();
402302
+ if (stoppedBy !== void 0) {
402303
+ stoppedMidCall = true;
402304
+ return end("abandoned", stoppedBy);
402305
+ }
402152
402306
  if (job.signal.aborted) return end("abandoned", "deadline");
402153
402307
  if (answer14.timedOut) return end("failed", "timeout");
402154
402308
  if (answer14.reply.isErr()) {
@@ -405540,6 +405694,60 @@ var appTickRearmEvento = {
405540
405694
  }
405541
405695
  )
405542
405696
  };
405697
+ var appTickAtEvento = {
405698
+ hash: "app-tick-at",
405699
+ validate: unwrapMsgBase(async (msg) => {
405700
+ const ret = reqAppTickAt(msg.payload);
405701
+ if (ret instanceof type.errors) {
405702
+ return Result.Ok(Option.None());
405703
+ }
405704
+ return Result.Ok(Option.Some({ ...msg, payload: ret }));
405705
+ }),
405706
+ handle: checkAuth(
405707
+ async (ctx) => {
405708
+ const req2 = ctx.validated.payload;
405709
+ const vctx = ctx.ctx.getOrThrow("vibesApiCtx");
405710
+ const userId = req2._auth.verifiedAuth.claims.userId;
405711
+ if (!await authorized2(vctx, { ownerHandle: req2.ownerHandle, appSlug: req2.appSlug, userId, op: "tick-at" })) {
405712
+ await ctx.send.send(ctx, denialError2(req2.ownerHandle, req2.appSlug));
405713
+ return Result.Ok(EventoResult.Continue);
405714
+ }
405715
+ const atMs = Date.parse(req2.at);
405716
+ if (!Number.isFinite(atMs)) {
405717
+ await ctx.send.send(ctx, {
405718
+ type: "vibes.diy.res-error",
405719
+ error: {
405720
+ message: `"${req2.at.slice(0, 80)}" is not a date and time; pass an ISO instant such as 2026-11-26T21:05:00-08:00`,
405721
+ code: "app-tick-bad-at"
405722
+ }
405723
+ });
405724
+ return Result.Ok(EventoResult.Continue);
405725
+ }
405726
+ const cp3 = vctx.backendControlPlane;
405727
+ const tickAt = cp3?.tickAt?.bind(cp3);
405728
+ if (tickAt === void 0) {
405729
+ await ctx.send.send(ctx, unavailableError2("a jumped tick is not available in this environment"));
405730
+ return Result.Ok(EventoResult.Continue);
405731
+ }
405732
+ const rRun = await tickAt(req2.ownerHandle, req2.appSlug, new Date(atMs).toISOString());
405733
+ if (rRun.isErr()) {
405734
+ await ctx.send.send(ctx, unavailableError2(`jumped tick failed: ${rRun.Err().message}`));
405735
+ return Result.Ok(EventoResult.Continue);
405736
+ }
405737
+ const run = rRun.Ok();
405738
+ await ctx.send.send(ctx, {
405739
+ type: "vibes.diy.res-app-tick-at",
405740
+ ownerHandle: req2.ownerHandle,
405741
+ appSlug: req2.appSlug,
405742
+ scheduledTime: run.scheduledTime,
405743
+ ran: run.ran,
405744
+ ...run.reason === void 0 ? {} : { reason: run.reason },
405745
+ ...run.detail === void 0 ? {} : { detail: run.detail }
405746
+ });
405747
+ return Result.Ok(EventoResult.Continue);
405748
+ }
405749
+ )
405750
+ };
405543
405751
  var appTickDisarmEvento = {
405544
405752
  hash: "app-tick-disarm",
405545
405753
  validate: unwrapMsgBase(async (msg) => {
@@ -417518,6 +417726,8 @@ var handlerManifest = [
417518
417726
  entry("vibes.diy.req-request-app-clip-card", requestAppClipCardEvento),
417519
417727
  // Pause the timer without publishing a schedule-free release (X5).
417520
417728
  entry("vibes.diy.req-app-tick-disarm", appTickDisarmEvento),
417729
+ // The week jump (#10370): one owner-gated run at a chosen scheduledTime.
417730
+ entry("vibes.diy.req-app-tick-at", appTickAtEvento),
417521
417731
  entry("vibes.diy.req-app-logs", appLogsEvento),
417522
417732
  entry("vibes.diy.req-app-owner-stats", appOwnerStatsEvento),
417523
417733
  // The Edit card's check row (#9245): the no-model checks on one saved version.
@@ -418535,6 +418745,10 @@ async function attemptBackendScheduled(vctx, input3) {
418535
418745
  if (!loaded.ok || !loaded.parsed.handlers.includes("scheduled")) {
418536
418746
  return { ran: false, reason: "no_schedule" };
418537
418747
  }
418748
+ if (await appUnpublished(vctx, input3)) {
418749
+ vctx.logger.Info().Str("lane", "scheduled").Str("vibe", `${input3.ownerHandle}/${input3.appSlug}`).Msg("backend_skipped_app_unpublished");
418750
+ return { ran: false, reason: "app_unpublished" };
418751
+ }
418538
418752
  if (await servesNeutralPage(vctx, { ownerUserId: loaded.ownerUserId })) {
418539
418753
  vctx.logger.Info().Str("lane", "scheduled").Str("vibe", `${input3.ownerHandle}/${input3.appSlug}`).Msg("backend_skipped_account_suspended");
418540
418754
  return { ran: false, reason: "account_suspended" };
@@ -418632,6 +418846,15 @@ async function attemptBackendScheduled(vctx, input3) {
418632
418846
  return { ran: true };
418633
418847
  }
418634
418848
  __name(attemptBackendScheduled, "attemptBackendScheduled");
418849
+ async function appUnpublished(vctx, input3) {
418850
+ const r2 = await exception2Result(() => getUnpublishedAt(vctx, input3));
418851
+ if (r2.isErr()) {
418852
+ vctx.logger.Warn().Err(r2.Err()).Str("lane", "scheduled").Msg("unpublish read failed; running the tick");
418853
+ return false;
418854
+ }
418855
+ return r2.Ok().length > 0;
418856
+ }
418857
+ __name(appUnpublished, "appUnpublished");
418635
418858
 
418636
418859
  // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/attempt-backend-onchange.ts
418637
418860
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
@@ -419377,6 +419600,8 @@ var BackendDO = class {
419377
419600
  // In-memory single-flight guard for the `scheduled` lane. CF runs one `alarm()`
419378
419601
  // at a time per DO; this guards the await-interleaved edge / a manual re-entry.
419379
419602
  ticking = false;
419603
+ /** A jumped tick (#10370) is running. Its own flag: a jump never claims the real tick's single-flight. */
419604
+ jumping = false;
419380
419605
  // Per-DO QuickJS module + access.js source caches for the local access-fn invoker
419381
419606
  // (#2856 B6). A backend `ctx.db` write re-enters the same production put gate,
419382
419607
  // which calls `vctx.invokeAccessFn` (QuickJS) — so the BackendDO must supply it,
@@ -419537,6 +419762,7 @@ var BackendDO = class {
419537
419762
  if (lane.op === BACKEND_OP_ARM) return this.arm(request, lane.ownerHandle, lane.appSlug);
419538
419763
  if (lane.op === BACKEND_OP_DISARM) return this.disarm(request);
419539
419764
  if (lane.op === BACKEND_OP_STATUS) return this.tickStatus(lane.ownerHandle, lane.appSlug);
419765
+ if (lane.op === BACKEND_OP_TICK_AT) return this.tickAt(request, lane.ownerHandle, lane.appSlug);
419540
419766
  if (lane.op === BACKEND_OP_CLIENT_LOG) return this.ingestClientLog(request, lane.ownerHandle, lane.appSlug);
419541
419767
  if (lane.op === BACKEND_OP_TOOL) return this.invokeTool(request, lane.ownerHandle, lane.appSlug);
419542
419768
  return this.invokeOnChange(request, lane.ownerHandle, lane.appSlug);
@@ -420056,25 +420282,7 @@ var BackendDO = class {
420056
420282
  this.beginInvocation(stored.ownerHandle, stored.appSlug, "scheduled");
420057
420283
  let outcome;
420058
420284
  try {
420059
- outcome = await attemptBackendScheduled(vctx, {
420060
- ownerHandle: stored.ownerHandle,
420061
- appSlug: stored.appSlug,
420062
- scheduledTime: nowIso2,
420063
- backendJs: this.env.BACKEND_JS,
420064
- loader: this.env.LOADER,
420065
- dbFetcher: this.selfStub(stored.ownerHandle, stored.appSlug),
420066
- logRate: this.logRate,
420067
- logIdLatch: this.logIdLatch,
420068
- githubApp: this.githubApp(),
420069
- // ctx.stripe (#7731): the env the platform Stripe keys are read from;
420070
- // an unprovisioned plane makes every call refuse `not_available`.
420071
- stripeEnv: this.env,
420072
- // ctx.youtube: the platform key's env and this vibe's daily meter.
420073
- youtubeEnv: this.env,
420074
- youtubeBudget: this.youtubeBudget(),
420075
- connectionsEnv: this.env,
420076
- policyVersion: this.policyVersion()
420077
- });
420285
+ outcome = await attemptBackendScheduled(vctx, this.scheduledInput(stored.ownerHandle, stored.appSlug, nowIso2));
420078
420286
  } finally {
420079
420287
  this.endInvocation();
420080
420288
  }
@@ -420088,7 +420296,7 @@ var BackendDO = class {
420088
420296
  await this.state.storage.deleteAlarm();
420089
420297
  return;
420090
420298
  }
420091
- if (!outcome.ran && (outcome.reason === "backend_disabled" || outcome.reason === "account_suspended")) {
420299
+ if (!outcome.ran && (outcome.reason === "backend_disabled" || outcome.reason === "account_suspended" || outcome.reason === "app_unpublished")) {
420092
420300
  await this.state.storage.setAlarm(now3 + intervalMs);
420093
420301
  await this.state.storage.put(ALARM_STATE_KEY, { ...current2, lastAttemptAt: nowIso2 });
420094
420302
  return;
@@ -420107,6 +420315,92 @@ var BackendDO = class {
420107
420315
  const next3 = outcome.ran ? base2 : { ...base2, lastErrorAt: nowIso2, lastError: outcome.detail ?? outcome.reason };
420108
420316
  await this.state.storage.put(ALARM_STATE_KEY, next3);
420109
420317
  }
420318
+ /** The `scheduled` invocation's input, shared by the real tick and a jumped one (#10370). */
420319
+ scheduledInput(ownerHandle, appSlug, scheduledTime) {
420320
+ return {
420321
+ ownerHandle,
420322
+ appSlug,
420323
+ scheduledTime,
420324
+ backendJs: this.env.BACKEND_JS,
420325
+ loader: this.env.LOADER,
420326
+ dbFetcher: this.selfStub(ownerHandle, appSlug),
420327
+ logRate: this.logRate,
420328
+ logIdLatch: this.logIdLatch,
420329
+ githubApp: this.githubApp(),
420330
+ // ctx.stripe (#7731): the env the platform Stripe keys are read from;
420331
+ // an unprovisioned plane makes every call refuse `not_available`.
420332
+ stripeEnv: this.env,
420333
+ // ctx.youtube: the platform key's env and this vibe's daily meter.
420334
+ youtubeEnv: this.env,
420335
+ youtubeBudget: this.youtubeBudget(),
420336
+ connectionsEnv: this.env,
420337
+ policyVersion: this.policyVersion()
420338
+ };
420339
+ }
420340
+ /**
420341
+ * The week jump (#10370): run the live release's `scheduled` handler ONCE with
420342
+ * `event.scheduledTime` set to the instant the caller chose, and answer its
420343
+ * outcome as JSON.
420344
+ *
420345
+ * It writes nothing to this DO's storage, on every path. The real alarm, the
420346
+ * stored cadence, `attempt`, `lastRunAt` and the stop record come out exactly as
420347
+ * they went in, so `app status` after a jump reads what it read before. In
420348
+ * particular a `no_schedule` outcome (no `scheduled` export, or the owner's
420349
+ * pause) disarms nothing here, unlike the real tick: a jump is a probe, not
420350
+ * the schedule's own run, and `arm` stays the only path that changes timers.
420351
+ *
420352
+ * Never overlaps the real tick: while one is in flight the jump answers 409,
420353
+ * and so does a second jump while one runs. A real alarm that fires during a
420354
+ * jump is not delayed or skipped (its schedule is the thing this op promises
420355
+ * to leave alone), so the two can overlap in that window.
420356
+ */
420357
+ async tickAt(request, ownerHandle, appSlug) {
420358
+ const at5 = request.headers.get(BACKEND_TICK_AT_HEADER) ?? "";
420359
+ const atMs = Date.parse(at5);
420360
+ if (at5 === "" || !Number.isFinite(atMs)) {
420361
+ return new Response("backend tickat: the instant does not parse as an ISO date", { status: 400 });
420362
+ }
420363
+ if (this.ticking || this.jumping) {
420364
+ return new Response("backend tickat: a scheduled run is in flight, try again in a moment", { status: 409 });
420365
+ }
420366
+ const scheduledTime = new Date(atMs).toISOString();
420367
+ this.jumping = true;
420368
+ try {
420369
+ const rOutcome = await exception2Result(
420370
+ () => this.runScheduledAt(request, ownerHandle, appSlug, scheduledTime)
420371
+ );
420372
+ if (rOutcome.isErr()) {
420373
+ return new Response(`backend tickat: ${boundedError(rOutcome.Err())}`, { status: 500 });
420374
+ }
420375
+ const outcome = rOutcome.Ok();
420376
+ const body = outcome.ran ? { ran: true, scheduledTime } : {
420377
+ ran: false,
420378
+ reason: outcome.reason,
420379
+ ...outcome.detail === void 0 ? {} : { detail: outcome.detail },
420380
+ scheduledTime
420381
+ };
420382
+ return new Response(JSON.stringify(body), {
420383
+ status: 200,
420384
+ headers: { "content-type": "application/json", [BACKEND_TICK_AT_HEADER]: scheduledTime }
420385
+ });
420386
+ } finally {
420387
+ this.jumping = false;
420388
+ }
420389
+ }
420390
+ /**
420391
+ * One `scheduled` invocation at `scheduledTime`, with no schedule bookkeeping.
420392
+ * `protected` (like `runTick`) so the jump's no-storage-write invariant is
420393
+ * pinned by a real subclass rather than by mocking the class's own methods.
420394
+ */
420395
+ async runScheduledAt(request, ownerHandle, appSlug, scheduledTime) {
420396
+ const vctx = await this.buildVctx(request);
420397
+ this.beginInvocation(ownerHandle, appSlug, "scheduled");
420398
+ try {
420399
+ return await attemptBackendScheduled(vctx, this.scheduledInput(ownerHandle, appSlug, scheduledTime));
420400
+ } finally {
420401
+ this.endInvocation();
420402
+ }
420403
+ }
420110
420404
  /**
420111
420405
  * Tick liveness for one vibe (#4505) — the read behind `vibes-diy app status`.
420112
420406
  *