@onecrew/pro 0.1.28-windows.1 → 0.1.28
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/bin/setup.cjs +13 -3
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Install Node.js with npm, then run:
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
npm install --global @onecrew/pro@0.1.28
|
|
6
|
+
npm install --global @onecrew/pro@0.1.28 --registry=https://registry.npmjs.org/
|
|
7
7
|
onecrew-pro --version
|
|
8
8
|
onecrew-pro start
|
|
9
9
|
onecrew-pro status
|
package/bin/setup.cjs
CHANGED
|
@@ -27083,10 +27083,20 @@ async function runSetup(args, packaged) {
|
|
|
27083
27083
|
if (import_node_path2.default.resolve(packaged.directory) === installed)
|
|
27084
27084
|
throw new Error("The npm installation is incomplete; reinstall @onecrew/pro");
|
|
27085
27085
|
if (current && await exists(binary)) {
|
|
27086
|
-
|
|
27087
|
-
if (
|
|
27086
|
+
let prepared;
|
|
27087
|
+
if (process.platform === "win32") {
|
|
27088
|
+
const candidate = import_node_path2.default.join(packaged.platformDirectory, "onecrew.exe");
|
|
27089
|
+
prepared = JSON.parse(await run(candidate, ["diagnose"], { env }));
|
|
27090
|
+
if (!Object.hasOwn(prepared, "update"))
|
|
27091
|
+
throw new Error("The Windows installer did not return update recovery status");
|
|
27092
|
+
if (prepared.update && (prepared.update.recoveryRequired || !["completed", "failed"].includes(prepared.update.phase)))
|
|
27093
|
+
prepared = JSON.parse(await run(candidate, ["setup", "--json"], { env }));
|
|
27094
|
+
} else {
|
|
27095
|
+
prepared = JSON.parse(await run(binary, ["setup", "--json"], { env }));
|
|
27096
|
+
}
|
|
27097
|
+
if (!["running", "stopped"].includes(prepared.state))
|
|
27088
27098
|
throw new Error("The existing installation needs recovery");
|
|
27089
|
-
if (!values.port) env.PORT = new URL(prepared.url).port;
|
|
27099
|
+
if (!values.port && prepared.url) env.PORT = new URL(prepared.url).port;
|
|
27090
27100
|
await run(binary, ["stop"], { env });
|
|
27091
27101
|
}
|
|
27092
27102
|
await (0, import_promises2.mkdir)(prefix, { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecrew/pro",
|
|
3
|
-
"version": "0.1.28
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://onecrewai.io",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,9 +12,11 @@
|
|
|
12
12
|
"node": ">=20"
|
|
13
13
|
},
|
|
14
14
|
"os": [
|
|
15
|
+
"darwin",
|
|
15
16
|
"win32"
|
|
16
17
|
],
|
|
17
18
|
"cpu": [
|
|
19
|
+
"arm64",
|
|
18
20
|
"x64"
|
|
19
21
|
],
|
|
20
22
|
"bin": {
|
|
@@ -24,6 +26,8 @@
|
|
|
24
26
|
"bin/"
|
|
25
27
|
],
|
|
26
28
|
"optionalDependencies": {
|
|
27
|
-
"@onecrew/pro-
|
|
29
|
+
"@onecrew/pro-darwin-arm64": "0.1.27",
|
|
30
|
+
"@onecrew/pro-darwin-x64": "0.1.27",
|
|
31
|
+
"@onecrew/pro-win32-x64": "0.1.28"
|
|
28
32
|
}
|
|
29
33
|
}
|