| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466 |
- // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
- exports[`tool parameters JSON Schema (wire shape) apply_patch 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "patchText": {
- "description": "The full patch text that describes all changes to be made",
- "type": "string",
- },
- },
- "required": [
- "patchText",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) bash 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "command": {
- "description": "The command to execute",
- "type": "string",
- },
- "timeout": {
- "description": "Optional timeout in milliseconds",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer",
- },
- "workdir": {
- "description": "The working directory to run the command in. Defaults to the current directory. Use this instead of 'cd' commands.",
- "type": "string",
- },
- },
- "required": [
- "command",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) edit 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "filePath": {
- "description": "The absolute path to the file to modify",
- "type": "string",
- },
- "newString": {
- "description": "The text to replace it with (must be different from oldString)",
- "type": "string",
- },
- "oldString": {
- "description": "The text to replace",
- "type": "string",
- },
- "replaceAll": {
- "description": "Replace all occurrences of oldString (default false)",
- "type": "boolean",
- },
- },
- "required": [
- "filePath",
- "oldString",
- "newString",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) glob 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "path": {
- "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.",
- "type": "string",
- },
- "pattern": {
- "description": "The glob pattern to match files against",
- "type": "string",
- },
- },
- "required": [
- "pattern",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) grep 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "include": {
- "description": "File pattern to include in the search (e.g. "*.js", "*.{ts,tsx}")",
- "type": "string",
- },
- "path": {
- "description": "The directory to search in. Defaults to the current working directory.",
- "type": "string",
- },
- "pattern": {
- "description": "The regex pattern to search for in file contents",
- "type": "string",
- },
- },
- "required": [
- "pattern",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) invalid 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "error": {
- "type": "string",
- },
- "tool": {
- "type": "string",
- },
- },
- "required": [
- "tool",
- "error",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) lsp 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "character": {
- "description": "The character offset (1-based, as shown in editors)",
- "maximum": 9007199254740991,
- "minimum": 1,
- "type": "integer",
- },
- "filePath": {
- "description": "The absolute or relative path to the file",
- "type": "string",
- },
- "line": {
- "description": "The line number (1-based, as shown in editors)",
- "maximum": 9007199254740991,
- "minimum": 1,
- "type": "integer",
- },
- "operation": {
- "description": "The LSP operation to perform",
- "enum": [
- "goToDefinition",
- "findReferences",
- "hover",
- "documentSymbol",
- "workspaceSymbol",
- "goToImplementation",
- "prepareCallHierarchy",
- "incomingCalls",
- "outgoingCalls",
- ],
- "type": "string",
- },
- "query": {
- "description": "Search query for workspaceSymbol. Empty string requests all symbols.",
- "type": "string",
- },
- },
- "required": [
- "operation",
- "filePath",
- "line",
- "character",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) plan 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {},
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) question 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "questions": {
- "description": "Questions to ask",
- "items": {
- "properties": {
- "header": {
- "description": "Very short label (max 30 chars)",
- "type": "string",
- },
- "multiple": {
- "description": "Allow selecting multiple choices",
- "type": "boolean",
- },
- "options": {
- "description": "Available choices",
- "items": {
- "properties": {
- "description": {
- "description": "Explanation of choice",
- "type": "string",
- },
- "label": {
- "description": "Display text (1-5 words, concise)",
- "type": "string",
- },
- },
- "required": [
- "label",
- "description",
- ],
- "type": "object",
- },
- "type": "array",
- },
- "question": {
- "description": "Complete question",
- "type": "string",
- },
- },
- "required": [
- "question",
- "header",
- "options",
- ],
- "type": "object",
- },
- "type": "array",
- },
- },
- "required": [
- "questions",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) read 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "filePath": {
- "description": "The absolute path to the file or directory to read",
- "type": "string",
- },
- "limit": {
- "description": "The maximum number of lines to read (defaults to 2000)",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer",
- },
- "offset": {
- "description": "The line number to start reading from (1-indexed)",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer",
- },
- },
- "required": [
- "filePath",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) skill 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "name": {
- "description": "The name of the skill from available_skills",
- "type": "string",
- },
- },
- "required": [
- "name",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) task 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "background": {
- "description": "Run the agent in the background. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress",
- "type": "boolean",
- },
- "command": {
- "description": "The command that triggered this task",
- "type": "string",
- },
- "description": {
- "description": "A short (3-5 words) description of the task",
- "type": "string",
- },
- "prompt": {
- "description": "The task for the agent to perform",
- "type": "string",
- },
- "subagent_type": {
- "description": "The type of specialized agent to use for this task",
- "type": "string",
- },
- "task_id": {
- "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)",
- "type": "string",
- },
- },
- "required": [
- "description",
- "prompt",
- "subagent_type",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) todo 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "todos": {
- "description": "The updated todo list",
- "items": {
- "properties": {
- "content": {
- "description": "Brief description of the task",
- "type": "string",
- },
- "priority": {
- "description": "Priority level of the task: high, medium, low",
- "type": "string",
- },
- "status": {
- "description": "Current status of the task: pending, in_progress, completed, cancelled",
- "type": "string",
- },
- },
- "required": [
- "content",
- "status",
- "priority",
- ],
- "type": "object",
- },
- "type": "array",
- },
- },
- "required": [
- "todos",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) webfetch 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "format": {
- "default": "markdown",
- "description": "The format to return the content in (text, markdown, or html). Defaults to markdown.",
- "enum": [
- "text",
- "markdown",
- "html",
- ],
- "type": "string",
- },
- "timeout": {
- "description": "Optional timeout in seconds (max 120)",
- "type": "number",
- },
- "url": {
- "description": "The URL to fetch content from",
- "type": "string",
- },
- },
- "required": [
- "url",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) websearch 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "contextMaxCharacters": {
- "description": "Maximum characters for context string optimized for LLMs (default: 10000)",
- "type": "number",
- },
- "livecrawl": {
- "description": "Live crawl mode - 'fallback': use live crawling as backup if cached content unavailable, 'preferred': prioritize live crawling (default: 'fallback')",
- "enum": [
- "fallback",
- "preferred",
- ],
- "type": "string",
- },
- "numResults": {
- "description": "Number of search results to return (default: 8)",
- "type": "number",
- },
- "query": {
- "description": "Websearch query",
- "type": "string",
- },
- "type": {
- "description": "Search type - 'auto': balanced search (default), 'fast': quick results, 'deep': comprehensive search",
- "enum": [
- "auto",
- "fast",
- "deep",
- ],
- "type": "string",
- },
- },
- "required": [
- "query",
- ],
- "type": "object",
- }
- `;
- exports[`tool parameters JSON Schema (wire shape) write 1`] = `
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "content": {
- "description": "The content to write to the file",
- "type": "string",
- },
- "filePath": {
- "description": "The absolute path to the file to write (must be absolute, not relative)",
- "type": "string",
- },
- },
- "required": [
- "content",
- "filePath",
- ],
- "type": "object",
- }
- `;
|