@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.
- package/dist/browser/{FlowCanvas-C4iuvVKB.js → FlowCanvas-CZEphIhX.js} +169 -2324
- package/dist/browser/{createResourceDialog-BstGO0m4.js → createResourceDialog-CJbZa2gA.js} +2 -2
- package/dist/browser/{dialog-Bi-MVTGj.js → dialog-E1WkapJU.js} +10 -2
- package/dist/browser/{exportPng-DMsB9ku_.js → exportPng-c4or5th8.js} +2 -2
- package/dist/browser/{flowChanges-SKYJBr6X.js → flowChanges-DsLZdENA.js} +20 -37
- package/dist/browser/{flowWorkspace-4UHRaHcz.js → flowWorkspace-CxLQWUdj.js} +54 -19
- package/dist/browser/{markdownContent-B75ojl0E.js → markdownContent-BsdTdwBU.js} +1 -1
- package/dist/browser/preview.js +231 -68
- package/dist/browser/workbench.js +6 -6
- package/dist/browser/{workbenchSelect-CHOeceKA.js → workbenchSelect-BfQfMWuY.js} +1 -1
- package/dist/browser/{wrapLayout-DU5HG1qH.js → wrapLayout-ZOG4AikN.js} +2493 -200
- package/dist/command/index.js +58 -55
- package/dist/common/control-api-conformance.js +896 -8
- package/dist/common/control-api.js +896 -8
- package/dist/common/control-requests.js +17 -6
- package/dist/common/decision.js +10 -2
- package/dist/common/flow-authoring.js +896 -8
- package/dist/common/flow-change.js +896 -8
- package/dist/common/flow-encoding.js +896 -8
- package/dist/common/flow-semantics.js +10 -2
- package/dist/common/integration-trigger.js +10 -2
- package/dist/common/licenses.md +2 -0
- package/dist/common/mcp.js +896 -8
- package/dist/common/openapi.js +10 -2
- package/dist/common/poll-trigger.js +10 -2
- package/dist/common/provider-triggers.js +1 -1
- package/dist/common/scheduler.js +10 -2
- package/dist/common/webhook-trigger.js +890 -2
- package/dist/common/workflow.js +14 -3
- package/dist/render/browser/runtime.js +966 -59
- package/dist/render/node/index.js +792 -4
- package/package.json +1 -1
- package/src/control/common/authoringTools.ts +4 -2
- package/src/flow/common/schemaComparer.ts +12 -2
- package/src/json-schema-subset/checker/equals.ts +3 -0
- package/src/trigger/providers/catalog.generated.json +9 -1
- package/src/workflow/common/workflow.ts +4 -3
package/dist/common/openapi.js
CHANGED
|
@@ -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
|
-
|
|
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 (
|
|
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
|
-
|
|
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 (
|
|
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;
|