@oomol-lab/open-flow 0.1.0-beta.61 → 0.1.0-beta.63

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 (55) hide show
  1. package/dist/browser/{createResourceDialog-D71fO68i.js → createResourceDialog-BAJXbzNH.js} +20 -7
  2. package/dist/browser/flow-authoring.js +8 -7
  3. package/dist/browser/flow-change-schema.d.ts +1 -0
  4. package/dist/browser/flow-change.d.ts +1 -0
  5. package/dist/browser/flow-change.js +8 -7
  6. package/dist/browser/{flowChanges-DSA0FxxN.js → flowChanges-DpZOQuJE.js} +3001 -2588
  7. package/dist/browser/{flowRunInputEditorStore-Dsxyfwae.js → flowRunInputEditorStore-B2Rw4VsT.js} +1 -1
  8. package/dist/browser/{flowWorkspace-0sUJ5JhQ.js → flowWorkspace-B7a5NNA_.js} +217 -83
  9. package/dist/browser/{icons-DVJvrj1H.js → icons-Db2Jb2iX.js} +2907 -2887
  10. package/dist/browser/preview.css +5 -6
  11. package/dist/browser/preview.js +889 -541
  12. package/dist/browser/{typeScriptSession-fXPMFGjW.js → typeScriptSession-D0bjYDeg.js} +1 -1
  13. package/dist/browser/ui.css +4 -5
  14. package/dist/browser/ui.js +2 -2
  15. package/dist/browser/{value-DL_poNiC.js → value-BADHeZ9I.js} +12 -1
  16. package/dist/browser/workbench-contract.d.ts +10 -0
  17. package/dist/browser/workbench.css +9 -26
  18. package/dist/browser/workbench.d.ts +5 -3
  19. package/dist/browser/workbench.js +272 -178
  20. package/dist/browser/{workbenchSelect-cr4-mKq3.js → workbenchSelect-C-jf6NIM.js} +1 -1
  21. package/dist/command/index.js +45 -44
  22. package/dist/common/authoring.d.ts +1 -1
  23. package/dist/common/authoringSchema.d.ts +1 -0
  24. package/dist/common/connector-action.d.ts +1 -0
  25. package/dist/common/connector-action.js +15 -12
  26. package/dist/common/control-api-conformance.js +1371 -1207
  27. package/dist/common/control-api-errors.d.ts +0 -4
  28. package/dist/common/control-api.d.ts +18 -11
  29. package/dist/common/control-api.js +2053 -2274
  30. package/dist/common/control-requests.d.ts +6 -0
  31. package/dist/common/control-requests.js +64 -33
  32. package/dist/common/decision.js +8 -7
  33. package/dist/common/flow-connectionUsage.d.ts +1 -0
  34. package/dist/common/flow-encoding.d.ts +1 -0
  35. package/dist/common/flow-encoding.js +202 -10
  36. package/dist/common/flow-semantics.js +64 -46
  37. package/dist/common/flow-workflowFile.d.ts +23 -0
  38. package/dist/common/integration-trigger.js +8 -7
  39. package/dist/common/liveDetails.d.ts +138 -0
  40. package/dist/common/localization.d.ts +1 -0
  41. package/dist/common/localization.js +12 -1
  42. package/dist/common/mcp.d.ts +55 -26
  43. package/dist/common/mcp.js +377 -245
  44. package/dist/common/openapi.js +8 -7
  45. package/dist/common/poll-trigger.js +8 -7
  46. package/dist/common/runtime-contract.js +1 -1
  47. package/dist/common/scheduler.d.ts +22 -2
  48. package/dist/common/scheduler.js +354 -83
  49. package/dist/common/trigger-config.d.ts +2 -0
  50. package/dist/common/webhook-trigger.js +8 -7
  51. package/dist/index.d.ts +2 -2
  52. package/package.json +1 -1
  53. package/skills/open-flow/SKILL.md +6 -3
  54. package/skills/open-flow/references/flow-authoring.md +48 -24
  55. package/dist/common/publicationResources.d.ts +0 -29
