aiwf 0.3.16 → 0.3.18

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.
Files changed (82) hide show
  1. package/README.ko.md +1 -1
  2. package/README.md +88 -229
  3. package/docs/ADR_MANAGEMENT_GUIDE.ko.md +602 -0
  4. package/docs/ADR_MANAGEMENT_GUIDE.md +602 -0
  5. package/docs/API_REFERENCE_FULL.ko.md +160 -4
  6. package/docs/API_REFERENCE_FULL.md +160 -4
  7. package/docs/EXAMPLES.ko.md +695 -0
  8. package/docs/EXAMPLES.md +12 -12
  9. package/docs/GETTING_STARTED.md +19 -25
  10. package/docs/MODULE_MANAGEMENT_GUIDE.ko.md +289 -0
  11. package/docs/MODULE_MANAGEMENT_GUIDE.md +289 -0
  12. package/docs/PRD.ko.md +2 -2
  13. package/docs/PRD.md +2 -2
  14. package/docs/YOLO_SYSTEM_GUIDE.ko.md +542 -0
  15. package/docs/YOLO_SYSTEM_GUIDE.md +542 -0
  16. package/package.json +1 -1
  17. package/src/config/file-lists.js +5 -5
  18. package/templates/README.md +0 -78
  19. package/templates/api-server/config.json +0 -64
  20. package/templates/api-server/template/.aiwf/config.json +0 -56
  21. package/templates/api-server/template/.aiwf/feature-ledger.json +0 -42
  22. package/templates/api-server/template/.aiwf/personas/backend-engineer.json +0 -40
  23. package/templates/api-server/template/.aiwf/scripts/cli.js +0 -111
  24. package/templates/api-server/template/.env.example +0 -29
  25. package/templates/api-server/template/.eslintrc.json +0 -23
  26. package/templates/api-server/template/README.md +0 -171
  27. package/templates/api-server/template/jest.config.js +0 -26
  28. package/templates/api-server/template/nodemon.json +0 -9
  29. package/templates/api-server/template/package.json +0 -61
  30. package/templates/api-server/template/src/app.ts +0 -60
  31. package/templates/api-server/template/src/config/swagger.ts +0 -38
  32. package/templates/api-server/template/src/controllers/aiwfController.ts +0 -54
  33. package/templates/api-server/template/src/controllers/authController.ts +0 -128
  34. package/templates/api-server/template/src/controllers/statusController.ts +0 -28
  35. package/templates/api-server/template/src/index.ts +0 -28
  36. package/templates/api-server/template/src/middleware/aiwfMiddleware.ts +0 -50
  37. package/templates/api-server/template/src/middleware/authMiddleware.ts +0 -41
  38. package/templates/api-server/template/src/middleware/errorHandler.ts +0 -42
  39. package/templates/api-server/template/src/middleware/notFoundHandler.ts +0 -14
  40. package/templates/api-server/template/src/middleware/requestLogger.ts +0 -20
  41. package/templates/api-server/template/src/routes/aiwf.ts +0 -31
  42. package/templates/api-server/template/src/routes/index.ts +0 -13
  43. package/templates/api-server/template/src/routes/v1/index.ts +0 -67
  44. package/templates/api-server/template/src/utils/logger.ts +0 -37
  45. package/templates/api-server/template/tests/app.test.ts +0 -40
  46. package/templates/api-server/template/tsconfig.json +0 -43
  47. package/templates/npm-library/config.json +0 -61
  48. package/templates/npm-library/template/LICENSE +0 -21
  49. package/templates/npm-library/template/README.md +0 -201
  50. package/templates/npm-library/template/package.json +0 -78
  51. package/templates/web-app/config.json +0 -53
  52. package/templates/web-app/template/.aiwf/config.json +0 -54
  53. package/templates/web-app/template/.aiwf/feature-ledger.json +0 -37
  54. package/templates/web-app/template/.aiwf/personas/fullstack-developer.json +0 -40
  55. package/templates/web-app/template/.aiwf/scripts/cli.js +0 -110
  56. package/templates/web-app/template/.eslintrc.cjs +0 -20
  57. package/templates/web-app/template/README.md +0 -151
  58. package/templates/web-app/template/index.html +0 -14
  59. package/templates/web-app/template/package.json +0 -44
  60. package/templates/web-app/template/postcss.config.js +0 -6
  61. package/templates/web-app/template/public/vite.svg +0 -1
  62. package/templates/web-app/template/src/App.tsx +0 -21
  63. package/templates/web-app/template/src/components/Layout.tsx +0 -57
  64. package/templates/web-app/template/src/components/aiwf/ContextStatus.tsx +0 -107
  65. package/templates/web-app/template/src/components/aiwf/TokenUsage.tsx +0 -71
  66. package/templates/web-app/template/src/index.css +0 -60
  67. package/templates/web-app/template/src/main.tsx +0 -10
  68. package/templates/web-app/template/src/pages/AiwfDashboard.tsx +0 -57
  69. package/templates/web-app/template/src/pages/HomePage.tsx +0 -89
  70. package/templates/web-app/template/src/pages/NotFound.tsx +0 -25
  71. package/templates/web-app/template/src/stores/aiwfStore.ts +0 -126
  72. package/templates/web-app/template/src/types/global.d.ts +0 -9
  73. package/templates/web-app/template/src/vite-env.d.ts +0 -1
  74. package/templates/web-app/template/tailwind.config.js +0 -30
  75. package/templates/web-app/template/tsconfig.json +0 -37
  76. package/templates/web-app/template/tsconfig.node.json +0 -10
  77. package/templates/web-app/template/vite.config.ts +0 -23
  78. /package/rules/global/{code-style-guide.md → aiwf-code-style-guide.md} +0 -0
  79. /package/rules/global/{coding-principles.md → aiwf-coding-principles.md} +0 -0
  80. /package/rules/global/{development-process.md → aiwf-development-process.md} +0 -0
  81. /package/rules/global/{global-rules.md → aiwf-global-rules.md} +0 -0
  82. /package/rules/manual/{generate-plan-docs.md → aiwf-generate-plan-docs.md} +0 -0
