@agntk/core 0.1.0
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/README.md +227 -0
- package/dist/advanced/index.d.ts +35 -0
- package/dist/advanced/index.d.ts.map +1 -0
- package/dist/advanced/index.js +52 -0
- package/dist/advanced/index.js.map +1 -0
- package/dist/agent.d.ts +46 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +381 -0
- package/dist/agent.js.map +1 -0
- package/dist/config/defaults.d.ts +10 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +34 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +11 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +54 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +222 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/schema.d.ts +912 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +119 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/constants.d.ts +17 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +23 -0
- package/dist/constants.js.map +1 -0
- package/dist/evals/assertions.d.ts +54 -0
- package/dist/evals/assertions.d.ts.map +1 -0
- package/dist/evals/assertions.js +200 -0
- package/dist/evals/assertions.js.map +1 -0
- package/dist/evals/index.d.ts +9 -0
- package/dist/evals/index.d.ts.map +1 -0
- package/dist/evals/index.js +8 -0
- package/dist/evals/index.js.map +1 -0
- package/dist/evals/runner.d.ts +34 -0
- package/dist/evals/runner.d.ts.map +1 -0
- package/dist/evals/runner.js +186 -0
- package/dist/evals/runner.js.map +1 -0
- package/dist/evals/types.d.ts +68 -0
- package/dist/evals/types.d.ts.map +1 -0
- package/dist/evals/types.js +5 -0
- package/dist/evals/types.js.map +1 -0
- package/dist/guardrails/built-ins.d.ts +48 -0
- package/dist/guardrails/built-ins.d.ts.map +1 -0
- package/dist/guardrails/built-ins.js +149 -0
- package/dist/guardrails/built-ins.js.map +1 -0
- package/dist/guardrails/index.d.ts +8 -0
- package/dist/guardrails/index.d.ts.map +1 -0
- package/dist/guardrails/index.js +7 -0
- package/dist/guardrails/index.js.map +1 -0
- package/dist/guardrails/runner.d.ts +49 -0
- package/dist/guardrails/runner.d.ts.map +1 -0
- package/dist/guardrails/runner.js +148 -0
- package/dist/guardrails/runner.js.map +1 -0
- package/dist/guardrails/types.d.ts +63 -0
- package/dist/guardrails/types.d.ts.map +1 -0
- package/dist/guardrails/types.js +22 -0
- package/dist/guardrails/types.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/memory/engine.d.ts +130 -0
- package/dist/memory/engine.d.ts.map +1 -0
- package/dist/memory/engine.js +227 -0
- package/dist/memory/engine.js.map +1 -0
- package/dist/memory/extraction.d.ts +24 -0
- package/dist/memory/extraction.d.ts.map +1 -0
- package/dist/memory/extraction.js +130 -0
- package/dist/memory/extraction.js.map +1 -0
- package/dist/memory/loader.d.ts +20 -0
- package/dist/memory/loader.d.ts.map +1 -0
- package/dist/memory/loader.js +73 -0
- package/dist/memory/loader.js.map +1 -0
- package/dist/memory/store.d.ts +42 -0
- package/dist/memory/store.d.ts.map +1 -0
- package/dist/memory/store.js +120 -0
- package/dist/memory/store.js.map +1 -0
- package/dist/memory/tools.d.ts +39 -0
- package/dist/memory/tools.d.ts.map +1 -0
- package/dist/memory/tools.js +225 -0
- package/dist/memory/tools.js.map +1 -0
- package/dist/memory/types.d.ts +46 -0
- package/dist/memory/types.d.ts.map +1 -0
- package/dist/memory/types.js +8 -0
- package/dist/memory/types.js.map +1 -0
- package/dist/memory/vectra-store.d.ts +31 -0
- package/dist/memory/vectra-store.d.ts.map +1 -0
- package/dist/memory/vectra-store.js +122 -0
- package/dist/memory/vectra-store.js.map +1 -0
- package/dist/models.d.ts +37 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +131 -0
- package/dist/models.js.map +1 -0
- package/dist/observability/index.d.ts +6 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +5 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/langfuse.d.ts +47 -0
- package/dist/observability/langfuse.d.ts.map +1 -0
- package/dist/observability/langfuse.js +112 -0
- package/dist/observability/langfuse.js.map +1 -0
- package/dist/observability/types.d.ts +37 -0
- package/dist/observability/types.d.ts.map +1 -0
- package/dist/observability/types.js +5 -0
- package/dist/observability/types.js.map +1 -0
- package/dist/pool/index.d.ts +7 -0
- package/dist/pool/index.d.ts.map +1 -0
- package/dist/pool/index.js +6 -0
- package/dist/pool/index.js.map +1 -0
- package/dist/pool/specialist-pool.d.ts +59 -0
- package/dist/pool/specialist-pool.d.ts.map +1 -0
- package/dist/pool/specialist-pool.js +224 -0
- package/dist/pool/specialist-pool.js.map +1 -0
- package/dist/pool/tools.d.ts +63 -0
- package/dist/pool/tools.d.ts.map +1 -0
- package/dist/pool/tools.js +83 -0
- package/dist/pool/tools.js.map +1 -0
- package/dist/pool/types.d.ts +79 -0
- package/dist/pool/types.d.ts.map +1 -0
- package/dist/pool/types.js +5 -0
- package/dist/pool/types.js.map +1 -0
- package/dist/presets/index.d.ts +5 -0
- package/dist/presets/index.d.ts.map +1 -0
- package/dist/presets/index.js +5 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/role-registry.d.ts +41 -0
- package/dist/presets/role-registry.d.ts.map +1 -0
- package/dist/presets/role-registry.js +213 -0
- package/dist/presets/role-registry.js.map +1 -0
- package/dist/presets/roles.d.ts +105 -0
- package/dist/presets/roles.d.ts.map +1 -0
- package/dist/presets/roles.js +207 -0
- package/dist/presets/roles.js.map +1 -0
- package/dist/presets/sub-agent-configs.d.ts +19 -0
- package/dist/presets/sub-agent-configs.d.ts.map +1 -0
- package/dist/presets/sub-agent-configs.js +71 -0
- package/dist/presets/sub-agent-configs.js.map +1 -0
- package/dist/presets/tool-preset-registry.d.ts +34 -0
- package/dist/presets/tool-preset-registry.d.ts.map +1 -0
- package/dist/presets/tool-preset-registry.js +107 -0
- package/dist/presets/tool-preset-registry.js.map +1 -0
- package/dist/presets/tools.d.ts +278 -0
- package/dist/presets/tools.d.ts.map +1 -0
- package/dist/presets/tools.js +108 -0
- package/dist/presets/tools.js.map +1 -0
- package/dist/prompts/context.d.ts +47 -0
- package/dist/prompts/context.d.ts.map +1 -0
- package/dist/prompts/context.js +187 -0
- package/dist/prompts/context.js.map +1 -0
- package/dist/prompts/template.d.ts +17 -0
- package/dist/prompts/template.d.ts.map +1 -0
- package/dist/prompts/template.js +32 -0
- package/dist/prompts/template.js.map +1 -0
- package/dist/prompts/templates.d.ts +11 -0
- package/dist/prompts/templates.d.ts.map +1 -0
- package/dist/prompts/templates.js +115 -0
- package/dist/prompts/templates.js.map +1 -0
- package/dist/reflection.d.ts +48 -0
- package/dist/reflection.d.ts.map +1 -0
- package/dist/reflection.js +91 -0
- package/dist/reflection.js.map +1 -0
- package/dist/skills/index.d.ts +6 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +5 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +84 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +400 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/types.d.ts +66 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +6 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/streaming/data-parts.d.ts +163 -0
- package/dist/streaming/data-parts.d.ts.map +1 -0
- package/dist/streaming/data-parts.js +14 -0
- package/dist/streaming/data-parts.js.map +1 -0
- package/dist/streaming/index.d.ts +8 -0
- package/dist/streaming/index.d.ts.map +1 -0
- package/dist/streaming/index.js +10 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/streaming/transient.d.ts +136 -0
- package/dist/streaming/transient.d.ts.map +1 -0
- package/dist/streaming/transient.js +201 -0
- package/dist/streaming/transient.js.map +1 -0
- package/dist/tools/approval.d.ts +67 -0
- package/dist/tools/approval.d.ts.map +1 -0
- package/dist/tools/approval.js +113 -0
- package/dist/tools/approval.js.map +1 -0
- package/dist/tools/ast-grep/cli.d.ts +16 -0
- package/dist/tools/ast-grep/cli.d.ts.map +1 -0
- package/dist/tools/ast-grep/cli.js +198 -0
- package/dist/tools/ast-grep/cli.js.map +1 -0
- package/dist/tools/ast-grep/constants.d.ts +24 -0
- package/dist/tools/ast-grep/constants.d.ts.map +1 -0
- package/dist/tools/ast-grep/constants.js +247 -0
- package/dist/tools/ast-grep/constants.js.map +1 -0
- package/dist/tools/ast-grep/downloader.d.ts +6 -0
- package/dist/tools/ast-grep/downloader.d.ts.map +1 -0
- package/dist/tools/ast-grep/downloader.js +137 -0
- package/dist/tools/ast-grep/downloader.js.map +1 -0
- package/dist/tools/ast-grep/index.d.ts +7 -0
- package/dist/tools/ast-grep/index.d.ts.map +1 -0
- package/dist/tools/ast-grep/index.js +6 -0
- package/dist/tools/ast-grep/index.js.map +1 -0
- package/dist/tools/ast-grep/tools.d.ts +33 -0
- package/dist/tools/ast-grep/tools.d.ts.map +1 -0
- package/dist/tools/ast-grep/tools.js +140 -0
- package/dist/tools/ast-grep/tools.js.map +1 -0
- package/dist/tools/ast-grep/types.d.ts +68 -0
- package/dist/tools/ast-grep/types.d.ts.map +1 -0
- package/dist/tools/ast-grep/types.js +2 -0
- package/dist/tools/ast-grep/types.js.map +1 -0
- package/dist/tools/ast-grep/utils.d.ts +4 -0
- package/dist/tools/ast-grep/utils.d.ts.map +1 -0
- package/dist/tools/ast-grep/utils.js +55 -0
- package/dist/tools/ast-grep/utils.js.map +1 -0
- package/dist/tools/browser/index.d.ts +6 -0
- package/dist/tools/browser/index.d.ts.map +1 -0
- package/dist/tools/browser/index.js +5 -0
- package/dist/tools/browser/index.js.map +1 -0
- package/dist/tools/browser/stream.d.ts +112 -0
- package/dist/tools/browser/stream.d.ts.map +1 -0
- package/dist/tools/browser/stream.js +228 -0
- package/dist/tools/browser/stream.js.map +1 -0
- package/dist/tools/browser/tool.d.ts +144 -0
- package/dist/tools/browser/tool.d.ts.map +1 -0
- package/dist/tools/browser/tool.js +214 -0
- package/dist/tools/browser/tool.js.map +1 -0
- package/dist/tools/browser/types.d.ts +216 -0
- package/dist/tools/browser/types.d.ts.map +1 -0
- package/dist/tools/browser/types.js +146 -0
- package/dist/tools/browser/types.js.map +1 -0
- package/dist/tools/deep-reasoning/constants.d.ts +11 -0
- package/dist/tools/deep-reasoning/constants.d.ts.map +1 -0
- package/dist/tools/deep-reasoning/constants.js +35 -0
- package/dist/tools/deep-reasoning/constants.js.map +1 -0
- package/dist/tools/deep-reasoning/engine.d.ts +20 -0
- package/dist/tools/deep-reasoning/engine.d.ts.map +1 -0
- package/dist/tools/deep-reasoning/engine.js +77 -0
- package/dist/tools/deep-reasoning/engine.js.map +1 -0
- package/dist/tools/deep-reasoning/index.d.ts +5 -0
- package/dist/tools/deep-reasoning/index.d.ts.map +1 -0
- package/dist/tools/deep-reasoning/index.js +7 -0
- package/dist/tools/deep-reasoning/index.js.map +1 -0
- package/dist/tools/deep-reasoning/tools.d.ts +12 -0
- package/dist/tools/deep-reasoning/tools.d.ts.map +1 -0
- package/dist/tools/deep-reasoning/tools.js +23 -0
- package/dist/tools/deep-reasoning/tools.js.map +1 -0
- package/dist/tools/deep-reasoning/types.d.ts +66 -0
- package/dist/tools/deep-reasoning/types.d.ts.map +1 -0
- package/dist/tools/deep-reasoning/types.js +13 -0
- package/dist/tools/deep-reasoning/types.js.map +1 -0
- package/dist/tools/factory.d.ts +109 -0
- package/dist/tools/factory.d.ts.map +1 -0
- package/dist/tools/factory.js +166 -0
- package/dist/tools/factory.js.map +1 -0
- package/dist/tools/file/index.d.ts +8 -0
- package/dist/tools/file/index.d.ts.map +1 -0
- package/dist/tools/file/index.js +8 -0
- package/dist/tools/file/index.js.map +1 -0
- package/dist/tools/file/tools.d.ts +45 -0
- package/dist/tools/file/tools.d.ts.map +1 -0
- package/dist/tools/file/tools.js +206 -0
- package/dist/tools/file/tools.js.map +1 -0
- package/dist/tools/glob/cli.d.ts +8 -0
- package/dist/tools/glob/cli.d.ts.map +1 -0
- package/dist/tools/glob/cli.js +168 -0
- package/dist/tools/glob/cli.js.map +1 -0
- package/dist/tools/glob/constants.d.ts +7 -0
- package/dist/tools/glob/constants.d.ts.map +1 -0
- package/dist/tools/glob/constants.js +17 -0
- package/dist/tools/glob/constants.js.map +1 -0
- package/dist/tools/glob/index.d.ts +6 -0
- package/dist/tools/glob/index.d.ts.map +1 -0
- package/dist/tools/glob/index.js +5 -0
- package/dist/tools/glob/index.js.map +1 -0
- package/dist/tools/glob/tools.d.ts +15 -0
- package/dist/tools/glob/tools.d.ts.map +1 -0
- package/dist/tools/glob/tools.js +74 -0
- package/dist/tools/glob/tools.js.map +1 -0
- package/dist/tools/glob/types.d.ts +20 -0
- package/dist/tools/glob/types.d.ts.map +1 -0
- package/dist/tools/glob/types.js +2 -0
- package/dist/tools/glob/types.js.map +1 -0
- package/dist/tools/glob/utils.d.ts +3 -0
- package/dist/tools/glob/utils.d.ts.map +1 -0
- package/dist/tools/glob/utils.js +20 -0
- package/dist/tools/glob/utils.js.map +1 -0
- package/dist/tools/grep/cli.d.ts +4 -0
- package/dist/tools/grep/cli.d.ts.map +1 -0
- package/dist/tools/grep/cli.js +224 -0
- package/dist/tools/grep/cli.js.map +1 -0
- package/dist/tools/grep/constants.d.ts +19 -0
- package/dist/tools/grep/constants.d.ts.map +1 -0
- package/dist/tools/grep/constants.js +115 -0
- package/dist/tools/grep/constants.js.map +1 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/downloader.d.ts.map +1 -0
- package/dist/tools/grep/downloader.js +164 -0
- package/dist/tools/grep/downloader.js.map +1 -0
- package/dist/tools/grep/index.d.ts +7 -0
- package/dist/tools/grep/index.d.ts.map +1 -0
- package/dist/tools/grep/index.js +6 -0
- package/dist/tools/grep/index.js.map +1 -0
- package/dist/tools/grep/tools.d.ts +19 -0
- package/dist/tools/grep/tools.d.ts.map +1 -0
- package/dist/tools/grep/tools.js +82 -0
- package/dist/tools/grep/tools.js.map +1 -0
- package/dist/tools/grep/types.d.ts +37 -0
- package/dist/tools/grep/types.d.ts.map +1 -0
- package/dist/tools/grep/types.js +2 -0
- package/dist/tools/grep/types.js.map +1 -0
- package/dist/tools/grep/utils.d.ts +4 -0
- package/dist/tools/grep/utils.d.ts.map +1 -0
- package/dist/tools/grep/utils.js +41 -0
- package/dist/tools/grep/utils.js.map +1 -0
- package/dist/tools/index.d.ts +21 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +33 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/model-retry.d.ts +54 -0
- package/dist/tools/model-retry.d.ts.map +1 -0
- package/dist/tools/model-retry.js +110 -0
- package/dist/tools/model-retry.js.map +1 -0
- package/dist/tools/plan/constants.d.ts +18 -0
- package/dist/tools/plan/constants.d.ts.map +1 -0
- package/dist/tools/plan/constants.js +13 -0
- package/dist/tools/plan/constants.js.map +1 -0
- package/dist/tools/plan/index.d.ts +5 -0
- package/dist/tools/plan/index.d.ts.map +1 -0
- package/dist/tools/plan/index.js +7 -0
- package/dist/tools/plan/index.js.map +1 -0
- package/dist/tools/plan/tools.d.ts +16 -0
- package/dist/tools/plan/tools.d.ts.map +1 -0
- package/dist/tools/plan/tools.js +217 -0
- package/dist/tools/plan/tools.js.map +1 -0
- package/dist/tools/plan/types.d.ts +75 -0
- package/dist/tools/plan/types.d.ts.map +1 -0
- package/dist/tools/plan/types.js +16 -0
- package/dist/tools/plan/types.js.map +1 -0
- package/dist/tools/plan/utils.d.ts +9 -0
- package/dist/tools/plan/utils.d.ts.map +1 -0
- package/dist/tools/plan/utils.js +27 -0
- package/dist/tools/plan/utils.js.map +1 -0
- package/dist/tools/progress/index.d.ts +53 -0
- package/dist/tools/progress/index.d.ts.map +1 -0
- package/dist/tools/progress/index.js +144 -0
- package/dist/tools/progress/index.js.map +1 -0
- package/dist/tools/provider.d.ts +97 -0
- package/dist/tools/provider.d.ts.map +1 -0
- package/dist/tools/provider.js +178 -0
- package/dist/tools/provider.js.map +1 -0
- package/dist/tools/search-skills.d.ts +44 -0
- package/dist/tools/search-skills.d.ts.map +1 -0
- package/dist/tools/search-skills.js +134 -0
- package/dist/tools/search-skills.js.map +1 -0
- package/dist/tools/shell/background.d.ts +38 -0
- package/dist/tools/shell/background.d.ts.map +1 -0
- package/dist/tools/shell/background.js +229 -0
- package/dist/tools/shell/background.js.map +1 -0
- package/dist/tools/shell/constants.d.ts +10 -0
- package/dist/tools/shell/constants.d.ts.map +1 -0
- package/dist/tools/shell/constants.js +55 -0
- package/dist/tools/shell/constants.js.map +1 -0
- package/dist/tools/shell/index.d.ts +7 -0
- package/dist/tools/shell/index.d.ts.map +1 -0
- package/dist/tools/shell/index.js +5 -0
- package/dist/tools/shell/index.js.map +1 -0
- package/dist/tools/shell/tools.d.ts +22 -0
- package/dist/tools/shell/tools.d.ts.map +1 -0
- package/dist/tools/shell/tools.js +70 -0
- package/dist/tools/shell/tools.js.map +1 -0
- package/dist/tools/shell/types.d.ts +30 -0
- package/dist/tools/shell/types.d.ts.map +1 -0
- package/dist/tools/shell/types.js +10 -0
- package/dist/tools/shell/types.js.map +1 -0
- package/dist/tools/shell/utils.d.ts +7 -0
- package/dist/tools/shell/utils.d.ts.map +1 -0
- package/dist/tools/shell/utils.js +26 -0
- package/dist/tools/shell/utils.js.map +1 -0
- package/dist/tools/spawn-agent/index.d.ts +96 -0
- package/dist/tools/spawn-agent/index.d.ts.map +1 -0
- package/dist/tools/spawn-agent/index.js +168 -0
- package/dist/tools/spawn-agent/index.js.map +1 -0
- package/dist/tools/utils/errors.d.ts +21 -0
- package/dist/tools/utils/errors.d.ts.map +1 -0
- package/dist/tools/utils/errors.js +29 -0
- package/dist/tools/utils/errors.js.map +1 -0
- package/dist/tools/utils/shell.d.ts +23 -0
- package/dist/tools/utils/shell.d.ts.map +1 -0
- package/dist/tools/utils/shell.js +99 -0
- package/dist/tools/utils/shell.js.map +1 -0
- package/dist/tools/utils/tool-result.d.ts +6 -0
- package/dist/tools/utils/tool-result.d.ts.map +1 -0
- package/dist/tools/utils/tool-result.js +22 -0
- package/dist/tools/utils/tool-result.js.map +1 -0
- package/dist/types/agent.d.ts +218 -0
- package/dist/types/agent.d.ts.map +1 -0
- package/dist/types/agent.js +6 -0
- package/dist/types/agent.js.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/lifecycle.d.ts +218 -0
- package/dist/types/lifecycle.d.ts.map +1 -0
- package/dist/types/lifecycle.js +99 -0
- package/dist/types/lifecycle.js.map +1 -0
- package/dist/types/streaming.d.ts +120 -0
- package/dist/types/streaming.d.ts.map +1 -0
- package/dist/types/streaming.js +6 -0
- package/dist/types/streaming.js.map +1 -0
- package/dist/usage-limits.d.ts +63 -0
- package/dist/usage-limits.d.ts.map +1 -0
- package/dist/usage-limits.js +88 -0
- package/dist/usage-limits.js.map +1 -0
- package/dist/utils/logger.d.ts +35 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +149 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/workflow/builders/adapt.d.ts +20 -0
- package/dist/workflow/builders/adapt.d.ts.map +1 -0
- package/dist/workflow/builders/adapt.js +33 -0
- package/dist/workflow/builders/adapt.js.map +1 -0
- package/dist/workflow/builders/index.d.ts +8 -0
- package/dist/workflow/builders/index.d.ts.map +1 -0
- package/dist/workflow/builders/index.js +7 -0
- package/dist/workflow/builders/index.js.map +1 -0
- package/dist/workflow/builders/parallel.d.ts +25 -0
- package/dist/workflow/builders/parallel.d.ts.map +1 -0
- package/dist/workflow/builders/parallel.js +60 -0
- package/dist/workflow/builders/parallel.js.map +1 -0
- package/dist/workflow/builders/pipeline.d.ts +22 -0
- package/dist/workflow/builders/pipeline.d.ts.map +1 -0
- package/dist/workflow/builders/pipeline.js +48 -0
- package/dist/workflow/builders/pipeline.js.map +1 -0
- package/dist/workflow/builders/types.d.ts +54 -0
- package/dist/workflow/builders/types.d.ts.map +1 -0
- package/dist/workflow/builders/types.js +5 -0
- package/dist/workflow/builders/types.js.map +1 -0
- package/dist/workflow/durable-agent.d.ts +128 -0
- package/dist/workflow/durable-agent.d.ts.map +1 -0
- package/dist/workflow/durable-agent.js +323 -0
- package/dist/workflow/durable-agent.js.map +1 -0
- package/dist/workflow/durable-tool.d.ts +103 -0
- package/dist/workflow/durable-tool.d.ts.map +1 -0
- package/dist/workflow/durable-tool.js +173 -0
- package/dist/workflow/durable-tool.js.map +1 -0
- package/dist/workflow/hooks.d.ts +318 -0
- package/dist/workflow/hooks.d.ts.map +1 -0
- package/dist/workflow/hooks.js +629 -0
- package/dist/workflow/hooks.js.map +1 -0
- package/dist/workflow/index.d.ts +17 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +24 -0
- package/dist/workflow/index.js.map +1 -0
- package/dist/workflow/schedulers.d.ts +231 -0
- package/dist/workflow/schedulers.d.ts.map +1 -0
- package/dist/workflow/schedulers.js +250 -0
- package/dist/workflow/schedulers.js.map +1 -0
- package/dist/workflow/team/create-team.d.ts +34 -0
- package/dist/workflow/team/create-team.d.ts.map +1 -0
- package/dist/workflow/team/create-team.js +242 -0
- package/dist/workflow/team/create-team.js.map +1 -0
- package/dist/workflow/team/index.d.ts +9 -0
- package/dist/workflow/team/index.d.ts.map +1 -0
- package/dist/workflow/team/index.js +8 -0
- package/dist/workflow/team/index.js.map +1 -0
- package/dist/workflow/team/machines.d.ts +152 -0
- package/dist/workflow/team/machines.d.ts.map +1 -0
- package/dist/workflow/team/machines.js +197 -0
- package/dist/workflow/team/machines.js.map +1 -0
- package/dist/workflow/team/task-board.d.ts +47 -0
- package/dist/workflow/team/task-board.d.ts.map +1 -0
- package/dist/workflow/team/task-board.js +111 -0
- package/dist/workflow/team/task-board.js.map +1 -0
- package/dist/workflow/team/tools.d.ts +66 -0
- package/dist/workflow/team/tools.d.ts.map +1 -0
- package/dist/workflow/team/tools.js +100 -0
- package/dist/workflow/team/tools.js.map +1 -0
- package/dist/workflow/team/types.d.ts +109 -0
- package/dist/workflow/team/types.d.ts.map +1 -0
- package/dist/workflow/team/types.js +5 -0
- package/dist/workflow/team/types.js.map +1 -0
- package/dist/workflow/templates.d.ts +71 -0
- package/dist/workflow/templates.d.ts.map +1 -0
- package/dist/workflow/templates.js +132 -0
- package/dist/workflow/templates.js.map +1 -0
- package/dist/workflow/utils.d.ts +29 -0
- package/dist/workflow/utils.d.ts.map +1 -0
- package/dist/workflow/utils.js +84 -0
- package/dist/workflow/utils.js.map +1 -0
- package/dist/wrappers/best-of-n.d.ts +69 -0
- package/dist/wrappers/best-of-n.d.ts.map +1 -0
- package/dist/wrappers/best-of-n.js +242 -0
- package/dist/wrappers/best-of-n.js.map +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Tool Preset Registry - manages built-in and custom presets.
|
|
3
|
+
*/
|
|
4
|
+
export interface ToolPresetDefinition {
|
|
5
|
+
/** Tools to include */
|
|
6
|
+
include?: string[];
|
|
7
|
+
/** Tools to exclude (applied after include) */
|
|
8
|
+
exclude?: string[];
|
|
9
|
+
/** Description of this preset */
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const BUILT_IN_PRESETS: Record<string, ToolPresetDefinition>;
|
|
13
|
+
/**
|
|
14
|
+
* Register a preset in the registry.
|
|
15
|
+
*/
|
|
16
|
+
export declare function registerPreset(name: string, definition: ToolPresetDefinition): void;
|
|
17
|
+
/**
|
|
18
|
+
* Get a preset from the registry.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getPreset(name: string): ToolPresetDefinition;
|
|
21
|
+
/**
|
|
22
|
+
* Get all registered preset names.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getAllPresetNames(): string[];
|
|
25
|
+
/**
|
|
26
|
+
* Check if a preset exists.
|
|
27
|
+
*/
|
|
28
|
+
export declare function hasPreset(name: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Reset the registry (for testing).
|
|
31
|
+
*/
|
|
32
|
+
export declare function resetPresetRegistry(): void;
|
|
33
|
+
export { BUILT_IN_PRESETS };
|
|
34
|
+
//# sourceMappingURL=tool-preset-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-preset-registry.d.ts","sourceRoot":"","sources":["../../src/presets/tool-preset-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,MAAM,WAAW,oBAAoB;IACnC,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAaD,QAAA,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAsB1D,CAAC;AAMF;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAoB,GAAG,IAAI,CAGnF;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAgB5D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAK5C;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG/C;AAuBD;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAG1C;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Tool Preset Registry - manages built-in and custom presets.
|
|
3
|
+
*/
|
|
4
|
+
import { createLogger } from '@agntk/logger';
|
|
5
|
+
import { getConfig } from '../config/index.js';
|
|
6
|
+
const log = createLogger('@agntk/core:presets');
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// Registry State
|
|
9
|
+
// ============================================================================
|
|
10
|
+
const presetRegistry = new Map();
|
|
11
|
+
let configPresetsLoaded = false;
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// Built-in Presets
|
|
14
|
+
// ============================================================================
|
|
15
|
+
const BUILT_IN_PRESETS = {
|
|
16
|
+
none: {
|
|
17
|
+
include: [],
|
|
18
|
+
description: 'No tools',
|
|
19
|
+
},
|
|
20
|
+
minimal: {
|
|
21
|
+
include: ['glob'],
|
|
22
|
+
description: 'Glob for file search only',
|
|
23
|
+
},
|
|
24
|
+
standard: {
|
|
25
|
+
include: ['glob', 'grep', 'shell', 'plan', 'deep_reasoning'],
|
|
26
|
+
description: 'Glob, grep, shell, plan, deep_reasoning',
|
|
27
|
+
},
|
|
28
|
+
full: {
|
|
29
|
+
include: ['glob', 'grep', 'shell', 'plan', 'deep_reasoning', 'ast_grep_search', 'ast_grep_replace'],
|
|
30
|
+
description: 'All standard tools plus AST-grep',
|
|
31
|
+
},
|
|
32
|
+
readonly: {
|
|
33
|
+
include: ['glob', 'grep', 'deep_reasoning'],
|
|
34
|
+
exclude: ['shell'],
|
|
35
|
+
description: 'Read-only tools without shell access',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
// ============================================================================
|
|
39
|
+
// Registry Functions
|
|
40
|
+
// ============================================================================
|
|
41
|
+
/**
|
|
42
|
+
* Register a preset in the registry.
|
|
43
|
+
*/
|
|
44
|
+
export function registerPreset(name, definition) {
|
|
45
|
+
log.debug('Registering preset', { name, include: definition.include?.length ?? 0 });
|
|
46
|
+
presetRegistry.set(name, definition);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get a preset from the registry.
|
|
50
|
+
*/
|
|
51
|
+
export function getPreset(name) {
|
|
52
|
+
loadConfigPresets();
|
|
53
|
+
// Check registry first
|
|
54
|
+
if (presetRegistry.has(name)) {
|
|
55
|
+
return presetRegistry.get(name);
|
|
56
|
+
}
|
|
57
|
+
// Fall back to built-in
|
|
58
|
+
if (name in BUILT_IN_PRESETS) {
|
|
59
|
+
return BUILT_IN_PRESETS[name];
|
|
60
|
+
}
|
|
61
|
+
// Default to standard
|
|
62
|
+
log.warn('Unknown preset, using standard', { preset: name });
|
|
63
|
+
return BUILT_IN_PRESETS.standard;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get all registered preset names.
|
|
67
|
+
*/
|
|
68
|
+
export function getAllPresetNames() {
|
|
69
|
+
loadConfigPresets();
|
|
70
|
+
const builtIn = Object.keys(BUILT_IN_PRESETS);
|
|
71
|
+
const custom = Array.from(presetRegistry.keys());
|
|
72
|
+
return [...new Set([...builtIn, ...custom])];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a preset exists.
|
|
76
|
+
*/
|
|
77
|
+
export function hasPreset(name) {
|
|
78
|
+
loadConfigPresets();
|
|
79
|
+
return presetRegistry.has(name) || name in BUILT_IN_PRESETS;
|
|
80
|
+
}
|
|
81
|
+
// ============================================================================
|
|
82
|
+
// Config Loading
|
|
83
|
+
// ============================================================================
|
|
84
|
+
function loadConfigPresets() {
|
|
85
|
+
if (configPresetsLoaded)
|
|
86
|
+
return;
|
|
87
|
+
configPresetsLoaded = true;
|
|
88
|
+
const config = getConfig();
|
|
89
|
+
const presets = config.toolPresets;
|
|
90
|
+
if (!presets)
|
|
91
|
+
return;
|
|
92
|
+
for (const [name, presetConfig] of Object.entries(presets)) {
|
|
93
|
+
if (!presetConfig)
|
|
94
|
+
continue;
|
|
95
|
+
log.info('Loading preset from config', { name });
|
|
96
|
+
registerPreset(name, presetConfig);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Reset the registry (for testing).
|
|
101
|
+
*/
|
|
102
|
+
export function resetPresetRegistry() {
|
|
103
|
+
presetRegistry.clear();
|
|
104
|
+
configPresetsLoaded = false;
|
|
105
|
+
}
|
|
106
|
+
export { BUILT_IN_PRESETS };
|
|
107
|
+
//# sourceMappingURL=tool-preset-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-preset-registry.js","sourceRoot":"","sources":["../../src/presets/tool-preset-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,GAAG,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAC;AAehD,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,MAAM,cAAc,GAAG,IAAI,GAAG,EAAgC,CAAC;AAC/D,IAAI,mBAAmB,GAAG,KAAK,CAAC;AAEhC,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,MAAM,gBAAgB,GAAyC;IAC7D,IAAI,EAAE;QACJ,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,UAAU;KACxB;IACD,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,2BAA2B;KACzC;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,CAAC;QAC5D,WAAW,EAAE,yCAAyC;KACvD;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;QACnG,WAAW,EAAE,kCAAkC;KAChD;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC;QAC3C,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AAU,SAAS,CAAC,IAAY;IACpC,iBAAiB,EAAE,CAAC;IACpB,OAAO,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,gBAAgB,CAAC;AAC9D,CAAC;AAED,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,SAAS,iBAAiB;IACxB,IAAI,mBAAmB;QAAE,OAAO;IAChC,mBAAmB,GAAG,IAAI,CAAC;IAE3B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAI,MAAkC,CAAC,WAA+D,CAAC;IAEpH,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,KAAK,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3D,IAAI,CAAC,YAAY;YAAE,SAAS;QAE5B,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IACrC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,cAAc,CAAC,KAAK,EAAE,CAAC;IACvB,mBAAmB,GAAG,KAAK,CAAC;AAC9B,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Tool presets for different agent configurations.
|
|
3
|
+
* Provides none, minimal, standard, and full tool sets.
|
|
4
|
+
*/
|
|
5
|
+
import { type PlanToolConfig } from '../tools/plan/index.js';
|
|
6
|
+
export type ToolPresetLevel = 'none' | 'minimal' | 'standard' | 'full';
|
|
7
|
+
export interface ToolPresetOptions {
|
|
8
|
+
/** Override default workspace root */
|
|
9
|
+
workspaceRoot?: string;
|
|
10
|
+
/** Plan tool config */
|
|
11
|
+
planConfig?: PlanToolConfig;
|
|
12
|
+
/** Additional custom tools to include */
|
|
13
|
+
customTools?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create tool presets based on the selected level.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createToolPreset(preset: ToolPresetLevel, options?: ToolPresetOptions): {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
} | {
|
|
21
|
+
glob: import("ai").Tool<{
|
|
22
|
+
pattern: string;
|
|
23
|
+
path?: string | undefined;
|
|
24
|
+
maxDepth?: number | undefined;
|
|
25
|
+
hidden?: boolean | undefined;
|
|
26
|
+
}, string>;
|
|
27
|
+
} | {
|
|
28
|
+
shell: import("ai").Tool<{
|
|
29
|
+
command: string;
|
|
30
|
+
timeout?: number | undefined;
|
|
31
|
+
cwd?: string | undefined;
|
|
32
|
+
allow?: boolean | undefined;
|
|
33
|
+
stream?: boolean | undefined;
|
|
34
|
+
}, string>;
|
|
35
|
+
background: import("ai").Tool<{
|
|
36
|
+
operation: "status" | "output" | "start" | "stop" | "list";
|
|
37
|
+
cwd?: string | undefined;
|
|
38
|
+
env?: Record<string, string> | undefined;
|
|
39
|
+
command?: string | undefined;
|
|
40
|
+
sessionId?: string | undefined;
|
|
41
|
+
}, string>;
|
|
42
|
+
plan: import("ai").Tool<{
|
|
43
|
+
action: "create" | "decide" | "update_status" | "add_note" | "add_step" | "view";
|
|
44
|
+
steps?: string[] | undefined;
|
|
45
|
+
title?: string | undefined;
|
|
46
|
+
status?: "pending" | "blocked" | "completed" | "in_progress" | undefined;
|
|
47
|
+
decision?: "delegate" | "proceed" | undefined;
|
|
48
|
+
stepName?: string | undefined;
|
|
49
|
+
note?: string | undefined;
|
|
50
|
+
}, string>;
|
|
51
|
+
deep_reasoning: import("ai").Tool<{
|
|
52
|
+
thought: string;
|
|
53
|
+
nextThoughtNeeded: boolean;
|
|
54
|
+
thoughtNumber: number;
|
|
55
|
+
totalThoughts: number;
|
|
56
|
+
isRevision?: boolean | undefined;
|
|
57
|
+
revisesThought?: number | undefined;
|
|
58
|
+
branchFromThought?: number | undefined;
|
|
59
|
+
branchId?: string | undefined;
|
|
60
|
+
needsMoreThoughts?: boolean | undefined;
|
|
61
|
+
}, string>;
|
|
62
|
+
search_skills: import("ai").Tool<{
|
|
63
|
+
query: string;
|
|
64
|
+
limit?: number | undefined;
|
|
65
|
+
}, string>;
|
|
66
|
+
file_read: import("ai").Tool<{
|
|
67
|
+
path: string;
|
|
68
|
+
startLine?: number | undefined;
|
|
69
|
+
endLine?: number | undefined;
|
|
70
|
+
}, string>;
|
|
71
|
+
file_write: import("ai").Tool<{
|
|
72
|
+
path: string;
|
|
73
|
+
content: string;
|
|
74
|
+
}, string>;
|
|
75
|
+
file_edit: import("ai").Tool<{
|
|
76
|
+
path: string;
|
|
77
|
+
oldText: string;
|
|
78
|
+
newText: string;
|
|
79
|
+
}, string>;
|
|
80
|
+
file_create: import("ai").Tool<{
|
|
81
|
+
path: string;
|
|
82
|
+
content: string;
|
|
83
|
+
}, string>;
|
|
84
|
+
grep: import("ai").Tool<{
|
|
85
|
+
pattern: string;
|
|
86
|
+
path?: string | undefined;
|
|
87
|
+
include?: string | undefined;
|
|
88
|
+
context?: number | undefined;
|
|
89
|
+
caseSensitive?: boolean | undefined;
|
|
90
|
+
wholeWord?: boolean | undefined;
|
|
91
|
+
}, string>;
|
|
92
|
+
glob: import("ai").Tool<{
|
|
93
|
+
pattern: string;
|
|
94
|
+
path?: string | undefined;
|
|
95
|
+
maxDepth?: number | undefined;
|
|
96
|
+
hidden?: boolean | undefined;
|
|
97
|
+
}, string>;
|
|
98
|
+
} | {
|
|
99
|
+
browser: import("ai").Tool<{
|
|
100
|
+
action: "open";
|
|
101
|
+
url: string;
|
|
102
|
+
} | {
|
|
103
|
+
action: "snapshot";
|
|
104
|
+
interactive?: boolean | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
action: "click";
|
|
107
|
+
selector: string;
|
|
108
|
+
} | {
|
|
109
|
+
action: "dblclick";
|
|
110
|
+
selector: string;
|
|
111
|
+
} | {
|
|
112
|
+
text: string;
|
|
113
|
+
action: "fill";
|
|
114
|
+
selector: string;
|
|
115
|
+
} | {
|
|
116
|
+
text: string;
|
|
117
|
+
action: "type";
|
|
118
|
+
selector: string;
|
|
119
|
+
} | {
|
|
120
|
+
value: string;
|
|
121
|
+
action: "select";
|
|
122
|
+
selector: string;
|
|
123
|
+
} | {
|
|
124
|
+
action: "press";
|
|
125
|
+
key: string;
|
|
126
|
+
} | {
|
|
127
|
+
action: "hover";
|
|
128
|
+
selector: string;
|
|
129
|
+
} | {
|
|
130
|
+
action: "scroll";
|
|
131
|
+
direction: "up" | "down" | "left" | "right";
|
|
132
|
+
pixels?: number | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
action: "screenshot";
|
|
135
|
+
path?: string | undefined;
|
|
136
|
+
fullPage?: boolean | undefined;
|
|
137
|
+
} | {
|
|
138
|
+
action: "getText";
|
|
139
|
+
selector: string;
|
|
140
|
+
} | {
|
|
141
|
+
action: "getUrl";
|
|
142
|
+
} | {
|
|
143
|
+
action: "getTitle";
|
|
144
|
+
} | {
|
|
145
|
+
action: "wait";
|
|
146
|
+
text?: string | undefined;
|
|
147
|
+
url?: string | undefined;
|
|
148
|
+
selector?: string | undefined;
|
|
149
|
+
ms?: number | undefined;
|
|
150
|
+
load?: "load" | "domcontentloaded" | "networkidle" | undefined;
|
|
151
|
+
} | {
|
|
152
|
+
action: "eval";
|
|
153
|
+
js: string;
|
|
154
|
+
} | {
|
|
155
|
+
action: "check";
|
|
156
|
+
selector: string;
|
|
157
|
+
} | {
|
|
158
|
+
action: "uncheck";
|
|
159
|
+
selector: string;
|
|
160
|
+
} | {
|
|
161
|
+
action: "close";
|
|
162
|
+
}, string>;
|
|
163
|
+
progress_read: import("ai").Tool<{}, string>;
|
|
164
|
+
progress_update: import("ai").Tool<{
|
|
165
|
+
action?: string | undefined;
|
|
166
|
+
sessionId?: string | undefined;
|
|
167
|
+
featureId?: string | undefined;
|
|
168
|
+
featureName?: string | undefined;
|
|
169
|
+
featureStatus?: "pending" | "blocked" | "completed" | "in_progress" | undefined;
|
|
170
|
+
featureDescription?: string | undefined;
|
|
171
|
+
featureNotes?: string | undefined;
|
|
172
|
+
}, string>;
|
|
173
|
+
ast_grep_search: import("ai").Tool<{
|
|
174
|
+
pattern: string;
|
|
175
|
+
lang: string;
|
|
176
|
+
context?: number | undefined;
|
|
177
|
+
paths?: string[] | undefined;
|
|
178
|
+
globs?: string[] | undefined;
|
|
179
|
+
}, string>;
|
|
180
|
+
ast_grep_replace: import("ai").Tool<{
|
|
181
|
+
pattern: string;
|
|
182
|
+
lang: string;
|
|
183
|
+
rewrite: string;
|
|
184
|
+
dryRun: boolean;
|
|
185
|
+
paths?: string[] | undefined;
|
|
186
|
+
globs?: string[] | undefined;
|
|
187
|
+
}, string>;
|
|
188
|
+
shell: import("ai").Tool<{
|
|
189
|
+
command: string;
|
|
190
|
+
timeout?: number | undefined;
|
|
191
|
+
cwd?: string | undefined;
|
|
192
|
+
allow?: boolean | undefined;
|
|
193
|
+
stream?: boolean | undefined;
|
|
194
|
+
}, string>;
|
|
195
|
+
background: import("ai").Tool<{
|
|
196
|
+
operation: "status" | "output" | "start" | "stop" | "list";
|
|
197
|
+
cwd?: string | undefined;
|
|
198
|
+
env?: Record<string, string> | undefined;
|
|
199
|
+
command?: string | undefined;
|
|
200
|
+
sessionId?: string | undefined;
|
|
201
|
+
}, string>;
|
|
202
|
+
plan: import("ai").Tool<{
|
|
203
|
+
action: "create" | "decide" | "update_status" | "add_note" | "add_step" | "view";
|
|
204
|
+
steps?: string[] | undefined;
|
|
205
|
+
title?: string | undefined;
|
|
206
|
+
status?: "pending" | "blocked" | "completed" | "in_progress" | undefined;
|
|
207
|
+
decision?: "delegate" | "proceed" | undefined;
|
|
208
|
+
stepName?: string | undefined;
|
|
209
|
+
note?: string | undefined;
|
|
210
|
+
}, string>;
|
|
211
|
+
deep_reasoning: import("ai").Tool<{
|
|
212
|
+
thought: string;
|
|
213
|
+
nextThoughtNeeded: boolean;
|
|
214
|
+
thoughtNumber: number;
|
|
215
|
+
totalThoughts: number;
|
|
216
|
+
isRevision?: boolean | undefined;
|
|
217
|
+
revisesThought?: number | undefined;
|
|
218
|
+
branchFromThought?: number | undefined;
|
|
219
|
+
branchId?: string | undefined;
|
|
220
|
+
needsMoreThoughts?: boolean | undefined;
|
|
221
|
+
}, string>;
|
|
222
|
+
search_skills: import("ai").Tool<{
|
|
223
|
+
query: string;
|
|
224
|
+
limit?: number | undefined;
|
|
225
|
+
}, string>;
|
|
226
|
+
file_read: import("ai").Tool<{
|
|
227
|
+
path: string;
|
|
228
|
+
startLine?: number | undefined;
|
|
229
|
+
endLine?: number | undefined;
|
|
230
|
+
}, string>;
|
|
231
|
+
file_write: import("ai").Tool<{
|
|
232
|
+
path: string;
|
|
233
|
+
content: string;
|
|
234
|
+
}, string>;
|
|
235
|
+
file_edit: import("ai").Tool<{
|
|
236
|
+
path: string;
|
|
237
|
+
oldText: string;
|
|
238
|
+
newText: string;
|
|
239
|
+
}, string>;
|
|
240
|
+
file_create: import("ai").Tool<{
|
|
241
|
+
path: string;
|
|
242
|
+
content: string;
|
|
243
|
+
}, string>;
|
|
244
|
+
grep: import("ai").Tool<{
|
|
245
|
+
pattern: string;
|
|
246
|
+
path?: string | undefined;
|
|
247
|
+
include?: string | undefined;
|
|
248
|
+
context?: number | undefined;
|
|
249
|
+
caseSensitive?: boolean | undefined;
|
|
250
|
+
wholeWord?: boolean | undefined;
|
|
251
|
+
}, string>;
|
|
252
|
+
glob: import("ai").Tool<{
|
|
253
|
+
pattern: string;
|
|
254
|
+
path?: string | undefined;
|
|
255
|
+
maxDepth?: number | undefined;
|
|
256
|
+
hidden?: boolean | undefined;
|
|
257
|
+
}, string>;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Static preset definitions for reference.
|
|
261
|
+
* Use createToolPreset() for actual tool creation.
|
|
262
|
+
*/
|
|
263
|
+
export declare const toolPresets: {
|
|
264
|
+
readonly none: Record<string, never>;
|
|
265
|
+
readonly minimal: {
|
|
266
|
+
readonly description: "Glob file search only";
|
|
267
|
+
readonly tools: readonly ["glob"];
|
|
268
|
+
};
|
|
269
|
+
readonly standard: {
|
|
270
|
+
readonly description: "Glob, grep, shell, background, file tools, search_skills, plan, deep_reasoning";
|
|
271
|
+
readonly tools: readonly ["glob", "grep", "shell", "background", "file_read", "file_write", "file_edit", "file_create", "search_skills", "plan", "deep_reasoning"];
|
|
272
|
+
};
|
|
273
|
+
readonly full: {
|
|
274
|
+
readonly description: "All standard tools plus AST-grep, progress tracking, and browser automation";
|
|
275
|
+
readonly tools: readonly ["glob", "grep", "shell", "background", "file_read", "file_write", "file_edit", "file_create", "progress_read", "progress_update", "search_skills", "plan", "deep_reasoning", "ast_grep_search", "ast_grep_replace", "browser"];
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/presets/tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAWpE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAEvE,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uBAAuB;IACvB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC;AAMD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,OAAO,GAAE,iBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiChC;AAoDD;;;GAGG;AACH,eAAO,MAAM,WAAW;mBACV,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;;;;;;;;;;;;;CAgBzB,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Tool presets for different agent configurations.
|
|
3
|
+
* Provides none, minimal, standard, and full tool sets.
|
|
4
|
+
*/
|
|
5
|
+
import { createGlobTool } from '../tools/glob/index.js';
|
|
6
|
+
import { createGrepTool } from '../tools/grep/index.js';
|
|
7
|
+
import { createAstGrepTools } from '../tools/ast-grep/index.js';
|
|
8
|
+
import { createShellTool, createBackgroundTool } from '../tools/shell/index.js';
|
|
9
|
+
import { createPlanTool } from '../tools/plan/index.js';
|
|
10
|
+
import { createDeepReasoningTool } from '../tools/deep-reasoning/index.js';
|
|
11
|
+
import { createBrowserTool } from '../tools/browser/index.js';
|
|
12
|
+
import { createFileTools } from '../tools/file/index.js';
|
|
13
|
+
import { createProgressTools } from '../tools/progress/index.js';
|
|
14
|
+
import { createSearchSkillsTool } from '../tools/search-skills.js';
|
|
15
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
16
|
+
// Preset Definitions
|
|
17
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
18
|
+
/**
|
|
19
|
+
* Create tool presets based on the selected level.
|
|
20
|
+
*/
|
|
21
|
+
export function createToolPreset(preset, options = {}) {
|
|
22
|
+
const { workspaceRoot = process.cwd(), planConfig, customTools = {}, } = options;
|
|
23
|
+
switch (preset) {
|
|
24
|
+
case 'none':
|
|
25
|
+
return { ...customTools };
|
|
26
|
+
case 'minimal':
|
|
27
|
+
return {
|
|
28
|
+
...createMinimalPreset(),
|
|
29
|
+
...customTools,
|
|
30
|
+
};
|
|
31
|
+
case 'standard':
|
|
32
|
+
return {
|
|
33
|
+
...createStandardPreset(workspaceRoot, planConfig),
|
|
34
|
+
...customTools,
|
|
35
|
+
};
|
|
36
|
+
case 'full':
|
|
37
|
+
return {
|
|
38
|
+
...createFullPreset(workspaceRoot, planConfig),
|
|
39
|
+
...customTools,
|
|
40
|
+
};
|
|
41
|
+
default:
|
|
42
|
+
throw new Error(`Unknown tool preset: ${preset}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
46
|
+
// Preset Implementations
|
|
47
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
48
|
+
/**
|
|
49
|
+
* Minimal preset: Glob for file search.
|
|
50
|
+
* Good for pure analysis tasks without mutations.
|
|
51
|
+
*/
|
|
52
|
+
function createMinimalPreset() {
|
|
53
|
+
return createGlobTool();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Standard preset: Glob, grep, shell, plan, deep_reasoning.
|
|
57
|
+
* Good for most development tasks.
|
|
58
|
+
*/
|
|
59
|
+
function createStandardPreset(workspaceRoot, planConfig) {
|
|
60
|
+
const shell = createShellTool(workspaceRoot);
|
|
61
|
+
const plan = createPlanTool(planConfig ?? {});
|
|
62
|
+
const deep_reasoning = createDeepReasoningTool();
|
|
63
|
+
return {
|
|
64
|
+
...createGlobTool(),
|
|
65
|
+
...createGrepTool(),
|
|
66
|
+
...createFileTools(workspaceRoot),
|
|
67
|
+
...createSearchSkillsTool(),
|
|
68
|
+
shell,
|
|
69
|
+
background: createBackgroundTool(),
|
|
70
|
+
plan,
|
|
71
|
+
deep_reasoning,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Full preset: All standard tools + AST-grep, progress tracking, and browser.
|
|
76
|
+
* Good for complex, multi-agent tasks.
|
|
77
|
+
*/
|
|
78
|
+
function createFullPreset(workspaceRoot, planConfig) {
|
|
79
|
+
return {
|
|
80
|
+
...createStandardPreset(workspaceRoot, planConfig),
|
|
81
|
+
...createAstGrepTools(),
|
|
82
|
+
...createProgressTools(workspaceRoot),
|
|
83
|
+
browser: createBrowserTool(),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
87
|
+
// Static Presets (for quick reference)
|
|
88
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
89
|
+
/**
|
|
90
|
+
* Static preset definitions for reference.
|
|
91
|
+
* Use createToolPreset() for actual tool creation.
|
|
92
|
+
*/
|
|
93
|
+
export const toolPresets = {
|
|
94
|
+
none: {},
|
|
95
|
+
minimal: {
|
|
96
|
+
description: 'Glob file search only',
|
|
97
|
+
tools: ['glob'],
|
|
98
|
+
},
|
|
99
|
+
standard: {
|
|
100
|
+
description: 'Glob, grep, shell, background, file tools, search_skills, plan, deep_reasoning',
|
|
101
|
+
tools: ['glob', 'grep', 'shell', 'background', 'file_read', 'file_write', 'file_edit', 'file_create', 'search_skills', 'plan', 'deep_reasoning'],
|
|
102
|
+
},
|
|
103
|
+
full: {
|
|
104
|
+
description: 'All standard tools plus AST-grep, progress tracking, and browser automation',
|
|
105
|
+
tools: ['glob', 'grep', 'shell', 'background', 'file_read', 'file_write', 'file_edit', 'file_create', 'progress_read', 'progress_update', 'search_skills', 'plan', 'deep_reasoning', 'ast_grep_search', 'ast_grep_replace', 'browser'],
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/presets/tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,kBAA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E,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,CAAC;KACvO;CACO,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @agntk/core - System Context Builder
|
|
3
|
+
* Builds dynamic context information for agent system prompts
|
|
4
|
+
*/
|
|
5
|
+
export interface UserLocation {
|
|
6
|
+
city?: string;
|
|
7
|
+
region?: string;
|
|
8
|
+
country?: string;
|
|
9
|
+
countryCode?: string;
|
|
10
|
+
timezone?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UserPreferences {
|
|
13
|
+
name?: string;
|
|
14
|
+
language?: string;
|
|
15
|
+
communicationStyle?: 'concise' | 'detailed' | 'technical' | 'casual';
|
|
16
|
+
codeStyle?: {
|
|
17
|
+
indentation?: 'tabs' | 'spaces';
|
|
18
|
+
indentSize?: number;
|
|
19
|
+
quoteStyle?: 'single' | 'double';
|
|
20
|
+
};
|
|
21
|
+
customPreferences?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export interface SystemContext {
|
|
24
|
+
currentTime: string;
|
|
25
|
+
currentDate: string;
|
|
26
|
+
timezone: string;
|
|
27
|
+
platform: string;
|
|
28
|
+
hostname: string;
|
|
29
|
+
username: string;
|
|
30
|
+
locale: string;
|
|
31
|
+
workspaceRoot?: string;
|
|
32
|
+
workspaceMap?: string;
|
|
33
|
+
userLocation?: UserLocation;
|
|
34
|
+
userPreferences?: UserPreferences;
|
|
35
|
+
userProfileBlock?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ContextOptions {
|
|
38
|
+
workspaceRoot?: string;
|
|
39
|
+
includeWorkspaceMap?: boolean;
|
|
40
|
+
userLocation?: UserLocation;
|
|
41
|
+
userPreferences?: UserPreferences;
|
|
42
|
+
fetchLocation?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare function buildSystemContext(options?: ContextOptions): Promise<SystemContext>;
|
|
45
|
+
export declare function formatSystemContextBlock(context: SystemContext): string;
|
|
46
|
+
export declare function buildDynamicSystemPrompt(basePrompt: string, options?: ContextOptions): Promise<string>;
|
|
47
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/prompts/context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;IACrE,SAAS,CAAC,EAAE;QACV,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;KAClC,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,aAAa;IAE5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IAGf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CA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