trooper-cli 0.1.3 → 0.1.5

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,94 @@
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
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, `npx -y trooper-cli` 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
35
+ ```
36
+
37
+ This is shorthand for:
38
+
39
+ ```bash
40
+ npx -y trooper-cli onboard --yes
41
+ ```
42
+
43
+ ### Install with a Trooper setup token
44
+
45
+ The Trooper app may generate a short-lived setup token for workspace pairing:
46
+
47
+ ```bash
48
+ npx -y trooper-cli onboard --yes \
49
+ --token lst_example \
50
+ --api https://trooper-production.up.railway.app \
51
+ --platform macos
52
+ ```
53
+
54
+ ### Preview the installer command
55
+
56
+ ```bash
57
+ npx -y trooper-cli --dry-run
58
+ ```
59
+
60
+ ### Uninstall local runtime
61
+
62
+ ```bash
63
+ npx -y --prefer-online trooper-cli@latest uninstall --yes
64
+ ```
65
+
66
+ 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.
67
+
68
+ Keep local workspace/config data:
69
+
70
+ ```bash
71
+ npx -y --prefer-online trooper-cli@latest uninstall --yes --keep-data
72
+ ```
73
+
74
+ Also try to remove the desktop app:
75
+
76
+ ```bash
77
+ npx -y --prefer-online trooper-cli@latest uninstall --yes --remove-app
78
+ ```
79
+
80
+ ## Requirements
81
+
82
+ - Node.js 18 or newer
83
+ - macOS for tokenless local desktop install
84
+ - Administrator access may be requested if ownership repair or local runtime dependencies need it
85
+
86
+ ## Desktop App
87
+
88
+ 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.
89
+
90
+ ## Links
91
+
92
+ - Website: https://trooper.so
93
+ - App: https://app.trooper.so
94
+ - Package: https://www.npmjs.com/package/trooper-cli
package/bin/trooper.js CHANGED
@@ -16,11 +16,13 @@ function printHelp() {
16
16
  console.log(`Trooper CLI
17
17
 
18
18
  Usage:
19
+ npx -y trooper-cli
19
20
  npx -y trooper-cli onboard --yes
20
21
  npx -y trooper-cli onboard --yes --token <setup-token>
21
22
  npx -y trooper-cli uninstall --yes
22
23
 
23
24
  Aliases:
25
+ no command Same as onboard --yes
24
26
  setup Same as onboard
25
27
  remove Same as uninstall
26
28
 
@@ -218,7 +220,7 @@ function runShellCommand(command, platform, { failureLabel = 'Command', successM
218
220
 
219
221
  async function main() {
220
222
  const args = parseArgs(process.argv.slice(2));
221
- const command = args._[0] || 'help';
223
+ const command = args._[0] || 'onboard';
222
224
  if (args.help || args.h || command === 'help') {
223
225
  printHelp();
224
226
  return;
package/package.json CHANGED
@@ -1,14 +1,34 @@
1
1
  {
2
2
  "name": "trooper-cli",
3
- "version": "0.1.3",
4
- "description": "Trooper local host setup CLI",
3
+ "version": "0.1.5",
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
  },