opencode-command-hooks 0.1.2 → 0.1.3
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 +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Use simple configs to easily integrate shell command hooks with tool/subagent invocations. With a single line of configuration, you can inject a hook's output directly into context for your agent to read.
|
|
4
4
|
|
|
5
|
-
Example use cases: run tests after a subagent finishes a task, auto-lint after writes, etc. You can also configure the hooks to run only when specified arguments are passed to a given tool.
|
|
5
|
+
Example use cases: run tests after a subagent finishes a task, auto-lint after writes, etc. You can also configure the hooks to run only when specified arguments are passed to a given tool. The plugin will handle sequential execution with failure recovery, output truncation, exit code capture, template interpolation, session context injection, toast notifications, toolArgs filtering, and non-blocking error handling.
|
|
6
6
|
|
|
7
7
|
## Markdown Frontmatter Hooks
|
|
8
8
|
|
|
@@ -436,6 +436,4 @@ export const MyHooks: Plugin = async ({ $, client }) => {
|
|
|
436
436
|
},
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
-
```
|
|
440
|
-
|
|
441
|
-
The plugin handles: sequential execution with failure recovery, output truncation, exit code capture, template interpolation, session injection, toast notifications, toolArgs filtering, async tool support, and non-blocking error handling.
|
|
439
|
+
```
|
package/package.json
CHANGED