@oomol-lab/open-flow 0.1.0-beta.55 → 0.1.0-beta.56

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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/{createResourceDialog-4H5_lZ6s.js → createResourceDialog-Btjes3wD.js} +2 -2
  3. package/dist/browser/flow-authoring-edge.d.ts +3 -3
  4. package/dist/browser/flow-authoring-node.d.ts +26 -46
  5. package/dist/browser/flow-authoring.js +9155 -21002
  6. package/dist/browser/flow-change-schema.d.ts +1 -1
  7. package/dist/browser/flow-change.d.ts +14 -104
  8. package/dist/browser/flow-change.js +121 -296
  9. package/dist/browser/{flowChanges-ZzG-f9cg.js → flowChanges-BxutPLYO.js} +1494 -1830
  10. package/dist/browser/{flowWorkspace-ChpRaTMX.js → flowWorkspace-Dg4mqfa6.js} +118 -293
  11. package/dist/browser/{icons-CdAB9wyS.js → icons-p2A9zs8t.js} +126 -317
  12. package/dist/browser/lib-DrKav3HG.js +11403 -0
  13. package/dist/browser/preview.css +1 -1
  14. package/dist/browser/preview.js +9308 -9565
  15. package/dist/browser/ui-idTooltip.d.ts +11 -0
  16. package/dist/browser/ui.d.ts +5 -0
  17. package/dist/browser/ui.js +83 -1
  18. package/dist/browser/workbench.css +1 -1
  19. package/dist/browser/workbench.js +210 -411
  20. package/dist/browser/{workbenchSelect-BRZN4ish.js → workbenchSelect-LRp_Xjeq.js} +1 -1
  21. package/dist/common/control-api-conformance.js +212 -245
  22. package/dist/common/control-api.d.ts +6 -6
  23. package/dist/common/control-api.js +216 -250
  24. package/dist/common/control-requests.js +468 -1476
  25. package/dist/common/decision.js +6325 -6369
  26. package/dist/common/flow-agent.d.ts +1 -1
  27. package/dist/common/flow-connectionUsage.d.ts +1 -2
  28. package/dist/common/flow-encoding.d.ts +2 -4
  29. package/dist/common/flow-encoding.js +119 -180
  30. package/dist/common/flow-graph.d.ts +10 -10
  31. package/dist/common/flow-semantics.d.ts +4 -9
  32. package/dist/common/flow-semantics.js +9024 -9230
  33. package/dist/common/flowInspection.d.ts +3 -21
  34. package/dist/common/integration-trigger.js +8642 -8686
  35. package/dist/common/mcp.d.ts +0 -1
  36. package/dist/common/mcp.js +117 -140
  37. package/dist/common/openapi.js +6325 -6369
  38. package/dist/common/poll-trigger.js +8642 -8686
  39. package/dist/common/run-events.js +0 -1
  40. package/dist/common/scheduler.d.ts +3 -9
  41. package/dist/common/scheduler.js +116 -207
  42. package/dist/common/webhook-trigger.js +6325 -6369
  43. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ The offline Publications viewer is available as `OpenFlowPreview` from
6
6
  `@oomol-lab/open-flow/preview`, with standalone `@oomol-lab/open-flow/preview.css`.
7
7
  Supply `draft`, `presentation` (or null), `language` and `theme`; the entry also exports
8
8
  `Draft`, `Presentation` and `OpenFlowPreviewProps` types. Give its parent an explicit height.
9
- It supports temporary node movement, restore layout, read-only properties and subflows without
9
+ It supports temporary node movement, restore layout, read-only properties without
10
10
  fetching or saving a workflow. Use a new React key to reset the session when switching examples.
11
11
  A Shadow DOM host must load the stylesheet inside its shadow root before mounting the component;
12
12
  Vite hosts can import `@oomol-lab/open-flow/preview.css?url` for the stylesheet URL.
@@ -1,6 +1,6 @@
1
1
  import { l as useTranslate } from "./dist-BFmpkX4P.js";
