awesome-agentic-stack 1.0.0
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/cli.js +72 -0
- package/package.json +25 -0
package/cli.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawn } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
const fs = require('fs');
|
|
7
|
+
|
|
8
|
+
// Fetch clean CLI arguments
|
|
9
|
+
const args = process.argv.slice(2);
|
|
10
|
+
|
|
11
|
+
console.log('[*] awesome-agentic-stack — Bootstrapping Universal Installer...\n');
|
|
12
|
+
|
|
13
|
+
// Detect Platform
|
|
14
|
+
const platform = os.platform();
|
|
15
|
+
const tempDir = path.join(os.tmpdir(), 'awesome-agentic-stack-npm');
|
|
16
|
+
|
|
17
|
+
// Ensure clean temp dir
|
|
18
|
+
if (fs.existsSync(tempDir)) {
|
|
19
|
+
try {
|
|
20
|
+
fs.rmSync(tempDir, { recursive: true, force: true });
|
|
21
|
+
} catch (e) {
|
|
22
|
+
// Silently continue
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
fs.mkdirSync(tempDir, { recursive: true });
|
|
26
|
+
|
|
27
|
+
// Step 1: Clone the repository to fetch the latest installers and manifest
|
|
28
|
+
console.log(' [+] Syncing installer scripts from GitHub...');
|
|
29
|
+
const gitClone = spawn('git', [
|
|
30
|
+
'clone',
|
|
31
|
+
'--depth', '1',
|
|
32
|
+
'https://github.com/AkashPriyadarshii/awesome-agentic-stack.git',
|
|
33
|
+
tempDir
|
|
34
|
+
]);
|
|
35
|
+
|
|
36
|
+
gitClone.on('close', (code) => {
|
|
37
|
+
if (code !== 0) {
|
|
38
|
+
console.error(' [-] Error: Failed to fetch repository files. Verify Git is installed and you are online.');
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Step 2: OS Specific Installer Delegation
|
|
43
|
+
if (platform === 'win32') {
|
|
44
|
+
// Windows PowerShell execution
|
|
45
|
+
console.log(' [+] Windows OS detected. Launching PowerShell Installer...');
|
|
46
|
+
const psScript = path.join(tempDir, 'install.ps1');
|
|
47
|
+
const psArgs = ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', psScript];
|
|
48
|
+
|
|
49
|
+
// Map npm arguments to PowerShell switch arguments
|
|
50
|
+
args.forEach(arg => {
|
|
51
|
+
if (arg === '--essential' || arg === '-e') psArgs.push('-Essential');
|
|
52
|
+
if (arg === '--interactive' || arg === '-i') psArgs.push('-Interactive');
|
|
53
|
+
if (arg === '--yes' || arg === '-y') psArgs.push('-Yes');
|
|
54
|
+
if (arg === '--list' || arg === '-l') psArgs.push('-List');
|
|
55
|
+
if (arg === '--dry-run' || arg === '-d') psArgs.push('-DryRun');
|
|
56
|
+
if (arg === '--resume' || arg === '-r') psArgs.push('-Resume');
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const installProc = spawn('powershell.exe', psArgs, { stdio: 'inherit' });
|
|
60
|
+
installProc.on('close', (exitCode) => process.exit(exitCode));
|
|
61
|
+
} else {
|
|
62
|
+
// macOS or Linux Bash execution
|
|
63
|
+
console.log(' [+] macOS/Linux detected. Launching Bash Installer...');
|
|
64
|
+
const shScript = path.join(tempDir, 'install.sh');
|
|
65
|
+
|
|
66
|
+
// Make script executable
|
|
67
|
+
fs.chmodSync(shScript, '755');
|
|
68
|
+
|
|
69
|
+
const installProc = spawn('/usr/bin/env', ['bash', shScript, ...args], { stdio: 'inherit' });
|
|
70
|
+
installProc.on('close', (exitCode) => process.exit(exitCode));
|
|
71
|
+
}
|
|
72
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "awesome-agentic-stack",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Cross-platform installer for the curated ₹0 awesome-agentic-stack developer workspace.",
|
|
5
|
+
"main": "cli.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"awesome-agentic-stack": "./cli.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"awesome-list",
|
|
11
|
+
"agentic-coding",
|
|
12
|
+
"vibe-coding",
|
|
13
|
+
"claude-code",
|
|
14
|
+
"opencode",
|
|
15
|
+
"antigravity",
|
|
16
|
+
"developer-stack"
|
|
17
|
+
],
|
|
18
|
+
"author": "Akash Priyadarshi",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"files": ["cli.js"],
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/AkashPriyadarshii/awesome-agentic-stack.git"
|
|
24
|
+
}
|
|
25
|
+
}
|