dsh-test-drive 0.2.0 → 0.2.1

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,16 @@ 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.2.1] - 2026-08-19
9
+
10
+ ### Fixed
11
+
12
+ - The e2e pipeline read `pluginVersion` from `src/version.ts` instead of a hardcoded literal that went stale at 0.1.0, so the real-CLI drive verifies the version the package actually reports.
13
+
14
+ ### Added
15
+
16
+ - Capability-config negative suite (empty name, invalid kind, non-alphanumeric name, over-length args/expect), lifecycle gates, and coverage/lint/README CI; declaration-specifier rewrite for NodeNext consumers.
17
+
8
18
  ## [0.2.0] - 2026-08-18
9
19
 
10
20
  ### Added
package/lib/index.js CHANGED
@@ -883,7 +883,7 @@ function sanitizeOutput(text, tempRoot, maxChars) {
883
883
  * The structured report records it as `run.pluginVersion`.
884
884
  * @module dsh-test-drive/version
885
885
  */
886
- const VERSION = "0.2.0";
886
+ const VERSION = "0.2.1";
887
887
  //#endregion
888
888
  //#region src/drive.ts
889
889
  /**
@@ -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 { DriveDeps } from './drive.ts';
14
- import type { MatrixRecord } from './result.ts';
13
+ import type { DriveDeps } from './drive.js';
14
+ import type { MatrixRecord } from './result.js';
15
15
  /** The job kind this producer registers (declaration-merged into JobKindMap). */
16
16
  export declare const DRIVE_BATCH_KIND: "drive-batch";
17
17
  declare module '@deepseek-ai/dsh-jobs' {
@@ -7,7 +7,7 @@
7
7
  * @module dsh-test-drive/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
  /**
@@ -7,7 +7,7 @@
7
7
  * @module dsh-test-drive/config
8
8
  */
9
9
  import z from '@deepseek-ai/schemastery';
10
- import type { CapabilityKind } from './capability.ts';
10
+ import type { CapabilityKind } from './capability.js';
11
11
  /** Default profile template used inside each throwaway DSH_HOME. */
12
12
  export declare const DEFAULT_PROFILE_NAME = "headless";
13
13
  /** Default headless task text; the boot smoke runs a one-shot task with it. */
@@ -10,12 +10,12 @@
10
10
  */
11
11
  import type { Context } from '@deepseek-ai/cordis';
12
12
  import type { Domain } from '@deepseek-ai/dsh-storage-domain';
13
- import type { CapabilitySpec } from './capability.ts';
14
- import type { ResolvedConfig } from './config.ts';
15
- import type { driveDomainSpec } from './domain.ts';
16
- import { DshDriver } from './driver.ts';
17
- import type { DriveResult } from './result.ts';
18
- import { TempWorkspaceRegistry } from './workspace.ts';
13
+ import type { CapabilitySpec } from './capability.js';
14
+ import type { ResolvedConfig } from './config.js';
15
+ import type { driveDomainSpec } from './domain.js';
16
+ import { DshDriver } from './driver.js';
17
+ import type { DriveResult } from './result.js';
18
+ import { TempWorkspaceRegistry } from './workspace.js';
19
19
  /** Cap on the session-log text the capability stage reads back. */
20
20
  export declare const SESSION_READ_MAX_BYTES: number;
21
21
  /** id prefix of a single drive run. */
@@ -9,8 +9,8 @@
9
9
  * @module dsh-test-drive/driver
10
10
  */
11
11
  import type { Context } from '@deepseek-ai/cordis';
12
- import type { ResolvedConfig } from './config.ts';
13
- import type { TargetKind } from './result.ts';
12
+ import type { ResolvedConfig } from './config.js';
13
+ import type { TargetKind } from './result.js';
14
14
  /** Cap on collected output per stream (in-memory tail). */
15
15
  export declare const COLLECT_MAX_BYTES: number;
16
16
  /** Cap on the complete spill file per stream. */
@@ -13,7 +13,7 @@
13
13
  * @module dsh-test-drive
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-test-drive";
18
18
  /**
19
19
  * Public services only. `storageDomain` is deliberately OPTIONAL: the shipped
@@ -22,21 +22,21 @@ export declare const name = "dsh-test-drive";
22
22
  * reason, tools keep working.
23
23
  */
24
24
  export declare const inject: string[];
25
- export { VERSION } from './version.ts';
26
- export { Config, resolveConfig } from './config.ts';
27
- export { RESULT_SCHEMA, verdictOf, DriveResultSchema, MatrixRecordSchema, totalsOf } from './result.ts';
28
- export type { DriveResult, MatrixRecord, MatrixRow, StageStatus, SmokeStatus, DriveVerdict, TargetKind, StageResult } from './result.ts';
29
- export { sanitizeTarget, sanitizeOutput, redactSecrets, tailText, redactTempPath, REDACTED } from './sanitize.ts';
30
- export { TempWorkspaceRegistry, OWNED_PREFIX, QUARANTINE_PREFIX, removeWithRetries } from './workspace.ts';
31
- export type { TempWorkspace, CleanupOutcome } from './workspace.ts';
32
- export { DshDriver, classifyTarget, parseNpmShim, parseDumpLayers, dumpMentionsPackage, hasBootFailure, isGitLike, parseIgnoredBuildScript, TEMPLATE_BUNDLES, BOOT_FAILURE_MARKERS, anchorLocalTarget } from './driver.ts';
33
- export type { ChildRunResult, InstalledPackage } from './driver.ts';
34
- export { DriveRunner, freshId, progressLine, RUN_ID_PREFIX, MATRIX_ID_PREFIX } from './drive.ts';
35
- export type { DriveDeps, DriveOptions } from './drive.ts';
36
- export { DRIVE_BATCH_KIND, startBatchJob, runBatch, matrixSummary } from './batch.ts';
37
- export { renderDriveResult, renderMatrix, statusMark, formatDuration } from './report.ts';
38
- export { parseTargets } from './command.ts';
39
- export { driveDomainSpec, DOMAIN_NAME, DOMAIN_VERSION } from './domain.ts';
25
+ export { VERSION } from './version.js';
26
+ export { Config, resolveConfig } from './config.js';
27
+ export { RESULT_SCHEMA, verdictOf, DriveResultSchema, MatrixRecordSchema, totalsOf } from './result.js';
28
+ export type { DriveResult, MatrixRecord, MatrixRow, StageStatus, SmokeStatus, DriveVerdict, TargetKind, StageResult } from './result.js';
29
+ export { sanitizeTarget, sanitizeOutput, redactSecrets, tailText, redactTempPath, REDACTED } from './sanitize.js';
30
+ export { TempWorkspaceRegistry, OWNED_PREFIX, QUARANTINE_PREFIX, removeWithRetries } from './workspace.js';
31
+ export type { TempWorkspace, CleanupOutcome } from './workspace.js';
32
+ export { DshDriver, classifyTarget, parseNpmShim, parseDumpLayers, dumpMentionsPackage, hasBootFailure, isGitLike, parseIgnoredBuildScript, TEMPLATE_BUNDLES, BOOT_FAILURE_MARKERS, anchorLocalTarget } from './driver.js';
33
+ export type { ChildRunResult, InstalledPackage } from './driver.js';
34
+ export { DriveRunner, freshId, progressLine, RUN_ID_PREFIX, MATRIX_ID_PREFIX } from './drive.js';
35
+ export type { DriveDeps, DriveOptions } from './drive.js';
36
+ export { DRIVE_BATCH_KIND, startBatchJob, runBatch, matrixSummary } from './batch.js';
37
+ export { renderDriveResult, renderMatrix, statusMark, formatDuration } from './report.js';
38
+ export { parseTargets } from './command.js';
39
+ export { driveDomainSpec, DOMAIN_NAME, DOMAIN_VERSION } from './domain.js';
40
40
  /**
41
41
  * Mount the plugin: resolve config, open the report domain (lazily), register
42
42
  * the tools and the `/testdrive` command as effects, and own every temp
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module dsh-test-drive/report
8
8
  */
9
- import type { DriveResult, MatrixRecord, SmokeStatus, StageStatus, DriveVerdict, CapabilityStatus } from './result.ts';
9
+ import type { DriveResult, MatrixRecord, SmokeStatus, StageStatus, DriveVerdict, CapabilityStatus } from './result.js';
10
10
  /** Emoji/symbol mark for a stage or verdict status. */
11
11
  export declare function statusMark(status: StageStatus | SmokeStatus | CapabilityStatus | DriveVerdict): string;
12
12
  /** Human-duration rendering for one number of milliseconds. */
@@ -14,7 +14,7 @@
14
14
  * @module dsh-test-drive/result
15
15
  */
16
16
  import { z } from 'zod';
17
- import { CapabilityStatusSchema } from './capability.ts';
17
+ import { CapabilityStatusSchema } from './capability.js';
18
18
  /** Schema discriminator of every record this plugin writes (version 1). */
19
19
  export declare const RESULT_SCHEMA: "dsh-test-drive/v1";
20
20
  /** How the target was addressed. */
@@ -8,11 +8,11 @@
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 { driveDomainSpec } from './domain.ts';
14
- import { DriveRunner } from './drive.ts';
15
- import type { DriveDeps } from './drive.ts';
11
+ import type { BatchDeps } from './batch.js';
12
+ import type { ResolvedConfig } from './config.js';
13
+ import type { driveDomainSpec } from './domain.js';
14
+ import { DriveRunner } from './drive.js';
15
+ import type { DriveDeps } from './drive.js';
16
16
  /** Everything both tools need; assembled by `src/index.ts`. */
17
17
  export interface ToolServices extends BatchDeps, DriveDeps {
18
18
  /** The mounting context. */
@@ -4,5 +4,5 @@
4
4
  * The structured report records it as `run.pluginVersion`.
5
5
  * @module dsh-test-drive/version
6
6
  */
7
- export declare const VERSION = "0.2.0";
7
+ export declare const VERSION = "0.2.1";
8
8
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-test-drive",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Isolated install-and-smoke test drives for DeepSeek Harness plugins: installs a repo or npm package into a throwaway DSH_HOME profile, verifies the bundle patch layer and boot logs, records a structured pass/fail result matrix (JSON/Markdown) for scoring pipelines, and quarantines every temp directory it owns",
5
5
  "repository": {
6
6
  "type": "git",
@@ -99,13 +99,13 @@
99
99
  },
100
100
  "peerDependencies": {
101
101
  "@deepseek-ai/cordis": "^4.0.1",
102
- "@deepseek-ai/schemastery": "^3.18.0",
103
102
  "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
104
103
  "@deepseek-ai/dsh-commands": "0.1.0-rc.6",
105
104
  "@deepseek-ai/dsh-jobs": "0.1.0-rc.6",
106
105
  "@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
107
106
  "@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
108
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6"
107
+ "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
108
+ "@deepseek-ai/schemastery": "^3.18.0"
109
109
  },
110
110
  "dependencies": {
111
111
  "tsdown": "^0.22.14",
@@ -114,7 +114,8 @@
114
114
  },
115
115
  "devDependencies": {
116
116
  "@deepseek-ai/cordis": "^4.0.1",
117
- "@deepseek-ai/schemastery": "^3.18.0",
117
+ "@deepseek-ai/cordis-plugin-include": "1.0.6",
118
+ "@deepseek-ai/cordis-plugin-loader": "1.0.2",
118
119
  "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
119
120
  "@deepseek-ai/dsh-commands": "0.1.0-rc.6",
120
121
  "@deepseek-ai/dsh-jobs": "0.1.0-rc.6",
@@ -125,8 +126,12 @@
125
126
  "@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
126
127
  "@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
127
128
  "@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.6",
129
+ "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
128
130
  "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
131
+ "@deepseek-ai/schemastery": "^3.18.0",
129
132
  "@types/node": "^22.19.0",
133
+ "@vitest/coverage-v8": "3.2.7",
134
+ "oxlint": "0.18.1",
130
135
  "vitest": "^3.2.0",
131
136
  "zod": "^4.4.3"
132
137
  },
@@ -137,6 +142,9 @@
137
142
  "typecheck:ci": "tsc -p tsconfig.ci.json --noEmit",
138
143
  "test": "vitest run",
139
144
  "test:watch": "vitest",
145
+ "test:coverage": "vitest run --coverage",
146
+ "lint": "oxlint",
147
+ "check:readmes": "node scripts/check-readme-sync.mjs",
140
148
  "test:e2e": "vitest run tests/e2e.spec.ts",
141
149
  "verify:self-contained": "node scripts/verify-self-contained.mjs",
142
150
  "verify:artifacts": "node scripts/verify-artifacts.mjs"