@floomhq/floom 5.0.4 → 5.0.5

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- Floom CLI and MCP Package License
2
-
3
- The Floom CLI and MCP package is licensed under the Floom Source
4
- Available License Version 1.0.
5
-
6
- See ../../LICENSE for the full license text.
1
+ Floom CLI and MCP Package License
2
+
3
+ The Floom CLI and MCP package is licensed under the Floom Source
4
+ Available License Version 1.0.
5
+
6
+ See ../../LICENSE for the full license text.
package/README.md CHANGED
@@ -1,356 +1,356 @@
1
- # Floom CLI + MCP
2
-
3
- Floom lets agents create, update, run, watch, and delete worker automations through an HTTP MCP endpoint backed by the Floom API. The package installs into Claude Code, Cursor, VS Code, Windsurf, Continue, or any harness that accepts an MCP HTTP or stdio server entry.
4
-
5
- Floom ships as a single npm package that exposes:
6
-
7
- - **`floom` CLI** - `login`, `workspaces`, `workers`, `run`, `runs`, `secrets`, `mcp`, `whoami`, `logout`, plus an `install` shortcut that wires the MCP server into Claude Code / Cursor / Continue. `workeros` remains a compatibility alias for older installs.
8
- - **HTTP MCP endpoint** - `floom mcp install` writes an HTTP transport entry (`url` + `headers`) pointing at `/mcp-tools/serve` on the Floom API. No local subprocess is required.
9
- - **`floom-mcp` stdio server** - legacy stdio path; `workeros-mcp` still works as an alias. Use this for harnesses that do not support HTTP MCP transport.
10
-
11
- The CLI targets local, self-hosted, and hosted deployments:
12
-
13
- | Mode | API base | Auth | Workspaces |
14
- |------|----------|------|------------|
15
- | **Self-hosted** (default) | `http://localhost:8000` or your API URL | `x-floom-secret` when `FLOOM_SECRET` is set | local workspace |
16
- | **Hosted** | your hosted API URL | bearer token or hosted login flow, legacy `x-workeros-workspace` header | multi-workspace |
17
-
18
- ## Self-Hosted Quickstart
19
-
20
- ```bash
21
- npm i -g @floomhq/floom@latest
22
- floom login --api http://localhost:8000
23
- floom workers list
24
- floom run <worker-id> --input key=value
25
- ```
26
-
27
- If your local API runs without `FLOOM_SECRET`, login is not required for basic local development. For a protected self-hosted API, set `FLOOM_SECRET` on the backend and use the matching secret when the CLI prompts.
28
-
29
- If the self-hosted engine has user-header scope enabled (it requires `x-floom-user` alongside the shared secret), pass the identity with the `--user` flag or `WORKEROS_USER` env var:
30
-
31
- ```bash
32
- WORKEROS_API_BASE=http://127.0.0.1:8011 WORKEROS_API_SECRET=<secret> WORKEROS_USER=<user> floom whoami
33
- # or
34
- floom --user <user> whoami
35
- ```
36
-
37
- `WORKEROS_API_BASE` + `WORKEROS_API_SECRET` select self-hosted (OSS) mode and take precedence over any saved hosted credentials file; `mcp install` bakes `x-floom-user` into the generated client config when it is set.
38
-
39
- Credentials live at `~/.config/floom/credentials.json` (mode 0600). Existing `~/.config/workeros/credentials.json` files are still read for compatibility. `floom logout` clears both paths.
40
-
41
- ## MCP install
42
-
43
- ```bash
44
- npx -y @floomhq/floom mcp install
45
- ```
46
-
47
- Auto-detects the first existing config file. To target a specific harness:
48
-
49
- ```bash
50
- floom mcp install --target claude # ~/.claude/settings.json
51
- floom mcp install --target cursor # ~/.cursor/mcp.json
52
- floom mcp install --target vscode # .vscode/mcp.json (workspace-local)
53
- floom mcp install --target windsurf # ~/.codeium/windsurf/mcp_config.json
54
- floom mcp install --target continue # ~/.continue/.continuerc.json
55
- floom mcp install --target generic # prints JSON snippet for manual paste
56
- ```
57
-
58
- ## Switching the active context
59
-
60
- ```bash
61
- floom workspace list # all workspaces your credentials can access, active marked with *
62
- floom workspace switch <name> # by name or id; fails (exit 1) if not authenticated for it
63
- floom mcp list # configured MCP servers (connections of kind "mcp")
64
- floom mcp switch <name> # set the active MCP server by label
65
- floom mcp test [name] # live probe (initialize + tools/list); defaults to the active server
66
- ```
67
-
68
- Switches persist in `~/.config/floom/credentials.json` and apply to every later CLI invocation. `workspaces`/`use` remain as aliases of `workspace`/`switch`. Workspace switching works in both modes: hosted deployments scope by membership, self-hosted deployments scope local workspaces via the legacy `x-workeros-workspace` header (which the CLI sends on every request, and `mcp install` bakes into the client config - re-run `mcp install` after switching to repoint installed MCP clients).
69
-
70
- Re-running the installer updates the existing `floom` entry, and migrates an older `workeros` entry instead of duplicating it.
71
-
72
- ## Supported targets
73
-
74
- | Target | Config file written | Config shape |
75
- |---|---|---|
76
- | `claude` | `~/.claude/settings.json` | `{ mcpServers: { floom: {...} } }` |
77
- | `cursor` | `~/.cursor/mcp.json` | `{ mcpServers: { floom: {...} } }` |
78
- | `vscode` | `.vscode/mcp.json` (workspace) | `{ mcpServers: { floom: {...} } }` |
79
- | `windsurf` | `~/.codeium/windsurf/mcp_config.json` | `{ mcpServers: { floom: {...} } }` |
80
- | `continue` | `~/.continue/.continuerc.json` | `{ mcpServers: [ { name:"floom", ... } ] }` |
81
- | `generic` | (no file) | prints JSON snippet to stdout |
82
-
83
- All targets write **HTTP MCP transport** (`url` + `headers`) - no local subprocess is spawned. The MCP endpoint is hosted on the Floom API server.
84
-
85
- ```json
86
- {
87
- "mcpServers": {
88
- "floom": {
89
- "url": "http://localhost:8000/mcp-tools/serve",
90
- "headers": {
91
- "x-floom-secret": "<WORKEROS_API_SECRET>"
92
- }
93
- }
94
- }
95
- }
96
- ```
97
-
98
- ### HTTP transport (recommended - written by `floom mcp install`)
99
-
100
- Claude Code / Cursor / VS Code / Windsurf (`mcpServers` object shape):
101
-
102
- ```json
103
- {
104
- "mcpServers": {
105
- "floom": {
106
- "url": "http://localhost:8000/mcp-tools/serve",
107
- "headers": {
108
- "x-floom-secret": "<WORKEROS_API_SECRET>"
109
- }
110
- }
111
- }
112
- }
113
- ```
114
-
115
- The published binary stays connected for that handshake when launched as `npx -p @floomhq/floom floom-mcp`.
116
-
117
- ## Manual config
118
-
119
- Claude Code / Cursor / VS Code / Windsurf (`mcpServers` object shape, HTTP MCP):
120
-
121
- ```json
122
- {
123
- "mcpServers": {
124
- "floom": {
125
- "url": "http://localhost:8000/mcp-tools/serve",
126
- "headers": {
127
- "x-floom-secret": "<WORKEROS_API_SECRET>"
128
- }
129
- }
130
- }
131
- }
132
- ```
133
-
134
- Continue (`~/.continue/.continuerc.json`, array shape, HTTP MCP):
135
-
136
- ```json
137
- {
138
- "mcpServers": [
139
- {
140
- "name": "floom",
141
- "url": "http://localhost:8000/mcp-tools/serve",
142
- "headers": {
143
- "x-floom-secret": "<WORKEROS_API_SECRET>"
144
- }
145
- }
146
- ]
147
- }
148
- ```
149
-
150
- Replace `http://localhost:8000` with your deployed API base URL when connecting to a remote self-hosted instance.
151
-
152
- ### Stdio transport (fallback - for harnesses that do not support HTTP MCP)
153
-
154
- ```json
155
- {
156
- "mcpServers": {
157
- "floom": {
158
- "command": "npx",
159
- "args": ["-p", "@floomhq/floom", "floom-mcp"],
160
- "env": {
161
- "WORKEROS_API_SECRET": "<WORKEROS_API_SECRET>",
162
- "WORKEROS_API_BASE": "http://localhost:8000"
163
- }
164
- }
165
- }
166
- }
167
- ```
168
-
169
- Or launch directly if the package is already installed: `node /path/to/@floomhq/floom/dist/server.js`.
170
-
171
- ## Worker bundle CLI flow
172
-
173
- Use this path when a fresh agent has a local `workers/<id>/` folder and needs a repeatable create/edit/deploy loop:
174
-
175
- ```bash
176
- floom login
177
- floom workers validate ./workers/<id>
178
- floom workers push ./workers/<id>
179
- floom run <id> --inputs-file docs/workers/inputs/<id>.json
180
- floom workers info <id>
181
- ```
182
-
183
- `workers validate` is offline. It checks that `worker.yml` parses, the entry file exists, the runtime is declared, and E2B Composio workers do not use the local `composio execute` CLI. For structured connection declarations it also verifies that referenced tool slugs are covered by `allowed_tools`.
184
-
185
- `workers push` uses `POST /workers` for new workers and `PUT /workers/{id}` for existing workers. If an older API returns 404/405 for source updates, upgrade the API before editing workers in place.
186
-
187
- Clean up stale or superseded workers without leaving the CLI:
188
-
189
- ```bash
190
- floom workers disable <id> # keep the worker but stop it running on triggers
191
- floom workers enable <id> # re-enable a disabled worker
192
- floom workers delete <id> # permanently remove it (and its runs/artifacts); prompts unless --yes
193
- ```
194
-
195
- `workers delete` asks for confirmation; pass `-y/--yes` to skip the prompt (also required in non-interactive shells). `workers disable` is the reversible, soft option (`enabled=false`) for hiding a worker from triggers without deleting it.
196
-
197
- ## Tools
198
-
199
- > **For full worked examples per tool, end-to-end recipes (deploy a worker from prompt, port a Claude skill, schedule + webhook + composio triggers), and the agent draft contract, see [docs/AGENT-COOKBOOK.md](../../docs/AGENT-COOKBOOK.md).**
200
-
201
- ### Workers
202
- | Tool | Description |
203
- | --- | --- |
204
- | `workers.list` | List available Floom workers. |
205
- | `workers.get` | Read one worker, including config and recent run metadata. |
206
- | `workers.create` | Create a script-mode worker from `worker_yml` and `run_py`. |
207
- | `workers.update` | Patch trigger, cron, default inputs, capabilities, or rotate webhook secret. |
208
- | `workers.delete` | Delete a worker and dependent run data. |
209
- | `workers.run` | Start a manual worker run with input values. |
210
- | `workers.logs` | Fetch cross-run log history, filterable by level and time. |
211
- | `workers.stats` | 7-day run statistics for a specific worker. |
212
- | `workers.timeseries` | Daily run counts and success/failure trend over N days. |
213
- | `workers.sample_input` | Get example input values for a worker's fields. |
214
- | `workers.archive` | Archive a worker (reversible). |
215
- | `workers.restore` | Restore an archived worker to active status. |
216
- | `workers.reload` | Reload all workers from disk on a self-hosted deployment. |
217
- | `workers.versions` | List saved versions of a worker. |
218
- | `workers.rollback` | Restore a worker to a previous version. |
219
- | `workers.alerts.list` | List configured alerts for a worker. |
220
- | `workers.alerts.create` | Add a failure/approval/success alert via webhook or email. |
221
- | `workers.alerts.delete` | Remove a worker alert. |
222
-
223
- ### Runs
224
- | Tool | Description |
225
- | --- | --- |
226
- | `runs.list` | List runs, optionally filtered by worker id or status. |
227
- | `runs.get` | Read one run with logs, outputs, artifacts, and approval state. |
228
- | `runs.watch` | Stream SSE run events until a terminal state. |
229
- | `runs.cancel` | Cancel an in-progress run. |
230
- | `runs.replay` | Replay a completed or failed run with the same inputs. |
231
-
232
- ### Approvals
233
- | Tool | Description |
234
- | --- | --- |
235
- | `approvals.list` | List pending approval requests across all workers. |
236
- | `approvals.approve` | Approve a pending run so it continues executing. |
237
- | `approvals.reject` | Reject a pending run, stopping it. |
238
-
239
- ### Secrets
240
- | Tool | Description |
241
- | --- | --- |
242
- | `secrets.list` | List secret names and status. |
243
- | `secrets.set` | Create or update a secret value. |
244
- | `secrets.delete` | Delete a secret. |
245
- | `secrets.test` | Verify a secret exists without revealing its value. |
246
-
247
- ### Connections
248
- | Tool | Description |
249
- | --- | --- |
250
- | `connections.list` | List configured app connections. |
251
- | `connections.add_mcp` | Add an MCP server connection. |
252
- | `connections.delete` | Remove a connection. |
253
- | `connections.status` | Check connection health and auth status. |
254
- | `connections.test` | Run a live connectivity check on a connection. |
255
-
256
- ### Contexts (Brain Packs)
257
- | Tool | Description |
258
- | --- | --- |
259
- | `contexts.list` | List context folders. |
260
- | `contexts.create` | Create a new brain pack context. |
261
- | `contexts.delete` | Delete a brain pack and all its files. |
262
- | `contexts.read` | Read a file from a context. |
263
- | `contexts.write` | Create or update a file in a context. |
264
- | `contexts.upload` | Upload a binary file to a context. |
265
- | `contexts.delete_file` | Delete a specific file from a context. |
266
- | `contexts.versions` | List saved versions of a brain pack. |
267
- | `contexts.rollback` | Restore a brain pack to a previous version. |
268
-
269
- ### Triggers & Integrations
270
- | Tool | Description |
271
- | --- | --- |
272
- | `triggers.list` | List integration triggers, globally or per worker/app. |
273
- | `integrations.catalog` | Browse all available integrations. |
274
-
275
- ### Workspace
276
- | Tool | Description |
277
- | --- | --- |
278
- | `workspace.chat` | Send a message to the workspace agent and get a reply. |
279
- | `workspace.instructions.get` | Read current workspace agent system prompt. |
280
- | `workspace.instructions.set` | Update workspace agent system prompt. |
281
- | `workspace.versions` | List version history of workspace instructions. |
282
- | `workspace.rollback` | Restore workspace instructions to a previous version. |
283
-
284
- ### Conversations
285
- | Tool | Description |
286
- | --- | --- |
287
- | `conversations.list` | List past workspace agent conversations. |
288
- | `conversations.get` | Retrieve a full conversation by ID. |
289
-
290
- ### System
291
- | Tool | Description |
292
- | --- | --- |
293
- | `system.overview` | Full workspace dashboard - health, runs, pending approvals, alerts. |
294
- | `system.stats` | 7-day aggregate run statistics across the whole workspace. |
295
- | `system.info` | Platform version and configuration flags. |
296
- | `system.alerts` | Active system-wide alerts. |
297
-
298
- ## Quick example - write + deploy + verify a worker in one MCP session
299
-
300
- ```js
301
- // 1. Create
302
- await workers.create({
303
- worker_yml: `
304
- schema_version: "0.3"
305
- name: text-summarizer
306
- title: Text Summarizer
307
- description: Summarizes any text in 3 bullets using GPT-4.1.
308
- entrypoint: run.py
309
- exec:
310
- command: python run.py
311
- runtime: python311
312
- runner: e2b
313
- entry: run.py
314
- inputs:
315
- - { name: text, kind: scalar, type: textarea, required: true, label: Text }
316
- outputs:
317
- - { name: summary, kind: file, media_type: text/markdown, path: out/summary.md, required: true, label: Summary }
318
- secrets: [OPENAI_API_KEY]
319
- capabilities:
320
- secrets: [OPENAI_API_KEY]
321
- network: { egress: true }
322
- trigger: { type: manual }
323
- `,
324
- run_py: `
325
- def run(inputs, context):
326
- client = context.openai()
327
- r = client.chat.completions.create(
328
- model="gpt-4.1-mini",
329
- messages=[
330
- {"role": "system", "content": "Summarize in 3 bullets."},
331
- {"role": "user", "content": inputs["text"]},
332
- ],
333
- )
334
- summary = r.choices[0].message.content
335
- context.write_output("summary", summary)
336
- return {"summary": summary}
337
- `,
338
- });
339
-
340
- // 2. Run
341
- const { run_id } = await workers.run({
342
- id: "text-summarizer",
343
- inputs: { text: "Lorem ipsum dolor sit amet..." },
344
- });
345
-
346
- // 3. Watch until terminal
347
- const watched = await runs.watch({ id: run_id });
348
- console.log(watched.status);
349
-
350
- // 4. Verify
351
- const { run } = await runs.get({ id: run_id });
352
- console.log(run.status); // "succeeded"
353
- console.log(run.output?.summary);
354
- ```
355
-
356
- See [docs/AGENT-COOKBOOK.md section 1](../../docs/AGENT-COOKBOOK.md) for the full annotated walkthrough plus six more recipes (agent mode, Gmail trigger, cron schedule, webhook, approval gate, claude-skill port).
1
+ # Floom CLI + MCP
2
+
3
+ Floom lets agents create, update, run, watch, and delete worker automations through an HTTP MCP endpoint backed by the Floom API. The package installs into Claude Code, Cursor, VS Code, Windsurf, Continue, or any harness that accepts an MCP HTTP or stdio server entry.
4
+
5
+ Floom ships as a single npm package that exposes:
6
+
7
+ - **`floom` CLI** - `login`, `workspaces`, `workers`, `run`, `runs`, `secrets`, `mcp`, `whoami`, `logout`, plus an `install` shortcut that wires the MCP server into Claude Code / Cursor / Continue. `workeros` remains a compatibility alias for older installs.
8
+ - **HTTP MCP endpoint** - `floom mcp install` writes an HTTP transport entry (`url` + `headers`) pointing at `/mcp-tools/serve` on the Floom API. No local subprocess is required.
9
+ - **`floom-mcp` stdio server** - legacy stdio path; `workeros-mcp` still works as an alias. Use this for harnesses that do not support HTTP MCP transport.
10
+
11
+ The CLI targets local, self-hosted, and hosted deployments:
12
+
13
+ | Mode | API base | Auth | Workspaces |
14
+ |------|----------|------|------------|
15
+ | **Self-hosted** (default) | `http://localhost:8000` or your API URL | `x-floom-secret` when `FLOOM_SECRET` is set | local workspace |
16
+ | **Hosted** | your hosted API URL | bearer token or hosted login flow, legacy `x-workeros-workspace` header | multi-workspace |
17
+
18
+ ## Self-Hosted Quickstart
19
+
20
+ ```bash
21
+ npm i -g @floomhq/floom@latest
22
+ floom login --api http://localhost:8000
23
+ floom workers list
24
+ floom run <worker-id> --input key=value
25
+ ```
26
+
27
+ If your local API runs without `FLOOM_SECRET`, login is not required for basic local development. For a protected self-hosted API, set `FLOOM_SECRET` on the backend and use the matching secret when the CLI prompts.
28
+
29
+ If the self-hosted engine has user-header scope enabled (it requires `x-floom-user` alongside the shared secret), pass the identity with the `--user` flag or `WORKEROS_USER` env var:
30
+
31
+ ```bash
32
+ WORKEROS_API_BASE=http://127.0.0.1:8011 WORKEROS_API_SECRET=<secret> WORKEROS_USER=<user> floom whoami
33
+ # or
34
+ floom --user <user> whoami
35
+ ```
36
+
37
+ `WORKEROS_API_BASE` + `WORKEROS_API_SECRET` select self-hosted (OSS) mode and take precedence over any saved hosted credentials file; `mcp install` bakes `x-floom-user` into the generated client config when it is set.
38
+
39
+ Credentials live at `~/.config/floom/credentials.json` (mode 0600). Existing `~/.config/workeros/credentials.json` files are still read for compatibility. `floom logout` clears both paths.
40
+
41
+ ## MCP install
42
+
43
+ ```bash
44
+ npx -y @floomhq/floom mcp install
45
+ ```
46
+
47
+ Auto-detects the first existing config file. To target a specific harness:
48
+
49
+ ```bash
50
+ floom mcp install --target claude # ~/.claude/settings.json
51
+ floom mcp install --target cursor # ~/.cursor/mcp.json
52
+ floom mcp install --target vscode # .vscode/mcp.json (workspace-local)
53
+ floom mcp install --target windsurf # ~/.codeium/windsurf/mcp_config.json
54
+ floom mcp install --target continue # ~/.continue/.continuerc.json
55
+ floom mcp install --target generic # prints JSON snippet for manual paste
56
+ ```
57
+
58
+ ## Switching the active context
59
+
60
+ ```bash
61
+ floom workspace list # all workspaces your credentials can access, active marked with *
62
+ floom workspace switch <name> # by name or id; fails (exit 1) if not authenticated for it
63
+ floom mcp list # configured MCP servers (connections of kind "mcp")
64
+ floom mcp switch <name> # set the active MCP server by label
65
+ floom mcp test [name] # live probe (initialize + tools/list); defaults to the active server
66
+ ```
67
+
68
+ Switches persist in `~/.config/floom/credentials.json` and apply to every later CLI invocation. `workspaces`/`use` remain as aliases of `workspace`/`switch`. Workspace switching works in both modes: hosted deployments scope by membership, self-hosted deployments scope local workspaces via the legacy `x-workeros-workspace` header (which the CLI sends on every request, and `mcp install` bakes into the client config - re-run `mcp install` after switching to repoint installed MCP clients).
69
+
70
+ Re-running the installer updates the existing `floom` entry, and migrates an older `workeros` entry instead of duplicating it.
71
+
72
+ ## Supported targets
73
+
74
+ | Target | Config file written | Config shape |
75
+ |---|---|---|
76
+ | `claude` | `~/.claude/settings.json` | `{ mcpServers: { floom: {...} } }` |
77
+ | `cursor` | `~/.cursor/mcp.json` | `{ mcpServers: { floom: {...} } }` |
78
+ | `vscode` | `.vscode/mcp.json` (workspace) | `{ mcpServers: { floom: {...} } }` |
79
+ | `windsurf` | `~/.codeium/windsurf/mcp_config.json` | `{ mcpServers: { floom: {...} } }` |
80
+ | `continue` | `~/.continue/.continuerc.json` | `{ mcpServers: [ { name:"floom", ... } ] }` |
81
+ | `generic` | (no file) | prints JSON snippet to stdout |
82
+
83
+ All targets write **HTTP MCP transport** (`url` + `headers`) - no local subprocess is spawned. The MCP endpoint is hosted on the Floom API server.
84
+
85
+ ```json
86
+ {
87
+ "mcpServers": {
88
+ "floom": {
89
+ "url": "http://localhost:8000/mcp-tools/serve",
90
+ "headers": {
91
+ "x-floom-secret": "<WORKEROS_API_SECRET>"
92
+ }
93
+ }
94
+ }
95
+ }
96
+ ```
97
+
98
+ ### HTTP transport (recommended - written by `floom mcp install`)
99
+
100
+ Claude Code / Cursor / VS Code / Windsurf (`mcpServers` object shape):
101
+
102
+ ```json
103
+ {
104
+ "mcpServers": {
105
+ "floom": {
106
+ "url": "http://localhost:8000/mcp-tools/serve",
107
+ "headers": {
108
+ "x-floom-secret": "<WORKEROS_API_SECRET>"
109
+ }
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ The published binary stays connected for that handshake when launched as `npx -p @floomhq/floom floom-mcp`.
116
+
117
+ ## Manual config
118
+
119
+ Claude Code / Cursor / VS Code / Windsurf (`mcpServers` object shape, HTTP MCP):
120
+
121
+ ```json
122
+ {
123
+ "mcpServers": {
124
+ "floom": {
125
+ "url": "http://localhost:8000/mcp-tools/serve",
126
+ "headers": {
127
+ "x-floom-secret": "<WORKEROS_API_SECRET>"
128
+ }
129
+ }
130
+ }
131
+ }
132
+ ```
133
+
134
+ Continue (`~/.continue/.continuerc.json`, array shape, HTTP MCP):
135
+
136
+ ```json
137
+ {
138
+ "mcpServers": [
139
+ {
140
+ "name": "floom",
141
+ "url": "http://localhost:8000/mcp-tools/serve",
142
+ "headers": {
143
+ "x-floom-secret": "<WORKEROS_API_SECRET>"
144
+ }
145
+ }
146
+ ]
147
+ }
148
+ ```
149
+
150
+ Replace `http://localhost:8000` with your deployed API base URL when connecting to a remote self-hosted instance.
151
+
152
+ ### Stdio transport (fallback - for harnesses that do not support HTTP MCP)
153
+
154
+ ```json
155
+ {
156
+ "mcpServers": {
157
+ "floom": {
158
+ "command": "npx",
159
+ "args": ["-p", "@floomhq/floom", "floom-mcp"],
160
+ "env": {
161
+ "WORKEROS_API_SECRET": "<WORKEROS_API_SECRET>",
162
+ "WORKEROS_API_BASE": "http://localhost:8000"
163
+ }
164
+ }
165
+ }
166
+ }
167
+ ```
168
+
169
+ Or launch directly if the package is already installed: `node /path/to/@floomhq/floom/dist/server.js`.
170
+
171
+ ## Worker bundle CLI flow
172
+
173
+ Use this path when a fresh agent has a local `workers/<id>/` folder and needs a repeatable create/edit/deploy loop:
174
+
175
+ ```bash
176
+ floom login
177
+ floom workers validate ./workers/<id>
178
+ floom workers push ./workers/<id>
179
+ floom run <id> --inputs-file docs/workers/inputs/<id>.json
180
+ floom workers info <id>
181
+ ```
182
+
183
+ `workers validate` is offline. It checks that `worker.yml` parses, the entry file exists, the runtime is declared, and E2B Composio workers do not use the local `composio execute` CLI. For structured connection declarations it also verifies that referenced tool slugs are covered by `allowed_tools`.
184
+
185
+ `workers push` uses `POST /workers` for new workers and `PUT /workers/{id}` for existing workers. If an older API returns 404/405 for source updates, upgrade the API before editing workers in place.
186
+
187
+ Clean up stale or superseded workers without leaving the CLI:
188
+
189
+ ```bash
190
+ floom workers disable <id> # keep the worker but stop it running on triggers
191
+ floom workers enable <id> # re-enable a disabled worker
192
+ floom workers delete <id> # permanently remove it (and its runs/artifacts); prompts unless --yes
193
+ ```
194
+
195
+ `workers delete` asks for confirmation; pass `-y/--yes` to skip the prompt (also required in non-interactive shells). `workers disable` is the reversible, soft option (`enabled=false`) for hiding a worker from triggers without deleting it.
196
+
197
+ ## Tools
198
+
199
+ > **For full worked examples per tool, end-to-end recipes (deploy a worker from prompt, port a Claude skill, schedule + webhook + composio triggers), and the agent draft contract, see [docs/AGENT-COOKBOOK.md](../../docs/AGENT-COOKBOOK.md).**
200
+
201
+ ### Workers
202
+ | Tool | Description |
203
+ | --- | --- |
204
+ | `workers.list` | List available Floom workers. |
205
+ | `workers.get` | Read one worker, including config and recent run metadata. |
206
+ | `workers.create` | Create a script-mode worker from `worker_yml` and `run_py`. |
207
+ | `workers.update` | Patch trigger, cron, default inputs, capabilities, or rotate webhook secret. |
208
+ | `workers.delete` | Delete a worker and dependent run data. |
209
+ | `workers.run` | Start a manual worker run with input values. |
210
+ | `workers.logs` | Fetch cross-run log history, filterable by level and time. |
211
+ | `workers.stats` | 7-day run statistics for a specific worker. |
212
+ | `workers.timeseries` | Daily run counts and success/failure trend over N days. |
213
+ | `workers.sample_input` | Get example input values for a worker's fields. |
214
+ | `workers.archive` | Archive a worker (reversible). |
215
+ | `workers.restore` | Restore an archived worker to active status. |
216
+ | `workers.reload` | Reload all workers from disk on a self-hosted deployment. |
217
+ | `workers.versions` | List saved versions of a worker. |
218
+ | `workers.rollback` | Restore a worker to a previous version. |
219
+ | `workers.alerts.list` | List configured alerts for a worker. |
220
+ | `workers.alerts.create` | Add a failure/approval/success alert via webhook or email. |
221
+ | `workers.alerts.delete` | Remove a worker alert. |
222
+
223
+ ### Runs
224
+ | Tool | Description |
225
+ | --- | --- |
226
+ | `runs.list` | List runs, optionally filtered by worker id or status. |
227
+ | `runs.get` | Read one run with logs, outputs, artifacts, and approval state. |
228
+ | `runs.watch` | Stream SSE run events until a terminal state. |
229
+ | `runs.cancel` | Cancel an in-progress run. |
230
+ | `runs.replay` | Replay a completed or failed run with the same inputs. |
231
+
232
+ ### Approvals
233
+ | Tool | Description |
234
+ | --- | --- |
235
+ | `approvals.list` | List pending approval requests across all workers. |
236
+ | `approvals.approve` | Approve a pending run so it continues executing. |
237
+ | `approvals.reject` | Reject a pending run, stopping it. |
238
+
239
+ ### Secrets
240
+ | Tool | Description |
241
+ | --- | --- |
242
+ | `secrets.list` | List secret names and status. |
243
+ | `secrets.set` | Create or update a secret value. |
244
+ | `secrets.delete` | Delete a secret. |
245
+ | `secrets.test` | Verify a secret exists without revealing its value. |
246
+
247
+ ### Connections
248
+ | Tool | Description |
249
+ | --- | --- |
250
+ | `connections.list` | List configured app connections. |
251
+ | `connections.add_mcp` | Add an MCP server connection. |
252
+ | `connections.delete` | Remove a connection. |
253
+ | `connections.status` | Check connection health and auth status. |
254
+ | `connections.test` | Run a live connectivity check on a connection. |
255
+
256
+ ### Contexts (Brain Packs)
257
+ | Tool | Description |
258
+ | --- | --- |
259
+ | `contexts.list` | List context folders. |
260
+ | `contexts.create` | Create a new brain pack context. |
261
+ | `contexts.delete` | Delete a brain pack and all its files. |
262
+ | `contexts.read` | Read a file from a context. |
263
+ | `contexts.write` | Create or update a file in a context. |
264
+ | `contexts.upload` | Upload a binary file to a context. |
265
+ | `contexts.delete_file` | Delete a specific file from a context. |
266
+ | `contexts.versions` | List saved versions of a brain pack. |
267
+ | `contexts.rollback` | Restore a brain pack to a previous version. |
268
+
269
+ ### Triggers & Integrations
270
+ | Tool | Description |
271
+ | --- | --- |
272
+ | `triggers.list` | List integration triggers, globally or per worker/app. |
273
+ | `integrations.catalog` | Browse all available integrations. |
274
+
275
+ ### Workspace
276
+ | Tool | Description |
277
+ | --- | --- |
278
+ | `workspace.chat` | Send a message to the workspace agent and get a reply. |
279
+ | `workspace.instructions.get` | Read current workspace agent system prompt. |
280
+ | `workspace.instructions.set` | Update workspace agent system prompt. |
281
+ | `workspace.versions` | List version history of workspace instructions. |
282
+ | `workspace.rollback` | Restore workspace instructions to a previous version. |
283
+
284
+ ### Conversations
285
+ | Tool | Description |
286
+ | --- | --- |
287
+ | `conversations.list` | List past workspace agent conversations. |
288
+ | `conversations.get` | Retrieve a full conversation by ID. |
289
+
290
+ ### System
291
+ | Tool | Description |
292
+ | --- | --- |
293
+ | `system.overview` | Full workspace dashboard - health, runs, pending approvals, alerts. |
294
+ | `system.stats` | 7-day aggregate run statistics across the whole workspace. |
295
+ | `system.info` | Platform version and configuration flags. |
296
+ | `system.alerts` | Active system-wide alerts. |
297
+
298
+ ## Quick example - write + deploy + verify a worker in one MCP session
299
+
300
+ ```js
301
+ // 1. Create
302
+ await workers.create({
303
+ worker_yml: `
304
+ schema_version: "0.3"
305
+ name: text-summarizer
306
+ title: Text Summarizer
307
+ description: Summarizes any text in 3 bullets using GPT-4.1.
308
+ entrypoint: run.py
309
+ exec:
310
+ command: python run.py
311
+ runtime: python311
312
+ runner: e2b
313
+ entry: run.py
314
+ inputs:
315
+ - { name: text, kind: scalar, type: textarea, required: true, label: Text }
316
+ outputs:
317
+ - { name: summary, kind: file, media_type: text/markdown, path: out/summary.md, required: true, label: Summary }
318
+ secrets: [OPENAI_API_KEY]
319
+ capabilities:
320
+ secrets: [OPENAI_API_KEY]
321
+ network: { egress: true }
322
+ trigger: { type: manual }
323
+ `,
324
+ run_py: `
325
+ def run(inputs, context):
326
+ client = context.openai()
327
+ r = client.chat.completions.create(
328
+ model="gpt-4.1-mini",
329
+ messages=[
330
+ {"role": "system", "content": "Summarize in 3 bullets."},
331
+ {"role": "user", "content": inputs["text"]},
332
+ ],
333
+ )
334
+ summary = r.choices[0].message.content
335
+ context.write_output("summary", summary)
336
+ return {"summary": summary}
337
+ `,
338
+ });
339
+
340
+ // 2. Run
341
+ const { run_id } = await workers.run({
342
+ id: "text-summarizer",
343
+ inputs: { text: "Lorem ipsum dolor sit amet..." },
344
+ });
345
+
346
+ // 3. Watch until terminal
347
+ const watched = await runs.watch({ id: run_id });
348
+ console.log(watched.status);
349
+
350
+ // 4. Verify
351
+ const { run } = await runs.get({ id: run_id });
352
+ console.log(run.status); // "succeeded"
353
+ console.log(run.output?.summary);
354
+ ```
355
+
356
+ See [docs/AGENT-COOKBOOK.md section 1](../../docs/AGENT-COOKBOOK.md) for the full annotated walkthrough plus six more recipes (agent mode, Gmail trigger, cron schedule, webhook, approval gate, claude-skill port).
package/bin/floom-mcp CHANGED
@@ -1,9 +1,9 @@
1
- #!/usr/bin/env node
2
- // Explicit Floom stdio MCP binary. The legacy workeros-mcp wrapper remains for
3
- // older configs and npm installs.
4
- import { main } from "../dist/server.js";
5
- main().catch((/** @type {unknown} */ error) => {
6
- const message = error instanceof Error ? error.message : String(error);
7
- console.error(`floom-mcp failed: ${message}`);
8
- process.exit(1);
9
- });
1
+ #!/usr/bin/env node
2
+ // Explicit Floom stdio MCP binary. The legacy workeros-mcp wrapper remains for
3
+ // older configs and npm installs.
4
+ import { main } from "../dist/server.js";
5
+ main().catch((/** @type {unknown} */ error) => {
6
+ const message = error instanceof Error ? error.message : String(error);
7
+ console.error(`floom-mcp failed: ${message}`);
8
+ process.exit(1);
9
+ });
package/bin/workeros-mcp CHANGED
@@ -1,13 +1,13 @@
1
- #!/usr/bin/env node
2
- // #596: previously this script only imported dist/server.js without calling
3
- // main(). server.ts guards its main() call with an import.meta.url === argv[1]
4
- // check — which is FALSE when the binary wrapper is the entry point because
5
- // process.argv[1] is "bin/workeros-mcp", not "dist/server.js". The guard
6
- // evaluated to false, main() was never called, and the process exited
7
- // immediately. The MCP client received "Connection closed" before listTools.
8
- import { main } from "../dist/server.js";
9
- main().catch((/** @type {unknown} */ error) => {
10
- const message = error instanceof Error ? error.message : String(error);
11
- console.error(`workeros-mcp failed: ${message}`);
12
- process.exit(1);
13
- });
1
+ #!/usr/bin/env node
2
+ // #596: previously this script only imported dist/server.js without calling
3
+ // main(). server.ts guards its main() call with an import.meta.url === argv[1]
4
+ // check — which is FALSE when the binary wrapper is the entry point because
5
+ // process.argv[1] is "bin/workeros-mcp", not "dist/server.js". The guard
6
+ // evaluated to false, main() was never called, and the process exited
7
+ // immediately. The MCP client received "Connection closed" before listTools.
8
+ import { main } from "../dist/server.js";
9
+ main().catch((/** @type {unknown} */ error) => {
10
+ const message = error instanceof Error ? error.message : String(error);
11
+ console.error(`workeros-mcp failed: ${message}`);
12
+ process.exit(1);
13
+ });
@@ -1,99 +1,99 @@
1
1
  import { getCommandName } from "../lib/command-name.js";
