@oh-my-pi/pi-coding-agent 9.6.3 → 9.6.4

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": "@oh-my-pi/pi-coding-agent",
3
- "version": "9.6.3",
3
+ "version": "9.6.4",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "ompConfig": {
@@ -79,12 +79,12 @@
79
79
  "test": "bun test"
80
80
  },
81
81
  "dependencies": {
82
- "@oh-my-pi/omp-stats": "9.6.3",
83
- "@oh-my-pi/pi-agent-core": "9.6.3",
84
- "@oh-my-pi/pi-ai": "9.6.3",
85
- "@oh-my-pi/pi-natives": "9.6.3",
86
- "@oh-my-pi/pi-tui": "9.6.3",
87
- "@oh-my-pi/pi-utils": "9.6.3",
82
+ "@oh-my-pi/omp-stats": "9.6.4",
83
+ "@oh-my-pi/pi-agent-core": "9.6.4",
84
+ "@oh-my-pi/pi-ai": "9.6.4",
85
+ "@oh-my-pi/pi-natives": "9.6.4",
86
+ "@oh-my-pi/pi-tui": "9.6.4",
87
+ "@oh-my-pi/pi-utils": "9.6.4",
88
88
  "@openai/agents": "^0.4.4",
89
89
  "@sinclair/typebox": "^0.34.48",
90
90
  "ajv": "^8.17.1",
package/src/tools/find.ts CHANGED
@@ -238,8 +238,8 @@ export class FindTool implements AgentTool<typeof findSchema, FindToolDetails> {
238
238
  });
239
239
  };
240
240
  const onMatch = onUpdate
241
- ? (match: FindMatch) => {
242
- if (signal?.aborted) return;
241
+ ? (match: FindMatch | null) => {
242
+ if (signal?.aborted || !match) return;
243
243
  let relativePath = match.path;
244
244
  if (!relativePath) return;
245
245
  if (match.fileType === "dir" && !relativePath.endsWith("/")) {