Skip to content

Commit a9b858b

Browse files
This snapshot seems to need to be updated when changing prompts
1 parent 0d44e82 commit a9b858b

File tree

1 file changed

+270
-0
lines changed

1 file changed

+270
-0
lines changed

src/core/prompts/__tests__/__snapshots__/system.test.ts.snap

Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,24 @@ Example: Requesting to list all top level source code definitions in the current
9494
<path>.</path>
9595
</list_code_definition_names>
9696

97+
## get_symbol_documentation
98+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
99+
Parameters:
100+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
101+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
102+
103+
Usage:
104+
<get_symbol_documentation>
105+
<symbol_name>MyClass</symbol_name>
106+
<path>src/models/user.ts</path>
107+
</get_symbol_documentation>
108+
109+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
110+
<get_symbol_documentation>
111+
<symbol_name>User</symbol_name>
112+
<path>src/controllers/auth.ts</path>
113+
</get_symbol_documentation>
114+
97115
## write_to_file
98116
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
99117
Parameters:
@@ -428,6 +446,24 @@ Example: Requesting to list all top level source code definitions in the current
428446
<path>.</path>
429447
</list_code_definition_names>
430448

449+
## get_symbol_documentation
450+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
451+
Parameters:
452+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
453+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
454+
455+
Usage:
456+
<get_symbol_documentation>
457+
<symbol_name>MyClass</symbol_name>
458+
<path>src/models/user.ts</path>
459+
</get_symbol_documentation>
460+
461+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
462+
<get_symbol_documentation>
463+
<symbol_name>User</symbol_name>
464+
<path>src/controllers/auth.ts</path>
465+
</get_symbol_documentation>
466+
431467
## write_to_file
432468
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
433469
Parameters:
@@ -851,6 +887,24 @@ Example: Requesting to list all top level source code definitions in the current
851887
<path>.</path>
852888
</list_code_definition_names>
853889

890+
## get_symbol_documentation
891+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
892+
Parameters:
893+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
894+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
895+
896+
Usage:
897+
<get_symbol_documentation>
898+
<symbol_name>MyClass</symbol_name>
899+
<path>src/models/user.ts</path>
900+
</get_symbol_documentation>
901+
902+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
903+
<get_symbol_documentation>
904+
<symbol_name>User</symbol_name>
905+
<path>src/controllers/auth.ts</path>
906+
</get_symbol_documentation>
907+
854908
## write_to_file
855909
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
856910
Parameters:
@@ -1238,6 +1292,24 @@ Example: Requesting to list all top level source code definitions in the current
12381292
<path>.</path>
12391293
</list_code_definition_names>
12401294

1295+
## get_symbol_documentation
1296+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
1297+
Parameters:
1298+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
1299+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
1300+
1301+
Usage:
1302+
<get_symbol_documentation>
1303+
<symbol_name>MyClass</symbol_name>
1304+
<path>src/models/user.ts</path>
1305+
</get_symbol_documentation>
1306+
1307+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
1308+
<get_symbol_documentation>
1309+
<symbol_name>User</symbol_name>
1310+
<path>src/controllers/auth.ts</path>
1311+
</get_symbol_documentation>
1312+
12411313
## write_to_file
12421314
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
12431315
Parameters:
@@ -1572,6 +1644,24 @@ Example: Requesting to list all top level source code definitions in the current
15721644
<path>.</path>
15731645
</list_code_definition_names>
15741646

1647+
## get_symbol_documentation
1648+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
1649+
Parameters:
1650+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
1651+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
1652+
1653+
Usage:
1654+
<get_symbol_documentation>
1655+
<symbol_name>MyClass</symbol_name>
1656+
<path>src/models/user.ts</path>
1657+
</get_symbol_documentation>
1658+
1659+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
1660+
<get_symbol_documentation>
1661+
<symbol_name>User</symbol_name>
1662+
<path>src/controllers/auth.ts</path>
1663+
</get_symbol_documentation>
1664+
15751665
## write_to_file
15761666
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
15771667
Parameters:
@@ -1906,6 +1996,24 @@ Example: Requesting to list all top level source code definitions in the current
19061996
<path>.</path>
19071997
</list_code_definition_names>
19081998