@@ -6801,7 +6801,8 @@ var managedFields = object$1({
6801
6801
  object$1({
6802
6802
  kind: literal("connector"),
6803
6803
  action: text,
6804
- connectionId: text.optional()
6804
+ connectionId: text.optional(),
6805
+ outputMode: literal("value").optional()
6805
6806
  }),
6806
6807
  object$1({
6807
6808
  kind: literal("openapi"),
@@ -8186,10 +8187,10 @@ function compileEnumAndConst(context, enumList, constValue, schema) {
8186
8187
  }
8187
8188
  if (compiledEnum.length === 0) recordWarn(context, "all of elements from list is rejected by currently schema object", "enum");
8188
8189
  }
8189
- if (constValue && valid(schema, constValue) === ValidResult.Invalid) isNever = true;
8190
+ if (constValue !== void 0 && valid(schema, constValue) === ValidResult.Invalid) isNever = true;
8190
8191
  if (compiledEnum) {
8191
8192
  if (compiledEnum.length === 0) isNever = true;
8192
- else if (constValue) {
8193
+ else if (constValue !== void 0) {
8193
8194
  let foundEquals = false;
8194
8195
  for (const enumValue of compiledEnum) if (isDeepEquals(enumValue, constValue)) {
8195
8196
  foundEquals = true;
@@ -8202,7 +8203,7 @@ function compileEnumAndConst(context, enumList, constValue, schema) {
8202
8203
  const compiledSchema = {};
8203
8204
  if (schema.type) compiledSchema.type = schema.type;
8204
8205
  if (compiledEnum) compiledSchema.enum = compiledEnum;
8205
- if (constValue) compiledSchema.const = wrapCompiledValue(deepCopy(constValue));
8206
+ if (constValue !== void 0) compiledSchema.const = wrapCompiledValue(deepCopy(constValue));
8206
8207
  return wrapCompiledSchema(kind, compiledSchema, context.delegate, context.path);
8207
8208
  }
8208
8209
  //#endregion
@@ -8597,7 +8598,7 @@ function compileSchema(context, schema) {
8597
8598
  let targetSchema = schema;
8598
8599
  let shouldHandleEnumAndConst = false;
8599
8600
  const { enum: enumList, const: constValue } = schema;
8600
- if (enumList || constValue) {
8601
+ if (enumList || constValue !== void 0) {
8601
8602
  const { enum: _0, const: _1, ...rest } = schema;
8602
8603
  targetSchema = rest;
8603
8604
  shouldHandleEnumAndConst = true;
@@ -9187,7 +9188,7 @@ function schemaEqualsChecker(extendsContext) {
9187
9188
  }
9188
9189
  function isValueEquals(value1, value2) {
9189
9190
  if (value1 === value2) return true;
9190
- if (value1 === null) return false;
9191
+ if (value1 === null || value2 === null) return false;
9191
9192
  if (typeof value1 !== "object") return false;
9192
9193
  if (typeof value1 !== typeof value2) return false;
9193
9194
  if (isCompiledSchema(value1) && isCompiledSchema(value2)) return isCompiledSchemaEquals(value1, value2);
@@ -9753,7 +9754,7 @@ function findMismatchPath(source, target) {
9753
9754
  if ((sourceSchema.maxProperties ?? Number.POSITIVE_INFINITY) > (targetSchema.maxProperties ?? Number.POSITIVE_INFINITY)) return [...targetPath, "maxProperties"];
9754
9755
  break;
9755
9756
  }
9756
- case CompiledKind.EnumOrConst: return [...targetPath, targetSchema.const == null ? "enum" : "const"];
9757
+ case CompiledKind.EnumOrConst: return [...targetPath, targetSchema.const === void 0 ? "enum" : "const"];
9757
9758
  }
9758
9759
  return targetPath;
9759
9760
  }
@@ -6808,7 +6808,8 @@ var managedFields = object({
6808
6808
  object({
6809
6809
  kind: literal("connector"),
6810
6810
  action: text,
6811
- connectionId: text.optional()
6811
+ connectionId: text.optional(),
6812
+ outputMode: literal("value").optional()
6812
6813
  }),
6813
6814
  object({
6814
6815
  kind: literal("openapi"),
@@ -8193,10 +8194,10 @@ function compileEnumAndConst(context, enumList, constValue, schema) {
8193
8194
  }
8194
8195
  if (compiledEnum.length === 0) recordWarn(context, "all of elements from list is rejected by currently schema object", "enum");
8195
8196
  }
8196
- if (constValue && valid(schema, constValue) === ValidResult.Invalid) isNever = true;
8197
+ if (constValue !== void 0 && valid(schema, constValue) === ValidResult.Invalid) isNever = true;
8197
8198
  if (compiledEnum) {
8198
8199
  if (compiledEnum.length === 0) isNever = true;
8199
- else if (constValue) {
8200
+ else if (constValue !== void 0) {
8200
8201
  let foundEquals = false;
8201
8202
  for (const enumValue of compiledEnum) if (isDeepEquals(enumValue, constValue)) {
8202
8203
  foundEquals = true;
@@ -8209,7 +8210,7 @@ function compileEnumAndConst(context, enumList, constValue, schema) {
8209
8210
  const compiledSchema = {};
8210
8211
  if (schema.type) compiledSchema.type = schema.type;
8211
8212
  if (compiledEnum) compiledSchema.enum = compiledEnum;
8212
- if (constValue) compiledSchema.const = wrapCompiledValue(deepCopy(constValue));
8213
+ if (constValue !== void 0) compiledSchema.const = wrapCompiledValue(deepCopy(constValue));
8213
8214
  return wrapCompiledSchema(kind, compiledSchema, context.delegate, context.path);
8214
8215
  }
8215
8216
  //#endregion
@@ -8604,7 +8605,7 @@ function compileSchema(context, schema) {
8604
8605
  let targetSchema = schema;
8605
8606
  let shouldHandleEnumAndConst = false;
8606
8607
  const { enum: enumList, const: constValue } = schema;
8607
- if (enumList || constValue) {
8608
+ if (enumList || constValue !== void 0) {
8608
8609
  const { enum: _0, const: _1, ...rest } = schema;
8609
8610
  targetSchema = rest;
8610
8611
  shouldHandleEnumAndConst = true;
@@ -9194,7 +9195,7 @@ function schemaEqualsChecker(extendsContext) {
9194
9195
  }
9195
9196
  function isValueEquals(value1, value2) {
9196
9197
  if (value1 === value2) return true;
9197
- if (value1 === null) return false;
9198
+ if (value1 === null || value2 === null) return false;
9198
9199
  if (typeof value1 !== "object") return false;
9199
9200
  if (typeof value1 !== typeof value2) return false;
9200
9201
  if (isCompiledSchema(value1) && isCompiledSchema(value2)) return isCompiledSchemaEquals(value1, value2);
@@ -9760,7 +9761,7 @@ function findMismatchPath(source, target) {
9760
9761
  if ((sourceSchema.maxProperties ?? Number.POSITIVE_INFINITY) > (targetSchema.maxProperties ?? Number.POSITIVE_INFINITY)) return [...targetPath, "maxProperties"];
9761
9762
  break;
9762
9763
  }
9763
- case CompiledKind.EnumOrConst: return [...targetPath, targetSchema.const == null ? "enum" : "const"];
9764
+ case CompiledKind.EnumOrConst: return [...targetPath, targetSchema.const === void 0 ? "enum" : "const"];
9764
9765
  }
9765
9766
  return targetPath;
9766
9767
  }
@@ -398,7 +398,7 @@ export default () => fs.readFileSync('/etc/passwd', 'utf8')`)
398
398
  program: program(harness, `export default async (_input, context) => ({ available: typeof context.outputs, previous: await context.getPrevious(), value: 1 })`)
399
399
  }), {
400
400
  available: "undefined",
401
- previous: null,
401
+ previous: [],
402
402
  value: 1
403
403
  }, "Final Task outputs");
404
404
  }
@@ -9,6 +9,8 @@ export interface WaitResolution {
9
9
  readonly resolvedAt: string;
10
10
  readonly comment: string | null;
11
11
  }
12
+ export declare class PortValidationError extends Error {
13
+ }
12
14
  export type SchedulerEvent = {
13
15
  readonly flowId: string;
14
16
  readonly parentJobId?: string;
@@ -103,6 +105,24 @@ export interface WaitHost {
103
105
  readonly resolutions: (waitIds: readonly string[], block: boolean) => Effect.Effect<Readonly<Record<string, WaitResolution>>, Error>;
104
106
  }
105
107
  export declare const waitRetentionMs = 120000;
108
+ export interface DependenciesCheckpoint {
109
+ nextId: number;
110
+ iterations: Record<string, number>;
111
+ nodes: Record<string, DependencyState>;
112
+ }
113
+ interface DependencyState {
114
+ id: number;
115
+ status: 'pending' | 'running' | 'completed' | 'skipped';
116
+ input: Record<string, {
117
+ readonly execution: number;
118
+ readonly outputs: Readonly<Record<string, JsonValue>>;
119
+ }>;
120
+ output?: Readonly<Record<string, JsonValue>>;
121
+ previous: string[];
122
+ released: string[];
123
+ jobId?: string;
124
+ seeded: boolean;
125
+ }
106
126
  export interface FlowRunCheckpoint {
107
127
  readonly bindingValues: Readonly<Record<string, string>>;
108
128
  readonly inputs: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
@@ -111,7 +131,7 @@ export interface FlowRunCheckpoint {
111
131
  readonly outputs: Readonly<Record<string, JsonValue>>;
112
132
  }>>;
113
133
  readonly counts: Readonly<Record<string, Readonly<Record<string, number>>>>;
114
- readonly frames: Readonly<Record<string, Readonly<Record<string, Readonly<Record<string, JsonValue>>>>>>;
134
+ readonly dependencies: DependenciesCheckpoint;
115
135
  readonly version: 5;
116
136
  readonly waits: readonly PendingWait[];
117
137
  readonly agents: Readonly<Record<string, {
@@ -143,7 +163,7 @@ interface TaskInvocationBase {
143
163
  export type TaskInvocation = TaskInvocationBase & ({
144
164
  readonly capabilities: readonly ConnectorCapability[];
145
165
  readonly moduleId: string;
146
- readonly getPrevious: () => PreviousNode | null;
166
+ readonly getPrevious: () => readonly PreviousNode[];
147
167
  } | {
148
168
  readonly kind: 'managed';
149
169
  });