pi-cc-extensions 0.8.33 → 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.
- package/extensions/fixed-editor.ts +10 -2
- package/package.json +1 -1
|
@@ -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
|
-
//
|
|
9
|
-
|
|
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