@askexenow/exe-os 0.9.45 → 0.9.47

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/dist/bin/cli.js CHANGED
@@ -1657,16 +1657,17 @@ ${END_MARKER}`;
1657
1657
  if (existsSync7(configPath)) {
1658
1658
  const existing = readFileSync5(configPath, "utf8");
1659
1659
  if (existing.includes(START_MARKER) && existing.includes(END_MARKER)) {
1660
- const before = existing.slice(0, existing.indexOf(START_MARKER));
1661
- const after = existing.slice(existing.indexOf(END_MARKER) + END_MARKER.length);
1662
- writeFileSync4(configPath, `${before}${markedSection}${after}`);
1660
+ process.stderr.write("exe-os: Ghostty config already installed \u2014 preserving local settings\n");
1661
+ return;
1663
1662
  } else if (existing.includes("Exe OS")) {
1664
1663
  if (!existsSync7(backupPath)) {
1665
1664
  copyFileSync(configPath, backupPath);
1666
1665
  process.stderr.write(`exe-os: backed up existing Ghostty config to ${backupPath}
1667
1666
  `);
1668
1667
  }
1669
- writeFileSync4(configPath, `${markedSection}
1668
+ writeFileSync4(configPath, `${START_MARKER}
1669
+ ${existing.trim()}
1670
+ ${END_MARKER}
1670
1671
  `);
1671
1672
  } else {
1672
1673
  if (!existsSync7(backupPath)) {
@@ -4486,7 +4486,11 @@ var DEFAULT_ROLE_MCP_MAP = {
4486
4486
  "content production specialist": ["exe-create"],
4487
4487
  "ai product lead": ["brave-search"]
4488
4488
  };
4489
- var ALWAYS_INCLUDE_SERVERS = ["exe-mem"];
4489
+ var ALWAYS_INCLUDE_SERVERS = ["exe-os", "exe-mem"];
4490
+ function leanMcpEnabled() {
4491
+ const value = process.env.EXE_OS_ENABLE_LEAN_MCP?.trim().toLowerCase();
4492
+ return value === "1" || value === "true" || value === "yes";
4493
+ }
4490
4494
  function collectAllMcpServers() {
4491
4495
  const servers = {};
4492
4496
  const sources = [
@@ -4551,6 +4555,7 @@ function generateLeanMcpConfig(agent, role) {
4551
4555
  }
4552
4556
  }
4553
4557
  function leanMcpConfigFor(agent) {
4558
+ if (!leanMcpEnabled()) return null;
4554
4559
  const p = path10.join(os7.homedir(), ".exe-os", "mcp-configs", `${agent}-lean.json`);
4555
4560
  return existsSync9(p) ? p : null;
4556
4561
  }
@@ -4793,7 +4798,9 @@ async function main() {
4793
4798
  return "employee";
4794
4799
  }
4795
4800
  })();
4796
- generateLeanMcpConfig(memoryAgent, empRole);
4801
+ if (leanMcpEnabled()) {
4802
+ generateLeanMcpConfig(memoryAgent, empRole);
4803
+ }
4797
4804
  const plan = buildLaunchPlan(agent, behaviorsPath, passthrough, hasAgentFlag, provider);
4798
4805
  process.env.AGENT_ID = memoryAgent;
4799
4806
  if (!process.env.EXE_SESSION_KEY) {
@@ -2104,16 +2104,17 @@ ${END_MARKER}`;
2104
2104
  if (existsSync11(configPath)) {
2105
2105
  const existing = readFileSync9(configPath, "utf8");
2106
2106
  if (existing.includes(START_MARKER) && existing.includes(END_MARKER)) {
2107
- const before = existing.slice(0, existing.indexOf(START_MARKER));
2108
- const after = existing.slice(existing.indexOf(END_MARKER) + END_MARKER.length);
2109
- writeFileSync7(configPath, `${before}${markedSection}${after}`);
2107
+ process.stderr.write("exe-os: Ghostty config already installed \u2014 preserving local settings\n");
2108
+ return;
2110
2109
  } else if (existing.includes("Exe OS")) {
2111
2110
  if (!existsSync11(backupPath)) {
2112
2111
  copyFileSync(configPath, backupPath);
2113
2112
  process.stderr.write(`exe-os: backed up existing Ghostty config to ${backupPath}
2114
2113
  `);
2115
2114
  }
2116
- writeFileSync7(configPath, `${markedSection}
2115
+ writeFileSync7(configPath, `${START_MARKER}
2116
+ ${existing.trim()}
2117
+ ${END_MARKER}
2117
2118
  `);
2118
2119
  } else {
2119
2120
  if (!existsSync11(backupPath)) {
@@ -1442,16 +1442,17 @@ ${END_MARKER}`;
1442
1442
  if (existsSync7(configPath)) {
1443
1443
  const existing = readFileSync5(configPath, "utf8");
1444
1444
  if (existing.includes(START_MARKER) && existing.includes(END_MARKER)) {
1445
- const before = existing.slice(0, existing.indexOf(START_MARKER));
1446
- const after = existing.slice(existing.indexOf(END_MARKER) + END_MARKER.length);
1447
- writeFileSync4(configPath, `${before}${markedSection}${after}`);
1445
+ process.stderr.write("exe-os: Ghostty config already installed \u2014 preserving local settings\n");
1446
+ return;
1448
1447
  } else if (existing.includes("Exe OS")) {
1449
1448
  if (!existsSync7(backupPath)) {
1450
1449
  copyFileSync(configPath, backupPath);
1451
1450
  process.stderr.write(`exe-os: backed up existing Ghostty config to ${backupPath}
1452
1451
  `);
1453
1452
  }
1454
- writeFileSync4(configPath, `${markedSection}
1453
+ writeFileSync4(configPath, `${START_MARKER}
1454
+ ${existing.trim()}
1455
+ ${END_MARKER}
1455
1456
  `);
1456
1457
  } else {
1457
1458
  if (!existsSync7(backupPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askexenow/exe-os",
3
- "version": "0.9.45",
3
+ "version": "0.9.47",
4
4
  "description": "AI employee operating system — persistent memory, task management, and multi-agent coordination for Claude Code.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",