Add ink integration UI and media playback
This commit is contained in:
Vendored
+7
-13
@@ -12,6 +12,7 @@
|
||||
* ZORK_HISTORY_SIZE – player-facing outputs stored per room (default: 5)
|
||||
* OPENROUTER_API_KEY, OPENROUTER_MODEL – required
|
||||
*/
|
||||
import { TurnResult } from '../interfaces/turn-result';
|
||||
export interface ZorkSession {
|
||||
characterDescription: string;
|
||||
notes: string[];
|
||||
@@ -26,18 +27,7 @@ export interface ZorkSession {
|
||||
currentRoom: string;
|
||||
running: boolean;
|
||||
}
|
||||
/** Subset of the unified TurnResult protocol understood by the client. */
|
||||
export interface ZorkTurnResult {
|
||||
paragraphs: Array<{
|
||||
text: string;
|
||||
tags: unknown[];
|
||||
}>;
|
||||
choices: unknown[];
|
||||
inputMode: 'text' | 'end';
|
||||
gameState?: {
|
||||
statusLine?: string;
|
||||
};
|
||||
}
|
||||
export type ZorkTurnResult = TurnResult;
|
||||
export declare class ZorkLlmEngine {
|
||||
private zork;
|
||||
private session;
|
||||
@@ -48,9 +38,13 @@ export declare class ZorkLlmEngine {
|
||||
private llmCallCounter;
|
||||
private maxRetries;
|
||||
private historySize;
|
||||
private nextTurnId;
|
||||
private storyPath;
|
||||
private static readonly DEPRECATED_MODEL_REPLACEMENTS;
|
||||
constructor();
|
||||
constructor(options?: {
|
||||
storyPath?: string;
|
||||
promptDir?: string;
|
||||
});
|
||||
private createCompletion;
|
||||
private resolveFallbackModel;
|
||||
isRunning(): boolean;
|
||||
|
||||
Reference in New Issue
Block a user