pi-webapp 0.1.28 → 0.1.30
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 +11 -9
- package/README.zh-CN.md +11 -9
- package/bin/pi-webapp.mjs +11 -3
- package/desktop/managed-release.mjs +8 -12
- package/desktop/release-version.mjs +36 -0
- package/dist/extension.js +26 -26
- package/docs/desktop.md +11 -3
- package/package.json +4 -2
- package/web/dist/.vite/manifest.json +23 -23
- package/web/dist/assets/{app-B6KN89oD.js → app-Cb2r7Ri7.js} +86 -86
- package/web/dist/assets/app.js +2 -2
- package/web/dist/assets/{graphql-y8zqvm7I.js → graphql-CDG2oCkQ.js} +1 -1
- package/web/dist/assets/{http-RvN4shOP.js → http-3REq0YIS.js} +1 -1
- package/web/dist/assets/{php-DYEaTBiJ.js → php-C8xvtRGv.js} +1 -1
- package/web/dist/assets/{plugin-Ct_K82sD.js → plugin-BZ_Kca0z.js} +1 -1
- package/web/dist/assets/{plugin-CWZjNBTB.js → plugin-Cjoz9oCO.js} +1 -1
- package/web/dist/assets/{plugin-DPe686Yq.js → plugin-DGrWsBrr.js} +1 -1
- package/web/dist/assets/{rst-GflBTkRB.js → rst-BGAE7FaU.js} +1 -1
- package/web/dist/assets/{ruby-h9QEI4Un.js → ruby-DmeSKaA6.js} +1 -1
- package/web/dist/assets/style.css +1 -1
- package/web/dist/assets/{svelte-Dnn1bF1c.js → svelte-CniepeiF.js} +1 -1
- package/web/dist/assets/{vue-VJMQoCXf.js → vue-D7FUWTjS.js} +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Bring conversations, project files, terminals, and Git into one interface—with
|
|
|
6
6
|
|
|
7
7
|
[简体中文](README.zh-CN.md) · [Get started](#get-started) · [Download desktop](#desktop-downloads) · [User guide](docs/en/getting-started.md) · [npm](https://www.npmjs.com/package/pi-webapp)
|
|
8
8
|
|
|
9
|
-
**Desktop test build
|
|
9
|
+
**Desktop test build 10:** [macOS · Apple Silicon](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-arm64.dmg) · [macOS · Intel](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-x64.dmg) · [Windows x64](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-win-x64.exe) · [Linux x64](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-linux-x86_64.AppImage). Verify [SHA-256](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/SHA256SUMS); unsigned/unnotarized test-release limits apply. [Install safely](#desktop-downloads).
|
|
10
10
|
|
|
11
11
|
[](assets/readme/workbench.png)
|
|
12
12
|
|
|
@@ -89,22 +89,24 @@ Enter **`/web`** inside Pi. The browser stays synchronized with that terminal se
|
|
|
89
89
|
|
|
90
90
|
## Desktop downloads
|
|
91
91
|
|
|
92
|
-
**Latest desktop test release: [pi 0.1.
|
|
92
|
+
**Latest desktop test release: [pi 0.1.28 · build 10](https://github.com/chengzhiyi/pi-webapp/releases/tag/desktop-v0.1.28-b10).** Download the installer for your operating system and CPU:
|
|
93
93
|
|
|
94
94
|
| Platform | Download |
|
|
95
95
|
| --- | --- |
|
|
96
|
-
| **macOS · Apple Silicon (arm64)** | [Download DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
97
|
-
| **macOS · Intel (x64)** | [Download DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
98
|
-
| **Windows · x64** | [Download EXE installer](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
99
|
-
| **Linux · x64** | [Download AppImage](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
96
|
+
| **macOS · Apple Silicon (arm64)** | [Download DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-arm64.dmg) |
|
|
97
|
+
| **macOS · Intel (x64)** | [Download DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-x64.dmg) |
|
|
98
|
+
| **Windows · x64** | [Download EXE installer](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-win-x64.exe) |
|
|
99
|
+
| **Linux · x64** | [Download AppImage](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-linux-x86_64.AppImage) |
|
|
100
100
|
|
|
101
|
-
[All releases](https://github.com/chengzhiyi/pi-webapp/releases) · [SHA256SUMS](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
101
|
+
[All releases](https://github.com/chengzhiyi/pi-webapp/releases) · [SHA256SUMS](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/SHA256SUMS) · [Build/runtime metadata](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/desktop-release.json)
|
|
102
|
+
|
|
103
|
+
**Build 10 separates shell and business-package updates.** It can safely attach to existing npm 0.1.26/0.1.27 services without stopping their tasks. Install this shell once, then use **Settings → App updates** for compatible `pi-webapp` package updates in your user directory. Finish chats and close terminals before restarting the backend.
|
|
102
104
|
|
|
103
105
|
The **pi** desktop app bundles Node and Pi—no separate runtime installation needed. It can reuse a compatible Web service, open the same service in your browser, and let you choose whether background tasks continue after closing the app. Bring your own model credentials, Git/SSH setup, and project toolchains.
|
|
104
106
|
|
|
105
107
|
- **Install:** macOS: drag **pi.app** from the DMG into Applications. Windows: run the EXE installer. Linux: make the AppImage executable and run it; see the release notes for the FUSE alternative.
|
|
106
|
-
- **Verify:** compare the installer with `SHA256SUMS` from the same release. Confirm **build
|
|
107
|
-
- **Test-release limits:** these are opt-in prereleases, not publisher-signed stable distributions. macOS uses ad-hoc signatures without Apple notarization and may be blocked by Gatekeeper; follow the [macOS test installation guide](docs/desktop-testing.md) and stop if verification fails. Windows/Linux packages are unsigned. Never disable system security globally. Desktop updates require manual installation; Windows ARM and Linux ARM are not included.
|
|
108
|
+
- **Verify:** compare the installer with `SHA256SUMS` from the same release. Confirm **build 10** in **pi → 关于 pi (About pi)**. Quit the old desktop before replacing it; do not delete `~/.pi`.
|
|
109
|
+
- **Test-release limits:** these are opt-in prereleases, not publisher-signed stable distributions. macOS uses ad-hoc signatures without Apple notarization and may be blocked by Gatekeeper; follow the [macOS test installation guide](docs/desktop-testing.md) and stop if verification fails. Windows/Linux packages are unsigned. Never disable system security globally. Desktop shell updates require manual installation; business-package updates use the app's Settings. Windows ARM and Linux ARM are not included.
|
|
108
110
|
|
|
109
111
|
## Architecture highlights
|
|
110
112
|
|
package/README.zh-CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[English](README.md) · [快速开始](#快速开始) · [下载桌面端](#桌面端下载) · [使用指南](docs/zh/getting-started.md) · [npm](https://www.npmjs.com/package/pi-webapp)
|
|
8
8
|
|
|
9
|
-
**桌面测试版 build
|
|
9
|
+
**桌面测试版 build 10:** [macOS · Apple 芯片](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-arm64.dmg) · [macOS · Intel](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-x64.dmg) · [Windows x64](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-win-x64.exe) · [Linux x64](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-linux-x86_64.AppImage)。请核对 [SHA-256](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/SHA256SUMS);测试包未签名或无发布者身份,macOS 未公证。[安全安装说明](#桌面端下载)。
|
|
10
10
|
|
|
11
11
|
[](assets/readme/workbench.png)
|
|
12
12
|
|
|
@@ -89,22 +89,24 @@ pi
|
|
|
89
89
|
|
|
90
90
|
## 桌面端下载
|
|
91
91
|
|
|
92
|
-
**最新桌面测试版:[pi 0.1.
|
|
92
|
+
**最新桌面测试版:[pi 0.1.28 · build 10](https://github.com/chengzhiyi/pi-webapp/releases/tag/desktop-v0.1.28-b10)。** 请按系统与芯片选择安装包:
|
|
93
93
|
|
|
94
94
|
| 平台 | 下载 |
|
|
95
95
|
| --- | --- |
|
|
96
|
-
| **macOS · Apple 芯片(arm64)** | [下载 DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
97
|
-
| **macOS · Intel(x64)** | [下载 DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
98
|
-
| **Windows · x64** | [下载 EXE 安装包](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
99
|
-
| **Linux · x64** | [下载 AppImage](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
96
|
+
| **macOS · Apple 芯片(arm64)** | [下载 DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-arm64.dmg) |
|
|
97
|
+
| **macOS · Intel(x64)** | [下载 DMG](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-mac-x64.dmg) |
|
|
98
|
+
| **Windows · x64** | [下载 EXE 安装包](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-win-x64.exe) |
|
|
99
|
+
| **Linux · x64** | [下载 AppImage](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/pi-0.1.28-desktop.10-linux-x86_64.AppImage) |
|
|
100
100
|
|
|
101
|
-
[全部版本](https://github.com/chengzhiyi/pi-webapp/releases) · [SHA256SUMS 校验文件](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.
|
|
101
|
+
[全部版本](https://github.com/chengzhiyi/pi-webapp/releases) · [SHA256SUMS 校验文件](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/SHA256SUMS) · [构建与运行时信息](https://github.com/chengzhiyi/pi-webapp/releases/download/desktop-v0.1.28-b10/desktop-release.json)
|
|
102
|
+
|
|
103
|
+
**build 10 已分离桌面外壳与业务包更新。** 可安全连接已有 npm 0.1.26/0.1.27 后台,不停止其任务。手动安装一次此外壳后,兼容的 `pi-webapp` 业务包可在「设置 → 应用更新」中更新到用户目录;重启后台前,请先完成聊天任务并关闭终端。
|
|
102
104
|
|
|
103
105
|
桌面应用名为 **pi**,自带 Node 和 Pi,无需另装运行时。支持复用兼容的 Web 服务、在浏览器中打开同一服务,以及退出时选择是否保留后台任务。模型凭据、Git/SSH 配置和项目工具链仍需自行准备。
|
|
104
106
|
|
|
105
107
|
- **安装:** macOS 从 DMG 将 **pi.app** 拖入“应用程序”;Windows 运行 EXE;Linux 为 AppImage 添加执行权限后运行,不支持 FUSE 时可参考该版本发布说明中的替代方式。
|
|
106
|
-
- **核对:** 对照同一 Release 的 `SHA256SUMS` 校验安装包,在「pi → 关于 pi」确认 **build
|
|
107
|
-
- **测试版边界:** 当前为自愿参与的预发布测试包,不是具有发布者签名的稳定发行版。macOS 使用 ad-hoc 临时签名、未经过 Apple 公证,可能被 Gatekeeper 拦截;请按 [macOS 测试安装说明](docs/desktop-testing.md)核验,失败就停止。Windows/Linux
|
|
108
|
+
- **核对:** 对照同一 Release 的 `SHA256SUMS` 校验安装包,在「pi → 关于 pi」确认 **build 10**。替换前先退出旧桌面,不要删除 `~/.pi`。
|
|
109
|
+
- **测试版边界:** 当前为自愿参与的预发布测试包,不是具有发布者签名的稳定发行版。macOS 使用 ad-hoc 临时签名、未经过 Apple 公证,可能被 Gatekeeper 拦截;请按 [macOS 测试安装说明](docs/desktop-testing.md)核验,失败就停止。Windows/Linux 安装包未签名。不要全局关闭系统安全保护。桌面外壳更新仍需手动安装,业务包更新在应用设置中进行;暂不包含 Windows ARM 和 Linux ARM。
|
|
108
110
|
|
|
109
111
|
## 技术架构亮点
|
|
110
112
|
|
package/bin/pi-webapp.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import { fileURLToPath } from "node:url";
|
|
|
9
9
|
import spawn from "cross-spawn";
|
|
10
10
|
import { openWebPage } from "./open-web-page.mjs";
|
|
11
11
|
import { npmCommand } from "./npm-command.mjs";
|
|
12
|
+
import { compareVersions, parseVersion } from "../desktop/release-version.mjs";
|
|
12
13
|
import { desktopProtocolVersion, desktopUpdatePath, readDesktopRelease, rollbackDesktopRelease } from "../desktop/managed-release.mjs";
|
|
13
14
|
|
|
14
15
|
const minimum = [0, 87, 1];
|
|
@@ -313,7 +314,14 @@ async function serve(pi, args) {
|
|
|
313
314
|
async function clearManagedLauncher(path) {
|
|
314
315
|
if (desktopPackages) { await rollbackDesktopRelease(agentDir, path); return; }
|
|
315
316
|
try {
|
|
316
|
-
|
|
317
|
+
const selected = JSON.parse(await readFile(updatePath, "utf8"));
|
|
318
|
+
if (selected.launcher === path) {
|
|
319
|
+
if (selected.previous) {
|
|
320
|
+
const temporary = `${updatePath}.${randomUUID()}.tmp`;
|
|
321
|
+
await writeFile(temporary, JSON.stringify(selected.previous), { mode: 0o600 });
|
|
322
|
+
await rename(temporary, updatePath);
|
|
323
|
+
} else await unlink(updatePath);
|
|
324
|
+
}
|
|
317
325
|
} catch { /* No matching managed release. */ }
|
|
318
326
|
}
|
|
319
327
|
|
|
@@ -327,8 +335,8 @@ async function managedLauncher() {
|
|
|
327
335
|
if (existsSync(fileURLToPath(new URL("../.git", import.meta.url)))) return null;
|
|
328
336
|
const update = JSON.parse(await readFile(updatePath, "utf8"));
|
|
329
337
|
const current = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
|
|
330
|
-
|
|
331
|
-
if (
|
|
338
|
+
parseVersion(update.version); parseVersion(current.version);
|
|
339
|
+
if (compareVersions(update.version, current.version) < 0 && !(update.allowDowngrade === true && update.baseVersion === current.version)) return null;
|
|
332
340
|
if (update.version === current.version || !existsSync(update.launcher)) return null;
|
|
333
341
|
return update.launcher;
|
|
334
342
|
} catch { return null; }
|
|
@@ -2,19 +2,12 @@ import { access, readFile, realpath, rename, rm, writeFile } from "node:fs/promi
|
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { dirname, join, resolve, sep } from "node:path";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
|
+
import { compareVersions as compare, parseVersion } from "./release-version.mjs";
|
|
5
6
|
|
|
6
7
|
// Version of the shell/launcher contract, independent of the npm package version.
|
|
7
8
|
export const desktopProtocolVersion = 1;
|
|
8
9
|
export const desktopUpdatePath = agentDir => join(agentDir, "pi-web", "desktop-update.json");
|
|
9
10
|
|
|
10
|
-
function compare(a, b) {
|
|
11
|
-
const parts = value => /^\d+\.\d+\.\d+$/.test(value ?? "") ? value.split(".").map(Number) : null;
|
|
12
|
-
const left = parts(a); const right = parts(b);
|
|
13
|
-
if (!left || !right) throw new Error("无效的桌面业务包版本");
|
|
14
|
-
for (let i = 0; i < 3; i++) if (left[i] !== right[i]) return left[i] - right[i];
|
|
15
|
-
return 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
11
|
// Resolve metadata without executing dependencies or relying on package.json exports.
|
|
19
12
|
export async function dependencyRoot(packageRoot, name) {
|
|
20
13
|
const require = createRequire(join(packageRoot, "package.json"));
|
|
@@ -35,7 +28,8 @@ export async function validateDesktopRelease(agentDir, release) {
|
|
|
35
28
|
const directory = dirname(dirname(root));
|
|
36
29
|
if (await realpath(release.launcher) !== join(root, "bin", "pi-webapp.mjs")
|
|
37
30
|
|| dirname(directory) !== releases || !directory.startsWith(releases + sep)
|
|
38
|
-
||
|
|
31
|
+
|| !directory.slice(releases.length + 1).startsWith(`${release.version}-`)
|
|
32
|
+
|| !/^[\w-]+$/.test(directory.slice(releases.length + 1 + release.version.length + 1))) throw new Error("拒绝用户更新目录之外的桌面业务包");
|
|
39
33
|
const pkg = JSON.parse(await readFile(join(root, "package.json"), "utf8"));
|
|
40
34
|
if (pkg.name !== "pi-webapp" || pkg.version !== release.version) throw new Error("桌面业务包版本与记录不一致");
|
|
41
35
|
if (pkg.piWebappDesktopProtocol !== desktopProtocolVersion) throw new Error("新版业务包需要更新桌面外壳,尚未切换运行版本");
|
|
@@ -43,14 +37,16 @@ export async function validateDesktopRelease(agentDir, release) {
|
|
|
43
37
|
if (!piRoot.startsWith(directory + sep)) throw new Error("桌面业务包缺少独立的 Pi 运行依赖");
|
|
44
38
|
const piCli = join(piRoot, "dist", "bundle", "cli.js");
|
|
45
39
|
await Promise.all([release.launcher, piCli, join(root, "dist", "extension.js"), join(root, "web", "dist", "index.html")].map(path => access(path)));
|
|
46
|
-
|
|
40
|
+
if (release.fallbackVersion !== undefined) parseVersion(release.fallbackVersion);
|
|
41
|
+
return { version: release.version, launcher: release.launcher, piCli, desktopProtocolVersion,
|
|
42
|
+
...(release.fallbackVersion ? { fallbackVersion: release.fallbackVersion } : {}) };
|
|
47
43
|
}
|
|
48
44
|
|
|
49
|
-
/**
|
|
45
|
+
/** Older selections require explicit consent bound to this exact bundled fallback. */
|
|
50
46
|
export async function readDesktopRelease(agentDir, minimumVersion) {
|
|
51
47
|
try {
|
|
52
48
|
const release = JSON.parse(await readFile(desktopUpdatePath(agentDir), "utf8"));
|
|
53
|
-
if (compare(release.version, minimumVersion) < 0) return null;
|
|
49
|
+
if (compare(release.version, minimumVersion) < 0 && release.fallbackVersion !== minimumVersion) return null;
|
|
54
50
|
return await validateDesktopRelease(agentDir, release);
|
|
55
51
|
} catch { return null; }
|
|
56
52
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Shared by publishing, the npm launcher and desktop business-package selection.
|
|
2
|
+
// Do not use locale-dependent ordering for SemVer prerelease identifiers.
|
|
3
|
+
const pattern = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/;
|
|
4
|
+
|
|
5
|
+
export function parseVersion(value) {
|
|
6
|
+
const match = typeof value === "string" && pattern.exec(value);
|
|
7
|
+
if (!match || match[0] !== value) throw new Error("版本号无效");
|
|
8
|
+
const core = match.slice(1, 4).map(Number);
|
|
9
|
+
const prerelease = match[4]?.split(".") ?? [];
|
|
10
|
+
if (!core.every(Number.isSafeInteger) || prerelease.some(id => /^\d+$/.test(id) && id.length > 1 && id[0] === "0")) throw new Error("版本号无效");
|
|
11
|
+
return { core, prerelease };
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function compareVersions(a, b) {
|
|
15
|
+
const left = parseVersion(a); const right = parseVersion(b);
|
|
16
|
+
for (let i = 0; i < 3; i++) if (left.core[i] !== right.core[i]) return left.core[i] > right.core[i] ? 1 : -1;
|
|
17
|
+
if (!left.prerelease.length || !right.prerelease.length) return Number(!left.prerelease.length) - Number(!right.prerelease.length);
|
|
18
|
+
for (let i = 0; i < Math.max(left.prerelease.length, right.prerelease.length); i++) {
|
|
19
|
+
const x = left.prerelease[i]; const y = right.prerelease[i];
|
|
20
|
+
if (x === undefined || y === undefined) return x === undefined ? -1 : 1;
|
|
21
|
+
if (x === y) continue;
|
|
22
|
+
const xn = /^\d+$/.test(x); const yn = /^\d+$/.test(y);
|
|
23
|
+
if (xn !== yn) return xn ? -1 : 1;
|
|
24
|
+
if (xn && x.length !== y.length) return x.length > y.length ? 1 : -1;
|
|
25
|
+
return x > y ? 1 : -1;
|
|
26
|
+
}
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function isStableVersion(value) {
|
|
31
|
+
try { return parseVersion(value).prerelease.length === 0; } catch { return false; }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function isAlphaVersion(value) {
|
|
35
|
+
try { parseVersion(value); return /^\d+\.\d+\.\d+-alpha\.(0|[1-9]\d*)$/.test(value); } catch { return false; }
|
|
36
|
+
}
|