refactor: PromptDef
This commit is contained in:
@@ -51,7 +51,7 @@ describe('createGameContext', () => {
|
||||
const ctx = createGameContext(registry);
|
||||
|
||||
registry.register('test <value>', async function (_ctx, value) {
|
||||
return this.prompt<string>('prompt <answer>', () => 'ok');
|
||||
return this.prompt({schema: 'prompt <answer>'}, () => 'ok');
|
||||
});
|
||||
|
||||
const promptPromise = new Promise<PromptEvent>(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user