From caafd63ab5d387678cba514915d47263e5145de2 Mon Sep 17 00:00:00 2001 From: max bittker Date: Wed, 28 Jan 2026 19:36:15 -0500 Subject: [PATCH] fixes --- bunfig.toml | 2 ++ sdk/types.ts | 4 ++++ test/utils/browser.ts | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 bunfig.toml diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 000000000..9a4256d48 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install] +auto = true diff --git a/sdk/types.ts b/sdk/types.ts index daca12c4d..c24af7baa 100644 --- a/sdk/types.ts +++ b/sdk/types.ts @@ -73,6 +73,8 @@ export interface NearbyNpc { animId: number; spotanimId: number; optionsWithIndex: NpcOption[]; + /** Convenience array of option text strings */ + options: string[]; } export interface NearbyPlayer { @@ -105,6 +107,8 @@ export interface NearbyLoc { z: number; distance: number; optionsWithIndex: LocOption[]; + /** Convenience array of option text strings */ + options: string[]; } export interface GameMessage { diff --git a/test/utils/browser.ts b/test/utils/browser.ts index e4b67c743..ba58ed184 100644 --- a/test/utils/browser.ts +++ b/test/utils/browser.ts @@ -320,9 +320,10 @@ export async function skipTutorial(sdk: BotSDK, maxAttempts: number = 30): Promi return isOnTutorialIsland(s.player.worldX, s.player.worldZ); }; + const bot = new BotActions(sdk); let attempts = 0; while (isInTutorial() && attempts < maxAttempts) { - await sdk.sendSkipTutorial(); + await bot.skipTutorial(); await sleep(1000); attempts++; }