@oomol-lab/open-flow 0.1.0-beta.66 → 0.1.0-beta.67

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.
Files changed (36) hide show
  1. package/dist/browser/{createResourceDialog-C-Si_cYs.js → createResourceDialog-BQVD8Rqb.js} +2 -2
  2. package/dist/browser/{icons-BD3m0RQq.js → dialog-CS2Vt2if.js} +1225 -1224
  3. package/dist/browser/event-sources.d.ts +4 -1
  4. package/dist/browser/flow-authoring-node.d.ts +2 -0
  5. package/dist/browser/flow-authoring.js +6 -5
  6. package/dist/browser/flow-change.js +6 -5
  7. package/dist/browser/{flowChanges-T4_R5p1f.js → flowChanges-VB9Y4iy7.js} +2186 -1939
  8. package/dist/browser/{flowWorkspace-C0J5C0oM.js → flowWorkspace-C1hlTnZq.js} +801 -666
  9. package/dist/browser/preview.css +121 -55
  10. package/dist/browser/preview.js +34156 -33896
  11. package/dist/browser/theme.css +1 -0
  12. package/dist/browser/ui.css +34 -4
  13. package/dist/browser/workbench-contract.d.ts +1 -1
  14. package/dist/browser/workbench.css +130 -98
  15. package/dist/browser/workbench.d.ts +0 -1
  16. package/dist/browser/workbench.js +361 -120
  17. package/dist/browser/{workbenchSelect-B-PFpF_Q.js → workbenchSelect-CpXhjUou.js} +1 -1
  18. package/dist/command/index.js +25 -25
  19. package/dist/common/authoringExamples.d.ts +2 -2
  20. package/dist/common/control-api-conformance.js +31 -9
  21. package/dist/common/control-api.d.ts +4 -1
  22. package/dist/common/control-api.js +15 -5
  23. package/dist/common/control-requests.js +7 -6
  24. package/dist/common/decision.js +5 -4
  25. package/dist/common/flow-encoding.js +7 -4
  26. package/dist/common/flow-semantics.js +11 -8
  27. package/dist/common/integration-trigger.js +5 -4
  28. package/dist/common/mcp.js +16 -6
  29. package/dist/common/openapi.js +5 -4
  30. package/dist/common/poll-trigger.js +5 -4
  31. package/dist/common/scheduler.js +5 -4
  32. package/dist/common/webhook-trigger.js +5 -4
  33. package/dist/common/workflow.js +5 -4
  34. package/package.json +1 -1
  35. package/skills/open-flow/SKILL.md +9 -0
  36. package/skills/open-flow/references/flow-authoring.md +2 -0
@@ -6694,6 +6694,7 @@ var webhookMethods = [
6694
6694
  "DELETE"
6695
6695
  ];
6696
6696
  var text = string();
6697
+ var actionConnection = text.describe("Account selection: omit while unconfigured; use an account ID to select it; use \"\" to explicitly defer configuration. Deferred Actions fail if called; deferred Agent tools are excluded from the callable tool set. Not supported by Triggers.");
6697
6698
  var json = json$1();
6698
6699
  var strings = array(text);
