@d3ara1n/pi-editor-shell 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.ts +1 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3ara1n/pi-editor-shell",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "Replaces pi's default editor and status bar with a unified rounded-corner shell embedding status info in the border",
6
6
  "keywords": [
package/src/config.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * "project wins" design, no field-level merging.
7
7
  */
8
8
 
9
+ import { getAgentDir } from "@earendil-works/pi-coding-agent";
9
10
  import * as fs from "node:fs";
10
- import * as os from "node:os";
11
11
  import * as path from "node:path";
12
12
 
13
13
  /** Border icon slots that users can override. Each holds a single glyph
@@ -72,12 +72,6 @@ export const DEFAULT_CONFIG: EditorShellConfig = {
72
72
  modelDisplay: "name",
73
73
  };
74
74
 
75
- function getAgentDir(): string {
76
- const envDir = process.env.PI_AGENT_DIR;
77
- if (envDir) return envDir;
78
- return path.join(os.homedir(), ".pi", "agent");
79
- }
80
-
81
75
  /** Read the `editorShell` block from a settings file.
82
76
  * Returns undefined on missing file / parse error / non-object value —
83
77
  * pi surfaces its own settings errors, this loader stays lenient. */