@fleetagent/pi-coding-agent 0.0.7 → 0.0.9

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 (37) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/README.md +3 -3
  3. package/dist/core/agent-session.d.ts +3 -0
  4. package/dist/core/agent-session.d.ts.map +1 -1
  5. package/dist/core/agent-session.js +44 -10
  6. package/dist/core/agent-session.js.map +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/modes/index.d.ts +1 -1
  11. package/dist/modes/index.d.ts.map +1 -1
  12. package/dist/modes/index.js.map +1 -1
  13. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  14. package/dist/modes/interactive/interactive-mode.js +4 -3
  15. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  16. package/dist/modes/rpc/rpc-client.d.ts +5 -1
  17. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  18. package/dist/modes/rpc/rpc-client.js +18 -0
  19. package/dist/modes/rpc/rpc-client.js.map +1 -1
  20. package/dist/modes/rpc/rpc-mode.d.ts +1 -1
  21. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  22. package/dist/modes/rpc/rpc-mode.js +38 -0
  23. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  24. package/dist/modes/rpc/rpc-types.d.ts +26 -0
  25. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  26. package/dist/modes/rpc/rpc-types.js.map +1 -1
  27. package/dist/utils/version-check.d.ts.map +1 -1
  28. package/dist/utils/version-check.js +10 -4
  29. package/dist/utils/version-check.js.map +1 -1
  30. package/docs/settings.md +1 -1
  31. package/docs/usage.md +1 -1
  32. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  33. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  34. package/examples/extensions/sandbox/package.json +1 -1
  35. package/examples/extensions/with-deps/package.json +1 -1
  36. package/npm-shrinkwrap.json +12 -12
  37. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.9](https://github.com/fleetagent/pi/compare/@fleetagent/pi-coding-agent-v0.0.8...@fleetagent/pi-coding-agent-v0.0.9) (2026-06-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * **coding-agent:** add paginated RPC session listing ([#12](https://github.com/fleetagent/pi/issues/12)) ([350951b](https://github.com/fleetagent/pi/commit/350951bae00295f2373a5693ff3d13c4440f0cb5))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @fleetagent/pi-agent-core bumped from ^0.0.8 to ^0.0.9
16
+ * @fleetagent/pi-ai bumped from ^0.0.8 to ^0.0.9
17
+ * @fleetagent/pi-tui bumped from ^0.0.8 to ^0.0.9
18
+
19
+ ## [0.0.8](https://github.com/fleetagent/pi/compare/@fleetagent/pi-coding-agent-v0.0.7...@fleetagent/pi-coding-agent-v0.0.8) (2026-06-05)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **coding-agent:** run extension compaction between turns and check n… ([6883d4a](https://github.com/fleetagent/pi/commit/6883d4a7327c24cefac3fd0f89b76fecf1bf62ad))
25
+ * **coding-agent:** run extension compaction between turns and check npm for updates ([609e3a1](https://github.com/fleetagent/pi/commit/609e3a1a48cdc946f7a218beb1f0e5ba341d2442))
26
+
27
+
28
+ ### Dependencies
29
+
30
+ * The following workspace dependencies were updated
31
+ * dependencies
32
+ * @fleetagent/pi-agent-core bumped from ^0.0.7 to ^0.0.8
33
+ * @fleetagent/pi-ai bumped from ^0.0.7 to ^0.0.8
34
+ * @fleetagent/pi-tui bumped from ^0.0.7 to ^0.0.8
35
+
3
36
  ## [0.0.7](https://github.com/fleetagent/pi/compare/@fleetagent/pi-coding-agent-v0.0.6...@fleetagent/pi-coding-agent-v0.0.7) (2026-06-04)
4
37
 
5
38
 
@@ -42,12 +75,14 @@
42
75
 
43
76
  ### Added
44
77
 
78
+ - Added paginated `listSessions` support to the RPC client.
45
79
  - Added on-demand `RULES.md` resources for mandatory task and file constraints.
46
80
 
47
81
  ### Fixed
48
82
 
49
83
  - Changed RPC client idle waits to use a five-minute inactivity timeout that resets when events arrive.
50
- - Deferred extension-triggered compaction until after the active agent turn ends.
84
+ - Ran extension-triggered compaction between agent turns so queued follow-up work can continue before `agent_end`.
85
+ - Fixed update notifications to check and describe the `@fleetagent/pi-coding-agent` package instead of the upstream Pi release.
51
86
 
52
87
  ## [0.0.5](https://github.com/fleetagent/pi/compare/@fleetagent/pi-coding-agent-v0.0.4...@fleetagent/pi-coding-agent-v0.0.5) (2026-05-23)
53
88
 
package/README.md CHANGED
@@ -289,8 +289,8 @@ See [docs/settings.md](docs/settings.md) for all options.
289
289
 
290
290
  Pi has two separate startup features:
291
291
 
292
- - **Update check:** fetches `https://pi.dev/api/latest-version` to check whether a newer Pi version exists. Disable it with `PI_SKIP_VERSION_CHECK=1`. Disabling update checks only turns off this check.
293
- - **Install/update telemetry:** after first install or a changelog-detected update, sends an anonymous version ping to `https://pi.dev/api/report-install`. Opt out by setting `enableInstallTelemetry` to `false` in `settings.json`, or by setting `PI_TELEMETRY=0`. This does not disable update checks; Pi may still contact `pi.dev` for the latest version unless update checks are disabled or offline mode is enabled.
292
+ - **Update check:** fetches npm metadata for `@fleetagent/pi-coding-agent` to check whether a newer Pi version exists. Disable it with `PI_SKIP_VERSION_CHECK=1`. Disabling update checks only turns off this check.
293
+ - **Install/update telemetry:** after first install or a changelog-detected update, sends an anonymous version ping to `https://pi.dev/api/report-install`. Opt out by setting `enableInstallTelemetry` to `false` in `settings.json`, or by setting `PI_TELEMETRY=0`. This does not disable update checks; Pi may still contact the npm registry for the latest version unless update checks are disabled or offline mode is enabled.
294
294
 
295
295
  Use `--offline` or `PI_OFFLINE=1` to disable all startup network operations described here, including update checks, package update checks, and install/update telemetry.
296
296
 
@@ -659,7 +659,7 @@ pi --thinking high "Solve this complex problem"
659
659
  | `PI_REMOTE_PROJECT_ID` | Project id sent to remote session service (overridden by `--remote-project-id`) |
660
660
  | `PI_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly) |
661
661
  | `PI_OFFLINE` | Disable startup network operations, including update checks, package update checks, and install/update telemetry |
662
- | `PI_SKIP_VERSION_CHECK` | Skip the Pi version update check at startup. This prevents the `pi.dev` latest-version request |
662
+ | `PI_SKIP_VERSION_CHECK` | Skip the Pi version update check at startup. This prevents the npm metadata request |
663
663
  | `PI_TELEMETRY` | Override install/update telemetry. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable. This does not disable update checks |
664
664
  | `PI_CACHE_RETENTION` | Set to `long` for extended prompt cache (Anthropic: 1h, OpenAI: 24h) |
665
665
  | `VISUAL`, `EDITOR` | External editor for Ctrl+G |
@@ -238,6 +238,8 @@ export declare class AgentSession {
238
238
  * happens here instead of in wrappers.
239
239
  */
240
240
  private _installAgentToolHooks;
241
+ private _installAgentTurnPreparation;
242
+ private _buildCurrentAgentContext;
241
243
  /** Emit an event to all listeners */
242
244
  private _emit;
243
245
  private _emitQueueUpdate;
@@ -487,6 +489,7 @@ export declare class AgentSession {
487
489
  * @param customInstructions Optional instructions for the compaction summary
488
490
  */
489
491
  compact(customInstructions?: string): Promise<CompactionResult>;
492
+ private _compactSession;
490
493
  /**
491
494
  * Cancel in-progress compaction (manual or auto).
492
495
  */