@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/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
- envKey: "CEREBRAS_API_KEY"
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
- envKey: "OPENAI_API_KEY"
1415
+ envKeys: ["OPENAI_API_KEY"]
1398
1416
  },
1399
1417
  {
1400
1418
  name: "openrouter",
1401
1419
  package: "@standardagents/openrouter",
1402
1420
  label: "OpenRouter",
1403
- envKey: "OPENROUTER_API_KEY"
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
- envKey: `${name.toUpperCase().replace(/-/g, "_")}_API_KEY`,
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 initializer
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 { initWithWasmModule as _initSipWasm } from '@standardagents/sip';
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