@tsed/cli 7.0.0-beta.3 → 7.0.0-beta.5
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/lib/esm/bin/tsed.js +3 -1
- package/lib/esm/commands/add/AddCmd.js +2 -1
- package/lib/esm/commands/generate/GenerateCmd.js +2 -1
- package/lib/esm/commands/index.js +3 -1
- package/lib/esm/commands/init/InitCmd.js +10 -103
- package/lib/esm/commands/init/InitOptionsCmd.js +17 -0
- package/lib/esm/commands/init/config/FeaturesPrompt.js +29 -29
- package/lib/esm/commands/init/config/InitSchema.js +297 -16
- package/lib/esm/commands/mcp/McpCommand.js +15 -0
- package/lib/esm/commands/mcp/schema/InitMCPSchema.js +9 -0
- package/lib/esm/{mcp → commands/mcp}/schema/ProjectPreferencesSchema.js +2 -2
- package/lib/esm/{mcp → commands/mcp}/tools/generateTool.js +3 -3
- package/lib/esm/{mcp → commands/mcp}/tools/getTemplateTool.js +2 -2
- package/lib/esm/{mcp → commands/mcp}/tools/index.js +2 -1
- package/lib/esm/commands/mcp/tools/initProjectTool.js +64 -0
- package/lib/esm/{mcp → commands/mcp}/tools/listTemplatesTool.js +2 -2
- package/lib/esm/commands/run/RunCmd.js +2 -1
- package/lib/esm/commands/template/CreateTemplateCommand.js +2 -1
- package/lib/esm/commands/update/UpdateCmd.js +3 -4
- package/lib/esm/index.js +2 -2
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/commands/index.d.ts +103 -1
- package/lib/types/commands/init/InitCmd.d.ts +1 -4
- package/lib/types/commands/init/InitOptionsCmd.d.ts +52 -0
- package/lib/types/commands/init/config/FeaturesPrompt.d.ts +25 -25
- package/lib/types/commands/init/config/InitSchema.d.ts +12 -7
- package/lib/types/commands/mcp/McpCommand.d.ts +52 -0
- package/lib/types/commands/mcp/schema/InitMCPSchema.d.ts +5 -0
- package/lib/types/{mcp → commands/mcp}/schema/ProjectPreferencesSchema.d.ts +2 -2
- package/lib/types/{mcp → commands/mcp}/tools/generateTool.d.ts +45 -17
- package/lib/types/{mcp → commands/mcp}/tools/getTemplateTool.d.ts +45 -17
- package/lib/types/commands/mcp/tools/initProjectTool.d.ts +116 -0
- package/lib/types/{mcp → commands/mcp}/tools/listTemplatesTool.d.ts +45 -17
- package/lib/types/{mcp → commands/mcp}/tools/setWorkspaceTool.d.ts +45 -17
- package/lib/types/index.d.ts +2 -2
- package/lib/types/interfaces/InitCmdOptions.d.ts +1 -1
- package/package.json +14 -14
- package/lib/esm/bin/tsed-mcp.js +0 -42
- package/lib/types/bin/tsed-mcp.d.ts +0 -2
- /package/lib/esm/{mcp → commands/mcp}/resources/index.js +0 -0
- /package/lib/esm/{mcp → commands/mcp}/resources/projectInfoResource.js +0 -0
- /package/lib/esm/{mcp → commands/mcp}/resources/serverInfoResource.js +0 -0
- /package/lib/esm/{mcp → commands/mcp}/tools/setWorkspaceTool.js +0 -0
- /package/lib/types/{mcp → commands/mcp}/resources/index.d.ts +0 -0
- /package/lib/types/{mcp → commands/mcp}/resources/projectInfoResource.d.ts +0 -0
- /package/lib/types/{mcp → commands/mcp}/resources/serverInfoResource.d.ts +0 -0
- /package/lib/types/{mcp → commands/mcp}/tools/index.d.ts +0 -0
|
@@ -4,5 +4,107 @@ import { InitCmd } from "./init/InitCmd.js";
|
|
|
4
4
|
import { RunCmd } from "./run/RunCmd.js";
|
|
5
5
|
import { CreateTemplateCommand } from "./template/CreateTemplateCommand.js";
|
|
6
6
|
import { UpdateCmd } from "./update/UpdateCmd.js";
|
|
7
|
-
declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof GenerateCmd | typeof InitCmd |
|
|
7
|
+
declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof GenerateCmd | typeof InitCmd | import("@tsed/di").FactoryTokenProvider<{
|
|
8
|
+
$prompt: any;
|
|
9
|
+
$exec: any;
|
|
10
|
+
token: import("@tsed/di").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
11
|
+
name: string;
|
|
12
|
+
alias?: string;
|
|
13
|
+
description: string;
|
|
14
|
+
args?: {
|
|
15
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
16
|
+
};
|
|
17
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
18
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
19
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
20
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
21
|
+
}>>) | undefined;
|
|
22
|
+
options?: {
|
|
23
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
24
|
+
};
|
|
25
|
+
allowUnknownOption?: boolean;
|
|
26
|
+
enableFeatures?: string[];
|
|
27
|
+
disableReadUpPkg?: boolean;
|
|
28
|
+
bindLogger?: boolean;
|
|
29
|
+
} | {
|
|
30
|
+
$prompt: any;
|
|
31
|
+
$exec: any;
|
|
32
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
33
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
34
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
35
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
36
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
37
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
38
|
+
name: string;
|
|
39
|
+
alias?: string;
|
|
40
|
+
description: string;
|
|
41
|
+
args?: {
|
|
42
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
43
|
+
};
|
|
44
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
45
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
46
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
47
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
48
|
+
}>>) | undefined;
|
|
49
|
+
options?: {
|
|
50
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
51
|
+
};
|
|
52
|
+
allowUnknownOption?: boolean;
|
|
53
|
+
enableFeatures?: string[];
|
|
54
|
+
disableReadUpPkg?: boolean;
|
|
55
|
+
bindLogger?: boolean;
|
|
56
|
+
}> | import("@tsed/core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
57
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
58
|
+
}>>> | import("@tsed/di").FactoryTokenProvider<{
|
|
59
|
+
$prompt: any;
|
|
60
|
+
$exec: any;
|
|
61
|
+
token: import("@tsed/di").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
62
|
+
name: string;
|
|
63
|
+
alias?: string;
|
|
64
|
+
description: string;
|
|
65
|
+
args?: {
|
|
66
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
67
|
+
};
|
|
68
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
69
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
70
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
71
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
72
|
+
}>>) | undefined;
|
|
73
|
+
options?: {
|
|
74
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
75
|
+
};
|
|
76
|
+
allowUnknownOption?: boolean;
|
|
77
|
+
enableFeatures?: string[];
|
|
78
|
+
disableReadUpPkg?: boolean;
|
|
79
|
+
bindLogger?: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
$prompt: any;
|
|
82
|
+
$exec: any;
|
|
83
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
84
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
85
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
86
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
87
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
88
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
89
|
+
name: string;
|
|
90
|
+
alias?: string;
|
|
91
|
+
description: string;
|
|
92
|
+
args?: {
|
|
93
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
94
|
+
};
|
|
95
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
96
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
97
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
98
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
99
|
+
}>>) | undefined;
|
|
100
|
+
options?: {
|
|
101
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
102
|
+
};
|
|
103
|
+
allowUnknownOption?: boolean;
|
|
104
|
+
enableFeatures?: string[];
|
|
105
|
+
disableReadUpPkg?: boolean;
|
|
106
|
+
bindLogger?: boolean;
|
|
107
|
+
}> | import("@tsed/core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
108
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
109
|
+
}>>> | typeof RunCmd | typeof UpdateCmd)[];
|
|
8
110
|
export default _default;
|
|
@@ -16,11 +16,8 @@ export declare class InitCmd implements CommandProvider {
|
|
|
16
16
|
protected project: CliProjectService;
|
|
17
17
|
protected execa: CliExeca;
|
|
18
18
|
protected fs: CliFs;
|
|
19
|
-
|
|
20
|
-
$beforePrompt(initialOptions: Partial<InitOptions>): Promise<Partial<InitOptions>>;
|
|
21
|
-
$prompt(initialOptions: Partial<InitOptions>): QuestionOptions;
|
|
19
|
+
$prompt(initialOptions: Partial<InitOptions>): Promise<QuestionOptions>;
|
|
22
20
|
$mapContext(ctx: any): InitOptions;
|
|
23
|
-
$beforeExec(ctx: InitOptions): Promise<any>;
|
|
24
21
|
$exec(ctx: InitOptions): Promise<Task[]>;
|
|
25
22
|
$afterPostInstall(): {
|
|
26
23
|
title: string;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const InitOptionsCommand: import("@tsed/cli-core").FactoryTokenProvider<{
|
|
2
|
+
$prompt: any;
|
|
3
|
+
$exec: any;
|
|
4
|
+
token: import("@tsed/cli-core").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
5
|
+
name: string;
|
|
6
|
+
alias?: string;
|
|
7
|
+
description: string;
|
|
8
|
+
args?: {
|
|
9
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
10
|
+
};
|
|
11
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
12
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
13
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
14
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
15
|
+
}>>) | undefined;
|
|
16
|
+
options?: {
|
|
17
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
18
|
+
};
|
|
19
|
+
allowUnknownOption?: boolean;
|
|
20
|
+
enableFeatures?: string[];
|
|
21
|
+
disableReadUpPkg?: boolean;
|
|
22
|
+
bindLogger?: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
$prompt: any;
|
|
25
|
+
$exec: any;
|
|
26
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
27
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
28
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
29
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
30
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
31
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
32
|
+
name: string;
|
|
33
|
+
alias?: string;
|
|
34
|
+
description: string;
|
|
35
|
+
args?: {
|
|
36
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
37
|
+
};
|
|
38
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
39
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
40
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
41
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
42
|
+
}>>) | undefined;
|
|
43
|
+
options?: {
|
|
44
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
45
|
+
};
|
|
46
|
+
allowUnknownOption?: boolean;
|
|
47
|
+
enableFeatures?: string[];
|
|
48
|
+
disableReadUpPkg?: boolean;
|
|
49
|
+
bindLogger?: boolean;
|
|
50
|
+
}> | import("@tsed/cli-core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
51
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
52
|
+
}>>>;
|
|
@@ -14,7 +14,7 @@ export declare enum FeatureType {
|
|
|
14
14
|
PASSPORTJS = "passportjs",
|
|
15
15
|
CONFIG = "config",
|
|
16
16
|
COMMANDS = "commands",
|
|
17
|
-
|
|
17
|
+
ORM = "orm",
|
|
18
18
|
DOC = "doc",
|
|
19
19
|
CONFIG_ENVS = "config:envs",
|
|
20
20
|
CONFIG_DOTENV = "config:dotenv",
|
|
@@ -25,32 +25,32 @@ export declare enum FeatureType {
|
|
|
25
25
|
CONFIG_MONGO = "config:mongo:premium",
|
|
26
26
|
CONFIG_VAULT = "config:vault:premium",
|
|
27
27
|
CONFIG_POSTGRES = "config:postgres:premium",
|
|
28
|
-
SWAGGER = "swagger",
|
|
29
|
-
SCALAR = "scalar",
|
|
30
|
-
PRISMA = "prisma",
|
|
31
|
-
MONGOOSE = "mongoose",
|
|
32
|
-
TYPEORM = "typeorm",
|
|
33
|
-
TYPEORM_MYSQL = "typeorm:mysql",
|
|
34
|
-
TYPEORM_MARIADB = "typeorm:mariadb",
|
|
35
|
-
TYPEORM_POSTGRES = "typeorm:postgres",
|
|
36
|
-
TYPEORM_COCKROACHDB = "typeorm:cockroachdb",
|
|
37
|
-
TYPEORM_SQLITE = "typeorm:sqlite",
|
|
38
|
-
TYPEORM_BETTER_SQLITE3 = "typeorm:better-sqlite3",
|
|
39
|
-
TYPEORM_CORDOVA = "typeorm:cordova",
|
|
40
|
-
TYPEORM_NATIVESCRIPT = "typeorm:nativescript",
|
|
41
|
-
TYPEORM_ORACLE = "typeorm:oracle",
|
|
42
|
-
TYPEORM_MSSQL = "typeorm:mssql",
|
|
43
|
-
TYPEORM_MONGODB = "typeorm:mongodb",
|
|
44
|
-
TYPEORM_SQLJS = "typeorm:sqljs",
|
|
45
|
-
TYPEORM_REACTNATIVE = "typeorm:reactnative",
|
|
46
|
-
TYPEORM_EXPO = "typeorm:expo",
|
|
28
|
+
SWAGGER = "doc:swagger",
|
|
29
|
+
SCALAR = "doc:scalar",
|
|
30
|
+
PRISMA = "orm:prisma",
|
|
31
|
+
MONGOOSE = "orm:mongoose",
|
|
32
|
+
TYPEORM = "orm:typeorm",
|
|
33
|
+
TYPEORM_MYSQL = "orm:typeorm:mysql",
|
|
34
|
+
TYPEORM_MARIADB = "orm:typeorm:mariadb",
|
|
35
|
+
TYPEORM_POSTGRES = "orm:typeorm:postgres",
|
|
36
|
+
TYPEORM_COCKROACHDB = "orm:typeorm:cockroachdb",
|
|
37
|
+
TYPEORM_SQLITE = "orm:typeorm:sqlite",
|
|
38
|
+
TYPEORM_BETTER_SQLITE3 = "orm:typeorm:better-sqlite3",
|
|
39
|
+
TYPEORM_CORDOVA = "orm:typeorm:cordova",
|
|
40
|
+
TYPEORM_NATIVESCRIPT = "orm:typeorm:nativescript",
|
|
41
|
+
TYPEORM_ORACLE = "orm:typeorm:oracle",
|
|
42
|
+
TYPEORM_MSSQL = "orm:typeorm:mssql",
|
|
43
|
+
TYPEORM_MONGODB = "orm:typeorm:mongodb",
|
|
44
|
+
TYPEORM_SQLJS = "orm:typeorm:sqljs",
|
|
45
|
+
TYPEORM_REACTNATIVE = "orm:typeorm:reactnative",
|
|
46
|
+
TYPEORM_EXPO = "orm:typeorm:expo",
|
|
47
47
|
TESTING = "testing",
|
|
48
|
-
JEST = "jest",
|
|
49
|
-
VITEST = "vitest",
|
|
48
|
+
JEST = "testing:jest",
|
|
49
|
+
VITEST = "testing:vitest",
|
|
50
50
|
LINTER = "linter",
|
|
51
|
-
ESLINT = "eslint",
|
|
52
|
-
LINT_STAGED = "lintstaged",
|
|
53
|
-
PRETTIER = "prettier"
|
|
51
|
+
ESLINT = "linter:eslint",
|
|
52
|
+
LINT_STAGED = "linter:lintstaged",
|
|
53
|
+
PRETTIER = "linter:prettier"
|
|
54
54
|
}
|
|
55
55
|
export declare const FeaturesMap: Record<string, Feature>;
|
|
56
56
|
export declare const FrameworksPrompt: {
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { PackageManager } from "@tsed/cli-core";
|
|
2
|
-
import { PlatformType, ProjectConvention } from "../../../interfaces/index.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { ArchitectureConvention, PlatformType, ProjectConvention } from "../../../interfaces/index.js";
|
|
3
|
+
import type { RuntimeTypes } from "../../../interfaces/RuntimeTypes.js";
|
|
4
|
+
import { FeatureType } from "../../init/config/FeaturesPrompt.js";
|
|
5
|
+
export declare const InitSchema: () => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
6
|
+
root: import("@tsed/schema").JsonSchema<string>;
|
|
6
7
|
projectName: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
7
8
|
platform: import("@tsed/schema").JsonSchema<PlatformType>;
|
|
9
|
+
architecture: import("@tsed/schema").JsonSchema<ArchitectureConvention>;
|
|
8
10
|
convention: import("@tsed/schema").JsonSchema<ProjectConvention>;
|
|
9
|
-
packageManager: import("@tsed/schema").JsonSchema<PackageManager>;
|
|
10
|
-
runtime: import("@tsed/schema").JsonSchema<"node" | "babel" | "webpack" | "bun" | "swc">;
|
|
11
11
|
features: import("@tsed/schema").JsonSchema<FeatureType[]>;
|
|
12
|
-
|
|
12
|
+
runtime: import("@tsed/schema").JsonSchema<RuntimeTypes>;
|
|
13
|
+
packageManager: import("@tsed/schema").JsonSchema<PackageManager>;
|
|
14
|
+
GH_TOKEN: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
15
|
+
tsedVersion: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
16
|
+
file: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
17
|
+
skipPrompt: import("@tsed/schema").JsonSchema<boolean | undefined>;
|
|
13
18
|
}> & Record<string, unknown>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const McpCommand: import("@tsed/cli-core").FactoryTokenProvider<{
|
|
2
|
+
$prompt: any;
|
|
3
|
+
$exec: any;
|
|
4
|
+
token: import("@tsed/cli-core").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
5
|
+
name: string;
|
|
6
|
+
alias?: string;
|
|
7
|
+
description: string;
|
|
8
|
+
args?: {
|
|
9
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
10
|
+
};
|
|
11
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
12
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
13
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
14
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
15
|
+
}>>) | undefined;
|
|
16
|
+
options?: {
|
|
17
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
18
|
+
};
|
|
19
|
+
allowUnknownOption?: boolean;
|
|
20
|
+
enableFeatures?: string[];
|
|
21
|
+
disableReadUpPkg?: boolean;
|
|
22
|
+
bindLogger?: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
$prompt: any;
|
|
25
|
+
$exec: any;
|
|
26
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
27
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
28
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
29
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
30
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
31
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
32
|
+
name: string;
|
|
33
|
+
alias?: string;
|
|
34
|
+
description: string;
|
|
35
|
+
args?: {
|
|
36
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
37
|
+
};
|
|
38
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
39
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
40
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
41
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
42
|
+
}>>) | undefined;
|
|
43
|
+
options?: {
|
|
44
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
45
|
+
};
|
|
46
|
+
allowUnknownOption?: boolean;
|
|
47
|
+
enableFeatures?: string[];
|
|
48
|
+
disableReadUpPkg?: boolean;
|
|
49
|
+
bindLogger?: boolean;
|
|
50
|
+
}> | import("@tsed/cli-core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
51
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
52
|
+
}>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PackageManager } from "@tsed/cli-core";
|
|
2
|
-
import { PlatformType } from "
|
|
3
|
-
import { ProjectConvention } from "
|
|
2
|
+
import { PlatformType } from "../../../interfaces/PlatformType.js";
|
|
3
|
+
import { ProjectConvention } from "../../../interfaces/ProjectConvention.js";
|
|
4
4
|
export declare const ProjectPreferenceSchema: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
5
5
|
convention: import("@tsed/schema").JsonSchema<ProjectConvention>;
|
|
6
6
|
packageManager: import("@tsed/schema").JsonSchema<PackageManager>;
|
|
@@ -8,81 +8,109 @@ export declare const generateTool: import("@tsed/cli-core").FactoryTokenProvider
|
|
|
8
8
|
}>, extra: import("@modelcontextprotocol/sdk/shared/protocol.js").RequestHandlerExtra<import("@modelcontextprotocol/sdk/types.js").ServerRequest, import("@modelcontextprotocol/sdk/types.js").ServerNotification>): Promise<{
|
|
9
9
|
[x: string]: unknown;
|
|
10
10
|
content: ({
|
|
11
|
-
[x: string]: unknown;
|
|
12
11
|
type: "text";
|
|
13
12
|
text: string;
|
|
13
|
+
annotations?: {
|
|
14
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
15
|
+
priority?: number | undefined;
|
|
16
|
+
lastModified?: string | undefined;
|
|
17
|
+
} | undefined;
|
|
14
18
|
_meta?: {
|
|
15
19
|
[x: string]: unknown;
|
|
16
20
|
} | undefined;
|
|
17
21
|
} | {
|
|
18
|
-
[x: string]: unknown;
|
|
19
22
|
type: "image";
|
|
20
23
|
data: string;
|
|
21
24
|
mimeType: string;
|
|
25
|
+
annotations?: {
|
|
26
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
27
|
+
priority?: number | undefined;
|
|
28
|
+
lastModified?: string | undefined;
|
|
29
|
+
} | undefined;
|
|
22
30
|
_meta?: {
|
|
23
31
|
[x: string]: unknown;
|
|
24
32
|
} | undefined;
|
|
25
33
|
} | {
|
|
26
|
-
[x: string]: unknown;
|
|
27
34
|
type: "audio";
|
|
28
35
|
data: string;
|
|
29
36
|
mimeType: string;
|
|
37
|
+
annotations?: {
|
|
38
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
39
|
+
priority?: number | undefined;
|
|
40
|
+
lastModified?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
30
42
|
_meta?: {
|
|
31
43
|
[x: string]: unknown;
|
|
32
44
|
} | undefined;
|
|
33
45
|
} | {
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
type: "resource_link";
|
|
36
|
-
name: string;
|
|
37
46
|
uri: string;
|
|
47
|
+
name: string;
|
|
48
|
+
type: "resource_link";
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
mimeType?: string | undefined;
|
|
51
|
+
annotations?: {
|
|
52
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
53
|
+
priority?: number | undefined;
|
|
54
|
+
lastModified?: string | undefined;
|
|
55
|
+
} | undefined;
|
|
38
56
|
_meta?: {
|
|
39
57
|
[x: string]: unknown;
|
|
40
58
|
} | undefined;
|
|
41
|
-
description?: string | undefined;
|
|
42
|
-
mimeType?: string | undefined;
|
|
43
|
-
title?: string | undefined;
|
|
44
59
|
icons?: {
|
|
45
|
-
[x: string]: unknown;
|
|
46
60
|
src: string;
|
|
47
61
|
mimeType?: string | undefined;
|
|
48
62
|
sizes?: string[] | undefined;
|
|
63
|
+
theme?: "light" | "dark" | undefined;
|
|
49
64
|
}[] | undefined;
|
|
65
|
+
title?: string | undefined;
|
|
50
66
|
} | {
|
|
51
|
-
[x: string]: unknown;
|
|
52
67
|
type: "resource";
|
|
53
68
|
resource: {
|
|
54
|
-
[x: string]: unknown;
|
|
55
|
-
text: string;
|
|
56
69
|
uri: string;
|
|
70
|
+
text: string;
|
|
71
|
+
mimeType?: string | undefined;
|
|
57
72
|
_meta?: {
|
|
58
73
|
[x: string]: unknown;
|
|
59
74
|
} | undefined;
|
|
60
|
-
mimeType?: string | undefined;
|
|
61
75
|
} | {
|
|
62
|
-
[x: string]: unknown;
|
|
63
76
|
uri: string;
|
|
64
77
|
blob: string;
|
|
78
|
+
mimeType?: string | undefined;
|
|
65
79
|
_meta?: {
|
|
66
80
|
[x: string]: unknown;
|
|
67
81
|
} | undefined;
|
|
68
|
-
mimeType?: string | undefined;
|
|
69
82
|
};
|
|
83
|
+
annotations?: {
|
|
84
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
85
|
+
priority?: number | undefined;
|
|
86
|
+
lastModified?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
70
88
|
_meta?: {
|
|
71
89
|
[x: string]: unknown;
|
|
72
90
|
} | undefined;
|
|
73
91
|
})[];
|
|
74
92
|
_meta?: {
|
|
75
93
|
[x: string]: unknown;
|
|
94
|
+
progressToken?: string | number | undefined;
|
|
95
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
96
|
+
taskId: string;
|
|
97
|
+
} | undefined;
|
|
76
98
|
} | undefined;
|
|
77
99
|
structuredContent?: {
|
|
78
100
|
[x: string]: unknown;
|
|
79
101
|
} | undefined;
|
|
80
102
|
isError?: boolean | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
content: never[];
|
|
105
|
+
structuredContent: {
|
|
106
|
+
code: string;
|
|
107
|
+
message: any;
|
|
108
|
+
};
|
|
81
109
|
}>;
|
|
82
110
|
_meta?: Record<string, unknown> | undefined;
|
|
83
111
|
description?: string | undefined;
|
|
84
|
-
title?: string | undefined;
|
|
85
112
|
annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
|
|
113
|
+
title?: string | undefined;
|
|
86
114
|
token?: import("@tsed/cli-core").TokenProvider;
|
|
87
115
|
name: string;
|
|
88
116
|
}>;
|
|
@@ -6,81 +6,109 @@ export declare const getTemplateTool: import("@tsed/di").FactoryTokenProvider<{
|
|
|
6
6
|
}>, extra: import("@modelcontextprotocol/sdk/shared/protocol.js").RequestHandlerExtra<import("@modelcontextprotocol/sdk/types.js").ServerRequest, import("@modelcontextprotocol/sdk/types.js").ServerNotification>): Promise<{
|
|
7
7
|
[x: string]: unknown;
|
|
8
8
|
content: ({
|
|
9
|
-
[x: string]: unknown;
|
|
10
9
|
type: "text";
|
|
11
10
|
text: string;
|
|
11
|
+
annotations?: {
|
|
12
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
13
|
+
priority?: number | undefined;
|
|
14
|
+
lastModified?: string | undefined;
|
|
15
|
+
} | undefined;
|
|
12
16
|
_meta?: {
|
|
13
17
|
[x: string]: unknown;
|
|
14
18
|
} | undefined;
|
|
15
19
|
} | {
|
|
16
|
-
[x: string]: unknown;
|
|
17
20
|
type: "image";
|
|
18
21
|
data: string;
|
|
19
22
|
mimeType: string;
|
|
23
|
+
annotations?: {
|
|
24
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
25
|
+
priority?: number | undefined;
|
|
26
|
+
lastModified?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
20
28
|
_meta?: {
|
|
21
29
|
[x: string]: unknown;
|
|
22
30
|
} | undefined;
|
|
23
31
|
} | {
|
|
24
|
-
[x: string]: unknown;
|
|
25
32
|
type: "audio";
|
|
26
33
|
data: string;
|
|
27
34
|
mimeType: string;
|
|
35
|
+
annotations?: {
|
|
36
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
37
|
+
priority?: number | undefined;
|
|
38
|
+
lastModified?: string | undefined;
|
|
39
|
+
} | undefined;
|
|
28
40
|
_meta?: {
|
|
29
41
|
[x: string]: unknown;
|
|
30
42
|
} | undefined;
|
|
31
43
|
} | {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
type: "resource_link";
|
|
34
|
-
name: string;
|
|
35
44
|
uri: string;
|
|
45
|
+
name: string;
|
|
46
|
+
type: "resource_link";
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
mimeType?: string | undefined;
|
|
49
|
+
annotations?: {
|
|
50
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
51
|
+
priority?: number | undefined;
|
|
52
|
+
lastModified?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
36
54
|
_meta?: {
|
|
37
55
|
[x: string]: unknown;
|
|
38
56
|
} | undefined;
|
|
39
|
-
description?: string | undefined;
|
|
40
|
-
mimeType?: string | undefined;
|
|
41
|
-
title?: string | undefined;
|
|
42
57
|
icons?: {
|
|
43
|
-
[x: string]: unknown;
|
|
44
58
|
src: string;
|
|
45
59
|
mimeType?: string | undefined;
|
|
46
60
|
sizes?: string[] | undefined;
|
|
61
|
+
theme?: "light" | "dark" | undefined;
|
|
47
62
|
}[] | undefined;
|
|
63
|
+
title?: string | undefined;
|
|
48
64
|
} | {
|
|
49
|
-
[x: string]: unknown;
|
|
50
65
|
type: "resource";
|
|
51
66
|
resource: {
|
|
52
|
-
[x: string]: unknown;
|
|
53
|
-
text: string;
|
|
54
67
|
uri: string;
|
|
68
|
+
text: string;
|
|
69
|
+
mimeType?: string | undefined;
|
|
55
70
|
_meta?: {
|
|
56
71
|
[x: string]: unknown;
|
|
57
72
|
} | undefined;
|
|
58
|
-
mimeType?: string | undefined;
|
|
59
73
|
} | {
|
|
60
|
-
[x: string]: unknown;
|
|
61
74
|
uri: string;
|
|
62
75
|
blob: string;
|
|
76
|
+
mimeType?: string | undefined;
|
|
63
77
|
_meta?: {
|
|
64
78
|
[x: string]: unknown;
|
|
65
79
|
} | undefined;
|
|
66
|
-
mimeType?: string | undefined;
|
|
67
80
|
};
|
|
81
|
+
annotations?: {
|
|
82
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
83
|
+
priority?: number | undefined;
|
|
84
|
+
lastModified?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
68
86
|
_meta?: {
|
|
69
87
|
[x: string]: unknown;
|
|
70
88
|
} | undefined;
|
|
71
89
|
})[];
|
|
72
90
|
_meta?: {
|
|
73
91
|
[x: string]: unknown;
|
|
92
|
+
progressToken?: string | number | undefined;
|
|
93
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
94
|
+
taskId: string;
|
|
95
|
+
} | undefined;
|
|
74
96
|
} | undefined;
|
|
75
97
|
structuredContent?: {
|
|
76
98
|
[x: string]: unknown;
|
|
77
99
|
} | undefined;
|
|
78
100
|
isError?: boolean | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
content: never[];
|
|
103
|
+
structuredContent: {
|
|
104
|
+
code: string;
|
|
105
|
+
message: any;
|
|
106
|
+
};
|
|
79
107
|
}>;
|
|
80
108
|
_meta?: Record<string, unknown> | undefined;
|
|
81
109
|
description?: string | undefined;
|
|
82
|
-
title?: string | undefined;
|
|
83
110
|
annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
|
|
111
|
+
title?: string | undefined;
|
|
84
112
|
token?: import("@tsed/di").TokenProvider;
|
|
85
113
|
name: string;
|
|
86
114
|
}>;
|