@kinotic-ai/kinotic-cli 1.0.2 → 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.
Files changed (69) hide show
  1. package/README.md +57 -22
  2. package/dist/commands/create/project.d.ts +10 -0
  3. package/dist/commands/create/project.js +62 -0
  4. package/dist/commands/generate.d.ts +2 -1
  5. package/dist/commands/generate.js +6 -4
  6. package/dist/commands/initialize.d.ts +4 -3
  7. package/dist/commands/initialize.js +21 -16
  8. package/dist/commands/synchronize.d.ts +6 -5
  9. package/dist/commands/synchronize.js +5 -4
  10. package/dist/internal/CommandHelper.d.ts +4 -0
  11. package/dist/internal/CommandHelper.js +29 -0
  12. package/dist/internal/{CodeGenerationService.d.ts → EntityCodeGenerationService.d.ts} +12 -3
  13. package/dist/internal/{CodeGenerationService.js → EntityCodeGenerationService.js} +69 -19
  14. package/dist/internal/GitChangeDetector.d.ts +24 -0
  15. package/dist/internal/GitChangeDetector.js +119 -0
  16. package/dist/internal/Utils.d.ts +6 -1
  17. package/dist/internal/Utils.js +10 -1
  18. package/dist/internal/converter/IConverterStrategy.d.ts +1 -1
  19. package/dist/internal/converter/codegen/ArrayC3TypeToStatementMapper.d.ts +2 -2
  20. package/dist/internal/converter/codegen/ObjectC3TypeToStatementMapper.d.ts +2 -2
  21. package/dist/internal/converter/codegen/PrimitiveC3TypeToStatementMapper.d.ts +2 -2
  22. package/dist/internal/converter/codegen/StatementMapper.js +1 -1
  23. package/dist/internal/converter/codegen/StatementMapperConversionState.d.ts +1 -1
  24. package/dist/internal/converter/codegen/StatementMapperConversionState.js +1 -1
  25. package/dist/internal/converter/codegen/StatementMapperConverterStrategy.d.ts +3 -3
  26. package/dist/internal/converter/codegen/UnionC3TypeToStatementMapper.d.ts +2 -2
  27. package/dist/internal/converter/codegen/UnionC3TypeToStatementMapper.js +1 -1
  28. package/dist/internal/converter/typescript/ArrayToC3Type.d.ts +2 -2
  29. package/dist/internal/converter/typescript/EnumToC3Type.d.ts +2 -2
  30. package/dist/internal/converter/typescript/ObjectLikeToC3Type.d.ts +2 -2
  31. package/dist/internal/converter/typescript/ObjectLikeToC3Type.js +1 -1
  32. package/dist/internal/converter/typescript/PrimitiveToC3Type.d.ts +1 -1
  33. package/dist/internal/converter/typescript/PrimitiveToC3Type.js +1 -1
  34. package/dist/internal/converter/typescript/QueryOptionsToC3Type.d.ts +2 -2
  35. package/dist/internal/converter/typescript/TenantSelectionToC3Type.d.ts +2 -2
  36. package/dist/internal/converter/typescript/TypescriptConversionState.d.ts +1 -1
  37. package/dist/internal/converter/typescript/TypescriptConversionState.js +1 -1
  38. package/dist/internal/converter/typescript/TypescriptConverterStrategy.d.ts +3 -3
  39. package/dist/internal/converter/typescript/UnionToC3Type.d.ts +2 -2
  40. package/dist/internal/spawn/SpawnConfig.d.ts +31 -0
  41. package/dist/internal/spawn/SpawnConfig.js +12 -0
  42. package/dist/internal/spawn/SpawnEngine.d.ts +27 -0
  43. package/dist/internal/spawn/SpawnEngine.js +187 -0
  44. package/dist/internal/spawn/SpawnResolver.d.ts +17 -0
  45. package/dist/internal/spawn/SpawnResolver.js +14 -0
  46. package/dist/templates/entity/AdminRepository.liquid +14 -0
  47. package/dist/templates/{BaseAdminEntityService.liquid → entity/BaseAdminRepository.liquid} +2 -2
  48. package/dist/templates/{BaseEntityService.liquid → entity/BaseRepository.liquid} +2 -2
  49. package/dist/templates/entity/Repository.liquid +14 -0
  50. package/dist/templates/spawns/library/package.json.liquid +30 -0
  51. package/dist/templates/spawns/library/spawn.json +8 -0
  52. package/dist/templates/spawns/library/src/index.ts +3 -0
  53. package/dist/templates/spawns/library/tsconfig.json +5 -0
  54. package/dist/templates/spawns/project/.config/kinotic.config.ts.liquid +16 -0
  55. package/dist/templates/spawns/project/bunup.config.ts.liquid +11 -0
  56. package/dist/templates/spawns/project/package.json.liquid +22 -0
  57. package/dist/templates/spawns/project/packages/domain/.gitkeep +0 -0
  58. package/dist/templates/spawns/project/packages/domain/model/.gitkeep +0 -0
  59. package/dist/templates/spawns/project/packages/domain/package.json.liquid +34 -0
  60. package/dist/templates/spawns/project/packages/domain/repositories/.gitkeep +0 -0
  61. package/dist/templates/spawns/project/packages/domain/tsconfig.json +5 -0
  62. package/dist/templates/spawns/project/packages/microservices/.gitkeep +0 -0
  63. package/dist/templates/spawns/project/packages/ui/.gitkeep +0 -0
  64. package/dist/templates/spawns/project/spawn.json +11 -0
  65. package/dist/templates/spawns/project/tsconfig.base.json +26 -0
  66. package/oclif.manifest.json +62 -10
  67. package/package.json +19 -10
  68. package/dist/templates/AdminEntityService.liquid +0 -14
  69. 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": "1.0.2",
4
- "description": "Kinotic CLI provides the ability to interact with the Kinotic Server",
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.0.8",
23
- "@kinotic-ai/idl": "^1.0.8",
24
- "@kinotic-ai/os-api": "^1.0.8",
25
- "@kinotic-ai/persistence": "^1.0.8",
22
+ "@kinotic-ai/core": "^1.1.1",
23
+ "@kinotic-ai/idl": "^1.0.9",
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": "^10",
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
- }