@langgexyz/anycode 0.4.9 → 0.4.10
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/README.md +1 -1
- package/npm/README.md +6 -0
- package/npm/dist/cli.mjs +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ anycode doctor
|
|
|
75
75
|
`https://anycode.me/releases/latest.json`;不指定版本默认安装 stable。发布包支持 macOS 和 Linux 的 `arm64`、`x64` 以及 Windows `x64`;安装器支持
|
|
76
76
|
macOS 和 Linux,Windows 用户从 `https://anycode.me/releases/v<版本>/` 手动下载。安装目录为
|
|
77
77
|
`~/.local/share/anycode`,启动器为 `~/.local/bin/anycode`。本地工程操作不要求登录;需要访问
|
|
78
|
-
AnyCode 账户的操作使用 `anycode login
|
|
78
|
+
AnyCode 账户的操作使用 `anycode login`。升级使用 `anycode update`(`anycode upgrade` 是同义别名);默认更新 stable,`--rc` 更新预览版。`anycode version` 和 `anycode --version` 显示当前版本号;Windows 暂不支持自动更新,需手动下载指定版本。
|
|
79
79
|
|
|
80
80
|
仓库内没有 workflow 推送 tag;维护者从具备仓库写权限的 Git 环境推送 tag,测试机只用于构建与测试。
|
|
81
81
|
|
package/npm/README.md
CHANGED
|
@@ -29,8 +29,14 @@ npx @langgexyz/anycode <command>
|
|
|
29
29
|
curl -fsSL https://anycode.me/install.sh | sh
|
|
30
30
|
curl -fsSL https://anycode.me/install.sh | ANYCODE_VERSION=<version> sh
|
|
31
31
|
anycode update
|
|
32
|
+
anycode upgrade
|
|
33
|
+
anycode version
|
|
34
|
+
anycode --version
|
|
32
35
|
```
|
|
33
36
|
|
|
37
|
+
`upgrade` is an alias for `update`; plain version commands print the installed
|
|
38
|
+
version number.
|
|
39
|
+
|
|
34
40
|
The release packages support macOS and Linux on `arm64` and `x64`, plus Windows
|
|
35
41
|
`x64`. The installer supports macOS and Linux; Windows users can manually
|
|
36
42
|
download the `windows-x64` package from
|
package/npm/dist/cli.mjs
CHANGED
|
@@ -7,7 +7,6 @@ import { createHash as createHash5 } from "node:crypto";
|
|
|
7
7
|
import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
import { dirname as dirname4, join as join4 } from "node:path";
|
|
10
|
-
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
11
10
|
import { spawnSync } from "node:child_process";
|
|
12
11
|
|
|
13
12
|
// ../runtime/harness-context/src/entry-module.ts
|
|
@@ -1324,7 +1323,7 @@ async function main(args) {
|
|
|
1324
1323
|
}
|
|
1325
1324
|
if (args.includes("--version") && args.length === 1) {
|
|
1326
1325
|
const native = newerNativeExecutable();
|
|
1327
|
-
console.log(native ?
|
|
1326
|
+
console.log(native ? native.version : PACKAGE_VERSION);
|
|
1328
1327
|
return 0;
|
|
1329
1328
|
}
|
|
1330
1329
|
if (args[0] === "install") {
|