typebulb 0.46.0 → 0.47.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.
- package/README.md +18 -3
- package/SKILL.md +20 -5
- package/dist/agents/claude/client.js +133 -132
- package/dist/agents/pi/client.js +134 -133
- package/dist/agents/pi/matchu-patchu.ts +1 -1
- package/dist/ai/protocol.d.ts +4 -0
- package/dist/ai/protocol.d.ts.map +1 -1
- package/dist/dts/tbTypings.d.ts +2 -2
- package/dist/dts/tbTypings.d.ts.map +1 -1
- package/dist/dts/tbTypings.js +18 -7
- package/dist/dts/tbTypings.js.map +1 -1
- package/dist/index.js +244 -234
- package/dist/render.js +7 -6
- package/dist/servers.js +7 -6
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -817,12 +817,13 @@ const something = require('module-name') // NOT SUPPORTED!
|
|
|
817
817
|
return resp.json();
|
|
818
818
|
},
|
|
819
819
|
|
|
820
|
-
//
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
820
|
+
// AI-access check - 'own' when the user's own AI backs tb.ai (env keys, compat endpoint, or
|
|
821
|
+
// Ollama), else 'none': an embed has no host AI, and the CLI has no courtesy model
|
|
822
|
+
aiAccess: async () => {
|
|
823
|
+
if (isEmbedded) return 'none';
|
|
824
|
+
const resp = await fetch('/__ai-access');
|
|
825
|
+
if (!resp.ok) return 'none';
|
|
826
|
+
return await resp.json();
|
|
826
827
|
},
|
|
827
828
|
|
|
828
829
|
// Dump just logs to console in local mode
|
package/dist/servers.js
CHANGED
|
@@ -614,12 +614,13 @@ ${s}`}function Hd(t){let e=ur.filter(n=>t[n]).map(n=>i0(n,t[n]));return["---",`f
|
|
|
614
614
|
return resp.json();
|
|
615
615
|
},
|
|
616
616
|
|
|
617
|
-
//
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
617
|
+
// AI-access check - 'own' when the user's own AI backs tb.ai (env keys, compat endpoint, or
|
|
618
|
+
// Ollama), else 'none': an embed has no host AI, and the CLI has no courtesy model
|
|
619
|
+
aiAccess: async () => {
|
|
620
|
+
if (isEmbedded) return 'none';
|
|
621
|
+
const resp = await fetch('/__ai-access');
|
|
622
|
+
if (!resp.ok) return 'none';
|
|
623
|
+
return await resp.json();
|
|
623
624
|
},
|
|
624
625
|
|
|
625
626
|
// Dump just logs to console in local mode
|