dsh-github-copilot 0.1.0-alpha.7.dsh.0.2.2.rc.3 → 0.1.0-alpha.8.dsh.0.2.2.rc.3

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/AGENTS.md CHANGED
@@ -49,6 +49,17 @@ with four concurrent operations and configuration/credential/disposal fences.
49
49
  The former plugin routing UI and managed Auto remain retired. Supplier calls,
50
50
  live installation and restarts are separate from synthetic CI acceptance.
51
51
 
52
+ The user-authorized native model sync (#466) is a narrow exception to the
53
+ no-settings-rewrite rule: after an explicit preview and confirmation, one
54
+ revision-checked write may replace only
55
+ `llm-pi-ai.providers.github-copilot.models` in an existing canonical profile.
56
+ Prove current canonical-account metadata and the native adapter-owned catalog;
57
+ skip unrepresentable or uncertain model capabilities. Disclose additions,
58
+ updates, removals, skipped models and configured output request defaults.
59
+ Recheck account/catalog/preferences and Settings evidence before the one-shot
60
+ write, then read back both user and effective values. Never create a profile,
61
+ change other paths or perform this sync automatically.
62
+
52
63
  The user-confirmed direction on 2026-11-14 supersedes conflicting legacy feature
53
64
  requirements below: this plugin is a lightweight GitHub Copilot model integration
54
65
  for DSH Desktop, not a second agent product. The qualification target is the exact
@@ -112,7 +123,7 @@ which runtime registrations, UI, and settings remain active:
112
123
  1. A conditional authorization-service bootstrap plus Host controller that joins DSH authorization, credentials, and settings.
113
124
  2. A Client Models provider-card contribution with one shared account-state owner, Client-safe Remote descriptors and a nested plugin-owned model-preferences disclosure; embed in an existing configured canonical row, suppress its separate footer controller, and retain footer/old-Core section fallback when no such row is mounted.
114
125
  3. Strict JSON normalization of pi-ai's provider-owned Copilot OAuth grant.
115
- 4. Preserve intentional absence of `llm-pi-ai.providers.github-copilot`; reconcile only existing legacy profiles and verified ownership journals. Fresh installations use the single account-discovered route; existing profiles require explicit migration, never silent removal.
126
+ 4. Preserve intentional absence of `llm-pi-ai.providers.github-copilot`; reconcile only existing legacy profiles and verified ownership journals. The confirmed #466 models-only sync is the narrow explicit exception above; never create or remove a native profile automatically.
116
127
  5. Direct provider-hosted search using the same Host-side credential lifecycle.
117
128
  6. Provider-scoped tool-schema compatibility for Copilot payload behaviors; Core remains the tool and execution owner.
118
129
  7. A bounded account-discovery route that supplies validated endpoint/capability metadata to the published native adapter, including explicit managed Responses sampling compatibility, plus exact plugin-owned model exclusions enforced across its directory, Auto pools and direct admission, without maintaining model-ID routing rules or changing Core's catalog.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.8.dsh.0.2.2.rc.3 (prepared)
4
+
5
+ - Preview and explicitly confirm a one-time sync of enabled canonical-account models to an existing native Copilot provider (#466).
6
+ - Preserve only models whose native protocol and account capability metadata can be safely represented; disclose skipped models, removals, updates, and per-request output defaults before replacing the native models setting.
7
+ - Recheck account, adapter-owned catalog, preference and Settings evidence before the path-level write and verify both stored and effective readback. Live Desktop activation and provider calls are not established by synthetic tests.
8
+
3
9
  ## 0.1.0-alpha.7.dsh.0.2.2.rc.3 (prepared)
4
10
 
5
11
  - Qualify native search and Auto reviewer compatibility using the adapter-owned pi-ai catalog even when the plugin resolves a separate copy (#461).
package/README.md CHANGED
@@ -67,15 +67,15 @@ After the exact compatible release is available and verified, download its
67
67
  original asset and checksum in an empty directory:
68
68
 
69
69
  ```sh
70
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.dsh.0.2.2.rc.3.tgz
71
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/SHA256SUMS
70
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.8.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.8.dsh.0.2.2.rc.3.tgz
71
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.8.dsh.0.2.2.rc.3/SHA256SUMS
72
72
  sha256sum --check SHA256SUMS
73
73
  ```
74
74
 
75
75
  For the `web` profile, install the same Release asset:
76
76
 
77
77
  ```sh
78
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.dsh.0.2.2.rc.3.tgz
78
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.8.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.8.dsh.0.2.2.rc.3.tgz
79
79
  ```
80
80
 
81
81
  Choose the intended profile explicitly. Then:
@@ -90,7 +90,31 @@ No manually defined Copilot model, pasted token, external gateway, or
90
90
  successful sign-in does not guarantee every model or capability is available.
91
91
  The plugin's account-discovered models and capabilities apply to the
92
92
  `github-copilot-preview` route. DSH's native `github-copilot` route uses its
93
- own bundled or configured catalog; the two routes do not share model discovery.
93
+ own bundled or configured catalog; the two routes do not automatically share
94
+ model discovery.
95
+
96
+ To copy enabled models from the current canonical account into an existing
97
+ native provider, use **Manage → Model preferences → Preview enabled models**,
98
+ review the additions, updates, removals, skipped models and per-request output
99
+ defaults, then choose **Apply sync**. This one-time snapshot replaces only
100
+ `llm-pi-ai.providers.github-copilot.models` with Settings CAS and readback.
101
+ The nonempty saved list replaces the native built-in catalog and remains after
102
+ the plugin is unloaded or uninstalled. Copying model settings does not transfer
103
+ the managed route's image admission checks or tool-schema filtering to native
104
+ requests, nor prove that supplier calls will succeed.
105
+ Models with unproven or incompatible native catalog protocols, unknown or
106
+ narrower server input caps, unknown context or vision support, or unknown or
107
+ unsupported reasoning controls are skipped rather than guessed.
108
+ New Completions and Anthropic models without a native catalog compatibility
109
+ baseline are also skipped; catalog-backed models retain native compatibility.
110
+ Image models are included only when the account explicitly supports all four
111
+ native request formats: PNG, JPEG, WebP, and GIF. Custom native authentication,
112
+ endpoints, headers, nonempty model overrides, or route compatibility overrides
113
+ block sync rather than changing those settings. An existing native default
114
+ reasoning effort must also be supported by each synced model. Core uses each
115
+ configured `maxTokens` as that model's per-request output default. The sync does
116
+ not change credentials, select a model, alter history, or automatically follow
117
+ later account changes.
94
118
 
95
119
  When adding DSH's native GitHub Copilot provider, use the separate plugin account
96
120
  panel to sign in. With no named key, the native route uses a stored canonical
package/README.zh.md CHANGED
@@ -55,15 +55,15 @@ node scripts/select-core-release.mjs 0.2.2-rc.3
55
55
  精确兼容版本发布且通过验证后,在空目录下载原始制品并校验:
56
56
 
57
57
  ```sh
58
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.dsh.0.2.2.rc.3.tgz
59
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/SHA256SUMS
58
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.8.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.8.dsh.0.2.2.rc.3.tgz
59
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.8.dsh.0.2.2.rc.3/SHA256SUMS
60
60
  sha256sum --check SHA256SUMS
61
61
  ```
62
62
 
63
63
  例如安装到 `web` profile:
64
64
 
65
65
  ```sh
66
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.dsh.0.2.2.rc.3.tgz
66
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.8.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.8.dsh.0.2.2.rc.3.tgz
67
67
  ```
68
68
 
69
69
  请明确选择目标 profile,然后:
@@ -75,7 +75,21 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
75
75
  无需手工定义 Copilot 模型、粘贴 token、使用外部网关或安装
76
76
  `copilot2api`。账号登录成功不代表所有模型及其能力都可用。
77
77
  插件自动发现的账号模型及能力适用于 `github-copilot-preview` 路线;DSH 原生
78
- `github-copilot` 路线使用自己的内置或用户配置目录,两条路线不共享模型发现结果。
78
+ `github-copilot` 路线使用自己的内置或用户配置目录,两条路线不会自动共享模型发现结果。
79
+
80
+ 如需将当前 canonical 账号的已启用模型复制到已配置的原生 provider,请选择
81
+ **Manage → Model preferences → Preview enabled models**,检查新增、更新、移除、
82
+ 跳过项和每次请求的输出默认值,然后选择 **Apply sync**。此显式单次快照只通过
83
+ Settings CAS 和回读替换 `llm-pi-ai.providers.github-copilot.models`。原生 profile
84
+ 中保存的非空列表会替代原生内置目录,卸载或停用插件后仍然保留。复制模型设置不会将
85
+ 托管路线的图像准入检查或工具 schema 过滤迁移到原生请求,也不能证明供应商调用成功。
86
+ 无法证明或与原生目录不兼容的协议、未知或更窄的服务端输入上限、未知上下文或图像支持,
87
+ 以及未知或不支持的推理控制会被跳过,不会猜测。缺少原生目录兼容性基线的新 Completions 和
88
+ Anthropic 模型也会被跳过;已有目录模型保留原生兼容性。只有账号明确支持 PNG、JPEG、WebP、GIF 四种原生请求图像格式时,
89
+ 才会同步图像模型。原生 provider 存在自定义认证、端点、请求头、非空模型覆盖或路线兼容性覆盖时,
90
+ 同步会停止,不会修改这些设置;已有的原生默认推理级别也必须受模型支持。Core 会将配置的
91
+ `maxTokens` 同时作为模型的单次请求输出默认值。同步不修改凭据、选择或历史,也不会自动
92
+ 跟随后续账号变化。
79
93
 
80
94
  添加 DSH 原生 GitHub Copilot provider 时,可使用独立的插件账号面板登录。
81
95
  没有指定密钥时,原生路线使用已保存的 canonical OAuth 凭据,而不是另行选择的
@@ -8,14 +8,14 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.1.0-alpha.7.dsh.0.2.2.rc.3"
11
+ "version": "0.1.0-alpha.8.dsh.0.2.2.rc.3"
12
12
  },
13
13
  "releaseLines": [
14
14
  { "core": "0.2.0-rc.2", "version": "0.4.2-alpha.15", "status": "published" },
15
15
  { "core": "0.2.1-alpha.4", "version": "0.4.2-alpha.16", "status": "published" },
16
16
  { "core": "0.2.1-alpha.5", "version": "0.1.0-alpha.2.dsh.0.2.1.alpha.5", "status": "published" },
17
17
  { "core": "0.2.1-rc.3", "version": "0.1.0-alpha.5.dsh.0.2.1.rc.3", "status": "published" },
18
- { "core": "0.2.2-rc.3", "version": "0.1.0-alpha.7.dsh.0.2.2.rc.3", "status": "pending" }
18
+ { "core": "0.2.2-rc.3", "version": "0.1.0-alpha.8.dsh.0.2.2.rc.3", "status": "pending" }
19
19
  ],
20
20
  "evidence": {
21
21
  "kind": "source-and-synthetic-test-inventory",
@@ -337,7 +337,7 @@
337
337
  "evidenceScope": "unchanged-tagged-source-target",
338
338
  "standaloneNpmArtifacts": "not-tested",
339
339
  "managedProviderValidation": "not-verified",
340
- "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts", "tests/native-web-composition.spec.ts", "tests/dual-model-host.spec.ts"]
340
+ "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts", "tests/native-web-composition.spec.ts", "tests/dual-model-host.spec.ts", "tests/fixtures/native-model-sync-core.fixture.ts"]
341
341
  }
