agent-lyceum 0.50.0 → 0.52.0

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.
@@ -6,8 +6,8 @@
6
6
  <meta name="lyceum-token" content="__LYCEUM_TOKEN__" />
7
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
8
  <title>agent-lyceum</title>
9
- <script type="module" crossorigin src="/assets/index-C92kC3HN.js"></script>
10
- <link rel="stylesheet" crossorigin href="/assets/index-DvGpGOU4.css">
9
+ <script type="module" crossorigin src="/assets/index-CRFWCH8w.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-CGaxjULR.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
@@ -111,6 +111,8 @@ async function runCommand(req, res, deps, id) {
111
111
  return send(res, 200, { mode: "short", ...result });
112
112
  }
113
113
  const job = startJob(deps.cli, deps.home, path.join(deps.home, "web-jobs"), id, argv, cwd);
114
+ if (id === "tidy" && typeof b.run === "string" && b.run.trim())
115
+ deps.markRunTidy?.(String(b.project), b.run.trim());
114
116
  send(res, 202, { mode: "detached", jobId: job.id, pid: job.pid });
115
117
  }
116
118
  function answersOf(value) {
@@ -72,6 +72,7 @@ export function createWebHub(factory) {
72
72
  })
73
73
  .catch(() => quota);
74
74
  };
75
+ const projectList = () => [...latest].map(([name, frame]) => ({ name, frame })).sort((a, b) => a.name.localeCompare(b.name));
75
76
  return {
76
77
  start: sync,
77
78
  beat: sync,
@@ -87,9 +88,10 @@ export function createWebHub(factory) {
87
88
  watchers.clear();
88
89
  listeners.clear();
89
90
  },
91
+ snapshot: projectList,
90
92
  subscribe(listener) {
91
93
  listeners.add(listener);
92
- const projects = [...latest].map(([name, frame]) => ({ name, frame })).sort((a, b) => a.name.localeCompare(b.name));
94
+ const projects = projectList();
93
95
  try {
94
96
  listener({ type: "snapshot", projects, ...(quota ? { quota } : {}) });
95
97
  }
package/web/dist/start.js CHANGED
@@ -44,6 +44,11 @@ export async function startWebServer(opts) {
44
44
  attachEvents(hub, req, res);
45
45
  return;
46
46
  }
47
+ if (pathname === "/snapshot" && req.method === "GET") {
48
+ res.writeHead(200, JSON_HEADERS);
49
+ res.end(JSON.stringify({ projects: hub.snapshot() }));
50
+ return;
51
+ }
47
52
  if (pathname === "/summary" && req.method === "POST") {
48
53
  void handleSummary(req, res, hub, opts.factory.summarize).catch(() => {
49
54
  if (res.headersSent)