feat(deployment): add agent-based dev environment analysis and deployment#384
Open
feat(deployment): add agent-based dev environment analysis and deployment#384
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ment Replace simple package.json script detection with ai-driven repo analysis that supports any language and framework. introduces idevenvronmentagent for structured analysis with per-repo caching and iagentdeploymentservice as the orchestration layer. repos with no server to start are gracefully reported as not-deployable instead of throwing errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IDevEnvironmentAgentthat uses a structured agent caller to analyze any repository (language-agnostic) and determine how to start a local dev serverIAgentDeploymentServiceas a higher-level orchestration layer that analyzes repos before starting deployments, runs setup commands, and gracefully handles repos with nothing to deploydeployFeature,deployRepository) to use the new agent-based deployment service instead of the simple package.json script detectionKey Changes
New interfaces (ports):
IDevEnvironmentAgent— AI agent that analyzes repo structure, detects language/framework, and returns a structuredDevEnvironmentAnalysiswith command, port, setup steps, and deployability assessmentIAgentDeploymentService— Orchestration service that chains analysis → setup commands → dev server startNew services (infrastructure):
DevEnvironmentAgentService— Reads config files (package.json, Cargo.toml, go.mod, requirements.txt, etc.), builds a prompt, and calls the structured agent. Includes per-repo in-memory caching for fast repeated callsAgentDeploymentService— Orchestrates the full deploy flow: analyze → run setup commands → start viaDeploymentServiceModified services:
DeploymentService.start()now accepts optionalDeploymentStartOptionswithcommandandcwdoverrides, enabling agent-provided commands alongside the legacy auto-detection pathdeploy-feature.ts/deploy-repository.tsweb actions now resolveIAgentDeploymentServiceand returnreasonfield for not-deployable reposDI Container:
IDevEnvironmentAgentandIAgentDeploymentServicewith proper dependency wiringEvidence
Test plan
🤖 Generated with Claude Code