@oomol-lab/open-flow 0.1.0-beta.61 → 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.
@@ -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. `read` gives a graph outline, selected node details, or a text excerpt;
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
 
@@ -342,33 +346,27 @@ Use the observed Live publication ID for `--expected-publication`; if it changed
342
346
  read the current state before deciding whether to apply the switch to that version.
343
347
  The MCP equivalent is `flow_set_enabled({ flowId, expectedPublicationId, enabled })`.
344
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
+
345
363
  `workbench` returns a URL; `open` opens the system browser. Browser authentication
346
364
  belongs to the host. An open Workbench receives Revision notifications, so a CLI
347
365
  edit does not require a page reload.
348
366
 
349
- ### Inspect published resources
350
-
351
- ```bash
352
- <!-- agentic:var flowCommand --> resources FLOW_ID --json
353
- <!-- agentic:var flowCommand --> resources FLOW_ID RESOURCE_ID --json
354
- <!-- agentic:var flowCommand --> publications list FLOW_ID --json
355
- <!-- agentic:var flowCommand --> resources FLOW_ID --publication PUBLICATION_ID --json
356
- ```
357
-
358
- `resources` defaults to the current Live publication and returns its managed
359
- Trigger resources, runtime health and Webhook URLs. The response's `enabled`
360
- describes the Flow switch; healthy resources can belong to a disabled Flow.
361
- Use a returned `resourceId` for detail, and pin `publicationId` when subsequent
362
- reads must refer to the same publication. Configuration comes from the fixed
363
- published Revision, so unpublished Draft edits do not appear here.
364
-
365
- Historical results contain configuration only, without runtime state, `enabled`
366
- or callable URLs. Querying history does not reactivate it; restoring a historical
367
- version requires an authorized rollback. Manual entry nodes are read through
368
- `read` and are not managed resources. `trigger search` and `trigger show` discover
369
- provider Trigger definitions; use `resources` to inspect a Flow's published Triggers.
370
- MCP equivalents are `flow_resources({ flowId, publicationId? })` and
371
- `flow_resource_get({ flowId, resourceId, publicationId? })`.
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 })`.
372
370
 
373
371
  ## Recover without losing another change or repeating an effect
374
372
 
@@ -380,6 +378,12 @@ MCP equivalents are `flow_resources({ flowId, publicationId? })` and
380
378
  resolve that uncertainty; a new key describes a new mutation.
381
379
  - **Saved with diagnostics:** the edit happened. Repair the saved Revision or
382
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.
383
387
  - **Failed Run:** events and results identify the failing node and available
384
388
  inputs. Consider already-completed external effects before running it again.
385
389
 
@@ -1,29 +0,0 @@
1
- import type { JsonValue, RevisionContent } from '../browser/flow-change.js';
2
- import type { TriggerBinding } from './control-api.js';
3
- export interface PublicationResource {
4
- readonly resourceId: string;
5
- readonly kind: 'trigger';
6
- readonly type: TriggerBinding['kind'];
7
- readonly name: string;
8
- readonly description?: string;
9
- readonly config: JsonValue;
10
- readonly inputs: JsonValue;
11
- readonly runtime?: TriggerBinding;
12
- }
13
- export interface PublicationResourceContext {
14
- readonly flowId: string;
15
- readonly publicationId: string;
16
- readonly revisionId: string;
17
- readonly status: 'live' | 'historical';
18
- readonly enabled?: boolean;
19
- readonly version: 1;
20
- }
21
- export interface PublicationResources extends PublicationResourceContext {
22
- readonly resources: readonly PublicationResource[];
23
- }
24
- export interface PublicationResourceDetail extends PublicationResourceContext {
25
- readonly resource: PublicationResource;
26
- }
27
- export declare function publicationResources(content: RevisionContent): readonly PublicationResource[];
28
- export declare function decodePublicationResources(value: unknown): PublicationResources;
29
- export declare function decodePublicationResource(value: unknown): PublicationResourceDetail;