@supa-magic/spm 0.2.1 → 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 +5 -2
- package/package.json +1 -1
package/dist/bin/spm.js
CHANGED
|
@@ -481,8 +481,11 @@ const spawnClaude = (instructionsFilePath, stepper, providerDir) => new Promise(
|
|
|
481
481
|
if (block.type === "tool_use" && (block.name === "Write" || block.name === "Edit")) {
|
|
482
482
|
const filePath = block.input?.file_path;
|
|
483
483
|
if (typeof filePath === "string") {
|
|
484
|
+
const normalized = filePath.replace(/\\/g, "/");
|
|
485
|
+
const base = providerDir.replace(/\\/g, "/");
|
|
486
|
+
const isProviderFile = normalized.includes(`${base}/`);
|
|
484
487
|
const relative2 = toRelativePath(filePath, providerDir);
|
|
485
|
-
writtenFiles.push(relative2);
|
|
488
|
+
if (isProviderFile) writtenFiles.push(relative2);
|
|
486
489
|
stepFileCount++;
|
|
487
490
|
if (currentStepHeader.startsWith("Integrating")) {
|
|
488
491
|
stepper.item(relative2);
|
|
@@ -898,7 +901,7 @@ const banner = (version2) => [
|
|
|
898
901
|
`${shade}▝▜${light}████▛▘ ${reset$1}${dim}v${version2} ✨ supa-magic${reset$1}`,
|
|
899
902
|
`${shade} ▘${light} ▝`
|
|
900
903
|
].join("\n");
|
|
901
|
-
const version = "0.2.
|
|
904
|
+
const version = "0.2.2";
|
|
902
905
|
const program = new Command();
|
|
903
906
|
const gray = "\x1B[90m";
|
|
904
907
|
const reset = "\x1B[0m";
|