@wrongstack/core 0.6.5 → 0.6.6

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.
@@ -2,7 +2,7 @@ export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOp
2
2
  export { D as DefaultSessionReader } from '../session-reader-B9nVkziM.js';
3
3
  import { S as SessionRewinder, C as CheckpointInfo, a as RewindResultExtended } from '../session-rewinder-C9HnMkhP.js';
4
4
  export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from '../director-state-BmYi3DGA.js';
5
- export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, s as saveGoal, b as summarizeUsage } from '../goal-store-_Er467ya.js';
5
+ export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, s as saveGoal, b as summarizeUsage } from '../goal-store-HHgaq5ue.js';
6
6
  import '../events-CJqwQl8G.js';
7
7
  import '../context-DN5v-uQX.js';
8
8
  import '../memory-CEXuo7sz.js';
@@ -2624,7 +2624,8 @@ function formatGoal(goal, journalLimit = 10) {
2624
2624
  lines.push(`Set: ${goal.setAt}`);
2625
2625
  lines.push(`Last activity: ${goal.lastActivityAt}`);
2626
2626
  lines.push(`Iterations: ${goal.iterations}`);
2627
- lines.push(`Mission: ${goal.goalState ?? "active"}`);
2627
+ const stateLabel = goal.goalState ?? "active";
2628
+ lines.push(`State: ${stateLabel}${goal.iterations > 0 ? ` (iteration #${goal.iterations})` : ""}`);
2628
2629
  lines.push(`Engine: ${goal.engineState}`);
2629
2630
  const usage = summarizeUsage(goal);
2630
2631
  if (usage.iterationsWithUsage > 0) {