Repository navigation
Expand file tree
/
Copy pathindex.js
More file actions
56 lines (50 loc) · 2.08 KB
/
Copy pathindex.js
File metadata and controls
56 lines (50 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env node
/**
* Convoke – Vortex Pattern
* Product discovery through Contextualize, Empathize, Externalize, and Systematize streams.
*
* This is a CLI-first package. Use the bin commands:
* npx -p convoke-agents convoke-install-vortex – Install all Vortex agents (primary)
* npx -p convoke-agents convoke-install – Install all agents (umbrella alias)
* npx -p convoke-agents convoke-update – Check for and apply updates
* npx -p convoke-agents convoke-version – Show installed vs latest version
* npx -p convoke-agents convoke-doctor – Diagnose installation issues
*
* @license MIT
*/
const path = require('path');
const { AGENTS } = require('./scripts/update/lib/agent-registry');
function getPackageInfo() {
const pkg = require(path.join(__dirname, 'package.json'));
return {
name: pkg.name,
version: pkg.version,
description: pkg.description
};
}
if (require.main === module) {
const info = getPackageInfo();
const BOLD = '\x1b[1m';
const RESET = '\x1b[0m';
const CYAN = '\x1b[36m';
const GREEN = '\x1b[32m';
const GRAY = '\x1b[90m';
console.log('');
console.log(`${BOLD}${info.name}${RESET} v${info.version}`);
console.log(info.description);
console.log('');
console.log(`${GREEN}Agents:${RESET}`);
for (const agent of AGENTS) {
const padded = agent.name.padEnd(5);
console.log(` ${padded}${CYAN}${agent.icon}${RESET} – ${agent.title}`);
}
console.log('');
console.log(`${GREEN}Commands:${RESET}`);
console.log(` ${CYAN}npx -p convoke-agents convoke-install-vortex${RESET} Install all Vortex agents`);
console.log(` ${CYAN}npx -p convoke-agents convoke-install${RESET} Install all agents ${GRAY}(alias)${RESET}`);
console.log(` ${CYAN}npx -p convoke-agents convoke-update${RESET} Check for updates`);
console.log(` ${CYAN}npx -p convoke-agents convoke-version${RESET} Show version info`);
console.log(` ${CYAN}npx -p convoke-agents convoke-doctor${RESET} Diagnose issues`);
console.log('');
}
module.exports = { getPackageInfo };