@levelcode/sdk 0.2.0 → 0.2.2
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/index.cjs +313 -303
- package/dist/index.cjs.map +21 -21
- package/dist/index.mjs +346 -336
- package/dist/index.mjs.map +21 -21
- package/package.json +1 -1
- package/dist/agents/constants.d.ts +0 -1
- package/dist/agents/team/apprentice.d.ts +0 -3
- package/dist/agents/team/coordinator.d.ts +0 -3
- package/dist/agents/team/cto.d.ts +0 -3
- package/dist/agents/team/designer.d.ts +0 -3
- package/dist/agents/team/director.d.ts +0 -3
- package/dist/agents/team/distinguished-engineer.d.ts +0 -3
- package/dist/agents/team/fellow.d.ts +0 -3
- package/dist/agents/team/index.d.ts +0 -27
- package/dist/agents/team/intern.d.ts +0 -3
- package/dist/agents/team/junior-engineer.d.ts +0 -3
- package/dist/agents/team/manager.d.ts +0 -3
- package/dist/agents/team/mid-level-engineer.d.ts +0 -3
- package/dist/agents/team/principal-engineer.d.ts +0 -3
- package/dist/agents/team/product-lead.d.ts +0 -3
- package/dist/agents/team/researcher.d.ts +0 -3
- package/dist/agents/team/role-hierarchy.d.ts +0 -24
- package/dist/agents/team/scientist.d.ts +0 -3
- package/dist/agents/team/senior-engineer.d.ts +0 -3
- package/dist/agents/team/senior-staff-engineer.d.ts +0 -3
- package/dist/agents/team/staff-engineer.d.ts +0 -3
- package/dist/agents/team/sub-manager.d.ts +0 -3
- package/dist/agents/team/tester.d.ts +0 -3
- package/dist/agents/team/vp-engineering.d.ts +0 -3
- package/dist/agents/types/agent-definition.d.ts +0 -296
- package/dist/agents/types/secret-agent-definition.d.ts +0 -19
- package/dist/agents/types/tools.d.ts +0 -308
- package/dist/agents/types/util-types.d.ts +0 -134
- package/dist/common/src/actions.d.ts +0 -176
- package/dist/common/src/analytics-core.d.ts +0 -52
- package/dist/common/src/analytics.d.ts +0 -9
- package/dist/common/src/browser-actions.d.ts +0 -1200
- package/dist/common/src/constants/agents.d.ts +0 -47
- package/dist/common/src/constants/analytics-events.d.ts +0 -111
- package/dist/common/src/constants/byok.d.ts +0 -2
- package/dist/common/src/constants/claude-oauth.d.ts +0 -36
- package/dist/common/src/constants/index.d.ts +0 -4
- package/dist/common/src/constants/knowledge.d.ts +0 -21
- package/dist/common/src/constants/limits.d.ts +0 -14
- package/dist/common/src/constants/model-config.d.ts +0 -117
- package/dist/common/src/constants/paths.d.ts +0 -23
- package/dist/common/src/constants/skills.d.ts +0 -42
- package/dist/common/src/constants/ui.d.ts +0 -14
- package/dist/common/src/env-ci.d.ts +0 -22
- package/dist/common/src/env-process.d.ts +0 -28
- package/dist/common/src/env-schema.d.ts +0 -24
- package/dist/common/src/env.d.ts +0 -16
- package/dist/common/src/mcp/client.d.ts +0 -6
- package/dist/common/src/old-constants.d.ts +0 -10
- package/dist/common/src/project-file-tree.d.ts +0 -27
- package/dist/common/src/templates/agent-validation.d.ts +0 -48
- package/dist/common/src/templates/initial-agents-dir/types/agent-definition.d.ts +0 -296
- package/dist/common/src/templates/initial-agents-dir/types/tools.d.ts +0 -308
- package/dist/common/src/templates/initial-agents-dir/types/util-types.d.ts +0 -128
- package/dist/common/src/testing/errors.d.ts +0 -14
- package/dist/common/src/testing/mock-modules.d.ts +0 -11
- package/dist/common/src/testing/mock-types.d.ts +0 -97
- package/dist/common/src/testing/mocks/analytics.d.ts +0 -182
- package/dist/common/src/testing/mocks/child-process.d.ts +0 -29
- package/dist/common/src/testing/mocks/crypto.d.ts +0 -159
- package/dist/common/src/testing/mocks/database.d.ts +0 -197
- package/dist/common/src/testing/mocks/fetch.d.ts +0 -35
- package/dist/common/src/testing/mocks/filesystem.d.ts +0 -31
- package/dist/common/src/testing/mocks/index.d.ts +0 -25
- package/dist/common/src/testing/mocks/logger.d.ts +0 -35
- package/dist/common/src/testing/mocks/stream.d.ts +0 -203
- package/dist/common/src/testing/mocks/timers.d.ts +0 -27
- package/dist/common/src/testing/mocks/tree-sitter.d.ts +0 -58
- package/dist/common/src/testing-env-process.d.ts +0 -7
- package/dist/common/src/tools/constants.d.ts +0 -17
- package/dist/common/src/tools/list.d.ts +0 -1152
- package/dist/common/src/tools/params/tool/add-message.d.ts +0 -19
- package/dist/common/src/tools/params/tool/add-subgoal.d.ts +0 -26
- package/dist/common/src/tools/params/tool/ask-user.d.ts +0 -59
- package/dist/common/src/tools/params/tool/browser-logs.d.ts +0 -127
- package/dist/common/src/tools/params/tool/code-search.d.ts +0 -30
- package/dist/common/src/tools/params/tool/create-plan.d.ts +0 -30
- package/dist/common/src/tools/params/tool/end-turn.d.ts +0 -13
- package/dist/common/src/tools/params/tool/find-files.d.ts +0 -31
- package/dist/common/src/tools/params/tool/glob.d.ts +0 -26
- package/dist/common/src/tools/params/tool/list-directory.d.ts +0 -25
- package/dist/common/src/tools/params/tool/lookup-agent-info.d.ts +0 -13
- package/dist/common/src/tools/params/tool/propose-str-replace.d.ts +0 -40
- package/dist/common/src/tools/params/tool/propose-write-file.d.ts +0 -29
- package/dist/common/src/tools/params/tool/read-docs.d.ts +0 -19
- package/dist/common/src/tools/params/tool/read-files.d.ts +0 -35
- package/dist/common/src/tools/params/tool/read-subtree.d.ts +0 -40
- package/dist/common/src/tools/params/tool/run-file-change-hooks.d.ts +0 -63
- package/dist/common/src/tools/params/tool/run-terminal-command.d.ts +0 -88
- package/dist/common/src/tools/params/tool/send-message.d.ts +0 -26
- package/dist/common/src/tools/params/tool/set-messages.d.ts +0 -15
- package/dist/common/src/tools/params/tool/set-output.d.ts +0 -15
- package/dist/common/src/tools/params/tool/skill.d.ts +0 -28
- package/dist/common/src/tools/params/tool/spawn-agent-inline.d.ts +0 -17
- package/dist/common/src/tools/params/tool/spawn-agents.d.ts +0 -26
- package/dist/common/src/tools/params/tool/str-replace.d.ts +0 -43
- package/dist/common/src/tools/params/tool/suggest-followups.d.ts +0 -26
- package/dist/common/src/tools/params/tool/task-completed.d.ts +0 -13
- package/dist/common/src/tools/params/tool/task-create.d.ts +0 -24
- package/dist/common/src/tools/params/tool/task-get.d.ts +0 -15
- package/dist/common/src/tools/params/tool/task-list.d.ts +0 -13
- package/dist/common/src/tools/params/tool/task-update.d.ts +0 -29
- package/dist/common/src/tools/params/tool/team-create.d.ts +0 -17
- package/dist/common/src/tools/params/tool/team-delete.d.ts +0 -13
- package/dist/common/src/tools/params/tool/think-deeply.d.ts +0 -15
- package/dist/common/src/tools/params/tool/update-subgoal.d.ts +0 -25
- package/dist/common/src/tools/params/tool/web-search.d.ts +0 -25
- package/dist/common/src/tools/params/tool/write-file.d.ts +0 -31
- package/dist/common/src/tools/params/tool/write-todos.d.ts +0 -18
- package/dist/common/src/tools/params/utils.d.ts +0 -35
- package/dist/common/src/tools/utils.d.ts +0 -4
- package/dist/common/src/types/agent-template.d.ts +0 -156
- package/dist/common/src/types/contracts/agent-runtime.d.ts +0 -36
- package/dist/common/src/types/contracts/analytics.d.ts +0 -8
- package/dist/common/src/types/contracts/billing.d.ts +0 -40
- package/dist/common/src/types/contracts/client.d.ts +0 -45
- package/dist/common/src/types/contracts/database.d.ts +0 -80
- package/dist/common/src/types/contracts/env.d.ts +0 -150
- package/dist/common/src/types/contracts/llm.d.ts +0 -102
- package/dist/common/src/types/contracts/logger.d.ts +0 -8
- package/dist/common/src/types/dynamic-agent-template.d.ts +0 -227
- package/dist/common/src/types/filesystem.d.ts +0 -6
- package/dist/common/src/types/function-params.d.ts +0 -15
- package/dist/common/src/types/grant.d.ts +0 -2
- package/dist/common/src/types/json.d.ts +0 -9
- package/dist/common/src/types/mcp.d.ts +0 -31
- package/dist/common/src/types/messages/content-part.d.ts +0 -46
- package/dist/common/src/types/messages/data-content.d.ts +0 -3
- package/dist/common/src/types/messages/levelcode-message.d.ts +0 -37
- package/dist/common/src/types/messages/provider-metadata.d.ts +0 -3
- package/dist/common/src/types/print-mode.d.ts +0 -155
- package/dist/common/src/types/session-state.d.ts +0 -94
- package/dist/common/src/types/skill.d.ts +0 -31
- package/dist/common/src/types/source.d.ts +0 -8
- package/dist/common/src/types/spawn.d.ts +0 -8
- package/dist/common/src/types/team-config-schemas.d.ts +0 -213
- package/dist/common/src/types/team-config.d.ts +0 -42
- package/dist/common/src/types/team-hook-events.d.ts +0 -36
- package/dist/common/src/types/team-protocol.d.ts +0 -64
- package/dist/common/src/util/agent-id-parsing.d.ts +0 -22
- package/dist/common/src/util/agent-name-normalization.d.ts +0 -12
- package/dist/common/src/util/array.d.ts +0 -6
- package/dist/common/src/util/credentials.d.ts +0 -11
- package/dist/common/src/util/error.d.ts +0 -128
- package/dist/common/src/util/file.d.ts +0 -133
- package/dist/common/src/util/format-code-search.d.ts +0 -16
- package/dist/common/src/util/lru-cache.d.ts +0 -30
- package/dist/common/src/util/messages.d.ts +0 -46
- package/dist/common/src/util/model-utils.d.ts +0 -8
- package/dist/common/src/util/object.d.ts +0 -22
- package/dist/common/src/util/promise.d.ts +0 -16
- package/dist/common/src/util/random.d.ts +0 -1
- package/dist/common/src/util/skills.d.ts +0 -5
- package/dist/common/src/util/stop-sequence.d.ts +0 -14
- package/dist/common/src/util/string.d.ts +0 -82
- package/dist/common/src/util/xml.d.ts +0 -12
- package/dist/common/src/util/zod-schema.d.ts +0 -5
- package/dist/common/src/utils/dev-phases.d.ts +0 -23
- package/dist/common/src/utils/file-lock.d.ts +0 -13
- package/dist/common/src/utils/team-analytics.d.ts +0 -16
- package/dist/common/src/utils/team-discovery.d.ts +0 -47
- package/dist/common/src/utils/team-fs.d.ts +0 -20
- package/dist/common/src/utils/team-hook-emitter.d.ts +0 -40
- package/dist/common/src/utils/team-presets.d.ts +0 -35
- package/dist/packages/agent-runtime/src/constants.d.ts +0 -1
- package/dist/packages/agent-runtime/src/fast-rewrite.d.ts +0 -45
- package/dist/packages/agent-runtime/src/find-files/request-files-prompt.d.ts +0 -71
- package/dist/packages/agent-runtime/src/generate-diffs-prompt.d.ts +0 -53
- package/dist/packages/agent-runtime/src/get-file-reading-updates.d.ts +0 -8
- package/dist/packages/agent-runtime/src/inbox-poller.d.ts +0 -81
- package/dist/packages/agent-runtime/src/llm-api/claude.d.ts +0 -5
- package/dist/packages/agent-runtime/src/llm-api/context7-api.d.ts +0 -55
- package/dist/packages/agent-runtime/src/llm-api/gemini-with-fallbacks.d.ts +0 -40
- package/dist/packages/agent-runtime/src/llm-api/levelcode-web-api.d.ts +0 -49
- package/dist/packages/agent-runtime/src/llm-api/relace-api.d.ts +0 -16
- package/dist/packages/agent-runtime/src/main-prompt.d.ts +0 -29
- package/dist/packages/agent-runtime/src/mcp-constants.d.ts +0 -12
- package/dist/packages/agent-runtime/src/mcp.d.ts +0 -10
- package/dist/packages/agent-runtime/src/message-formatter.d.ts +0 -12
- package/dist/packages/agent-runtime/src/process-file-block.d.ts +0 -56
- package/dist/packages/agent-runtime/src/process-str-replace.d.ts +0 -21
- package/dist/packages/agent-runtime/src/prompt-agent-stream.d.ts +0 -28
- package/dist/packages/agent-runtime/src/run-agent-step.d.ts +0 -73
- package/dist/packages/agent-runtime/src/run-programmatic-step.d.ts +0 -40
- package/dist/packages/agent-runtime/src/system-prompt/prompts.d.ts +0 -19
- package/dist/packages/agent-runtime/src/system-prompt/search-system-prompt.d.ts +0 -14
- package/dist/packages/agent-runtime/src/system-prompt/team-context-prompt.d.ts +0 -9
- package/dist/packages/agent-runtime/src/system-prompt/team-prompt.d.ts +0 -9
- package/dist/packages/agent-runtime/src/system-prompt/truncate-file-tree.d.ts +0 -13
- package/dist/packages/agent-runtime/src/team-context.d.ts +0 -14
- package/dist/packages/agent-runtime/src/templates/agent-registry.d.ts +0 -35
- package/dist/packages/agent-runtime/src/templates/prompts.d.ts +0 -35
- package/dist/packages/agent-runtime/src/templates/strings.d.ts +0 -32
- package/dist/packages/agent-runtime/src/templates/types.d.ts +0 -13
- package/dist/packages/agent-runtime/src/tool-stream-parser.d.ts +0 -31
- package/dist/packages/agent-runtime/src/tools/handlers/handler-function-type.d.ts +0 -51
- package/dist/packages/agent-runtime/src/tools/handlers/list.d.ts +0 -366
- package/dist/packages/agent-runtime/src/tools/handlers/tool/add-message.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/add-subgoal.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/ask-user.d.ts +0 -10
- package/dist/packages/agent-runtime/src/tools/handlers/tool/browser-logs.d.ts +0 -8
- package/dist/packages/agent-runtime/src/tools/handlers/tool/code-search.d.ts +0 -8
- package/dist/packages/agent-runtime/src/tools/handlers/tool/create-plan.d.ts +0 -13
- package/dist/packages/agent-runtime/src/tools/handlers/tool/end-turn.d.ts +0 -7
- package/dist/packages/agent-runtime/src/tools/handlers/tool/find-files.d.ts +0 -27
- package/dist/packages/agent-runtime/src/tools/handlers/tool/glob.d.ts +0 -10
- package/dist/packages/agent-runtime/src/tools/handlers/tool/list-directory.d.ts +0 -10
- package/dist/packages/agent-runtime/src/tools/handlers/tool/lookup-agent-info.d.ts +0 -14
- package/dist/packages/agent-runtime/src/tools/handlers/tool/propose-str-replace.d.ts +0 -15
- package/dist/packages/agent-runtime/src/tools/handlers/tool/propose-write-file.d.ts +0 -7
- package/dist/packages/agent-runtime/src/tools/handlers/tool/proposed-content-store.d.ts +0 -27
- package/dist/packages/agent-runtime/src/tools/handlers/tool/read-docs.d.ts +0 -21
- package/dist/packages/agent-runtime/src/tools/handlers/tool/read-files.d.ts +0 -13
- package/dist/packages/agent-runtime/src/tools/handlers/tool/read-subtree.d.ts +0 -13
- package/dist/packages/agent-runtime/src/tools/handlers/tool/run-file-change-hooks.d.ts +0 -10
- package/dist/packages/agent-runtime/src/tools/handlers/tool/run-terminal-command.d.ts +0 -10
- package/dist/packages/agent-runtime/src/tools/handlers/tool/send-message.d.ts +0 -15
- package/dist/packages/agent-runtime/src/tools/handlers/tool/set-messages.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/set-output.d.ts +0 -18
- package/dist/packages/agent-runtime/src/tools/handlers/tool/skill.d.ts +0 -11
- package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-inline.d.ts +0 -29
- package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-utils.d.ts +0 -130
- package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agents.d.ts +0 -37
- package/dist/packages/agent-runtime/src/tools/handlers/tool/str-replace.d.ts +0 -16
- package/dist/packages/agent-runtime/src/tools/handlers/tool/suggest-followups.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-completed.d.ts +0 -15
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-create.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-get.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-list.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/task-update.d.ts +0 -14
- package/dist/packages/agent-runtime/src/tools/handlers/tool/team-create.d.ts +0 -15
- package/dist/packages/agent-runtime/src/tools/handlers/tool/team-delete.d.ts +0 -15
- package/dist/packages/agent-runtime/src/tools/handlers/tool/think-deeply.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/handlers/tool/update-subgoal.d.ts +0 -11
- package/dist/packages/agent-runtime/src/tools/handlers/tool/web-search.d.ts +0 -22
- package/dist/packages/agent-runtime/src/tools/handlers/tool/write-file.d.ts +0 -49
- package/dist/packages/agent-runtime/src/tools/handlers/tool/write-todos.d.ts +0 -9
- package/dist/packages/agent-runtime/src/tools/prompts.d.ts +0 -31
- package/dist/packages/agent-runtime/src/tools/stream-parser.d.ts +0 -33
- package/dist/packages/agent-runtime/src/tools/tool-executor.d.ts +0 -87
- package/dist/packages/agent-runtime/src/util/agent-output.d.ts +0 -3
- package/dist/packages/agent-runtime/src/util/messages.d.ts +0 -68
- package/dist/packages/agent-runtime/src/util/parse-tool-calls-from-text.d.ts +0 -38
- package/dist/packages/agent-runtime/src/util/render-read-files-result.d.ts +0 -15
- package/dist/packages/agent-runtime/src/util/simplify-tool-results.d.ts +0 -7
- package/dist/packages/agent-runtime/src/util/stream-xml-parser.d.ts +0 -34
- package/dist/packages/agent-runtime/src/util/token-counter.d.ts +0 -3
- package/dist/packages/code-map/src/index.d.ts +0 -3
- package/dist/packages/code-map/src/init-node.d.ts +0 -4
- package/dist/packages/code-map/src/languages.d.ts +0 -36
- package/dist/packages/code-map/src/parse.d.ts +0 -21
- package/dist/packages/code-map/src/types.d.ts +0 -8
- package/dist/packages/code-map/src/utils.d.ts +0 -1
- package/dist/sdk/src/__tests__/client.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/code-search.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/credentials.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/database.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/env.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/error-utils.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/initial-session-state.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/knowledge-file-selection.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/load-agents.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/load-mcp-config.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/model-provider.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/read-files.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/run-cancellation.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/run-file-filter.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/run-handle-event.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/run.integration.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/team-api.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/user-knowledge-files.test.d.ts +0 -1
- package/dist/sdk/src/__tests__/validate-agents.test.d.ts +0 -1
- package/dist/sdk/src/agents/load-agents.d.ts +0 -106
- package/dist/sdk/src/agents/load-mcp-config.d.ts +0 -69
- package/dist/sdk/src/client.d.ts +0 -71
- package/dist/sdk/src/constants.d.ts +0 -4
- package/dist/sdk/src/credentials.d.ts +0 -58
- package/dist/sdk/src/custom-tool.d.ts +0 -32
- package/dist/sdk/src/env.d.ts +0 -31
- package/dist/sdk/src/error-utils.d.ts +0 -55
- package/dist/sdk/src/impl/__tests__/prompt-result.test.d.ts +0 -1
- package/dist/sdk/src/impl/agent-runtime.d.ts +0 -8
- package/dist/sdk/src/impl/database.d.ts +0 -7
- package/dist/sdk/src/impl/llm.d.ts +0 -8
- package/dist/sdk/src/impl/model-provider.d.ts +0 -61
- package/dist/sdk/src/index.d.ts +0 -41
- package/dist/sdk/src/native/ripgrep.d.ts +0 -7
- package/dist/sdk/src/retry-config.d.ts +0 -46
- package/dist/sdk/src/run-state.d.ts +0 -81
- package/dist/sdk/src/run.d.ts +0 -79
- package/dist/sdk/src/skills/load-skills.d.ts +0 -42
- package/dist/sdk/src/team.d.ts +0 -49
- package/dist/sdk/src/testing/env.d.ts +0 -5
- package/dist/sdk/src/tools/change-file.d.ts +0 -7
- package/dist/sdk/src/tools/code-search.d.ts +0 -13
- package/dist/sdk/src/tools/glob.d.ts +0 -8
- package/dist/sdk/src/tools/index.d.ts +0 -16
- package/dist/sdk/src/tools/list-directory.d.ts +0 -7
- package/dist/sdk/src/tools/read-files.d.ts +0 -16
- package/dist/sdk/src/tools/run-file-change-hooks.d.ts +0 -4
- package/dist/sdk/src/tools/run-terminal-command.d.ts +0 -8
- package/dist/sdk/src/types/env.d.ts +0 -30
- package/dist/sdk/src/validate-agents.d.ts +0 -45
- 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
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export declare const AGENT_PERSONAS: {
|
|
2
|
-
readonly base: {
|
|
3
|
-
readonly displayName: "Buffy the Base Agent";
|
|
4
|
-
readonly purpose: "Base agent that orchestrates the full response.";
|
|
5
|
-
};
|
|
6
|
-
readonly ask: {
|
|
7
|
-
readonly displayName: "Ask Mode Agent";
|
|
8
|
-
readonly purpose: "Base ask-mode agent that orchestrates the full response.";
|
|
9
|
-
};
|
|
10
|
-
readonly thinker: {
|
|
11
|
-
readonly displayName: "Theo the Theorizer";
|
|
12
|
-
readonly purpose: "Does deep thinking given the current messages and a specific prompt to focus on. Use this to help you solve a specific problem.";
|
|
13
|
-
};
|
|
14
|
-
readonly 'file-explorer': {
|
|
15
|
-
readonly displayName: "Dora The File Explorer";
|
|
16
|
-
readonly purpose: "Expert at exploring a codebase and finding relevant files.";
|
|
17
|
-
};
|
|
18
|
-
readonly 'file-picker': {
|
|
19
|
-
readonly displayName: "Fletcher the File Fetcher";
|
|
20
|
-
readonly purpose: "Expert at finding relevant files in a codebase.";
|
|
21
|
-
};
|
|
22
|
-
readonly researcher: {
|
|
23
|
-
readonly displayName: "Reid Searcher the Researcher";
|
|
24
|
-
readonly purpose: "Expert at researching topics using web search and documentation.";
|
|
25
|
-
};
|
|
26
|
-
readonly planner: {
|
|
27
|
-
readonly displayName: "Peter Plan";
|
|
28
|
-
readonly purpose: "Agent that formulates a comprehensive plan to a prompt.";
|
|
29
|
-
readonly hidden: true;
|
|
30
|
-
};
|
|
31
|
-
readonly reviewer: {
|
|
32
|
-
readonly displayName: "Nit Pick Nick the Reviewer";
|
|
33
|
-
readonly purpose: "Reviews file changes and responds with critical feedback. Use this after making any significant change to the codebase; otherwise, no need to use this agent for minor changes since it takes a second.";
|
|
34
|
-
};
|
|
35
|
-
readonly 'agent-builder': {
|
|
36
|
-
readonly displayName: "Bob the Agent Builder";
|
|
37
|
-
readonly purpose: "Creates new agent templates for the levelcode multi-agent system";
|
|
38
|
-
readonly hidden: false;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export declare const AGENT_IDS: (keyof typeof AGENT_PERSONAS)[];
|
|
42
|
-
export declare const AGENT_ID_PREFIX = "LevelCodeAI/";
|
|
43
|
-
export declare const AGENT_NAMES: Record<keyof typeof AGENT_PERSONAS, string>;
|
|
44
|
-
export type AgentName = (typeof AGENT_PERSONAS)[keyof typeof AGENT_PERSONAS]['displayName'];
|
|
45
|
-
export declare const UNIQUE_AGENT_NAMES: ("Buffy the Base Agent" | "Ask Mode Agent" | "Theo the Theorizer" | "Dora The File Explorer" | "Fletcher the File Fetcher" | "Reid Searcher the Researcher" | "Peter Plan" | "Nit Pick Nick the Reviewer" | "Bob the Agent Builder")[];
|
|
46
|
-
export declare const AGENT_NAME_TO_TYPES: Record<string, string[]>;
|
|
47
|
-
export declare const MAX_AGENT_STEPS_DEFAULT = 100;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enum of analytics event types used throughout the application
|
|
3
|
-
*/
|
|
4
|
-
export declare enum AnalyticsEvent {
|
|
5
|
-
APP_LAUNCHED = "cli.app_launched",
|
|
6
|
-
FINGERPRINT_GENERATED = "cli.fingerprint_generated",
|
|
7
|
-
CHANGE_DIRECTORY = "cli.change_directory",
|
|
8
|
-
INVALID_COMMAND = "cli.invalid_command",
|
|
9
|
-
KNOWLEDGE_FILE_UPDATED = "cli.knowledge_file_updated",
|
|
10
|
-
LOGIN = "cli.login",
|
|
11
|
-
SLASH_MENU_ACTIVATED = "cli.slash_menu_activated",
|
|
12
|
-
SLASH_COMMAND_USED = "cli.slash_command_used",
|
|
13
|
-
TERMINAL_COMMAND_COMPLETED = "cli.terminal_command_completed",
|
|
14
|
-
USER_INPUT_COMPLETE = "cli.user_input_complete",
|
|
15
|
-
UPDATE_LEVELCODE_FAILED = "cli.update_levelcode_failed",
|
|
16
|
-
FEEDBACK_SUBMITTED = "cli.feedback_submitted",
|
|
17
|
-
FEEDBACK_BUTTON_HOVERED = "cli.feedback_button_hovered",
|
|
18
|
-
FOLLOWUP_CLICKED = "cli.followup_clicked",
|
|
19
|
-
AGENT_STEP = "backend.agent_step",
|
|
20
|
-
CREDIT_GRANT = "backend.credit_grant",
|
|
21
|
-
CREDIT_CONSUMED = "backend.credit_consumed",
|
|
22
|
-
MALFORMED_TOOL_CALL_JSON = "backend.malformed_tool_call_json",
|
|
23
|
-
TOOL_USE = "backend.tool_use",
|
|
24
|
-
UNKNOWN_TOOL_CALL = "backend.unknown_tool_call",
|
|
25
|
-
USER_INPUT = "backend.user_input",
|
|
26
|
-
ADVISORY_LOCK_CONTENTION = "backend.advisory_lock_contention",
|
|
27
|
-
TRANSACTION_RETRY_THRESHOLD_EXCEEDED = "backend.transaction_retry_threshold_exceeded",
|
|
28
|
-
SUBSCRIPTION_CREATED = "backend.subscription_created",
|
|
29
|
-
SUBSCRIPTION_CANCELED = "backend.subscription_canceled",
|
|
30
|
-
SUBSCRIPTION_PAYMENT_FAILED = "backend.subscription_payment_failed",
|
|
31
|
-
SUBSCRIPTION_BLOCK_CREATED = "backend.subscription_block_created",
|
|
32
|
-
SUBSCRIPTION_BLOCK_LIMIT_HIT = "backend.subscription_block_limit_hit",
|
|
33
|
-
SUBSCRIPTION_WEEKLY_LIMIT_HIT = "backend.subscription_weekly_limit_hit",
|
|
34
|
-
SUBSCRIPTION_CREDITS_MIGRATED = "backend.subscription_credits_migrated",
|
|
35
|
-
SUBSCRIPTION_TIER_CHANGED = "backend.subscription_tier_changed",
|
|
36
|
-
SIGNUP = "web.signup",
|
|
37
|
-
AUTH_LOGIN_STARTED = "auth.login_started",
|
|
38
|
-
AUTH_REFERRAL_GITHUB_LOGIN_STARTED = "auth.referral_github_login_started",
|
|
39
|
-
AUTH_LOGOUT_COMPLETED = "auth.logout_completed",
|
|
40
|
-
COOKIE_CONSENT_ACCEPTED = "cookie_consent.accepted",
|
|
41
|
-
COOKIE_CONSENT_DECLINED = "cookie_consent.declined",
|
|
42
|
-
ONBOARDING_STEP_COMPLETED = "onboarding_step_completed",
|
|
43
|
-
ONBOARDING_STEP_VIEWED = "onboarding_step_viewed",
|
|
44
|
-
ONBOARDING_PM_SELECTED = "onboarding_pm_selected",
|
|
45
|
-
ONBOARDING_EDITOR_OPENED = "onboarding_editor_opened",
|
|
46
|
-
ONBOARD_PAGE_CD_COMMAND_COPIED = "onboard_page.cd_command_copied",
|
|
47
|
-
ONBOARD_PAGE_RUN_COMMAND_COPIED = "onboard_page.run_command_copied",
|
|
48
|
-
ONBOARD_PAGE_INSTALL_COMMAND_COPIED = "onboard_page.install_command_copied",
|
|
49
|
-
INSTALL_DIALOG_CD_COMMAND_COPIED = "install_dialog.cd_command_copied",
|
|
50
|
-
INSTALL_DIALOG_RUN_COMMAND_COPIED = "install_dialog.run_command_copied",
|
|
51
|
-
INSTALL_DIALOG_INSTALL_COMMAND_COPIED = "install_dialog.install_command_copied",
|
|
52
|
-
HOME_FEATURE_LEARN_MORE_CLICKED = "home.feature_learn_more_clicked",
|
|
53
|
-
HOME_INSTALL_COMMAND_COPIED = "home.install_command_copied",
|
|
54
|
-
HOME_TRY_FREE_CLICKED = "home.try_free_clicked",
|
|
55
|
-
HOME_TESTIMONIAL_CLICKED = "home.testimonial_clicked",
|
|
56
|
-
HOME_CTA_INSTALL_GUIDE_CLICKED = "home.cta_install_guide_clicked",
|
|
57
|
-
HOME_COMPETITION_TAB_CHANGED = "home.competition_tab_changed",
|
|
58
|
-
DEMO_TERMINAL_COMMAND_EXECUTED = "demo_terminal.command_executed",
|
|
59
|
-
DEMO_TERMINAL_HELP_VIEWED = "demo_terminal.help_viewed",
|
|
60
|
-
DEMO_TERMINAL_OPTIMIZE_REQUESTED = "demo_terminal.optimize_requested",
|
|
61
|
-
DEMO_TERMINAL_FIX_MEMORY_LEAK = "demo_terminal.fix_memory_leak",
|
|
62
|
-
DEMO_TERMINAL_REFACTOR_REQUESTED = "demo_terminal.refactor_requested",
|
|
63
|
-
DEMO_TERMINAL_FEATURE_REQUESTED = "demo_terminal.feature_requested",
|
|
64
|
-
DEMO_TERMINAL_THEME_CHANGED = "demo_terminal.theme_changed",
|
|
65
|
-
TOAST_SHOWN = "toast.shown",
|
|
66
|
-
REFERRAL_BANNER_CLICKED = "referral_banner.clicked",
|
|
67
|
-
AGENT_RUN_API_REQUEST = "api.agent_run_request",
|
|
68
|
-
AGENT_RUN_CREATED = "api.agent_run_created",
|
|
69
|
-
AGENT_RUN_COMPLETED = "api.agent_run_completed",
|
|
70
|
-
AGENT_RUN_VALIDATION_ERROR = "api.agent_run_validation_error",
|
|
71
|
-
AGENT_RUN_CREATION_ERROR = "api.agent_run_creation_error",
|
|
72
|
-
AGENT_RUN_COMPLETION_ERROR = "api.agent_run_completion_error",
|
|
73
|
-
ME_API_REQUEST = "api.me_request",
|
|
74
|
-
ME_VALIDATION_ERROR = "api.me_validation_error",
|
|
75
|
-
CHAT_COMPLETIONS_REQUEST = "api.chat_completions_request",
|
|
76
|
-
CHAT_COMPLETIONS_AUTH_ERROR = "api.chat_completions_auth_error",
|
|
77
|
-
CHAT_COMPLETIONS_VALIDATION_ERROR = "api.chat_completions_validation_error",
|
|
78
|
-
CHAT_COMPLETIONS_INSUFFICIENT_CREDITS = "api.chat_completions_insufficient_credits",
|
|
79
|
-
CHAT_COMPLETIONS_GENERATION_STARTED = "api.chat_completions_generation_started",
|
|
80
|
-
CHAT_COMPLETIONS_STREAM_STARTED = "api.chat_completions_stream_started",
|
|
81
|
-
CHAT_COMPLETIONS_ERROR = "api.chat_completions_error",
|
|
82
|
-
USAGE_API_REQUEST = "api.usage_request",
|
|
83
|
-
USAGE_API_AUTH_ERROR = "api.usage_auth_error",
|
|
84
|
-
WEB_SEARCH_REQUEST = "api.web_search_request",
|
|
85
|
-
WEB_SEARCH_AUTH_ERROR = "api.web_search_auth_error",
|
|
86
|
-
WEB_SEARCH_VALIDATION_ERROR = "api.web_search_validation_error",
|
|
87
|
-
WEB_SEARCH_INSUFFICIENT_CREDITS = "api.web_search_insufficient_credits",
|
|
88
|
-
WEB_SEARCH_ERROR = "api.web_search_error",
|
|
89
|
-
DOCS_SEARCH_REQUEST = "api.docs_search_request",
|
|
90
|
-
DOCS_SEARCH_AUTH_ERROR = "api.docs_search_auth_error",
|
|
91
|
-
DOCS_SEARCH_VALIDATION_ERROR = "api.docs_search_validation_error",
|
|
92
|
-
DOCS_SEARCH_INSUFFICIENT_CREDITS = "api.docs_search_insufficient_credits",
|
|
93
|
-
DOCS_SEARCH_ERROR = "api.docs_search_error",
|
|
94
|
-
ADS_API_AUTH_ERROR = "api.ads_auth_error",
|
|
95
|
-
TOKEN_COUNT_REQUEST = "api.token_count_request",
|
|
96
|
-
TOKEN_COUNT_AUTH_ERROR = "api.token_count_auth_error",
|
|
97
|
-
TOKEN_COUNT_VALIDATION_ERROR = "api.token_count_validation_error",
|
|
98
|
-
TOKEN_COUNT_ERROR = "api.token_count_error",
|
|
99
|
-
CLAUDE_OAUTH_REQUEST = "sdk.claude_oauth_request",
|
|
100
|
-
CLAUDE_OAUTH_RATE_LIMITED = "sdk.claude_oauth_rate_limited",
|
|
101
|
-
CLAUDE_OAUTH_AUTH_ERROR = "sdk.claude_oauth_auth_error",
|
|
102
|
-
FLUSH_FAILED = "common.flush_failed",
|
|
103
|
-
CLI_LOG = "cli.log",
|
|
104
|
-
TEAM_CREATED = "team.created",
|
|
105
|
-
TEAM_DELETED = "team.deleted",
|
|
106
|
-
TEAM_TEAMMATE_IDLE = "team.teammate_idle",
|
|
107
|
-
TEAM_TASK_COMPLETED = "team.task_completed",
|
|
108
|
-
TEAM_PHASE_TRANSITION = "team.phase_transition",
|
|
109
|
-
TEAM_MESSAGE_SENT = "team.message_sent",
|
|
110
|
-
TEAM_AGENT_SPAWNED = "team.agent_spawned"
|
|
111
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Claude Code OAuth constants for connecting to user's Claude Pro/Max subscription.
|
|
3
|
-
* These are used by the CLI for the OAuth PKCE flow and by the SDK for direct Anthropic API calls.
|
|
4
|
-
*/
|
|
5
|
-
export declare const CLAUDE_OAUTH_CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
|
|
6
|
-
export declare const CLAUDE_OAUTH_AUTHORIZE_URL = "https://console.anthropic.com/oauth/authorize";
|
|
7
|
-
export declare const CLAUDE_OAUTH_TOKEN_URL = "https://console.anthropic.com/oauth/token";
|
|
8
|
-
export declare const ANTHROPIC_API_BASE_URL = "https://api.anthropic.com";
|
|
9
|
-
export declare const CLAUDE_OAUTH_TOKEN_ENV_VAR = "LEVELCODE_CLAUDE_OAUTH_TOKEN";
|
|
10
|
-
export declare const ANTHROPIC_API_VERSION = "2023-06-01";
|
|
11
|
-
/**
|
|
12
|
-
* Beta headers required for Claude OAuth access to Claude 4+ models.
|
|
13
|
-
* These must be included in the anthropic-beta header when making requests.
|
|
14
|
-
*/
|
|
15
|
-
export declare const CLAUDE_OAUTH_BETA_HEADERS: readonly ["oauth-2025-04-20", "claude-code-20250219", "interleaved-thinking-2025-05-14", "fine-grained-tool-streaming-2025-05-14"];
|
|
16
|
-
/**
|
|
17
|
-
* System prompt prefix required by Anthropic to allow OAuth access to Claude 4+ models.
|
|
18
|
-
* This must be prepended to the system prompt when using Claude OAuth with Claude 4+ models.
|
|
19
|
-
* Without this prefix, requests will fail with "This credential is only authorized for use with Claude Code".
|
|
20
|
-
*/
|
|
21
|
-
export declare const CLAUDE_CODE_SYSTEM_PROMPT_PREFIX = "You are Claude Code, Anthropic's official CLI for Claude.";
|
|
22
|
-
/**
|
|
23
|
-
* Model ID mapping from OpenRouter format to Anthropic format.
|
|
24
|
-
* OpenRouter uses prefixed IDs like "anthropic/claude-sonnet-4",
|
|
25
|
-
* while Anthropic uses versioned IDs like "claude-3-5-haiku-20241022".
|
|
26
|
-
*/
|
|
27
|
-
export declare const OPENROUTER_TO_ANTHROPIC_MODEL_MAP: Record<string, string>;
|
|
28
|
-
/**
|
|
29
|
-
* Check if a model is a Claude/Anthropic model that can use OAuth.
|
|
30
|
-
*/
|
|
31
|
-
export declare function isClaudeModel(model: string): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Convert an OpenRouter model ID to an Anthropic model ID.
|
|
34
|
-
* Throws an error if the model has a provider prefix but is not an Anthropic model.
|
|
35
|
-
*/
|
|
36
|
-
export declare function toAnthropicModelId(openrouterModel: string): string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The primary/default knowledge file name.
|
|
3
|
-
* Used when creating new knowledge files.
|
|
4
|
-
*/
|
|
5
|
-
export declare const PRIMARY_KNOWLEDGE_FILE_NAME = "knowledge.md";
|
|
6
|
-
/**
|
|
7
|
-
* Knowledge file names in priority order (highest priority first).
|
|
8
|
-
* Used for both project knowledge files and home directory user knowledge files.
|
|
9
|
-
*/
|
|
10
|
-
export declare const KNOWLEDGE_FILE_NAMES: readonly ["knowledge.md", "AGENTS.md", "CLAUDE.md"];
|
|
11
|
-
/**
|
|
12
|
-
* Pre-computed lowercase knowledge file names for efficient matching.
|
|
13
|
-
*/
|
|
14
|
-
export declare const KNOWLEDGE_FILE_NAMES_LOWERCASE: string[];
|
|
15
|
-
/**
|
|
16
|
-
* Checks if a file path is a knowledge file.
|
|
17
|
-
* Matches:
|
|
18
|
-
* - Exact file names: knowledge.md, AGENTS.md, CLAUDE.md (case-insensitive)
|
|
19
|
-
* - Pattern: *.knowledge.md (e.g., authentication.knowledge.md)
|
|
20
|
-
*/
|
|
21
|
-
export declare function isKnowledgeFile(filePath: string): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const PROFIT_MARGIN = 0.055;
|
|
2
|
-
export declare const REQUEST_CREDIT_SHOW_THRESHOLD = 1;
|
|
3
|
-
export declare const MAX_DATE: Date;
|
|
4
|
-
export declare const BILLING_PERIOD_DAYS = 30;
|
|
5
|
-
export declare const SESSION_MAX_AGE_SECONDS: number;
|
|
6
|
-
export declare const SESSION_TIME_WINDOW_MS: number;
|
|
7
|
-
export declare const CREDITS_REFERRAL_BONUS = 500;
|
|
8
|
-
export declare const AFFILIATE_USER_REFFERAL_LIMIT = 500;
|
|
9
|
-
export declare const DEFAULT_FREE_CREDITS_GRANT = 500;
|
|
10
|
-
export declare const CREDIT_PRICING: {
|
|
11
|
-
readonly CENTS_PER_CREDIT: 1;
|
|
12
|
-
readonly MIN_PURCHASE_CREDITS: 100;
|
|
13
|
-
readonly DISPLAY_RATE: "$0.01 per credit";
|
|
14
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
export declare const ALLOWED_MODEL_PREFIXES: readonly ["anthropic", "openai", "google", "x-ai"];
|
|
2
|
-
export declare const costModes: readonly ["free", "normal", "max", "experimental", "ask"];
|
|
3
|
-
export type CostMode = (typeof costModes)[number];
|
|
4
|
-
export declare const openaiModels: {
|
|
5
|
-
readonly gpt4_1: "gpt-4.1-2025-04-14";
|
|
6
|
-
readonly gpt4o: "gpt-4o-2024-11-20";
|
|
7
|
-
readonly gpt4omini: "gpt-4o-mini-2024-07-18";
|
|
8
|
-
readonly o3mini: "o3-mini-2025-01-31";
|
|
9
|
-
readonly o3: "o3-2025-04-16";
|
|
10
|
-
readonly o3pro: "o3-pro-2025-06-10";
|
|
11
|
-
readonly o4mini: "o4-mini-2025-04-16";
|
|
12
|
-
readonly generatePatch: "ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk";
|
|
13
|
-
};
|
|
14
|
-
export type OpenAIModel = (typeof openaiModels)[keyof typeof openaiModels];
|
|
15
|
-
export declare const openrouterModels: {
|
|
16
|
-
readonly openrouter_claude_sonnet_4_5: "anthropic/claude-sonnet-4.5";
|
|
17
|
-
readonly openrouter_claude_sonnet_4: "anthropic/claude-4-sonnet-20250522";
|
|
18
|
-
readonly openrouter_claude_opus_4: "anthropic/claude-opus-4.1";
|
|
19
|
-
readonly openrouter_claude_3_5_haiku: "anthropic/claude-3.5-haiku-20241022";
|
|
20
|
-
readonly openrouter_claude_3_5_sonnet: "anthropic/claude-3.5-sonnet-20240620";
|
|
21
|
-
readonly openrouter_gpt4o: "openai/gpt-4o-2024-11-20";
|
|
22
|
-
readonly openrouter_gpt5: "openai/gpt-5.1";
|
|
23
|
-
readonly openrouter_gpt5_chat: "openai/gpt-5.1-chat";
|
|
24
|
-
readonly openrouter_gpt4o_mini: "openai/gpt-4o-mini-2024-07-18";
|
|
25
|
-
readonly openrouter_gpt4_1_nano: "openai/gpt-4.1-nano";
|
|
26
|
-
readonly openrouter_o3_mini: "openai/o3-mini-2025-01-31";
|
|
27
|
-
readonly openrouter_gemini2_5_pro_preview: "google/gemini-2.5-pro";
|
|
28
|
-
readonly openrouter_gemini2_5_flash: "google/gemini-2.5-flash";
|
|
29
|
-
readonly openrouter_gemini2_5_flash_thinking: "google/gemini-2.5-flash-preview:thinking";
|
|
30
|
-
readonly openrouter_grok_4: "x-ai/grok-4-07-09";
|
|
31
|
-
};
|
|
32
|
-
export type openrouterModel = (typeof openrouterModels)[keyof typeof openrouterModels];
|
|
33
|
-
export declare const deepseekModels: {
|
|
34
|
-
readonly deepseekChat: "deepseek-chat";
|
|
35
|
-
readonly deepseekReasoner: "deepseek-reasoner";
|
|
36
|
-
};
|
|
37
|
-
export type DeepseekModel = (typeof deepseekModels)[keyof typeof deepseekModels];
|
|
38
|
-
export declare const finetunedVertexModels: {
|
|
39
|
-
readonly ft_filepicker_003: "196166068534771712";
|
|
40
|
-
readonly ft_filepicker_005: "8493203957034778624";
|
|
41
|
-
readonly ft_filepicker_007: "2589952415784501248";
|
|
42
|
-
readonly ft_filepicker_topk_001: "3676445825887633408";
|
|
43
|
-
readonly ft_filepicker_008: "2672143108984012800";
|
|
44
|
-
readonly ft_filepicker_topk_002: "1694861989844615168";
|
|
45
|
-
readonly ft_filepicker_010: "3808739064941641728";
|
|
46
|
-
readonly ft_filepicker_010_epoch_2: "6231675664466968576";
|
|
47
|
-
readonly ft_filepicker_topk_003: "1502192368286171136";
|
|
48
|
-
};
|
|
49
|
-
export declare const finetunedVertexModelNames: Record<string, string>;
|
|
50
|
-
export type FinetunedVertexModel = (typeof finetunedVertexModels)[keyof typeof finetunedVertexModels];
|
|
51
|
-
export declare const models: {
|
|
52
|
-
readonly ft_filepicker_003: "196166068534771712";
|
|
53
|
-
readonly ft_filepicker_005: "8493203957034778624";
|
|
54
|
-
readonly ft_filepicker_007: "2589952415784501248";
|
|
55
|
-
readonly ft_filepicker_topk_001: "3676445825887633408";
|
|
56
|
-
readonly ft_filepicker_008: "2672143108984012800";
|
|
57
|
-
readonly ft_filepicker_topk_002: "1694861989844615168";
|
|
58
|
-
readonly ft_filepicker_010: "3808739064941641728";
|
|
59
|
-
readonly ft_filepicker_010_epoch_2: "6231675664466968576";
|
|
60
|
-
readonly ft_filepicker_topk_003: "1502192368286171136";
|
|
61
|
-
readonly openrouter_claude_sonnet_4_5: "anthropic/claude-sonnet-4.5";
|
|
62
|
-
readonly openrouter_claude_sonnet_4: "anthropic/claude-4-sonnet-20250522";
|
|
63
|
-
readonly openrouter_claude_opus_4: "anthropic/claude-opus-4.1";
|
|
64
|
-
readonly openrouter_claude_3_5_haiku: "anthropic/claude-3.5-haiku-20241022";
|
|
65
|
-
readonly openrouter_claude_3_5_sonnet: "anthropic/claude-3.5-sonnet-20240620";
|
|
66
|
-
readonly openrouter_gpt4o: "openai/gpt-4o-2024-11-20";
|
|
67
|
-
readonly openrouter_gpt5: "openai/gpt-5.1";
|
|
68
|
-
readonly openrouter_gpt5_chat: "openai/gpt-5.1-chat";
|
|
69
|
-
readonly openrouter_gpt4o_mini: "openai/gpt-4o-mini-2024-07-18";
|
|
70
|
-
readonly openrouter_gpt4_1_nano: "openai/gpt-4.1-nano";
|
|
71
|
-
readonly openrouter_o3_mini: "openai/o3-mini-2025-01-31";
|
|
72
|
-
readonly openrouter_gemini2_5_pro_preview: "google/gemini-2.5-pro";
|
|
73
|
-
readonly openrouter_gemini2_5_flash: "google/gemini-2.5-flash";
|
|
74
|
-
readonly openrouter_gemini2_5_flash_thinking: "google/gemini-2.5-flash-preview:thinking";
|
|
75
|
-
readonly openrouter_grok_4: "x-ai/grok-4-07-09";
|
|
76
|
-
readonly deepseekChat: "deepseek-chat";
|
|
77
|
-
readonly deepseekReasoner: "deepseek-reasoner";
|
|
78
|
-
readonly gpt4_1: "gpt-4.1-2025-04-14";
|
|
79
|
-
readonly gpt4o: "gpt-4o-2024-11-20";
|
|
80
|
-
readonly gpt4omini: "gpt-4o-mini-2024-07-18";
|
|
81
|
-
readonly o3mini: "o3-mini-2025-01-31";
|
|
82
|
-
readonly o3: "o3-2025-04-16";
|
|
83
|
-
readonly o3pro: "o3-pro-2025-06-10";
|
|
84
|
-
readonly o4mini: "o4-mini-2025-04-16";
|
|
85
|
-
readonly generatePatch: "ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk";
|
|
86
|
-
};
|
|
87
|
-
export declare const shortModelNames: {
|
|
88
|
-
'gemini-2.5-pro': "google/gemini-2.5-pro";
|
|
89
|
-
'flash-2.5': "google/gemini-2.5-flash";
|
|
90
|
-
'opus-4': "anthropic/claude-opus-4.1";
|
|
91
|
-
'sonnet-4.5': "anthropic/claude-sonnet-4.5";
|
|
92
|
-
'sonnet-4': "anthropic/claude-4-sonnet-20250522";
|
|
93
|
-
'sonnet-3.7': "anthropic/claude-4-sonnet-20250522";
|
|
94
|
-
'sonnet-3.6': "anthropic/claude-3.5-sonnet-20240620";
|
|
95
|
-
'sonnet-3.5': "anthropic/claude-3.5-sonnet-20240620";
|
|
96
|
-
'gpt-4.1': "gpt-4.1-2025-04-14";
|
|
97
|
-
'o3-mini': "o3-mini-2025-01-31";
|
|
98
|
-
o3: "o3-2025-04-16";
|
|
99
|
-
'o4-mini': "o4-mini-2025-04-16";
|
|
100
|
-
'o3-pro': "o3-pro-2025-06-10";
|
|
101
|
-
};
|
|
102
|
-
export declare const providerModelNames: {
|
|
103
|
-
[x: string]: "openrouter" | "openai";
|
|
104
|
-
};
|
|
105
|
-
export type Model = (typeof models)[keyof typeof models] | (string & {});
|
|
106
|
-
export declare const shouldCacheModels: string[];
|
|
107
|
-
export declare function supportsCacheControl(model: Model): boolean;
|
|
108
|
-
export declare function getModelFromShortName(modelName: string | undefined): Model | undefined;
|
|
109
|
-
export declare const providerDomains: {
|
|
110
|
-
readonly google: "google.com";
|
|
111
|
-
readonly anthropic: "anthropic.com";
|
|
112
|
-
readonly openai: "chatgpt.com";
|
|
113
|
-
readonly deepseek: "deepseek.com";
|
|
114
|
-
readonly xai: "x.ai";
|
|
115
|
-
};
|
|
116
|
-
export declare function getLogoForModel(modelName: string): string | undefined;
|
|
117
|
-
export declare const getModelForMode: (costMode: CostMode, operation: "agent" | "file-requests" | "check-new-files") => "anthropic/claude-3.5-haiku-20241022" | "anthropic/claude-4-sonnet-20250522" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const STOP_MARKER: string;
|
|
2
|
-
export declare const FIND_FILES_MARKER: string;
|
|
3
|
-
export declare const EXISTING_CODE_MARKER = "[[**REPLACE_WITH_EXISTING_CODE**]]";
|
|
4
|
-
export declare const AGENT_TEMPLATES_DIR = ".agents/";
|
|
5
|
-
export declare const AGENT_DEFINITION_FILE = "agent-definition.d.ts";
|
|
6
|
-
export declare const API_KEY_ENV_VAR = "LEVELCODE_API_KEY";
|
|
7
|
-
export declare const INVALID_AUTH_TOKEN_MESSAGE = "Invalid auth token. You may have been logged out from the web portal. Please log in again.";
|
|
8
|
-
export declare const DEFAULT_IGNORED_PATHS: string[];
|
|
9
|
-
export declare const ASKED_CONFIG = "asked_config";
|
|
10
|
-
export declare const SHOULD_ASK_CONFIG = "should_ask_config";
|
|
11
|
-
export declare const ONE_TIME_TAGS: readonly [];
|
|
12
|
-
export declare const ONE_TIME_LABELS: readonly ["asked_config", "should_ask_config"];
|
|
13
|
-
export declare const FILE_READ_STATUS: {
|
|
14
|
-
readonly DOES_NOT_EXIST: "[FILE_DOES_NOT_EXIST]";
|
|
15
|
-
readonly IGNORED: "[BLOCKED]";
|
|
16
|
-
readonly TEMPLATE: "[TEMPLATE]";
|
|
17
|
-
readonly OUTSIDE_PROJECT: "[FILE_OUTSIDE_PROJECT]";
|
|
18
|
-
readonly TOO_LARGE: "[FILE_TOO_LARGE]";
|
|
19
|
-
readonly ERROR: "[FILE_READ_ERROR]";
|
|
20
|
-
};
|
|
21
|
-
export declare const HIDDEN_FILE_READ_STATUS: ("[FILE_DOES_NOT_EXIST]" | "[BLOCKED]" | "[FILE_OUTSIDE_PROJECT]" | "[FILE_TOO_LARGE]" | "[FILE_READ_ERROR]")[];
|
|
22
|
-
export declare function toOptionalFile(file: string | null): string | null;
|
|
23
|
-
export declare const TEST_USER_ID = "test-user-id";
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Skills constants and validation rules.
|
|
3
|
-
*
|
|
4
|
-
* Skills are SKILL.md files with YAML frontmatter that define reusable
|
|
5
|
-
* instructions that agents can load on-demand via the skill tool.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* The directory name where skills are stored (within .agents/).
|
|
9
|
-
*/
|
|
10
|
-
export declare const SKILLS_DIR_NAME = "skills";
|
|
11
|
-
/**
|
|
12
|
-
* The file name for skill definitions.
|
|
13
|
-
*/
|
|
14
|
-
export declare const SKILL_FILE_NAME = "SKILL.md";
|
|
15
|
-
/**
|
|
16
|
-
* Validation regex for skill names.
|
|
17
|
-
* - 1-64 characters
|
|
18
|
-
* - Lowercase alphanumeric with single hyphen separators
|
|
19
|
-
* - Cannot start or end with hyphen
|
|
20
|
-
* - No consecutive hyphens
|
|
21
|
-
*/
|
|
22
|
-
export declare const SKILL_NAME_REGEX: RegExp;
|
|
23
|
-
/**
|
|
24
|
-
* Maximum length for skill name.
|
|
25
|
-
*/
|
|
26
|
-
export declare const SKILL_NAME_MAX_LENGTH = 64;
|
|
27
|
-
/**
|
|
28
|
-
* Maximum length for skill description.
|
|
29
|
-
*/
|
|
30
|
-
export declare const SKILL_DESCRIPTION_MAX_LENGTH = 1024;
|
|
31
|
-
/**
|
|
32
|
-
* Validates a skill name according to the naming rules.
|
|
33
|
-
* @param name - The skill name to validate
|
|
34
|
-
* @returns true if valid, false otherwise
|
|
35
|
-
*/
|
|
36
|
-
export declare function isValidSkillName(name: string): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Validates a skill description according to length rules.
|
|
39
|
-
* @param description - The skill description to validate
|
|
40
|
-
* @returns true if valid, false otherwise
|
|
41
|
-
*/
|
|
42
|
-
export declare function isValidSkillDescription(description: string): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const AuthState: {
|
|
2
|
-
readonly LOGGED_OUT: "LOGGED_OUT";
|
|
3
|
-
readonly LOGGED_IN: "LOGGED_IN";
|
|
4
|
-
};
|
|
5
|
-
export type AuthState = (typeof AuthState)[keyof typeof AuthState];
|
|
6
|
-
export declare const UserState: {
|
|
7
|
-
readonly LOGGED_OUT: "LOGGED_OUT";
|
|
8
|
-
readonly GOOD_STANDING: "GOOD_STANDING";
|
|
9
|
-
readonly ATTENTION_NEEDED: "ATTENTION_NEEDED";
|
|
10
|
-
readonly CRITICAL: "CRITICAL";
|
|
11
|
-
readonly DEPLETED: "DEPLETED";
|
|
12
|
-
};
|
|
13
|
-
export type UserState = (typeof UserState)[keyof typeof UserState];
|
|
14
|
-
export declare function getUserState(isLoggedIn: boolean, credits: number): UserState;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CI environment helper for dependency injection.
|
|
3
|
-
*
|
|
4
|
-
* This module provides a typed interface to CI-specific environment variables.
|
|
5
|
-
* These are used in CI/CD pipelines and eval contexts.
|
|
6
|
-
* In tests, use `@levelcode/common/testing-env-ci`.
|
|
7
|
-
*/
|
|
8
|
-
import type { CiEnv } from './types/contracts/env';
|
|
9
|
-
/**
|
|
10
|
-
* Get CI environment values.
|
|
11
|
-
* Returns a snapshot of the current process.env values for CI-specific vars.
|
|
12
|
-
*/
|
|
13
|
-
export declare const getCiEnv: () => CiEnv;
|
|
14
|
-
/**
|
|
15
|
-
* Default CI env instance.
|
|
16
|
-
* Use this for production code, inject mocks in tests.
|
|
17
|
-
*/
|
|
18
|
-
export declare const ciEnv: CiEnv;
|
|
19
|
-
/**
|
|
20
|
-
* Check if running in CI environment
|
|
21
|
-
*/
|
|
22
|
-
export declare const isCI: () => boolean;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Process environment helper for dependency injection.
|
|
3
|
-
*
|
|
4
|
-
* This module provides a typed interface to process.env values that aren't
|
|
5
|
-
* part of our validated schemas (ClientEnv/ServerEnv). These are runtime
|
|
6
|
-
* environment variables like SHELL, HOME, TERM, etc.
|
|
7
|
-
*
|
|
8
|
-
* Usage:
|
|
9
|
-
* - Import `getBaseEnv` for base OS-level vars only
|
|
10
|
-
* - Import `getProcessEnv` for the full ProcessEnv (base + extensions)
|
|
11
|
-
* - In tests, use `@levelcode/common/testing-env-process`
|
|
12
|
-
*/
|
|
13
|
-
import type { BaseEnv, ProcessEnv } from './types/contracts/env';
|
|
14
|
-
/**
|
|
15
|
-
* Get base environment values (OS-level vars only).
|
|
16
|
-
* This is the foundation that package-specific helpers should spread into.
|
|
17
|
-
*/
|
|
18
|
-
export declare const getBaseEnv: () => BaseEnv;
|
|
19
|
-
/**
|
|
20
|
-
* Get full process environment values (base + all extensions).
|
|
21
|
-
* Returns a snapshot of the current process.env values for the ProcessEnv type.
|
|
22
|
-
*/
|
|
23
|
-
export declare const getProcessEnv: () => ProcessEnv;
|
|
24
|
-
/**
|
|
25
|
-
* Default process env instance.
|
|
26
|
-
* Use this for production code, inject mocks in tests.
|
|
27
|
-
*/
|
|
28
|
-
export declare const processEnv: ProcessEnv;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import z from 'zod/v4';
|
|
2
|
-
export declare const CLIENT_ENV_PREFIX = "NEXT_PUBLIC_";
|
|
3
|
-
export declare const clientEnvSchema: z.ZodObject<{
|
|
4
|
-
NEXT_PUBLIC_CB_ENVIRONMENT: z.ZodDefault<z.ZodEnum<{
|
|
5
|
-
dev: "dev";
|
|
6
|
-
test: "test";
|
|
7
|
-
prod: "prod";
|
|
8
|
-
}>>;
|
|
9
|
-
NEXT_PUBLIC_LEVELCODE_APP_URL: z.ZodDefault<z.ZodString>;
|
|
10
|
-
NEXT_PUBLIC_SUPPORT_EMAIL: z.ZodDefault<z.ZodString>;
|
|
11
|
-
NEXT_PUBLIC_POSTHOG_API_KEY: z.ZodDefault<z.ZodString>;
|
|
12
|
-
NEXT_PUBLIC_POSTHOG_HOST_URL: z.ZodDefault<z.ZodString>;
|
|
13
|
-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: z.ZodDefault<z.ZodString>;
|
|
14
|
-
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL: z.ZodDefault<z.ZodString>;
|
|
15
|
-
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID: z.ZodOptional<z.ZodString>;
|
|
16
|
-
NEXT_PUBLIC_WEB_PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export declare const clientEnvVars: ("NEXT_PUBLIC_CB_ENVIRONMENT" | "NEXT_PUBLIC_LEVELCODE_APP_URL" | "NEXT_PUBLIC_SUPPORT_EMAIL" | "NEXT_PUBLIC_POSTHOG_API_KEY" | "NEXT_PUBLIC_POSTHOG_HOST_URL" | "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY" | "NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL" | "NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID" | "NEXT_PUBLIC_WEB_PORT")[];
|
|
19
|
-
export type ClientEnvVar = (typeof clientEnvVars)[number];
|
|
20
|
-
export type ClientInput = {
|
|
21
|
-
[K in (typeof clientEnvVars)[number]]: string | undefined;
|
|
22
|
-
};
|
|
23
|
-
export type ClientEnv = z.infer<typeof clientEnvSchema>;
|
|
24
|
-
export declare const clientProcessEnv: ClientInput;
|
package/dist/common/src/env.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const env: {
|
|
2
|
-
NEXT_PUBLIC_CB_ENVIRONMENT: "dev" | "test" | "prod";
|
|
3
|
-
NEXT_PUBLIC_LEVELCODE_APP_URL: string;
|
|
4
|
-
NEXT_PUBLIC_SUPPORT_EMAIL: string;
|
|
5
|
-
NEXT_PUBLIC_POSTHOG_API_KEY: string;
|
|
6
|
-
NEXT_PUBLIC_POSTHOG_HOST_URL: string;
|
|
7
|
-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: string;
|
|
8
|
-
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL: string;
|
|
9
|
-
NEXT_PUBLIC_WEB_PORT: number;
|
|
10
|
-
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID?: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
export declare const IS_DEV: boolean;
|
|
13
|
-
export declare const IS_TEST: boolean;
|
|
14
|
-
export declare const IS_PROD: boolean;
|
|
15
|
-
export declare const IS_CI: boolean;
|
|
16
|
-
export declare const DEBUG_ANALYTICS = false;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
2
|
-
import type { MCPConfig } from '../types/mcp';
|
|
3
|
-
import type { ToolResultOutput } from '../types/messages/content-part';
|
|
4
|
-
export declare function getMCPClient(config: MCPConfig): Promise<string>;
|
|
5
|
-
export declare function listMCPTools(clientId: string, ...args: Parameters<typeof Client.prototype.listTools>): ReturnType<typeof Client.prototype.listTools>;
|
|
6
|
-
export declare function callMCPTool(clientId: string, ...args: Parameters<typeof Client.prototype.callTool>): Promise<ToolResultOutput[]>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Import from '@levelcode/common/constants' or specific files instead:
|
|
3
|
-
* - '@levelcode/common/constants/model-config' for model-related constants
|
|
4
|
-
* - '@levelcode/common/constants/limits' for billing and numeric limits
|
|
5
|
-
* - '@levelcode/common/constants/ui' for auth/user state
|
|
6
|
-
* - '@levelcode/common/constants/paths' for file paths and markers
|
|
7
|
-
*
|
|
8
|
-
* This file re-exports all constants for backwards compatibility.
|
|
9
|
-
*/
|
|
10
|
-
export * from './constants';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as ignore from 'ignore';
|
|
2
|
-
import type { LevelCodeFileSystem } from './types/filesystem';
|
|
3
|
-
import type { FileTreeNode } from './util/file';
|
|
4
|
-
export declare const DEFAULT_MAX_FILES = 10000;
|
|
5
|
-
export declare function getProjectFileTree(params: {
|
|
6
|
-
projectRoot: string;
|
|
7
|
-
maxFiles?: number;
|
|
8
|
-
fs: LevelCodeFileSystem;
|
|
9
|
-
}): Promise<FileTreeNode[]>;
|
|
10
|
-
export declare function parseGitignore(params: {
|
|
11
|
-
fullDirPath: string;
|
|
12
|
-
projectRoot: string;
|
|
13
|
-
fs: LevelCodeFileSystem;
|
|
14
|
-
}): Promise<ignore.Ignore>;
|
|
15
|
-
export declare function getAllFilePaths(nodes: FileTreeNode[], basePath?: string): string[];
|
|
16
|
-
export interface PathInfo {
|
|
17
|
-
path: string;
|
|
18
|
-
isDirectory: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function getAllPathsWithDirectories(nodes: FileTreeNode[], basePath?: string): PathInfo[];
|
|
21
|
-
export declare function flattenTree(nodes: FileTreeNode[]): FileTreeNode[];
|
|
22
|
-
export declare function getLastReadFilePaths(flattenedNodes: FileTreeNode[], count: number): string[];
|
|
23
|
-
export declare function isFileIgnored(params: {
|
|
24
|
-
filePath: string;
|
|
25
|
-
projectRoot: string;
|
|
26
|
-
fs: LevelCodeFileSystem;
|
|
27
|
-
}): Promise<boolean>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { AgentTemplate } from '../types/agent-template';
|
|
2
|
-
import type { DynamicAgentTemplate } from '../types/dynamic-agent-template';
|
|
3
|
-
import type { Logger } from '@levelcode/common/types/contracts/logger';
|
|
4
|
-
export interface DynamicAgentValidationError {
|
|
5
|
-
filePath: string;
|
|
6
|
-
message: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Collect all agent IDs from template files without full validation
|
|
10
|
-
*/
|
|
11
|
-
export declare function collectAgentIds(params: {
|
|
12
|
-
agentTemplates?: Record<string, DynamicAgentTemplate>;
|
|
13
|
-
logger: Logger;
|
|
14
|
-
}): {
|
|
15
|
-
agentIds: string[];
|
|
16
|
-
spawnableAgentIds: string[];
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Validate and load dynamic agent templates from user-provided agentTemplates
|
|
20
|
-
*/
|
|
21
|
-
export declare function validateAgents(params: {
|
|
22
|
-
agentTemplates?: Record<string, any>;
|
|
23
|
-
logger: Logger;
|
|
24
|
-
}): {
|
|
25
|
-
templates: Record<string, AgentTemplate>;
|
|
26
|
-
dynamicTemplates: Record<string, DynamicAgentTemplate>;
|
|
27
|
-
validationErrors: DynamicAgentValidationError[];
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Validates a single dynamic agent template and converts it to an AgentTemplate.
|
|
31
|
-
* This is a plain function equivalent to the core logic of loadSingleAgent.
|
|
32
|
-
*
|
|
33
|
-
* @param dynamicAgentIds - Array of all available dynamic agent IDs for validation
|
|
34
|
-
* @param template - The raw agent template to validate (any type)
|
|
35
|
-
* @param options - Optional configuration object
|
|
36
|
-
* @param options.filePath - Optional file path for error context
|
|
37
|
-
* @param options.skipSubagentValidation - Skip subagent validation when loading from database
|
|
38
|
-
* @returns Validation result with either the converted AgentTemplate or an error
|
|
39
|
-
*/
|
|
40
|
-
export declare function validateSingleAgent(params: {
|
|
41
|
-
template: any;
|
|
42
|
-
filePath?: string;
|
|
43
|
-
}): {
|
|
44
|
-
success: boolean;
|
|
45
|
-
agentTemplate?: AgentTemplate;
|
|
46
|
-
dynamicAgentTemplate?: DynamicAgentTemplate;
|
|
47
|
-
error?: string;
|
|
48
|
-
};
|