Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit 061278a

Browse files
committed
✨ Enable quiet mode during runtime configuration
Added `setQuiet(true)` in `config` for silent runtime operation.
1 parent 820d144 commit 061278a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/runtime/src/runtime.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ import {
5757
MarkdownTrace,
5858
installGlobals,
5959
GenerationStats,
60+
isQuiet,
61+
setQuiet,
6062
} from "@genaiscript/core";
6163
import { NodeHost } from "./nodehost.js";
6264
import debug from "debug";
@@ -154,6 +156,7 @@ export async function config(
154156
): Promise<void> {
155157
if (_nodeHost) throw new Error("Runtime already configured. Call `config` only once.");
156158

159+
setQuiet(true);
157160
dbg(`config %o`, dotEnvPaths);
158161
dbg(`hostConfig %O`, hostConfig);
159162
installGlobals();
@@ -184,9 +187,9 @@ export async function config(
184187
inner: true,
185188
stats: new GenerationStats(model),
186189
model: LARGE_MODEL_ID,
187-
userState: {},
190+
userState: {},
188191
},
189192
LARGE_MODEL_ID,
190193
);
191194
installGlobalPromptContext(ctx);
192-
}
195+
}

0 commit comments

Comments
 (0)