dsh-score 0.1.0 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.2] - 2026-08-22
9
+
10
+ ### Changed
11
+
12
+ - Upgrade all `@deepseek-ai/dsh-*` peers to the DSH `0.1.1-rc.2` release: devDependencies pin `0.1.1-rc.2` exactly (including `dsh-attachment`), the `dshWorkshop.compatibility.dshVersions` marker and the README compatibility tables follow, and the compat workflow installs `@deepseek-ai/dsh@0.1.1-rc.2` with `dsh-base`/`dsh-headless` at `0.1.1-rc.2`. Peer dependencies stay `>=0.1.0-rc.8 <0.2.0` because the plugin uses no rc2-only API.
13
+ - `typecheck`/`typecheck:ci` and the test harness now validate against the published `0.1.1-rc.2` types.
14
+
15
+ ## [0.1.1] - 2026-08-21
16
+
17
+ ### Changed
18
+
19
+ - Upgrade all `@deepseek-ai/dsh-*` peers to the DSH `0.1.0-rc.8` release: peerDependencies now declare `>=0.1.0-rc.8 <0.2.0`, devDependencies pin `0.1.0-rc.8` exactly, and the `dshWorkshop.compatibility.dshVersions` marker and README compatibility tables follow.
20
+ - `typecheck`/`typecheck:ci` and the test harness now validate against the published `0.1.0-rc.8` types.
21
+
8
22
  ## [0.1.0] - 2026-08-17
9
23
 
10
24
  ### Added
package/README.es.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | Componente | Versión |
26
26
  |---|---|
27
- | DeepSeek Harness | `0.1.0-rc.6` (peer dependencies fijadas) |
27
+ | DeepSeek Harness | `0.1.1-rc.2` (dependencias entre pares `>=0.1.0-rc.8 <0.2.0`) |
28
28
  | Node.js | `^22.19.0 \|\| >=24.0.0` |
29
29
  | Gestor de paquetes | `pnpm@11.7.0` |
30
30
  | Plataforma | Windows / macOS / Linux (plugin solo host) |
package/README.hi.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | घटक | संस्करण |
26
26
  |---|---|
27
- | DeepSeek Harness | `0.1.0-rc.6` (peer निर्भरताएँ पिन) |
27
+ | DeepSeek Harness | `0.1.1-rc.2` (peer निर्भरताएँ `>=0.1.0-rc.8 <0.2.0`) |
28
28
  | Node.js | `^22.19.0 \|\| >=24.0.0` |
29
29
  | पैकेज प्रबंधक | `pnpm@11.7.0` |
30
30
  | प्लेटफ़ॉर्म | Windows / macOS / Linux (केवल-होस्ट प्लगइन) |
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  <div align="center">
2
2
 
3
3
  # 🏆 dsh-score
