@agent-proxy/agy 0.11.3 → 0.12.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.
package/dist/catalog.d.ts CHANGED
@@ -46,7 +46,7 @@ export declare function parseAgyCatalogData(value: unknown): AgyCatalogData;
46
46
  export declare function agyEffortTier(effort: unknown): AgyTier;
47
47
  /** 家族内按档位解析上游模型 id;目标档缺失时按「就近偏高」回退,家族必有成员。 */
48
48
  export declare function resolveAgyFamilyModel(family: AgyModelFamily, effort: unknown): string;
49
- /** Codex 行为字段沿用 gpt-5.5 快照基底;模型名与能力仅由当前账号目录决定。
49
+ /** Codex 行为字段沿用快照基底(优先 gpt-5.5,缺失回退首条);模型名与能力仅由当前账号目录决定。
50
50
  * 多档位家族合并为一个 `agy/<base>` 条目(能力/窗口取成员并集或最大值),
51
51
  * `supported_reasoning_levels` 只列家族实际存在的档位;无档位后缀的模型保持
52
52
  * 独立条目且不暴露档位选择。 */
package/dist/catalog.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { createHash } from "node:crypto";
4
- import { getCodexModelSnapshot } from "./resources/models.js";
4
+ import { getCodexBaselineEntry } from "./resources/models.js";
5
5
  import { invalidateModelsCache, withAgentSystemPrompt } from "@agent-proxy/plugin-api";
6
6
  import { atomicWrite } from "@agent-proxy/plugin-api";
7
7
  import { AGY_AGENT_SYSTEM_PROMPT, AGY_ENDPOINT } from "./transport.js";
@@ -166,14 +166,12 @@ const baseLevelDescriptions = (base) => new Map((Array.isArray(base.supported_re
166
166
  ? base.supported_reasoning_levels
167
167
  : []).filter((level) => typeof level.effort === "string" && typeof level.description === "string")
168
168
  .map((level) => [level.effort, level.description]));
169
- /** Codex 行为字段沿用 gpt-5.5 快照基底;模型名与能力仅由当前账号目录决定。
169
+ /** Codex 行为字段沿用快照基底(优先 gpt-5.5,缺失回退首条);模型名与能力仅由当前账号目录决定。
170
170
  * 多档位家族合并为一个 `agy/<base>` 条目(能力/窗口取成员并集或最大值),
171
171
  * `supported_reasoning_levels` 只列家族实际存在的档位;无档位后缀的模型保持
172
172
  * 独立条目且不暴露档位选择。 */
173
173
  export function buildAgyCatalog(data) {
174
- const BASE = getCodexModelSnapshot().models.find((entry) => entry.slug === "gpt-5.5");
175
- if (!BASE)
176
- throw new Error("Codex 模型快照缺少 gpt-5.5 基底条目");
174
+ const BASE = getCodexBaselineEntry();
177
175
  const BASE_LEVEL_DESCRIPTIONS = baseLevelDescriptions(BASE);
178
176
  const familyByMember = new Map();
179
177
  for (const family of data.families) {