@crossdelta/platform-sdk 0.19.0 → 0.19.3
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 +27 -5
- package/bin/chunk-634PL24Z.mjs +20 -0
- package/bin/cli.mjs +604 -0
- package/bin/config-CKQHYOF4.mjs +2 -0
- package/bin/docs/generators/code-style.md +79 -0
- package/bin/docs/generators/natural-language.md +117 -0
- package/bin/docs/generators/service.md +129 -60
- package/bin/templates/hono-microservice/Dockerfile.hbs +3 -1
- package/bin/templates/hono-microservice/src/config/env.ts.hbs +3 -0
- package/bin/templates/nest-microservice/Dockerfile.hbs +6 -2
- package/bin/templates/nest-microservice/src/config/env.ts.hbs +17 -0
- package/bin/templates/nest-microservice/src/main.ts.hbs +2 -1
- package/bin/templates/workspace/.github/actions/prepare-build-context/action.yml +58 -6
- package/bin/templates/workspace/.github/workflows/build-and-deploy.yml.hbs +25 -3
- package/bin/templates/workspace/.github/workflows/publish-packages.yml +6 -8
- package/bin/templates/workspace/biome.json.hbs +4 -1
- package/bin/templates/workspace/infra/package.json.hbs +2 -2
- package/bin/templates/workspace/package.json.hbs +1 -0
- package/bin/templates/workspace/packages/contracts/README.md.hbs +5 -5
- package/bin/templates/workspace/packages/contracts/package.json.hbs +15 -6
- package/bin/templates/workspace/packages/contracts/src/index.ts +1 -1
- package/bin/templates/workspace/packages/contracts/tsconfig.json.hbs +6 -1
- package/bin/templates/workspace/turbo.json +8 -11
- package/bin/templates/workspace/turbo.json.hbs +6 -5
- package/dist/facade.d.mts +840 -0
- package/dist/facade.d.ts +840 -0
- package/dist/facade.js +2294 -0
- package/dist/facade.js.map +1 -0
- package/dist/facade.mjs +2221 -0
- package/dist/facade.mjs.map +1 -0
- package/dist/plugin-types-DQOv97Zh.d.mts +180 -0
- package/dist/plugin-types-DQOv97Zh.d.ts +180 -0
- package/dist/plugin-types.d.mts +1 -0
- package/dist/plugin-types.d.ts +1 -0
- package/dist/plugin-types.js +19 -0
- package/dist/plugin-types.js.map +1 -0
- package/dist/plugin-types.mjs +1 -0
- package/dist/plugin-types.mjs.map +1 -0
- package/dist/plugin.d.mts +31 -0
- package/dist/plugin.d.ts +31 -0
- package/dist/plugin.js +105 -0
- package/dist/plugin.js.map +1 -0
- package/dist/plugin.mjs +75 -0
- package/dist/plugin.mjs.map +1 -0
- package/package.json +118 -99
- package/bin/cli.js +0 -540
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossdelta/platform-sdk",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"description": "Platform toolkit for event-driven microservices — keeping code and infrastructure in lockstep.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"homepage": "https://www.npmjs.com/package/@crossdelta/platform-sdk",
|
|
19
19
|
"preferGlobal": true,
|
|
20
20
|
"bin": {
|
|
21
|
-
"pf": "./bin/cli.
|
|
21
|
+
"pf": "./bin/cli.mjs"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=21.0.0"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"main": "./dist/index.js",
|
|
28
28
|
"files": [
|
|
29
|
-
"bin/**/*.
|
|
29
|
+
"bin/**/*.mjs",
|
|
30
30
|
"bin/**/templates/**",
|
|
31
31
|
"bin/docs/generators/**",
|
|
32
32
|
"bin/**/*.json",
|
|
@@ -40,6 +40,21 @@
|
|
|
40
40
|
"install.sh"
|
|
41
41
|
],
|
|
42
42
|
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"types": "./dist/plugin-types.d.ts",
|
|
45
|
+
"import": "./dist/plugin-types.mjs",
|
|
46
|
+
"require": "./dist/plugin-types.js"
|
|
47
|
+
},
|
|
48
|
+
"./plugin": {
|
|
49
|
+
"types": "./dist/plugin.d.ts",
|
|
50
|
+
"import": "./dist/plugin.mjs",
|
|
51
|
+
"require": "./dist/plugin.js"
|
|
52
|
+
},
|
|
53
|
+
"./facade": {
|
|
54
|
+
"types": "./dist/facade.d.ts",
|
|
55
|
+
"import": "./dist/facade.mjs",
|
|
56
|
+
"require": "./dist/facade.js"
|
|
57
|
+
},
|
|
43
58
|
"./schemas/event.schema.json": "./schemas/event.schema.json"
|
|
44
59
|
},
|
|
45
60
|
"publishConfig": {
|
|
@@ -51,109 +66,113 @@
|
|
|
51
66
|
},
|
|
52
67
|
"generatorConfig": {
|
|
53
68
|
"docs": {
|
|
54
|
-
"base": [
|
|
69
|
+
"base": [
|
|
70
|
+
"service.md",
|
|
71
|
+
"code-style.md",
|
|
72
|
+
"testing.md"
|
|
73
|
+
],
|
|
55
74
|
"frameworks": {
|
|
56
75
|
"hono": {
|
|
57
|
-
|
|
58
|
-
|
|
76
|
+
"bun": "hono-bun.md",
|
|
77
|
+
"node": "hono-node.md"
|
|
78
|
+
},
|
|
79
|
+
"nest": "nest.md"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"serviceTypes": {
|
|
83
|
+
"hono": {
|
|
84
|
+
"commandType": "hono-micro",
|
|
85
|
+
"entryPoint": "src/index.ts",
|
|
86
|
+
"skipFiles": [
|
|
87
|
+
"package.json",
|
|
88
|
+
"tsconfig.json",
|
|
89
|
+
"Dockerfile"
|
|
90
|
+
]
|
|
59
91
|
},
|
|
60
|
-
"nest":
|
|
92
|
+
"nest": {
|
|
93
|
+
"commandType": "nest-micro",
|
|
94
|
+
"entryPoint": "src/main.ts",
|
|
95
|
+
"skipFiles": [
|
|
96
|
+
"package.json",
|
|
97
|
+
"tsconfig.json",
|
|
98
|
+
"Dockerfile"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
61
101
|
}
|
|
62
102
|
},
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"commandType": "nest-micro",
|
|
75
|
-
"entryPoint": "src/main.ts",
|
|
76
|
-
"skipFiles": [
|
|
77
|
-
"package.json",
|
|
78
|
-
"tsconfig.json",
|
|
79
|
-
"Dockerfile"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"scripts": {
|
|
85
|
-
"start:dev": "node esbuild.config.mjs --watch",
|
|
86
|
-
"build:cli": "node esbuild.config.mjs",
|
|
87
|
-
"build:cli:copy": "cp cli/integration.collection.json bin/integration.collection.json && rm -rf bin/templates && mkdir -p bin/templates && cp -r cli/src/commands/create/workspace/templates bin/templates/workspace && cp -r cli/src/commands/create/hono-microservice/templates bin/templates/hono-microservice && cp -r cli/src/commands/create/nest-microservice/templates bin/templates/nest-microservice && mkdir -p bin/docs/generators && cp -r docs/generators/* bin/docs/generators/",
|
|
88
|
-
"build:schematics:transpile": "tsc --project tsconfig.schematics.json",
|
|
89
|
-
"build:schematics:copy": "cp -R schematics/* dist/schematics && find dist/schematics -name '*.ts' -delete",
|
|
90
|
-
"build:schematics": "npm run build:schematics:transpile && npm run build:schematics:copy",
|
|
91
|
-
"build": "npm run build:cli && npm run build:schematics && npm run build:cli:copy",
|
|
92
|
-
"prepublishOnly": "npm run build",
|
|
93
|
-
"lint": "biome lint --fix",
|
|
94
|
-
"test": "bun test",
|
|
95
|
-
"test:watch": "bun test --watch"
|
|
96
|
-
},
|
|
97
|
-
"schematics": "./dist/schematics/collection.json",
|
|
98
|
-
"dependencies": {
|
|
99
|
-
"@ai-sdk/anthropic": "^2.0.53",
|
|
100
|
-
"@ai-sdk/openai": "^2.0.79",
|
|
101
|
-
"@angular-devkit/core": "^21.0.0",
|
|
102
|
-
"@crossdelta/cloudevents": "0.6.2",
|
|
103
|
-
"@faker-js/faker": "^9.8.0",
|
|
104
|
-
"@inquirer/prompts": "^7.5.0",
|
|
105
|
-
"@listr2/prompt-adapter-enquirer": "^2.0.15",
|
|
106
|
-
"ai": "^5.0.108",
|
|
107
|
-
"chalk": "^5.4.1",
|
|
108
|
-
"chokidar": "^5.0.0",
|
|
109
|
-
"cli-table3": "^0.6.5",
|
|
110
|
-
"commander": "^13.1.0",
|
|
111
|
-
"dotenv": "^17.2.3",
|
|
112
|
-
"enquirer": "^2.4.1",
|
|
113
|
-
"execa": "^9.5.2",
|
|
114
|
-
"fs-extra": "^11.3.0",
|
|
115
|
-
"globby": "^14.1.0",
|
|
116
|
-
"handlebars": "^4.7.8",
|
|
117
|
-
"jiti": "^2.6.1",
|
|
118
|
-
"listr2": "^8.3.2",
|
|
119
|
-
"ora": "^8.2.0",
|
|
120
|
-
"package-up": "^5.0.0",
|
|
121
|
-
"rimraf": "^6.1.2",
|
|
122
|
-
"terminal-link": "^4.0.0",
|
|
123
|
-
"ts-morph": "^27.0.0",
|
|
124
|
-
"zod": "^4.0.0"
|
|
125
|
-
},
|
|
126
|
-
"peerDependencies": {
|
|
127
|
-
"@crossdelta/infrastructure": "0.5.3",
|
|
128
|
-
"@nestjs/schematics": "^11.0.5",
|
|
129
|
-
"turbo": "^2.0.0"
|
|
130
|
-
},
|
|
131
|
-
"peerDependenciesMeta": {
|
|
132
|
-
"@crossdelta/cloudevents": {
|
|
133
|
-
"optional": true
|
|
103
|
+
"scripts": {
|
|
104
|
+
"dev": "tsup --watch",
|
|
105
|
+
"build:copy": "cp cli/integration.collection.json bin/integration.collection.json && rm -rf bin/templates && mkdir -p bin/templates && cp -r cli/src/commands/create/workspace/templates bin/templates/workspace && cp -r cli/src/commands/create/hono-microservice/templates bin/templates/hono-microservice && cp -r cli/src/commands/create/nest-microservice/templates bin/templates/nest-microservice && mkdir -p bin/docs/generators && cp -r docs/generators/* bin/docs/generators/",
|
|
106
|
+
"build:schematics:transpile": "tsc --project tsconfig.schematics.json",
|
|
107
|
+
"build:schematics:copy": "cp -R schematics/* dist/schematics && find dist/schematics -name '*.ts' -delete",
|
|
108
|
+
"build:schematics": "npm run build:schematics:transpile && npm run build:schematics:copy",
|
|
109
|
+
"build": "tsup && npm run build:schematics && npm run build:copy",
|
|
110
|
+
"prepublishOnly": "npm run build",
|
|
111
|
+
"lint": "biome lint --fix",
|
|
112
|
+
"test": "bun test",
|
|
113
|
+
"test:watch": "bun test --watch"
|
|
134
114
|
},
|
|
135
|
-
"
|
|
136
|
-
|
|
115
|
+
"schematics": "./dist/schematics/collection.json",
|
|
116
|
+
"dependencies": {
|
|
117
|
+
"@ai-sdk/anthropic": "^2.0.53",
|
|
118
|
+
"@ai-sdk/openai": "^2.0.79",
|
|
119
|
+
"@angular-devkit/core": "^21.0.0",
|
|
120
|
+
"@crossdelta/flowcore": "0.1.0",
|
|
121
|
+
"@faker-js/faker": "^9.8.0",
|
|
122
|
+
"@inquirer/prompts": "^7.5.0",
|
|
123
|
+
"@listr2/prompt-adapter-enquirer": "^2.0.15",
|
|
124
|
+
"ai": "^5.0.108",
|
|
125
|
+
"chalk": "^5.4.1",
|
|
126
|
+
"chokidar": "^5.0.0",
|
|
127
|
+
"cli-table3": "^0.6.5",
|
|
128
|
+
"commander": "^13.1.0",
|
|
129
|
+
"dotenv": "^17.2.3",
|
|
130
|
+
"enquirer": "^2.4.1",
|
|
131
|
+
"execa": "^9.5.2",
|
|
132
|
+
"fs-extra": "^11.3.0",
|
|
133
|
+
"globby": "^14.1.0",
|
|
134
|
+
"handlebars": "^4.7.8",
|
|
135
|
+
"jiti": "^2.6.1",
|
|
136
|
+
"listr2": "^8.3.2",
|
|
137
|
+
"ora": "^8.2.0",
|
|
138
|
+
"package-up": "^5.0.0",
|
|
139
|
+
"rimraf": "^6.1.2",
|
|
140
|
+
"terminal-link": "^4.0.0",
|
|
141
|
+
"ts-morph": "^27.0.0",
|
|
142
|
+
"zod": "^4.0.0"
|
|
137
143
|
},
|
|
138
|
-
"
|
|
139
|
-
"
|
|
144
|
+
"peerDependencies": {
|
|
145
|
+
"@crossdelta/cloudevents": "0.6.4",
|
|
146
|
+
"@crossdelta/infrastructure": "0.5.5",
|
|
147
|
+
"@nestjs/schematics": "^11.0.5",
|
|
148
|
+
"turbo": "^2.0.0"
|
|
140
149
|
},
|
|
141
|
-
"
|
|
142
|
-
"
|
|
150
|
+
"peerDependenciesMeta": {
|
|
151
|
+
"@crossdelta/cloudevents": {
|
|
152
|
+
"optional": true
|
|
153
|
+
},
|
|
154
|
+
"@crossdelta/infrastructure": {
|
|
155
|
+
"optional": true
|
|
156
|
+
},
|
|
157
|
+
"@nestjs/schematics": {
|
|
158
|
+
"optional": true
|
|
159
|
+
},
|
|
160
|
+
"turbo": {
|
|
161
|
+
"optional": true
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"devDependencies": {
|
|
165
|
+
"@angular-devkit/core": "^21.0.0",
|
|
166
|
+
"@angular-devkit/schematics": "^21.0.0",
|
|
167
|
+
"@angular-devkit/schematics-cli": "^19.2.10",
|
|
168
|
+
"@eslint/js": "^9.22.0",
|
|
169
|
+
"@nestjs/schematics": "^11.0.9",
|
|
170
|
+
"@types/fs-extra": "^11.0.4",
|
|
171
|
+
"bun-types": "^1.3.4",
|
|
172
|
+
"comment-json": "^4.4.1",
|
|
173
|
+
"eslint": "^9.25.1",
|
|
174
|
+
"tsup": "^8.5.1",
|
|
175
|
+
"typescript": "^5.8.3",
|
|
176
|
+
"typescript-eslint": "^8.31.1"
|
|
143
177
|
}
|
|
144
|
-
},
|
|
145
|
-
"devDependencies": {
|
|
146
|
-
"@angular-devkit/core": "^21.0.0",
|
|
147
|
-
"@angular-devkit/schematics": "^21.0.0",
|
|
148
|
-
"@angular-devkit/schematics-cli": "^19.2.10",
|
|
149
|
-
"@eslint/js": "^9.22.0",
|
|
150
|
-
"@nestjs/schematics": "^11.0.9",
|
|
151
|
-
"@types/fs-extra": "^11.0.4",
|
|
152
|
-
"bun-types": "^1.3.4",
|
|
153
|
-
"comment-json": "^4.4.1",
|
|
154
|
-
"esbuild": "^0.25.3",
|
|
155
|
-
"eslint": "^9.25.1",
|
|
156
|
-
"typescript": "^5.8.3",
|
|
157
|
-
"typescript-eslint": "^8.31.1"
|
|
158
|
-
}
|
|
159
178
|
}
|