apatch 0.8.42__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. apatch/__init__.py +30 -0
  2. apatch/agent_guidance.py +903 -0
  3. apatch/agent_playbooks.py +317 -0
  4. apatch/apatch_paths.py +125 -0
  5. apatch/apply_session.py +706 -0
  6. apatch/arch_check.py +173 -0
  7. apatch/arch_rules.py +31 -0
  8. apatch/artifact.py +175 -0
  9. apatch/artifact_governance.py +1527 -0
  10. apatch/ast_window.py +58 -0
  11. apatch/auto_wire.py +370 -0
  12. apatch/avatar_compiler.py +109 -0
  13. apatch/avatar_delivery.py +782 -0
  14. apatch/avatar_evidence.py +224 -0
  15. apatch/avatar_runtime_config.py +150 -0
  16. apatch/backup.py +330 -0
  17. apatch/barrel_export.py +98 -0
  18. apatch/boundary_ast.py +376 -0
  19. apatch/boundary_ranker.py +247 -0
  20. apatch/boundary_scope.py +95 -0
  21. apatch/build_diagnose.py +296 -0
  22. apatch/capability.py +175 -0
  23. apatch/change_budget.py +108 -0
  24. apatch/cli.py +4968 -0
  25. apatch/cli_concept.py +334 -0
  26. apatch/cli_conformance.py +151 -0
  27. apatch/cli_extension.py +156 -0
  28. apatch/cli_status.py +191 -0
  29. apatch/codex_approval.py +361 -0
  30. apatch/concept_clarify.py +59 -0
  31. apatch/concept_compile.py +323 -0
  32. apatch/concept_crud.py +143 -0
  33. apatch/concept_merge.py +134 -0
  34. apatch/concept_verify.py +82 -0
  35. apatch/conformance.py +731 -0
  36. apatch/console/__init__.py +5 -0
  37. apatch/console/mvp.py +285 -0
  38. apatch/console/state.py +34 -0
  39. apatch/consumer_profiles.py +276 -0
  40. apatch/contribution.py +527 -0
  41. apatch/contribution_delivery.py +604 -0
  42. apatch/contribution_export.py +600 -0
  43. apatch/converters/__init__.py +1 -0
  44. apatch/converters/registry.py +19 -0
  45. apatch/converters/ts_module.py +944 -0
  46. apatch/dangling_refs.py +68 -0
  47. apatch/db_check.py +70 -0
  48. apatch/db_profiles.py +58 -0
  49. apatch/db_revision.py +74 -0
  50. apatch/db_run.py +192 -0
  51. apatch/db_safety.py +81 -0
  52. apatch/diagnostics/__init__.py +12 -0
  53. apatch/diagnostics/adapters/__init__.py +1 -0
  54. apatch/diagnostics/adapters/clang.py +56 -0
  55. apatch/diagnostics/adapters/pytest.py +36 -0
  56. apatch/diagnostics/adapters/spec.py +29 -0
  57. apatch/diagnostics/adapters/trust.py +47 -0
  58. apatch/diagnostics/artifacts.py +34 -0
  59. apatch/diagnostics/collect.py +141 -0
  60. apatch/diagnostics/edges.py +198 -0
  61. apatch/diagnostics/schema.py +45 -0
  62. apatch/discovery.py +101 -0
  63. apatch/doc_outline.py +136 -0
  64. apatch/doctor.py +945 -0
  65. apatch/edge_lockstep.py +146 -0
  66. apatch/enforcement.py +656 -0
  67. apatch/enforcement_messages.py +111 -0
  68. apatch/episode.py +581 -0
  69. apatch/extensions/__init__.py +41 -0
  70. apatch/extensions/authoring.py +218 -0
  71. apatch/extensions/catalog.py +197 -0
  72. apatch/extensions/host.py +69 -0
  73. apatch/extensions/runner.py +388 -0
  74. apatch/extensions/schema.py +685 -0
  75. apatch/extensions/schemas/lock-v1.json +81 -0
  76. apatch/extensions/schemas/manifest-v1.json +217 -0
  77. apatch/extensions/schemas/request-v1.json +47 -0
  78. apatch/extensions/schemas/response-v1.json +44 -0
  79. apatch/failure_taxonomy.py +341 -0
  80. apatch/feedback_status.py +7 -0
  81. apatch/file_modes.py +50 -0
  82. apatch/gc.py +97 -0
  83. apatch/generate.py +783 -0
  84. apatch/git_commit.py +469 -0
  85. apatch/git_util.py +105 -0
  86. apatch/governed_work.py +1473 -0
  87. apatch/governed_work_delivery.py +1122 -0
  88. apatch/governed_work_mcp.py +357 -0
  89. apatch/governed_work_transport.py +151 -0
  90. apatch/graph_execute.py +455 -0
  91. apatch/impact.py +105 -0
  92. apatch/import_graph.py +212 -0
  93. apatch/import_paths.py +90 -0
  94. apatch/imports_resolver.py +785 -0
  95. apatch/inclusion.py +400 -0
  96. apatch/ingestor.py +517 -0
  97. apatch/json_mapping.py +313 -0
  98. apatch/knowledge_graph.py +245 -0
  99. apatch/lane.py +179 -0
  100. apatch/lane_context.py +231 -0
  101. apatch/layout_migrate.py +98 -0
  102. apatch/ledger_actor.py +33 -0
  103. apatch/manifest_bundle.py +104 -0
  104. apatch/manifest_validator.py +114 -0
  105. apatch/match_session.py +29 -0
  106. apatch/matcher.py +629 -0
  107. apatch/mcp/__init__.py +1 -0
  108. apatch/mcp/__main__.py +6 -0
  109. apatch/mcp/bound_workspace.py +103 -0
  110. apatch/mcp/hygiene.py +125 -0
  111. apatch/mcp/launcher.py +45 -0
  112. apatch/mcp/lifecycle.py +142 -0
  113. apatch/mcp/profiles.py +107 -0
  114. apatch/mcp/resources.py +115 -0
  115. apatch/mcp/sanitize.py +86 -0
  116. apatch/mcp/server.py +4182 -0
  117. apatch/mcp/stdio_guard.py +98 -0
  118. apatch/mcp/workspace_launcher.py +102 -0
  119. apatch/mcp/workspace_registry.py +363 -0
  120. apatch/mcp_health.py +775 -0
  121. apatch/native_converter.py +332 -0
  122. apatch/native_refs.py +128 -0
  123. apatch/orchestrate.py +87 -0
  124. apatch/outcome_delivery.py +401 -0
  125. apatch/path_index.py +265 -0
  126. apatch/path_leases.py +559 -0
  127. apatch/pipeline_run.py +225 -0
  128. apatch/plan_adherence.py +134 -0
  129. apatch/plan_worker.py +88 -0
  130. apatch/platform_client.py +151 -0
  131. apatch/policy_lock.py +245 -0
  132. apatch/probe.py +337 -0
  133. apatch/project_index.py +233 -0
  134. apatch/project_status.py +289 -0
  135. apatch/reality.py +179 -0
  136. apatch/refactor_run.py +205 -0
  137. apatch/remote/__init__.py +18 -0
  138. apatch/remote/doctor.py +87 -0
  139. apatch/remote/errors.py +57 -0
  140. apatch/remote/handoff.py +669 -0
  141. apatch/remote/onboarding.py +197 -0
  142. apatch/remote/orchestrator.py +1187 -0
  143. apatch/remote/policy.py +233 -0
  144. apatch/remote/services.py +524 -0
  145. apatch/remote/ssh.py +318 -0
  146. apatch/remote/target.py +202 -0
  147. apatch/remote/transport.py +66 -0
  148. apatch/remote/verify.py +122 -0
  149. apatch/remote/worker.py +816 -0
  150. apatch/repair_map.py +7 -0
  151. apatch/replay.py +134 -0
  152. apatch/report_render.py +325 -0
  153. apatch/resolver.py +109 -0
  154. apatch/rfp_coverage.py +733 -0
  155. apatch/runtime/__init__.py +35 -0
  156. apatch/runtime/atomic_io.py +83 -0
  157. apatch/runtime/attestation.py +96 -0
  158. apatch/runtime/domain.py +52 -0
  159. apatch/runtime/errors.py +100 -0
  160. apatch/runtime/events.py +149 -0
  161. apatch/runtime/finalization.py +270 -0
  162. apatch/runtime/hints.py +99 -0
  163. apatch/runtime/models.py +48 -0
  164. apatch/runtime/namespace.py +81 -0
  165. apatch/runtime/reconcile.py +175 -0
  166. apatch/runtime/recovery.py +85 -0
  167. apatch/runtime/request_journal.py +376 -0
  168. apatch/runtime/runtime.py +1251 -0
  169. apatch/runtime/session.py +478 -0
  170. apatch/runtime/session_binding.py +403 -0
  171. apatch/runtime/state_machine.py +143 -0
  172. apatch/runtime/verification.py +48 -0
  173. apatch/sandbox.py +1050 -0
  174. apatch/sandbox_watch.py +523 -0
  175. apatch/scale_config.py +33 -0
  176. apatch/scip_ingest.py +294 -0
  177. apatch/scip_producer.py +171 -0
  178. apatch/sdd_integrity.py +1439 -0
  179. apatch/semantic_parser.py +241 -0
  180. apatch/semantic_verify.py +235 -0
  181. apatch/service_secret.py +119 -0
  182. apatch/session_state.py +788 -0
  183. apatch/session_status.py +139 -0
  184. apatch/shared_maintenance.py +471 -0
  185. apatch/simulate.py +386 -0
  186. apatch/slug_close.py +7 -0
  187. apatch/slug_cockpit.py +7 -0
  188. apatch/slug_feedback_lint.py +7 -0
  189. apatch/slug_intake.py +7 -0
  190. apatch/slug_ratify.py +7 -0
  191. apatch/spec.py +1023 -0
  192. apatch/spec_contract_resolver.py +120 -0
  193. apatch/spec_coverage.py +403 -0
  194. apatch/spec_cross_verify.py +259 -0
  195. apatch/spec_executor.py +786 -0
  196. apatch/spec_interference.py +970 -0
  197. apatch/spec_interference_l0.py +206 -0
  198. apatch/spec_needles_scaffold.py +329 -0
  199. apatch/spec_ownership.py +594 -0
  200. apatch/spec_plan.py +502 -0
  201. apatch/spec_rebind.py +293 -0
  202. apatch/spec_registry.py +66 -0
  203. apatch/spec_run.py +1513 -0
  204. apatch/spec_run_multi.py +470 -0
  205. apatch/strip.py +491 -0
  206. apatch/strip_cache.py +38 -0
  207. apatch/strip_pipeline.py +866 -0
  208. apatch/symbol_anchor.py +145 -0
  209. apatch/symbol_index.py +64 -0
  210. apatch/taxonomy_delivery.py +380 -0
  211. apatch/timesheet.py +251 -0
  212. apatch/tool_paths.py +388 -0
  213. apatch/toolchain.py +225 -0
  214. apatch/traceability.py +263 -0
  215. apatch/trust_identity.py +642 -0
  216. apatch/trustchain_helper.py +1142 -0
  217. apatch/tui.py +737 -0
  218. apatch/ux_audit.py +122 -0
  219. apatch/verify_baseline.py +171 -0
  220. apatch/verify_jobs.py +516 -0
  221. apatch/verify_worker.py +24 -0
  222. apatch/warn_filters.py +25 -0
  223. apatch/wiring_profiles.py +249 -0
  224. apatch/work_asset_lifecycle.py +290 -0
  225. apatch/work_asset_suggest.py +192 -0
  226. apatch/work_assets.py +623 -0
  227. apatch/workflows.py +1774 -0
  228. apatch/workspace_identity.py +70 -0
  229. apatch/worktree_lane.py +238 -0
  230. apatch-0.8.42.dist-info/METADATA +432 -0
  231. apatch-0.8.42.dist-info/RECORD +243 -0
  232. apatch-0.8.42.dist-info/WHEEL +5 -0
  233. apatch-0.8.42.dist-info/entry_points.txt +5 -0
  234. apatch-0.8.42.dist-info/licenses/LICENSE +21 -0
  235. apatch-0.8.42.dist-info/top_level.txt +2 -0
  236. apatch_search_workflows/__init__.py +11 -0
  237. apatch_search_workflows/feedback_status.py +114 -0
  238. apatch_search_workflows/repair_map.py +136 -0
  239. apatch_search_workflows/slug_close.py +869 -0
  240. apatch_search_workflows/slug_cockpit.py +773 -0
  241. apatch_search_workflows/slug_feedback_lint.py +350 -0
  242. apatch_search_workflows/slug_intake.py +798 -0
  243. apatch_search_workflows/slug_ratify.py +533 -0
apatch/__init__.py ADDED
@@ -0,0 +1,30 @@
1
+ # apatch package
2
+
3
+ from __future__ import annotations
4
+
5
+ from pathlib import Path
6
+
7
+
8
+ def _package_version() -> str:
9
+ """Prefer pyproject.toml in source checkout; fall back to installed metadata."""
10
+ try:
11
+ try:
12
+ import tomllib
13
+ except ModuleNotFoundError: # Python 3.10
14
+ import tomli as tomllib
15
+
16
+ pyproject = Path(__file__).resolve().parents[1] / "pyproject.toml"
17
+ if pyproject.is_file():
18
+ data = tomllib.loads(pyproject.read_text(encoding="utf-8"))
19
+ return str(data["project"]["version"])
20
+ except Exception:
21
+ pass
22
+ try:
23
+ from importlib.metadata import version
24
+
25
+ return version("apatch")
26
+ except Exception:
27
+ return "0.0.0"
28
+
29
+
30
+ __version__ = _package_version()