4
+ [![Gitee](https://img.shields.io/badge/Gitee-mirror-c71d23?logo=gitee)](https://gitee.com/perrylink/dsh-score)
4
5
 
5
6
  **Multi-dimensional quality scoring for DeepSeek Harness plugins.**
6
7
 
@@ -24,7 +25,7 @@
24
25
 
25
26
  | Component | Version |
26
27
  |---|---|
27
- | DeepSeek Harness | `0.1.0-rc.6` (peer dependencies pinned) |
28
+ | DeepSeek Harness | `0.1.1-rc.2` (peer dependencies `>=0.1.0-rc.8 <0.2.0`) |
28
29
  | Node.js | `^22.19.0 \|\| >=24.0.0` |
29
30
  | Package manager | `pnpm@11.7.0` |
30
31
  | Platform | Windows / macOS / Linux (host-only plugin) |
@@ -162,7 +163,7 @@ pnpm run typecheck && pnpm run typecheck:ci && pnpm test
162
163
  pnpm run build && pnpm run verify:self-contained && pnpm run verify:artifacts && pnpm pack
163
164
  ```
164
165
 
165
- - `typecheck` resolves `@deepseek-ai/*` through the local harness checkout; `typecheck:ci` checks against the published `0.1.0-rc.6` types.
166
+ - `typecheck` resolves `@deepseek-ai/*` through the local harness checkout; `typecheck:ci` checks against the published `0.1.1-rc.2` types.
166
167
  - Tests use the real `Context`/`Session`/`ToolRuntime`/`LocalJobRegistry`/storage stack with a scripted subprocess provider.
167
168
  - Real-CLI scoring (requires `gh`/`npm` on PATH, `gh` authenticated): invoke `score` from a mounted profile.
168
169
  - Release: `node scripts/release.mjs <x.y.z>` (bumps, stamps CHANGELOG, re-runs the gate, commits + tags; never pushes).
package/README.pt.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | Componente | Versão |
26
26
  |---|---|
27
- | DeepSeek Harness | `0.1.0-rc.6` (peer dependencies fixadas) |
27
+ | DeepSeek Harness | `0.1.1-rc.2` (dependências de pares `>=0.1.0-rc.8 <0.2.0`) |
28
28
  | Node.js | `^22.19.0 \|\| >=24.0.0` |
29
29
  | Gerenciador de pacotes | `pnpm@11.7.0` |
30
30
  | Plataforma | Windows / macOS / Linux (plugin somente host) |
package/README.zh.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | 组件 | 版本 |
26
26
  |---|---|
27
- | DeepSeek Harness | `0.1.0-rc.6`(peer 依赖钉死) |
27
+ | DeepSeek Harness | `0.1.1-rc.2`(peer 依赖 `>=0.1.0-rc.8 <0.2.0`) |
28
28
  | Node.js | `^22.19.0 \|\| >=24.0.0` |
29
29
  | 包管理器 | `pnpm@11.7.0` |
30
30
  | 平台 | Windows / macOS / Linux(纯 host 插件) |
@@ -136,7 +136,7 @@ pnpm run typecheck && pnpm run typecheck:ci && pnpm test
136
136
  pnpm run build && pnpm run verify:self-contained && pnpm run verify:artifacts && pnpm pack
137
137
  ```
138
138
 
139
- - `typecheck` 经本地 harness checkout 解析 `@deepseek-ai/*`;`typecheck:ci` 对照已发布的 `0.1.0-rc.6` 类型。
139
+ - `typecheck` 经本地 harness checkout 解析 `@deepseek-ai/*`;`typecheck:ci` 对照已发布的 `0.1.1-rc.2` 类型。
140
140
  - 测试使用真实 `Context`/`Session`/`ToolRuntime`/`LocalJobRegistry`/存储栈,子进程 provider 为脚本化实现。
141
141
  - 真实 CLI 评分(需 PATH 有 `gh`/`npm`,`gh` 已认证):在已挂载 profile 中调用 `score`。
142
142
  - 发布:`node scripts/release.mjs <x.y.z>`(升版本、盖 CHANGELOG、重跑门禁、提交 + tag;绝不 push)。
package/lib/index.js CHANGED
@@ -1001,7 +1001,7 @@ var ProbeDriver = class {
1001
1001
  * The structured score records it as `score.pluginVersion`.
1002
1002
  * @module dsh-score/version
1003
1003
  */
1004
- const VERSION = "0.1.0";
1004
+ const VERSION = "0.1.2";
1005
1005
  //#endregion
1006
1006
  //#region src/score.ts
1007
1007
  /**
@@ -10,8 +10,8 @@
10
10
  import type { Agent } from '@deepseek-ai/dsh-agent';
11
11
  import type { Context } from '@deepseek-ai/cordis';
12
12
  import type { JobId } from '@deepseek-ai/dsh-jobs';
13
- import type { LeaderboardRecord, LeaderboardRow, ScoreResult } from './result.ts';
14
- import type { ScoreDeps } from './score.ts';
13
+ import type { LeaderboardRecord, LeaderboardRow, ScoreResult } from './result.js';
14
+ import type { ScoreDeps } from './score.js';
15
15
  /** The job kind this producer registers (declaration-merged into JobKindMap). */
16
16
  export declare const SCORE_BATCH_KIND: "score-batch";
17
17
  declare module '@deepseek-ai/dsh-jobs' {
@@ -7,7 +7,7 @@
7
7
  * @module dsh-score/command
8
8
  */
9
9
  import type { CommandInvocation, CommandResult } from '@deepseek-ai/dsh-commands';
10
- import type { BatchDeps } from './batch.ts';
10
+ import type { BatchDeps } from './batch.js';
11
11
  /** Split raw command input into target specs (whitespace and commas separate). */
12
12
  export declare function parseTargets(rawInput: string): string[];
13
13
  /**
@@ -8,7 +8,7 @@
8
8
  * @module dsh-score/config
9
9
  */
10
10
  import z from '@deepseek-ai/schemastery';
11
- import type { Dimension } from './result.ts';
11
+ import type { Dimension } from './result.js';
12
12
  /** Default deadline for one git/gh/npm probe command in milliseconds. */
13
13
  export declare const DEFAULT_PROBE_TIMEOUT_MS = 60000;
14
14
  export declare const MIN_PROBE_TIMEOUT_MS = 1000;
@@ -7,9 +7,9 @@
7
7
  *
8
8
  * @module dsh-score/dimensions
9
9
  */
10
- import type { ResolvedConfig } from './config.ts';
11
- import type { NpmFacts, RepoFacts } from './probe.ts';
12
- import type { Dimension, DimensionScore } from './result.ts';
10
+ import type { ResolvedConfig } from './config.js';
11
+ import type { NpmFacts, RepoFacts } from './probe.js';
12
+ import type { Dimension, DimensionScore } from './result.js';
13
13
  /** Install evidence reserved for dsh-test-drive results (see {@link InstallEvidence}). */
14
14
  export interface InstallEvidence {
15
15
  /** The drive verdict, when a test-drive record existed for the target. */
@@ -13,7 +13,7 @@
13
13
  * @module dsh-score
14
14
  */
15
15
  import type { Context } from '@deepseek-ai/cordis';
16
- import { Config } from './config.ts';
16
+ import { Config } from './config.js';
17
17
  export declare const name = "dsh-score";
18
18
  /**
19
19
  * Public services only. `storageDomain` is deliberately OPTIONAL: the shipped
@@ -23,21 +23,21 @@ export declare const name = "dsh-score";
23
23
  * `test_drive` domain via the same optional service, never a hard dependency.
24
24
  */
25
25
  export declare const inject: string[];
26
- export { VERSION } from './version.ts';
27
- export { Config, resolveConfig } from './config.ts';
28
- export { RESULT_SCHEMA, DIMENSIONS, computeTotal, hasEvidence, gradeOf, verdictOf, totalsOf, ScoreResultSchema, LeaderboardRecordSchema } from './result.ts';
29
- export type { Dimension, DimensionStatus, TargetKind, EvidenceLink, DimensionScore, ScoreResult, LeaderboardRow, LeaderboardRecord } from './result.ts';
30
- export { sanitizeTarget, redactSecrets, scanSecretPatterns, tailText, REDACTED, SECRET_PATTERNS } from './sanitize.ts';
31
- export { classifyTarget, parseRepoRef, extractRepoFromNpmUrl, parseRepoMeta, parseLatestCommit, parseFileList, parseGithubContent, parseOldestOpenIssue, parseNpmView, parseNpmShim, ProbeDriver } from './probe.ts';
32
- export type { RepoRef, RepoFacts, NpmFacts, TargetEvidence, ProbeOutcome, ChildRunResult } from './probe.ts';
33
- export { evaluateAll, evaluateInstall, evaluateMaintenance, evaluateDocumentation, evaluateSecurity, evaluateCompliance, scanMaliciousScripts, licenseCompliance, daysSince, LICENSE_ALLOWLIST, MALICIOUS_SCRIPT_MARKERS } from './dimensions.ts';
34
- export type { InstallEvidence, EvalInputs } from './dimensions.ts';
35
- export { ScoreRunner, scoreKey, readTestDriveEvidence, SCORE_KEY_PREFIX } from './score.ts';
36
- export type { ScoreDeps } from './score.ts';
37
- export { renderScoreCard, renderLeaderboard, statusMark, formatDuration } from './report.ts';
38
- export { SCORE_BATCH_KIND, startBatchJob, runBatch, leaderboardSummary, rowOf, progressLine, freshLeaderboardId, LEADERBOARD_ID_PREFIX } from './batch.ts';
39
- export { parseTargets } from './command.ts';
40
- export { scoreDomainSpec, DOMAIN_NAME, DOMAIN_VERSION } from './domain.ts';
26
+ export { VERSION } from './version.js';
27
+ export { Config, resolveConfig } from './config.js';
28
+ export { RESULT_SCHEMA, DIMENSIONS, computeTotal, hasEvidence, gradeOf, verdictOf, totalsOf, ScoreResultSchema, LeaderboardRecordSchema } from './result.js';
29
+ export type { Dimension, DimensionStatus, TargetKind, EvidenceLink, DimensionScore, ScoreResult, LeaderboardRow, LeaderboardRecord } from './result.js';
30
+ export { sanitizeTarget, redactSecrets, scanSecretPatterns, tailText, REDACTED, SECRET_PATTERNS } from './sanitize.js';
31
+ export { classifyTarget, parseRepoRef, extractRepoFromNpmUrl, parseRepoMeta, parseLatestCommit, parseFileList, parseGithubContent, parseOldestOpenIssue, parseNpmView, parseNpmShim, ProbeDriver } from './probe.js';
32
+ export type { RepoRef, RepoFacts, NpmFacts, TargetEvidence, ProbeOutcome, ChildRunResult } from './probe.js';
33
+ export { evaluateAll, evaluateInstall, evaluateMaintenance, evaluateDocumentation, evaluateSecurity, evaluateCompliance, scanMaliciousScripts, licenseCompliance, daysSince, LICENSE_ALLOWLIST, MALICIOUS_SCRIPT_MARKERS } from './dimensions.js';
34
+ export type { InstallEvidence, EvalInputs } from './dimensions.js';
35
+ export { ScoreRunner, scoreKey, readTestDriveEvidence, SCORE_KEY_PREFIX } from './score.js';
36
+ export type { ScoreDeps } from './score.js';
37
+ export { renderScoreCard, renderLeaderboard, statusMark, formatDuration } from './report.js';
38
+ export { SCORE_BATCH_KIND, startBatchJob, runBatch, leaderboardSummary, rowOf, progressLine, freshLeaderboardId, LEADERBOARD_ID_PREFIX } from './batch.js';
39
+ export { parseTargets } from './command.js';
40
+ export { scoreDomainSpec, DOMAIN_NAME, DOMAIN_VERSION } from './domain.js';
41
41
  /**
42
42
  * Mount the plugin: resolve config, open the score domain (lazily), register
43
43
  * the tools and the `/score` command as effects, and own the domain handle
@@ -13,8 +13,8 @@
13
13
  * @module dsh-score/probe
14
14
  */
15
15
  import type { Context } from '@deepseek-ai/cordis';
16
- import type { ResolvedConfig } from './config.ts';
17
- import type { EvidenceLink, TargetKind } from './result.ts';
16
+ import type { ResolvedConfig } from './config.js';
17
+ import type { EvidenceLink, TargetKind } from './result.js';
18
18
  /** Cap on collected output per probe stream (in-memory tail). */
19
19
  export declare const COLLECT_MAX_BYTES: number;
20
20
  /** Cap on the complete spill file per stream. */
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module dsh-score/report
8
8
  */
9
- import type { DimensionStatus, LeaderboardRecord, ScoreResult } from './result.ts';
9
+ import type { DimensionStatus, LeaderboardRecord, ScoreResult } from './result.js';
10
10
  /** Emoji/symbol mark for a dimension status. */
11
11
  export declare function statusMark(status: DimensionStatus): string;
12
12
  /** Human-duration rendering for one number of milliseconds. */
@@ -13,11 +13,11 @@
13
13
  */
14
14
  import type { Context } from '@deepseek-ai/cordis';
15
15
  import type { Domain } from '@deepseek-ai/dsh-storage-domain';
16
- import type { ResolvedConfig } from './config.ts';
17
- import type { InstallEvidence } from './dimensions.ts';
18
- import type { scoreDomainSpec } from './domain.ts';
19
- import { ProbeDriver } from './probe.ts';
20
- import type { ScoreResult } from './result.ts';
16
+ import type { ResolvedConfig } from './config.js';
17
+ import type { InstallEvidence } from './dimensions.js';
18
+ import type { scoreDomainSpec } from './domain.js';
19
+ import { ProbeDriver } from './probe.js';
20
+ import type { ScoreResult } from './result.js';
21
21
  /** Prefix of a score-card key (deterministic, so it doubles as the cache key). */
22
22
  export declare const SCORE_KEY_PREFIX = "sc_";
23
23
  /** Deterministic table key for one target spec (sanitized, hashed). */
@@ -8,10 +8,10 @@
8
8
  */
9
9
  import type { Context } from '@deepseek-ai/cordis';
10
10
  import type { Domain } from '@deepseek-ai/dsh-storage-domain';
11
- import type { BatchDeps } from './batch.ts';
12
- import type { ResolvedConfig } from './config.ts';
13
- import type { scoreDomainSpec } from './domain.ts';
14
- import { ScoreRunner } from './score.ts';
11
+ import type { BatchDeps } from './batch.js';
12
+ import type { ResolvedConfig } from './config.js';
13
+ import type { scoreDomainSpec } from './domain.js';
14
+ import { ScoreRunner } from './score.js';
15
15
  /** Everything both tools need; assembled by `src/index.ts`. */
16
16
  export interface ToolServices extends BatchDeps {
17
17
  ctx: Context;
@@ -4,5 +4,5 @@
4
4
  * The structured score records it as `score.pluginVersion`.
5
5
  * @module dsh-score/version
6
6
  */
7
- export declare const VERSION = "0.1.0";
7
+ export declare const VERSION = "0.1.2";
8
8
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-score",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Multi-dimensional quality scoring for DeepSeek Harness plugins: scores one repo or npm package across install success (consuming dsh-test-drive results), maintenance activity, documentation completeness, security scan, and protocol compliance — every conclusion backed by real CLI evidence with audit timestamps — and produces a JSON/Markdown leaderboard report",
5
5
  "repository": {
6
6
  "type": "git",
@@ -66,7 +66,7 @@
66
66
  ],
67
67
  "compatibility": {
68
68
  "dshVersions": [
69
- "0.1.0-rc.6"
69
+ "0.1.1-rc.2"
70
70
  ]
71
71
  },
72
72
  "capability": {
@@ -96,16 +96,15 @@
96
96
  "engines": {
97
97
  "node": "^22.19.0 || >=24.0.0"
98
98
  },
99
- "packageManager": "pnpm@11.7.0",
100
99
  "peerDependencies": {
101
100
  "@deepseek-ai/cordis": "^4.0.1",
102
- "@deepseek-ai/schemastery": "^3.18.0",
103
- "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
104
- "@deepseek-ai/dsh-commands": "0.1.0-rc.6",
105
- "@deepseek-ai/dsh-jobs": "0.1.0-rc.6",
106
- "@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
107
- "@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
108
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6"
101
+ "@deepseek-ai/dsh-agent": ">=0.1.0-rc.8 <0.2.0",
102
+ "@deepseek-ai/dsh-commands": ">=0.1.0-rc.8 <0.2.0",
103
+ "@deepseek-ai/dsh-jobs": ">=0.1.0-rc.8 <0.2.0",
104
+ "@deepseek-ai/dsh-storage-domain": ">=0.1.0-rc.8 <0.2.0",
105
+ "@deepseek-ai/dsh-subprocess": ">=0.1.0-rc.8 <0.2.0",
106
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
107
+ "@deepseek-ai/schemastery": "^3.18.0"
109
108
  },
110
109
  "dependencies": {
111
110
  "tsdown": "^0.22.14",
@@ -114,31 +113,38 @@
114
113
  },
115
114
  "devDependencies": {
116
115
  "@deepseek-ai/cordis": "^4.0.1",
116
+ "@deepseek-ai/cordis-plugin-include": "1.0.6",
117
+ "@deepseek-ai/cordis-plugin-loader": "1.0.2",
118
+ "@deepseek-ai/dsh-agent": "0.1.1-rc.2",
119
+ "@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
120
+ "@deepseek-ai/dsh-commands": "0.1.1-rc.2",
121
+ "@deepseek-ai/dsh-jobs": "0.1.1-rc.2",
122
+ "@deepseek-ai/dsh-jobs-local": "0.1.1-rc.2",
123
+ "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
124
+ "@deepseek-ai/dsh-session": "0.1.1-rc.2",
125
+ "@deepseek-ai/dsh-storage": "0.1.1-rc.2",
126
+ "@deepseek-ai/dsh-storage-domain": "0.1.1-rc.2",
127
+ "@deepseek-ai/dsh-subprocess": "0.1.1-rc.2",
128
+ "@deepseek-ai/dsh-subprocess-local": "0.1.1-rc.2",
129
+ "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
117
130
  "@deepseek-ai/schemastery": "^3.18.0",
118
- "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
119
- "@deepseek-ai/dsh-commands": "0.1.0-rc.6",
120
- "@deepseek-ai/dsh-jobs": "0.1.0-rc.6",
121
- "@deepseek-ai/dsh-jobs-local": "0.1.0-rc.6",
122
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
123
- "@deepseek-ai/dsh-session": "0.1.0-rc.6",
124
- "@deepseek-ai/dsh-storage": "0.1.0-rc.6",
125
- "@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
126
- "@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
127
- "@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.6",
128
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
129
131
  "@types/node": "^22.19.0",
132
+ "@vitest/coverage-v8": "3.2.7",
133
+ "oxlint": "0.18.1",
130
134
  "vitest": "^3.2.0",
131
135
  "zod": "^4.4.3"
132
136
  },
137
+ "license": "Apache-2.0",
133
138
  "scripts": {
134
139
  "build": "node scripts/prepare.mjs",
135
- "prepare": "node scripts/prepare.mjs",
136
140
  "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
137
141
  "typecheck:ci": "tsc -p tsconfig.ci.json --noEmit",
138
142
  "test": "vitest run",
139
143
  "test:watch": "vitest",
144
+ "test:coverage": "vitest run --coverage",
145
+ "lint": "oxlint",
146
+ "check:readmes": "node scripts/check-readme-sync.mjs",
140
147
  "verify:self-contained": "node scripts/verify-self-contained.mjs",
141
148
  "verify:artifacts": "node scripts/verify-artifacts.mjs"
142
- },
143
- "license": "Apache-2.0"
144
- }
149
+ }
150
+ }