2
2
  function bashCompletion(name) {
3
- return `# ${name} bash completion
4
- _${name}_completion() {
5
- local cur prev
6
- COMPREPLY=()
7
- cur="\${COMP_WORDS[COMP_CWORD]}"
8
- prev="\${COMP_WORDS[COMP_CWORD-1]}"
9
- local commands="login logout whoami auth run workers workspaces workspace runs secrets connections contexts context mcp completion --help --version"
10
- local auth_sub="list login switch status logout"
11
- local workers_sub="list show"
12
- local workspaces_sub="list create show switch use"
13
- local runs_sub="list show logs download approve reject cancel"
14
- local secrets_sub="list set delete"
15
- local connections_sub="list add import-mcp-config"
16
- local contexts_sub="list create read write upload delete delete-file versions rollback"
17
- local mcp_sub="list switch test add install uninstall"
18
-
19
- if [[ \${COMP_CWORD} -eq 1 ]]; then
20
- COMPREPLY=( $(compgen -W "\${commands}" -- "\${cur}") )
21
- return 0
22
- fi
23
-
24
- case "\${COMP_WORDS[1]}" in
25
- workers) COMPREPLY=( $(compgen -W "\${workers_sub}" -- "\${cur}") ) ;;
26
- auth) COMPREPLY=( $(compgen -W "\${auth_sub}" -- "\${cur}") ) ;;
27
- workspaces|workspace) COMPREPLY=( $(compgen -W "\${workspaces_sub}" -- "\${cur}") ) ;;
28
- runs) COMPREPLY=( $(compgen -W "\${runs_sub}" -- "\${cur}") ) ;;
29
- secrets) COMPREPLY=( $(compgen -W "\${secrets_sub}" -- "\${cur}") ) ;;
30
- connections) COMPREPLY=( $(compgen -W "\${connections_sub}" -- "\${cur}") ) ;;
31
- contexts|context) COMPREPLY=( $(compgen -W "\${contexts_sub}" -- "\${cur}") ) ;;
32
- mcp) COMPREPLY=( $(compgen -W "\${mcp_sub}" -- "\${cur}") ) ;;
33
- esac
34
- }
35
- complete -F _${name}_completion ${name}
3
+ return `# ${name} bash completion
4
+ _${name}_completion() {
5
+ local cur prev
6
+ COMPREPLY=()
7
+ cur="\${COMP_WORDS[COMP_CWORD]}"
8
+ prev="\${COMP_WORDS[COMP_CWORD-1]}"
9
+ local commands="login logout whoami auth run workers workspaces workspace runs secrets connections contexts context mcp completion --help --version"
10
+ local auth_sub="list login switch status logout"
11
+ local workers_sub="list show"
12
+ local workspaces_sub="list create show switch use"
13
+ local runs_sub="list show logs download approve reject cancel"
14
+ local secrets_sub="list set delete"
15
+ local connections_sub="list add import-mcp-config"
16
+ local contexts_sub="list create read write upload delete delete-file versions rollback"
17
+ local mcp_sub="list switch test add install uninstall"
18
+
19
+ if [[ \${COMP_CWORD} -eq 1 ]]; then
20
+ COMPREPLY=( $(compgen -W "\${commands}" -- "\${cur}") )
21
+ return 0
22
+ fi
23
+
24
+ case "\${COMP_WORDS[1]}" in
25
+ workers) COMPREPLY=( $(compgen -W "\${workers_sub}" -- "\${cur}") ) ;;
26
+ auth) COMPREPLY=( $(compgen -W "\${auth_sub}" -- "\${cur}") ) ;;
27
+ workspaces|workspace) COMPREPLY=( $(compgen -W "\${workspaces_sub}" -- "\${cur}") ) ;;
28
+ runs) COMPREPLY=( $(compgen -W "\${runs_sub}" -- "\${cur}") ) ;;
29
+ secrets) COMPREPLY=( $(compgen -W "\${secrets_sub}" -- "\${cur}") ) ;;
30
+ connections) COMPREPLY=( $(compgen -W "\${connections_sub}" -- "\${cur}") ) ;;
31
+ contexts|context) COMPREPLY=( $(compgen -W "\${contexts_sub}" -- "\${cur}") ) ;;
32
+ mcp) COMPREPLY=( $(compgen -W "\${mcp_sub}" -- "\${cur}") ) ;;
33
+ esac
34
+ }
35
+ complete -F _${name}_completion ${name}
36
36
  `;
37
37
  }
38
38
  function zshCompletion(name) {
39
- return `#compdef ${name}
40
- _${name}() {
41
- local -a commands
42
- commands=(
43
- 'login:Login via device code'
44
- 'logout:Clear local credentials'
45
- 'whoami:Show current identity'
46
- 'auth:Manage saved accounts'
47
- 'run:Run a worker'
48
- 'workers:List or show workers'
49
- 'workspaces:Manage workspaces'
50
- 'runs:List or inspect runs'
51
- 'secrets:Manage secrets'
52
- 'connections:Manage app and MCP connections'
53
- 'contexts:Manage brain pack context folders'
54
- 'mcp:Manage MCP servers and client config'
55
- 'completion:Print completion scripts'
56
- )
57
- _describe 'command' commands
58
- }
59
- compdef _${name} ${name}
39
+ return `#compdef ${name}
40
+ _${name}() {
41
+ local -a commands
42
+ commands=(
43
+ 'login:Login via device code'
44
+ 'logout:Clear local credentials'
45
+ 'whoami:Show current identity'
46
+ 'auth:Manage saved accounts'
47
+ 'run:Run a worker'
48
+ 'workers:List or show workers'
49
+ 'workspaces:Manage workspaces'
50
+ 'runs:List or inspect runs'
51
+ 'secrets:Manage secrets'
52
+ 'connections:Manage app and MCP connections'
53
+ 'contexts:Manage brain pack context folders'
54
+ 'mcp:Manage MCP servers and client config'
55
+ 'completion:Print completion scripts'
56
+ )
57
+ _describe 'command' commands
58
+ }
59
+ compdef _${name} ${name}
60
60
  `;
