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 CHANGED
@@ -14,11 +14,13 @@ npm install -g aerocoding
14
14
  # 1. Login (once)
15
15
  aerocoding login
16
16
 
17
- # 2. Initialize project (once per project)
18
- aerocoding init
17
+ # 2. Create a new project
18
+ aerocoding create
19
19
 
20
- # 3. Generate code (anytime)
21
- aerocoding generate
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 init`
36
+ ### `aerocoding create [name]`
35
37
 
36
- Interactive wizard to configure code generation for your project. Creates a `.aerocodingrc.json` config file.
38
+ Interactive wizard to create a new AeroCoding project with full architecture generation.
37
39
 
38
40
  ```bash
39
- aerocoding init
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 config
51
+ - `-f, --force` - Overwrite existing directory without asking
45
52
 
46
- ### `aerocoding generate`
53
+ Creates:
54
+ - `aerocoding.json` - Project configuration
55
+ - `aerocoding-manifest.json` - File tracking manifest (auto-generated)
56
+ - `backend/` - Generated backend code
47
57
 
48
- Generate code based on your config file or CLI options.
58
+ ### `aerocoding update`
59
+
60
+ Incrementally update generated code while preserving your changes.
49
61
 
50
62
  ```bash
51
- # Using config file (recommended)
52
- aerocoding generate
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
- # With CLI overrides
55
- aerocoding generate --no-testing
56
- aerocoding generate -y # Skip confirmation
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
- - `-p, --project <id>` - Project ID (overrides config)
61
- - `-t, --targets <targets...>` - Generation targets
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
- ## Config File
96
+ ## Configuration Files
84
97
 
85
- The `aerocoding init` command creates a `.aerocodingrc.json` file:
98
+ ### `aerocoding.json`
99
+
100
+ Project configuration (user-editable):
86
101
 
87
102
  ```json
88
103
  {
89
- "$schema": "https://aerocoding.dev/schemas/aerocodingrc.json",
90
- "project": "your-project-id",
91
- "output": "./.aerocoding",
92
- "backend": {
93
- "preset": "clean-architecture-dotnet",
94
- "layers": ["entities", "dtos", "validators", "repositories"]
95
- },
96
- "frontend": {
97
- "preset": "feature-based",
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
- CLI arguments override config file values.
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