@kenkaiiii/ggcoder 5.86.0 → 5.86.1

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.
@@ -22,7 +22,7 @@ import { ExtensionLoader } from "./extensions/loader.js";
22
22
  import { shouldCompact, compact, } from "./compaction/compactor.js";
23
23
  import { getHistoryMessageVisibility } from "./session-history.js";
24
24
  import { sourceFingerprint as computeSourceFingerprint } from "./session-compaction.js";
25
- import { getAuthStorageKeys, getContextWindow, getModel, MODELS } from "./model-registry.js";
25
+ import { getAuthStorageKeys, getContextWindow, getListedModels, getModel, } from "./model-registry.js";
26
26
  import { discoverSkillsWithBlocked } from "./skills.js";
27
27
  import { ensureAppDirs } from "../config.js";
28
28
  import { buildSubAgentSystemPrompt, buildSystemPrompt, } from "../system-prompt.js";
@@ -4144,7 +4144,9 @@ export class AgentSession {
4144
4144
  },
4145
4145
  getModelList: () => {
4146
4146
  const current = `Current: ${this.provider}:${this.model}\n\nAvailable models:\n`;
4147
- const list = MODELS.map((m) => ` ${m.provider}:${m.id} — ${m.name} (${m.costTier})`).join("\n");
4147
+ const list = getListedModels()
4148
+ .map((m) => ` ${m.provider}:${m.id} — ${m.name} (${m.costTier})`)
4149
+ .join("\n");
4148
4150
  return current + list;
4149
4151
  },
4150
4152
  quit: () => {