pi-code 1.0.39 → 1.0.41

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.
@@ -76,6 +76,13 @@ export function activeBackgroundRuns(): number {
76
76
  * completing in the same millisecond still evict in their true finish order. */
77
77
  let finishSequence = 0
78
78
 
79
+ /** Test seam: the registry is module state, so tests reset it between cases to
80
+ * stay order-independent. */
81
+ export function resetBackgroundRuns(): void {
82
+ runs.clear()
83
+ finishSequence = 0
84
+ }
85
+
79
86
  function evictFinishedRuns(): void {
80
87
  const finished = [...runs.values()].filter((run) => !run.live && run.state !== 'running')
81
88
  finished.sort((a, b) => (a.finishedAt ?? 0) - (b.finishedAt ?? 0))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-code",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "Claude Code experience for the pi coding agent: reads your .claude config (rules, commands, skills, hooks, output styles, MCP servers, agents) and adds todo, checkpoints, memory, web, and subagents",
5
5
  "keywords": [
6
6
  "pi",