@ouro.bot/cli 0.1.0-alpha.451 → 0.1.0-alpha.452

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.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.452",
6
+ "changes": [
7
+ "`ouro doctor` now checks the canonical bundle-local daemon log directory for each agent instead of the obsolete `~/.ouro-cli/logs` path.",
8
+ "Disk health output now names the owning agent for daemon log-size checks, so humans and agents can connect the warning directly to the right bundle and `ouro logs prune` target.",
9
+ "Doctor coverage now locks the bundle-local log path, missing-log-dir warning, and per-agent log-size thresholds."
10
+ ]
11
+ },
4
12
  {
5
13
  "version": "0.1.0-alpha.451",
6
14
  "changes": [
@@ -329,12 +329,7 @@ function checkSecurity(deps) {
329
329
  }
330
330
  function checkDisk(deps) {
331
331
  const checks = [];
332
- // Check daemon logs directory
333
- const logsDir = `${deps.homedir}/.ouro-cli/logs`;
334
- if (!deps.existsSync(logsDir)) {
335
- checks.push({ label: "daemon logs dir", status: "warn", detail: `${logsDir} not found` });
336
- }
337
- else {
332
+ const addLogSizeCheck = (labelPrefix, logsDir) => {
338
333
  let totalSize = 0;
339
334
  try {
340
335
  const files = deps.readdirSync(logsDir);
@@ -353,13 +348,26 @@ function checkDisk(deps) {
353
348
  }
354
349
  const sizeMB = totalSize / (1024 * 1024);
355
350
  if (sizeMB > 500) {
356
- checks.push({ label: "daemon log size", status: "fail", detail: `${sizeMB.toFixed(1)}MB — exceeds 500MB limit` });
351
+ checks.push({ label: `${labelPrefix} daemon log size`, status: "fail", detail: `${sizeMB.toFixed(1)}MB — exceeds 500MB limit` });
357
352
  }
358
353
  else if (sizeMB > 100) {
359
- checks.push({ label: "daemon log size", status: "warn", detail: `${sizeMB.toFixed(1)}MB — consider pruning with \`ouro logs prune\`` });
354
+ checks.push({ label: `${labelPrefix} daemon log size`, status: "warn", detail: `${sizeMB.toFixed(1)}MB — consider pruning with \`ouro logs prune\`` });
355
+ }
356
+ else {
357
+ checks.push({ label: `${labelPrefix} daemon log size`, status: "pass", detail: `${sizeMB.toFixed(1)}MB` });
358
+ }
359
+ };
360
+ const agents = discoverAgents(deps);
361
+ if (agents.length === 0) {
362
+ checks.push({ label: "daemon logs dir", status: "warn", detail: "no agent bundles found for bundle-local logs" });
363
+ }
364
+ for (const agentDir of agents) {
365
+ const logsDir = `${deps.bundlesRoot}/${agentDir}/state/daemon/logs`;
366
+ if (!deps.existsSync(logsDir)) {
367
+ checks.push({ label: `${agentDir} daemon logs dir`, status: "warn", detail: `${logsDir} not found` });
360
368
  }
361
369
  else {
362
- checks.push({ label: "daemon log size", status: "pass", detail: `${sizeMB.toFixed(1)}MB` });
370
+ addLogSizeCheck(agentDir, logsDir);
363
371
  }
364
372
  }
365
373
  // Check AgentBundles root
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.451",
3
+ "version": "0.1.0-alpha.452",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",