devops-bot-sdk 1.7.50__tar.gz → 1.7.56__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.
Files changed (315) hide show
  1. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/PKG-INFO +1 -1
  2. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/devops_bot_sdk.egg-info/PKG-INFO +1 -1
  3. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/devops_bot_sdk.egg-info/SOURCES.txt +8 -0
  4. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/__init__.py +2 -2
  5. devops_bot_sdk-1.7.56/sdk/agent_builder.py +354 -0
  6. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/engines/claude_code.py +10 -8
  7. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/manifest.py +9 -0
  8. devops_bot_sdk-1.7.56/sdk/ai_connectors.py +233 -0
  9. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/cli.py +271 -2
  10. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/crucial.py +95 -1
  11. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/custom_agents.py +2 -0
  12. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/faqs.py +32 -0
  13. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/help_data/areas.json +9 -9
  14. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/help_data/commands.json +56 -6
  15. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/help_data/pages.json +12 -0
  16. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/help_data/releases.json +10 -0
  17. devops_bot_sdk-1.7.56/sdk/help_data/snapshot.json +17 -0
  18. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/helpdesk.py +10 -0
  19. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/helpdesk_kb.md +84 -1
  20. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/hooks/crucial_guard.py +17 -4
  21. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ipc/handlers.py +48 -12
  22. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/local_exec.py +444 -65
  23. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/log_colors.py +31 -0
  24. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/api.py +89 -4
  25. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/models.py +24 -0
  26. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/app.js +364 -1
  27. devops_bot_sdk-1.7.56/sdk/ui/static/connectors.html +81 -0
  28. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/help.html +1 -0
  29. devops_bot_sdk-1.7.56/sdk/ui/static/new-agent.html +78 -0
  30. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/styles.css +42 -0
  31. devops_bot_sdk-1.7.56/tests/test_agent_builder.py +225 -0
  32. devops_bot_sdk-1.7.56/tests/test_ai_connectors.py +197 -0
  33. devops_bot_sdk-1.7.56/tests/test_connectors_runner.py +200 -0
  34. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_fallback_cli.py +4 -0
  35. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_fallback_cli_upgrade.py +2 -0
  36. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_fallback_parity.py +2 -0
  37. devops_bot_sdk-1.7.56/tests/test_fallback_streaming.py +220 -0
  38. devops_bot_sdk-1.7.50/sdk/help_data/snapshot.json +0 -17
  39. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/README.md +0 -0
  40. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/devops_bot_sdk.egg-info/dependency_links.txt +0 -0
  41. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/devops_bot_sdk.egg-info/entry_points.txt +0 -0
  42. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/devops_bot_sdk.egg-info/requires.txt +0 -0
  43. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/devops_bot_sdk.egg-info/top_level.txt +0 -0
  44. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/pyproject.toml +0 -0
  45. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/__init__.py +0 -0
  46. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/classifier.py +0 -0
  47. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/collectors/__init__.py +0 -0
  48. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/collectors/common.py +0 -0
  49. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/collectors/linux_auditd.py +0 -0
  50. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/collectors/macos_eslogger.py +0 -0
  51. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/collectors/windows_eventlog.py +0 -0
  52. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/models.py +0 -0
  53. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/os_setup.py +0 -0
  54. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/recorder.py +0 -0
  55. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/redact.py +0 -0
  56. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/settings.py +0 -0
  57. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/shipper.py +0 -0
  58. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/activity/spool.py +0 -0
  59. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agent_sharing.py +0 -0
  60. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agentd.py +0 -0
  61. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/__init__.py +0 -0
  62. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/activity.py +0 -0
  63. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/builder.py +0 -0
  64. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/chat.py +0 -0
  65. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/connectors.py +0 -0
  66. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/engines/__init__.py +0 -0
  67. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/engines/http.py +0 -0
  68. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/engines/mcp.py +0 -0
  69. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/engines/n8n.py +0 -0
  70. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/engines/shell.py +0 -0
  71. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/integrations.py +0 -0
  72. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/inventory.py +0 -0
  73. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/library/__init__.py +0 -0
  74. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/prompt_studio.py +0 -0
  75. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/prompt_template.py +0 -0
  76. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/prompt_vars.py +0 -0
  77. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/run_log.py +0 -0
  78. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/schedules.py +0 -0
  79. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/secrets.py +0 -0
  80. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/ticket_run.py +0 -0
  81. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/usage.py +0 -0
  82. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/agents/varstore.py +0 -0
  83. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/browser_profile.py +0 -0
  84. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/claude_usage.py +0 -0
  85. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/client.py +0 -0
  86. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/collectors/__init__.py +0 -0
  87. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/collectors/files.py +0 -0
  88. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/collectors/process.py +0 -0
  89. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/collectors/screenshot.py +0 -0
  90. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/config.py +0 -0
  91. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/deferred_tickets.py +0 -0
  92. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/departments.py +0 -0
  93. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/design_verify/__init__.py +0 -0
  94. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/design_verify/assets.py +0 -0
  95. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/design_verify/bootstrap.py +0 -0
  96. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/design_verify/browser.py +0 -0
  97. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/design_verify/compare.py +0 -0
  98. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/design_verify/loop.py +0 -0
  99. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/estimator.py +0 -0
  100. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/exceptions.py +0 -0
  101. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/fallback_handoff.py +0 -0
  102. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/firewall.py +0 -0
  103. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/formats.py +0 -0
  104. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/git_ops.py +0 -0
  105. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/github_fetch.py +0 -0
  106. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/github_ingest.py +0 -0
  107. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/graph_recon.py +0 -0
  108. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/graphify.py +0 -0
  109. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/help_actions.py +0 -0
  110. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/help_data/help.json +0 -0
  111. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/hooks/__init__.py +0 -0
  112. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/install_marker.py +0 -0
  113. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/instructions_template.py +0 -0
  114. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/intake.py +0 -0
  115. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ipc/__init__.py +0 -0
  116. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ipc/electron_bridge.py +0 -0
  117. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/journal.py +0 -0
  118. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/memory_guard.py +0 -0
  119. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/model_policy.py +0 -0
  120. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/models/__init__.py +0 -0
  121. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/models/envelope.py +0 -0
  122. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/models/requests.py +0 -0
  123. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/models/responses.py +0 -0
  124. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/models/snapshots.py +0 -0
  125. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/phase_timer.py +0 -0
  126. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/plan_run.py +0 -0
  127. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/platform_compat.py +0 -0
  128. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/prd_progress.py +0 -0
  129. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/proof_readers.py +0 -0
  130. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/providers.py +0 -0
  131. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/py.typed +0 -0
  132. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/resume.py +0 -0
  133. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/router.py +0 -0
  134. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/run_auto.py +0 -0
  135. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/schedule_tickets.py +0 -0
  136. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/schedule_timeline.py +0 -0
  137. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/scheduler.py +0 -0
  138. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/scope_plan.py +0 -0
  139. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/self_report.py +0 -0
  140. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/self_report_local.py +0 -0
  141. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/sse.py +0 -0
  142. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/swagger.py +0 -0
  143. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/task_file.py +0 -0
  144. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/task_types.py +0 -0
  145. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/test.py +0 -0
  146. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/test_env.py +0 -0
  147. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/test_pipeline.py +0 -0
  148. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ticket_board.py +0 -0
  149. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ticket_bulk.py +0 -0
  150. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ticket_fields.py +0 -0
  151. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ticket_plan.py +0 -0
  152. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ticket_pools.py +0 -0
  153. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/tickets.py +0 -0
  154. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/tiers/__init__.py +0 -0
  155. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/tiers/mini_agent.py +0 -0
  156. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/__init__.py +0 -0
  157. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/dashboard.py +0 -0
  158. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/health.py +0 -0
  159. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/ip_allowlist.py +0 -0
  160. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/jobs.py +0 -0
  161. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/runner.py +0 -0
  162. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/security.py +0 -0
  163. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/server.py +0 -0
  164. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/service.py +0 -0
  165. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/session.py +0 -0
  166. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/setup_manager.py +0 -0
  167. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/agents.html +0 -0
  168. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/chat.html +0 -0
  169. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/custom-agents.html +0 -0
  170. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/default-agents.html +0 -0
  171. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/faqs.html +0 -0
  172. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/index.html +0 -0
  173. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/report.html +0 -0
  174. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/runs.html +0 -0
  175. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/schedules.html +0 -0
  176. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/setup.html +0 -0
  177. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/static/tickets.html +0 -0
  178. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/ui/swagger.py +0 -0
  179. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/updater.py +0 -0
  180. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/url_access.py +0 -0
  181. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/vps_health.py +0 -0
  182. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/vps_identity.py +0 -0
  183. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/sdk/write_hook.py +0 -0
  184. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/setup.cfg +0 -0
  185. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_activity_claude_runs.py +0 -0
  186. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_activity_collectors.py +0 -0
  187. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_activity_core.py +0 -0
  188. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_activity_live_tracking.py +0 -0
  189. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_activity_macos.py +0 -0
  190. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_activity_os_setup.py +0 -0
  191. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_activity_pipeline.py +0 -0
  192. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_activity.py +0 -0
  193. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_activity_tracking.py +0 -0
  194. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_chat_features.py +0 -0
  195. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_crud_cli.py +0 -0
  196. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_listing.py +0 -0
  197. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_prompt_async.py +0 -0
  198. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_prompt_models.py +0 -0
  199. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_run_ticket.py +0 -0
  200. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_schedules.py +0 -0
  201. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_sharing.py +0 -0
  202. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agent_workspace_settings.py +0 -0
  203. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_agents_connectors_builder.py +0 -0
  204. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_allowed_tools_config.py +0 -0
  205. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_approval_park.py +0 -0
  206. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_auto_agent_dispatch.py +0 -0
  207. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_auto_ticket_queue.py +0 -0
  208. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_backend_only_allowlist.py +0 -0
  209. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_browser_profile.py +0 -0
  210. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_cheap_tier.py +0 -0
  211. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_claude_usage_gate.py +0 -0
  212. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_client_jira_projects.py +0 -0
  213. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_config_token_diagnostics.py +0 -0
  214. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_configure_token_owner.py +0 -0
  215. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_console_encoding.py +0 -0
  216. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_crash_recovery.py +0 -0
  217. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_create_safe_retry.py +0 -0
  218. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_deferred_tickets.py +0 -0
  219. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_departments.py +0 -0
  220. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_done_transition.py +0 -0
  221. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_epic_decompose_run.py +0 -0
  222. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_epic_inherited_agent_id.py +0 -0
  223. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_epic_session_isolation.py +0 -0
  224. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_estimator.py +0 -0
  225. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_fallback_folder_changes.py +0 -0
  226. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_fallback_rate_limit.py +0 -0
  227. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_faqs.py +0 -0
  228. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_firewall_open_on_update.py +0 -0
  229. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_formats.py +0 -0
  230. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_git_action.py +0 -0
  231. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_github_fetch.py +0 -0
  232. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_github_ingest.py +0 -0
  233. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_graph_off_by_default.py +0 -0
  234. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_graph_recon.py +0 -0
  235. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_graphify_build.py +0 -0
  236. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_graphify_hook_install.py +0 -0
  237. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_health.py +0 -0
  238. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_help_actions.py +0 -0
  239. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_help_attachments.py +0 -0
  240. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_help_questions.py +0 -0
  241. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_helpdesk.py +0 -0
  242. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_infographic_data.py +0 -0
  243. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_install_marker.py +0 -0
  244. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_instructions_template.py +0 -0
  245. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_intake_job_outcome.py +0 -0
  246. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_intake_plan_review.py +0 -0
  247. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_journal.py +0 -0
  248. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_limit_fallback_handoff.py +0 -0
  249. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_local_exec_provider.py +0 -0
  250. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_log_colors_backlog.py +0 -0
  251. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_mcp_route_contract.py +0 -0
  252. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_memory_guard.py +0 -0
  253. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_model_policy.py +0 -0
  254. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_panel_help.py +0 -0
  255. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_panel_ticket_schedules.py +0 -0
  256. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_parallel_tickets.py +0 -0
  257. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_phase_timer.py +0 -0
  258. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_plan_ahead.py +0 -0
  259. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_plan_new_command.py +0 -0
  260. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_plan_run_activity.py +0 -0
  261. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_pool_pr_modes.py +0 -0
  262. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_pr_identity.py +0 -0
  263. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_prd_artifact.py +0 -0
  264. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_project_path_resolution.py +0 -0
  265. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_proof_readers.py +0 -0
  266. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_providers.py +0 -0
  267. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_quiet_run_log.py +0 -0
  268. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_recon_session_isolation.py +0 -0
  269. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_resume.py +0 -0
  270. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_router.py +0 -0
  271. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_run_auto_agent_only.py +0 -0
  272. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_run_outputs.py +0 -0
  273. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_run_verdict_is_honest.py +0 -0
  274. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_schedule_api.py +0 -0
  275. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_schedule_outputs_and_plans.py +0 -0
  276. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_schedule_tickets.py +0 -0
  277. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_schedule_timeline.py +0 -0
  278. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_scheduler.py +0 -0
  279. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_scheduler_transient_retry.py +0 -0
  280. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_self_report.py +0 -0
  281. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_service_token_warning.py +0 -0
  282. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_stale_panel_restart.py +0 -0
  283. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_swagger_command.py +0 -0
  284. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_task_file_and_plan_run.py +0 -0
  285. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_task_file_format_doc.py +0 -0
  286. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_theme_switch.py +0 -0
  287. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_board.py +0 -0
  288. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_bulk.py +0 -0
  289. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_cli.py +0 -0
  290. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_detail_view.py +0 -0
  291. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_fields.py +0 -0
  292. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_plan.py +0 -0
  293. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_pools.py +0 -0
  294. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_run_resolve_by_id.py +0 -0
  295. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_schedule_and_agent.py +0 -0
  296. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ticket_speed_fixes.py +0 -0
  297. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_tier_flag_parity.py +0 -0
  298. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ui_bruteforce_guard.py +0 -0
  299. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ui_gate.py +0 -0
  300. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ui_lifespan.py +0 -0
  301. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_ui_no_native_dialogs.py +0 -0
  302. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_update_timer.py +0 -0
  303. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_updater_extras.py +0 -0
  304. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_updater_ignores_cwd.py +0 -0
  305. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_updater_pep668.py +0 -0
  306. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_updater_reports_the_truth.py +0 -0
  307. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_url_access.py +0 -0
  308. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_version_flag.py +0 -0
  309. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_vps_health.py +0 -0
  310. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_vps_only_reporting.py +0 -0
  311. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_windows_loop_identity.py +0 -0
  312. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_windows_panel_task.py +0 -0
  313. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_windows_stop_and_pidfile.py +0 -0
  314. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_windows_task_paths.py +0 -0
  315. {devops_bot_sdk-1.7.50 → devops_bot_sdk-1.7.56}/tests/test_write_hook.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devops-bot-sdk
