@a5c-ai/babysitter-cursor 0.1.4 → 0.1.5-staging.6342f2b1

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
@@ -34,20 +34,10 @@ Install through Cursor's marketplace UI using the repo-root
34
34
  2. Open the marketplace entry named **a5c-ai**
35
35
  3. Install the plugin named **babysitter**
36
36
 
37
- ### Via Babysitter plugin manager
38
-
39
- This path installs the Babysitter plugin package named
40
- `babysitter-cursor` from the SDK marketplace, not the Cursor UI plugin
41
- entry:
42
-
43
- ```bash
44
- babysitter plugin:install babysitter-cursor --marketplace-name a5c-ai --global
45
- ```
46
-
47
- ### Workspace installation
37
+ ### Via Babysitter harness install
48
38
 
49
39
  ```bash
50
- babysitter plugin:install babysitter-cursor --marketplace-name a5c-ai --project
40
+ babysitter harness:install-plugin cursor
51
41
  ```
52
42
 
53
43
  If the workspace does not already have an active process-library binding, the
@@ -91,10 +81,10 @@ ln -s "$(pwd)/plugins/babysitter-cursor" ~/.cursor/plugins/local/babysitter-curs
91
81
  babysitter-cursor uninstall
92
82
  ```
93
83
 
94
- Or via the plugin manager:
84
+ Or via npm:
95
85
 
96
86
  ```bash
97
- babysitter plugin:uninstall babysitter-cursor --global
87
+ npm uninstall -g @a5c-ai/babysitter-cursor
98
88
  ```
99
89
 
100
90
  ## Plugin Structure (Directory Layout)
@@ -294,7 +284,7 @@ behavior within sessions.
294
284
  | `CURSOR_API_KEY` | -- | API key for headless CLI mode (required) |
295
285
  | `CURSOR_PLUGIN_ROOT` | Plugin directory | Plugin root directory |
296
286
  | `BABYSITTER_STATE_DIR` | `<cwd>/.a5c` | State directory for session data |
297
- | `BABYSITTER_LOG_DIR` | `<plugin>/.a5c/logs` | Log output directory |
287
+ | `BABYSITTER_LOG_DIR` | `~/.a5c/logs` | Log output directory override; default is the user-global Babysitter log root |
298
288
 
299
289
  ### SDK Version Pinning
300
290
 
@@ -362,9 +352,7 @@ The repo-root Cursor marketplace manifest lives at `/.cursor-plugin/marketplace.
362
352
  ### User Commands
363
353
 
364
354
  ```bash
365
- babysitter plugin:add-marketplace --marketplace-url https://github.com/a5c-ai/babysitter --marketplace-path plugins/a5c/marketplace/marketplace.json --global
366
- babysitter plugin:list-plugins --marketplace-name a5c-ai --global
367
- babysitter plugin:install babysitter-cursor --marketplace-name a5c-ai --global
355
+ babysitter harness:install-plugin cursor
368
356
  ```
369
357
 
370
358
  ## Troubleshooting
@@ -378,7 +366,7 @@ session health:
378
366
  $doctor
379
367
  ```
380
368
 
381
- Also check log output in `<plugin-root>/.a5c/logs/`:
369
+ Also check log output in `${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}/`:
382
370
 
383
371
  - `babysitter-session-start-hook.log`
384
372
  - `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",
3
+ "version": "0.1.5-staging.6342f2b1",
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"
47
+ "@a5c-ai/babysitter-sdk": "0.0.188-staging.6342f2b1"
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"
2
+ "sdkVersion": "0.0.188-staging.6342f2b1"
3
3
  }