@onecrew/pro 0.1.27 → 0.1.28-windows.2
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/onecrew-pro.cjs +1 -1
- package/bin/setup.cjs +15 -5
- package/package.json +2 -6
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.
|
|
6
|
+
npm install --global @onecrew/pro@0.1.28-windows.2 --registry=https://registry.npmjs.org/
|
|
7
7
|
onecrew-pro --version
|
|
8
8
|
onecrew-pro start
|
|
9
9
|
onecrew-pro status
|
package/bin/onecrew-pro.cjs
CHANGED
|
@@ -42,7 +42,7 @@ if (args[0] === 'setup') {
|
|
|
42
42
|
process.env.ONECREW_INSTALL_DIR ??
|
|
43
43
|
(process.platform === 'win32'
|
|
44
44
|
? path.join(
|
|
45
|
-
process.env.LOCALAPPDATA
|
|
45
|
+
process.env.LOCALAPPDATA || path.join(os.homedir(), 'AppData', 'Local'),
|
|
46
46
|
'OneCrewPro',
|
|
47
47
|
)
|
|
48
48
|
: path.join(os.homedir(), 'Library', 'Application Support', 'OneCrewPro'));
|
package/bin/setup.cjs
CHANGED
|
@@ -26864,7 +26864,7 @@ async function clientContext(options, run) {
|
|
|
26864
26864
|
"/Applications/WorkBuddy.app/Contents/Resources/app.asar.unpacked/cli/bin/codebuddy"
|
|
26865
26865
|
] : ["WorkBuddy", "WorkBuddy AI"].map(
|
|
26866
26866
|
(name) => import_node_path.default.join(
|
|
26867
|
-
env.LOCALAPPDATA
|
|
26867
|
+
env.LOCALAPPDATA || import_node_path.default.join(import_node_os.default.homedir(), "AppData", "Local"),
|
|
26868
26868
|
"Programs",
|
|
26869
26869
|
name,
|
|
26870
26870
|
"resources",
|
|
@@ -27016,7 +27016,7 @@ async function runSetup(args, packaged) {
|
|
|
27016
27016
|
if (positionals.length || !values.client) throw new Error(help);
|
|
27017
27017
|
const root = import_node_path2.default.resolve(
|
|
27018
27018
|
process.env.ONECREW_INSTALL_DIR ?? (process.platform === "win32" ? import_node_path2.default.join(
|
|
27019
|
-
process.env.LOCALAPPDATA
|
|
27019
|
+
process.env.LOCALAPPDATA || import_node_path2.default.join(import_node_os2.default.homedir(), "AppData", "Local"),
|
|
27020
27020
|
"OneCrewPro"
|
|
27021
27021
|
) : import_node_path2.default.join(import_node_os2.default.homedir(), "Library", "Application Support", "OneCrewPro"))
|
|
27022
27022
|
);
|
|
@@ -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(binary, ["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.
|
|
3
|
+
"version": "0.1.28-windows.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://onecrewai.io",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,11 +12,9 @@
|
|
|
12
12
|
"node": ">=20"
|
|
13
13
|
},
|
|
14
14
|
"os": [
|
|
15
|
-
"darwin",
|
|
16
15
|
"win32"
|
|
17
16
|
],
|
|
18
17
|
"cpu": [
|
|
19
|
-
"arm64",
|
|
20
18
|
"x64"
|
|
21
19
|
],
|
|
22
20
|
"bin": {
|
|
@@ -26,8 +24,6 @@
|
|
|
26
24
|
"bin/"
|
|
27
25
|
],
|
|
28
26
|
"optionalDependencies": {
|
|
29
|
-
"@onecrew/pro-
|
|
30
|
-
"@onecrew/pro-darwin-x64": "0.1.27",
|
|
31
|
-
"@onecrew/pro-win32-x64": "0.1.27"
|
|
27
|
+
"@onecrew/pro-win32-x64": "0.1.28-windows.2"
|
|
32
28
|
}
|
|
33
29
|
}
|