61
61
  }
62
62
  function fishCompletion(name) {
63
- return `complete -c ${name} -f -a "login logout whoami auth run workers workspaces workspace runs secrets connections contexts context mcp completion"
64
- complete -c ${name} -n "__fish_seen_subcommand_from auth" -a "list login switch status logout"
65
- complete -c ${name} -n "__fish_seen_subcommand_from workers" -a "list show"
66
- complete -c ${name} -n "__fish_seen_subcommand_from workspaces workspace" -a "list create show switch use"
67
- complete -c ${name} -n "__fish_seen_subcommand_from runs" -a "list show logs download approve reject cancel"
68
- complete -c ${name} -n "__fish_seen_subcommand_from secrets" -a "list set delete"
69
- complete -c ${name} -n "__fish_seen_subcommand_from connections" -a "list add import-mcp-config"
70
- complete -c ${name} -n "__fish_seen_subcommand_from contexts context" -a "list create read write upload delete delete-file versions rollback"
71
- complete -c ${name} -n "__fish_seen_subcommand_from mcp" -a "list switch test add install uninstall"
63
+ return `complete -c ${name} -f -a "login logout whoami auth run workers workspaces workspace runs secrets connections contexts context mcp completion"
64
+ complete -c ${name} -n "__fish_seen_subcommand_from auth" -a "list login switch status logout"
65
+ complete -c ${name} -n "__fish_seen_subcommand_from workers" -a "list show"
66
+ complete -c ${name} -n "__fish_seen_subcommand_from workspaces workspace" -a "list create show switch use"
67
+ complete -c ${name} -n "__fish_seen_subcommand_from runs" -a "list show logs download approve reject cancel"
68
+ complete -c ${name} -n "__fish_seen_subcommand_from secrets" -a "list set delete"
69
+ complete -c ${name} -n "__fish_seen_subcommand_from connections" -a "list add import-mcp-config"
70
+ complete -c ${name} -n "__fish_seen_subcommand_from contexts context" -a "list create read write upload delete delete-file versions rollback"
71
+ complete -c ${name} -n "__fish_seen_subcommand_from mcp" -a "list switch test add install uninstall"
72
72
  `;
73
73
  }
74
74
  function powershellCompletion(name) {
75
- return `# ${name} PowerShell completion
76
- Register-ArgumentCompleter -Native -CommandName ${name} -ScriptBlock {
77
- param($wordToComplete, $commandAst, $cursorPosition)
78
- $commands = @('login','logout','whoami','auth','run','workers','workspaces','workspace','runs','secrets','connections','contexts','context','mcp','completion')
79
- $subcommands = @{
80
- auth = @('list','login','switch','status','logout')
81
- workers = @('list','show','info','validate','push','delete','rm','disable','enable','run')
82
- workspaces = @('list','create','show','switch','use')
83
- workspace = @('list','create','show','switch','use')
84
- runs = @('list','show','logs','download','approve','reject','cancel')
85
- secrets = @('list','set','delete')
86
- connections = @('list','add','import-mcp-config')
87
- contexts = @('list','create','read','write','upload','delete','delete-file','versions','rollback')
88
- context = @('list','create','read','write','upload','delete','delete-file','versions','rollback')
89
- mcp = @('list','switch','test','add','install','uninstall')
90
- }
91
- $tokens = $commandAst.CommandElements | ForEach-Object { $_.Extent.Text }
92
- $choices = if ($tokens.Count -ge 2 -and $subcommands.ContainsKey($tokens[1])) { $subcommands[$tokens[1]] } else { $commands }
93
- $choices | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
94
- [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
95
- }
96
- }
75
+ return `# ${name} PowerShell completion
76
+ Register-ArgumentCompleter -Native -CommandName ${name} -ScriptBlock {
77
+ param($wordToComplete, $commandAst, $cursorPosition)
78
+ $commands = @('login','logout','whoami','auth','run','workers','workspaces','workspace','runs','secrets','connections','contexts','context','mcp','completion')
79
+ $subcommands = @{
80
+ auth = @('list','login','switch','status','logout')
81
+ workers = @('list','show','info','validate','push','delete','rm','disable','enable','run')
82
+ workspaces = @('list','create','show','switch','use')
83
+ workspace = @('list','create','show','switch','use')
84
+ runs = @('list','show','logs','download','approve','reject','cancel')
85
+ secrets = @('list','set','delete')
86
+ connections = @('list','add','import-mcp-config')
87
+ contexts = @('list','create','read','write','upload','delete','delete-file','versions','rollback')
88
+ context = @('list','create','read','write','upload','delete','delete-file','versions','rollback')
89
+ mcp = @('list','switch','test','add','install','uninstall')
90
+ }
91
+ $tokens = $commandAst.CommandElements | ForEach-Object { $_.Extent.Text }
92
+ $choices = if ($tokens.Count -ge 2 -and $subcommands.ContainsKey($tokens[1])) { $subcommands[$tokens[1]] } else { $commands }
93
+ $choices | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
94
+ [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
95
+ }
96
+ }
97
97
  `;
98
98
  }
