GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — opencode-mobile/shared/contracts/session-commands.ts at main · drpr/opencode-mobile

Expand file tree

/

session-commands.ts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
26 lines (21 loc) · 1.06 KB
/

session-commands.ts

Copy path

File metadata and controls

26 lines (21 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.