greptile 2.2.6 → 2.2.7
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/greptile-fix.applescript +1 -1
- package/health-server.js +4 -10
- package/package.json +1 -1
package/greptile-fix.applescript
CHANGED
|
@@ -41,7 +41,7 @@ on open location theURL
|
|
|
41
41
|
-- so we launch bash and source the runner script to keep the shell session alive
|
|
42
42
|
-- after the IDE command (claude/codex/cursor) finishes.
|
|
43
43
|
-- Unset CLAUDECODE so the new session doesn't think it's nested inside an existing one.
|
|
44
|
-
set cleanEnv to "unset CLAUDECODE; source " &
|
|
44
|
+
set cleanEnv to "unset CLAUDECODE; source " & runnerPath & " ; exec zsh"
|
|
45
45
|
if termApp is "Ghostty" then
|
|
46
46
|
do shell script "open -na Ghostty --args -e zsh -li -c '" & cleanEnv & "' &>/dev/null &"
|
|
47
47
|
else if termApp is "kitty" then
|
package/health-server.js
CHANGED
|
@@ -6,22 +6,16 @@ const path = require('path')
|
|
|
6
6
|
const PORT = 4747
|
|
7
7
|
|
|
8
8
|
// Self-destruct: if the package has been uninstalled, clean up and exit.
|
|
9
|
-
// Checks
|
|
10
|
-
//
|
|
9
|
+
// Checks that package.json next to this script still exists.
|
|
10
|
+
// Note: we intentionally don't check `command -v greptile-fix` because
|
|
11
|
+
// launchd runs with a minimal PATH that doesn't include npm global bin.
|
|
11
12
|
const PACKAGE_MARKER = path.join(__dirname, 'package.json')
|
|
12
13
|
const SELF_CHECK_INTERVAL_MS = 30_000
|
|
13
14
|
|
|
14
15
|
function selfCheck() {
|
|
15
16
|
const markerGone = !fs.existsSync(PACKAGE_MARKER)
|
|
16
|
-
let cliGone = false
|
|
17
|
-
try {
|
|
18
|
-
const { execSync } = require('child_process')
|
|
19
|
-
execSync('command -v greptile-fix', { stdio: 'ignore' })
|
|
20
|
-
} catch {
|
|
21
|
-
cliGone = true
|
|
22
|
-
}
|
|
23
17
|
|
|
24
|
-
if (markerGone
|
|
18
|
+
if (markerGone) {
|
|
25
19
|
console.log('Package uninstalled — cleaning up and exiting.')
|
|
26
20
|
const { execSync } = require('child_process')
|
|
27
21
|
const home = process.env.HOME || ''
|