@deepseek-ai/dsh-session-snapshot 0.2.1-rc.4 → 0.2.2-alpha.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/lib/index.js +8 -1
- package/lib/types/harness.d.ts +6 -0
- package/lib/types/index.d.ts +1 -1
- package/package.json +23 -22
package/lib/index.js
CHANGED
|
@@ -680,6 +680,12 @@ function captureExpectedWorkspaceSnapshot(root) {
|
|
|
680
680
|
const DEFAULT_WAIT_TIMEOUT_MS = 1e4;
|
|
681
681
|
const WAIT_POLL_INTERVAL_MS = 10;
|
|
682
682
|
/**
|
|
683
|
+
* Credential environment every keyless replay layers under its scenario environment. Shipped
|
|
684
|
+
* profiles offer `web_search` only while a DeepSeek search key is configured and recordings ran
|
|
685
|
+
* with a real key, so a replay supplies a placeholder instead of whatever the runner exports.
|
|
686
|
+
*/
|
|
687
|
+
const REPLAY_CREDENTIAL_ENV = { DEEPSEEK_API_KEY: "snapshot-replay-key" };
|
|
688
|
+
/**
|
|
683
689
|
* Derive the stable, fixed-length logical spill prefix; never allocate files here.
|
|
684
690
|
* Windows uses a two-character-shorter root because drive resolution adds its drive prefix.
|
|
685
691
|
* @param fixtureFile - The scenario fixture whose parent directory provides the stable identity.
|
|
@@ -719,6 +725,7 @@ async function runScenario(input, opts) {
|
|
|
719
725
|
".dsh-snapshot-stream-ready"
|
|
720
726
|
] });
|
|
721
727
|
const env = {
|
|
728
|
+
...opts.mode === "replay" ? REPLAY_CREDENTIAL_ENV : {},
|
|
722
729
|
...opts.env,
|
|
723
730
|
...clearedProxyEnv(),
|
|
724
731
|
DSH_SNAPSHOT: opts.mode,
|
|
@@ -2955,4 +2962,4 @@ function defineAcpSnapshotSuite(options) {
|
|
|
2955
2962
|
});
|
|
2956
2963
|
}
|
|
2957
2964
|
//#endregion
|
|
2958
|
-
export { EMPTY_WORKSPACE_MARKER, assertPersistedSessionVersion, assertSessionFixtureVersion, captureExpectedWorkspaceSnapshot, captureWorkspaceSnapshot, defineAcpSnapshotSuite, extractSnapshotSpillPaths, fixtureContext, formatSystemPromptSnapshot, formatToolSchemasSnapshot, headerChangeCount, latestPersistedSessionPaths, launchAcpTestAgent, materializeProfilePatch, normalizeSessionFormatMetadata, normalizeSessionLog, normalizeSessionSnapshot, normalizeSessionSnapshots, normalizeStdout, normalizedHeaders, normalizedSystemPrompts, normalizedToolSchemas, parsePersistedSessionFilename, parseSessionFixtureName, parseSnapshotManifest, parseSystemPromptSnapshot, parseToolSchemasSnapshot, persistedSessionFilename, reconcileCatalogCreationTimes, redactSessionSnapshotIds, refreshFixtureReplacements, restorePinnedToolSchemas, runScenario, scrubModelRequestBulk, scrubSessionSnapshot, scrubSystemPrompts, scrubToolSchemas, sessionFixtureFiles, sessionFixtureName, sessionFixtureNames, sessionHeaderVersion, snapshotSpillRoot, stabilizeFixtureMessageIds, stabilizeRefreshLog, systemPromptPrecedesRequests, tokenizeSessionFixtureCwd, writerSnapshotName, writesCurrentSessionFixtures };
|
|
2965
|
+
export { EMPTY_WORKSPACE_MARKER, REPLAY_CREDENTIAL_ENV, assertPersistedSessionVersion, assertSessionFixtureVersion, captureExpectedWorkspaceSnapshot, captureWorkspaceSnapshot, defineAcpSnapshotSuite, extractSnapshotSpillPaths, fixtureContext, formatSystemPromptSnapshot, formatToolSchemasSnapshot, headerChangeCount, latestPersistedSessionPaths, launchAcpTestAgent, materializeProfilePatch, normalizeSessionFormatMetadata, normalizeSessionLog, normalizeSessionSnapshot, normalizeSessionSnapshots, normalizeStdout, normalizedHeaders, normalizedSystemPrompts, normalizedToolSchemas, parsePersistedSessionFilename, parseSessionFixtureName, parseSnapshotManifest, parseSystemPromptSnapshot, parseToolSchemasSnapshot, persistedSessionFilename, reconcileCatalogCreationTimes, redactSessionSnapshotIds, refreshFixtureReplacements, restorePinnedToolSchemas, runScenario, scrubModelRequestBulk, scrubSessionSnapshot, scrubSystemPrompts, scrubToolSchemas, sessionFixtureFiles, sessionFixtureName, sessionFixtureNames, sessionHeaderVersion, snapshotSpillRoot, stabilizeFixtureMessageIds, stabilizeRefreshLog, systemPromptPrecedesRequests, tokenizeSessionFixtureCwd, writerSnapshotName, writesCurrentSessionFixtures };
|
package/lib/types/harness.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ import { type ContentBlock as AcpContentBlock } from '@agentclientprotocol/sdk';
|
|
|
19
19
|
import { type AgentUnderTest } from './launcher.ts';
|
|
20
20
|
import { type WorkspaceSnapshotEntry } from './workspace.ts';
|
|
21
21
|
export type { AgentUnderTest } from './launcher.ts';
|
|
22
|
+
/**
|
|
23
|
+
* Credential environment every keyless replay layers under its scenario environment. Shipped
|
|
24
|
+
* profiles offer `web_search` only while a DeepSeek search key is configured and recordings ran
|
|
25
|
+
* with a real key, so a replay supplies a placeholder instead of whatever the runner exports.
|
|
26
|
+
*/
|
|
27
|
+
export declare const REPLAY_CREDENTIAL_ENV: Readonly<Record<string, string>>;
|
|
22
28
|
/**
|
|
23
29
|
* One step of a scenario's deterministic input script (`input.json`). The
|
|
24
30
|
* harness interprets these in order. `newSession` captures the server-issued
|
package/lib/types/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* @module @deepseek-ai/dsh-session-snapshot
|
|
18
18
|
*/
|
|
19
19
|
export { redactSessionSnapshotIds, } from './identity.ts';
|
|
20
|
-
export { runScenario, snapshotSpillRoot, type HarvestedLog, type InputScript, type InputStep, type PermissionAnswer, type RunOptions, type RunResult, } from './harness.ts';
|
|
20
|
+
export { REPLAY_CREDENTIAL_ENV, runScenario, snapshotSpillRoot, type HarvestedLog, type InputScript, type InputStep, type PermissionAnswer, type RunOptions, type RunResult, } from './harness.ts';
|
|
21
21
|
export { launchAcpTestAgent, materializeProfilePatch, type AcpTestLaunchOptions, type AgentUnderTest, type LaunchedAcpTestAgent, } from './launcher.ts';
|
|
22
22
|
export { extractSnapshotSpillPaths, normalizeSessionFormatMetadata, normalizeSessionLog, normalizeSessionSnapshot, normalizeSessionSnapshots, normalizeStdout, scrubModelRequestBulk, scrubSessionSnapshot, scrubSystemPrompts, scrubToolSchemas, tokenizeSessionFixtureCwd, type CwdPathMode, type NormalizeContext, type NormalizeOptions, } from './normalize.ts';
|
|
23
23
|
export { parseSnapshotManifest, writesCurrentSessionFixtures, type SnapshotHeaderManifest, type SnapshotInputAttachment, type SnapshotInputManifest, type SnapshotManifest, type SnapshotPermission, type SnapshotPlatform, type SnapshotProfile, type SnapshotRecording, type SnapshotReplayManifest, type SnapshotSessionReference, type SnapshotSessionFormatCoverage, type SnapshotSessionFormatManifest, type SnapshotSessionWriteMode, type SnapshotWorkspaceManifest, } from './manifest.ts';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session-snapshot",
|
|
3
3
|
"description": "Session-log snapshot core with an ACP protocol adapter, expected-output normalization, and fixture invariants",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -28,33 +28,34 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
31
|
-
"@deepseek-ai/cordis-plugin-include": "~1.0.
|
|
32
|
-
"@deepseek-ai/dsh-llm-replay": "0.2.
|
|
33
|
-
"@deepseek-ai/dsh-loader-smoke": "0.2.
|
|
34
|
-
"@deepseek-ai/dsh-session-format": "0.2.
|
|
31
|
+
"@deepseek-ai/cordis-plugin-include": "~1.0.11-alpha.1",
|
|
32
|
+
"@deepseek-ai/dsh-llm-replay": "0.2.2-alpha.2",
|
|
33
|
+
"@deepseek-ai/dsh-loader-smoke": "0.2.2-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-session-format": "0.2.2-alpha.2",
|
|
35
35
|
"js-yaml": "^4.3.2",
|
|
36
36
|
"vitest": "^4.1.11"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
40
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
41
|
-
"@deepseek-ai/dsh-http-proxy": "0.2.
|
|
39
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1",
|
|
40
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.2",
|
|
41
|
+
"@deepseek-ai/dsh-http-proxy": "0.2.2-alpha.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
45
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
46
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.
|
|
47
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.
|
|
48
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
49
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
50
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
51
|
-
"@deepseek-ai/dsh-sandbox": "0.2.
|
|
52
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.
|
|
53
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
54
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
44
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1",
|
|
45
|
+
"@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-user-questions": "0.2.2-alpha.2",
|
|
57
58
|
"@types/js-yaml": "^4.0.9",
|
|
58
|
-
"@deepseek-ai/dsh-http-proxy": "0.2.
|
|
59
|
+
"@deepseek-ai/dsh-http-proxy": "0.2.2-alpha.2"
|
|
59
60
|
}
|
|
60
61
|
}
|