From 2960f0f65b1f6d9d39dc7c677c500d8393a3db53 Mon Sep 17 00:00:00 2001 From: moon Date: Thu, 7 Mar 2024 02:24:51 -0800 Subject: [PATCH] fix action export, reduce runAiTest to 3 by default --- package.json | 2 +- src/index.ts | 9 +++++++++ src/lib/actions.ts | 2 -- src/test/runAiTest.ts | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index fdea054..6f88fe1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bgent", - "version": "0.0.34", + "version": "0.0.35", "private": false, "description": "bgent. because agent was taken.", "type": "module", diff --git a/src/index.ts b/src/index.ts index cedadbf..8315b5b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,6 +14,15 @@ export { zeroUuid, zeroUuidPlus1 } from "./lib/constants"; // Export from ./src/lib/context export { addHeader, composeContext } from "./lib/context"; +import wait from "./lib/actions/wait"; +export { wait }; + +import elaborate from "./lib/actions/elaborate"; +export { elaborate }; + +import ignore from "./lib/actions/ignore"; +export { ignore }; + // Export from ./src/lib/evaluators export { defaultEvaluators, diff --git a/src/lib/actions.ts b/src/lib/actions.ts index 7ce9072..228d5b1 100644 --- a/src/lib/actions.ts +++ b/src/lib/actions.ts @@ -5,8 +5,6 @@ import elaborate from "./actions/elaborate"; import ignore from "./actions/ignore"; import wait from "./actions/wait"; -export { elaborate, ignore, wait }; - export const defaultActions: Action[] = [elaborate, wait, ignore]; /** diff --git a/src/test/runAiTest.ts b/src/test/runAiTest.ts index f657558..3c1991b 100644 --- a/src/test/runAiTest.ts +++ b/src/test/runAiTest.ts @@ -3,7 +3,7 @@ import { addToReport } from "./report"; export async function runAiTest( testName: string, testFunc: () => Promise, - runs: number = 4, + runs: number = 3, ) { let successful = 0;