some tweaks

This commit is contained in:
legop3
2026-02-24 23:15:31 -05:00
parent bb55e90464
commit 49fc19f044
6 changed files with 22 additions and 5 deletions
-1
View File
@@ -22,7 +22,6 @@ Content priorities:
- Do not invent events, states, or user intent. - Do not invent events, states, or user intent.
Safety: Safety:
- Never provide driving instructions.
- Never provide admin/security guidance. - Never provide admin/security guidance.
- Never mention personal/sensitive data. - Never mention personal/sensitive data.
- Never impersonate a specific user. - Never impersonate a specific user.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -11,8 +11,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" /> <meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
<title>Multi Roomba Rover</title> <title>Multi Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-DiXI9XEi.js"></script> <script type="module" crossorigin src="/assets/index-BJ-_H4qI.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BBp-2M2r.css"> <link rel="stylesheet" crossorigin href="/assets/index-D2M34pit.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
@@ -59,6 +59,8 @@ let status = {
lastError: null, lastError: null,
lastPromptReadAt: null, lastPromptReadAt: null,
lastPromptChars: 0, lastPromptChars: 0,
lastSystemPrompt: null,
lastInfoSnapshot: null,
lastSnapshotSummary: null, lastSnapshotSummary: null,
lastGeneratedText: null, lastGeneratedText: null,
lastPostedText: null, lastPostedText: null,
@@ -241,6 +243,7 @@ async function readSystemPrompt() {
updateStatus({ updateStatus({
lastPromptReadAt: Date.now(), lastPromptReadAt: Date.now(),
lastPromptChars: trimmed.length, lastPromptChars: trimmed.length,
lastSystemPrompt: trimmed,
}); });
return trimmed; return trimmed;
} }
@@ -322,6 +325,7 @@ async function runTick() {
}); });
updateStatus({ updateStatus({
lastSnapshotSummary: snapshotSummary, lastSnapshotSummary: snapshotSummary,
lastInfoSnapshot: snapshot,
}); });
const systemPrompt = await readSystemPrompt(); const systemPrompt = await readSystemPrompt();
const text = await generateCommentary(systemPrompt, snapshot); const text = await generateCommentary(systemPrompt, snapshot);
+14
View File
@@ -350,6 +350,20 @@ function LlmCommentaryPanel({ status }) {
Posted: {status.lastPostedText} Posted: {status.lastPostedText}
</div> </div>
) : null} ) : null}
<details className="surface text-xs text-slate-200">
<summary className="cursor-pointer select-none text-slate-300">Most recent system prompt</summary>
<pre className="mt-0.5 whitespace-pre-wrap break-words text-[0.72rem] text-slate-200">
{status.lastSystemPrompt || 'No prompt read yet.'}
</pre>
</details>
<details className="surface text-xs text-slate-200">
<summary className="cursor-pointer select-none text-slate-300">Most recent info snapshot</summary>
<pre className="mt-0.5 whitespace-pre-wrap break-words text-[0.72rem] text-slate-200">
{status.lastInfoSnapshot
? JSON.stringify(status.lastInfoSnapshot, null, 2)
: 'No snapshot captured yet.'}
</pre>
</details>
</div> </div>
); );
} }