@oh-my-pi/pi-coding-agent 14.7.2 → 14.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-coding-agent",
4
- "version": "14.7.2",
4
+ "version": "14.7.3",
5
5
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://github.com/can1357/oh-my-pi",
7
7
  "author": "Can Boluk",
@@ -46,12 +46,12 @@
46
46
  "dependencies": {
47
47
  "@agentclientprotocol/sdk": "0.21.0",
48
48
  "@mozilla/readability": "^0.6.0",
49
- "@oh-my-pi/omp-stats": "14.7.2",
50
- "@oh-my-pi/pi-agent-core": "14.7.2",
51
- "@oh-my-pi/pi-ai": "14.7.2",
52
- "@oh-my-pi/pi-natives": "14.7.2",
53
- "@oh-my-pi/pi-tui": "14.7.2",
54
- "@oh-my-pi/pi-utils": "14.7.2",
49
+ "@oh-my-pi/omp-stats": "14.7.3",
50
+ "@oh-my-pi/pi-agent-core": "14.7.3",
51
+ "@oh-my-pi/pi-ai": "14.7.3",
52
+ "@oh-my-pi/pi-natives": "14.7.3",
53
+ "@oh-my-pi/pi-tui": "14.7.3",
54
+ "@oh-my-pi/pi-utils": "14.7.3",
55
55
  "@puppeteer/browsers": "^2.13.0",
56
56
  "@sinclair/typebox": "^0.34.49",
57
57
  "@types/turndown": "5.0.6",
@@ -114,7 +114,6 @@ export class ToolExecutionComponent extends Container {
114
114
  // Edit preview state
115
115
  #editMode?: EditMode;
116
116
  #editDiffPreview?: PerFileDiffPreview[];
117
- #editDiffScheduleTimer?: NodeJS.Timeout;
118
117
  #editDiffAbort?: AbortController;
119
118
  #editDiffLastArgsKey?: string;
120
119
  // Cached converted images for Kitty protocol (which requires PNG), keyed by index
@@ -173,13 +172,13 @@ export class ToolExecutionComponent extends Container {
173
172
  this.#editMode = resolveEditModeForTool(toolName, tool);
174
173
 
175
174
  this.#updateDisplay();
176
- this.#schedulePreviewDiff(0);
175
+ void this.#runPreviewDiff();
177
176
  }
178
177
 
179
178
  updateArgs(args: any, _toolCallId?: string): void {
180
179
  this.#args = cloneToolArgs(args);
181
180
  this.#updateSpinnerAnimation();
182
- this.#schedulePreviewDiff();
181
+ void this.#runPreviewDiff();
183
182
  this.#updateDisplay();
184
183
  }
185
184
 
@@ -190,28 +189,7 @@ export class ToolExecutionComponent extends Container {
190
189
  setArgsComplete(_toolCallId?: string): void {
191
190
  this.#argsComplete = true;
192
191
  this.#updateSpinnerAnimation();
193
- this.#schedulePreviewDiff(0);
194
- }
195
-
196
- /**
197
- * Schedule a debounced compute of the streaming edit-diff preview.
198
- * `delayMs === 0` runs immediately (used on construction and on
199
- * `setArgsComplete`). All other calls coalesce to a trailing-edge timer.
200
- */
201
- #schedulePreviewDiff(delayMs = 80): void {
202
- if (!this.#editMode) return;
203
- if (this.#editDiffScheduleTimer) {
204
- clearTimeout(this.#editDiffScheduleTimer);
205
- this.#editDiffScheduleTimer = undefined;
206
- }
207
- if (delayMs === 0) {
208
- void this.#runPreviewDiff();
209
- return;
210
- }
211
- this.#editDiffScheduleTimer = setTimeout(() => {
212
- this.#editDiffScheduleTimer = undefined;
213
- void this.#runPreviewDiff();
214
- }, delayMs);
192
+ void this.#runPreviewDiff();
215
193
  }
216
194
 
217
195
  async #runPreviewDiff(): Promise<void> {
@@ -365,10 +343,6 @@ export class ToolExecutionComponent extends Container {
365
343
  this.#spinnerInterval = undefined;
366
344
  this.#spinnerFrame = undefined;
367
345
  }
368
- if (this.#editDiffScheduleTimer) {
369
- clearTimeout(this.#editDiffScheduleTimer);
370
- this.#editDiffScheduleTimer = undefined;
371
- }
372
346
  this.#editDiffAbort?.abort();
373
347
  this.#editDiffAbort = undefined;
374
348
  }
@@ -6,12 +6,12 @@ Allowed `op` values are only `init`, `start`, `done`, `drop`, `rm`, `append`, an
6
6
 
7
7
  |`op`|Required fields|Effect|
8
8
  |---|---|---|
9
- |`init`|`list`|Initialize the full list|
9
+ |`init`|`list: [{phase, items: string[]}]`|Initialize the full list (replaces any existing list)|
10
10
  |`start`|`task`|Mark in progress|
11
11
  |`done`|`task` or `phase`|Mark completed|
12
12
  |`drop`|`task` or `phase`|Mark abandoned|
13
13
  |`rm`|`task` or `phase`|Remove|
14
- |`append`|`phase`, `items: string[]`|Append tasks; lazily creates phase|
14
+ |`append`|`phase`, `items: string[]`|Append tasks to `phase`; lazily creates phase|
15
15
  |`note`|`task`, `text`|Append a note to a task. Reminders for future-you only.|
16
16
 
17
17
  ## Anatomy