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/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
- // Own-keys check - true when the user's own AI backs tb.ai (env keys, compat endpoint, or Ollama)
821
- hasOwnKeys: async () => {
822
- if (isEmbedded) return false;
823
- const resp = await fetch('/__has-own-keys');
824
- if (!resp.ok) return false;
825
- return (await resp.json()) === true;
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
- // Own-keys check - true when the user's own AI backs tb.ai (env keys, compat endpoint, or Ollama)
618
- hasOwnKeys: async () => {
619
- if (isEmbedded) return false;
620
- const resp = await fetch('/__has-own-keys');
621
- if (!resp.ok) return false;
622
- return (await resp.json()) === true;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typebulb",
3
- "version": "0.46.0",
3
+ "version": "0.47.1",
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",