@nicotinetool/o7-cli 1.1.2 → 1.1.3
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/bin/o7 +1 -1
- package/bin/o7-cli +6 -4
- package/bin/o7-cli.js +18 -0
- package/bin/o7-setup +1 -1
- package/bin/o7-setup.js +1 -1
- package/bin/o7.js +1 -1
- package/package.json +1 -1
package/bin/o7
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync } from '
|
|
|
4
4
|
import { join, dirname } from 'path';
|
|
5
5
|
import { homedir, hostname, platform, arch, release } from 'os';
|
|
6
6
|
|
|
7
|
-
const VERSION = '1.1.
|
|
7
|
+
const VERSION = '1.1.3';
|
|
8
8
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
9
9
|
const MC_DIR = process.env.O7_MC_DIR || join(homedir(), 'Projects/unified-mc');
|
|
10
10
|
const STATE_DIR = join(homedir(), '.openclaw');
|
package/bin/o7-cli
CHANGED
|
@@ -8,9 +8,11 @@ import { fileURLToPath } from 'url';
|
|
|
8
8
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
9
|
const args = process.argv.slice(2);
|
|
10
10
|
const cmd = args[0];
|
|
11
|
+
const script = cmd === 'setup' ? 'o7-setup' : 'o7';
|
|
12
|
+
const scriptArgs = cmd === 'setup' ? args.slice(1) : args;
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
execFileSync('node', [join(__dirname,
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
try {
|
|
15
|
+
execFileSync('node', [join(__dirname, script), ...scriptArgs], { stdio: 'inherit' });
|
|
16
|
+
} catch (err) {
|
|
17
|
+
process.exit(err.status || 1);
|
|
16
18
|
}
|
package/bin/o7-cli.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Router: `npx @nicotinetool/o7-cli setup` runs o7-setup
|
|
3
|
+
// `npx @nicotinetool/o7-cli [cmd]` runs o7 [cmd]
|
|
4
|
+
import { execFileSync } from 'child_process';
|
|
5
|
+
import { dirname, join } from 'path';
|
|
6
|
+
import { fileURLToPath } from 'url';
|
|
7
|
+
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const args = process.argv.slice(2);
|
|
10
|
+
const cmd = args[0];
|
|
11
|
+
const script = cmd === 'setup' ? 'o7-setup' : 'o7';
|
|
12
|
+
const scriptArgs = cmd === 'setup' ? args.slice(1) : args;
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
execFileSync('node', [join(__dirname, script), ...scriptArgs], { stdio: 'inherit' });
|
|
16
|
+
} catch (err) {
|
|
17
|
+
process.exit(err.status || 1);
|
|
18
|
+
}
|
package/bin/o7-setup
CHANGED
|
@@ -5,7 +5,7 @@ import { join, dirname } from 'path';
|
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
import { homedir, platform, hostname, release } from 'os';
|
|
7
7
|
|
|
8
|
-
const VERSION = '1.1.
|
|
8
|
+
const VERSION = '1.1.3';
|
|
9
9
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = dirname(__filename);
|
package/bin/o7-setup.js
CHANGED
|
@@ -5,7 +5,7 @@ import { join, dirname } from 'path';
|
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
import { homedir, platform, hostname, release } from 'os';
|
|
7
7
|
|
|
8
|
-
const VERSION = '1.1.
|
|
8
|
+
const VERSION = '1.1.3';
|
|
9
9
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = dirname(__filename);
|
package/bin/o7.js
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync } from '
|
|
|
4
4
|
import { join, dirname } from 'path';
|
|
5
5
|
import { homedir, hostname, platform, arch, release } from 'os';
|
|
6
6
|
|
|
7
|
-
const VERSION = '1.1.
|
|
7
|
+
const VERSION = '1.1.3';
|
|
8
8
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
9
9
|
const MC_DIR = process.env.O7_MC_DIR || join(homedir(), 'Projects/unified-mc');
|
|
10
10
|
const STATE_DIR = join(homedir(), '.openclaw');
|