magic-spec 1.3.2 β 1.4.1
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/CHANGELOG.md +18 -0
- package/README.md +258 -195
- package/installers/node/index.js +9 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.1] - 2026-03-01
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **Localization**: Translated remaining Russian text in `README.md` Mermaid diagrams to English.
|
|
13
|
+
|
|
14
|
+
## [1.4.0] - 2026-03-01
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **Smart Sync Optimization (AOP)** in `analyze.md`: Automated detection of manual renames during project re-analysis. If an orphaned specification matches a new uncovered directory (>80% similarity or title match), it triggers a `[RESCUE]` action instead of delete/create cycle.
|
|
19
|
+
- **Manual Rename Rescue** in `spec.md`: Protocol to globally update references (INDEX, PLAN, TASKS) when a specification file is moved/renamed, preserving task progress.
|
|
20
|
+
- **Regression Tests (T48βT51)**: Added coverage for Engine Integrity guards, Analysis Depth Control, and Smart Sync mechanisms.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **Test Suite Synchronization**: The `suite.md` version is now synchronized with the core engine version to prevent metadata confusion.
|
|
25
|
+
|
|
8
26
|
## [1.3.2] - 2026-02-28
|
|
9
27
|
|
|
10
28
|
### Added
|
package/README.md
CHANGED
|
@@ -1,195 +1,258 @@
|
|
|
1
|
-
# πͺ Magic Spec
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/magic-spec)
|
|
4
|
-
[](https://pypi.org/project/magic-spec/)
|
|
5
|
-
[](./LICENSE)
|
|
6
|
-
|
|
7
|
-
## π Description
|
|
8
|
-
|
|
9
|
-
**The Specification-Driven Development (SDD) Operating System for AI Coding Agents.**
|
|
10
|
-
|
|
11
|
-
Stop your AI from writing fragile code before it fully understands the problem. `magic-spec` installs a high-performance, structured pipeline β *Thought β Spec β Task β Run β Code* β directly into any project, regardless of the tech stack.
|
|
12
|
-
|
|
13
|
-
Whether you are a **coding novice** building your first application or a **senior engineer** architecting enterprise systems, Magic Spec brings **maximum automation** and professional rigor to your development process. It enforces a deterministic workflow that ensures your AI agent perfectly aligns with your vision before writing a single line of code.
|
|
14
|
-
|
|
15
|
-
### The Core Concept
|
|
16
|
-
|
|
17
|
-
`magic-spec` is a set of **markdown-based workflow instructions** specifically designed for AI coding agents like Cursor, Windsurf, Claude, and Gemini. It acts as a project-level operating system that orchestrates agentic development.
|
|
18
|
-
|
|
19
|
-
Instead of chaotic prompt-engineering, Magic Spec provides a rigorous pipeline:
|
|
20
|
-
|
|
21
|
-
```plaintext
|
|
22
|
-
π‘ Idea β π Specification β πΊοΈ Task & Plan β β‘ Run β π Code
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Once initialized, your AI agent will automatically:
|
|
26
|
-
|
|
27
|
-
- Formulate a strong conceptual and technical specification.
|
|
28
|
-
- Build a phased implementation plan with hierarchical dependencies.
|
|
29
|
-
- Decompose the plan into prioritized, atomic, trackable tasks.
|
|
30
|
-
- Facilitate safe architectural brainstorming via **Explore Mode**.
|
|
31
|
-
- Analyze its own workflow and suggest improvements via Auto-Retrospectives.
|
|
32
|
-
|
|
33
|
-
### What Gets Installed
|
|
34
|
-
|
|
35
|
-
After running the installer, your project directory will be augmented with the following structure:
|
|
36
|
-
|
|
37
|
-
```plaintext
|
|
38
|
-
root-project/
|
|
39
|
-
βββ .agent/workflows/ # Slash commands wrapper (e.g., magic.spec, magic.task)
|
|
40
|
-
βββ .magic/ # The SDD Engine (workflow logic and scripts - read-only)
|
|
41
|
-
βββ .design/ # Your Project Design Workspace (INDEX.md, RULES.md, PLAN.md)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
1. **`.magic/`**: Deploys the core SDD engine.
|
|
45
|
-
2. **`.agent/`**: Sets up workflows for your AI.
|
|
46
|
-
3. **`.design/`**: Initializes your project's workspace for Specifications, Rules, and Plans.
|
|
47
|
-
4. **Onboarding**: An interactive tutorial (`magic.onboard`) helps you and your AI get started smoothly.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
##
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
1
|
+
# πͺ Magic Spec
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/magic-spec)
|
|
4
|
+
[](https://pypi.org/project/magic-spec/)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
|
|
7
|
+
## π Description
|
|
8
|
+
|
|
9
|
+
**The Specification-Driven Development (SDD) Operating System for AI Coding Agents.**
|
|
10
|
+
|
|
11
|
+
Stop your AI from writing fragile code before it fully understands the problem. `magic-spec` installs a high-performance, structured pipeline β *Thought β Spec β Task β Run β Code* β directly into any project, regardless of the tech stack.
|
|
12
|
+
|
|
13
|
+
Whether you are a **coding novice** building your first application or a **senior engineer** architecting enterprise systems, Magic Spec brings **maximum automation** and professional rigor to your development process. It enforces a deterministic workflow that ensures your AI agent perfectly aligns with your vision before writing a single line of code.
|
|
14
|
+
|
|
15
|
+
### The Core Concept
|
|
16
|
+
|
|
17
|
+
`magic-spec` is a set of **markdown-based workflow instructions** specifically designed for AI coding agents like Cursor, Windsurf, Claude, and Gemini. It acts as a project-level operating system that orchestrates agentic development.
|
|
18
|
+
|
|
19
|
+
Instead of chaotic prompt-engineering, Magic Spec provides a rigorous pipeline:
|
|
20
|
+
|
|
21
|
+
```plaintext
|
|
22
|
+
π‘ Idea β π Specification β πΊοΈ Task & Plan β β‘ Run β π Code
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Once initialized, your AI agent will automatically:
|
|
26
|
+
|
|
27
|
+
- Formulate a strong conceptual and technical specification.
|
|
28
|
+
- Build a phased implementation plan with hierarchical dependencies.
|
|
29
|
+
- Decompose the plan into prioritized, atomic, trackable tasks.
|
|
30
|
+
- Facilitate safe architectural brainstorming via **Explore Mode**.
|
|
31
|
+
- Analyze its own workflow and suggest improvements via Auto-Retrospectives.
|
|
32
|
+
|
|
33
|
+
### What Gets Installed
|
|
34
|
+
|
|
35
|
+
After running the installer, your project directory will be augmented with the following structure:
|
|
36
|
+
|
|
37
|
+
```plaintext
|
|
38
|
+
root-project/
|
|
39
|
+
βββ .agent/workflows/ # Slash commands wrapper (e.g., magic.spec, magic.task)
|
|
40
|
+
βββ .magic/ # The SDD Engine (workflow logic and scripts - read-only)
|
|
41
|
+
βββ .design/ # Your Project Design Workspace (INDEX.md, RULES.md, PLAN.md)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
1. **`.magic/`**: Deploys the core SDD engine.
|
|
45
|
+
2. **`.agent/`**: Sets up workflows for your AI.
|
|
46
|
+
3. **`.design/`**: Initializes your project's workspace for Specifications, Rules, and Plans.
|
|
47
|
+
4. **Onboarding**: An interactive tutorial (`magic.onboard`) helps you and your AI get started smoothly.
|
|
48
|
+
|
|
49
|
+
> [!TIP]
|
|
50
|
+
> **Magic Workspaces**: Magic Spec supports multiple, isolated design environments within a single repository (e.g., `.design/engine/`, `.design/installers/`). This allows you to manage fundamentally different project domains without specification overlap, while sharing a single core engine. See [workspaces.md](./workspaces.md) for details.
|
|
51
|
+
|
|
52
|
+
## πΌοΈ Visuals
|
|
53
|
+
|
|
54
|
+
The engine enforces a rigorous, unskippable pipeline: **Idea β Specification β Task & Plan β Code**. AI agents are prevented from jumping straight to coding. They must first formally specify the solution, then break it down into a concrete plan and tasks, and only then proceed to execution.
|
|
55
|
+
|
|
56
|
+
```mermaid
|
|
57
|
+
flowchart TB
|
|
58
|
+
IDEA(["π‘ Idea"])
|
|
59
|
+
|
|
60
|
+
subgraph BOX ["Magic Spec"]
|
|
61
|
+
direction TB
|
|
62
|
+
|
|
63
|
+
SPEC["π Spec"]
|
|
64
|
+
|
|
65
|
+
subgraph TASK ["πΊοΈ Task"]
|
|
66
|
+
direction TB
|
|
67
|
+
PLAN["π Plan"]
|
|
68
|
+
TASKS["π Tasks"]
|
|
69
|
+
PLAN --> TASKS
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
RUN["β‘ Run"]
|
|
73
|
+
|
|
74
|
+
SPEC --> PLAN
|
|
75
|
+
TASKS --> RUN
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
CODE(["π Code"])
|
|
79
|
+
|
|
80
|
+
IDEA --> SPEC
|
|
81
|
+
RUN --> CODE
|
|
82
|
+
|
|
83
|
+
style IDEA fill:#1e1e2e,stroke:#89b4fa,color:#cdd6f4
|
|
84
|
+
style CODE fill:#1e1e2e,stroke:#a6e3a1,color:#cdd6f4
|
|
85
|
+
|
|
86
|
+
style BOX fill:#181825,stroke:#fab387,stroke-width:3px,color:#fab387
|
|
87
|
+
|
|
88
|
+
style SPEC fill:#1e1e2e,stroke:#89b4fa,color:#cdd6f4
|
|
89
|
+
style RUN fill:#1e1e2e,stroke:#89b4fa,color:#cdd6f4
|
|
90
|
+
|
|
91
|
+
style TASK fill:#11111b,stroke:#89b4fa,stroke-dasharray:5 5,color:#89b4fa
|
|
92
|
+
style PLAN fill:#1e1e2e,stroke:#45475a,stroke-dasharray:4 4,color:#cdd6f4
|
|
93
|
+
style TASKS fill:#1e1e2e,stroke:#45475a,stroke-dasharray:4 4,color:#cdd6f4
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## βοΈ Requirements
|
|
97
|
+
|
|
98
|
+
Before installing Magic Spec, ensure you have one of the following available on your system:
|
|
99
|
+
|
|
100
|
+
| Requirement | Details |
|
|
101
|
+
| :--- | :--- |
|
|
102
|
+
| **Node.js** | Version `16.x` or higher (for `npx` method) |
|
|
103
|
+
| **Python** | Version `3.8` or higher (for `uvx` or `pipx` methods) |
|
|
104
|
+
| **Git** | Required for installing edge versions directly from GitHub |
|
|
105
|
+
| **Terminal** | `tar` utility (pre-installed on Windows/Linux/macOS) |
|
|
106
|
+
|
|
107
|
+
## π¦ Installation
|
|
108
|
+
|
|
109
|
+
Works perfectly with **any project** β Rust, Go, Python, JavaScript, C++, or anything else. No runtime lock-in.
|
|
110
|
+
|
|
111
|
+
### Option A: Node.js (`npx`)
|
|
112
|
+
|
|
113
|
+
**Stable Release:**
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Basic installation (defaults to .agent/ folder)
|
|
117
|
+
npx magic-spec@latest
|
|
118
|
+
|
|
119
|
+
# Targeted installation for Cursor
|
|
120
|
+
npx magic-spec@latest --cursor
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Edge Version (GitHub):**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
npx --yes github:teratron/magic-spec
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Option B: Python (`uvx`)
|
|
130
|
+
|
|
131
|
+
**Stable Release:**
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# Basic installation
|
|
135
|
+
uvx magic-spec
|
|
136
|
+
|
|
137
|
+
# Targeted installation for Windsurf
|
|
138
|
+
uvx magic-spec --windsurf
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Edge Version (GitHub):**
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
uvx --from git+https://github.com/teratron/magic-spec.git magic-spec
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Option C: Python (`pipx`)
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
pipx run magic-spec
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Option D: Multi-Adapter Installation
|
|
154
|
+
|
|
155
|
+
You can install support for multiple adapters at once:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
npx magic-spec@latest --cursor --copilot --windsurf
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Option E: Manual Installation
|
|
162
|
+
|
|
163
|
+
If automated installers do not fit your environment:
|
|
164
|
+
|
|
165
|
+
1. **Engine**: Download the `.magic/` folder from the [GitHub repository](https://github.com/teratron/magic-spec).
|
|
166
|
+
2. **Workflows**: Download command wrappers from [`.agent/workflows/`](https://github.com/teratron/magic-spec/tree/main/.agent/workflows).
|
|
167
|
+
3. **Deploy**: Place files into your AI agent's instruction directory (e.g., `.cursor/commands`).
|
|
168
|
+
|
|
169
|
+
## π Updating
|
|
170
|
+
|
|
171
|
+
Keep your SDD engine up to date with the latest logic and features:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Check if update is available
|
|
175
|
+
npx magic-spec@latest --check
|
|
176
|
+
|
|
177
|
+
# Perform the update
|
|
178
|
+
npx magic-spec@latest --update
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
> [!TIP]
|
|
182
|
+
> The update process preserves your `.design/` workspace and automatically creates backups of `.magic/` and `.agent/` folders. If you have modified core engine files, the installer will detect conflicts and ask for your preference (overwrite, skip, or abort).
|
|
183
|
+
|
|
184
|
+
## π¬ Usage
|
|
185
|
+
|
|
186
|
+
Just talk to your AI agent naturally in your prompt interface. No complex commands to learn:
|
|
187
|
+
|
|
188
|
+
- *"Dispatch this thought into specs..."* β Triggers **Specification** workflow.
|
|
189
|
+
- *"Create an implementation plan"* β Triggers **Task & Plan** workflow.
|
|
190
|
+
- *"Execute the next task"* β Triggers **Run** workflow.
|
|
191
|
+
- *"Add a rule: always use Inter font"* β Triggers **Rule** workflow.
|
|
192
|
+
|
|
193
|
+
### π€ Compatibility
|
|
194
|
+
|
|
195
|
+
Magic Spec is heavily optimized and provides native workflow generation for the world's most powerful AI development environments.
|
|
196
|
+
|
|
197
|
+
You can install support for a specific adapter using the shortcut flag (e.g., `--cursor`) or the environment flag (e.g., `--env cursor`).
|
|
198
|
+
|
|
199
|
+
| AI Agent / IDE | Shortcut Flag | Env Flag |
|
|
200
|
+
| :--- | :--- | :--- |
|
|
201
|
+
| [**Cursor**](https://cursor.com) (Agent Mode) | `--cursor` | `--env cursor` |
|
|
202
|
+
| [**Windsurf**](https://codeium.com/windsurf) (Cascade) | `--windsurf` | `--env windsurf` |
|
|
203
|
+
| [**Claude Code**](https://claude.ai/code) | `--claude` | `--env claude` |
|
|
204
|
+
| [**Gemini CLI**](https://gemini.google.com) | `--gemini` | `--env gemini` |
|
|
205
|
+
| [**GitHub Copilot**](https://github.com/features/copilot) | `--copilot` | `--env copilot` |
|
|
206
|
+
| **Roo Code** | `--roo` | `--env roo` |
|
|
207
|
+
| **Amp** | `--amp` | `--env amp` |
|
|
208
|
+
| **Amazon Q Developer** | `--q` | `--env q` |
|
|
209
|
+
| **Kilo Code** | `--kilocode` | `--env kilocode` |
|
|
210
|
+
| **Qwen Code** | `--qwen` | `--env qwen` |
|
|
211
|
+
| **OpenCode** | `--opencode` | `--env opencode` |
|
|
212
|
+
| **SHAI (OVHcloud)** | `--shai` | `--env shai` |
|
|
213
|
+
| **IBM Bob** | `--bob` | `--env bob` |
|
|
214
|
+
| **CodeBuddy** | `--codebuddy` | `--env codebuddy` |
|
|
215
|
+
| **Qoder IDE** | `--qoder` | `--env qoder` |
|
|
216
|
+
| **Codex CLI** | `--codex` | `--env codex` |
|
|
217
|
+
| **Auggie CLI** | `--augment` | `--env augment` |
|
|
218
|
+
| **Antigravity IDE** | `--antigravity` | `--env antigravity` |
|
|
219
|
+
| **Lingma IDE** | `--lingma` | `--env lingma` |
|
|
220
|
+
|
|
221
|
+
## π Documentation
|
|
222
|
+
|
|
223
|
+
- [**Main Documentation**](./docs/README.md) β Detailed guide on workflows, architecture, and advanced features.
|
|
224
|
+
- [**Installers Guide**](./installers/README.md) β Advanced CLI options and platform specifics.
|
|
225
|
+
- [**Contributing**](./docs/contributing.md) β How to develop, test, and extend the engine.
|
|
226
|
+
|
|
227
|
+
## π Support
|
|
228
|
+
|
|
229
|
+
If you encounter issues or have questions:
|
|
230
|
+
|
|
231
|
+
- Open an [Issue](https://github.com/teratron/magic-spec/issues) on GitHub.
|
|
232
|
+
- Run `magic.onboard` in your agent to restart the interactive tutorial.
|
|
233
|
+
|
|
234
|
+
## πΊοΈ Roadmap
|
|
235
|
+
|
|
236
|
+
- [x] Multi-agent adapter system.
|
|
237
|
+
- [x] Phased implementation planning.
|
|
238
|
+
- [ ] Extended support for local-first LLM agents.
|
|
239
|
+
- [ ] Advanced visual dashboard for project health.
|
|
240
|
+
- [ ] Integration with CI/CD for automated spec validation.
|
|
241
|
+
|
|
242
|
+
## ποΈ Contributing
|
|
243
|
+
|
|
244
|
+
We welcome contributions! Whether it's a bug fix, a new adapter, or an improvement to the workflow logic.
|
|
245
|
+
Please see [**Contributing Guide**](./docs/contributing.md) for details.
|
|
246
|
+
|
|
247
|
+
## π₯ Authors and Acknowledgments
|
|
248
|
+
|
|
249
|
+
- **Oleg Alexandrov** β Creator and Lead Maintainer.
|
|
250
|
+
- Special thanks to the AI agent community for inspiration and testing.
|
|
251
|
+
|
|
252
|
+
## π License
|
|
253
|
+
|
|
254
|
+
Distributed under the [MIT License](./LICENSE).
|
|
255
|
+
|
|
256
|
+
## π Project Status
|
|
257
|
+
|
|
258
|
+
**Active Development** (v1.x). We are constantly refining the SDD engine based on real-world usage.
|
package/installers/node/index.js
CHANGED
|
@@ -135,7 +135,7 @@ function collectEnvValues(argv) {
|
|
|
135
135
|
return [...new Set(parsed)];
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
let envValues = collectEnvValues(args);
|
|
139
139
|
let selectedEnv = envValues.length > 0 ? envValues[0] : null;
|
|
140
140
|
|
|
141
141
|
function runListEnvs(adapters) {
|
|
@@ -155,7 +155,7 @@ function runListEnvs(adapters) {
|
|
|
155
155
|
const dest = `${adapter.dest}/`.padEnd(28);
|
|
156
156
|
console.log(` ${name}${padding}${dest}${adapter.description || ''}`);
|
|
157
157
|
}
|
|
158
|
-
console.log('\nUsage: npx magic-spec@latest --env <name>');
|
|
158
|
+
console.log('\nUsage: npx magic-spec@latest --env <name> OR --<name> (e.g. --cursor)');
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
function askQuestion(query) {
|
|
@@ -660,6 +660,7 @@ async function main() {
|
|
|
660
660
|
console.log(" --eject Remove magic-spec from project");
|
|
661
661
|
console.log("\nOptions:");
|
|
662
662
|
console.log(" --env <adapter> Specify environment adapter");
|
|
663
|
+
console.log(" --<adapter> Shortcut for --env <adapter> (e.g. --cursor)");
|
|
663
664
|
console.log(" --update Update engine files only");
|
|
664
665
|
console.log(" --fallback-main Pull payload from main branch");
|
|
665
666
|
console.log(" --yes, -y Auto-accept prompts");
|
|
@@ -699,6 +700,12 @@ async function main() {
|
|
|
699
700
|
}
|
|
700
701
|
|
|
701
702
|
// Determine environment
|
|
703
|
+
for (const env in ADAPTERS) {
|
|
704
|
+
if (args.includes(`--${env}`)) {
|
|
705
|
+
if (!envValues.includes(env)) envValues.push(env);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
702
709
|
let selectedEnvResolved = null;
|
|
703
710
|
if (envValues.length > 0) {
|
|
704
711
|
selectedEnvResolved = envValues[0];
|