@opentmd/cli 0.1.0 → 0.1.1
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/opentmd.js +6 -2
- package/package.json +6 -5
package/bin/opentmd.js
CHANGED
|
@@ -14,6 +14,9 @@ const PLATFORM_PACKAGES = {
|
|
|
14
14
|
arm64: "@opentmd/cli-linux-arm64",
|
|
15
15
|
x64: "@opentmd/cli-linux-x64",
|
|
16
16
|
},
|
|
17
|
+
win32: {
|
|
18
|
+
x64: "@opentmd/cli-win32-x64",
|
|
19
|
+
},
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
const os = process.platform;
|
|
@@ -23,7 +26,7 @@ const pkgName = PLATFORM_PACKAGES[os]?.[arch];
|
|
|
23
26
|
if (!pkgName) {
|
|
24
27
|
console.error(
|
|
25
28
|
`Unsupported platform: ${os} ${arch}. ` +
|
|
26
|
-
"OpenTMD provides binaries for darwin (arm64/x64)
|
|
29
|
+
"OpenTMD provides binaries for darwin (arm64/x64), linux (arm64/x64), and windows (x64)."
|
|
27
30
|
);
|
|
28
31
|
process.exit(1);
|
|
29
32
|
}
|
|
@@ -41,7 +44,8 @@ try {
|
|
|
41
44
|
process.exit(1);
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
const
|
|
47
|
+
const binName = os === "win32" ? "opentmd.exe" : "opentmd";
|
|
48
|
+
const binPath = path.join(pkgDir, "bin", binName);
|
|
45
49
|
|
|
46
50
|
if (!existsSync(binPath)) {
|
|
47
51
|
console.error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentmd/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Open-source terminal AI coding assistant — connect any LLM, edit code, run commands",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -31,9 +31,10 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@opentmd/cli-darwin-arm64": "0.1.
|
|
35
|
-
"@opentmd/cli-darwin-x64": "0.1.
|
|
36
|
-
"@opentmd/cli-linux-arm64": "0.1.
|
|
37
|
-
"@opentmd/cli-linux-x64": "0.1.
|
|
34
|
+
"@opentmd/cli-darwin-arm64": "0.1.1",
|
|
35
|
+
"@opentmd/cli-darwin-x64": "0.1.1",
|
|
36
|
+
"@opentmd/cli-linux-arm64": "0.1.1",
|
|
37
|
+
"@opentmd/cli-linux-x64": "0.1.1",
|
|
38
|
+
"@opentmd/cli-win32-x64": "0.1.1"
|
|
38
39
|
}
|
|
39
40
|
}
|