Revert "Sawra/runagent cloud support"#70
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis PR rolls back versions to 0.1.20 across modules, replaces the Framework enum with string-based handling, expands CLI commands (version, deploy, deploy_local, upload, logs), refactors SDK client/deployment flows (framework metadata, detection), adjusts server/local sync behavior, simplifies DB schema, updates template connectivity, and streamlines release scripting. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant CLI as runagent CLI
participant SDK as RunAgentSDK
participant RD as RemoteDeployment
participant RC as RestClient
participant MW as Middleware
U->>CLI: runagent deploy --folder ./agent --framework ag2
CLI->>SDK: upload_agent(folder, framework="ag2")
SDK->>RD: upload_agent(folder_path, framework="ag2")
alt framework provided
RD->>RC: deploy_agent(folder_path, metadata={framework:"ag2"})
else no framework
RD->>RD: detect framework from folder
RD->>RC: deploy_agent(folder_path, metadata={framework:detected})
end
RC->>RC: create zip, upload metadata + zip
RC->>MW: POST /agents (metadata + artifact)
MW-->>RC: {agent_id, status}
RC-->>RD: deployment result
RD-->>SDK: result
SDK-->>CLI: result
CLI-->>U: Print agent_id/status
sequenceDiagram
autonumber
participant LS as LocalServer
participant MS as MiddlewareSyncService
participant RC as RestClient
LS->>MS: initialize()
alt API key missing or error
MS->>MS: set sync_enabled=false, enabled=false
else valid key
MS->>RC: validate_api_connection()
RC-->>MS: health/auth status
alt validation fails
MS->>MS: set sync_enabled=false, enabled=false
else success
MS->>MS: set sync_enabled=true, enabled=true
end
end
note over MS: All error paths explicitly disable syncing
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (25)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reverts #69
Summary by CodeRabbit
New Features
Enhancements
Bug Fixes
Chores