trooper-cli 0.1.3 → 0.1.4
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 +88 -0
- package/package.json +23 -3
package/README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# trooper-cli
|
|
2
|
+
|
|
3
|
+
Official command-line installer for Trooper's local desktop runtime.
|
|
4
|
+
|
|
5
|
+
Trooper can run on your own Mac without a hosted cloud computer. This CLI installs the local bridge, starts the local AI gateway, and lets the Trooper desktop app pair the machine to your workspace.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
Install Trooper locally on this Mac:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx -y trooper-cli onboard --yes
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Then open the Trooper desktop app to connect this computer to your workspace.
|
|
16
|
+
|
|
17
|
+
## What It Sets Up
|
|
18
|
+
|
|
19
|
+
On macOS, `trooper-cli onboard --yes` prepares:
|
|
20
|
+
|
|
21
|
+
- A local Trooper bridge on `http://127.0.0.1:3002`
|
|
22
|
+
- A local AI gateway on `http://127.0.0.1:18789`
|
|
23
|
+
- LaunchAgents so the local host can keep running
|
|
24
|
+
- A Docker-compatible runtime using existing Docker or Colima when needed
|
|
25
|
+
- Local runtime files under `~/Library/Application Support/Trooper/runtime`
|
|
26
|
+
|
|
27
|
+
The local desktop plan does not require a Trooper cloud computer or Stripe checkout.
|
|
28
|
+
|
|
29
|
+
## Commands
|
|
30
|
+
|
|
31
|
+
### Install local runtime
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx -y trooper-cli onboard --yes
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Install with a Trooper setup token
|
|
38
|
+
|
|
39
|
+
The Trooper app may generate a short-lived setup token for workspace pairing:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx -y trooper-cli onboard --yes \
|
|
43
|
+
--token lst_example \
|
|
44
|
+
--api https://trooper-production.up.railway.app \
|
|
45
|
+
--platform macos
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Preview the installer command
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx -y trooper-cli onboard --yes --dry-run
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Uninstall local runtime
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx -y --prefer-online trooper-cli@latest uninstall --yes
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
This removes Trooper's local runtime, LaunchAgents, installer command file, and Trooper local Docker container. It leaves Docker, Colima, Homebrew, Node, and npm installed because those may be used by other projects.
|
|
61
|
+
|
|
62
|
+
Keep local workspace/config data:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
npx -y --prefer-online trooper-cli@latest uninstall --yes --keep-data
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Also try to remove the desktop app:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npx -y --prefer-online trooper-cli@latest uninstall --yes --remove-app
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Requirements
|
|
75
|
+
|
|
76
|
+
- Node.js 18 or newer
|
|
77
|
+
- macOS for tokenless local desktop install
|
|
78
|
+
- Administrator access may be requested if ownership repair or local runtime dependencies need it
|
|
79
|
+
|
|
80
|
+
## Desktop App
|
|
81
|
+
|
|
82
|
+
Local desktop install is meant to be started from the Trooper Mac or Windows app. The web onboarding page shows the plan, but only the desktop app can safely launch the local helper installer.
|
|
83
|
+
|
|
84
|
+
## Links
|
|
85
|
+
|
|
86
|
+
- Website: https://trooper.so
|
|
87
|
+
- App: https://app.trooper.so
|
|
88
|
+
- Package: https://www.npmjs.com/package/trooper-cli
|
package/package.json
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trooper-cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Trooper local
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "Official Trooper CLI for installing and managing the local desktop AI runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"trooper": "bin/trooper.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"bin"
|
|
10
|
+
"bin",
|
|
11
|
+
"README.md"
|
|
11
12
|
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"trooper",
|
|
15
|
+
"ai",
|
|
16
|
+
"local-ai",
|
|
17
|
+
"desktop-ai",
|
|
18
|
+
"agent",
|
|
19
|
+
"automation",
|
|
20
|
+
"macos",
|
|
21
|
+
"self-hosted"
|
|
22
|
+
],
|
|
23
|
+
"homepage": "https://trooper.so",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/absurdfounder/Trooper.git",
|
|
27
|
+
"directory": "packages/cli"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/absurdfounder/Trooper/issues"
|
|
31
|
+
},
|
|
12
32
|
"engines": {
|
|
13
33
|
"node": ">=18"
|
|
14
34
|
},
|