3
- Version: 1.7.50
3
+ Version: 1.7.56
4
4
  Summary: DevOps Bot Desktop SDK — thin client for the AgentOS Electron desktop app
5
5
  Author: noumanaziz2128
6
6
  License-Expression: LicenseRef-Proprietary
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devops-bot-sdk
3
- Version: 1.7.50
3
+ Version: 1.7.56
4
4
  Summary: DevOps Bot Desktop SDK — thin client for the AgentOS Electron desktop app
5
5
  Author: noumanaziz2128
6
6
  License-Expression: LicenseRef-Proprietary
@@ -7,8 +7,10 @@ devops_bot_sdk.egg-info/entry_points.txt
7
7
  devops_bot_sdk.egg-info/requires.txt
8
8
  devops_bot_sdk.egg-info/top_level.txt
9
9
  sdk/__init__.py
10
+ sdk/agent_builder.py
10
11
  sdk/agent_sharing.py
11
12
  sdk/agentd.py
13
+ sdk/ai_connectors.py
12
14
  sdk/browser_profile.py
13
15
  sdk/claude_usage.py
14
16
  sdk/cli.py
@@ -157,11 +159,13 @@ sdk/ui/swagger.py
157
159
  sdk/ui/static/agents.html
158
160
  sdk/ui/static/app.js
