feat(shared): 转发 AGC 模型目录 ts-rs 绑定

- 新增 packages/shared/src/llm/modelCatalog.ts,re-export Rust 生成的目录 DTO 与枚举
- 根 index.ts 增加 export type * from './llm/modelCatalog',AGC 从 @genarrative/shared 根导入
This commit is contained in:
2026-10-03 18:03:47 +08:00
parent e89420053a
commit f3f89efddd
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ export type * from './contracts/hyper3d';
export * from './contracts/payment';
export * from './contracts/runtime';
export * from './http';
export type * from './llm/modelCatalog';
export * from './llm/narrativeLanguage';
export * from './llm/parsers';
export * from './stores/createProfileWalletStore';
+12
View File
@@ -0,0 +1,12 @@
/**
* AGC LLM 模型目录契约(Rust `shared-contracts::llm_catalog` 的 ts-rs 生成物)。
*
* 前端不再手写第二份 `ClientLlmModel`:可用 / 不可用分桶、`reason` 枚举与
* `agentMode` / `protocol` 联合类型都以这里为准。
*/
export type { AgcAgentMode } from '../contracts/generated/AgcAgentMode';
export type { AgcModelProtocol } from '../contracts/generated/AgcModelProtocol';
export type { LlmModelsResponse } from '../contracts/generated/LlmModelsResponse';
export type { LlmModelSummary } from '../contracts/generated/LlmModelSummary';
export type { LlmModelUnavailableReason } from '../contracts/generated/LlmModelUnavailableReason';
export type { LlmUnavailableModel } from '../contracts/generated/LlmUnavailableModel';