ac-teams 0.0.6 → 0.0.8

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/src/config.ts CHANGED
@@ -6,7 +6,9 @@ import { isRecord } from "./connection.ts";
6
6
 
7
7
  export interface DisplaySettings { tasks: boolean; agents: boolean }
8
8
  export const defaultDisplaySettings: DisplaySettings = { tasks: true, agents: true };
9
- const displayPath = () => join(homedir(), ".acstack", "ac-teams", "display.json");
9
+ /** ac-teams state outside Pi's agent directory: settings, team stores, and generated member configuration. */
10
+ export const stateRoot = () => join(homedir(), ".pi", "ac-teams");
11
+ const displayPath = () => join(stateRoot(), "display.json");
10
12
 
11
13
  export function readDisplaySettings(): DisplaySettings {
12
14
  let value: unknown;
@@ -32,7 +34,7 @@ export function saveDisplaySettings(value: DisplaySettings): void {
32
34
 
33
35
  export function policy(cwd: string, trusted: boolean, flags: { limit?: string; depth?: string }) {
34
36
  let config: Record<string, unknown> = { limit: 10, depth: 2 };
35
- const files = [join(homedir(), ".acstack", "ac-teams", "config.json")];
37
+ const files = [join(stateRoot(), "config.json")];
36
38
  if (trusted) files.push(join(cwd, ".pi", "ac-teams.json"));
37
39
  for (const file of files) {
38
40
  let value: unknown;