killeros 2.0.11 → 2.0.12
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/killeros/goals.ts +2 -12
- package/killeros/runtime.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ pi install git:github.com/KyrosHendrix/pi-KillerOS
|
|
|
31
31
|
Pin an install to a release:
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
pi install git:github.com/KyrosHendrix/pi-KillerOS@v2.0.
|
|
34
|
+
pi install git:github.com/KyrosHendrix/pi-KillerOS@v2.0.12
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Add `-l` to either command for a project-only install. Restart Pi after installing.
|
package/killeros/goals.ts
CHANGED
|
@@ -468,8 +468,6 @@ function completeAutomaticCompaction(
|
|
|
468
468
|
runtime.automaticCompaction = undefined;
|
|
469
469
|
return;
|
|
470
470
|
}
|
|
471
|
-
runtime.automaticCompaction = "completed";
|
|
472
|
-
if (runtime.goalTurnInFlight || !ctx.isIdle()) return;
|
|
473
471
|
runtime.automaticCompaction = undefined;
|
|
474
472
|
setImmediate(() => scheduleGoalContinuation(pi, runtime, initState, ctx));
|
|
475
473
|
}
|
|
@@ -1058,12 +1056,7 @@ export function registerGoalSettlement(
|
|
|
1058
1056
|
const reason = runtime.lastError || "the agent turn was aborted";
|
|
1059
1057
|
runtime.lastStopReason = undefined;
|
|
1060
1058
|
runtime.lastError = undefined;
|
|
1061
|
-
if (runtime.automaticCompaction !== undefined)
|
|
1062
|
-
if (runtime.automaticCompaction === "completed") {
|
|
1063
|
-
completeAutomaticCompaction(pi, runtime, initState, ctx);
|
|
1064
|
-
}
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1059
|
+
if (runtime.automaticCompaction !== undefined) return;
|
|
1067
1060
|
pauseGoalForPossibleManualCompaction(pi, runtime, ctx, reason);
|
|
1068
1061
|
return;
|
|
1069
1062
|
}
|
|
@@ -1080,10 +1073,7 @@ export function registerGoalSettlement(
|
|
|
1080
1073
|
});
|
|
1081
1074
|
|
|
1082
1075
|
pi.on("session_compact", (event, ctx) => {
|
|
1083
|
-
if (runtime.automaticCompaction !== undefined)
|
|
1084
|
-
completeAutomaticCompaction(pi, runtime, initState, ctx);
|
|
1085
|
-
return;
|
|
1086
|
-
}
|
|
1076
|
+
if (runtime.automaticCompaction !== undefined) return;
|
|
1087
1077
|
if (event.reason !== "manual") return;
|
|
1088
1078
|
recoverGoalAfterManualCompaction(pi, runtime, initState, ctx);
|
|
1089
1079
|
});
|
package/killeros/runtime.ts
CHANGED
|
@@ -57,7 +57,7 @@ export interface GoalRuntime {
|
|
|
57
57
|
continuationHeld: boolean;
|
|
58
58
|
goalTurnInFlight: boolean;
|
|
59
59
|
agentEndObserved: boolean;
|
|
60
|
-
automaticCompaction?: "pending"
|
|
60
|
+
automaticCompaction?: "pending";
|
|
61
61
|
persistenceRetryNeeded: boolean;
|
|
62
62
|
lastStopReason?: string;
|
|
63
63
|
lastError?: string;
|