@shipfox/client-agent 10.0.1 → 12.0.0

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,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 37 files with swc (509.19ms)
2
+ Successfully compiled: 37 files with swc (304.55ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @shipfox/client-agent
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [96ae951]
8
+ - @shipfox/client-shell@12.0.0
9
+
10
+ ## 11.0.0
11
+
12
+ ### Patch Changes
13
+
14
+ - 43ce975: Align Pi harness compatibility and provider catalog metadata with the current Pi SDK.
15
+ - Updated dependencies [662516d]
16
+ - Updated dependencies [43ce975]
17
+ - Updated dependencies [e9280fc]
18
+ - @shipfox/client-shell@11.0.0
19
+ - @shipfox/api-agent-dto@10.0.0
20
+ - @shipfox/client-api@6.0.1
21
+ - @shipfox/client-ui@6.0.2
22
+ - @shipfox/react-ui@0.3.7
23
+
3
24
  ## 10.0.1
4
25
 
5
26
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"harness-policy.d.ts","sourceRoot":"","sources":["../../src/core/harness-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,SAAS,EAAE,cAAc,EAAC,MAAM,aAAa,CAAC;AAE9E,eAAO,MAAM,eAAe,EAAE,SAAgB,CAAC;AAiD/C,wBAAgB,aAAa,IAAI,SAAS,iBAAiB,EAAE,CAE5D;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,SAAS,GAAG,iBAAiB,CAI3D;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAEzF;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAIjG;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,UAAU,GACX,EAAE;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,SAAS,EAAE,CAKd"}
1
+ {"version":3,"file":"harness-policy.d.ts","sourceRoot":"","sources":["../../src/core/harness-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,SAAS,EAAE,cAAc,EAAC,MAAM,aAAa,CAAC;AAE9E,eAAO,MAAM,eAAe,EAAE,SAAgB,CAAC;AAmD/C,wBAAgB,aAAa,IAAI,SAAS,iBAAiB,EAAE,CAE5D;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,SAAS,GAAG,iBAAiB,CAI3D;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAEzF;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAIjG;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,UAAU,GACX,EAAE;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,SAAS,EAAE,CAKd"}
@@ -28,6 +28,8 @@ const harnesses = [
28
28
  'fireworks',
29
29
  'together',
30
30
  'kimi-coding',
31
+ 'qwen-token-plan',
32
+ 'qwen-token-plan-cn',
31
33
  'minimax',
32
34
  'minimax-cn',
33
35
  'moonshotai',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/core/harness-policy.ts"],"sourcesContent":["import type {HarnessDescriptor, HarnessId, ProviderConfig} from './models.js';\n\nexport const DEFAULT_HARNESS: HarnessId = 'pi';\n\nconst harnesses: readonly HarnessDescriptor[] = [\n {\n id: 'pi',\n label: 'pi',\n description: 'Works with 30+ model providers',\n supportedProviderIds: [\n 'anthropic',\n 'ant-ling',\n 'azure-openai-responses',\n 'openai',\n 'deepseek',\n 'nvidia',\n 'google',\n 'mistral',\n 'groq',\n 'cerebras',\n 'cloudflare-ai-gateway',\n 'cloudflare-workers-ai',\n 'xai',\n 'openrouter',\n 'vercel-ai-gateway',\n 'zai',\n 'zai-coding-cn',\n 'opencode',\n 'opencode-go',\n 'huggingface',\n 'fireworks',\n 'together',\n 'kimi-coding',\n 'minimax',\n 'minimax-cn',\n 'moonshotai',\n 'moonshotai-cn',\n 'xiaomi',\n 'xiaomi-token-plan-cn',\n 'xiaomi-token-plan-ams',\n 'xiaomi-token-plan-sgp',\n ],\n },\n {\n id: 'claude',\n label: 'Claude',\n description: 'Runs on your Anthropic API key',\n supportedProviderIds: ['anthropic'],\n },\n];\n\nexport function listHarnesses(): readonly HarnessDescriptor[] {\n return harnesses;\n}\n\nexport function getHarness(id: HarnessId): HarnessDescriptor {\n const harness = harnesses.find((item) => item.id === id);\n if (harness === undefined) throw new Error(`Unknown harness: ${id}`);\n return harness;\n}\n\nexport function harnessSupportsProvider(harnessId: HarnessId, providerId: string): boolean {\n return getHarness(harnessId).supportedProviderIds.includes(providerId);\n}\n\nexport function configSupportsHarness(config: ProviderConfig, harness: HarnessDescriptor): boolean {\n return config.kind === 'custom'\n ? harness.id === DEFAULT_HARNESS\n : harness.supportedProviderIds.includes(config.providerId);\n}\n\nexport function compatibleHarnessIds({\n isCustom,\n providerId,\n}: {\n isCustom: boolean;\n providerId: string;\n}): HarnessId[] {\n if (isCustom) return [DEFAULT_HARNESS];\n return harnesses\n .filter((harness) => harness.supportedProviderIds.includes(providerId))\n .map((harness) => harness.id);\n}\n"],"names":["DEFAULT_HARNESS","harnesses","id","label","description","supportedProviderIds","listHarnesses","getHarness","harness","find","item","undefined","Error","harnessSupportsProvider","harnessId","providerId","includes","configSupportsHarness","config","kind","compatibleHarnessIds","isCustom","filter","map"],"mappings":"AAEA,OAAO,MAAMA,kBAA6B,KAAK;AAE/C,MAAMC,YAA0C;IAC9C;QACEC,IAAI;QACJC,OAAO;QACPC,aAAa;QACbC,sBAAsB;YACpB;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;SACD;IACH;IACA;QACEH,IAAI;QACJC,OAAO;QACPC,aAAa;QACbC,sBAAsB;YAAC;SAAY;IACrC;CACD;AAED,OAAO,SAASC;IACd,OAAOL;AACT;AAEA,OAAO,SAASM,WAAWL,EAAa;IACtC,MAAMM,UAAUP,UAAUQ,IAAI,CAAC,CAACC,OAASA,KAAKR,EAAE,KAAKA;IACrD,IAAIM,YAAYG,WAAW,MAAM,IAAIC,MAAM,CAAC,iBAAiB,EAAEV,IAAI;IACnE,OAAOM;AACT;AAEA,OAAO,SAASK,wBAAwBC,SAAoB,EAAEC,UAAkB;IAC9E,OAAOR,WAAWO,WAAWT,oBAAoB,CAACW,QAAQ,CAACD;AAC7D;AAEA,OAAO,SAASE,sBAAsBC,MAAsB,EAAEV,OAA0B;IACtF,OAAOU,OAAOC,IAAI,KAAK,WACnBX,QAAQN,EAAE,KAAKF,kBACfQ,QAAQH,oBAAoB,CAACW,QAAQ,CAACE,OAAOH,UAAU;AAC7D;AAEA,OAAO,SAASK,qBAAqB,EACnCC,QAAQ,EACRN,UAAU,EAIX;IACC,IAAIM,UAAU,OAAO;QAACrB;KAAgB;IACtC,OAAOC,UACJqB,MAAM,CAAC,CAACd,UAAYA,QAAQH,oBAAoB,CAACW,QAAQ,CAACD,aAC1DQ,GAAG,CAAC,CAACf,UAAYA,QAAQN,EAAE;AAChC"}
1
+ {"version":3,"sources":["../../src/core/harness-policy.ts"],"sourcesContent":["import type {HarnessDescriptor, HarnessId, ProviderConfig} from './models.js';\n\nexport const DEFAULT_HARNESS: HarnessId = 'pi';\n\nconst harnesses: readonly HarnessDescriptor[] = [\n {\n id: 'pi',\n label: 'pi',\n description: 'Works with 30+ model providers',\n supportedProviderIds: [\n 'anthropic',\n 'ant-ling',\n 'azure-openai-responses',\n 'openai',\n 'deepseek',\n 'nvidia',\n 'google',\n 'mistral',\n 'groq',\n 'cerebras',\n 'cloudflare-ai-gateway',\n 'cloudflare-workers-ai',\n 'xai',\n 'openrouter',\n 'vercel-ai-gateway',\n 'zai',\n 'zai-coding-cn',\n 'opencode',\n 'opencode-go',\n 'huggingface',\n 'fireworks',\n 'together',\n 'kimi-coding',\n 'qwen-token-plan',\n 'qwen-token-plan-cn',\n 'minimax',\n 'minimax-cn',\n 'moonshotai',\n 'moonshotai-cn',\n 'xiaomi',\n 'xiaomi-token-plan-cn',\n 'xiaomi-token-plan-ams',\n 'xiaomi-token-plan-sgp',\n ],\n },\n {\n id: 'claude',\n label: 'Claude',\n description: 'Runs on your Anthropic API key',\n supportedProviderIds: ['anthropic'],\n },\n];\n\nexport function listHarnesses(): readonly HarnessDescriptor[] {\n return harnesses;\n}\n\nexport function getHarness(id: HarnessId): HarnessDescriptor {\n const harness = harnesses.find((item) => item.id === id);\n if (harness === undefined) throw new Error(`Unknown harness: ${id}`);\n return harness;\n}\n\nexport function harnessSupportsProvider(harnessId: HarnessId, providerId: string): boolean {\n return getHarness(harnessId).supportedProviderIds.includes(providerId);\n}\n\nexport function configSupportsHarness(config: ProviderConfig, harness: HarnessDescriptor): boolean {\n return config.kind === 'custom'\n ? harness.id === DEFAULT_HARNESS\n : harness.supportedProviderIds.includes(config.providerId);\n}\n\nexport function compatibleHarnessIds({\n isCustom,\n providerId,\n}: {\n isCustom: boolean;\n providerId: string;\n}): HarnessId[] {\n if (isCustom) return [DEFAULT_HARNESS];\n return harnesses\n .filter((harness) => harness.supportedProviderIds.includes(providerId))\n .map((harness) => harness.id);\n}\n"],"names":["DEFAULT_HARNESS","harnesses","id","label","description","supportedProviderIds","listHarnesses","getHarness","harness","find","item","undefined","Error","harnessSupportsProvider","harnessId","providerId","includes","configSupportsHarness","config","kind","compatibleHarnessIds","isCustom","filter","map"],"mappings":"AAEA,OAAO,MAAMA,kBAA6B,KAAK;AAE/C,MAAMC,YAA0C;IAC9C;QACEC,IAAI;QACJC,OAAO;QACPC,aAAa;QACbC,sBAAsB;YACpB;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;SACD;IACH;IACA;QACEH,IAAI;QACJC,OAAO;QACPC,aAAa;QACbC,sBAAsB;YAAC;SAAY;IACrC;CACD;AAED,OAAO,SAASC;IACd,OAAOL;AACT;AAEA,OAAO,SAASM,WAAWL,EAAa;IACtC,MAAMM,UAAUP,UAAUQ,IAAI,CAAC,CAACC,OAASA,KAAKR,EAAE,KAAKA;IACrD,IAAIM,YAAYG,WAAW,MAAM,IAAIC,MAAM,CAAC,iBAAiB,EAAEV,IAAI;IACnE,OAAOM;AACT;AAEA,OAAO,SAASK,wBAAwBC,SAAoB,EAAEC,UAAkB;IAC9E,OAAOR,WAAWO,WAAWT,oBAAoB,CAACW,QAAQ,CAACD;AAC7D;AAEA,OAAO,SAASE,sBAAsBC,MAAsB,EAAEV,OAA0B;IACtF,OAAOU,OAAOC,IAAI,KAAK,WACnBX,QAAQN,EAAE,KAAKF,kBACfQ,QAAQH,oBAAoB,CAACW,QAAQ,CAACE,OAAOH,UAAU;AAC7D;AAEA,OAAO,SAASK,qBAAqB,EACnCC,QAAQ,EACRN,UAAU,EAIX;IACC,IAAIM,UAAU,OAAO;QAACrB;KAAgB;IACtC,OAAOC,UACJqB,MAAM,CAAC,CAACd,UAAYA,QAAQH,oBAAoB,CAACW,QAAQ,CAACD,aAC1DQ,GAAG,CAAC,CAACf,UAAYA,QAAQN,EAAE;AAChC"}