@yeaft/webchat-agent 1.0.118 → 1.0.119

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": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -93,9 +93,13 @@ export function normalizeKnownProviderForRuntime(provider) {
93
93
 
94
94
  export function serializeKnownProviderForPersistence(provider) {
95
95
  if (!isGitHubCopilotProvider(provider)) return null;
96
+ const models = Array.isArray(provider.models) && provider.models.length
97
+ ? githubCopilotModelEntries(provider.models)
98
+ : [];
96
99
  return {
97
100
  name: provider.name || GITHUB_COPILOT_PROVIDER_NAME,
98
101
  credentialProvider: GITHUB_COPILOT_CREDENTIAL_PROVIDER,
99
102
  managed: provider.managed || GITHUB_COPILOT_CREDENTIAL_PROVIDER,
103
+ ...(models.length ? { models } : {}),
100
104
  };
101
105
  }