You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Observe command can now suggest creating new tests
Other improvements:
- enhance UserOptions constructor to accept both Map and object formats;
- add clone method to InteractionHistory;
- implement closingTags function for unclosed XML tags;
- introduce replaceStream for async string replacement in streams;
- update ExplainCommand to handle optional classifierService.
yield`I found a relevant test at \`${relevantTest.path}\`, but I'm unable to help you record it at this time. This language does not appear to be supported.`;
: `Based on the request, a ${relevantTest?.language}${relevantTest?.framework} test case needs to be created first:\n${suggestedTest}\n\n`)+
295
+
`
199
296
200
297
${
201
298
installCommands?.length
@@ -227,11 +324,11 @@ ${helpDocs
227
324
},
228
325
{
229
326
role: 'user',
230
-
content: `Restate the information you've provided to me, in standalone format, as a step by step guide outlining the steps required to record the single test case that you've identified.
327
+
content: `Restate the information you've provided to me, in standalone format, as a step by step guide outlining the steps required to record the single test case that you've identified or suggested creating.
231
328
If possible, include the terminal command needed to run the test. Only specify test patterns that are guaranteed to match based on previous context. For example, do not include file ranges not supported by the test runner.
232
329
In your response, please include the following:
233
-
- The name of the test case (if known)
234
-
- The path to the test file
330
+
- If an existing test was found, indicate the test case name and path
331
+
- Otherwise, steps and suggested location to create it (don't generate code itself, instead use <generated-test-case /> placeholder — DO NOT surround it with code fences)
235
332
- Any steps and terminal commands required to install the AppMap recording agent
236
333
- Any steps and terminal commands required to run the specific test case
237
334
@@ -250,9 +347,9 @@ Do not include:
250
347
);
251
348
constcompletion=this.completionService.complete(messages,{ temperature });
0 commit comments