Files
dsh-context/package.json
T
bowenliang123 97ae8ff2ee feat(client): preview File Activity files in the right Sidebar
Clicking a file name in the File Activity card now opens the file's preview
tab in the right Sidebar — the shipped document-preview viewer, reached the
same way the built-in Files sidebar reaches it — on harnesses that serve that
column (dsh 0.1.5-rc.1+). The address is built with the harness's own
browser-safe `fileAddressFor`, inlined by the client bundle exactly as the
Sidebar's file types inline it, so a path under the workspace collapses to the
session-relative spelling and every route to one file settles on one tab.

The capability is OPTIONAL by contract, like the tab registration itself: the
opener reads `ctx.sidebarRight.openResource` through the runtime boundary and
re-proves it per call, and reports whether the column took the address. An
absent column, a face that refuses the address, or an unencodable log path
falls through to the pre-existing system-open behavior, so an older line is
fully functional and nothing becomes an inert click. Pattern rows and
directory targets are never previewable.

Adds the `@deepseek-ai/dsh-util-workspace-path` dev dependency (itself
browser-safe), allows it in the client bundle purity gate, pins the
resource-navigation seam in the compat matrix, and covers the address builder,
the card's preview-then-fallback click, and the optional opener per baseline.
2026-09-11 18:45:28 +08:00

132 lines
3.6 KiB
JSON

{
"name": "dsh-context",
"version": "0.49.4",
"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",
"engines": {
"node": "^22.19.0 || >=24.0.0"
},
"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/client.js",
"lib/index.js",
"lib/index.d.ts",
"cordis.patch.yml",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsdown",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"watch": "bash scripts/watch.sh",
"web": "bash scripts/web.sh",
"register": "bash scripts/register.sh",
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.tests.json",
"test": "pnpm run typecheck && vitest run --coverage",
"coverage": "vitest run --coverage",
"release": "bash scripts/publish.sh",
"social-preview": "node docs/social-preview/generate.ts",
"prepare": "husky"
},
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"inject": [
"@deepseek-ai/dsh-api-remotes",
"@deepseek-ai/dsh-client-connection",
"@deepseek-ai/dsh-client-locale",
"@deepseek-ai/dsh-client-ui-conversation",
"@deepseek-ai/dsh-client-ui-settings",
"@deepseek-ai/dsh-client-ui-sidebar-right"
],
"platform": "web"
},
"compatibility": {
"dshReleases": {
"0.1.2-rc.1": "compatible",
"0.1.3-alpha.2": "compatible",
"0.1.5-rc.1": "compatible"
}
}
},
"keywords": [
"deepseek-harness",
"dsh",
"cordis",
"plugin",
"context",
"token",
"ui"
],
"license": "Apache-2.0",
"dependencies": {
"zod": "^4.4.3"
},
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.2",
"@deepseek-ai/dsh-client-ui-primitives": ">=0.1.2-rc.1",
"@deepseek-ai/dsh-session": ">=0.1.2-rc.1",
"@deepseek-ai/dsh-settings": ">=0.1.2-rc.1",
"@deepseek-ai/schemastery": "^3.18.2",
"react": "^18.3.1"
},
"peerDependenciesMeta": {
"@deepseek-ai/dsh-client-ui-primitives": {
"optional": true
},
"react": {
"optional": true
}
},
"devDependencies": {
"@deepseek-ai/cordis": "^4.0.2",
"@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1",
"@deepseek-ai/dsh-invariants": "0.1.2-rc.1",
"@deepseek-ai/dsh-scope": "0.1.2-rc.1",
"@deepseek-ai/dsh-session": "0.1.2-rc.1",
"@deepseek-ai/dsh-session-projection": "0.1.2-rc.1",
"@deepseek-ai/dsh-settings": "0.1.2-rc.1",
"@deepseek-ai/dsh-util-workspace-path": "0.1.5-rc.1",
"@deepseek-ai/schemastery": "^3.18.2",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^26.2.0",
"@types/react": "^18.3.31",
"@types/react-dom": "^18.3.7",
"@vitest/coverage-v8": "^4.1.11",
"eslint-plugin-sonarjs": "^4.2.0",
"husky": "^9.1.7",
"jsdom": "^30.0.1",
"lightningcss": "^1.33.0",
"oxlint": "1.76.0",
"oxlint-tsgolint": "7.0.2001",
"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",
"zod": "^4.4.3"
}
}