pi-invisible-continue 0.2.3 → 0.3.1

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/continue.ts +10 -0
  2. package/package.json +2 -3
package/continue.ts CHANGED
@@ -19,6 +19,16 @@ import {
19
19
  * triggered after a manual /continue. Auto-retry is not a concern — pi-retry
20
20
  * covers that gap via its agent_end handler, which still fires because the
21
21
  * agent's processEvents propagates to AgentSession's subscriber normally.
22
+ *
23
+ * Module resolution:
24
+ * The Agent class is imported from @earendil-works/pi-agent-core.
25
+ * This package does NOT list pi-agent-core as a devDependency — there is
26
+ * no local node_modules copy. When jiti loads this extension, its alias
27
+ * system rewrites the import specifier to pi's bundled copy, so the
28
+ * subscribe/continue patches apply to the SAME Agent class that
29
+ * AgentSession uses. Previously, a local node_modules/@earendil-works/pi-agent-core
30
+ * caused jiti to resolve the import to a different class — patching the
31
+ * wrong prototype and leaving _agent permanently null.
22
32
  */
23
33
 
24
34
  // Capture the live Agent instance when AgentSession subscribes to it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-invisible-continue",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "Invisible session continuation for pi — resume the agentic loop without sending ANY prompt the LLM can see",
5
5
  "type": "module",
6
6
  "author": "Tom X Nguyen",
@@ -38,8 +38,7 @@
38
38
  "lint:dead": "knip --no-gitignore"
39
39
  },
40
40
  "devDependencies": {
41
- "@earendil-works/pi-agent-core": "0.75.4",
42
- "@earendil-works/pi-ai": "0.75.4",
41
+ "@earendil-works/pi-agent-core": "^0.79.1",
43
42
  "@earendil-works/pi-coding-agent": "0.75.4",
44
43
  "@types/node": "25.9.1",
45
44
  "@vitest/coverage-v8": "4.1.7",