@oomol-lab/open-flow 0.1.0-beta.54 → 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 (52) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/{createResourceDialog-BsaBMf7_.js → createResourceDialog-Btjes3wD.js} +3 -3
  3. package/dist/browser/{main-BPABKzwN.js → dist-BFmpkX4P.js} +9 -1
  4. package/dist/browser/flow-authoring-edge.d.ts +3 -3
  5. package/dist/browser/flow-authoring-node.d.ts +29 -44
  6. package/dist/browser/flow-authoring.d.ts +1 -1
  7. package/dist/browser/flow-authoring.js +418 -12018
  8. package/dist/browser/flow-change-schema.d.ts +1 -1
  9. package/dist/browser/flow-change.d.ts +15 -100
  10. package/dist/browser/flow-change.js +3175 -383
  11. package/dist/browser/{flowChanges-CcscgZsW.js → flowChanges-BxutPLYO.js} +23382 -27177
  12. package/dist/browser/{flowWorkspace-CoT_ewLX.js → flowWorkspace-Dg4mqfa6.js} +3307 -595
  13. package/dist/browser/{icons-0s-Q_3lp.js → icons-p2A9zs8t.js} +4403 -354
  14. package/dist/browser/lib-DrKav3HG.js +11403 -0
  15. package/dist/browser/{markdownContent-D3FFc-u_.js → markdownContent-frwDfQQU.js} +1 -2
  16. package/dist/browser/preview.css +375 -322
  17. package/dist/browser/preview.js +16796 -13483
  18. package/dist/browser/theme.css +1 -0
  19. package/dist/browser/ui-idTooltip.d.ts +11 -0
  20. package/dist/browser/ui.css +30 -0
  21. package/dist/browser/ui.d.ts +5 -0
  22. package/dist/browser/ui.js +87 -4
  23. package/dist/browser/workbench.css +375 -322
  24. package/dist/browser/workbench.js +213 -414
  25. package/dist/browser/{workbenchSelect-BqUPacsr.js → workbenchSelect-LRp_Xjeq.js} +1 -1
  26. package/dist/common/authoringExamples.d.ts +3 -2
  27. package/dist/common/control-api-conformance.js +3686 -3594
  28. package/dist/common/control-api.d.ts +6 -6
  29. package/dist/common/control-api.js +3760 -3645
  30. package/dist/common/control-requests.js +2382 -3118
  31. package/dist/common/decision.d.ts +47 -0
  32. package/dist/common/decision.js +10109 -0
  33. package/dist/common/flow-agent.d.ts +1 -1
  34. package/dist/common/flow-connectionUsage.d.ts +1 -2
  35. package/dist/common/flow-encoding.d.ts +2 -4
  36. package/dist/common/flow-encoding.js +3206 -286
  37. package/dist/common/flow-graph.d.ts +10 -10
  38. package/dist/common/flow-semantics.d.ts +4 -9
  39. package/dist/common/flow-semantics.js +9200 -9132
  40. package/dist/common/flowInspection.d.ts +3 -21
  41. package/dist/common/integration-trigger.js +6251 -6094
  42. package/dist/common/mcp.d.ts +0 -1
  43. package/dist/common/mcp.js +3729 -3627
  44. package/dist/common/openapi.js +6402 -6245
  45. package/dist/common/poll-trigger.js +6433 -6252
  46. package/dist/common/run-events.js +1 -1
  47. package/dist/common/runtime-contract.d.ts +8 -0
  48. package/dist/common/scheduler.d.ts +3 -9
  49. package/dist/common/scheduler.js +3263 -3153
  50. package/dist/common/webhook-trigger.js +6402 -6245
  51. package/package.json +5 -1
  52. package/dist/browser/dist-BDBTOgS5.js +0 -9
