@guuey/hooks 0.29.0 → 0.30.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 +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,6 +46,13 @@ Prebuilt hooks (`use: 'email-reporter'`) and dev-defined ones share this spec.
|
|
|
46
46
|
- An agent definition's optional `output` is a JSON Schema for the run's
|
|
47
47
|
structured output (the runtime hands it to the model's structured-output
|
|
48
48
|
mode); a `required` tool the model skipped is called with that output.
|
|
49
|
+
The run's `output` is read from the agent's last answer text, with or
|
|
50
|
+
without a schema: the text itself when it is a JSON object, else the last
|
|
51
|
+
fenced JSON block in it, else the last `{…}` object inside its prose. When
|
|
52
|
+
the text holds no object, `output` is `{ text }`, and a definition that
|
|
53
|
+
declares an `output` schema fails the run. Interim narration (text the
|
|
54
|
+
model marked as commentary, such as an OpenAI `commentary` message) is not
|
|
55
|
+
the answer and never becomes the output.
|
|
49
56
|
- `PREBUILT_DEFINITIONS` / `prebuiltBinding(name, event)` — the prebuilt
|
|
50
57
|
catalog, ONE copy for the runtime and the dispatcher, keyed per event.
|
|
51
58
|
`email-reporter`: on `session.ended` an agent run with `tools: []` writes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guuey/hooks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "The guuey hook spec — lifecycle events a hosted agent's platform fires (session.ended, handoff.requested), the JSON envelope in / result out, the two handler kinds (agent | tool), and the hooks block of guuey.json. Types + zod schemas + the per-event class table; no runtime of its own.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|