@a5c-ai/babysitter-cursor 0.1.4-staging.7545f899 → 0.1.4-staging.eb2fe8ce

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/README.md CHANGED
@@ -294,7 +294,7 @@ behavior within sessions.
294
294
  | `CURSOR_API_KEY` | -- | API key for headless CLI mode (required) |
295
295
  | `CURSOR_PLUGIN_ROOT` | Plugin directory | Plugin root directory |
296
296
  | `BABYSITTER_STATE_DIR` | `<cwd>/.a5c` | State directory for session data |
297
- | `BABYSITTER_LOG_DIR` | `<plugin>/.a5c/logs` | Log output directory |
297
+ | `BABYSITTER_LOG_DIR` | `~/.a5c/logs` | Log output directory override; default is the user-global Babysitter log root |
298
298
 
299
299
  ### SDK Version Pinning
300
300
 
@@ -378,7 +378,7 @@ session health:
378
378
  $doctor
379
379
  ```
380
380
 
381
- Also check log output in `<plugin-root>/.a5c/logs/`:
381
+ Also check log output in `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/`:
382
382
 
383
383
  - `babysitter-session-start-hook.log`
384
384
  - `babysitter-stop-hook.log`
@@ -177,13 +177,13 @@ Mark as PASS if no issues. Mark as WARN if runaway loops or stale sessions detec
177
177
  **Goal:** Analyze babysitter log files for errors, warnings, and stop hook decisions.
178
178
 
179
179
  Read the last 50 lines of each of these log files (if they exist):
180
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/hooks.log`
181
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook.log`
182
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook-stderr.log`
183
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-session-start-hook.log`
184
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-session-start-hook-stderr.log`
185
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter.log`
186
- - `$HOME/.a5c/logs/` and relevant logs and run/session specific logs there
180
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/hooks.log`
181
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook.log`
182
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook-stderr.log`
183
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-session-start-hook.log`
184
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-session-start-hook-stderr.log`
185
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter.log`
186
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/` and relevant run/session specific logs there
187
187
 
188
188
 
189
189
  For each log file:
@@ -285,7 +285,7 @@ The hooks delegate to the `babysitter` CLI. Check if it is available:
285
285
  Check whether the stop hook has actually been invoked during this run's lifetime:
286
286
 
287
287
  **From log files:**
288
- - Read `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook.log` (if it exists).
288
+ - Read `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook.log` (if it exists).
289
289
  - Count the number of "Hook script invoked" lines. This is the total invocation count.
290
290
  - Count the number of "CLI exit code=" lines and extract exit codes.
291
291
  - If the log file does not exist or has zero invocations, the stop hook has NOT been running.
@@ -297,7 +297,7 @@ Check whether the stop hook has actually been invoked during this run's lifetime
297
297
  - If no STOP_HOOK_INVOKED events exist in the journal, note that the stop hook has not recorded any decisions for this run.
298
298
 
299
299
  **From stderr:**
300
- - Read `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook-stderr.log`.
300
+ - Read `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook-stderr.log`.
301
301
  - If it contains error output, display it and diagnose:
302
302
  - "command not found" or exit code 127 → CLI not installed (see 10c)
303
303
  - "MODULE_NOT_FOUND" or "Cannot find module" → SDK package corrupted or not built
@@ -18,7 +18,7 @@ $MarkerFile = Join-Path $PluginRoot ".babysitter-install-attempted"
18
18
  $env:CURSOR_PLUGIN_ROOT = $PluginRoot
19
19
  $env:BABYSITTER_STATE_DIR = $StateDir
20
20
 
21
- $LogDir = if ($env:BABYSITTER_LOG_DIR) { $env:BABYSITTER_LOG_DIR } else { Join-Path $PluginRoot ".a5c\logs" }
21
+ $LogDir = if ($env:BABYSITTER_LOG_DIR) { $env:BABYSITTER_LOG_DIR } else { Join-Path $HOME ".a5c\logs" }
22
22
  $LogFile = Join-Path $LogDir "babysitter-session-start-hook.log"
23
23
  New-Item -ItemType Directory -Path $LogDir -Force -ErrorAction SilentlyContinue | Out-Null
24
24
 
@@ -15,7 +15,7 @@ set -euo pipefail
15
15
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
16
16
  PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
17
17
  STATE_DIR="${BABYSITTER_STATE_DIR:-${PWD}/.a5c}"
18
- LOG_DIR="${BABYSITTER_LOG_DIR:-$PLUGIN_ROOT/.a5c/logs}"
18
+ LOG_DIR="${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}"
19
19
  LOG_FILE="$LOG_DIR/babysitter-session-start-hook.log"
20
20
 
21
21
  export CURSOR_PLUGIN_ROOT="${CURSOR_PLUGIN_ROOT:-${PLUGIN_ROOT}}"
