pi-mono-btw 1.1.1 → 1.4.0

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/CHANGELOG.md +34 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # pi-mono-btw
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add teammate progress heartbeats and widget refresh improvements to team mode.
8
+
9
+ ## 1.3.0
10
+
11
+ ## 1.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - ### `multi-edit` — robustness improvements
16
+
17
+ - **No-op write guard**: skip file write and `context-guard:file-modified` event when new content is identical to what was last read — prevents unnecessary watcher churn
18
+ - **Early write-access check**: virtual workspace `checkWriteAccess` now validates real-filesystem permissions during the preflight pass so read-only files fail fast before any real file is touched
19
+ - **Curly-quote normalization**: new `findActualString` helper falls back to normalized quote matching (`"` / `'` ↔ `"` / `'`) when exact `oldText` search fails — the most common class of preflight mismatch
20
+ - **Atomic batch rollback**: `applyClassicEdits` gains a `rollbackOnError` option that restores all successfully written files when a later edit in the same batch fails
21
+
22
+ ### `ask-user-question` — UX fixes
23
+
24
+ - **Reliable text capture on submit**: answer is read directly from the editor before it clears itself, fixing a race where the stored value was always empty
25
+ - **Unified advance logic**: `advanceTab()` and `saveOtherModeText()` helpers replace scattered single-question fast-paths — behaviour is now consistent regardless of form length
26
+ - **Auto-advance on Enter / Tab**: pressing Enter or Tab in any question (text, radio with "Other", checkbox with "Other") advances to the next tab without requiring a separate click
27
+
28
+ ### `team-mode` — stability fixes
29
+
30
+ - **Infinite retry loop eliminated**: subprocess guard (`PI_TEAM_SUBPROCESS=1`) prevents spawned pi subprocesses from launching a ghost `LeaderRuntime` that immediately marks in-progress tasks as stalled
31
+ - **Stall detection grace period**: tasks updated within the last 2 × `LEADER_POLL_MS` (10 s) are skipped by `detectStalledTasks` — eliminates false positives on the spawning cycle
32
+ - **Circuit breaker**: tasks that stall more than `MAX_TASK_RETRIES` (3) times are permanently cancelled with a clear error signal instead of being silently re-queued
33
+ - **Concurrent cycle guard**: `runLeaderCycle` returns early if a cycle is already in-flight for the same team, preventing overlapping read-modify-write from the poll interval and completion handlers
34
+ - **Widget cleanup**: cancelled and completed teams are no longer shown in the team widget — only `initializing | running | paused | failed` states are displayed
35
+ - **Shorter auto-generated names**: `objectiveToName` now splits on non-alphanumeric characters (handles path separators), filters stopwords and extreme-length tokens, and hard-caps at 32 characters
36
+
3
37
  ## 1.1.1
4
38
 
5
39
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-mono-btw",
3
- "version": "1.1.1",
3
+ "version": "1.4.0",
4
4
  "description": "Pi extension that answers side questions while the main agent keeps running",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/emanuelcasco/pi-extensions.git",
22
+ "url": "git+https://github.com/emanuelcasco/pi-mono-extensions.git",
23
23
  "directory": "extensions/btw"
24
24
  },
25
25
  "bugs": {
26
- "url": "https://github.com/emanuelcasco/pi-extensions/issues"
26
+ "url": "https://github.com/emanuelcasco/pi-mono-extensions/issues"
27
27
  },
28
- "homepage": "https://github.com/emanuelcasco/pi-extensions#readme"
28
+ "homepage": "https://github.com/emanuelcasco/pi-mono-extensions#readme"
29
29
  }