mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
some tweaks
This commit is contained in:
@@ -22,7 +22,6 @@ Content priorities:
|
||||
- Do not invent events, states, or user intent.
|
||||
|
||||
Safety:
|
||||
- Never provide driving instructions.
|
||||
- Never provide admin/security guidance.
|
||||
- Never mention personal/sensitive data.
|
||||
- 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
@@ -11,8 +11,8 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
||||
<title>Multi Roomba Rover</title>
|
||||
<script type="module" crossorigin src="/assets/index-DiXI9XEi.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BBp-2M2r.css">
|
||||
<script type="module" crossorigin src="/assets/index-BJ-_H4qI.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-D2M34pit.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -59,6 +59,8 @@ let status = {
|
||||
lastError: null,
|
||||
lastPromptReadAt: null,
|
||||
lastPromptChars: 0,
|
||||
lastSystemPrompt: null,
|
||||
lastInfoSnapshot: null,
|
||||
lastSnapshotSummary: null,
|
||||
lastGeneratedText: null,
|
||||
lastPostedText: null,
|
||||
@@ -241,6 +243,7 @@ async function readSystemPrompt() {
|
||||
updateStatus({
|
||||
lastPromptReadAt: Date.now(),
|
||||
lastPromptChars: trimmed.length,
|
||||
lastSystemPrompt: trimmed,
|
||||
});
|
||||
return trimmed;
|
||||
}
|
||||
@@ -322,6 +325,7 @@ async function runTick() {
|
||||
});
|
||||
updateStatus({
|
||||
lastSnapshotSummary: snapshotSummary,
|
||||
lastInfoSnapshot: snapshot,
|
||||
});
|
||||
const systemPrompt = await readSystemPrompt();
|
||||
const text = await generateCommentary(systemPrompt, snapshot);
|
||||
|
||||
@@ -350,6 +350,20 @@ function LlmCommentaryPanel({ status }) {
|
||||
Posted: {status.lastPostedText}
|
||||
</div>
|
||||
) : 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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user