frontmcp 0.2.1 → 0.2.3

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 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
- moduleResolution: 'node',
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,10 +495,10 @@ function upsertPackageJson(cwd, nameOverride, selfVersion) {
491
495
  npm: '>=10',
492
496
  },
493
497
  dependencies: {
494
- '@frontmcp/sdk': '^0.2.1',
495
- '@frontmcp/core': '^0.2.1',
498
+ '@frontmcp/sdk': '^0.2.3',
499
+ '@frontmcp/core': '^0.2.3',
496
500
  zod: '^3.23.8',
497
- 'reflect-metadata': '^0.2.2',
501
+ 'reflect-metadata': '^0.2.3',
498
502
  },
499
503
  devDependencies: {
500
504
  frontmcp: selfVersion, // exact CLI version used by npx
@@ -514,7 +518,7 @@ function upsertPackageJson(cwd, nameOverride, selfVersion) {
514
518
  merged.type = existing.type || base.type;
515
519
  merged.scripts = Object.assign(Object.assign(Object.assign({}, base.scripts), (existing.scripts || {})), { dev: (_b = (_a = existing.scripts) === null || _a === void 0 ? void 0 : _a.dev) !== null && _b !== void 0 ? _b : base.scripts.dev, build: (_d = (_c = existing.scripts) === null || _c === void 0 ? void 0 : _c.build) !== null && _d !== void 0 ? _d : base.scripts.build, inspect: (_f = (_e = existing.scripts) === null || _e === void 0 ? void 0 : _e.inspect) !== null && _f !== void 0 ? _f : base.scripts.inspect, doctor: (_h = (_g = existing.scripts) === null || _g === void 0 ? void 0 : _g.doctor) !== null && _h !== void 0 ? _h : base.scripts.doctor });
516
520
  merged.engines = Object.assign(Object.assign({}, (existing.engines || {})), { node: ((_j = existing.engines) === null || _j === void 0 ? void 0 : _j.node) || base.engines.node, npm: ((_k = existing.engines) === null || _k === void 0 ? void 0 : _k.npm) || base.engines.npm });
517
- merged.dependencies = Object.assign(Object.assign(Object.assign({}, base.dependencies), (existing.dependencies || {})), { zod: '^3.23.8', 'reflect-metadata': '^0.2.2' });
521
+ merged.dependencies = Object.assign(Object.assign(Object.assign({}, base.dependencies), (existing.dependencies || {})), { zod: '^3.23.8', 'reflect-metadata': '^0.2.3' });
518
522
  merged.devDependencies = Object.assign(Object.assign(Object.assign({}, base.devDependencies), (existing.devDependencies || {})), { frontmcp: selfVersion, tsx: '^4.20.6', typescript: '^5.5.3' });
519
523
  yield writeJSON(pkgPath, merged);
520
524
  console.log(c('green', '✅ Updated package.json (ensured exact frontmcp and pinned versions)'));
package/dist/version.js CHANGED
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.getSelfVersion = getSelfVersion;
5
5
  function getSelfVersion() {
6
- return '0.2.1';
6
+ return '0.2.3';
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontmcp",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
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.1",
16
- "@frontmcp/core": "^0.2.1",
17
- "@frontmcp/plugins": "^0.2.1",
18
- "@frontmcp/adapters": "^0.2.1",
15
+ "@frontmcp/sdk": "^0.2.3",
16
+ "@frontmcp/core": "^0.2.3",
17
+ "@frontmcp/plugins": "^0.2.3",
18
+ "@frontmcp/adapters": "^0.2.3",
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 { proc && proc.kill('SIGINT'); } catch {}
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: 'node',
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,10 +467,10 @@ async function upsertPackageJson(cwd: string, nameOverride: string | undefined,
463
467
  npm: '>=10',
464
468
  },
465
469
  dependencies: {
466
- '@frontmcp/sdk': '^0.2.1',
467
- '@frontmcp/core': '^0.2.1',
470
+ '@frontmcp/sdk': '^0.2.3',
471
+ '@frontmcp/core': '^0.2.3',
468
472
  zod: '^3.23.8',
469
- 'reflect-metadata': '^0.2.2',
473
+ 'reflect-metadata': '^0.2.3',
470
474
  },
471
475
  devDependencies: {
472
476
  frontmcp: selfVersion, // exact CLI version used by npx
@@ -507,7 +511,7 @@ async function upsertPackageJson(cwd: string, nameOverride: string | undefined,
507
511
  ...base.dependencies,
508
512
  ...(existing.dependencies || {}),
509
513
  zod: '^3.23.8',
510
- 'reflect-metadata': '^0.2.2',
514
+ 'reflect-metadata': '^0.2.3',
511
515
  };
512
516
 
513
517
  merged.devDependencies = {
package/src/version.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /* ------------------------ Self-version detection -------------------------- */
2
2
 
3
3
  export function getSelfVersion(): string {
4
- return '0.2.1';
4
+ return '0.2.3';
5
5
  }