dsh-github-copilot 0.4.0-alpha.37 → 0.4.0-alpha.39

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.
@@ -118,28 +118,37 @@ There is no historical bulk backfill and no silent npm opt-out.
118
118
 
119
119
  ## Installation preflight still applies
120
120
 
121
- The native Desktop package manager remains the preferred interactive entry
122
- point when its registry access is permitted and available. After npm publication
123
- is verified, it accepts the exact `dsh-github-copilot@<version>` npm spec, not a
124
- Release URL or local tarball in that UI. This UI input restriction is not a
125
- blanket prohibition on maintaining the same profile through the supported CLI.
126
- Controlled CLI maintenance is also supported for Desktop-managed profiles under
127
- the checklist below. Neither entry point replaces the package's required
128
- `scripts/check-search-composition.mjs` preflight. A package lookup, preflight or
129
- successful installation is not proof of runtime activation or a model call.
130
-
131
- ## Controlled offline CLI maintenance
121
+ Desktop profiles must be managed through Desktop's native package manager.
122
+ The reserved `desktop` profile is not supported by DSH CLI plugin commands.
123
+ After npm publication is verified, the native manager accepts the exact
124
+ `dsh-github-copilot@<version>` npm spec, not a Release URL or local tarball.
125
+ The CLI procedure below applies only to standalone named profiles and is not a
126
+ Desktop fallback when registry access is blocked.
127
+
128
+ Neither entry point replaces the package's required
129
+ `scripts/check-search-composition.mjs` preflight. The official DSH 0.2
130
+ `composeProfile()` path writes the empty `cordis.yml` root before normal launch,
131
+ including when Desktop supplies an already resolved profile. Therefore the
132
+ preflight refuses a nonempty root as `NONEMPTY_DISPOSABLE_PROFILE_ROOT`; do not
133
+ install or start/restart that profile until the data has been preserved and an
134
+ officially supported migration has been established. A package lookup,
135
+ preflight or successful installation is not proof of runtime activation or a
136
+ model call.
137
+
138
+ ## Controlled offline CLI maintenance for standalone profiles
132
139
 
133
140
  This path installs this package's prebuilt, verified Release without requiring
134
141
  access to a blocked npm registry. It is not permission to bypass organizational registry restrictions:
135
142
  use only artifacts obtained through organizationally approved sources and
136
143
  already available dependency caches. A registry ban remains in force; offline
137
144
  installation does not repair TLS or prove that npm publication is healthy. The
138
- dual-channel **publication** policy above is unchanged.
145
+ dual-channel **publication** policy above is unchanged. **Do not use this path
146
+ for a Desktop-managed/reserved profile.**
139
147
 
140
148
  1. Obtain explicit installation approval for the exact version and profile.
141
- Resolve the actual DSH CLI, install anchor, `DSH_HOME` and profile directory;
142
- do not assume a shell shim points to the Desktop's current installation.
149
+ Resolve the standalone DSH CLI, install anchor, `DSH_HOME` and profile
150
+ directory; do not target Desktop's reserved `desktop` profile or assume a
151
+ shell shim points to the intended installation.
143
152
  2. Verify the original Release tarball with an independently trusted SHA-256,
144
153
  its package name/version and safe archive layout. Do not substitute a local
145
154
  build or repack an existing immutable Release. Extract only the verified
@@ -148,8 +157,8 @@ dual-channel **publication** policy above is unchanged.
148
157
  and install anchor, including any extra startup patches. Require
149
158
  `supported: true`; unknown, conflicting or unsupported composition is a stop,
150
159
  not permission to remove guards or rewrite the profile.
