crewplane 0.1.0__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 (417) hide show
  1. crewplane-0.1.0/.gitignore +127 -0
  2. crewplane-0.1.0/LICENSE +201 -0
  3. crewplane-0.1.0/PKG-INFO +211 -0
  4. crewplane-0.1.0/README.md +184 -0
  5. crewplane-0.1.0/pyproject.toml +70 -0
  6. crewplane-0.1.0/src/crewplane/__init__.py +3 -0
  7. crewplane-0.1.0/src/crewplane/adapters/__init__.py +1 -0
  8. crewplane-0.1.0/src/crewplane/adapters/artifacts/__init__.py +3 -0
  9. crewplane-0.1.0/src/crewplane/adapters/artifacts/filesystem.py +86 -0
  10. crewplane-0.1.0/src/crewplane/adapters/invokers/__init__.py +4 -0
  11. crewplane-0.1.0/src/crewplane/adapters/invokers/cli.py +142 -0
  12. crewplane-0.1.0/src/crewplane/adapters/invokers/cli_invoker/__init__.py +13 -0
  13. crewplane-0.1.0/src/crewplane/adapters/invokers/cli_invoker/capabilities.py +243 -0
  14. crewplane-0.1.0/src/crewplane/adapters/invokers/mock.py +62 -0
  15. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/__init__.py +4 -0
  16. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/context.py +44 -0
  17. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/fixtures.py +42 -0
  18. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/invoker.py +236 -0
  19. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/logging.py +80 -0
  20. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/mutations.py +201 -0
  21. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/options.py +142 -0
  22. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/outputs.py +39 -0
  23. crewplane-0.1.0/src/crewplane/adapters/invokers/mock_invoker/selectors.py +86 -0
  24. crewplane-0.1.0/src/crewplane/adapters/ui/__init__.py +4 -0
  25. crewplane-0.1.0/src/crewplane/adapters/ui/null.py +86 -0
  26. crewplane-0.1.0/src/crewplane/adapters/ui/tmux.py +158 -0
  27. crewplane-0.1.0/src/crewplane/architecture/__init__.py +13 -0
  28. crewplane-0.1.0/src/crewplane/architecture/contracts/__init__.py +130 -0
  29. crewplane-0.1.0/src/crewplane/architecture/contracts/integration.py +99 -0
  30. crewplane-0.1.0/src/crewplane/architecture/contracts/integration_options.py +51 -0
  31. crewplane-0.1.0/src/crewplane/architecture/contracts/invocation.py +438 -0
  32. crewplane-0.1.0/src/crewplane/architecture/contracts/json.py +5 -0
  33. crewplane-0.1.0/src/crewplane/architecture/contracts/observer.py +49 -0
  34. crewplane-0.1.0/src/crewplane/architecture/errors.py +17 -0
  35. crewplane-0.1.0/src/crewplane/architecture/loader.py +212 -0
  36. crewplane-0.1.0/src/crewplane/architecture/ports/__init__.py +14 -0
  37. crewplane-0.1.0/src/crewplane/architecture/ports/artifacts.py +161 -0
  38. crewplane-0.1.0/src/crewplane/architecture/ports/invoker.py +29 -0
  39. crewplane-0.1.0/src/crewplane/architecture/ports/runtime.py +41 -0
  40. crewplane-0.1.0/src/crewplane/architecture/ports/ui.py +49 -0
  41. crewplane-0.1.0/src/crewplane/architecture/registry.py +35 -0
  42. crewplane-0.1.0/src/crewplane/artifacts/__init__.py +23 -0
  43. crewplane-0.1.0/src/crewplane/artifacts/atomic.py +93 -0
  44. crewplane-0.1.0/src/crewplane/artifacts/directory_manager.py +151 -0
  45. crewplane-0.1.0/src/crewplane/artifacts/failure_artifacts.py +40 -0
  46. crewplane-0.1.0/src/crewplane/artifacts/generated_files/__init__.py +1 -0
  47. crewplane-0.1.0/src/crewplane/artifacts/generated_files/catalog.py +426 -0
  48. crewplane-0.1.0/src/crewplane/artifacts/generated_files/detection.py +295 -0
  49. crewplane-0.1.0/src/crewplane/artifacts/locks/__init__.py +329 -0
  50. crewplane-0.1.0/src/crewplane/artifacts/locks/manifest.py +178 -0
  51. crewplane-0.1.0/src/crewplane/artifacts/locks/process_identity.py +57 -0
  52. crewplane-0.1.0/src/crewplane/artifacts/manager.py +233 -0
  53. crewplane-0.1.0/src/crewplane/artifacts/naming.py +139 -0
  54. crewplane-0.1.0/src/crewplane/artifacts/results/__init__.py +1 -0
  55. crewplane-0.1.0/src/crewplane/artifacts/results/aggregation.py +136 -0
  56. crewplane-0.1.0/src/crewplane/artifacts/results/findings.py +95 -0
  57. crewplane-0.1.0/src/crewplane/artifacts/results/review_loop_status.py +207 -0
  58. crewplane-0.1.0/src/crewplane/artifacts/results/selection.py +86 -0
  59. crewplane-0.1.0/src/crewplane/artifacts/results/stage_document.py +80 -0
  60. crewplane-0.1.0/src/crewplane/artifacts/results/stage_outputs.py +16 -0
  61. crewplane-0.1.0/src/crewplane/artifacts/results/writer.py +169 -0
  62. crewplane-0.1.0/src/crewplane/artifacts/resume/__init__.py +1 -0
  63. crewplane-0.1.0/src/crewplane/artifacts/resume/decision.py +39 -0
  64. crewplane-0.1.0/src/crewplane/artifacts/resume/generated_files.py +71 -0
  65. crewplane-0.1.0/src/crewplane/artifacts/resume/hydration.py +474 -0
  66. crewplane-0.1.0/src/crewplane/artifacts/resume/validation.py +349 -0
  67. crewplane-0.1.0/src/crewplane/artifacts/run_history.py +218 -0
  68. crewplane-0.1.0/src/crewplane/artifacts/safe_files.py +59 -0
  69. crewplane-0.1.0/src/crewplane/artifacts/workspace/__init__.py +1 -0
  70. crewplane-0.1.0/src/crewplane/artifacts/workspace/bundle_validation.py +450 -0
  71. crewplane-0.1.0/src/crewplane/artifacts/workspace/git_blob_hash.py +98 -0
  72. crewplane-0.1.0/src/crewplane/artifacts/workspace/node_state.py +332 -0
  73. crewplane-0.1.0/src/crewplane/artifacts/workspace/rendered_file_validation.py +302 -0
  74. crewplane-0.1.0/src/crewplane/artifacts/workspace/source_validation.py +399 -0
  75. crewplane-0.1.0/src/crewplane/artifacts/workspace/state/__init__.py +5 -0
  76. crewplane-0.1.0/src/crewplane/artifacts/workspace/state/expected_set.py +172 -0
  77. crewplane-0.1.0/src/crewplane/artifacts/workspace/state/fields.py +50 -0
  78. crewplane-0.1.0/src/crewplane/artifacts/workspace/state/invocations.py +282 -0
  79. crewplane-0.1.0/src/crewplane/artifacts/workspace/state/validation.py +497 -0
  80. crewplane-0.1.0/src/crewplane/bootstrap/__init__.py +11 -0
  81. crewplane-0.1.0/src/crewplane/bootstrap/container.py +113 -0
  82. crewplane-0.1.0/src/crewplane/bootstrap/runtime_config.py +136 -0
  83. crewplane-0.1.0/src/crewplane/cli/__init__.py +3 -0
  84. crewplane-0.1.0/src/crewplane/cli/app.py +422 -0
  85. crewplane-0.1.0/src/crewplane/cli/cleanup.py +300 -0
  86. crewplane-0.1.0/src/crewplane/cli/dry_run.py +182 -0
  87. crewplane-0.1.0/src/crewplane/cli/paths.py +104 -0
  88. crewplane-0.1.0/src/crewplane/cli/run/__init__.py +1 -0
  89. crewplane-0.1.0/src/crewplane/cli/run/best_effort_thread.py +38 -0
  90. crewplane-0.1.0/src/crewplane/cli/run/branch_export_output.py +125 -0
  91. crewplane-0.1.0/src/crewplane/cli/run/components.py +65 -0
  92. crewplane-0.1.0/src/crewplane/cli/run/context.py +62 -0
  93. crewplane-0.1.0/src/crewplane/cli/run/execution.py +298 -0
  94. crewplane-0.1.0/src/crewplane/cli/run/execution_helpers.py +175 -0
  95. crewplane-0.1.0/src/crewplane/cli/run/historical_summary.py +360 -0
  96. crewplane-0.1.0/src/crewplane/cli/run/manifest.py +95 -0
  97. crewplane-0.1.0/src/crewplane/cli/run/observability.py +385 -0
  98. crewplane-0.1.0/src/crewplane/cli/run/preflight.py +378 -0
  99. crewplane-0.1.0/src/crewplane/cli/run/preflight_success.py +89 -0
  100. crewplane-0.1.0/src/crewplane/cli/run/resume.py +300 -0
  101. crewplane-0.1.0/src/crewplane/cli/run/topology.py +51 -0
  102. crewplane-0.1.0/src/crewplane/cli/run/workspace/__init__.py +1 -0
  103. crewplane-0.1.0/src/crewplane/cli/run/workspace/cache_policy.py +67 -0
  104. crewplane-0.1.0/src/crewplane/cli/run/workspace/disk_policy.py +192 -0
  105. crewplane-0.1.0/src/crewplane/cli/run/workspace/filesystem_policy.py +97 -0
  106. crewplane-0.1.0/src/crewplane/cli/run/workspace/git_attributes.py +150 -0
  107. crewplane-0.1.0/src/crewplane/cli/run/workspace/git_index.py +162 -0
  108. crewplane-0.1.0/src/crewplane/cli/run/workspace/git_source.py +330 -0
  109. crewplane-0.1.0/src/crewplane/cli/run/workspace/preflight_diagnostics.py +57 -0
  110. crewplane-0.1.0/src/crewplane/cli/run/workspace/repo_policy.py +420 -0
  111. crewplane-0.1.0/src/crewplane/cli/run/workspace/source_policy.py +322 -0
  112. crewplane-0.1.0/src/crewplane/cli/run/workspace/source_types.py +28 -0
  113. crewplane-0.1.0/src/crewplane/cli/templates.py +75 -0
  114. crewplane-0.1.0/src/crewplane/cli/workflow_runner.py +23 -0
  115. crewplane-0.1.0/src/crewplane/core/__init__.py +5 -0
  116. crewplane-0.1.0/src/crewplane/core/config.py +327 -0
  117. crewplane-0.1.0/src/crewplane/core/execution_state.py +194 -0
  118. crewplane-0.1.0/src/crewplane/core/file_hashing.py +18 -0
  119. crewplane-0.1.0/src/crewplane/core/platform.py +12 -0
  120. crewplane-0.1.0/src/crewplane/core/preflight/__init__.py +67 -0
  121. crewplane-0.1.0/src/crewplane/core/preflight/compile_state.py +259 -0
  122. crewplane-0.1.0/src/crewplane/core/preflight/compiler.py +385 -0
  123. crewplane-0.1.0/src/crewplane/core/preflight/dependency_edges.py +56 -0
  124. crewplane-0.1.0/src/crewplane/core/preflight/diagnostics.py +62 -0
  125. crewplane-0.1.0/src/crewplane/core/preflight/execution_nodes.py +183 -0
  126. crewplane-0.1.0/src/crewplane/core/preflight/fragment_handlers.py +408 -0
  127. crewplane-0.1.0/src/crewplane/core/preflight/input_sources.py +218 -0
  128. crewplane-0.1.0/src/crewplane/core/preflight/models.py +483 -0
  129. crewplane-0.1.0/src/crewplane/core/preflight/plan_contract.py +160 -0
  130. crewplane-0.1.0/src/crewplane/core/preflight/plan_signatures.py +215 -0
  131. crewplane-0.1.0/src/crewplane/core/preflight/prompt_transport_warnings.py +38 -0
  132. crewplane-0.1.0/src/crewplane/core/preflight/references.py +76 -0
  133. crewplane-0.1.0/src/crewplane/core/preflight/render_plans.py +382 -0
  134. crewplane-0.1.0/src/crewplane/core/preflight/runner.py +17 -0
  135. crewplane-0.1.0/src/crewplane/core/preflight/runtime_config/__init__.py +403 -0
  136. crewplane-0.1.0/src/crewplane/core/preflight/runtime_config/redaction.py +314 -0
  137. crewplane-0.1.0/src/crewplane/core/preflight/secrets.py +206 -0
  138. crewplane-0.1.0/src/crewplane/core/preflight/serialization.py +48 -0
  139. crewplane-0.1.0/src/crewplane/core/preflight/signatures.py +11 -0
  140. crewplane-0.1.0/src/crewplane/core/preflight/source.py +156 -0
  141. crewplane-0.1.0/src/crewplane/core/preflight/static_resources.py +179 -0
  142. crewplane-0.1.0/src/crewplane/core/preflight/token_catalog.py +48 -0
  143. crewplane-0.1.0/src/crewplane/core/preflight/validation.py +123 -0
  144. crewplane-0.1.0/src/crewplane/core/preflight/value_fingerprints.py +79 -0
  145. crewplane-0.1.0/src/crewplane/core/preflight/variables.py +7 -0
  146. crewplane-0.1.0/src/crewplane/core/preflight/workspace/__init__.py +1 -0
  147. crewplane-0.1.0/src/crewplane/core/preflight/workspace/files/__init__.py +1 -0
  148. crewplane-0.1.0/src/crewplane/core/preflight/workspace/files/git_reads.py +122 -0
  149. crewplane-0.1.0/src/crewplane/core/preflight/workspace/files/locators.py +412 -0
  150. crewplane-0.1.0/src/crewplane/core/preflight/workspace/files/paths.py +71 -0
  151. crewplane-0.1.0/src/crewplane/core/preflight/workspace/files/selection.py +75 -0
  152. crewplane-0.1.0/src/crewplane/core/preflight/workspace/models.py +96 -0
  153. crewplane-0.1.0/src/crewplane/core/preflight/workspace/observability.py +224 -0
  154. crewplane-0.1.0/src/crewplane/core/preflight/workspace/records.py +63 -0
  155. crewplane-0.1.0/src/crewplane/core/preflight/workspace/snapshot_guard.py +44 -0
  156. crewplane-0.1.0/src/crewplane/core/prompt_segments.py +55 -0
  157. crewplane-0.1.0/src/crewplane/core/provider_names.py +12 -0
  158. crewplane-0.1.0/src/crewplane/core/review_contract.py +62 -0
  159. crewplane-0.1.0/src/crewplane/core/state_paths.py +31 -0
  160. crewplane-0.1.0/src/crewplane/core/token_budget.py +94 -0
  161. crewplane-0.1.0/src/crewplane/core/value_checks.py +11 -0
  162. crewplane-0.1.0/src/crewplane/core/workflow/__init__.py +1 -0
  163. crewplane-0.1.0/src/crewplane/core/workflow/composition/__init__.py +14 -0
  164. crewplane-0.1.0/src/crewplane/core/workflow/composition/imports.py +79 -0
  165. crewplane-0.1.0/src/crewplane/core/workflow/composition/models.py +85 -0
  166. crewplane-0.1.0/src/crewplane/core/workflow/composition/nodes.py +117 -0
  167. crewplane-0.1.0/src/crewplane/core/workflow/composition/parsing.py +86 -0
  168. crewplane-0.1.0/src/crewplane/core/workflow/composition/rewrites.py +102 -0
  169. crewplane-0.1.0/src/crewplane/core/workflow/composition/traversal.py +374 -0
  170. crewplane-0.1.0/src/crewplane/core/workflow/diagnostics.py +38 -0
  171. crewplane-0.1.0/src/crewplane/core/workflow/graph.py +75 -0
  172. crewplane-0.1.0/src/crewplane/core/workflow/keywords.py +59 -0
  173. crewplane-0.1.0/src/crewplane/core/workflow/loading.py +112 -0
  174. crewplane-0.1.0/src/crewplane/core/workflow/markdown/__init__.py +79 -0
  175. crewplane-0.1.0/src/crewplane/core/workflow/markdown/frontmatter.py +68 -0
  176. crewplane-0.1.0/src/crewplane/core/workflow/markdown/markers.py +187 -0
  177. crewplane-0.1.0/src/crewplane/core/workflow/markdown/models.py +284 -0
  178. crewplane-0.1.0/src/crewplane/core/workflow/markdown/payloads.py +102 -0
  179. crewplane-0.1.0/src/crewplane/core/workflow/markdown/sections.py +124 -0
  180. crewplane-0.1.0/src/crewplane/core/workflow/models.py +340 -0
  181. crewplane-0.1.0/src/crewplane/core/workflow/syntax.py +14 -0
  182. crewplane-0.1.0/src/crewplane/core/workflow/validation/__init__.py +35 -0
  183. crewplane-0.1.0/src/crewplane/core/workflow/validation/api.py +145 -0
  184. crewplane-0.1.0/src/crewplane/core/workflow/validation/modes.py +402 -0
  185. crewplane-0.1.0/src/crewplane/core/workflow/validation/nodes.py +156 -0
  186. crewplane-0.1.0/src/crewplane/core/workflow/validation/policies.py +111 -0
  187. crewplane-0.1.0/src/crewplane/core/workflow/validation/templates.py +219 -0
  188. crewplane-0.1.0/src/crewplane/core/workflow/validation/workspace.py +229 -0
  189. crewplane-0.1.0/src/crewplane/core/workflow/validation/workspace_diagnostics.py +322 -0
  190. crewplane-0.1.0/src/crewplane/core/workspace/__init__.py +1 -0
  191. crewplane-0.1.0/src/crewplane/core/workspace/cache.py +14 -0
  192. crewplane-0.1.0/src/crewplane/core/workspace/git_policy.py +222 -0
  193. crewplane-0.1.0/src/crewplane/core/workspace/policy.py +212 -0
  194. crewplane-0.1.0/src/crewplane/core/workspace/selection.py +29 -0
  195. crewplane-0.1.0/src/crewplane/core/workspace/settings.py +170 -0
  196. crewplane-0.1.0/src/crewplane/core/yaml_loader.py +60 -0
  197. crewplane-0.1.0/src/crewplane/example_templates/config.yml +213 -0
  198. crewplane-0.1.0/src/crewplane/example_templates/example-templates/code-review-example.task.md +80 -0
  199. crewplane-0.1.0/src/crewplane/example_templates/example-templates/composition/review-findings-producer-example.task.md +19 -0
  200. crewplane-0.1.0/src/crewplane/example_templates/example-templates/composition/review-fix-composed-example.task.md +38 -0
  201. crewplane-0.1.0/src/crewplane/example_templates/example-templates/composition/review-fix-consumer-example.task.md +49 -0
  202. crewplane-0.1.0/src/crewplane/example_templates/example-templates/design-review-example.task.md +70 -0
  203. crewplane-0.1.0/src/crewplane/example_templates/example-templates/feature-implement-example.task.md +95 -0
  204. crewplane-0.1.0/src/crewplane/example_templates/example-templates/multi-executor-review-chain-example.task.md +74 -0
  205. crewplane-0.1.0/src/crewplane/example_templates/example-templates/refactoring-example.task.md +93 -0
  206. crewplane-0.1.0/src/crewplane/example_templates/example-templates/sample-inputs/coding-standards.md +4 -0
  207. crewplane-0.1.0/src/crewplane/example_templates/example-templates/sample-inputs/feature-brief.md +4 -0
  208. crewplane-0.1.0/src/crewplane/example_templates/example-templates/sample-inputs/review-findings.md +9 -0
  209. crewplane-0.1.0/src/crewplane/example_templates/example-templates/test-generation-example.task.md +87 -0
  210. crewplane-0.1.0/src/crewplane/example_templates/example-templates/worktree/workspace-alternatives-example.task.md +49 -0
  211. crewplane-0.1.0/src/crewplane/example_templates/example-templates/worktree/workspace-inherited-worktree-example.task.md +42 -0
  212. crewplane-0.1.0/src/crewplane/example_templates/single-agent-review.task.md +27 -0
  213. crewplane-0.1.0/src/crewplane/observability/__init__.py +66 -0
  214. crewplane-0.1.0/src/crewplane/observability/dag_graph.py +450 -0
  215. crewplane-0.1.0/src/crewplane/observability/dag_render.py +141 -0
  216. crewplane-0.1.0/src/crewplane/observability/events/__init__.py +81 -0
  217. crewplane-0.1.0/src/crewplane/observability/events/builders.py +215 -0
  218. crewplane-0.1.0/src/crewplane/observability/events/dashboard_state.py +129 -0
  219. crewplane-0.1.0/src/crewplane/observability/events/execution_event.py +80 -0
  220. crewplane-0.1.0/src/crewplane/observability/events/log.py +28 -0
  221. crewplane-0.1.0/src/crewplane/observability/events/payloads.py +199 -0
  222. crewplane-0.1.0/src/crewplane/observability/events/reducer.py +214 -0
  223. crewplane-0.1.0/src/crewplane/observability/events/types.py +40 -0
  224. crewplane-0.1.0/src/crewplane/observability/layout.py +188 -0
  225. crewplane-0.1.0/src/crewplane/observability/log_presentation/__init__.py +26 -0
  226. crewplane-0.1.0/src/crewplane/observability/log_presentation/follow.py +105 -0
  227. crewplane-0.1.0/src/crewplane/observability/log_presentation/formatters.py +380 -0
  228. crewplane-0.1.0/src/crewplane/observability/log_presentation/json_extract.py +348 -0
  229. crewplane-0.1.0/src/crewplane/observability/log_presentation/limits.py +47 -0
  230. crewplane-0.1.0/src/crewplane/observability/log_presentation/models.py +47 -0
  231. crewplane-0.1.0/src/crewplane/observability/log_presentation/sanitize.py +82 -0
  232. crewplane-0.1.0/src/crewplane/observability/log_presentation/tail.py +144 -0
  233. crewplane-0.1.0/src/crewplane/observability/log_presentation/throttle.py +68 -0
  234. crewplane-0.1.0/src/crewplane/observability/log_stream.py +100 -0
  235. crewplane-0.1.0/src/crewplane/observability/node_order.py +29 -0
  236. crewplane-0.1.0/src/crewplane/observability/observer.py +22 -0
  237. crewplane-0.1.0/src/crewplane/observability/observer_lifecycle.py +173 -0
  238. crewplane-0.1.0/src/crewplane/observability/persistent.py +47 -0
  239. crewplane-0.1.0/src/crewplane/observability/render/__init__.py +196 -0
  240. crewplane-0.1.0/src/crewplane/observability/render/cells.py +193 -0
  241. crewplane-0.1.0/src/crewplane/observability/render/header.py +23 -0
  242. crewplane-0.1.0/src/crewplane/observability/render/text.py +26 -0
  243. crewplane-0.1.0/src/crewplane/observability/render/timeline.py +137 -0
  244. crewplane-0.1.0/src/crewplane/observability/render/viewport.py +124 -0
  245. crewplane-0.1.0/src/crewplane/observability/run_summary/accumulator.py +76 -0
  246. crewplane-0.1.0/src/crewplane/observability/run_summary/builder.py +177 -0
  247. crewplane-0.1.0/src/crewplane/observability/run_summary/formatting.py +64 -0
  248. crewplane-0.1.0/src/crewplane/observability/run_summary/issues.py +167 -0
  249. crewplane-0.1.0/src/crewplane/observability/run_summary/logger.py +170 -0
  250. crewplane-0.1.0/src/crewplane/observability/run_summary/markdown.py +391 -0
  251. crewplane-0.1.0/src/crewplane/observability/run_summary/models.py +301 -0
  252. crewplane-0.1.0/src/crewplane/observability/run_summary/spend.py +268 -0
  253. crewplane-0.1.0/src/crewplane/observability/run_summary/terminal.py +204 -0
  254. crewplane-0.1.0/src/crewplane/observability/run_summary/workspace.py +187 -0
  255. crewplane-0.1.0/src/crewplane/observability/run_summary/workspace_readers.py +395 -0
  256. crewplane-0.1.0/src/crewplane/observability/run_summary/workspace_state_paths.py +33 -0
  257. crewplane-0.1.0/src/crewplane/observability/run_summary/workspace_values.py +124 -0
  258. crewplane-0.1.0/src/crewplane/observability/runtime.py +376 -0
  259. crewplane-0.1.0/src/crewplane/observability/status_icons.py +14 -0
  260. crewplane-0.1.0/src/crewplane/observability/text_layout.py +111 -0
  261. crewplane-0.1.0/src/crewplane/observability/timing.py +56 -0
  262. crewplane-0.1.0/src/crewplane/observability/tmux/__init__.py +36 -0
  263. crewplane-0.1.0/src/crewplane/observability/tmux/bindings.py +273 -0
  264. crewplane-0.1.0/src/crewplane/observability/tmux/client.py +141 -0
  265. crewplane-0.1.0/src/crewplane/observability/tmux/commands.py +374 -0
  266. crewplane-0.1.0/src/crewplane/observability/tmux/compact.py +199 -0
  267. crewplane-0.1.0/src/crewplane/observability/tmux/control_state.py +89 -0
  268. crewplane-0.1.0/src/crewplane/observability/tmux/inspect_control.py +189 -0
  269. crewplane-0.1.0/src/crewplane/observability/tmux/inspect_launcher.py +67 -0
  270. crewplane-0.1.0/src/crewplane/observability/tmux/inspect_snapshot.py +71 -0
  271. crewplane-0.1.0/src/crewplane/observability/tmux/labels.py +24 -0
  272. crewplane-0.1.0/src/crewplane/observability/tmux/log_tail.py +165 -0
  273. crewplane-0.1.0/src/crewplane/observability/tmux/refresh.py +362 -0
  274. crewplane-0.1.0/src/crewplane/observability/tmux/rendering.py +406 -0
  275. crewplane-0.1.0/src/crewplane/observability/tmux/runtime.py +15 -0
  276. crewplane-0.1.0/src/crewplane/observability/tmux/runtime_files.py +88 -0
  277. crewplane-0.1.0/src/crewplane/observability/tmux/selected_invocation.py +101 -0
  278. crewplane-0.1.0/src/crewplane/observability/tmux/selection.py +126 -0
  279. crewplane-0.1.0/src/crewplane/observability/tmux/selection_control.py +159 -0
  280. crewplane-0.1.0/src/crewplane/observability/tmux/session.py +43 -0
  281. crewplane-0.1.0/src/crewplane/observability/tmux/session_lifecycle.py +345 -0
  282. crewplane-0.1.0/src/crewplane/observability/tmux/shell_commands.py +76 -0
  283. crewplane-0.1.0/src/crewplane/observability/tmux/viewport.py +77 -0
  284. crewplane-0.1.0/src/crewplane/observability/tmux/window.py +134 -0
  285. crewplane-0.1.0/src/crewplane/observability/types.py +45 -0
  286. crewplane-0.1.0/src/crewplane/py.typed +1 -0
  287. crewplane-0.1.0/src/crewplane/runtime/__init__.py +3 -0
  288. crewplane-0.1.0/src/crewplane/runtime/agent/__init__.py +5 -0
  289. crewplane-0.1.0/src/crewplane/runtime/agent/failures/__init__.py +80 -0
  290. crewplane-0.1.0/src/crewplane/runtime/agent/failures/classifier.py +22 -0
  291. crewplane-0.1.0/src/crewplane/runtime/agent/failures/evidence.py +249 -0
  292. crewplane-0.1.0/src/crewplane/runtime/agent/failures/formatting.py +108 -0
  293. crewplane-0.1.0/src/crewplane/runtime/agent/failures/patterns.py +172 -0
  294. crewplane-0.1.0/src/crewplane/runtime/agent/failures/types.py +73 -0
  295. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/claude_json.py +368 -0
  296. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/command.py +239 -0
  297. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/loop.py +395 -0
  298. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/output.py +295 -0
  299. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/retry.py +228 -0
  300. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/retry_reset.py +32 -0
  301. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/state.py +161 -0
  302. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/telemetry.py +166 -0
  303. crewplane-0.1.0/src/crewplane/runtime/agent/invocation/transitions.py +181 -0
  304. crewplane-0.1.0/src/crewplane/runtime/agent/invoker.py +131 -0
  305. crewplane-0.1.0/src/crewplane/runtime/agent/process/diagnostics.py +70 -0
  306. crewplane-0.1.0/src/crewplane/runtime/agent/process/log_rendering.py +18 -0
  307. crewplane-0.1.0/src/crewplane/runtime/agent/process/runner.py +26 -0
  308. crewplane-0.1.0/src/crewplane/runtime/agent/process/signals.py +84 -0
  309. crewplane-0.1.0/src/crewplane/runtime/agent/process/stream_capture.py +105 -0
  310. crewplane-0.1.0/src/crewplane/runtime/agent/process/streams.py +376 -0
  311. crewplane-0.1.0/src/crewplane/runtime/agent/quota/__init__.py +5 -0
  312. crewplane-0.1.0/src/crewplane/runtime/agent/quota/classifier.py +75 -0
  313. crewplane-0.1.0/src/crewplane/runtime/agent/quota/evidence.py +124 -0
  314. crewplane-0.1.0/src/crewplane/runtime/agent/quota/lexicons.py +251 -0
  315. crewplane-0.1.0/src/crewplane/runtime/agent/quota/waits.py +208 -0
  316. crewplane-0.1.0/src/crewplane/runtime/agent/retry_units.py +49 -0
  317. crewplane-0.1.0/src/crewplane/runtime/agent/usage.py +224 -0
  318. crewplane-0.1.0/src/crewplane/runtime/agent/usage_costs.py +143 -0
  319. crewplane-0.1.0/src/crewplane/runtime/agent/usage_parsing.py +210 -0
  320. crewplane-0.1.0/src/crewplane/runtime/agent/usage_types.py +53 -0
  321. crewplane-0.1.0/src/crewplane/runtime/agent/workspace_environment.py +63 -0
  322. crewplane-0.1.0/src/crewplane/runtime/execution/__init__.py +13 -0
  323. crewplane-0.1.0/src/crewplane/runtime/execution/activity/__init__.py +8 -0
  324. crewplane-0.1.0/src/crewplane/runtime/execution/activity/console.py +38 -0
  325. crewplane-0.1.0/src/crewplane/runtime/execution/activity/events.py +362 -0
  326. crewplane-0.1.0/src/crewplane/runtime/execution/activity/telemetry.py +65 -0
  327. crewplane-0.1.0/src/crewplane/runtime/execution/common.py +70 -0
  328. crewplane-0.1.0/src/crewplane/runtime/execution/consensus.py +54 -0
  329. crewplane-0.1.0/src/crewplane/runtime/execution/deferred_cleanup.py +137 -0
  330. crewplane-0.1.0/src/crewplane/runtime/execution/fragment_assembler.py +260 -0
  331. crewplane-0.1.0/src/crewplane/runtime/execution/input.py +75 -0
  332. crewplane-0.1.0/src/crewplane/runtime/execution/log_presentation.py +61 -0
  333. crewplane-0.1.0/src/crewplane/runtime/execution/parallel.py +263 -0
  334. crewplane-0.1.0/src/crewplane/runtime/execution/prompt_budgeting.py +192 -0
  335. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/__init__.py +63 -0
  336. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/display.py +117 -0
  337. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/events.py +114 -0
  338. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/generated_file_changes.py +297 -0
  339. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/generated_files.py +335 -0
  340. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/lifecycle.py +470 -0
  341. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/types.py +46 -0
  342. crewplane-0.1.0/src/crewplane/runtime/execution/provider_call/workspace.py +133 -0
  343. crewplane-0.1.0/src/crewplane/runtime/execution/resume.py +100 -0
  344. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/__init__.py +481 -0
  345. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/audit_round.py +357 -0
  346. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/drift.py +159 -0
  347. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/drift_detection.py +343 -0
  348. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/drift_events.py +82 -0
  349. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/executor_round.py +118 -0
  350. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/policy.py +96 -0
  351. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/prompts.py +199 -0
  352. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/reviewer_round.py +334 -0
  353. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/rounds.py +11 -0
  354. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/state.py +314 -0
  355. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/types.py +379 -0
  356. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/validation.py +367 -0
  357. crewplane-0.1.0/src/crewplane/runtime/execution/review_loop/workspace_state_paths.py +95 -0
  358. crewplane-0.1.0/src/crewplane/runtime/execution/reviews/__init__.py +1 -0
  359. crewplane-0.1.0/src/crewplane/runtime/execution/reviews/consensus.py +203 -0
  360. crewplane-0.1.0/src/crewplane/runtime/execution/reviews/fingerprints.py +147 -0
  361. crewplane-0.1.0/src/crewplane/runtime/execution/reviews/markdown.py +68 -0
  362. crewplane-0.1.0/src/crewplane/runtime/execution/reviews/plain_language.py +124 -0
  363. crewplane-0.1.0/src/crewplane/runtime/execution/reviews/structured.py +353 -0
  364. crewplane-0.1.0/src/crewplane/runtime/execution/reviews/types.py +50 -0
  365. crewplane-0.1.0/src/crewplane/runtime/execution/runtime_context.py +186 -0
  366. crewplane-0.1.0/src/crewplane/runtime/execution/sequential.py +114 -0
  367. crewplane-0.1.0/src/crewplane/runtime/execution/stage_finalize_events.py +62 -0
  368. crewplane-0.1.0/src/crewplane/runtime/execution/stage_tasks.py +76 -0
  369. crewplane-0.1.0/src/crewplane/runtime/execution/workflow/__init__.py +397 -0
  370. crewplane-0.1.0/src/crewplane/runtime/execution/workflow/cleanup.py +170 -0
  371. crewplane-0.1.0/src/crewplane/runtime/execution/workflow/node.py +128 -0
  372. crewplane-0.1.0/src/crewplane/runtime/execution/workflow/state.py +94 -0
  373. crewplane-0.1.0/src/crewplane/runtime/execution/workspace_files/__init__.py +394 -0
  374. crewplane-0.1.0/src/crewplane/runtime/execution/workspace_files/generated.py +149 -0
  375. crewplane-0.1.0/src/crewplane/runtime/execution/workspace_files/source_resolution.py +155 -0
  376. crewplane-0.1.0/src/crewplane/runtime/workspace/__init__.py +8 -0
  377. crewplane-0.1.0/src/crewplane/runtime/workspace/branch_export/__init__.py +389 -0
  378. crewplane-0.1.0/src/crewplane/runtime/workspace/branch_export/checkpoint.py +246 -0
  379. crewplane-0.1.0/src/crewplane/runtime/workspace/branch_export/fulfillment.py +194 -0
  380. crewplane-0.1.0/src/crewplane/runtime/workspace/branch_export/git.py +141 -0
  381. crewplane-0.1.0/src/crewplane/runtime/workspace/branch_export/records.py +233 -0
  382. crewplane-0.1.0/src/crewplane/runtime/workspace/cleanup.py +254 -0
  383. crewplane-0.1.0/src/crewplane/runtime/workspace/cleanup_notes.py +9 -0
  384. crewplane-0.1.0/src/crewplane/runtime/workspace/git.py +73 -0
  385. crewplane-0.1.0/src/crewplane/runtime/workspace/invocation.py +94 -0
  386. crewplane-0.1.0/src/crewplane/runtime/workspace/locks.py +89 -0
  387. crewplane-0.1.0/src/crewplane/runtime/workspace/materialization.py +42 -0
  388. crewplane-0.1.0/src/crewplane/runtime/workspace/prepared_workspace.py +407 -0
  389. crewplane-0.1.0/src/crewplane/runtime/workspace/service/__init__.py +64 -0
  390. crewplane-0.1.0/src/crewplane/runtime/workspace/service/common.py +165 -0
  391. crewplane-0.1.0/src/crewplane/runtime/workspace/service/snapshot.py +248 -0
  392. crewplane-0.1.0/src/crewplane/runtime/workspace/service/types.py +81 -0
  393. crewplane-0.1.0/src/crewplane/runtime/workspace/service/worktree.py +478 -0
  394. crewplane-0.1.0/src/crewplane/runtime/workspace/service/worktree_failures.py +136 -0
  395. crewplane-0.1.0/src/crewplane/runtime/workspace/setup.py +409 -0
  396. crewplane-0.1.0/src/crewplane/runtime/workspace/snapshot.py +332 -0
  397. crewplane-0.1.0/src/crewplane/runtime/workspace/state.py +365 -0
  398. crewplane-0.1.0/src/crewplane/runtime/workspace/state_selection.py +268 -0
  399. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/__init__.py +425 -0
  400. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/attributes.py +33 -0
  401. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/cache.py +291 -0
  402. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/cleanup.py +222 -0
  403. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/commit.py +52 -0
  404. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/descriptors.py +185 -0
  405. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/inspection.py +386 -0
  406. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/lineage.py +434 -0
  407. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/materialization.py +139 -0
  408. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/policy.py +107 -0
  409. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/protected_refs.py +63 -0
  410. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/ref_cleanup.py +79 -0
  411. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/refs.py +57 -0
  412. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/reset.py +234 -0
  413. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/result_validation.py +44 -0
  414. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/reuse.py +95 -0
  415. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/source_refs.py +90 -0
  416. crewplane-0.1.0/src/crewplane/runtime/workspace/worktree/types.py +69 -0
  417. crewplane-0.1.0/src/crewplane/version.py +5 -0
