agent-valley 4.14.2 → 4.14.3
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/assets/plugin.json +1 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/assets/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "av",
|
|
4
|
-
"version": "4.14.
|
|
4
|
+
"version": "4.14.3",
|
|
5
5
|
"description": "Delegate repository goals to Agent Valley and inspect mission progress and verification evidence.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Agent Valley"
|
package/dist/index.js
CHANGED
|
@@ -138507,6 +138507,7 @@ function recoveryResetTaskIds(previousPlan, plan, targetId) {
|
|
|
138507
138507
|
return reset;
|
|
138508
138508
|
}
|
|
138509
138509
|
}
|
|
138510
|
+
var recoveryScope = (attempt) => `This recovery text was written for attempt ${attempt}. A limit it sets for a single attempt, such as changing only named files, ends with that attempt; a later attempt repairs the repairFindings of the newest review.`;
|
|
138510
138511
|
function applyRecovery(mission, response) {
|
|
138511
138512
|
if (!mission.plan)
|
|
138512
138513
|
throw new Error("Chief Director recovery needs an existing plan. Restore the mission checkpoint.");
|
|
@@ -138528,10 +138529,13 @@ function applyRecovery(mission, response) {
|
|
|
138528
138529
|
continue;
|
|
138529
138530
|
if (response.action === "reassign")
|
|
138530
138531
|
task.personaId = response.personaId;
|
|
138532
|
+
const attempt = (previousStates.find((state) => state.id === task.id)?.attempts ?? 0) + 1;
|
|
138531
138533
|
task.instructions = `${task.instructions.split(/\n\nChief(?: Director)? recovery:\n/)[0]}
|
|
138532
138534
|
|
|
138533
138535
|
Chief Director recovery:
|
|
138534
|
-
${response.instructions}
|
|
138536
|
+
${response.instructions}
|
|
138537
|
+
|
|
138538
|
+
${recoveryScope(attempt)}`;
|
|
138535
138539
|
}
|
|
138536
138540
|
plan = mission.plan;
|
|
138537
138541
|
}
|