@oomol-lab/open-flow 0.1.0-beta.3 → 0.1.0-beta.31
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/createResourceDialog-FBRnCMK6.js +110 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/dist-CoszrK7m.js +4 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/dist-DYjIVIZC.js +795 -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-CyH2o-Ji.js +14811 -0
- package/dist/browser/{esm-C2UUqIUP.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 +26 -8
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5278 -313
- package/dist/browser/flow-change-schema.d.ts +11 -0
- package/dist/browser/flow-change.d.ts +193 -18
- package/dist/browser/flow-change.js +5196 -137
- package/dist/browser/flow-notifications.d.ts +11 -2
- package/dist/browser/flowChanges-ScpWTKtQ.js +12293 -0
- package/dist/browser/{flowRunInputEditorStore-CwvOiIiU.js → flowRunInputEditorStore-CTORQcA2.js} +864 -4000
- package/dist/browser/flowWorkspace-CY1r6dwz.js +153101 -0
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +39 -0
- package/dist/browser/inputValues-C21gYJuc.js +43 -0
- package/dist/browser/licenses.md +195 -662
- package/dist/browser/lite-BuKZ8joP.js +8545 -0
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-D2oHGWc6.js} +53 -53
- package/dist/browser/theme.css +527 -34
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
- 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 +2 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +34 -0
- package/dist/browser/ui.js +2632 -0
- package/dist/browser/value-DPg_9yXB.js +93 -0
- package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
- package/dist/browser/workbench-contract.d.ts +27 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +2 -0
- package/dist/browser/workbench.js +2767 -1406
- package/dist/browser/workbenchSelect-DAaGuZwP.js +5971 -0
- package/dist/common/authoringExamples.d.ts +28 -0
- package/dist/common/control-api-conformance.d.ts +7 -0
- package/dist/common/control-api-conformance.js +5570 -171
- package/dist/common/control-api-errors.d.ts +37 -0
- package/dist/common/control-api.d.ts +408 -47
- package/dist/common/control-api.js +6071 -569
- package/dist/common/control-requests.d.ts +104 -0
- package/dist/common/control-requests.js +5401 -0
- package/dist/common/cron-trigger.d.ts +2 -1
- package/dist/common/cron-trigger.js +27 -24
- package/dist/common/draftOperations.d.ts +14 -0
- package/dist/common/engine-contract.d.ts +3 -1
- package/dist/common/event-sources.d.ts +50 -0
- package/dist/common/feishu-events.d.ts +20 -0
- package/dist/common/feishu-subscriptions.d.ts +10 -0
- package/dist/common/flow-agent.d.ts +10 -0
- package/dist/common/flow-encoding.d.ts +16 -2
- package/dist/common/flow-encoding.js +5097 -68
- package/dist/common/flow-graph.d.ts +52 -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 +12 -6
- package/dist/common/flow-semantics.js +15875 -9676
- package/dist/common/flowInspection.d.ts +16 -0
- package/dist/common/fr-iv1541dF.js +93 -0
- package/dist/common/integration-trigger.d.ts +29 -2
- package/dist/common/integration-trigger.js +192 -56
- package/dist/common/ja-Bq-ZDOD4.js +93 -0
- package/dist/common/ko-Z-k9R2c6.js +93 -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 +768 -0
- package/dist/common/mcp.js +6739 -0
- package/dist/common/poll-trigger.d.ts +5 -0
- package/dist/common/poll-trigger.js +26 -22
- package/dist/common/provider-triggers.d.ts +4 -0
- package/dist/common/provider-triggers.js +7312 -1737
- package/dist/common/ru-B4gFecYZ.js +93 -0
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +13 -17
- package/dist/common/run-lifecycle.d.ts +21 -2
- package/dist/common/run-lifecycle.js +83 -2
- package/dist/common/run-results.d.ts +57 -0
- package/dist/common/runtime-contract.d.ts +38 -3
- package/dist/common/runtime-contract.js +291 -19
- package/dist/common/scheduler.d.ts +103 -19
- package/dist/common/scheduler.js +8240 -261
- package/dist/common/trigger-catalog.d.ts +17 -0
- package/dist/common/trigger-config-options.d.ts +13 -0
- package/dist/common/trigger-contract.d.ts +5 -0
- package/dist/common/trigger-localization.d.ts +7 -0
- package/dist/common/webhook-trigger.d.ts +3 -3
- package/dist/common/webhook-trigger.js +64 -18
- package/dist/common/zh-CN-ByQ6nYam.js +93 -0
- package/dist/common/zh-TW-QjIarvX9.js +93 -0
- package/dist/index.d.ts +6 -5
- package/package.json +21 -1
- package/dist/browser/carbon-DMCVsjHo.js +0 -53
- package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
- package/dist/browser/diagnostics-SDCyFuxm.js +0 -11634
- 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/flowWorkspace-BZ_eiQNR.js +0 -45393
- package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
- package/dist/browser/languages-DgJehE1g.js +0 -62
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { FlowDocument, Graph, GraphNode, InputPortDefinition, 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 nodeOutputDescription(document: FlowDocument, graph: Graph, nodeId: string, output: string): string | undefined;
|
|
14
|
+
export declare function graphOrder(graph: Graph): readonly string[];
|
|
15
|
+
export type InputSourceCheck = {
|
|
16
|
+
readonly kind: 'available';
|
|
17
|
+
} | {
|
|
18
|
+
readonly kind: 'source-missing';
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'output-missing';
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: 'not-ready';
|
|
23
|
+
} | {
|
|
24
|
+
readonly kind: 'schema';
|
|
25
|
+
readonly mismatch: SchemaMismatch;
|
|
26
|
+
} | {
|
|
27
|
+
readonly kind: 'schema-error';
|
|
28
|
+
};
|
|
29
|
+
export type InputSourceCandidateCheck = Extract<InputSourceCheck, {
|
|
30
|
+
readonly kind: 'available' | 'schema' | 'schema-error';
|
|
31
|
+
}>;
|
|
32
|
+
export interface InputSourceCandidate {
|
|
33
|
+
readonly output: string;
|
|
34
|
+
readonly check: InputSourceCandidateCheck;
|
|
35
|
+
}
|
|
36
|
+
export interface InputSourcesCheck {
|
|
37
|
+
readonly conflict: boolean;
|
|
38
|
+
readonly sources: readonly InputSourceCheck[];
|
|
39
|
+
}
|
|
40
|
+
/** Check one saved binding without enumerating candidate ports. */
|
|
41
|
+
export declare function checkInputSource(document: FlowDocument, graph: Graph, target: string, handle: string, source: {
|
|
42
|
+
nodeId: string;
|
|
43
|
+
output: string;
|
|
44
|
+
}): InputSourceCheck;
|
|
45
|
+
export declare function checkInputSources(document: FlowDocument, graph: Graph, target: string, handle: string, sources: readonly {
|
|
46
|
+
readonly nodeId: string;
|
|
47
|
+
readonly output: string;
|
|
48
|
+
}[]): InputSourcesCheck;
|
|
49
|
+
/** Enumerate structurally available outputs while retaining their compatibility with one input. */
|
|
50
|
+
export declare function inputSourceCandidates(document: FlowDocument, graph: Graph, target: string, handle: string): Readonly<Record<string, readonly InputSourceCandidate[]>>;
|
|
51
|
+
export declare function availableOutputs(document: FlowDocument, graph: Graph, target: string, handle?: string): Readonly<Record<string, readonly string[]>>;
|
|
52
|
+
export declare function validateFlowGraph(revision: RevisionContent, closure: SemanticClosure): readonly Diagnostic[];
|
|
@@ -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,7 +1,11 @@
|
|
|
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 = {
|
|
6
10
|
readonly kind: 'draft.changed';
|
|
7
11
|
readonly flowId: string;
|
|
@@ -12,4 +16,9 @@ export type FlowChangeEvent = {
|
|
|
12
16
|
readonly kind: 'run.created';
|
|
13
17
|
readonly runId: string;
|
|
14
18
|
readonly version: 1;
|
|
19
|
+
} | {
|
|
20
|
+
readonly flowId: string;
|
|
21
|
+
readonly kind: 'run.changed';
|
|
22
|
+
readonly runId: string;
|
|
23
|
+
readonly version: 1;
|
|
15
24
|
};
|
|
@@ -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,11 @@
|
|
|
1
|
-
|
|
1
|
+
export { matchesTriggerOutputs, triggerOutputDefinitions, triggerOutputPorts } from './trigger-contract.js';
|
|
2
2
|
import type { EngineContract } from './engine-contract.js';
|
|
3
3
|
import type { RuntimeProgram } from './runtime-contract.js';
|
|
4
|
+
import type { ConnectorCapability, FlowDocument, Graph, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
|
|
5
|
+
export { availableOutputs, graphOrder, nodeInputPorts } from './flow-graph.js';
|
|
6
|
+
export { validateModules } from './flow-modules.js';
|
|
7
|
+
export { matchesSchema, variableInputCompatible } from './flow-schema.js';
|
|
8
|
+
export { agentInput, agentToolInput, agentToolSchema } from './flow-agent.js';
|
|
4
9
|
export interface SemanticClosure {
|
|
5
10
|
readonly dependencies: {
|
|
6
11
|
readonly bindings: ReadonlySet<string>;
|
|
@@ -11,6 +16,7 @@ export interface SemanticClosure {
|
|
|
11
16
|
};
|
|
12
17
|
readonly digest: string;
|
|
13
18
|
}
|
|
19
|
+
export declare function flowDependencies(content: RevisionContent, triggerId?: string): SemanticClosure['dependencies'];
|
|
14
20
|
export declare function flowClosure(content: RevisionContent): Promise<SemanticClosure>;
|
|
15
21
|
export declare function variableBindings(revision: RevisionContent, bindingIds: Iterable<string>): Readonly<Record<string, string>>;
|
|
16
22
|
export interface Diagnostic {
|
|
@@ -18,6 +24,7 @@ export interface Diagnostic {
|
|
|
18
24
|
readonly column: number;
|
|
19
25
|
readonly line: number;
|
|
20
26
|
readonly message: string;
|
|
27
|
+
readonly mismatch?: SchemaMismatch;
|
|
21
28
|
readonly path: string;
|
|
22
29
|
readonly values?: Readonly<Record<string, string | number>>;
|
|
23
30
|
}
|
|
@@ -26,12 +33,9 @@ export interface FlowValidation {
|
|
|
26
33
|
readonly diagnostics: readonly Diagnostic[];
|
|
27
34
|
readonly valid: boolean;
|
|
28
35
|
}
|
|
29
|
-
export declare function triggerPayloadSchema(trigger: TriggerNode): JsonValue;
|
|
30
|
-
export declare function matchesSchema(value: JsonValue, schema: JsonValue): boolean;
|
|
31
|
-
export declare function variableInputCompatible(jsonSchema: JsonValue): boolean;
|
|
32
36
|
export type FlowInputsValidation = 'invalid' | 'valid';
|
|
37
|
+
export declare function validRunTrigger(revision: RevisionContent, value: unknown): boolean;
|
|
33
38
|
export declare function validateFlowInputs(revision: RevisionContent, value: unknown): FlowInputsValidation;
|
|
34
|
-
export declare function validateModules(revision: RevisionContent, moduleIds: readonly string[], engine: EngineContract): readonly Diagnostic[];
|
|
35
39
|
export declare function validateFlow(revision: RevisionContent, engine: EngineContract): Promise<FlowValidation>;
|
|
36
40
|
export interface PreparedFlow {
|
|
37
41
|
readonly closureDigest: string;
|
|
@@ -51,5 +55,7 @@ export type PrepareFlowResult = {
|
|
|
51
55
|
readonly kind: 'prepared';
|
|
52
56
|
readonly validation: FlowValidation;
|
|
53
57
|
};
|
|
54
|
-
export declare function prepareFlow(revision: RevisionContent, engineContract: string): Promise<PrepareFlowResult>;
|
|
58
|
+
export declare function prepareFlow(revision: RevisionContent, engineContract: string, triggerId?: string): Promise<PrepareFlowResult>;
|
|
55
59
|
export declare function createRuntimeProgram(prepared: PreparedFlow, entryModuleId: string, engineDigest: string): RuntimeProgram | undefined;
|
|
60
|
+
export declare function agentActions(flow: Pick<PreparedFlow, 'tasks'>): readonly ConnectorCapability[];
|
|
61
|
+
export declare function codeActions(flow: Pick<PreparedFlow, 'graph' | 'subflows'>): readonly ConnectorCapability[];
|