342
342
  ],
343
343
  "packages": [
@@ -741,6 +741,39 @@
741
741
  {"file": "tests/preview-route.spec.ts", "name": "binds explicit summary capacity proof to its Agent rather than the current default"}
742
742
  ]
743
743
  },
744
+ {
745
+ "id": "confirmed-native-model-sync",
746
+ "required": true,
747
+ "activation": "explicit-preview-and-one-shot-confirmation",
748
+ "evidenceScope": "tagged-native-settings-and-resolution-with-synthetic-catalog-proof-plus-separate-adapter-ownership-tests-not-live-provider",
749
+ "sourceMarkers": [
750
+ {"file": "src/native-model-sync.ts", "marker": "NATIVE_INHERITED_API_MISMATCH"},
751
+ {"file": "src/native-copilot-access.ts", "marker": "captureNativeCopilotCatalog"},
752
+ {"file": "src/authorization-controller.ts", "marker": "path: ['providers', GITHUB_COPILOT_PROVIDER_ID, 'models']"},
753
+ {"file": "src/model-preferences-card.ts", "marker": "Preview enabled models"},
754
+ {"file": "src/remote.ts", "marker": "GitHubCopilotNativeModelSyncPreviewSchema"}
755
+ ],
756
+ "tests": [
757
+ {"file": "tests/native-model-sync.spec.ts", "name": "copies only enabled account models and reports additions, removals, and changed model definitions"},
758
+ {"file": "tests/native-model-sync.spec.ts", "name": "does not repoint a known native model when its inherited catalog protocol differs"},
759
+ {"file": "tests/native-model-sync.spec.ts", "name": "skips new non-Responses models without a native compatibility baseline"},
760
+ {"file": "tests/native-model-sync.spec.ts", "name": "skips narrower or unknown server input caps that cannot be represented natively"},
761
+ {"file": "tests/native-model-sync.spec.ts", "name": "skips missing vision or reasoning evidence rather than treating it as disabled"},
762
+ {"file": "tests/native-model-sync.spec.ts", "name": "does not expose an off control that the managed account model does not expose"},
763
+ {"file": "tests/preview-route.spec.ts", "name": "binds native sync discovery and proof to the global account, not the initiating Session"},
764
+ {"file": "tests/native-model-sync.spec.ts", "name": "syncs vision only when account metadata covers every native request image format"},
765
+ {"file": "tests/account-model-catalog.spec.ts", "name": "distinguishes absent vision and reasoning metadata from explicitly declared empty support"},
766
+ {"file": "tests/native-copilot-access.spec.ts", "name": "exposes the proven unfiltered adapter catalog independently of the configured model list"},
767
+ {"file": "tests/native-copilot-access.spec.ts", "name": "revokes a catalog snapshot when its native Loader entry is removed"},
768
+ {"file": "tests/authorization-controller.spec.ts", "name": "previews enabled canonical models and applies only the confirmed native models path with CAS/readback"},
769
+ {"file": "tests/authorization-controller.spec.ts", "name": "reports an uncertain commit if the proven native catalog changes during the write"},
770
+ {"file": "tests/model-preferences-card.spec.ts", "name": "previews a native model sync and applies it only after the explicit confirmation action"},
771
+ {"file": "tests/model-preferences-card.spec.ts", "name": "does not dispatch duplicate preview or apply actions before React renders the busy state"},
772
+ {"file": "tests/remote-codec.spec.ts", "name": "accepts named native-sync safety diagnostics without accepting extra fields"},
773
+ {"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds native model sync through actual Client and %s Host gateways"},
774
+ {"file": "tests/fixtures/native-model-sync-core.fixture.ts", "name": "syncs a confirmed snapshot through real native Settings and model resolution across restart using synthetic catalog proof"}
775
+ ]
776
+ },
744
777
  {
745
778
  "id": "account-driven-provider-metadata",
746
779
  "required": true,
package/lib/client.js CHANGED
@@ -7507,6 +7507,67 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7507
7507
  }).strict();