151
- 4. Keep one writer: do not run Desktop package updates and CLI installation
152
- concurrently. Take a private backup of installation metadata (package.json,
160
+ 4. Keep one writer: do not run concurrent package/profile updates. Take a
161
+ private backup of installation metadata (package.json,
153
162
  lockfile, bundle/patch configuration and relevant package-manager settings),
154
163
  record the current version, and retain a verified rollback artifact.
155
164
  Do not copy credential stores, `.env` files or browser storage. If ensuring
@@ -184,5 +193,6 @@ dual-channel **publication** policy above is unchanged.
184
193
  If installation fails, inspect the actual installed state before retrying or
185
194
  rolling back; a failed command is not proof that nothing changed. A rollback
186
195
  also needs reviewed, narrowly scoped metadata/dependency restoration. This
187
- documentation change does not rewrite installed or published historical docs,
188
- change machine-wide registry policy, or grant blanket approval for future updates.
196
+ procedure does not authorize Desktop profile management, rewrite installed or
197
+ published historical docs, change machine-wide registry policy, or grant blanket
198
+ approval for future updates.
@@ -0,0 +1,28 @@
1
+ # Official-first review: DSH 0.2.0-rc.1
2
+
3
+ ## Target and evidence boundary
4
+
5
+ Candidate plugin **`0.4.0-alpha.38`** adds official Core **`0.2.0-rc.1`**, tag commit [`4878cdabd87d4041bdaff61d04c966883b9fd07a`](https://github.com/deepseek-ai/deepseek-harness/commit/4878cdabd87d4041bdaff61d04c966883b9fd07a), as the current target while retaining every earlier compatibility pin. The independently observed Windows Desktop feed also identifies `0.2.0-rc.1`; its Desktop package set is not materialized in this checkout. Source/API qualification, npm package fixtures, and Desktop installation/runtime qualification are separate evidence.
6
+
7
+ This review inspected only the exact official tag and unchanged installed package artifacts. **Complete** means the cited public contract supports the named behavior, not that Desktop or a live service was qualified. **Partial** identifies both the official capability and the gap. **Unverified** means parity was not established, not that official support is absent. Decisions are **retain**, **migrate**, or **retire**. A retirement trigger is evidence for a separately reviewed change, never permission for automatic removal on a version bump.
8
+
9
+ ## Compatibility decisions
10
+
11
+ | Surface | Exact official contract and support | Decision | Remaining gap / retirement trigger |
12
+ |---|---|---|---|
13
+ | Copilot OAuth, credentials, catalog and ordinary model transport | The unchanged official [`llm-pi-ai` login/auth exports](https://github.com/deepseek-ai/deepseek-harness/tree/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/llm/llm-pi-ai/src) continue to own provider registration, OAuth grants, refresh and normal transport. | **Retain** the narrow public credential bridge and account-scoped route; do not add a second adapter or catalog. | The official path does not establish the companion's strict grant normalization, conditional authorization bootstrap, or authenticated per-account endpoint/capability metadata. Retire those bridges only after public official behavior and runtime acceptance preserve the same data and safety contracts. |
14
+ | Core settings access and invalidation | [`SettingsForms`](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/settings/settings/src/index.ts) and its public [types](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/settings/settings/src/types.ts) expose current descriptor/mutation APIs and the `settings/document-updated` event. | **Migrate** readers to the public descriptor path where legacy `get` is absent; **retain** a narrow legacy branch for older supported releases. | Retire the compatibility reader/listener only when the corresponding older Core pins are removed through an explicit support-policy change and the current namespace/redaction guarantees remain intact. |
15
+ | Volatile provider configuration | The public [`PiAiConfig` provider view](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/llm/llm-pi-ai/src/config.ts) wraps provider storage; callers materialize it through `.get()` rather than object indexing. | **Migrate** the plugin's route builder to `.get()` and **retain** object support for older native layouts. | Do not infer registration from an empty volatile wrapper. Retire the legacy object branch only with removal of the older baselines and matching fixture evidence. |
16
+ | Tool results and message history | The current [`Message` contract](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/llm/llm/src/message.ts) includes first-class `role: 'tool'` messages; older history can still contain nested tool-result blocks. | **Migrate** serialization to recognize both current and retained forms without rewriting source history. | Do not collapse tool messages into assistant text or change replay ownership. Retire legacy handling only after old stored histories are outside the declared support scope. |
17
+ | Agent creation and existing role-history restoration | The public [Agent lifecycle](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/core/agent/src/index.ts) serializes and awaits `agent/created`; the event carries a creation source. | **Retain** compatibility-only projection restoration and test it through the awaited public lifecycle. | Retired role UI/settings/new-root behavior stays retired. Runtime policy enforcement and old-history recovery remain plugin-owned; never infer permission from a missing or malformed descriptor. |
18
+ | Remote and Client Gateway validation | Current [Typert codecs](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/typert/protocol/src/types.ts) expose `create()` factories. The [Client Gateway](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/api/gateway/src/client/index.ts) forwards parameter payloads without local parsing; strict input validation belongs at the registered Host boundary. Strict result codecs decode only when the descriptor publishes a decoder. | **Migrate** descriptor tests to current `create()` factories; **retain** the same strict Host codecs and legacy `.schema` helper bridge. | Client-side tests must not claim pre-transport input filtering or result validation the current Gateway does not promise. The exact-source Host fixture must continue to prove strict registered-boundary parsing. Retire the legacy bridge only after old Core consumers leave support. |
19
+ | Models UI and additive contribution | The official [Models Client](https://github.com/deepseek-ai/deepseek-harness/blob/4878cdabd87d4041bdaff61d04c966883b9fd07a/packages/client/ui-settings-models/src/client/index.ts) declares keyed `settings.models.provider-card` and list `settings.models.footer` slots. | **Retain** additive account/search controls and native model editing. | Slot existence is not account-management or search-policy parity. Retire a control only after equivalent official workflow, accessibility, ownership and lifecycle behavior pass Client/Desktop acceptance. |
20
+ | Web routing and search | Official Web exposes registered provider dispatch; the plugin's public facade captures an exact registered provider before routed search. | **Retain** fail-closed captured-registration dispatch and the explicit missing-seam diagnostic. | Never replace captured identity with an ID-only lookup, global model default or another Session's selection. Desktop/runtime and live provider behavior remain unverified. |
21
+ | Plugin installation and Desktop injection | The official Windows Desktop feed identifies release `0.2.0-rc.1`, but no installed Desktop package set or loaded runtime is present here. | **Retain** package entry-point/peer checks and document the independent Desktop boundary. | Do not claim successful injection, install, activation, authentication, model calls or UI behavior from Core source or npm package tests alone. |
22
+
23
+ ## Qualification ledger
24
+
25
+ - The release/tag and public source contracts above are pinned; the Core tree and installed dependencies were not modified.
26
+ - Local source build, focused tests, repository verifiers, exact-tag runtime fixtures and the complete gate must be reported separately after execution. Package-version metadata is not semantic or runtime proof.
27
+ - No real Copilot OAuth, model, search, live-profile change, Desktop install/restart, publication, push or pull request is part of this adaptation.
28
+ - Desktop package hashes/contents, packaged Electron activation, and loaded-version equivalence are **not verified** in this checkout. The observed feed release is not a materialized Desktop artifact.
@@ -0,0 +1,16 @@
1
+ # Official-first review: DSH 0.2.0-rc.2
2
+
3
+ ## Target and evidence
4
+
5
+ The sole admitted target is official [`dsh-v0.2.0-rc.2`](https://github.com/deepseek-ai/deepseek-harness/tree/639ed015397290b3745d163aafe02ffee4aa3f84), commit `639ed015397290b3745d163aafe02ffee4aa3f84`. Compare it with the retained [rc.1 baseline](./official-first-020-rc1.md) using the [official source comparison](https://github.com/deepseek-ai/deepseek-harness/compare/dsh-v0.2.0-rc.1...dsh-v0.2.0-rc.2). The signed installed Windows Desktop `dsh/desktop-runtime.json` is 2,817,387 bytes, SHA-256 `29561160fb7825c3968708f5700564f4381a976985fc270ee5dcc42e5a0a3a54`, and lists 287 shared packages. Desktop, Core and Desktop Host report rc.2; the 16 declared DSH peers resolve rc.2, Cordis 4.0.4 and schemastery 3.18.4. The descriptor establishes peer ownership, not plugin activation, Electron integration or live provider calls.
6
+
7
+ ## Public contracts and decisions
8
+
9
+ | Surface | Official support / remaining gap | Decision and retirement trigger |
10
+ |---|---|---|
11
+ | Native model adapter and SDK | Published [`@deepseek-ai/dsh-llm-pi-ai@0.2.0-rc.2`](https://registry.npmjs.org/@deepseek-ai/dsh-llm-pi-ai/-/dsh-llm-pi-ai-0.2.0-rc.2.tgz) depends on pi-ai `^0.87.1`. The native SDK now passes branded `TranscriptContext` to providers, with prompt and tools folded into system messages. | **Migrate** the plugin-owned provider bridge and estimated admission to exact pi-ai `0.87.1`; count each normalized message as a lower bound even when earlier usage anchors omit changed prefixes. Retain native transport and the same stream object. Retire this bridge only when official account-scoped metadata and admission preserve these contracts. |
12
+ | Profile bundle patches | Public `bundlePatchPaths` accepts a bundle's string or ordered array of patches. Signed rc.2 `dsh-web-app` lists five patches, whereas the old plugin preflight accepted only one string. | **Migrate** read-only preflight to the published resolver and compose every patch in order, rejecting malformed manifests and unsupported routing. Retire only after an official installer provides equivalent fail-closed structural admission. |
13
+ | Models UI, authorization, Remote, Session and search | Published rc.2 package entrypoints and inspected public seams retain the rc.1 forms. The official rc.2 UI-agent-preset removes its `developerTools` injection, which this plugin does not use. | **Retain** the public Host/Client/Remote integrations and their guarded ownership. Retirement requires verified official equivalent behavior plus migration and runtime acceptance; lack of a new public seam is not evidence of complete parity. |
14
+ | Desktop package graph | Signed descriptor has the current shared peers; pi-ai and Zod are not shared Host packages. The bundled adapter resolves pi-ai 0.87.1 and Zod separately. | **Retain** required Host peers and Client external React; do not copy bundled dependencies or patch Core. Recheck effective profile resolution before Desktop installation because a stale profile-local Host peer may shadow the bundle. |
15
+
16
+ The unchanged-tagged-source and exact published-artifact fixtures must pass on Windows and Linux before publication. Local synthetic HTTP, source markers, package imports and signed peer metadata do not prove account entitlement, Copilot model calls, loaded Desktop plugin state or profile installation. The Desktop owner performs installation separately after verified publication and preflight; no credentials, model settings or Session histories are migrated by this change.
package/lib/client.js CHANGED
@@ -6070,7 +6070,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6070
6070
  const [draft, setDraft] = (0, react.useState)({
6071
6071
  primary: "auto",
6072
6072
  provider: DEEPSEEK_SEARCH_PROVIDER,
6073
- legacy: true
6073
+ legacy: true,
6074
+ routingNamespace: WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE
6074
6075
  });
6075
6076
  const [override, setOverride] = (0, react.useState)({ model: "" });
6076
6077
  const [providers, setProviders] = (0, react.useState)([]);
@@ -6103,9 +6104,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6103
6104
  setMessage("Could not load search settings. Reload settings to retry.");
6104
6105
  return;
6105
6106
  }
6106
- const routing = result.value.namespaces.find((entry) => entry.ns === WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE);
6107
6107
  const copilot = result.value.namespaces.find((entry) => entry.ns === GITHUB_COPILOT_SETTINGS_NAMESPACE);
6108
- const routingValue = record$1(routing?.value), copilotValue = record$1(copilot?.value);
6108
+ const routing = result.value.namespaces.find((entry) => entry.ns === WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE);
6109
+ const copilotValue = record$1(copilot?.value);
6110
+ const routingValue = record$1(routing?.value);
6109
6111
  const normalized = normalizeWebSearchRouting({
6110
6112
  searchProvider: typeof routingValue.searchProvider === "string" ? routingValue.searchProvider : void 0,
6111
6113
  searchMode: routingValue.searchMode === "fixed" ? "fixed" : "auto",
@@ -6115,7 +6117,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6115
6117
  primary: normalized.primaryProvider,
6116
6118
  provider: normalized.defaultProvider,
6117
6119
  legacy: normalized.legacy,
6118
- routingRevision: revisionOf(routing?.revision)
6120
+ routingRevision: revisionOf(routing?.revision),
6121
+ routingNamespace: WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE
6119
6122
  });
6120
6123
  setOverride({
6121
6124
  model: typeof copilotValue.searchModel === "string" ? copilotValue.searchModel.trim() : "",
@@ -6170,7 +6173,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6170
6173
  setSaving("routing");
6171
6174
  setMessage("");
6172
6175
  try {
6173
- const result = await props.settings.mutate(WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE, [{
6176
+ const result = await props.settings.mutate(draft.routingNamespace, [{
6174
6177
  op: "set",
6175
6178
  path: ["searchProvider"],
6176
6179
  value: primary