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/README.md +8 -7
- package/SKILL.md +10 -9
- package/dist/agents/claude/client.js +4 -5
- package/dist/agents/codex/client.js +4 -5
- package/dist/agents/pi/client.js +4 -5
- package/dist/dts/tbTypings.d.ts.map +1 -1
- package/dist/dts/tbTypings.js +284 -281
- package/dist/dts/tbTypings.js.map +1 -1
- package/dist/format/runtimeState.d.ts +9 -8
- package/dist/format/runtimeState.d.ts.map +1 -1
- package/dist/format/runtimeState.js +63 -62
- package/dist/format/runtimeState.js.map +1 -1
- package/dist/index.js +107 -54
- package/dist/render.js +4 -5
- package/dist/servers.js +4 -5
- package/package.json +1 -1
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
|
|
705
|
-
//
|
|
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
|
|
921
|
-
//
|
|
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
|
|
359
|
-
//
|
|
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
|
|
575
|
-
//
|
|
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) => {
|