@narumitw/pi-goal 0.49.2 → 0.49.5

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": "@narumitw/pi-goal",
3
- "version": "0.49.2",
3
+ "version": "0.49.5",
4
4
  "description": "Pi extension for autonomous /goal completion with opt-in experimental ordered queues.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,10 +36,10 @@
36
36
  "typebox": "*"
37
37
  },
38
38
  "devDependencies": {
39
- "@biomejs/biome": "2.5.6",
39
+ "@biomejs/biome": "2.5.7",
40
40
  "@earendil-works/pi-ai": "0.83.0",
41
41
  "@earendil-works/pi-coding-agent": "0.83.0",
42
- "typebox": "1.3.9",
42
+ "typebox": "1.3.10",
43
43
  "typescript": "7.0.2"
44
44
  },
45
45
  "dependencies": {
@@ -1,6 +1,6 @@
1
1
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
2
  import { dirname, join } from "node:path";
3
- import process from "node:process";
3
+ import { getAgentDir } from "@earendil-works/pi-coding-agent";
4
4
  import {
5
5
  isNonNegativeFiniteNumber,
6
6
  nonNegativeFiniteNumber,
@@ -10,10 +10,7 @@ import type { GoalStatus } from "./prompts.js";
10
10
 
11
11
  const GOAL_STATE_ENTRY_TYPE = "goal-state";
12
12
  const LEGACY_GOALS_STATE_ENTRY_TYPE = "goals-state";
13
- const STATE_FILE = join(
14
- process.env.PI_CODING_AGENT_DIR ?? join(process.env.HOME ?? ".", ".pi", "agent"),
15
- "pi-goal-state.json",
16
- );
13
+ const STATE_FILE = join(getAgentDir(), "pi-goal-state.json");
17
14
 
18
15
  export type SafetyPauseCause = "continuation_limit" | "no_progress";
19
16