@heetmehta18/autodev 0.3.0 → 0.3.2
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 +69 -28
- package/bin/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,50 +1,91 @@
|
|
|
1
|
-
# AutoDev
|
|
1
|
+
# AutoDev CLI — The App Store for Developers ⚡
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@heetmehta18/autodev)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
**AutoDev** is an open-source, cross-platform developer environment bootstrapper. It acts as an **App Store for Developers**, simplifying complex toolchain setups through intelligent, profile-based automation.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
---
|
|
8
9
|
|
|
10
|
+
## 🚀 Key Features
|
|
11
|
+
|
|
12
|
+
* 🔍 **Polyglot Codebase Scanner**: Detects 30+ languages, frameworks, package managers, and DevOps infrastructure.
|
|
13
|
+
* 🛡️ **Supply-Chain Security Audits**: Queries the OSV (Open Source Vulnerabilities) database to find safety risks in your dependencies.
|
|
14
|
+
* ⚙️ **Ballast Installer**: Automatically extracts and links compilers/runtimes (like Node.js, Go, Python, Rust) to your path.
|
|
15
|
+
* 📦 **Monorepo / Multi-project Scanner**: Groups and maps nested modules dynamically within a monorepo structure.
|
|
16
|
+
* 🛰️ **Cloud IDE Scaffolding**: Runs `autodev containerize` to generate `.devcontainer.json` environment setups.
|
|
17
|
+
* 🔄 **Config Migrator**: Seamlessly upgrades legacy profile configurations to standard YAML.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 📦 Installation & Quick Start
|
|
22
|
+
|
|
23
|
+
You can run AutoDev on the fly using Node's package executor, or install it globally.
|
|
24
|
+
|
|
25
|
+
### 1. Run Instantly (No Installation)
|
|
26
|
+
Scan your workspace and bootstrap dependencies without installing anything permanently:
|
|
9
27
|
```bash
|
|
10
|
-
npx @heetmehta18/autodev
|
|
28
|
+
npx @heetmehta18/autodev setup
|
|
11
29
|
```
|
|
12
30
|
|
|
13
|
-
### Install Globally
|
|
14
|
-
|
|
31
|
+
### 2. Install Globally
|
|
32
|
+
Install the package globally for instant local terminal access:
|
|
15
33
|
```bash
|
|
16
34
|
npm install -g @heetmehta18/autodev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 3. Usage
|
|
38
|
+
Verify that the CLI is installed and ready:
|
|
39
|
+
```bash
|
|
17
40
|
autodev --help
|
|
18
41
|
```
|
|
19
42
|
|
|
20
|
-
|
|
43
|
+
---
|
|
21
44
|
|
|
22
|
-
|
|
45
|
+
## 🛠️ Main CLI Commands
|
|
23
46
|
|
|
47
|
+
### 🔍 scan
|
|
48
|
+
Analyzes your current working directory for configuration markers, lockfiles, and monorepo folders:
|
|
24
49
|
```bash
|
|
25
|
-
|
|
26
|
-
|
|
50
|
+
autodev scan
|
|
51
|
+
```
|
|
27
52
|
|
|
28
|
-
|
|
29
|
-
|
|
53
|
+
### 📦 setup
|
|
54
|
+
Scans the project and aligns your local development environment by downloading missing runtimes:
|
|
55
|
+
```bash
|
|
56
|
+
autodev setup
|
|
57
|
+
autodev setup --yes # Skip confirmation prompts
|
|
30
58
|
```
|
|
31
59
|
|
|
32
|
-
|
|
60
|
+
### 🩺 doctor
|
|
61
|
+
Inspects your system configuration, checks tool versions against the `.autodev.lock.json` lockfile, and scans for exposed secrets (like AWS keys or GitHub tokens):
|
|
62
|
+
```bash
|
|
63
|
+
autodev doctor
|
|
64
|
+
autodev doctor --fix # Restore lockfile mismatches automatically
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 🛡️ audit
|
|
68
|
+
Scans lockfiles and dependencies for known supply-chain vulnerabilities using the OSV database:
|
|
69
|
+
```bash
|
|
70
|
+
autodev audit
|
|
71
|
+
```
|
|
33
72
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
73
|
+
### 💻 containerize
|
|
74
|
+
Generates dev container setup configurations (`.devcontainer.json`) and VSCode plugin recommendations based on the detected stack:
|
|
75
|
+
```bash
|
|
76
|
+
autodev containerize
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 🔄 migrate
|
|
80
|
+
Upgrades legacy `.json` profile configs to the standard `.autodev.yaml` schema:
|
|
81
|
+
```bash
|
|
82
|
+
autodev migrate
|
|
83
|
+
```
|
|
38
84
|
|
|
39
|
-
|
|
85
|
+
---
|
|
40
86
|
|
|
41
|
-
|
|
87
|
+
## ⚙️ How It Works
|
|
42
88
|
|
|
43
|
-
1.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
2. Publish to npm:
|
|
48
|
-
```bash
|
|
49
|
-
pnpm --filter=@heetmehta18/autodev publish
|
|
50
|
-
```
|
|
89
|
+
1. **Platform Detection**: The wrapper maps your OS and CPU architecture (e.g. `linux/amd64`, `darwin/arm64`) to the corresponding compiled Go binary.
|
|
90
|
+
2. **Binary Caching**: Downloads the pre-compiled binary directly from the matching GitHub Release tag. Subsequent executions are run instantly from cache.
|
|
91
|
+
3. **Process Delegation**: Delegated execution forwards all streams, signals, exit codes, and Model Context Protocol (MCP) servers seamlessly.
|
package/bin/index.js
CHANGED
|
@@ -154,7 +154,7 @@ async function downloadBinary() {
|
|
|
154
154
|
console.log(`[autodev] Downloading from: ${url}`);
|
|
155
155
|
await download(url, tempFile);
|
|
156
156
|
} catch (err) {
|
|
157
|
-
const stableFallback = "v0.3.
|
|
157
|
+
const stableFallback = "v0.3.2";
|
|
158
158
|
if (version !== stableFallback) {
|
|
159
159
|
console.warn(
|
|
160
160
|
`\n[autodev] Failed to download version ${version}: ${err.message}`,
|