159
161
  sdk/ui/static/chat.html
162
+ sdk/ui/static/connectors.html
160
163
  sdk/ui/static/custom-agents.html
161
164
  sdk/ui/static/default-agents.html
162
165
  sdk/ui/static/faqs.html
163
166
  sdk/ui/static/help.html
164
167
  sdk/ui/static/index.html
168
+ sdk/ui/static/new-agent.html
165
169
  sdk/ui/static/report.html
166
170
  sdk/ui/static/runs.html
167
171
  sdk/ui/static/schedules.html
@@ -177,6 +181,7 @@ tests/test_activity_os_setup.py
177
181
  tests/test_activity_pipeline.py
178
182
  tests/test_agent_activity.py
179
183
  tests/test_agent_activity_tracking.py
184
+ tests/test_agent_builder.py
180
185
  tests/test_agent_chat_features.py
181
186
  tests/test_agent_crud_cli.py
182
187
  tests/test_agent_listing.py
@@ -187,6 +192,7 @@ tests/test_agent_schedules.py
187
192
  tests/test_agent_sharing.py
188
193
  tests/test_agent_workspace_settings.py
189
194
  tests/test_agents_connectors_builder.py
195
+ tests/test_ai_connectors.py
190
196
  tests/test_allowed_tools_config.py
