@sparkelf/dsh-patch-officecli-deliverables 0.2.0-rc.20 → 0.2.0-rc.22
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/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"formatVersion": 1,
|
|
5
5
|
"variants": [
|
|
6
6
|
{
|
|
7
|
-
"dsh": ">=0.1.
|
|
7
|
+
"dsh": ">=0.1.7-rc.1",
|
|
8
8
|
"file": "./patches/officecli-deliverables.patch",
|
|
9
9
|
"id": "officecli-deliverables",
|
|
10
10
|
"target": {
|
|
11
|
-
"baseRevision": "
|
|
11
|
+
"baseRevision": "46a7f68b0922371ce7144b668b90e377d8e799f4",
|
|
12
12
|
"kind": "dsh-source",
|
|
13
13
|
"paths": [
|
|
14
14
|
"packages/client/ui-deliverables/src/client/"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
|
|
36
36
|
},
|
|
37
37
|
"type": "module",
|
|
38
|
-
"version": "0.2.0-rc.
|
|
38
|
+
"version": "0.2.0-rc.22"
|
|
39
39
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
diff --git a/packages/client/ui-deliverables/src/client/turn-deliverables.ts b/packages/client/ui-deliverables/src/client/turn-deliverables.ts
|
|
2
|
-
index
|
|
2
|
+
index 7eb765ec2b..806d9e4466 100644
|
|
3
3
|
--- a/packages/client/ui-deliverables/src/client/turn-deliverables.ts
|
|
4
4
|
+++ b/packages/client/ui-deliverables/src/client/turn-deliverables.ts
|
|
5
|
-
@@ -
|
|
5
|
+
@@ -70,11 +70,37 @@ function mutationPath(name: string, argsRaw: string): string | null {
|
|
6
6
|
return validEditArgs(args) ? pathValue(args.file_path) : null
|
|
7
7
|
case 'str_replace_editor':
|
|
8
8
|
return editorMutationPath(args)
|
|
@@ -13,6 +13,7 @@ index 90e3248516..74b08021b5 100644
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
+/** OfficeCLI argv operations that write the original file named by their second item. */
|
|
16
17
|
+const OFFICECLI_MUTATIONS = new Set([
|
|
17
18
|
+ 'create',
|
|
18
19
|
+ 'set',
|
|
@@ -29,7 +30,7 @@ index 90e3248516..74b08021b5 100644
|
|
|
29
30
|
+ 'close',
|
|
30
31
|
+])
|
|
31
32
|
+
|
|
32
|
-
+/**
|
|
33
|
+
+/** Read the original OfficeCLI argv item that names the file a write operation targets. */
|
|
33
34
|
+function officeCliMutationPath(args: Readonly<Record<string, unknown>>): string | null {
|
|
34
35
|
+ if (!Array.isArray(args.command) || !args.command.every(value => typeof value === 'string')) return null
|
|
35
36
|
+ const [operation, file] = args.command
|