1999+
## get_symbol_documentation
2000+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
2001+
Parameters:
2002+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
2003+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
2004+
2005+
Usage:
2006+
<get_symbol_documentation>
2007+
<symbol_name>MyClass</symbol_name>
2008+
<path>src/models/user.ts</path>
2009+
</get_symbol_documentation>
2010+
2011+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
2012+
<get_symbol_documentation>
2013+
<symbol_name>User</symbol_name>
2014+
<path>src/controllers/auth.ts</path>
2015+
</get_symbol_documentation>
2016+
19092017
## write_to_file
19102018
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
19112019
Parameters:
@@ -2240,6 +2348,24 @@ Example: Requesting to list all top level source code definitions in the current
22402348
<path>.</path>
22412349
</list_code_definition_names>
22422350

2351+
## get_symbol_documentation
2352+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
2353+
Parameters:
2354+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
2355+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
2356+
2357+
Usage:
2358+
<get_symbol_documentation>
2359+
<symbol_name>MyClass</symbol_name>
2360+
<path>src/models/user.ts</path>
2361+
</get_symbol_documentation>
2362+
2363+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
2364+
<get_symbol_documentation>
2365+
<symbol_name>User</symbol_name>
2366+
<path>src/controllers/auth.ts</path>
2367+
</get_symbol_documentation>
2368+
22432369
## write_to_file
22442370
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
22452371
Parameters:
@@ -2623,6 +2749,24 @@ Example: Requesting to list all top level source code definitions in the current
26232749
<path>.</path>
26242750
</list_code_definition_names>
26252751

2752+
## get_symbol_documentation
2753+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
2754+
Parameters:
2755+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
2756+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
2757+
2758+
Usage:
2759+
<get_symbol_documentation>
2760+
<symbol_name>MyClass</symbol_name>
2761+
<path>src/models/user.ts</path>
2762+
</get_symbol_documentation>
2763+
2764+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
2765+
<get_symbol_documentation>
2766+
<symbol_name>User</symbol_name>
2767+
<path>src/controllers/auth.ts</path>
2768+
</get_symbol_documentation>
2769+
26262770
## write_to_file
26272771
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
26282772
Parameters:
@@ -3370,6 +3514,24 @@ Example: Requesting to list all top level source code definitions in the current
33703514
<path>.</path>
33713515
</list_code_definition_names>
33723516

3517+
## get_symbol_documentation
3518+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
3519+
Parameters:
3520+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
3521+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
3522+
3523+
Usage:
3524+
<get_symbol_documentation>
3525+
<symbol_name>MyClass</symbol_name>
3526+
<path>src/models/user.ts</path>
3527+
</get_symbol_documentation>
3528+
3529+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
3530+
<get_symbol_documentation>
3531+
<symbol_name>User</symbol_name>
3532+
<path>src/controllers/auth.ts</path>
3533+
</get_symbol_documentation>
3534+
33733535
## write_to_file
33743536
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
33753537
Parameters:
@@ -3753,6 +3915,24 @@ Example: Requesting to list all top level source code definitions in the current
37533915
<path>.</path>
37543916
</list_code_definition_names>
37553917

3918+
## get_symbol_documentation
3919+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
3920+
Parameters:
3921+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
3922+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
3923+
3924+
Usage:
3925+
<get_symbol_documentation>
3926+
<symbol_name>MyClass</symbol_name>
3927+
<path>src/models/user.ts</path>
3928+
</get_symbol_documentation>
3929+
3930+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
3931+
<get_symbol_documentation>
3932+
<symbol_name>User</symbol_name>
3933+
<path>src/controllers/auth.ts</path>
3934+
</get_symbol_documentation>
3935+
37563936
## apply_diff
37573937
Description: Request to replace existing code using a search and replace block.
37583938
This tool allows for precise, surgical replaces to files by specifying exactly what content to search for and what to replace it with.
@@ -4149,6 +4329,24 @@ Example: Requesting to list all top level source code definitions in the current
41494329
<path>.</path>
41504330
</list_code_definition_names>
41514331

