@poolzin/pool-bot 2026.4.51 → 2026.4.52

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.
@@ -1 +1 @@
1
- {"version":3,"file":"models-config.providers.d.ts","sourceRoot":"","sources":["../../src/agents/models-config.providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA+CzD,KAAK,YAAY,GAAG,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;AACzD,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AA4C5E,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AAgEvD,eAAO,MAAM,gBAAgB,oCAAoC,CAAC;AAClE,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AA4CxD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAOvE;AAqID,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAQzD;AAeD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACzC,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,YAAY,CAAC,WAAW,CAAC,CAgE5B;AA0ED,wBAAgB,uBAAuB,IAAI,cAAc,CAgBxD;AAqED,wBAAgB,mBAAmB,IAAI,cAAc,CAgBpD;AA+DD,wBAAgB,oBAAoB,IAAI,cAAc,CAyBrD;AAED,wBAAgB,mBAAmB,IAAI,cAAc,CAkCpD;AAED,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC;CAC3D,GAAG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,IAAI,cAAc,CAgBxD;AAqED,wBAAgB,mBAAmB,IAAI,cAAc,CAgBpD;AA+DD,wBAAgB,oBAAoB,IAAI,cAAc,CAyBrD;AAED,wBAAgB,mBAAmB,IAAI,cAAc,CAkCpD;AAED,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC;CAC3D,GAAG,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAsLrC;AAED,wBAAsB,8BAA8B,CAAC,MAAM,EAAE;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAwDjC;AAED,wBAAsB,8BAA8B,CAAC,MAAM,EAAE;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CA2BjC"}
@@ -1,6 +1,7 @@
1
1
  import { createSubsystemLogger } from "../logging/subsystem.js";
2
2
  import { DEFAULT_COPILOT_API_BASE_URL, resolveCopilotApiToken, } from "../providers/github-copilot-token.js";
3
3
  import { ensureAuthProfileStore, listProfilesForProvider } from "./auth-profiles.js";
4
+ import { getApiKeyFromPool } from "../infra/provider-usage.auth.js";
4
5
  import { discoverBedrockModels } from "./bedrock-discovery.js";
5
6
  import { buildBytePlusModelDefinition, BYTEPLUS_BASE_URL, BYTEPLUS_MODEL_CATALOG, BYTEPLUS_CODING_BASE_URL, BYTEPLUS_CODING_MODEL_CATALOG, } from "./byteplus-models.js";
6
7
  import { buildCloudflareAiGatewayModelDefinition, resolveCloudflareAiGatewayBaseUrl, } from "./cloudflare-ai-gateway.js";
@@ -235,6 +236,11 @@ function resolveAwsSdkApiKeyVarName() {
235
236
  return resolveAwsSdkEnvVarName() ?? "AWS_PROFILE";
236
237
  }
237
238
  function resolveApiKeyFromProfiles(params) {
239
+ // First, check credential pools (Hermes-inspired feature)
240
+ const poolKey = getApiKeyFromPool(params.provider);
241
+ if (poolKey) {
242
+ return poolKey;
243
+ }
238
244
  const ids = listProfilesForProvider(params.store, params.provider);
239
245
  for (const id of ids) {
240
246
  const cred = params.store.profiles[id];
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2026.4.51",
3
- "commit": "2df94853f3a609f08c2ba37d07a099fdaf03484c",
4
- "builtAt": "2026-04-09T02:48:57.769Z"
2
+ "version": "2026.4.52",
3
+ "commit": "33af93cba3aa13f3fd09424f6dc03d6e0010d283",
4
+ "builtAt": "2026-04-09T03:19:04.596Z"
5
5
  }
@@ -95,8 +95,8 @@ export declare const PoolBotErrorSchema: z.ZodObject<{
95
95
  category: z.ZodEnum<{
96
96
  gateway: "gateway";
97
97
  auth: "auth";
98
- runtime: "runtime";
99
98
  config: "config";
99
+ runtime: "runtime";
100
100
  network: "network";
101
101
  plugin: "plugin";
102
102
  validation: "validation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzin/pool-bot",
3
- "version": "2026.4.51",
3
+ "version": "2026.4.52",
4
4
  "description": "🎱 Pool Bot - AI assistant with PLCODE integrations",
5
5
  "keywords": [],
6
6
  "license": "MIT",