@xynogen/pix-9router 0.4.2 → 0.4.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-9router",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Pi extension — 9Router provider + fetch/search tools via router API",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/provider.ts CHANGED
@@ -11,6 +11,7 @@
11
11
 
12
12
  import type { RefreshModelsContext } from "@earendil-works/pi-ai";
13
13
  import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
14
+ import { ioTimeoutSignal } from "@xynogen/pix-runtime/io";
14
15
  import type { ModelsDevModel, RouterModel } from "./data.js";
15
16
  import { fetchModelsDevIndex, lookupInIndex, routerBaseUrl, routerModels } from "./data.js";
16
17
 
@@ -147,7 +148,7 @@ function providerConfig(
147
148
  async refreshModels({ signal, allowNetwork }: RefreshModelsContext) {
148
149
  if (!allowNetwork) return models.map(toModelConfig(devIndex));
149
150
  const res = await fetch(`${routerBaseUrl()}/models`, {
150
- signal: AbortSignal.any([AbortSignal.timeout(8_000), ...(signal ? [signal] : [])]),
151
+ signal: ioTimeoutSignal(signal),
151
152
  headers: {
152
153
  Authorization: `Bearer ${apiKey}`,
153
154
  "User-Agent": "pi-coding-agent",