|
1 | 1 | // Copyright (c) Microsoft Corporation. |
2 | 2 | // Licensed under the MIT License. |
3 | 3 |
|
4 | | -import debug from "debug"; |
5 | | -const runnerDbg = debug("genaiscript:promptrunner"); |
6 | | - |
7 | 4 | // Import necessary modules and functions for handling chat sessions, templates, file management, etc. |
8 | 5 | import { executeChatSession, tracePromptResult } from "./chat.js"; |
9 | 6 | import { GenerationStatus, Project } from "./server/messages.js"; |
@@ -32,6 +29,8 @@ import { deleteUndefinedValues } from "./cleaners.js"; |
32 | 29 | import { DEBUG_SCRIPT_CATEGORY } from "./constants.js"; |
33 | 30 | import type { PromptScript } from "./types.js"; |
34 | 31 | import { genaiscriptDebug } from "./debug.js"; |
| 32 | +import debug from "debug"; |
| 33 | +const runnerDbg = genaiscriptDebug("promptrunner"); |
35 | 34 | const dbg = genaiscriptDebug("env"); |
36 | 35 |
|
37 | 36 | // Asynchronously resolve expansion variables needed for a template |
@@ -185,6 +184,7 @@ export async function runTemplate( |
185 | 184 | cache, |
186 | 185 | metadata, |
187 | 186 | } = await expandTemplate(prj, template, options, env); |
| 187 | + // eslint-disable-next-line @typescript-eslint/no-unused-vars |
188 | 188 | const { output, generator, secrets, dbg: envDbg, ...restEnv } = env; |
189 | 189 |
|
190 | 190 | runnerDbg(`messages ${messages.length}`); |
|
0 commit comments