agentic-devtools 0.2.0__py3-none-any.whl

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.
Files changed (92) hide show
  1. agdt_ai_helpers/__init__.py +34 -0
  2. agentic_devtools/__init__.py +8 -0
  3. agentic_devtools/background_tasks.py +598 -0
  4. agentic_devtools/cli/__init__.py +1 -0
  5. agentic_devtools/cli/azure_devops/__init__.py +222 -0
  6. agentic_devtools/cli/azure_devops/async_commands.py +1218 -0
  7. agentic_devtools/cli/azure_devops/auth.py +34 -0
  8. agentic_devtools/cli/azure_devops/commands.py +728 -0
  9. agentic_devtools/cli/azure_devops/config.py +49 -0
  10. agentic_devtools/cli/azure_devops/file_review_commands.py +1038 -0
  11. agentic_devtools/cli/azure_devops/helpers.py +561 -0
  12. agentic_devtools/cli/azure_devops/mark_reviewed.py +756 -0
  13. agentic_devtools/cli/azure_devops/pipeline_commands.py +724 -0
  14. agentic_devtools/cli/azure_devops/pr_summary_commands.py +579 -0
  15. agentic_devtools/cli/azure_devops/pull_request_details_commands.py +596 -0
  16. agentic_devtools/cli/azure_devops/review_commands.py +700 -0
  17. agentic_devtools/cli/azure_devops/review_helpers.py +191 -0
  18. agentic_devtools/cli/azure_devops/review_jira.py +308 -0
  19. agentic_devtools/cli/azure_devops/review_prompts.py +263 -0
  20. agentic_devtools/cli/azure_devops/run_details_commands.py +935 -0
  21. agentic_devtools/cli/azure_devops/vpn_toggle.py +1220 -0
  22. agentic_devtools/cli/git/__init__.py +91 -0
  23. agentic_devtools/cli/git/async_commands.py +294 -0
  24. agentic_devtools/cli/git/commands.py +399 -0
  25. agentic_devtools/cli/git/core.py +152 -0
  26. agentic_devtools/cli/git/diff.py +210 -0
  27. agentic_devtools/cli/git/operations.py +737 -0
  28. agentic_devtools/cli/jira/__init__.py +114 -0
  29. agentic_devtools/cli/jira/adf.py +105 -0
  30. agentic_devtools/cli/jira/async_commands.py +439 -0
  31. agentic_devtools/cli/jira/async_status.py +27 -0
  32. agentic_devtools/cli/jira/commands.py +28 -0
  33. agentic_devtools/cli/jira/comment_commands.py +141 -0
  34. agentic_devtools/cli/jira/config.py +69 -0
  35. agentic_devtools/cli/jira/create_commands.py +293 -0
  36. agentic_devtools/cli/jira/formatting.py +131 -0
  37. agentic_devtools/cli/jira/get_commands.py +287 -0
  38. agentic_devtools/cli/jira/helpers.py +278 -0
  39. agentic_devtools/cli/jira/parse_error_report.py +352 -0
  40. agentic_devtools/cli/jira/role_commands.py +560 -0
  41. agentic_devtools/cli/jira/state_helpers.py +39 -0
  42. agentic_devtools/cli/jira/update_commands.py +222 -0
  43. agentic_devtools/cli/jira/vpn_wrapper.py +58 -0
  44. agentic_devtools/cli/release/__init__.py +5 -0
  45. agentic_devtools/cli/release/commands.py +113 -0
  46. agentic_devtools/cli/release/helpers.py +113 -0
  47. agentic_devtools/cli/runner.py +318 -0
  48. agentic_devtools/cli/state.py +174 -0
  49. agentic_devtools/cli/subprocess_utils.py +109 -0
  50. agentic_devtools/cli/tasks/__init__.py +28 -0
  51. agentic_devtools/cli/tasks/commands.py +851 -0
  52. agentic_devtools/cli/testing.py +442 -0
  53. agentic_devtools/cli/workflows/__init__.py +80 -0
  54. agentic_devtools/cli/workflows/advancement.py +204 -0
  55. agentic_devtools/cli/workflows/base.py +240 -0
  56. agentic_devtools/cli/workflows/checklist.py +278 -0
  57. agentic_devtools/cli/workflows/commands.py +1610 -0
  58. agentic_devtools/cli/workflows/manager.py +802 -0
  59. agentic_devtools/cli/workflows/preflight.py +323 -0
  60. agentic_devtools/cli/workflows/worktree_setup.py +1110 -0
  61. agentic_devtools/dispatcher.py +704 -0
  62. agentic_devtools/file_locking.py +203 -0
  63. agentic_devtools/prompts/__init__.py +38 -0
  64. agentic_devtools/prompts/apply-pull-request-review-suggestions/default-initiate-prompt.md +82 -0
  65. agentic_devtools/prompts/create-jira-epic/default-initiate-prompt.md +63 -0
  66. agentic_devtools/prompts/create-jira-issue/default-initiate-prompt.md +306 -0
  67. agentic_devtools/prompts/create-jira-subtask/default-initiate-prompt.md +57 -0
  68. agentic_devtools/prompts/loader.py +377 -0
  69. agentic_devtools/prompts/pull-request-review/default-completion-prompt.md +45 -0
  70. agentic_devtools/prompts/pull-request-review/default-decision-prompt.md +63 -0
  71. agentic_devtools/prompts/pull-request-review/default-file-review-prompt.md +69 -0
  72. agentic_devtools/prompts/pull-request-review/default-initiate-prompt.md +50 -0
  73. agentic_devtools/prompts/pull-request-review/default-summary-prompt.md +40 -0
  74. agentic_devtools/prompts/update-jira-issue/default-initiate-prompt.md +78 -0
  75. agentic_devtools/prompts/work-on-jira-issue/default-checklist-creation-prompt.md +58 -0
  76. agentic_devtools/prompts/work-on-jira-issue/default-commit-prompt.md +47 -0
  77. agentic_devtools/prompts/work-on-jira-issue/default-completion-prompt.md +65 -0
  78. agentic_devtools/prompts/work-on-jira-issue/default-implementation-prompt.md +66 -0
  79. agentic_devtools/prompts/work-on-jira-issue/default-implementation-review-prompt.md +60 -0
  80. agentic_devtools/prompts/work-on-jira-issue/default-initiate-prompt.md +67 -0
  81. agentic_devtools/prompts/work-on-jira-issue/default-planning-prompt.md +50 -0
  82. agentic_devtools/prompts/work-on-jira-issue/default-pull-request-prompt.md +56 -0
  83. agentic_devtools/prompts/work-on-jira-issue/default-retrieve-prompt.md +29 -0
  84. agentic_devtools/prompts/work-on-jira-issue/default-setup-prompt.md +19 -0
  85. agentic_devtools/prompts/work-on-jira-issue/default-verification-prompt.md +73 -0
  86. agentic_devtools/state.py +754 -0
  87. agentic_devtools/task_state.py +902 -0
  88. agentic_devtools-0.2.0.dist-info/METADATA +544 -0
  89. agentic_devtools-0.2.0.dist-info/RECORD +92 -0
  90. agentic_devtools-0.2.0.dist-info/WHEEL +4 -0
  91. agentic_devtools-0.2.0.dist-info/entry_points.txt +79 -0
  92. agentic_devtools-0.2.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,222 @@