99
99
  export function completionScriptFor(shell, name = getCommandName()) {
@@ -55,6 +55,14 @@ function printPrettyRun(run, savedPaths) {
55
55
  const output = effectiveRunOutput(run);
56
56
  log.heading(`Run ${run.id}`);
57
57
  log.kv("Status", run.status);
58
+ const approvalId = run.approval_trail?.id || run.approval_id;
59
+ const approvalLink = run.approval_trail?.link || run.approval_link;
60
+ if (run.status === "pending_approval") {
61
+ if (approvalId)
62
+ log.kv("Approval", approvalId);
63
+ if (approvalLink)
64
+ log.kv("Review/approve at", approvalLink);
65
+ }
58
66
  if (run.error) {
59
67
  log.err(run.error);
60
68
  }
@@ -143,14 +151,18 @@ export async function runWorkerCommand(workerId, options) {
143
151
  if (!runId) {
144
152
  throw new Error("Run creation did not return run_id");
145
153
  }
146
- log.step(`Run started: ${runId}`);
154
+ if (!options.json) {
155
+ log.step(`Run started: ${runId}`);
156
+ }
147
157
  let latest = null;
148
158
  let lastStatus = "";
149
- const terminal = new Set(["completed", "failed", "error", "approved", "rejected"]);
159
+ const terminal = new Set(["completed", "failed", "error", "approved", "rejected", "pending_approval"]);
150
160
  while (true) {
151
161
  latest = (await client.requestJson("GET", `/runs/${encodeURIComponent(runId)}`));
152
162
  if (latest.status !== lastStatus) {
153
- log.step(`Status: ${latest.status}`);
163
+ if (!options.json) {
164
+ log.step(`Status: ${latest.status}`);
165
+ }
154
166
  lastStatus = latest.status;
155
167
  }
156
168
  if (terminal.has(latest.status))
@@ -182,7 +194,10 @@ export async function runWorkerCommand(workerId, options) {
182
194
  else {
183
195
  printPrettyRun(latest, savedPaths);
184
196
  }
185
- const success = latest.status === "completed" || latest.status === "approved" || latest.status === "success";
197
+ const success = latest.status === "completed" ||
198
+ latest.status === "approved" ||
199
+ latest.status === "success" ||
200
+ latest.status === "pending_approval";
186
201
  return success ? 0 : 1;
187
202
  }
188
203
  //# sourceMappingURL=run.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,WAAW,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAiBlD,SAAS,cAAc,CAAC,KAAoB;IAC1C,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACxB,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QACzD,MAAM,MAAM,GAAI,IAA4B,CAAC,MAAM,CAAC;QACpD,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IA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,MAAM,CAAC,MAAM,KAAK,SAAS;QAC3B,MAAM,CAAC,MAAM,KAAK,kBAAkB,CAAC;IACvC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -29,12 +29,19 @@ function normalizeStoredApiBase(mode, value) {
29
29
  function resolveHomeDir() {
30
30
  return process.env.HOME || process.env.USERPROFILE || "";
31
31
  }
32
- export function credentialsPath() {
32
+ function resolveConfigDir() {
33
+ const xdgConfigHome = process.env.XDG_CONFIG_HOME?.trim();
34
+ if (xdgConfigHome) {
35
+ return xdgConfigHome;
36
+ }
33
37
  const home = resolveHomeDir();
34
38
  if (!home) {
35
39
  throw new Error("HOME is required to read CLI credentials");
36
40
  }
37
- return join(home, ".config", "floom", "credentials.json");
41
+ return join(home, ".config");
42
+ }
43
+ export function credentialsPath() {
44
+ return join(resolveConfigDir(), "floom", "credentials.json");
38
45
  }
39
46
  export function credentialsAccountsDir() {
40
47
  return join(dirname(credentialsPath()), "credentials");
@@ -43,11 +50,7 @@ export function activeAccountPath() {
43
50
  return join(dirname(credentialsPath()), "active");
44
51
  }
45
52
  function legacyCredentialsPath() {
46
- const home = resolveHomeDir();
47
- if (!home) {
48
- throw new Error("HOME is required to read CLI credentials");
49
- }
50
- return join(home, ".config", "workeros", "credentials.json");
53
+ return join(resolveConfigDir(), "workeros", "credentials.json");
51
54
  }
52
55
  export async function readCredentials() {
53
56
  const envCloudToken = process.env.WORKEROS_API_TOKEN?.trim();
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/lib/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IA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K,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC;YAAE,SAAS;QACvD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAChC,OAAO,GAAG,IAAI,CAAC;IACjB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,eAAe,EAAE,CAAC,CAAC;IAC5D,IAAI,OAAO,IAAI,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;QAC/C,MAAM,EAAE,CAAC,eAAe,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7C,MAAM,EAAE,CAAC,iBAAiB,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAc;IACvC,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IACvB,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC/D,CAAC"}
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@floomhq/floom",
3
- "version": "5.0.4",
4
- "description": "CLI + MCP server for self-hosted and hosted Floom instances.",
5
- "type": "module",
6
- "bin": {
7
- "floom-mcp": "bin/floom-mcp",
8
- "workeros-mcp": "bin/workeros-mcp",
9
- "workeros": "dist/cli.js",
10
- "floom": "dist/cli.js"
11
- },
12
- "files": [
13
- "bin/",
14
- "dist/",
15
- "LICENSE",
16
- "README.md"
17
- ],
18
- "scripts": {
19
- "build": "tsc -p tsconfig.json",
20
- "test": "npm run build && node --test --test-concurrency=1 test/*.test.js",
21
- "prepack": "npm run build"
22
- },
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "engines": {
27
- "node": ">=20"
28
- },
29
- "dependencies": {
30
- "@modelcontextprotocol/sdk": "^1.29.0",
31
- "chalk": "^5.6.2",
32
- "commander": "^14.0.2",
33
- "open": "^11.0.0",
34
- "yaml": "^2.9.0",
35
- "zod": "^4.4.3"
36
- },
37
- "overrides": {
38
- "hono": "^4.12.25"
39
- },
40
- "devDependencies": {
41
- "@types/node": "^20.19.25",
42
- "tsx": "^4.22.4",
43
- "typescript": "^6.0.3"
44
- },
45
- "license": "SEE LICENSE IN LICENSE"
46
- }
1
+ {
2
+ "name": "@floomhq/floom",
3
+ "version": "5.0.5",
4
+ "description": "CLI + MCP server for self-hosted and hosted Floom instances.",
5
+ "type": "module",
6
+ "bin": {
7
+ "floom-mcp": "bin/floom-mcp",
8
+ "workeros-mcp": "bin/workeros-mcp",
9
+ "workeros": "dist/cli.js",
10
+ "floom": "dist/cli.js"
11
+ },
12
+ "files": [
13
+ "bin/",
14
+ "dist/",
15
+ "LICENSE",
16
+ "README.md"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsc -p tsconfig.json",
20
+ "test": "npm run build && node --test --test-concurrency=1 test/*.test.js",
21
+ "prepack": "npm run build"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "engines": {
27
+ "node": ">=20"
28
+ },
29
+ "dependencies": {
30
+ "@modelcontextprotocol/sdk": "^1.29.0",
31
+ "chalk": "^5.6.2",
32
+ "commander": "^14.0.2",
33
+ "open": "^11.0.0",
34
+ "yaml": "^2.9.0",
35
+ "zod": "^4.4.3"
36
+ },
37
+ "overrides": {
38
+ "hono": "^4.12.25"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "^20.19.25",
42
+ "tsx": "^4.22.4",
43
+ "typescript": "^6.0.3"
44
+ },
45
+ "license": "SEE LICENSE IN LICENSE"
46
+ }