@pantheon.ai/agents 0.3.3 → 0.3.4
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.js +12 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -399,7 +399,7 @@ var require_cli_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
399
399
|
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region package.json
|
|
402
|
-
var version = "0.3.
|
|
402
|
+
var version = "0.3.4";
|
|
403
403
|
|
|
404
404
|
//#endregion
|
|
405
405
|
//#region src/db/db9.ts
|
|
@@ -2432,7 +2432,7 @@ async function preparePendingTaskForStart(provider, task, config, logger) {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
return task;
|
|
2434
2434
|
}
|
|
2435
|
-
if (task.type
|
|
2435
|
+
if (task.type === "bootstrap") return task;
|
|
2436
2436
|
const parentTask = await provider.getTask(task.parent_task_id);
|
|
2437
2437
|
if (!parentTask) {
|
|
2438
2438
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -2455,6 +2455,16 @@ async function preparePendingTaskForStart(provider, task, config, logger) {
|
|
|
2455
2455
|
logger.info(`Task ${task.id} is waiting because parent task ${parentTask.id} is ${parentTask.status}; only completed parent can start child.`);
|
|
2456
2456
|
return null;
|
|
2457
2457
|
}
|
|
2458
|
+
if (task.type === "reconfig") {
|
|
2459
|
+
const parentBranchId = getTaskWorkingBranchId(parentTask);
|
|
2460
|
+
if (task.base_branch_id === parentBranchId) return task;
|
|
2461
|
+
const updatedTask = {
|
|
2462
|
+
...task,
|
|
2463
|
+
base_branch_id: parentBranchId
|
|
2464
|
+
};
|
|
2465
|
+
await provider.updateTask(updatedTask);
|
|
2466
|
+
return updatedTask;
|
|
2467
|
+
}
|
|
2458
2468
|
if (parentTask.config_version !== config.config_version) {
|
|
2459
2469
|
await handleOutdatedParentAtStart(provider, task, parentTask, parentTask.config_version, config.config_version, logger);
|
|
2460
2470
|
return null;
|