@huyooo/ai-chat-core 0.3.23 → 0.3.24

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.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 模型目录 / Ones 管理端共用常量(浏览器安全,不含 ChatRuntime / Node 依赖)
3
+ */
4
+ export type { CatalogSupplierKind } from './chat-supplier-constants';
5
+ export { PROXY_SUPPLIER_IDS, isProxySupplierId, normalizeCatalogSupplierKind, resolveCatalogSupplierKind, } from './chat-supplier-constants';
6
+ export type { ChatServerUpstream } from './chat-catalog-constants';
7
+ export { CHAT_RUNTIME_PROTOCOL_OPTIONS, formatChatRuntimeProtocolLabel, } from './chat-runtime-protocol-options';
@@ -0,0 +1 @@
1
+ const e=[`openrouter`,`volcengine-ark-coding-plan`,`volcengine-ark-agent-plan`];function t(t){for(let n of e)if(n===t)return!0;return!1}function n(e){return e===`agent_proxy`?`agent_proxy`:`agent_vendor`}function r(e,r){return t(e)?`agent_proxy`:n(r)}const i=[`ark_v1`,`deepseek_v1`,`qwen_v1`,`qwen_text_v1`,`glm_v1`,`moonshot_v1`,`minimax_v1`,`vercel_gateway_v1`,`anthropic_v1`,`gemini_v1`,`openai_v1`,`openai_chat_v1`,`grok_v1`],a={ark_v1:`ark_v1 · 火山 Responses`,deepseek_v1:`deepseek_v1 · DeepSeek Chat`,qwen_v1:`qwen_v1 · 通义多模态`,qwen_text_v1:`qwen_text_v1 · 通义文本生成`,glm_v1:`glm_v1 · 智谱 GLM`,moonshot_v1:`moonshot_v1 · Kimi`,minimax_v1:`minimax_v1 · MiniMax Anthropic 兼容`,vercel_gateway_v1:`vercel_gateway_v1 · Vercel AI Gateway`,anthropic_v1:`anthropic_v1 · Anthropic Messages`,gemini_v1:`gemini_v1 · Gemini Generate`,openai_v1:`openai_v1 · OpenAI Responses`,openai_chat_v1:`openai_chat_v1 · OpenAI Chat Completions 兼容`,grok_v1:`grok_v1 · xAI Grok`},o=i.map(e=>({value:e,label:a[e]}));function s(e){let t=e?.trim();return t?o.find(e=>e.value===t)?.label??t:`—`}export{o as CHAT_RUNTIME_PROTOCOL_OPTIONS,e as PROXY_SUPPLIER_IDS,s as formatChatRuntimeProtocolLabel,t as isProxySupplierId,n as normalizeCatalogSupplierKind,r as resolveCatalogSupplierKind};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ai-chat-core",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
4
4
  "description": "AI Chat Core - HybridAgent with Doubao + Gemini",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,6 +31,11 @@
31
31
  "types": "./dist/platform.d.ts",
32
32
  "import": "./dist/platform.js",
33
33
  "default": "./dist/platform.js"
34
+ },
35
+ "./catalog": {
36
+ "types": "./dist/catalog.d.ts",
37
+ "import": "./dist/catalog.js",
38
+ "default": "./dist/catalog.js"
34
39
  }
35
40
  },
36
41
  "files": [