typebulb 0.18.7 → 0.19.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
@@ -589,12 +589,12 @@ const something = require('module-name') // NOT SUPPORTED!
589
589
  }
590
590
 
591
591
  // tb.ai(): non-streaming, resolves with the full { text } (unchanged 90% path).
592
- const aiCall = async ({ messages, system, reasoning, provider, model, webSearch, signal } = {}) => {
592
+ const aiCall = async ({ messages, system, effort, provider, model, webSearch, signal } = {}) => {
593
593
  if (isEmbedded) throw embedErr('tb.ai()');
594
594
  const resp = await fetch('/__ai', {
595
595
  method: 'POST',
596
596
  headers: { 'Content-Type': 'application/json' },
597
- body: JSON.stringify({ messages, system, reasoning, provider, model, webSearch }),
597
+ body: JSON.stringify({ messages, system, effort, provider, model, webSearch }),
598
598
  signal
599
599
  });
600
600
  if (resp.status === 403) throw new Error((await resp.text().catch(() => '')) || 'tb.ai() is blocked \u2014 re-run with --trust');
@@ -611,11 +611,11 @@ const something = require('module-name') // NOT SUPPORTED!
611
611
  // streaming tb.server.<gen>(). Break the loop (or abort the signal) to cancel.
612
612
  const aiStream = (opts = {}) => (async function* () {
613
613
  if (isEmbedded) throw embedErr('tb.ai.stream()');
614
- const { messages, system, reasoning, provider, model, webSearch, signal } = opts;
614
+ const { messages, system, effort, provider, model, webSearch, signal } = opts;
615
615
  const resp = await fetch('/__ai', {
616
616
  method: 'POST',
617
617
  headers: { 'Content-Type': 'application/json' },
618
- body: JSON.stringify({ messages, system, reasoning, provider, model, webSearch, stream: true }),
618
+ body: JSON.stringify({ messages, system, effort, provider, model, webSearch, stream: true }),
619
619
  signal
620
620
  });
621
621
  if (resp.status === 403) throw new Error((await resp.text().catch(() => '')) || 'tb.ai() is blocked \u2014 re-run with --trust');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typebulb",
3
- "version": "0.18.7",
3
+ "version": "0.19.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
  "license": "MIT",
6
6
  "repository": {