dsh-test-drive 0.3.24 → 0.3.25

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
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.25] - 2026-11-05
4
+
5
+ ### Changed
6
+
7
+ - **Host 0.2.2 line support.** devDependencies move from 0.2.1-rc.2 to 0.2.2-rc.1, cordis to 4.1.0 / include 1.1.0 / loader 1.1.0, and schemastery to ~3.19.0 so a single copy resolves against `@deepseek-ai/dsh-llm` 0.2.2. `engines.dsh` appends `>=0.2.2-0 <0.3.0` (append-only), `engines.node` becomes `^22.19.0 || >=24.9.0`, and `dshWorkshop.compatibility.dshVersions` lists `0.2.2-rc.1`.
8
+ - **The tests drive the 0.2.2 batch tool runtime.** The harness mounts `@deepseek-ai/dsh-tool-executor-native` after `ToolRuntime` (0.2.2's `ToolRuntime` delegates a raw `ToolCallBlock` batch to a selected executor) and `SessionProjectionRegistry` between the session store and `AgentRegistry` (0.2.2's `AgentRegistry` injects `sessionProjections`). The tool-call helpers now send `{ calls: [{ type: 'tool-call', id, name, arguments: JSON.stringify(args) }] }` and read `results[0].result`.
9
+
10
+ ### Fixed
11
+
12
+ - Add `@deepseek-ai/dsh-package-manifest` (0.2.2 `dsh-llm` types import it without declaring it), plus `@deepseek-ai/dsh-tool-executor-native` and `@deepseek-ai/dsh-session-projection` as devDependencies the tests need to publish an executor and the projection registry.
13
+ - `tests/helpers/memory-backend.ts` implements `KvUnit.deleteRecords`: the 0.2.2 storage backend contract gained the batch delete, so the in-memory double must satisfy it.
14
+
3
15
  ## [0.3.24] - 2026-10-24
4
16
 
5
17
  ### Fixed
