typebulb 0.58.0 → 0.58.2

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/render.js CHANGED
@@ -701,8 +701,8 @@ ${B1}
701
701
  // tb.setData / tb.setInsight (TB-State.md), on the engine both hosts share. The globals and the
702
702
  // transport are all this host owns: encoding round-trips to the server because the page carries
703
703
  // no fflate on purpose, and the fragment write is the address bar the setters exist to fill.
704
- // Resolves the shareable URL, or undefined when there is no address bar to put it in (inline) or
705
- // the state is too large to encode \u2014 the one failure an author must handle.
704
+ // Resolves once that write has landed, and hands back nothing: the link is then tb.url() like
705
+ // any other. An inline bulb has no address bar, so its swap is page-local and never encodes.
706
706
  window.__tbState.init({
707
707
  applyData: (chunks) => { window.__TB_DATA__ = chunks; },
708
708
  applyInsight: (json) => { window.__TB_INSIGHT__ = json; },
@@ -720,7 +720,6 @@ ${B1}
720
720
  // earlier fragment, or the address bar keeps addressing a run the page is no longer
721
721
  // showing \u2014 and a reload would silently revert to it.
722
722
  history.replaceState(null, '', location.pathname + location.search + hash);
723
- return hash ? location.href : undefined;
724
723
  });
725
724
  }
726
725
  });
@@ -917,8 +916,8 @@ ${B1}
917
916
  if (inferRunning) return Promise.reject(new Error('Inference already in progress'));
918
917
  inferRunning = true;
919
918
  // Data to preview: the explicit arg, else undefined \u2014 the modal then seeds from the SOURCE
920
- // chunks (/__infer-info), the local Data tab, exactly as .com's IDE modal reseeds from the
921
- // Data tab rather than post-run runtime state.
919
+ // chunks the page currently holds, else the SOURCE chunks from /__infer-info \u2014 the same
920
+ // precedence .com's modal seeds by (TB-Inference.md, "Data seed").
922
921
  let data = opts.data;
923
922
  if (data !== undefined && !Array.isArray(data)) data = [data];
924
923
  return new Promise((resolve, reject) => {
package/dist/servers.js CHANGED
@@ -355,8 +355,8 @@ ${s}`}function b1(t){let e=dr.filter(n=>t[n]).map(n=>U0(n,t[n]));return["---",`f
355
355
  // tb.setData / tb.setInsight (TB-State.md), on the engine both hosts share. The globals and the
356
356
  // transport are all this host owns: encoding round-trips to the server because the page carries
357
357
  // no fflate on purpose, and the fragment write is the address bar the setters exist to fill.
358
- // Resolves the shareable URL, or undefined when there is no address bar to put it in (inline) or
359
- // the state is too large to encode \u2014 the one failure an author must handle.
358
+ // Resolves once that write has landed, and hands back nothing: the link is then tb.url() like
359
+ // any other. An inline bulb has no address bar, so its swap is page-local and never encodes.
360
360
  window.__tbState.init({
361
361
  applyData: (chunks) => { window.__TB_DATA__ = chunks; },
362
362
  applyInsight: (json) => { window.__TB_INSIGHT__ = json; },
@@ -374,7 +374,6 @@ ${s}`}function b1(t){let e=dr.filter(n=>t[n]).map(n=>U0(n,t[n]));return["---",`f
374
374
  // earlier fragment, or the address bar keeps addressing a run the page is no longer
375
375
  // showing \u2014 and a reload would silently revert to it.
376
376
  history.replaceState(null, '', location.pathname + location.search + hash);
377
- return hash ? location.href : undefined;
378
377
  });
379
378
  }
380
379
  });
@@ -571,8 +570,8 @@ ${s}`}function b1(t){let e=dr.filter(n=>t[n]).map(n=>U0(n,t[n]));return["---",`f
571
570
  if (inferRunning) return Promise.reject(new Error('Inference already in progress'));
572
571
  inferRunning = true;
573
572
  // Data to preview: the explicit arg, else undefined \u2014 the modal then seeds from the SOURCE
574
- // chunks (/__infer-info), the local Data tab, exactly as .com's IDE modal reseeds from the
575
- // Data tab rather than post-run runtime state.
573
+ // chunks the page currently holds, else the SOURCE chunks from /__infer-info \u2014 the same
574
+ // precedence .com's modal seeds by (TB-Inference.md, "Data seed").
576
575
  let data = opts.data;
577
576
  if (data !== undefined && !Array.isArray(data)) data = [data];
578
577
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typebulb",
3
- "version": "0.58.0",
3
+ "version": "0.58.2",
4
4
  "description": "Typebulb CLI to run single-file markdown apps called bulbs, either as standalone web apps or embedded in agent responses.",
5
5
  "keywords": [
6
6
  "bulb",