dsh-claude-desktop-theme 0.4.2 → 0.4.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/README.md +2 -2
- package/lib/client.js +333 -43
- package/lib/index.js +1 -1
- package/lib/types/client/compat/conversation-process.d.ts +8 -0
- package/lib/types/client/compat/hero-chips.d.ts +9 -0
- package/lib/types/client/compat/host-dom.d.ts +6 -0
- package/lib/types/client/compat/reply-signature.d.ts +6 -0
- package/package.json +1 -2
package/lib/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Disposer } from '../contracts/ports.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Reveal process containers through the host's own handlers. Changing CSS alone
|
|
4
|
+
* leaves hidden reasoning and process members under the host's collapse policy.
|
|
5
|
+
* Leaf reasoning/tool disclosures keep their independent state. Stable hooks
|
|
6
|
+
* come from ui-chat's TurnProcessNodeView and ChatGroupSeat in DSH rc.2.
|
|
7
|
+
*/
|
|
8
|
+
export declare function mountConversationProcess(document: Document, report: (error: unknown) => void): Disposer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Disposer } from '../contracts/ports.ts';
|
|
2
|
+
/** Measured hero row width, also reserved in the Composer tools group. */
|
|
3
|
+
export declare const HERO_CHIP_WIDTH_PROPERTY = "--ccd-workspace-seat";
|
|
4
|
+
/**
|
|
5
|
+
* Measure the complete workspace/preset row, whose chips size to their content.
|
|
6
|
+
* Reserve that width plus one gap in the tools group to separate the permission
|
|
7
|
+
* button. Observe label, font and viewport-driven size changes.
|
|
8
|
+
*/
|
|
9
|
+
export declare function mountHeroChips(document: Document, report: (error: unknown) => void): Disposer;
|
|
@@ -163,6 +163,9 @@ export declare const HOST: Readonly<{
|
|
|
163
163
|
readonly browserList: '._7514NG_list';
|
|
164
164
|
/** FlatList is the only native body the status presentation reorders. */
|
|
165
165
|
readonly browserFlatList: '._7514NG_flatList';
|
|
166
|
+
/** StateDot's stable state attributes, used when root sessionStatus is absent. */
|
|
167
|
+
readonly sessionNeedsInput: '[aria-hidden="true"][data-state="warning"]';
|
|
168
|
+
readonly sessionWorking: '[aria-hidden="true"][data-state="ongoing"]';
|
|
166
169
|
/** Rows.module.css: one Workspace's row, the line the merged header shares,
|
|
167
170
|
and its trailing action group (`sidebar.css` parks both). */
|
|
168
171
|
readonly workspaceRow: '.jJkEga_projectRow';
|
|
@@ -347,6 +350,9 @@ export declare const HOST: Readonly<{
|
|
|
347
350
|
* means the frame is not the pinned one and the feature must stay off.
|
|
348
351
|
*/
|
|
349
352
|
export declare const ANCHOR: Readonly<{
|
|
353
|
+
/** ui-chat TurnProcessNodeView / ChatGroupSeat: process containers, not leaf details. */
|
|
354
|
+
readonly turnProcess: 'button[data-turn-process]';
|
|
355
|
+
readonly stepProcessToggle: '[data-step-process] > div > button[data-process-activity]';
|
|
350
356
|
readonly frame: '[data-slot="root"] > div';
|
|
351
357
|
readonly sidebar: '[data-slot="sidebar"]';
|
|
352
358
|
readonly workspaces: '[data-slot="sidebar.workspaces"]';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Disposer } from '../contracts/ports.ts';
|
|
2
|
+
/** The host marks only the latest turn ending in a reply as always revealed.
|
|
3
|
+
* Starting another turn clears that marker before its response is complete. */
|
|
4
|
+
export declare const REPLY_SIGNATURE_SEAT = "[data-turn-tail][data-actions-reveal=\"always\"]:has(> [data-clock=\"end\"])";
|
|
5
|
+
/** Keep one playful signature at the latest settled reply, following host swaps. */
|
|
6
|
+
export declare function mountReplySignature(document: Document, report: (error: unknown) => void): Disposer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-claude-desktop-theme",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Claude Code Desktop-style theme for DeepSeek Harness (DSH) Desktop on macOS and Windows, with light/dark themes, model/effort pickers and an interactive pixel whale",
|
|
6
6
|
"author": "zkforge",
|
|
@@ -85,7 +85,6 @@
|
|
|
85
85
|
"check": "npm run typecheck && npm run check:architecture && npm test && npm run build && npm run check:package",
|
|
86
86
|
"prepack": "npm run check",
|
|
87
87
|
"pack:local": "npm pack --pack-destination artifacts",
|
|
88
|
-
"preview:install": "node scripts/install-local.mjs",
|
|
89
88
|
"pet:gifs": "node scripts/pet-gifs.mjs",
|
|
90
89
|
"effort:gifs": "node scripts/effort-gif.mjs"
|
|
91
90
|
},
|