Files
dsh-context/package.json
T
bowenliang123 0e81996a41 feat: port both halves to strict TypeScript; bump to 0.4.0
- src/host.ts: typed fold model (Snapshot/RequestRecord/SurfaceNode/
  ContextEventRecord), local drift-free service contracts for
  connection/sessions/sessionQuery via declare module augmentation
- src/client.cts: typed client bundle (React types via @types/react,
  locale/slots/connection contracts, typed component props); CJS-flavored
  so esbuild keeps require/module.exports despite type:module
- tsconfig.json: strict, noEmit, verbatimModuleSyntax (runtime-free of
  imports in the client bundle is enforced by the type system)
- scripts/build.mjs: esbuild transpile for both halves, loader wrap and
  smoke checks unchanged; npm run typecheck added to the test suite
- note: @deepseek-ai/* service type packages publish broken dependency
  chains on npm (dsh-paths 404), so local contracts replace them
2026-08-14 19:03:16 +08:00

64 lines
1.7 KiB
JSON

{
"name": "dsh-context",
"version": "0.4.0",
"description": "Context insight panel for DeepSeek Harness: a Context tab (beside Chat/Trajectory) showing what the model's context window is made of and how it evolves — composition, per-request history, compactions, injections, and model switches.",
"author": "bowenliang123",
"repository": {
"type": "git",
"url": "git+https://github.com/bowenliang123/dsh-context.git"
},
"homepage": "https://github.com/bowenliang123/dsh-context#readme",
"bugs": {
"url": "https://github.com/bowenliang123/dsh-context/issues"
},
"type": "module",
"main": "lib/index.js",
"exports": {
".": "./lib/index.js",
"./client": "./lib/client.js",
"./package.json": "./package.json"
},
"files": [
"lib",
"cordis.patch.yml",
"README.md",
"LICENSE"
],
"scripts": {
"build": "node scripts/build.mjs",
"typecheck": "tsc --noEmit",
"test": "npm run typecheck && node scripts/test-host.mjs && node scripts/test-client.mjs",
"release": "bash scripts/publish.sh"
},
"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": "MIT",
"devDependencies": {
"@deepseek-ai/cordis": "^4.0.1",
"@types/react": "^18.3.31",
"esbuild": "^0.28.2",
"typescript": "^7.0.2"
}
}