pi-cc-extensions 0.8.34 → 0.8.35

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.
@@ -1,12 +1,20 @@
1
1
  import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
+ import * as piCodingAgent from "@earendil-works/pi-coding-agent";
3
+ import * as piTui from "@earendil-works/pi-tui";
2
4
  import { visibleWidth } from "@earendil-works/pi-tui";
3
5
  import { createJiti } from "jiti";
4
6
 
5
7
  type LifecycleHandler = (event: any, ctx: any) => void;
6
8
  type FixedEditorExtension = (pi: ExtensionAPI) => void;
7
9
 
8
- // The npm package publishes TypeScript source only, so use Pi's own TS loader.
9
- const jiti = createJiti(import.meta.url);
10
+ // Upstream publishes TS only. Nested jiti must reuse Pi's live modules — peer
11
+ // deps are not resolvable from ~/.pi/agent/npm/node_modules/pi-cc-extensions.
12
+ const jiti = createJiti(import.meta.url, {
13
+ virtualModules: {
14
+ "@earendil-works/pi-coding-agent": piCodingAgent,
15
+ "@earendil-works/pi-tui": piTui,
16
+ },
17
+ });
10
18
  // Match pi-fixed-editor's own `.js` import specifier; Jiti caches `.ts` separately.
11
19
  const terminalSplit = jiti("@tifan/pi-fixed-editor/src/terminal-split.js") as {
12
20
  TerminalSplitCompositor?: { prototype: Record<PropertyKey, any> };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cc-extensions",
3
- "version": "0.8.34",
3
+ "version": "0.8.35",
4
4
  "description": "A Pi productivity suite with Claude Code-style UI, fixed editor, context inspection, and agent/session references",
5
5
  "type": "module",
6
6
  "keywords": [