- tsdown.config.ts gains the three CSS virtual loaders mirrored verbatim from packages/client/tsdown.client.ts: .module.css (lightningcss-hashed class map + tagged injection), .css?inline (compiled text), and plain .css (unhashed tagged injection), each registered as a watch dependency - src/client/styles.ts (223 rules as a string array) becomes src/client/styles.css — real stylesheet authoring, minified by lightningcss at build (client bundle 134.8 -> 130.3 kB) - injection now happens at factory materialization with the official tag shape (data-plugin + data-plugin-css + dedupe guard), replacing the hand-rolled ctx.effect; the HMR receiver owns removal by data-plugin, so the hmr spec pins that lifecycle instead of fiber disposal - Decision: class names keep the flat lc-* namespace (the anti-collision discipline, per the research note) instead of per-component hashed modules — the stylesheet's rules are interconnected across components (parent:hover child, shared state classes) and 241 test selectors read literal classes off the built bundle, which a content hash would make unknowable; the hashed .module.css channel is mirrored and available for future self-contained components - globals.d.ts declares the *.css / *.module.css module shapes for the strict typecheck
100 lines
2.6 KiB
JSON
100 lines
2.6 KiB
JSON
{
|
|
"name": "dsh-context",
|
|
"version": "0.22.0",
|
|
"description": "A DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.",
|
|
"author": "bowenliang123",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/bowenliang123/dsh-context.git"
|
|
},
|
|
"homepage": "https://github.com/bowenliang123/dsh-context",
|
|
"bugs": {
|
|
"url": "https://github.com/bowenliang123/dsh-context/issues"
|
|
},
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"types": "lib/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./lib/index.d.ts",
|
|
"default": "./lib/index.js"
|
|
},
|
|
"./client": "./lib/client.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"cordis.patch.yml",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "tsdown",
|
|
"watch": "tsdown --watch",
|
|
"register": "bash scripts/register.sh",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "npm run typecheck && vitest run",
|
|
"release": "bash scripts/publish.sh",
|
|
"hooks": "bash scripts/install-hooks.sh",
|
|
"social-preview": "node docs/social-preview/generate.mjs"
|
|
},
|
|
"dsh": {
|
|
"bundle": {
|
|
"patch": "./cordis.patch.yml"
|
|
},
|
|
"client": {
|
|
"inject": [
|
|
"@deepseek-ai/dsh-client-connection",
|
|
"@deepseek-ai/dsh-client-locale",
|
|
"@deepseek-ai/dsh-client-runtime",
|
|
"@deepseek-ai/dsh-client-ui-conversation"
|
|
],
|
|
"platform": "web"
|
|
}
|
|
},
|
|
"keywords": [
|
|
"deepseek-harness",
|
|
"dsh",
|
|
"cordis",
|
|
"plugin",
|
|
"context",
|
|
"token",
|
|
"ui"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"peerDependencies": {
|
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.7",
|
|
"@deepseek-ai/dsh-session": "^0.1.0-rc.7",
|
|
"react": "^18.3.1",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@deepseek-ai/dsh-client-ui-primitives": {
|
|
"optional": true
|
|
},
|
|
"react": {
|
|
"optional": true
|
|
},
|
|
"zod": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.7",
|
|
"@deepseek-ai/dsh-session": "^0.1.0-rc.7",
|
|
"@deepseek-ai/dsh-session-projection": "^0.1.0-rc.7",
|
|
"@types/react": "^18.3.31",
|
|
"jsdom": "^30.0.1",
|
|
"lightningcss": "^1.33.0",
|
|
"playwright-core": "^1.62.1",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"tsdown": "^0.22.14",
|
|
"typescript": "^7.0.2",
|
|
"vitest": "^4.1.11"
|
|
},
|
|
"packageManager": "pnpm@11.9.0"
|
|
}
|