autopilot-code 0.0.27 → 0.0.28
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 +1 -1
- package/scripts/postinstall.js +3 -1
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -14,7 +14,9 @@ if (process.env.CI || process.env.GITHUB_ACTIONS) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// Skip if running in an autopilot worktree (prevents killing the running service)
|
|
17
|
-
|
|
17
|
+
// INIT_CWD is set by npm to the directory where npm install was run
|
|
18
|
+
const initCwd = process.env.INIT_CWD || process.cwd();
|
|
19
|
+
if (initCwd.includes('/tmp/autopilot-issue-') || process.env.AUTOPILOT_WORKTREE) {
|
|
18
20
|
console.log('Autopilot: skipping auto-install (running in worktree).');
|
|
19
21
|
process.exit(0);
|
|
20
22
|
}
|