@henryqw/pi-subagent 29.1.1 → 29.1.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/ephemeral.js +2 -1
- package/package.json +1 -1
package/dist/ephemeral.js
CHANGED
|
@@ -221,7 +221,8 @@ export function createEphemeralSubagentExecutor(options) {
|
|
|
221
221
|
}
|
|
222
222
|
function piInvocation() {
|
|
223
223
|
const currentScript = process.argv[1];
|
|
224
|
-
const isBunVirtualScript = currentScript
|
|
224
|
+
const isBunVirtualScript = currentScript !== undefined &&
|
|
225
|
+
(currentScript.startsWith("/$bunfs/root/") || /^[A-Za-z]:[\\/]~BUN[\\/]root[\\/]/.test(currentScript));
|
|
225
226
|
if (currentScript && !isBunVirtualScript && existsSync(currentScript)) {
|
|
226
227
|
return { command: process.execPath, args: [currentScript] };
|
|
227
228
|
}
|