@a5c-ai/babysitter-codex 0.1.10 → 0.1.11-staging.b5af6c56

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.
@@ -4,7 +4,7 @@ set -euo pipefail
4
4
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
5
  PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
6
6
  STATE_DIR="${BABYSITTER_STATE_DIR:-${PWD}/.a5c}"
7
- LOG_DIR="${BABYSITTER_LOG_DIR:-$PLUGIN_ROOT/.a5c/logs}"
7
+ LOG_DIR="${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}"
8
8
  LOG_FILE="$LOG_DIR/babysitter-session-start-hook.log"
9
9
 
10
10
  export CODEX_PLUGIN_ROOT="${CODEX_PLUGIN_ROOT:-${PLUGIN_ROOT}}"
@@ -4,7 +4,7 @@ set -euo pipefail
4
4
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
5
  PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
6
6
  STATE_DIR="${BABYSITTER_STATE_DIR:-${PWD}/.a5c}"
7
- LOG_DIR="${BABYSITTER_LOG_DIR:-$PLUGIN_ROOT/.a5c/logs}"
7
+ LOG_DIR="${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}"
8
8
  LOG_FILE="$LOG_DIR/babysitter-stop-hook.log"
9
9
 
10
10
  export CODEX_PLUGIN_ROOT="${CODEX_PLUGIN_ROOT:-${PLUGIN_ROOT}}"
@@ -4,7 +4,7 @@ set -euo pipefail
4
4
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
5
  PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
6
6
  STATE_DIR="${BABYSITTER_STATE_DIR:-${PWD}/.a5c}"
7
- LOG_DIR="${BABYSITTER_LOG_DIR:-$PLUGIN_ROOT/.a5c/logs}"
7
+ LOG_DIR="${BABYSITTER_LOG_DIR:-$HOME/.a5c/logs}"
8
8
 
9
9
  export CODEX_PLUGIN_ROOT="${CODEX_PLUGIN_ROOT:-${PLUGIN_ROOT}}"
10
10
  export BABYSITTER_STATE_DIR="${STATE_DIR}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a5c-ai/babysitter-codex",
3
- "version": "0.1.10",
3
+ "version": "0.1.11-staging.b5af6c56",
4
4
  "description": "Babysitter Codex skill bundle and integration package for OpenAI Codex CLI with SDK-managed process-library bootstrapping, 15 orchestration modes, and BOM-safe SKILL installation",
5
5
  "scripts": {
6
6
  "test": "node test/integration.test.js && node test/packaged-install.test.js",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "homepage": "https://github.com/a5c-ai/babysitter/tree/main/plugins/babysitter-codex#readme",
47
47
  "dependencies": {
48
- "@a5c-ai/babysitter-sdk": "0.0.187"
48
+ "@a5c-ai/babysitter-sdk": "0.0.188-staging.b5af6c56"
49
49
  }
50
50
  }
@@ -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