vortix 1.0.0

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 ADDED
@@ -0,0 +1,51 @@
1
+ # Vortix
2
+
3
+ AI-powered OS control system with remote command execution capabilities.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g vortix
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ### 1. Start Backend Server
14
+
15
+ ```bash
16
+ vortix backend
17
+ ```
18
+
19
+ ### 2. Login Device (on target machine)
20
+
21
+ ```bash
22
+ vortix login
23
+ ```
24
+
25
+ ### 3. Start Agent (on target machine)
26
+
27
+ ```bash
28
+ vortix start
29
+ ```
30
+
31
+ ## Commands
32
+
33
+ - `vortix login` - Authenticate and register device
34
+ - `vortix start` - Start the agent on current machine
35
+ - `vortix backend` - Start the backend WebSocket server
36
+ - `vortix help` - Show help information
37
+
38
+ ## Architecture
39
+
40
+ - **Backend**: WebSocket server (port 8080) for device coordination
41
+ - **Agent**: Runs on target machines, executes commands
42
+ - **Dashboard**: Web UI for managing devices (separate deployment)
43
+
44
+ ## Requirements
45
+
46
+ - Node.js >= 14.0.0
47
+ - Network access between backend and agents
48
+
49
+ ## License
50
+
51
+ MIT
package/bin/vortix.js ADDED
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const command = process.argv[2];
8
+ const args = process.argv.slice(3);
9
+
10
+ // Paths to agent and backend
11
+ const agentPath = path.join(__dirname, '../../agent/agent.js');
12
+ const backendPath = path.join(__dirname, '../../backend/server.js');
13
+
14
+ function showHelp() {
15
+ console.log(`
16
+ Vortix - AI OS Control CLI
17
+
18
+ Usage:
19
+ vortix login Login and authenticate device
20
+ vortix start Start the agent
21
+ vortix backend Start the backend server
22
+ vortix help Show this help message
23
+
24
+ Examples:
25
+ vortix login # Authenticate your device
26
+ vortix start # Start agent on this machine
27
+ vortix backend # Start backend server
28
+ `);
29
+ }
30
+
31
+ function runAgent(cmd) {
32
+ const proc = spawn('node', [agentPath, cmd], {
33
+ stdio: 'inherit',
34
+ cwd: path.dirname(agentPath)
35
+ });
36
+
37
+ proc.on('error', (err) => {
38
+ console.error('Failed to start agent:', err.message);
39
+ process.exit(1);
40
+ });
41
+ }
42
+
43
+ function runBackend() {
44
+ console.log('Starting Vortix backend server...');
45
+ const proc = spawn('node', [backendPath], {
46
+ stdio: 'inherit',
47
+ cwd: path.dirname(backendPath)
48
+ });
49
+
50
+ proc.on('error', (err) => {
51
+ console.error('Failed to start backend:', err.message);
52
+ process.exit(1);
53
+ });
54
+ }
55
+
56
+ switch (command) {
57
+ case 'login':
58
+ runAgent('login');
59
+ break;
60
+
61
+ case 'start':
62
+ runAgent('start');
63
+ break;
64
+
65
+ case 'backend':
66
+ runBackend();
67
+ break;
68
+
69
+ case 'help':
70
+ case '--help':
71
+ case '-h':
72
+ showHelp();
73
+ break;
74
+
75
+ default:
76
+ console.log('Unknown command:', command);
77
+ showHelp();
78
+ process.exit(1);
79
+ }
package/index.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "vortix",
3
+ "version": "1.0.0",
4
+ "description": "AI-powered OS control system with remote command execution",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "vortix": "./bin/vortix.js"
8
+ },
9
+ "keywords": [
10
+ "ai",
11
+ "automation",
12
+ "remote-control",
13
+ "cli",
14
+ "os-control",
15
+ "agent"
16
+ ],
17
+ "author": "Your Name <your.email@example.com>",
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/yourusername/vortix.git"
22
+ },
23
+ "engines": {
24
+ "node": ">=14.0.0"
25
+ },
26
+ "files": [
27
+ "bin/",
28
+ "../agent/",
29
+ "../backend/",
30
+ "README.md"
31
+ ],
32
+ "dependencies": {
33
+ "axios": "^1.6.0",
34
+ "ws": "^8.19.0",
35
+ "uuid": "^13.0.0",
36
+ "openai": "^6.18.0"
37
+ }
38
+ }