@spotpatch/dev-server 0.1.1 → 0.1.2
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 +1 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -87,7 +87,6 @@ function createAgentJobManager(options) {
|
|
|
87
87
|
});
|
|
88
88
|
const jobs = /* @__PURE__ */ new Map();
|
|
89
89
|
const capabilityCache = /* @__PURE__ */ new Map();
|
|
90
|
-
const providerConsents = /* @__PURE__ */ new Set();
|
|
91
90
|
let closed = false;
|
|
92
91
|
const resolveSelection = (providerProfileId, modelProfileId) => {
|
|
93
92
|
const provider = options.ai.providers[providerProfileId];
|
|
@@ -218,15 +217,7 @@ function createAgentJobManager(options) {
|
|
|
218
217
|
};
|
|
219
218
|
const runJob = async (job) => {
|
|
220
219
|
try {
|
|
221
|
-
transition(job, "preparing", "
|
|
222
|
-
await probeResolved(
|
|
223
|
-
Object.freeze({
|
|
224
|
-
credential: job.credential,
|
|
225
|
-
model: job.model,
|
|
226
|
-
provider: job.provider
|
|
227
|
-
}),
|
|
228
|
-
job.controller.signal
|
|
229
|
-
);
|
|
220
|
+
transition(job, "preparing", "Preparing isolated Agent execution.");
|
|
230
221
|
const callbacks = {
|
|
231
222
|
onCheck(result) {
|
|
232
223
|
appendEvent(
|
|
@@ -358,7 +349,6 @@ function createAgentJobManager(options) {
|
|
|
358
349
|
[...jobs.values()].map((job) => job.runPromise).filter((promise) => promise !== void 0)
|
|
359
350
|
);
|
|
360
351
|
capabilityCache.clear();
|
|
361
|
-
providerConsents.clear();
|
|
362
352
|
jobs.clear();
|
|
363
353
|
},
|
|
364
354
|
create(request) {
|
|
@@ -376,7 +366,6 @@ function createAgentJobManager(options) {
|
|
|
376
366
|
request.providerProfileId,
|
|
377
367
|
request.modelProfileId
|
|
378
368
|
);
|
|
379
|
-
providerConsents.add(selection.provider.id);
|
|
380
369
|
const id = dependencies.createJobId();
|
|
381
370
|
if (!JOB_ID_PATTERN.test(id) || jobs.has(id)) {
|
|
382
371
|
throw new SpotPatchError(ERROR_CODES.INTERNAL_ERROR);
|