@lark-codem/codem-cli 0.1.225-dev-trace-task.100102409729.0.g8a12a82 → 0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f
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/bin/codem-service.js +8 -12
- package/package.json +9 -9
package/bin/codem-service.js
CHANGED
|
@@ -99,18 +99,14 @@ async function resolveRuntimeEntry(version) {
|
|
|
99
99
|
// 二者需同步改):Windows 计划任务 XML 无法携带环境变量,codem 专属服务 env
|
|
100
100
|
// (泳道快照等)统一从 runtime/service-env.json 加载。缺文件 = 无服务 env;
|
|
101
101
|
// 解析失败上报 stderr,不静默。
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
} catch (err) {
|
|
111
|
-
if (err?.code !== "ENOENT") {
|
|
112
|
-
console.error("[codem-service] 忽略无法解析的 service-env.json:", err?.message ?? err);
|
|
113
|
-
}
|
|
102
|
+
try {
|
|
103
|
+
const entries = JSON.parse(await fs.readFile(path.join(RUNTIME_ROOT, "service-env.json"), "utf8"));
|
|
104
|
+
for (const [key, value] of Object.entries(entries)) {
|
|
105
|
+
if (typeof value === "string") process.env[key] = value;
|
|
106
|
+
}
|
|
107
|
+
} catch (err) {
|
|
108
|
+
if (err?.code !== "ENOENT") {
|
|
109
|
+
console.error("[codem-service] 忽略无法解析的 service-env.json:", err?.message ?? err);
|
|
114
110
|
}
|
|
115
111
|
}
|
|
116
112
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-codem/codem-cli",
|
|
3
|
-
"version": "0.1.225-dev-
|
|
4
|
-
"codemServiceManagementProtocol":
|
|
3
|
+
"version": "0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f",
|
|
4
|
+
"codemServiceManagementProtocol": 2,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "CodeM local CLI for Feishu-driven coding sessions",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@lark-codem/codem-core": "0.8.57-dev-
|
|
30
|
+
"@lark-codem/codem-core": "0.8.57-dev-feat-codem-tag.100102410672.0.g1d7335e"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@lark-codem/codem-cli-darwin-arm64": "0.1.225-dev-
|
|
34
|
-
"@lark-codem/codem-cli-darwin-x64": "0.1.225-dev-
|
|
35
|
-
"@lark-codem/codem-cli-linux-x64": "0.1.225-dev-
|
|
36
|
-
"@lark-codem/codem-cli-linux-arm64": "0.1.225-dev-
|
|
37
|
-
"@lark-codem/codem-cli-win32-arm64": "0.1.225-dev-
|
|
38
|
-
"@lark-codem/codem-cli-win32-x64": "0.1.225-dev-
|
|
33
|
+
"@lark-codem/codem-cli-darwin-arm64": "0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f",
|
|
34
|
+
"@lark-codem/codem-cli-darwin-x64": "0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f",
|
|
35
|
+
"@lark-codem/codem-cli-linux-x64": "0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f",
|
|
36
|
+
"@lark-codem/codem-cli-linux-arm64": "0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f",
|
|
37
|
+
"@lark-codem/codem-cli-win32-arm64": "0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f",
|
|
38
|
+
"@lark-codem/codem-cli-win32-x64": "0.1.225-dev-feat-codem-tag.100102410672.0.g728e96f"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=18"
|