@srobroek/pi-worktrunk-merge-policy 0.8.0 → 1.0.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/CHANGELOG.md +13 -0
- package/extensions/worktrunk.js +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## worktrunk [1.0.0](https://github.com/srobroek/harness-plugins/compare/worktrunk--v0.8.0...worktrunk--v1.0.0) (2026-12-04)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
* **beads:** @srobroek/pi-safety no longer ships child-gates or
|
|
6
|
+
child-gates-plan.js. Install @srobroek/pi-child-gates for them.
|
|
7
|
+
|
|
8
|
+
* chore: update bun.lock for the child-gates workspace
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **beads:** escaped quotes and cd prefix in gates; child-gates as its own package ([21cb2eb](https://github.com/srobroek/harness-plugins/commit/21cb2eb1917d4473e5c250155962e6b9a7441c13))
|
|
13
|
+
|
|
1
14
|
## worktrunk [0.8.0](https://github.com/srobroek/harness-plugins/compare/worktrunk--v0.7.4...worktrunk--v0.8.0) (2026-12-02)
|
|
2
15
|
|
|
3
16
|
### Features
|
package/extensions/worktrunk.js
CHANGED
|
@@ -51,6 +51,8 @@ var MCP_EXCLUDED_AGENTS = new Set([
|
|
|
51
51
|
// lib/src/shell-tokenizer.ts
|
|
52
52
|
var SEPARATORS = new Set([";", "&", "|", "(", ")", `
|
|
53
53
|
`]);
|
|
54
|
+
var DOUBLE_QUOTE_ESCAPES = new Set(["$", "`", '"', "\\", `
|
|
55
|
+
`]);
|
|
54
56
|
function token(value, startsQuoted = false, sawQuote = false) {
|
|
55
57
|
return { value, startsQuoted, sawQuote };
|
|
56
58
|
}
|
|
@@ -80,6 +82,17 @@ function tokenizeShell(command, options = {}) {
|
|
|
80
82
|
quote = null;
|
|
81
83
|
continue;
|
|
82
84
|
}
|
|
85
|
+
if (quote === '"' && ch === "\\" && DOUBLE_QUOTE_ESCAPES.has(command[i + 1])) {
|
|
86
|
+
const next = command[++i];
|
|
87
|
+
if (next !== `
|
|
88
|
+
`) {
|
|
89
|
+
if (options.preserveBackslashes)
|
|
90
|
+
current += ch;
|
|
91
|
+
current += next;
|
|
92
|
+
}
|
|
93
|
+
started = true;
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
83
96
|
current += ch;
|
|
84
97
|
started = true;
|
|
85
98
|
continue;
|
|
@@ -166,6 +179,8 @@ function shellQuoteBalanced(command) {
|
|
|
166
179
|
if (quote !== null) {
|
|
167
180
|
if (ch === quote)
|
|
168
181
|
quote = null;
|
|
182
|
+
else if (quote === '"' && ch === "\\" && DOUBLE_QUOTE_ESCAPES.has(command[i + 1]))
|
|
183
|
+
i++;
|
|
169
184
|
continue;
|
|
170
185
|
}
|
|
171
186
|
if (ch === '"' || ch === "'")
|
package/package.json
CHANGED