@femtomc/mu-server 26.2.78 → 26.2.79
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 +41 -6
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ const server = createServerFromRuntime(runtime, {
|
|
|
29
29
|
Bun.serve(server);
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
Use `mu store paths --pretty` to resolve `<store>` for the active repo/workspace.
|
|
33
|
+
|
|
32
34
|
## API Endpoints
|
|
33
35
|
|
|
34
36
|
### Health Check
|
|
@@ -76,8 +78,8 @@ Bun.serve(server);
|
|
|
76
78
|
|
|
77
79
|
### Config + Control Plane Admin
|
|
78
80
|
|
|
79
|
-
- `GET /api/control-plane/config` - Read redacted
|
|
80
|
-
- `POST /api/control-plane/config` - Apply a partial patch to
|
|
81
|
+
- `GET /api/control-plane/config` - Read redacted `<store>/config.json` plus presence booleans
|
|
82
|
+
- `POST /api/control-plane/config` - Apply a partial patch to `<store>/config.json`
|
|
81
83
|
- Body:
|
|
82
84
|
```json
|
|
83
85
|
{
|
|
@@ -95,7 +97,7 @@ Bun.serve(server);
|
|
|
95
97
|
}
|
|
96
98
|
```
|
|
97
99
|
- `POST /api/control-plane/reload` - Trigger generation-scoped control-plane hot reload
|
|
98
|
-
- Re-reads current config from
|
|
100
|
+
- Re-reads current config from `<store>/config.json` and executes warmup/cutover/drain/rollback flow
|
|
99
101
|
- Coalesces concurrent requests onto a single in-flight attempt
|
|
100
102
|
- Body (optional):
|
|
101
103
|
```json
|
|
@@ -143,6 +145,39 @@ Bun.serve(server);
|
|
|
143
145
|
- `GET /api/control-plane/events`
|
|
144
146
|
- `GET /api/control-plane/events/tail`
|
|
145
147
|
|
|
148
|
+
## Messaging adapter setup (workspace config)
|
|
149
|
+
|
|
150
|
+
1) Resolve workspace paths and inspect current readiness:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
mu store paths --pretty
|
|
154
|
+
mu control status --pretty
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
2) Edit `<store>/config.json` and set adapter secrets:
|
|
158
|
+
|
|
159
|
+
- Slack: `control_plane.adapters.slack.signing_secret`
|
|
160
|
+
- Discord: `control_plane.adapters.discord.signing_secret`
|
|
161
|
+
- Telegram: `control_plane.adapters.telegram.webhook_secret`, `bot_token`, `bot_username`
|
|
162
|
+
- Neovim: `control_plane.adapters.neovim.shared_secret`
|
|
163
|
+
|
|
164
|
+
3) Reload live control-plane runtime:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
mu control reload
|
|
168
|
+
# or POST /api/control-plane/reload
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
4) Link identities for channel actors (examples):
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
mu control link --channel slack --actor-id U123 --tenant-id T123
|
|
175
|
+
mu control link --channel discord --actor-id <user-id> --tenant-id <guild-id>
|
|
176
|
+
mu control link --channel telegram --actor-id <chat-id> --tenant-id telegram-bot
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
For Neovim, use `:Mu link` in `mu.nvim` after configuring `shared_secret`.
|
|
180
|
+
|
|
146
181
|
## Running the Server
|
|
147
182
|
|
|
148
183
|
### With terminal operator session (recommended)
|
|
@@ -155,7 +190,7 @@ mu serve # API + terminal operator session
|
|
|
155
190
|
mu serve --port 8080 # Custom API/operator port
|
|
156
191
|
```
|
|
157
192
|
|
|
158
|
-
Type `/exit
|
|
193
|
+
Type `/exit`, Ctrl+D, or Ctrl+C to leave the operator session. The server keeps running; use `mu stop` when you want to shut it down.
|
|
159
194
|
|
|
160
195
|
### Standalone Server
|
|
161
196
|
|
|
@@ -163,7 +198,7 @@ Type `/exit` (or press Ctrl+C) to stop both the operator session and server.
|
|
|
163
198
|
# Install globally
|
|
164
199
|
bun install -g @femtomc/mu-server
|
|
165
200
|
|
|
166
|
-
# Run server (
|
|
201
|
+
# Run server (derives workspace store from current repo root)
|
|
167
202
|
mu-server
|
|
168
203
|
|
|
169
204
|
# Or set custom port
|
|
@@ -201,4 +236,4 @@ The server uses:
|
|
|
201
236
|
- Control-plane adapter/webhook transport + session coordination routes
|
|
202
237
|
- Generation-supervised control-plane hot reload lifecycle (see `docs/adr-0001-control-plane-hot-reload.md`)
|
|
203
238
|
|
|
204
|
-
Control-plane/coordination data is persisted
|
|
239
|
+
Control-plane/coordination data is persisted under `<store>/` (for example `<store>/events.jsonl` and `<store>/control-plane/*`). Use `mu store paths` to resolve `<store>` for your repo.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@femtomc/mu-server",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.79",
|
|
4
4
|
"description": "HTTP API server for mu control-plane transport/session plus run/activity scheduling coordination.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mu",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"start": "bun run dist/cli.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@femtomc/mu-agent": "26.2.
|
|
34
|
-
"@femtomc/mu-control-plane": "26.2.
|
|
35
|
-
"@femtomc/mu-core": "26.2.
|
|
33
|
+
"@femtomc/mu-agent": "26.2.79",
|
|
34
|
+
"@femtomc/mu-control-plane": "26.2.79",
|
|
35
|
+
"@femtomc/mu-core": "26.2.79"
|
|
36
36
|
}
|
|
37
37
|
}
|