orquesta-agent 0.2.160 → 0.2.161
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 +3 -3
- package/scripts/postinstall.js +35 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orquesta-agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.161",
|
|
4
4
|
"description": "Local agent for Orquesta - connects your VM to the Orquesta dashboard",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"dev": "tsc --watch",
|
|
15
15
|
"start": "node dist/index.js",
|
|
16
16
|
"prepublishOnly": "npm run build",
|
|
17
|
-
"preinstall": "node scripts/preinstall.js
|
|
18
|
-
"postinstall": "node scripts/postinstall.js
|
|
17
|
+
"preinstall": "node scripts/preinstall.js",
|
|
18
|
+
"postinstall": "node scripts/postinstall.js"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"orquesta",
|
package/scripts/postinstall.js
CHANGED
|
@@ -1,31 +1,40 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// Postinstall script - shows welcome message after npm install
|
|
4
|
-
// This file uses vanilla JS (no TypeScript) to avoid build dependencies
|
|
4
|
+
// This file uses vanilla JS (no TypeScript) to avoid build dependencies.
|
|
5
|
+
// Best-effort: wrapped so it can NEVER fail the install. (Replaces the old
|
|
6
|
+
// `|| true` shell suffix, which isn't valid in Windows cmd — `true` is not a
|
|
7
|
+
// command there — and would turn any hiccup into a hard install failure.)
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
9
|
+
try {
|
|
10
|
+
const GREEN = '\x1b[32m'
|
|
11
|
+
const CYAN = '\x1b[36m'
|
|
12
|
+
const WHITE = '\x1b[37m'
|
|
13
|
+
const BOLD = '\x1b[1m'
|
|
14
|
+
const DIM = '\x1b[2m'
|
|
15
|
+
const RESET = '\x1b[0m'
|
|
12
16
|
|
|
13
|
-
console.log('')
|
|
14
|
-
console.log(`${BOLD}${CYAN} ╔═══════════════════════════════════════════════════╗${RESET}`)
|
|
15
|
-
console.log(`${BOLD}${CYAN} ║${RESET}${BOLD}${WHITE} Orquesta Agent installed successfully! ${RESET}${BOLD}${CYAN}║${RESET}`)
|
|
16
|
-
console.log(`${BOLD}${CYAN} ╚═══════════════════════════════════════════════════╝${RESET}`)
|
|
17
|
-
console.log('')
|
|
18
|
-
console.log(`${GREEN} ✓${RESET} Installation complete`)
|
|
19
|
-
console.log('')
|
|
20
|
-
console.log(`${DIM} 🎯 Recommended: Start the web UI to manage agents${RESET}`)
|
|
21
|
-
console.log(` ${WHITE}orquesta-agent ui --open${RESET}`)
|
|
22
|
-
console.log('')
|
|
23
|
-
console.log(` Then add your agents from the browser interface`)
|
|
24
|
-
console.log(` URL: ${CYAN}http://localhost:8080${RESET}`)
|
|
25
|
-
console.log('')
|
|
26
|
-
console.log(`${DIM} Or connect directly from command line:${RESET}`)
|
|
27
|
-
console.log(` 1. Get your token from ${CYAN}https://
|
|
28
|
-
console.log(` 2. Run: ${WHITE}orquesta-agent --token <your-token> --daemon${RESET}`)
|
|
29
|
-
console.log('')
|
|
30
|
-
console.log(`${DIM} Need help? Run:${RESET} ${WHITE}orquesta-agent setup${RESET}`)
|
|
31
|
-
console.log('')
|
|
17
|
+
console.log('')
|
|
18
|
+
console.log(`${BOLD}${CYAN} ╔═══════════════════════════════════════════════════╗${RESET}`)
|
|
19
|
+
console.log(`${BOLD}${CYAN} ║${RESET}${BOLD}${WHITE} Orquesta Agent installed successfully! ${RESET}${BOLD}${CYAN}║${RESET}`)
|
|
20
|
+
console.log(`${BOLD}${CYAN} ╚═══════════════════════════════════════════════════╝${RESET}`)
|
|
21
|
+
console.log('')
|
|
22
|
+
console.log(`${GREEN} ✓${RESET} Installation complete`)
|
|
23
|
+
console.log('')
|
|
24
|
+
console.log(`${DIM} 🎯 Recommended: Start the web UI to manage agents${RESET}`)
|
|
25
|
+
console.log(` ${WHITE}orquesta-agent ui --open${RESET}`)
|
|
26
|
+
console.log('')
|
|
27
|
+
console.log(` Then add your agents from the browser interface`)
|
|
28
|
+
console.log(` URL: ${CYAN}http://localhost:8080${RESET}`)
|
|
29
|
+
console.log('')
|
|
30
|
+
console.log(`${DIM} Or connect directly from command line:${RESET}`)
|
|
31
|
+
console.log(` 1. Get your token from ${CYAN}https://getorquesta.com${RESET}`)
|
|
32
|
+
console.log(` 2. Run: ${WHITE}orquesta-agent --token <your-token> --daemon${RESET}`)
|
|
33
|
+
console.log('')
|
|
34
|
+
console.log(`${DIM} Need help? Run:${RESET} ${WHITE}orquesta-agent setup${RESET}`)
|
|
35
|
+
console.log('')
|
|
36
|
+
} catch {
|
|
37
|
+
// Welcome banner is cosmetic — never block the install on it.
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
process.exit(0)
|