Commit 0195581
fix: address critical issues in managed agents implementation
- Replace raw HTTP calls with proper SDK methods in CLI commands
- Fix ExecutionConfig constructor to remove invalid compute_provider param
- Map sandbox_type to proper code_sandbox_mode parameter
- Fix trace emission to use actual ContextTraceEmitter API methods
- Remove unnecessary getattr usage in tests per Ruff B009
- Add proper error exit codes for CLI command failures
- Agents use archive() instead of delete() per Anthropic SDK
Fixes all critical issues identified by CodeRabbit review.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>1 parent 7e5eb36 commit 0195581
File tree
3 files changed
+48
-26
lines changed- src/praisonai
- praisonai
- cli/commands
- integrations
- tests/unit/integrations
3 files changed
+48
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
554 | | - | |
| 553 | + | |
| 554 | + | |
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| |||
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | | - | |
575 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
576 | 578 | | |
577 | | - | |
| 579 | + | |
| 580 | + | |
578 | 581 | | |
579 | 582 | | |
580 | 583 | | |
| |||
586 | 589 | | |
587 | 590 | | |
588 | 591 | | |
589 | | - | |
| 592 | + | |
590 | 593 | | |
591 | 594 | | |
592 | 595 | | |
593 | | - | |
| 596 | + | |
| 597 | + | |
594 | 598 | | |
595 | | - | |
| 599 | + | |
596 | 600 | | |
597 | | - | |
| 601 | + | |
598 | 602 | | |
599 | | - | |
| 603 | + | |
600 | 604 | | |
601 | | - | |
| 605 | + | |
602 | 606 | | |
603 | 607 | | |
| 608 | + | |
604 | 609 | | |
605 | 610 | | |
606 | 611 | | |
| |||
617 | 622 | | |
618 | 623 | | |
619 | 624 | | |
620 | | - | |
| 625 | + | |
| 626 | + | |
621 | 627 | | |
622 | 628 | | |
623 | 629 | | |
| 630 | + | |
624 | 631 | | |
625 | 632 | | |
626 | 633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
548 | 551 | | |
549 | 552 | | |
550 | | - | |
551 | | - | |
| 553 | + | |
| 554 | + | |
552 | 555 | | |
| 556 | + | |
553 | 557 | | |
554 | 558 | | |
555 | 559 | | |
| |||
923 | 927 | | |
924 | 928 | | |
925 | 929 | | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
936 | 951 | | |
937 | 952 | | |
938 | 953 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments