@spotpatch/dev-server 0.3.0 → 0.4.0
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/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -204,7 +204,11 @@ function createAgentJobManager(options) {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
const applyChange = async (job, preparedChange) => {
|
|
207
|
-
transition(
|
|
207
|
+
transition(
|
|
208
|
+
job,
|
|
209
|
+
"applying",
|
|
210
|
+
job.applyMode === "trusted-auto" ? "Applying trusted change directly to the project." : "Applying validated changes to the project."
|
|
211
|
+
);
|
|
208
212
|
try {
|
|
209
213
|
await dependencies.applyChange(preparedChange);
|
|
210
214
|
transition(job, "applied", "Changes were applied to local project files.");
|
|
@@ -243,11 +247,15 @@ function createAgentJobManager(options) {
|
|
|
243
247
|
);
|
|
244
248
|
}
|
|
245
249
|
};
|
|
250
|
+
const execution = Object.freeze({
|
|
251
|
+
...options.ai.execution,
|
|
252
|
+
applyMode: job.applyMode
|
|
253
|
+
});
|
|
246
254
|
const preparedChange = await dependencies.executeChange({
|
|
247
255
|
annotation: job.annotation,
|
|
248
256
|
callbacks,
|
|
249
257
|
credential: job.credential,
|
|
250
|
-
execution
|
|
258
|
+
execution,
|
|
251
259
|
jobId: job.id,
|
|
252
260
|
model: job.model,
|
|
253
261
|
provider: job.provider,
|