@ouro.bot/cli 0.1.0-alpha.317 → 0.1.0-alpha.318
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 +188 -181
- package/dist/heart/daemon/daemon-entry.js +9 -3
- package/dist/mind/prompt.js +4 -3
- package/package.json +1 -1
|
@@ -130,9 +130,15 @@ const router = new message_router_1.FileMessageRouter();
|
|
|
130
130
|
const senseManager = new sense_manager_1.DaemonSenseManager({
|
|
131
131
|
agents: [...managedAgents],
|
|
132
132
|
});
|
|
133
|
-
/* v8 ignore next
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
/* v8 ignore next 5 -- entry-point wiring: probe factory and HealthMonitor both have full unit tests @preserve */
|
|
134
|
+
let bbPort = 18790;
|
|
135
|
+
try {
|
|
136
|
+
bbPort = (0, config_1.getBlueBubblesChannelConfig)().port;
|
|
137
|
+
}
|
|
138
|
+
catch {
|
|
139
|
+
// Daemon runs without --agent; agent-scoped config may not be available.
|
|
140
|
+
}
|
|
141
|
+
const bbProbe = (0, http_health_probe_1.createHttpHealthProbe)("bluebubbles", bbPort);
|
|
136
142
|
const healthMonitor = new health_monitor_1.HealthMonitor({
|
|
137
143
|
processManager,
|
|
138
144
|
scheduler,
|
package/dist/mind/prompt.js
CHANGED
|
@@ -455,17 +455,18 @@ function providerSection(channel) {
|
|
|
455
455
|
function dateSection() {
|
|
456
456
|
const now = new Date();
|
|
457
457
|
const fmt = new Intl.DateTimeFormat("en-US", {
|
|
458
|
-
timeZone: "America/Los_Angeles",
|
|
459
458
|
year: "numeric",
|
|
460
459
|
month: "2-digit",
|
|
461
460
|
day: "2-digit",
|
|
462
461
|
hour: "2-digit",
|
|
463
462
|
minute: "2-digit",
|
|
464
463
|
hour12: false,
|
|
464
|
+
timeZoneName: "short",
|
|
465
465
|
});
|
|
466
466
|
const parts = Object.fromEntries(fmt.formatToParts(now).map((p) => [p.type, p.value]));
|
|
467
|
-
|
|
468
|
-
|
|
467
|
+
/* v8 ignore next -- Intl hour-24 bug only triggers at midnight @preserve */
|
|
468
|
+
const hour = parts.hour === "24" ? "00" : parts.hour;
|
|
469
|
+
return `current date and time: ${parts.year}-${parts.month}-${parts.day} ${hour}:${parts.minute} ${parts.timeZoneName}`;
|
|
469
470
|
}
|
|
470
471
|
function toolsSection(channel, options, context) {
|
|
471
472
|
const channelTools = (0, tools_1.getToolsForChannel)((0, channel_1.getChannelCapabilities)(channel), undefined, context, options?.providerCapabilities, undefined, options?.chatModel);
|