@ouro.bot/cli 0.1.0-alpha.214 → 0.1.0-alpha.215
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.215",
|
|
6
|
+
"changes": [
|
|
7
|
+
"fix: surface tool proactive delivery no longer gated by 24-hour session threshold — findFreshestFriendSession was called with activeOnly:true, filtering out sessions older than 24h even when the agent explicitly wants to send a proactive message. Both the bridge path and direct path now find any session regardless of age. Proactive BB delivery and trust checks still apply."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.214",
|
|
6
12
|
"changes": [
|
|
@@ -88,7 +88,7 @@ exports.surfaceToolDefinition = {
|
|
|
88
88
|
const { createBridgeManager } = await Promise.resolve().then(() => __importStar(require("../heart/bridges/manager")));
|
|
89
89
|
const bridge = createBridgeManager().getBridge(queueItem.bridgeId);
|
|
90
90
|
if (bridge && bridge.lifecycle !== "completed" && bridge.lifecycle !== "cancelled") {
|
|
91
|
-
const allSessions = (0, session_activity_1.listSessionActivity)({ sessionsDir, friendsDir, agentName });
|
|
91
|
+
const allSessions = (0, session_activity_1.listSessionActivity)({ sessionsDir, friendsDir, agentName, activeThresholdMs: Number.MAX_SAFE_INTEGER });
|
|
92
92
|
const bridgeTarget = allSessions.find((activity) => activity.friendId === friendId
|
|
93
93
|
&& activity.channel !== "inner"
|
|
94
94
|
&& bridge.attachedSessions.some((s) => s.friendId === activity.friendId && s.channel === activity.channel && s.key === activity.key));
|
|
@@ -124,13 +124,12 @@ exports.surfaceToolDefinition = {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
// Priority 2: Freshest active
|
|
127
|
+
// Priority 2: Freshest friend session (no active threshold — proactive outreach shouldn't be gated by session age)
|
|
128
128
|
const freshest = (0, session_activity_1.findFreshestFriendSession)({
|
|
129
129
|
sessionsDir,
|
|
130
130
|
friendsDir,
|
|
131
131
|
agentName,
|
|
132
132
|
friendId,
|
|
133
|
-
activeOnly: true,
|
|
134
133
|
});
|
|
135
134
|
if (freshest && freshest.channel !== "inner") {
|
|
136
135
|
// Attempt proactive BB delivery
|