pi-lean-ctx 3.3.5 → 3.4.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.
@@ -251,7 +251,7 @@ function isMcpAdapterConfigured(): boolean {
251
251
 
252
252
  async function execLeanCtx(pi: ExtensionAPI, args: string[]) {
253
253
  const bin = resolveBinary();
254
- const result = await pi.exec(bin, args, { env: { LEAN_CTX_COMPRESS: "1" } });
254
+ const result = await pi.exec(bin, args, { env: { ...process.env, LEAN_CTX_COMPRESS: "1" } });
255
255
  if (result.code !== 0) {
256
256
  const msg = (result.stderr || result.stdout || `lean-ctx failed: ${args.join(" ")}`).trim();
257
257
  throw new Error(msg);
@@ -78,6 +78,7 @@ export class McpBridge {
78
78
  this.transport = new StdioClientTransport({
79
79
  command: this.binary,
80
80
  args: [],
81
+ env: { ...process.env, LEAN_CTX_COMPRESS: "1" },
81
82
  stderr: "pipe",
82
83
  });
83
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-lean-ctx",
3
- "version": "3.3.5",
3
+ "version": "3.4.1",
4
4
  "description": "Pi Coding Agent extension with first-class MCP support — routes bash, read, grep, find, and ls through lean-ctx CLI, and exposes all 46 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": ["pi-package", "lean-ctx", "token-optimization", "compression", "mcp"],
6
6
  "license": "Apache-2.0",