@oh-my-pi/pi-coding-agent 4.2.2 → 4.2.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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [4.2.3] - 2026-01-11
6
+
7
+ ### Changed
8
+
9
+ - Changed default for `hidden` option in find tool from `false` to `true`, now including hidden files by default
10
+
11
+ ### Fixed
12
+
13
+ - Fixed serialized auth storage initialization so OAuth refreshes in subagents don't crash
14
+
5
15
  ## [4.2.2] - 2026-01-11
6
16
  ### Added
7
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-coding-agent",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "ompConfig": {
@@ -39,10 +39,10 @@
39
39
  "prepublishOnly": "bun run generate-template && bun run clean && bun run build"
40
40
  },
41
41
  "dependencies": {
42
- "@oh-my-pi/pi-ai": "4.2.2",
43
- "@oh-my-pi/pi-agent-core": "4.2.2",
44
- "@oh-my-pi/pi-git-tool": "4.2.2",
45
- "@oh-my-pi/pi-tui": "4.2.2",
42
+ "@oh-my-pi/pi-ai": "4.2.3",
43
+ "@oh-my-pi/pi-agent-core": "4.2.3",
44
+ "@oh-my-pi/pi-git-tool": "4.2.3",
45
+ "@oh-my-pi/pi-tui": "4.2.3",
46
46
  "@openai/agents": "^0.3.7",
47
47
  "@sinclair/typebox": "^0.34.46",
48
48
  "ajv": "^8.17.1",
@@ -15,7 +15,7 @@ import {
15
15
  type OAuthCredentials,
16
16
  type OAuthProvider,
17
17
  } from "@oh-my-pi/pi-ai";
18
- import { getAgentDbPath } from "../config";
18
+ import { getAgentDbPath, getAuthPath } from "../config";
19
19
  import { AgentStorage } from "./agent-storage";
20
20
  import { logger } from "./logger";
21
21
  import { migrateJsonStorage } from "./storage-migration";
@@ -49,6 +49,8 @@ export interface SerializedAuthStorage {
49
49
  }>
50
50
  >;
51
51
  runtimeOverrides?: Record<string, string>;
52
+ authPath?: string;
53
+ dbPath?: string;
52
54
  }
53
55
 
54
56
  /**
@@ -138,6 +140,11 @@ export class AuthStorage {
138
140
  */
139
141
  static fromSerialized(data: SerializedAuthStorage): AuthStorage {
140
142
  const instance = Object.create(AuthStorage.prototype) as AuthStorage;
143
+ const authPath = data.authPath ?? data.dbPath ?? getAuthPath();
144
+ instance.authPath = authPath;
145
+ instance.fallbackPaths = [];
146
+ instance.dbPath = data.dbPath ?? AuthStorage.resolveDbPath(authPath);
147
+ instance.storage = AgentStorage.open(instance.dbPath);
141
148
  instance.data = new Map();
142
149
  instance.runtimeOverrides = new Map();
143
150
  instance.providerRoundRobinIndex = new Map();
@@ -186,6 +193,8 @@ export class AuthStorage {
186
193
  return {
187
194
  credentials,
188
195
  runtimeOverrides: Object.keys(runtimeOverrides).length > 0 ? runtimeOverrides : undefined,
196
+ authPath: this.authPath,
197
+ dbPath: this.dbPath,
189
198
  };
190
199
  }
191
200
 
@@ -20,7 +20,7 @@ const findSchema = Type.Object({
20
20
  }),
21
21
  path: Type.Optional(Type.String({ description: "Directory to search in (default: current directory)" })),
22
22
  limit: Type.Optional(Type.Number({ description: "Maximum number of results (default: 1000)" })),
23
- hidden: Type.Optional(Type.Boolean({ description: "Include hidden files (default: false)" })),
23
+ hidden: Type.Optional(Type.Boolean({ description: "Include hidden files (default: true)" })),
24
24
  sortByMtime: Type.Optional(
25
25
  Type.Boolean({ description: "Sort results by modification time, most recent first (default: false)" }),
26
26
  ),
@@ -143,7 +143,7 @@ export function createFindTool(session: ToolSession, options?: FindToolOptions):
143
143
  })();
144
144
  const effectiveLimit = limit ?? DEFAULT_LIMIT;
145
145
  const effectiveType = type ?? "all";
146
- const includeHidden = hidden ?? false;
146
+ const includeHidden = hidden ?? true;
147
147
  const shouldSortByMtime = sortByMtime ?? false;
148
148
 
149
149
  // If custom operations provided with glob, use that instead of fd