@ouro.bot/cli 0.1.0-alpha.228 → 0.1.0-alpha.229

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
@@ -2,15 +2,16 @@
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
4
  {
5
- "version": "0.1.0-alpha.228",
5
+ "version": "0.1.0-alpha.229",
6
6
  "changes": [
7
- "refactor(repertoire): credential access layer with encrypted store, vault config types, golden path integration test"
7
+ "fix: BB session key resolution prefers DM (;-;) over group chat (;+;) — alphabetical sort put group chats first, causing proactive messages to land in group chats instead of personal DMs",
8
+ "chore: remove temporary debug traces (send-message-debug.log, friends.get_called event)"
8
9
  ]
9
10
  },
10
11
  {
11
12
  "version": "0.1.0-alpha.227",
12
13
  "changes": [
13
- "fix: direct filesystem name resolution in sendProactiveBlueBubblesMessageToSession"
14
+ "fix: direct filesystem name resolution in sendProactiveBlueBubblesMessageToSession — bypass store.get()/listAll() with raw fs reads on friends directory when store lookup fails"
14
15
  ]
15
16
  },
16
17
  {
@@ -55,9 +55,6 @@ class FileFriendStore {
55
55
  });
56
56
  }
57
57
  async get(id) {
58
- /* v8 ignore start -- temporary debug @preserve */
59
- (0, runtime_1.emitNervesEvent)({ component: "friends", event: "friends.get_called", message: `store.get called`, meta: { id, friendsPath: this.friendsPath } });
60
- /* v8 ignore stop */
61
58
  // Direct UUID lookup
62
59
  const record = await this.readJson(path.join(this.friendsPath, `${id}.json`));
63
60
  if (record)
@@ -441,12 +441,6 @@ exports.sessionToolDefinitions = [
441
441
  const content = args.content;
442
442
  const now = Date.now();
443
443
  const agentName = (0, identity_1.getAgentName)();
444
- /* v8 ignore start -- temporary debug trace @preserve */
445
- try {
446
- fs.appendFileSync("/tmp/send-message-debug.log", JSON.stringify({ ts: new Date().toISOString(), friendId, channel, key, handler: "tools-session" }) + "\n");
447
- }
448
- catch { }
449
- /* v8 ignore stop */
450
444
  // Resolve friend name → UUID if needed
451
445
  /* v8 ignore start -- name resolution: reads real filesystem, tested via live integration @preserve */
452
446
  if (friendId !== "self") {
@@ -598,8 +592,11 @@ exports.sessionToolDefinitions = [
598
592
  const bbDir = path.join(agentRoot, "state", "sessions", friendId, "bluebubbles");
599
593
  if (fs.existsSync(bbDir)) {
600
594
  const files = fs.readdirSync(bbDir).filter((f) => f.endsWith(".json"));
601
- if (files.length > 0) {
602
- resolvedKey = files[0].replace(/\.json$/, "");
595
+ // Prefer individual chats (;-;) over group chats (;+;) for proactive DMs
596
+ const dmFile = files.find((f) => f.includes(";-;"));
597
+ const chosen = dmFile ?? files[0];
598
+ if (chosen) {
599
+ resolvedKey = chosen.replace(/\.json$/, "");
603
600
  }
604
601
  }
605
602
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.228",
3
+ "version": "0.1.0-alpha.229",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",