@yawlabs/mcp 0.66.1 → 0.66.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/index.js +13 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -241,6 +241,7 @@ function validateEntry2(entry, warnings) {
241
241
  ) : void 0;
242
242
  const url = typeof e.url === "string" ? e.url : void 0;
243
243
  const description = typeof e.description === "string" ? e.description : void 0;
244
+ const runtime = e.runtime === "oam" || e.runtime === "node" ? e.runtime : void 0;
244
245
  const isActive = e.isActive !== false;
245
246
  const id = typeof e.id === "string" && e.id.length > 0 ? e.id : `local-${namespace}`;
246
247
  return {
@@ -254,7 +255,8 @@ function validateEntry2(entry, warnings) {
254
255
  env,
255
256
  url,
256
257
  isActive,
257
- description
258
+ description,
259
+ runtime
258
260
  };
259
261
  }
260
262
  async function readBundlesAt(path5, warnings) {
@@ -4004,7 +4006,7 @@ async function runUpgrade(opts = {}) {
4004
4006
  return { exitCode: 3, lines };
4005
4007
  }
4006
4008
  function readCurrentVersion() {
4007
- return true ? "0.66.1" : "dev";
4009
+ return true ? "0.66.3" : "dev";
4008
4010
  }
4009
4011
 
4010
4012
  // src/usage-hints.ts
@@ -4066,7 +4068,7 @@ function selectFlakyNamespaces(entries, limit) {
4066
4068
  }
4067
4069
 
4068
4070
  // src/doctor-cmd.ts
4069
- var VERSION = true ? "0.66.1" : "dev";
4071
+ var VERSION = true ? "0.66.3" : "dev";
4070
4072
  function isPersistenceDisabled(env) {
4071
4073
  const raw = env.YAW_MCP_DISABLE_PERSISTENCE;
4072
4074
  return raw !== void 0 && raw !== "" && (raw === "1" || raw.toLowerCase() === "true");
@@ -6874,7 +6876,7 @@ function defaultSpawn2(cmd, args) {
6874
6876
  async function maybeAutoUpgrade(deps = {}) {
6875
6877
  const optOut = process.env.YAW_MCP_AUTO_UPGRADE;
6876
6878
  if (optOut === "0" || optOut?.toLowerCase() === "false") return;
6877
- const current = deps.currentVersion ?? (true ? "0.66.1" : "dev");
6879
+ const current = deps.currentVersion ?? (true ? "0.66.3" : "dev");
6878
6880
  if (current === "dev") return;
6879
6881
  const method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(deps.argvPath ?? process.argv[1]);
6880
6882
  const latest = await (deps.fetchLatestImpl ?? fetchLatestVersion2)();
@@ -9437,9 +9439,12 @@ function packageName(spec) {
9437
9439
  return at === -1 ? spec : spec.slice(0, at);
9438
9440
  }
9439
9441
  var oamBinCache;
9442
+ function winNormalize(p, platform = process.platform) {
9443
+ return platform === "win32" ? p.replace(/\//g, "\\") : p;
9444
+ }
9440
9445
  function oamBin() {
9441
9446
  if (oamBinCache !== void 0) return oamBinCache;
9442
- const bin = process.env.OAM_BIN || (process.platform === "win32" ? "oam.exe" : "oam");
9447
+ const bin = winNormalize(process.env.OAM_BIN || (process.platform === "win32" ? "oam.exe" : "oam"));
9443
9448
  try {
9444
9449
  execFileSync(bin, ["--version"], { stdio: "ignore" });
9445
9450
  oamBinCache = bin;
@@ -9822,7 +9827,7 @@ function categorizeSpawnError(err) {
9822
9827
  }
9823
9828
  async function connectToUpstream(config, onDisconnect, onListChanged) {
9824
9829
  const client = new Client(
9825
- { name: "yaw-mcp", version: true ? "0.66.1" : "dev" },
9830
+ { name: "yaw-mcp", version: true ? "0.66.3" : "dev" },
9826
9831
  { capabilities: {} }
9827
9832
  );
9828
9833
  let transport;
@@ -10157,7 +10162,7 @@ var ConnectServer = class _ConnectServer {
10157
10162
  this.apiUrl = apiUrl5;
10158
10163
  this.token = token5;
10159
10164
  this.server = new Server(
10160
- { name: "yaw-mcp", version: true ? "0.66.1" : "dev" },
10165
+ { name: "yaw-mcp", version: true ? "0.66.3" : "dev" },
10161
10166
  {
10162
10167
  capabilities: {
10163
10168
  tools: { listChanged: true },
@@ -13845,7 +13850,7 @@ if (subcommand === "compliance") {
13845
13850
  `);
13846
13851
  process.exit(0);
13847
13852
  } else if (subcommand === "--version" || subcommand === "-V") {
13848
- process.stdout.write(`yaw-mcp ${true ? "0.66.1" : "dev"}
13853
+ process.stdout.write(`yaw-mcp ${true ? "0.66.3" : "dev"}
13849
13854
  `);
13850
13855
  process.exit(0);
13851
13856
  } else if (subcommand && !subcommand.startsWith("-")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/mcp",
3
- "version": "0.66.1",
3
+ "version": "0.66.3",
4
4
  "mcpName": "io.github.YawLabs/mcp",
5
5
  "description": "Yaw MCP -- MCP servers, managed. Free to run locally; Yaw Team adds cross-machine sync.",
6
6
  "license": "UNLICENSED",