@@ -1,17 +1,17 @@
1
- import type { FlowDocument, Graph, GraphNode, InputPortDefinition, NodeSource, PortDefinition, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
2
- import type { Diagnostic, SemanticClosure } from './flow-semantics.js';
1
+ import type { Graph, GraphNode, InputPortDefinition, NodeSource, PortDefinition, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
2
+ import type { Diagnostic } from './flow-semantics.js';
3
3
  export declare function isResolutionNode(node: GraphNode | undefined): node is Extract<GraphNode, {
4
4
  readonly kind: 'approval' | 'wait';
5
5
  }>;
6
- export declare function nodeInputPorts(document: FlowDocument, node: GraphNode): Readonly<Record<string, InputPortDefinition>>;
6
+ export declare function nodeInputPorts(node: GraphNode): Readonly<Record<string, InputPortDefinition>>;
7
7
  export declare function resolutionActions(node: Extract<GraphNode, {
8
8
  readonly kind: 'approval' | 'wait';
9
9
  }>): readonly ['continue'] | readonly ['approve', 'reject'];
10
10
  export declare function resolutionOutputPorts(node: Extract<GraphNode, {
11
11
  readonly kind: 'approval' | 'wait';
12
12
  }>): Readonly<Record<string, PortDefinition>>;
13
- export declare function nodeOutputPorts(document: Pick<FlowDocument, 'tasks' | 'subflows'>, node: GraphNode): Readonly<Record<string, PortDefinition>>;
14
- export declare function nodeOutputDescription(document: FlowDocument, graph: Graph, nodeId: string, output: string): string | undefined;
13
+ export declare function nodeOutputPorts(node: GraphNode): Readonly<Record<string, PortDefinition>>;
14
+ export declare function nodeOutputDescription(graph: Graph, nodeId: string, output: string): string | undefined;
15
15
  export declare function graphOrder(graph: Graph): readonly string[];
16
16
  export type InputSourceCheck = {
17
17
  readonly kind: 'available';
@@ -50,10 +50,10 @@ export interface InputSourcesCheck {
50
50
  readonly sources: readonly InputSourceCheck[];
51
51
  }
52
52
  /** Check one saved binding without enumerating candidate ports. */
53
- export declare function checkInputSource(document: FlowDocument, graph: Graph, target: string, handle: string, source: Pick<NodeSource, 'nodeId' | 'output' | 'field'>): InputSourceCheck;
54
- export declare function checkInputSources(document: FlowDocument, graph: Graph, target: string, handle: string, sources: readonly Pick<NodeSource, 'nodeId' | 'output' | 'field'>[]): InputSourcesCheck;
53
+ export declare function checkInputSource(graph: Graph, target: string, handle: string, source: Pick<NodeSource, 'nodeId' | 'output' | 'field'>): InputSourceCheck;
54
+ export declare function checkInputSources(graph: Graph, target: string, handle: string, sources: readonly Pick<NodeSource, 'nodeId' | 'output' | 'field'>[]): InputSourcesCheck;
55
55
  /** Enumerate structurally available outputs while retaining their compatibility with one input. */
56
- export declare function inputSourceCandidates(document: FlowDocument, graph: Graph, target: string, handle: string): Readonly<Record<string, readonly InputSourceCandidate[]>>;
57
- export declare function availableOutputs(document: FlowDocument, graph: Graph, target: string, handle?: string): Readonly<Record<string, readonly string[]>>;
58
- export declare function validateFlowGraph(revision: RevisionContent, closure: SemanticClosure): readonly Diagnostic[];
56
+ export declare function inputSourceCandidates(graph: Graph, target: string, handle: string): Readonly<Record<string, readonly InputSourceCandidate[]>>;
57
+ export declare function availableOutputs(graph: Graph, target: string, handle?: string): Readonly<Record<string, readonly string[]>>;
58
+ export declare function validateFlowGraph(revision: RevisionContent): readonly Diagnostic[];
59
59
  export {};
@@ -3,7 +3,7 @@ export { connectionUsage, removeConnectionUsage } from './flow-connectionUsage.j
3
3
  export { matchesTriggerOutputs, triggerOutputDefinitions, triggerOutputPorts } from './trigger-contract.js';
4
4
  import type { EngineContract } from './engine-contract.js';
5
5
  import type { RuntimeProgram } from './runtime-contract.js';
6
- import type { ConnectorActionCapability, ConnectorCapability, FlowDocument, Graph, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
6
+ import type { ConnectorActionCapability, ConnectorCapability, Graph, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
7
7
  export { availableOutputs, graphOrder, nodeInputPorts } from './flow-graph.js';
8
8
  export { validateModules } from './flow-modules.js';
9
9
  export { matchesSchema, schemaValidationErrors, variableInputCompatible } from './flow-schema.js';
@@ -11,10 +11,8 @@ export { agentInput, agentToolInput, agentToolSchema } from './flow-agent.js';
11
11
  export interface SemanticClosure {
12
12
  readonly dependencies: {
13
13
  readonly bindings: ReadonlySet<string>;
14
- readonly inputBindings: ReadonlySet<string>;
14
+ readonly nodes: ReadonlySet<string>;
15
15
  readonly modules: ReadonlySet<string>;
16
- readonly subflows: ReadonlySet<string>;
17
- readonly tasks: ReadonlySet<string>;
18
16
  };
19
17
  readonly digest: string;
20
18
  }
@@ -45,8 +43,6 @@ export interface PreparedFlow {
45
43
  readonly engineContract: string;
46
44
  readonly graph: Graph;
47
45
  readonly modules: RevisionContent['modules'];
48
- readonly subflows: FlowDocument['subflows'];
49
- readonly tasks: FlowDocument['tasks'];
50
46
  }
51
47
  export type PrepareFlowResult = {
52
48
  readonly kind: 'engine-unsupported';
@@ -60,6 +56,5 @@ export type PrepareFlowResult = {
60
56
  };
61
57
  export declare function prepareFlow(revision: RevisionContent, engineContract: string, triggerId?: string): Promise<PrepareFlowResult>;
62
58
  export declare function createRuntimeProgram(prepared: PreparedFlow, entryModuleId: string, engineDigest: string): RuntimeProgram | undefined;
63
- export declare function referencedTaskIds(flow: Pick<FlowDocument, 'graph' | 'subflows' | 'tasks'>): ReadonlySet<string>;
64
- export declare function agentActions(flow: Pick<PreparedFlow, 'tasks'>): readonly ConnectorActionCapability[];
65
- export declare function codeActions(flow: Pick<PreparedFlow, 'graph' | 'subflows'>): readonly ConnectorCapability[];
59
+ export declare function agentActions(flow: Pick<PreparedFlow, 'graph'>): readonly ConnectorActionCapability[];
60
+ export declare function codeActions(flow: Pick<PreparedFlow, 'graph'>): readonly ConnectorCapability[];