autopilot-ai 1.27.1 → 1.28.0
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 +9 -3
- package/dist/index.js +358 -211
- package/dist/index.js.map +1 -1
- package/dist/sdk/index.js +953 -813
- package/dist/sdk/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -468,20 +468,26 @@ on the resource.
|
|
|
468
468
|
|
|
469
469
|
## Hooks
|
|
470
470
|
|
|
471
|
-
autopilot can fire shell commands at
|
|
472
|
-
|
|
471
|
+
autopilot can fire shell commands at these points, configured
|
|
472
|
+
per-project (`.kimiflare/settings.json`) or globally
|
|
473
473
|
(`~/.config/kimiflare/settings.json`):
|
|
474
474
|
|
|
475
475
|
| Event | Fires when | Veto? |
|
|
476
476
|
|--------------------|-------------------------------------------------|-------|
|
|
477
|
+
| `SessionStart` | A session's first turn (`source`: startup/resume) | No |
|
|
477
478
|
| `PreToolUse` | A tool call is about to run | Yes |
|
|
478
479
|
| `PostToolUse` | A tool call just finished | No |
|
|
479
480
|
| `UserPromptSubmit` | You hit Enter on a prompt | Yes |
|
|
480
481
|
| `Stop` | A turn ended cleanly | No |
|
|
481
482
|
| `PreCompact` | Auto-compaction is about to run | No |
|
|
483
|
+
| `SessionEnd` | autopilot exits, or `/clear` (`reason`) | No |
|
|
482
484
|
|
|
483
485
|
Hooks receive the event payload as JSON on stdin **and** as
|
|
484
|
-
`KIMIFLARE_HOOK_*` env vars (for shell-one-liner ergonomics).
|
|
486
|
+
`KIMIFLARE_HOOK_*` env vars (for shell-one-liner ergonomics). Payloads
|
|
487
|
+
also carry Claude Code's field names (`hook_event_name`, `tool_name`,
|
|
488
|
+
`tool_input`, `tool_response`, `tool_call_id`, `transcript_path`), so
|
|
489
|
+
Claude Code hook scripts — and tools built for them, like
|
|
490
|
+
[Agent Beacon](docs/beacon.md) — work unchanged.
|
|
485
491
|
Non-zero exit on a veto event cancels the underlying action and
|
|
486
492
|
surfaces the hook's stdout as the rejection reason.
|
|
487
493
|
|