@supa-magic/spm 0.2.0 → 0.2.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/dist/bin/spm.js +7 -2
- package/package.json +1 -1
package/dist/bin/spm.js
CHANGED
|
@@ -404,8 +404,10 @@ const spawnClaude = (instructionsFilePath, stepper, providerDir) => new Promise(
|
|
|
404
404
|
"--allowedTools",
|
|
405
405
|
"Read,Write,Edit,Bash,Glob,Grep"
|
|
406
406
|
];
|
|
407
|
+
const isWindows = process.platform === "win32";
|
|
407
408
|
const child = spawn("claude", args, {
|
|
408
409
|
timeout: TIMEOUT_MS,
|
|
410
|
+
shell: isWindows,
|
|
409
411
|
stdio: ["ignore", "pipe", "pipe"]
|
|
410
412
|
});
|
|
411
413
|
let resultText = "";
|
|
@@ -479,8 +481,11 @@ const spawnClaude = (instructionsFilePath, stepper, providerDir) => new Promise(
|
|
|
479
481
|
if (block.type === "tool_use" && (block.name === "Write" || block.name === "Edit")) {
|
|
480
482
|
const filePath = block.input?.file_path;
|
|
481
483
|
if (typeof filePath === "string") {
|
|
484
|
+
const normalized = filePath.replace(/\\/g, "/");
|
|
485
|
+
const base = providerDir.replace(/\\/g, "/");
|
|
486
|
+
const isProviderFile = normalized.includes(`${base}/`);
|
|
482
487
|
const relative2 = toRelativePath(filePath, providerDir);
|
|
483
|
-
writtenFiles.push(relative2);
|
|
488
|
+
if (isProviderFile) writtenFiles.push(relative2);
|
|
484
489
|
stepFileCount++;
|
|
485
490
|
if (currentStepHeader.startsWith("Integrating")) {
|
|
486
491
|
stepper.item(relative2);
|
|
@@ -896,7 +901,7 @@ const banner = (version2) => [
|
|
|
896
901
|
`${shade}▝▜${light}████▛▘ ${reset$1}${dim}v${version2} ✨ supa-magic${reset$1}`,
|
|
897
902
|
`${shade} ▘${light} ▝`
|
|
898
903
|
].join("\n");
|
|
899
|
-
const version = "0.2.
|
|
904
|
+
const version = "0.2.2";
|
|
900
905
|
const program = new Command();
|
|
901
906
|
const gray = "\x1B[90m";
|
|
902
907
|
const reset = "\x1B[0m";
|