@engini/cli 0.18.0 → 0.20.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.
Files changed (3) hide show
  1. package/README.md +18 -0
  2. package/dist/cli.js +1178 -17
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -37,6 +37,11 @@ engini connect [<app>] # create a connection (interactive / a
37
37
  engini connections list | get # inspect connections
38
38
  engini connections create | delete | check | refresh | objects | select-objects # primitives
39
39
  engini connections sign-in-url | oauth-complete # OAuth2 start / finish primitives
40
+ engini triggers types | types get # the catalog of what can be triggered
41
+ engini triggers list | get | create | enable | disable | delete # trigger instances
42
+ engini triggers events | events get | events replay # the event LOG (real delivery state)
43
+ engini triggers listen # the live event STREAM (local dev only)
44
+ engini triggers destinations set | add | list | show | enable | rm | rotate-secret
40
45
  ```
41
46
 
42
47
  The `mcp` group maintains the MCP endpoints Engini **exposes** (not the
@@ -58,6 +63,19 @@ unchanged; a supplied one replaces the whole set — it never merges), so
58
63
  resulting, plus explicit added/removed lists) rather than just echoing the
59
64
  outgoing request.
60
65
 
66
+ A trigger instance (`ti_…`) is an entity, not a workflow step — created from a
67
+ trigger type against a connection. There are two ways to receive its events, and
68
+ they need opposite code: a **destination** is production delivery (signed via
69
+ `destinations`); `listen` is a live SSE stream for local dev only (unsigned, no
70
+ delivery guarantees). `events` is the historical log with real delivery state;
71
+ `listen`'s `delivery` field is always the literal `"pending"` — the two are
72
+ deliberately never merged under one `--follow` flag. `listen` prints one compact
73
+ JSON line per event (not gated by `--json`, since a multi-line pretty payload
74
+ isn't a parseable stream), and `--forward <url> [--sign-with <secret>]` rehearses
75
+ the production delivery path against a local receiver. `triggers test` isn't
76
+ implemented yet — the server endpoint (`POST /v1/triggers/{id}/test`) doesn't
77
+ exist.
78
+
61
79
  Run `engini <command> --help` for details and examples on any command.
62
80
 
63
81
  `connect <app>` discovers the app's authentication methods, collects credentials