mustard-claude 3.1.8 → 3.1.10
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
|
@@ -69,8 +69,8 @@ Before the normal detect-and-confirm flow, scan the newest pipeline state for a
|
|
|
69
69
|
## Context
|
|
70
70
|
- Branch: {from git}
|
|
71
71
|
- Files changed: {run `node .claude/scripts/diff-context.js`}
|
|
72
|
-
- Last agent: {
|
|
73
|
-
- Last action: {
|
|
72
|
+
- Last agent: {Read `.claude/.agent-memory/_index.json` and pick the last entry's `agent_type`. If the file or `.agent-memory/` directory is missing, print literal `(none)` — do NOT probe with `ls`/`grep`, it surfaces noisy exit codes}
|
|
73
|
+
- Last action: {from the same last entry's `summary` field. If missing, print literal `(no prior memory)`}
|
|
74
74
|
- Decisions: {decisions[] from pipeline state, if any}
|
|
75
75
|
|
|
76
76
|
## Next Action
|
|
@@ -72,9 +72,10 @@ function isRtkAvailable() {
|
|
|
72
72
|
*/
|
|
73
73
|
function rtkRewrite(cmd) {
|
|
74
74
|
try {
|
|
75
|
-
// rtk rewrite expects the raw command as
|
|
76
|
-
//
|
|
77
|
-
|
|
75
|
+
// rtk rewrite expects the raw command as a single argv element.
|
|
76
|
+
// Using execFileSync avoids shell re-parsing, which would strip quotes
|
|
77
|
+
// and corrupt regex patterns containing brackets (e.g. grep '[x]').
|
|
78
|
+
const result = execFileSync('rtk', ['rewrite', cmd], {
|
|
78
79
|
encoding: 'utf8',
|
|
79
80
|
stdio: ['pipe', 'pipe', 'ignore'], // ignore stderr
|
|
80
81
|
timeout: 3000,
|