parameters.test.ts.snap 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
  2. exports[`tool parameters JSON Schema (wire shape) apply_patch 1`] = `
  3. {
  4. "$schema": "https://json-schema.org/draft/2020-12/schema",
  5. "properties": {
  6. "patchText": {
  7. "description": "The full patch text that describes all changes to be made",
  8. "type": "string",
  9. },
  10. },
  11. "required": [
  12. "patchText",
  13. ],
  14. "type": "object",
  15. }
  16. `;
  17. exports[`tool parameters JSON Schema (wire shape) bash 1`] = `
  18. {
  19. "$schema": "https://json-schema.org/draft/2020-12/schema",
  20. "properties": {
  21. "command": {
  22. "description": "The command to execute",
  23. "type": "string",
  24. },
  25. "timeout": {
  26. "description": "Optional timeout in milliseconds",
  27. "exclusiveMinimum": 0,
  28. "maximum": 9007199254740991,
  29. "minimum": -9007199254740991,
  30. "type": "integer",
  31. },
  32. "workdir": {
  33. "description": "The working directory to run the command in. Defaults to the current directory. Use this instead of 'cd' commands.",
  34. "type": "string",
  35. },
  36. },
  37. "required": [
  38. "command",
  39. ],
  40. "type": "object",
  41. }
  42. `;
  43. exports[`tool parameters JSON Schema (wire shape) edit 1`] = `
  44. {
  45. "$schema": "https://json-schema.org/draft/2020-12/schema",
  46. "properties": {
  47. "filePath": {
  48. "description": "The absolute path to the file to modify",
  49. "type": "string",
  50. },
  51. "newString": {
  52. "description": "The text to replace it with (must be different from oldString)",
  53. "type": "string",
  54. },
  55. "oldString": {
  56. "description": "The text to replace",
  57. "type": "string",
  58. },
  59. "replaceAll": {
  60. "description": "Replace all occurrences of oldString (default false)",
  61. "type": "boolean",
  62. },
  63. },
  64. "required": [
  65. "filePath",
  66. "oldString",
  67. "newString",
  68. ],
  69. "type": "object",
  70. }
  71. `;
  72. exports[`tool parameters JSON Schema (wire shape) glob 1`] = `
  73. {
  74. "$schema": "https://json-schema.org/draft/2020-12/schema",
  75. "properties": {
  76. "path": {
  77. "description": "The directory to search in. If not specified, the current working directory will be used. IMPORTANT: Omit this field to use the default directory. DO NOT enter "undefined" or "null" - simply omit it for the default behavior. Must be a valid directory path if provided.",
  78. "type": "string",
  79. },
  80. "pattern": {
  81. "description": "The glob pattern to match files against",
  82. "type": "string",
  83. },
  84. },
  85. "required": [
  86. "pattern",
  87. ],
  88. "type": "object",
  89. }
  90. `;
  91. exports[`tool parameters JSON Schema (wire shape) grep 1`] = `
  92. {
  93. "$schema": "https://json-schema.org/draft/2020-12/schema",
  94. "properties": {
  95. "include": {
  96. "description": "File pattern to include in the search (e.g. "*.js", "*.{ts,tsx}")",
  97. "type": "string",
  98. },
  99. "path": {
  100. "description": "The directory to search in. Defaults to the current working directory.",
  101. "type": "string",
  102. },
  103. "pattern": {
  104. "description": "The regex pattern to search for in file contents",
  105. "type": "string",
  106. },
  107. },
  108. "required": [
  109. "pattern",
  110. ],
  111. "type": "object",
  112. }
  113. `;
  114. exports[`tool parameters JSON Schema (wire shape) invalid 1`] = `
  115. {
  116. "$schema": "https://json-schema.org/draft/2020-12/schema",
  117. "properties": {
  118. "error": {
  119. "type": "string",
  120. },
  121. "tool": {
  122. "type": "string",
  123. },
  124. },
  125. "required": [
  126. "tool",
  127. "error",
  128. ],
  129. "type": "object",
  130. }
  131. `;
  132. exports[`tool parameters JSON Schema (wire shape) lsp 1`] = `
  133. {
  134. "$schema": "https://json-schema.org/draft/2020-12/schema",
  135. "properties": {
  136. "character": {
  137. "description": "The character offset (1-based, as shown in editors)",
  138. "maximum": 9007199254740991,
  139. "minimum": 1,
  140. "type": "integer",
  141. },
  142. "filePath": {
  143. "description": "The absolute or relative path to the file",
  144. "type": "string",
  145. },
  146. "line": {
  147. "description": "The line number (1-based, as shown in editors)",
  148. "maximum": 9007199254740991,
  149. "minimum": 1,
  150. "type": "integer",
  151. },
  152. "operation": {
  153. "description": "The LSP operation to perform",
  154. "enum": [
  155. "goToDefinition",
  156. "findReferences",
  157. "hover",
  158. "documentSymbol",
  159. "workspaceSymbol",
  160. "goToImplementation",
  161. "prepareCallHierarchy",
  162. "incomingCalls",
  163. "outgoingCalls",
  164. ],
  165. "type": "string",
  166. },
  167. "query": {
  168. "description": "Search query for workspaceSymbol. Empty string requests all symbols.",
  169. "type": "string",
  170. },
  171. },
  172. "required": [
  173. "operation",
  174. "filePath",
  175. "line",
  176. "character",
  177. ],
  178. "type": "object",
  179. }
  180. `;
  181. exports[`tool parameters JSON Schema (wire shape) plan 1`] = `
  182. {
  183. "$schema": "https://json-schema.org/draft/2020-12/schema",
  184. "properties": {},
  185. "type": "object",
  186. }
  187. `;
  188. exports[`tool parameters JSON Schema (wire shape) question 1`] = `
  189. {
  190. "$schema": "https://json-schema.org/draft/2020-12/schema",
  191. "properties": {
  192. "questions": {
  193. "description": "Questions to ask",
  194. "items": {
  195. "properties": {
  196. "header": {
  197. "description": "Very short label (max 30 chars)",
  198. "type": "string",
  199. },
  200. "multiple": {
  201. "description": "Allow selecting multiple choices",
  202. "type": "boolean",
  203. },
  204. "options": {
  205. "description": "Available choices",
  206. "items": {
  207. "properties": {
  208. "description": {
  209. "description": "Explanation of choice",
  210. "type": "string",
  211. },
  212. "label": {
  213. "description": "Display text (1-5 words, concise)",
  214. "type": "string",
  215. },
  216. },
  217. "required": [
  218. "label",
  219. "description",
  220. ],
  221. "type": "object",
  222. },
  223. "type": "array",
  224. },
  225. "question": {
  226. "description": "Complete question",
  227. "type": "string",
  228. },
  229. },
  230. "required": [
  231. "question",
  232. "header",
  233. "options",
  234. ],
  235. "type": "object",
  236. },
  237. "type": "array",
  238. },
  239. },
  240. "required": [
  241. "questions",
  242. ],
  243. "type": "object",
  244. }
  245. `;
  246. exports[`tool parameters JSON Schema (wire shape) read 1`] = `
  247. {
  248. "$schema": "https://json-schema.org/draft/2020-12/schema",
  249. "properties": {
  250. "filePath": {
  251. "description": "The absolute path to the file or directory to read",
  252. "type": "string",
  253. },
  254. "limit": {
  255. "description": "The maximum number of lines to read (defaults to 2000)",
  256. "maximum": 9007199254740991,
  257. "minimum": 0,
  258. "type": "integer",
  259. },
  260. "offset": {
  261. "description": "The line number to start reading from (1-indexed)",
  262. "maximum": 9007199254740991,
  263. "minimum": 0,
  264. "type": "integer",
  265. },
  266. },
  267. "required": [
  268. "filePath",
  269. ],
  270. "type": "object",
  271. }
  272. `;
  273. exports[`tool parameters JSON Schema (wire shape) skill 1`] = `
  274. {
  275. "$schema": "https://json-schema.org/draft/2020-12/schema",
  276. "properties": {
  277. "name": {
  278. "description": "The name of the skill from available_skills",
  279. "type": "string",
  280. },
  281. },
  282. "required": [
  283. "name",
  284. ],
  285. "type": "object",
  286. }
  287. `;
  288. exports[`tool parameters JSON Schema (wire shape) task 1`] = `
  289. {
  290. "$schema": "https://json-schema.org/draft/2020-12/schema",
  291. "properties": {
  292. "background": {
  293. "description": "Run the agent in the background. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress",
  294. "type": "boolean",
  295. },
  296. "command": {
  297. "description": "The command that triggered this task",
  298. "type": "string",
  299. },
  300. "description": {
  301. "description": "A short (3-5 words) description of the task",
  302. "type": "string",
  303. },
  304. "prompt": {
  305. "description": "The task for the agent to perform",
  306. "type": "string",
  307. },
  308. "subagent_type": {
  309. "description": "The type of specialized agent to use for this task",
  310. "type": "string",
  311. },
  312. "task_id": {
  313. "description": "This should only be set if you mean to resume a previous task (you can pass a prior task_id and the task will continue the same subagent session as before instead of creating a fresh one)",
  314. "type": "string",
  315. },
  316. },
  317. "required": [
  318. "description",
  319. "prompt",
  320. "subagent_type",
  321. ],
  322. "type": "object",
  323. }
  324. `;
  325. exports[`tool parameters JSON Schema (wire shape) todo 1`] = `
  326. {
  327. "$schema": "https://json-schema.org/draft/2020-12/schema",
  328. "properties": {
  329. "todos": {
  330. "description": "The updated todo list",
  331. "items": {
  332. "properties": {
  333. "content": {
  334. "description": "Brief description of the task",
  335. "type": "string",
  336. },
  337. "priority": {
  338. "description": "Priority level of the task: high, medium, low",
  339. "type": "string",
  340. },
  341. "status": {
  342. "description": "Current status of the task: pending, in_progress, completed, cancelled",
  343. "type": "string",
  344. },
  345. },
  346. "required": [
  347. "content",
  348. "status",
  349. "priority",
  350. ],
  351. "type": "object",
  352. },
  353. "type": "array",
  354. },
  355. },
  356. "required": [
  357. "todos",
  358. ],
  359. "type": "object",
  360. }
  361. `;
  362. exports[`tool parameters JSON Schema (wire shape) webfetch 1`] = `
  363. {
  364. "$schema": "https://json-schema.org/draft/2020-12/schema",
  365. "properties": {
  366. "format": {
  367. "default": "markdown",
  368. "description": "The format to return the content in (text, markdown, or html). Defaults to markdown.",
  369. "enum": [
  370. "text",
  371. "markdown",
  372. "html",
  373. ],
  374. "type": "string",
  375. },
  376. "timeout": {
  377. "description": "Optional timeout in seconds (max 120)",
  378. "type": "number",
  379. },
  380. "url": {
  381. "description": "The URL to fetch content from",
  382. "type": "string",
  383. },
  384. },
  385. "required": [
  386. "url",
  387. ],
  388. "type": "object",
  389. }
  390. `;
  391. exports[`tool parameters JSON Schema (wire shape) websearch 1`] = `
  392. {
  393. "$schema": "https://json-schema.org/draft/2020-12/schema",
  394. "properties": {
  395. "contextMaxCharacters": {
  396. "description": "Maximum characters for context string optimized for LLMs (default: 10000)",
  397. "type": "number",
  398. },
  399. "livecrawl": {
  400. "description": "Live crawl mode - 'fallback': use live crawling as backup if cached content unavailable, 'preferred': prioritize live crawling (default: 'fallback')",
  401. "enum": [
  402. "fallback",
  403. "preferred",
  404. ],
  405. "type": "string",
  406. },
  407. "numResults": {
  408. "description": "Number of search results to return (default: 8)",
  409. "type": "number",
  410. },
  411. "query": {
  412. "description": "Websearch query",
  413. "type": "string",
  414. },
  415. "type": {
  416. "description": "Search type - 'auto': balanced search (default), 'fast': quick results, 'deep': comprehensive search",
  417. "enum": [
  418. "auto",
  419. "fast",
  420. "deep",
  421. ],
  422. "type": "string",
  423. },
  424. },
  425. "required": [
  426. "query",
  427. ],
  428. "type": "object",
  429. }
  430. `;
  431. exports[`tool parameters JSON Schema (wire shape) write 1`] = `
  432. {
  433. "$schema": "https://json-schema.org/draft/2020-12/schema",
  434. "properties": {
  435. "content": {
  436. "description": "The content to write to the file",
  437. "type": "string",
  438. },
  439. "filePath": {
  440. "description": "The absolute path to the file to write (must be absolute, not relative)",
  441. "type": "string",
  442. },
  443. },
  444. "required": [
  445. "content",
  446. "filePath",
  447. ],
  448. "type": "object",
  449. }
  450. `;