mirror of
https://github.com/max-sixty/worktrunk.git
synced 2026-09-14 20:00:38 +08:00
cfd6f099bc
Codex now exposes `SessionEnd`, but Worktrunk’s Codex plugin only returned the activity marker to idle at turn end. This adds a main-session exit hook that clears the marker, using Codex’s three-second maximum hook timeout so cleanup has the best chance to complete without delaying shutdown. The CLI help, plugin-layout guidance, user documentation, generated mirrors, metadata test, and help snapshot now describe and verify the complete Codex lifecycle. Tested with `cargo run -- hook pre-merge --yes` (4,564 tests passed; 1 skipped). > _This was written by Claude Code on behalf of max_.
68 lines
2.0 KiB
JSON
68 lines
2.0 KiB
JSON
{
|
|
"name": "worktrunk",
|
|
"description": "Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows. This plugin provides configuration guidance (LLM commit messages, project hooks, worktree paths) for Codex sessions.",
|
|
"author": {
|
|
"name": "Worktrunk",
|
|
"url": "https://github.com/max-sixty/worktrunk"
|
|
},
|
|
"homepage": "https://worktrunk.dev",
|
|
"repository": "https://github.com/max-sixty/worktrunk",
|
|
"license": "MIT OR Apache-2.0",
|
|
"keywords": ["git", "worktree", "codex", "agent"],
|
|
"hooks": {
|
|
"hooks": {
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash \"$PLUGIN_ROOT/hooks/wt.sh\" config state marker set 🤖 || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PermissionRequest": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash \"$PLUGIN_ROOT/hooks/wt.sh\" config state marker set 💬 || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash \"$PLUGIN_ROOT/hooks/wt.sh\" config state marker set 💬 || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SessionEnd": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash \"$PLUGIN_ROOT/hooks/wt.sh\" config state marker clear || true",
|
|
"timeout": 3
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"interface": {
|
|
"displayName": "Worktrunk",
|
|
"shortDescription": "Git worktree workflows for parallel Codex sessions.",
|
|
"longDescription": "Use Worktrunk from Codex to manage linked worktrees, set up LLM commit workflows, and configure project hooks.",
|
|
"developerName": "Worktrunk",
|
|
"category": "Productivity",
|
|
"capabilities": ["Interactive", "Write"],
|
|
"websiteURL": "https://worktrunk.dev"
|
|
}
|
|
}
|