@wix/ditto-codegen-public 1.0.18 → 1.0.20
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/out.js +39 -32
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -77546,7 +77546,7 @@ var require_versions = __commonJS({
|
|
|
77546
77546
|
exports2.version = {
|
|
77547
77547
|
major: 4,
|
|
77548
77548
|
minor: 1,
|
|
77549
|
-
patch:
|
|
77549
|
+
patch: 11
|
|
77550
77550
|
};
|
|
77551
77551
|
}
|
|
77552
77552
|
});
|
|
@@ -78308,6 +78308,19 @@ var require_schemas = __commonJS({
|
|
|
78308
78308
|
}
|
|
78309
78309
|
exports2.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
|
|
78310
78310
|
exports2.$ZodType.init(inst, def);
|
|
78311
|
+
const desc = Object.getOwnPropertyDescriptor(def, "shape");
|
|
78312
|
+
if (!desc?.get) {
|
|
78313
|
+
const sh = def.shape;
|
|
78314
|
+
Object.defineProperty(def, "shape", {
|
|
78315
|
+
get: () => {
|
|
78316
|
+
const newSh = { ...sh };
|
|
78317
|
+
Object.defineProperty(def, "shape", {
|
|
78318
|
+
value: newSh
|
|
78319
|
+
});
|
|
78320
|
+
return newSh;
|
|
78321
|
+
}
|
|
78322
|
+
});
|
|
78323
|
+
}
|
|
78311
78324
|
const _normalized = util.cached(() => normalizeDef(def));
|
|
78312
78325
|
util.defineLazy(inst._zod, "propValues", () => {
|
|
78313
78326
|
const shape = def.shape;
|
|
@@ -89140,16 +89153,12 @@ var require_schemas2 = __commonJS({
|
|
|
89140
89153
|
inst.type = def.type;
|
|
89141
89154
|
Object.defineProperty(inst, "_def", { value: def });
|
|
89142
89155
|
inst.check = (...checks2) => {
|
|
89143
|
-
return inst.clone(
|
|
89144
|
-
|
|
89145
|
-
...def,
|
|
89146
|
-
|
|
89147
|
-
|
|
89148
|
-
|
|
89149
|
-
]
|
|
89150
|
-
}
|
|
89151
|
-
// { parent: true }
|
|
89152
|
-
);
|
|
89156
|
+
return inst.clone(index_js_1.util.mergeDefs(def, {
|
|
89157
|
+
checks: [
|
|
89158
|
+
...def.checks ?? [],
|
|
89159
|
+
...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
89160
|
+
]
|
|
89161
|
+
}));
|
|
89153
89162
|
};
|
|
89154
89163
|
inst.clone = (def2, params) => core.clone(inst, def2, params);
|
|
89155
89164
|
inst.brand = () => inst;
|
|
@@ -89608,7 +89617,9 @@ var require_schemas2 = __commonJS({
|
|
|
89608
89617
|
exports2.ZodObject = core.$constructor("ZodObject", (inst, def) => {
|
|
89609
89618
|
core.$ZodObjectJIT.init(inst, def);
|
|
89610
89619
|
exports2.ZodType.init(inst, def);
|
|
89611
|
-
index_js_1.util.defineLazy(inst, "shape", () =>
|
|
89620
|
+
index_js_1.util.defineLazy(inst, "shape", () => {
|
|
89621
|
+
return def.shape;
|
|
89622
|
+
});
|
|
89612
89623
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
89613
89624
|
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
|
89614
89625
|
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
@@ -89630,10 +89641,7 @@ var require_schemas2 = __commonJS({
|
|
|
89630
89641
|
function object(shape, params) {
|
|
89631
89642
|
const def = {
|
|
89632
89643
|
type: "object",
|
|
89633
|
-
|
|
89634
|
-
index_js_1.util.assignProp(this, "shape", shape ? index_js_1.util.objectClone(shape) : {});
|
|
89635
|
-
return this.shape;
|
|
89636
|
-
},
|
|
89644
|
+
shape: shape ?? {},
|
|
89637
89645
|
...index_js_1.util.normalizeParams(params)
|
|
89638
89646
|
};
|
|
89639
89647
|
return new exports2.ZodObject(def);
|
|
@@ -89641,10 +89649,7 @@ var require_schemas2 = __commonJS({
|
|
|
89641
89649
|
function strictObject(shape, params) {
|
|
89642
89650
|
return new exports2.ZodObject({
|
|
89643
89651
|
type: "object",
|
|
89644
|
-
|
|
89645
|
-
index_js_1.util.assignProp(this, "shape", index_js_1.util.objectClone(shape));
|
|
89646
|
-
return this.shape;
|
|
89647
|
-
},
|
|
89652
|
+
shape,
|
|
89648
89653
|
catchall: never(),
|
|
89649
89654
|
...index_js_1.util.normalizeParams(params)
|
|
89650
89655
|
});
|
|
@@ -89652,10 +89657,7 @@ var require_schemas2 = __commonJS({
|
|
|
89652
89657
|
function looseObject(shape, params) {
|
|
89653
89658
|
return new exports2.ZodObject({
|
|
89654
89659
|
type: "object",
|
|
89655
|
-
|
|
89656
|
-
index_js_1.util.assignProp(this, "shape", index_js_1.util.objectClone(shape));
|
|
89657
|
-
return this.shape;
|
|
89658
|
-
},
|
|
89660
|
+
shape,
|
|
89659
89661
|
catchall: unknown(),
|
|
89660
89662
|
...index_js_1.util.normalizeParams(params)
|
|
89661
89663
|
});
|
|
@@ -120520,6 +120522,7 @@ var require_orchestrator = __commonJS({
|
|
|
120520
120522
|
super();
|
|
120521
120523
|
this.agentsFactory = agentsFactory;
|
|
120522
120524
|
this.apiKey = apiKey;
|
|
120525
|
+
this.shouldUseFixAgent = process.env.USE_AUTOFIX === "true";
|
|
120523
120526
|
}
|
|
120524
120527
|
// Typed helpers
|
|
120525
120528
|
onEvent(event, listener) {
|
|
@@ -120711,10 +120714,12 @@ var require_orchestrator = __commonJS({
|
|
|
120711
120714
|
outputPath,
|
|
120712
120715
|
durationMs: durationMsCodeGeneration
|
|
120713
120716
|
});
|
|
120714
|
-
|
|
120715
|
-
|
|
120716
|
-
|
|
120717
|
-
|
|
120717
|
+
if (this.shouldUseFixAgent) {
|
|
120718
|
+
await this.startFixFlow({
|
|
120719
|
+
projectDir: outputPath,
|
|
120720
|
+
apiKey: this.apiKey
|
|
120721
|
+
});
|
|
120722
|
+
}
|
|
120718
120723
|
const durationMs = Date.now() - start;
|
|
120719
120724
|
this.emitEvent("finish", { outputPath, durationMs });
|
|
120720
120725
|
}
|
|
@@ -120785,10 +120790,12 @@ var require_orchestrator = __commonJS({
|
|
|
120785
120790
|
outputPath,
|
|
120786
120791
|
durationMs: durationMsCodeGeneration
|
|
120787
120792
|
});
|
|
120788
|
-
|
|
120789
|
-
|
|
120790
|
-
|
|
120791
|
-
|
|
120793
|
+
if (this.shouldUseFixAgent) {
|
|
120794
|
+
await this.startFixFlow({
|
|
120795
|
+
projectDir: outputPath,
|
|
120796
|
+
apiKey: this.apiKey
|
|
120797
|
+
});
|
|
120798
|
+
}
|
|
120792
120799
|
const durationMs = Date.now() - start;
|
|
120793
120800
|
this.emitEvent("finish:iteration", { outputPath, durationMs });
|
|
120794
120801
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@wix/ditto-codegen": "1.0.0",
|
|
25
25
|
"esbuild": "^0.25.9"
|
|
26
26
|
},
|
|
27
|
-
"falconPackageHash": "
|
|
27
|
+
"falconPackageHash": "e7f707cde56bb07ac5cf65afd75b1734a16d629892b00bb81abbc1c2"
|
|
28
28
|
}
|