diff --git a/.github/release-notes/v0.1.1.md b/.github/release-notes/v0.1.1.md index 4d27cf0..f5d4bc6 100644 --- a/.github/release-notes/v0.1.1.md +++ b/.github/release-notes/v0.1.1.md @@ -1,5 +1,9 @@ ## Highlights +- Published as the scoped package `@dsh-labs/dsh-code-highlight`: the unscoped `dsh-code-highlight` + name on npm belongs to an unrelated project, so the package name, the `cordis.patch.yml` module + specifier and the client bundle's module id carry the `dsh-labs` scope. The repository name is + unchanged. - DSH 0.2.2-rc.2 verified: every contract this plugin depends on — the keyed `tool.call.toolview` slot declaration with its `ToolCallOwnerProps` and `ToolCallCommonProps` fields, the `ToolResultNode` block fields, `useCodeHighlighter`, `languageForPath`, and the reused primitives and icons — is @@ -23,6 +27,8 @@ ## Compatibility +- Install with `dsh plugin --profile desktop add @dsh-labs/dsh-code-highlight` (the unscoped npm + name is taken by an unrelated project; the GitHub repository keeps its `dsh-code-highlight` name). - DSH 0.2.2-rc.2: contract-checked against its public npm packages; not verified in the GUI. - DSH 0.2.2-rc.1: contract-checked; verified in the GUI. - DSH 0.2.1-rc.5: contract-checked against its public npm packages; not verified in the GUI. diff --git a/README.md b/README.md index 04eea8b..51ee002 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ colours are exactly DSH's (`--shiki-*` theme tokens) and themes apply unchanged. ## Install ```sh -dsh plugin --profile desktop add dsh-code-highlight +dsh plugin --profile desktop add @dsh-labs/dsh-code-highlight ``` Restart DSH, or reload the window, after installing. For the browser profile, use `--profile web`. diff --git a/cordis.patch.yml b/cordis.patch.yml index 9ede6f6..985cce0 100644 --- a/cordis.patch.yml +++ b/cordis.patch.yml @@ -2,4 +2,4 @@ # The Host row is empty; the Client half (package.json `dsh.client`) does the work. - insert: - id: dsh-code-highlight - name: 'dsh-code-highlight' + name: '@dsh-labs/dsh-code-highlight' diff --git a/package.json b/package.json index 59bc583..aec1e3d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "dsh-code-highlight", + "name": "@dsh-labs/dsh-code-highlight", "version": "0.1.1", "description": "Syntax-highlighted diffs for edit / write / apply_patch tool cards in the DeepSeek Harness chat, using DSH's own highlighter.", "type": "module", diff --git a/tsdown.config.ts b/tsdown.config.ts index 644d661..752ecf8 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -21,7 +21,7 @@ export default defineConfig([ neverBundle: ['react', 'react-dom', 'react/jsx-runtime', '@deepseek-ai/dsh-client-ui-primitives', /^@deepseek-ai\/cordis/], alwaysBundle: ['diff'], }, - banner: 'window.__ModuleLoader__.load({\n id: "dsh-code-highlight",\n factory: (require) => {\n var module = { exports: {} };\n var exports = module.exports;\n Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });', + banner: 'window.__ModuleLoader__.load({\n id: "@dsh-labs/dsh-code-highlight",\n factory: (require) => {\n var module = { exports: {} };\n var exports = module.exports;\n Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });', footer: '\n return module.exports;\n }\n});', }, ])