@lark-codem/codem-cli 0.1.225-dev-device.100102387134.0.g8f465f9 → 0.1.225-dev-device.100102390757.0.gd4a936e

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.
@@ -99,14 +99,18 @@ async function resolveRuntimeEntry(version) {
99
99
  // 二者需同步改):Windows 计划任务 XML 无法携带环境变量,codem 专属服务 env
100
100
  // (泳道快照等)统一从 runtime/service-env.json 加载。缺文件 = 无服务 env;
101
101
  // 解析失败上报 stderr,不静默。
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);
102
+ // Dedicated Host inputs and App ownership are already bound to its immutable
103
+ // config/shim. A mutable legacy snapshot must not override that installation.
104
+ if (process.env.CODEM_DAEMON_HOSTED_WINDOWS !== "1") {
105
+ try {
106
+ const entries = JSON.parse(await fs.readFile(path.join(RUNTIME_ROOT, "service-env.json"), "utf8"));
107
+ for (const [key, value] of Object.entries(entries)) {
108
+ if (typeof value === "string") process.env[key] = value;
109
+ }
110
+ } catch (err) {
111
+ if (err?.code !== "ENOENT") {
112
+ console.error("[codem-service] 忽略无法解析的 service-env.json:", err?.message ?? err);
113
+ }
110
114
  }
111
115
  }
112
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-codem/codem-cli",
3
- "version": "0.1.225-dev-device.100102387134.0.g8f465f9",
3
+ "version": "0.1.225-dev-device.100102390757.0.gd4a936e",
4
4
  "codemServiceManagementProtocol": 3,
5
5
  "type": "module",
6
6
  "description": "CodeM local CLI for Feishu-driven coding sessions",
@@ -27,15 +27,15 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@lark-codem/codem-core": "0.8.57-dev-device.100102387134.0.g25aa485"
30
+ "@lark-codem/codem-core": "0.8.57-dev-device.100102390757.0.gc9ba746"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@lark-codem/codem-cli-darwin-arm64": "0.1.225-dev-device.100102387134.0.g8f465f9",
34
- "@lark-codem/codem-cli-darwin-x64": "0.1.225-dev-device.100102387134.0.g8f465f9",
35
- "@lark-codem/codem-cli-linux-x64": "0.1.225-dev-device.100102387134.0.g8f465f9",
36
- "@lark-codem/codem-cli-linux-arm64": "0.1.225-dev-device.100102387134.0.g8f465f9",
37
- "@lark-codem/codem-cli-win32-arm64": "0.1.225-dev-device.100102387134.0.g8f465f9",
38
- "@lark-codem/codem-cli-win32-x64": "0.1.225-dev-device.100102387134.0.g8f465f9"
33
+ "@lark-codem/codem-cli-darwin-arm64": "0.1.225-dev-device.100102390757.0.gd4a936e",
34
+ "@lark-codem/codem-cli-darwin-x64": "0.1.225-dev-device.100102390757.0.gd4a936e",
35
+ "@lark-codem/codem-cli-linux-x64": "0.1.225-dev-device.100102390757.0.gd4a936e",
36
+ "@lark-codem/codem-cli-linux-arm64": "0.1.225-dev-device.100102390757.0.gd4a936e",
37
+ "@lark-codem/codem-cli-win32-arm64": "0.1.225-dev-device.100102390757.0.gd4a936e",
38
+ "@lark-codem/codem-cli-win32-x64": "0.1.225-dev-device.100102390757.0.gd4a936e"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=18"