@ouro.bot/cli 0.1.0-alpha.220 → 0.1.0-alpha.221

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.221",
6
+ "changes": [
7
+ "fix: BB proactive send resolves friend by name when UUID lookup fails — sendProactiveBlueBubblesMessageToSession now falls back to store.listAll() name matching when store.get() returns null. This handles agents passing friend names instead of UUIDs, bypassing the upstream resolution that wasn't working in all contexts."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.220",
6
12
  "changes": [
@@ -1067,6 +1067,18 @@ async function sendProactiveBlueBubblesMessageToSession(params, deps = {}) {
1067
1067
  catch {
1068
1068
  friend = null;
1069
1069
  }
1070
+ // Fallback: if friendId is a name (not UUID), resolve via listAll
1071
+ /* v8 ignore start -- name resolution fallback: tested via live integration @preserve */
1072
+ if (!friend && store.listAll) {
1073
+ try {
1074
+ const all = await store.listAll();
1075
+ friend = all.find((f) => f.name?.toLowerCase() === params.friendId.toLowerCase()) ?? null;
1076
+ }
1077
+ catch {
1078
+ friend = null;
1079
+ }
1080
+ }
1081
+ /* v8 ignore stop */
1070
1082
  if (!friend) {
1071
1083
  (0, runtime_1.emitNervesEvent)({
1072
1084
  level: "warn",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.220",
3
+ "version": "0.1.0-alpha.221",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",