@kody-ade/kody-engine 0.4.231 → 0.4.232
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/bin/kody.js +9 -1
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_package = __esm({
|
|
|
15
15
|
"package.json"() {
|
|
16
16
|
package_default = {
|
|
17
17
|
name: "@kody-ade/kody-engine",
|
|
18
|
-
version: "0.4.
|
|
18
|
+
version: "0.4.232",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
type: "module",
|
|
@@ -6357,6 +6357,12 @@ var init_advanceManagedGoal = __esm({
|
|
|
6357
6357
|
ctx.output.reason = "goal has no managed-goal contract; nothing to advance";
|
|
6358
6358
|
return;
|
|
6359
6359
|
}
|
|
6360
|
+
const previousGoalIdFact = managed.facts.goalId;
|
|
6361
|
+
managed.facts.goalId = goal.id;
|
|
6362
|
+
const restoreGoalIdFact = () => {
|
|
6363
|
+
if (previousGoalIdFact === void 0) delete managed.facts.goalId;
|
|
6364
|
+
else managed.facts.goalId = previousGoalIdFact;
|
|
6365
|
+
};
|
|
6360
6366
|
if (isDutyCadenceGoal(managed, goal.raw.extra)) {
|
|
6361
6367
|
const previousScheduleState = goal.raw.extra.scheduleState && typeof goal.raw.extra.scheduleState === "object" ? goal.raw.extra.scheduleState : void 0;
|
|
6362
6368
|
const decision2 = await planGoalDutySchedule({
|
|
@@ -6365,6 +6371,7 @@ var init_advanceManagedGoal = __esm({
|
|
|
6365
6371
|
config: ctx.config,
|
|
6366
6372
|
previousScheduleState
|
|
6367
6373
|
});
|
|
6374
|
+
restoreGoalIdFact();
|
|
6368
6375
|
goal.raw = writeManagedGoalToState({ ...goal.raw, state: goal.state }, managed);
|
|
6369
6376
|
goal.raw.extra.scheduleState = decision2.scheduleState;
|
|
6370
6377
|
ctx.data.managedGoalDecision = decision2;
|
|
@@ -6382,6 +6389,7 @@ var init_advanceManagedGoal = __esm({
|
|
|
6382
6389
|
applySimpleGoalTaskSummary(managed, readSimpleGoalTaskSummary(goal.id, ctx.cwd));
|
|
6383
6390
|
}
|
|
6384
6391
|
const decision = planManagedGoalTick(managed);
|
|
6392
|
+
restoreGoalIdFact();
|
|
6385
6393
|
ctx.data.managedGoalDecision = decision;
|
|
6386
6394
|
if (decision.kind === "done") {
|
|
6387
6395
|
goal.state = "done";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.232",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|