@worktif/runtime 0.3.0-edge.0 → 0.3.0-edge.10

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 (108) hide show
  1. package/README.md +26 -26
  2. package/out/dist/bin/index.js +41 -35
  3. package/out/dist/bin/purenow.js +23 -22
  4. package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/package.json +1 -1
  5. package/out/dist/bin/templates/runtime-web/cdk/package.json.template +1 -1
  6. package/out/dist/infra/index.js +164 -0
  7. package/out/dist/lambda/bundle.js +57 -0
  8. package/out/dist/lib/index.d.ts +0 -1
  9. package/out/dist/lib/index.js +4 -4
  10. package/out/dist/lib/lib/runtime-web/index.d.ts +3 -8
  11. package/out/dist/lib/lib/runtime-web/pureweb.d.ts +1 -1
  12. package/out/dist/src/bin/commands/index.d.ts +3 -0
  13. package/out/dist/src/bin/commands/runtime-web-deployment.service.d.ts +15 -0
  14. package/out/dist/src/bin/index.d.ts +3 -2
  15. package/out/dist/src/bin/{purenow-runtime-cli.d.ts → runtime-web-cli.d.ts} +13 -4
  16. package/out/dist/src/bin/services/index.d.ts +0 -1
  17. package/out/dist/src/bin/services/purenow-runtime-deployment.strategy.d.ts +2 -2
  18. package/out/dist/src/bin/services/purenow-runtime-stacks-deploy.service.d.ts +2 -3
  19. package/out/dist/src/bin/services/purenow-runtime-stacks-deploy.service.types.d.ts +1 -1
  20. package/out/dist/src/bin/services/runtime-web-cli-extensions.d.ts +0 -1
  21. package/out/dist/src/core/bundle/index.d.ts +5 -0
  22. package/out/dist/src/core/bundle/index.d.ts.map +1 -0
  23. package/out/dist/src/core/bundle/runtime.container.d.ts +35 -0
  24. package/out/dist/src/core/bundle/runtime.container.d.ts.map +1 -0
  25. package/out/dist/src/core/bundle/runtime.container.types.d.ts +15 -0
  26. package/out/dist/src/core/bundle/runtime.container.types.d.ts.map +1 -0
  27. package/out/dist/src/core/index.d.ts +5 -0
  28. package/out/dist/src/core/index.d.ts.map +1 -0
  29. package/out/dist/src/core/runtime-web/detector/index.d.ts +7 -0
  30. package/out/dist/src/core/runtime-web/detector/index.d.ts.map +1 -0
  31. package/out/dist/src/core/runtime-web/detector/metadata-collectors.d.ts +52 -0
  32. package/out/dist/src/core/runtime-web/detector/metadata-collectors.d.ts.map +1 -0
  33. package/out/dist/src/core/runtime-web/detector/runtime-detector.d.ts +69 -0
  34. package/out/dist/src/core/runtime-web/detector/runtime-detector.d.ts.map +1 -0
  35. package/out/dist/src/core/runtime-web/detector/runtime-detector.types.d.ts +40 -0
  36. package/out/dist/src/core/runtime-web/detector/runtime-detector.types.d.ts.map +1 -0
  37. package/out/dist/src/core/runtime-web/di/di-errors.d.ts +44 -0
  38. package/out/dist/src/core/runtime-web/di/di-errors.d.ts.map +1 -0
  39. package/out/dist/src/core/runtime-web/di/index.d.ts +9 -0
  40. package/out/dist/src/core/runtime-web/di/index.d.ts.map +1 -0
  41. package/out/dist/src/core/runtime-web/di/pure-container-factory.d.ts +105 -0
  42. package/out/dist/src/core/runtime-web/di/pure-container-factory.d.ts.map +1 -0
  43. package/out/dist/src/core/runtime-web/di/ties-registrar.d.ts +87 -0
  44. package/out/dist/src/core/runtime-web/di/ties-registrar.d.ts.map +1 -0
  45. package/out/dist/src/core/runtime-web/factory/handler-wrappers.d.ts +122 -0
  46. package/out/dist/src/core/runtime-web/factory/handler-wrappers.d.ts.map +1 -0
  47. package/out/dist/src/core/runtime-web/factory/index.d.ts +12 -0
  48. package/out/dist/src/core/runtime-web/factory/index.d.ts.map +1 -0
  49. package/out/dist/src/core/runtime-web/factory/lambda-handler-factory.d.ts +110 -0
  50. package/out/dist/src/core/runtime-web/factory/lambda-handler-factory.d.ts.map +1 -0
  51. package/out/dist/src/core/runtime-web/factory/runtime-web-lambda-handler.d.ts +94 -0
  52. package/out/dist/src/core/runtime-web/factory/runtime-web-lambda-handler.d.ts.map +1 -0
  53. package/out/dist/src/core/runtime-web/index.d.ts +7 -0
  54. package/out/dist/src/core/runtime-web/index.d.ts.map +1 -0
  55. package/out/dist/src/core/runtime-web/pipelines/index.d.ts +3 -0
  56. package/out/dist/src/core/runtime-web/pipelines/index.d.ts.map +1 -0
  57. package/out/dist/src/core/runtime-web/pipelines/lambda-pipeline.d.ts +110 -0
  58. package/out/dist/src/core/runtime-web/pipelines/lambda-pipeline.d.ts.map +1 -0
  59. package/out/dist/src/core/runtime-web/registrar/container-registry.d.ts +261 -0
  60. package/out/dist/src/core/runtime-web/registrar/container-registry.d.ts.map +1 -0
  61. package/out/dist/src/core/runtime-web/registrar/index.d.ts +6 -0
  62. package/out/dist/src/core/runtime-web/registrar/index.d.ts.map +1 -0
  63. package/out/dist/src/core/runtime-web/registrar/microservice-registrar.d.ts +167 -0
  64. package/out/dist/src/core/runtime-web/registrar/microservice-registrar.d.ts.map +1 -0
  65. package/out/dist/src/core/services/index.d.ts +4 -0
  66. package/out/dist/src/core/services/index.d.ts.map +1 -0
  67. package/out/dist/src/core/services/runtime-extensions/index.d.ts +4 -0
  68. package/out/dist/src/core/services/runtime-extensions/index.d.ts.map +1 -0
  69. package/out/dist/src/core/services/runtime-extensions/runtime-extensions.service.d.ts +98 -0
  70. package/out/dist/src/core/services/runtime-extensions/runtime-extensions.service.d.ts.map +1 -0
  71. package/out/dist/src/core/services/runtime-extensions/runtime-extensions.types.d.ts +71 -0
  72. package/out/dist/src/core/services/runtime-extensions/runtime-extensions.types.d.ts.map +1 -0
  73. package/out/dist/src/infra/index.d.ts +3 -0
  74. package/out/dist/src/infra/runtime-web/constructs/api-gateway-builder.d.ts +157 -0
  75. package/out/dist/src/infra/runtime-web/constructs/index.d.ts +3 -0
  76. package/out/dist/src/infra/runtime-web/constructs/lambda-builder.d.ts +158 -0
  77. package/out/dist/src/infra/runtime-web/index.d.ts +21 -0
  78. package/out/dist/src/infra/runtime-web/pipelines/cdk-pipeline.d.ts +112 -0
  79. package/out/dist/src/infra/runtime-web/pipelines/index.d.ts +2 -0
  80. package/out/dist/src/infra/runtime-web/stacks/index.d.ts +2 -0
  81. package/out/dist/src/infra/runtime-web/stacks/runtime-web-stack.d.ts +182 -0
  82. package/out/dist/src/infra/runtime-web/validation/config-validator.d.ts +127 -0
  83. package/out/dist/src/infra/runtime-web/validation/index.d.ts +2 -0
  84. package/out/dist/src/lib/index.d.ts +3 -0
  85. package/out/dist/src/lib/runtime-web/index.d.ts +3 -8
  86. package/out/dist/src/lib/runtime-web/pureweb.d.ts +1 -1
  87. package/out/dist/src/lib/runtime-web/runtime.config.types.d.ts +71 -0
  88. package/package.json +44 -11
  89. package/out/dist/lib/utils/index.d.ts +0 -2
  90. package/out/dist/lib/utils/types/index.d.ts +0 -3
  91. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/.env.example +0 -0
  92. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/README.md +0 -0
  93. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/gitignore.template +0 -0
  94. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/purenow.config.ts +0 -0
  95. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/app.tsx +0 -0
  96. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/handlers/users/index.ts +0 -0
  97. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/handlers/users/users.handlers.ts +0 -0
  98. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/index.tsx +0 -0
  99. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/pages/about-page.tsx +0 -0
  100. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/pages/home-page.tsx +0 -0
  101. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/pages/users-page.tsx +0 -0
  102. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/routes.tsx +0 -0
  103. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/services/index.ts +0 -0
  104. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/services/users.service.ts +0 -0
  105. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/ties/index.ts +0 -0
  106. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/ties/users.ties.ts +0 -0
  107. /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/tsconfig.json +0 -0
  108. /package/out/dist/lib/{utils/types → lib/runtime-web}/runtime.config.types.d.ts +0 -0
