@gooftoken/dsh-rewind 0.0.0-stage → 0.1.0

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/paths.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ /** Convert a native path to slash-separated form for Git pathspecs. */
2
+ export declare function toPosix(path: string): string;
3
+ /** Whether a path is the same as, or strictly inside, a root. */
4
+ export declare function isInside(root: string, path: string): boolean;
5
+ /** Canonical absolute path, resolving symlinks of the nearest existing ancestor. */
6
+ export declare function canonicalPath(path: string): Promise<string>;
7
+ /** Lowercase hexadecimal SHA-256 of one string. */
8
+ export declare function sha256(text: string): string;
9
+ /** Read a UTF-8 JSON file, returning undefined for a missing or unreadable file. */
10
+ export declare function readJsonFile(path: string): Promise<unknown>;
11
+ /** Atomically replace one UTF-8 file through a sibling temporary file. */
12
+ export declare function writeJsonAtomic(path: string, value: unknown): Promise<void>;
13
+ /** Remove one path and, when requested, its descendants; missing paths are ignored. */
14
+ export declare function removePath(path: string): Promise<void>;
15
+ /** Directory under `<storageDir>/workspaces` that owns one repository's objects. */
16
+ export declare function workspaceKey(repoRoot: string): string;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Record one Git working-tree checkpoint at the start of each top-level turn.
3
+ * Every tool waits for the turn's baseline before it runs, so the snapshot is
4
+ * taken before any tool can mutate the work tree.
5
+ */
6
+ import type { Session, SessionEvent } from '@deepseek-ai/dsh-session';
7
+ import type { Git } from './git/runner.js';
8
+ import type { WorkspaceResolver } from './git/workspace.js';
9
+ import type { CheckpointStore } from './store.js';
10
+ import type { LoggerLike } from './types.js';
11
+ /** Tool execution facts the pre-execute listener can await on. */
12
+ export interface ToolExecutionLike {
13
+ readonly agent?: {
14
+ readonly session: Session;
15
+ } | undefined;
16
+ }
17
+ /** Everything the recorder needs from the plugin composition. */
18
+ export interface RecorderOptions {
19
+ store: CheckpointStore;
20
+ workspaces: WorkspaceResolver;
21
+ git: () => Promise<Git | null>;
22
+ workingDirectory: {
23
+ get(session: Session): string;
24
+ } | undefined;
25
+ logger: LoggerLike;
26
+ lifetime: AbortSignal;
27
+ /** Test seam: takes the baseline tree; defaults to the real Git snapshot. */
28
+ snapshot?: (git: Git, workspace: Awaited<ReturnType<WorkspaceResolver['forCwd']>>, signal: AbortSignal) => Promise<string>;
29
+ }
30
+ /** Git checkpoint recorder for live sessions. */
31
+ export declare class SnapshotRecorder {
32
+ private readonly options;
33
+ private readonly states;
34
+ private readonly sessions;
35
+ constructor(options: RecorderOptions);
36
+ /** Observe one committed session event; `turn/start` queues a snapshot. */
37
+ observe(session: Session, event: SessionEvent): void;
38
+ /** Wait for the pending baseline of the session behind one tool execution. */
39
+ settleFor(execution: ToolExecutionLike): Promise<void>;
40
+ /** Abort and forget one disposed session. */
41
+ forget(session: Session): void;
42
+ /** Abort every pending baseline and wait for settlement. */
43
+ dispose(): Promise<void>;
44
+ /** Find the tracked top-level state behind a session, walking subagent ancestry. */
45
+ private stateBehind;
46
+ /** Queue the baseline of one top-level turn. */
47
+ private startTurn;
48
+ /** Take and store one turn's baseline tree, recording an incomplete checkpoint on failure. */
49
+ private capture;
50
+ }
@@ -0,0 +1,72 @@
1
+ import type { Session, SessionEvent, SessionSeq } from '@deepseek-ai/dsh-session';
2
+ declare module '@deepseek-ai/dsh-llm/message' {
3
+ interface MessageSourceMap {
4
+ /** The first replayed message: a normal user message plus replay metadata. */
5
+ 'rewind-replay': {
6
+ kind: 'rewind-replay';
7
+ turn: number;
8
+ cut: number;
9
+ at?: number;
10
+ };
11
+ }
12
+ }
13
+ /** One planned replay of a compacted conversation prefix. */
14
+ export interface ReplayPlan {
15
+ /** Host-assigned turn the conversation returns to before. */
16
+ turn: number;
17
+ /** Seq of the target turn's `turn/start`; the transcript range starts here. */
18
+ cut: number;
19
+ /** First desired surface event when it can carry the replacement; null for the cut-node fallback. */
20
+ pivot: SessionEvent | null;
21
+ /** Remaining desired surface events, appended in surface order. */
22
+ copies: readonly SessionEvent[];
23
+ /** Current surface suffix the head replaces, in surface order. */
24
+ shadowed: readonly SessionSeq[];
25
+ }
26
+ /**
27
+ * Fold the surface node list of one event window. This mirrors the core fold
28
+ * for node membership only; message projections never change nodes.
29
+ * @param events - contiguous log events starting at seq 0.
30
+ * @returns surface event seqs in model-visible order.
31
+ */
32
+ export declare function foldSurfaceNodes(events: readonly SessionEvent[]): SessionSeq[];
33
+ /**
34
+ * Plan one same-session replay to the state before a turn whose surface was
35
+ * condensed by a compaction.
36
+ * @param session - live session whose current surface is authoritative.
37
+ * @param events - complete session log at the same cut.
38
+ * @param turn - host-assigned target turn.
39
+ * @param cut - seq of the target turn's `turn/start`.
40
+ * @returns the replay plan.
41
+ * @throws RewindError when the desired prefix cannot be reconstructed.
42
+ */
43
+ export declare function planReplay(session: Session, events: readonly SessionEvent[], turn: number, cut: number): ReplayPlan;
44
+ /** Whether the log ends with an open turn the synthetic envelope would conflict with. */
45
+ export declare function openTurn(events: readonly SessionEvent[]): number | undefined;
46
+ /** Source kind written on the empty cut head of a rebuild. */
47
+ export type ReplayHeadKind = 'rewind-cut' | 'rewind-undo';
48
+ /** One appended replay: its replacement head and any synthetic envelope turn. */
49
+ export interface ReplayAppend {
50
+ /** Seq of the appended replacement message. */
51
+ head: SessionSeq;
52
+ /** Synthetic turn opened around the copies; absent when the replay wrote none. */
53
+ turn?: number;
54
+ }
55
+ /**
56
+ * Append one replay: the first rebuilt user message replaces the compacted
57
+ * tail and the remaining rebuilt messages are appended after it; an empty
58
+ * developer cut node is used when the pivot cannot be the replacement. No
59
+ * separate surface marker is written.
60
+ *
61
+ * Assistant messages and the cut node require an open turn and step, so a
62
+ * replay with either writes a tagged internal turn around the copies. The
63
+ * tag keeps that turn out of the picker and its assistant messages carry the
64
+ * matching tool/call events, so a reload accepts the log.
65
+ * @param session - live session to append to.
66
+ * @param plan - validated replay plan.
67
+ * @param at - epoch milliseconds of the target turn start.
68
+ * @param headKind - source kind of the fallback cut head; `rewind-undo` marks
69
+ * an undo of the previous rewind instead of a new rewind.
70
+ * @returns the replacement message's seq and the synthetic envelope turn.
71
+ */
72
+ export declare function appendReplay(session: Session, plan: ReplayPlan, at: number, headKind?: ReplayHeadKind): ReplayAppend;
package/lib/store.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import type { Checkpoint, LoggerLike, SessionRecord, UndoRecord } from './types.js';
2
+ /** Checkpoint index for one plugin storage directory. */
3
+ export declare class CheckpointStore {
4
+ private readonly retentionDays;
5
+ private readonly logger;
6
+ private readonly sessionsDir;
7
+ private readonly workspacesDir;
8
+ /**
9
+ * @param root - plugin storage directory.
10
+ * @param retentionDays - days a session index is retained.
11
+ * @param logger - warning sink.
12
+ */
13
+ constructor(root: string, retentionDays: number, logger: LoggerLike);
14
+ /** Read one session record, or an empty record when absent or malformed. */
15
+ load(sessionId: string): Promise<SessionRecord>;
16
+ /** Read one turn's checkpoint. */
17
+ checkpoint(sessionId: string, turn: number): Promise<Checkpoint | undefined>;
18
+ /** Insert or replace one turn's checkpoint. Callers serialize per session. */
19
+ saveCheckpoint(sessionId: string, checkpoint: Checkpoint): Promise<void>;
20
+ /** Read the last undoable rewind, when one was recorded. */
21
+ loadUndo(sessionId: string): Promise<UndoRecord | undefined>;
22
+ /** Replace the undo record. Callers serialize per session. */
23
+ saveUndo(sessionId: string, undo: UndoRecord): Promise<void>;
24
+ /** Drop the undo record after a successful undo. */
25
+ clearUndo(sessionId: string): Promise<void>;
26
+ /**
27
+ * Drop indexes older than the retention window, then remove object stores
28
+ * that no surviving index references.
29
+ * @param now - epoch milliseconds used as the cutoff.
30
+ */
31
+ prune(now?: number): Promise<void>;
32
+ /** Absolute index file for one session. */
33
+ private fileOf;
34
+ }
@@ -0,0 +1,74 @@
1
+ import type { Session, SessionEvent, SessionSeq } from '@deepseek-ai/dsh-session';
2
+ declare module '@deepseek-ai/dsh-llm/message' {
3
+ interface MessageSourceMap {
4
+ /** A surface-replacement marker written by a user-initiated rewind. */
5
+ 'rewind-checkpoint': {
6
+ kind: 'rewind-checkpoint';
7
+ turn: number;
8
+ at: number;
9
+ cut?: number;
10
+ };
11
+ }
12
+ }
13
+ /** The exact suffix one rewind replaces. */
14
+ export interface SurfaceCut {
15
+ /** First surface node of the target turn (or the replacement covering it). */
16
+ startSeq: SessionSeq;
17
+ /** Current last surface node. */
18
+ endSeq: SessionSeq;
19
+ /** Every shadowed surface node, in surface order. */
20
+ shadowed: readonly SessionSeq[];
21
+ /** Host-assigned turn number the conversation returns to. */
22
+ turn: number;
23
+ }
24
+ /** One user rewind marker: the turn the conversation returned to and its log position. */
25
+ export interface RewindMarker {
26
+ /** Host-assigned turn the rewind returned to before. */
27
+ turn: number;
28
+ /** Seq of the event that landed the marker. */
29
+ seq: number;
30
+ /** Seq of the target turn's `turn/start`, when the marker records it. */
31
+ cut?: number;
32
+ }
33
+ /**
34
+ * Every user rewind marker in the log, oldest first.
35
+ * @param events - complete session log.
36
+ * @returns markers written by earlier rewinds or replays.
37
+ */
38
+ export declare function rewindMarkers(events: readonly SessionEvent[]): RewindMarker[];
39
+ /**
40
+ * Whether an earlier rewind already hid a turn's start. A turn stays hidden
41
+ * when a marker returned to that turn or an earlier one after the turn began;
42
+ * turns created after a marker are visible again.
43
+ * @param events - complete session log.
44
+ * @param turn - host-assigned turn to test.
45
+ * @returns true when the turn is no longer part of the visible conversation.
46
+ */
47
+ export declare function hiddenByRewind(events: readonly SessionEvent[], turn: number): boolean;
48
+ /**
49
+ * Whether the log ends inside an open compaction bracket. A rewind must not
50
+ * replace the surface while compaction owns it.
51
+ * @param events - complete session log.
52
+ * @returns true when the newest bracket has no close.
53
+ */
54
+ export declare function compactionOpen(events: readonly SessionEvent[]): boolean;
55
+ /**
56
+ * Compute the surface suffix a rewind to the start of one turn must replace.
57
+ * The cut is the turn's first appended human message; when a previous
58
+ * compaction or rewind already shadowed it, the cut is the replacement node
59
+ * covering it. System prompt nodes are never the cut.
60
+ * @param session - live session whose current surface is used.
61
+ * @param events - complete session log at the same cut.
62
+ * @param turn - host-assigned target turn.
63
+ * @returns the cut, or null when the surface already ends before that turn.
64
+ */
65
+ export declare function computeSurfaceCut(session: Session, events: readonly SessionEvent[], turn: number): SurfaceCut | null;
66
+ /**
67
+ * Append the empty developer cut that truncates the model surface. It leaves
68
+ * no model message and no user-visible rewind marker.
69
+ * @param session - live session being rewound.
70
+ * @param cut - surface suffix to replace.
71
+ * @param at - epoch milliseconds of the target turn start.
72
+ * @returns seq of the appended cut event.
73
+ */
74
+ export declare function appendRewindCut(session: Session, cut: SurfaceCut, at: number, turnStart?: number): SessionSeq;
package/lib/types.d.ts ADDED
@@ -0,0 +1,120 @@
1
+ /** Shared vocabulary: checkpoints, Git diffs, and the local logger seam. */
2
+ import type { SessionEvent } from '@deepseek-ai/dsh-session';
3
+ declare module '@deepseek-ai/dsh-llm/message' {
4
+ interface MessageSourceMap {
5
+ /** The empty developer cut that truncates a rewound model surface. */
6
+ 'rewind-cut': {
7
+ kind: 'rewind-cut';
8
+ turn: number;
9
+ at?: number;
10
+ cut?: number;
11
+ };
12
+ /** The empty developer cut that restores a rewound surface. */
13
+ 'rewind-undo': {
14
+ kind: 'rewind-undo';
15
+ turn: number;
16
+ at?: number;
17
+ cut?: number;
18
+ };
19
+ }
20
+ }
21
+ /** Minimal logging face used instead of a Cordis context in pure modules. */
22
+ export interface LoggerLike {
23
+ info(message: string): void;
24
+ warn(message: string): void;
25
+ }
26
+ /** A stable, rewind-specific error with a machine-readable code. */
27
+ export declare class RewindError extends Error {
28
+ /** Stable failure identity used by command result copy. */
29
+ readonly code: RewindErrorCode;
30
+ /**
31
+ * @param code - stable failure identity.
32
+ * @param message - user-facing reason.
33
+ */
34
+ constructor(code: RewindErrorCode, message: string);
35
+ }
36
+ /** Closed set of expected rewind failures. */
37
+ export type RewindErrorCode = 'busy' | 'subagent' | 'no-turn' | 'no-checkpoint' | 'no-git' | 'no-repository' | 'too-many-paths' | 'restore-failed' | 'conversation-unavailable' | 'already-rewound' | 'compacted' | 'no-range' | 'no-undo' | 'undo-stale' | 'cancelled' | 'compaction-unavailable' | 'compaction-busy' | 'compaction-changed' | 'compaction-failed';
38
+ /** Whether one checkpoint can restore files and whether anything differs now. */
39
+ export type FileCheckpointState = 'changed' | 'none' | 'missing' | 'unavailable' | 'unknown';
40
+ /** One turn-start checkpoint. */
41
+ export interface Checkpoint {
42
+ /** Host-assigned turn number from `turn/start`. */
43
+ turn: number;
44
+ /** Unix epoch milliseconds of the `turn/start` event. */
45
+ at: number;
46
+ /** Session working directory when the turn opened. */
47
+ cwd: string;
48
+ /** Repository top-level directory the tree covers. */
49
+ repoRoot: string;
50
+ /** Directory name under `<storageDir>/workspaces` holding the objects. */
51
+ workspaceKey: string;
52
+ /** Git tree object id of the work tree at turn start; empty when incomplete. */
53
+ beforeTree: string;
54
+ /** Whether the baseline completed and can be restored. */
55
+ complete: boolean;
56
+ /** Why an incomplete baseline was abandoned. */
57
+ reason?: string;
58
+ }
59
+ /** File half of one undoable rewind. */
60
+ export interface UndoFiles {
61
+ /** Repository top-level directory the two trees belong to. */
62
+ repoRoot: string;
63
+ /** Work tree snapshot taken before the rewind; the restore target. */
64
+ tree: string;
65
+ /** Work tree the rewind left behind; undo refuses when it no longer matches. */
66
+ afterTree: string;
67
+ }
68
+ /** Conversation half of one undoable rewind. */
69
+ export interface UndoConversation {
70
+ /** Surface nodes the rewind shadowed, in surface order. */
71
+ shadowed: number[];
72
+ /** Seq of the rewind's surface head, the first node undo replaces. */
73
+ head: number;
74
+ /** Hash of the complete surface the rewind left behind. */
75
+ surfaceHash: string;
76
+ }
77
+ /** The last applied rewind, restorable by `/rewind undo`. */
78
+ export interface UndoRecord {
79
+ /** Host-assigned turn the rewind returned to; used for display. */
80
+ turn: number;
81
+ /** Unix epoch milliseconds when the rewind was applied. */
82
+ at: number;
83
+ /** Present when the rewind restored files. */
84
+ files?: UndoFiles;
85
+ /** Present when the rewind changed the conversation. */
86
+ conversation?: UndoConversation;
87
+ }
88
+ /** Durable per-session checkpoint index. */
89
+ export interface SessionRecord {
90
+ version: 1;
91
+ sessionId: string;
92
+ checkpoints: Checkpoint[];
93
+ /** Last rewind applied to this session, when it is still undoable in principle. */
94
+ undo?: UndoRecord;
95
+ }
96
+ /** One path difference between a checkpoint tree and the current work tree. */
97
+ export interface ChangedPath {
98
+ /** `M`/`T` exist on both sides; `A` exists only now; `D` exists only in the checkpoint. */
99
+ status: 'M' | 'T' | 'A' | 'D';
100
+ /** Slash-separated path relative to the repository root. */
101
+ path: string;
102
+ }
103
+ /** Facts folded from one turn's session events. */
104
+ export interface TurnFacts {
105
+ /** Host-assigned turn number. */
106
+ turn: number;
107
+ /** Seq of the `turn/start` event. */
108
+ startSeq: number;
109
+ /** Unix epoch milliseconds of the `turn/start` event. */
110
+ at: number;
111
+ /** Bounded first human prompt preview; empty until a human prompt lands. */
112
+ prompt: string;
113
+ /** Whether the turn recorded `turn/end`. */
114
+ ended: boolean;
115
+ }
116
+ /** One observed session snapshot used by the command without holding a Session reference. */
117
+ export interface EventsObservation {
118
+ events: readonly SessionEvent[];
119
+ dispose(): void;
120
+ }
package/lib/undo.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ import type { Session, SessionEvent } from '@deepseek-ai/dsh-session';
2
+ import type { ReplayPlan } from './replay.js';
3
+ import type { UndoRecord } from './types.js';
4
+ /** Stable fingerprint of one model surface's node order. */
5
+ export declare function surfaceHash(nodes: readonly number[]): string;
6
+ /** Undo facts the picker and command share. */
7
+ export interface UndoAvailability {
8
+ /** Turn the rewound conversation returned to before. */
9
+ turn: number;
10
+ /** Unix epoch milliseconds when the rewind was applied. */
11
+ at: number;
12
+ /** Whether the rewind restored files. */
13
+ files: boolean;
14
+ /** Whether the rewind changed the conversation. */
15
+ conversation: boolean;
16
+ /** Whether the rewind can still be undone right now. */
17
+ available: boolean;
18
+ }
19
+ /**
20
+ * Plan the rebuild that restores the surface a rewind replaced: an empty
21
+ * developer cut replaces the rewind's suffix, and the shadowed messages are
22
+ * copied back after it.
23
+ * @param session - live session whose surface is undoed.
24
+ * @param events - complete session log.
25
+ * @param record - undo record written by the rewind.
26
+ * @returns the replay plan, with a cut head and every shadowed message as a copy.
27
+ * @throws RewindError when the conversation moved on since the rewind.
28
+ */
29
+ export declare function planUndo(session: Session, events: readonly SessionEvent[], record: UndoRecord): ReplayPlan;
30
+ /**
31
+ * Cheap availability check for the list command and picker. File drift is
32
+ * checked by the undo itself, which needs a work-tree snapshot.
33
+ * @param session - live session.
34
+ * @param events - complete session log.
35
+ * @param record - stored undo record, if any.
36
+ * @returns the undo summary, or undefined when nothing was recorded.
37
+ */
38
+ export declare function undoAvailability(session: Session, events: readonly SessionEvent[], record: UndoRecord | undefined): UndoAvailability | undefined;
package/locale/en.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "Rewind",
4
+ "description": "Git working-tree checkpoints and in-place conversation rewind for the current session.",
5
+ "detail": "docs/DETAIL.md"
6
+ }
7
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "回退",
4
+ "description": "Git 工作树检查点 + 当前会话内原地对话回退。",
5
+ "detail": "docs/DETAIL.md"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,94 @@
1
1
  {
2
2
  "name": "@gooftoken/dsh-rewind",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "DeepSeek Harness plugin: Git working-tree checkpoints and in-place conversation rewind.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/sparkjokerben/dsh-rewind.git"
9
+ },
10
+ "type": "module",
11
+ "main": "./lib/index.js",
12
+ "types": "./lib/index.d.ts",
13
+ "icon": "./assets/icon.svg",
14
+ "keywords": [
15
+ "dsh",
16
+ "dsh-plugin",
17
+ "deepseek-harness",
18
+ "rewind",
19
+ "checkpoint",
20
+ "git"
21
+ ],
22
+ "engines": {
23
+ "node": ">=22.21.0",
24
+ "dsh": ">=0.2.2-rc.5 <0.3.0-0"
25
+ },
26
+ "exports": {
27
+ ".": {
28
+ "types": "./lib/index.d.ts",
29
+ "default": "./lib/index.js"
30
+ },
31
+ "./locale/*.json": "./locale/*.json",
32
+ "./icon": "./assets/icon.svg",
33
+ "./package.json": "./package.json",
34
+ "./client": "./client.js"
35
+ },
36
+ "dsh": {
37
+ "bundle": {
38
+ "patch": "./cordis.patch.yml"
39
+ },
40
+ "client": {
41
+ "platform": "web",
42
+ "immediately": true,
43
+ "inject": [
44
+ "@deepseek-ai/dsh-api-remotes",
45
+ "@deepseek-ai/dsh-client-locale",
46
+ "@deepseek-ai/dsh-client-ui-commands",
47
+ "@deepseek-ai/dsh-client-ui-layout",
48
+ "@deepseek-ai/dsh-api-session-controller",
49
+ "@deepseek-ai/dsh-client-ui-conversation"
50
+ ]
51
+ }
52
+ },
53
+ "files": [
54
+ "lib",
55
+ "client.js",
56
+ "locale",
57
+ "assets",
58
+ "docs",
59
+ "cordis.patch.yml",
60
+ "README.md",
61
+ "LICENSE"
62
+ ],
63
+ "scripts": {
64
+ "build": "tsdown && tsc -p tsconfig.build.json",
65
+ "prepare": "npm run build",
66
+ "typecheck": "tsc --noEmit --pretty false",
67
+ "test:dist": "node ./scripts/smoke-entry.mjs",
68
+ "test": "vitest",
69
+ "test:run": "vitest run"
70
+ },
71
+ "dependencies": {
72
+ "@deepseek-ai/schemastery": "^3.19.0"
73
+ },
74
+ "peerDependencies": {
75
+ "@deepseek-ai/cordis": ">=4.0.0 <5.0.0"
76
+ },
77
+ "devDependencies": {
78
+ "@deepseek-ai/cordis": "^4.1.0",
79
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.5",
80
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.5",
81
+ "@deepseek-ai/dsh-compaction": "0.2.2-rc.5",
82
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.5",
83
+ "@deepseek-ai/dsh-session": "0.2.2-rc.5",
84
+ "@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.2-rc.5",
85
+ "@deepseek-ai/dsh-session-query": "0.2.2-rc.5",
86
+ "@deepseek-ai/dsh-subprocess": "0.2.2-rc.5",
87
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.5",
88
+ "@deepseek-ai/dsh-working-directory": "0.2.2-rc.5",
89
+ "@types/node": "^24.0.0",
90
+ "tsdown": "^0.23.7",
91
+ "typescript": "^5.9.3",
92
+ "vitest": "^5.1.0"
93
+ }
94
+ }