7508
7508
  const result = strictRemoteCodec(GITHUB_COPILOT_AUTHORIZATION_VIEW_TYPE_SYMBOL, GitHubCopilotAuthorizationViewSchema);
7509
7509
  const GitHubCopilotModelPreferencesViewSchema = GitHubCopilotAuthorizationViewSchema.shape.modelPreferences.unwrap();
7510
+ const nativeModelSyncCode = _enum([
7511
+ "NATIVE_MODEL_SYNC_ACCOUNT_MISMATCH",
7512
+ "NATIVE_MODEL_SYNC_ACCOUNT_UNAVAILABLE",
7513
+ "NATIVE_MODEL_SYNC_DISCOVERY_UNAVAILABLE",
7514
+ "NATIVE_MODEL_SYNC_MODELS_UNAVAILABLE",
7515
+ "NATIVE_MODEL_SYNC_NATIVE_CATALOG_UNAVAILABLE",
7516
+ "NATIVE_MODEL_SYNC_PREFERENCES_UNAVAILABLE",
7517
+ "NATIVE_MODEL_SYNC_SETTINGS_UNAVAILABLE",
7518
+ "NATIVE_MODEL_SYNC_SETTINGS_INVALID",
7519
+ "NATIVE_MODEL_SYNC_PROFILE_MISSING",
7520
+ "NATIVE_MODEL_SYNC_ROUTE_OWNERSHIP_CONFLICT",
7521
+ "NATIVE_MODEL_SYNC_NATIVE_AUTH_UNPROVEN",
7522
+ "NATIVE_MODEL_SYNC_OVERRIDES_CONFLICT",
7523
+ "NATIVE_MODEL_SYNC_ROUTE_COMPAT_UNPROVEN",
7524
+ "NATIVE_MODEL_SYNC_NO_SYNCABLE_MODELS",
7525
+ "NATIVE_MODEL_SYNC_PLAN_EXPIRED",
7526
+ "NATIVE_MODEL_SYNC_PLAN_STALE",
7527
+ "NATIVE_MODEL_SYNC_SETTINGS_CONFLICT",
7528
+ "NATIVE_MODEL_SYNC_SAVE_FAILED",
7529
+ "NATIVE_MODEL_SYNC_READBACK_FAILED"
7530
+ ]);
7531
+ const GitHubCopilotNativeModelSyncPreviewSchema = object({
7532
+ state: _enum([
7533
+ "ready",
7534
+ "blocked",
7535
+ "error"
7536
+ ]),
7537
+ code: nativeModelSyncCode.optional(),
7538
+ planId: string().uuid().optional(),
7539
+ enabledCount: number().int().nonnegative().max(512),
7540
+ syncableCount: number().int().nonnegative().max(512),
7541
+ outputTokenDefaults: array(object({
7542
+ id: string().min(1).max(200),
7543
+ maxTokens: number().int().positive().max(Number.MAX_SAFE_INTEGER)
7544
+ }).strict()).max(512),
7545
+ addedIds: array(string().min(1).max(200)).max(512),
7546
+ removedIds: array(string().min(1).max(200)).max(512),
7547
+ updatedIds: array(string().min(1).max(200)).max(512),
7548
+ skipped: array(object({
7549
+ id: string().min(1).max(200),
7550
+ code: _enum([
7551
+ "NATIVE_API_UNAVAILABLE",
7552
+ "NATIVE_API_MISMATCH",
7553
+ "NATIVE_INHERITED_API_MISMATCH",
7554
+ "NATIVE_COMPATIBILITY_UNPROVEN",
7555
+ "NATIVE_CONTEXT_LIMIT_UNKNOWN",
7556
+ "NATIVE_INPUT_LIMIT_UNKNOWN",
7557
+ "NATIVE_INPUT_LIMIT_UNSUPPORTED",
7558
+ "NATIVE_REASONING_UNKNOWN",
7559
+ "NATIVE_REASONING_UNSUPPORTED",
7560
+ "NATIVE_VISION_SUPPORT_UNKNOWN",
7561
+ "NATIVE_VISION_MEDIA_TYPES_UNKNOWN",
7562
+ "NATIVE_VISION_MEDIA_TYPES_UNSUPPORTED"
7563
+ ])
7564
+ }).strict()).max(512)
7565
+ }).strict();
7566
+ const GitHubCopilotNativeModelSyncResultSchema = object({
7567
+ state: _enum(["ready", "error"]),
7568
+ code: nativeModelSyncCode.optional(),
7569
+ modelCount: number().int().nonnegative().max(512)
7570
+ }).strict();
7510
7571
  const GITHUB_COPILOT_MIGRATION_STATUS_TYPE_SYMBOL = "dsh-github-copilot#GitHubCopilotMigrationStatus";