@@ -15,7 +15,7 @@ $StateDir = if ($env:BABYSITTER_STATE_DIR) { $env:BABYSITTER_STATE_DIR } else {
15
15
  $env:CURSOR_PLUGIN_ROOT = $PluginRoot
16
16
  $env:BABYSITTER_STATE_DIR = $StateDir
17
17
 
18
- $LogDir = if ($env:BABYSITTER_LOG_DIR) { $env:BABYSITTER_LOG_DIR } else { Join-Path $PluginRoot ".a5c\logs" }
18
+ $LogDir = if ($env:BABYSITTER_LOG_DIR) { $env:BABYSITTER_LOG_DIR } else { Join-Path $HOME ".a5c\logs" }
19
19
  $LogFile = Join-Path $LogDir "babysitter-stop-hook.log"
20
20
  New-Item -ItemType Directory -Path $LogDir -Force -ErrorAction SilentlyContinue | Out-Null
21
21
 
@@ -13,7 +13,7 @@ set -euo pipefail
13
13
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
14
14
  PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
15
15
  STATE_DIR="${BABYSITTER_STATE_DIR:-${PWD}/.a5c}"
16
- LOG_DIR="${BABYSITTER_LOG_DIR:-$PLUGIN_ROOT/.a5c/logs}"
16
+ LOG_DIR="${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}"
17
17
  LOG_FILE="$LOG_DIR/babysitter-stop-hook.log"
18
18
 
19
19
  export CURSOR_PLUGIN_ROOT="${CURSOR_PLUGIN_ROOT:-${PLUGIN_ROOT}}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a5c-ai/babysitter-cursor",
3
- "version": "0.1.4-staging.7545f899",
3
+ "version": "0.1.4-staging.eb2fe8ce",
4
4
  "description": "Babysitter orchestration plugin for Cursor IDE with SDK-managed process-library bootstrapping and in-turn iteration model",
5
5
  "scripts": {
6
6
  "test": "node scripts/sync-command-surfaces.js --check",
@@ -44,6 +44,6 @@
44
44
  },
45
45
  "homepage": "https://github.com/a5c-ai/babysitter/tree/main/plugins/babysitter-cursor#readme",
46
46
  "dependencies": {
47
- "@a5c-ai/babysitter-sdk": "0.0.187-staging.7545f899"
47
+ "@a5c-ai/babysitter-sdk": "0.0.187-staging.eb2fe8ce"
48
48
  }
49
49
  }
@@ -178,13 +178,13 @@ Mark as PASS if no issues. Mark as WARN if runaway loops or stale sessions detec
178
178
  **Goal:** Analyze babysitter log files for errors, warnings, and stop hook decisions.
179
179
 
180
180
  Read the last 50 lines of each of these log files (if they exist):
181
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/hooks.log`
182
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook.log`
183
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook-stderr.log`
184
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-session-start-hook.log`
185
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-session-start-hook-stderr.log`
186
- - `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter.log`
187
- - `$HOME/.a5c/logs/` and relevant logs and run/session specific logs there
181
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/hooks.log`
182
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook.log`
183
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook-stderr.log`
184
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-session-start-hook.log`
185
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-session-start-hook-stderr.log`
186
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter.log`
187
+ - `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/` and relevant run/session specific logs there
188
188
 
189
189
 
190
190
  For each log file:
@@ -286,7 +286,7 @@ The hooks delegate to the `babysitter` CLI. Check if it is available:
286
286
  Check whether the stop hook has actually been invoked during this run's lifetime:
287
287
 
288
288
  **From log files:**
289
- - Read `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook.log` (if it exists).
289
+ - Read `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook.log` (if it exists).
290
290
  - Count the number of "Hook script invoked" lines. This is the total invocation count.
291
291
  - Count the number of "CLI exit code=" lines and extract exit codes.
292
292
  - If the log file does not exist or has zero invocations, the stop hook has NOT been running.
@@ -298,7 +298,7 @@ Check whether the stop hook has actually been invoked during this run's lifetime
298
298
  - If no STOP_HOOK_INVOKED events exist in the journal, note that the stop hook has not recorded any decisions for this run.
299
299
 
300
300
  **From stderr:**
301
- - Read `$CLAUDE_PLUGIN_ROOT/.a5c/logs/babysitter-stop-hook-stderr.log`.
301
+ - Read `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/babysitter-stop-hook-stderr.log`.
302
302
  - If it contains error output, display it and diagnose:
303
303
  - "command not found" or exit code 127 → CLI not installed (see 10c)
304
304
  - "MODULE_NOT_FOUND" or "Cannot find module" → SDK package corrupted or not built
package/versions.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "sdkVersion": "0.0.187-staging.7545f899"
2
+ "sdkVersion": "0.0.187-staging.eb2fe8ce"
3
3
  }