@wix/ditto-codegen-public 1.0.242 → 1.0.244
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 +48 -16
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -34,12 +34,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
));
|
|
35
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/build/
|
|
37
|
+
// ../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/cjs/build/types.impl.js
|
|
38
38
|
var require_types_impl = __commonJS({
|
|
39
|
-
"../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/build/
|
|
39
|
+
"../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/cjs/build/types.impl.js"(exports2) {
|
|
40
40
|
"use strict";
|
|
41
41
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42
|
-
exports2.Status = exports2.TaskKind = void 0;
|
|
42
|
+
exports2.UserDecisionQuestionType = exports2.Status = exports2.TaskKind = void 0;
|
|
43
43
|
var TaskKind;
|
|
44
44
|
(function(TaskKind2) {
|
|
45
45
|
TaskKind2["UNKNOWN_TASK_KIND"] = "UNKNOWN_TASK_KIND";
|
|
@@ -59,6 +59,11 @@ var require_types_impl = __commonJS({
|
|
|
59
59
|
Status2["PENDING_CANCEL"] = "PENDING_CANCEL";
|
|
60
60
|
Status2["AWAITING_USER_INPUT"] = "AWAITING_USER_INPUT";
|
|
61
61
|
})(Status || (exports2.Status = Status = {}));
|
|
62
|
+
var UserDecisionQuestionType;
|
|
63
|
+
(function(UserDecisionQuestionType2) {
|
|
64
|
+
UserDecisionQuestionType2["UNKNOWN_QUESTION_TYPE"] = "UNKNOWN_QUESTION_TYPE";
|
|
65
|
+
UserDecisionQuestionType2["UI_COMPONENT_TYPE"] = "UI_COMPONENT_TYPE";
|
|
66
|
+
})(UserDecisionQuestionType || (exports2.UserDecisionQuestionType = UserDecisionQuestionType = {}));
|
|
62
67
|
}
|
|
63
68
|
});
|
|
64
69
|
|
|
@@ -6498,9 +6503,9 @@ var require_ambassador_index = __commonJS({
|
|
|
6498
6503
|
}
|
|
6499
6504
|
});
|
|
6500
6505
|
|
|
6501
|
-
// ../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/build/
|
|
6506
|
+
// ../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/cjs/build/http.impl.js
|
|
6502
6507
|
var require_http_impl = __commonJS({
|
|
6503
|
-
"../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/build/
|
|
6508
|
+
"../../node_modules/@wix/ambassador-ctp-codegen-job-service-v1-job/cjs/build/http.impl.js"(exports2) {
|
|
6504
6509
|
"use strict";
|
|
6505
6510
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6506
6511
|
exports2.listProjects = listProjects;
|
|
@@ -44768,12 +44773,14 @@ var require_config = __commonJS({
|
|
|
44768
44773
|
bash: "allow",
|
|
44769
44774
|
webfetch: "allow",
|
|
44770
44775
|
skill: "allow",
|
|
44776
|
+
task: "deny",
|
|
44771
44777
|
external_directory: {
|
|
44772
44778
|
"/root/.agents/**": "allow",
|
|
44773
44779
|
"/root/.claude/**": "allow",
|
|
44774
44780
|
"/root/.opencode/**": "allow"
|
|
44775
44781
|
}
|
|
44776
44782
|
},
|
|
44783
|
+
lsp: false,
|
|
44777
44784
|
mcp: {
|
|
44778
44785
|
"wix-mcp": {
|
|
44779
44786
|
type: "local",
|
|
@@ -44797,7 +44804,8 @@ var require_config = __commonJS({
|
|
|
44797
44804
|
...process.env,
|
|
44798
44805
|
ANTHROPIC_BASE_URL: anthropicBaseUrl,
|
|
44799
44806
|
OPENCODE_CONFIG_CONTENT: JSON.stringify(config2),
|
|
44800
|
-
OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS: exports2.DEFAULT_TIMEOUT_MS.toString()
|
|
44807
|
+
OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS: exports2.DEFAULT_TIMEOUT_MS.toString(),
|
|
44808
|
+
OPENCODE_DISABLE_LSP_DOWNLOAD: "true"
|
|
44801
44809
|
};
|
|
44802
44810
|
}
|
|
44803
44811
|
}
|
|
@@ -45131,10 +45139,23 @@ var require_process_manager = __commonJS({
|
|
|
45131
45139
|
function killProcess(child, resolved) {
|
|
45132
45140
|
if (!child)
|
|
45133
45141
|
return;
|
|
45134
|
-
|
|
45142
|
+
const killSignal = (signal) => {
|
|
45143
|
+
if (child.pid) {
|
|
45144
|
+
try {
|
|
45145
|
+
process.kill(-child.pid, signal);
|
|
45146
|
+
console.log(`[OpenCode] Sent ${signal} to process group (pid: -${child.pid})`);
|
|
45147
|
+
return;
|
|
45148
|
+
} catch (error48) {
|
|
45149
|
+
console.log(`[OpenCode] Process group kill failed, falling back to direct kill: ${error48}`);
|
|
45150
|
+
}
|
|
45151
|
+
}
|
|
45152
|
+
child.kill(signal);
|
|
45153
|
+
console.log(`[OpenCode] Sent ${signal} to child process directly`);
|
|
45154
|
+
};
|
|
45155
|
+
killSignal("SIGTERM");
|
|
45135
45156
|
setTimeout(() => {
|
|
45136
45157
|
if (child && !resolved) {
|
|
45137
|
-
|
|
45158
|
+
killSignal("SIGKILL");
|
|
45138
45159
|
}
|
|
45139
45160
|
}, exports2.KILL_GRACE_PERIOD_MS);
|
|
45140
45161
|
}
|
|
@@ -45301,7 +45322,7 @@ var require_executor = __commonJS({
|
|
|
45301
45322
|
var process_manager_1 = require_process_manager();
|
|
45302
45323
|
var result_builder_1 = require_result_builder();
|
|
45303
45324
|
var process_handlers_1 = require_process_handlers();
|
|
45304
|
-
var MAX_RETRIES =
|
|
45325
|
+
var MAX_RETRIES = 5;
|
|
45305
45326
|
async function executeOpenCode(options) {
|
|
45306
45327
|
let lastResult = null;
|
|
45307
45328
|
let accumulatedStdout = "";
|
|
@@ -45329,7 +45350,9 @@ var require_executor = __commonJS({
|
|
|
45329
45350
|
${(0, parser_1.formatUsageStats)(finalResult2.usage)}`);
|
|
45330
45351
|
return finalResult2;
|
|
45331
45352
|
}
|
|
45332
|
-
|
|
45353
|
+
const errorMsg = result.error?.message.toLowerCase() ?? "";
|
|
45354
|
+
const isRetryableFailure = !result.success && errorMsg.includes("idle timeout");
|
|
45355
|
+
if (result.success || !isRetryableFailure) {
|
|
45333
45356
|
const finalResult2 = {
|
|
45334
45357
|
...result,
|
|
45335
45358
|
filesChanged: (0, parser_1.parseFilesChanged)(accumulatedStdout),
|
|
@@ -45340,7 +45363,7 @@ ${(0, parser_1.formatUsageStats)(finalResult2.usage)}`);
|
|
|
45340
45363
|
return finalResult2;
|
|
45341
45364
|
}
|
|
45342
45365
|
lastResult = result;
|
|
45343
|
-
console.log(`[OpenCode] Attempt ${attempt}/${MAX_RETRIES} failed due to idle timeout`);
|
|
45366
|
+
console.log(`[OpenCode] Attempt ${attempt}/${MAX_RETRIES} failed due to idle timeout \u2014 will retry with --continue in a fresh process`);
|
|
45344
45367
|
}
|
|
45345
45368
|
console.log(`[OpenCode] All ${MAX_RETRIES} retry attempts exhausted`);
|
|
45346
45369
|
const finalResult = {
|
|
@@ -45376,7 +45399,10 @@ ${(0, parser_1.formatUsageStats)(finalResult.usage)}`);
|
|
|
45376
45399
|
lastOutputTime: Date.now(),
|
|
45377
45400
|
resolved: false
|
|
45378
45401
|
};
|
|
45379
|
-
const timers = {
|
|
45402
|
+
const timers = {
|
|
45403
|
+
timeoutId: null,
|
|
45404
|
+
idleCheckId: null
|
|
45405
|
+
};
|
|
45380
45406
|
const finalize2 = async (result) => {
|
|
45381
45407
|
if (state.resolved)
|
|
45382
45408
|
return;
|
|
@@ -45404,7 +45430,8 @@ ${(0, parser_1.formatUsageStats)(finalResult.usage)}`);
|
|
|
45404
45430
|
ctx.child = (0, child_process_1.spawn)("opencode", args, {
|
|
45405
45431
|
cwd: outputPath,
|
|
45406
45432
|
env: (0, config_1.getOpenCodeEnv)(projectId),
|
|
45407
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
45433
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
45434
|
+
detached: true
|
|
45408
45435
|
});
|
|
45409
45436
|
timers.timeoutId = (0, process_handlers_1.setupTotalTimeout)(ctx);
|
|
45410
45437
|
timers.idleCheckId = (0, process_handlers_1.setupIdleWatchdog)(ctx);
|
|
@@ -88366,12 +88393,12 @@ var require_api2 = __commonJS({
|
|
|
88366
88393
|
}
|
|
88367
88394
|
});
|
|
88368
88395
|
|
|
88369
|
-
// ../../node_modules/@wix/ambassador-data-v2-data-collection/build/
|
|
88396
|
+
// ../../node_modules/@wix/ambassador-data-v2-data-collection/cjs/build/types.impl.js
|
|
88370
88397
|
var require_types_impl3 = __commonJS({
|
|
88371
|
-
"../../node_modules/@wix/ambassador-data-v2-data-collection/build/
|
|
88398
|
+
"../../node_modules/@wix/ambassador-data-v2-data-collection/cjs/build/types.impl.js"(exports2) {
|
|
88372
88399
|
"use strict";
|
|
88373
88400
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
88374
|
-
exports2.WebhookIdentityType = exports2.IndexSource = exports2.IndexStatus = exports2.Order = exports2.TenantMode = exports2.SortOrder = exports2.Segment = exports2.AccessLevel = exports2.PagingMode = exports2.Type = exports2.Format = exports2.Status = exports2.Role = exports2.FieldPluginType = exports2.PageLinkType = exports2.QueryOperator = exports2.FieldType = exports2.CollectionOperation = exports2.DataOperation = exports2.Direction = exports2.CollectionType = void 0;
|
|
88401
|
+
exports2.WebhookIdentityType = exports2.IndexSource = exports2.IndexStatus = exports2.Order = exports2.TenantMode = exports2.SortOrder = exports2.Segment = exports2.AccessLevel = exports2.PagingMode = exports2.Type = exports2.Format = exports2.Status = exports2.Role = exports2.Permission = exports2.FieldPluginType = exports2.PageLinkType = exports2.QueryOperator = exports2.FieldType = exports2.CollectionOperation = exports2.DataOperation = exports2.Direction = exports2.CollectionType = void 0;
|
|
88375
88402
|
var CollectionType;
|
|
88376
88403
|
(function(CollectionType2) {
|
|
88377
88404
|
CollectionType2["NATIVE"] = "NATIVE";
|
|
@@ -88477,6 +88504,11 @@ var require_types_impl3 = __commonJS({
|
|
|
88477
88504
|
FieldPluginType2["UNKNOWN"] = "UNKNOWN";
|
|
88478
88505
|
FieldPluginType2["CMS"] = "CMS";
|
|
88479
88506
|
})(FieldPluginType || (exports2.FieldPluginType = FieldPluginType = {}));
|
|
88507
|
+
var Permission;
|
|
88508
|
+
(function(Permission2) {
|
|
88509
|
+
Permission2["ANYONE"] = "ANYONE";
|
|
88510
|
+
Permission2["RESTRICTED"] = "RESTRICTED";
|
|
88511
|
+
})(Permission || (exports2.Permission = Permission = {}));
|
|
88480
88512
|
var Role;
|
|
88481
88513
|
(function(Role2) {
|
|
88482
88514
|
Role2["UNKNOWN_ROLE"] = "UNKNOWN_ROLE";
|
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.244",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@wix/ditto-codegen": "1.0.0",
|
|
29
29
|
"esbuild": "^0.27.2"
|
|
30
30
|
},
|
|
31
|
-
"falconPackageHash": "
|
|
31
|
+
"falconPackageHash": "f3a7bc6add37fc8ef0ae08938af025a72a9a94852775e989518c4895"
|
|
32
32
|
}
|