191
197
  tests/test_approval_park.py
192
198
  tests/test_auto_agent_dispatch.py
@@ -198,6 +204,7 @@ tests/test_claude_usage_gate.py
198
204
  tests/test_client_jira_projects.py
199
205
  tests/test_config_token_diagnostics.py
200
206
  tests/test_configure_token_owner.py
207
+ tests/test_connectors_runner.py
201
208
  tests/test_console_encoding.py
202
209
  tests/test_crash_recovery.py
203
210
  tests/test_create_safe_retry.py
@@ -213,6 +220,7 @@ tests/test_fallback_cli_upgrade.py
213
220
  tests/test_fallback_folder_changes.py
214
221
  tests/test_fallback_parity.py
215
222
  tests/test_fallback_rate_limit.py
223
+ tests/test_fallback_streaming.py
216
224
  tests/test_faqs.py
217
225
  tests/test_firewall_open_on_update.py
218
226
  tests/test_formats.py
@@ -1,6 +1,6 @@
1
1
  """AgentOS Desktop SDK — thin HTTPS/SSE client for the Electron app.
2
2
 
3
- Version: 1.7.50
3
+ Version: 1.7.56
4
4
 
5
5
  Public surface:
6
6
  BackendClient.from_config() — create client from ~/.agentos/config.toml
@@ -34,7 +34,7 @@ Rules:
34
34
  - All data egress through submit_webhook only
35
35
  """
36
36
 
37
- __version__ = "1.7.50" # SINGLE SOURCE OF TRUTH — bump on every change; pyproject,
37
+ __version__ = "1.7.56" # SINGLE SOURCE OF TRUTH — bump on every change; pyproject,
38
38
  __author__ = "AgentOS" # sdk.client.SDK_VERSION and the UI server version all read this.
39
39
 
40
40
  from sdk.client import BackendClient
@@ -0,0 +1,354 @@
1
+ """Create a custom agent by CHATTING, or from a TEMPLATE — the one implementation
2
+ behind ``agentos agent new`` and the panel's **New agent** page.
3
+
4
+ Chat
5
+ Like the New work chat that turns a conversation into a plan and tickets, the
6
+ builder asks ONE follow-up question at a time until it knows what the agent is
7
+ for, what it gets as input (``{{variables}}``), what it hands back, which of
8
+ the person's connectors it should read, and what it must never do. Each turn
9
+ returns the reply, the draft so far and what is still missing; when nothing is
10
+ missing it shows the finished draft and the person creates it.
11
+
12
+ Stateless, like ``sdk.intake``: every turn carries ``history`` and ``draft``
13
+ back, so a conversation can continue from the CLI or the panel and nothing
14
+ has to survive anywhere between turns. The questions come from the local
15
+ engine (claude, else the AI Draftsman fallback) with no tools and no
16
+ connectors — it only writes text.
17
+
18
+ Templates
19
+ :data:`TEMPLATES` — ready agents (prompt, inputs, suggested connectors) the
20
+ person names, edits and creates without a conversation.
21
+
22
+ Connectors
23
+ An agent may read some of the person's CONNECTED AI Draftsman connectors (only
24
+ those are ever offered; never the catalogue). The choice is stored on the
25
+ agent as ``media.connectors``: absent = Auto (any connected one), a list =
26
+ only those, ``[]`` = none. Runs honour it (``local_exec.connector_scope``) and
27
+ connectors are read-only in every run (``sdk.crucial``).
28
+
29
+ Creating goes through ``sdk.custom_agents.create_agent`` — the same validation,
30
+ evaluation and backend call as ``agentos agent create``.
31
+ """
32
+ from __future__ import annotations
33
+
34
+ import json
35
+ import re
36
+ from pathlib import Path
37
+ from typing import Any
38
+
39
+ #: What the chat must learn before the agent can be created.
40
+ REQUIRED = ("name", "purpose", "system_prompt")
41
+
42
+ #: Connector choice values on a draft.
43
+ CONNECTORS_AUTO = "auto"
44
+
45
+ TEMPLATES: list[dict[str, Any]] = [
46
+ {
47
+ "id": "release-notes",
48
+ "name": "Release notes writer",
49
+ "summary": "Turns merged PRs or a changelog into clear release notes for users.",
50
+ "connectors": ["github"],
51
+ "variables": [
52
+ {"name": "repo", "label": "Repository", "description": "owner/name of the repo", "type": "text"},
53
+ {"name": "since", "label": "Since", "description": "tag, date or commit to start from", "type": "text"},
54
+ ],
55
+ "system_prompt": (
56
+ "You write release notes for the repository {{repo}} covering every change since {{since}}.\n\n"
57
+ "## Goal\nProduce release notes a non-developer user can read in two minutes.\n\n"
58
+ "## Steps\n1. Collect the merged pull requests and commits since {{since}} (read-only).\n"
59
+ "2. Group them into New, Improved, Fixed and Breaking changes.\n"
60
+ "3. Write one plain sentence per change, user-facing, no internal jargon.\n\n"
61
+ "## Output\nMarkdown with the four sections (omit empty ones) and a one-line summary at the top.\n\n"
62
+ "## Rules\nNever invent a change. Link each item to its PR when there is one."
63
+ ),
64
+ },
65
+ {
66
+ "id": "slack-digest",
67
+ "name": "Slack channel digest",
68
+ "summary": "Summarises what happened in a Slack channel: decisions, open questions, action items.",
69
+ "connectors": ["slack"],
70
+ "variables": [
71
+ {"name": "channel", "label": "Channel", "description": "e.g. #dev", "type": "text"},
72
+ {"name": "period", "label": "Period", "description": "e.g. yesterday, last 7 days", "type": "text"},
73
+ ],
74
+ "system_prompt": (
75
+ "You summarise the Slack channel {{channel}} for {{period}}.\n\n"
76
+ "## Goal\nSomeone who missed the channel knows in one minute what was decided and what is open.\n\n"
77
+ "## Steps\n1. Read the channel's messages for {{period}} through the Slack connector (read-only).\n"
78
+ "2. Pick out decisions, open questions, blockers and action items with their owners.\n\n"
79
+ "## Output\nMarkdown: Decisions, Open questions, Action items (owner — item), Notable threads.\n\n"
80
+ "## Rules\nQuote nobody out of context. Never post to Slack; you only read."
81
+ ),
82
+ },
83
+ {
84
+ "id": "jira-triage",
85
+ "name": "Jira issue triage",
86
+ "summary": "Reads an issue, finds duplicates and related work, proposes priority and next step.",
87
+ "connectors": ["jira"],
88
+ "variables": [
89
+ {"name": "issue_key", "label": "Issue key", "description": "e.g. MWM-217", "type": "text"},
90
+ ],
91
+ "system_prompt": (
92
+ "You triage the Jira issue {{issue_key}}.\n\n"
93
+ "## Goal\nA clear recommendation the team can act on without re-reading the issue.\n\n"
94
+ "## Steps\n1. Read {{issue_key}} and its comments through the Jira connector (read-only).\n"
95
+ "2. Search for duplicates and related issues.\n"
96
+ "3. Judge impact and urgency.\n\n"
97
+ "## Output\nMarkdown: Summary, Likely cause, Duplicates/related (keys), Suggested priority with "
98
+ "reason, Next step.\n\n"
99
+ "## Rules\nYou do not change the issue; you recommend. Say \"unknown\" rather than guess."
100
+ ),
101
+ },
102
+ {
103
+ "id": "inbox-brief",
104
+ "name": "Inbox brief",
105
+ "summary": "Reads recent email on a topic and briefs you: what needs a reply, what can wait.",
106
+ "connectors": ["gmail", "outlook"],
107
+ "variables": [
108
+ {"name": "topic", "label": "Topic or sender", "description": "what to look for", "type": "text"},
109
+ ],
110
+ "system_prompt": (
111
+ "You brief the user on recent email about {{topic}}.\n\n"
112
+ "## Goal\nThe user knows which emails need them today and why.\n\n"
113
+ "## Steps\n1. Search the mailbox for {{topic}} through the connected mail connector (read-only).\n"
114
+ "2. Read the threads and decide which need a reply, a decision, or nothing.\n\n"
115
+ "## Output\nMarkdown table: From, Subject, Needs (reply/decision/none), Why, Suggested reply (one "
116
+ "line).\n\n"
117
+ "## Rules\nNever send, move or delete mail. Do not repeat sensitive content in full."
118
+ ),
119
+ },
120
+ {
121
+ "id": "code-reviewer",
122
+ "name": "Code reviewer",
123
+ "summary": "Reviews a branch or folder for bugs, risky changes and missing tests.",
124
+ "connectors": [],
125
+ "variables": [
126
+ {"name": "path", "label": "Repo path", "description": "local path of the repository", "type": "text"},
127
+ {"name": "base", "label": "Base branch", "description": "e.g. main", "type": "text"},
128
+ ],
129
+ "system_prompt": (
130
+ "You review the changes in {{path}} against the branch {{base}}.\n\n"
131
+ "## Goal\nFind real problems before they merge: bugs, security issues, missing tests.\n\n"
132
+ "## Steps\n1. Diff the working branch against {{base}}.\n2. Read each changed file in context.\n"
133
+ "3. Check edge cases, error handling and tests for the changed behaviour.\n\n"
134
+ "## Output\nMarkdown list of findings, most severe first: file:line, problem, why it matters, "
135
+ "suggested fix.\n\n## Rules\nReport only what you verified in the code. Do not edit files."
136
+ ),
137
+ },
138
+ {
139
+ "id": "weekly-report",
140
+ "name": "Weekly status report",
141
+ "summary": "Writes a weekly status update from tickets and team chat.",
142
+ "connectors": ["jira", "slack"],
143
+ "variables": [
144
+ {"name": "team", "label": "Team or project", "description": "whose week to report", "type": "text"},
145
+ ],
146
+ "system_prompt": (
147
+ "You write the weekly status report for {{team}}.\n\n"
148
+ "## Goal\nA manager reads it in two minutes and knows progress, risks and next week's plan.\n\n"
149
+ "## Steps\n1. Read this week's tickets for {{team}} (done, in progress, blocked) through the "
150
+ "connected tracker (read-only).\n2. Read the team channel for decisions and blockers (read-only).\n\n"
151
+ "## Output\nMarkdown: Highlights, Done, In progress, Risks & blockers, Next week.\n\n"
152
+ "## Rules\nFacts only, with ticket keys. Never post the report anywhere; return it."
153
+ ),
154
+ },
155
+ ]
156
+
157
+
158
+ class BuilderError(RuntimeError):
159
+ """The builder could not carry the conversation forward."""
160
+
161
+
162
+ def template(template_id: str) -> dict | None:
163
+ return next((t for t in TEMPLATES if t["id"] == template_id), None)
164
+
165
+
166
+ def templates_with_connectors(connected: list[dict]) -> list[dict]:
167
+ """The templates, each marked with which of its suggested connectors the person
168
+ actually has (only those are ever pre-selected)."""
169
+ have = {str(c.get("connector", "")).lower() for c in connected}
170
+ out = []
171
+ for t in TEMPLATES:
172
+ t2 = dict(t)
173
+ t2["connected"] = [c for c in t["connectors"] if c in have]
174
+ t2["missing"] = [c for c in t["connectors"] if c not in have]
175
+ out.append(t2)
176
+ return out
177
+
178
+
179
+ def draft_from_template(template_id: str, *, name: str | None = None,
180
+ connectors: list[str] | str | None = None,
181
+ connected: list[dict] | None = None) -> dict:
182
+ """A draft from a template. ``connectors`` None = the template's suggestion
183
+ limited to what is connected (Auto when it suggests none)."""
184
+ t = template(template_id)
185
+ if t is None:
186
+ raise BuilderError(f"no template {template_id!r} — see `agentos agent templates`")
187
+ have = {str(c.get("connector", "")).lower() for c in (connected or [])}
188
+ if connectors is None:
189
+ conns: list[str] | str = [c for c in t["connectors"] if c in have] if t["connectors"] else CONNECTORS_AUTO
190
+ else:
191
+ conns = connectors
192
+ return {
193
+ "name": name or t["name"],
194
+ "purpose": t["summary"],
195
+ "system_prompt": t["system_prompt"],
196
+ "variables": [dict(v) for v in t["variables"]],
197
+ "connectors": conns,
198
+ "template": t["id"],
199
+ }
200
+
201
+
202
+ # ── The chat ──────────────────────────────────────────────────────────────────
203
+
204
+ _SYSTEM = """You help a person design ONE AI agent for the DevOps Bot platform, by chatting.
205
+ Ask ONE short follow-up question at a time until these are clear:
206
+ 1. purpose — what the agent does and for whom;
207
+ 2. inputs — what changes each run; these become {{variables}} in the prompt (snake_case names);
208
+ 3. output — what it hands back and in what shape;
209
+ 4. connectors — which of the person's CONNECTED connectors it should read (see the list below;
210
+ offer ONLY these, never any other service), or "auto" (any connected one), or none;
211
+ 5. rules — what it must never do, and how to handle missing information;
212
+ 6. name — 3-64 characters, letters, digits, spaces, _ . -.
213
+ Connectors are READ-ONLY for agents: they can read (list, get, search) but never post, send or create.
214
+ Do not ask about things the person already said; propose sensible defaults and ask them to confirm.
215
+ When everything is clear, write the full system prompt (sections: Goal, Steps, Output, Rules; at
216
+ least 60 words; use the {{variables}}), set "ready": true and, in "reply", show a short summary and
217
+ ask the person to press Create (or say what to change).
218
+
219
+ Answer with ONE JSON object and nothing else:
220
+ {"reply": "<your message to the person>",
221
+ "draft": {"name": "...", "purpose": "...", "system_prompt": "...",
222
+ "variables": [{"name": "...", "label": "...", "description": "...", "type": "text"}],
223
+ "connectors": "auto" | ["slug", ...]},
224
+ "missing": ["purpose" | "inputs" | "output" | "connectors" | "rules" | "name"],
225
+ "ready": true | false}
226
+ Keep fields you already know in "draft" on every turn."""
227
+
228
+
229
+ def build_turn_prompt(message: str, history: list[dict], draft: dict, connected: list[dict]) -> str:
230
+ conns = ", ".join(f"{c['connector']} ({c.get('name') or c['connector']})" for c in connected) or "none"
231
+ convo = "\n".join(f"{'PERSON' if h.get('role') == 'user' else 'YOU'}: {h.get('content', '')}"
232
+ for h in history[-20:])
233
+ return (f"{_SYSTEM}\n\nThe person's CONNECTED connectors: {conns}.\n\n"
234
+ f"Draft so far (JSON): {json.dumps(draft or {}, ensure_ascii=False)}\n\n"
235
+ f"Conversation so far:\n{convo or '(none)'}\n\nPERSON: {message}\n")
236
+
237
+
238
+ _JSON = re.compile(r"\{.*\}", re.S)
239
+
240
+
241
+ def parse_turn(text: str, draft: dict, connected: list[dict]) -> dict:
242
+ """The engine's answer → ``{reply, draft, missing, ready}``; tolerant of prose
243
+ around the JSON. Connectors are cut down to CONNECTED ones; the draft keeps
244
+ every field it already had."""
245
+ data: dict = {}
246
+ for candidate in ([p[4:] if p.startswith("json") else p for p in (text or "").split("```")]
247
+ + [text or ""]):
248
+ m = _JSON.search(candidate.strip())
249
+ if not m:
250
+ continue
251
+ try:
252
+ data = json.loads(m.group(0))
253
+ break
254
+ except ValueError:
255
+ continue
256
+ if not isinstance(data, dict) or not data:
257
+ return {"reply": (text or "").strip() or "Sorry — could you say that again?",
258
+ "draft": draft, "missing": missing(draft), "ready": False}
259
+ new = dict(draft or {})
260
+ for k, v in (data.get("draft") or {}).items():
261
+ if v not in (None, "", []):
262
+ new[k] = v
263
+ new["connectors"] = normalise_connectors(new.get("connectors", CONNECTORS_AUTO), connected)
264
+ miss = missing(new)
265
+ return {"reply": str(data.get("reply") or "").strip(), "draft": new, "missing": miss,
266
+ "ready": bool(data.get("ready")) and not miss}
267
+
268
+
269
+ def normalise_connectors(value: Any, connected: list[dict]) -> list[str] | str:
270
+ """"auto" stays auto; a list keeps only CONNECTED slugs (lower-case, de-duplicated)."""
271
+ if value in (None, CONNECTORS_AUTO) or (isinstance(value, str) and value.strip().lower() == CONNECTORS_AUTO):
272
+ return CONNECTORS_AUTO
273
+ if isinstance(value, str):
274
+ value = [v for v in re.split(r"[,\s]+", value) if v]
275
+ have = {str(c.get("connector", "")).lower() for c in connected}
276
+ out: list[str] = []
277
+ for v in value or []:
278
+ slug = str(v).strip().lstrip("@").lower()
279
+ if slug in have and slug not in out:
280
+ out.append(slug)
281
+ return out
282
+
283
+
284
+ def missing(draft: dict) -> list[str]:
285
+ from sdk import custom_agents
286
+
287
+ out = []
288
+ if not str((draft or {}).get("purpose") or "").strip():
289
+ out.append("purpose")
290
+ if custom_agents.validate_system_prompt(str((draft or {}).get("system_prompt") or "")):
291
+ out.append("system_prompt")
292
+ if custom_agents.validate_name((draft or {}).get("name")):
293
+ out.append("name")
294
+ return out
295
+
296
+
297
+ async def turn(message: str, *, history: list[dict] | None = None, draft: dict | None = None,
298
+ connected: list[dict] | None = None) -> dict:
299
+ """One chat turn → ``{reply, draft, missing, ready, history}``."""
300
+ from sdk.local_exec import connector_scope, run_claude_local
301
+
302
+ history = list(history or [])
303
+ draft = dict(draft or {})
304
+ if connected is None:
305
+ from sdk import ai_connectors
306
+ connected = ai_connectors.connected_or_empty()
307
+ prompt = build_turn_prompt(message, history, draft, connected)
308
+ with connector_scope([]): # the builder only writes text; it reads nothing
309
+ result = await run_claude_local(prompt, str(Path.home() / ".agentos"), allowed_tools=["Read"])
310
+ if not result.get("ok"):
311
+ raise BuilderError(result.get("error") or "the engine did not answer")
312
+ out = parse_turn(result.get("result") or "", draft, connected)
313
+ out["history"] = history + [{"role": "user", "content": message},
314
+ {"role": "assistant", "content": out["reply"]}]
315
+ return out
316
+
317
+
318
+ def to_payload(draft: dict) -> dict:
319
+ """A finished draft → the ``POST /api/v1/agents/custom`` body."""
320
+ from sdk.agents.prompt_vars import extract_variables
321
+
322
+ prompt = str(draft.get("system_prompt") or "").strip()
323
+ declared = {v.get("name"): v for v in draft.get("variables") or [] if isinstance(v, dict) and v.get("name")}
324
+ variables = []
325
+ for name in extract_variables(prompt):
326
+ v = declared.get(name) or {}
327
+ variables.append({"name": name, "label": v.get("label") or name.replace("_", " ").capitalize(),
328
+ "description": v.get("description") or "", "type": v.get("type") or "text"})
329
+ media: dict = {}
330
+ conns = draft.get("connectors", CONNECTORS_AUTO)
331
+ if conns != CONNECTORS_AUTO:
332
+ media["connectors"] = list(conns or [])
333
+ if draft.get("template"):
334
+ media["template"] = draft["template"]
335
+ return {"name": str(draft.get("name") or "").strip(),
336
+ "prompt": {"system_prompt": prompt, "variables": variables},
337
+ "skills": [], "secrets": [], "media": media}
338
+
339
+
340
+ async def create(client, draft: dict) -> dict:
341
+ """Create the agent from a finished draft (chat or template). Same result dict
342
+ as ``custom_agents.create_agent``."""
343
+ from sdk import custom_agents
344
+
345
+ miss = missing(draft)
346
+ if miss:
347
+ return {"ok": False, "error": "not finished yet — still missing: " + ", ".join(miss), "warnings": []}
348
+ return await custom_agents.create_agent(client, to_payload(draft))
349
+
350
+
351
+ def describe_connectors(value: Any) -> str:
352
+ if value in (None, CONNECTORS_AUTO):
353
+ return "auto (any of your connected connectors)"
354
+ return ", ".join(value) if value else "none"
@@ -7,7 +7,7 @@ from pathlib import Path
7
7
  from typing import TYPE_CHECKING, Any, Awaitable, Callable
8
8
 
9
9
  from sdk import config
10
- from sdk.local_exec import run_claude_local
10
+ from sdk.local_exec import connector_scope, run_claude_local
11
11
 
12
12
  if TYPE_CHECKING:
13
13
  from sdk.agents.manifest import AgentManifest
@@ -113,10 +113,12 @@ async def run(
113
113
  # this module does not attempt to work around that in the meantime, so the
114
114
  # argument is currently unused.
115
115
 
116
- return await run_claude_local(
117
- prompt=full_prompt,
118
- project_path=project_path,
119
- allowed_tools=manifest.allowed_tools or None,
120
- on_event=on_event,
121
- extra_env=extra_env,
122
- )
116
+ # The agent reads only the connectors it selected (None = any connected).
117
+ with connector_scope(getattr(manifest, "connectors", None)):
118
+ return await run_claude_local(
119
+ prompt=full_prompt,
120
+ project_path=project_path,
121
+ allowed_tools=manifest.allowed_tools or None,
122
+ on_event=on_event,
123
+ extra_env=extra_env,
124
+ )
@@ -123,6 +123,9 @@ class AgentManifest(BaseModel):
123
123
 
124
124
  prompt: str = ""
125
125
  allowed_tools: list[str] = []
126
+ #: The AI Draftsman connectors this agent may read (``media.connectors`` on the
127
+ #: backend row): None = any the person has connected (Auto), [] = none.
128
+ connectors: list[str] | None = None
126
129
 
127
130
  approval: ApprovalSpec = Field(default_factory=ApprovalSpec)
128
131
  budget: BudgetSpec = Field(default_factory=BudgetSpec)
@@ -254,6 +257,11 @@ def manifest_from_backend_row(row: dict) -> AgentManifest | None:
254
257
  if s_name and s_body:
255
258
  prompt = f"{prompt}\n\n## Skill: {s_name}\n\n{s_body}"
256
259
 
260
+ media = row.get("media") if isinstance(row.get("media"), dict) else {}
261
+ raw_conns = media.get("connectors")
262
+ connectors = ([str(c).strip().lower() for c in raw_conns if str(c).strip()]
263
+ if isinstance(raw_conns, list) else None)
264
+
257
265
  try:
258
266
  return AgentManifest(
259
267
  name=name,
@@ -261,6 +269,7 @@ def manifest_from_backend_row(row: dict) -> AgentManifest | None:
261
269
  engine="claude_code",
262
270
  trigger=TriggerSpec(type="manual"),
263
271
  prompt=prompt,
272
+ connectors=connectors,
264
273
  )
265
274
  except ValidationError as exc:
266
275
  logger.warning("backend agent '%s' is not runnable: %s", name, exc)