@outerlayer/cli 0.38.0-next.20261105131925 → 0.38.0-next.20261105132355

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-05T13:27:22.400Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-05T13:41:43.119Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -5764,7 +5764,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5764
5764
  runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
5765
5765
  const { defaultRunnerConfigPath } = await import('./config-J4NNZ2XO.js');
5766
5766
  const { listJobFiles } = await import('./loop-TIX5JGHS.js');
5767
- const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-2OR2R52N.js');
5767
+ const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-XKEW5EOB.js');
5768
5768
  const configPath = opts.config ?? defaultRunnerConfigPath();
5769
5769
  const jobs = listJobFiles(configPath);
5770
5770
  const selected = selectAttempt(jobs, itemArg);
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-KPQGEOPQ.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-RNST4WJH.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-6LEVGWVU.js');
28
+ var { runCli } = await import('./cli-RU4HLUZP.js');
29
29
  await runCli(process.argv);
@@ -13,7 +13,7 @@ import './chunk-352DHUTP.js';
13
13
  import './chunk-QAFR65VC.js';
14
14
  import './chunk-2JIGPSVF.js';
15
15
  import './chunk-Z5GEFMRW.js';
16
- import { existsSync, watch, statSync, createReadStream } from 'fs';
16
+ import { existsSync, watch, statSync, createReadStream, readdirSync } from 'fs';
17
17
  import { join } from 'path';
18
18
 
19
19
  createRequire(import.meta.url);
@@ -52,10 +52,25 @@ function describeAmbiguous(argument, attempts) {
52
52
  const rows = attempts.map(({ job }) => ` organization ${job.organizationId ?? "(none)"} claim ${job.claimId} factory ${job.appId ?? "(none)"} started ${job.startedAt}`);
53
53
  return [`#${argument} is the number of builds of more than one factory. Run \`outerlayer runner logs <claim id>\` with one of these claim ids:`, ...rows].join("\n");
54
54
  }
55
+ function latestJudgeLog(dirPath) {
56
+ let best = 1;
57
+ let name = "judge.log";
58
+ try {
59
+ for (const entry of readdirSync(dirPath)) {
60
+ const group = /^judge-(\d+)\.log$/.exec(entry);
61
+ if (group !== null && Number(group[1]) > best) {
62
+ best = Number(group[1]);
63
+ name = entry;
64
+ }
65
+ }
66
+ } catch {
67
+ }
68
+ return name;
69
+ }
55
70
  function logPathFor(configPath, dirName, job) {
56
71
  const dirPath = join(jobsDir(configPath), dirName);
57
72
  const finished = job.outcome !== void 0 || job.endedAt !== void 0;
58
- const byStage = finished || job.stage === void 0 ? "command.log" : STAGE_LOG[job.stage];
73
+ const byStage = finished || job.stage === void 0 ? "command.log" : job.stage === "judge" ? latestJudgeLog(dirPath) : STAGE_LOG[job.stage];
59
74
  const candidate = join(dirPath, byStage);
60
75
  if (existsSync(candidate)) return candidate;
61
76
  const command = join(dirPath, "command.log");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerlayer/cli",
3
- "version": "0.38.0-next.20261105131925",
3
+ "version": "0.38.0-next.20261105132355",
4
4
  "description": "OuterLayer CLI — commands: init, claude, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, 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.",