package/README.md CHANGED
@@ -125,7 +125,7 @@ You'll be prompted to set up AWS CDK infrastructure with three-stack deployment.
125
125
 
126
126
  ```bash
127
127
  # Start development server (from purenow base framework)
128
- npx purenow dev
128
+ npx runtime dev
129
129
  ```
130
130
 
131
131
  Your app runs at `http://localhost:3000` with all purenow features (SSR, HMR, caching) plus runtime extensions.
@@ -137,7 +137,7 @@ Your app runs at `http://localhost:3000` with all purenow features (SSR, HMR, ca
137
137
  aws configure
138
138
 
139
139
  # Deploy with three-stack architecture (runtime extension)
140
- npx purenow deploy --stage dev
140
+ npx runtime deploy --stage dev
141
141
  ```
142
142
 
143
143
  Your application is now live on CloudFront with three-stack deployment architecture!
@@ -145,7 +145,7 @@ Your application is now live on CloudFront with three-stack deployment architect
145
145
  **Clean Up Resources:**
146
146
  ```bash
147
147
  # When you're done, destroy all stacks to avoid AWS charges
148
- npx purenow destroy --stage dev
148
+ npx runtime destroy --stage dev
149
149
  ```
150
150
 
151
151
  **Next Steps:**
@@ -165,28 +165,28 @@ The runtime package preserves all base purenow CLI functionality:
165
165
 
166
166
  ```bash
167
167
  # Development (from purenow base framework)
168
- npx purenow dev # Start development server
169
- npx purenow dev --port 8080 # Custom port
168
+ npx runtime dev # Start development server
169
+ npx runtime dev --port 8080 # Custom port
170
170
 
171
171
  # Building (from purenow base framework)
172
- npx purenow build # Build for deployment
173
- npx purenow build --target lambda # Build specific target
172
+ npx runtime build # Build for deployment
173
+ npx runtime build --target lambda # Build specific target
174
174
 
175
175
  # Deployment (from purenow base framework)
176
- npx purenow deploy --stage dev # Deploy to AWS (now uses three stacks)
177
- npx purenow destroy --stage dev # Destroy all stacks
176
+ npx runtime deploy --stage dev # Deploy to AWS (now uses three stacks)
177
+ npx runtime destroy --stage dev # Destroy all stacks
178
178
 
179
179
  # Resource Management (from purenow base framework)
180
- npx purenow stacks list --outputs # List stack outputs
181
- npx purenow cache-clear --stage dev # Clear CloudFront/S3 cache
180
+ npx runtime stacks list --outputs # List stack outputs
181
+ npx runtime cache-clear --stage dev # Clear CloudFront/S3 cache
182
182
 
183
183
  # SEO Management (from purenow base framework)
184
- npx purenow seo sync --stage dev # Sync SEO metadata
185
- npx purenow seo clear --stage dev # Clear SEO data
184
+ npx runtime seo sync --stage dev # Sync SEO metadata
185
+ npx runtime seo clear --stage dev # Clear SEO data
186
186
 
187
187
  # Diagnostics (from purenow base framework)
188
- npx purenow doctor # System diagnostics
189
- npx purenow info # Display configuration
188
+ npx runtime doctor # System diagnostics
189
+ npx runtime info # Display configuration
190
190
  ```
191
191
 
192
192
  ### Extended CLI Commands
@@ -195,8 +195,8 @@ Runtime adds additional commands using purenow's extensible CLI architecture:
195
195
 
196
196
  ```bash
197
197
  # Runtime-specific diagnostics
198
- npx purenow runtime:info # Display runtime extension information
199
- npx purenow runtime:stacks # Show three-stack deployment status
198
+ npx runtime runtime:info # Display runtime extension information
199
+ npx runtime runtime:stacks # Show three-stack deployment status
200
200
  ```
201
201
 
202
202
  **Complete CLI Reference:** See [@worktif/purenow CLI documentation](https://www.npmjs.com/package/@worktif/purenow#cli-commands) for all base commands
@@ -305,13 +305,13 @@ Runtime extends purenow's deployment from two stacks to three:
305
305
  **Deployment Commands:**
306
306
  ```bash
307
307
  # Deploy all three stacks (runtime extension)
308
- npx purenow deploy --stage dev
308
+ npx runtime deploy --stage dev
309
309
 
310
310
  # Destroy all three stacks (runtime extension)
311
- npx purenow destroy --stage dev
311
+ npx runtime destroy --stage dev
312
312
 
313
313
  # List all stack outputs (includes third stack)
314
- npx purenow stacks list --outputs
314
+ npx runtime stacks list --outputs
315
315
  ```
316
316
 
317
317
  ### Extended CLI Architecture
@@ -320,18 +320,18 @@ Runtime uses purenow's extensible CLI architecture to add commands:
320
320
 
321
321
  ```bash
322
322
  # Runtime-specific commands (added via CLI extension)
323
- npx purenow runtime:info # Display runtime extension information
324
- npx purenow runtime:stacks # Show three-stack deployment status
323
+ npx runtime runtime:info # Display runtime extension information
324
+ npx runtime runtime:stacks # Show three-stack deployment status
325
325
  ```
326
326
 
327
327
  ### Complete Purenow Features (Preserved)
328
328
 
329
329
  All features from @worktif/purenow are available unchanged:
330
330
 
331
- - **SEO Integration** with DynamoDB (`npx purenow seo sync/clear`)
332
- - **Cache Management** for S3, CloudFront (`npx purenow cache-clear`)
333
- - **Development Server** with HMR (`npx purenow dev`)
334
- - **CloudFormation Resource Resolution** (`npx purenow stacks list`)
331
+ - **SEO Integration** with DynamoDB (`npx runtime seo sync/clear`)
332
+ - **Cache Management** for S3, CloudFront (`npx runtime cache-clear`)
333
+ - **Development Server** with HMR (`npx runtime dev`)
334
+ - **CloudFormation Resource Resolution** (`npx runtime stacks list`)
335
335
  - **HTML Template Customization** (all configuration options)
336
336
  - **Complete CLI Commands** (deploy, destroy, build, doctor, info)
337
337