erosolar-cli 1.0.2 → 1.0.5
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 +80 -44
- package/agents/erosolar-code.rules.json +167 -0
- package/agents/general.rules.json +188 -0
- package/dist/adapters/browser/index.d.ts +12 -0
- package/dist/adapters/browser/index.d.ts.map +1 -0
- package/dist/adapters/browser/index.js +1 -0
- package/dist/adapters/browser/index.js.map +1 -0
- package/dist/adapters/node/index.d.ts +17 -0
- package/dist/adapters/node/index.d.ts.map +1 -0
- package/dist/adapters/node/index.js +1 -0
- package/dist/adapters/node/index.js.map +1 -0
- package/dist/adapters/remote/index.d.ts +13 -0
- package/dist/adapters/remote/index.d.ts.map +1 -0
- package/dist/adapters/remote/index.js +1 -0
- package/dist/adapters/remote/index.js.map +1 -0
- package/dist/adapters/types.d.ts +14 -0
- package/dist/adapters/types.d.ts.map +1 -0
- package/dist/adapters/types.js +1 -0
- package/dist/adapters/types.js.map +1 -0
- package/dist/bin/erosolar.d.ts +3 -0
- package/dist/bin/erosolar.d.ts.map +1 -0
- package/dist/bin/erosolar.js +1 -0
- package/dist/bin/erosolar.js.map +1 -0
- package/dist/capabilities/bashCapability.d.ts +13 -0
- package/dist/capabilities/bashCapability.d.ts.map +1 -0
- package/dist/capabilities/bashCapability.js +1 -0
- package/dist/capabilities/bashCapability.js.map +1 -0
- package/dist/capabilities/codeAnalysisCapability.d.ts +13 -0
- package/dist/capabilities/codeAnalysisCapability.d.ts.map +1 -0
- package/dist/capabilities/codeAnalysisCapability.js +24 -0
- package/dist/capabilities/codeAnalysisCapability.js.map +1 -0
- package/dist/capabilities/codeGenerationCapability.d.ts +13 -0
- package/dist/capabilities/codeGenerationCapability.d.ts.map +1 -0
- package/dist/capabilities/codeGenerationCapability.js +25 -0
- package/dist/capabilities/codeGenerationCapability.js.map +1 -0
- package/dist/capabilities/codeQualityCapability.d.ts +13 -0
- package/dist/capabilities/codeQualityCapability.d.ts.map +1 -0
- package/dist/capabilities/codeQualityCapability.js +25 -0
- package/dist/capabilities/codeQualityCapability.js.map +1 -0
- package/dist/capabilities/dependencySecurityCapability.d.ts +13 -0
- package/dist/capabilities/dependencySecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/dependencySecurityCapability.js +24 -0
- package/dist/capabilities/dependencySecurityCapability.js.map +1 -0
- package/dist/capabilities/devCapability.d.ts +13 -0
- package/dist/capabilities/devCapability.d.ts.map +1 -0
- package/dist/capabilities/devCapability.js +24 -0
- package/dist/capabilities/devCapability.js.map +1 -0
- package/dist/capabilities/filesystemCapability.d.ts +13 -0
- package/dist/capabilities/filesystemCapability.d.ts.map +1 -0
- package/dist/capabilities/filesystemCapability.js +1 -0
- package/dist/capabilities/filesystemCapability.js.map +1 -0
- package/dist/capabilities/index.d.ts +10 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +7 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/refactoringCapability.d.ts +13 -0
- package/dist/capabilities/refactoringCapability.d.ts.map +1 -0
- package/dist/capabilities/refactoringCapability.js +25 -0
- package/dist/capabilities/refactoringCapability.js.map +1 -0
- package/dist/capabilities/repoChecksCapability.d.ts +10 -0
- package/dist/capabilities/repoChecksCapability.d.ts.map +1 -0
- package/dist/capabilities/repoChecksCapability.js +24 -0
- package/dist/capabilities/repoChecksCapability.js.map +1 -0
- package/dist/capabilities/searchCapability.d.ts +13 -0
- package/dist/capabilities/searchCapability.d.ts.map +1 -0
- package/dist/capabilities/searchCapability.js +1 -0
- package/dist/capabilities/searchCapability.js.map +1 -0
- package/dist/capabilities/testingCapability.d.ts +13 -0
- package/dist/capabilities/testingCapability.d.ts.map +1 -0
- package/dist/capabilities/testingCapability.js +25 -0
- package/dist/capabilities/testingCapability.js.map +1 -0
- package/dist/capabilities/toolManifest.d.ts +3 -0
- package/dist/capabilities/toolManifest.d.ts.map +1 -0
- package/dist/capabilities/toolManifest.js +160 -0
- package/dist/capabilities/toolManifest.js.map +1 -0
- package/dist/capabilities/toolRegistry.d.ts +22 -0
- package/dist/capabilities/toolRegistry.d.ts.map +1 -0
- package/dist/capabilities/toolRegistry.js +49 -32
- package/dist/capabilities/toolRegistry.js.map +1 -0
- package/dist/config.d.ts +25 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +103 -23
- package/dist/config.js.map +1 -0
- package/dist/contracts/agent-profiles.schema.json +43 -0
- package/dist/contracts/agent-schemas.json +293 -0
- package/dist/contracts/schemas/agent-profile.schema.json +157 -0
- package/dist/contracts/schemas/agent-rules.schema.json +238 -0
- package/dist/contracts/schemas/agent-schemas.schema.json +528 -0
- package/dist/contracts/schemas/agent.schema.json +89 -0
- package/dist/contracts/schemas/tool-selection.schema.json +174 -0
- package/dist/contracts/tools.schema.json +100 -0
- package/dist/contracts/v1/agent.d.ts +147 -0
- package/dist/contracts/v1/agent.d.ts.map +1 -0
- package/dist/contracts/v1/agent.js +1 -0
- package/dist/contracts/v1/agent.js.map +1 -0
- package/dist/contracts/v1/agentProfileManifest.d.ts +60 -0
- package/dist/contracts/v1/agentProfileManifest.d.ts.map +1 -0
- package/dist/contracts/v1/agentProfileManifest.js +9 -0
- package/dist/contracts/v1/agentProfileManifest.js.map +1 -0
- package/dist/contracts/v1/agentRules.d.ts +60 -0
- package/dist/contracts/v1/agentRules.d.ts.map +1 -0
- package/dist/contracts/v1/agentRules.js +10 -0
- package/dist/contracts/v1/agentRules.js.map +1 -0
- package/dist/contracts/v1/provider.d.ts +149 -0
- package/dist/contracts/v1/provider.d.ts.map +1 -0
- package/dist/contracts/v1/provider.js +1 -0
- package/dist/contracts/v1/provider.js.map +1 -0
- package/dist/contracts/v1/tool.d.ts +136 -0
- package/dist/contracts/v1/tool.d.ts.map +1 -0
- package/dist/contracts/v1/tool.js +1 -0
- package/dist/contracts/v1/tool.js.map +1 -0
- package/dist/contracts/v1/toolAccess.d.ts +43 -0
- package/dist/contracts/v1/toolAccess.d.ts.map +1 -0
- package/dist/contracts/v1/toolAccess.js +9 -0
- package/dist/contracts/v1/toolAccess.js.map +1 -0
- package/dist/core/agent.d.ts +35 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +17 -9
- package/dist/core/agent.js.map +1 -0
- package/dist/core/agentProfileManifest.d.ts +3 -0
- package/dist/core/agentProfileManifest.d.ts.map +1 -0
- package/dist/core/agentProfileManifest.js +188 -0
- package/dist/core/agentProfileManifest.js.map +1 -0
- package/dist/core/agentProfiles.d.ts +22 -0
- package/dist/core/agentProfiles.d.ts.map +1 -0
- package/dist/core/agentProfiles.js +1 -0
- package/dist/core/agentProfiles.js.map +1 -0
- package/dist/core/agentRulebook.d.ts +11 -0
- package/dist/core/agentRulebook.d.ts.map +1 -0
- package/dist/core/agentRulebook.js +136 -0
- package/dist/core/agentRulebook.js.map +1 -0
- package/dist/core/agentSchemaLoader.d.ts +131 -0
- package/dist/core/agentSchemaLoader.d.ts.map +1 -0
- package/dist/core/agentSchemaLoader.js +221 -0
- package/dist/core/agentSchemaLoader.js.map +1 -0
- package/dist/core/contextWindow.d.ts +6 -0
- package/dist/core/contextWindow.d.ts.map +1 -0
- package/dist/core/contextWindow.js +1 -0
- package/dist/core/contextWindow.js.map +1 -0
- package/dist/core/errors/apiKeyErrors.d.ts +11 -0
- package/dist/core/errors/apiKeyErrors.d.ts.map +1 -0
- package/dist/core/errors/apiKeyErrors.js +1 -0
- package/dist/core/errors/apiKeyErrors.js.map +1 -0
- package/dist/core/errors.d.ts +4 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +33 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/preferences.d.ts +21 -0
- package/dist/core/preferences.d.ts.map +1 -0
- package/dist/core/preferences.js +13 -7
- package/dist/core/preferences.js.map +1 -0
- package/dist/core/schemaValidator.d.ts +6 -0
- package/dist/core/schemaValidator.d.ts.map +1 -0
- package/dist/core/schemaValidator.js +93 -0
- package/dist/core/schemaValidator.js.map +1 -0
- package/dist/core/secretStore.d.ts +20 -0
- package/dist/core/secretStore.d.ts.map +1 -0
- package/dist/core/secretStore.js +3 -8
- package/dist/core/secretStore.js.map +1 -0
- package/dist/core/toolRuntime.d.ts +42 -0
- package/dist/core/toolRuntime.d.ts.map +1 -0
- package/dist/core/toolRuntime.js +25 -10
- package/dist/core/toolRuntime.js.map +1 -0
- package/dist/core/types.d.ts +86 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +1 -0
- package/dist/core/types.js.map +1 -0
- package/dist/plugins/providers/anthropic/index.d.ts +2 -0
- package/dist/plugins/providers/anthropic/index.d.ts.map +1 -0
- package/dist/plugins/providers/anthropic/index.js +6 -4
- package/dist/plugins/providers/anthropic/index.js.map +1 -0
- package/dist/plugins/providers/deepseek/index.d.ts +2 -0
- package/dist/plugins/providers/deepseek/index.d.ts.map +1 -0
- package/dist/plugins/providers/deepseek/index.js +1 -0
- package/dist/plugins/providers/deepseek/index.js.map +1 -0
- package/dist/plugins/providers/google/index.d.ts +2 -0
- package/dist/plugins/providers/google/index.d.ts.map +1 -0
- package/dist/plugins/providers/google/index.js +6 -4
- package/dist/plugins/providers/google/index.js.map +1 -0
- package/dist/plugins/providers/index.d.ts +2 -0
- package/dist/plugins/providers/index.d.ts.map +1 -0
- package/dist/plugins/providers/index.js +1 -0
- package/dist/plugins/providers/index.js.map +1 -0
- package/dist/plugins/providers/openai/index.d.ts +3 -0
- package/dist/plugins/providers/openai/index.d.ts.map +1 -0
- package/dist/plugins/providers/openai/index.js +6 -4
- package/dist/plugins/providers/openai/index.js.map +1 -0
- package/dist/plugins/providers/xai/index.d.ts +2 -0
- package/dist/plugins/providers/xai/index.d.ts.map +1 -0
- package/dist/plugins/providers/xai/index.js +1 -0
- package/dist/plugins/providers/xai/index.js.map +1 -0
- package/dist/plugins/tools/bash/localBashPlugin.d.ts +3 -0
- package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/bash/localBashPlugin.js +1 -0
- package/dist/plugins/tools/bash/localBashPlugin.js.map +1 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +3 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js +14 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +1 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +3 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +14 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +1 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +3 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +14 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +1 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +3 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.js +12 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.js.map +1 -0
- package/dist/plugins/tools/development/devPlugin.d.ts +3 -0
- package/dist/plugins/tools/development/devPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/development/devPlugin.js +14 -0
- package/dist/plugins/tools/development/devPlugin.js.map +1 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +3 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +1 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +1 -0
- package/dist/plugins/tools/index.d.ts +3 -0
- package/dist/plugins/tools/index.d.ts.map +1 -0
- package/dist/plugins/tools/index.js +1 -0
- package/dist/plugins/tools/index.js.map +1 -0
- package/dist/plugins/tools/nodeDefaults.d.ts +2 -0
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -0
- package/dist/plugins/tools/nodeDefaults.js +15 -2
- package/dist/plugins/tools/nodeDefaults.js.map +1 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +3 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.js +12 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +1 -0
- package/dist/plugins/tools/registry.d.ts +22 -0
- package/dist/plugins/tools/registry.d.ts.map +1 -0
- package/dist/plugins/tools/registry.js +1 -0
- package/dist/plugins/tools/registry.js.map +1 -0
- package/dist/plugins/tools/search/localSearchPlugin.d.ts +3 -0
- package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/search/localSearchPlugin.js +1 -0
- package/dist/plugins/tools/search/localSearchPlugin.js.map +1 -0
- package/dist/plugins/tools/testing/testingPlugin.d.ts +3 -0
- package/dist/plugins/tools/testing/testingPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/testing/testingPlugin.js +12 -0
- package/dist/plugins/tools/testing/testingPlugin.js.map +1 -0
- package/dist/providers/anthropicProvider.d.ts +23 -0
- package/dist/providers/anthropicProvider.d.ts.map +1 -0
- package/dist/providers/anthropicProvider.js +3 -2
- package/dist/providers/anthropicProvider.js.map +1 -0
- package/dist/providers/googleProvider.d.ts +19 -0
- package/dist/providers/googleProvider.d.ts.map +1 -0
- package/dist/providers/googleProvider.js +1 -1
- package/dist/providers/googleProvider.js.map +1 -0
- package/dist/providers/openaiChatCompletionsProvider.d.ts +16 -0
- package/dist/providers/openaiChatCompletionsProvider.d.ts.map +1 -0
- package/dist/providers/openaiChatCompletionsProvider.js +1 -0
- package/dist/providers/openaiChatCompletionsProvider.js.map +1 -0
- package/dist/providers/openaiResponsesProvider.d.ts +20 -0
- package/dist/providers/openaiResponsesProvider.d.ts.map +1 -0
- package/dist/providers/openaiResponsesProvider.js +1 -0
- package/dist/providers/openaiResponsesProvider.js.map +1 -0
- package/dist/providers/providerFactory.d.ts +18 -0
- package/dist/providers/providerFactory.d.ts.map +1 -0
- package/dist/providers/providerFactory.js +5 -1
- package/dist/providers/providerFactory.js.map +1 -0
- package/dist/runtime/agentHost.d.ts +61 -0
- package/dist/runtime/agentHost.d.ts.map +1 -0
- package/dist/runtime/agentHost.js +5 -1
- package/dist/runtime/agentHost.js.map +1 -0
- package/dist/runtime/agentSession.d.ts +32 -0
- package/dist/runtime/agentSession.d.ts.map +1 -0
- package/dist/runtime/agentSession.js +17 -1
- package/dist/runtime/agentSession.js.map +1 -0
- package/dist/runtime/browser.d.ts +7 -0
- package/dist/runtime/browser.d.ts.map +1 -0
- package/dist/runtime/browser.js +1 -0
- package/dist/runtime/browser.js.map +1 -0
- package/dist/runtime/cloud.d.ts +7 -0
- package/dist/runtime/cloud.d.ts.map +1 -0
- package/dist/runtime/cloud.js +1 -0
- package/dist/runtime/cloud.js.map +1 -0
- package/dist/runtime/node.d.ts +8 -0
- package/dist/runtime/node.d.ts.map +1 -0
- package/dist/runtime/node.js +1 -0
- package/dist/runtime/node.js.map +1 -0
- package/dist/runtime/universal.d.ts +21 -0
- package/dist/runtime/universal.d.ts.map +1 -0
- package/dist/runtime/universal.js +1 -0
- package/dist/runtime/universal.js.map +1 -0
- package/dist/shell/bracketedPasteManager.d.ts +23 -0
- package/dist/shell/bracketedPasteManager.d.ts.map +1 -0
- package/dist/shell/bracketedPasteManager.js +1 -0
- package/dist/shell/bracketedPasteManager.js.map +1 -0
- package/dist/shell/interactiveShell.d.ts +131 -0
- package/dist/shell/interactiveShell.d.ts.map +1 -0
- package/dist/shell/interactiveShell.js +325 -262
- package/dist/shell/interactiveShell.js.map +1 -0
- package/dist/shell/liveStatus.d.ts +29 -0
- package/dist/shell/liveStatus.d.ts.map +1 -0
- package/dist/shell/liveStatus.js +77 -0
- package/dist/shell/liveStatus.js.map +1 -0
- package/dist/shell/promptSkin.d.ts +43 -0
- package/dist/shell/promptSkin.d.ts.map +1 -0
- package/dist/shell/promptSkin.js +330 -0
- package/dist/shell/promptSkin.js.map +1 -0
- package/dist/shell/shellApp.d.ts +10 -0
- package/dist/shell/shellApp.d.ts.map +1 -0
- package/dist/shell/shellApp.js +149 -78
- package/dist/shell/shellApp.js.map +1 -0
- package/dist/shell/systemPrompt.d.ts +3 -0
- package/dist/shell/systemPrompt.d.ts.map +1 -0
- package/dist/shell/systemPrompt.js +64 -0
- package/dist/shell/systemPrompt.js.map +1 -0
- package/dist/shell/updateManager.d.ts +2 -0
- package/dist/shell/updateManager.d.ts.map +1 -0
- package/dist/shell/updateManager.js +109 -0
- package/dist/shell/updateManager.js.map +1 -0
- package/dist/tools/bashTools.d.ts +8 -0
- package/dist/tools/bashTools.d.ts.map +1 -0
- package/dist/tools/bashTools.js +18 -15
- package/dist/tools/bashTools.js.map +1 -0
- package/dist/tools/codeAnalysisTools.d.ts +74 -0
- package/dist/tools/codeAnalysisTools.d.ts.map +1 -0
- package/dist/tools/codeAnalysisTools.js +642 -0
- package/dist/tools/codeAnalysisTools.js.map +1 -0
- package/dist/tools/codeGenerationTools.d.ts +3 -0
- package/dist/tools/codeGenerationTools.d.ts.map +1 -0
- package/dist/tools/codeGenerationTools.js +369 -0
- package/dist/tools/codeGenerationTools.js.map +1 -0
- package/dist/tools/codeQualityTools.d.ts +3 -0
- package/dist/tools/codeQualityTools.d.ts.map +1 -0
- package/dist/tools/codeQualityTools.js +295 -0
- package/dist/tools/codeQualityTools.js.map +1 -0
- package/dist/tools/dependencyTools.d.ts +3 -0
- package/dist/tools/dependencyTools.d.ts.map +1 -0
- package/dist/tools/dependencyTools.js +283 -0
- package/dist/tools/dependencyTools.js.map +1 -0
- package/dist/tools/devTools.d.ts +10 -0
- package/dist/tools/devTools.d.ts.map +1 -0
- package/dist/tools/devTools.js +239 -0
- package/dist/tools/devTools.js.map +1 -0
- package/dist/tools/diffUtils.d.ts +8 -0
- package/dist/tools/diffUtils.d.ts.map +1 -0
- package/dist/tools/diffUtils.js +2 -1
- package/dist/tools/diffUtils.js.map +1 -0
- package/dist/tools/fileTools.d.ts +3 -0
- package/dist/tools/fileTools.d.ts.map +1 -0
- package/dist/tools/fileTools.js +72 -21
- package/dist/tools/fileTools.js.map +1 -0
- package/dist/tools/refactoringTools.d.ts +3 -0
- package/dist/tools/refactoringTools.d.ts.map +1 -0
- package/dist/tools/refactoringTools.js +294 -0
- package/dist/tools/refactoringTools.js.map +1 -0
- package/dist/tools/repoChecksTools.d.ts +3 -0
- package/dist/tools/repoChecksTools.d.ts.map +1 -0
- package/dist/tools/repoChecksTools.js +161 -0
- package/dist/tools/repoChecksTools.js.map +1 -0
- package/dist/tools/searchTools.d.ts +3 -0
- package/dist/tools/searchTools.d.ts.map +1 -0
- package/dist/tools/searchTools.js +50 -22
- package/dist/tools/searchTools.js.map +1 -0
- package/dist/tools/testingTools.d.ts +3 -0
- package/dist/tools/testingTools.d.ts.map +1 -0
- package/dist/tools/testingTools.js +233 -0
- package/dist/tools/testingTools.js.map +1 -0
- package/dist/ui/ShellUIAdapter.d.ts +96 -0
- package/dist/ui/ShellUIAdapter.d.ts.map +1 -0
- package/dist/ui/ShellUIAdapter.js +442 -0
- package/dist/ui/ShellUIAdapter.js.map +1 -0
- package/dist/ui/UnifiedUIController.d.ts +196 -0
- package/dist/ui/UnifiedUIController.d.ts.map +1 -0
- package/dist/ui/UnifiedUIController.js +640 -0
- package/dist/ui/UnifiedUIController.js.map +1 -0
- package/dist/ui/animation/AnimationScheduler.d.ts +192 -0
- package/dist/ui/animation/AnimationScheduler.d.ts.map +1 -0
- package/dist/ui/animation/AnimationScheduler.js +432 -0
- package/dist/ui/animation/AnimationScheduler.js.map +1 -0
- package/dist/ui/codeHighlighter.d.ts +6 -0
- package/dist/ui/codeHighlighter.d.ts.map +1 -0
- package/dist/ui/codeHighlighter.js +41 -29
- package/dist/ui/codeHighlighter.js.map +1 -0
- package/dist/ui/designSystem.d.ts +26 -0
- package/dist/ui/designSystem.d.ts.map +1 -0
- package/dist/ui/designSystem.js +17 -1
- package/dist/ui/designSystem.js.map +1 -0
- package/dist/ui/display.d.ts +160 -0
- package/dist/ui/display.d.ts.map +1 -0
- package/dist/ui/display.js +492 -231
- package/dist/ui/display.js.map +1 -0
- package/dist/ui/interrupts/InterruptManager.d.ts +142 -0
- package/dist/ui/interrupts/InterruptManager.d.ts.map +1 -0
- package/dist/ui/interrupts/InterruptManager.js +439 -0
- package/dist/ui/interrupts/InterruptManager.js.map +1 -0
- package/dist/ui/layout.d.ts +17 -0
- package/dist/ui/layout.d.ts.map +1 -0
- package/dist/ui/layout.js +12 -7
- package/dist/ui/layout.js.map +1 -0
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +156 -0
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +1 -0
- package/dist/ui/orchestration/StatusOrchestrator.js +405 -0
- package/dist/ui/orchestration/StatusOrchestrator.js.map +1 -0
- package/dist/ui/overlay/OverlayManager.d.ts +105 -0
- package/dist/ui/overlay/OverlayManager.d.ts.map +1 -0
- package/dist/ui/overlay/OverlayManager.js +291 -0
- package/dist/ui/overlay/OverlayManager.js.map +1 -0
- package/dist/ui/richText.d.ts +6 -0
- package/dist/ui/richText.d.ts.map +1 -0
- package/dist/ui/richText.js +13 -4
- package/dist/ui/richText.js.map +1 -0
- package/dist/ui/telemetry/UITelemetry.d.ts +181 -0
- package/dist/ui/telemetry/UITelemetry.d.ts.map +1 -0
- package/dist/ui/telemetry/UITelemetry.js +446 -0
- package/dist/ui/telemetry/UITelemetry.js.map +1 -0
- package/dist/ui/theme.d.ts +77 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +19 -6
- package/dist/ui/theme.js.map +1 -0
- package/dist/utils/errorUtils.d.ts +16 -0
- package/dist/utils/errorUtils.d.ts.map +1 -0
- package/dist/utils/errorUtils.js +66 -0
- package/dist/utils/errorUtils.js.map +1 -0
- package/dist/utils/nodeVersion.d.ts +3 -0
- package/dist/utils/nodeVersion.d.ts.map +1 -0
- package/dist/utils/nodeVersion.js +51 -0
- package/dist/utils/nodeVersion.js.map +1 -0
- package/dist/workspace.d.ts +8 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +72 -11
- package/dist/workspace.js.map +1 -0
- package/package.json +35 -16
- package/scripts/health-check.mjs +176 -0
- package/ARCHITECTURE.json +0 -157
- package/Agents.md +0 -207
- package/SOURCE_OF_TRUTH.json +0 -103
- package/dist/capabilities/tavilyCapability.js +0 -26
- package/dist/plugins/tools/tavily/tavilyPlugin.js +0 -16
- package/dist/shell/__tests__/bracketedPasteManager.test.js +0 -35
- package/dist/tools/tavilyTools.js +0 -176
- package/dist/ui/__tests__/richText.test.js +0 -36
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Tool Selection Contract v1.0",
|
|
4
|
+
"description": "Schema describing toggleable tool suites and presets exposed to an agent runtime.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["contractVersion", "profile", "version", "options"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"contractVersion": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Version of the tool selection contract implemented by the payload."
|
|
11
|
+
},
|
|
12
|
+
"profile": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Agent profile identifier that the tool selection applies to."
|
|
15
|
+
},
|
|
16
|
+
"version": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Semantic or date-based version for the manifest."
|
|
19
|
+
},
|
|
20
|
+
"label": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Optional human readable label for the manifest."
|
|
23
|
+
},
|
|
24
|
+
"description": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Optional longer description."
|
|
27
|
+
},
|
|
28
|
+
"options": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"minItems": 1,
|
|
31
|
+
"items": {
|
|
32
|
+
"$ref": "#/definitions/ToolOption"
|
|
33
|
+
},
|
|
34
|
+
"description": "Toggleable tool suites."
|
|
35
|
+
},
|
|
36
|
+
"presets": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"description": "Optional named sets of enabled/disabled tools.",
|
|
39
|
+
"items": {
|
|
40
|
+
"$ref": "#/definitions/ToolPreset"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"metadata": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"description": "Implementation specific metadata."
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"definitions": {
|
|
49
|
+
"ToolOption": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": ["id", "label", "description", "defaultEnabled", "pluginIds"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"id": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Unique identifier for the tool option."
|
|
56
|
+
},
|
|
57
|
+
"label": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Human readable name."
|
|
60
|
+
},
|
|
61
|
+
"description": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Operator facing description."
|
|
64
|
+
},
|
|
65
|
+
"category": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Optional grouping/category label."
|
|
68
|
+
},
|
|
69
|
+
"defaultEnabled": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "Whether the tool is enabled by default."
|
|
72
|
+
},
|
|
73
|
+
"pluginIds": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"minItems": 1,
|
|
76
|
+
"description": "IDs of the tool plugins activated by this option.",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"uniqueItems": true
|
|
81
|
+
},
|
|
82
|
+
"requiresSecret": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "Identifier of a secret that must be configured before the tool can load."
|
|
85
|
+
},
|
|
86
|
+
"scopes": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"description": "Capabilities unlocked when this option is enabled.",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"enum": [
|
|
92
|
+
"filesystem:read",
|
|
93
|
+
"filesystem:write",
|
|
94
|
+
"process:exec",
|
|
95
|
+
"network:web",
|
|
96
|
+
"network:api",
|
|
97
|
+
"analysis:code",
|
|
98
|
+
"analysis:quality",
|
|
99
|
+
"analysis:dependency",
|
|
100
|
+
"analysis:testing",
|
|
101
|
+
"analysis:security",
|
|
102
|
+
"planning:refactor",
|
|
103
|
+
"external:web-search"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"uniqueItems": true
|
|
107
|
+
},
|
|
108
|
+
"metadata": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"description": "Implementation specific metadata."
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"ToolPreset": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"required": ["id", "label"],
|
|
117
|
+
"properties": {
|
|
118
|
+
"id": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"description": "Unique identifier for the preset."
|
|
121
|
+
},
|
|
122
|
+
"label": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"description": "Human readable name for the preset."
|
|
125
|
+
},
|
|
126
|
+
"description": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "Longer description or guidance."
|
|
129
|
+
},
|
|
130
|
+
"enabled": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"description": "Tool option IDs forced on by the preset.",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"uniqueItems": true
|
|
137
|
+
},
|
|
138
|
+
"disabled": {
|
|
139
|
+
"type": "array",
|
|
140
|
+
"description": "Tool option IDs forced off by the preset.",
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"uniqueItems": true
|
|
145
|
+
},
|
|
146
|
+
"locked": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"description": "Tool option IDs that cannot be toggled while the preset is active.",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"uniqueItems": true
|
|
153
|
+
},
|
|
154
|
+
"appliesTo": {
|
|
155
|
+
"type": "array",
|
|
156
|
+
"description": "Frontends where this preset should be available.",
|
|
157
|
+
"items": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"enum": ["cli", "browser", "http", "worker", "service"]
|
|
160
|
+
},
|
|
161
|
+
"uniqueItems": true
|
|
162
|
+
},
|
|
163
|
+
"notes": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Optional operator note rendered with the preset."
|
|
166
|
+
},
|
|
167
|
+
"metadata": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"description": "Implementation specific metadata."
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/tool-selection.schema.json",
|
|
3
|
+
"contractVersion": "1.0.0",
|
|
4
|
+
"profile": "erosolar-cli",
|
|
5
|
+
"version": "2024.07.17",
|
|
6
|
+
"label": "Erosolar CLI tool manifest",
|
|
7
|
+
"description": "Canonical list of capability suites, plugin bindings, and scope declarations for the default runtime.",
|
|
8
|
+
"options": [
|
|
9
|
+
{
|
|
10
|
+
"id": "filesystem",
|
|
11
|
+
"label": "File operations",
|
|
12
|
+
"description": "Read, write, list, and search files inside the workspace.",
|
|
13
|
+
"defaultEnabled": true,
|
|
14
|
+
"category": "core",
|
|
15
|
+
"scopes": ["filesystem:read", "filesystem:write"],
|
|
16
|
+
"pluginIds": ["tool.filesystem.local"]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "search",
|
|
20
|
+
"label": "Repository search",
|
|
21
|
+
"description": "Structural and glob-aware search helpers (grep, find definition).",
|
|
22
|
+
"defaultEnabled": true,
|
|
23
|
+
"category": "core",
|
|
24
|
+
"scopes": ["analysis:code"],
|
|
25
|
+
"pluginIds": ["tool.search.local"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "bash",
|
|
29
|
+
"label": "Shell access",
|
|
30
|
+
"description": "Run commands inside a sandboxed Bash shell.",
|
|
31
|
+
"defaultEnabled": true,
|
|
32
|
+
"category": "core",
|
|
33
|
+
"scopes": ["process:exec"],
|
|
34
|
+
"pluginIds": ["tool.bash.local"]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "repo-checks",
|
|
38
|
+
"label": "Repo checks",
|
|
39
|
+
"description": "Run npm-based repo validation commands (test/build/lint).",
|
|
40
|
+
"defaultEnabled": true,
|
|
41
|
+
"category": "analysis",
|
|
42
|
+
"scopes": ["analysis:testing", "analysis:quality"],
|
|
43
|
+
"pluginIds": ["tool.repo-checks.local"]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "code-analysis",
|
|
47
|
+
"label": "Code analysis",
|
|
48
|
+
"description": "Advanced code structure analysis, dependency tracking, and complexity metrics.",
|
|
49
|
+
"defaultEnabled": true,
|
|
50
|
+
"category": "analysis",
|
|
51
|
+
"scopes": ["analysis:code"],
|
|
52
|
+
"pluginIds": ["tool.code-analysis.structural"]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "code-quality",
|
|
56
|
+
"label": "Code quality",
|
|
57
|
+
"description": "Lint orchestration, maintainability insights, and rule inspection.",
|
|
58
|
+
"defaultEnabled": true,
|
|
59
|
+
"category": "analysis",
|
|
60
|
+
"scopes": ["analysis:quality"],
|
|
61
|
+
"pluginIds": ["tool.code-quality.linting"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "refactoring",
|
|
65
|
+
"label": "Refactoring assistants",
|
|
66
|
+
"description": "Hotspot detection, refactor planning, and impact analysis tools.",
|
|
67
|
+
"defaultEnabled": true,
|
|
68
|
+
"category": "analysis",
|
|
69
|
+
"scopes": ["planning:refactor"],
|
|
70
|
+
"pluginIds": ["tool.refactoring.assistant"]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "dependency-security",
|
|
74
|
+
"label": "Dependency security",
|
|
75
|
+
"description": "Dependency summaries, npm audit execution, and lockfile health checks.",
|
|
76
|
+
"defaultEnabled": true,
|
|
77
|
+
"category": "analysis",
|
|
78
|
+
"scopes": ["analysis:dependency", "analysis:security"],
|
|
79
|
+
"pluginIds": ["tool.dependency.security"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "testing",
|
|
83
|
+
"label": "Testing & coverage",
|
|
84
|
+
"description": "Test template helpers plus coverage orchestration and reporting.",
|
|
85
|
+
"defaultEnabled": true,
|
|
86
|
+
"category": "analysis",
|
|
87
|
+
"scopes": ["analysis:testing"],
|
|
88
|
+
"pluginIds": ["tool.testing.coverage"]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "development",
|
|
92
|
+
"label": "Development workflow",
|
|
93
|
+
"description": "Development workflow tools for testing, building, and dependency management.",
|
|
94
|
+
"defaultEnabled": true,
|
|
95
|
+
"category": "analysis",
|
|
96
|
+
"scopes": ["analysis:testing", "analysis:code"],
|
|
97
|
+
"pluginIds": ["tool.development.workflow"]
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Contract v1.0
|
|
3
|
+
*
|
|
4
|
+
* Stable interface for agent interaction across all frontends.
|
|
5
|
+
* Breaking changes require a new version (v2/).
|
|
6
|
+
*/
|
|
7
|
+
export declare const AGENT_CONTRACT_VERSION = "1.0.0";
|
|
8
|
+
/**
|
|
9
|
+
* Event types emitted during agent execution
|
|
10
|
+
*/
|
|
11
|
+
export type AgentEventType = 'message.start' | 'message.delta' | 'message.complete' | 'tool.start' | 'tool.complete' | 'tool.error' | 'error' | 'usage';
|
|
12
|
+
/**
|
|
13
|
+
* Base event structure
|
|
14
|
+
*/
|
|
15
|
+
export interface AgentEvent {
|
|
16
|
+
type: AgentEventType;
|
|
17
|
+
timestamp: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Message events
|
|
21
|
+
*/
|
|
22
|
+
export interface MessageStartEvent extends AgentEvent {
|
|
23
|
+
type: 'message.start';
|
|
24
|
+
}
|
|
25
|
+
export interface MessageDeltaEvent extends AgentEvent {
|
|
26
|
+
type: 'message.delta';
|
|
27
|
+
content: string;
|
|
28
|
+
isFinal: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface MessageCompleteEvent extends AgentEvent {
|
|
31
|
+
type: 'message.complete';
|
|
32
|
+
content: string;
|
|
33
|
+
elapsedMs: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Tool execution events
|
|
37
|
+
*/
|
|
38
|
+
export interface ToolStartEvent extends AgentEvent {
|
|
39
|
+
type: 'tool.start';
|
|
40
|
+
toolName: string;
|
|
41
|
+
toolCallId: string;
|
|
42
|
+
parameters: Record<string, unknown>;
|
|
43
|
+
}
|
|
44
|
+
export interface ToolCompleteEvent extends AgentEvent {
|
|
45
|
+
type: 'tool.complete';
|
|
46
|
+
toolName: string;
|
|
47
|
+
toolCallId: string;
|
|
48
|
+
result: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ToolErrorEvent extends AgentEvent {
|
|
51
|
+
type: 'tool.error';
|
|
52
|
+
toolName: string;
|
|
53
|
+
toolCallId: string;
|
|
54
|
+
error: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Error and usage events
|
|
58
|
+
*/
|
|
59
|
+
export interface ErrorEvent extends AgentEvent {
|
|
60
|
+
type: 'error';
|
|
61
|
+
error: string;
|
|
62
|
+
code?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface UsageEvent extends AgentEvent {
|
|
65
|
+
type: 'usage';
|
|
66
|
+
inputTokens?: number;
|
|
67
|
+
outputTokens?: number;
|
|
68
|
+
totalTokens?: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Union of all event types
|
|
72
|
+
*/
|
|
73
|
+
export type AgentEventUnion = MessageStartEvent | MessageDeltaEvent | MessageCompleteEvent | ToolStartEvent | ToolCompleteEvent | ToolErrorEvent | ErrorEvent | UsageEvent;
|
|
74
|
+
/**
|
|
75
|
+
* Model selection configuration
|
|
76
|
+
*/
|
|
77
|
+
export interface ModelConfig {
|
|
78
|
+
provider: string;
|
|
79
|
+
model: string;
|
|
80
|
+
temperature?: number;
|
|
81
|
+
maxTokens?: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Capability manifest
|
|
85
|
+
*/
|
|
86
|
+
export interface CapabilityManifest {
|
|
87
|
+
contractVersion: string;
|
|
88
|
+
profile: string;
|
|
89
|
+
model: ModelConfig;
|
|
90
|
+
tools: ToolCapability[];
|
|
91
|
+
features: string[];
|
|
92
|
+
}
|
|
93
|
+
export interface ToolCapability {
|
|
94
|
+
name: string;
|
|
95
|
+
description: string;
|
|
96
|
+
category: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Core agent controller interface
|
|
100
|
+
*
|
|
101
|
+
* This is the stable contract that all frontends depend on.
|
|
102
|
+
*/
|
|
103
|
+
export interface IAgentController {
|
|
104
|
+
/**
|
|
105
|
+
* Send a message and receive streaming events
|
|
106
|
+
*/
|
|
107
|
+
send(message: string): AsyncIterableIterator<AgentEventUnion>;
|
|
108
|
+
/**
|
|
109
|
+
* Switch the active model
|
|
110
|
+
*/
|
|
111
|
+
switchModel(config: ModelConfig): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* Get current capabilities
|
|
114
|
+
*/
|
|
115
|
+
getCapabilities(): CapabilityManifest;
|
|
116
|
+
/**
|
|
117
|
+
* Register a tool suite
|
|
118
|
+
*/
|
|
119
|
+
registerToolSuite(suiteId: string, suite: unknown): void;
|
|
120
|
+
/**
|
|
121
|
+
* Unregister a tool suite
|
|
122
|
+
*/
|
|
123
|
+
unregisterToolSuite(suiteId: string): void;
|
|
124
|
+
/**
|
|
125
|
+
* Get conversation history
|
|
126
|
+
*/
|
|
127
|
+
getHistory(): ConversationMessage[];
|
|
128
|
+
/**
|
|
129
|
+
* Clear conversation history
|
|
130
|
+
*/
|
|
131
|
+
clearHistory(): void;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Conversation message structure
|
|
135
|
+
*/
|
|
136
|
+
export interface ConversationMessage {
|
|
137
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
138
|
+
content: string;
|
|
139
|
+
toolCalls?: Array<{
|
|
140
|
+
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
arguments: Record<string, unknown>;
|
|
143
|
+
}>;
|
|
144
|
+
toolCallId?: string;
|
|
145
|
+
name?: string;
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/contracts/v1/agent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,OAAO,GACP,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,IAAI,EAAE,eAAe,CAAC;IACtB,OA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AAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC,CAAC,CAAC;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../src/contracts/v1/agent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Profile Manifest Contract v1.0
|
|
3
|
+
*
|
|
4
|
+
* Canonical description of agent profiles, their default model/provider
|
|
5
|
+
* configuration, and how system prompts are sourced. The manifest is meant
|
|
6
|
+
* to be JSON schema backed so other runtimes can load the same defaults.
|
|
7
|
+
*/
|
|
8
|
+
import type { ProviderId } from '../../core/types.js';
|
|
9
|
+
export declare const AGENT_PROFILE_MANIFEST_VERSION = "1.0.0";
|
|
10
|
+
export interface AgentProfileManifest {
|
|
11
|
+
contractVersion: string;
|
|
12
|
+
version: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
profiles: AgentProfileEntry[];
|
|
16
|
+
metadata?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
export interface AgentProfileEntry {
|
|
19
|
+
name: string;
|
|
20
|
+
label: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
defaultProvider: ProviderId;
|
|
23
|
+
defaultModel: string;
|
|
24
|
+
temperature?: number;
|
|
25
|
+
maxTokens?: number;
|
|
26
|
+
systemPrompt: AgentPromptConfig;
|
|
27
|
+
rulebook: AgentRulebookReference;
|
|
28
|
+
metadata?: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
export type AgentPromptConfig = RulebookPromptConfig | LiteralPromptConfig;
|
|
31
|
+
export interface RulebookPromptConfig {
|
|
32
|
+
type: 'rulebook';
|
|
33
|
+
/**
|
|
34
|
+
* Optional template supporting {{rulebook}}, {{profile}}, and {{profile_name}}
|
|
35
|
+
* placeholders. Defaults to "{{rulebook}}" when omitted.
|
|
36
|
+
*/
|
|
37
|
+
template?: string;
|
|
38
|
+
metadata?: Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
export interface LiteralPromptConfig {
|
|
41
|
+
type: 'literal';
|
|
42
|
+
content: string;
|
|
43
|
+
metadata?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
export type AgentRulebookReference = AgentRulebookFileReference | AgentRulebookInlineReference;
|
|
46
|
+
export interface AgentRulebookFileReference {
|
|
47
|
+
file: string;
|
|
48
|
+
version?: string;
|
|
49
|
+
contractVersion?: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
metadata?: Record<string, unknown>;
|
|
52
|
+
}
|
|
53
|
+
export interface AgentRulebookInlineReference {
|
|
54
|
+
inline: import('../v1/agentRules.js').AgentRulesetManifest;
|
|
55
|
+
version?: string;
|
|
56
|
+
contractVersion?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
metadata?: Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=agentProfileManifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentProfileManifest.d.ts","sourceRoot":"","sources":["../../../src/contracts/v1/agentProfileManifest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,8BAA8B,UAAU,CAAC;AAEtD,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,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M,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Profile Manifest Contract v1.0
|
|
3
|
+
*
|
|
4
|
+
* Canonical description of agent profiles, their default model/provider
|
|
5
|
+
* configuration, and how system prompts are sourced. The manifest is meant
|
|
6
|
+
* to be JSON schema backed so other runtimes can load the same defaults.
|
|
7
|
+
*/
|
|
8
|
+
export const AGENT_PROFILE_MANIFEST_VERSION = '1.0.0';
|
|
9
|
+
//# sourceMappingURL=agentProfileManifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentProfileManifest.js","sourceRoot":"","sources":["../../../src/contracts/v1/agentProfileManifest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Rules Contract v1.0
|
|
3
|
+
*
|
|
4
|
+
* Describes the structured rule set that governs how the agent moves through
|
|
5
|
+
* phases, steps, and sub-steps during a task. Each step enumerates explicit
|
|
6
|
+
* rules so downstream runtimes can render or validate the workflow without
|
|
7
|
+
* relying on bespoke prompt text.
|
|
8
|
+
*/
|
|
9
|
+
export declare const AGENT_RULES_CONTRACT_VERSION = "1.0.0";
|
|
10
|
+
export type AgentRuleSeverity = 'critical' | 'required' | 'recommended';
|
|
11
|
+
export interface AgentRuleReference {
|
|
12
|
+
label: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
file?: string;
|
|
15
|
+
line?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface AgentRuleDefinition {
|
|
18
|
+
id: string;
|
|
19
|
+
summary: string;
|
|
20
|
+
detail?: string;
|
|
21
|
+
severity: AgentRuleSeverity;
|
|
22
|
+
appliesDuring?: string[];
|
|
23
|
+
evidenceRequired?: string;
|
|
24
|
+
references?: AgentRuleReference[];
|
|
25
|
+
toolHints?: string[];
|
|
26
|
+
metadata?: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
export interface AgentStepRule {
|
|
29
|
+
id: string;
|
|
30
|
+
title: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
intent?: string;
|
|
33
|
+
entryCriteria?: string[];
|
|
34
|
+
exitCriteria?: string[];
|
|
35
|
+
allowedTools?: string[];
|
|
36
|
+
blockedTools?: string[];
|
|
37
|
+
notes?: string[];
|
|
38
|
+
rules: AgentRuleDefinition[];
|
|
39
|
+
subSteps?: AgentStepRule[];
|
|
40
|
+
metadata?: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
export interface AgentRulePhase {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
trigger?: string;
|
|
47
|
+
steps: AgentStepRule[];
|
|
48
|
+
metadata?: Record<string, unknown>;
|
|
49
|
+
}
|
|
50
|
+
export interface AgentRulesetManifest {
|
|
51
|
+
contractVersion: string;
|
|
52
|
+
profile: string;
|
|
53
|
+
version: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
globalPrinciples?: AgentRuleDefinition[];
|
|
57
|
+
phases: AgentRulePhase[];
|
|
58
|
+
metadata?: Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=agentRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentRules.d.ts","sourceRoot":"","sources":["../../../src/contracts/v1/agentRules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,4BAA4B,UAAU,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;AAExE,MAAM,WAAW,k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EAAE,aAAa,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACzC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Rules Contract v1.0
|
|
3
|
+
*
|
|
4
|
+
* Describes the structured rule set that governs how the agent moves through
|
|
5
|
+
* phases, steps, and sub-steps during a task. Each step enumerates explicit
|
|
6
|
+
* rules so downstream runtimes can render or validate the workflow without
|
|
7
|
+
* relying on bespoke prompt text.
|
|
8
|
+
*/
|
|
9
|
+
export const AGENT_RULES_CONTRACT_VERSION = '1.0.0';
|
|
10
|
+
//# sourceMappingURL=agentRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentRules.js","sourceRoot":"","sources":["../../../src/contracts/v1/agentRules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,OAAO,CAAC"}
|