@fyeeme/pi-thinking-ui 1.1.0 → 1.1.1
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/package.json +1 -1
- package/persistence.ts +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.1.1] - 2026-09-09
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Preference paths use `CONFIG_DIR_NAME` (project scope) and `getAgentDir()` (global scope, honors `PI_CODING_AGENT_DIR`) instead of hardcoded `~/.pi` paths.
|
|
8
|
+
|
|
3
9
|
## [1.1.0] - 2026-08-08
|
|
4
10
|
|
|
5
11
|
### Removed
|
package/package.json
CHANGED
package/persistence.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
2
|
-
import { homedir } from "node:os";
|
|
3
2
|
import { dirname, join } from "node:path";
|
|
3
|
+
import { CONFIG_DIR_NAME, getAgentDir } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import { parseThinkingMode } from "./parse.ts";
|
|
5
5
|
import type { PersistedThinkingUIPreferenceScope, ThinkingUIMode } from "./types.ts";
|
|
6
6
|
|
|
@@ -8,11 +8,12 @@ const PREFERENCE_FILE_NAME = "thinking-ui.json";
|
|
|
8
8
|
|
|
9
9
|
function getPreferencePath(scope: PersistedThinkingUIPreferenceScope, cwd: string): string {
|
|
10
10
|
if (scope === "global") {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
// getAgentDir() honors PI_CODING_AGENT_DIR and rebranded config dirs;
|
|
12
|
+
// hand-rolling ~/.pi/agent would bypass both.
|
|
13
|
+
return join(getAgentDir(), "state", PREFERENCE_FILE_NAME);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
return join(cwd,
|
|
16
|
+
return join(cwd, CONFIG_DIR_NAME, PREFERENCE_FILE_NAME);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
function errorMessage(error: unknown): string {
|