@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.40
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/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
- package/dist/browser/carbon-Cn-DTyjG.js +54 -0
- package/dist/browser/codeDiagnostics-BtH_YuXu.js +44 -0
- package/dist/browser/createResourceDialog-BOrW62JW.js +110 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/dist-Cdna4VV_.js +795 -0
- package/dist/browser/dist-CoszrK7m.js +4 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
- package/dist/browser/{dist-CeSZ2xSM.js → dist-DINmJ4Gr.js} +171 -112
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
- package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
- package/dist/browser/editorComponent-0skblWYk.js +16795 -0
- package/dist/browser/{esm-C9jQK70n.js → esm-B7A42FzW.js} +68 -59
- package/dist/browser/event-sources.d.ts +30 -0
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +34 -17
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +15906 -457
- package/dist/browser/flow-change-schema.d.ts +11 -0
- package/dist/browser/flow-change.d.ts +245 -44
- package/dist/browser/flow-change.js +5517 -117
- package/dist/browser/flow-input-value.d.ts +6 -0
- package/dist/browser/flow-notifications.d.ts +11 -2
- package/dist/browser/flowChanges-3o9Vs_1I.js +10137 -0
- package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-Bgb5vSeS.js} +864 -4000
- package/dist/browser/flowWorkspace-DJzQVVtZ.js +43418 -0
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +39 -0
- package/dist/browser/inputValues-DkDT6u0o.js +43 -0
- package/dist/browser/licenses.md +137 -662
- package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → lite-BA96NG4M.js} +4409 -2987
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-D2oHGWc6.js} +53 -53
- package/dist/browser/theme.css +529 -34
- package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-v9Pb3G6d.js} +190 -191
- package/dist/browser/ui-input.d.ts +5 -0
- package/dist/browser/ui-label.d.ts +3 -0
- package/dist/browser/ui-textarea.d.ts +3 -0
- package/dist/browser/ui.css +3 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +62 -0
- package/dist/browser/ui.js +5407 -0
- package/dist/browser/value-B_yE9ean.js +101 -0
- package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
- package/dist/browser/webhook-method.d.ts +3 -0
- package/dist/browser/workbench-contract.d.ts +27 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +2 -3
- package/dist/browser/workbench.js +4212 -1472
- package/dist/browser/workbenchSelect-B5zXyaaX.js +6423 -0
- package/dist/common/authoringExamples.d.ts +28 -0
- package/dist/common/connectorDecoders.d.ts +9 -0
- package/dist/common/control-api-conformance.d.ts +57 -0
- package/dist/common/control-api-conformance.js +9793 -208
- package/dist/common/control-api-errors.d.ts +49 -0
- package/dist/common/control-api.d.ts +484 -57
- package/dist/common/control-api.js +8917 -531
- package/dist/common/control-requests.d.ts +129 -0
- package/dist/common/control-requests.js +8662 -0
- package/dist/common/cron-trigger.d.ts +2 -1
- package/dist/common/cron-trigger.js +27 -24
- package/dist/common/draftOperations.d.ts +13 -0
- package/dist/common/engine-contract.d.ts +3 -1
- package/dist/common/event-sources.d.ts +49 -0
- package/dist/common/feishu-events.d.ts +19 -0
- package/dist/common/feishu-subscriptions.d.ts +10 -0
- package/dist/common/flow-agent.d.ts +10 -0
- package/dist/common/flow-connectionUsage.d.ts +12 -0
- package/dist/common/flow-encoding.d.ts +10 -2
- package/dist/common/flow-encoding.js +5170 -84
- package/dist/common/flow-graph.d.ts +59 -0
- package/dist/common/flow-json.d.ts +2 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-notifications.d.ts +11 -2
- package/dist/common/flow-schema.d.ts +17 -0
- package/dist/common/flow-semantics.d.ts +15 -7
- package/dist/common/flow-semantics.js +16394 -9734
- package/dist/common/flowInspection.d.ts +105 -0
- package/dist/common/fr-ClB96SQY.js +298 -0
- package/dist/common/integration-trigger.d.ts +30 -2
- package/dist/common/integration-trigger.js +7880 -71
- package/dist/common/ja-BJF-VrP2.js +298 -0
- package/dist/common/ko-Bght_VaB.js +298 -0
- package/dist/common/localization.d.ts +2 -0
- package/dist/common/localization.js +37 -1
- package/dist/common/mcp-conformance.d.ts +2 -0
- package/dist/common/mcp.d.ts +964 -0
- package/dist/common/mcp.js +9358 -0
- package/dist/common/poll-trigger.d.ts +7 -0
- package/dist/common/poll-trigger.js +7702 -25
- package/dist/common/provider-triggers.d.ts +4 -0
- package/dist/common/provider-triggers.js +11554 -2275
- package/dist/common/providerAccess.d.ts +20 -0
- package/dist/common/ru-DrP4BRM5.js +298 -0
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +11 -16
- package/dist/common/run-lifecycle.d.ts +5 -1
- package/dist/common/run-lifecycle.js +33 -3
- package/dist/common/run-results.d.ts +57 -0
- package/dist/common/runtime-contract.d.ts +38 -3
- package/dist/common/runtime-contract.js +312 -19
- package/dist/common/scheduler.d.ts +83 -60
- package/dist/common/scheduler.js +8625 -545
- package/dist/common/trigger-catalog.d.ts +22 -0
- package/dist/common/trigger-config-options.d.ts +13 -0
- package/dist/common/trigger-config.d.ts +7 -0
- package/dist/common/trigger-contract.d.ts +7 -0
- package/dist/common/trigger-localization.d.ts +7 -0
- package/dist/common/webhook-trigger.d.ts +5 -3
- package/dist/common/webhook-trigger.js +7071 -67
- package/dist/common/zh-CN-CxZ3yYfR.js +298 -0
- package/dist/common/zh-TW-CRmc3FMz.js +298 -0
- package/dist/index.d.ts +5 -5
- package/package.json +21 -1
- package/dist/browser/DesignerIcon-DdfuH2jW.js +0 -2066
- package/dist/browser/carbon-DMCVsjHo.js +0 -53
- package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
- package/dist/browser/dist-BMqL-qR5.js +0 -1894
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CP0883sY.js +0 -4
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/flowChanges-Bs-ZcJV8.js +0 -12006
- package/dist/browser/flowWorkspace-BewofPeU.js +0 -45575
- package/dist/browser/icons-DRoMXL5h.js +0 -521
- package/dist/browser/languages-DgJehE1g.js +0 -62
- package/dist/browser/lib-GrGxYjsJ.js +0 -7855
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/waitNotificationInputs-DtrPBwA1.js +0 -26
- package/dist/browser/workbenchSelect-CX8KtT7L.js +0 -1375
|
@@ -0,0 +1,59 @@
|
|
|
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';
|
|
3
|
+
export declare function isResolutionNode(node: GraphNode | undefined): node is Extract<GraphNode, {
|
|
4
|
+
readonly kind: 'approval' | 'wait';
|
|
5
|
+
}>;
|
|
6
|
+
export declare function nodeInputPorts(document: FlowDocument, node: GraphNode): Readonly<Record<string, InputPortDefinition>>;
|
|
7
|
+
export declare function resolutionActions(node: Extract<GraphNode, {
|
|
8
|
+
readonly kind: 'approval' | 'wait';
|
|
9
|
+
}>): readonly ['continue'] | readonly ['approve', 'reject'];
|
|
10
|
+
export declare function resolutionOutputPorts(node: Extract<GraphNode, {
|
|
11
|
+
readonly kind: 'approval' | 'wait';
|
|
12
|
+
}>): Readonly<Record<string, PortDefinition>>;
|
|
13
|
+
export declare function nodeOutputPorts(document: FlowDocument, node: GraphNode): Readonly<Record<string, PortDefinition>>;
|
|
14
|
+
export declare function nodeOutputDescription(document: FlowDocument, graph: Graph, nodeId: string, output: string): string | undefined;
|
|
15
|
+
export declare function graphOrder(graph: Graph): readonly string[];
|
|
16
|
+
export type InputSourceCheck = {
|
|
17
|
+
readonly kind: 'available';
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: 'source-missing';
|
|
20
|
+
} | {
|
|
21
|
+
readonly kind: 'output-missing';
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: 'field-missing';
|
|
24
|
+
} | {
|
|
25
|
+
readonly kind: 'not-ready';
|
|
26
|
+
} | {
|
|
27
|
+
readonly kind: 'schema';
|
|
28
|
+
readonly mismatch: SchemaMismatch;
|
|
29
|
+
} | {
|
|
30
|
+
readonly kind: 'schema-error';
|
|
31
|
+
};
|
|
32
|
+
export type InputSourceCandidateCheck = Extract<InputSourceCheck, {
|
|
33
|
+
readonly kind: 'available' | 'schema' | 'schema-error';
|
|
34
|
+
}>;
|
|
35
|
+
interface InputSourceFieldCandidate {
|
|
36
|
+
readonly description?: string;
|
|
37
|
+
readonly output: string;
|
|
38
|
+
readonly field: string;
|
|
39
|
+
readonly check: InputSourceCandidateCheck;
|
|
40
|
+
}
|
|
41
|
+
export interface InputSourceCandidate {
|
|
42
|
+
readonly description?: string;
|
|
43
|
+
readonly field?: string;
|
|
44
|
+
readonly fields?: readonly InputSourceFieldCandidate[];
|
|
45
|
+
readonly output: string;
|
|
46
|
+
readonly check: InputSourceCandidateCheck;
|
|
47
|
+
}
|
|
48
|
+
export interface InputSourcesCheck {
|
|
49
|
+
readonly conflict: boolean;
|
|
50
|
+
readonly sources: readonly InputSourceCheck[];
|
|
51
|
+
}
|
|
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;
|
|
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[];
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EngineContract } from './engine-contract.js';
|
|
2
|
+
import type { RevisionContent } from '../browser/flow-change.js';
|
|
3
|
+
import type { Diagnostic } from './flow-semantics.js';
|
|
4
|
+
interface ImportReference {
|
|
5
|
+
readonly column: number;
|
|
6
|
+
readonly imported: readonly string[];
|
|
7
|
+
readonly line: number;
|
|
8
|
+
readonly specifier: string;
|
|
9
|
+
}
|
|
10
|
+
interface ModuleAnalysis {
|
|
11
|
+
readonly exports: ReadonlySet<string>;
|
|
12
|
+
readonly imports: readonly ImportReference[];
|
|
13
|
+
}
|
|
14
|
+
export declare function compareDiagnostics(left: Diagnostic, right: Diagnostic): number;
|
|
15
|
+
export declare function validateModuleGraph(revision: RevisionContent, moduleIds: readonly string[], engine: EngineContract): {
|
|
16
|
+
readonly analysis: ReadonlyMap<string, ModuleAnalysis>;
|
|
17
|
+
readonly diagnostics: Diagnostic[];
|
|
18
|
+
};
|
|
19
|
+
export declare function validateModules(revision: RevisionContent, moduleIds: readonly string[], engine: EngineContract): readonly Diagnostic[];
|
|
20
|
+
export {};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FlowCatalogEvent = {
|
|
2
2
|
readonly kind: 'flows.changed';
|
|
3
3
|
readonly version: 1;
|
|
4
|
-
}
|
|
4
|
+
} | {
|
|
5
|
+
readonly kind: 'flow.created';
|
|
6
|
+
readonly flowId: string;
|
|
7
|
+
readonly version: 1;
|
|
8
|
+
};
|
|
5
9
|
export type FlowChangeEvent = {
|
|
10
|
+
readonly accessRevision: number;
|
|
11
|
+
readonly flowId: string;
|
|
12
|
+
readonly kind: 'access.changed';
|
|
13
|
+
readonly version: 1;
|
|
14
|
+
} | {
|
|
6
15
|
readonly kind: 'draft.changed';
|
|
7
16
|
readonly flowId: string;
|
|
8
17
|
readonly revisionId: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { JsonValue, PortDefinition, SchemaMismatch } from '../browser/flow-change.js';
|
|
2
|
+
export declare function schemaObject(schema: JsonValue): Readonly<Record<string, JsonValue>> | undefined;
|
|
3
|
+
export declare function schemaList(value: JsonValue | undefined): readonly JsonValue[] | undefined;
|
|
4
|
+
export declare function matchesSchema(value: JsonValue, schema: JsonValue): boolean;
|
|
5
|
+
export type PortCompareResult = {
|
|
6
|
+
readonly kind: 'compatible';
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: 'compare-error';
|
|
9
|
+
readonly message: string;
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: 'incompatible';
|
|
12
|
+
readonly mismatch: SchemaMismatch;
|
|
13
|
+
};
|
|
14
|
+
export declare function comparePorts(source: PortDefinition, target: PortDefinition): PortCompareResult;
|
|
15
|
+
export declare function portsAssignable(source: PortDefinition, target: PortDefinition): boolean;
|
|
16
|
+
export declare function variableInputCompatible(jsonSchema: JsonValue): boolean;
|
|
17
|
+
export declare function hasRetiredRef(value: unknown): boolean;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
export { connectionUsage, removeConnectionUsage } from './flow-connectionUsage.js';
|
|
2
|
+
export { matchesTriggerOutputs, triggerOutputDefinitions, triggerOutputPorts } from './trigger-contract.js';
|
|
2
3
|
import type { EngineContract } from './engine-contract.js';
|
|
3
4
|
import type { RuntimeProgram } from './runtime-contract.js';
|
|
5
|
+
import type { ConnectorActionCapability, ConnectorCapability, FlowDocument, Graph, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
|
|
6
|
+
export { availableOutputs, graphOrder, nodeInputPorts } from './flow-graph.js';
|
|
7
|
+
export { validateModules } from './flow-modules.js';
|
|
8
|
+
export { matchesSchema, variableInputCompatible } from './flow-schema.js';
|
|
9
|
+
export { agentInput, agentToolInput, agentToolSchema } from './flow-agent.js';
|
|
4
10
|
export interface SemanticClosure {
|
|
5
11
|
readonly dependencies: {
|
|
6
12
|
readonly bindings: ReadonlySet<string>;
|
|
@@ -11,14 +17,16 @@ export interface SemanticClosure {
|
|
|
11
17
|
};
|
|
12
18
|
readonly digest: string;
|
|
13
19
|
}
|
|
14
|
-
export declare function flowDependencies(content: RevisionContent): SemanticClosure['dependencies'];
|
|
20
|
+
export declare function flowDependencies(content: RevisionContent, triggerId?: string): SemanticClosure['dependencies'];
|
|
15
21
|
export declare function flowClosure(content: RevisionContent): Promise<SemanticClosure>;
|
|
16
22
|
export declare function variableBindings(revision: RevisionContent, bindingIds: Iterable<string>): Readonly<Record<string, string>>;
|
|
17
23
|
export interface Diagnostic {
|
|
18
24
|
readonly code: string;
|
|
19
25
|
readonly column: number;
|
|
26
|
+
readonly fields?: readonly string[];
|
|
20
27
|
readonly line: number;
|
|
21
28
|
readonly message: string;
|
|
29
|
+
readonly mismatch?: SchemaMismatch;
|
|
22
30
|
readonly path: string;
|
|
23
31
|
readonly values?: Readonly<Record<string, string | number>>;
|
|
24
32
|
}
|
|
@@ -27,12 +35,9 @@ export interface FlowValidation {
|
|
|
27
35
|
readonly diagnostics: readonly Diagnostic[];
|
|
28
36
|
readonly valid: boolean;
|
|
29
37
|
}
|
|
30
|
-
export declare function triggerPayloadSchema(trigger: TriggerNode): JsonValue;
|
|
31
|
-
export declare function matchesSchema(value: JsonValue, schema: JsonValue): boolean;
|
|
32
|
-
export declare function variableInputCompatible(jsonSchema: JsonValue): boolean;
|
|
33
38
|
export type FlowInputsValidation = 'invalid' | 'valid';
|
|
39
|
+
export declare function validRunTrigger(revision: RevisionContent, value: unknown): boolean;
|
|
34
40
|
export declare function validateFlowInputs(revision: RevisionContent, value: unknown): FlowInputsValidation;
|
|
35
|
-
export declare function validateModules(revision: RevisionContent, moduleIds: readonly string[], engine: EngineContract): readonly Diagnostic[];
|
|
36
41
|
export declare function validateFlow(revision: RevisionContent, engine: EngineContract): Promise<FlowValidation>;
|
|
37
42
|
export interface PreparedFlow {
|
|
38
43
|
readonly closureDigest: string;
|
|
@@ -52,5 +57,8 @@ export type PrepareFlowResult = {
|
|
|
52
57
|
readonly kind: 'prepared';
|
|
53
58
|
readonly validation: FlowValidation;
|
|
54
59
|
};
|
|
55
|
-
export declare function prepareFlow(revision: RevisionContent, engineContract: string): Promise<PrepareFlowResult>;
|
|
60
|
+
export declare function prepareFlow(revision: RevisionContent, engineContract: string, triggerId?: string): Promise<PrepareFlowResult>;
|
|
56
61
|
export declare function createRuntimeProgram(prepared: PreparedFlow, entryModuleId: string, engineDigest: string): RuntimeProgram | undefined;
|
|
62
|
+
export declare function referencedTaskIds(flow: Pick<FlowDocument, 'graph' | 'subflows' | 'tasks'>): ReadonlySet<string>;
|
|
63
|
+
export declare function agentActions(flow: Pick<PreparedFlow, 'tasks'>): readonly ConnectorActionCapability[];
|
|
64
|
+
export declare function codeActions(flow: Pick<PreparedFlow, 'graph' | 'subflows'>): readonly ConnectorCapability[];
|