@kinotic-ai/kinotic-cli 1.0.3 → 2.0.0
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 +57 -22
- package/dist/commands/create/project.d.ts +10 -0
- package/dist/commands/create/project.js +62 -0
- package/dist/commands/generate.d.ts +2 -1
- package/dist/commands/generate.js +6 -4
- package/dist/commands/initialize.d.ts +4 -3
- package/dist/commands/initialize.js +21 -16
- package/dist/commands/synchronize.d.ts +6 -5
- package/dist/commands/synchronize.js +5 -4
- package/dist/internal/CommandHelper.d.ts +4 -0
- package/dist/internal/CommandHelper.js +29 -0
- package/dist/internal/{CodeGenerationService.d.ts → EntityCodeGenerationService.d.ts} +12 -3
- package/dist/internal/{CodeGenerationService.js → EntityCodeGenerationService.js} +69 -19
- package/dist/internal/GitChangeDetector.d.ts +24 -0
- package/dist/internal/GitChangeDetector.js +119 -0
- package/dist/internal/Utils.d.ts +6 -1
- package/dist/internal/Utils.js +10 -1
- package/dist/internal/converter/IConverterStrategy.d.ts +1 -1
- package/dist/internal/converter/codegen/ArrayC3TypeToStatementMapper.d.ts +2 -2
- package/dist/internal/converter/codegen/ObjectC3TypeToStatementMapper.d.ts +2 -2
- package/dist/internal/converter/codegen/PrimitiveC3TypeToStatementMapper.d.ts +2 -2
- package/dist/internal/converter/codegen/StatementMapper.js +1 -1
- package/dist/internal/converter/codegen/StatementMapperConversionState.d.ts +1 -1
- package/dist/internal/converter/codegen/StatementMapperConversionState.js +1 -1
- package/dist/internal/converter/codegen/StatementMapperConverterStrategy.d.ts +3 -3
- package/dist/internal/converter/codegen/UnionC3TypeToStatementMapper.d.ts +2 -2
- package/dist/internal/converter/codegen/UnionC3TypeToStatementMapper.js +1 -1
- package/dist/internal/converter/typescript/ArrayToC3Type.d.ts +2 -2
- package/dist/internal/converter/typescript/EnumToC3Type.d.ts +2 -2
- package/dist/internal/converter/typescript/ObjectLikeToC3Type.d.ts +2 -2
- package/dist/internal/converter/typescript/ObjectLikeToC3Type.js +1 -1
- package/dist/internal/converter/typescript/PrimitiveToC3Type.d.ts +1 -1
- package/dist/internal/converter/typescript/PrimitiveToC3Type.js +1 -1
- package/dist/internal/converter/typescript/QueryOptionsToC3Type.d.ts +2 -2
- package/dist/internal/converter/typescript/TenantSelectionToC3Type.d.ts +2 -2
- package/dist/internal/converter/typescript/TypescriptConversionState.d.ts +1 -1
- package/dist/internal/converter/typescript/TypescriptConversionState.js +1 -1
- package/dist/internal/converter/typescript/TypescriptConverterStrategy.d.ts +3 -3
- package/dist/internal/converter/typescript/UnionToC3Type.d.ts +2 -2
- package/dist/internal/spawn/SpawnConfig.d.ts +31 -0
- package/dist/internal/spawn/SpawnConfig.js +12 -0
- package/dist/internal/spawn/SpawnEngine.d.ts +27 -0
- package/dist/internal/spawn/SpawnEngine.js +187 -0
- package/dist/internal/spawn/SpawnResolver.d.ts +17 -0
- package/dist/internal/spawn/SpawnResolver.js +14 -0
- package/dist/templates/entity/AdminRepository.liquid +14 -0
- package/dist/templates/{BaseAdminEntityService.liquid → entity/BaseAdminRepository.liquid} +2 -2
- package/dist/templates/{BaseEntityService.liquid → entity/BaseRepository.liquid} +2 -2
- package/dist/templates/entity/Repository.liquid +14 -0
- package/dist/templates/spawns/library/package.json.liquid +30 -0
- package/dist/templates/spawns/library/spawn.json +8 -0
- package/dist/templates/spawns/library/src/index.ts +3 -0
- package/dist/templates/spawns/library/tsconfig.json +5 -0
- package/dist/templates/spawns/project/.config/kinotic.config.ts.liquid +16 -0
- package/dist/templates/spawns/project/bunup.config.ts.liquid +11 -0
- package/dist/templates/spawns/project/package.json.liquid +22 -0
- package/dist/templates/spawns/project/packages/domain/.gitkeep +0 -0
- package/dist/templates/spawns/project/packages/domain/model/.gitkeep +0 -0
- package/dist/templates/spawns/project/packages/domain/package.json.liquid +34 -0
- package/dist/templates/spawns/project/packages/domain/repositories/.gitkeep +0 -0
- package/dist/templates/spawns/project/packages/domain/tsconfig.json +5 -0
- package/dist/templates/spawns/project/packages/microservices/.gitkeep +0 -0
- package/dist/templates/spawns/project/packages/ui/.gitkeep +0 -0
- package/dist/templates/spawns/project/spawn.json +11 -0
- package/dist/templates/spawns/project/tsconfig.base.json +26 -0
- package/oclif.manifest.json +62 -10
- package/package.json +18 -9
- package/dist/templates/AdminEntityService.liquid +0 -14
- package/dist/templates/EntityService.liquid +0 -14
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/kinotic-cli",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Kinotic CLI provides the ability to
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Kinotic CLI provides the ability to build, deploy, and manage Kinotic applications that run on the Kinotic OS.",
|
|
5
5
|
"author": "Kinotic Developers",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kinotic": "./bin/run.js"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@inquirer/prompts": "^8.3.2",
|
|
22
|
-
"@kinotic-ai/core": "^1.
|
|
22
|
+
"@kinotic-ai/core": "^1.1.1",
|
|
23
23
|
"@kinotic-ai/idl": "^1.0.9",
|
|
24
|
-
"@kinotic-ai/os-api": "^1.0.
|
|
25
|
-
"@kinotic-ai/persistence": "^1.0.
|
|
24
|
+
"@kinotic-ai/os-api": "^1.0.10",
|
|
25
|
+
"@kinotic-ai/persistence": "^1.0.10",
|
|
26
26
|
"@oclif/core": "^4.9.0",
|
|
27
27
|
"@oclif/plugin-autocomplete": "^3.2.41",
|
|
28
28
|
"@oclif/plugin-help": "^6",
|
|
@@ -32,18 +32,22 @@
|
|
|
32
32
|
"@oclif/plugin-warn-if-update-available": "^3.1.55",
|
|
33
33
|
"c12": "^3.3.3",
|
|
34
34
|
"chalk": "^5.6.2",
|
|
35
|
+
"execa": "^9.6.1",
|
|
35
36
|
"glob": "^13.0.6",
|
|
36
37
|
"graphql": "^16.13.1",
|
|
37
38
|
"liquidjs": "^10.25.0",
|
|
38
39
|
"open": "^11.0.0",
|
|
40
|
+
"ora": "^9.3.0",
|
|
39
41
|
"p-timeout": "^7.0.1",
|
|
40
42
|
"radash": "^12.1.1",
|
|
41
43
|
"reflect-metadata": "^0.2.2",
|
|
44
|
+
"simple-git": "^3.33.0",
|
|
42
45
|
"terminal-link": "^5.0.0",
|
|
43
46
|
"ts-morph": "^27.0.2",
|
|
44
47
|
"uuid": "^13.0.0",
|
|
45
48
|
"ws": "^8.19.0",
|
|
46
|
-
"yaml": "^2.8.2"
|
|
49
|
+
"yaml": "^2.8.2",
|
|
50
|
+
"zod": "^4.3.6"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|
|
49
53
|
"@oclif/test": "^4.1.16",
|
|
@@ -54,7 +58,7 @@
|
|
|
54
58
|
"@types/uuid": "^11.0.0",
|
|
55
59
|
"@types/ws": "^8.18.1",
|
|
56
60
|
"chai": "^6",
|
|
57
|
-
"eslint": "^
|
|
61
|
+
"eslint": "^9",
|
|
58
62
|
"eslint-config-oclif": "^6",
|
|
59
63
|
"eslint-config-prettier": "^10",
|
|
60
64
|
"mocha": "^11",
|
|
@@ -62,6 +66,7 @@
|
|
|
62
66
|
"shx": "^0.4.0",
|
|
63
67
|
"tslib": "^2.8.1",
|
|
64
68
|
"tsx": "^4.21.0",
|
|
69
|
+
"tsc-alias": "^1.8.16",
|
|
65
70
|
"typescript": "^5.9.3"
|
|
66
71
|
},
|
|
67
72
|
"oclif": {
|
|
@@ -77,7 +82,11 @@
|
|
|
77
82
|
"@oclif/plugin-autocomplete"
|
|
78
83
|
],
|
|
79
84
|
"topicSeparator": " ",
|
|
80
|
-
"topics": {
|
|
85
|
+
"topics": {
|
|
86
|
+
"create": {
|
|
87
|
+
"description": "Creates Kinotic projects, libraries, and applications"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
81
90
|
},
|
|
82
91
|
"engines": {
|
|
83
92
|
"node": ">=18.0.0"
|
|
@@ -87,7 +96,7 @@
|
|
|
87
96
|
],
|
|
88
97
|
"types": "dist/index.d.ts",
|
|
89
98
|
"scripts": {
|
|
90
|
-
"build": "shx rm -rf dist && tsc -b && pnpm run copy-files",
|
|
99
|
+
"build": "shx rm -rf dist && tsc -b && tsc-alias -f && pnpm run copy-files",
|
|
91
100
|
"lint": "eslint . --ext .ts --config .eslintrc",
|
|
92
101
|
"posttest": "pnpm lint",
|
|
93
102
|
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type IAdminEntitiesService } from '@kinotic-ai/persistence'
|
|
2
|
-
import { Base{{ entityName }}AdminEntityService } from './generated/Base{{ entityName }}AdminEntityService{{ fileExtensionForImports }}'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Admin Service for interacting with {{ entityName }} entities
|
|
6
|
-
* This class was generated by the Kinotic CLI
|
|
7
|
-
*/
|
|
8
|
-
export class {{ entityName }}AdminEntityService extends Base{{ entityName }}AdminEntityService {
|
|
9
|
-
|
|
10
|
-
constructor(adminEntitiesService?: IAdminEntitiesService) {
|
|
11
|
-
super(adminEntitiesService)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type IEntitiesService } from '@kinotic-ai/persistence'
|
|
2
|
-
import { Base{{ entityName }}EntityService } from './generated/Base{{ entityName }}EntityService{{ fileExtensionForImports }}'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Service for interacting with {{ entityName }} entities
|
|
6
|
-
* This class was generated by the Kinotic CLI
|
|
7
|
-
*/
|
|
8
|
-
export class {{ entityName }}EntityService extends Base{{ entityName }}EntityService {
|
|
9
|
-
|
|
10
|
-
constructor(entitiesService?: IEntitiesService) {
|
|
11
|
-
super({{ validate }}, entitiesService)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
}
|