typebulb 0.19.0 → 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,13 +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, effort, 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
- // 'reasoning' is the deprecated alias for 'effort'
598
- body: JSON.stringify({ messages, system, effort: effort ?? reasoning, provider, model, webSearch }),
597
+ body: JSON.stringify({ messages, system, effort, provider, model, webSearch }),
599
598
  signal
600
599
  });
601
600
  if (resp.status === 403) throw new Error((await resp.text().catch(() => '')) || 'tb.ai() is blocked \u2014 re-run with --trust');
@@ -612,12 +611,11 @@ const something = require('module-name') // NOT SUPPORTED!
612
611
  // streaming tb.server.<gen>(). Break the loop (or abort the signal) to cancel.
613
612
  const aiStream = (opts = {}) => (async function* () {
614
613
  if (isEmbedded) throw embedErr('tb.ai.stream()');
615
- const { messages, system, effort, reasoning, provider, model, webSearch, signal } = opts;
614
+ const { messages, system, effort, provider, model, webSearch, signal } = opts;
616
615
  const resp = await fetch('/__ai', {
617
616
  method: 'POST',
618
617
  headers: { 'Content-Type': 'application/json' },
619
- // 'reasoning' is the deprecated alias for 'effort'
620
- body: JSON.stringify({ messages, system, effort: effort ?? reasoning, provider, model, webSearch, stream: true }),
618
+ body: JSON.stringify({ messages, system, effort, provider, model, webSearch, stream: true }),
621
619
  signal
622
620
  });
623
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.19.0",
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": {