@askexenow/exe-os 0.8.16 → 0.8.19
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/exe-launch-agent.js +10 -18
- package/package.json +1 -1
|
@@ -1707,25 +1707,17 @@ function leanMcpConfigFor(agent) {
|
|
|
1707
1707
|
const p = path6.join(os3.homedir(), ".exe-os", "mcp-configs", `${agent}-lean.json`);
|
|
1708
1708
|
return existsSync6(p) ? p : null;
|
|
1709
1709
|
}
|
|
1710
|
-
function buildLaunchPlan(agent, behaviorsPath, passthrough,
|
|
1710
|
+
function buildLaunchPlan(agent, behaviorsPath, passthrough, _hasAgentFlag, _provider) {
|
|
1711
1711
|
const args = ["--dangerously-skip-permissions"];
|
|
1712
|
-
const
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
} else if (hasAgentFlag) {
|
|
1724
|
-
args.push("--agent", agent);
|
|
1725
|
-
} else {
|
|
1726
|
-
const idPath = identityPathFor(agent);
|
|
1727
|
-
if (existsSync6(idPath)) {
|
|
1728
|
-
args.push("--append-system-prompt-file", idPath);
|
|
1712
|
+
const idPath = identityPathFor(agent);
|
|
1713
|
+
const ccAgentPath = path6.join(os3.homedir(), ".claude", "agents", `${agent}.md`);
|
|
1714
|
+
const effectiveIdPath = existsSync6(idPath) ? idPath : existsSync6(ccAgentPath) ? ccAgentPath : null;
|
|
1715
|
+
if (effectiveIdPath) {
|
|
1716
|
+
try {
|
|
1717
|
+
const identity = readFileSync2(effectiveIdPath, "utf-8");
|
|
1718
|
+
args.push("--system-prompt", identity);
|
|
1719
|
+
} catch {
|
|
1720
|
+
args.push("--append-system-prompt-file", effectiveIdPath);
|
|
1729
1721
|
}
|
|
1730
1722
|
}
|
|
1731
1723
|
if (behaviorsPath) {
|
package/package.json
CHANGED