@hcmai/cli 0.4.23 → 0.4.24
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/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/skills/manifest.json +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9856,13 +9856,18 @@ function caseLibraryDir() {
|
|
|
9856
9856
|
function codexConfigFile() {
|
|
9857
9857
|
return path9.join(process.env.HOME ?? os4.homedir(), ".codex", "config.toml");
|
|
9858
9858
|
}
|
|
9859
|
-
function renderCodexMcpSection(repo, envName) {
|
|
9859
|
+
function renderCodexMcpSection(repo, envName, binPath = process.env.PATH ?? "") {
|
|
9860
9860
|
const server = path9.join(repo, "mcp", "server.mjs");
|
|
9861
|
+
const env2 = [
|
|
9862
|
+
`CASES_REPO = ${JSON.stringify(repo)}`,
|
|
9863
|
+
`HCM_ENV = ${JSON.stringify(envName)}`,
|
|
9864
|
+
...binPath ? [`PATH = ${JSON.stringify(binPath)}`] : []
|
|
9865
|
+
].join(", ");
|
|
9861
9866
|
return [
|
|
9862
9867
|
`[mcp_servers.${CASES_MCP_NAME}]`,
|
|
9863
9868
|
'command = "node"',
|
|
9864
9869
|
`args = [${JSON.stringify(server)}]`,
|
|
9865
|
-
`env = {
|
|
9870
|
+
`env = { ${env2} }`,
|
|
9866
9871
|
""
|
|
9867
9872
|
].join("\n");
|
|
9868
9873
|
}
|