rapidkit 1.0.0-beta.8 โ†’ 1.0.0-beta.9

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
@@ -445,17 +445,15 @@ MIT
445
445
 
446
446
  ### About This Beta
447
447
 
448
- **rapidkit** (npm package) is currently in beta version 1.0.0-beta.5. The `--demo` mode is fully functional for creating workspaces with bundled FastAPI templates. You can generate multiple projects within the same workspace without needing Python RapidKit installed.
449
-
450
- **New in beta.5:**
451
- - ๐Ÿ› Custom error classes with detailed messages
452
- - โœ… Input validation for project names
453
- - โš™๏ธ Configuration file support (~/.rapidkitrc.json)
454
- - ๐Ÿ” Debug mode (--debug) and dry-run mode (--dry-run)
455
- - ๐Ÿ”„ Automatic update checker
456
- - ๐Ÿงน Graceful cleanup on interrupt (Ctrl+C)
457
- - ๐Ÿงช Full test suite with 26 tests
458
- - ๐Ÿ“š Comprehensive documentation (DEVELOPMENT.md, CHANGELOG.md)
448
+ **rapidkit** (npm package) is currently in beta version 1.0.0-beta.9. The `--demo` mode is fully functional for creating workspaces with bundled FastAPI templates. You can generate multiple projects within the same workspace without needing Python RapidKit installed.
449
+
450
+ **New in beta.9:**
451
+ - โœ… E2E integration tests for reliability
452
+ - โœ… CI/CD pipeline with GitHub Actions
453
+ - โœ… Enhanced error messages with troubleshooting steps
454
+ - โœ… Security audit automation
455
+ - โœ… Bundle size monitoring
456
+ - โœ… Multi-platform testing (Ubuntu, macOS, Windows)
459
457
 
460
458
  Install with:
