@oomol-lab/open-flow 0.1.0-beta.90 → 0.1.0-beta.91

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 (37) hide show
  1. package/dist/browser/{FlowCanvas-C4iuvVKB.js → FlowCanvas-CZEphIhX.js} +169 -2324
  2. package/dist/browser/{createResourceDialog-BstGO0m4.js → createResourceDialog-CJbZa2gA.js} +2 -2
  3. package/dist/browser/{dialog-Bi-MVTGj.js → dialog-E1WkapJU.js} +10 -2
  4. package/dist/browser/{exportPng-DMsB9ku_.js → exportPng-c4or5th8.js} +2 -2
  5. package/dist/browser/{flowChanges-SKYJBr6X.js → flowChanges-DsLZdENA.js} +20 -37
  6. package/dist/browser/{flowWorkspace-4UHRaHcz.js → flowWorkspace-CxLQWUdj.js} +54 -19
  7. package/dist/browser/{markdownContent-B75ojl0E.js → markdownContent-BsdTdwBU.js} +1 -1
  8. package/dist/browser/preview.js +231 -68
  9. package/dist/browser/workbench.js +6 -6
  10. package/dist/browser/{workbenchSelect-CHOeceKA.js → workbenchSelect-BfQfMWuY.js} +1 -1
  11. package/dist/browser/{wrapLayout-DU5HG1qH.js → wrapLayout-ZOG4AikN.js} +2493 -200
  12. package/dist/command/index.js +58 -55
  13. package/dist/common/control-api-conformance.js +896 -8
  14. package/dist/common/control-api.js +896 -8
  15. package/dist/common/control-requests.js +17 -6
  16. package/dist/common/decision.js +10 -2
  17. package/dist/common/flow-authoring.js +896 -8
  18. package/dist/common/flow-change.js +896 -8
  19. package/dist/common/flow-encoding.js +896 -8
  20. package/dist/common/flow-semantics.js +10 -2
  21. package/dist/common/integration-trigger.js +10 -2
  22. package/dist/common/licenses.md +2 -0
  23. package/dist/common/mcp.js +896 -8
  24. package/dist/common/openapi.js +10 -2
  25. package/dist/common/poll-trigger.js +10 -2
  26. package/dist/common/provider-triggers.js +1 -1
  27. package/dist/common/scheduler.js +10 -2
  28. package/dist/common/webhook-trigger.js +890 -2
  29. package/dist/common/workflow.js +14 -3
  30. package/dist/render/browser/runtime.js +966 -59
  31. package/dist/render/node/index.js +792 -4
  32. package/package.json +1 -1
  33. package/src/control/common/authoringTools.ts +4 -2
  34. package/src/flow/common/schemaComparer.ts +12 -2
  35. package/src/json-schema-subset/checker/equals.ts +3 -0
  36. package/src/trigger/providers/catalog.generated.json +9 -1
  37. package/src/workflow/common/workflow.ts +4 -3
@@ -2855,6 +2855,7 @@ function schemaEqualsChecker(extendsContext) {
2855
2855
  if (value1 === null || value2 === null) return false;
2856
2856
  if (typeof value1 !== "object") return false;
2857
2857
  if (typeof value1 !== typeof value2) return false;
2858
+ if (extendsContext.isExtendsSchema(value1) || extendsContext.isExtendsSchema(value2)) return extendsContext.equals(value1, value2);
2858
2859
  if (isCompiledSchema(value1) && isCompiledSchema(value2)) return isCompiledSchemaEquals(value1, value2);
2859
2860
  return isObjectLikeEquals(value1, value2);
2860
2861
  }
@@ -3584,10 +3585,17 @@ var SingleSelectSchema = class SingleSelectSchema extends SpecialSchema {
3584
3585
  }
3585
3586
  constructor(id, value, context) {
3586
3587
  if (!SingleSelectSchema.isMatch(value)) throw new TypeError("Invalid single-select schema.");
3587
- super(id, value, context);
3588
+ const validator = new Validator(structuredClone(value), "7");
3589
+ super(id, { enum: value.enum.filter((item) => validator.validate(item).valid) }, context);
3588
3590
  }
3589
3591
  compareImpl(other) {
3590
- if (isStringLikeSchema(other)) return [ExpressionSingleResult.ContainedBy];
3592
+ if (this.value.enum.length == 0) return [(other instanceof SingleSelectSchema ? other.value.enum.length == 0 : isCompiledSchema(other) && getKind(other) === CompiledKind.Never) ? ExpressionSingleResult.Equals : ExpressionSingleResult.ContainedBy];
3593
+ if (isStringLikeSchema(other)) {
3594
+ const validator = new Validator(structuredClone(other), "7");
3595
+ const accepted = this.value.enum.filter((item) => validator.validate(item).valid).length;
3596
+ if (accepted == this.value.enum.length) return [ExpressionSingleResult.ContainedBy];
3597
+ return [accepted == 0 ? ExpressionSingleResult.Rejection : ExpressionSingleResult.Intersection];
3598
+ }
3591
3599
  if (other instanceof SingleSelectSchema) {
3592
3600
  const f = new Set(this.value.enum);
3593
3601
  let result = ExpressionSingleResult.Equals;
@@ -2838,6 +2838,7 @@ function schemaEqualsChecker(extendsContext) {
2838
2838
  if (value1 === null || value2 === null) return false;
2839
2839
  if (typeof value1 !== "object") return false;
2840
2840
  if (typeof value1 !== typeof value2) return false;
2841
+ if (extendsContext.isExtendsSchema(value1) || extendsContext.isExtendsSchema(value2)) return extendsContext.equals(value1, value2);
2841
2842
  if (isCompiledSchema(value1) && isCompiledSchema(value2)) return isCompiledSchemaEquals(value1, value2);
2842
2843
  return isObjectLikeEquals(value1, value2);
2843
2844
  }
@@ -3567,10 +3568,17 @@ var SingleSelectSchema = class SingleSelectSchema extends SpecialSchema {
3567
3568
  }
3568
3569
  constructor(id, value, context) {
3569
3570
  if (!SingleSelectSchema.isMatch(value)) throw new TypeError("Invalid single-select schema.");
3570
- super(id, value, context);
3571
+ const validator = new Validator(structuredClone(value), "7");
3572
+ super(id, { enum: value.enum.filter((item) => validator.validate(item).valid) }, context);
3571
3573
  }
3572
3574
  compareImpl(other) {
3573
- if (isStringLikeSchema(other)) return [ExpressionSingleResult.ContainedBy];
3575
+ if (this.value.enum.length == 0) return [(other instanceof SingleSelectSchema ? other.value.enum.length == 0 : isCompiledSchema(other) && getKind(other) === CompiledKind.Never) ? ExpressionSingleResult.Equals : ExpressionSingleResult.ContainedBy];
3576
+ if (isStringLikeSchema(other)) {
3577
+ const validator = new Validator(structuredClone(other), "7");
3578
+ const accepted = this.value.enum.filter((item) => validator.validate(item).valid).length;
3579
+ if (accepted == this.value.enum.length) return [ExpressionSingleResult.ContainedBy];
3580
+ return [accepted == 0 ? ExpressionSingleResult.Rejection : ExpressionSingleResult.Intersection];
3581
+ }
3574
3582
  if (other instanceof SingleSelectSchema) {
3575
3583
  const f = new Set(this.value.enum);
3576
3584
  let result = ExpressionSingleResult.Equals;