@oomol-lab/open-flow 0.1.0-beta.60 → 0.1.0-beta.62
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 +14 -1
- package/dist/browser/{createResourceDialog-B7ThMSeA.js → createResourceDialog-DZgJsr3e.js} +2 -2
- package/dist/browser/{flowChanges-Cbl6Izr-.js → flowChanges-CzYIVevI.js} +1234 -1063
- package/dist/browser/{flowWorkspace-BdbsnUDs.js → flowWorkspace-BgZaFKZm.js} +208 -94
- package/dist/browser/{icons-D70mz3qW.js → icons-CajfDpy_.js} +13 -13
- package/dist/browser/preview.js +1126 -844
- package/dist/browser/ui.css +697 -1
- package/dist/browser/ui.d.ts +45 -0
- package/dist/browser/ui.js +6243 -740
- package/dist/browser/workbench.css +4 -20
- package/dist/browser/workbench.js +50 -41
- package/dist/browser/{workbenchSelect-gB45mZY7.js → workbenchSelect-H9wzEFkH.js} +1 -1
- package/dist/command/index.d.ts +6 -0
- package/dist/command/index.js +84 -0
- package/dist/command/licenses.md +191 -0
- package/dist/common/control-api-conformance.js +738 -583
- package/dist/common/control-api.d.ts +23 -3
- package/dist/common/control-api.js +824 -614
- package/dist/common/control-requests.js +23 -15
- package/dist/common/liveDetails.d.ts +138 -0
- package/dist/common/mcp.d.ts +29 -0
- package/dist/common/mcp.js +737 -578
- package/package.json +5 -1
- package/skills/open-flow/SKILL.md +7 -3
- package/skills/open-flow/references/flow-authoring.md +37 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oomol-lab/open-flow",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.62",
|
|
4
4
|
"description": "TypeScript contracts and Browser runtime for Open Flow.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
},
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
|
+
"./command": {
|
|
14
|
+
"types": "./dist/command/index.d.ts",
|
|
15
|
+
"import": "./dist/command/index.js"
|
|
16
|
+
},
|
|
13
17
|
"./package.json": "./package.json",
|
|
14
18
|
"./skills/open-flow/SKILL.md": "./skills/open-flow/SKILL.md",
|
|
15
19
|
"./skills/open-flow/references/flow-authoring.md": "./skills/open-flow/references/flow-authoring.md",
|
|
@@ -9,7 +9,8 @@ Use `<!-- agentic:var flowCommand -->` to operate the selected deployment.
|
|
|
9
9
|
Consult the references relevant to the task:
|
|
10
10
|
|
|
11
11
|
- [Flow capabilities and examples](references/flow-authoring.md): inspect, edit,
|
|
12
|
-
connect, validate, run and publish;
|
|
12
|
+
connect, validate, run and publish; online entries and Flow enable/disable;
|
|
13
|
+
concurrency and Run diagnostics.
|
|
13
14
|
- [n8n conversion](references/flow-n8n-conversion.md): represent collections,
|
|
14
15
|
branches, provider operations and state while preserving source behavior.
|
|
15
16
|
|
|
@@ -28,5 +29,8 @@ Server; do not duplicate them in the CLI.
|
|
|
28
29
|
<!-- agentic:endif -->
|
|
29
30
|
|
|
30
31
|
Keep the requested boundary: editing a Draft does not authorize a Run,
|
|
31
|
-
publication, or enabling automatic execution.
|
|
32
|
-
|
|
32
|
+
publication, or enabling automatic execution. Inspecting an entry does not
|
|
33
|
+
by itself authorize invoking it. For edits, report the Flow and Revision,
|
|
34
|
+
verification result, and unresolved configuration. For a publication, report
|
|
35
|
+
the Publication and available online entries. For a query, report the observed
|
|
36
|
+
online state.
|
|
@@ -28,6 +28,7 @@ supplies the edit operations. Use these when a configuration is unfamiliar.
|
|
|
28
28
|
<!-- agentic:var flowCommand --> list --json
|
|
29
29
|
<!-- agentic:var flowCommand --> create "Order summary" --json
|
|
30
30
|
<!-- agentic:var flowCommand --> show FLOW_ID --json
|
|
31
|
+
<!-- agentic:var flowCommand --> live FLOW_ID --json
|
|
31
32
|
<!-- agentic:var flowCommand --> read FLOW_ID --json
|
|
32
33
|
<!-- agentic:var flowCommand --> search FLOW_ID --input '{"query":"Customer summary","type":"agent"}' --json
|
|
33
34
|
<!-- agentic:var flowCommand --> read FLOW_ID --input '{"revision":"REVISION","nodes":["NODE"]}' --json
|
|
@@ -35,7 +36,10 @@ supplies the edit operations. Use these when a configuration is unfamiliar.
|
|
|
35
36
|
```
|
|
36
37
|
|
|
37
38
|
A known Flow ID avoids a list lookup. `show` gives lifecycle and publication
|
|
38
|
-
state. `
|
|
39
|
+
state. `live` gives the current published version, enablement, and online entries,
|
|
40
|
+
including Webhook URLs and request fields. `resourceReferences.draft` in Flow
|
|
41
|
+
metadata describes Draft dependencies, not online resources. `read` defaults to
|
|
42
|
+
the Draft and gives a graph outline, selected node details, or a text excerpt;
|
|
39
43
|
`nodes` and `text` are alternative modes. `search` finds matches in names,
|
|
40
44
|
configuration and source text, optionally restricted by node type.
|
|
41
45
|
|
|
@@ -326,6 +330,7 @@ large results without requiring the whole value in one response.
|
|
|
326
330
|
```bash
|
|
327
331
|
<!-- agentic:var flowCommand --> publish FLOW_ID --expected-revision REVISION --expected-publication PUBLICATION_OR_NONE --idempotency-key PUBLISH_KEY --json
|
|
328
332
|
<!-- agentic:var flowCommand --> enable FLOW_ID --expected-publication PUBLICATION --json
|
|
333
|
+
<!-- agentic:var flowCommand --> disable FLOW_ID --expected-publication PUBLICATION --json
|
|
329
334
|
<!-- agentic:var flowCommand --> workbench FLOW_ID --json
|
|
330
335
|
<!-- agentic:var flowCommand --> open FLOW_ID
|
|
331
336
|
```
|
|
@@ -334,10 +339,35 @@ large results without requiring the whole value in one response.
|
|
|
334
339
|
are for a requested release or automatic execution, and are unnecessary for a
|
|
335
340
|
Draft test Run. `publications wait` follows an accepted pending publication.
|
|
336
341
|
|
|
342
|
+
Flow is the only manual enable/disable unit: its switch controls all current Live
|
|
343
|
+
Triggers together. Individual Triggers have no pause/resume operation. Disabling
|
|
344
|
+
a Flow blocks new production admission without cancelling already accepted Runs.
|
|
345
|
+
Use the observed Live publication ID for `--expected-publication`; if it changed,
|
|
346
|
+
read the current state before deciding whether to apply the switch to that version.
|
|
347
|
+
The MCP equivalent is `flow_set_enabled({ flowId, expectedPublicationId, enabled })`.
|
|
348
|
+
|
|
349
|
+
Successful `publish` includes the same `live` details as `live FLOW_ID --json`;
|
|
350
|
+
use that result without immediately querying again. Query `live` after waiting
|
|
351
|
+
for an asynchronous publication, when details are missing, or when current state
|
|
352
|
+
is needed later. An unpublished Flow returns `status: not-published` with no entries.
|
|
353
|
+
|
|
354
|
+
For an authorized Webhook call, use the entry's `binding.endpointUrl`,
|
|
355
|
+
`config.method`, and `config.body` field contracts. These retain schema,
|
|
356
|
+
nullable and default semantics; methods without a request body have no body
|
|
357
|
+
fields. Do not reconstruct URLs from node IDs. Flow `enabled` and `status` are
|
|
358
|
+
independent of a binding's `health` and `listener`; a healthy
|
|
359
|
+
subscription alone does not establish that automatic execution is enabled.
|
|
360
|
+
Shared event source and account references can be inspected through their own
|
|
361
|
+
commands when relevant.
|
|
362
|
+
|
|
337
363
|
`workbench` returns a URL; `open` opens the system browser. Browser authentication
|
|
338
364
|
belongs to the host. An open Workbench receives Revision notifications, so a CLI
|
|
339
365
|
edit does not require a page reload.
|
|
340
366
|
|
|
367
|
+
`live` includes Manual entry nodes without a runtime binding. `trigger search`
|
|
368
|
+
and `trigger show` discover provider definitions; `live` inspects the Flow's
|
|
369
|
+
current online entries. The MCP equivalent is `flow_live({ flowId })`.
|
|
370
|
+
|
|
341
371
|
## Recover without losing another change or repeating an effect
|
|
342
372
|
|
|
343
373
|
- **Revision conflict:** another writer changed the Draft. Read the latest
|
|
@@ -348,6 +378,12 @@ edit does not require a page reload.
|
|
|
348
378
|
resolve that uncertainty; a new key describes a new mutation.
|
|
349
379
|
- **Saved with diagnostics:** the edit happened. Repair the saved Revision or
|
|
350
380
|
investigate unavailable validation; resubmitting it is not a validation step.
|
|
381
|
+
- **Published with detail warnings:** a succeeded `operation` confirms the
|
|
382
|
+
publication even if metadata or online details could not be read. Query `live`
|
|
383
|
+
rather than publishing again to retrieve an address. A pending operation still
|
|
384
|
+
requires observing that same operation. If `live.publication.publicationId`
|
|
385
|
+
differs from the successful operation's `publicationId`, the entries describe
|
|
386
|
+
the current Live version, not the earlier publication.
|
|
351
387
|
- **Failed Run:** events and results identify the failing node and available
|
|
352
388
|
inputs. Consider already-completed external effects before running it again.
|
|
353
389
|
|