@yeaft/webchat-agent 0.1.870 → 0.1.871

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.870",
3
+ "version": "0.1.871",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,15 +17,25 @@ import { readFile } from 'fs/promises';
17
17
  import { homedir } from 'os';
18
18
  import { join } from 'path';
19
19
 
20
- // Curated fallback — small, but covers the common picks if /models is down or
21
- // the user has no Copilot auth available yet.
20
+ // Curated fallback — mirrors the CLI's own hardcoded default model list
21
+ // (`jF` in @github/copilot/app.js@1.0.59). Used when /models is unavailable
22
+ // or when org policy hides the picker list at the API (some enterprise orgs
23
+ // gate it). `--model <id>` still accepts these IDs at chat time.
22
24
  export const FALLBACK_COPILOT_MODELS = Object.freeze([
25
+ { id: 'claude-sonnet-4.6', label: 'Claude Sonnet 4.6', vendor: 'Anthropic' },
23
26
  { id: 'claude-sonnet-4.5', label: 'Claude Sonnet 4.5', vendor: 'Anthropic' },
24
- { id: 'claude-sonnet-4', label: 'Claude Sonnet 4', vendor: 'Anthropic' },
25
- { id: 'claude-opus-4.1', label: 'Claude Opus 4.1', vendor: 'Anthropic' },
26
- { id: 'gpt-5', label: 'GPT-5', vendor: 'OpenAI' },
27
+ { id: 'claude-haiku-4.5', label: 'Claude Haiku 4.5', vendor: 'Anthropic' },
28
+ { id: 'claude-opus-4.8', label: 'Claude Opus 4.8', vendor: 'Anthropic' },
29
+ { id: 'claude-opus-4.7', label: 'Claude Opus 4.7', vendor: 'Anthropic' },
30
+ { id: 'claude-opus-4.6', label: 'Claude Opus 4.6', vendor: 'Anthropic' },
31
+ { id: 'claude-opus-4.5', label: 'Claude Opus 4.5', vendor: 'Anthropic' },
32
+ { id: 'gpt-5.5', label: 'GPT-5.5', vendor: 'OpenAI' },
33
+ { id: 'gpt-5.4', label: 'GPT-5.4', vendor: 'OpenAI' },
34
+ { id: 'gpt-5.3-codex', label: 'GPT-5.3 Codex', vendor: 'OpenAI' },
35
+ { id: 'gpt-5.2-codex', label: 'GPT-5.2 Codex', vendor: 'OpenAI' },
36
+ { id: 'gpt-5.2', label: 'GPT-5.2', vendor: 'OpenAI' },
37
+ { id: 'gpt-5.4-mini', label: 'GPT-5.4 Mini', vendor: 'OpenAI' },
27
38
  { id: 'gpt-5-mini', label: 'GPT-5 Mini', vendor: 'OpenAI' },
28
- { id: 'gpt-4.1', label: 'GPT-4.1', vendor: 'OpenAI' },
29
39
  { id: 'gemini-2.5-pro', label: 'Gemini 2.5 Pro', vendor: 'Google' },
30
40
  ]);
31
41