pi-archimedes 2.2.0 → 2.3.0

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/package.json +13 -10
  2. package/src/index.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-archimedes",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -11,21 +11,24 @@
11
11
  ],
12
12
  "main": "./src/index.ts",
13
13
  "dependencies": {
14
- "@pi-archimedes/core": "2.2.0",
15
- "@pi-archimedes/ask": "2.2.0",
16
- "@pi-archimedes/image-paste": "2.2.0",
17
- "@pi-archimedes/todo": "2.2.0",
18
- "@pi-archimedes/subagent": "2.2.0",
19
- "@pi-archimedes/session-name": "2.2.0",
20
- "@pi-archimedes/notify": "2.2.0",
21
- "@pi-archimedes/diff": "2.2.0",
22
- "@pi-archimedes/footer": "2.2.0"
14
+ "@pi-archimedes/core": "2.3.0",
15
+ "@pi-archimedes/diff": "2.3.0",
16
+ "@pi-archimedes/footer": "2.3.0",
17
+ "@pi-archimedes/image-paste": "2.3.0",
18
+ "@pi-archimedes/notify": "2.3.0",
19
+ "@pi-archimedes/subagent": "2.3.0",
20
+ "@pi-archimedes/todo": "2.3.0",
21
+ "@pi-archimedes/ask": "2.3.0",
22
+ "@pi-archimedes/session-name": "2.3.0",
23
+ "@pi-archimedes/mcp": "2.3.0"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "@earendil-works/pi-coding-agent": ">=0.1.0",
26
27
  "@earendil-works/pi-tui": ">=0.1.0"
27
28
  },
28
29
  "devDependencies": {
30
+ "@earendil-works/pi-coding-agent": "^0.84.2",
31
+ "@earendil-works/pi-tui": "^0.84.2",
29
32
  "typescript": "^6.0.0"
30
33
  },
31
34
  "pi": {
package/src/index.ts CHANGED
@@ -66,12 +66,13 @@ export default function (pi: ExtensionAPI): void {
66
66
  currentCtx = ctx;
67
67
 
68
68
  // ── Parallel lazy-load all three packages (saves ~100ms vs sequential) ──
69
- const [diffMod, ipMod, saMod] = await Promise.all([
69
+ const [diffMod, ipMod, saMod, mcpMod] = await Promise.all([
70
70
  import("@pi-archimedes/diff").catch((e) => { console.error("[archimedes] diff load failed:", e); return null; }),
71
71
  import("@pi-archimedes/image-paste").catch((e) => { console.error("[archimedes] image-paste load failed:", e); return null; }),
72
72
  import("@pi-archimedes/subagent").catch((e) => { console.error("[archimedes] subagent load failed:", e); return null; }),
73
+ import("@pi-archimedes/mcp").catch((e) => { console.error("[archimedes] mcp load failed:", e); return null; }),
73
74
  ]);
74
- archTime("3 packages loaded in parallel");
75
+ archTime("4 packages loaded in parallel");
75
76
 
76
77
  // Each session_start fires on a fresh Extension (pi creates a new
77
78
  // ExtensionRunner per session). Registration is safe to — and must —
@@ -96,6 +97,9 @@ export default function (pi: ExtensionAPI): void {
96
97
  saMod.registerSubagent(pi);
97
98
  saMod.registerAgentsCommand(pi);
98
99
  }
100
+ if (mcpMod) {
101
+ mcpMod.registerMcp(pi);
102
+ }
99
103
  });
100
104
 
101
105
  // Register /archimedes command