@standardagents/builder 0.13.1 → 0.13.2
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/built-in-routes.js +44445 -14631
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/assets/index.css +1 -1
- package/dist/client/index.js +29 -29
- package/dist/client/vue.js +1 -1
- package/dist/image-processing.js +34 -13
- package/dist/image-processing.js.map +1 -1
- package/dist/{index-D8PIt3cR.d.ts → index-8zDQpR2z.d.ts} +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +408 -49
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +31 -7
- package/dist/plugin.js.map +1 -1
- package/dist/sip.wasm +0 -0
- package/dist/test.d.ts +1 -1
- package/package.json +6 -5
package/dist/plugin.js
CHANGED
|
@@ -1384,23 +1384,47 @@ function formatSessionBinding(binding) {
|
|
|
1384
1384
|
|
|
1385
1385
|
// src/providers/catalog.ts
|
|
1386
1386
|
var FIRST_PARTY_PROVIDERS = [
|
|
1387
|
+
{
|
|
1388
|
+
name: "cloudflare",
|
|
1389
|
+
package: "@standardagents/cloudflare",
|
|
1390
|
+
label: "Cloudflare Workers AI",
|
|
1391
|
+
envKeys: ["CLOUDFLARE_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID"]
|
|
1392
|
+
},
|
|
1387
1393
|
{
|
|
1388
1394
|
name: "cerebras",
|
|
1389
1395
|
package: "@standardagents/cerebras",
|
|
1390
1396
|
label: "Cerebras",
|
|
1391
|
-
|
|
1397
|
+
envKeys: ["CEREBRAS_API_KEY"]
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
name: "google",
|
|
1401
|
+
package: "@standardagents/google",
|
|
1402
|
+
label: "Google Gemini",
|
|
1403
|
+
envKeys: ["GOOGLE_API_KEY"]
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
name: "groq",
|
|
1407
|
+
package: "@standardagents/groq",
|
|
1408
|
+
label: "Groq",
|
|
1409
|
+
envKeys: ["GROQ_API_KEY"]
|
|
1392
1410
|
},
|
|
1393
1411
|
{
|
|
1394
1412
|
name: "openai",
|
|
1395
1413
|
package: "@standardagents/openai",
|
|
1396
1414
|
label: "OpenAI",
|
|
1397
|
-
|
|
1415
|
+
envKeys: ["OPENAI_API_KEY"]
|
|
1398
1416
|
},
|
|
1399
1417
|
{
|
|
1400
1418
|
name: "openrouter",
|
|
1401
1419
|
package: "@standardagents/openrouter",
|
|
1402
1420
|
label: "OpenRouter",
|
|
1403
|
-
|
|
1421
|
+
envKeys: ["OPENROUTER_API_KEY"]
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
name: "xai",
|
|
1425
|
+
package: "@standardagents/xai",
|
|
1426
|
+
label: "xAI",
|
|
1427
|
+
envKeys: ["XAI_API_KEY"]
|
|
1404
1428
|
}
|
|
1405
1429
|
];
|
|
1406
1430
|
function humanizeProviderName(name) {
|
|
@@ -1412,7 +1436,7 @@ function packageToCustomProvider(pkg) {
|
|
|
1412
1436
|
name,
|
|
1413
1437
|
package: pkg,
|
|
1414
1438
|
label: humanizeProviderName(name),
|
|
1415
|
-
|
|
1439
|
+
envKeys: [`${name.toUpperCase().replace(/-/g, "_")}_API_KEY`],
|
|
1416
1440
|
isCustom: true
|
|
1417
1441
|
};
|
|
1418
1442
|
}
|
|
@@ -6588,11 +6612,11 @@ export function getVisibleToolNames() {
|
|
|
6588
6612
|
import { DurableThread as _BaseDurableThread } from '@standardagents/builder/runtime';
|
|
6589
6613
|
import { DurableAgentBuilder as _BaseDurableAgentBuilder } from '@standardagents/builder/runtime';
|
|
6590
6614
|
|
|
6591
|
-
// Import sip WASM module and
|
|
6615
|
+
// Import sip WASM module and readiness helper
|
|
6592
6616
|
// Static import allows workerd to pre-compile the WASM at bundle time
|
|
6593
6617
|
// WASM is bundled in builder's dist to avoid transitive dependency resolution issues
|
|
6594
6618
|
import _sipWasm from '@standardagents/builder/dist/sip.wasm';
|
|
6595
|
-
import {
|
|
6619
|
+
import { ready as _initSipWasm } from '@standardagents/sip';
|
|
6596
6620
|
|
|
6597
6621
|
// Re-export router from virtual:@standardagents-routes
|
|
6598
6622
|
export { router } from 'virtual:@standardagents-routes';
|
|
@@ -6636,7 +6660,7 @@ export class DurableThread extends _BaseDurableThread {
|
|
|
6636
6660
|
// blockConcurrencyWhile ensures WASM is ready before handling any requests
|
|
6637
6661
|
// Pass the statically imported WASM module for workerd to pre-compile
|
|
6638
6662
|
ctx.blockConcurrencyWhile(async () => {
|
|
6639
|
-
await _initSipWasm(_sipWasm);
|
|
6663
|
+
await _initSipWasm({ wasm: _sipWasm });
|
|
6640
6664
|
});
|
|
6641
6665
|
}
|
|
6642
6666
|
|