1
+ """
2
+ Azure DevOps CLI utilities package.
3
+
4
+ This package provides command-line tools for interacting with Azure DevOps,
5
+ including pull request management, thread handling, and approvals.
6
+
7
+ Workflow:
8
+ 1. Set state values with dfly-set (auto-approve once)
9
+ 2. Execute action with dfly-<action> (auto-approve once)
10
+
11
+ Example:
12
+ agdt-set pull_request_id 23046
13
+ agdt-set thread_id 139474
14
+ agdt-set content "Thanks for the feedback!
15
+
16
+ I've made the changes you suggested."
17
+ agdt-reply-to-pull-request-thread
18
+ """
19
+
20
+ # Config exports
21
+ # Auth exports
22
+ # Async command exports
23
+ from .async_commands import (
24
+ add_pull_request_comment_async,
25
+ approve_file_async,
26
+ approve_file_async_cli,
27
+ approve_pull_request_async,
28
+ create_pipeline_async,
29
+ create_pull_request_async,
30
+ create_pull_request_async_cli,
31
+ generate_pr_summary_async,
32
+ get_pipeline_id_async,
33
+ get_pull_request_details_async,
34
+ get_pull_request_threads_async,
35
+ get_run_details_async,
36
+ list_pipelines_async,
37
+ mark_file_reviewed_async,
38
+ mark_pull_request_draft_async,
39
+ publish_pull_request_async,
40
+ reply_to_pull_request_thread_async,
41
+ request_changes_async,
42
+ request_changes_async_cli,
43
+ request_changes_with_suggestion_async,
44
+ request_changes_with_suggestion_async_cli,
45
+ resolve_thread_async,
46
+ run_e2e_tests_fabric_async,
47
+ run_e2e_tests_synapse_async,
48
+ run_wb_patch_async,
49
+ submit_file_review_async,
50
+ update_pipeline_async,
51
+ wait_for_run_async,
52
+ )
53
+ from .auth import get_auth_headers, get_pat
54
+
55
+ # Command exports
56
+ from .commands import (
57
+ add_pull_request_comment,
58
+ approve_pull_request,
59
+ create_pull_request,
60
+ get_pull_request_threads,
61
+ mark_pull_request_draft,
62
+ parse_bool_from_state,
63
+ publish_pull_request,
64
+ reply_to_pull_request_thread,
65
+ require_content,
66
+ resolve_thread,
67
+ )
68
+ from .config import (
69
+ API_VERSION,
70
+ APPROVAL_SENTINEL,
71
+ DEFAULT_ORGANIZATION,
72
+ DEFAULT_PROJECT,
73
+ DEFAULT_REPOSITORY,
74
+ AzureDevOpsConfig,
75
+ )
76
+
77
+ # File review command exports
78
+ from .file_review_commands import (
79
+ approve_file,
80
+ get_queue_status,
81
+ request_changes,
82
+ request_changes_with_suggestion,
83
+ submit_file_review,
84
+ )
85
+
86
+ # Helper exports
87
+ from .helpers import (
88
+ build_thread_context,
89
+ convert_to_pull_request_title,
90
+ find_pull_request_by_issue_key,
91
+ format_approval_content,
92
+ get_pull_request_source_branch,
93
+ get_repository_id,
94
+ parse_bool_from_state_value,
95
+ parse_json_response,
96
+ print_threads,
97
+ require_requests,
98
+ resolve_thread_by_id,
99
+ verify_az_cli,
100
+ )
101
+
102
+ # Mark reviewed export
103
+ from .mark_reviewed import mark_file_reviewed, mark_file_reviewed_cli
104
+
105
+ # Pipeline command exports
106
+ from .pipeline_commands import (
107
+ create_pipeline,
108
+ get_pipeline_id,
109
+ list_pipelines,
110
+ run_e2e_tests_fabric,
111
+ run_e2e_tests_synapse,
112
+ run_wb_patch,
113
+ update_pipeline,
114
+ )
115
+
116
+ # PR summary command exports
117
+ from .pr_summary_commands import (
118
+ generate_overarching_pr_comments,
119
+ generate_overarching_pr_comments_cli,
120
+ )
121
+
122
+ # Pull request details command exports
123
+ from .pull_request_details_commands import get_pull_request_details
124
+
125
+ # Run details command exports
126
+ from .run_details_commands import get_run_details, wait_for_run
127
+
128
+ __all__ = [
129
+ # Constants
130
+ "DEFAULT_ORGANIZATION",
131
+ "DEFAULT_PROJECT",
132
+ "DEFAULT_REPOSITORY",
133
+ "APPROVAL_SENTINEL",
134
+ "API_VERSION",
135
+ # Config
136
+ "AzureDevOpsConfig",
137
+ # Auth
138
+ "get_pat",
139
+ "get_auth_headers",
140
+ # Helpers
141
+ "parse_bool_from_state_value",
142
+ "require_requests",
143
+ "get_repository_id",
144
+ "resolve_thread_by_id",
145
+ "convert_to_pull_request_title",
146
+ "format_approval_content",
147
+ "build_thread_context",
148
+ "verify_az_cli",
149
+ "parse_json_response",
150
+ "print_threads",
151
+ "find_pull_request_by_issue_key",
152
+ "get_pull_request_source_branch",
153
+ # Command helpers
154
+ "parse_bool_from_state",
155
+ "require_content",
156
+ # Commands (sync)
157
+ "reply_to_pull_request_thread",
158
+ "add_pull_request_comment",
159
+ "create_pull_request",
160
+ "resolve_thread",
161
+ "get_pull_request_threads",
162
+ "approve_pull_request",
163
+ "mark_pull_request_draft",
164
+ "publish_pull_request",
165
+ # Commands (async)
166
+ "add_pull_request_comment_async",
167
+ "approve_pull_request_async",
168
+ "create_pull_request_async",
169
+ "create_pull_request_async_cli",
170
+ "get_pull_request_threads_async",
171
+ "reply_to_pull_request_thread_async",
172
+ "resolve_thread_async",
173
+ "mark_pull_request_draft_async",
174
+ "publish_pull_request_async",
175
+ "get_pull_request_details_async",
176
+ # Pipeline commands
177
+ "run_e2e_tests_fabric",
178
+ "run_e2e_tests_synapse",
179
+ "run_wb_patch",
180
+ "list_pipelines",
181
+ "get_pipeline_id",
182
+ "create_pipeline",
183
+ "update_pipeline",
184
+ # Pipeline commands (async)
185
+ "run_e2e_tests_fabric_async",
186
+ "run_e2e_tests_synapse_async",
187
+ "run_wb_patch_async",
188
+ "get_run_details_async",
189
+ "list_pipelines_async",
190
+ "get_pipeline_id_async",
191
+ "create_pipeline_async",
192
+ "update_pipeline_async",
193
+ # Pull request details command
194
+ "get_pull_request_details",
195
+ # File review commands
196
+ "approve_file",
197
+ "get_queue_status",
198
+ "submit_file_review",
199
+ "request_changes",
200
+ "request_changes_with_suggestion",
201
+ # File review commands (async)
202
+ "approve_file_async",
203
+ "approve_file_async_cli",
204
+ "submit_file_review_async",
205
+ "request_changes_async",
206
+ "request_changes_async_cli",
207
+ "request_changes_with_suggestion_async",
208
+ "request_changes_with_suggestion_async_cli",
209
+ "mark_file_reviewed_async",
210
+ # Mark reviewed
211
+ "mark_file_reviewed",
212
+ "mark_file_reviewed_cli",
213
+ # PR summary commands
214
+ "generate_overarching_pr_comments",
215
+ "generate_overarching_pr_comments_cli",
216
+ # PR summary commands (async)
217
+ "generate_pr_summary_async",
218
+ # Run details commands
219
+ "get_run_details",
220
+ "wait_for_run",
221
+ "wait_for_run_async",
222
+ ]