@outerlayer/cli 0.38.0-next.20261111024231 → 0.38.0-next.20261111030822

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.
@@ -1 +1 @@
1
- {"id":"2026-11-11T02:49:00.927Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-11T03:14:31.644Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -3416,9 +3416,19 @@ new Command();
3416
3416
  function isEphemeralBin(bin) {
3417
3417
  return packageRunnerOf(bin) !== void 0;
3418
3418
  }
3419
+ var RUNNER_VERSION_BIN = /^(.*)[\\/]versions[\\/][^\\/]+([\\/]node_modules[\\/]@outerlayer[\\/]cli[\\/]dist[\\/]index\.js)$/;
3420
+ function runnerCurrentBin(bin) {
3421
+ const match = RUNNER_VERSION_BIN.exec(bin);
3422
+ if (match === null) return void 0;
3423
+ const viaCurrent = join(match[1], "current") + match[2];
3424
+ return existsSync(viaCurrent) ? viaCurrent : void 0;
3425
+ }
3419
3426
  function initHookBin(opts) {
3420
3427
  const { runningBin } = opts;
3421
- if (opts.remove || !isAbsolute(runningBin) || !isEphemeralBin(runningBin) || !existsSync(runningBin)) return runningBin;
3428
+ if (opts.remove) return runningBin;
3429
+ const viaCurrent = runnerCurrentBin(runningBin);
3430
+ if (viaCurrent !== void 0) return viaCurrent;
3431
+ if (!isAbsolute(runningBin) || !isEphemeralBin(runningBin) || !existsSync(runningBin)) return runningBin;
3422
3432
  return installCliCopy({ home: opts.home, sourceBin: runningBin }).bin;
3423
3433
  }
3424
3434
  var STALE_FILE_MS = 7 * 24 * 60 * 60 * 1e3;
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-KV3JO5YD.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-LB3VTEIW.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-XWXX6PJD.js');
28
+ var { runCli } = await import('./cli-GXIDG2NL.js');
29
29
  await runCli(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerlayer/cli",
3
- "version": "0.38.0-next.20261111024231",
3
+ "version": "0.38.0-next.20261111030822",
4
4
  "description": "OuterLayer CLI — commands: init, claude, opencode, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, run, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Magu Studios, Inc.",