2
- import { C as FieldDescription, E as FieldLabel, S as Field, T as FieldGroup, c as DialogTitle, gi as Button, i as DialogContent, ir as Input, n as Dialog, o as DialogFooter, r as DialogClose, s as DialogHeader, t as Icon, w as FieldError, x as Spinner } from "./icons-CdAB9wyS.js";
3
- import { t as WorkbenchSelect } from "./workbenchSelect-BRZN4ish.js";
2
+ import { C as FieldDescription, E as FieldLabel, S as Field, T as FieldGroup, c as DialogTitle, gi as Button, i as DialogContent, ir as Input, n as Dialog, o as DialogFooter, r as DialogClose, s as DialogHeader, t as Icon, w as FieldError, x as Spinner } from "./icons-p2A9zs8t.js";
3
+ import { t as WorkbenchSelect } from "./workbenchSelect-LRp_Xjeq.js";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
@@ -1,3 +1,3 @@
1
- import type { ChangeOperation, GraphEdge, GraphTarget, RevisionContent } from './flow-change.js';
2
- export declare function connect(content: RevisionContent, target: GraphTarget, edge: GraphEdge): readonly ChangeOperation[];
3
- export declare function disconnect(content: RevisionContent, target: GraphTarget, edge: GraphEdge): readonly ChangeOperation[];
1
+ import type { ChangeOperation, GraphEdge, RevisionContent } from './flow-change.js';
2
+ export declare function connect(content: RevisionContent, edge: GraphEdge): readonly ChangeOperation[];
3
+ export declare function disconnect(content: RevisionContent, edge: GraphEdge): readonly ChangeOperation[];
@@ -1,5 +1,5 @@
1
1
  import type { DecisionQuestion } from '../common/decision.js';