@@ -0,0 +1,542 @@
1
+ # AIWF YOLO System Guide
2
+
3
+ > Comprehensive guide to AIWF's autonomous execution system (YOLO Mode)
4
+
5
+ [한국어](YOLO_SYSTEM_GUIDE.ko.md) | [English](YOLO_SYSTEM_GUIDE.md)
6
+
7
+ ## Table of Contents
8
+
9
+ 1. [Overview](#overview)
10
+ 2. [System Components](#system-components)
11
+ 3. [Engineering Guard](#engineering-guard)
12
+ 4. [Checkpoint Manager](#checkpoint-manager)
13
+ 5. [YOLO Configuration](#yolo-configuration)
14
+ 6. [Usage Patterns](#usage-patterns)
15
+ 7. [Safety Mechanisms](#safety-mechanisms)
16
+ 8. [Performance Optimization](#performance-optimization)
17
+ 9. [Troubleshooting](#troubleshooting)
18
+ 10. [Best Practices](#best-practices)
19
+
20
+ ## Overview
21
+
22
+ YOLO (You Only Live Once) mode is AIWF's autonomous execution system that allows Claude Code to work independently on tasks with minimal human intervention. The system includes sophisticated safety mechanisms, progress tracking, and quality control to ensure reliable autonomous operation.
23
+
24
+ ### Key Features
25
+
26
+ - **Autonomous Task Execution**: Complete sprints or milestones automatically
27
+ - **Over-engineering Prevention**: Built-in guards against unnecessary complexity
28
+ - **Progress Tracking**: Comprehensive checkpoint and recovery system
29
+ - **Quality Control**: Real-time code quality monitoring
30
+ - **Recovery Mechanisms**: Robust error handling and state restoration
31
+
32
+ ## System Components
33
+
34
+ ### Architecture Overview
35
+
36
+ ```
37
+ YOLO Mode
38
+ ├── Engineering Guard (over-engineering prevention)
39
+ ├── Checkpoint Manager (progress tracking & recovery)
40
+ ├── Configuration System (behavior customization)
41
+ ├── Sprint Manager (task organization)
42
+ └── Recovery System (failure handling)
43
+ ```
44
+
45
+ ### Core Modules
46
+
47
+ 1. **`utils/engineering-guard.js`**: Quality control and complexity prevention
48
+ 2. **`utils/checkpoint-manager.js`**: Progress tracking and recovery
49
+ 3. **`src/config/yolo-config-template.yaml`**: Configuration template
50
+ 4. **`src/commands/yolo-config.js`**: Configuration management
51
+ 5. **`src/cli/checkpoint-cli.js`**: Dedicated checkpoint CLI
52
+
53
+ ## Engineering Guard
54
+
55
+ The Engineering Guard prevents over-engineering and maintains code quality during autonomous execution.
56
+
57
+ ### Core Functions
58
+
59
+ #### Complexity Monitoring
60
+ - **File Size Limits**: Prevents files from growing too large
61
+ - **Function Size Control**: Keeps functions manageable
62
+ - **Nesting Depth**: Limits excessive indentation
63
+ - **Pattern Detection**: Identifies overuse of design patterns
64
+
65
+ #### Configuration Options
66
+
67
+ ```yaml
68
+ overengineering_prevention:
69
+ max_file_lines: 300
70
+ max_function_lines: 50
71
+ max_nesting_depth: 4
72
+ max_abstraction_layers: 3
73
+ limit_design_patterns: true
74
+ no_future_proofing: true
75
+ ```
76
+
77
+ ### Usage Examples
78
+
79
+ #### Programmatic Usage
80
+ ```javascript
81
+ import { EngineeringGuard } from 'aiwf/utils/engineering-guard';
82
+
83
+ const guard = new EngineeringGuard('.aiwf/yolo-config.yaml');
84
+
85
+ // Check a single file
86
+ await guard.checkFileComplexity('src/app.js');
87
+ const report = guard.generateReport();
88
+
89
+ // Check entire project
90
+ const projectReport = await guard.checkProject('./src');
91
+ ```
92
+
93
+ #### Real-time Feedback
94
+ ```javascript
95
+ // Get immediate feedback during development
96
+ const feedback = await guard.provideFeedback('src/new-feature.js');
97
+ console.log(feedback);
98
+ // Output: [
99
+ // { level: 'warning', message: 'File is getting large...' },
100
+ // { level: 'suggestion', message: 'Consider extracting complex conditions...' }
101
+ // ]
102
+ ```
103
+
104
+ ### Detection Capabilities
105
+
106
+ #### Design Pattern Detection
107
+ - Factory patterns
108
+ - Singleton usage
109
+ - Observer implementations
110
+ - Strategy patterns
111
+ - Decorator patterns
112
+ - Adapter patterns
113
+
114
+ #### Future-proofing Detection
115
+ - TODO comments with future references
116
+ - Conditional FIXME items
117
+ - Speculative comments
118
+ - Reserved/placeholder code
119
+ - Version-specific checks
120
+
121
+ ## Checkpoint Manager
122
+
123
+ The Checkpoint Manager handles progress tracking, state persistence, and recovery mechanisms.
124
+
125
+ ### Core Functionality
126
+
127
+ #### Session Management
128
+ ```javascript
129
+ import { CheckpointManager } from 'aiwf/utils/checkpoint-manager';
130
+
131
+ const manager = new CheckpointManager('./project-root');
132
+
133
+ // Start a YOLO session
134
+ await manager.startSession('S01', 'sprint');
135
+
136
+ // Track task progress
137
+ await manager.startTask('T001_setup_api');
138
+ await manager.completeTask('T001_setup_api', { files_created: 5 });
139
+
140
+ // Create manual checkpoint
141
+ await manager.createCheckpoint('manual', { milestone: 'API setup complete' });
142
+ ```
143
+
144
+ #### Recovery Operations
145
+ ```javascript
146
+ // List available checkpoints
147
+ const checkpoints = await manager.listCheckpoints();
148
+
149
+ // Restore from checkpoint
150
+ await manager.restoreFromCheckpoint('cp_1234567890');
151
+
152
+ // Generate progress report
153
+ const report = await manager.generateProgressReport();
154
+ ```
155
+
156
+ ### Checkpoint Types
157
+
158
+ 1. **session_start**: Created when YOLO session begins
159
+ 2. **task_complete**: Created after each task completion
160
+ 3. **auto**: Created automatically at intervals
161
+ 4. **manual**: Created by user request
162
+ 5. **session_end**: Created when session ends
163
+
164
+ ### State Structure
165
+
166
+ ```json
167
+ {
168
+ "session_id": "1703123456789",
169
+ "started_at": "2025-01-27T10:00:00Z",
170
+ "sprint_id": "S01",
171
+ "mode": "sprint",
172
+ "completed_tasks": [
173
+ {
174
+ "id": "T001_setup_api",
175
+ "completed_at": "2025-01-27T10:15:00Z",
176
+ "duration": 900000,
177
+ "attempts": 1
178
+ }
179
+ ],
180
+ "current_task": null,
181
+ "metrics": {
182
+ "completed_tasks": 1,
183
+ "failed_tasks": 0,
184
+ "total_time": 900000,
185
+ "avg_task_time": 900000
186
+ }
187
+ }
188
+ ```
189
+
190
+ ## YOLO Configuration
191
+
192
+ ### Configuration Template
193
+
194
+ The YOLO configuration system uses a YAML file to control autonomous behavior:
195
+
196
+ ```yaml
197
+ # Engineering level (minimal/balanced/complete)
198
+ engineering_level: minimal
199
+
200
+ # Focus rules to prevent scope creep
201
+ focus_rules:
202
+ requirement_first: true
203
+ simple_solution: true
204
+ no_gold_plating: true
205
+ stay_on_track: true
206
+
207
+ # Execution settings
208
+ execution:
209
+ fast_mode: true
210
+ run_tests: true
211
+ auto_commit: false
212
+ branch_strategy: feature
213
+
214
+ # Safety breakpoints
215
+ breakpoints:
216
+ critical_files:
217
+ - .env
218
+ - database/migrations/*
219
+ test_failure_threshold: 10
220
+ schema_changes: true
221
+
222
+ # Checkpoint settings
223
+ checkpoint:
224
+ enabled: true
225
+ interval: 5
226
+ recovery_mode: auto
227
+ ```
228
+
229
+ ### Configuration Management
230
+
231
+ #### CLI Commands
232
+ ```bash
233
+ # Initialize configuration
234
+ aiwf yolo-config init
235
+
236
+ # Interactive configuration wizard
237
+ aiwf yolo-config wizard
238
+
239
+ # Show current configuration
240
+ aiwf yolo-config show
241
+ ```
242
+
243
+ #### Programmatic Configuration
244
+ ```javascript
245
+ import { createYoloConfig, createInteractiveYoloConfig } from 'aiwf/commands/yolo-config';
246
+
247
+ // Create with defaults
248
+ await createYoloConfig();
249
+
250
+ // Interactive setup
251
+ await createInteractiveYoloConfig();
252
+ ```
253
+
254
+ ## Usage Patterns
255
+
256
+ ### Basic YOLO Execution
257
+
258
+ #### Sprint-level Execution
259
+ ```bash
260
+ # Execute specific sprint
261
+ /aiwf_yolo S02
262
+
263
+ # Execute all sprints
264
+ /aiwf_yolo sprint-all
265
+
266
+ # Execute all milestones
267
+ /aiwf_yolo milestone-all
268
+ ```
269
+
270
+ #### CLI-based Sprint Creation
271
+ ```bash
272
+ # Create independent sprint from README
273
+ aiwf sprint independent --from-readme --minimal
274
+
275
+ # Create from GitHub issue
276
+ aiwf sprint independent --from-issue 123
277
+
278
+ # Interactive creation
279
+ aiwf sprint independent "Quick Feature" --balanced
280
+ ```
281
+
282
+ ### Checkpoint Operations
283
+
284
+ #### Using aiwf-checkpoint CLI
285
+ ```bash
286
+ # List checkpoints
287
+ aiwf-checkpoint list
288
+
289
+ # Show progress report
290
+ aiwf-checkpoint report
291
+
292
+ # Restore from checkpoint
293
+ aiwf checkpoint restore cp_1234567890
294
+
295
+ # Create manual checkpoint
296
+ aiwf checkpoint create "Before major refactor"
297
+
298
+ # Clean old checkpoints
299
+ aiwf checkpoint clean --keep 10
300
+ ```
301
+
302
+ ### Recovery Scenarios
303
+
304
+ #### Session Interruption Recovery
305
+ ```bash
306
+ # Check current session status
307
+ aiwf-checkpoint status
308
+
309
+ # List available recovery points
310
+ aiwf-checkpoint list --limit 10
311
+
312
+ # Restore to last stable state
313
+ aiwf checkpoint restore cp_latest
314
+ ```
315
+
316
+ ## Safety Mechanisms
317
+
318
+ ### Over-engineering Prevention
319
+
320
+ #### Automatic Checks
321
+ - **File Size Monitoring**: Warns when files exceed limits
322
+ - **Complexity Detection**: Identifies overly complex code structures
323
+ - **Pattern Overuse**: Prevents unnecessary design patterns
324
+ - **Future-proofing**: Blocks speculative implementations
325
+
326
+ #### Manual Overrides
327
+ ```yaml
328
+ # Disable specific checks
329
+ overengineering_prevention:
330
+ max_file_lines: 500 # Increase limit
331
+ limit_design_patterns: false # Allow patterns
332
+ ```
333
+
334
+ ### Execution Safeguards
335
+
336
+ #### Critical File Protection
337
+ ```yaml
338
+ breakpoints:
339
+ critical_files:
340
+ - .env
341
+ - package.json
342
+ - database/schema.sql
343
+ ```
344
+
345
+ #### Test Failure Handling
346
+ ```yaml
347
+ breakpoints:
348
+ test_failure_threshold: 10 # Stop if >10% tests fail
349
+ ```
350
+
351
+ #### Schema Change Confirmation
352
+ ```yaml
353
+ breakpoints:
354
+ schema_changes: true # Require confirmation for DB changes
355
+ ```
356
+
357
+ ## Performance Optimization
358
+
359
+ ### Checkpoint Optimization
360
+
361
+ #### Automatic Cleanup
362
+ ```javascript
363
+ // Clean old checkpoints automatically
364
+ await manager.cleanup(keepLast: 10);
365
+ ```
366
+
367
+ #### Storage Efficiency
368
+ - Incremental state snapshots
369
+ - Compressed checkpoint data
370
+ - Automatic old checkpoint removal
371
+
372
+ ### Execution Optimization
373
+
374
+ #### Parallel Task Execution
375
+ ```yaml
376
+ performance:
377
+ parallel_tasks: false # Experimental feature
378
+ use_cache: true
379
+ skip_unchanged: true
380
+ ```
381
+
382
+ #### Memory Management
383
+ - Lazy module loading
384
+ - Resource pooling
385
+ - Automatic garbage collection
386
+
387
+ ## Troubleshooting
388
+
389
+ ### Common Issues
390
+
391
+ #### Engineering Guard Not Working
392
+ ```bash
393
+ # Check if module exists
394
+ ls -la src/utils/engineering-guard.js
395
+
396
+ # Test dynamic import
397
+ node -e "import('./src/utils/engineering-guard.js').then(console.log)"
398
+
399
+ # Verify configuration
400
+ cat .aiwf/yolo-config.yaml
401
+ ```
402
+
403
+ #### Checkpoint System Failures
404
+ ```bash
405
+ # Check checkpoint directory
406
+ ls -la .aiwf/checkpoints/
407
+
408
+ # Verify permissions
409
+ chmod 755 .aiwf/checkpoints/
410
+
411
+ # Test checkpoint creation
412
+ aiwf checkpoint create "test-checkpoint"
413
+ ```
414
+
415
+ #### Configuration Issues
416
+ ```bash
417
+ # Recreate configuration
418
+ aiwf yolo-config init --force
419
+
420
+ # Validate configuration
421
+ aiwf yolo-config show
422
+
423
+ # Reset to defaults
424
+ rm .aiwf/yolo-config.yaml && aiwf yolo-config init
425
+ ```
426
+
427
+ ### Recovery Procedures
428
+
429
+ #### Corrupted State Recovery
430
+ ```bash
431
+ # List available checkpoints
432
+ aiwf-checkpoint list
433
+
434
+ # Restore to known good state
435
+ aiwf checkpoint restore cp_last_known_good
436
+
437
+ # Reinitialize if necessary
438
+ aiwf yolo-config init --force
439
+ ```
440
+
441
+ #### Git State Mismatch
442
+ ```bash
443
+ # Check Git status at checkpoint
444
+ aiwf-checkpoint show cp_1234567890
445
+
446
+ # Restore Git state if needed
447
+ git checkout checkpoint_branch_name
448
+ git reset --hard checkpoint_commit_hash
449
+ ```
450
+
451
+ ## Best Practices
452
+
453
+ ### Configuration Management
454
+
455
+ 1. **Start Conservative**: Begin with minimal engineering level
456
+ 2. **Customize Gradually**: Adjust settings based on project needs
457
+ 3. **Monitor Results**: Track metrics and adjust thresholds
458
+ 4. **Document Changes**: Keep configuration changes in version control
459
+
460
+ ### Session Management
461
+
462
+ 1. **Regular Checkpoints**: Create checkpoints at logical milestones
463
+ 2. **Monitor Progress**: Check session status periodically
464
+ 3. **Clean Up**: Remove old checkpoints regularly
465
+ 4. **Plan Recovery**: Have recovery procedures ready
466
+
467
+ ### Quality Control
468
+
469
+ 1. **Set Appropriate Limits**: Configure complexity limits for your project
470
+ 2. **Monitor Violations**: Review engineering guard reports
471
+ 3. **Address Issues Early**: Fix complexity issues before they compound
472
+ 4. **Balance Speed vs Quality**: Adjust engineering level based on needs
473
+
474
+ ### Performance Optimization
475
+
476
+ 1. **Use Caching**: Enable caching for repeated operations
477
+ 2. **Optimize Checkpoints**: Clean up old checkpoints regularly
478
+ 3. **Monitor Resources**: Track memory and disk usage
479
+ 4. **Profile Performance**: Identify bottlenecks in autonomous execution
480
+
481
+ ## Integration Examples
482
+
483
+ ### Custom YOLO Workflow
484
+
485
+ ```javascript
486
+ import { CheckpointManager } from 'aiwf/utils/checkpoint-manager';
487
+ import { EngineeringGuard } from 'aiwf/utils/engineering-guard';
488
+
489
+ class CustomYoloWorkflow {
490
+ constructor(projectRoot) {
491
+ this.checkpointManager = new CheckpointManager(projectRoot);
492
+ this.engineeringGuard = new EngineeringGuard('.aiwf/yolo-config.yaml');
493
+ }
494
+
495
+ async executeWithGuards(tasks) {
496
+ await this.checkpointManager.startSession('custom', 'workflow');
497
+
498
+ for (const task of tasks) {
499
+ await this.checkpointManager.startTask(task.id);
500
+
501
+ // Execute task...
502
+ const result = await this.executeTask(task);
503
+
504
+ // Check quality
505
+ const report = await this.engineeringGuard.checkProject('./src');
506
+ if (!report.passed) {
507
+ console.warn('Quality issues detected:', report.violations);
508
+ }
509
+
510
+ await this.checkpointManager.completeTask(task.id, result);
511
+ }
512
+
513
+ return await this.checkpointManager.endSession();
514
+ }
515
+ }
516
+ ```
517
+
518
+ ## Related Commands
519
+
520
+ ### Claude Code Commands
521
+ - `/project:aiwf:yolo` - Main YOLO execution command
522
+ - `/aiwf_yolo` - Autonomous task execution
523
+ - `/aiwf_checkpoint_status` - Check current progress
524
+
525
+ ### CLI Commands
526
+ - `aiwf yolo-config` - Configuration management
527
+ - `aiwf checkpoint` - Checkpoint operations
528
+ - `aiwf-checkpoint` - Dedicated checkpoint CLI
529
+ - `aiwf sprint independent` - Independent sprint creation
530
+
531
+ ## Related Documents
532
+
533
+ - [CLI_USAGE_GUIDE.md](CLI_USAGE_GUIDE.md) - CLI command reference
534
+ - [COMMANDS_GUIDE.md](COMMANDS_GUIDE.md) - Claude Code command guide
535
+ - [MODULE_MANAGEMENT_GUIDE.md](MODULE_MANAGEMENT_GUIDE.md) - Module architecture
536
+ - [Independent Sprint Guide](guides/independent-sprint-guide.md) - Sprint management
537
+ - [Checkpoint System Guide](guides/checkpoint-system-guide.md) - Checkpoint details
538
+
539
+ ---
540
+
541
+ **Last Updated**: 2025-01-27
542
+ **Version**: Compatible with AIWF v0.3.16+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiwf",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "AI Workflow Framework for Claude Code with multi-language support (Korean/English)",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -66,15 +66,15 @@ export const COMMAND_FILES = [
66
66
 
67
67
  // 글로벌 룰 파일 목록
68
68
  export const GLOBAL_RULES_FILES = [
69
- 'code-style-guide.md',
70
- 'coding-principles.md',
71
- 'development-process.md',
72
- 'global-rules.md'
69
+ 'aiwf-code-style-guide.md',
70
+ 'aiwf-coding-principles.md',
71
+ 'aiwf-development-process.md',
72
+ 'aiwf-global-rules.md'
73
73
  ];
74
74
 
75
75
  // 수동 룰 파일 목록
76
76
  export const MANUAL_RULES_FILES = [
77
- 'generate-plan-docs.md'
77
+ 'aiwf-generate-plan-docs.md'
78
78
  ];
79
79
 
80
80
  // 템플릿 파일 목록 (향후 추가 예정)
@@ -1,78 +0,0 @@
1
- # AIWF 프로젝트 템플릿
2
-
3
- 이 디렉토리에는 AIWF 프로젝트 템플릿이 포함되어 있습니다.
4
-
5
- ## 사용 가능한 템플릿
6
-
7
- ### 1. web-app (웹 애플리케이션)
8
- - React 18 + TypeScript
9
- - Vite 빌드 도구
10
- - Tailwind CSS
11
- - React Router
12
- - Zustand 상태 관리
13
- - AIWF 대시보드 통합
14
-
15
- ### 2. api-server (API 서버)
16
- - Express + TypeScript
17
- - JWT 인증
18
- - Swagger 문서화
19
- - 에러 핸들링
20
- - AIWF API 엔드포인트
21
-
22
- ### 3. npm-library (NPM 라이브러리)
23
- - TypeScript 기반
24
- - Rollup 번들링
25
- - Jest 테스트
26
- - 듀얼 모듈 시스템 (ESM/CJS)
27
- - 자동 버전 관리
28
-
29
- ## 템플릿 사용법
30
-
31
- ```bash
32
- # 대화형 모드
33
- aiwf create
34
-
35
- # 직접 지정
36
- aiwf create web-app my-app
37
-
38
- # 오프라인 모드
39
- aiwf create --offline web-app my-app
40
- ```
41
-
42
- ## 템플릿 구조
43
-
44
- 각 템플릿은 다음 구조를 따릅니다:
45
-
46
- ```
47
- template-name/
48
- ├── config.json # 템플릿 메타데이터
49
- └── template/ # 실제 프로젝트 파일
50
- ├── src/ # 소스 코드
51
- ├── .aiwf/ # AIWF 설정
52
- ├── package.json # 의존성
53
- └── README.md # 프로젝트 문서
54
- ```
55
-
56
- ## 템플릿 커스터마이징
57
-
58
- 템플릿의 플레이스홀더:
59
- - `{{projectName}}` - 프로젝트 이름
60
- - `{{description}}` - 프로젝트 설명
61
- - `{{author}}` - 작성자
62
- - `{{year}}` - 현재 연도
63
- - `{{createdAt}}` - 생성 시간
64
-
65
- ## 캐시 관리
66
-
67
- 템플릿은 오프라인 사용을 위해 캐시될 수 있습니다:
68
-
69
- ```bash
70
- # 캐시 생성
71
- aiwf cache create
72
-
73
- # 캐시 확인
74
- aiwf cache check
75
-
76
- # 캐시 삭제
77
- aiwf cache clear
78
- ```
@@ -1,64 +0,0 @@
1
- {
2
- "name": "api-server",
3
- "displayName": "API 서버 (Node.js + Express)",
4
- "description": "Express와 TypeScript로 구성된 RESTful API 서버 템플릿",
5
- "type": "api-server",
6
- "language": "typescript",
7
- "framework": "express",
8
- "features": [
9
- "Express 4",
10
- "TypeScript",
11
- "JWT Authentication",
12
- "Swagger Documentation",
13
- "Database Ready",
14
- "AIWF Integration",
15
- "Error Handling",
16
- "Request Validation"
17
- ],
18
- "structure": {
19
- "src": "소스 코드",
20
- "tests": "테스트 파일",
21
- ".aiwf": "AIWF 설정 및 메타데이터",
22
- "docs": "API 문서"
23
- },
24
- "dependencies": {
25
- "express": "^4.18.2",
26
- "cors": "^2.8.5",
27
- "helmet": "^7.0.0",
28
- "compression": "^1.7.4",
29
- "dotenv": "^16.3.1",
30
- "jsonwebtoken": "^9.0.1",
31
- "bcryptjs": "^2.4.3",
32
- "express-validator": "^7.0.1",
33
- "swagger-jsdoc": "^6.2.8",
34
- "swagger-ui-express": "^5.0.0"
35
- },
36
- "devDependencies": {
37
- "@types/express": "^4.17.17",
38
- "@types/node": "^20.0.0",
39
- "@types/cors": "^2.8.13",
40
- "@types/compression": "^1.7.2",
41
- "@types/jsonwebtoken": "^9.0.2",
42
- "@types/bcryptjs": "^2.4.2",
43
- "@types/swagger-jsdoc": "^6.0.1",
44
- "@types/swagger-ui-express": "^4.1.3",
45
- "@typescript-eslint/eslint-plugin": "^5.60.0",
46
- "@typescript-eslint/parser": "^5.60.0",
47
- "typescript": "^5.1.0",
48
- "ts-node": "^10.9.0",
49
- "nodemon": "^3.0.0",
50
- "eslint": "^8.43.0",
51
- "jest": "^29.5.0",
52
- "@types/jest": "^29.5.0",
53
- "supertest": "^6.3.0",
54
- "@types/supertest": "^2.0.12"
55
- },
56
- "scripts": {
57
- "dev": "nodemon",
58
- "build": "tsc",
59
- "start": "node dist/index.js",
60
- "test": "jest",
61
- "lint": "eslint . --ext .ts",
62
- "aiwf": "node .aiwf/scripts/cli.js"
63
- }
64
- }