@onecrew/pro 0.0.0-stage → 0.1.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 CHANGED
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
1
+ # OneCrew Pro
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Install Node.js with npm, then run:
4
+
5
+ ```sh
6
+ npm install --global @onecrew/pro@0.1.10 --registry=https://registry.npmjs.org/
7
+ onecrew-pro --version
8
+ onecrew-pro start
9
+ onecrew-pro status
10
+ ```
11
+
12
+ The service uses the existing OneCrewConnect data directory. Complete sign-in in the local URL printed by start/status.
13
+
14
+ Before updating, run `onecrew-pro stop` for the profile in use, install the new package version, then run `onecrew-pro start`. For an existing ZIP installation, stop its installed binary before installing the npm package. Keep its data directory.
15
+
16
+ MCP clients can run `onecrew-pro mcp`. The service must already be running. `onecrew-pro --print-binary-path` returns the absolute native executable path for clients that need one. Keep optional dependencies enabled so npm can install the platform binary.
17
+
18
+ Install and verify the Codex plugin separately using the [Access guide](https://access.onecrewai.io/cli/install/pro).
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+ const fs = require('node:fs');
3
+ const path = require('node:path');
4
+ const { spawn } = require('node:child_process');
5
+ const { constants } = require('node:os');
6
+
7
+ const manifest = require('../package.json');
8
+ const target = `${process.platform}-${process.arch}`;
9
+ const platformPackage = `${manifest.name}-${target}`;
10
+ if (!Object.hasOwn(manifest.optionalDependencies, platformPackage)) {
11
+ throw new Error(`OneCrew Pro does not support ${target}.`);
12
+ }
13
+ const platformManifestPath = require.resolve(`${platformPackage}/package.json`);
14
+ const platformManifest = require(platformManifestPath);
15
+ if (platformManifest.version !== manifest.version) {
16
+ throw new Error(`OneCrew Pro requires ${platformPackage}@${manifest.version}. Reinstall it.`);
17
+ }
18
+ const binary = path.join(
19
+ path.dirname(platformManifestPath),
20
+ process.platform === 'win32' ? 'onecrew.exe' : 'onecrew',
21
+ );
22
+ if (!fs.statSync(binary).isFile()) throw new Error(`OneCrew Pro binary is missing: ${binary}`);
23
+
24
+ const args = process.argv.slice(2);
25
+ if (args.length === 1 && args[0] === '--print-binary-path') {
26
+ console.log(binary);
27
+ } else {
28
+ const child = spawn(binary, args, { stdio: 'inherit', windowsHide: true });
29
+ const signals = ['SIGINT', 'SIGTERM', 'SIGHUP'];
30
+ const handlers = new Map();
31
+ for (const signal of signals) {
32
+ const handler = () => child.kill(signal);
33
+ handlers.set(signal, handler);
34
+ process.on(signal, handler);
35
+ }
36
+ child.once('error', (error) => {
37
+ console.error(`OneCrew Pro could not start: ${error.message}`);
38
+ process.exitCode = 1;
39
+ });
40
+ child.once('exit', (code, signal) => {
41
+ for (const [name, handler] of handlers) process.removeListener(name, handler);
42
+ process.exitCode = code ?? 128 + (constants.signals[signal] ?? 1);
43
+ });
44
+ }
package/package.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@onecrew/pro",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.10",
4
+ "license": "MIT",
5
+ "homepage": "https://onecrewai.io",
6
+ "publishConfig": {
7
+ "access": "public",
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "description": "OneCrew Pro local service and MCP bridge",
11
+ "engines": {
12
+ "node": ">=20"
13
+ },
14
+ "os": [
15
+ "darwin",
16
+ "win32"
17
+ ],
18
+ "cpu": [
19
+ "arm64",
20
+ "x64"
21
+ ],
22
+ "bin": {
23
+ "onecrew-pro": "bin/onecrew-pro.cjs"
24
+ },
25
+ "files": [
26
+ "bin/"
27
+ ],
28
+ "optionalDependencies": {
29
+ "@onecrew/pro-darwin-arm64": "0.1.10",
30
+ "@onecrew/pro-darwin-x64": "0.1.10",
31
+ "@onecrew/pro-win32-x64": "0.1.10"
32
+ }
33
+ }