donobu 3.19.0 → 3.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -188,11 +188,11 @@ async function getFlowAsAiPlaywrightScript(flowMetadata, toolCalls, options) {
|
|
|
188
188
|
// specially.
|
|
189
189
|
const specialCaseGoto = firstToolCall.name === GoToWebpageTool_1.GoToWebpageTool.NAME && remaingToolCalls.length > 0;
|
|
190
190
|
const cachePath = (0, cacheLocator_1.relativePageAiCachePathForSource)(node_path_1.default.join('tests', getTestFileName(flowMetadata)));
|
|
191
|
-
const gptSetupNote = ` * This test replays a recorded Donobu flow via \`page.
|
|
192
|
-
* tool calls stored for this spec in \`${cachePath}\`.
|
|
193
|
-
* is missing or the parameters change, the run falls back
|
|
194
|
-
* and will require a GPT API key (e.g.
|
|
195
|
-
* GOOGLE_GENERATIVE_AI_API_KEY).
|
|
191
|
+
const gptSetupNote = ` * This test replays a recorded Donobu flow via \`page.ai(...)\` using the cached
|
|
192
|
+
* tool calls stored for this spec in \`${cachePath}\`.
|
|
193
|
+
* If the cache entry is missing or the parameters change, the run falls back
|
|
194
|
+
* to autonomous mode and will require a GPT API key (e.g. DONOBU_API_KEY,
|
|
195
|
+
* OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_GENERATIVE_AI_API_KEY).
|
|
196
196
|
`;
|
|
197
197
|
const testName = flowMetadata.name
|
|
198
198
|
? flowMetadata.name
|
|
@@ -188,11 +188,11 @@ async function getFlowAsAiPlaywrightScript(flowMetadata, toolCalls, options) {
|
|
|
188
188
|
// specially.
|
|
189
189
|
const specialCaseGoto = firstToolCall.name === GoToWebpageTool_1.GoToWebpageTool.NAME && remaingToolCalls.length > 0;
|
|
190
190
|
const cachePath = (0, cacheLocator_1.relativePageAiCachePathForSource)(node_path_1.default.join('tests', getTestFileName(flowMetadata)));
|
|
191
|
-
const gptSetupNote = ` * This test replays a recorded Donobu flow via \`page.
|
|
192
|
-
* tool calls stored for this spec in \`${cachePath}\`.
|
|
193
|
-
* is missing or the parameters change, the run falls back
|
|
194
|
-
* and will require a GPT API key (e.g.
|
|
195
|
-
* GOOGLE_GENERATIVE_AI_API_KEY).
|
|
191
|
+
const gptSetupNote = ` * This test replays a recorded Donobu flow via \`page.ai(...)\` using the cached
|
|
192
|
+
* tool calls stored for this spec in \`${cachePath}\`.
|
|
193
|
+
* If the cache entry is missing or the parameters change, the run falls back
|
|
194
|
+
* to autonomous mode and will require a GPT API key (e.g. DONOBU_API_KEY,
|
|
195
|
+
* OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_GENERATIVE_AI_API_KEY).
|
|
196
196
|
`;
|
|
197
197
|
const testName = flowMetadata.name
|
|
198
198
|
? flowMetadata.name
|