@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
@@ -8734,6 +8734,7 @@ function schemaEqualsChecker(extendsContext) {
8734
8734
  if (value1 === null || value2 === null) return false;
8735
8735
  if (typeof value1 !== "object") return false;
8736
8736
  if (typeof value1 !== typeof value2) return false;
8737
+ if (extendsContext.isExtendsSchema(value1) || extendsContext.isExtendsSchema(value2)) return extendsContext.equals(value1, value2);
8737
8738
  if (isCompiledSchema(value1) && isCompiledSchema(value2)) return isCompiledSchemaEquals(value1, value2);
8738
8739
  return isObjectLikeEquals(value1, value2);
8739
8740
  }
@@ -9463,10 +9464,17 @@ var SingleSelectSchema = class SingleSelectSchema extends SpecialSchema {
9463
9464
  }
9464
9465
  constructor(id, value, context) {
9465
9466
  if (!SingleSelectSchema.isMatch(value)) throw new TypeError("Invalid single-select schema.");
9466
- super(id, value, context);
9467
+ const validator = new Validator(structuredClone(value), "7");
9468
+ super(id, { enum: value.enum.filter((item) => validator.validate(item).valid) }, context);
9467
9469
  }
9468
9470
  compareImpl(other) {
9469
- if (isStringLikeSchema(other)) return [ExpressionSingleResult.ContainedBy];
9471
+ 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];
9472
+ if (isStringLikeSchema(other)) {
9473
+ const validator = new Validator(structuredClone(other), "7");
9474
+ const accepted = this.value.enum.filter((item) => validator.validate(item).valid).length;
9475
+ if (accepted == this.value.enum.length) return [ExpressionSingleResult.ContainedBy];
9476
+ return [accepted == 0 ? ExpressionSingleResult.Rejection : ExpressionSingleResult.Intersection];
9477
+ }
9470
9478
  if (other instanceof SingleSelectSchema) {
9471
9479
  const f = new Set(this.value.enum);
9472
9480
  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;
@@ -24,6 +24,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
24
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
  THE SOFTWARE.
26
26
 
27
+ ## @cfworker/json-schema - 4.1.1 (MIT)
28
+
27
29
  ## @wopjs/cast - 0.1.16 (MIT)
28
30
 
29
31
  MIT License