@m8t-stack/cli 0.2.35 → 0.2.37
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 +13 -10
- package/dist/cli.js +267 -102
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -121,12 +121,14 @@ Key flags: `--client-id <appId>` (reuse an existing app reg + skip **all** Micro
|
|
|
121
121
|
|
|
122
122
|
## Binding management — `m8t bind`
|
|
123
123
|
|
|
124
|
-
Wire channel bots (Telegram, Slack, Teams) to Foundry workers.
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
Wire channel bots (Telegram, Slack, Teams) to Foundry workers. The binding
|
|
125
|
+
management API + CLI cover all three channels; a channel can only complete
|
|
126
|
+
a bind once its adapter (which delivers inbound messages from that
|
|
127
|
+
channel) is registered at gateway startup — Telegram ships built in, Slack
|
|
128
|
+
and Teams adapters are not registered yet.
|
|
127
129
|
|
|
128
130
|
```bash
|
|
129
|
-
# Create a binding (
|
|
131
|
+
# Create a binding (Telegram's adapter ships built in)
|
|
130
132
|
m8t bind add telegram \
|
|
131
133
|
--worker cmo \
|
|
132
134
|
--bot-token <from-botfather> \
|
|
@@ -152,17 +154,18 @@ m8t bind cleanup --all-orphaned
|
|
|
152
154
|
|
|
153
155
|
> `--worker` is the **case-sensitive, lowercase** Foundry agent name as deployed (e.g. `cmo`). A wrong name isn't rejected at bind time — it surfaces later as an orphaned binding on the first message.
|
|
154
156
|
|
|
155
|
-
###
|
|
157
|
+
### Binding a channel with no registered adapter
|
|
156
158
|
|
|
157
|
-
`m8t bind add
|
|
159
|
+
`m8t bind add slack ...` (or `teams`) currently fails with:
|
|
158
160
|
|
|
159
161
|
```text
|
|
160
|
-
error: no adapter for channel '
|
|
161
|
-
|
|
162
|
+
error: no adapter for channel 'slack'. The channel-specific adapter is not
|
|
163
|
+
registered in this build.
|
|
162
164
|
```
|
|
163
165
|
|
|
164
|
-
This is correct
|
|
165
|
-
startup
|
|
166
|
+
This is correct — Slack and Teams adapters aren't registered yet. Once a
|
|
167
|
+
channel's adapter registers at gateway startup, binding creation for that
|
|
168
|
+
channel unlocks.
|
|
166
169
|
|
|
167
170
|
### Cascade-delete idempotency
|
|
168
171
|
|