dsh-patch-edit-plus 0.3.0 → 0.3.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/CHANGELOG.md +5 -0
- package/CHANGELOG.zh.md +5 -0
- package/README.de.md +127 -0
- package/README.es.md +127 -0
- package/README.fr.md +127 -0
- package/README.it.md +127 -0
- package/README.ja.md +2 -0
- package/README.ko.md +2 -0
- package/README.md +2 -0
- package/README.ru.md +127 -0
- package/README.zh.md +2 -0
- package/dsh.plugin.json +1 -1
- package/lib/client/index.js +135 -0
- package/lib/client.js +203 -0
- package/lib/client.js.map +1 -0
- package/lib/config.js +2 -2
- package/lib/parse/unified.js +6 -2
- package/lib/types/client/index.d.ts +47 -0
- package/lib/types/config.d.ts +8 -6
- package/package.json +26 -4
package/lib/types/config.d.ts
CHANGED
|
@@ -21,8 +21,10 @@ export interface Config {
|
|
|
21
21
|
conflictPolicy?: ConflictPolicy;
|
|
22
22
|
/** Suffix appended on rename avoidance. Defaults to `_1`. */
|
|
23
23
|
renameSuffix?: string;
|
|
24
|
-
/** Accept git/unified diff patches. Defaults to true.
|
|
25
|
-
|
|
24
|
+
/** Accept git/unified diff patches. Defaults to true.
|
|
25
|
+
* 0.1.7 `.volatile()`: the loader hands `apply` a live `Volatile` ref for this
|
|
26
|
+
* field — always read it through `readVolatileBoolean`, never cache the ref. */
|
|
27
|
+
allowUnifiedDiff?: boolean | Volatile<boolean>;
|
|
26
28
|
/** Accept Codex `apply_patch` syntax. Defaults to false.
|
|
27
29
|
* 0.1.7 `.volatile()`: the loader hands `apply` a live `Volatile` ref for this
|
|
28
30
|
* field — always read it through `readVolatileBoolean`, never cache the ref. */
|
|
@@ -51,9 +53,9 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
|
51
53
|
toolName: z<string, string, "defined">;
|
|
52
54
|
conflictPolicy: z<"rename" | "skip" | "fail", "rename" | "skip" | "fail", "defined">;
|
|
53
55
|
renameSuffix: z<string, string, "defined">;
|
|
54
|
-
allowUnifiedDiff: z<boolean, boolean, "defined">;
|
|
56
|
+
allowUnifiedDiff: z<boolean, boolean, "volatile-defined">;
|
|
55
57
|
allowCodexPatch: z<boolean, boolean, "volatile-defined">;
|
|
56
|
-
deleteBackend: z<"
|
|
58
|
+
deleteBackend: z<"none" | "shell", "none" | "shell", "defined">;
|
|
57
59
|
shellDialect: z<"auto" | "posix" | "pwsh", "auto" | "posix" | "pwsh", "defined">;
|
|
58
60
|
deleteCommand: z<string, string, "plain">;
|
|
59
61
|
moveCommand: z<string, string, "plain">;
|
|
@@ -66,9 +68,9 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
|
66
68
|
toolName: z<string, string, "defined">;
|
|
67
69
|
conflictPolicy: z<"rename" | "skip" | "fail", "rename" | "skip" | "fail", "defined">;
|
|
68
70
|
renameSuffix: z<string, string, "defined">;
|
|
69
|
-
allowUnifiedDiff: z<boolean, boolean, "defined">;
|
|
71
|
+
allowUnifiedDiff: z<boolean, boolean, "volatile-defined">;
|
|
70
72
|
allowCodexPatch: z<boolean, boolean, "volatile-defined">;
|
|
71
|
-
deleteBackend: z<"
|
|
73
|
+
deleteBackend: z<"none" | "shell", "none" | "shell", "defined">;
|
|
72
74
|
shellDialect: z<"auto" | "posix" | "pwsh", "auto" | "posix" | "pwsh", "defined">;
|
|
73
75
|
deleteCommand: z<string, string, "plain">;
|
|
74
76
|
moveCommand: z<string, string, "plain">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-patch-edit-plus",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Patch-style file editing for DeepSeek Harness: one apply_patch tool accepting git/unified diff (default) and Codex apply_patch syntax (opt-in), with all-or-nothing application, read-before-write intent dance, sandbox-aware delete/move, targeting the DSH 0.2.0 line (declarative volatile settings).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts",
|
|
15
15
|
"default": "./lib/index.js"
|
|
16
16
|
},
|
|
17
|
+
"./client": {
|
|
18
|
+
"types": "./lib/types/client/index.d.ts",
|
|
19
|
+
"default": "./lib/client.js"
|
|
20
|
+
},
|
|
17
21
|
"./package.json": "./package.json"
|
|
18
22
|
},
|
|
19
23
|
"files": [
|
|
@@ -31,10 +35,16 @@
|
|
|
31
35
|
"dsh": {
|
|
32
36
|
"bundle": {
|
|
33
37
|
"patch": "./cordis.patch.yml"
|
|
38
|
+
},
|
|
39
|
+
"client": {
|
|
40
|
+
"platform": "web",
|
|
41
|
+
"inject": [
|
|
42
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
43
|
+
]
|
|
34
44
|
}
|
|
35
45
|
},
|
|
36
46
|
"scripts": {
|
|
37
|
-
"build": "tsc -p tsconfig.build.json",
|
|
47
|
+
"build": "tsc -p tsconfig.build.json && tsdown",
|
|
38
48
|
"prepublishOnly": "npm run build",
|
|
39
49
|
"typecheck": "tsc -p tsconfig.json",
|
|
40
50
|
"typecheck:0.2.0": "node scripts/typecheck-0.2.0.mjs",
|
|
@@ -62,15 +72,24 @@
|
|
|
62
72
|
],
|
|
63
73
|
"peerDependencies": {
|
|
64
74
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
75
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.0-rc.1 <0.2.1-0",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.1 <0.2.1-0",
|
|
65
77
|
"@deepseek-ai/dsh-fs": ">=0.2.0-rc.1 <0.2.1-0",
|
|
66
78
|
"@deepseek-ai/dsh-sandbox": ">=0.2.0-rc.1 <0.2.1-0",
|
|
67
79
|
"@deepseek-ai/dsh-shell": ">=0.2.0-rc.1 <0.2.1-0",
|
|
68
|
-
"@deepseek-ai/dsh-tools": ">=0.2.0-rc.1 <0.2.1-0"
|
|
80
|
+
"@deepseek-ai/dsh-tools": ">=0.2.0-rc.1 <0.2.1-0",
|
|
81
|
+
"react": "^18.2.0"
|
|
69
82
|
},
|
|
70
83
|
"peerDependenciesMeta": {
|
|
71
84
|
"@deepseek-ai/cordis": {
|
|
72
85
|
"optional": true
|
|
73
86
|
},
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-settings": {
|
|
88
|
+
"optional": true
|
|
89
|
+
},
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-slots": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
74
93
|
"@deepseek-ai/dsh-fs": {
|
|
75
94
|
"optional": true
|
|
76
95
|
},
|
|
@@ -95,13 +114,16 @@
|
|
|
95
114
|
"@deepseek-ai/dsh-tools": "0.2.0-rc.1",
|
|
96
115
|
"@eslint/js": "^9.0.0",
|
|
97
116
|
"@types/node": "^22.0.0",
|
|
117
|
+
"@types/react": "~18.3.1",
|
|
98
118
|
"eslint": "^9.0.0",
|
|
119
|
+
"react": "^18.2.0",
|
|
120
|
+
"tsdown": "^0.22.2",
|
|
99
121
|
"typescript": "^5.6.0",
|
|
100
122
|
"typescript-eslint": "^8.0.0",
|
|
101
123
|
"vitest": "^3.0.0",
|
|
102
124
|
"@deepseek-ai/schemastery": "^3.18.4"
|
|
103
125
|
},
|
|
104
126
|
"publishConfig": {
|
|
105
|
-
"tag": "dsh-0.
|
|
127
|
+
"tag": "dsh-0.2.0"
|
|
106
128
|
}
|
|
107
129
|
}
|