typebulb 0.51.3 → 0.52.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 +4 -4
- package/SKILL.md +6 -6
- package/dist/agents/claude/client.js +201 -200
- package/dist/agents/claude/styles.css +34 -10
- package/dist/agents/codex/client.js +203 -202
- package/dist/agents/codex/styles.css +34 -10
- package/dist/agents/pi/client.js +217 -216
- package/dist/agents/pi/styles.css +34 -10
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/protocol.d.ts +24 -0
- package/dist/ai/protocol.d.ts.map +1 -1
- package/dist/ai/protocol.js +15 -0
- package/dist/ai/protocol.js.map +1 -1
- package/dist/ai/providers/anthropic.d.ts +4 -0
- package/dist/ai/providers/anthropic.d.ts.map +1 -1
- package/dist/ai/providers/anthropic.js +32 -1
- package/dist/ai/providers/anthropic.js.map +1 -1
- package/dist/ai/providers/chatCompletions.d.ts +13 -0
- package/dist/ai/providers/chatCompletions.d.ts.map +1 -1
- package/dist/ai/providers/chatCompletions.js +19 -11
- package/dist/ai/providers/chatCompletions.js.map +1 -1
- package/dist/ai/providers/gemini.d.ts +10 -0
- package/dist/ai/providers/gemini.d.ts.map +1 -1
- package/dist/ai/providers/gemini.js +21 -2
- package/dist/ai/providers/gemini.js.map +1 -1
- package/dist/ai/providers/ollama.d.ts +3 -0
- package/dist/ai/providers/ollama.d.ts.map +1 -1
- package/dist/ai/providers/ollama.js +5 -1
- package/dist/ai/providers/ollama.js.map +1 -1
- package/dist/ai/providers/openAI.d.ts +12 -0
- package/dist/ai/providers/openAI.d.ts.map +1 -1
- package/dist/ai/providers/openAI.js +18 -1
- package/dist/ai/providers/openAI.js.map +1 -1
- package/dist/ai/providers/openRouter.d.ts +3 -0
- package/dist/ai/providers/openRouter.d.ts.map +1 -1
- package/dist/ai/providers/openRouter.js +5 -0
- package/dist/ai/providers/openRouter.js.map +1 -1
- package/dist/ai/sseParser.d.ts +13 -1
- package/dist/ai/sseParser.d.ts.map +1 -1
- package/dist/ai/sseParser.js +26 -5
- package/dist/ai/sseParser.js.map +1 -1
- package/dist/dts/tbTypings.d.ts.map +1 -1
- package/dist/dts/tbTypings.js +15 -4
- package/dist/dts/tbTypings.js.map +1 -1
- package/dist/index.js +254 -229
- package/dist/render.js +4 -3
- package/dist/servers.js +103 -102
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -705,15 +705,16 @@ const something = require('module-name') // NOT SUPPORTED!
|
|
|
705
705
|
err.retryable = !!data.retryable;
|
|
706
706
|
return err;
|
|
707
707
|
};
|
|
708
|
-
// tb.ai(): non-streaming, resolves with the full { text } (unchanged 90% path).
|
|
708
|
+
// tb.ai(): non-streaming, resolves with the full { text, usage? } (unchanged 90% path).
|
|
709
709
|
const aiCall = async (opts) => {
|
|
710
710
|
const resp = await aiFetch('tb.ai()', opts, undefined);
|
|
711
711
|
const data = await resp.json();
|
|
712
712
|
if (!resp.ok) throw aiError(data);
|
|
713
713
|
return data;
|
|
714
714
|
};
|
|
715
|
-
// tb.ai.stream(): async iterable of AiChunk ({ kind:'text'|'reasoning', text }
|
|
716
|
-
//
|
|
715
|
+
// tb.ai.stream(): async iterable of AiChunk ({ kind:'text'|'reasoning', text } deltas, then one
|
|
716
|
+
// final { kind:'usage', usage } when the provider reported counts). Same idiom as a streaming
|
|
717
|
+
// tb.server.<gen>(). Break the loop (or abort the signal) to cancel.
|
|
717
718
|
const aiStream = (opts = {}) => (async function* () {
|
|
718
719
|
const resp = await aiFetch('tb.ai.stream()', opts, true);
|
|
719
720
|
if (!resp.ok && !isStreamResp(resp)) throw aiError(await resp.json().catch(() => ({})));
|