@kinotic-ai/kinotic-cli 2.0.0 → 2.1.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 +5 -5
- package/dist/internal/EntityCodeGenerationService.js +1 -1
- package/dist/templates/entity/AdminRepository.liquid +2 -2
- package/dist/templates/entity/BaseAdminRepository.liquid +3 -3
- package/dist/templates/entity/BaseRepository.liquid +4 -4
- package/dist/templates/entity/Repository.liquid +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ $ npm install -g @kinotic-ai/kinotic-cli
|
|
|
12
12
|
$ kinotic COMMAND
|
|
13
13
|
running command...
|
|
14
14
|
$ kinotic (--version)
|
|
15
|
-
@kinotic-ai/kinotic-cli/2.
|
|
15
|
+
@kinotic-ai/kinotic-cli/2.1.1 darwin-arm64 node-v22.13.1
|
|
16
16
|
$ kinotic --help [COMMAND]
|
|
17
17
|
USAGE
|
|
18
18
|
$ kinotic COMMAND
|
|
@@ -91,7 +91,7 @@ EXAMPLES
|
|
|
91
91
|
$ kinotic create project MyProjectName
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
_See code: [src/commands/create/project.ts](https://github.com/kinotic-ai/kinotic/blob/v2.
|
|
94
|
+
_See code: [src/commands/create/project.ts](https://github.com/kinotic-ai/kinotic/blob/v2.1.1/src/commands/create/project.ts)_
|
|
95
95
|
|
|
96
96
|
## `kinotic gen`
|
|
97
97
|
|
|
@@ -149,7 +149,7 @@ EXAMPLES
|
|
|
149
149
|
$ kinotic gen --force
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
_See code: [src/commands/generate.ts](https://github.com/kinotic-ai/kinotic/blob/v2.
|
|
152
|
+
_See code: [src/commands/generate.ts](https://github.com/kinotic-ai/kinotic/blob/v2.1.1/src/commands/generate.ts)_
|
|
153
153
|
|
|
154
154
|
## `kinotic help [COMMAND]`
|
|
155
155
|
|
|
@@ -231,7 +231,7 @@ EXAMPLES
|
|
|
231
231
|
$ kinotic init -a my.app -e path/to/entities -r path/to/repository --mirror
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
-
_See code: [src/commands/initialize.ts](https://github.com/kinotic-ai/kinotic/blob/v2.
|
|
234
|
+
_See code: [src/commands/initialize.ts](https://github.com/kinotic-ai/kinotic/blob/v2.1.1/src/commands/initialize.ts)_
|
|
235
235
|
|
|
236
236
|
## `kinotic plugins`
|
|
237
237
|
|
|
@@ -587,7 +587,7 @@ EXAMPLES
|
|
|
587
587
|
$ kinotic sync -p -v -s http://localhost:9090
|
|
588
588
|
```
|
|
589
589
|
|
|
590
|
-
_See code: [src/commands/synchronize.ts](https://github.com/kinotic-ai/kinotic/blob/v2.
|
|
590
|
+
_See code: [src/commands/synchronize.ts](https://github.com/kinotic-ai/kinotic/blob/v2.1.1/src/commands/synchronize.ts)_
|
|
591
591
|
|
|
592
592
|
## `kinotic update [CHANNEL]`
|
|
593
593
|
|
|
@@ -27,7 +27,7 @@ export class EntityCodeGenerationService {
|
|
|
27
27
|
this.fileExtensionForImports = fileExtensionForImports;
|
|
28
28
|
this.logger = logger;
|
|
29
29
|
this.engine = new Liquid({
|
|
30
|
-
root: path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../templates/'), // root for templates lookup
|
|
30
|
+
root: path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../templates/entity/'), // root for templates lookup
|
|
31
31
|
extname: '.liquid'
|
|
32
32
|
});
|
|
33
33
|
this.tsMorphProject = createTsMorphProject();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IAdminEntityRepository } from '@kinotic-ai/persistence'
|
|
2
2
|
import { Base{{ entityName }}AdminRepository } from './generated/Base{{ entityName }}AdminRepository{{ fileExtensionForImports }}'
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import { Base{{ entityName }}AdminRepository } from './generated/Base{{ entityNa
|
|
|
7
7
|
*/
|
|
8
8
|
export class {{ entityName }}AdminRepository extends Base{{ entityName }}AdminRepository {
|
|
9
9
|
|
|
10
|
-
constructor(adminEntitiesService?:
|
|
10
|
+
constructor(adminEntitiesService?: IAdminEntityRepository) {
|
|
11
11
|
super(adminEntitiesService)
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminEntityRepository, type IAdminEntitiesRepository } from '@kinotic-ai/persistence'
|
|
2
2
|
{%- if defaultExport == true %}
|
|
3
3
|
import {{ entityName }} from '{{ entityImportPath }}'
|
|
4
4
|
{%- else %}
|
|
@@ -10,9 +10,9 @@ import { {{ entityName }} } from '{{ entityImportPath }}'
|
|
|
10
10
|
* Admin Base Repository for interacting with {{ entityName }} entities
|
|
11
11
|
* This class was generated by the Kinotic CLI. And will be overwritten if the CLI is run again.
|
|
12
12
|
*/
|
|
13
|
-
export class Base{{ entityName }}AdminRepository extends
|
|
13
|
+
export class Base{{ entityName }}AdminRepository extends AdminEntityRepository<{{ entityName }}> {
|
|
14
14
|
|
|
15
|
-
constructor(adminEntitiesService?:
|
|
15
|
+
constructor(adminEntitiesService?: IAdminEntitiesRepository) {
|
|
16
16
|
super('{{ entityNamespace }}', '{{ entityName }}', adminEntitiesService)
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityRepository, type IEntitiesRepository } from '@kinotic-ai/persistence'
|
|
2
2
|
{%- if defaultExport == true %}
|
|
3
3
|
import {{ entityName }} from '{{ entityImportPath }}'
|
|
4
4
|
{%- else %}
|
|
@@ -10,12 +10,12 @@ import { {{ entityName }} } from '{{ entityImportPath }}'
|
|
|
10
10
|
* Base Repository for interacting with {{ entityName }} entities
|
|
11
11
|
* This class was generated by the Kinotic CLI. And will be overwritten if the CLI is run again.
|
|
12
12
|
*/
|
|
13
|
-
export class Base{{ entityName }}Repository extends
|
|
13
|
+
export class Base{{ entityName }}Repository extends EntityRepository<{{ entityName }}> {
|
|
14
14
|
|
|
15
15
|
private readonly shouldValidate: boolean
|
|
16
16
|
|
|
17
|
-
constructor(shouldValidate: boolean = true,
|
|
18
|
-
super('{{ entityNamespace }}', '{{ entityName }}',
|
|
17
|
+
constructor(shouldValidate: boolean = true, entitiesRepository?: IEntitiesRepository) {
|
|
18
|
+
super('{{ entityNamespace }}', '{{ entityName }}', entitiesRepository)
|
|
19
19
|
this.shouldValidate = shouldValidate
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IEntitiesRepository } from '@kinotic-ai/persistence'
|
|
2
2
|
import { Base{{ entityName }}Repository } from './generated/Base{{ entityName }}Repository{{ fileExtensionForImports }}'
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -7,8 +7,8 @@ import { Base{{ entityName }}Repository } from './generated/Base{{ entityName }}
|
|
|
7
7
|
*/
|
|
8
8
|
export class {{ entityName }}Repository extends Base{{ entityName }}Repository {
|
|
9
9
|
|
|
10
|
-
constructor(
|
|
11
|
-
super({{ validate }},
|
|
10
|
+
constructor(entitiesRepository?: IEntitiesRepository) {
|
|
11
|
+
super({{ validate }}, entitiesRepository)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/kinotic-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
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": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@inquirer/prompts": "^8.3.2",
|
|
22
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.11",
|
|
25
|
+
"@kinotic-ai/persistence": "^1.1.0",
|
|
26
26
|
"@oclif/core": "^4.9.0",
|
|
27
27
|
"@oclif/plugin-autocomplete": "^3.2.41",
|
|
28
28
|
"@oclif/plugin-help": "^6",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"execa": "^9.6.1",
|
|
36
36
|
"glob": "^13.0.6",
|
|
37
37
|
"graphql": "^16.13.1",
|
|
38
|
-
"liquidjs": "
|
|
38
|
+
"liquidjs": "10.25.1",
|
|
39
39
|
"open": "^11.0.0",
|
|
40
40
|
"ora": "^9.3.0",
|
|
41
41
|
"p-timeout": "^7.0.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"ts-morph": "^27.0.2",
|
|
47
47
|
"uuid": "^13.0.0",
|
|
48
48
|
"ws": "^8.19.0",
|
|
49
|
-
"yaml": "
|
|
49
|
+
"yaml": "2.8.3",
|
|
50
50
|
"zod": "^4.3.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|