@@ -0,0 +1,127 @@
1
+ # Python cache and tooling
2
+ __pycache__/
3
+ *.py[cod]
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+ .mypy_cache/
7
+ *$py.class
8
+
9
+ # Build artifacts
10
+ build/
11
+ dist/
12
+ site/
13
+ .eggs/
14
+ *.egg-info/
15
+ pip-wheel-metadata/
16
+ .wheels/
17
+
18
+ # Release/build manifests
19
+ .release/
20
+ .release-manifests/
21
+ release-manifest.json
22
+ release-manifest.*.json
23
+ build-manifest.json
24
+ build-manifest.*.json
25
+ *.build-manifest.json
26
+
27
+ # Local virtual environments
28
+ .venv/
29
+ venv/
30
+ env/
31
+ ENV/
32
+ .python-version
33
+
34
+ # ---- Test / coverage / type-checking ----
35
+ .pytest_cache/
36
+ .mypy_cache/
37
+ .pyre/
38
+ .pytype/
39
+ .ruff_cache/
40
+ .hypothesis/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ htmlcov/
46
+ coverage.xml
47
+ dmypy.json
48
+
49
+ # ---- Logs / runtime ----
50
+ *.log
51
+ logs/
52
+ tmp/
53
+ tmp/**
54
+ .crewplane/
55
+ .orchestrator/
56
+ *.pid
57
+ *.sqlite3
58
+ *.db
59
+
60
+ # ---- Environment / secrets ----
61
+ .env
62
+ .env.*
63
+ !.env.example
64
+ *.pem
65
+ *.key
66
+ *.crt
67
+ *.p12
68
+ *.pfx
69
+ *.asc
70
+ *.kdbx
71
+ secrets/
72
+ secret/
73
+ credentials/
74
+ *.secret
75
+
76
+ # ---- IDE / editor ----
77
+ .idea/
78
+ .vscode/
79
+ *.swp
80
+ *.swo
81
+
82
+ # ---- OS files ----
83
+ .DS_Store
84
+ Thumbs.db
85
+
86
+ # ---- JS / docs site outputs (if you add a website later) ----
87
+ node_modules/
88
+ .next/
89
+ out/
90
+ .vercel/
91
+ dist-ssr/
92
+
93
+ # ---- Playwright / browser tooling ----
94
+ playwright-report/
95
+ test-results/
96
+
97
+ # ---- Local AI tool state ----
98
+ .claude/
99
+ .codex/
100
+ .cursor/
101
+ .gemini/
102
+ .gemini/
103
+ .agent/
104
+ .agents/*
105
+ !.agents/skills/
106
+ .agents/skills/*
107
+ !.agents/skills/create-workflows/
108
+ !.agents/skills/create-workflows/**
109
+ .claude/
110
+ .kilocode/
111
+ .kiro/
112
+
113
+ # ---- Generated demos / recordings (commit only curated assets) ----
114
+ *.cast
115
+ *.webm
116
+ *.mp4
117
+
118
+ # ---- Mac / Linux shell history or misc local files ----
119
+ .history/
120
+ .cache/
121
+
122
+ # Local runtime artifacts
123
+ .serena/
124
+ docs/maintainers/
125
+ scripts/internal/
126
+ !packaging/npm/scripts/
127
+ !packaging/npm/scripts/**
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,211 @@
1
+ Metadata-Version: 2.4
2
+ Name: crewplane
3
+ Version: 0.1.0
4
+ Summary: A Markdown-native control plane for AI coding CLIs
5
+ Project-URL: Homepage, https://github.com/crewplaneai/crewplane
6
+ Project-URL: Repository, https://github.com/crewplaneai/crewplane
7
+ Project-URL: Issues, https://github.com/crewplaneai/crewplane/issues
8
+ Project-URL: Documentation, https://github.com/crewplaneai/crewplane/blob/master/docs/index.md
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.13
12
+ Requires-Dist: click>=8.0.0
13
+ Requires-Dist: markdown-it-py>=4.0
14
+ Requires-Dist: pydantic>=2.0
15
+ Requires-Dist: pyyaml>=6.0
16
+ Requires-Dist: rich>=13.0
17
+ Requires-Dist: shellingham>=1.3.0
18
+ Requires-Dist: typer>=0.12.0
19
+ Requires-Dist: tzdata; platform_system == 'Windows'
20
+ Provides-Extra: dev
21
+ Requires-Dist: build>=1.3; extra == 'dev'
22
+ Requires-Dist: packaging>=24.0; extra == 'dev'
23
+ Requires-Dist: pytest>=7.4; extra == 'dev'
24
+ Requires-Dist: ruff>=0.6; extra == 'dev'
25
+ Requires-Dist: twine>=6.0; extra == 'dev'
26
+ Description-Content-Type: text/markdown
27
+
28
+ <div align="center">
29
+ <h1>Crewplane</h1>
30
+ <p>A Markdown-native control plane for AI coding CLIs.</p>
31
+ <p>
32
+ <a href="https://github.com/crewplaneai/crewplane/blob/master/CHANGELOG.md"><img alt="Status: alpha" src="https://img.shields.io/badge/status-alpha-f59e0b.svg"></a>
33
+ <a href="https://github.com/crewplaneai/crewplane/blob/master/pyproject.toml"><img alt="Python 3.13+" src="https://img.shields.io/badge/python-3.13%2B-3776AB.svg"></a>
34
+ <a href="https://github.com/crewplaneai/crewplane/blob/master/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"></a>
35
+ <a href="https://github.com/crewplaneai/crewplane/blob/master/docs/index.md"><img alt="Docs" src="https://img.shields.io/badge/docs-read-0f766e.svg"></a>
36
+ <a href="https://github.com/crewplaneai/crewplane/blob/master/SECURITY.md"><img alt="Security policy" src="https://img.shields.io/badge/security-policy-b91c1c.svg"></a>
37
+ <a href="https://github.com/crewplaneai/crewplane/blob/master/CONTRIBUTING.md"><img alt="Contributing" src="https://img.shields.io/badge/contributing-guide-6b7280.svg"></a>
38
+ </p>
39
+ <img src="https://raw.githubusercontent.com/crewplaneai/crewplane/master/.github/crewplane-splash.png" alt="Crewplane splash" width="80%">
40
+ </div>
41
+
42
+ ---
43
+
44
+ ## Why Crewplane?
45
+
46
+ You've got powerful AI tools at your fingertips โ€” Claude Code, Codex CLI, Gemini CLI, and others. Each has its strengths, but tying their work into a single repeatable pipeline usually means shell scripts, brittle glue, and state scattered across temp files.
47
+
48
+ **Crewplane gives your project a control plane for your agent crews.** Write the workflow once in Markdown, assign each step to whichever AI agent fits best, and Crewplane handles the rest โ€” parallel, fan-out, sequential handoffs, retries, and a complete paper trail.
49
+
50
+ No SDKs. No plugins. No vendor lock-in. If your AI tool has a CLI, it works.
51
+
52
+ **Every step is a Markdown file.** Inputs, outputs, reviews โ€” all saved to `.crewplane/execution-stages/` as readable Markdown. Inspect any step in your editor, diff it in git, or debug with `cat`. Nothing is a black box.
53
+
54
+ | vs. Other Frameworks | Crewplane |
55
+ |---------------------|------------------|
56
+ | **Autonomous loops** | Explicit DAG control โ€” define exactly how agents work together, in sequence or in parallel |
57
+ | **Hidden state** | Externalized to markdown โ€” fully auditable |
58
+ | **Tight SDK coupling** | CLI-first โ€” zero provider lock-in |
59
+ | **Black box debugging** | Inspect `.crewplane/execution-stages/` at any step, final results saved in `.crewplane/execution-results/` |
60
+ | **Adapter boilerplate** | Works with any CLI that reads/writes files |
61
+
62
+ > *"Crewplane doesn't try to understand your AI tools. It just gives them a shared workspace and gets out of the way."*
63
+
64
+ > โš ๏ธ **Security Note:** `{{file:path}}` templates are restricted to the project root by default. Use `settings.integrations.artifacts.options.allowed_template_paths` for explicit external-file allowlisting.
65
+
66
+ ## Installation
67
+
68
+ Recommended isolated install:
69
+
70
+ ```bash
71
+ uv tool install crewplane
72
+ crewplane --help
73
+ ```
74
+
75
+ Crewplane can also be installed with the following supported methods:
76
+
77
+ ```bash
78
+ # pipx
79
+ pipx install crewplane
80
+
81
+ # pip
82
+ python -m pip install crewplane
83
+
84
+ # install script for macOS and Linux
85
+ curl -fsSL https://raw.githubusercontent.com/crewplaneai/crewplane/master/install.sh | sh
86
+
87
+ # Homebrew
88
+ brew tap crewplaneai/crewplane && brew install crewplane
89
+
90
+ # npm wrapper
91
+ npm install -g crewplane
92
+ ```
93
+
94
+ For a local checkout:
95
+
96
+ ```bash
97
+ git clone https://github.com/crewplaneai/crewplane.git
98
+ cd crewplane
99
+ python -m pip install .
100
+ ```
101
+
102
+ > โš ๏ธ **Note:** Provider CLIs are installed and authenticated separately. Crewplane does not install provider CLIs, does not manage provider credentials, and does not sandbox provider CLI execution.
103
+
104
+ See the [installation guide](https://github.com/crewplaneai/crewplane/blob/master/docs/getting-started/installation.md) for update, uninstall, and npm `PATH` troubleshooting.
105
+
106
+ ## First Run
107
+
108
+ ```bash
109
+ crewplane init
110
+ crewplane validate
111
+ crewplane run --no-live
112
+ ```
113
+
114
+ `crewplane init` creates `.crewplane/config.yml`, a default workflow, and
115
+ additional example templates under `.crewplane/workflows/example-templates/`.
116
+ The default run uses deterministic `mock` output (no cost) and does not require provider
117
+ CLIs, API keys, provider accounts, or config edits. It is scaffolding for
118
+ validating the workflow and artifact path, not model output.
119
+
120
+ Inspect the first run artifacts in `.crewplane/execution-stages/` and execution results in
121
+ `.crewplane/execution-results/`, then follow
122
+ [provider setup](https://github.com/crewplaneai/crewplane/blob/master/docs/getting-started/provider-setup.md)
123
+ when you are ready to run real provider CLIs.
124
+
125
+ ## Live Dashboard
126
+
127
+ For interactive runs, omit `--no-live` to open Crewplane's compact tmux
128
+ dashboard (install tmux first if your system doesn't already have it).
129
+ Re-running the same workflow? Add `--force` to skip the duplicate check:
130
+
131
+ ```bash
132
+ crewplane run --force
133
+ ```
134
+
135
+ The dashboard shows the workflow DAG, node status, selected provider output,
136
+ and live log tails while the same durable artifacts are written under
137
+ `.crewplane/`. It starts only when tmux is available, output is attached to a
138
+ terminal, and provider log capture is enabled; otherwise Crewplane warns and
139
+ continues with normal execution. See the
140
+ [observability guide](https://github.com/crewplaneai/crewplane/blob/master/docs/guides/observability.md)
141
+ for dashboard options and log inspection.
142
+
143
+ ## Workflow Shape
144
+
145
+ ```yaml
146
+ ---
147
+ schema_version: "<current>"
148
+ name: "Quick Review"
149
+ nodes:
150
+ - id: review.project
151
+ mode: parallel
152
+ providers: ["mock"]
153
+ ---
154
+
155
+ ## review.project
156
+ Review the current repository and report the highest-risk issues.
157
+ ```
158
+
159
+ Full workflow authoring docs are in the
160
+ [workflow syntax reference](https://github.com/crewplaneai/crewplane/blob/master/docs/reference/workflow-syntax.md).
161
+
162
+ ## Safety Boundary
163
+
164
+ Crewplane coordinates provider CLIs; it is not a security sandbox. Provider CLIs
165
+ run with the permissions, approval mode, network access, and filesystem access
166
+ configured for those tools.
167
+
168
+ Experimental workspace isolation can move selected provider source-tree work
169
+ into Git-backed worktrees or writable snapshots, but it is still source-tree
170
+ isolation only. It does not sandbox provider execution.
171
+
172
+ `{{file:path}}` template references are bounded to the project root by default.
173
+ External files must be explicitly allowlisted with
174
+ `settings.integrations.artifacts.options.allowed_template_paths`.
175
+
176
+ ## Where Next
177
+
178
+ The default mock run gives you the same workflow machinery used for real
179
+ provider runs, so you can inspect the shape of the system before connecting
180
+ external CLIs:
181
+
182
+ - ๐Ÿ”„ **DAG Execution** โ€“ Run independent nodes in parallel and dependency nodes in sequence
183
+ - ๐Ÿ” **Cross-Review** โ€“ Agents review each other's outputs with structured verdict detection
184
+ - ๐Ÿ“ **Task Files** โ€“ Frontmatter+Markdown (`.task.md`) workflows by default
185
+ - ๐Ÿ”Œ **Pluggable Providers** โ€“ Works with any CLI-based AI tool; no API keys or auth managed by Crewplane
186
+ - ๐Ÿ“ **Project-Local Config** โ€“ Each project gets its own `.crewplane/` directory
187
+ - ๐Ÿ“‚ **Transparent Artifacts** โ€“ Every intermediate step and final result saved to disk for full auditability
188
+ - ๐Ÿ–ฅ๏ธ **Live Dashboard** โ€“ Optional tmux UI shows DAG progress, node status, and selected provider logs
189
+ - ๐Ÿ“Š **Spend Observability** โ€“ Run logs capture CLI capture status, provider token-report status, visible lower-bound estimates, and configured cost confidence summaries
190
+ - โšก **Smart Caching** โ€“ Workflow-signature idempotency skips identical successes and resumes failed or cancelled runs from validated node boundaries
191
+ - ๐Ÿงช **Experimental Workspace Isolation** โ€“ Opt-in Git-backed worktrees and writable snapshots can isolate provider source-tree edits in ordinary supported Git repositories
192
+
193
+ When you are ready to configure a project, start with the quickstart and then
194
+ move into provider setup, examples, and reference material as needed:
195
+
196
+ - [Documentation index](https://github.com/crewplaneai/crewplane/blob/master/docs/index.md)
197
+ - [Installation](https://github.com/crewplaneai/crewplane/blob/master/docs/getting-started/installation.md)
198
+ - [Quickstart](https://github.com/crewplaneai/crewplane/blob/master/docs/getting-started/quickstart.md)
199
+ - [Setup checklist](https://github.com/crewplaneai/crewplane/blob/master/docs/getting-started/setup-checklist.md)
200
+ - [Provider setup](https://github.com/crewplaneai/crewplane/blob/master/docs/getting-started/provider-setup.md)
201
+ - [Examples](https://github.com/crewplaneai/crewplane/blob/master/docs/examples/index.md)
202
+ - [Experimental workspace isolation](https://github.com/crewplaneai/crewplane/blob/master/docs/guides/workspace-isolation.md)
203
+ - [Command reference](https://github.com/crewplaneai/crewplane/blob/master/docs/reference/commands.md)
204
+ - [Configuration reference](https://github.com/crewplaneai/crewplane/blob/master/docs/reference/configuration.md)
205
+ - [Workflow syntax reference](https://github.com/crewplaneai/crewplane/blob/master/docs/reference/workflow-syntax.md)
206
+ - [Artifact reference](https://github.com/crewplaneai/crewplane/blob/master/docs/reference/artifacts.md)
207
+ - [Security and trust](https://github.com/crewplaneai/crewplane/blob/master/docs/safety/security-and-trust.md)
208
+
209
+ ### Contributing
210
+
211
+ If you're interested in contributing to Crewplane, please read our [Contributing and local development](https://github.com/crewplaneai/crewplane/blob/master/DEVELOPMENT.md) before submitting a pull request.