2
- import type { ChangeOperation, CodeModule, ConnectorCapability, GraphNode, GraphTarget, InputMapping, InputValues, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
2
+ import type { ChangeOperation, CodeModule, ConnectorCapability, GraphNode, InputMapping, InputValues, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
3
3
  export interface Settings {
4
4
  readonly name?: string;
5
5
  readonly maxExecutions?: number;
@@ -10,7 +10,7 @@ export interface LlmTaskOptions {
10
10
  readonly output?: PortDefinition;
11
11
  }
12
12
  export type LlmInputHandle = 'input' | 'messages' | 'model' | 'template';
13
- export declare function defaultNodeName(content: RevisionContent, node: GraphNode): string;
13
+ export declare function defaultNodeName(_content: RevisionContent, node: GraphNode): string;
14
14
  export declare function repairNodeNames(content: RevisionContent): readonly ChangeOperation[];
15
15
  interface TriggerSettingsBase {
16
16
  readonly description?: string;
@@ -40,77 +40,57 @@ export type TriggerSettings = (TriggerSettingsBase & {
40
40
  readonly config: InputValues;
41
41
  readonly kind: 'integration';
42
42
  });
43
- export declare function createCodeTask(target: GraphTarget, identity: {
43
+ export declare function createCodeTask(identity: {
44
44
  readonly moduleId: string;
45
45
  readonly nodeId: string;
46
46
  }, name: string, module?: Pick<CodeModule, 'imports' | 'source'> | undefined, ports?: Pick<Extract<TaskDefinition, {
47
47
  readonly moduleId: string;
48
48
  }>, 'inputs' | 'outputs' | 'capabilities'>): readonly ChangeOperation[];
49
- export declare function createManagedTask(target: GraphTarget, identity: {
49
+ export declare function createManagedTask(identity: {
50
50
  readonly nodeId: string;
51
- readonly taskId: string;
52
51
  }, task: Extract<TaskDefinition, {
53
52
  readonly executor: unknown;
54
53
  }>): readonly ChangeOperation[];
55
- export declare function createAgentTask(target: GraphTarget, identity: {
54
+ export declare function createAgentTask(identity: {
56
55
  readonly nodeId: string;
57
- readonly taskId: string;
58
56
  }, name: string, defaults?: {
59
57
  readonly prompt?: string;
60
58
  readonly outputDescription?: string;
61
59
  }): readonly ChangeOperation[];
62
- export declare function createLlmTask(target: GraphTarget, identity: {
60
+ export declare function createLlmTask(identity: {
63
61
  readonly nodeId: string;
64
- readonly taskId: string;
65
62
  }, name: string, mode: 'chat' | 'json', outputDescription: string, options?: LlmTaskOptions): readonly ChangeOperation[];
66
- export declare function createCondition(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
67
- export declare function createValue(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
68
- export declare function createWait(target: Extract<GraphTarget, {
69
- readonly kind: 'flow';
70
- }>, nodeId: string, name: string): readonly ChangeOperation[];
71
- export declare function createApproval(target: Extract<GraphTarget, {
72
- readonly kind: 'flow';
73
- }>, nodeId: string, name: string): readonly ChangeOperation[];
74
- export declare function createBuiltinTrigger(target: Extract<GraphTarget, {
75
- readonly kind: 'flow';
76
- }>, nodeId: string, node: Extract<TriggerNode, {
63
+ export declare function createCondition(nodeId: string, name: string): readonly ChangeOperation[];
64
+ export declare function createValue(nodeId: string, name: string): readonly ChangeOperation[];
65
+ export declare function createWait(nodeId: string, name: string): readonly ChangeOperation[];
66
+ export declare function createApproval(nodeId: string, name: string): readonly ChangeOperation[];
67
+ export declare function createBuiltinTrigger(nodeId: string, node: Extract<TriggerNode, {
77
68
  readonly kind: 'error' | 'cron' | 'manual' | 'webhook';
78
69
  }>): readonly ChangeOperation[];
79
- export declare function createProviderTrigger(target: Extract<GraphTarget, {
80
- readonly kind: 'flow';
81
- }>, nodeId: string, definition: TriggerKeySnapshot, options: {
70
+ export declare function createProviderTrigger(nodeId: string, definition: TriggerKeySnapshot, options: {
82
71
  readonly config: Readonly<Record<string, JsonValue>>;
83
72
  readonly connectionId?: string;
84
73
  readonly name?: string;
85
74
  readonly schedule?: readonly TriggerSchedule[];
86
75
  }): readonly ChangeOperation[];
87
- export declare function deleteNodes(content: RevisionContent, target: GraphTarget, nodeIds: readonly string[]): readonly ChangeOperation[];
88
- export declare function updateSettings(content: RevisionContent, target: GraphTarget, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
89
- export declare function setInputValue(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
90
- export declare function setInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, values: Readonly<Record<string, JsonValue | undefined>>): readonly ChangeOperation[] | undefined;
76
+ export declare function deleteNodes(content: RevisionContent, nodeIds: readonly string[]): readonly ChangeOperation[];
77
+ export declare function updateSettings(content: RevisionContent, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
78
+ export declare function setInputValue(content: RevisionContent, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
79
+ export declare function setInputValues(content: RevisionContent, nodeId: string, values: Readonly<Record<string, JsonValue | undefined>>): readonly ChangeOperation[] | undefined;
91
80
  /** Restore inheritance for this form in one undoable change. */
92
- export declare function resetInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, handles: readonly string[]): readonly ChangeOperation[];
93
- export declare function setInputSources(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, sources: Extract<InputMapping, {
81
+ export declare function resetInputValues(content: RevisionContent, nodeId: string, handles: readonly string[]): readonly ChangeOperation[];
82
+ export declare function setInputSources(content: RevisionContent, nodeId: string, handle: string, sources: Extract<InputMapping, {
94
83
  readonly kind: 'sources';
95
84
  }>['sources']): readonly ChangeOperation[];
96
- export declare function setInputVariable(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
85
+ export declare function setInputVariable(content: RevisionContent, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
97
86
  export declare function cleanVariableBindings(content: RevisionContent, operations: readonly ChangeOperation[]): readonly ChangeOperation[];
98
- export declare function setConnectorConnection(content: RevisionContent, taskId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
99
- export declare function updateTrigger(content: RevisionContent, target: {
100
- readonly kind: 'flow';
101
- }, nodeId: string, settings: TriggerSettings): readonly ChangeOperation[] | undefined;
102
- export declare function updateTriggerConfig(content: RevisionContent, _target: {
103
- readonly kind: 'flow';
104
- }, nodeId: string, name: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
105
- export declare function updateTriggerSchedule(content: RevisionContent, _target: {
106
- readonly kind: 'flow';
107
- }, nodeId: string, schedule: readonly TriggerSchedule[]): readonly ChangeOperation[] | undefined;
108
- export declare function setTriggerConnection(content: RevisionContent, target: {
109
- readonly kind: 'flow';
110
- }, nodeId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
111
- export declare function setCodeActions(content: RevisionContent, target: GraphTarget, nodeId: string, capabilities: readonly ConnectorCapability[]): readonly ChangeOperation[] | undefined;
112
- export declare function createDecisionTask(target: GraphTarget, identity: {
87
+ export declare function setConnectorConnection(content: RevisionContent, nodeId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
88
+ export declare function updateTrigger(content: RevisionContent, nodeId: string, settings: TriggerSettings): readonly ChangeOperation[] | undefined;
89
+ export declare function updateTriggerConfig(content: RevisionContent, nodeId: string, name: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
90
+ export declare function updateTriggerSchedule(content: RevisionContent, nodeId: string, schedule: readonly TriggerSchedule[]): readonly ChangeOperation[] | undefined;
91
+ export declare function setTriggerConnection(content: RevisionContent, nodeId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
92
+ export declare function setCodeActions(content: RevisionContent, nodeId: string, capabilities: readonly ConnectorCapability[]): readonly ChangeOperation[] | undefined;
93
+ export declare function createDecisionTask(identity: {
113
94
  readonly nodeId: string;
114
- readonly taskId: string;
115
95
  }, name?: string, questions?: readonly DecisionQuestion[]): readonly ChangeOperation[];
116
96
  export {};