tutuca 0.13.0 → 0.13.1
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/package.json +1 -1
- package/skill/tutuca/core.md +4 -2
- package/skill/tutuca/testing.md +1 -1
package/package.json
CHANGED
package/skill/tutuca/core.md
CHANGED
|
@@ -808,9 +808,11 @@ return nothing (or return `draft`) to commit. Return any other value to swap
|
|
|
808
808
|
the addressed component for that value. Mutating the draft and returning a
|
|
809
809
|
replacement in the same handler is an error. An unchanged recipe preserves
|
|
810
810
|
the current identity. Routes,
|
|
811
|
-
`ctx.reply` / `ctx.fail` / `ctx.forward` / `ctx.stop`, the
|
|
812
|
-
outcomes, `ctx.at`, the `$unknown` fallback, and intent-handler
|
|
811
|
+
`ctx.reply` / `ctx.fail` / `ctx.forward` / `ctx.stop` / `ctx.sendReply`, the
|
|
812
|
+
three outcomes, `ctx.at`, the `$unknown` fallback, and intent-handler
|
|
813
813
|
registration are in [messages-and-intents.md](./messages-and-intents.md);
|
|
814
|
+
`ctx.lookupType` (and the routes it shares with `ctx.intent`) is in
|
|
815
|
+
[advanced.md](./advanced.md);
|
|
814
816
|
worked snippets in
|
|
815
817
|
[patterns/coordinate-components.md](./patterns/coordinate-components.md).
|
|
816
818
|
|
package/skill/tutuca/testing.md
CHANGED
|
@@ -223,7 +223,7 @@ the view actually wires these handlers correctly, use
|
|
|
223
223
|
|
|
224
224
|
## Designing handlers so tests stay simple
|
|
225
225
|
|
|
226
|
-
Tutuca templates resolve handler
|
|
226
|
+
Tutuca templates resolve each handler arg from its sigil (see
|
|
227
227
|
[core.md](./core.md) *Event Handling*). When you author a handler,
|
|
228
228
|
**pick the most specific args you need; don't take broad event
|
|
229
229
|
reads**. With narrow args, the test passes a literal; with `e.target`
|