@swoop111/dsh-tool-fs 0.2.0-rc.2 → 0.2.0-rc.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/lib/index.js +463 -463
- package/lib/types/completion.d.ts +41 -41
- package/lib/types/diff.d.ts +33 -33
- package/lib/types/edit.d.ts +44 -44
- package/lib/types/error.d.ts +18 -18
- package/lib/types/index.d.ts +18 -18
- package/lib/types/read-image.d.ts +56 -56
- package/lib/types/read-render.d.ts +89 -89
- package/lib/types/read-target.d.ts +24 -24
- package/lib/types/read.d.ts +89 -89
- package/lib/types/sandbox.d.ts +55 -55
- package/lib/types/session-cwd.d.ts +20 -20
- package/lib/types/structure.d.ts +46 -46
- package/lib/types/write.d.ts +37 -37
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
9
|
import type { ToolExecution } from '@deepseek-ai/dsh-tools';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
15
|
export declare function sessionCwd(exec: ToolExecution): string | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
22
|
export declare function sessionResolveOptions(exec: ToolExecution, policyWorkspaceRoot?: string): {
|
|
23
23
|
cwd?: string;
|
|
24
24
|
signal?: AbortSignal;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
|
package/lib/types/structure.d.ts
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
16
|
export type CompletionRule = 'fence' | 'brace' | 'indent';
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
export type OpenConstruct = {
|
|
19
19
|
kind: 'fence';
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
marker: string;
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
lineIndex: number;
|
|
24
24
|
} | {
|
|
25
25
|
kind: 'brace';
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
depth: number;
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
lineIndex: number;
|
|
30
30
|
} | {
|
|
31
31
|
kind: 'indent';
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
width: number;
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
lineIndex: number;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
export interface HeadContext {
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
kind: CompletionRule;
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
startIndex: number;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
49
|
export declare function detectOpenTail(lines: readonly string[]): OpenConstruct | undefined;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
59
|
export declare function detectOpenHead(window: readonly string[], preceding: readonly string[]): HeadContext | undefined;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
66
|
export declare function closureLength(construct: OpenConstruct, appended: readonly string[]): number;
|
|
67
|
-
|
|
67
|
+
|
package/lib/types/write.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
7
|
import type { Context } from '@deepseek-ai/cordis';
|
|
8
8
|
import type { FsWriteOutcome } from '@deepseek-ai/dsh-fs';
|
|
9
9
|
import type { Session } from '@deepseek-ai/dsh-session';
|
|
10
10
|
import type { FsSandboxController } from './sandbox.ts';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
15
|
export interface WriteHintTuning {
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
pathHint: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
22
|
priorPaths(session: Session | undefined, limit?: number): string[];
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
export interface WriteRepairConfig {
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
pathHint?: boolean;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
35
|
export declare function parseWriteArgs(args: {
|
|
36
36
|
file_path: string;
|
|
37
37
|
content: string;
|
|
@@ -39,19 +39,19 @@ export declare function parseWriteArgs(args: {
|
|
|
39
39
|
filePath: string;
|
|
40
40
|
content: string;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
49
|
export declare function formatWriteOutput(displayPath: string, outcome: Pick<FsWriteOutcome, 'operation'>, hint?: string): string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
56
|
export declare function applyWriteTool(ctx: Context, sandbox: FsSandboxController, hints: WriteHintTuning): void;
|
|
57
|
-
|
|
57
|
+
|
package/package.json
CHANGED