typebulb 0.44.3 → 0.45.1

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.
@@ -2440,7 +2440,7 @@ var Patcher = class {
2440
2440
 
2441
2441
  // cli/agents/pi/server/piPatcherExtension.ts
2442
2442
  var DESCRIPTION = true ? "Apply unified diffs to files \u2014 tolerant of form, strict about intent. Repairs sloppy AI-generated diffs (mangled headers, whitespace drift, missing prefixes; line numbers can be wrong or absent \u2014 hunks anchor by fuzzy-matched context lines) and applies all hunks atomically when the intent is unambiguous; fails with a precise, typed error when it isn't. Use for multi-hunk edits in one step, or when exact string-replacement editing fails on whitespace or invisible characters." : "Apply unified diffs to files.";
2443
- var BUILD_TAG = true ? "matchu-patchu-pi 0.3.5, built 2026-07-30 16:00:57" : "matchu-patchu-pi dev";
2443
+ var BUILD_TAG = true ? "matchu-patchu-pi 0.3.5, built 2026-07-30 18:56:04" : "matchu-patchu-pi dev";
2444
2444
  var errorBlocks = (errors) => {
2445
2445
  const parts = [`Patch failed with ${errors.length} error(s):`];
2446
2446
  for (const e of errors) parts.push("", e.toString());
@@ -5,5 +5,6 @@ export * from './config.js';
5
5
  export * from './detection.js';
6
6
  export * from './chunks.js';
7
7
  export * from './slug.js';
8
+ export * from './pageShell.js';
8
9
  export { escapeYamlString, unescapeYamlString } from './yaml.js';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../format/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../format/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
@@ -5,5 +5,6 @@ export * from './config.js';
5
5
  export * from './detection.js';
6
6
  export * from './chunks.js';
7
7
  export * from './slug.js';
8
+ export * from './pageShell.js';
8
9
  export { escapeYamlString, unescapeYamlString } from './yaml.js';
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../format/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../format/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The page shell every rendered bulb document ships. ONE copy, in a core subpath,
3
+ * because every host must emit it identically or a bulb renders differently local
4
+ * vs published: the CLI's pages take it via cli/bulb/pageChrome.ts, typebulb.com's
5
+ * sandbox via its Template (client sandbox/template.ts). Both constants are
6
+ * indented to sit inside a `<style>` block.
7
+ */
8
+ /** Base reset + the `data-theme` → `color-scheme` mapping every page emits. The
9
+ * theme engine sets `html[data-theme]`; this maps it to the UA color-scheme — the
10
+ * Theming invariant (Specs/Typebulb-CLI.md): `data-theme` and `color-scheme` must
11
+ * always travel together.
12
+ *
13
+ * `body { display: flow-root }` makes body a block formatting context so a first/
14
+ * last child's vertical margin (author's, or a UA default like `<h1>`'s) can't
15
+ * collapse out through body — the embed auto-height reports `body.scrollHeight`
16
+ * (cli/bulb/template.ts), and an escaped margin sizes the frame short → clipped
17
+ * content + premature scrollbar (TB-Agent-Mirror-Embed.md Invariant 3). Don't drop it.
18
+ *
19
+ * `canvas { max-width: 100% }` keeps a canvas inside its container the way
20
+ * responsive `img` does: a canvas's backing store is `devicePixelRatio`-scaled, so
21
+ * code that sizes the buffer but not the CSS box (e.g. three's `setSize(w, h, false)`)
22
+ * otherwise lays the element out at buffer size — `dpr`× too wide — and overflows.
23
+ * Height already defaults to `auto`, so clamping width pulls height down the intrinsic
24
+ * ratio with it. Base-level, so a bulb that sets its own canvas size still wins. */
25
+ export declare const baseResetStyle = " *, *::before, *::after { box-sizing: border-box; }\n canvas { max-width: 100%; }\n body { margin: 0; display: flow-root; font-family: system-ui, -apple-system, sans-serif; }\n html[data-theme=\"dark\"] { color-scheme: dark; }\n html[data-theme=\"light\"] { color-scheme: light; }";
26
+ /** The definite-height chain, for pages whose frame has a definite height — the CLI's
27
+ * standalone page and every typebulb.com context (all frame-sized iframes) — so a
28
+ * fill bulb (`height: 100%` root) resolves against the window instead of collapsing
29
+ * to zero. NEVER for a content-measured embed: there `body` must stay content-height
30
+ * or the auto-height protocol's `body.scrollHeight` can no longer shrink the frame
31
+ * (TB-Agent-Mirror-Embed.md). */
32
+ export declare const pageHeightStyle = " html, body { height: 100%; }";
33
+ //# sourceMappingURL=pageShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pageShell.d.ts","sourceRoot":"","sources":["../../format/src/pageShell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;qFAgBqF;AACrF,eAAO,MAAM,cAAc,6SAI2B,CAAA;AAEtD;;;;;kCAKkC;AAClC,eAAO,MAAM,eAAe,qCAAqC,CAAA"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The page shell every rendered bulb document ships. ONE copy, in a core subpath,
3
+ * because every host must emit it identically or a bulb renders differently local
4
+ * vs published: the CLI's pages take it via cli/bulb/pageChrome.ts, typebulb.com's
5
+ * sandbox via its Template (client sandbox/template.ts). Both constants are
6
+ * indented to sit inside a `<style>` block.
7
+ */
8
+ /** Base reset + the `data-theme` → `color-scheme` mapping every page emits. The
9
+ * theme engine sets `html[data-theme]`; this maps it to the UA color-scheme — the
10
+ * Theming invariant (Specs/Typebulb-CLI.md): `data-theme` and `color-scheme` must
11
+ * always travel together.
12
+ *
13
+ * `body { display: flow-root }` makes body a block formatting context so a first/
14
+ * last child's vertical margin (author's, or a UA default like `<h1>`'s) can't
15
+ * collapse out through body — the embed auto-height reports `body.scrollHeight`
16
+ * (cli/bulb/template.ts), and an escaped margin sizes the frame short → clipped
17
+ * content + premature scrollbar (TB-Agent-Mirror-Embed.md Invariant 3). Don't drop it.
18
+ *
19
+ * `canvas { max-width: 100% }` keeps a canvas inside its container the way
20
+ * responsive `img` does: a canvas's backing store is `devicePixelRatio`-scaled, so
21
+ * code that sizes the buffer but not the CSS box (e.g. three's `setSize(w, h, false)`)
22
+ * otherwise lays the element out at buffer size — `dpr`× too wide — and overflows.
23
+ * Height already defaults to `auto`, so clamping width pulls height down the intrinsic
24
+ * ratio with it. Base-level, so a bulb that sets its own canvas size still wins. */
25
+ export const baseResetStyle = ` *, *::before, *::after { box-sizing: border-box; }
26
+ canvas { max-width: 100%; }
27
+ body { margin: 0; display: flow-root; font-family: system-ui, -apple-system, sans-serif; }
28
+ html[data-theme="dark"] { color-scheme: dark; }
29
+ html[data-theme="light"] { color-scheme: light; }`;
30
+ /** The definite-height chain, for pages whose frame has a definite height — the CLI's
31
+ * standalone page and every typebulb.com context (all frame-sized iframes) — so a
32
+ * fill bulb (`height: 100%` root) resolves against the window instead of collapsing
33
+ * to zero. NEVER for a content-measured embed: there `body` must stay content-height
34
+ * or the auto-height protocol's `body.scrollHeight` can no longer shrink the frame
35
+ * (TB-Agent-Mirror-Embed.md). */
36
+ export const pageHeightStyle = ` html, body { height: 100%; }`;
37
+ //# sourceMappingURL=pageShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pageShell.js","sourceRoot":"","sources":["../../format/src/pageShell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;qFAgBqF;AACrF,MAAM,CAAC,MAAM,cAAc,GAAG;;;;sDAIwB,CAAA;AAEtD;;;;;kCAKkC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,kCAAkC,CAAA"}