@yawlabs/mcp 1.0.11 → 1.0.13

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/CHANGELOG.md CHANGED
@@ -2,6 +2,52 @@
2
2
 
3
3
  All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented here. This project uses [semantic versioning](https://semver.org) and a script-gated release flow: `./release.sh <version>` runs lint + typecheck + tests + build, bumps, tags, publishes to npm, and publishes `server.json` to the MCP registry.
4
4
 
5
+ ## 1.0.13 -- Codex CLI works again: `install codex-cli` under smol-toml 1.9.0, and Codex can call the tools it loads
6
+
7
+ Published 2026-09-24, the day after 1.0.12. Five entries below, all measured against real Codex 0.144.0 and 0.156.1. `mcp_connect_exec` reaches a cached tool from the first call of a session. On a fresh install, `find_tool` and `exec` wait for the startup pre-warm. Codex, which never re-lists tools, is told to call loaded tools through `mcp_connect_exec` (#172). The TOML codec accepts smol-toml 1.9.0's null-prototype tables, which had broken `install codex-cli`, `doctor`, `install --list` and `heal` for every Codex config. It also refuses a doubled BOM the way Codex does, and pins the parser to 1.9 patch releases (#171).
8
+
9
+ **Fixed -- `mcp_connect_exec` reaches a cached tool from the first call of a session**
10
+
11
+ `start()` hydrated the persisted tool cache but never built the routing table from it. The later rebuilds all wait on an activation, a config change, auto-load, or a pre-warm that learns something new, so on a machine whose servers were all already cached the table stayed empty. exec looks its steps up there, so the documented "a cached-but-unloaded server is loaded on first use" answered `Unknown tool: <name>. Use mcp_connect_discover ...` instead, until an unrelated activation rebuilt it. The table is now built once `start()` has the config, the cache and the grades. exec is the only way a client that never re-lists tools reaches an upstream tool, and typed's lite `find_tool` -> `exec` flow hit the same wall.
12
+
13
+ **Fixed -- on a fresh install, `find_tool` and `exec` wait for the startup pre-warm instead of answering "nothing"**
14
+
15
+ With no `state.json`, the pre-warm that runs after `initialize` is what learns each server's tools, and nothing waited for it. A first `find_tool` said `No configured server has a tool matching ...` about a configured server's tool, and a first `exec` said `Unknown tool`. Both were measured 1.7 to 5 seconds into a session on real Codex 0.144.0. When the answer would otherwise be "none" and the pre-warm is still running, both now wait for it, for at most 20 seconds, then answer from what it learned. exec waits only after the refusals it decides from the pipeline's shape alone (a meta-tool step, a blocked tool, a bad `$ref`), stops waiting when the call is cancelled, and runs nothing then. The pre-warm rebuilds routes only when its whole sweep ends, so when the bound lapses first, exec rebuilds them from the servers already learned: one slow server no longer keeps a fast one out of reach.
16
+
17
+ **Fixed -- Codex is told to call loaded tools through `mcp_connect_exec`**
18
+
19
+ Codex (`clientInfo.name` `codex-mcp-client`; the CLI, its IDE extension and the ChatGPT desktop app's Codex mode) reads `tools/list` once and only logs `notifications/tools/list_changed`: `logging_client_handler.rs` in both rust-v0.144.0 and rust-v0.156.1. A tool that `mcp_connect_activate` or `mcp_connect_dispatch` loaded mid-session therefore never reached the model. The reply listed it as loaded, and the model's direct call failed inside Codex with `unsupported call: mcp__mcp<tool>`. Both were measured against real Codex 0.144.0 and 0.156.1. For a client in the new `NO_RELIST_CLIENTS` set, the replies of activate and dispatch, and discover's auto-load banner, now carry one line that says so, with an exec call. The call is for one of the tools just loaded, e.g. `{"steps":[{"tool":"memory_read_graph","args":{}}]}`. It names a tool that needs no arguments, a read-only one first, so the call runs as written. When every tool needs arguments, the line says to fill them in and points at `mcp_connect_read_tool`. Continue's IDE extension (`continue-client`) is in the set too. Its source registers no notification handler and lists tools only while connecting. That was read from source, not measured against a running Continue. Every other client's replies are unchanged.
20
+
21
+ **Fixed -- Codex CLI works again under smol-toml 1.9.0: `install codex-cli` writes the file, and `doctor`, `install --list` and `heal` stop calling a valid config.toml malformed**
22
+
23
+ smol-toml 1.9.0, published 2026-09-22, returns every table it parses with a null prototype (its release notes: "the objects returned by the library now have a _null prototype_"). The check that decides whether a parsed TOML value is a table accepted `Object.prototype` only, so under 1.9.0 every table read as "a object, not a table" -- the document root included. On a `config.toml` that Codex itself loads, `doctor` reported ``Codex CLI (user): exists but TOML is malformed -- install refuses to overwrite it; fix the TOML by hand, or move the file aside, then run `yaw-mcp install codex-cli` `` and ended on `Warnings above need attention.` (the "Warnings need attention." in Yaw Terminal's MCP panel), `install --list` showed the row as `malformed`, and `heal` listed the file under `could not be checked`, so a dead entry in it was never re-pointed. Moving the file aside, as the warning said, did not help: `install codex-cli` refused to write even a new file -- `failed to splice the "mcp" entry into ...config.toml (...config.toml could not be created (the edit left "" as a object, not a table)). Refusing to overwrite.`, exit 1.
24
+
25
+ The dependency range was `^1.8.0`, so every install resolved after 2026-09-22 got 1.9.0 -- `npx -y @yawlabs/mcp@latest`, a fresh `npm i -g`, and the copy Yaw Terminal 2.1.7 bundles -- while this repo's lockfile kept the suite on 1.8.0, where it passed. Run against 1.9.0, 170 of the 267 tests in the TOML codec, Codex CLI and heal suites fail. The check now accepts either plain-object prototype (arrays and `TomlDate` still fail it), and a test pins both prototypes directly instead of through whichever version the lockfile resolves. The range moves to `~1.9.0`: the suite runs on the parser users get -- 1.9.0 also carries the fix for GHSA-r4xh-jqrq-34v2 -- and a future minor release cannot reach users untested the way 1.9.0 did. JSON and JSONC clients were never affected: their files go through jsonc-parser. Yaw Terminal users get the fix when the app bundles this release; until then `npx -y @yawlabs/mcp@latest install codex-cli` works once this version is published.
26
+
27
+ **Fixed -- a `config.toml` opened by two byte-order marks reads as malformed, as Codex reads it**
28
+
29
+ smol-toml 1.9.0 also strips one leading BOM itself. This codec already strips one before parsing, so a file opening with two BOMs -- which an editor or a PowerShell 5.1 re-encode can leave -- began to parse, while Codex 0.144.0 refuses it (`failed to load configuration`). `doctor` and `install --list` called that file healthy, and `install` wrote into a config Codex will not load. The parse now refuses a second BOM with `a second byte-order mark (U+FEFF) opens the file; Codex refuses it -- delete it`. One BOM, which Notepad writes by default, reads as before.
30
+
31
+ ## 1.0.12 -- `yaw-mcp secrets reset` is the way out of a forgotten vault passphrase, and `doctor` says whether the passphrase it sees unlocks the vault
32
+
33
+ Published 2026-09-23, two days after 1.0.11. Three entries below: the new `secrets reset` verb (#167), which moves the vault aside, lists its entry names and starts a new one under a new passphrase, and refuses when the passphrase it is given already opens the vault; the SECRET VAULT passphrase line in `doctor` gains its unlocks / does-not-unlock / marker-corrupt states; and under `--json` the two stderr warnings that were still prose become JSON lines.
34
+
35
+ **Added -- `yaw-mcp secrets reset`: the way out of a forgotten vault passphrase**
36
+
37
+ The vault at `~/.yaw-mcp/secrets.json` holds AES-GCM ciphertexts under a key derived from the passphrase alone (scrypt, `src/secrets-crypto.ts`); there is no server, no recovery key and no email, so a forgotten passphrase means the secrets are gone -- by design. What was not by design is that nothing said so and nothing led back to a working vault: every `secrets set` answered `wrong passphrase for this vault (decryption failed)` and exited 1, nothing pointed at the way out, and the only recovery was knowing to delete the file by hand and re-enter every secret from memory, without a list of what was in it (#167).
38
+
39
+ `yaw-mcp secrets reset` is that way back. It prints the entry names the vault holds (plaintext keys, so no passphrase is needed -- they are the list to re-enter), asks for the word `RESET` on a TTY (any case; a reflexive `y` is a no) or takes `--force` from a script, and without `--force` refuses with exit 2 when stdin or stdout is not a TTY, the way `remove` does. It moves the old file aside as `secrets.json.reset-<timestamp>` next to the vault (the ISO instant with its colons replaced by dashes, since `:` is illegal in a Windows file name; `-2`, `-3` follow if the name is taken) so a passphrase remembered later still opens it, and writes an empty vault under a new passphrase -- confirmed twice on the TTY under rotate's `New vault passphrase` labels, never the bare `Vault passphrase` an unlock prompt shows, or `YAW_MCP_VAULT_PASSPHRASE` when it is set. The new vault carries its verification marker from the start, so the passphrase chosen at reset is the one every later command verifies against; an empty vault without the marker would have accepted anything and let the next `set` establish a different one. It refuses, with the vault untouched, when the passphrase it is given already opens the vault -- whether that came from the env var (refused before RESET is asked for) or was typed from memory at the new-passphrase prompt -- because moving a working vault aside for an empty one under the same passphrase is pure loss; `rotate` and `remove` are what that user wants. When the passphrase is right and only the vault's check marker is damaged -- the state every command refuses with `verification token ("check") is corrupt` -- it refuses the same way and prints the hand-fix (delete the `check` key; the next `set` re-stamps it) rather than pointing at a `rotate` that refuses that vault too. A vault the other commands refuse as corrupt can be reset too: the names are read leniently, and when they cannot be read the output says so instead of listing nothing.
40
+
41
+ The old vault is copied aside and the new one written over it through the same atomic write every other action uses, so the vault path is never absent, a failed write leaves the old vault exactly as it was (the copy is removed, or named if it cannot be), and a symlinked vault is written through as `set` writes it rather than severed. The changed-on-disk guard the other mutating actions run before their save runs here too, after the prompts. Afterwards a running yaw-mcp server keeps the passphrase it started with and needs a restart (or its in-session prompt answered with the new one), and a `YAW_MCP_VAULT_PASSPHRASE` in a client config's `env` block still holds the old value; the command says both on stderr, as one `{"warning":"vault-reset"}` line under `--json`. `--json` reports `{ ok, path, moved_to, entries, unreadable }`, with `entries` null and `unreadable` the reason when the names could not be read. `secrets --help` and the README gain a "Forgot the passphrase?" paragraph, shell completion offers the action, and the wrong-passphrase error and the corrupt-entry hint now name `secrets reset` as the way to start over.
42
+
43
+ **Added -- `doctor` says whether the passphrase it can see unlocks the vault**
44
+
45
+ The SECRET VAULT section reported the passphrase as set or not set, so a stale or mistyped `YAW_MCP_VAULT_PASSPHRASE` -- the state the broker refuses a spawn over with "does not unlock the vault" -- read as healthy there. The line now has four states: set and unlocks the vault; set but does NOT unlock it, with the pointer at the client config's `env` block (doctor sees this shell's, which can differ) and at `secrets reset` if the passphrase is forgotten; set and right, but the vault's check marker is corrupt, so nothing opens until the `check` key is deleted by hand and the next `set` re-stamps it (never a pointer at `reset` for a vault that needs one key removed); and set but unverifiable (no readable vault, or one with no marker and no entries, which accepts any passphrase). It costs one scrypt derivation when a passphrase is set and the derived key is dropped at once; the section stays informational and the exit code does not move. `--json` gains `vault.passphraseUnlocks` (`true`, `false` or `null`) and `vault.checkMarkerCorrupt`. doctor and `reset` share one three-valued check for "is this the vault's passphrase" (`checkVaultPassphrase` in `secrets-vault.ts`: opens, marker-corrupt, wrong) and one wording of the marker hand-fix, rather than each carrying a copy of "unlock, but read the damaged-marker error as a right passphrase".
46
+
47
+ **Fixed -- under `--json`, the short-passphrase warning and the fresh-vault nudge are JSON lines**
48
+
49
+ `secrets --help` promised that stderr under `--json` is one JSON object per line, and the schema-behind notice kept it. Two lines did not: the "shorter than 12 characters" warning and the guidance printed when `set` creates the vault were prose, and the first fires at the passphrase step -- ahead of a `{"ok":false}` envelope from the changed-on-disk re-check or a failed write -- so a wrapper parsing stderr broke on a warning rather than on anything the command did. They are `{"warning":"short-passphrase",...}` and `{"warning":"vault-created",...}` lines under `--json` now, prose otherwise, and the help text lists what the warning lines cover.
50
+
5
51
  ## 1.0.11 -- the oam floor moves to 0.16.4, the vault passphrase is never typed into a visible field, and one slow `oam --version` no longer parks every sidecar on node
6
52
 
7
53
  Published 2026-09-21, the day after 1.0.10, alongside oam 0.16.4. Eleven entries below: the floor moves to 0.16.4 -- the first move made by `npm run verify:oam-floor`, which now is the one thing that raises it, in place of `release.sh` mirroring whatever oam last published; the startup heal gains its off switch and reads every client config `doctor` does (the npx-cache pre-warm it replaced never ran and is removed); the in-session vault prompt moves onto a masked page served on 127.0.0.1 and the CLI refuses to prompt where echo cannot be turned off; a timed-out oam probe is retried once, the heap-cap hint stops naming a default it cannot know, and the below-floor advice says to restart a running broker. This file and the README also catch up with 1.0.3 through 1.0.10, whose headings were written here, late.
package/README.md CHANGED
@@ -356,10 +356,11 @@ Headers are resolved through the same fail-closed path: a missing or malformed r
356
356
  **Where the passphrase comes from.** Three ways, in the order you'll meet them:
357
357
 
358
358
  1. **`YAW_MCP_VAULT_PASSPHRASE` in yaw-mcp's own env** -- the `env` block of the *yaw-mcp* entry in your MCP client config, not the upstream server's (yaw-mcp strips its own secrets from the env of every child it starts: every server it spawns, the npm runs behind its self-upgrade and the daily sidecar refresh, and the compliance suite). This is the only option for a spawn, which happens over stdio with no terminal to prompt on.
359
- 2. **An in-session prompt.** If your client supports MCP [elicitation](https://modelcontextprotocol.io/specification/server/elicitation), a locked vault asks for the passphrase and retries the server. The passphrase is never typed into your client's dialog: it goes into a masked field on a one-shot page yaw-mcp serves on `127.0.0.1`. A client with URL-mode elicitation opens that page from its own prompt. A client with form mode only (Claude Code, for one) asks whether to open it, and on yes yaw-mcp opens it in your default browser; with no browser to open (no graphical session), the call fails and names the env var instead. The page takes one submission and expires after 3 minutes. A mistyped passphrase gets one more try per session; a decline stops the asking. It's held in memory for that session only -- never written to disk, and never handed to the server being started.
360
- 3. **The CLI prompt**, for `yaw-mcp secrets` runs: no-echo on a real TTY. If the terminal will not switch echo off, the prompt refuses rather than show what you type. Note that Git Bash/MSYS can't offer one (Node sees pipes, not a TTY) -- use PowerShell, `winpty`, or the env var there.
359
+ 2. **An in-session prompt for the vault.** If your client supports MCP [elicitation](https://modelcontextprotocol.io/specification/server/elicitation), a locked vault asks for the passphrase and retries the server. The passphrase is never typed into your client's dialog: it goes into a masked field on a one-shot page yaw-mcp serves on `127.0.0.1`. A client with URL-mode elicitation opens that page from its own prompt. A client with form mode only (Claude Code, for one) asks whether to open it, and on yes yaw-mcp opens it in your default browser; with no browser to open (no graphical session), the call fails and names the env var instead. The page takes one submission and expires after 3 minutes. A mistyped passphrase gets one more try per session; a decline stops the asking. It's held in memory for that session only -- never written to disk, and never handed to the server being started.
360
+ 3. **An in-session prompt for a child's own missing credential.** The same masked page (and the same URL / form mode rules above) is used when a child server's stderr names a key yaw-mcp does not have: a `GITHUB_TOKEN is required` line, an `AWS_ACCESS_KEY_ID is required` line, and the like. One masked field per missing key, the same URL-mode completion notification, the same page hardening (no CORS, no script, `Cache-Control: no-store`, 256-bit random token, Host header check, 3-minute TTL). The value lands in the child's env for the session -- not the vault slot, and not any other server. A decline ends the asking for the session; a no-page or no-browser is a wall that latches the same way; an expired page keeps the budget since the user may simply have been away.
361
+ 4. **The CLI prompt**, for `yaw-mcp secrets` runs: no-echo on a real TTY. If the terminal will not switch echo off, the prompt refuses rather than show what you type. Note that Git Bash/MSYS can't offer one (Node sees pipes, not a TTY) -- use PowerShell, `winpty`, or the env var there.
361
362
 
362
- `yaw-mcp doctor` has a **SECRET VAULT** section showing what's stored, which servers reference it, and whether a passphrase is available -- start there when a server won't load. It reports names and a yes/no, never a value.
363
+ `yaw-mcp doctor` has a **SECRET VAULT** section showing what's stored, which servers reference it, and whether the passphrase it can see is set and unlocks the vault -- start there when a server won't load. It reports names and a yes/no, never a value.
363
364
 
364
365
  ```bash
365
366
  yaw-mcp secrets set <name> # store a value (no-echo prompt, or --value/--stdin)
@@ -368,11 +369,14 @@ yaw-mcp secrets list # show entry NAMES only (values stay encrypted)
368
369
  yaw-mcp secrets remove <name> # delete an entry
369
370
  yaw-mcp secrets lock # forget this process's cached passphrase -- effectively a no-op from the CLI; cannot reach a running server or change the vault
370
371
  yaw-mcp secrets rotate # re-encrypt the whole vault under a NEW passphrase
372
+ yaw-mcp secrets reset # forgot the passphrase? move the vault aside, list its entry names, start a new one
371
373
  yaw-mcp secrets audit [--secret NAME] [--server NS] [--json] # who consumed which secret, when
372
374
  ```
373
375
 
374
376
  The passphrase derives the key via scrypt and is cached in memory for one process; the on-disk file holds only ciphertext (AES-256-GCM, per-entry IV + tag, one vault salt). `rotate` decrypts every entry first and aborts untouched if any fails -- and it re-wraps the **encryption**, not the underlying tokens (a leaked token is still leaked; rotate it at its source). `audit` reads an append-only `0600` NDJSON log of secret NAME + namespace + timestamp -- never a value -- and writes fail-open so a broken log never blocks a spawn.
375
377
 
378
+ **Forgot the passphrase?** There is no recovery: the file holds only ciphertext under a key derived from the passphrase, and nothing else -- no server, no recovery key -- can open it. `yaw-mcp secrets reset` is the way back to a working vault. It prints the entry names the vault holds (plaintext keys, so no passphrase is needed) so you know what to set again, asks you to type `RESET` (or takes `--force` from a script; without it, no TTY means a refusal), moves the old file aside as `secrets.json.reset-<timestamp>` next to the vault -- it still opens under the old passphrase, should that turn up -- and creates an empty vault under a new passphrase, confirmed twice on a TTY or taken from `YAW_MCP_VAULT_PASSPHRASE` when it is set. It refuses when the passphrase it is given already opens the vault: that is `rotate`, not a reset. Afterwards, a yaw-mcp server that is already running keeps the passphrase it started with and needs a restart, and a `YAW_MCP_VAULT_PASSPHRASE` in a client config's `env` block still holds the old value. `yaw-mcp doctor` says whether the passphrase it can see unlocks the vault.
379
+
376
380
  **Threat model.** The vault protects the on-disk file against offline brute-force after exfiltration (stolen laptop, leaked backup): useless without the passphrase, tamper-evident via GCM. It does **not** defend against a process running as you while the passphrase is cached, a keylogger, or a value already leaked at its source.
377
381
 
378
382
  ## Runtime detection & `uv` bootstrap
@@ -406,7 +410,7 @@ Common ones (run `yaw-mcp --help` for the full list):
406
410
  |----------|-------------|
407
411
  | `YAW_MCP_SERVER_CAP` | Max concurrently active servers. Default `6`; `0` disables the cap. Counts servers that are loaded and advertising tools, not upstream processes: startup pre-warm briefly spawns servers it never advertises (see `YAW_MCP_PREWARM`), so on a first session the live child count can exceed this by up to the pre-warm batch size of three, each extra child closing as soon as its tool list is read. |
408
412
  | `YAW_MCP_MIN_COMPLIANCE` | Minimum grade (`A`-`F`) an installed server must report before `activate` loads it. |
409
- | `YAW_MCP_VAULT_PASSPHRASE` | Passphrase for the local secret vault. Required for spawn-time `${secret:NAME}` substitution -- set it in yaw-mcp's own env, not the upstream server's. Clients supporting elicitation prompt for it instead. |
413
+ | `YAW_MCP_VAULT_PASSPHRASE` | Passphrase for the local secret vault. Required for spawn-time `${secret:NAME}` substitution -- set it in yaw-mcp's own env, not the upstream server's. Clients supporting elicitation prompt for it instead. When set, `yaw-mcp secrets reset` keys the fresh vault it creates under it. |
410
414
  | `YAW_MCP_TRUST_PROJECT` | `1` skips the consent check on a project-local `.yaw-mcp/bundles.json` and loads it unconditionally. CI/automation only -- it lets any repo you run yaw-mcp inside spawn commands as you. Default: the file must be approved with `yaw-mcp trust`. |
411
415
  | `YAW_MCP_AUTO_ACTIVATE` | `0` disables discover auto-loading a clearly-winning server. Default on. |
412
416
  | `YAW_MCP_AUTO_UPGRADE` | `0` disables the background self-upgrade check at startup. Default on. |
@@ -445,4 +449,4 @@ The source is published so you can read and audit it before running it -- `yaw-m
445
449
  - [@yawlabs/mcp-compliance](https://www.npmjs.com/package/@yawlabs/mcp-compliance) -- test your MCP servers for spec compliance
446
450
  - [CHANGELOG](./CHANGELOG.md) -- release notes
447
451
  - [GitHub](https://github.com/YawLabs/mcp) -- source and issues
448
- - [![Follow @TokenLimitNews on X](https://img.shields.io/badge/follow-%40TokenLimitNews-000000?logo=x&logoColor=white)](https://x.com/TokenLimitNews)
452
+ - [![Follow @YawLabs on X](https://img.shields.io/badge/follow-%40YawLabs-000000?logo=x&logoColor=white)](https://x.com/YawLabs)
@@ -9,7 +9,7 @@ import {
9
9
  readCheckMemo,
10
10
  recordAttemptAt,
11
11
  writeCheckMemo
12
- } from "./chunk-FIEXTOHT.js";
12
+ } from "./chunk-JSNVFUDY.js";
13
13
  export {
14
14
  acquireUpgradeLock,
15
15
  attemptedRecentlyAt,
@@ -1476,8 +1476,12 @@ function stripBom2(raw) {
1476
1476
  return raw.slice(bomOffset(raw));
1477
1477
  }
1478
1478
  function parseTomlConfig(raw) {
1479
+ const text = stripBom2(raw);
1480
+ if (text.charCodeAt(0) === 65279) {
1481
+ return raiseParse("a second byte-order mark (U+FEFF) opens the file; Codex refuses it -- delete it", 1, 1);
1482
+ }
1479
1483
  try {
1480
- return parseTomlText(stripBom2(raw), PARSE_OPTIONS);
1484
+ return parseTomlText(text, PARSE_OPTIONS);
1481
1485
  } catch (e) {
1482
1486
  if (e instanceof TomlError) {
1483
1487
  const reason = e.message.split("\n")[0].replace(/^Invalid TOML document:\s*/, "");
@@ -1490,7 +1494,9 @@ function raiseParse(reason, line, column) {
1490
1494
  throw new TomlConfigError(reason, typeof line === "number" ? line : 0, typeof column === "number" ? column : 0);
1491
1495
  }
1492
1496
  function isTomlTable(value) {
1493
- return typeof value === "object" && value !== null && Object.getPrototypeOf(value) === Object.prototype;
1497
+ if (typeof value !== "object" || value === null) return false;
1498
+ const proto = Object.getPrototypeOf(value);
1499
+ return proto === Object.prototype || proto === null;
1494
1500
  }
1495
1501
  function describeTomlShape(value) {
1496
1502
  if (value === null) return "null";
@@ -4557,7 +4563,7 @@ async function oamFloorLines(probe) {
4557
4563
  }
4558
4564
  async function defaultRunningPrefix(argvPath) {
4559
4565
  if (process.env.VITEST) return null;
4560
- const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-7I36MDXV.js");
4566
+ const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-H5NMT5BV.js");
4561
4567
  return detectRunningInstallPrefix2(argvPath);
4562
4568
  }
4563
4569
  async function defaultSpawn(cmd, args, cwd) {
@@ -4618,7 +4624,7 @@ async function runUpgrade(opts = {}) {
4618
4624
  if (method === "global-npm") {
4619
4625
  const rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
4620
4626
  if (rawPrefix !== null) {
4621
- const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-7I36MDXV.js");
4627
+ const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-H5NMT5BV.js");
4622
4628
  const spawnForm = quoteShellArgIfNeeded2(rawPrefix, opts.platform);
4623
4629
  const displayForm = quoteArgForDisplay2(rawPrefix, opts.platform);
4624
4630
  if (spawnForm !== null && displayForm !== null) {
@@ -4735,7 +4741,7 @@ async function runUpgrade(opts = {}) {
4735
4741
  return { exitCode: 3, lines };
4736
4742
  }
4737
4743
  function readCurrentVersion() {
4738
- return true ? "1.0.11" : "dev";
4744
+ return true ? "1.0.13" : "dev";
4739
4745
  }
4740
4746
 
4741
4747
  // src/auto-upgrade.ts
@@ -5016,7 +5022,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
5016
5022
  }
5017
5023
  async function maybeAutoUpgrade(deps = {}) {
5018
5024
  if (isFeatureDisabled("YAW_MCP_AUTO_UPGRADE")) return;
5019
- const current = deps.currentVersion ?? (true ? "1.0.11" : "dev");
5025
+ const current = deps.currentVersion ?? (true ? "1.0.13" : "dev");
5020
5026
  if (current === "dev") return;
5021
5027
  const argvPath = deps.argvPath ?? process.argv[1];
5022
5028
  const method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(argvPath, realpathSync3, ["unknown", "local-node-modules"]);