lace-mcp 0.0.2-alpha.2 → 0.0.2-alpha.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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -12
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -249,13 +249,13 @@ var init_codexConfig = __esm({
249
249
  // src/install.ts
250
250
  var install_exports = {};
251
251
  __export(install_exports, {
252
- buildCodexTomlBlock: () => buildCodexTomlBlock
252
+ buildCodexTomlBlock: () => buildCodexTomlBlock,
253
+ main: () => main
253
254
  });
254
255
  import { execSync as execSync2 } from "node:child_process";
255
256
  import { existsSync as existsSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2 } from "node:fs";
256
257
  import { homedir as homedir2 } from "node:os";
257
258
  import { join as join3, resolve } from "node:path";
258
- import { pathToFileURL } from "node:url";
259
259
  function parseFlags(args) {
260
260
  const flags = {};
261
261
  for (let i = 0; i < args.length; i++) {
@@ -441,12 +441,9 @@ Installing Lace MCP for ${target}...`);
441
441
  else installCodex(env);
442
442
  console.log('\nDone. Start a new session and say "implement the Lace decision" or type /lace.\n');
443
443
  }
444
- function isCliEntrypoint() {
445
- return process.argv[1] ? import.meta.url === pathToFileURL(process.argv[1]).href : false;
446
- }
447
444
  var TARGETS, PACKAGE_NAME, SKILL_VERSION;
448
445
  var init_install = __esm({
449
- async "src/install.ts"() {
446
+ "src/install.ts"() {
450
447
  "use strict";
451
448
  init_auth();
452
449
  init_codexConfig();
@@ -454,14 +451,14 @@ var init_install = __esm({
454
451
  TARGETS = ["claude", "claude-desktop", "cursor", "codex"];
455
452
  PACKAGE_NAME = "lace-mcp";
456
453
  SKILL_VERSION = 1;
457
- if (isCliEntrypoint()) {
458
- await main();
459
- }
460
454
  }
461
455
  });
462
456
 
463
457
  // src/uninstall.ts
464
458
  var uninstall_exports = {};
459
+ __export(uninstall_exports, {
460
+ main: () => main2
461
+ });
465
462
  import { execSync as execSync3 } from "node:child_process";
466
463
  import { existsSync as existsSync3, readFileSync as readFileSync3, rmSync, writeFileSync as writeFileSync3 } from "node:fs";
467
464
  import { homedir as homedir3 } from "node:os";
@@ -546,7 +543,6 @@ var init_uninstall = __esm({
546
543
  init_paths();
547
544
  TARGETS2 = ["claude", "claude-desktop", "cursor", "codex", "all"];
548
545
  PACKAGE_NAME2 = "lace-mcp";
549
- main2();
550
546
  }
551
547
  });
552
548
 
@@ -22648,9 +22644,11 @@ var init_index = __esm({
22648
22644
  // src/cli.ts
22649
22645
  var command = process.argv[2];
22650
22646
  if (command === "install") {
22651
- await init_install().then(() => install_exports);
22647
+ const { main: main3 } = await Promise.resolve().then(() => (init_install(), install_exports));
22648
+ await main3();
22652
22649
  } else if (command === "uninstall") {
22653
- await Promise.resolve().then(() => (init_uninstall(), uninstall_exports));
22650
+ const { main: main3 } = await Promise.resolve().then(() => (init_uninstall(), uninstall_exports));
22651
+ main3();
22654
22652
  } else if (command === "login") {
22655
22653
  const { browserLogin: browserLogin2 } = await Promise.resolve().then(() => (init_auth(), auth_exports));
22656
22654
  await browserLogin2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lace-mcp",
3
- "version": "0.0.2-alpha.2",
3
+ "version": "0.0.2-alpha.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/cli.js",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "scripts": {
25
25
  "start": "tsx src/index.ts",
26
- "install-claude": "tsx src/install.ts claude",
27
- "install-claude-desktop": "tsx src/install.ts claude-desktop",
28
- "install-cursor": "tsx src/install.ts cursor",
29
- "install-codex": "tsx src/install.ts codex",
26
+ "install-claude": "tsx src/cli.ts install claude",
27
+ "install-claude-desktop": "tsx src/cli.ts install claude-desktop",
28
+ "install-cursor": "tsx src/cli.ts install cursor",
29
+ "install-codex": "tsx src/cli.ts install codex",
30
30
  "build": "rm -rf dist && esbuild src/cli.ts --bundle --platform=node --format=esm --outfile=dist/cli.js"
31
31
  }
32
32
  }