461
459
  ```bash
package/dist/errors.d.ts CHANGED
@@ -24,4 +24,10 @@ export declare class InstallationError extends RapidKitError {
24
24
  export declare class RapidKitNotAvailableError extends RapidKitError {
25
25
  constructor();
26
26
  }
27
+ export declare class NetworkError extends RapidKitError {
28
+ constructor(operation: string, originalError?: Error);
29
+ }
30
+ export declare class FileSystemError extends RapidKitError {
31
+ constructor(operation: string, path: string, originalError?: Error);
32
+ }
27
33
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAc,SAAQ,KAAK;IAG7B,IAAI,EAAE,MAAM;IACZ,OAAO,CAAC,EAAE,MAAM;gBAFvB,OAAO,EAAE,MAAM,EACR,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,YAAA;CAM1B;AAED,qBAAa,mBAAoB,SAAQ,aAAa;gBACxC,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAU3D;AAED,qBAAa,mBAAoB,SAAQ,aAAa;;CAQrD;AAED,qBAAa,iBAAkB,SAAQ,aAAa;;CAQnD;AAED,qBAAa,oBAAqB,SAAQ,aAAa;gBACzC,OAAO,EAAE,MAAM;CAO5B;AAED,qBAAa,uBAAwB,SAAQ,aAAa;gBAC5C,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAGzC;AAED,qBAAa,iBAAkB,SAAQ,aAAa;gBACtC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK;CAG/C;AAED,qBAAa,yBAA0B,SAAQ,aAAa;;CAQ3D"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAc,SAAQ,KAAK;IAG7B,IAAI,EAAE,MAAM;IACZ,OAAO,CAAC,EAAE,MAAM;gBAFvB,OAAO,EAAE,MAAM,EACR,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,YAAA;CAM1B;AAED,qBAAa,mBAAoB,SAAQ,aAAa;gBACxC,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAU3D;AAED,qBAAa,mBAAoB,SAAQ,aAAa;;CAQrD;AAED,qBAAa,iBAAkB,SAAQ,aAAa;;CAQnD;AAED,qBAAa,oBAAqB,SAAQ,aAAa;gBACzC,OAAO,EAAE,MAAM;CAO5B;AAED,qBAAa,uBAAwB,SAAQ,aAAa;gBAC5C,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAGzC;AAED,qBAAa,iBAAkB,SAAQ,aAAa;gBACtC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK;CAK/C;AAED,qBAAa,yBAA0B,SAAQ,aAAa;;CAQ3D;AAED,qBAAa,YAAa,SAAQ,aAAa;gBACjC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,KAAK;CAOrD;AAED,qBAAa,eAAgB,SAAQ,aAAa;gBACpC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,KAAK;CAOnE"}
package/dist/errors.js CHANGED
@@ -39,12 +39,24 @@ export class InvalidProjectNameError extends RapidKitError {
39
39
  }
40
40
  export class InstallationError extends RapidKitError {
41
41
  constructor(step, originalError) {
42
- super(`Installation failed at step: ${step}`, 'INSTALLATION_ERROR', originalError.message);
42
+ const message = `Installation failed at: ${step}`;
43
+ const details = `${originalError.message}\n\nTroubleshooting:\n- Check your internet connection\n- Verify Python/Poetry installation\n- Try running with --debug flag for more details`;
44
+ super(message, 'INSTALLATION_ERROR', details);
43
45
  }
44
46
  }
45
47
  export class RapidKitNotAvailableError extends RapidKitError {
46
48
  constructor() {
47
- super('RapidKit Python package is not yet available on PyPI', 'RAPIDKIT_NOT_AVAILABLE', 'Please use --demo mode or --test-mode with a local RapidKit installation');
49
+ super('RapidKit Python package is not yet available on PyPI', 'RAPIDKIT_NOT_AVAILABLE', 'Available options:\n 1. Demo mode: npx rapidkit my-workspace --demo\n 2. Test mode: npx rapidkit my-workspace --test-mode (requires local RapidKit)\n 3. Wait for official PyPI release (coming soon)');
50
+ }
51
+ }
52
+ export class NetworkError extends RapidKitError {
53
+ constructor(operation, originalError) {
54
+ super(`Network error during ${operation}`, 'NETWORK_ERROR', `Failed to complete network operation.\n${originalError?.message || ''}\n\nPlease check:\n- Internet connection\n- Firewall settings\n- Proxy configuration`);
55
+ }
56
+ }
57
+ export class FileSystemError extends RapidKitError {
58
+ constructor(operation, path, originalError) {
59
+ super(`File system error: ${operation}`, 'FILESYSTEM_ERROR', `Failed to ${operation} at: ${path}\n${originalError?.message || ''}\n\nPlease check:\n- File/directory permissions\n- Available disk space\n- Path validity`);
48
60
  }
49
61
  }
50
62
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,aAAc,SAAQ,KAAK;IAG7B;IACA;IAHT,YACE,OAAe,EACR,IAAY,EACZ,OAAgB;QAEvB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAAS;QAGvB,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;CACF;AAED,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IACpD,YAAY,eAAuB,EAAE,YAAqB;QACxD,MAAM,OAAO,GAAG,YAAY;YAC1B,CAAC,CAAC,UAAU,eAAe,qBAAqB,YAAY,EAAE;YAC9D,CAAC,CAAC,UAAU,eAAe,aAAa,CAAC;QAC3C,KAAK,CACH,OAAO,EACP,kBAAkB,EAClB,8DAA8D,CAC/D,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IACpD;QACE,KAAK,CACH,yBAAyB,EACzB,kBAAkB,EAClB,kEAAkE,CACnE,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAClD;QACE,KAAK,CACH,uBAAuB,EACvB,gBAAgB,EAChB,6DAA6D,CAC9D,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IACrD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iB,EAAE,IAAY,EAAE,aAAqB;QAChE,KAAK,CACH,sBAAsB,SAAS,EAAE,EACjC,kBAAkB,EAClB,aAAa,SAAS,QAAQ,IAAI,KAAK,aAAa,EAAE,OAAO,IAAI,EAAE,0FAA0F,CAC9J,CAAC;IACJ,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapidkit",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0-beta.9",
4
4
  "type": "module",
5
5
  "description": "Create RapidKit projects with a single command - The official CLI for RapidKit framework",
6
6
  "keywords": [
@@ -34,12 +34,15 @@
34
34
  "test": "vitest run",
35
35
  "test:watch": "vitest",
36
36
  "test:coverage": "vitest run --coverage",
37
+ "test:e2e": "vitest run src/__tests__/e2e.test.ts",
37
38
  "lint": "eslint src --ext .ts",
38
39
  "lint:fix": "eslint src --ext .ts --fix",
39
40
  "format": "prettier --write \"src/**/*.ts\"",
40
41
  "format:check": "prettier --check \"src/**/*.ts\"",
41
42
  "typecheck": "tsc --noEmit",
42
- "validate": "npm run typecheck && npm run lint && npm run format:check && npm test"
43
+ "validate": "npm run typecheck && npm run lint && npm run format:check && npm test",
44
+ "security": "npm audit --audit-level=moderate",
45
+ "bundle-size": "tsc && du -sh dist/ && ls -lh dist/"
43
46
  },
44
47
  "dependencies": {
45
48
  "chalk": "^5.3.0",