@ouro.bot/cli 0.1.0-alpha.650 → 0.1.0-alpha.651

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,12 @@
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.651",
6
+ "changes": [
7
+ "Daemon inter-agent message routing now stores its queue under machine-scoped `~/.ouro-cli/daemon/messages` instead of resolving a no-agent `default.ouro/state/messages` bundle path during daemon startup."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.650",
6
12
  "changes": [
@@ -34,10 +34,14 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.FileMessageRouter = void 0;
37
+ exports.getDaemonMessageRouterDir = getDaemonMessageRouterDir;
37
38
  const fs = __importStar(require("fs"));
38
39
  const path = __importStar(require("path"));
39
40
  const runtime_1 = require("../../nerves/runtime");
40
- const identity_1 = require("../identity");
41
+ const ouro_version_manager_1 = require("../versioning/ouro-version-manager");
42
+ function getDaemonMessageRouterDir(homeDir) {
43
+ return path.join((0, ouro_version_manager_1.getOuroCliHome)(homeDir), "daemon", "messages");
44
+ }
41
45
  function messageId(nowIso) {
42
46
  return `msg-${nowIso.replace(/[^0-9]/g, "")}`;
43
47
  }
@@ -45,7 +49,7 @@ class FileMessageRouter {
45
49
  baseDir;
46
50
  now;
47
51
  constructor(options = {}) {
48
- this.baseDir = options.baseDir ?? (0, identity_1.getAgentMessagesRoot)();
52
+ this.baseDir = options.baseDir ?? getDaemonMessageRouterDir(options.homeDir);
49
53
  this.now = options.now ?? (() => new Date().toISOString());
50
54
  fs.mkdirSync(this.baseDir, { recursive: true });
51
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.650",
3
+ "version": "0.1.0-alpha.651",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",