dsh-test-drive 0.1.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 +16 -0
- package/README.es.md +18 -3
- package/README.hi.md +18 -3
- package/README.md +19 -4
- package/README.pt.md +18 -3
- package/README.zh.md +18 -3
- package/cordis.patch.yml +14 -0
- package/lib/index.js +431 -10
- package/lib/types/batch.d.ts +2 -2
- package/lib/types/capability.d.ts +74 -0
- package/lib/types/capability.d.ts.map +1 -0
- package/lib/types/command.d.ts +1 -1
- package/lib/types/config.d.ts +33 -0
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/domain.d.ts +19 -7
- package/lib/types/domain.d.ts.map +1 -1
- package/lib/types/drive.d.ts +10 -5
- package/lib/types/drive.d.ts.map +1 -1
- package/lib/types/driver.d.ts +13 -2
- package/lib/types/driver.d.ts.map +1 -1
- package/lib/types/index.d.ts +16 -16
- package/lib/types/report.d.ts +2 -2
- package/lib/types/report.d.ts.map +1 -1
- package/lib/types/result.d.ts +31 -1
- package/lib/types/result.d.ts.map +1 -1
- package/lib/types/tools.d.ts +5 -5
- package/lib/types/tools.d.ts.map +1 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +15 -9
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The capability-assertion stage: beyond "booted and exited", prove one NAMED
|
|
3
|
+
* capability of the installed plugin is registered, invoked, and its effect
|
|
4
|
+
* OBSERVED — the omdsh-INTAKE principle that a clean boot is only a smoke
|
|
5
|
+
* test. The stage runs one headless task that asks the agent to call a tool
|
|
6
|
+
* (or run a command), then analyzes the durable session log for the paired
|
|
7
|
+
* `tool/call` → `tool/result` events (or the command invocation and reply) and
|
|
8
|
+
* matches a caller-supplied expectation against the observed output.
|
|
9
|
+
*
|
|
10
|
+
* Everything here is pure and tolerant: the analyzer never throws on hostile
|
|
11
|
+
* or truncated log lines (it skips them), so the capability stage itself can
|
|
12
|
+
* only fail through its own process outcome, never through log parsing.
|
|
13
|
+
*
|
|
14
|
+
* @module dsh-test-drive/capability
|
|
15
|
+
*/
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
/** The capability kinds the stage can assert. */
|
|
18
|
+
export declare const CapabilityKindSchema: z.ZodUnion<readonly [z.ZodLiteral<"tool">, z.ZodLiteral<"command">]>;
|
|
19
|
+
export type CapabilityKind = z.infer<typeof CapabilityKindSchema>;
|
|
20
|
+
/** Outcome of the capability stage (registered + invoked + observed, in order). */
|
|
21
|
+
export declare const CapabilityStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"observed">, z.ZodLiteral<"invoked">, z.ZodLiteral<"not-registered">, z.ZodLiteral<"skipped">, z.ZodLiteral<"failed">]>;
|
|
22
|
+
export type CapabilityStatus = z.infer<typeof CapabilityStatusSchema>;
|
|
23
|
+
/** The exact reply the task text demands; also the run-completion marker. */
|
|
24
|
+
export declare const CAPABILITY_DONE_MARKER = "capability-check-done";
|
|
25
|
+
/** Maximum length of the `args` payload handed to the capability task. */
|
|
26
|
+
export declare const MAX_CAPABILITY_ARGS_LENGTH = 4000;
|
|
27
|
+
/** Maximum length of the `expect` literal matched against the observed output. */
|
|
28
|
+
export declare const MAX_CAPABILITY_EXPECT_LENGTH = 2000;
|
|
29
|
+
/** Maximum length of the asserted tool or command name. */
|
|
30
|
+
export declare const MAX_CAPABILITY_NAME_LENGTH = 200;
|
|
31
|
+
/** Allowed characters for an asserted tool or command name. */
|
|
32
|
+
export declare const CAPABILITY_NAME_PATTERN: RegExp;
|
|
33
|
+
/** The capability spec the stage works from (config or per-drive override). */
|
|
34
|
+
export interface CapabilitySpec {
|
|
35
|
+
/** What to invoke: a registered model tool, or a `/name` command. */
|
|
36
|
+
kind: CapabilityKind;
|
|
37
|
+
/** The tool or command name (without the leading `/`). */
|
|
38
|
+
name: string;
|
|
39
|
+
/** Raw arguments text for the invocation (tool: JSON-ish argument text; command: argument words). */
|
|
40
|
+
args: string;
|
|
41
|
+
/** Literal expected in the observed output (case-insensitive substring of the serialized event). */
|
|
42
|
+
expect: string;
|
|
43
|
+
}
|
|
44
|
+
/** Regex-escape a literal for embedding in a pattern. */
|
|
45
|
+
export declare function escapeRegex(source: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* Compile the headless task text that makes the agent exercise the capability.
|
|
48
|
+
*
|
|
49
|
+
* @param spec - the capability to exercise.
|
|
50
|
+
* @returns the task text; never empty.
|
|
51
|
+
*/
|
|
52
|
+
export declare function buildCapabilityTask(spec: Pick<CapabilitySpec, 'kind' | 'name' | 'args'>): string;
|
|
53
|
+
/** The settled analysis of one session log against one capability spec. */
|
|
54
|
+
export interface CapabilityAnalysis {
|
|
55
|
+
/** Highest reached status. */
|
|
56
|
+
status: Extract<CapabilityStatus, 'observed' | 'invoked' | 'not-registered'>;
|
|
57
|
+
/** One-line sanitized explanation. */
|
|
58
|
+
detail: string;
|
|
59
|
+
/** Whether the expectation literal was found in the observed output. */
|
|
60
|
+
expectMatched: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Analyze a durable session log against one capability spec. Tolerant: every
|
|
64
|
+
* unparseable or unrelated line is skipped, and missing evidence degrades to
|
|
65
|
+
* the highest status actually reached (`not-registered` when the invocation
|
|
66
|
+
* never appears, `invoked` when it ran but the expectation never appeared,
|
|
67
|
+
* `observed` only when both hold).
|
|
68
|
+
*
|
|
69
|
+
* @param log - the raw JSONL session text (as persisted by the harness).
|
|
70
|
+
* @param spec - the asserted capability.
|
|
71
|
+
* @returns the settled analysis; never throws.
|
|
72
|
+
*/
|
|
73
|
+
export declare function analyzeSessionLog(log: string, spec: Pick<CapabilitySpec, 'kind' | 'name' | 'expect'>): CapabilityAnalysis;
|
|
74
|
+
//# sourceMappingURL=capability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../../src/capability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;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,CAAA;IACd,wEAAwE;IACxE,aAAa,EAAE,OAAO,CAAA;CACvB;AAuBD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC,GAAG,kBAAkB,CAqEzH"}
|
package/lib/types/command.d.ts
CHANGED
|
@@ -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.
|
|
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
|
/**
|
package/lib/types/config.d.ts
CHANGED
|
@@ -7,6 +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.js';
|
|
10
11
|
/** Default profile template used inside each throwaway DSH_HOME. */
|
|
11
12
|
export declare const DEFAULT_PROFILE_NAME = "headless";
|
|
12
13
|
/** Default headless task text; the boot smoke runs a one-shot task with it. */
|
|
@@ -19,6 +20,8 @@ export declare const DEFAULT_INSTALL_TIMEOUT_MS = 600000;
|
|
|
19
20
|
export declare const DEFAULT_CONFIG_TIMEOUT_MS = 60000;
|
|
20
21
|
/** Default per-stage timeout for the headless boot smoke. */
|
|
21
22
|
export declare const DEFAULT_SMOKE_TIMEOUT_MS = 300000;
|
|
23
|
+
/** Default per-stage timeout for the capability-assertion task. */
|
|
24
|
+
export declare const DEFAULT_CAPABILITY_TIMEOUT_MS = 300000;
|
|
22
25
|
/** Default per-stage timeout for `dsh plugin remove`. */
|
|
23
26
|
export declare const DEFAULT_UNINSTALL_TIMEOUT_MS = 120000;
|
|
24
27
|
/** Bounds shared by every stage timeout. */
|
|
@@ -57,6 +60,21 @@ export interface Config {
|
|
|
57
60
|
configTimeoutMs?: number;
|
|
58
61
|
/** Per-stage timeout for the headless boot smoke in milliseconds (default 300000). */
|
|
59
62
|
smokeTimeoutMs?: number;
|
|
63
|
+
/** Per-stage timeout for the capability-assertion task in milliseconds (default 300000). */
|
|
64
|
+
capabilityTimeoutMs?: number;
|
|
65
|
+
/** Capability assertion: prove one named tool/command is registered, invoked, and observed (default disabled). */
|
|
66
|
+
capability?: {
|
|
67
|
+
/** Master switch; false (default) skips the capability stage entirely. */
|
|
68
|
+
enabled?: boolean;
|
|
69
|
+
/** What to assert: a registered model tool, or a `/name` command. */
|
|
70
|
+
kind?: CapabilityKind;
|
|
71
|
+
/** The tool or command name (without the leading `/`). */
|
|
72
|
+
name?: string;
|
|
73
|
+
/** Invocation text: tool arguments (JSON-ish) or command words. */
|
|
74
|
+
args?: string;
|
|
75
|
+
/** Literal expected in the observed output (case-insensitive substring). */
|
|
76
|
+
expect?: string;
|
|
77
|
+
};
|
|
60
78
|
/** Per-stage timeout for `dsh plugin remove` in milliseconds (default 120000). */
|
|
61
79
|
uninstallTimeoutMs?: number;
|
|
62
80
|
/** Cap on the sanitized output tail recorded per stage in bytes (default 8000). */
|
|
@@ -86,6 +104,21 @@ export interface ResolvedConfig {
|
|
|
86
104
|
configTimeoutMs: number;
|
|
87
105
|
/** Per-stage timeout for the headless boot smoke in milliseconds. */
|
|
88
106
|
smokeTimeoutMs: number;
|
|
107
|
+
/** Per-stage timeout for the capability-assertion task in milliseconds. */
|
|
108
|
+
capabilityTimeoutMs: number;
|
|
109
|
+
/** Capability assertion policy: resolved defaults (disabled) or the validated spec. */
|
|
110
|
+
capability: {
|
|
111
|
+
/** Whether the capability stage runs. */
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
/** What to assert (tool or command). */
|
|
114
|
+
kind: CapabilityKind;
|
|
115
|
+
/** The asserted tool or command name; '' while disabled. */
|
|
116
|
+
name: string;
|
|
117
|
+
/** Invocation text for the asserted capability. */
|
|
118
|
+
args: string;
|
|
119
|
+
/** Literal expected in the observed output. */
|
|
120
|
+
expect: string;
|
|
121
|
+
};
|
|
89
122
|
/** Per-stage timeout for `dsh plugin remove` in milliseconds. */
|
|
90
123
|
uninstallTimeoutMs: number;
|
|
91
124
|
/** Cap on the sanitized output tail recorded per stage in bytes. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,CAAC,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAQxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,aAAa,CAAA;AAE9C,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,2BAA2B,CAAA;AAE7D,yDAAyD;AACzD,eAAO,MAAM,wBAAwB,OAAQ,CAAA;AAE7C,oFAAoF;AACpF,eAAO,MAAM,0BAA0B,SAAU,CAAA;AAEjD,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,QAAS,CAAA;AAE/C,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,SAAU,CAAA;AAE/C,mEAAmE;AACnE,eAAO,MAAM,6BAA6B,SAAU,CAAA;AAEpD,yDAAyD;AACzD,eAAO,MAAM,4BAA4B,SAAU,CAAA;AAEnD,4CAA4C;AAC5C,eAAO,MAAM,oBAAoB,OAAQ,CAAA;AACzC,eAAO,MAAM,oBAAoB,UAAY,CAAA;AAE7C,mEAAmE;AACnE,eAAO,MAAM,yBAAyB,OAAQ,CAAA;AAE9C,gDAAgD;AAChD,eAAO,MAAM,qBAAqB,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;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,cAAc,CAuGxE"}
|
package/lib/types/domain.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare const driveDomainSpec: {
|
|
|
60
60
|
};
|
|
61
61
|
stages: {
|
|
62
62
|
install: {
|
|
63
|
-
status: "
|
|
63
|
+
status: "skipped" | "pass" | "fail";
|
|
64
64
|
exitCode: number | null;
|
|
65
65
|
durationMs: number;
|
|
66
66
|
attempts: number;
|
|
@@ -69,7 +69,7 @@ export declare const driveDomainSpec: {
|
|
|
69
69
|
allowBuildsNeeded: boolean;
|
|
70
70
|
};
|
|
71
71
|
config: {
|
|
72
|
-
status: "
|
|
72
|
+
status: "skipped" | "pass" | "fail";
|
|
73
73
|
exitCode: number | null;
|
|
74
74
|
durationMs: number;
|
|
75
75
|
attempts: number;
|
|
@@ -84,12 +84,12 @@ export declare const driveDomainSpec: {
|
|
|
84
84
|
attempts: number;
|
|
85
85
|
summary: string;
|
|
86
86
|
outputTail: string;
|
|
87
|
-
status: "
|
|
87
|
+
status: "skipped" | "pass" | "fail" | "boot-ok";
|
|
88
88
|
bootFailed: boolean;
|
|
89
89
|
taskCompleted: boolean;
|
|
90
90
|
};
|
|
91
91
|
uninstall: {
|
|
92
|
-
status: "
|
|
92
|
+
status: "skipped" | "pass" | "fail";
|
|
93
93
|
exitCode: number | null;
|
|
94
94
|
durationMs: number;
|
|
95
95
|
attempts: number;
|
|
@@ -97,11 +97,23 @@ export declare const driveDomainSpec: {
|
|
|
97
97
|
outputTail: string;
|
|
98
98
|
};
|
|
99
99
|
cleanup: {
|
|
100
|
-
status: "
|
|
100
|
+
status: "skipped" | "pass" | "fail";
|
|
101
101
|
quarantined: boolean;
|
|
102
102
|
removed: boolean;
|
|
103
103
|
summary: string;
|
|
104
104
|
};
|
|
105
|
+
capability?: {
|
|
106
|
+
exitCode: number | null;
|
|
107
|
+
durationMs: number;
|
|
108
|
+
attempts: number;
|
|
109
|
+
summary: string;
|
|
110
|
+
outputTail: string;
|
|
111
|
+
status: "observed" | "invoked" | "not-registered" | "skipped" | "failed";
|
|
112
|
+
capabilityKind: "tool" | "command" | null;
|
|
113
|
+
name: string;
|
|
114
|
+
expectMatched: boolean;
|
|
115
|
+
detail: string;
|
|
116
|
+
} | undefined;
|
|
105
117
|
};
|
|
106
118
|
verdict: "unknown" | "pass" | "fail" | "partial";
|
|
107
119
|
verdictReason: string;
|
|
@@ -115,8 +127,8 @@ export declare const driveDomainSpec: {
|
|
|
115
127
|
target: string;
|
|
116
128
|
kind: "repo" | "npm" | "path" | "tarball";
|
|
117
129
|
verdict: "unknown" | "pass" | "fail" | "partial";
|
|
118
|
-
install: "
|
|
119
|
-
smoke: "
|
|
130
|
+
install: "skipped" | "pass" | "fail";
|
|
131
|
+
smoke: "skipped" | "pass" | "fail" | "boot-ok";
|
|
120
132
|
durationMs: number;
|
|
121
133
|
summary: string;
|
|
122
134
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/domain.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,8EAA8E;AAC9E,eAAO,MAAM,WAAW,eAAe,CAAA;AAEvC,6EAA6E;AAC7E,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,yGAAyG;AACzG,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/domain.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,8EAA8E;AAC9E,eAAO,MAAM,WAAW,eAAe,CAAA;AAEvC,6EAA6E;AAC7E,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,yGAAyG;AACzG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ1B,CAAA"}
|
package/lib/types/drive.d.ts
CHANGED
|
@@ -10,11 +10,14 @@
|
|
|
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 {
|
|
14
|
-
import type {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
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
|
+
/** Cap on the session-log text the capability stage reads back. */
|
|
20
|
+
export declare const SESSION_READ_MAX_BYTES: number;
|
|
18
21
|
/** id prefix of a single drive run. */
|
|
19
22
|
export declare const RUN_ID_PREFIX = "tdr_";
|
|
20
23
|
/** id prefix of a batch matrix. */
|
|
@@ -42,6 +45,8 @@ export interface DriveOptions {
|
|
|
42
45
|
signal?: AbortSignal | undefined;
|
|
43
46
|
/** Optional headless task override; empty string skips the smoke stage (config default when absent). */
|
|
44
47
|
headlessTask?: string | undefined;
|
|
48
|
+
/** Optional capability assertion for this drive; overrides the config block entirely. */
|
|
49
|
+
capability?: CapabilitySpec | undefined;
|
|
45
50
|
}
|
|
46
51
|
/** Derive one line of batch progress from a settled result. */
|
|
47
52
|
export declare function progressLine(index: number, total: number, result: DriveResult): string;
|
package/lib/types/drive.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../src/drive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../src/drive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,SAAS,EAA0E,MAAM,aAAa,CAAA;AAG/G,OAAO,KAAK,EAIV,WAAW,EAKZ,MAAM,aAAa,CAAA;AAGpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAGtD,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,QAAc,CAAA;AAEjD,uCAAuC;AACvC,eAAO,MAAM,aAAa,SAAS,CAAA;AAEnC,mCAAmC;AACnC,eAAO,MAAM,gBAAgB,SAAS,CAAA;AAEtC,yDAAyD;AACzD,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,aAAa,GAAG,OAAO,gBAAgB,GAAG,MAAM,CAEtF;AAED,6EAA6E;AAC7E,MAAM,WAAW,SAAS;IACxB,wDAAwD;IACxD,GAAG,EAAE,OAAO,CAAA;IACZ,8BAA8B;IAC9B,MAAM,EAAE,cAAc,CAAA;IACtB,sBAAsB;IACtB,MAAM,EAAE,SAAS,CAAA;IACjB,qCAAqC;IACrC,IAAI,EAAE,qBAAqB,CAAA;IAC3B,yBAAyB;IACzB,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,CAAA;CACtD;AAED,sEAAsE;AACtE,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;IAChC,wGAAwG;IACxG,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,yFAAyF;IACzF,UAAU,CAAC,EAAE,cAAc,GAAG,SAAS,CAAA;CACxC;AAED,+DAA+D;AAC/D,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAEtF;AA8CD;;;;;;GAMG;AACH,qBAAa,WAAW;IAGV,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,OAAO,CAAC,cAAc,CAA6B;gBAEtB,IAAI,EAAE,SAAS;IAE5C,4DAA4D;IAC5D,OAAO,CAAC,OAAO;IAKf,4EAA4E;YAC9D,MAAM;IASd,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,WAAW,CAAC;CAwL9E"}
|
package/lib/types/driver.d.ts
CHANGED
|
@@ -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.
|
|
13
|
-
import type { TargetKind } from './result.
|
|
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. */
|
|
@@ -136,6 +136,17 @@ export declare class DshDriver {
|
|
|
136
136
|
dumpConfig(options: StageRunOptions): Promise<ChildRunResult>;
|
|
137
137
|
/** Run the boot-smoke stage: `dsh --profile <name> <task>`. */
|
|
138
138
|
smokeTask(task: string, options: StageRunOptions): Promise<ChildRunResult>;
|
|
139
|
+
/**
|
|
140
|
+
* Read the newest durable session log from a throwaway home's session store.
|
|
141
|
+
* Used by the capability stage to observe what the headless task actually
|
|
142
|
+
* did (tool calls, command replies). Tolerant by contract: a missing or
|
|
143
|
+
* empty store yields '' so the stage degrades instead of throwing.
|
|
144
|
+
*
|
|
145
|
+
* @param home - the throwaway DSH_HOME.
|
|
146
|
+
* @param maxBytes - cap on the returned text (tail end kept).
|
|
147
|
+
* @returns the newest session file's text, or '' when none exists.
|
|
148
|
+
*/
|
|
149
|
+
readNewestSession(home: string, maxBytes: number): Promise<string>;
|
|
139
150
|
/** Run the uninstall stage: `dsh plugin --profile <name> remove <pkg>`. */
|
|
140
151
|
remove(packageName: string, options: StageRunOptions): Promise<ChildRunResult>;
|
|
141
152
|
/** Ask the CLI for its version (cached per driver instance). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,QAAY,CAAA;AAE1C,iDAAiD;AACjD,eAAO,MAAM,eAAe,QAAc,CAAA;AAE1C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,OAAQ,CAAA;AAEnC,qGAAqG;AACrG,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAAuF,CAAA;AAErI,kFAAkF;A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M,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IA6DrF,iFAAiF;IAC3E,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO9E;;;OAGG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAcxE,kEAAkE;IAC5D,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IAInE,+DAA+D;IACzD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IAIhF;;;;;;;;;OASG;IACG,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IA2BxE,2EAA2E;IACrE,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IAIpF,gEAAgE;IAC1D,OAAO,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAKxD;;;;;OAKG;IACG,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;CA+BtF;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAExD"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
26
|
-
export { Config, resolveConfig } from './config.
|
|
27
|
-
export { RESULT_SCHEMA, verdictOf, DriveResultSchema, MatrixRecordSchema, totalsOf } from './result.
|
|
28
|
-
export type { DriveResult, MatrixRecord, MatrixRow, StageStatus, SmokeStatus, DriveVerdict, TargetKind, StageResult } from './result.
|
|
29
|
-
export { sanitizeTarget, sanitizeOutput, redactSecrets, tailText, redactTempPath, REDACTED } from './sanitize.
|
|
30
|
-
export { TempWorkspaceRegistry, OWNED_PREFIX, QUARANTINE_PREFIX, removeWithRetries } from './workspace.
|
|
31
|
-
export type { TempWorkspace, CleanupOutcome } from './workspace.
|
|
32
|
-
export { DshDriver, classifyTarget, parseNpmShim, parseDumpLayers, dumpMentionsPackage, hasBootFailure, isGitLike, parseIgnoredBuildScript, TEMPLATE_BUNDLES, BOOT_FAILURE_MARKERS, anchorLocalTarget } from './driver.
|
|
33
|
-
export type { ChildRunResult, InstalledPackage } from './driver.
|
|
34
|
-
export { DriveRunner, freshId, progressLine, RUN_ID_PREFIX, MATRIX_ID_PREFIX } from './drive.
|
|
35
|
-
export type { DriveDeps, DriveOptions } from './drive.
|
|
36
|
-
export { DRIVE_BATCH_KIND, startBatchJob, runBatch, matrixSummary } from './batch.
|
|
37
|
-
export { renderDriveResult, renderMatrix, statusMark, formatDuration } from './report.
|
|
38
|
-
export { parseTargets } from './command.
|
|
39
|
-
export { driveDomainSpec, DOMAIN_NAME, DOMAIN_VERSION } from './domain.
|
|
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
|
package/lib/types/report.d.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module dsh-test-drive/report
|
|
8
8
|
*/
|
|
9
|
-
import type { DriveResult, MatrixRecord, SmokeStatus, StageStatus, DriveVerdict } from './result.
|
|
9
|
+
import type { DriveResult, MatrixRecord, SmokeStatus, StageStatus, DriveVerdict, CapabilityStatus } from './result.js';
|
|
10
10
|
/** Emoji/symbol mark for a stage or verdict status. */
|
|
11
|
-
export declare function statusMark(status: StageStatus | SmokeStatus | DriveVerdict): string;
|
|
11
|
+
export declare function statusMark(status: StageStatus | SmokeStatus | CapabilityStatus | DriveVerdict): string;
|
|
12
12
|
/** Human-duration rendering for one number of milliseconds. */
|
|
13
13
|
export declare function formatDuration(ms: number): string;
|
|
14
14
|
/** Render one drive result as a Markdown report block. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/report.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/report.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEtH,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,GAAG,MAAM,CAYtG;AAED,+DAA+D;AAC/D,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED,0DAA0D;AAC1D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CA8B7D;AAED,oDAAoD;AACpD,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAsBzD"}
|
package/lib/types/result.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* @module dsh-test-drive/result
|
|
15
15
|
*/
|
|
16
16
|
import { z } from 'zod';
|
|
17
|
+
import { CapabilityStatusSchema } from './capability.js';
|
|
17
18
|
/** Schema discriminator of every record this plugin writes (version 1). */
|
|
18
19
|
export declare const RESULT_SCHEMA: "dsh-test-drive/v1";
|
|
19
20
|
/** How the target was addressed. */
|
|
@@ -83,6 +84,22 @@ export declare const UninstallStageResultSchema: z.ZodObject<{
|
|
|
83
84
|
outputTail: z.ZodString;
|
|
84
85
|
}, z.core.$strip>;
|
|
85
86
|
export type UninstallStageResult = z.infer<typeof UninstallStageResultSchema>;
|
|
87
|
+
/** Capability-assertion stage: one named tool or command, registered → invoked → observed. */
|
|
88
|
+
export declare const CapabilityStageResultSchema: z.ZodObject<{
|
|
89
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
90
|
+
durationMs: z.ZodNumber;
|
|
91
|
+
attempts: z.ZodNumber;
|
|
92
|
+
summary: z.ZodString;
|
|
93
|
+
outputTail: z.ZodString;
|
|
94
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"observed">, z.ZodLiteral<"invoked">, z.ZodLiteral<"not-registered">, z.ZodLiteral<"skipped">, z.ZodLiteral<"failed">]>;
|
|
95
|
+
capabilityKind: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"tool">, z.ZodLiteral<"command">]>>;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
expectMatched: z.ZodBoolean;
|
|
98
|
+
detail: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type CapabilityStageResult = z.infer<typeof CapabilityStageResultSchema>;
|
|
101
|
+
/** Re-export of the capability status union for stage renderers. */
|
|
102
|
+
export type CapabilityStatus = z.infer<typeof CapabilityStatusSchema>;
|
|
86
103
|
/** Cleanup stage: quarantine/removal facts for the temp directory this run owned. */
|
|
87
104
|
export declare const CleanupStageResultSchema: z.ZodObject<{
|
|
88
105
|
status: z.ZodUnion<readonly [z.ZodLiteral<"pass">, z.ZodLiteral<"fail">, z.ZodLiteral<"skipped">]>;
|
|
@@ -180,6 +197,18 @@ export declare const DriveResultSchema: z.ZodObject<{
|
|
|
180
197
|
bootFailed: z.ZodBoolean;
|
|
181
198
|
taskCompleted: z.ZodBoolean;
|
|
182
199
|
}, z.core.$strip>;
|
|
200
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
202
|
+
durationMs: z.ZodNumber;
|
|
203
|
+
attempts: z.ZodNumber;
|
|
204
|
+
summary: z.ZodString;
|
|
205
|
+
outputTail: z.ZodString;
|
|
206
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"observed">, z.ZodLiteral<"invoked">, z.ZodLiteral<"not-registered">, z.ZodLiteral<"skipped">, z.ZodLiteral<"failed">]>;
|
|
207
|
+
capabilityKind: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"tool">, z.ZodLiteral<"command">]>>;
|
|
208
|
+
name: z.ZodString;
|
|
209
|
+
expectMatched: z.ZodBoolean;
|
|
210
|
+
detail: z.ZodString;
|
|
211
|
+
}, z.core.$strip>>;
|
|
183
212
|
uninstall: z.ZodObject<{
|
|
184
213
|
status: z.ZodUnion<readonly [z.ZodLiteral<"pass">, z.ZodLiteral<"fail">, z.ZodLiteral<"skipped">]>;
|
|
185
214
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -240,7 +269,8 @@ export declare function totalsOf(rows: readonly MatrixRow[]): MatrixRecord['tota
|
|
|
240
269
|
* Derive the overall verdict of one drive run from its stage outcomes.
|
|
241
270
|
*
|
|
242
271
|
* Rules, in order:
|
|
243
|
-
* 1. A failed install
|
|
272
|
+
* 1. A failed install, a failed boot (`smoke.fail`), or a capability stage
|
|
273
|
+
* that reached `not-registered`/`failed` is a hard `fail`.
|
|
244
274
|
* 2. `pass` needs install pass + patch effective + a clean boot (`pass` or
|
|
245
275
|
* `boot-ok`) + a successful uninstall.
|
|
246
276
|
* 3. `partial` covers everything that installed but missed a later assurance
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,2EAA2E;AA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AAE,GAAG,YAAY,CAAC,QAAQ,CAAC,CAW3E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,CAsBtF"}
|
package/lib/types/tools.d.ts
CHANGED
|
@@ -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.
|
|
12
|
-
import type { ResolvedConfig } from './config.
|
|
13
|
-
import type { driveDomainSpec } from './domain.
|
|
14
|
-
import { DriveRunner } from './drive.
|
|
15
|
-
import type { DriveDeps } from './drive.
|
|
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. */
|
package/lib/types/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAI7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAI7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAI3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAM3C,+DAA+D;AAC/D,MAAM,WAAW,YAAa,SAAQ,SAAS,EAAE,SAAS;IACxD,4BAA4B;IAC5B,GAAG,EAAE,OAAO,CAAA;IACZ,8BAA8B;IAC9B,MAAM,EAAE,cAAc,CAAA;IACtB,mCAAmC;IACnC,MAAM,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,CAAA;IACrD,0BAA0B;IAC1B,MAAM,EAAE,WAAW,CAAA;CACpB;AAkLD,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,YAAY,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AA2BD,4DAA4D;AAC5D,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,YAAY,qDA+H9C"}
|
package/lib/types/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-test-drive",
|
|
3
|
-
"version": "0.1
|
|
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",
|
|
@@ -97,16 +97,15 @@
|
|
|
97
97
|
"engines": {
|
|
98
98
|
"node": "^22.19.0 || >=24.0.0"
|
|
99
99
|
},
|
|
100
|
-
"packageManager": "pnpm@11.7.0",
|
|
101
100
|
"peerDependencies": {
|
|
102
101
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
103
|
-
"@deepseek-ai/schemastery": "^3.18.0",
|
|
104
102
|
"@deepseek-ai/dsh-agent": "0.1.0-rc.6",
|
|
105
103
|
"@deepseek-ai/dsh-commands": "0.1.0-rc.6",
|
|
106
104
|
"@deepseek-ai/dsh-jobs": "0.1.0-rc.6",
|
|
107
105
|
"@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
|
|
108
106
|
"@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
|
|
109
|
-
"@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"
|
|
110
109
|
},
|
|
111
110
|
"dependencies": {
|
|
112
111
|
"tsdown": "^0.22.14",
|
|
@@ -115,7 +114,8 @@
|
|
|
115
114
|
},
|
|
116
115
|
"devDependencies": {
|
|
117
116
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
118
|
-
"@deepseek-ai/
|
|
117
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.6",
|
|
118
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
|
|
119
119
|
"@deepseek-ai/dsh-agent": "0.1.0-rc.6",
|
|
120
120
|
"@deepseek-ai/dsh-commands": "0.1.0-rc.6",
|
|
121
121
|
"@deepseek-ai/dsh-jobs": "0.1.0-rc.6",
|
|
@@ -126,21 +126,27 @@
|
|
|
126
126
|
"@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
|
|
127
127
|
"@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
|
|
128
128
|
"@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.6",
|
|
129
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
|
|
129
130
|
"@deepseek-ai/dsh-tools": "0.1.0-rc.6",
|
|
131
|
+
"@deepseek-ai/schemastery": "^3.18.0",
|
|
130
132
|
"@types/node": "^22.19.0",
|
|
133
|
+
"@vitest/coverage-v8": "3.2.7",
|
|
134
|
+
"oxlint": "0.18.1",
|
|
131
135
|
"vitest": "^3.2.0",
|
|
132
136
|
"zod": "^4.4.3"
|
|
133
137
|
},
|
|
138
|
+
"license": "Apache-2.0",
|
|
134
139
|
"scripts": {
|
|
135
140
|
"build": "node scripts/prepare.mjs",
|
|
136
|
-
"prepare": "node scripts/prepare.mjs",
|
|
137
141
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
|
|
138
142
|
"typecheck:ci": "tsc -p tsconfig.ci.json --noEmit",
|
|
139
143
|
"test": "vitest run",
|
|
140
144
|
"test:watch": "vitest",
|
|
145
|
+
"test:coverage": "vitest run --coverage",
|
|
146
|
+
"lint": "oxlint",
|
|
147
|
+
"check:readmes": "node scripts/check-readme-sync.mjs",
|
|
141
148
|
"test:e2e": "vitest run tests/e2e.spec.ts",
|
|
142
149
|
"verify:self-contained": "node scripts/verify-self-contained.mjs",
|
|
143
150
|
"verify:artifacts": "node scripts/verify-artifacts.mjs"
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
}
|
|
151
|
+
}
|
|
152
|
+
}
|