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.
@@ -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 " & quoted form of runnerPath & " ; exec zsh"
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 two signals: 1) package.json next to this script is gone, or
10
- // 2) greptile-fix is no longer in PATH (handles npm global uninstall).
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 || cliGone) {
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 || ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greptile",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "Bridge for Greptile code review 'Fix in Claude Code' and 'Fix in Codex' links",
5
5
  "bin": {
6
6
  "greptile-fix": "bin/greptile-fix.js"