4332+
## get_symbol_documentation
4333+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
4334+
Parameters:
4335+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
4336+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
4337+
4338+
Usage:
4339+
<get_symbol_documentation>
4340+
<symbol_name>MyClass</symbol_name>
4341+
<path>src/models/user.ts</path>
4342+
</get_symbol_documentation>
4343+
4344+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
4345+
<get_symbol_documentation>
4346+
<symbol_name>User</symbol_name>
4347+
<path>src/controllers/auth.ts</path>
4348+
</get_symbol_documentation>
4349+
41524350
## write_to_file
41534351
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
41544352
Parameters:
@@ -4525,6 +4723,24 @@ Example: Requesting to list all top level source code definitions in the current
45254723
<path>.</path>
45264724
</list_code_definition_names>
45274725

4726+
## get_symbol_documentation
4727+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
4728+
Parameters:
4729+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
4730+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
4731+
4732+
Usage:
4733+
<get_symbol_documentation>
4734+
<symbol_name>MyClass</symbol_name>
4735+
<path>src/models/user.ts</path>
4736+
</get_symbol_documentation>
4737+
4738+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
4739+
<get_symbol_documentation>
4740+
<symbol_name>User</symbol_name>
4741+
<path>src/controllers/auth.ts</path>
4742+
</get_symbol_documentation>
4743+
45284744
## write_to_file
45294745
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
45304746
Parameters:
@@ -5018,6 +5234,24 @@ Example: Requesting to list all top level source code definitions in the current
50185234
<path>.</path>
50195235
</list_code_definition_names>
50205236

5237+
## get_symbol_documentation
5238+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
5239+
Parameters:
5240+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
5241+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
5242+
5243+
Usage:
5244+
<get_symbol_documentation>
5245+
<symbol_name>MyClass</symbol_name>
5246+
<path>src/models/user.ts</path>
5247+
</get_symbol_documentation>
5248+
5249+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
5250+
<get_symbol_documentation>
5251+
<symbol_name>User</symbol_name>
5252+
<path>src/controllers/auth.ts</path>
5253+
</get_symbol_documentation>
5254+
50215255
## write_to_file
50225256
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
50235257
Parameters:
@@ -5428,6 +5662,24 @@ Example: Requesting to list all top level source code definitions in the current
54285662
<path>.</path>
54295663
</list_code_definition_names>
54305664

5665+
## get_symbol_documentation
5666+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
5667+
Parameters:
5668+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
5669+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
5670+
5671+
Usage:
5672+
<get_symbol_documentation>
5673+
<symbol_name>MyClass</symbol_name>
5674+
<path>src/models/user.ts</path>
5675+
</get_symbol_documentation>
5676+
5677+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
5678+
<get_symbol_documentation>
5679+
<symbol_name>User</symbol_name>
5680+
<path>src/controllers/auth.ts</path>
5681+
</get_symbol_documentation>
5682+
54315683
## ask_followup_question
54325684
Description: Ask the user a question to gather additional information needed to complete the task. This tool should be used when you encounter ambiguities, need clarification, or require more details to proceed effectively. It allows for interactive problem-solving by enabling direct communication with the user. Use this tool judiciously to maintain a balance between gathering necessary information and avoiding excessive back-and-forth.
54335685
Parameters:
@@ -5736,6 +5988,24 @@ Example: Requesting to list all top level source code definitions in the current
57365988
<path>.</path>
57375989
</list_code_definition_names>
57385990

5991+
## get_symbol_documentation
5992+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
5993+
Parameters:
5994+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
5995+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
5996+
5997+
Usage:
5998+
<get_symbol_documentation>
5999+
<symbol_name>MyClass</symbol_name>
6000+
<path>src/models/user.ts</path>
6001+
</get_symbol_documentation>
6002+
6003+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
6004+
<get_symbol_documentation>
6005+
<symbol_name>User</symbol_name>
6006+
<path>src/controllers/auth.ts</path>
6007+
</get_symbol_documentation>
6008+
57396009
## write_to_file
57406010
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
57416011
Parameters:

0 commit comments

Comments
 (0)