orbi-cli 0.7.60__tar.gz → 0.7.62__tar.gz
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.
- {orbi_cli-0.7.60/src/orbi_cli.egg-info → orbi_cli-0.7.62}/PKG-INFO +1 -1
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/pyproject.toml +1 -1
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/issue_images.py +8 -1
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/suggest.py +44 -43
- {orbi_cli-0.7.60 → orbi_cli-0.7.62/src/orbi_cli.egg-info}/PKG-INFO +1 -1
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_images.py +41 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_suggest.py +141 -17
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/LICENSE +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/README.md +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/setup.cfg +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/acceptance_section.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/amend_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/answer.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/attachments.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/base_ci_fix.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/blocked_comment.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/blocked_record.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/blocked_scan.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/body_steering.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/claim.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/claim_race.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/clarify.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/clarify_proposal.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/clarify_stop.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/command_line.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/config_hint.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_labels.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_push.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/delivery_scene.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_author.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_document.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_interactive.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_prompt.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/draft_validate.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/epic_reconciliation.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/example_config.toml +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/extensions/draft_tools.ts +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure_evidence.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure_report.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/failure_stop.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/github.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/github_feedback.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/implementation_delivery.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/journal.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/labels.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/labels.toml +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_failure.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms_criteria.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms_epic.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/language_terms_fix.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/launchd_deploy.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_blocked.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_exec.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/milestone.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/milestone_errors.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/model_catalog.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/notify.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/notify_text.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ops_delivery.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_exec.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pilot_setup.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/plan_milestone.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pr_head_sync.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/provider_balance.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/question.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/recoverable_failure.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_closeout.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/release_run.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/repo_config.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/requeue.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/restart_scan.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/resume_scan.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/resume_verification.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_ci_status.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_merge.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_rounds.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/review_wait.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/run_state.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner_health.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/scene.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/scheduler.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/split_apply.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/steering.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/stop_comment.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/stopped_scans.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/systemd_deploy.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/terminal_labels.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/terminal_stops.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/tick_reads.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/waiting_checks.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi/worktree_retention.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/SOURCES.txt +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_amend_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_answer.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_apply_label_patch.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_body_steering.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_delivery.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_release.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_main.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_milestone.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_outcome.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_bootstrap_runner_tickets.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_claim_race.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_constitution.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_coverage_gate.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_delivery_labels.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_i18n.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_labels.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_safety_matrix.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_docs_site.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft_attachments.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft_repo_view.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_draft_validate.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_epic_reconciliation.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_failure_report.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_fix_needed_loop.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_github.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_github_fakes.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_human_review.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_labels.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_license.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_message_language.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_notify.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_exec.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_progress.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_progress_wiring.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_public_contracts.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_question.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_question_resume.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_release_docs_workflow.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_release_extraction.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_repo_config.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_e2e.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_other_executor.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_resume_pr.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_review_merge.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_review_waiting.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_id_e2e.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_runner_health.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_scene.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_scheduler.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_suggest_repo_view.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_systemd_deploy.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_systemd_timer.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_tick_reads.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_user_summary.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_waiting_checks.py +0 -0
- {orbi_cli-0.7.60 → orbi_cli-0.7.62}/tests/test_worktree_reclaim.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.62
|
|
4
4
|
Summary: Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store).
|
|
5
5
|
Author: xqliu
|
|
6
6
|
License-Expression: AGPL-3.0-only OR LicenseRef-Sustainable-Use-1.0
|
|
@@ -44,7 +44,7 @@ build-backend = "setuptools.build_meta"
|
|
|
44
44
|
|
|
45
45
|
[project]
|
|
46
46
|
name = "orbi-cli"
|
|
47
|
-
version = "0.7.
|
|
47
|
+
version = "0.7.62"
|
|
48
48
|
description = "Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store)."
|
|
49
49
|
readme = "README.md"
|
|
50
50
|
requires-python = ">=3.14"
|
|
@@ -72,6 +72,10 @@ class Unreadable(RuntimeError):
|
|
|
72
72
|
# worktree's excluded run dir.
|
|
73
73
|
IMAGES_DIRNAME = "attachments"
|
|
74
74
|
DOWNLOAD_TIMEOUT_SECONDS = 60
|
|
75
|
+
# orbi.build and beta.orbi.build answer urllib's default `Python-urllib/3.x`
|
|
76
|
+
# User-Agent with HTTP 403 and Orbi's own value with 200 (measured 2026-11-23),
|
|
77
|
+
# so every download names this project instead of urllib (Issue #2377).
|
|
78
|
+
USER_AGENT = "orbi"
|
|
75
79
|
NATIVE_PREFIX = "https://github.com/user-attachments/assets/"
|
|
76
80
|
_MARKER_LINE_RE = re.compile(
|
|
77
81
|
r"<!-- " + re.escape(draft_marker.DRAFT_MARKER) + r":"
|
|
@@ -205,8 +209,11 @@ def _comments(number: object, *, repo: str) -> list[dict]:
|
|
|
205
209
|
def _image_bytes(url: str, *, repo: str) -> bytes:
|
|
206
210
|
"""One image's bytes; a native one through its rendered address."""
|
|
207
211
|
address = _signed(url, repo=repo) if url.startswith(NATIVE_PREFIX) else url
|
|
212
|
+
request = urllib.request.Request(
|
|
213
|
+
address, headers={"User-Agent": USER_AGENT},
|
|
214
|
+
)
|
|
208
215
|
with urllib.request.urlopen(
|
|
209
|
-
|
|
216
|
+
request, timeout=DOWNLOAD_TIMEOUT_SECONDS,
|
|
210
217
|
) as response:
|
|
211
218
|
return response.read()
|
|
212
219
|
|
|
@@ -93,12 +93,13 @@ SUGGESTIONS_MAX = 3
|
|
|
93
93
|
# word so the default (3) prompt stays byte-for-byte what it was before
|
|
94
94
|
# the flag existed.
|
|
95
95
|
COUNT_WORDS = {1: "one", 2: "two", 3: "three"}
|
|
96
|
-
# The Suggestions document keys, in one place. `
|
|
97
|
-
#
|
|
98
|
-
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
|
|
96
|
+
# The Suggestions document keys, in one place. `why` is the plain
|
|
97
|
+
# explanation the repository owner reads without opening the code and
|
|
98
|
+
# `code` is the repository evidence behind it (Issue #2381). `size` —
|
|
99
|
+
# the estimated number of files the change edits — joins them only when
|
|
100
|
+
# the caller passed `--size <n>` (Issue #2139): the preference behind it
|
|
101
|
+
# is the caller's, so a call that did not ask for a size gets neither.
|
|
102
|
+
SUGGESTION_KEYS = {"kind", "issue", "title", "why", "code", "body"}
|
|
102
103
|
SUGGESTION_SIZE_KEYS = SUGGESTION_KEYS | {"size"}
|
|
103
104
|
# The kept batch: `<run_dir>/suggestions.json`, the subset of the
|
|
104
105
|
# Suggestions document the next run for the SAME repository must not
|
|
@@ -129,8 +130,8 @@ _FENCE_RE = re.compile(r"^```(?:json)?\s*\n(.*?)\n```$", re.DOTALL)
|
|
|
129
130
|
_ASK_YES = frozenset({"", "y", "yes"})
|
|
130
131
|
# The per-suggestion prompt is [y/N] and the contract is: nothing is
|
|
131
132
|
# written before a y/Y, any other answer skips that suggestion. An
|
|
132
|
-
# empty answer (Enter, the shown default) therefore skips
|
|
133
|
-
#
|
|
133
|
+
# empty answer (Enter, the shown default) therefore skips, never reaches
|
|
134
|
+
# GitHub.
|
|
134
135
|
_CONFIRM_YES = frozenset({"y", "yes"})
|
|
135
136
|
# The `--locale` language sentence appended to BOTH prompts (Issue
|
|
136
137
|
# #1620): the caller's page language, never a detection. `--locale` is
|
|
@@ -154,10 +155,9 @@ LOCALE_SENTENCES = {
|
|
|
154
155
|
# repair pass, no retry.
|
|
155
156
|
#
|
|
156
157
|
# The headings rule names the fixed Chinese section headings (Issue
|
|
157
|
-
# #1764): the
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
# were.
|
|
158
|
+
# #1764): the skill's output example shows the English ones, and the
|
|
159
|
+
# model copied them into a Chinese body. Nothing parses the headings by
|
|
160
|
+
# name, so only the zh prompt changes.
|
|
161
161
|
SUGGESTION_LOCALE_RULES = {
|
|
162
162
|
"zh": (
|
|
163
163
|
'Inside JSON string values, quote words with 「」 and never with '
|
|
@@ -338,8 +338,7 @@ def _suggestion_locale_suffix(locale: str | None) -> str:
|
|
|
338
338
|
"""`_locale_suffix` plus the suggestions session's answer rules.
|
|
339
339
|
|
|
340
340
|
The rules describe the JSON answer and the Issue body, so only the
|
|
341
|
-
suggestions prompt gets them (Issue #1822)
|
|
342
|
-
the language sentence alone.
|
|
341
|
+
suggestions prompt gets them (Issue #1822).
|
|
343
342
|
"""
|
|
344
343
|
suffix = _locale_suffix(locale)
|
|
345
344
|
rules = SUGGESTION_LOCALE_RULES.get(locale) if locale else None
|
|
@@ -355,12 +354,7 @@ def _size_field(size: int | None) -> str:
|
|
|
355
354
|
|
|
356
355
|
|
|
357
356
|
def _size_paragraphs(size: int | None) -> str:
|
|
358
|
-
"""The `--size` paragraphs
|
|
359
|
-
|
|
360
|
-
Absent without `--size` (Issue #2139): the prompt asks for what the
|
|
361
|
-
call requested and nothing else, so a caller that wants no small task
|
|
362
|
-
first — or no size at all — gets the plain value-ordered answer.
|
|
363
|
-
"""
|
|
357
|
+
"""The `--size` paragraphs, absent without `--size` (Issue #2139)."""
|
|
364
358
|
if size is None:
|
|
365
359
|
return ""
|
|
366
360
|
limit = f"{size} file" if size == 1 else f"{size} files"
|
|
@@ -371,10 +365,10 @@ def _size_paragraphs(size: int | None) -> str:
|
|
|
371
365
|
f"its own files that edits at most {limit} (a TODO or FIXME in "
|
|
372
366
|
"code, a test the CI never runs, or an open Issue touching at most "
|
|
373
367
|
f"{limit}), this answer's first entry is exactly one such task, "
|
|
374
|
-
"with a
|
|
368
|
+
"with a code that names the file and line. When there is none, add "
|
|
375
369
|
"none: never pad an answer to reach three. The small task still "
|
|
376
370
|
"meets the skill's rules 2 and 5: it is more than a README edit, "
|
|
377
|
-
"and its
|
|
371
|
+
"and its code names a concrete path.\n\n"
|
|
378
372
|
)
|
|
379
373
|
|
|
380
374
|
|
|
@@ -386,8 +380,7 @@ def _prompt(context_path: Path, repo_dir: Path, repo: str,
|
|
|
386
380
|
|
|
387
381
|
The context file carries the Issue/PR bodies; the prompt names it so
|
|
388
382
|
the session reads it with its `read` tool (a single argv entry is
|
|
389
|
-
limited to about 128 KiB, and a Pi `@file` argument would inline
|
|
390
|
-
whole file into the first message).
|
|
383
|
+
limited to about 128 KiB, and a Pi `@file` argument would inline it).
|
|
391
384
|
"""
|
|
392
385
|
return (
|
|
393
386
|
f"Propose deliverable GitHub Issues for {repo}.\n\n"
|
|
@@ -402,20 +395,25 @@ def _prompt(context_path: Path, repo_dir: Path, repo: str,
|
|
|
402
395
|
"4. Reply with ONE JSON object and nothing else:\n"
|
|
403
396
|
'{"suggestions": [{"kind": "existing" or "new", '
|
|
404
397
|
'"issue": <number> or null, "title": "...", "why": "...", '
|
|
405
|
-
f'"body": <markdown Issue body> or null
|
|
398
|
+
f'"code": "...", "body": <markdown Issue body> or null'
|
|
399
|
+
f"{_size_field(size)}}}]}}\n"
|
|
406
400
|
f"At most {COUNT_WORDS[count]} "
|
|
407
401
|
f"{'entry' if count == 1 else 'entries'}, ordered by value to "
|
|
408
402
|
"the repository's users.\n\n"
|
|
403
|
+
"why and code are two separate texts. why explains in plain "
|
|
404
|
+
"language, with no file location, why the owner should do this "
|
|
405
|
+
"now and what their users face today. code carries the "
|
|
406
|
+
"evidence: path:line and a short plain-text excerpt, never a "
|
|
407
|
+
"code fence.\n\n"
|
|
409
408
|
# Issue #2139: size and the small-task rule are the CALLER's
|
|
410
409
|
# input (`--size <n>`); without the flag the prompt is the plain
|
|
411
410
|
# value-ordered answer and carries neither.
|
|
412
411
|
+ _size_paragraphs(size)
|
|
413
|
-
# Issue #2119: the
|
|
414
|
-
#
|
|
415
|
-
#
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
"exactly as you write them: they must describe the repository "
|
|
412
|
+
# Issue #2119: the owner reads the answer, so a why quoting the
|
|
413
|
+
# session's own input (one observed answer said "in context.json
|
|
414
|
+
# the open Issues and PRs are both empty") must never reach them.
|
|
415
|
+
+ "The title, why, code and body are shown to the repository "
|
|
416
|
+
"owner exactly as you write them: they must describe the repository "
|
|
419
417
|
"and its Issues and PRs, never Orbi's own input files "
|
|
420
418
|
"(context.json, the run directory), which the owner never "
|
|
421
419
|
"sees.\n\n"
|
|
@@ -492,8 +490,8 @@ def _run_session(config: RunnerConfig, repo: str, run_id: str,
|
|
|
492
490
|
"""Run the ONE read-only suggest Pi session; return (stdout, log argv)."""
|
|
493
491
|
session_dir = run_dir / ".pi-session"
|
|
494
492
|
# The run directory is kept after the command exits (success and
|
|
495
|
-
# failure); materialize the session dir so `session_dir` exists
|
|
496
|
-
#
|
|
493
|
+
# failure); materialize the session dir so `session_dir` exists before
|
|
494
|
+
# Pi writes its first JSONL record.
|
|
497
495
|
session_dir.mkdir(parents=True, exist_ok=True)
|
|
498
496
|
skill = Path(config.deploy_home) / SUGGEST_SKILL_REL
|
|
499
497
|
command, log_command = build_pi_command(
|
|
@@ -544,13 +542,13 @@ def _run_understanding(config: RunnerConfig, repo: str, run_id: str,
|
|
|
544
542
|
|
|
545
543
|
Best-effort bypass (Issue #79): a non-zero exit, a spawn failure,
|
|
546
544
|
the 60-second timeout or a write error logs ONE
|
|
547
|
-
`suggest_understanding_failed` line and writes nothing
|
|
548
|
-
suggestions session and
|
|
545
|
+
`suggest_understanding_failed` line and writes nothing; the
|
|
546
|
+
suggestions session and its document are never affected.
|
|
549
547
|
"""
|
|
550
548
|
try:
|
|
551
549
|
# Its own cwd/session dir under the run directory: `stream_pi`
|
|
552
|
-
# follows `<cwd>/.pi-session`, so the two concurrent sessions
|
|
553
|
-
#
|
|
550
|
+
# follows `<cwd>/.pi-session`, so the two concurrent sessions must
|
|
551
|
+
# not share one (they would bind to each other's JSONL).
|
|
554
552
|
session_cwd = run_dir / UNDERSTANDING_DIR
|
|
555
553
|
session_dir = session_cwd / ".pi-session"
|
|
556
554
|
session_dir.mkdir(parents=True, exist_ok=True)
|
|
@@ -660,16 +658,19 @@ def _validate_suggestions(entries: list, context: dict,
|
|
|
660
658
|
or not SUGGESTION_KEYS <= set(entry) <= allowed_keys
|
|
661
659
|
):
|
|
662
660
|
raise SuggestError(
|
|
663
|
-
"each suggestion must hold kind, issue, title, why
|
|
664
|
-
"body"
|
|
661
|
+
"each suggestion must hold kind, issue, title, why, code "
|
|
662
|
+
"and body"
|
|
665
663
|
+ (", and optionally size" if size is not None else "")
|
|
666
664
|
)
|
|
667
|
-
title = entry["title"]
|
|
668
|
-
why = entry["why"]
|
|
665
|
+
title, why, code = entry["title"], entry["why"], entry["code"]
|
|
669
666
|
if not isinstance(title, str) or not title.strip():
|
|
670
667
|
raise SuggestError("suggestion title must be a non-empty string")
|
|
671
668
|
if not isinstance(why, str) or not why.strip():
|
|
672
669
|
raise SuggestError("suggestion why must be a non-empty string")
|
|
670
|
+
if not isinstance(code, str) or not code.strip():
|
|
671
|
+
raise SuggestError(
|
|
672
|
+
"suggestion code must be a non-empty string"
|
|
673
|
+
)
|
|
673
674
|
entry_size = (
|
|
674
675
|
_suggestion_size(entry, title) if size is not None else None
|
|
675
676
|
)
|
|
@@ -707,7 +708,7 @@ def _validate_suggestions(entries: list, context: dict,
|
|
|
707
708
|
)
|
|
708
709
|
item = {
|
|
709
710
|
"kind": "existing", "issue": number, "title": title,
|
|
710
|
-
"why": why, "body": None,
|
|
711
|
+
"why": why, "code": code, "body": None,
|
|
711
712
|
}
|
|
712
713
|
elif entry["kind"] == "new":
|
|
713
714
|
if entry["issue"] is not None:
|
|
@@ -721,7 +722,7 @@ def _validate_suggestions(entries: list, context: dict,
|
|
|
721
722
|
)
|
|
722
723
|
item = {
|
|
723
724
|
"kind": "new", "issue": None, "title": title,
|
|
724
|
-
"why": why, "body": body,
|
|
725
|
+
"why": why, "code": code, "body": body,
|
|
725
726
|
}
|
|
726
727
|
else:
|
|
727
728
|
raise SuggestError(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.62
|
|
4
4
|
Summary: Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store).
|
|
5
5
|
Author: xqliu
|
|
6
6
|
License-Expression: AGPL-3.0-only OR LicenseRef-Sustainable-Use-1.0
|
|
@@ -9,6 +9,7 @@ from __future__ import annotations
|
|
|
9
9
|
import functools
|
|
10
10
|
import json
|
|
11
11
|
import logging
|
|
12
|
+
import urllib.error
|
|
12
13
|
from pathlib import Path
|
|
13
14
|
|
|
14
15
|
import pytest
|
|
@@ -91,6 +92,46 @@ def test_an_attachments_section_image_is_downloaded_with_no_token(
|
|
|
91
92
|
assert gh.markdown_calls == []
|
|
92
93
|
|
|
93
94
|
|
|
95
|
+
def test_an_attachments_section_image_is_requested_as_orbi(
|
|
96
|
+
gh, downloads, worktree,
|
|
97
|
+
):
|
|
98
|
+
"""Acceptance 1: orbi.build answers urllib's default UA with HTTP 403.
|
|
99
|
+
|
|
100
|
+
Measured 2026-11-23 on beta.orbi.build: the same attachment address
|
|
101
|
+
answers 200 to `User-Agent: orbi` and 403 to `Python-urllib/3.x`, so
|
|
102
|
+
the download names this project instead of urllib.
|
|
103
|
+
"""
|
|
104
|
+
address = "https://beta.orbi.build/api/attachments/key"
|
|
105
|
+
body = drafted(BODY, section=f"## Attachments\n\n")
|
|
106
|
+
issue_images.for_session(
|
|
107
|
+
{"number": 1, "body": body}, config=image_input_config(), repo=REPO,
|
|
108
|
+
worktree=worktree,
|
|
109
|
+
)
|
|
110
|
+
headers = downloads.requests[0].headers
|
|
111
|
+
assert headers.get("User-agent") == "orbi"
|
|
112
|
+
assert not any("Python-urllib" in value for value in headers.values())
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def test_a_403_on_the_section_image_still_stops_the_delivery(
|
|
116
|
+
gh, downloads, worktree, caplog,
|
|
117
|
+
):
|
|
118
|
+
"""Acceptance 2: an address that still fails stops, exactly as today."""
|
|
119
|
+
address = "https://orbi.build/api/attachments/key"
|
|
120
|
+
downloads.failures[address] = urllib.error.HTTPError(
|
|
121
|
+
address, 403, "Forbidden", None, None,
|
|
122
|
+
)
|
|
123
|
+
body = drafted(BODY, section=f"## Attachments\n\n")
|
|
124
|
+
with caplog.at_level(logging.WARNING), pytest.raises(
|
|
125
|
+
issue_images.Unreadable, match="shot.png",
|
|
126
|
+
) as raised:
|
|
127
|
+
issue_images.for_session(
|
|
128
|
+
{"number": 1, "body": body}, config=image_input_config(),
|
|
129
|
+
repo=REPO, worktree=worktree,
|
|
130
|
+
)
|
|
131
|
+
assert raised.value.failure_record.reason_code == "attachment_unavailable"
|
|
132
|
+
assert "HTTPError" in caplog.text
|
|
133
|
+
|
|
134
|
+
|
|
94
135
|
def test_a_native_image_in_the_body_is_read_through_the_markdown_render(
|
|
95
136
|
gh, downloads, worktree,
|
|
96
137
|
):
|
|
@@ -46,15 +46,18 @@ SUGGEST_DIR = Path(".orbi") / "suggest"
|
|
|
46
46
|
|
|
47
47
|
EXISTING = {
|
|
48
48
|
"kind": "existing", "issue": 5, "title": "Fix the existing thing",
|
|
49
|
-
"why": "
|
|
49
|
+
"why": "A labelled Issue never reaches the queue",
|
|
50
|
+
"code": "src/orbi/claim.py:88", "body": None,
|
|
50
51
|
}
|
|
51
52
|
NEW_TWO = {
|
|
52
53
|
"kind": "new", "issue": None, "title": "Second thing",
|
|
53
|
-
"why": "README
|
|
54
|
+
"why": "The README workflow cannot be followed", "code": "README.md:36",
|
|
55
|
+
"body": "## Request\nSecond.",
|
|
54
56
|
}
|
|
55
57
|
NEW_THREE = {
|
|
56
58
|
"kind": "new", "issue": None, "title": "Third thing",
|
|
57
|
-
"why": "tests
|
|
59
|
+
"why": "The tests never run on CI", "code": "tests/start.test.js:21",
|
|
60
|
+
"body": "## Request\nThird.",
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
|
|
@@ -292,10 +295,14 @@ def test_orbi_suggest_json_prints_the_document(
|
|
|
292
295
|
"Fix the existing thing", "Second thing", "Third thing",
|
|
293
296
|
]
|
|
294
297
|
# Issue #2139: without `--size` the document carries no size.
|
|
298
|
+
# Issue #2381: every entry carries the user `why` and the code `code`.
|
|
295
299
|
assert all(
|
|
296
|
-
set(item) == {"kind", "issue", "title", "why", "body"}
|
|
300
|
+
set(item) == {"kind", "issue", "title", "why", "code", "body"}
|
|
297
301
|
for item in document["suggestions"]
|
|
298
302
|
)
|
|
303
|
+
assert all(
|
|
304
|
+
item["why"] and item["code"] for item in document["suggestions"]
|
|
305
|
+
)
|
|
299
306
|
|
|
300
307
|
run_dirs = _run_dirs(world)
|
|
301
308
|
assert len(run_dirs) == 1
|
|
@@ -344,6 +351,98 @@ def test_orbi_suggest_json_prints_the_document(
|
|
|
344
351
|
assert after == before
|
|
345
352
|
|
|
346
353
|
|
|
354
|
+
# --- why and code are two independent texts (Issue #2381) --------------------
|
|
355
|
+
#
|
|
356
|
+
# Until #2381 `why` carried both the user-facing reason and the code
|
|
357
|
+
# evidence (`scripts/start.js hardcodes port 4178 (lines 3 and 9), and
|
|
358
|
+
# test/start.test.js therefore …`), so a caller that shows the two parts
|
|
359
|
+
# apart had to guess where the code part starts. Now `why` is the plain
|
|
360
|
+
# explanation and `code` is the repository location — two required,
|
|
361
|
+
# non-empty fields, and the prompt and the skill say which is which.
|
|
362
|
+
|
|
363
|
+
WHY_TEXT = (
|
|
364
|
+
"Anyone who labels an Issue before Orbi claims it never sees that "
|
|
365
|
+
"Issue delivered again."
|
|
366
|
+
)
|
|
367
|
+
CODE_TEXT = "src/orbi/claim.py:88 (skips an Issue carrying an ai- label)"
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
def test_suggest_json_documents_why_and_code_as_two_texts(
|
|
371
|
+
tmp_path, monkeypatch, capsys,
|
|
372
|
+
):
|
|
373
|
+
"""Acceptance: one `orbi suggest --json` prints each suggestion with
|
|
374
|
+
the plain-language `why` and a separate `code` carrying the
|
|
375
|
+
repository location, unchanged and unmerged."""
|
|
376
|
+
world = _world(tmp_path, monkeypatch)
|
|
377
|
+
world.gh.add_issue(5, title="Existing", labels=())
|
|
378
|
+
stub = PiStub(_answer_json(
|
|
379
|
+
{**EXISTING, "why": WHY_TEXT, "code": CODE_TEXT},
|
|
380
|
+
))
|
|
381
|
+
suggest_fakes.stub_stream_pi(monkeypatch, stub)
|
|
382
|
+
assert cli.main([
|
|
383
|
+
"suggest", "--json", "--config", str(world.config_path),
|
|
384
|
+
]) == 0
|
|
385
|
+
document = json.loads(capsys.readouterr().out)
|
|
386
|
+
[item] = document["suggestions"]
|
|
387
|
+
assert item["why"] == WHY_TEXT
|
|
388
|
+
assert item["code"] == CODE_TEXT
|
|
389
|
+
# The user explanation carries no code location: that is `code`.
|
|
390
|
+
assert "src/orbi/claim.py" not in item["why"]
|
|
391
|
+
# The prompt the session read asked for both fields, apart.
|
|
392
|
+
assert '"code": "..."' in stub.prompt
|
|
393
|
+
assert "why and code are two separate texts" in " ".join(
|
|
394
|
+
stub.prompt.split()
|
|
395
|
+
)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
@pytest.mark.parametrize("code", ["", " ", None, 3])
|
|
399
|
+
def test_validate_suggestions_requires_a_non_empty_code(code):
|
|
400
|
+
"""Acceptance: a blank or non-string `code` fails fast, like a blank
|
|
401
|
+
`why` does."""
|
|
402
|
+
with pytest.raises(suggest.SuggestError) as excinfo:
|
|
403
|
+
_validate_one({**NEW_TWO, "code": code})
|
|
404
|
+
assert "suggestion code must be a non-empty string" in str(excinfo.value)
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
def test_validate_suggestions_names_code_in_the_required_keys():
|
|
408
|
+
"""Acceptance: an entry with no `code` key is rejected by the key set
|
|
409
|
+
and the message names all six fields."""
|
|
410
|
+
entry = {key: value for key, value in NEW_TWO.items() if key != "code"}
|
|
411
|
+
with pytest.raises(suggest.SuggestError) as excinfo:
|
|
412
|
+
_validate_one(entry)
|
|
413
|
+
assert "kind, issue, title, why, code and body" in str(excinfo.value)
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
@pytest.mark.parametrize("locale", [None, "zh", "en"])
|
|
417
|
+
def test_prompt_states_the_why_code_split(locale):
|
|
418
|
+
"""Acceptance: the answer template carries `code` and the prompt says
|
|
419
|
+
what each of the two texts is, in every locale."""
|
|
420
|
+
prompt = " ".join(suggest._prompt(
|
|
421
|
+
LOCALE_CONTEXT_PATH, LOCALE_REPO_DIR, LOCALE_REPO, locale=locale,
|
|
422
|
+
).split())
|
|
423
|
+
assert '"code": "..."' in prompt
|
|
424
|
+
assert "why and code are two separate texts" in prompt
|
|
425
|
+
# Issue #2381: the plain-language why carries no code location; the
|
|
426
|
+
# location, and only it, is what `code` holds.
|
|
427
|
+
assert "with no file location" in prompt
|
|
428
|
+
assert "path:line" in prompt
|
|
429
|
+
assert "never a code fence" in prompt
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
def test_the_skill_keeps_why_and_code_apart():
|
|
433
|
+
"""Acceptance: the skill's rule 5 and its output format split the two
|
|
434
|
+
texts, and the small-task rule of rule 7 lands in `code`."""
|
|
435
|
+
skill = (
|
|
436
|
+
Path(__file__).resolve().parent.parent / SKILL_REL
|
|
437
|
+
).read_text(encoding="utf-8")
|
|
438
|
+
flat = " ".join(skill.split())
|
|
439
|
+
assert "`why` is the plain-language explanation" in flat
|
|
440
|
+
assert "`code` carries the evidence" in flat
|
|
441
|
+
assert "name the file and line in `code`" in flat
|
|
442
|
+
example = skill.split('"suggestions"', 1)[1].split("```", 1)[0]
|
|
443
|
+
assert '"why"' in example and '"code"' in example
|
|
444
|
+
|
|
445
|
+
|
|
347
446
|
# --- the understanding session (Issue #1600) ---------------------------------
|
|
348
447
|
|
|
349
448
|
|
|
@@ -482,7 +581,7 @@ BAD_RESULTS = {
|
|
|
482
581
|
"too_many": json.dumps({"suggestions": [
|
|
483
582
|
EXISTING, NEW_TWO, NEW_THREE,
|
|
484
583
|
{"kind": "new", "issue": None, "title": "Fourth",
|
|
485
|
-
"why": "more", "body": "## Request\nFourth."},
|
|
584
|
+
"why": "more", "code": "src/orbi/x.py:1", "body": "## Request\nFourth."},
|
|
486
585
|
]}),
|
|
487
586
|
"extra_key": json.dumps({
|
|
488
587
|
"suggestions": [EXISTING], "extra": True,
|
|
@@ -495,6 +594,12 @@ BAD_RESULTS = {
|
|
|
495
594
|
"entry_missing_keys": json.dumps({"suggestions": [{"kind": "new"}]}),
|
|
496
595
|
"empty_title": json.dumps({"suggestions": [{**NEW_TWO, "title": " "}]}),
|
|
497
596
|
"empty_why": json.dumps({"suggestions": [{**NEW_TWO, "why": ""}]}),
|
|
597
|
+
# Issue #2381: `code` is required and must not be blank.
|
|
598
|
+
"empty_code": json.dumps({"suggestions": [{**NEW_TWO, "code": " "}]}),
|
|
599
|
+
"missing_code": json.dumps({
|
|
600
|
+
"suggestions": [{key: value for key, value in NEW_TWO.items()
|
|
601
|
+
if key != "code"}],
|
|
602
|
+
}),
|
|
498
603
|
"existing_issue_not_a_number": json.dumps(
|
|
499
604
|
{"suggestions": [{**EXISTING, "issue": "5"}]},
|
|
500
605
|
),
|
|
@@ -612,7 +717,8 @@ def test_validate_suggestions_rejects_a_why_naming_orbi_input(why):
|
|
|
612
717
|
with pytest.raises(suggest.SuggestError) as excinfo:
|
|
613
718
|
_validate_one({
|
|
614
719
|
"kind": "new", "issue": None, "title": "Do X",
|
|
615
|
-
"why": why, "
|
|
720
|
+
"why": why, "code": "src/orbi/claim.py:88",
|
|
721
|
+
"body": "## Request\nX.",
|
|
616
722
|
})
|
|
617
723
|
assert str(excinfo.value) == (
|
|
618
724
|
"suggestion why must describe the repository and its Issues and "
|
|
@@ -633,7 +739,8 @@ def test_validate_suggestions_accepts_a_why_naming_the_repository(why):
|
|
|
633
739
|
Issues stay valid reasons."""
|
|
634
740
|
kept = _validate_one({
|
|
635
741
|
"kind": "new", "issue": None, "title": "Do X",
|
|
636
|
-
"why": why, "
|
|
742
|
+
"why": why, "code": "src/orbi/claim.py:88",
|
|
743
|
+
"body": "## Request\nX.",
|
|
637
744
|
})
|
|
638
745
|
assert kept[0]["why"] == why
|
|
639
746
|
|
|
@@ -735,12 +842,19 @@ def test_real_session_answers_carry_their_size(name, sizes):
|
|
|
735
842
|
)
|
|
736
843
|
assert [item["size"] for item in kept] == sizes
|
|
737
844
|
assert kept[0]["size"] <= 2
|
|
845
|
+
# Issue #2381: every entry carries the user `why` and the code
|
|
846
|
+
# evidence as two separate, non-empty texts.
|
|
847
|
+
for item in kept:
|
|
848
|
+
assert item["why"].strip()
|
|
849
|
+
assert item["code"].strip()
|
|
850
|
+
assert item["code"] != item["why"]
|
|
738
851
|
|
|
739
852
|
|
|
740
853
|
def _sized(**overrides):
|
|
741
854
|
entry = {
|
|
742
855
|
"kind": "new", "issue": None, "title": "Do X",
|
|
743
|
-
"why": "
|
|
856
|
+
"why": "The queue drops labelled Issues",
|
|
857
|
+
"code": "src/orbi/claim.py:88", "body": "## Request\nX.",
|
|
744
858
|
}
|
|
745
859
|
entry.update(overrides)
|
|
746
860
|
return entry
|
|
@@ -900,7 +1014,7 @@ def test_suggest_keeps_the_validated_batch_in_the_run_dir(
|
|
|
900
1014
|
document = json.loads(capsys.readouterr().out)
|
|
901
1015
|
assert [item["size"] for item in document["suggestions"]] == [1, 4]
|
|
902
1016
|
assert all(
|
|
903
|
-
set(item) == {"kind", "issue", "title", "why", "body", "size"}
|
|
1017
|
+
set(item) == {"kind", "issue", "title", "why", "code", "body", "size"}
|
|
904
1018
|
for item in document["suggestions"]
|
|
905
1019
|
)
|
|
906
1020
|
assert "edits at most 1 file" in stub.prompt
|
|
@@ -1534,17 +1648,23 @@ PROMPT_WITHOUT_LOCALE = (
|
|
|
1534
1648
|
"4. Reply with ONE JSON object and nothing else:\n"
|
|
1535
1649
|
'{"suggestions": [{"kind": "existing" or "new", '
|
|
1536
1650
|
'"issue": <number> or null, "title": "...", "why": "...", '
|
|
1537
|
-
'"body": <markdown Issue body> or null}]}\n'
|
|
1651
|
+
'"code": "...", "body": <markdown Issue body> or null}]}\n'
|
|
1538
1652
|
"At most three entries, ordered by value to the repository's "
|
|
1539
1653
|
"users.\n\n"
|
|
1654
|
+
# Issue #2381: the two texts a suggestion carries.
|
|
1655
|
+
"why and code are two separate texts. why explains in plain "
|
|
1656
|
+
"language, with no file location, why the owner should do this "
|
|
1657
|
+
"now and what their users face today. code carries the "
|
|
1658
|
+
"evidence: path:line and a short plain-text excerpt, never a "
|
|
1659
|
+
"code fence.\n\n"
|
|
1540
1660
|
# Issue #2139: size and the small-task rule are the CALLER's input
|
|
1541
1661
|
# (`--size`), so the default prompt carries neither — this frozen
|
|
1542
1662
|
# copy pins the pre- and post-#2131 default back to one text.
|
|
1543
1663
|
# Issue #2119: the answer is shown to the repository owner as
|
|
1544
1664
|
# written, so the prompt says it and names Orbi's input as off
|
|
1545
1665
|
# limits; this frozen copy pins that sentence too.
|
|
1546
|
-
"The title, why and body are shown to the repository
|
|
1547
|
-
"exactly as you write them: they must describe the repository "
|
|
1666
|
+
"The title, why, code and body are shown to the repository "
|
|
1667
|
+
"owner exactly as you write them: they must describe the repository "
|
|
1548
1668
|
"and its Issues and PRs, never Orbi's own input files "
|
|
1549
1669
|
"(context.json, the run directory), which the owner never "
|
|
1550
1670
|
"sees.\n\n"
|
|
@@ -1893,6 +2013,7 @@ def test_suggest_count_one_keeps_the_first_before_validating(
|
|
|
1893
2013
|
_answer_json(EXISTING, NEW_TWO, {"kind": "existing", "issue": 6,
|
|
1894
2014
|
"title": "Queued",
|
|
1895
2015
|
"why": "already ai-ready",
|
|
2016
|
+
"code": "AGENTS.md:1",
|
|
1896
2017
|
"body": None}),
|
|
1897
2018
|
)
|
|
1898
2019
|
monkeypatch.setattr(seam, "stream_pi", stub)
|
|
@@ -1920,7 +2041,8 @@ def test_suggest_count_one_still_fails_when_the_first_entry_is_invalid(
|
|
|
1920
2041
|
world.gh.add_issue(6, title="Already queued", labels=("ai-ready",))
|
|
1921
2042
|
stub = PiStub(
|
|
1922
2043
|
_answer_json({"kind": "existing", "issue": 6, "title": "Queued",
|
|
1923
|
-
"why": "already ai-ready", "
|
|
2044
|
+
"why": "already ai-ready", "code": "AGENTS.md:1",
|
|
2045
|
+
"body": None},
|
|
1924
2046
|
EXISTING),
|
|
1925
2047
|
)
|
|
1926
2048
|
monkeypatch.setattr(seam, "stream_pi", stub)
|
|
@@ -1942,7 +2064,8 @@ def test_suggest_default_count_still_fails_on_an_invalid_third_entry(
|
|
|
1942
2064
|
stub = PiStub(
|
|
1943
2065
|
_answer_json(EXISTING, NEW_TWO,
|
|
1944
2066
|
{"kind": "existing", "issue": 6, "title": "Queued",
|
|
1945
|
-
"why": "already ai-ready", "
|
|
2067
|
+
"why": "already ai-ready", "code": "AGENTS.md:1",
|
|
2068
|
+
"body": None}),
|
|
1946
2069
|
)
|
|
1947
2070
|
monkeypatch.setattr(seam, "stream_pi", stub)
|
|
1948
2071
|
assert cli.main([
|
|
@@ -1964,8 +2087,8 @@ def test_prompt_says_the_answer_is_shown_to_the_repository_owner():
|
|
|
1964
2087
|
)
|
|
1965
2088
|
|
|
1966
2089
|
shown = (
|
|
1967
|
-
"title, why and body are shown to the repository owner
|
|
1968
|
-
"you write them"
|
|
2090
|
+
"title, why, code and body are shown to the repository owner "
|
|
2091
|
+
"exactly as you write them"
|
|
1969
2092
|
)
|
|
1970
2093
|
scope = (
|
|
1971
2094
|
"they must describe the repository and its Issues and PRs, never "
|
|
@@ -2073,7 +2196,8 @@ def test_count_one_then_count_two_hands_the_first_batch(
|
|
|
2073
2196
|
def _new_suggestion(title: str) -> dict:
|
|
2074
2197
|
return {
|
|
2075
2198
|
"kind": "new", "issue": None, "title": title,
|
|
2076
|
-
"why": f"{title} matters", "
|
|
2199
|
+
"why": f"{title} matters", "code": "src/orbi/x.py:1",
|
|
2200
|
+
"body": f"## Request\n{title}.",
|
|
2077
2201
|
}
|
|
2078
2202
|
|
|
2079
2203
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|