package/README.md CHANGED
@@ -340,10 +340,10 @@ This project is part of the DeepSeek Harness plugin family from [PerryLink](http
340
340
  | **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
341
341
  | **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
342
342
  | **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
343
- | **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | |
343
+ | **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | 🧊 FROZEN — see the repo README |
344
344
  | **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
345
345
  | **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
346
- | **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | |
346
+ | **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | 🧊 FROZEN — see the repo README |
347
347
  | **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
348
348
  | **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
349
349
  | **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
package/lib/index.js CHANGED
@@ -7,7 +7,7 @@ import z$1 from "@deepseek-ai/schemastery";
7
7
  import { defineDomain, domainTable } from "@deepseek-ai/dsh-storage-domain";
8
8
  import { defineTool } from "@deepseek-ai/dsh-tools";
9
9
  import { tmpdir } from "node:os";
10
- //#region src/capability.ts
10
+ // src/capability.ts
11
11
  /**
12
12
  * The capability-assertion stage: beyond "booted and exited", prove one NAMED
13
13
  * capability of the installed plugin is registered, invoked, and its effect
@@ -156,8 +156,7 @@ function analyzeSessionLog(log, spec) {
156
156
  expectMatched: false
157
157
  };
158
158
  }
159
- //#endregion
160
- //#region src/session-log.ts
159
+ // src/session-log.ts
161
160
  /**
162
161
  * Session-store discovery and multi-frame Zstandard decoding for the
163
162
  * capability stage.
@@ -369,8 +368,7 @@ async function readNewestSessionLog(home, maxBytes) {
369
368
  return "";
370
369
  }
371
370
  }
372
- //#endregion
373
- //#region src/driver.ts
371
+ // src/driver.ts
374
372
  /**
375
373
  * The `dsh` CLI driver: locates a spawnable dsh executable (config override,
376
374
  * PATH lookup, or npm shim parsing on Windows), runs each stage as a managed
@@ -709,8 +707,7 @@ var DshDriver = class {
709
707
  function anchorLocalTarget(target, cwd) {
710
708
  return resolve(cwd ?? process.cwd(), target);
711
709
  }
712
- //#endregion
713
- //#region src/result.ts
710
+ // src/result.ts
714
711
  /**
715
712
  * The structured test-drive result: one record per driven target, plus the
716
713
  * batch matrix that aggregates them. This is the machine-readable output
@@ -987,8 +984,7 @@ function verdictOf(result) {
987
984
  if (uninstall.status !== "pass") return ["partial", `install and smoke passed but uninstall failed (${uninstall.summary})`];
988
985
  return ["unknown", "stage combination not covered by the verdict rules"];
989
986
  }
990
- //#endregion
991
- //#region src/sanitize.ts
987
+ // src/sanitize.ts
992
988
  /**
993
989
  * Pure sanitizers for every string that reaches a report, a log, or the model.
994
990
  * Nothing here reads the environment or the clock: report content is the only
@@ -1073,17 +1069,15 @@ function redactTempPath(text, tempRoot) {
1073
1069
  function sanitizeOutput(text, tempRoot, maxChars) {
1074
1070
  return tailText(redactSecrets(redactTempPath(text, tempRoot)), maxChars);
1075
1071
  }
1076
- //#endregion
1077
- //#region src/version.ts
1072
+ // src/version.ts
1078
1073
  /**
1079
1074
  * Producer version, kept in lockstep with `package.json` by
1080
1075
  * `scripts/release.mjs`; `tests/version.spec.ts` trips when they drift.
1081
1076
  * The structured report records it as `run.pluginVersion`.
1082
1077
  * @module dsh-test-drive/version
1083
1078
  */
1084
- const VERSION = "0.3.24";
1085
- //#endregion
1086
- //#region src/drive.ts
1079
+ const VERSION = "0.3.25";
1080
+ // src/drive.ts
1087
1081
  /**
1088
1082
  * The single-target drive pipeline: create an owned temp workspace, run
1089
1083
  * install → dump-config → boot smoke → uninstall through the {@link DshDriver},
@@ -1509,8 +1503,7 @@ var DriveRunner = class {
1509
1503
  return result;
1510
1504
  }
1511
1505
  };
1512
- //#endregion
1513
- //#region src/batch.ts
1506
+ // src/batch.ts
1514
1507
  /** The job kind this producer registers (declaration-merged into JobKindMap). */
1515
1508
  const DRIVE_BATCH_KIND = "drive-batch";
1516
1509
  /** The batch work function shared by the job producer and direct tests. */
@@ -1635,8 +1628,7 @@ function tailDetail(text) {
1635
1628
  const clean = text.replace(/\s+/gu, " ").trim();
1636
1629
  return clean.length <= 200 ? clean : `${clean.slice(0, 197)}…`;
1637
1630
  }
1638
- //#endregion
1639
- //#region src/command.ts
1631
+ // src/command.ts
1640
1632
  /** Split raw command input into target specs (whitespace and commas separate). */
1641
1633
  function parseTargets(rawInput) {
1642
1634
  return rawInput.split(/[\s,]+/u).map((token) => token.trim()).filter((token) => token.length > 0);
@@ -1665,8 +1657,7 @@ function handleTestdrive(deps, invocation) {
1665
1657
  text: `Started background batch job ${String(jobId)} for ${targets.length} target(s). Progress streams through the job output; the final line names the matrix id for drive_report.`
1666
1658
  };
1667
1659
  }
1668
- //#endregion
1669
- //#region src/config.ts
1660
+ // src/config.ts
1670
1661
  /**
1671
1662
  * Plugin configuration and its explicit resolve step. `resolveConfig` re-judges
1672
1663
  * every default and bound so programmatic construction that bypasses
@@ -1806,8 +1797,7 @@ function resolveConfig(config) {
1806
1797
  batchConcurrency
1807
1798
  });
1808
1799
  }
1809
- //#endregion
1810
- //#region src/domain.ts
1800
+ // src/domain.ts
1811
1801
  /**
1812
1802
  * The `test-drive` storage domain: the durable home of drive-run records and
1813
1803
  * batch matrices. Opened through `ctx.storageDomain` (a public service), with
@@ -1841,8 +1831,7 @@ const driveDomainSpec = defineDomain({
1841
1831
  matrices: domainTable(MatrixRecordSchema)
1842
1832
  }
1843
1833
  });
1844
- //#endregion
1845
- //#region src/report.ts
1834
+ // src/report.ts
1846
1835
  /** Emoji/symbol mark for a stage or verdict status. */
1847
1836
  function statusMark(status) {
1848
1837
  switch (status) {
@@ -1994,8 +1983,7 @@ function renderMatrixJUnitXml(matrix) {
1994
1983
  ""
1995
1984
  ].join("\n");
1996
1985
  }
1997
- //#endregion
1998
- //#region src/tools.ts
1986
+ // src/tools.ts
1999
1987
  /**
2000
1988
  * The two model tools: `test_drive` (one target through the full pipeline,
2001
1989
  * optionally as a background job) and `drive_report` (fetch a stored run or
@@ -2387,8 +2375,7 @@ function allTools(services) {
2387
2375
  }
2388
2376
  })];
2389
2377
  }
2390
- //#endregion
2391
- //#region src/workspace.ts
2378
+ // src/workspace.ts
2392
2379
  /**
2393
2380
  * Temporary-directory ownership for test drives. Every directory this plugin
2394
2381
  * ever touches under the OS temp dir is created here with {@link mkdtemp},
@@ -2569,8 +2556,7 @@ async function removeWithRetries(path, maxRetries, retryDelayMs) {
2569
2556
  await new Promise((resolveDelay) => setTimeout(resolveDelay, retryDelayMs));
2570
2557
  }
2571
2558
  }
2572
- //#endregion
2573
- //#region src/index.ts
2559
+ // src/index.ts
2574
2560
  const name = "dsh-test-drive";
2575
2561
  /**
2576
2562
  * Public services only. `storageDomain` is deliberately OPTIONAL: the published
@@ -2640,5 +2626,4 @@ function apply(ctx, config) {
2640
2626
  log(`dsh CLI unavailable: ${String(error)}`);
2641
2627
  });
2642
2628
  }
2643
- //#endregion
2644
2629
  export { BOOT_FAILURE_MARKERS, Config, DOMAIN_NAME, DOMAIN_VERSION, DRIVE_BATCH_KIND, DriveResultSchema, DriveRunner, DshDriver, MATRIX_ID_PREFIX, MatrixRecordSchema, OWNED_PREFIX, QUARANTINE_PREFIX, REDACTED, RESULT_SCHEMA, RUN_ID_PREFIX, TEMPLATE_BUNDLES, TempWorkspaceRegistry, VERSION, anchorLocalTarget, apply, classifyTarget, driveDomainSpec, dumpMentionsPackage, formatDuration, freshId, hasBootFailure, inject, isGitLike, matrixSummary, name, parseDumpLayers, parseIgnoredBuildScript, parseNpmShim, parseTargets, progressLine, redactSecrets, redactTempPath, removeWithRetries, renderDriveJUnitXml, renderDriveResult, renderMatrix, renderMatrixJUnitXml, resolveConfig, runBatch, sanitizeOutput, sanitizeTarget, startBatchJob, statusMark, tailText, totalsOf, verdictOf };
@@ -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.3.24";
7
+ export declare const VERSION = "0.3.25";
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.3.24",
3
+ "version": "0.3.25",
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",
@@ -71,7 +71,8 @@
71
71
  "0.1.5-rc.2",
72
72
  "0.1.7-rc.2",
73
73
  "0.2.1-alpha.1",
74
- "0.2.1-rc.2"
74
+ "0.2.1-rc.2",
75
+ "0.2.2-rc.1"
75
76
  ]
76
77
  },
77
78
  "capability": {
@@ -99,49 +100,52 @@
99
100
  "ci"
100
101
  ],
101
102
  "engines": {
102
- "node": "^22.19.0 || >=24.0.0",
103
- "dsh": ">=0.2.1-0 <0.3.0"
103
+ "node": "^22.19.0 || >=24.9.0",
104
+ "dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0"
104
105
  },
105
106
  "packageManager": "pnpm@11.7.0",
106
107
  "peerDependencies": {
107
108
  "@deepseek-ai/cordis": "^4.0.5",
108
- "@deepseek-ai/dsh-agent": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
109
- "@deepseek-ai/dsh-commands": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
110
- "@deepseek-ai/dsh-jobs": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
111
- "@deepseek-ai/dsh-storage-domain": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
112
- "@deepseek-ai/dsh-subprocess": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
113
- "@deepseek-ai/dsh-tools": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
114
- "@deepseek-ai/schemastery": "^3.18.5-alpha.2"
109
+ "@deepseek-ai/dsh-agent": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
110
+ "@deepseek-ai/dsh-commands": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
111
+ "@deepseek-ai/dsh-jobs": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
112
+ "@deepseek-ai/dsh-storage-domain": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
113
+ "@deepseek-ai/dsh-subprocess": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
114
+ "@deepseek-ai/dsh-tools": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
115
+ "@deepseek-ai/schemastery": "^3.18.5"
115
116
  },
116
117
  "dependencies": {
117
118
  "zod": "4.4.3"
118
119
  },
119
120
  "devDependencies": {
120
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.2",
121
- "@deepseek-ai/cordis": "^4.0.5",
122
- "@deepseek-ai/cordis-plugin-include": "^1.0.10-alpha.2",
123
- "@deepseek-ai/cordis-plugin-loader": "^1.0.6",
124
- "@deepseek-ai/dsh-agent": "0.2.1-rc.2",
125
- "@deepseek-ai/dsh-commands": "0.2.1-rc.2",
126
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.2",
127
- "@deepseek-ai/dsh-jobs-local": "0.2.1-rc.2",
128
- "@deepseek-ai/dsh-llm": "0.2.1-rc.2",
129
- "@deepseek-ai/dsh-session": "0.2.1-rc.2",
130
- "@deepseek-ai/dsh-storage": "0.2.1-rc.2",
131
- "@deepseek-ai/dsh-storage-domain": "0.2.1-rc.2",
132
- "@deepseek-ai/dsh-subprocess": "0.2.1-rc.2",
133
- "@deepseek-ai/dsh-subprocess-local": "0.2.1-rc.2",
134
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
135
- "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
136
- "@deepseek-ai/schemastery": "^3.18.5-alpha.2",
137
- "@types/node": "^22.19.0",
121
+ "@deepseek-ai/cordis": "^4.1.0",
122
+ "@deepseek-ai/cordis-plugin-include": "^1.1.0",
123
+ "@deepseek-ai/cordis-plugin-loader": "^1.1.0",
124
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
125
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
126
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.1",
127
+ "@deepseek-ai/dsh-jobs": "0.2.2-rc.1",
128
+ "@deepseek-ai/dsh-jobs-local": "0.2.2-rc.1",
129
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
130
+ "@deepseek-ai/dsh-package-manifest": "0.2.2-rc.1",
131
+ "@deepseek-ai/dsh-session": "0.2.2-rc.1",
132
+ "@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
133
+ "@deepseek-ai/dsh-storage": "0.2.2-rc.1",
134
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.1",
135
+ "@deepseek-ai/dsh-subprocess": "0.2.2-rc.1",
136
+ "@deepseek-ai/dsh-subprocess-local": "0.2.2-rc.1",
137
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
138
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
139
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
140
+ "@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
141
+ "@deepseek-ai/schemastery": "~3.19.0",
142
+ "@types/node": "^22.20.5",
138
143
  "@vitest/coverage-v8": "3.2.7",
139
144
  "oxlint": "0.18.1",
145
+ "tsdown": "^0.23.1",
146
+ "typescript": "^5.9.0",
140
147
  "vitest": "^3.2.0",
141
- "zod": "4.4.3",
142
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.2",
143
- "tsdown": "^0.22.14",
144
- "typescript": "^5.9.0"
148
+ "zod": "4.4.3"
145
149
  },
146
150
  "scripts": {
147
151
  "build": "node scripts/prepare.mjs",