@wix/ditto-codegen-public 1.0.460 → 1.0.461
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 +27 -4
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -13133,7 +13133,7 @@ var require_checkpoint = __commonJS({
|
|
|
13133
13133
|
},
|
|
13134
13134
|
// Flow-end fallback: only fires if onToolUse didn't already create the
|
|
13135
13135
|
// checkpoint. Re-throws an earlier failure so the task is marked failed.
|
|
13136
|
-
async onFlowEnd({ codegenFailed }) {
|
|
13136
|
+
async onFlowEnd({ codegenFailed, filesChanged }) {
|
|
13137
13137
|
if (outcome?.status === "failed")
|
|
13138
13138
|
throw outcome.error;
|
|
13139
13139
|
if (outcome?.status === "created")
|
|
@@ -13142,6 +13142,8 @@ var require_checkpoint = __commonJS({
|
|
|
13142
13142
|
return;
|
|
13143
13143
|
if (codegenFailed)
|
|
13144
13144
|
return;
|
|
13145
|
+
if (!filesChanged)
|
|
13146
|
+
return;
|
|
13145
13147
|
const commitMessage = capturedCommitMessage ?? FALLBACK_COMMIT_MESSAGE;
|
|
13146
13148
|
await commitCheckpoint(commitMessage);
|
|
13147
13149
|
}
|
|
@@ -22882,6 +22884,7 @@ var require_opencode_init = __commonJS({
|
|
|
22882
22884
|
store.gitBaseline = gitBaseline;
|
|
22883
22885
|
const orchestrator = new opencode_orchestrator_1.OpenCodeOrchestrator();
|
|
22884
22886
|
let caughtError;
|
|
22887
|
+
let filesChanged = false;
|
|
22885
22888
|
try {
|
|
22886
22889
|
(0, agent_io_1.writeAgentInput)(outputPath, agentData);
|
|
22887
22890
|
const envConfig = (0, environments_12.getCodegenEnvironmentConfig)();
|
|
@@ -22903,6 +22906,7 @@ var require_opencode_init = __commonJS({
|
|
|
22903
22906
|
});
|
|
22904
22907
|
store.lastAgentMessage = result.agentMessage;
|
|
22905
22908
|
const files = await (0, file_changes_1.collectGitFileChanges)(outputPath, gitBaseline);
|
|
22909
|
+
filesChanged = files.length > 0;
|
|
22906
22910
|
const agentOutput = (0, agent_io_1.readAgentOutput)(outputPath);
|
|
22907
22911
|
const extensions = await (0, job_payload_1.buildExtensionsJobPayload)(outputPath, files);
|
|
22908
22912
|
await (0, inject_created_by_1.injectCreatedByIntoExtensionFiles)(outputPath, extensions.created);
|
|
@@ -22947,6 +22951,7 @@ var require_opencode_init = __commonJS({
|
|
|
22947
22951
|
caughtError = error;
|
|
22948
22952
|
const codegenError = (0, ditto_codegen_types_2.toCodegenError)(error);
|
|
22949
22953
|
const failedRunPayload = await (0, codegen_flow_helpers_12.buildFailedRunPayload)(codegenError, outputPath, gitBaseline);
|
|
22954
|
+
filesChanged = (failedRunPayload.files?.length ?? 0) > 0;
|
|
22950
22955
|
await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, failedRunPayload);
|
|
22951
22956
|
await (0, codegen_flow_helpers_12.updateParentTaskStatus)(localJobContext, ditto_codegen_types_12.Status.FAILED, codegenError);
|
|
22952
22957
|
const taskCost = orchestrator.lastUsage ? Math.round(orchestrator.lastUsage.cost * 1e6) : void 0;
|
|
@@ -22976,7 +22981,11 @@ var require_opencode_init = __commonJS({
|
|
|
22976
22981
|
error: error instanceof Error ? error.message : String(error)
|
|
22977
22982
|
});
|
|
22978
22983
|
} finally {
|
|
22979
|
-
await (0, plugins_runtime_1.runOnFlowEnd)((0, plugins_runtime_1.getActivePlugins)(), {
|
|
22984
|
+
await (0, plugins_runtime_1.runOnFlowEnd)((0, plugins_runtime_1.getActivePlugins)(), {
|
|
22985
|
+
codegenFailed: caughtError !== void 0,
|
|
22986
|
+
codegenError: caughtError,
|
|
22987
|
+
filesChanged
|
|
22988
|
+
}, logger_12.logger);
|
|
22980
22989
|
}
|
|
22981
22990
|
};
|
|
22982
22991
|
exports2.runOpencodeInitFlow = runOpencodeInitFlow;
|
|
@@ -23096,6 +23105,7 @@ var require_opencode_iterate = __commonJS({
|
|
|
23096
23105
|
store.gitBaseline = gitBaseline;
|
|
23097
23106
|
const iterationOrchestrator = new opencode_iteration_orchestrator_1.OpenCodeIterationOrchestrator();
|
|
23098
23107
|
let caughtError;
|
|
23108
|
+
let filesChanged = false;
|
|
23099
23109
|
try {
|
|
23100
23110
|
(0, agent_io_1.writeAgentInput)(outputPath, agentData);
|
|
23101
23111
|
(0, cli_listeners_1.attachOrchestratorListeners)(iterationOrchestrator);
|
|
@@ -23107,6 +23117,7 @@ var require_opencode_iterate = __commonJS({
|
|
|
23107
23117
|
});
|
|
23108
23118
|
store.lastAgentMessage = result.agentMessage;
|
|
23109
23119
|
const files = await (0, file_changes_1.collectGitFileChanges)(outputPath, gitBaseline);
|
|
23120
|
+
filesChanged = files.length > 0;
|
|
23110
23121
|
const agentOutput = (0, agent_io_1.readAgentOutput)(outputPath);
|
|
23111
23122
|
const extensions = await (0, job_payload_1.buildExtensionsJobPayload)(outputPath, files);
|
|
23112
23123
|
await (0, inject_created_by_1.injectCreatedByIntoExtensionFiles)(outputPath, extensions.created);
|
|
@@ -23151,6 +23162,7 @@ var require_opencode_iterate = __commonJS({
|
|
|
23151
23162
|
caughtError = error;
|
|
23152
23163
|
const codegenError = (0, ditto_codegen_types_2.toCodegenError)(error);
|
|
23153
23164
|
const failedRunPayload = await (0, codegen_flow_helpers_12.buildFailedRunPayload)(codegenError, outputPath, gitBaseline);
|
|
23165
|
+
filesChanged = (failedRunPayload.files?.length ?? 0) > 0;
|
|
23154
23166
|
await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, failedRunPayload);
|
|
23155
23167
|
await (0, codegen_flow_helpers_12.updateParentTaskStatus)(localJobContext, ditto_codegen_types_12.Status.FAILED, codegenError);
|
|
23156
23168
|
const taskCost = iterationOrchestrator.lastUsage ? Math.round(iterationOrchestrator.lastUsage.cost * 1e6) : void 0;
|
|
@@ -23180,7 +23192,11 @@ var require_opencode_iterate = __commonJS({
|
|
|
23180
23192
|
error: error instanceof Error ? error.message : String(error)
|
|
23181
23193
|
});
|
|
23182
23194
|
} finally {
|
|
23183
|
-
await (0, plugins_runtime_1.runOnFlowEnd)((0, plugins_runtime_1.getActivePlugins)(), {
|
|
23195
|
+
await (0, plugins_runtime_1.runOnFlowEnd)((0, plugins_runtime_1.getActivePlugins)(), {
|
|
23196
|
+
codegenFailed: caughtError !== void 0,
|
|
23197
|
+
codegenError: caughtError,
|
|
23198
|
+
filesChanged
|
|
23199
|
+
}, logger_12.logger);
|
|
23184
23200
|
}
|
|
23185
23201
|
};
|
|
23186
23202
|
exports2.runOpencodeIterateFlow = runOpencodeIterateFlow;
|
|
@@ -23476,6 +23492,7 @@ var require_opencode_fix_git_conflicts = __commonJS({
|
|
|
23476
23492
|
store.gitBaseline = gitBaseline;
|
|
23477
23493
|
const orchestrator = new opencode_git_conflicts_orchestrator_1.OpenCodeGitConflictsOrchestrator();
|
|
23478
23494
|
let caughtError;
|
|
23495
|
+
let filesChanged = false;
|
|
23479
23496
|
try {
|
|
23480
23497
|
(0, cli_listeners_1.attachOrchestratorListeners)(orchestrator);
|
|
23481
23498
|
const result = await orchestrator.fixConflicts({
|
|
@@ -23486,6 +23503,7 @@ var require_opencode_fix_git_conflicts = __commonJS({
|
|
|
23486
23503
|
});
|
|
23487
23504
|
store.lastAgentMessage = result.agentMessage;
|
|
23488
23505
|
const files = await (0, file_changes_1.collectGitFileChanges)(outputPath, gitBaseline);
|
|
23506
|
+
filesChanged = files.length > 0;
|
|
23489
23507
|
const extensions = await (0, job_payload_1.buildExtensionsJobPayload)(outputPath, files);
|
|
23490
23508
|
await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, {
|
|
23491
23509
|
requiredPermissions: result.requiredPermissions,
|
|
@@ -23526,6 +23544,7 @@ var require_opencode_fix_git_conflicts = __commonJS({
|
|
|
23526
23544
|
caughtError = error;
|
|
23527
23545
|
const codegenError = (0, ditto_codegen_types_12.toCodegenError)(error);
|
|
23528
23546
|
const files = await (0, file_changes_1.collectGitFileChanges)(outputPath, gitBaseline);
|
|
23547
|
+
filesChanged = files.length > 0;
|
|
23529
23548
|
const extensions = await (0, job_payload_1.buildExtensionsJobPayload)(outputPath, files);
|
|
23530
23549
|
await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, {
|
|
23531
23550
|
requiredPermissions: [],
|
|
@@ -23561,7 +23580,11 @@ var require_opencode_fix_git_conflicts = __commonJS({
|
|
|
23561
23580
|
error: error instanceof Error ? error.message : String(error)
|
|
23562
23581
|
});
|
|
23563
23582
|
} finally {
|
|
23564
|
-
await (0, plugins_runtime_1.runOnFlowEnd)((0, plugins_runtime_1.getActivePlugins)(), {
|
|
23583
|
+
await (0, plugins_runtime_1.runOnFlowEnd)((0, plugins_runtime_1.getActivePlugins)(), {
|
|
23584
|
+
codegenFailed: caughtError !== void 0,
|
|
23585
|
+
codegenError: caughtError,
|
|
23586
|
+
filesChanged
|
|
23587
|
+
}, logger_12.logger);
|
|
23565
23588
|
}
|
|
23566
23589
|
};
|
|
23567
23590
|
exports2.runOpencodeGitConflictsFlow = runOpencodeGitConflictsFlow;
|
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.461",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"esbuild": "^0.27.2",
|
|
30
30
|
"vitest": "^4.0.16"
|
|
31
31
|
},
|
|
32
|
-
"falconPackageHash": "
|
|
32
|
+
"falconPackageHash": "2bcf1aaf514fb3987e4a728cfa8b23f462397f2492b7bac0ae519499"
|
|
33
33
|
}
|