pi-lean-ctx 3.4.6 → 3.4.7

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.
@@ -259,7 +259,7 @@ async function execLeanCtx(pi: ExtensionAPI, args: string[]) {
259
259
  return result.stdout;
260
260
  }
261
261
 
262
- export default function (pi: ExtensionAPI) {
262
+ export default async function (pi: ExtensionAPI) {
263
263
  const baseBashTool = createBashToolDefinition(process.cwd(), {
264
264
  spawnHook: ({ command, cwd, env }) => {
265
265
  const bin = resolveBinary();
@@ -493,9 +493,11 @@ export default function (pi: ExtensionAPI) {
493
493
  const mcpBridge = new McpBridge(resolveBinary());
494
494
 
495
495
  if (!isMcpAdapterConfigured()) {
496
- mcpBridge.start(pi).catch((err) => {
496
+ try {
497
+ await mcpBridge.start(pi);
498
+ } catch (err) {
497
499
  console.error(`[pi-lean-ctx] MCP bridge startup failed: ${err}`);
498
- });
500
+ }
499
501
  }
500
502
 
501
503
  pi.registerCommand("lean-ctx", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-lean-ctx",
3
- "version": "3.4.6",
3
+ "version": "3.4.7",
4
4
  "description": "Pi Coding Agent extension with first-class MCP support \u2014 routes bash, read, grep, find, and ls through lean-ctx CLI, and exposes all 49 lean-ctx MCP tools (ctx_session, ctx_knowledge, ctx_semantic_search, ctx_impact, ctx_architecture, ctx_workflow, ctx_gain, etc.) natively in Pi",
5
5
  "keywords": [
6
6
  "pi-package",