remove battery stuffs

This commit is contained in:
legop3
2026-02-25 02:23:10 -05:00
parent 4af0deb1dd
commit 679e901ec6
2 changed files with 11 additions and 13 deletions
-1
View File
@@ -22,7 +22,6 @@ Rules:
- Avoid generic filler lines (examples to avoid: "out for a spin", "got some drive left", "charging up nicely", "bounce"). - Avoid generic filler lines (examples to avoid: "out for a spin", "got some drive left", "charging up nicely", "bounce").
- The bump count is how often a rover is bumping INTO something, not how often it goes over a bump. - The bump count is how often a rover is bumping INTO something, not how often it goes over a bump.
- Don't mention the telemetry numbers directly, just use them to gauge activity. Numbers are from the last 30 seconds of use. - Don't mention the telemetry numbers directly, just use them to gauge activity. Numbers are from the last 30 seconds of use.
- Remind people to charge if their battery is 15% or below. Otherwise dont be telling people to dock or charge.
How to decide: How to decide:
- Speak only when there is meaningful rover activity. - Speak only when there is meaningful rover activity.
+11 -12
View File
@@ -16,7 +16,7 @@ const MIN_FREQUENCY_MS = 15000;
const JITTER_MS = 30000; const JITTER_MS = 30000;
const MAX_ROVERS = 6; const MAX_ROVERS = 6;
const MAX_CHAT_MESSAGES = 6; const MAX_CHAT_MESSAGES = 6;
const MAX_BOT_MESSAGES = 6; const MAX_BOT_MESSAGES = 1;
const MAX_OUTPUT_CHARS = 140; const MAX_OUTPUT_CHARS = 140;
const SKIP_TOKEN = 'SKIP'; const SKIP_TOKEN = 'SKIP';
const ACTIVITY_WINDOW_MS = 30000; const ACTIVITY_WINDOW_MS = 30000;
@@ -272,7 +272,7 @@ function buildSnapshot() {
driver_nickname: driverSocketId ? resolveDriverNickname(driverSocketId) : null, driver_nickname: driverSocketId ? resolveDriverNickname(driverSocketId) : null,
docked, docked,
charging, charging,
battery_percent: batteryState?.percentDisplay ?? null, battery_low: Boolean(batteryState?.warnActive || batteryState?.urgentActive),
activity_30s: activity30s, activity_30s: activity30s,
status_tag: statusTag, status_tag: statusTag,
}; };
@@ -287,15 +287,14 @@ function buildSnapshot() {
text: entry.text || '', text: entry.text || '',
})); }));
// Temporarily disabled: do not feed prior bot/system messages into the LLM snapshot. const botRecent = getRecentMessages(80, { includeSystem: true })
// const botRecent = getRecentMessages(80, { includeSystem: true }) .filter((entry) => Number(entry?.ts) >= contextResetAt)
// .filter((entry) => Number(entry?.ts) >= contextResetAt) .filter((entry) => entry?.system)
// .filter((entry) => entry?.system) .slice(-MAX_BOT_MESSAGES)
// .slice(-MAX_BOT_MESSAGES) .map((entry) => ({
// .map((entry) => ({ ts_iso: new Date(entry.ts).toISOString(),
// ts_iso: new Date(entry.ts).toISOString(), text: entry.text || '',
// text: entry.text || '', }));
// }));
return { return {
now: { now: {
@@ -310,7 +309,7 @@ function buildSnapshot() {
}, },
rovers, rovers,
chat_recent: chatRecent, chat_recent: chatRecent,
// bot_recent_messages: botRecent, bot_recent_messages: botRecent,
}; };
} }