@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.cjs
CHANGED
|
@@ -252,7 +252,11 @@ function createAgentJobManager(options) {
|
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
const applyChange = async (job, preparedChange) => {
|
|
255
|
-
transition(
|
|
255
|
+
transition(
|
|
256
|
+
job,
|
|
257
|
+
"applying",
|
|
258
|
+
job.applyMode === "trusted-auto" ? "Applying trusted change directly to the project." : "Applying validated changes to the project."
|
|
259
|
+
);
|
|
256
260
|
try {
|
|
257
261
|
await dependencies.applyChange(preparedChange);
|
|
258
262
|
transition(job, "applied", "Changes were applied to local project files.");
|
|
@@ -291,11 +295,15 @@ function createAgentJobManager(options) {
|
|
|
291
295
|
);
|
|
292
296
|
}
|
|
293
297
|
};
|
|
298
|
+
const execution = Object.freeze({
|
|
299
|
+
...options.ai.execution,
|
|
300
|
+
applyMode: job.applyMode
|
|
301
|
+
});
|
|
294
302
|
const preparedChange = await dependencies.executeChange({
|
|
295
303
|
annotation: job.annotation,
|
|
296
304
|
callbacks,
|
|
297
305
|
credential: job.credential,
|
|
298
|
-
execution
|
|
306
|
+
execution,
|
|
299
307
|
jobId: job.id,
|
|
300
308
|
model: job.model,
|
|
301
309
|
provider: job.provider,
|