7511
7572
  const selectionSchema = object({
7512
7573
  provider: string().min(1).max(512),
@@ -7625,6 +7686,29 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7625
7686
  }],
7626
7687
  result: strictRemoteCodec("dsh-github-copilot#GitHubCopilotModelPreferencesView", GitHubCopilotModelPreferencesViewSchema)
7627
7688
  },
7689
+ {
7690
+ id: "dsh-github-copilot:githubCopilot.previewNativeModelSync",
7691
+ service: "githubCopilotAuthorization",
7692
+ namespace: "githubCopilot",
7693
+ method: "previewNativeModelSync",
7694
+ invocation: direct,
7695
+ parameters: [],
7696
+ result: strictRemoteCodec("dsh-github-copilot#GitHubCopilotNativeModelSyncPreview", GitHubCopilotNativeModelSyncPreviewSchema)
7697
+ },
7698
+ {
7699
+ id: "dsh-github-copilot:githubCopilot.applyNativeModelSync",
7700
+ service: "githubCopilotAuthorization",
7701
+ namespace: "githubCopilot",
7702
+ method: "applyNativeModelSync",
7703
+ invocation: direct,
7704
+ parameters: [{
7705
+ name: "planId",
7706
+ wire: "planId",
7707
+ source: "json",
7708
+ codec: strictRemoteCodec("dsh-github-copilot#GitHubCopilotNativeModelSyncPlanId", string().uuid())
7709
+ }],
7710
+ result: strictRemoteCodec("dsh-github-copilot#GitHubCopilotNativeModelSyncResult", GitHubCopilotNativeModelSyncResultSchema)
7711
+ },
7628
7712
  {
7629
7713
  id: "dsh-github-copilot:githubCopilot.migrationStatus",
7630
7714
  service: "githubCopilotAuthorization",
@@ -7647,7 +7731,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7647
7731
  };
7648
7732
  //#endregion
7649
7733
  //#region package.json
