@a5c-ai/babysitter-codex 5.0.1-staging.71bb37a4 → 5.0.1-staging.75c8fb21
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/.codex-plugin/plugin.json +14 -12
- package/README.md +1 -1
- package/bin/cli.js +8 -16
- package/bin/install-shared.js +333 -50
- package/bin/install.js +12 -29
- package/bin/uninstall.js +11 -27
- package/hooks/babysitter-proxied-session-start.sh +7 -162
- package/hooks/babysitter-proxied-stop.sh +3 -0
- package/hooks/babysitter-proxied-user-prompt-submit.sh +2 -88
- package/hooks.json +5 -5
- package/package.json +10 -13
- package/scripts/sync-command-skills.js +1 -0
- package/scripts/team-install.js +14 -78
- package/skills/cleanup/SKILL.md +21 -0
- package/skills/contrib/SKILL.md +34 -0
- package/skills/doctor/SKILL.md +5 -5
- package/skills/help/SKILL.md +3 -2
- package/skills/observe/SKILL.md +1 -1
- package/skills/plugins/SKILL.md +257 -0
- package/skills/project-install/SKILL.md +3 -3
- package/skills/resume/SKILL.md +1 -1
- package/skills/retrospect/SKILL.md +48 -48
- package/skills/user-install/SKILL.md +3 -3
- package/hooks/babysitter-proxied-stop-hook.sh +0 -103
- package/hooks/babysitter-session-start.sh +0 -45
- package/hooks/babysitter-stop-hook.sh +0 -45
- package/hooks/proxied-hooks.json +0 -38
- package/hooks/user-prompt-submit.sh +0 -34
- package/skills/issue/SKILL.md +0 -16
- package/skills/model/SKILL.md +0 -15
- package/skills/team-install/SKILL.md +0 -15
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
|
|
4
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
-
PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
6
|
-
GLOBAL_ROOT="${BABYSITTER_GLOBAL_STATE_DIR:-$HOME/.a5c}"
|
|
7
|
-
STATE_DIR="${BABYSITTER_STATE_DIR:-${GLOBAL_ROOT}/state}"
|
|
8
|
-
LOG_DIR="${BABYSITTER_LOG_DIR:-${GLOBAL_ROOT}/logs}"
|
|
9
|
-
|
|
10
|
-
export CODEX_PLUGIN_ROOT="${CODEX_PLUGIN_ROOT:-${PLUGIN_ROOT}}"
|
|
11
|
-
export BABYSITTER_STATE_DIR="${STATE_DIR}"
|
|
12
|
-
|
|
13
|
-
mkdir -p "$LOG_DIR" 2>/dev/null
|
|
14
|
-
|
|
15
|
-
INPUT_FILE=$(mktemp 2>/dev/null || echo "/tmp/codex-user-prompt-submit-hook-$$.json")
|
|
16
|
-
cat > "$INPUT_FILE"
|
|
17
|
-
|
|
18
|
-
babysitter log --type hook --label "hook:user-prompt-submit" --message "Hook invoked" --source shell-hook 2>/dev/null || true
|
|
19
|
-
|
|
20
|
-
RESULT=$(babysitter hook:run \
|
|
21
|
-
--hook-type user-prompt-submit \
|
|
22
|
-
--harness codex \
|
|
23
|
-
--plugin-root "${CODEX_PLUGIN_ROOT}" \
|
|
24
|
-
--state-dir "${BABYSITTER_STATE_DIR}" \
|
|
25
|
-
< "$INPUT_FILE" 2>"$LOG_DIR/babysitter-user-prompt-submit-hook-stderr.log")
|
|
26
|
-
EXIT_CODE=$?
|
|
27
|
-
|
|
28
|
-
babysitter log --type hook --label "hook:user-prompt-submit" --message "CLI exit code=$EXIT_CODE" --source shell-hook 2>/dev/null || true
|
|
29
|
-
|
|
30
|
-
rm -f "$INPUT_FILE" 2>/dev/null
|
|
31
|
-
if [ -n "$RESULT" ]; then
|
|
32
|
-
printf '%s\n' "$RESULT"
|
|
33
|
-
fi
|
|
34
|
-
exit $EXIT_CODE
|
package/skills/issue/SKILL.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: issue
|
|
3
|
-
description: Run an issue-centric Babysitter workflow.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# issue
|
|
7
|
-
|
|
8
|
-
Load and use the installed `babysit` skill.
|
|
9
|
-
|
|
10
|
-
Resolve the request in `issue` mode:
|
|
11
|
-
|
|
12
|
-
- treat everything after `$issue` as the issue selector and any extra issue-mode
|
|
13
|
-
instructions
|
|
14
|
-
- focus on the issue-driven orchestration flow
|
|
15
|
-
- do not create a separate command surface here; this skill only forwards into
|
|
16
|
-
`babysit`
|
package/skills/model/SKILL.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: model
|
|
3
|
-
description: Inspect or change Babysitter model-routing policy by phase.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# model
|
|
7
|
-
|
|
8
|
-
Load and use the installed `babysit` skill.
|
|
9
|
-
|
|
10
|
-
Resolve the request in `model` mode:
|
|
11
|
-
|
|
12
|
-
- treat everything after `$model` as the model-routing request
|
|
13
|
-
- focus on showing, clearing, or setting model-routing policy by phase
|
|
14
|
-
- do not create a separate command surface here; this skill only forwards into
|
|
15
|
-
`babysit`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: team-install
|
|
3
|
-
description: Install the team-pinned Babysitter Codex workspace setup.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# team-install
|
|
7
|
-
|
|
8
|
-
Load and use the installed `babysit` skill.
|
|
9
|
-
|
|
10
|
-
Resolve the request in `team-install` mode:
|
|
11
|
-
|
|
12
|
-
- treat everything after `$team-install` as team-install arguments or intent
|
|
13
|
-
- focus on shared workspace setup and team-pinned configuration
|
|
14
|
-
- do not create a separate command surface here; this skill only forwards into
|
|
15
|
-
`babysit`
|