frontmcp 0.2.1 → 0.2.2
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/dist/cli.js +8 -4
- package/dist/version.js +1 -1
- package/package.json +5 -5
- package/src/cli.ts +10 -6
- package/src/version.ts +1 -1
package/dist/cli.js
CHANGED
|
@@ -227,7 +227,8 @@ function killQuiet(proc) {
|
|
|
227
227
|
try {
|
|
228
228
|
proc && proc.kill('SIGINT');
|
|
229
229
|
}
|
|
230
|
-
catch (_a) {
|
|
230
|
+
catch (_a) {
|
|
231
|
+
}
|
|
231
232
|
}
|
|
232
233
|
function runDev(opts) {
|
|
233
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -292,6 +293,8 @@ const REQUIRED_DECORATOR_FIELDS = {
|
|
|
292
293
|
module: 'esnext',
|
|
293
294
|
emitDecoratorMetadata: true,
|
|
294
295
|
experimentalDecorators: true,
|
|
296
|
+
strictFunctionTypes: true,
|
|
297
|
+
moduleResolution: 'node',
|
|
295
298
|
};
|
|
296
299
|
const RECOMMENDED_TSCONFIG = {
|
|
297
300
|
compilerOptions: {
|
|
@@ -299,7 +302,8 @@ const RECOMMENDED_TSCONFIG = {
|
|
|
299
302
|
module: REQUIRED_DECORATOR_FIELDS.module,
|
|
300
303
|
emitDecoratorMetadata: REQUIRED_DECORATOR_FIELDS.emitDecoratorMetadata,
|
|
301
304
|
experimentalDecorators: REQUIRED_DECORATOR_FIELDS.experimentalDecorators,
|
|
302
|
-
|
|
305
|
+
strictFunctionTypes: REQUIRED_DECORATOR_FIELDS.strictFunctionTypes,
|
|
306
|
+
moduleResolution: REQUIRED_DECORATOR_FIELDS.moduleResolution,
|
|
303
307
|
strict: true,
|
|
304
308
|
esModuleInterop: true,
|
|
305
309
|
resolveJsonModule: true,
|
|
@@ -491,8 +495,8 @@ function upsertPackageJson(cwd, nameOverride, selfVersion) {
|
|
|
491
495
|
npm: '>=10',
|
|
492
496
|
},
|
|
493
497
|
dependencies: {
|
|
494
|
-
'@frontmcp/sdk': '^0.2.
|
|
495
|
-
'@frontmcp/core': '^0.2.
|
|
498
|
+
'@frontmcp/sdk': '^0.2.2',
|
|
499
|
+
'@frontmcp/core': '^0.2.2',
|
|
496
500
|
zod: '^3.23.8',
|
|
497
501
|
'reflect-metadata': '^0.2.2',
|
|
498
502
|
},
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frontmcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "FrontMCP command line interface",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"prepare": "npm run build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@frontmcp/sdk": "^0.2.
|
|
16
|
-
"@frontmcp/core": "^0.2.
|
|
17
|
-
"@frontmcp/plugins": "^0.2.
|
|
18
|
-
"@frontmcp/adapters": "^0.2.
|
|
15
|
+
"@frontmcp/sdk": "^0.2.2",
|
|
16
|
+
"@frontmcp/core": "^0.2.2",
|
|
17
|
+
"@frontmcp/plugins": "^0.2.2",
|
|
18
|
+
"@frontmcp/adapters": "^0.2.2",
|
|
19
19
|
"tsx": "^4.16.0",
|
|
20
20
|
"typescript": "^5.5.3"
|
|
21
21
|
},
|
package/src/cli.ts
CHANGED
|
@@ -182,7 +182,6 @@ function sanitizeForNpm(name: string): string {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
|
|
185
|
-
|
|
186
185
|
/* --------------------------------- Actions -------------------------------- */
|
|
187
186
|
|
|
188
187
|
function isTsLike(p: string): boolean {
|
|
@@ -190,7 +189,10 @@ function isTsLike(p: string): boolean {
|
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
function killQuiet(proc?: ChildProcess) {
|
|
193
|
-
try {
|
|
192
|
+
try {
|
|
193
|
+
proc && proc.kill('SIGINT');
|
|
194
|
+
} catch {
|
|
195
|
+
}
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
async function runDev(opts: ParsedArgs): Promise<void> {
|
|
@@ -265,6 +267,8 @@ const REQUIRED_DECORATOR_FIELDS = {
|
|
|
265
267
|
module: 'esnext',
|
|
266
268
|
emitDecoratorMetadata: true,
|
|
267
269
|
experimentalDecorators: true,
|
|
270
|
+
strictFunctionTypes: true,
|
|
271
|
+
moduleResolution: 'node',
|
|
268
272
|
} as const;
|
|
269
273
|
|
|
270
274
|
const RECOMMENDED_TSCONFIG = {
|
|
@@ -273,8 +277,8 @@ const RECOMMENDED_TSCONFIG = {
|
|
|
273
277
|
module: REQUIRED_DECORATOR_FIELDS.module,
|
|
274
278
|
emitDecoratorMetadata: REQUIRED_DECORATOR_FIELDS.emitDecoratorMetadata,
|
|
275
279
|
experimentalDecorators: REQUIRED_DECORATOR_FIELDS.experimentalDecorators,
|
|
276
|
-
|
|
277
|
-
moduleResolution:
|
|
280
|
+
strictFunctionTypes: REQUIRED_DECORATOR_FIELDS.strictFunctionTypes,
|
|
281
|
+
moduleResolution: REQUIRED_DECORATOR_FIELDS.moduleResolution,
|
|
278
282
|
strict: true,
|
|
279
283
|
esModuleInterop: true,
|
|
280
284
|
resolveJsonModule: true,
|
|
@@ -463,8 +467,8 @@ async function upsertPackageJson(cwd: string, nameOverride: string | undefined,
|
|
|
463
467
|
npm: '>=10',
|
|
464
468
|
},
|
|
465
469
|
dependencies: {
|
|
466
|
-
'@frontmcp/sdk': '^0.2.
|
|
467
|
-
'@frontmcp/core': '^0.2.
|
|
470
|
+
'@frontmcp/sdk': '^0.2.2',
|
|
471
|
+
'@frontmcp/core': '^0.2.2',
|
|
468
472
|
zod: '^3.23.8',
|
|
469
473
|
'reflect-metadata': '^0.2.2',
|
|
470
474
|
},
|
package/src/version.ts
CHANGED