6699
6700
  var port = object({
@@ -6749,7 +6750,7 @@ var capability = union([
6749
6750
  mode: literal("independent"),
6750
6751
  actions: array(strictObject({
6751
6752
  action: text,
6752
- connectionId: text.optional()
6753
+ connectionId: actionConnection.optional()
6753
6754
  }))
6754
6755
  }),
6755
6756
  strictObject({
@@ -6809,7 +6810,7 @@ var managedFields = object({
6809
6810
  object({
6810
6811
  kind: literal("connector"),
6811
6812
  action: text,
6812
- connectionId: text.optional(),
6813
+ connectionId: actionConnection.optional(),
6813
6814
  outputMode: literal("value").optional()
6814
6815
  }),
6815
6816
  object({
@@ -6849,13 +6850,13 @@ var managedFields = object({
6849
6850
  name: text,
6850
6851
  description: text,
6851
6852
  action: text,
6852
- connectionId: text.optional(),
6853
+ connectionId: actionConnection.optional(),
6853
6854
  approval: boolean(),
6854
6855
  inputs: array(input.extend({ source: agentInput }))
6855
6856
  })),
6856
6857
  notification: object({
6857
6858
  action: text,
6858
- connectionId: text.optional(),
6859
+ connectionId: actionConnection.optional(),
6859
6860
  inputDefinitions: array(input),
6860
6861
  messageHandle: text,
6861
6862
  inputs: record$1(text, agentValue)
@@ -9496,6 +9496,7 @@ function webhookSupportsBody(method) {
9496
9496
  return method !== "GET";
9497
9497
  }
9498
9498
  var text = string();
9499
+ var actionConnection = text.describe("Account selection: omit while unconfigured; use an account ID to select it; use \"\" to explicitly defer configuration. Deferred Actions fail if called; deferred Agent tools are excluded from the callable tool set. Not supported by Triggers.");
9499
9500
  var json = json$1();
9500
9501
  var strings = array(text);
9501
9502
  var port = object({
@@ -9551,7 +9552,7 @@ var capability = union([
9551
9552
  mode: literal("independent"),
9552
9553
  actions: array(strictObject({
9553
9554
  action: text,
9554
- connectionId: text.optional()
9555
+ connectionId: actionConnection.optional()
9555
9556
  }))
9556
9557
  }),
9557
9558
  strictObject({
@@ -9611,7 +9612,7 @@ var managedFields = object({
9611
9612
  object({
9612
9613
  kind: literal("connector"),
9613
9614
  action: text,
9614
- connectionId: text.optional(),
9615
+ connectionId: actionConnection.optional(),
9615
9616
  outputMode: literal("value").optional()
9616
9617
  }),
9617
9618
  object({
@@ -9651,13 +9652,13 @@ var managedFields = object({
9651
9652
  name: text,
9652
9653
  description: text,
9653
9654
  action: text,
9654
- connectionId: text.optional(),
9655
+ connectionId: actionConnection.optional(),
9655
9656
  approval: boolean(),
9656
9657
  inputs: array(input.extend({ source: agentInput$1 }))
9657
9658
  })),
9658
9659
  notification: object({
9659
9660
  action: text,
9660
- connectionId: text.optional(),
9661
+ connectionId: actionConnection.optional(),
9661
9662
  inputDefinitions: array(input),
9662
9663
  messageHandle: text,
9663
9664
  inputs: record$1(text, agentValue)
@@ -5810,6 +5810,7 @@ function webhookSupportsBody(method) {
5810
5810
  return method !== "GET";
5811
5811
  }
5812
5812
  var text = string();
5813
+ var actionConnection = text.describe("Account selection: omit while unconfigured; use an account ID to select it; use \"\" to explicitly defer configuration. Deferred Actions fail if called; deferred Agent tools are excluded from the callable tool set. Not supported by Triggers.");
5813
5814
  var json = json$1();
5814
5815
  var strings = array(text);
5815
5816
  var port = object({
@@ -5865,7 +5866,7 @@ var capability = union([
5865
5866
  mode: literal("independent"),
5866
5867
  actions: array(strictObject({
5867
5868
  action: text,
5868
- connectionId: text.optional()
5869
+ connectionId: actionConnection.optional()
5869
5870
  }))
5870
5871
  }),
5871
5872
  strictObject({
@@ -5925,7 +5926,7 @@ var managedFields = object({
5925
5926
  object({
5926
5927
  kind: literal("connector"),
5927
5928
  action: text,
5928
- connectionId: text.optional(),
5929
+ connectionId: actionConnection.optional(),
5929
5930
  outputMode: literal("value").optional()
5930
5931
  }),
5931
5932
  object({
@@ -5965,13 +5966,13 @@ var managedFields = object({
5965
5966
  name: text,
5966
5967
  description: text,
5967
5968
  action: text,
5968
- connectionId: text.optional(),
5969
+ connectionId: actionConnection.optional(),
5969
5970
  approval: boolean(),
5970
5971
  inputs: array(input.extend({ source: agentInput }))
5971
5972
  })),
5972
5973
  notification: object({
5973
5974
  action: text,
5974
- connectionId: text.optional(),
5975
+ connectionId: actionConnection.optional(),
5975
5976
  inputDefinitions: array(input),
5976
5977
  messageHandle: text,
5977
5978
  inputs: record$1(text, agentValue)
@@ -6687,6 +6687,7 @@ var webhookMethods = [
6687
6687
  "DELETE"
6688
6688
  ];
6689
6689
  var text = string();
6690
+ var actionConnection = text.describe("Account selection: omit while unconfigured; use an account ID to select it; use \"\" to explicitly defer configuration. Deferred Actions fail if called; deferred Agent tools are excluded from the callable tool set. Not supported by Triggers.");
6690
6691
  var json = json$1();
6691
6692
  var strings = array(text);
6692
6693
  var port = object({
@@ -6742,7 +6743,7 @@ var capability = union([
6742
6743
  mode: literal("independent"),
6743
6744
  actions: array(strictObject({
6744
6745
  action: text,
6745
- connectionId: text.optional()
6746
+ connectionId: actionConnection.optional()
6746
6747
  }))
6747
6748
  }),
6748
6749
  strictObject({
@@ -6802,7 +6803,7 @@ var managedFields = object({
6802
6803
  object({
6803
6804
  kind: literal("connector"),
6804
6805
  action: text,
6805
- connectionId: text.optional(),
6806
+ connectionId: actionConnection.optional(),
6806
6807
  outputMode: literal("value").optional()
6807
6808
  }),
6808
6809
  object({
@@ -6842,13 +6843,13 @@ var managedFields = object({
6842
6843
  name: text,
6843
6844
  description: text,
6844
6845
  action: text,
6845
- connectionId: text.optional(),
6846
+ connectionId: actionConnection.optional(),
6846
6847
  approval: boolean(),
6847
6848
  inputs: array(input.extend({ source: agentInput }))
6848
6849
  })),
6849
6850
  notification: object({
6850
6851
  action: text,
6851
- connectionId: text.optional(),
6852
+ connectionId: actionConnection.optional(),
6852
6853
  inputDefinitions: array(input),
6853
6854
  messageHandle: text,
6854
6855
  inputs: record$1(text, agentValue)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oomol-lab/open-flow",
3
- "version": "0.1.0-beta.66",
3
+ "version": "0.1.0-beta.67",
4
4
  "description": "TypeScript contracts and Browser runtime for Open Flow.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,6 +14,15 @@ Consult the references relevant to the task:
14
14
  - [n8n conversion](references/flow-n8n-conversion.md): represent collections,
15
15
  branches, provider operations and state while preserving source behavior.
16
16
 
17
+ Keep generated Flow and node names short enough to scan on the canvas. Aim for
18
+ 2–4 English words or 4–8 Chinese characters, using the user's language unless
19
+ the workflow has an established naming language. Name a Flow by its main purpose
20
+ and a node by its action and object, such as `AI Trend Digest`, `Fetch trends`,
21
+ `Verify sources`, or `发布文章`. Keep only qualifiers needed to distinguish similar
22
+ nodes. Put detailed behavior in descriptions; avoid sentences, repeated workflow
23
+ context, and obscure abbreviations. Preserve names explicitly supplied by the
24
+ user, and do not rename unrelated existing nodes.
25
+
17
26
  <!-- agentic:if localDevelopment -->
18
27
 
19
28
  Run commands from this repository's root. The development CLI connects to the
@@ -289,6 +289,8 @@ unavailable action and an action lacking an active Connection are different
289
289
  problems. Actions marked `authenticated: false` need no account. Connection
290
290
  selection rules come from the selected node contract.
291
291
 
292
+ For Connector Tasks, independent Code Actions, Agent tools and notifications, an omitted `connectionId` means unconfigured; `connectionId: ""` explicitly defers account configuration. Deferred selections pass account readiness checks but fail with `connector.connection-required` if invoked. Deferred Agent tools are excluded from the callable tool set. Provider Triggers still require a nonempty account ID. Public edits and portable exports preserve the empty string; clear the field to return to the unconfigured state.
293
+
292
294
  | Capability | Relevant schema and configuration |
293
295
  | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
294
296
  | Provider read or write | `connector`: discovered `action`, optional `connectionId`, named input bindings. |