@levelcode/sdk 0.2.2 → 0.2.3
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.
- package/dist/agents/constants.d.ts +1 -0
- package/dist/agents/team/apprentice.d.ts +3 -0
- package/dist/agents/team/coordinator.d.ts +3 -0
- package/dist/agents/team/cto.d.ts +3 -0
- package/dist/agents/team/designer.d.ts +3 -0
- package/dist/agents/team/director.d.ts +3 -0
- package/dist/agents/team/distinguished-engineer.d.ts +3 -0
- package/dist/agents/team/fellow.d.ts +3 -0
- package/dist/agents/team/index.d.ts +27 -0
- package/dist/agents/team/intern.d.ts +3 -0
- package/dist/agents/team/junior-engineer.d.ts +3 -0
- package/dist/agents/team/manager.d.ts +3 -0
- package/dist/agents/team/mid-level-engineer.d.ts +3 -0
- package/dist/agents/team/principal-engineer.d.ts +3 -0
- package/dist/agents/team/product-lead.d.ts +3 -0
- package/dist/agents/team/researcher.d.ts +3 -0
- package/dist/agents/team/role-hierarchy.d.ts +24 -0
- package/dist/agents/team/scientist.d.ts +3 -0
- package/dist/agents/team/senior-engineer.d.ts +3 -0
- package/dist/agents/team/senior-staff-engineer.d.ts +3 -0
- package/dist/agents/team/staff-engineer.d.ts +3 -0
- package/dist/agents/team/sub-manager.d.ts +3 -0
- package/dist/agents/team/tester.d.ts +3 -0
- package/dist/agents/team/vp-engineering.d.ts +3 -0
- package/dist/agents/types/agent-definition.d.ts +296 -0
- package/dist/agents/types/secret-agent-definition.d.ts +19 -0
- package/dist/agents/types/tools.d.ts +308 -0
- package/dist/agents/types/util-types.d.ts +134 -0
- package/dist/common/src/actions.d.ts +176 -0
- package/dist/common/src/analytics-core.d.ts +52 -0
- package/dist/common/src/analytics.d.ts +9 -0
- package/dist/common/src/browser-actions.d.ts +1200 -0
- package/dist/common/src/constants/agents.d.ts +47 -0
- package/dist/common/src/constants/analytics-events.d.ts +111 -0
- package/dist/common/src/constants/byok.d.ts +2 -0
- package/dist/common/src/constants/claude-oauth.d.ts +36 -0
- package/dist/common/src/constants/index.d.ts +4 -0
- package/dist/common/src/constants/knowledge.d.ts +21 -0
- package/dist/common/src/constants/limits.d.ts +14 -0
- package/dist/common/src/constants/model-config.d.ts +117 -0
- package/dist/common/src/constants/paths.d.ts +23 -0
- package/dist/common/src/constants/skills.d.ts +42 -0
- package/dist/common/src/constants/ui.d.ts +14 -0
- package/dist/common/src/env-ci.d.ts +22 -0
- package/dist/common/src/env-process.d.ts +28 -0
- package/dist/common/src/env-schema.d.ts +24 -0
- package/dist/common/src/env.d.ts +16 -0
- package/dist/common/src/mcp/client.d.ts +6 -0
- package/dist/common/src/old-constants.d.ts +10 -0
- package/dist/common/src/project-file-tree.d.ts +27 -0
- package/dist/common/src/templates/agent-validation.d.ts +48 -0
- package/dist/common/src/templates/initial-agents-dir/types/agent-definition.d.ts +296 -0
- package/dist/common/src/templates/initial-agents-dir/types/tools.d.ts +308 -0
- package/dist/common/src/templates/initial-agents-dir/types/util-types.d.ts +128 -0
- package/dist/common/src/testing/errors.d.ts +14 -0
- package/dist/common/src/testing/mock-modules.d.ts +11 -0
- package/dist/common/src/testing/mock-types.d.ts +97 -0
- package/dist/common/src/testing/mocks/analytics.d.ts +182 -0
- package/dist/common/src/testing/mocks/child-process.d.ts +29 -0
- package/dist/common/src/testing/mocks/crypto.d.ts +159 -0
- package/dist/common/src/testing/mocks/database.d.ts +197 -0
- package/dist/common/src/testing/mocks/fetch.d.ts +35 -0
- package/dist/common/src/testing/mocks/filesystem.d.ts +31 -0
- package/dist/common/src/testing/mocks/index.d.ts +25 -0
- package/dist/common/src/testing/mocks/logger.d.ts +35 -0
- package/dist/common/src/testing/mocks/stream.d.ts +203 -0
- package/dist/common/src/testing/mocks/timers.d.ts +27 -0
- package/dist/common/src/testing/mocks/tree-sitter.d.ts +58 -0
- package/dist/common/src/testing-env-process.d.ts +7 -0
- package/dist/common/src/tools/constants.d.ts +17 -0
- package/dist/common/src/tools/list.d.ts +1152 -0
- package/dist/common/src/tools/params/tool/add-message.d.ts +19 -0
- package/dist/common/src/tools/params/tool/add-subgoal.d.ts +26 -0
- package/dist/common/src/tools/params/tool/ask-user.d.ts +59 -0
- package/dist/common/src/tools/params/tool/browser-logs.d.ts +127 -0
- package/dist/common/src/tools/params/tool/code-search.d.ts +30 -0
- package/dist/common/src/tools/params/tool/create-plan.d.ts +30 -0
- package/dist/common/src/tools/params/tool/end-turn.d.ts +13 -0
- package/dist/common/src/tools/params/tool/find-files.d.ts +31 -0
- package/dist/common/src/tools/params/tool/glob.d.ts +26 -0
- package/dist/common/src/tools/params/tool/list-directory.d.ts +25 -0
- package/dist/common/src/tools/params/tool/lookup-agent-info.d.ts +13 -0
- package/dist/common/src/tools/params/tool/propose-str-replace.d.ts +40 -0
- package/dist/common/src/tools/params/tool/propose-write-file.d.ts +29 -0
- package/dist/common/src/tools/params/tool/read-docs.d.ts +19 -0
- package/dist/common/src/tools/params/tool/read-files.d.ts +35 -0
- package/dist/common/src/tools/params/tool/read-subtree.d.ts +40 -0
- package/dist/common/src/tools/params/tool/run-file-change-hooks.d.ts +63 -0
- package/dist/common/src/tools/params/tool/run-terminal-command.d.ts +88 -0
- package/dist/common/src/tools/params/tool/send-message.d.ts +26 -0
- package/dist/common/src/tools/params/tool/set-messages.d.ts +15 -0
- package/dist/common/src/tools/params/tool/set-output.d.ts +15 -0
- package/dist/common/src/tools/params/tool/skill.d.ts +28 -0
- package/dist/common/src/tools/params/tool/spawn-agent-inline.d.ts +17 -0
- package/dist/common/src/tools/params/tool/spawn-agents.d.ts +26 -0
- package/dist/common/src/tools/params/tool/str-replace.d.ts +43 -0
- package/dist/common/src/tools/params/tool/suggest-followups.d.ts +26 -0
- package/dist/common/src/tools/params/tool/task-completed.d.ts +13 -0
- package/dist/common/src/tools/params/tool/task-create.d.ts +24 -0
- package/dist/common/src/tools/params/tool/task-get.d.ts +15 -0
- package/dist/common/src/tools/params/tool/task-list.d.ts +13 -0
- package/dist/common/src/tools/params/tool/task-update.d.ts +29 -0
- package/dist/common/src/tools/params/tool/team-create.d.ts +17 -0
- package/dist/common/src/tools/params/tool/team-delete.d.ts +13 -0
- package/dist/common/src/tools/params/tool/think-deeply.d.ts +15 -0
- package/dist/common/src/tools/params/tool/update-subgoal.d.ts +25 -0
- package/dist/common/src/tools/params/tool/web-search.d.ts +25 -0
- package/dist/common/src/tools/params/tool/write-file.d.ts +31 -0
- package/dist/common/src/tools/params/tool/write-todos.d.ts +18 -0
- package/dist/common/src/tools/params/utils.d.ts +35 -0
- package/dist/common/src/tools/utils.d.ts +4 -0
- package/dist/common/src/types/agent-template.d.ts +156 -0
- package/dist/common/src/types/contracts/agent-runtime.d.ts +36 -0
- package/dist/common/src/types/contracts/analytics.d.ts +8 -0
- package/dist/common/src/types/contracts/billing.d.ts +40 -0
- package/dist/common/src/types/contracts/client.d.ts +45 -0
- package/dist/common/src/types/contracts/database.d.ts +80 -0
- package/dist/common/src/types/contracts/env.d.ts +150 -0
- package/dist/common/src/types/contracts/llm.d.ts +102 -0
- package/dist/common/src/types/contracts/logger.d.ts +8 -0
- package/dist/common/src/types/dynamic-agent-template.d.ts +227 -0
- package/dist/common/src/types/filesystem.d.ts +6 -0
- package/dist/common/src/types/function-params.d.ts +15 -0
- package/dist/common/src/types/grant.d.ts +2 -0
- package/dist/common/src/types/json.d.ts +9 -0
- package/dist/common/src/types/mcp.d.ts +31 -0
- package/dist/common/src/types/messages/content-part.d.ts +46 -0
- package/dist/common/src/types/messages/data-content.d.ts +3 -0
- package/dist/common/src/types/messages/levelcode-message.d.ts +37 -0
- package/dist/common/src/types/messages/provider-metadata.d.ts +3 -0
- package/dist/common/src/types/print-mode.d.ts +155 -0
- package/dist/common/src/types/session-state.d.ts +94 -0
- package/dist/common/src/types/skill.d.ts +31 -0
- package/dist/common/src/types/source.d.ts +8 -0
- package/dist/common/src/types/spawn.d.ts +8 -0
- package/dist/common/src/types/team-config-schemas.d.ts +217 -0
- package/dist/common/src/types/team-config.d.ts +42 -0
- package/dist/common/src/types/team-hook-events.d.ts +36 -0
- package/dist/common/src/types/team-protocol.d.ts +64 -0
- package/dist/common/src/util/agent-id-parsing.d.ts +22 -0
- package/dist/common/src/util/agent-name-normalization.d.ts +12 -0
- package/dist/common/src/util/array.d.ts +6 -0
- package/dist/common/src/util/credentials.d.ts +11 -0
- package/dist/common/src/util/error.d.ts +128 -0
- package/dist/common/src/util/file.d.ts +133 -0
- package/dist/common/src/util/format-code-search.d.ts +16 -0
- package/dist/common/src/util/lru-cache.d.ts +30 -0
- package/dist/common/src/util/messages.d.ts +46 -0
- package/dist/common/src/util/model-utils.d.ts +8 -0
- package/dist/common/src/util/object.d.ts +22 -0
- package/dist/common/src/util/promise.d.ts +16 -0
- package/dist/common/src/util/random.d.ts +1 -0
- package/dist/common/src/util/skills.d.ts +5 -0
- package/dist/common/src/util/stop-sequence.d.ts +14 -0
- package/dist/common/src/util/string.d.ts +82 -0
- package/dist/common/src/util/xml.d.ts +12 -0
- package/dist/common/src/util/zod-schema.d.ts +5 -0
- package/dist/common/src/utils/dev-phases.d.ts +23 -0
- package/dist/common/src/utils/file-lock.d.ts +13 -0
- package/dist/common/src/utils/team-analytics.d.ts +16 -0
- package/dist/common/src/utils/team-discovery.d.ts +47 -0
- package/dist/common/src/utils/team-fs.d.ts +20 -0
- package/dist/common/src/utils/team-hook-emitter.d.ts +40 -0
- package/dist/common/src/utils/team-presets.d.ts +35 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +3 -3
- package/dist/packages/agent-runtime/src/constants.d.ts +1 -0
- package/dist/packages/agent-runtime/src/fast-rewrite.d.ts +45 -0
- package/dist/packages/agent-runtime/src/find-files/request-files-prompt.d.ts +71 -0
- package/dist/packages/agent-runtime/src/generate-diffs-prompt.d.ts +53 -0
- package/dist/packages/agent-runtime/src/get-file-reading-updates.d.ts +8 -0
- package/dist/packages/agent-runtime/src/inbox-poller.d.ts +81 -0
- package/dist/packages/agent-runtime/src/llm-api/claude.d.ts +5 -0
- package/dist/packages/agent-runtime/src/llm-api/context7-api.d.ts +55 -0
- package/dist/packages/agent-runtime/src/llm-api/gemini-with-fallbacks.d.ts +40 -0
- package/dist/packages/agent-runtime/src/llm-api/levelcode-web-api.d.ts +49 -0
- package/dist/packages/agent-runtime/src/llm-api/relace-api.d.ts +16 -0
- package/dist/packages/agent-runtime/src/main-prompt.d.ts +29 -0
- package/dist/packages/agent-runtime/src/mcp-constants.d.ts +12 -0
- package/dist/packages/agent-runtime/src/mcp.d.ts +10 -0
- package/dist/packages/agent-runtime/src/message-formatter.d.ts +12 -0
- package/dist/packages/agent-runtime/src/process-file-block.d.ts +56 -0
- package/dist/packages/agent-runtime/src/process-str-replace.d.ts +21 -0
- package/dist/packages/agent-runtime/src/prompt-agent-stream.d.ts +28 -0
- package/dist/packages/agent-runtime/src/run-agent-step.d.ts +73 -0
- package/dist/packages/agent-runtime/src/run-programmatic-step.d.ts +40 -0
- package/dist/packages/agent-runtime/src/system-prompt/prompts.d.ts +19 -0
- package/dist/packages/agent-runtime/src/system-prompt/search-system-prompt.d.ts +14 -0
- package/dist/packages/agent-runtime/src/system-prompt/team-context-prompt.d.ts +9 -0
- package/dist/packages/agent-runtime/src/system-prompt/team-prompt.d.ts +9 -0
- package/dist/packages/agent-runtime/src/system-prompt/truncate-file-tree.d.ts +13 -0
- package/dist/packages/agent-runtime/src/team-context.d.ts +14 -0
- package/dist/packages/agent-runtime/src/templates/agent-registry.d.ts +35 -0
- package/dist/packages/agent-runtime/src/templates/prompts.d.ts +35 -0
- package/dist/packages/agent-runtime/src/templates/strings.d.ts +32 -0
- package/dist/packages/agent-runtime/src/templates/types.d.ts +13 -0
- package/dist/packages/agent-runtime/src/tool-stream-parser.d.ts +31 -0
- package/dist/packages/agent-runtime/src/tools/handlers/handler-function-type.d.ts +51 -0
- package/dist/packages/agent-runtime/src/tools/handlers/list.d.ts +370 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/add-message.d.ts +9 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/add-subgoal.d.ts +9 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/ask-user.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/browser-logs.d.ts +8 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/code-search.d.ts +8 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/create-plan.d.ts +13 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/end-turn.d.ts +7 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/find-files.d.ts +27 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/glob.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/list-directory.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/lookup-agent-info.d.ts +14 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/propose-str-replace.d.ts +15 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/propose-write-file.d.ts +7 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/proposed-content-store.d.ts +27 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/read-docs.d.ts +21 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/read-files.d.ts +13 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/read-subtree.d.ts +13 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/run-file-change-hooks.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/run-terminal-command.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/send-message.d.ts +15 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/set-messages.d.ts +9 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/set-output.d.ts +18 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/skill.d.ts +11 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-inline.d.ts +29 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-utils.d.ts +130 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agents.d.ts +37 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/str-replace.d.ts +16 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/suggest-followups.d.ts +9 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-completed.d.ts +15 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-create.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-get.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-list.d.ts +10 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-update.d.ts +15 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/team-create.d.ts +15 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/team-delete.d.ts +15 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/think-deeply.d.ts +9 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/update-subgoal.d.ts +11 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/web-search.d.ts +22 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/write-file.d.ts +49 -0
- package/dist/packages/agent-runtime/src/tools/handlers/tool/write-todos.d.ts +9 -0
- package/dist/packages/agent-runtime/src/tools/prompts.d.ts +31 -0
- package/dist/packages/agent-runtime/src/tools/stream-parser.d.ts +33 -0
- package/dist/packages/agent-runtime/src/tools/tool-executor.d.ts +87 -0
- package/dist/packages/agent-runtime/src/util/agent-output.d.ts +3 -0
- package/dist/packages/agent-runtime/src/util/messages.d.ts +68 -0
- package/dist/packages/agent-runtime/src/util/parse-tool-calls-from-text.d.ts +38 -0
- package/dist/packages/agent-runtime/src/util/render-read-files-result.d.ts +15 -0
- package/dist/packages/agent-runtime/src/util/simplify-tool-results.d.ts +7 -0
- package/dist/packages/agent-runtime/src/util/stream-xml-parser.d.ts +34 -0
- package/dist/packages/agent-runtime/src/util/token-counter.d.ts +3 -0
- package/dist/packages/code-map/src/index.d.ts +3 -0
- package/dist/packages/code-map/src/init-node.d.ts +4 -0
- package/dist/packages/code-map/src/languages.d.ts +36 -0
- package/dist/packages/code-map/src/parse.d.ts +21 -0
- package/dist/packages/code-map/src/types.d.ts +8 -0
- package/dist/packages/code-map/src/utils.d.ts +1 -0
- package/dist/sdk/src/__tests__/client.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/code-search.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/credentials.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/database.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/env.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/error-utils.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/initial-session-state.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/knowledge-file-selection.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/load-agents.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/load-mcp-config.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/model-provider.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/read-files.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/run-cancellation.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/run-file-filter.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/run-handle-event.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/run.integration.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/team-api.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/user-knowledge-files.test.d.ts +1 -0
- package/dist/sdk/src/__tests__/validate-agents.test.d.ts +1 -0
- package/dist/sdk/src/agents/load-agents.d.ts +106 -0
- package/dist/sdk/src/agents/load-mcp-config.d.ts +69 -0
- package/dist/sdk/src/client.d.ts +71 -0
- package/dist/sdk/src/constants.d.ts +4 -0
- package/dist/sdk/src/credentials.d.ts +58 -0
- package/dist/sdk/src/custom-tool.d.ts +32 -0
- package/dist/sdk/src/env.d.ts +31 -0
- package/dist/sdk/src/error-utils.d.ts +55 -0
- package/dist/sdk/src/impl/__tests__/prompt-result.test.d.ts +1 -0
- package/dist/sdk/src/impl/agent-runtime.d.ts +8 -0
- package/dist/sdk/src/impl/database.d.ts +7 -0
- package/dist/sdk/src/impl/llm.d.ts +8 -0
- package/dist/sdk/src/impl/model-provider.d.ts +61 -0
- package/dist/sdk/src/index.d.ts +42 -0
- package/dist/sdk/src/native/ripgrep.d.ts +7 -0
- package/dist/sdk/src/retry-config.d.ts +46 -0
- package/dist/sdk/src/run-state.d.ts +81 -0
- package/dist/sdk/src/run.d.ts +79 -0
- package/dist/sdk/src/skills/load-skills.d.ts +42 -0
- package/dist/sdk/src/team.d.ts +49 -0
- package/dist/sdk/src/testing/env.d.ts +5 -0
- package/dist/sdk/src/tools/change-file.d.ts +7 -0
- package/dist/sdk/src/tools/code-search.d.ts +13 -0
- package/dist/sdk/src/tools/glob.d.ts +8 -0
- package/dist/sdk/src/tools/index.d.ts +16 -0
- package/dist/sdk/src/tools/list-directory.d.ts +7 -0
- package/dist/sdk/src/tools/read-files.d.ts +16 -0
- package/dist/sdk/src/tools/run-file-change-hooks.d.ts +4 -0
- package/dist/sdk/src/tools/run-terminal-command.d.ts +8 -0
- package/dist/sdk/src/types/env.d.ts +30 -0
- package/dist/sdk/src/validate-agents.d.ts +45 -0
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/x64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/dist/wasm/tree-sitter-c-sharp.wasm +0 -0
- package/dist/wasm/tree-sitter-cpp.wasm +0 -0
- package/dist/wasm/tree-sitter-go.wasm +0 -0
- package/dist/wasm/tree-sitter-java.wasm +0 -0
- package/dist/wasm/tree-sitter-javascript.wasm +0 -0
- package/dist/wasm/tree-sitter-python.wasm +0 -0
- package/dist/wasm/tree-sitter-ruby.wasm +0 -0
- package/dist/wasm/tree-sitter-rust.wasm +0 -0
- package/dist/wasm/tree-sitter-tsx.wasm +0 -0
- package/dist/wasm/tree-sitter-typescript.wasm +0 -0
- package/dist/wasm/tree-sitter.wasm +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const addMessageParams: {
|
|
3
|
+
toolName: "add_message";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
role: z.ZodEnum<{
|
|
8
|
+
user: "user";
|
|
9
|
+
assistant: "assistant";
|
|
10
|
+
}>;
|
|
11
|
+
content: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"json">;
|
|
15
|
+
value: z.ZodObject<{
|
|
16
|
+
message: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>], null>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const addSubgoalParams: {
|
|
3
|
+
toolName: "add_subgoal";
|
|
4
|
+
endsAgentStep: false;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
objective: z.ZodString;
|
|
9
|
+
status: z.ZodEnum<{
|
|
10
|
+
NOT_STARTED: "NOT_STARTED";
|
|
11
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
12
|
+
COMPLETE: "COMPLETE";
|
|
13
|
+
ABORTED: "ABORTED";
|
|
14
|
+
}>;
|
|
15
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
16
|
+
log: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<"json">;
|
|
20
|
+
value: z.ZodType<{
|
|
21
|
+
message: string;
|
|
22
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
23
|
+
message: string;
|
|
24
|
+
}, unknown>>;
|
|
25
|
+
}, z.core.$strip>], null>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const questionSchema: z.ZodObject<{
|
|
3
|
+
question: z.ZodString;
|
|
4
|
+
header: z.ZodOptional<z.ZodString>;
|
|
5
|
+
options: z.ZodArray<z.ZodObject<{
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
multiSelect: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
14
|
+
patternError: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type AskUserQuestion = z.infer<typeof questionSchema>;
|
|
18
|
+
export declare const askUserParams: {
|
|
19
|
+
toolName: "ask_user";
|
|
20
|
+
endsAgentStep: true;
|
|
21
|
+
description: string;
|
|
22
|
+
inputSchema: z.ZodObject<{
|
|
23
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
24
|
+
question: z.ZodString;
|
|
25
|
+
header: z.ZodOptional<z.ZodString>;
|
|
26
|
+
options: z.ZodArray<z.ZodObject<{
|
|
27
|
+
label: z.ZodString;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
multiSelect: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
35
|
+
patternError: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<"json">;
|
|
41
|
+
value: z.ZodType<{
|
|
42
|
+
answers?: {
|
|
43
|
+
questionIndex: number;
|
|
44
|
+
selectedOption?: string | undefined;
|
|
45
|
+
selectedOptions?: string[] | undefined;
|
|
46
|
+
otherText?: string | undefined;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
skipped?: boolean | undefined;
|
|
49
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
50
|
+
answers?: {
|
|
51
|
+
questionIndex: number;
|
|
52
|
+
selectedOption?: string | undefined;
|
|
53
|
+
selectedOptions?: string[] | undefined;
|
|
54
|
+
otherText?: string | undefined;
|
|
55
|
+
}[] | undefined;
|
|
56
|
+
skipped?: boolean | undefined;
|
|
57
|
+
}, unknown>>;
|
|
58
|
+
}, z.core.$strip>], null>;
|
|
59
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const browserLogsParams: {
|
|
3
|
+
toolName: "browser_logs";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
type: z.ZodString;
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
networkidle0: "networkidle0";
|
|
11
|
+
load: "load";
|
|
12
|
+
domcontentloaded: "domcontentloaded";
|
|
13
|
+
}>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"json">;
|
|
17
|
+
value: z.ZodType<{
|
|
18
|
+
success: boolean;
|
|
19
|
+
logs: {
|
|
20
|
+
type: "error" | "debug" | "info" | "warning" | "verbose";
|
|
21
|
+
message: string;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
source: "tool" | "browser";
|
|
24
|
+
location?: string | undefined;
|
|
25
|
+
stack?: string | undefined;
|
|
26
|
+
category?: string | undefined;
|
|
27
|
+
level?: number | undefined;
|
|
28
|
+
}[];
|
|
29
|
+
error?: string | undefined;
|
|
30
|
+
logFilter?: {
|
|
31
|
+
types?: ("error" | "debug" | "info" | "warning" | "verbose")[] | undefined;
|
|
32
|
+
minLevel?: number | undefined;
|
|
33
|
+
categories?: string[] | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
networkEvents?: {
|
|
36
|
+
url: string;
|
|
37
|
+
method: string;
|
|
38
|
+
timestamp: number;
|
|
39
|
+
status?: number | undefined;
|
|
40
|
+
errorText?: string | undefined;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
metrics?: {
|
|
43
|
+
loadTime: number;
|
|
44
|
+
memoryUsage: number;
|
|
45
|
+
jsErrors: number;
|
|
46
|
+
networkErrors: number;
|
|
47
|
+
ttfb?: number | undefined;
|
|
48
|
+
lcp?: number | undefined;
|
|
49
|
+
fcp?: number | undefined;
|
|
50
|
+
domContentLoaded?: number | undefined;
|
|
51
|
+
sessionDuration?: number | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
screenshots?: {
|
|
54
|
+
post: {
|
|
55
|
+
type: "image";
|
|
56
|
+
source: {
|
|
57
|
+
type: "base64";
|
|
58
|
+
media_type: "image/jpeg";
|
|
59
|
+
data: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
pre?: {
|
|
63
|
+
type: "image";
|
|
64
|
+
source: {
|
|
65
|
+
type: "base64";
|
|
66
|
+
media_type: "image/jpeg";
|
|
67
|
+
data: string;
|
|
68
|
+
};
|
|
69
|
+
} | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
72
|
+
success: boolean;
|
|
73
|
+
logs: {
|
|
74
|
+
type: "error" | "debug" | "info" | "warning" | "verbose";
|
|
75
|
+
message: string;
|
|
76
|
+
timestamp: number;
|
|
77
|
+
source: "tool" | "browser";
|
|
78
|
+
location?: string | undefined;
|
|
79
|
+
stack?: string | undefined;
|
|
80
|
+
category?: string | undefined;
|
|
81
|
+
level?: number | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
error?: string | undefined;
|
|
84
|
+
logFilter?: {
|
|
85
|
+
types?: ("error" | "debug" | "info" | "warning" | "verbose")[] | undefined;
|
|
86
|
+
minLevel?: number | undefined;
|
|
87
|
+
categories?: string[] | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
networkEvents?: {
|
|
90
|
+
url: string;
|
|
91
|
+
method: string;
|
|
92
|
+
timestamp: number;
|
|
93
|
+
status?: number | undefined;
|
|
94
|
+
errorText?: string | undefined;
|
|
95
|
+
}[] | undefined;
|
|
96
|
+
metrics?: {
|
|
97
|
+
loadTime: number;
|
|
98
|
+
memoryUsage: number;
|
|
99
|
+
jsErrors: number;
|
|
100
|
+
networkErrors: number;
|
|
101
|
+
ttfb?: number | undefined;
|
|
102
|
+
lcp?: number | undefined;
|
|
103
|
+
fcp?: number | undefined;
|
|
104
|
+
domContentLoaded?: number | undefined;
|
|
105
|
+
sessionDuration?: number | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
screenshots?: {
|
|
108
|
+
post: {
|
|
109
|
+
type: "image";
|
|
110
|
+
source: {
|
|
111
|
+
type: "base64";
|
|
112
|
+
media_type: "image/jpeg";
|
|
113
|
+
data: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
pre?: {
|
|
117
|
+
type: "image";
|
|
118
|
+
source: {
|
|
119
|
+
type: "base64";
|
|
120
|
+
media_type: "image/jpeg";
|
|
121
|
+
data: string;
|
|
122
|
+
};
|
|
123
|
+
} | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
}, unknown>>;
|
|
126
|
+
}, z.core.$strip>], null>;
|
|
127
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const codeSearchParams: {
|
|
3
|
+
toolName: "code_search";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
pattern: z.ZodString;
|
|
8
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
9
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
10
|
+
maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<"json">;
|
|
14
|
+
value: z.ZodType<{
|
|
15
|
+
stdout: string;
|
|
16
|
+
message: string;
|
|
17
|
+
stderr?: string | undefined;
|
|
18
|
+
exitCode?: number | undefined;
|
|
19
|
+
} | {
|
|
20
|
+
errorMessage: string;
|
|
21
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
22
|
+
stdout: string;
|
|
23
|
+
message: string;
|
|
24
|
+
stderr?: string | undefined;
|
|
25
|
+
exitCode?: number | undefined;
|
|
26
|
+
} | {
|
|
27
|
+
errorMessage: string;
|
|
28
|
+
}, unknown>>;
|
|
29
|
+
}, z.core.$strip>], null>;
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const createPlanParams: {
|
|
3
|
+
toolName: "create_plan";
|
|
4
|
+
endsAgentStep: false;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
plan: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<"json">;
|
|
12
|
+
value: z.ZodType<{
|
|
13
|
+
file: string;
|
|
14
|
+
message: string;
|
|
15
|
+
unifiedDiff: string;
|
|
16
|
+
} | {
|
|
17
|
+
file: string;
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
patch?: string | undefined;
|
|
20
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
21
|
+
file: string;
|
|
22
|
+
message: string;
|
|
23
|
+
unifiedDiff: string;
|
|
24
|
+
} | {
|
|
25
|
+
file: string;
|
|
26
|
+
errorMessage: string;
|
|
27
|
+
patch?: string | undefined;
|
|
28
|
+
}, unknown>>;
|
|
29
|
+
}, z.core.$strip>], null>;
|
|
30
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const endTurnParams: {
|
|
3
|
+
toolName: "end_turn";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"json">;
|
|
9
|
+
value: z.ZodObject<{
|
|
10
|
+
message: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>], null>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const findFilesParams: {
|
|
3
|
+
toolName: "find_files";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
prompt: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"json">;
|
|
11
|
+
value: z.ZodType<({
|
|
12
|
+
path: string;
|
|
13
|
+
content: string;
|
|
14
|
+
referencedBy?: Record<string, string[]> | undefined;
|
|
15
|
+
} | {
|
|
16
|
+
path: string;
|
|
17
|
+
contentOmittedForLength: true;
|
|
18
|
+
})[] | {
|
|
19
|
+
message: string;
|
|
20
|
+
}, unknown, z.core.$ZodTypeInternals<({
|
|
21
|
+
path: string;
|
|
22
|
+
content: string;
|
|
23
|
+
referencedBy?: Record<string, string[]> | undefined;
|
|
24
|
+
} | {
|
|
25
|
+
path: string;
|
|
26
|
+
contentOmittedForLength: true;
|
|
27
|
+
})[] | {
|
|
28
|
+
message: string;
|
|
29
|
+
}, unknown>>;
|
|
30
|
+
}, z.core.$strip>], null>;
|
|
31
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const globParams: {
|
|
3
|
+
toolName: "glob";
|
|
4
|
+
description: string;
|
|
5
|
+
endsAgentStep: false;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
pattern: z.ZodString;
|
|
8
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<"json">;
|
|
12
|
+
value: z.ZodType<{
|
|
13
|
+
files: string[];
|
|
14
|
+
count: number;
|
|
15
|
+
message: string;
|
|
16
|
+
} | {
|
|
17
|
+
errorMessage: string;
|
|
18
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
19
|
+
files: string[];
|
|
20
|
+
count: number;
|
|
21
|
+
message: string;
|
|
22
|
+
} | {
|
|
23
|
+
errorMessage: string;
|
|
24
|
+
}, unknown>>;
|
|
25
|
+
}, z.core.$strip>], null>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const listDirectoryParams: {
|
|
3
|
+
toolName: "list_directory";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"json">;
|
|
11
|
+
value: z.ZodType<{
|
|
12
|
+
files: string[];
|
|
13
|
+
directories: string[];
|
|
14
|
+
path: string;
|
|
15
|
+
} | {
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
18
|
+
files: string[];
|
|
19
|
+
directories: string[];
|
|
20
|
+
path: string;
|
|
21
|
+
} | {
|
|
22
|
+
errorMessage: string;
|
|
23
|
+
}, unknown>>;
|
|
24
|
+
}, z.core.$strip>], null>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const lookupAgentInfoParams: {
|
|
3
|
+
toolName: "lookup_agent_info";
|
|
4
|
+
endsAgentStep: false;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
agentId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"json">;
|
|
11
|
+
value: z.ZodType<import("../../../types/json").JSONValue, unknown, z.core.$ZodTypeInternals<import("../../../types/json").JSONValue, unknown>>;
|
|
12
|
+
}, z.core.$strip>], null>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const proposeUpdateFileResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3
|
+
file: z.ZodString;
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
unifiedDiff: z.ZodString;
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7
|
+
file: z.ZodString;
|
|
8
|
+
errorMessage: z.ZodString;
|
|
9
|
+
}, z.core.$strip>]>;
|
|
10
|
+
export declare const proposeStrReplaceParams: {
|
|
11
|
+
toolName: "propose_str_replace";
|
|
12
|
+
endsAgentStep: false;
|
|
13
|
+
description: string;
|
|
14
|
+
inputSchema: z.ZodObject<{
|
|
15
|
+
path: z.ZodString;
|
|
16
|
+
replacements: z.ZodArray<z.ZodObject<{
|
|
17
|
+
old: z.ZodString;
|
|
18
|
+
new: z.ZodString;
|
|
19
|
+
allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"json">;
|
|
24
|
+
value: z.ZodType<{
|
|
25
|
+
file: string;
|
|
26
|
+
message: string;
|
|
27
|
+
unifiedDiff: string;
|
|
28
|
+
} | {
|
|
29
|
+
file: string;
|
|
30
|
+
errorMessage: string;
|
|
31
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
32
|
+
file: string;
|
|
33
|
+
message: string;
|
|
34
|
+
unifiedDiff: string;
|
|
35
|
+
} | {
|
|
36
|
+
file: string;
|
|
37
|
+
errorMessage: string;
|
|
38
|
+
}, unknown>>;
|
|
39
|
+
}, z.core.$strip>], null>;
|
|
40
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const proposeWriteFileParams: {
|
|
3
|
+
toolName: "propose_write_file";
|
|
4
|
+
endsAgentStep: false;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
instructions: z.ZodString;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<"json">;
|
|
13
|
+
value: z.ZodType<{
|
|
14
|
+
file: string;
|
|
15
|
+
message: string;
|
|
16
|
+
unifiedDiff: string;
|
|
17
|
+
} | {
|
|
18
|
+
file: string;
|
|
19
|
+
errorMessage: string;
|
|
20
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
21
|
+
file: string;
|
|
22
|
+
message: string;
|
|
23
|
+
unifiedDiff: string;
|
|
24
|
+
} | {
|
|
25
|
+
file: string;
|
|
26
|
+
errorMessage: string;
|
|
27
|
+
}, unknown>>;
|
|
28
|
+
}, z.core.$strip>], null>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const readDocsParams: {
|
|
3
|
+
toolName: "read_docs";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
libraryTitle: z.ZodString;
|
|
8
|
+
topic: z.ZodString;
|
|
9
|
+
max_tokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<"json">;
|
|
13
|
+
value: z.ZodType<{
|
|
14
|
+
documentation: string;
|
|
15
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
16
|
+
documentation: string;
|
|
17
|
+
}, unknown>>;
|
|
18
|
+
}, z.core.$strip>], null>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const fileContentsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3
|
+
path: z.ZodString;
|
|
4
|
+
content: z.ZodString;
|
|
5
|
+
referencedBy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
contentOmittedForLength: z.ZodLiteral<true>;
|
|
9
|
+
}, z.core.$strip>]>;
|
|
10
|
+
export declare const readFilesParams: {
|
|
11
|
+
toolName: "read_files";
|
|
12
|
+
endsAgentStep: true;
|
|
13
|
+
description: string;
|
|
14
|
+
inputSchema: z.ZodObject<{
|
|
15
|
+
paths: z.ZodArray<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<"json">;
|
|
19
|
+
value: z.ZodType<({
|
|
20
|
+
path: string;
|
|
21
|
+
content: string;
|
|
22
|
+
referencedBy?: Record<string, string[]> | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
path: string;
|
|
25
|
+
contentOmittedForLength: true;
|
|
26
|
+
})[], unknown, z.core.$ZodTypeInternals<({
|
|
27
|
+
path: string;
|
|
28
|
+
content: string;
|
|
29
|
+
referencedBy?: Record<string, string[]> | undefined;
|
|
30
|
+
} | {
|
|
31
|
+
path: string;
|
|
32
|
+
contentOmittedForLength: true;
|
|
33
|
+
})[], unknown>>;
|
|
34
|
+
}, z.core.$strip>], null>;
|
|
35
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const readSubtreeParams: {
|
|
3
|
+
toolName: "read_subtree";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<"json">;
|
|
12
|
+
value: z.ZodType<({
|
|
13
|
+
path: string;
|
|
14
|
+
type: "directory";
|
|
15
|
+
printedTree: string;
|
|
16
|
+
tokenCount: number;
|
|
17
|
+
truncationLevel: "none" | "tokens" | "unimportant-files" | "depth-based";
|
|
18
|
+
} | {
|
|
19
|
+
path: string;
|
|
20
|
+
type: "file";
|
|
21
|
+
variables: string[];
|
|
22
|
+
} | {
|
|
23
|
+
path: string;
|
|
24
|
+
errorMessage: string;
|
|
25
|
+
})[], unknown, z.core.$ZodTypeInternals<({
|
|
26
|
+
path: string;
|
|
27
|
+
type: "directory";
|
|
28
|
+
printedTree: string;
|
|
29
|
+
tokenCount: number;
|
|
30
|
+
truncationLevel: "none" | "tokens" | "unimportant-files" | "depth-based";
|
|
31
|
+
} | {
|
|
32
|
+
path: string;
|
|
33
|
+
type: "file";
|
|
34
|
+
variables: string[];
|
|
35
|
+
} | {
|
|
36
|
+
path: string;
|
|
37
|
+
errorMessage: string;
|
|
38
|
+
})[], unknown>>;
|
|
39
|
+
}, z.core.$strip>], null>;
|
|
40
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import z from 'zod/v4';
|
|
2
|
+
export declare const runFileChangeHooksParams: {
|
|
3
|
+
toolName: "run_file_change_hooks";
|
|
4
|
+
endsAgentStep: true;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
files: z.ZodArray<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
outputSchema: z.ZodTuple<[z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"json">;
|
|
11
|
+
value: z.ZodType<((({
|
|
12
|
+
command: string;
|
|
13
|
+
startingCwd?: string | undefined;
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
stderr?: string | undefined;
|
|
16
|
+
stdout?: string | undefined;
|
|
17
|
+
exitCode?: number | undefined;
|
|
18
|
+
} | {
|
|
19
|
+
command: string;
|
|
20
|
+
stdoutOmittedForLength: true;
|
|
21
|
+
startingCwd?: string | undefined;
|
|
22
|
+
message?: string | undefined;
|
|
23
|
+
stderr?: string | undefined;
|
|
24
|
+
exitCode?: number | undefined;
|
|
25
|
+
} | {
|
|
26
|
+
command: string;
|
|
27
|
+
processId: number;
|
|
28
|
+
backgroundProcessStatus: "error" | "completed" | "running";
|
|
29
|
+
} | {
|
|
30
|
+
command: string;
|
|
31
|
+
errorMessage: string;
|
|
32
|
+
}) & {
|
|
33
|
+
hookName: string;
|
|
34
|
+
}) | {
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
})[], unknown, z.core.$ZodTypeInternals<((({
|
|
37
|
+
command: string;
|
|
38
|
+
startingCwd?: string | undefined;
|
|
39
|
+
message?: string | undefined;
|
|
40
|
+
stderr?: string | undefined;
|
|
41
|
+
stdout?: string | undefined;
|
|
42
|
+
exitCode?: number | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
command: string;
|
|
45
|
+
stdoutOmittedForLength: true;
|
|
46
|
+
startingCwd?: string | undefined;
|
|
47
|
+
message?: string | undefined;
|
|
48
|
+
stderr?: string | undefined;
|
|
49
|
+
exitCode?: number | undefined;
|
|
50
|
+
} | {
|
|
51
|
+
command: string;
|
|
52
|
+
processId: number;
|
|
53
|
+
backgroundProcessStatus: "error" | "completed" | "running";
|
|
54
|
+
} | {
|
|
55
|
+
command: string;
|
|
56
|
+
errorMessage: string;
|
|
57
|
+
}) & {
|
|
58
|
+
hookName: string;
|
|
59
|
+
}) | {
|
|
60
|
+
errorMessage: string;
|
|
61
|
+
})[], unknown>>;
|
|
62
|
+
}, z.core.$strip>], null>;
|
|
63
|
+
};
|