pi-gsd 2.0.16 → 2.0.17
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/pi-gsd-hooks.js +7 -1
- package/dist/pi-gsd-tools.js +50 -50
- package/package.json +1 -1
package/dist/pi-gsd-hooks.js
CHANGED
|
@@ -783,7 +783,13 @@ function runLoop(content, filePath, config, projectRoot, pkgRoot, rawArguments,
|
|
|
783
783
|
if (inDeadZone(tag.start, extractCodeFenceRegions(current))) continue;
|
|
784
784
|
const incPath = tag.node.attrs["path"];
|
|
785
785
|
if (!incPath) continue;
|
|
786
|
-
const
|
|
786
|
+
const subPath = incPath.replace(/^\.pi\/gsd\//, "");
|
|
787
|
+
const candidates = [
|
|
788
|
+
import_node_path3.default.resolve(projectRoot, incPath),
|
|
789
|
+
import_node_path3.default.resolve(pkgRoot, ".gsd", "harnesses", "pi", "get-shit-done", subPath)
|
|
790
|
+
];
|
|
791
|
+
const abs = candidates.find((c) => import_node_fs2.default.existsSync(c));
|
|
792
|
+
if (!abs) throw new Error(`Include not found: ${incPath} (tried project + package harness)`);
|
|
787
793
|
const check = checkTrustedPath(abs, config, projectRoot, pkgRoot);
|
|
788
794
|
if (!check.ok) throw new Error(`Include rejected: ${check.reason}`);
|
|
789
795
|
const included = import_node_fs2.default.readFileSync(abs, "utf8");
|