pi-better-goal 0.13.2 → 0.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-better-goal",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Pi extension for goal tracking with background-aware continuation.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -58,19 +58,7 @@ export function projectAssignment(meta, processStatus, observation = { verified:
58
58
 
59
59
  /** All consumers use the same lineage and authoritative wait read. Park caches are hints only. */
60
60
  export function assignmentFor(meta, processStatus = meta.status, options = {}) {
61
- return assignmentFromSnapshot(meta, processStatus, options, () => readAttempts(options));
62
- }
63
-
64
- function readAttempts(options) {
65
- const base = options.baseDir ?? join(tmpdir(), "pi-better-subagents");
66
- const attempts = [];
67
- try {
68
- for (const id of readdirSync(join(base, "runs"))) {
69
- const candidate = readAttempt(base, id);
70
- if (candidate) attempts.push(candidate);
71
- }
72
- } catch { /* Registry gaps cannot establish a newer attempt. */ }
73
- return attempts;
61
+ return createAssignmentProjector(options)(meta, processStatus);
74
62
  }
75
63
 
76
64
  function readAttempt(base, id) {