Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/release-notes/v0.1.1.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion cordis.patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});',
},
])
Loading