7650
- var version = "0.1.0-alpha.7.dsh.0.2.2.rc.3";
7734
+ var version = "0.1.0-alpha.8.dsh.0.2.2.rc.3";
7651
7735
  //#endregion
7652
7736
  //#region lib/types/diagnostics-client.js
7653
7737
  let owner;
@@ -12997,6 +13081,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12997
13081
  default: return "The Host did not provide model preferences. Models are read-only. Retry; if this persists, check that Host and Client are running the same plugin version.";
12998
13082
  }
12999
13083
  }
13084
+ function nativeSyncMessage(code) {
13085
+ switch (code) {
13086
+ case "NATIVE_MODEL_SYNC_ACCOUNT_MISMATCH": return "Switch the global Copilot account to the canonical account used by the native provider, then preview again.";
13087
+ case "NATIVE_MODEL_SYNC_ACCOUNT_UNAVAILABLE": return "Could not verify the current Copilot account. No native settings were changed.";
13088
+ case "NATIVE_MODEL_SYNC_DISCOVERY_UNAVAILABLE":
13089
+ case "NATIVE_MODEL_SYNC_MODELS_UNAVAILABLE": return "Could not verify a fresh account model list. No native settings were changed.";
13090
+ case "NATIVE_MODEL_SYNC_NATIVE_CATALOG_UNAVAILABLE": return "Could not verify the native provider and its model catalog. No native settings were changed.";
13091
+ case "NATIVE_MODEL_SYNC_PREFERENCES_UNAVAILABLE": return "Could not verify the enabled-model preferences. No native settings were changed.";
13092
+ case "NATIVE_MODEL_SYNC_SETTINGS_UNAVAILABLE": return "Could not read native provider settings. No changes were made.";
13093
+ case "NATIVE_MODEL_SYNC_SETTINGS_INVALID": return "Native provider settings are invalid or unreadable. No changes were made.";
13094
+ case "NATIVE_MODEL_SYNC_PROFILE_MISSING": return "Configure the native GitHub Copilot provider first. This action does not create or migrate a provider profile.";
13095
+ case "NATIVE_MODEL_SYNC_ROUTE_OWNERSHIP_CONFLICT": return "A route migration or protected setting is present. Resolve it before syncing.";
13096
+ case "NATIVE_MODEL_SYNC_NATIVE_AUTH_UNPROVEN": return "The native provider uses custom authentication, an endpoint, or headers; its account cannot be verified for sync.";
13097
+ case "NATIVE_MODEL_SYNC_OVERRIDES_CONFLICT": return "Native model overrides conflict with a custom model list. Review them before syncing; they will not be removed automatically.";
13098
+ case "NATIVE_MODEL_SYNC_ROUTE_COMPAT_UNPROVEN": return "Native route compatibility overrides cannot be verified for the new model list. Review them before syncing.";
13099
+ case "NATIVE_MODEL_SYNC_NO_SYNCABLE_MODELS": return "No enabled account models can be represented by the native provider configuration.";
13100
+ case "NATIVE_MODEL_SYNC_PLAN_EXPIRED":
13101
+ case "NATIVE_MODEL_SYNC_PLAN_STALE": return "The preview is no longer current. Preview the model list again before syncing.";
13102
+ case "NATIVE_MODEL_SYNC_SETTINGS_CONFLICT": return "Native settings changed elsewhere. Review the current settings and preview again.";
13103
+ case "NATIVE_MODEL_SYNC_READBACK_FAILED":
13104
+ case "NATIVE_MODEL_SYNC_SAVE_FAILED": return "Could not confirm the native settings update. Read the saved settings before trying again.";
13105
+ default: return "Native model sync is unavailable. No settings were changed.";
13106
+ }
13107
+ }
13108
+ function nativeSyncSkipMessage(code) {
13109
+ switch (code) {
13110
+ case "NATIVE_API_UNAVAILABLE": return "The native protocol for this model is unknown.";
13111
+ case "NATIVE_API_MISMATCH": return "The native route uses a different protocol.";
13112
+ case "NATIVE_INHERITED_API_MISMATCH": return "The native catalog would inherit settings from a different protocol.";
13113
+ case "NATIVE_COMPATIBILITY_UNPROVEN": return "The native catalog lacks a compatibility baseline for this protocol.";
13114
+ case "NATIVE_CONTEXT_LIMIT_UNKNOWN": return "The server context capacity is unknown.";
13115
+ case "NATIVE_INPUT_LIMIT_UNKNOWN": return "The server input limit is unknown.";
13116
+ case "NATIVE_INPUT_LIMIT_UNSUPPORTED": return "The native route cannot enforce the narrower input limit.";
13117
+ case "NATIVE_REASONING_UNKNOWN": return "The server reasoning controls are unknown.";
13118
+ case "NATIVE_REASONING_UNSUPPORTED": return "The native route cannot represent the advertised or configured reasoning.";
13119
+ case "NATIVE_VISION_SUPPORT_UNKNOWN": return "The server image support is unknown.";
13120
+ case "NATIVE_VISION_MEDIA_TYPES_UNKNOWN": return "The server image formats are unknown.";
13121
+ case "NATIVE_VISION_MEDIA_TYPES_UNSUPPORTED": return "The native route cannot enforce these image format restrictions.";
13122
+ }
13123
+ }
13000
13124
  function GitHubCopilotModelPreferencesPanel(props) {
13001
13125
  const [query, setQuery] = (0, react.useState)("");
13002
13126
  const [filter, setFilter] = (0, react.useState)("all");
@@ -13006,6 +13130,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13006
13130
  const [queuedModels, setQueuedModels] = (0, react.useState)([]);
13007
13131
  const [error, setError] = (0, react.useState)();
13008
13132
  const [errorModel, setErrorModel] = (0, react.useState)();
13133
+ const [syncPreview, setSyncPreview] = (0, react.useState)();
13134
+ const [syncBusy, setSyncBusy] = (0, react.useState)(false);
13135
+ const [syncError, setSyncError] = (0, react.useState)();
13136
+ const [syncResult, setSyncResult] = (0, react.useState)();
13009
13137
  const request = (0, react.useRef)({
13010
13138
  generation: 0,
13011
13139
  pending: false,
@@ -13014,6 +13142,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13014
13142
  queue: [],
13015
13143
  active: ""
13016
13144
  });
13145
+ const syncPending = (0, react.useRef)(false);
13017
13146
  const metadata = (0, react.useRef)(props.models);
13018
13147
  metadata.current = props.models;
13019
13148
  const preferenceKey = JSON.stringify(props.preferences);
@@ -13023,8 +13152,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13023
13152
  scope.pending = false;
13024
13153
  scope.failed = scope.cancelled;
13025
13154
  scope.active = "";
13155
+ syncPending.current = false;
13026
13156
  setPreferences(props.preferences);
13027
13157
  setError(scope.cancelled ? "COPILOT_MODEL_PREFERENCE_EDITS_CANCELLED" : void 0);
13158
+ setSyncPreview(void 0);
13159
+ setSyncError(void 0);
13160
+ setSyncResult(void 0);
13161
+ setSyncBusy(false);
13028
13162
  scope.cancelled = false;
13029
13163
  setErrorModel(void 0);
13030
13164
  setBusyModel(void 0);
@@ -13045,6 +13179,78 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13045
13179
  const excluded = new Set(preferences?.excludedModelIds ?? []);
13046
13180
  const diagnostic = error ?? preferences?.error ?? (preferences === void 0 ? "COPILOT_MODEL_PREFERENCES_UNAVAILABLE" : void 0);
13047
13181
  const writable = preferences?.writable === true && settingsKnown;
13182
+ const nativeSyncDisabled = !writable || request.current.failed || busyModel !== void 0 || queuedModels.length > 0 || syncBusy;
13183
+ const previewNativeSync = async () => {
13184
+ const scope = request.current;
13185
+ if (nativeSyncDisabled || syncPending.current || scope.pending) return;
13186
+ const generation = scope.generation;
13187
+ const current = () => scope.generation === generation;
13188
+ syncPending.current = true;
13189
+ setSyncBusy(true);
13190
+ setSyncError(void 0);
13191
+ setSyncResult(void 0);
13192
+ setSyncPreview(void 0);
13193
+ try {
13194
+ const result = await props.remote.previewNativeModelSync();
13195
+ if (!current()) return;
13196
+ if (!result.ok) {
13197
+ setSyncError("NATIVE_MODEL_SYNC_DISCOVERY_UNAVAILABLE");
13198
+ return;
13199
+ }
13200
+ const parsed = GitHubCopilotNativeModelSyncPreviewSchema.safeParse(result.value);
13201
+ if (!parsed.success) {
13202
+ setSyncError("NATIVE_MODEL_SYNC_SAVE_FAILED");
13203
+ return;
13204
+ }
13205
+ setSyncPreview(parsed.data);
13206
+ if (parsed.data.state !== "ready") setSyncError(parsed.data.code ?? "NATIVE_MODEL_SYNC_SAVE_FAILED");
13207
+ } catch {
13208
+ if (current()) setSyncError("NATIVE_MODEL_SYNC_DISCOVERY_UNAVAILABLE");
13209
+ } finally {
13210
+ if (current()) {
13211
+ syncPending.current = false;
13212
+ setSyncBusy(false);
13213
+ }
13214
+ }
13215
+ };
13216
+ const applyNativeSync = async () => {
13217
+ const planId = syncPreview?.planId;
13218
+ const scope = request.current;
13219
+ if (planId === void 0 || syncBusy || busyModel !== void 0 || syncPending.current || scope.pending) return;
13220
+ const generation = scope.generation;
13221
+ const current = () => scope.generation === generation;
13222
+ syncPending.current = true;
13223
+ setSyncBusy(true);
13224
+ setSyncError(void 0);
13225
+ setSyncResult(void 0);
13226
+ setSyncPreview(void 0);
13227
+ try {
13228
+ const result = await props.remote.applyNativeModelSync(planId);
13229
+ if (!current()) return;
13230
+ if (!result.ok) {
13231
+ setSyncError("NATIVE_MODEL_SYNC_SAVE_FAILED");
13232
+ return;
13233
+ }
13234
+ const parsed = GitHubCopilotNativeModelSyncResultSchema.safeParse(result.value);
13235
+ if (!parsed.success) {
13236
+ setSyncError("NATIVE_MODEL_SYNC_SAVE_FAILED");
13237
+ return;
13238
+ }
13239
+ if (parsed.data.state !== "ready") {
13240
+ setSyncError(parsed.data.code ?? "NATIVE_MODEL_SYNC_SAVE_FAILED");
13241
+ return;
13242
+ }
13243
+ setSyncPreview(void 0);
13244
+ setSyncResult(`Synced ${parsed.data.modelCount} models to the native provider settings. This does not select a model.`);
13245
+ } catch {
13246
+ if (current()) setSyncError("NATIVE_MODEL_SYNC_SAVE_FAILED");
13247
+ } finally {
13248
+ if (current()) {
13249
+ syncPending.current = false;
13250
+ setSyncBusy(false);
13251
+ }
13252
+ }
13253
+ };
13048
13254
  const rows = [...available.map((model) => ({
13049
13255
  id: model.id,
13050
13256
  name: model.name,
@@ -13114,6 +13320,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13114
13320
  };
13115
13321
  const update = async (modelId, restore = false) => {
13116
13322
  const scope = request.current;
13323
+ if (syncPending.current) return;
13117
13324
  const generation = scope.generation;
13118
13325
  const current = () => scope.generation === generation;
13119
13326
  if (modelId === void 0) {
@@ -13170,7 +13377,59 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13170
13377
  }, (0, react.createElement)("style", null, nativeSettingsCss), (0, react.createElement)("summary", null, settingsKnown ? `Model preferences · ${visibleCount} enabled · ${excluded.size} excluded` : "Model preferences · Read-only"), (0, react.createElement)("p", { style: {
13171
13378
  fontSize: "14px",
13172
13379
  marginBlock: "12px"
13173
- } }, "Exclusions are shared across GitHub Copilot accounts; availability below reflects the current account. Newly discovered models are enabled by default. Unavailable saved exclusions are retained and apply again if that model returns. Excluded models disappear from the managed picker and cannot start a new turn. An admitted turn keeps its model. Fixed selections are not changed; select another model before the next turn. Restoring a model does not select it."), availabilityKnown ? null : (0, react.createElement)("p", { role: "status" }, "Current account availability unconfirmed. Shown models reflect the last metadata snapshot and saved preferences, not a current availability check."), diagnostic === void 0 ? null : (0, react.createElement)("div", {
13380
+ } }, "Exclusions are shared across GitHub Copilot accounts; availability below reflects the current account. Newly discovered models are enabled by default. Unavailable saved exclusions are retained and apply again if that model returns. Excluded models disappear from the managed picker and cannot start a new turn. An admitted turn keeps its model. Fixed selections are not changed; select another model before the next turn. Restoring a model does not select it."), (0, react.createElement)("section", {
13381
+ "aria-label": "Sync models to native provider",
13382
+ style: {
13383
+ display: "grid",
13384
+ gap: "8px",
13385
+ paddingBlock: "12px",
13386
+ borderBlock: "1px solid color-mix(in srgb, currentColor 18%, transparent)"
13387
+ }
13388
+ }, (0, react.createElement)("strong", null, "Native provider model list"), (0, react.createElement)("p", { style: {
13389
+ ...nativeCaptionStyle,
13390
+ margin: 0
13391
+ } }, "Preview a one-time sync of enabled models from the current canonical account. The sync replaces only the native model list, skips entries the native route cannot represent, and never changes credentials, model selection, or conversation history. Core also uses each configured maxTokens as that model’s per-request default; review the exact output values before applying."), (0, react.createElement)("button", {
13392
+ type: "button",
13393
+ style: controlStyle,
13394
+ disabled: nativeSyncDisabled,
13395
+ onClick: () => void previewNativeSync(),
13396
+ "data-dsh-github-copilot-native-model-sync-preview": true
13397
+ }, syncBusy ? "Preparing sync…" : "Preview enabled models"), syncPreview === void 0 ? null : (0, react.createElement)("div", {
13398
+ role: "region",
13399
+ "aria-label": "Native model sync preview",
13400
+ "data-dsh-github-copilot-native-model-sync-preview-result": true,
13401
+ style: {
13402
+ display: "grid",
13403
+ gap: "6px"
13404
+ }
13405
+ }, (0, react.createElement)("p", { style: {
13406
+ ...nativeCaptionStyle,
13407
+ margin: 0
13408
+ } }, "Applying replaces the native provider’s built-in catalog with this saved list, which remains after the plugin is unloaded or uninstalled. The managed route’s image admission checks and tool-schema filtering do not transfer to the native route."), (0, react.createElement)("p", { style: {
13409
+ ...nativeCaptionStyle,
13410
+ margin: 0
13411
+ } }, `${syncPreview.syncableCount} of ${syncPreview.enabledCount} enabled models will be written; ${syncPreview.addedIds.length} added, ${syncPreview.updatedIds.length} updated, ${syncPreview.removedIds.length} removed from the native list, ${syncPreview.skipped.length} skipped.`), syncPreview.addedIds.length === 0 ? null : (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Models to add"), (0, react.createElement)("ul", null, ...syncPreview.addedIds.map((id) => (0, react.createElement)("li", { key: id }, (0, react.createElement)("code", null, id))))), syncPreview.updatedIds.length === 0 ? null : (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Models to update"), (0, react.createElement)("ul", null, ...syncPreview.updatedIds.map((id) => (0, react.createElement)("li", { key: id }, (0, react.createElement)("code", null, id))))), syncPreview.outputTokenDefaults.length === 0 ? null : (0, react.createElement)("details", null, (0, react.createElement)("summary", null, `Per-request output defaults (${syncPreview.outputTokenDefaults.length})`), (0, react.createElement)("ul", null, ...syncPreview.outputTokenDefaults.map((item) => (0, react.createElement)("li", { key: item.id }, (0, react.createElement)("code", null, item.id), ` — ${item.maxTokens.toLocaleString()} max output tokens`)))), syncPreview.skipped.length === 0 ? null : (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Models skipped by native compatibility checks"), (0, react.createElement)("ul", null, ...syncPreview.skipped.map((item) => (0, react.createElement)("li", { key: item.id }, (0, react.createElement)("code", null, item.id), ` — ${nativeSyncSkipMessage(item.code)} (${item.code})`)))), syncPreview.removedIds.length === 0 ? null : (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Native models that will be removed"), (0, react.createElement)("ul", null, ...syncPreview.removedIds.map((id) => (0, react.createElement)("li", { key: id }, (0, react.createElement)("code", null, id))))), syncPreview.state === "ready" ? (0, react.createElement)("div", { style: {
13412
+ display: "flex",
13413
+ flexWrap: "wrap",
13414
+ gap: "8px"
13415
+ } }, (0, react.createElement)("button", {
13416
+ type: "button",
13417
+ style: controlStyle,
13418
+ disabled: syncBusy || busyModel !== void 0,
13419
+ onClick: () => void applyNativeSync(),
13420
+ "data-dsh-github-copilot-native-model-sync-apply": true
13421
+ }, syncBusy ? "Syncing…" : "Apply sync"), (0, react.createElement)("button", {
13422
+ type: "button",
13423
+ style: controlStyle,
13424
+ disabled: syncBusy,
13425
+ onClick: () => setSyncPreview(void 0)
13426
+ }, "Cancel")) : null), syncError === void 0 ? null : (0, react.createElement)("p", {
13427
+ role: "alert",
13428
+ "data-dsh-github-copilot-native-model-sync-error": syncError
13429
+ }, nativeSyncMessage(syncError)), syncResult === void 0 ? null : (0, react.createElement)("p", {
13430
+ role: "status",
13431
+ "aria-live": "polite"
13432
+ }, syncResult)), availabilityKnown ? null : (0, react.createElement)("p", { role: "status" }, "Current account availability unconfirmed. Shown models reflect the last metadata snapshot and saved preferences, not a current availability check."), diagnostic === void 0 ? null : (0, react.createElement)("div", {
13174
13433
  role: "alert",
13175
13434
  "data-dsh-github-copilot-model-preferences-error": true,
13176
13435
  style: {
@@ -13180,7 +13439,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13180
13439
  }, (0, react.createElement)("p", null, preferenceMessage(diagnostic)), (0, react.createElement)("code", { style: { overflowWrap: "anywhere" } }, diagnostic), (0, react.createElement)("div", { style: { marginTop: "8px" } }, (0, react.createElement)("button", {
13181
13440
  type: "button",
13182
13441
  style: controlStyle,
13183
- disabled: busyModel !== void 0,
13442
+ disabled: busyModel !== void 0 || syncBusy,
13184
13443
  onClick: () => update(),
13185
13444
  "data-dsh-github-copilot-preferences-retry": true
13186
13445
  }, busyModel === "" ? "Reading settings…" : "Retry"))), (0, react.createElement)("label", { style: {
@@ -13237,7 +13496,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13237
13496
  }
13238
13497
  }, filtered.map((model) => {
13239
13498
  const isExcluded = excluded.has(model.id);
13240
- const disabled = !writable || request.current.failed || busyModel === "" || busyModel === model.id || queuedModels.includes(model.id);
13499
+ const disabled = !writable || request.current.failed || syncBusy || busyModel === "" || busyModel === model.id || queuedModels.includes(model.id);
13241
13500
  return (0, react.createElement)("li", {
13242
13501
  key: model.id,
13243
13502
  style: {
@@ -14013,7 +14272,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14013
14272
  remote: props.remote,
14014
14273
  models,
14015
14274
  preferences: view?.modelPreferences
14016
- }) : (0, react.createElement)("p", { role: "status" }, "Sign in to manage model preferences."), (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Discovery details"), (0, react.createElement)("p", { style: nativeCaptionStyle }, "Signing in here fetches account models once. Opening this view refreshes missing or stale metadata when needed. These models are for github-copilot-preview, not the native github-copilot catalog. Refreshing does not verify a model call or change your selected model."), models === void 0 ? (0, react.createElement)("p", { style: nativeCaptionStyle }, "Account model metadata is not available yet.") : (0, react.createElement)(GitHubCopilotAccountModelsSummary, { snapshot: models })), signedIn ? actionButton(refreshing ? "Refreshing models…" : "Refresh models", account.refreshModels, pendingAction, { "data-dsh-github-copilot-refresh-models": true }) : null, signedIn && state.error === "COPILOT_MODEL_DISCOVERY_FAILED" ? actionButton("Retry", account.refreshModels, pendingAction, { "data-dsh-github-copilot-retry-models": true }) : null) : null));
14275
+ }) : (0, react.createElement)("p", { role: "status" }, "Sign in to manage model preferences."), (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Discovery details"), (0, react.createElement)("p", { style: nativeCaptionStyle }, "Signing in here fetches account models once. Opening this view refreshes missing or stale metadata when needed. Discovery serves github-copilot-preview and does not change the native github-copilot list; an explicitly confirmed sync can copy eligible models. Refreshing does not verify a model call or change your selected model."), models === void 0 ? (0, react.createElement)("p", { style: nativeCaptionStyle }, "Account model metadata is not available yet.") : (0, react.createElement)(GitHubCopilotAccountModelsSummary, { snapshot: models })), signedIn ? actionButton(refreshing ? "Refreshing models…" : "Refresh models", account.refreshModels, pendingAction, { "data-dsh-github-copilot-refresh-models": true }) : null, signedIn && state.error === "COPILOT_MODEL_DISCOVERY_FAILED" ? actionButton("Retry", account.refreshModels, pendingAction, { "data-dsh-github-copilot-retry-models": true }) : null) : null));
14017
14276
  }
14018
14277
  /** Standalone footer presentation; registered Models seats use the shared surface coordinator. */
14019
14278
  function GitHubCopilotPreviewFooter(props) {