@tangle-network/agent-app 0.60.63 → 0.60.65
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/dist/{DesignCanvasEditor-3DL3PF6P.js → DesignCanvasEditor-UOOPYYYR.js} +3 -3
- package/dist/VaultPane-XUAGL5SP.js +7 -0
- package/dist/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/assistant/index.js +5 -4
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.js +1 -1
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-FAU5FIFD.js → chunk-2FLSODOX.js} +3 -2
- package/dist/chunk-2FLSODOX.js.map +1 -0
- package/dist/{chunk-J2O76TTS.js → chunk-7UB4K2R2.js} +27 -15
- package/dist/{chunk-J2O76TTS.js.map → chunk-7UB4K2R2.js.map} +1 -1
- package/dist/{chunk-T2IESIJ7.js → chunk-BMZTYGKE.js} +2 -2
- package/dist/{chunk-N7ZJWESQ.js → chunk-KBTY4AAU.js} +274 -4
- package/dist/chunk-KBTY4AAU.js.map +1 -0
- package/dist/{chunk-S2G5NAWV.js → chunk-KSITU6BQ.js} +4 -4
- package/dist/{chunk-CN5HNTU6.js → chunk-NRG2YHGY.js} +2 -2
- package/dist/{chunk-GNA5I5NM.js → chunk-ORFRFCXQ.js} +53 -22
- package/dist/chunk-ORFRFCXQ.js.map +1 -0
- package/dist/{chunk-O3ZM5QPC.js → chunk-OUW5AI2G.js} +4 -4
- package/dist/chunk-OUW5AI2G.js.map +1 -0
- package/dist/{chunk-M36GXE2W.js → chunk-QXKKS3I4.js} +3 -3
- package/dist/{chunk-Y6LE5CAW.js → chunk-RYUTKTOR.js} +20 -13
- package/dist/chunk-RYUTKTOR.js.map +1 -0
- package/dist/{chunk-QBNV6BJ4.js → chunk-ST3ARHJH.js} +3 -2
- package/dist/chunk-ST3ARHJH.js.map +1 -0
- package/dist/{chunk-4DIO2LTR.js → chunk-TMOYOMSW.js} +5 -5
- package/dist/{chunk-4DIO2LTR.js.map → chunk-TMOYOMSW.js.map} +1 -1
- package/dist/{chunk-J7TCMW2J.js → chunk-XMIV374H.js} +2 -2
- package/dist/{chunk-XCBDWT5H.js → chunk-Z362IHYL.js} +2 -2
- package/dist/{chunk-VUXCM5ZO.js → chunk-ZZACC24K.js} +1 -1
- package/dist/{chunk-VUXCM5ZO.js.map → chunk-ZZACC24K.js.map} +1 -1
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/launch-invariants/cli.js +2 -2
- package/dist/launch-invariants/index.js +1 -1
- package/dist/launch-invariants/testing.js +2 -2
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/sandbox/index.js +4 -4
- package/dist/signoff/cli.js +7 -2
- package/dist/signoff/cli.js.map +1 -1
- package/dist/signoff/index.d.ts +2 -0
- package/dist/signoff/index.js +15 -1
- package/dist/signoff/shell-alignment-cli.d.ts +8 -0
- package/dist/signoff/shell-alignment.d.ts +82 -0
- package/dist/studio-react/index.js +1 -1
- package/dist/theme/brand.generated.d.ts +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.css +7 -2
- package/dist/tools/index.js +4 -4
- package/dist/vault/index.js +1 -1
- package/dist/vault/lazy.js +1 -1
- package/dist/web-react/index.d.ts +1 -1
- package/dist/web-react/index.js +7 -3
- package/dist/web-react/lazy-load-boundary.d.ts +19 -1
- package/dist/work-product/index.js +2 -2
- package/dist/workspace-export/index.js +30 -9
- package/dist/workspace-export/index.js.map +1 -1
- package/dist/workspace-export/react.js +14 -5
- package/dist/workspace-export/react.js.map +1 -1
- package/package.json +11 -11
- package/dist/VaultPane-A2RGT5PI.js +0 -7
- package/dist/chunk-FAU5FIFD.js.map +0 -1
- package/dist/chunk-GNA5I5NM.js.map +0 -1
- package/dist/chunk-N7ZJWESQ.js.map +0 -1
- package/dist/chunk-O3ZM5QPC.js.map +0 -1
- package/dist/chunk-QBNV6BJ4.js.map +0 -1
- package/dist/chunk-Y6LE5CAW.js.map +0 -1
- /package/dist/{DesignCanvasEditor-3DL3PF6P.js.map → DesignCanvasEditor-UOOPYYYR.js.map} +0 -0
- /package/dist/{VaultPane-A2RGT5PI.js.map → VaultPane-XUAGL5SP.js.map} +0 -0
- /package/dist/{chunk-T2IESIJ7.js.map → chunk-BMZTYGKE.js.map} +0 -0
- /package/dist/{chunk-S2G5NAWV.js.map → chunk-KSITU6BQ.js.map} +0 -0
- /package/dist/{chunk-CN5HNTU6.js.map → chunk-NRG2YHGY.js.map} +0 -0
- /package/dist/{chunk-M36GXE2W.js.map → chunk-QXKKS3I4.js.map} +0 -0
- /package/dist/{chunk-J7TCMW2J.js.map → chunk-XMIV374H.js.map} +0 -0
- /package/dist/{chunk-XCBDWT5H.js.map → chunk-Z362IHYL.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError,
|
|
3
3
|
validateOpenUIJsonNode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TMOYOMSW.js";
|
|
5
5
|
|
|
6
6
|
// src/tools/render-ui-schema.ts
|
|
7
7
|
function assertRenderUiSchema(value) {
|
|
@@ -14,4 +14,4 @@ function assertRenderUiSchema(value) {
|
|
|
14
14
|
export {
|
|
15
15
|
assertRenderUiSchema
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-XMIV374H.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-DKHM4B4A.js";
|
|
8
8
|
import {
|
|
9
9
|
lightTheme
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZZACC24K.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_INSERT_TEMPLATES,
|
|
13
13
|
collectGridTargets,
|
|
@@ -1937,4 +1937,4 @@ export {
|
|
|
1937
1937
|
Workspace,
|
|
1938
1938
|
DesignCanvasEditor
|
|
1939
1939
|
};
|
|
1940
|
-
//# sourceMappingURL=chunk-
|
|
1940
|
+
//# sourceMappingURL=chunk-Z362IHYL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/brand.generated.ts","../src/theme/theme.ts"],"sourcesContent":["/** GENERATED from @tangle-network/brand/styles/legacy-light.css\n * SHA-256: cbb8fe7d4441db729bc299cdcecc165a519d0dfe29930b11ade7feb5070007f4\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"223 23% 94%\",\n \"foreground\": \"0 0% 17.6471%\",\n \"card\": \"0 0% 100%\",\n \"cardForeground\": \"0 0% 17.6471%\",\n \"popover\": \"0 0% 100%\",\n \"popoverForeground\": \"0 0% 17.6471%\",\n \"primary\": \"243.2787 80.6167% 55.4902%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"230 27% 96%\",\n \"secondaryForeground\": \"0 0% 17.6471%\",\n \"muted\": \"230 27% 96%\",\n \"mutedForeground\": \"0 0% 29.8039%\",\n \"accent\": \"230 27% 96%\",\n \"accentForeground\": \"0 0% 17.6471%\",\n \"destructive\": \"0 73.7089% 41.7647%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"244 16% 81%\",\n \"input\": \"0 0% 29.8039%\",\n \"ring\": \"246 54% 51%\",\n \"success\": \"162.931 93.5484% 24.3137%\",\n \"warning\": \"41 96% 50%\",\n \"successForeground\": \"0 0% 100%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"25.9259 90% 35.2941%\",\n \"inputFill\": \"hsl(225 29% 97%)\",\n \"canvasBackdrop\": \"#dcdee6\",\n \"borderSoft\": \"rgba(0, 0, 0, 0.10)\",\n \"cardEdge\": \"rgba(0, 0, 0, 0.14)\",\n \"canvasRender\": {\n \"grid\": \"#c7c6d6\",\n \"snapGrid\": \"#787878\",\n \"snapGuide\": \"#0369a1\",\n \"snapPage\": \"#ab4f09\",\n \"snapElement\": \"#b91c1c\",\n \"selectionStroke\": \"#3c32e9\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f6f7fa\",\n \"placeholderStroke\": \"#c7c6d6\",\n \"brokenFill\": \"#f1f2f7\",\n \"brokenStroke\": \"#787878\"\n }\n },\n \"dark\": {\n \"background\": \"240 33% 6%\",\n \"foreground\": \"0 0% 90.1961%\",\n \"card\": \"244 23% 12%\",\n \"cardForeground\": \"0 0% 90.1961%\",\n \"popover\": \"247 23% 21%\",\n \"popoverForeground\": \"0 0% 90.1961%\",\n \"primary\": \"229.6552 93.5484% 81.7647%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"249 24% 16%\",\n \"secondaryForeground\": \"0 0% 90.1961%\",\n \"muted\": \"249 24% 16%\",\n \"mutedForeground\": \"240 5% 68%\",\n \"accent\": \"249 24% 16%\",\n \"accentForeground\": \"0 0% 90.1961%\",\n \"destructive\": \"2.7907 100% 83.1373%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"243 20% 20%\",\n \"input\": \"240 5% 68%\",\n \"ring\": \"233 100% 87%\",\n \"success\": \"154.7107 60.199% 60.5882%\",\n \"warning\": \"40 94% 56%\",\n \"successForeground\": \"0 0% 0%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"41.4545 88.2353% 63.3333%\",\n \"inputFill\": \"hsl(244 29% 9%)\",\n \"canvasBackdrop\": \"#060610\",\n \"borderSoft\": \"rgba(255, 255, 255, 0.10)\",\n \"cardEdge\": \"rgba(255, 255, 255, 0.16)\",\n \"canvasRender\": {\n \"grid\": \"#2a293d\",\n \"snapGrid\": \"#8e8e8e\",\n \"snapGuide\": \"#67cdff\",\n \"snapPage\": \"#f4c14f\",\n \"snapElement\": \"#ffada9\",\n \"selectionStroke\": \"#a5b4fc\",\n \"selectionAnchorFill\": \"#232238\",\n \"placeholderFill\": \"#12111f\",\n \"placeholderStroke\": \"#2a293d\",\n \"brokenFill\": \"#221f33\",\n \"brokenStroke\": \"#8e8e8e\"\n }\n }\n} as const\n","/** Brand-derived HSL compatibility and bitmap snapshots. Regenerate with src/theme/build.mjs; never author a second palette here. */\nimport { brandThemes } from './brand.generated'\n\nexport interface AgentAppTheme {\n background: string\n foreground: string\n card: string\n cardForeground: string\n popover: string\n popoverForeground: string\n primary: string\n primaryForeground: string\n secondary: string\n secondaryForeground: string\n muted: string\n mutedForeground: string\n accent: string\n accentForeground: string\n destructive: string\n destructiveForeground: string\n border: string\n input: string\n /** Full field fill, distinct from the input border. Optional for existing custom themes. */\n inputFill?: string\n ring: string\n success: string\n successForeground: string\n warning: string\n warningForeground: string\n /**\n * Warning as TEXT on a warning-TINTED surface, as a channel triple. Optional\n * so a consumer's existing `AgentAppTheme` literal still type-checks;\n * {@link themeToCssVars} falls back to `warningForeground`, which is what the\n * surface used before this token existed.\n */\n warningStrong?: string\n /** Full CSS color (not a triple) — the canvas/scene backdrop. */\n canvasBackdrop: string\n /**\n * Border tiers as FULL CSS colors (they are `color-mix()` results, not\n * triples). Optional so a consumer's existing `AgentAppTheme` literal still\n * type-checks; {@link themeToCssVars} falls back to full-strength\n * `hsl(var(--border))`, which can never erase an edge.\n */\n borderSoft?: string\n /** @see borderSoft */\n cardEdge?: string\n /** Konva render palette — full hex colors the bitmap canvas paints with\n * (it cannot resolve `var(--…)`). NOT emitted by themeToCssVars. */\n canvasRender: CanvasRenderPalette\n}\n\n/**\n * Colors the Konva design-canvas paints directly. Konva renders to a bitmap\n * and cannot read CSS custom properties, so these are full hex strings sourced\n * from the active theme and threaded through the canvas components.\n */\nexport interface CanvasRenderPalette {\n /** Grid line color (GridLayer). */\n grid: string\n /** Grid-snap guide line (SnapGuidesOverlay, kind 'grid'). */\n snapGrid: string\n /** Saved ruler-guide snap line (kind 'guide'). */\n snapGuide: string\n /** Page edge/center snap line (kinds 'page-edge'/'page-center'). */\n snapPage: string\n /** Element edge/center snap line (kinds 'element-edge'/'element-center'). */\n snapElement: string\n /** Transformer border + anchor stroke (SelectionLayer). */\n selectionStroke: string\n /** Transformer anchor fill (SelectionLayer). */\n selectionAnchorFill: string\n /** Video placeholder fill (ElementNode VideoNode). */\n placeholderFill: string\n /** Video placeholder stroke (ElementNode VideoNode). */\n placeholderStroke: string\n /** Broken/loading image placeholder fill (ElementNode ImageNode). */\n brokenFill: string\n /** Broken/loading image placeholder stroke (ElementNode ImageNode). */\n brokenStroke: string\n}\n\n/** Define a light color theme with specific background, foreground, and accent color values */\nexport const lightTheme: AgentAppTheme = brandThemes.light\n\n/** Canonical Brand dark values projected for legacy JS and bitmap callers. */\nexport const darkTheme: AgentAppTheme = brandThemes.dark\n\n/**\n * Wrap a channel triple in `hsl()`; pass through values already in a color form.\n * `oklch(…)` / `oklab(…)` / `color-mix(…)` are recognised because the ramp is\n * authored in oklch and the border tiers are colour mixes — wrapping either in\n * `hsl()` yields an invalid colour that paints as nothing.\n */\nexport function themeColor(value: string): string {\n return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`\n}\n\n/**\n * Map a theme to the full CSS-variable set (shadcn triples + canvas/sequences\n * aliases + canvas surface). Apply at runtime to scope a theme without loading\n * tokens.css: `Object.assign(el.style, themeToCssVars(darkTheme))`.\n */\nexport function themeToCssVars(theme: AgentAppTheme): Record<string, string> {\n return {\n '--background': theme.background,\n '--foreground': theme.foreground,\n '--card': theme.card,\n '--card-foreground': theme.cardForeground,\n '--popover': theme.popover,\n '--popover-foreground': theme.popoverForeground,\n '--primary': theme.primary,\n '--primary-foreground': theme.primaryForeground,\n '--secondary': theme.secondary,\n '--secondary-foreground': theme.secondaryForeground,\n '--muted': theme.muted,\n '--muted-foreground': theme.mutedForeground,\n '--accent': theme.accent,\n '--accent-foreground': theme.accentForeground,\n '--destructive': theme.destructive,\n '--destructive-foreground': theme.destructiveForeground,\n '--border': theme.border,\n '--input': theme.input,\n '--ring': theme.ring,\n '--success': theme.success,\n '--success-foreground': theme.successForeground,\n '--warning': theme.warning,\n '--warning-foreground': theme.warningForeground,\n // Falls back to the pairing the tinted surfaces used before this token\n // existed, so an unset value restores the previous look rather than an\n // unthemed one.\n '--warning-strong': theme.warningStrong ?? theme.warningForeground,\n '--bg-input': theme.inputFill ?? `hsl(${theme.card})`,\n '--text-primary': `hsl(${theme.foreground})`,\n '--text-secondary': `hsl(${theme.secondaryForeground})`,\n '--text-muted': `hsl(${theme.mutedForeground})`,\n '--text-danger': `hsl(${theme.destructive})`,\n '--text-warning': `hsl(${theme.warningStrong ?? theme.warningForeground})`,\n '--border-default': `hsl(${theme.border})`,\n '--brand-primary': `hsl(${theme.primary})`,\n '--editor-selection-background': `hsl(${theme.primary})`,\n '--editor-selection-foreground': `hsl(${theme.primaryForeground})`,\n '--canvas-backdrop': theme.canvasBackdrop,\n // Full strength is the safe default: an unset tier can under-draw an edge,\n // never erase one.\n '--border-soft': theme.borderSoft ?? `hsl(${theme.border})`,\n '--card-edge': theme.cardEdge ?? `hsl(${theme.border})`,\n }\n}\n"],"mappings":";AAGO,IAAM,cAAc;AAAA,EACzB,SAAS;AAAA,IACP,cAAc;AAAA,IACd,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,uBAAuB;AAAA,IACvB,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf,yBAAyB;AAAA,IACzB,UAAU;AAAA,IACV,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,cAAc;AAAA,IACd,Y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
+
{"version":3,"sources":["../src/theme/brand.generated.ts","../src/theme/theme.ts"],"sourcesContent":["/** GENERATED from @tangle-network/brand/styles/legacy-light.css\n * SHA-256: 3e234bf78f67517f5541305f7657f577aef8fd53a0208154a7916d64951c299e\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"223 23% 94%\",\n \"foreground\": \"0 0% 17.6471%\",\n \"card\": \"0 0% 100%\",\n \"cardForeground\": \"0 0% 17.6471%\",\n \"popover\": \"0 0% 100%\",\n \"popoverForeground\": \"0 0% 17.6471%\",\n \"primary\": \"243.2787 80.6167% 55.4902%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"230 27% 96%\",\n \"secondaryForeground\": \"0 0% 17.6471%\",\n \"muted\": \"230 27% 96%\",\n \"mutedForeground\": \"0 0% 29.8039%\",\n \"accent\": \"230 27% 96%\",\n \"accentForeground\": \"0 0% 17.6471%\",\n \"destructive\": \"0 73.7089% 41.7647%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"244 16% 81%\",\n \"input\": \"0 0% 29.8039%\",\n \"ring\": \"246 54% 51%\",\n \"success\": \"162.931 93.5484% 24.3137%\",\n \"warning\": \"41 96% 50%\",\n \"successForeground\": \"0 0% 100%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"25.9259 90% 35.2941%\",\n \"inputFill\": \"hsl(225 29% 97%)\",\n \"canvasBackdrop\": \"#dcdee6\",\n \"borderSoft\": \"rgba(0, 0, 0, 0.10)\",\n \"cardEdge\": \"rgba(0, 0, 0, 0.14)\",\n \"canvasRender\": {\n \"grid\": \"#c7c6d6\",\n \"snapGrid\": \"#787878\",\n \"snapGuide\": \"#0369a1\",\n \"snapPage\": \"#ab4f09\",\n \"snapElement\": \"#b91c1c\",\n \"selectionStroke\": \"#3c32e9\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f6f7fa\",\n \"placeholderStroke\": \"#c7c6d6\",\n \"brokenFill\": \"#f1f2f7\",\n \"brokenStroke\": \"#787878\"\n }\n },\n \"dark\": {\n \"background\": \"240 33% 6%\",\n \"foreground\": \"0 0% 90.1961%\",\n \"card\": \"244 23% 12%\",\n \"cardForeground\": \"0 0% 90.1961%\",\n \"popover\": \"247 23% 21%\",\n \"popoverForeground\": \"0 0% 90.1961%\",\n \"primary\": \"229.6552 93.5484% 81.7647%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"249 24% 16%\",\n \"secondaryForeground\": \"0 0% 90.1961%\",\n \"muted\": \"249 24% 16%\",\n \"mutedForeground\": \"240 5% 68%\",\n \"accent\": \"249 24% 16%\",\n \"accentForeground\": \"0 0% 90.1961%\",\n \"destructive\": \"2.7907 100% 83.1373%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"243 20% 20%\",\n \"input\": \"240 5% 68%\",\n \"ring\": \"233 100% 87%\",\n \"success\": \"154.7107 60.199% 60.5882%\",\n \"warning\": \"40 94% 56%\",\n \"successForeground\": \"0 0% 0%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"41.4545 88.2353% 63.3333%\",\n \"inputFill\": \"hsl(244 29% 9%)\",\n \"canvasBackdrop\": \"#060610\",\n \"borderSoft\": \"rgba(255, 255, 255, 0.10)\",\n \"cardEdge\": \"rgba(255, 255, 255, 0.16)\",\n \"canvasRender\": {\n \"grid\": \"#2a293d\",\n \"snapGrid\": \"#8e8e8e\",\n \"snapGuide\": \"#67cdff\",\n \"snapPage\": \"#f4c14f\",\n \"snapElement\": \"#ffada9\",\n \"selectionStroke\": \"#a5b4fc\",\n \"selectionAnchorFill\": \"#232238\",\n \"placeholderFill\": \"#12111f\",\n \"placeholderStroke\": \"#2a293d\",\n \"brokenFill\": \"#221f33\",\n \"brokenStroke\": \"#8e8e8e\"\n }\n }\n} as const\n","/** Brand-derived HSL compatibility and bitmap snapshots. Regenerate with src/theme/build.mjs; never author a second palette here. */\nimport { brandThemes } from './brand.generated'\n\nexport interface AgentAppTheme {\n background: string\n foreground: string\n card: string\n cardForeground: string\n popover: string\n popoverForeground: string\n primary: string\n primaryForeground: string\n secondary: string\n secondaryForeground: string\n muted: string\n mutedForeground: string\n accent: string\n accentForeground: string\n destructive: string\n destructiveForeground: string\n border: string\n input: string\n /** Full field fill, distinct from the input border. Optional for existing custom themes. */\n inputFill?: string\n ring: string\n success: string\n successForeground: string\n warning: string\n warningForeground: string\n /**\n * Warning as TEXT on a warning-TINTED surface, as a channel triple. Optional\n * so a consumer's existing `AgentAppTheme` literal still type-checks;\n * {@link themeToCssVars} falls back to `warningForeground`, which is what the\n * surface used before this token existed.\n */\n warningStrong?: string\n /** Full CSS color (not a triple) — the canvas/scene backdrop. */\n canvasBackdrop: string\n /**\n * Border tiers as FULL CSS colors (they are `color-mix()` results, not\n * triples). Optional so a consumer's existing `AgentAppTheme` literal still\n * type-checks; {@link themeToCssVars} falls back to full-strength\n * `hsl(var(--border))`, which can never erase an edge.\n */\n borderSoft?: string\n /** @see borderSoft */\n cardEdge?: string\n /** Konva render palette — full hex colors the bitmap canvas paints with\n * (it cannot resolve `var(--…)`). NOT emitted by themeToCssVars. */\n canvasRender: CanvasRenderPalette\n}\n\n/**\n * Colors the Konva design-canvas paints directly. Konva renders to a bitmap\n * and cannot read CSS custom properties, so these are full hex strings sourced\n * from the active theme and threaded through the canvas components.\n */\nexport interface CanvasRenderPalette {\n /** Grid line color (GridLayer). */\n grid: string\n /** Grid-snap guide line (SnapGuidesOverlay, kind 'grid'). */\n snapGrid: string\n /** Saved ruler-guide snap line (kind 'guide'). */\n snapGuide: string\n /** Page edge/center snap line (kinds 'page-edge'/'page-center'). */\n snapPage: string\n /** Element edge/center snap line (kinds 'element-edge'/'element-center'). */\n snapElement: string\n /** Transformer border + anchor stroke (SelectionLayer). */\n selectionStroke: string\n /** Transformer anchor fill (SelectionLayer). */\n selectionAnchorFill: string\n /** Video placeholder fill (ElementNode VideoNode). */\n placeholderFill: string\n /** Video placeholder stroke (ElementNode VideoNode). */\n placeholderStroke: string\n /** Broken/loading image placeholder fill (ElementNode ImageNode). */\n brokenFill: string\n /** Broken/loading image placeholder stroke (ElementNode ImageNode). */\n brokenStroke: string\n}\n\n/** Define a light color theme with specific background, foreground, and accent color values */\nexport const lightTheme: AgentAppTheme = brandThemes.light\n\n/** Canonical Brand dark values projected for legacy JS and bitmap callers. */\nexport const darkTheme: AgentAppTheme = brandThemes.dark\n\n/**\n * Wrap a channel triple in `hsl()`; pass through values already in a color form.\n * `oklch(…)` / `oklab(…)` / `color-mix(…)` are recognised because the ramp is\n * authored in oklch and the border tiers are colour mixes — wrapping either in\n * `hsl()` yields an invalid colour that paints as nothing.\n */\nexport function themeColor(value: string): string {\n return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`\n}\n\n/**\n * Map a theme to the full CSS-variable set (shadcn triples + canvas/sequences\n * aliases + canvas surface). Apply at runtime to scope a theme without loading\n * tokens.css: `Object.assign(el.style, themeToCssVars(darkTheme))`.\n */\nexport function themeToCssVars(theme: AgentAppTheme): Record<string, string> {\n return {\n '--background': theme.background,\n '--foreground': theme.foreground,\n '--card': theme.card,\n '--card-foreground': theme.cardForeground,\n '--popover': theme.popover,\n '--popover-foreground': theme.popoverForeground,\n '--primary': theme.primary,\n '--primary-foreground': theme.primaryForeground,\n '--secondary': theme.secondary,\n '--secondary-foreground': theme.secondaryForeground,\n '--muted': theme.muted,\n '--muted-foreground': theme.mutedForeground,\n '--accent': theme.accent,\n '--accent-foreground': theme.accentForeground,\n '--destructive': theme.destructive,\n '--destructive-foreground': theme.destructiveForeground,\n '--border': theme.border,\n '--input': theme.input,\n '--ring': theme.ring,\n '--success': theme.success,\n '--success-foreground': theme.successForeground,\n '--warning': theme.warning,\n '--warning-foreground': theme.warningForeground,\n // Falls back to the pairing the tinted surfaces used before this token\n // existed, so an unset value restores the previous look rather than an\n // unthemed one.\n '--warning-strong': theme.warningStrong ?? theme.warningForeground,\n '--bg-input': theme.inputFill ?? `hsl(${theme.card})`,\n '--text-primary': `hsl(${theme.foreground})`,\n '--text-secondary': `hsl(${theme.secondaryForeground})`,\n '--text-muted': `hsl(${theme.mutedForeground})`,\n '--text-danger': `hsl(${theme.destructive})`,\n '--text-warning': `hsl(${theme.warningStrong ?? theme.warningForeground})`,\n '--border-default': `hsl(${theme.border})`,\n '--brand-primary': `hsl(${theme.primary})`,\n '--editor-selection-background': `hsl(${theme.primary})`,\n '--editor-selection-foreground': `hsl(${theme.primaryForeground})`,\n '--canvas-backdrop': theme.canvasBackdrop,\n // Full strength is the safe default: an unset tier can under-draw an edge,\n // never erase one.\n '--border-soft': theme.borderSoft ?? `hsl(${theme.border})`,\n '--card-edge': theme.cardEdge ?? `hsl(${theme.border})`,\n }\n}\n"],"mappings":";AAGO,IAAM,cAAc;AAAA,EACzB,SAAS;AAAA,IACP,cAAc;AAAA,IACd,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,uBAAuB;AAAA,IACvB,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf,yBAAyB;AAAA,IACzB,UAAU;AAAA,IACV,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,gBAAgB;AAAA,MACd,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,uBAAuB;AAAA,MACvB,mBA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AM;AAAA,IACnB,wBAAwB,MAAM;AAAA,IAC9B,eAAe,MAAM;AAAA,IACrB,0BAA0B,MAAM;AAAA,IAChC,WAAW,MAAM;AAAA,IACjB,sBAAsB,MAAM;AAAA,IAC5B,YAAY,MAAM;AAAA,IAClB,uBAAuB,MAAM;AAAA,IAC7B,iBAAiB,MAAM;AAAA,IACvB,4BAA4B,MAAM;AAAA,IAClC,YAAY,MAAM;AAAA,IAClB,WAAW,MAAM;AAAA,IACjB,UAAU,MAAM;AAAA,IAChB,aAAa,MAAM;AAAA,IACnB,wBAAwB,MAAM;AAAA,IAC9B,aAAa,MAAM;AAAA,IACnB,wBAAwB,MAAM;AAAA;AAAA;AAAA;AAAA,IAI9B,oBAAoB,MAAM,iBAAiB,MAAM;AAAA,IACjD,cAAc,MAAM,aAAa,OAAO,MAAM,IAAI;AAAA,IAClD,kBAAkB,OAAO,MAAM,UAAU;AAAA,IACzC,oBAAoB,OAAO,MAAM,mBAAmB;AAAA,IACpD,gBAAgB,OAAO,MAAM,eAAe;AAAA,IAC5C,iBAAiB,OAAO,MAAM,WAAW;AAAA,IACzC,kBAAkB,OAAO,MAAM,iBAAiB,MAAM,iBAAiB;AAAA,IACvE,oBAAoB,OAAO,MAAM,MAAM;AAAA,IACvC,mBAAmB,OAAO,MAAM,OAAO;AAAA,IACvC,iCAAiC,OAAO,MAAM,OAAO;AAAA,IACrD,iCAAiC,OAAO,MAAM,iBAAiB;AAAA,IAC/D,qBAAqB,MAAM;AAAA;AAAA;AAAA,IAG3B,iBAAiB,MAAM,cAAc,OAAO,MAAM,MAAM;AAAA,IACxD,eAAe,MAAM,YAAY,OAAO,MAAM,MAAM;AAAA,EACtD;AACF;","names":[]}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
bakeTextTransform,
|
|
12
12
|
exportDocumentJson,
|
|
13
13
|
exportPageDataUrl
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-Z362IHYL.js";
|
|
15
15
|
import {
|
|
16
16
|
BTN,
|
|
17
17
|
BTN_ACTIVE,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
formatRulerLabel,
|
|
42
42
|
selectTickStep
|
|
43
43
|
} from "../chunk-DKHM4B4A.js";
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-ZZACC24K.js";
|
|
45
45
|
import "../chunk-ZN5J47UX.js";
|
|
46
46
|
import {
|
|
47
47
|
DEFAULT_INSERT_TEMPLATES,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
DesignCanvasChromeLazy,
|
|
89
89
|
DesignCanvasLazy
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-NRG2YHGY.js";
|
|
91
91
|
import {
|
|
92
92
|
assertSceneMediaSrc,
|
|
93
93
|
bleedAwareExportBounds,
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
formatConformanceReport,
|
|
6
6
|
readDeploymentFacts,
|
|
7
7
|
readVerdicts
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-RYUTKTOR.js";
|
|
9
|
+
import "../chunk-7UB4K2R2.js";
|
|
10
10
|
import {
|
|
11
11
|
invokedAsScript
|
|
12
12
|
} from "../chunk-C3CAYGGQ.js";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
recordInvariants,
|
|
18
18
|
recordedLongTurn,
|
|
19
19
|
stallingD1
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-RYUTKTOR.js";
|
|
21
21
|
import {
|
|
22
22
|
describeVerdict
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-7UB4K2R2.js";
|
|
24
24
|
export {
|
|
25
25
|
INVARIANT_RESULTS_ENV,
|
|
26
26
|
PLATFORM_LIMITS,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
} from "../chunk-4LBCTFBP.js";
|
|
13
13
|
import {
|
|
14
14
|
assertRenderUiSchema
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-XMIV374H.js";
|
|
16
|
+
import "../chunk-TMOYOMSW.js";
|
|
17
17
|
|
|
18
18
|
// src/preset-cloudflare/workflow-instance.ts
|
|
19
19
|
async function ensureCloudflareWorkflowInstance(binding, input) {
|
|
@@ -121,9 +121,9 @@ export declare function createPublicConsultation(options: PublicConsultationOpti
|
|
|
121
121
|
executionBudget?: ChatTurnExecutionLimits;
|
|
122
122
|
maxOutputTokens?: number;
|
|
123
123
|
}) => Promise<{
|
|
124
|
-
start?: undefined;
|
|
125
124
|
status: 'unsupported';
|
|
126
125
|
reason: string;
|
|
126
|
+
start?: undefined;
|
|
127
127
|
} | {
|
|
128
128
|
reason?: undefined;
|
|
129
129
|
status: 'prepared';
|
package/dist/sandbox/index.js
CHANGED
|
@@ -114,13 +114,13 @@ import {
|
|
|
114
114
|
} from "../chunk-4LBCTFBP.js";
|
|
115
115
|
import "../chunk-MCYJON3F.js";
|
|
116
116
|
import "../chunk-LWSJK546.js";
|
|
117
|
-
import "../chunk-
|
|
117
|
+
import "../chunk-KSITU6BQ.js";
|
|
118
118
|
import "../chunk-6A7MYOUI.js";
|
|
119
|
-
import "../chunk-
|
|
119
|
+
import "../chunk-XMIV374H.js";
|
|
120
120
|
import "../chunk-S5SRJJQG.js";
|
|
121
|
-
import "../chunk-
|
|
121
|
+
import "../chunk-BMZTYGKE.js";
|
|
122
122
|
import "../chunk-UGWQLQDS.js";
|
|
123
|
-
import "../chunk-
|
|
123
|
+
import "../chunk-TMOYOMSW.js";
|
|
124
124
|
import "../chunk-D6UJEOZQ.js";
|
|
125
125
|
export {
|
|
126
126
|
DEFAULT_FOREGROUND_PROVISION_CLAIM_TTL_SECONDS,
|
package/dist/signoff/cli.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
formatSignoffLine,
|
|
4
4
|
formatSignoffReport,
|
|
5
|
+
runShellAlignmentCli,
|
|
5
6
|
runSignoff
|
|
6
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-KBTY4AAU.js";
|
|
7
8
|
import {
|
|
8
9
|
invokedAsScript
|
|
9
10
|
} from "../chunk-C3CAYGGQ.js";
|
|
@@ -24,7 +25,10 @@ function usage() {
|
|
|
24
25
|
" --keep-going run every step even after one fails",
|
|
25
26
|
" --keep-workspace leave the clean tree on disk to inspect",
|
|
26
27
|
" --json <path> write the machine-readable report",
|
|
27
|
-
" --quiet verdict only; no per-step progress"
|
|
28
|
+
" --quiet verdict only; no per-step progress",
|
|
29
|
+
"",
|
|
30
|
+
"Subcommands:",
|
|
31
|
+
" shell-alignment measure header dividers against the rail in a browser (--help for options)"
|
|
28
32
|
].join("\n");
|
|
29
33
|
}
|
|
30
34
|
function fail(message) {
|
|
@@ -128,6 +132,7 @@ function progressWriter() {
|
|
|
128
132
|
};
|
|
129
133
|
}
|
|
130
134
|
async function runSignoffCli(argv) {
|
|
135
|
+
if (argv[0] === "shell-alignment") return runShellAlignmentCli(argv.slice(1));
|
|
131
136
|
const args = parseArgs(argv);
|
|
132
137
|
const report = await runSignoff({ ...args, onEvent: args.quiet ? void 0 : progressWriter() });
|
|
133
138
|
if (args.jsonPath !== void 0) {
|
package/dist/signoff/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/signoff/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * `agent-app-signoff` — run the local sign-off gate and print the proof.\n *\n * Exits 0 only when every declared step passed in a pristine tree. Exit 1 is a\n * real failure; exit 2 is a usage or config error, so a script can tell \"your\n * code is broken\" from \"your gate is misconfigured\".\n *\n * agent-app-signoff # this repo, working tree, default config\n * agent-app-signoff --source head # exactly the commit that would merge\n * agent-app-signoff --seed 12345 # reproduce a previous run's orders\n * agent-app-signoff --keep-going # run every step, full picture\n * agent-app-signoff --json proof.json # machine-readable record\n */\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { dirname, resolve } from 'node:path'\nimport { invokedAsScript } from './invoked-as-script'\nimport { formatSignoffLine, formatSignoffReport } from './report'\nimport { runSignoff, type RunSignoffOptions } from './run'\nimport type { SignoffEvent, SignoffSource } from './types'\n\ninterface ParsedArgs extends RunSignoffOptions {\n readonly jsonPath?: string\n readonly quiet?: boolean\n}\n\nfunction usage(): string {\n return [\n 'Usage: agent-app-signoff [repoDir] [options]',\n '',\n ' --source head|working-tree bytes to verify (default working-tree)',\n ' --config <path> config module (default signoff.config.mjs)',\n ' --seed <n> base seed; reproduces a previous run',\n ' --shuffle-runs <n> override every shuffled step\\'s run count',\n ' --max-parallel <n> cap concurrent steps',\n ' --cache-dir <path> clean trees + pristine stores live here',\n ' --keep-going run every step even after one fails',\n ' --keep-workspace leave the clean tree on disk to inspect',\n ' --json <path> write the machine-readable report',\n ' --quiet verdict only; no per-step progress',\n ].join('\\n')\n}\n\nfunction fail(message: string): never {\n process.stderr.write(`agent-app-signoff: ${message}\\n\\n${usage()}\\n`)\n process.exit(2)\n}\n\nfunction positiveInt(raw: string, flag: string): number {\n const value = Number.parseInt(raw, 10)\n if (!Number.isFinite(value) || value < 0) fail(`${flag} needs a non-negative integer, got \"${raw}\"`)\n return value\n}\n\nexport function parseArgs(argv: readonly string[]): ParsedArgs {\n const parsed: {\n repoDir?: string\n configPath?: string\n source?: SignoffSource\n seed?: number\n shuffleRuns?: number\n maxParallel?: number\n cacheDir?: string\n keepGoing?: boolean\n keepWorkspace?: boolean\n jsonPath?: string\n quiet?: boolean\n } = {}\n\n for (let index = 0; index < argv.length; index += 1) {\n const flag = argv[index] as string\n const take = (): string => {\n const value = argv[index + 1]\n if (value === undefined) fail(`${flag} needs a value`)\n index += 1\n return value\n }\n switch (flag) {\n case '--source': {\n const value = take()\n if (value !== 'head' && value !== 'working-tree') fail(`--source must be head or working-tree, got \"${value}\"`)\n parsed.source = value\n break\n }\n case '--config': parsed.configPath = take(); break\n case '--seed': parsed.seed = positiveInt(take(), '--seed'); break\n case '--shuffle-runs': parsed.shuffleRuns = positiveInt(take(), '--shuffle-runs'); break\n case '--max-parallel': parsed.maxParallel = positiveInt(take(), '--max-parallel'); break\n case '--cache-dir': parsed.cacheDir = take(); break\n case '--keep-going': parsed.keepGoing = true; break\n case '--keep-workspace': parsed.keepWorkspace = true; break\n case '--json': parsed.jsonPath = take(); break\n case '--quiet': parsed.quiet = true; break\n case '-h':\n case '--help':\n process.stdout.write(`${usage()}\\n`)\n process.exit(0)\n break\n default:\n if (flag.startsWith('-')) fail(`unknown option: ${flag}`)\n if (parsed.repoDir !== undefined) fail(`unexpected second directory: ${flag}`)\n parsed.repoDir = flag\n }\n }\n return parsed\n}\n\nfunction progressWriter(): (event: SignoffEvent) => void {\n return (event) => {\n switch (event.kind) {\n case 'tree':\n process.stderr.write(`· clean tree at ${event.path} (${event.head.slice(0, 12)}${event.dirty ? ' + working tree' : ''})\\n`)\n break\n case 'store':\n process.stderr.write(`· store ${event.cacheHit ? 'warm' : 'COLD'} ${event.cacheKey.slice(0, 16)}\\n`)\n break\n case 'install-start':\n process.stderr.write(`· ${event.command}\\n`)\n break\n case 'install-end':\n process.stderr.write(`· install exit ${event.exitCode} in ${event.durationMs}ms\\n`)\n break\n case 'step-start':\n process.stderr.write(`· start ${event.name}${event.seed === null ? '' : ` (seed ${event.seed})`}\\n`)\n break\n case 'step-end':\n process.stderr.write(`· ${event.status === 'passed' ? 'ok' : event.status} ${event.name} ${event.durationMs}ms\\n`)\n break\n }\n }\n}\n\nexport async function runSignoffCli(argv: readonly string[]): Promise<number> {\n const args = parseArgs(argv)\n const report = await runSignoff({ ...args, onEvent: args.quiet ? undefined : progressWriter() })\n\n if (args.jsonPath !== undefined) {\n const abs = resolve(args.jsonPath)\n mkdirSync(dirname(abs), { recursive: true })\n writeFileSync(abs, `${JSON.stringify(report, null, 2)}\\n`)\n }\n\n // `--quiet` is documented as \"verdict only\", and CLAUDE.md names the one-line\n // `signoff PASS <sha> …` summary as an accepted PR proof. Printing the full\n // report here contradicted both, and left the only producer of that summary\n // with no caller.\n process.stdout.write(`${args.quiet ? formatSignoffLine(report) : formatSignoffReport(report)}\\n`)\n return report.ok ? 0 : 1\n}\n\n/* c8 ignore start — process wiring, exercised by the bin itself */\nif (invokedAsScript(import.meta.url, process.argv[1])) {\n runSignoffCli(process.argv.slice(2))\n .then((code) => process.exit(code))\n .catch((err: unknown) => {\n process.stderr.write(`${err instanceof Error ? err.message : String(err)}\\n`)\n process.exit(2)\n })\n}\n/* c8 ignore stop */\n"],"mappings":";;;;;;;;;;;AAcA,SAAS,WAAW,qBAAqB;AACzC,SAAS,SAAS,eAAe;AAWjC,SAAS,QAAgB;AACvB,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,EAAE,KAAK,IAAI;AACb;AAEA,SAAS,KAAK,SAAwB;AACpC,UAAQ,OAAO,MAAM,sBAAsB,OAAO;AAAA;AAAA,EAAO,MAAM,CAAC;AAAA,CAAI;AACpE,UAAQ,KAAK,CAAC;AAChB;AAEA,SAAS,YAAY,KAAa,MAAsB;AACtD,QAAM,QAAQ,OAAO,SAAS,KAAK,EAAE;AACrC,MAAI,CAAC,OAAO,SAAS,KAAK,KAAK,QAAQ,EAAG,MAAK,GAAG,IAAI,uCAAuC,GAAG,GAAG;AACnG,SAAO;AACT;AAEO,SAAS,UAAU,MAAqC;AAC7D,QAAM,SAYF,CAAC;AAEL,WAAS,QAAQ,GAAG,QAAQ,KAAK,QAAQ,SAAS,GAAG;AACnD,UAAM,OAAO,KAAK,KAAK;AACvB,UAAM,OAAO,MAAc;AACzB,YAAM,QAAQ,KAAK,QAAQ,CAAC;AAC5B,UAAI,UAAU,OAAW,MAAK,GAAG,IAAI,gBAAgB;AACrD,eAAS;AACT,aAAO;AAAA,IACT;AACA,YAAQ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,QAAiB;AACvB,YAAQ,OAAO,MAAM,GAAG,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC;AAAA,CAAI;AAC5E,YAAQ,KAAK,CAAC;AAAA,EAChB,CAAC;AACL;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/signoff/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * `agent-app-signoff` — run the local sign-off gate and print the proof.\n *\n * Exits 0 only when every declared step passed in a pristine tree. Exit 1 is a\n * real failure; exit 2 is a usage or config error, so a script can tell \"your\n * code is broken\" from \"your gate is misconfigured\".\n *\n * agent-app-signoff # this repo, working tree, default config\n * agent-app-signoff --source head # exactly the commit that would merge\n * agent-app-signoff --seed 12345 # reproduce a previous run's orders\n * agent-app-signoff --keep-going # run every step, full picture\n * agent-app-signoff --json proof.json # machine-readable record\n * agent-app-signoff shell-alignment --base-url <url> --route <path> # header dividers meet the rail\n */\nimport { mkdirSync, writeFileSync } from 'node:fs'\nimport { dirname, resolve } from 'node:path'\nimport { invokedAsScript } from './invoked-as-script'\nimport { formatSignoffLine, formatSignoffReport } from './report'\nimport { runSignoff, type RunSignoffOptions } from './run'\nimport { runShellAlignmentCli } from './shell-alignment-cli'\nimport type { SignoffEvent, SignoffSource } from './types'\n\ninterface ParsedArgs extends RunSignoffOptions {\n readonly jsonPath?: string\n readonly quiet?: boolean\n}\n\nfunction usage(): string {\n return [\n 'Usage: agent-app-signoff [repoDir] [options]',\n '',\n ' --source head|working-tree bytes to verify (default working-tree)',\n ' --config <path> config module (default signoff.config.mjs)',\n ' --seed <n> base seed; reproduces a previous run',\n ' --shuffle-runs <n> override every shuffled step\\'s run count',\n ' --max-parallel <n> cap concurrent steps',\n ' --cache-dir <path> clean trees + pristine stores live here',\n ' --keep-going run every step even after one fails',\n ' --keep-workspace leave the clean tree on disk to inspect',\n ' --json <path> write the machine-readable report',\n ' --quiet verdict only; no per-step progress',\n '',\n 'Subcommands:',\n ' shell-alignment measure header dividers against the rail in a browser (--help for options)',\n ].join('\\n')\n}\n\nfunction fail(message: string): never {\n process.stderr.write(`agent-app-signoff: ${message}\\n\\n${usage()}\\n`)\n process.exit(2)\n}\n\nfunction positiveInt(raw: string, flag: string): number {\n const value = Number.parseInt(raw, 10)\n if (!Number.isFinite(value) || value < 0) fail(`${flag} needs a non-negative integer, got \"${raw}\"`)\n return value\n}\n\nexport function parseArgs(argv: readonly string[]): ParsedArgs {\n const parsed: {\n repoDir?: string\n configPath?: string\n source?: SignoffSource\n seed?: number\n shuffleRuns?: number\n maxParallel?: number\n cacheDir?: string\n keepGoing?: boolean\n keepWorkspace?: boolean\n jsonPath?: string\n quiet?: boolean\n } = {}\n\n for (let index = 0; index < argv.length; index += 1) {\n const flag = argv[index] as string\n const take = (): string => {\n const value = argv[index + 1]\n if (value === undefined) fail(`${flag} needs a value`)\n index += 1\n return value\n }\n switch (flag) {\n case '--source': {\n const value = take()\n if (value !== 'head' && value !== 'working-tree') fail(`--source must be head or working-tree, got \"${value}\"`)\n parsed.source = value\n break\n }\n case '--config': parsed.configPath = take(); break\n case '--seed': parsed.seed = positiveInt(take(), '--seed'); break\n case '--shuffle-runs': parsed.shuffleRuns = positiveInt(take(), '--shuffle-runs'); break\n case '--max-parallel': parsed.maxParallel = positiveInt(take(), '--max-parallel'); break\n case '--cache-dir': parsed.cacheDir = take(); break\n case '--keep-going': parsed.keepGoing = true; break\n case '--keep-workspace': parsed.keepWorkspace = true; break\n case '--json': parsed.jsonPath = take(); break\n case '--quiet': parsed.quiet = true; break\n case '-h':\n case '--help':\n process.stdout.write(`${usage()}\\n`)\n process.exit(0)\n break\n default:\n if (flag.startsWith('-')) fail(`unknown option: ${flag}`)\n if (parsed.repoDir !== undefined) fail(`unexpected second directory: ${flag}`)\n parsed.repoDir = flag\n }\n }\n return parsed\n}\n\nfunction progressWriter(): (event: SignoffEvent) => void {\n return (event) => {\n switch (event.kind) {\n case 'tree':\n process.stderr.write(`· clean tree at ${event.path} (${event.head.slice(0, 12)}${event.dirty ? ' + working tree' : ''})\\n`)\n break\n case 'store':\n process.stderr.write(`· store ${event.cacheHit ? 'warm' : 'COLD'} ${event.cacheKey.slice(0, 16)}\\n`)\n break\n case 'install-start':\n process.stderr.write(`· ${event.command}\\n`)\n break\n case 'install-end':\n process.stderr.write(`· install exit ${event.exitCode} in ${event.durationMs}ms\\n`)\n break\n case 'step-start':\n process.stderr.write(`· start ${event.name}${event.seed === null ? '' : ` (seed ${event.seed})`}\\n`)\n break\n case 'step-end':\n process.stderr.write(`· ${event.status === 'passed' ? 'ok' : event.status} ${event.name} ${event.durationMs}ms\\n`)\n break\n }\n }\n}\n\nexport async function runSignoffCli(argv: readonly string[]): Promise<number> {\n if (argv[0] === 'shell-alignment') return runShellAlignmentCli(argv.slice(1))\n const args = parseArgs(argv)\n const report = await runSignoff({ ...args, onEvent: args.quiet ? undefined : progressWriter() })\n\n if (args.jsonPath !== undefined) {\n const abs = resolve(args.jsonPath)\n mkdirSync(dirname(abs), { recursive: true })\n writeFileSync(abs, `${JSON.stringify(report, null, 2)}\\n`)\n }\n\n // `--quiet` is documented as \"verdict only\", and CLAUDE.md names the one-line\n // `signoff PASS <sha> …` summary as an accepted PR proof. Printing the full\n // report here contradicted both, and left the only producer of that summary\n // with no caller.\n process.stdout.write(`${args.quiet ? formatSignoffLine(report) : formatSignoffReport(report)}\\n`)\n return report.ok ? 0 : 1\n}\n\n/* c8 ignore start — process wiring, exercised by the bin itself */\nif (invokedAsScript(import.meta.url, process.argv[1])) {\n runSignoffCli(process.argv.slice(2))\n .then((code) => process.exit(code))\n .catch((err: unknown) => {\n process.stderr.write(`${err instanceof Error ? err.message : String(err)}\\n`)\n process.exit(2)\n })\n}\n/* c8 ignore stop */\n"],"mappings":";;;;;;;;;;;;AAeA,SAAS,WAAW,qBAAqB;AACzC,SAAS,SAAS,eAAe;AAYjC,SAAS,QAAgB;AACvB,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,I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AAI,MAAM,IAAI,IAAI,MAAM,UAAU;AAAA,CAAM;AACjH;AAAA,IACJ;AAAA,EACF;AACF;AAEA,eAAsB,cAAc,MAA0C;AAC5E,MAAI,KAAK,CAAC,MAAM,kBAAmB,QAAO,qBAAqB,KAAK,MAAM,CAAC,CAAC;AAC5E,QAAM,OAAO,UAAU,IAAI;AAC3B,QAAM,SAAS,MAAM,WAAW,EAAE,GAAG,MAAM,SAAS,KAAK,QAAQ,SAAY,eAAe,EAAE,CAAC;AAE/F,MAAI,KAAK,aAAa,QAAW;AAC/B,UAAM,MAAM,QAAQ,KAAK,QAAQ;AACjC,cAAU,QAAQ,GAAG,GAAG,EAAE,WAAW,KAAK,CAAC;AAC3C,kBAAc,KAAK,GAAG,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC;AAAA,CAAI;AAAA,EAC3D;AAMA,UAAQ,OAAO,MAAM,GAAG,KAAK,QAAQ,kBAAkB,MAAM,IAAI,oBAAoB,MAAM,CAAC;AAAA,CAAI;AAChG,SAAO,OAAO,KAAK,IAAI;AACzB;AAGA,IAAI,gBAAgB,YAAY,KAAK,QAAQ,KAAK,CAAC,CAAC,GAAG;AACrD,gBAAc,QAAQ,KAAK,MAAM,CAAC,CAAC,EAChC,KAAK,CAAC,SAAS,QAAQ,KAAK,IAAI,CAAC,EACjC,MAAM,CAAC,QAAiB;AACvB,YAAQ,OAAO,MAAM,GAAG,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC;AAAA,CAAI;AAC5E,YAAQ,KAAK,CAAC;AAAA,EAChB,CAAC;AACL;","names":[]}
|
package/dist/signoff/index.d.ts
CHANGED
|
@@ -53,5 +53,7 @@
|
|
|
53
53
|
export { runSignoff, type RunSignoffOptions } from './run';
|
|
54
54
|
export { loadSignoffConfig, type LoadSignoffConfigOptions } from './config';
|
|
55
55
|
export { formatSignoffReport } from './report';
|
|
56
|
+
export { checkShellAlignment, collectShellDividers, formatShellAlignmentReport, judgeShellAlignment, SHELL_ALIGNMENT_TOLERANCE_PX, type ShellAlignmentFinding, type ShellAlignmentOptions, type ShellAlignmentReport, type ShellDivider, type ShellDividerSample, } from './shell-alignment';
|
|
57
|
+
export { parseShellAlignmentArgs, runShellAlignmentCli } from './shell-alignment-cli';
|
|
56
58
|
export { checkWorkerDefaults, formatWorkerDefaults, WORKER_COMPATIBILITY_DATE_FLOOR, type WorkerDefaultsFinding, type WorkerDefaultsResult, } from './worker-defaults';
|
|
57
59
|
export type { LoadedSignoffConfig, SignoffAttempt, SignoffConfig, SignoffConfigOrigin, SignoffEvent, SignoffHostFacts, SignoffInstallResult, SignoffInstallSpec, SignoffRepoFacts, SignoffReport, SignoffShuffleSpec, SignoffSource, SignoffStepResult, SignoffStepSpec, SignoffStepStatus, } from './types';
|
package/dist/signoff/index.js
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
+
SHELL_ALIGNMENT_TOLERANCE_PX,
|
|
2
3
|
WORKER_COMPATIBILITY_DATE_FLOOR,
|
|
4
|
+
checkShellAlignment,
|
|
3
5
|
checkWorkerDefaults,
|
|
6
|
+
collectShellDividers,
|
|
7
|
+
formatShellAlignmentReport,
|
|
4
8
|
formatSignoffReport,
|
|
5
9
|
formatWorkerDefaults,
|
|
10
|
+
judgeShellAlignment,
|
|
6
11
|
loadSignoffConfig,
|
|
12
|
+
parseShellAlignmentArgs,
|
|
13
|
+
runShellAlignmentCli,
|
|
7
14
|
runSignoff
|
|
8
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-KBTY4AAU.js";
|
|
9
16
|
export {
|
|
17
|
+
SHELL_ALIGNMENT_TOLERANCE_PX,
|
|
10
18
|
WORKER_COMPATIBILITY_DATE_FLOOR,
|
|
19
|
+
checkShellAlignment,
|
|
11
20
|
checkWorkerDefaults,
|
|
21
|
+
collectShellDividers,
|
|
22
|
+
formatShellAlignmentReport,
|
|
12
23
|
formatSignoffReport,
|
|
13
24
|
formatWorkerDefaults,
|
|
25
|
+
judgeShellAlignment,
|
|
14
26
|
loadSignoffConfig,
|
|
27
|
+
parseShellAlignmentArgs,
|
|
28
|
+
runShellAlignmentCli,
|
|
15
29
|
runSignoff
|
|
16
30
|
};
|
|
17
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ShellAlignmentOptions } from './shell-alignment';
|
|
2
|
+
export declare function shellAlignmentUsage(): string;
|
|
3
|
+
export declare class ShellAlignmentUsageError extends Error {
|
|
4
|
+
}
|
|
5
|
+
export declare function parseShellAlignmentArgs(argv: readonly string[]): ShellAlignmentOptions & {
|
|
6
|
+
readonly jsonPath?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function runShellAlignmentCli(argv: readonly string[]): Promise<number>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shell alignment: on each route, at desktop and phone widths, the main pane's
|
|
3
|
+
* header divider must continue the sidebar rail's first divider.
|
|
4
|
+
*
|
|
5
|
+
* Every shell header row is a sandbox-ui `ShellHeader` at brand's
|
|
6
|
+
* `--shell-header-height`, so their bottom borders share one y. A product that
|
|
7
|
+
* gives a header its own height (Hospitality's 66px inbox head beside a 56px
|
|
8
|
+
* rail) moves its divider off that line; this check measures the rendered page,
|
|
9
|
+
* so it catches the drift whatever CSS caused it.
|
|
10
|
+
*
|
|
11
|
+
* The browser half (`collectShellDividers`) only reads geometry; the decision
|
|
12
|
+
* (`judgeShellAlignment`) is a pure function so it is unit-tested without a browser.
|
|
13
|
+
*/
|
|
14
|
+
/** A horizontal divider: the bottom border of a top-anchored row. Coordinates in CSS px. */
|
|
15
|
+
export interface ShellDivider {
|
|
16
|
+
readonly label: string;
|
|
17
|
+
readonly left: number;
|
|
18
|
+
readonly right: number;
|
|
19
|
+
readonly top: number;
|
|
20
|
+
readonly bottom: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ShellDividerSample {
|
|
23
|
+
readonly route: string;
|
|
24
|
+
readonly width: number;
|
|
25
|
+
readonly theme: string;
|
|
26
|
+
/** `--shell-header-height` resolved to px on this page. */
|
|
27
|
+
readonly shellHeaderPx: number;
|
|
28
|
+
/** The rail's first divider (desktop), or null when the rail is hidden. */
|
|
29
|
+
readonly rail: ShellDivider | null;
|
|
30
|
+
/** The phone bar standing in for the rail below its breakpoint, or null. */
|
|
31
|
+
readonly phoneBar: ShellDivider | null;
|
|
32
|
+
/** Every top-anchored row divider in the main pane and its side panels. */
|
|
33
|
+
readonly headers: readonly ShellDivider[];
|
|
34
|
+
}
|
|
35
|
+
export interface ShellAlignmentFinding {
|
|
36
|
+
readonly route: string;
|
|
37
|
+
readonly width: number;
|
|
38
|
+
readonly theme: string;
|
|
39
|
+
readonly header: string;
|
|
40
|
+
/** Signed px: positive when the header divider sits below the expected line. */
|
|
41
|
+
readonly offsetPx: number;
|
|
42
|
+
readonly expectedY: number;
|
|
43
|
+
readonly actualY: number;
|
|
44
|
+
readonly reason: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const SHELL_ALIGNMENT_TOLERANCE_PX = 0.5;
|
|
47
|
+
/**
|
|
48
|
+
* Desktop: every header divider lands on the rail's first divider.
|
|
49
|
+
* Phone: the rail is hidden; the phone bar is one shell row, and a header row
|
|
50
|
+
* that starts under it is exactly one shell row tall.
|
|
51
|
+
*/
|
|
52
|
+
export declare function judgeShellAlignment(sample: ShellDividerSample, tolerancePx?: number): ShellAlignmentFinding[];
|
|
53
|
+
/**
|
|
54
|
+
* Runs in the page (Playwright serializes it). A divider is the visible bottom
|
|
55
|
+
* border of a wide, top-anchored element with no top border: header rows have
|
|
56
|
+
* only a bottom divider, while inputs, cards and the inset surface draw a full
|
|
57
|
+
* box and are skipped. Returns raw geometry; `judgeShellAlignment` decides.
|
|
58
|
+
*/
|
|
59
|
+
export declare function collectShellDividers(): Omit<ShellDividerSample, 'route' | 'width' | 'theme'>;
|
|
60
|
+
export interface ShellAlignmentOptions {
|
|
61
|
+
readonly baseUrl: string;
|
|
62
|
+
readonly routes: readonly string[];
|
|
63
|
+
readonly widths?: readonly number[];
|
|
64
|
+
readonly themes?: readonly ('light' | 'dark')[];
|
|
65
|
+
/** Playwright storage state (cookies, localStorage) for an authenticated app. */
|
|
66
|
+
readonly storageState?: string;
|
|
67
|
+
/** Run in each page before the app loads, with `theme` in scope, to apply the app's own theme switch. */
|
|
68
|
+
readonly themeScript?: string;
|
|
69
|
+
/** Write a screenshot per failing route and width here. */
|
|
70
|
+
readonly screenshotDir?: string;
|
|
71
|
+
readonly tolerancePx?: number;
|
|
72
|
+
/** Wait for this selector after navigation (default `[data-shell-header]`). */
|
|
73
|
+
readonly readySelector?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface ShellAlignmentReport {
|
|
76
|
+
readonly samples: readonly ShellDividerSample[];
|
|
77
|
+
readonly findings: readonly ShellAlignmentFinding[];
|
|
78
|
+
readonly maxOffsetPx: number;
|
|
79
|
+
}
|
|
80
|
+
/** Drive Chromium over every route × width × theme and judge each page. Needs the optional `playwright` peer. */
|
|
81
|
+
export declare function checkShellAlignment(options: ShellAlignmentOptions): Promise<ShellAlignmentReport>;
|
|
82
|
+
export declare function formatShellAlignmentReport(report: ShellAlignmentReport): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** GENERATED from @tangle-network/brand/styles/legacy-light.css
|
|
2
|
-
* SHA-256:
|
|
2
|
+
* SHA-256: 3e234bf78f67517f5541305f7657f577aef8fd53a0208154a7916d64951c299e
|
|
3
3
|
* Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
|
|
4
4
|
export declare const brandThemes: {
|
|
5
5
|
readonly light: {
|
package/dist/theme/index.js
CHANGED
package/dist/theme/tokens.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@layer theme, base, components, utilities;
|
|
8
8
|
@layer theme{/* GENERATED by scripts/gen-compat.mjs. Do not edit.
|
|
9
9
|
* Source: tokens.css + named-themes.css
|
|
10
|
-
* SHA-256:
|
|
10
|
+
* SHA-256: 939e3e76ae042294bf30fd3c9083242457c387a107693bb8c329e8e5ab22b92d
|
|
11
11
|
* Light-default compatibility; all explicit modes remain canonical.
|
|
12
12
|
*/
|
|
13
13
|
:where(:root),
|
|
@@ -304,6 +304,10 @@
|
|
|
304
304
|
--font-size-help: 0.75rem;
|
|
305
305
|
--panel-padding: 1rem;
|
|
306
306
|
--content-max-width: 80rem;
|
|
307
|
+
--shell-header-height: 3.5rem;
|
|
308
|
+
--shell-inset-gutter: 0.5rem;
|
|
309
|
+
--transcript-font-size: 1rem;
|
|
310
|
+
--transcript-line-height: var(--line-height-base);
|
|
307
311
|
--font-size-xs: 0.6875rem;
|
|
308
312
|
--font-size-sm: 0.75rem;
|
|
309
313
|
--font-size-base: 0.9375rem;
|
|
@@ -794,6 +798,7 @@
|
|
|
794
798
|
--spacing-control-sm: var(--control-height-sm);
|
|
795
799
|
--spacing-control-md: var(--control-height);
|
|
796
800
|
--spacing-control-lg: var(--control-height-lg);
|
|
801
|
+
--spacing-shell-header: var(--shell-header-height);
|
|
797
802
|
--color-scrim: var(--scrim);
|
|
798
803
|
--color-scrim-strong: var(--scrim-strong);
|
|
799
804
|
--color-on-media: var(--on-media);
|
|
@@ -1617,7 +1622,7 @@
|
|
|
1617
1622
|
}
|
|
1618
1623
|
}
|
|
1619
1624
|
@layer theme{/* GENERATED from @tangle-network/brand/styles/legacy-light.css
|
|
1620
|
-
* SHA-256:
|
|
1625
|
+
* SHA-256: 3e234bf78f67517f5541305f7657f577aef8fd53a0208154a7916d64951c299e
|
|
1621
1626
|
* Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
|
|
1622
1627
|
:where(:root),
|
|
1623
1628
|
[data-sandbox-ui],
|
package/dist/tools/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
restrictTaxonomy,
|
|
10
10
|
verifyCapabilityToken,
|
|
11
11
|
verifyExpiringCapabilityToken
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-KSITU6BQ.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_APP_TOOL_PATHS,
|
|
15
15
|
DEFAULT_HEADER_NAMES,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
readToolArgs,
|
|
23
23
|
unresolvableSurfaceCredential
|
|
24
24
|
} from "../chunk-6A7MYOUI.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-XMIV374H.js";
|
|
26
26
|
import "../chunk-S5SRJJQG.js";
|
|
27
27
|
import {
|
|
28
28
|
APP_TOOL_NAMES,
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
defineAppTool,
|
|
32
32
|
findCustomTool,
|
|
33
33
|
isAppToolName
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-BMZTYGKE.js";
|
|
35
35
|
import "../chunk-UGWQLQDS.js";
|
|
36
36
|
import {
|
|
37
37
|
ToolInputError
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-TMOYOMSW.js";
|
|
39
39
|
export {
|
|
40
40
|
APP_TOOL_NAMES,
|
|
41
41
|
DEFAULT_APP_TOOL_PATHS,
|
package/dist/vault/index.js
CHANGED
package/dist/vault/lazy.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/vault/lazy.tsx
|
|
2
2
|
import { lazy } from "react";
|
|
3
3
|
var VaultPaneLazy = lazy(
|
|
4
|
-
() => import("../VaultPane-
|
|
4
|
+
() => import("../VaultPane-XUAGL5SP.js").then((m) => ({ default: m.VaultPane }))
|
|
5
5
|
);
|
|
6
6
|
export {
|
|
7
7
|
VaultPaneLazy
|
|
@@ -34,7 +34,7 @@ export * from './chat-interactions';
|
|
|
34
34
|
export * from './chat-composer';
|
|
35
35
|
export * from './workspace-prewarm';
|
|
36
36
|
export { getChatFundingRecovery, type ChatFundingFailure, type ChatFundingRecovery } from './turn-funding-recovery';
|
|
37
|
-
export { RouteChunkBoundary, type RouteChunkBoundaryProps } from './lazy-load-boundary';
|
|
37
|
+
export { RouteChunkBoundary, lazyRoute, preloadWhenIdle, type LazyRoute, type RouteChunkBoundaryProps } from './lazy-load-boundary';
|
|
38
38
|
export * from './agent-profile-editor';
|
|
39
39
|
export type { ResourceFileLimits } from './agent-profile-files';
|
|
40
40
|
export * from './agent-profile-registry';
|
package/dist/web-react/index.js
CHANGED
|
@@ -139,14 +139,14 @@ import {
|
|
|
139
139
|
withoutRecordGridCreated,
|
|
140
140
|
withoutRecordGridRemoved,
|
|
141
141
|
withoutRecordGridUpdate
|
|
142
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-OUW5AI2G.js";
|
|
143
143
|
import {
|
|
144
144
|
SessionHistoryPanel,
|
|
145
145
|
formatSessionTimestamp,
|
|
146
146
|
useInfiniteScroll,
|
|
147
147
|
useSessionActions,
|
|
148
148
|
useSessionHistory
|
|
149
|
-
} from "../chunk-
|
|
149
|
+
} from "../chunk-2FLSODOX.js";
|
|
150
150
|
import {
|
|
151
151
|
MENTION_PILL_CLASS
|
|
152
152
|
} from "../chunk-3HUFJ5LO.js";
|
|
@@ -190,11 +190,13 @@ import {
|
|
|
190
190
|
filterAcceptedFiles,
|
|
191
191
|
formatDictationElapsed,
|
|
192
192
|
isAcceptedFileType,
|
|
193
|
+
lazyRoute,
|
|
193
194
|
pickDictationMimeType,
|
|
195
|
+
preloadWhenIdle,
|
|
194
196
|
renamePastedImages,
|
|
195
197
|
useComposerAttachments,
|
|
196
198
|
useDictation
|
|
197
|
-
} from "../chunk-
|
|
199
|
+
} from "../chunk-ORFRFCXQ.js";
|
|
198
200
|
import "../chunk-L7MB2LLM.js";
|
|
199
201
|
import "../chunk-NJDQ2JCP.js";
|
|
200
202
|
import {
|
|
@@ -448,6 +450,7 @@ export {
|
|
|
448
450
|
isTerminalInteractionStatus,
|
|
449
451
|
isTurnPhaseEvent,
|
|
450
452
|
lateAnswerMessage,
|
|
453
|
+
lazyRoute,
|
|
451
454
|
loadAttachmentFile,
|
|
452
455
|
loadingProvenanceSources,
|
|
453
456
|
mediaTypeForMentionPath,
|
|
@@ -467,6 +470,7 @@ export {
|
|
|
467
470
|
pendingApprovalOf,
|
|
468
471
|
persistedPartToInteraction,
|
|
469
472
|
pickDictationMimeType,
|
|
473
|
+
preloadWhenIdle,
|
|
470
474
|
projectRecordGridRows,
|
|
471
475
|
provenanceBasisMeta,
|
|
472
476
|
provenanceGaps,
|