@hasna/events 0.1.11 → 0.1.12
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 +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @hasna/events
|
|
2
2
|
|
|
3
|
-
Shared event envelopes, subscription config, webhook delivery, and command
|
|
3
|
+
Shared event envelopes, subscription config, webhook delivery, and command transports for Hasna open-source apps.
|
|
4
4
|
|
|
5
5
|
This package is local-first. By default it stores JSON files under `~/.hasna/events`:
|
|
6
6
|
|
|
@@ -123,6 +123,10 @@ window.
|
|
|
123
123
|
## Command Transport
|
|
124
124
|
|
|
125
125
|
Command channels run a local process and pass the event on stdin and environment variables.
|
|
126
|
+
For production task-created automation, route to tested package commands such as
|
|
127
|
+
`loops events handle todos-task` rather than long-lived local scripts. Scripts
|
|
128
|
+
like `scripts/handle-event.ts` are useful prototypes; repeated behavior should
|
|
129
|
+
move into the owning `open-*` package with tests and bounded evidence.
|
|
126
130
|
|
|
127
131
|
```ts
|
|
128
132
|
await events.addChannel({
|