GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode-mobile/shared/contracts/session-commands.ts at main · drpr/opencode-mobile Expand file tree/ Copy pathsession-commands.tsMore file actions 26 lines (21 loc) · 1.06 KB / Copy pathsession-commands.tsFile metadata and controls26 lines (21 loc) · 1.06 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 // Client-side built-ins backed by V2 session endpoints. They are not part of // the server command catalog, so they are dispatched before session.command. export const BUILTIN_SESSION_COMMANDS = ['compact', 'btw'] as const; export type BuiltinSessionCommand = (typeof BUILTIN_SESSION_COMMANDS)[number]; export type SideQuestionAnswer = { question: string; answer: string; }; export function isBuiltinSessionCommand(name: string): name is BuiltinSessionCommand { return (BUILTIN_SESSION_COMMANDS as readonly string[]).includes(name); } // Mirrors the TUI side question: session.generate exposes tools but runs no // tool loop, so a tool call would surface as an empty answer. const SIDE_QUESTION_INSTRUCTIONS = [ 'The user is asking a quick side question about the conversation so far.', 'Answer directly and concisely in markdown from what you already know.', 'Do not call any tools and do not take any actions.', ].join(' '); export function buildSideQuestionPrompt(question: string): string { return [SIDE_QUESTION_INSTRUCTIONS, question.trim()].join('\n\n'); } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |