aerocoding 0.1.24 → 0.1.26
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 +89 -49
- package/dist/index.js +271 -1052
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,11 +14,13 @@ npm install -g aerocoding
|
|
|
14
14
|
# 1. Login (once)
|
|
15
15
|
aerocoding login
|
|
16
16
|
|
|
17
|
-
# 2.
|
|
18
|
-
aerocoding
|
|
17
|
+
# 2. Create a new project
|
|
18
|
+
aerocoding create
|
|
19
19
|
|
|
20
|
-
# 3.
|
|
21
|
-
|
|
20
|
+
# 3. Make changes in the diagram editor on aerocoding.dev
|
|
21
|
+
|
|
22
|
+
# 4. Update your code incrementally
|
|
23
|
+
aerocoding update
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
## Commands
|
|
@@ -31,46 +33,57 @@ Authenticate with your AeroCoding account. Opens browser for secure OAuth authen
|
|
|
31
33
|
aerocoding login
|
|
32
34
|
```
|
|
33
35
|
|
|
34
|
-
### `aerocoding
|
|
36
|
+
### `aerocoding create [name]`
|
|
35
37
|
|
|
36
|
-
Interactive wizard to
|
|
38
|
+
Interactive wizard to create a new AeroCoding project with full architecture generation.
|
|
37
39
|
|
|
38
40
|
```bash
|
|
39
|
-
|
|
41
|
+
# Interactive (recommended)
|
|
42
|
+
aerocoding create
|
|
43
|
+
|
|
44
|
+
# With custom directory name
|
|
45
|
+
aerocoding create my-project
|
|
40
46
|
```
|
|
41
47
|
|
|
42
48
|
Options:
|
|
49
|
+
- `-t, --template <id>` - Skip template selection
|
|
43
50
|
- `-p, --project <id>` - Skip project selection
|
|
44
|
-
- `-f, --force` - Overwrite existing
|
|
51
|
+
- `-f, --force` - Overwrite existing directory without asking
|
|
45
52
|
|
|
46
|
-
|
|
53
|
+
Creates:
|
|
54
|
+
- `aerocoding.json` - Project configuration
|
|
55
|
+
- `aerocoding-manifest.json` - File tracking manifest (auto-generated)
|
|
56
|
+
- `backend/` - Generated backend code
|
|
47
57
|
|
|
48
|
-
|
|
58
|
+
### `aerocoding update`
|
|
59
|
+
|
|
60
|
+
Incrementally update generated code while preserving your changes.
|
|
49
61
|
|
|
50
62
|
```bash
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
aerocoding update
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Options:
|
|
67
|
+
- `-f, --force` - Overwrite modified files without merging
|
|
68
|
+
- `-v, --verbose` - Show detailed file operations
|
|
69
|
+
- `--dry-run` - Preview changes without writing files
|
|
70
|
+
|
|
71
|
+
Features:
|
|
72
|
+
- Three-way merge to preserve your custom code
|
|
73
|
+
- Creates `.new` and `.conflict` files when merge fails
|
|
74
|
+
- Syncs manifest to cloud for backup
|
|
53
75
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
76
|
+
### `aerocoding resolve`
|
|
77
|
+
|
|
78
|
+
Clean up conflict files after manual resolution.
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
aerocoding resolve
|
|
57
82
|
```
|
|
58
83
|
|
|
59
84
|
Options:
|
|
60
|
-
- `-
|
|
61
|
-
- `-
|
|
62
|
-
- `-o, --output <dir>` - Output directory (default: `./generated`)
|
|
63
|
-
- `--backend-preset <preset>` - Backend architecture preset
|
|
64
|
-
- `--frontend-preset <preset>` - Frontend architecture preset
|
|
65
|
-
- `--backend-layers <layers...>` - Backend layers to generate
|
|
66
|
-
- `--frontend-layers <layers...>` - Frontend layers to generate
|
|
67
|
-
- `--no-validations` - Exclude validation code
|
|
68
|
-
- `--no-comments` - Exclude comments
|
|
69
|
-
- `--no-annotations` - Exclude annotations/decorators
|
|
70
|
-
- `--no-logging` - Exclude logging
|
|
71
|
-
- `--no-testing` - Exclude test files
|
|
72
|
-
- `--validation-lib <lib>` - Validation library (e.g., `fluentvalidation`, `zod`)
|
|
73
|
-
- `-y, --yes` - Skip confirmation prompt
|
|
85
|
+
- `-v, --verbose` - Show detailed resolution info
|
|
86
|
+
- `-a, --all` - Resolve all conflicts without confirmation
|
|
74
87
|
|
|
75
88
|
### `aerocoding whoami`
|
|
76
89
|
|
|
@@ -80,34 +93,61 @@ Show current authenticated user.
|
|
|
80
93
|
|
|
81
94
|
Clear stored credentials.
|
|
82
95
|
|
|
83
|
-
##
|
|
96
|
+
## Configuration Files
|
|
84
97
|
|
|
85
|
-
|
|
98
|
+
### `aerocoding.json`
|
|
99
|
+
|
|
100
|
+
Project configuration (user-editable):
|
|
86
101
|
|
|
87
102
|
```json
|
|
88
103
|
{
|
|
89
|
-
"$schema": "https://aerocoding.dev/
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"layers": ["models", "services"]
|
|
99
|
-
},
|
|
100
|
-
"codeStyle": {
|
|
101
|
-
"includeValidations": true,
|
|
102
|
-
"includeComments": true,
|
|
103
|
-
"includeAnnotations": true,
|
|
104
|
-
"includeLogging": true,
|
|
105
|
-
"includeTesting": false
|
|
104
|
+
"$schema": "https://aerocoding.dev/schema.json",
|
|
105
|
+
"projectId": "your-project-id",
|
|
106
|
+
"templateId": "clean-arch-dotnet",
|
|
107
|
+
"templateVersion": "1.0.0",
|
|
108
|
+
"namespace": "MegaStore",
|
|
109
|
+
"organizationId": "your-org-id",
|
|
110
|
+
"output": {
|
|
111
|
+
"backend": "./backend",
|
|
112
|
+
"frontend": "./frontend"
|
|
106
113
|
}
|
|
107
114
|
}
|
|
108
115
|
```
|
|
109
116
|
|
|
110
|
-
|
|
117
|
+
### `aerocoding-manifest.json`
|
|
118
|
+
|
|
119
|
+
Auto-generated file tracking (do not edit):
|
|
120
|
+
|
|
121
|
+
```json
|
|
122
|
+
{
|
|
123
|
+
"version": "1.0.0",
|
|
124
|
+
"lastSync": "2024-01-15T10:30:00Z",
|
|
125
|
+
"files": {
|
|
126
|
+
"backend/src/Domain/Customer.cs": {
|
|
127
|
+
"hash": "sha256:abc123...",
|
|
128
|
+
"mtime": 1705312200000,
|
|
129
|
+
"size": 2847,
|
|
130
|
+
"type": "entity"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Incremental Generation
|
|
137
|
+
|
|
138
|
+
AeroCoding uses smart merging to preserve your custom code:
|
|
139
|
+
|
|
140
|
+
1. **Unchanged files**: Silently updated
|
|
141
|
+
2. **Modified files**: Three-way merge attempted
|
|
142
|
+
3. **Conflicts**: Creates `.new` and `.conflict` files for manual resolution
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
Customer.cs <- Your version (unchanged)
|
|
146
|
+
Customer.cs.new <- New generated version
|
|
147
|
+
Customer.cs.conflict <- Diff showing conflicts
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
After resolving conflicts manually, run `aerocoding resolve` to clean up.
|
|
111
151
|
|
|
112
152
|
## Security
|
|
113
153
|
|