feat: add structured room role metadata

This commit is contained in:
Eyejoker
2026-03-28 19:30:32 +09:00
parent 806e5e4ff1
commit 79a8a2639e
13 changed files with 300 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ import {
CodexAppServerClient,
type AppServerInputItem,
} from './app-server-client.js';
import {
prependRoomRoleHeader,
type RoomRoleContext,
} from './room-role-context.js';
// ── Types ──────────────────────────────────────────────────────────
@@ -31,6 +35,7 @@ interface ContainerInput {
isScheduledTask?: boolean;
assistantName?: string;
agentType?: string;
roomRoleContext?: RoomRoleContext;
}
interface ContainerOutput {
@@ -464,6 +469,7 @@ async function main(): Promise<void> {
if (pending.length > 0) {
prompt += '\n' + pending.join('\n');
}
prompt = prependRoomRoleHeader(prompt, containerInput.roomRoleContext);
try {
log('Runtime selected: app-server');