@celerity-sdk/cli 0.2.0 → 0.3.1
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 +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Build-time extraction tool for Celerity decorator metadata.
|
|
4
4
|
|
|
5
|
-
Scans a compiled Celerity application module and produces a JSON handler manifest describing all registered handlers, their routing annotations, guard declarations, custom metadata, and provider dependency graph
|
|
5
|
+
Scans a compiled Celerity application module and produces a JSON handler manifest describing all registered handlers, their routing annotations, guard declarations, custom metadata, and provider dependency graph. No classes are instantiated and no application code is executed.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -20,9 +20,9 @@ The Go-based Celerity CLI invokes this tool during the build phase to merge code
|
|
|
20
20
|
|
|
21
21
|
## How It Works
|
|
22
22
|
|
|
23
|
-
1. **Module scan** (`scanModuleMetadata`)
|
|
24
|
-
2. **Serialization** (`serializeManifest`)
|
|
25
|
-
3. **Validation** (`validateScannedDependencies`)
|
|
23
|
+
1. **Module scan** (`scanModuleMetadata`) - walks the module tree (imports, controllers, function handlers, providers) using `reflect-metadata`, collecting all metadata without side effects.
|
|
24
|
+
2. **Serialization** (`serializeManifest`) - converts scanned metadata into a structured manifest with handler entries, annotations, and a dependency graph.
|
|
25
|
+
3. **Validation** (`validateScannedDependencies`) - checks that all provider dependencies are resolvable, reporting diagnostics for missing tokens.
|
|
26
26
|
|
|
27
27
|
## Manifest Structure
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celerity-sdk/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Build-time extraction tool for Celerity decorator metadata",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"debug": "^4.4.0",
|
|
40
40
|
"reflect-metadata": "^0.2.0",
|
|
41
|
-
"@celerity-sdk/common": "^0.
|
|
42
|
-
"@celerity-sdk/
|
|
43
|
-
"@celerity-sdk/
|
|
41
|
+
"@celerity-sdk/common": "^0.3.1",
|
|
42
|
+
"@celerity-sdk/core": "^0.3.1",
|
|
43
|
+
"@celerity-sdk/types": "^0.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"ajv": "^8.17.0"
|