sanka-cli 0.2.8__tar.gz → 0.2.9__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 (191) hide show
  1. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/PKG-INFO +24 -17
  2. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/README.md +23 -12
  3. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/pyproject.toml +1 -4
  4. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/__init__.py +4 -0
  5. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/store.py +62 -6
  6. sanka_cli-0.2.9/src/sanka/runtime/flow/__init__.py +2 -0
  7. sanka_cli-0.2.9/src/sanka/runtime/flow/host.py +79 -0
  8. sanka_cli-0.2.9/src/sanka/runtime/flow/lifecycle.py +341 -0
  9. sanka_cli-0.2.9/src/sanka/runtime/flow/merge.py +109 -0
  10. sanka_cli-0.2.9/src/sanka/runtime/flow/model.py +240 -0
  11. sanka_cli-0.2.9/src/sanka/runtime/flow/planner.py +186 -0
  12. sanka_cli-0.2.9/src/sanka/runtime/flow/sqlite.py +406 -0
  13. sanka_cli-0.2.9/src/sanka/runtime/flow/state.py +55 -0
  14. sanka_cli-0.2.9/src/sanka/runtime/flow/verification.py +160 -0
  15. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/__init__.py +1 -1
  16. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/main.py +7 -10
  17. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_cli.py +8 -4
  18. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_store.py +59 -0
  19. sanka_cli-0.2.9/tests/test_flow_lifecycle.py +405 -0
  20. sanka_cli-0.2.9/tests/test_flow_merge.py +73 -0
  21. sanka_cli-0.2.9/tests/test_flow_planner.py +229 -0
  22. sanka_cli-0.2.9/tests/test_flow_sqlite.py +168 -0
  23. sanka_cli-0.2.9/tests/test_flow_verification.py +179 -0
  24. sanka_cli-0.2.9/tests/test_mcp_retirement.py +41 -0
  25. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_sanka_facade.py +1 -3
  26. sanka_cli-0.2.8/src/sanka_cli/mcp/__init__.py +0 -7
  27. sanka_cli-0.2.8/src/sanka_cli/mcp/client.py +0 -222
  28. sanka_cli-0.2.8/src/sanka_cli/mcp/render.py +0 -223
  29. sanka_cli-0.2.8/src/sanka_cli/mcp/server.py +0 -210
  30. sanka_cli-0.2.8/tests/test_mcp.py +0 -90
  31. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/.gitignore +0 -0
  32. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/LICENSES/AGPL-3.0-only.txt +0 -0
  33. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/LICENSES/Apache-2.0.txt +0 -0
  34. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/NOTICE +0 -0
  35. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/__init__.py +0 -0
  36. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/_client.py +0 -0
  37. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/_compact.py +0 -0
  38. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/_output.py +0 -0
  39. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/_research.py +0 -0
  40. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/py.typed +0 -0
  41. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/connector/__init__.py +0 -0
  42. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/connector/py.typed +0 -0
  43. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/__about__.py +0 -0
  44. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/__init__.py +0 -0
  45. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/concurrency.py +0 -0
  46. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/connector_client.py +0 -0
  47. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/connector_host.py +0 -0
  48. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/engine.py +0 -0
  49. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/__init__.py +0 -0
  50. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/continuous.py +0 -0
  51. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/errors.py +0 -0
  52. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/local.py +0 -0
  53. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/model.py +0 -0
  54. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/report_codec.py +0 -0
  55. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/routes.py +0 -0
  56. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/scope.py +0 -0
  57. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/state.py +0 -0
  58. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/validate.py +0 -0
  59. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/__init__.py +0 -0
  60. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/artifacts.py +0 -0
  61. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/code_lifecycle.py +0 -0
  62. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/code_repair.py +0 -0
  63. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/discovery.py +0 -0
  64. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/lifecycle.py +0 -0
  65. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/model.py +0 -0
  66. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/runner.py +0 -0
  67. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/stage.py +0 -0
  68. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/hashing.py +0 -0
  69. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/__init__.py +0 -0
  70. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/errors.py +0 -0
  71. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/mapping_candidates.py +0 -0
  72. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/model.py +0 -0
  73. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/owner_mapping.py +0 -0
  74. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/pending_relationships.py +0 -0
  75. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/record_mapping.py +0 -0
  76. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/planner.py +0 -0
  77. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/private_sqlite.py +0 -0
  78. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/py.typed +0 -0
  79. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/registry.py +0 -0
  80. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/safe_local_io.py +0 -0
  81. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/spec.py +0 -0
  82. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/state.py +0 -0
  83. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/__main__.py +0 -0
  84. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/bundle.py +0 -0
  85. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/certificates.py +0 -0
  86. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/client.py +0 -0
  87. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/__init__.py +0 -0
  88. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/ai.py +0 -0
  89. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/auth.py +0 -0
  90. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/cloud.py +0 -0
  91. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/cloud_fleet.py +0 -0
  92. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/cloud_migrate.py +0 -0
  93. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/code.py +0 -0
  94. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/functions.py +0 -0
  95. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/migrate.py +0 -0
  96. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/profiles.py +0 -0
  97. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/resources.py +0 -0
  98. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/skill.py +0 -0
  99. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/workflows.py +0 -0
  100. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/config.py +0 -0
  101. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/output.py +0 -0
  102. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/runtime.py +0 -0
  103. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/skills/sanka-cli/SKILL.md +0 -0
  104. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/state.py +0 -0
  105. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/__about__.py +0 -0
  106. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/__init__.py +0 -0
  107. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/credentials.py +0 -0
  108. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/errors.py +0 -0
  109. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/protocols.py +0 -0
  110. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/provisioning.py +0 -0
  111. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/py.typed +0 -0
  112. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/records.py +0 -0
  113. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/registration.py +0 -0
  114. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/schema.py +0 -0
  115. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extension_sdk/__init__.py +0 -0
  116. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extension_sdk/contract.py +0 -0
  117. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extension_sdk/py.typed +0 -0
  118. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/__init__.py +0 -0
  119. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/code/__init__.py +0 -0
  120. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/code/contract.py +0 -0
  121. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/__about__.py +0 -0
  122. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/__init__.py +0 -0
  123. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/credentials.py +0 -0
  124. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/errors.py +0 -0
  125. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/protocols.py +0 -0
  126. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/provisioning.py +0 -0
  127. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/py.typed +0 -0
  128. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/records.py +0 -0
  129. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/registration.py +0 -0
  130. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/schema.py +0 -0
  131. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/flow/__init__.py +0 -0
  132. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/flow/definition.py +0 -0
  133. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/py.typed +0 -0
  134. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/__about__.py +0 -0
  135. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/__init__.py +0 -0
  136. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/credentials.py +0 -0
  137. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/errors.py +0 -0
  138. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/protocols.py +0 -0
  139. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/provisioning.py +0 -0
  140. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/py.typed +0 -0
  141. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/records.py +0 -0
  142. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/registration.py +0 -0
  143. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/schema.py +0 -0
  144. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/conftest.py +0 -0
  145. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/api/__init__.py +0 -0
  146. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/api/serializers.py +0 -0
  147. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/api/views.py +0 -0
  148. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/config/__init__.py +0 -0
  149. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/config/settings.py +0 -0
  150. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/config/urls.py +0 -0
  151. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/manage.py +0 -0
  152. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_marketplace/drf-to-fastapi.json +0 -0
  153. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_marketplace/marketplace.json +0 -0
  154. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_cli_developer_experience.py +0 -0
  155. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_bundle.py +0 -0
  156. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_commands.py +0 -0
  157. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_lifecycle.py +0 -0
  158. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_repair.py +0 -0
  159. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_concurrency.py +0 -0
  160. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_connector_client.py +0 -0
  161. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_connector_host.py +0 -0
  162. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_credential_provider.py +0 -0
  163. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_e2e.py +0 -0
  164. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_execution_adoption.py +0 -0
  165. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_pg_to_clickhouse_e2e.py +0 -0
  166. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_postgres_e2e.py +0 -0
  167. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_continuous.py +0 -0
  168. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_exact_scope.py +0 -0
  169. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_local_store.py +0 -0
  170. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_report_codec.py +0 -0
  171. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_routes.py +0 -0
  172. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_scope.py +0 -0
  173. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_seam.py +0 -0
  174. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_validate.py +0 -0
  175. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_discovery.py +0 -0
  176. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_lifecycle.py +0 -0
  177. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_runner.py +0 -0
  178. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_stage.py +0 -0
  179. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_wheel_acceptance.py +0 -0
  180. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_hashing.py +0 -0
  181. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_hosted_cli.py +0 -0
  182. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_candidates.py +0 -0
  183. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_owner_mapping.py +0 -0
  184. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_pending_relationships.py +0 -0
  185. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_record_mapping.py +0 -0
  186. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_planner.py +0 -0
  187. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_registry.py +0 -0
  188. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_safe_local_io.py +0 -0
  189. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_skill_commands.py +0 -0
  190. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_spec.py +0 -0
  191. {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_state_store.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: sanka-cli
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: Sanka command-line interface and migration runtime
5
5
  Project-URL: Repository, https://github.com/sankaHQ/sanka
6
6
  Project-URL: Issues, https://github.com/sankaHQ/sanka/issues
@@ -23,10 +23,6 @@ Requires-Dist: packaging<27,>=24
23
23
  Requires-Dist: platformdirs<5,>=4
24
24
  Requires-Dist: pyyaml>=6
25
25
  Requires-Dist: rich<15,>=13
26
- Provides-Extra: mcp
27
- Requires-Dist: mcp<2,>=1.12; extra == 'mcp'
28
- Requires-Dist: pydantic-settings<3,>=2.10; extra == 'mcp'
29
- Requires-Dist: pydantic<3,>=2.11; extra == 'mcp'
30
26
  Description-Content-Type: text/markdown
31
27
 
32
28
  # sanka-cli
@@ -34,8 +30,8 @@ Description-Content-Type: text/markdown
34
30
  `sanka-cli` is Sanka's single Python distribution. It installs one `sanka`
35
31
  executable and contains:
36
32
 
37
- - the Apache-2.0 hosted command dispatcher, authentication, output, and
38
- optional MCP integration under `sanka_cli`;
33
+ - the Apache-2.0 hosted command dispatcher, authentication, and output
34
+ under `sanka_cli`;
39
35
  - the embedded Apache-2.0 Sanka Extension SDK through `sanka_extensions`; and
40
36
  - the AGPL-3.0-only local migration runtime under `sanka`.
41
37
 
@@ -48,12 +44,8 @@ uv tool install sanka-cli
48
44
  sanka --help
49
45
  ```
50
46
 
51
- For the stdio MCP server:
52
-
53
- ```bash
54
- uv tool install 'sanka-cli[mcp]'
55
- sanka mcp
56
- ```
47
+ For AI agents using MCP, connect to the hosted Sanka MCP server at
48
+ `https://mcp.sanka.com/mcp`. No local MCP package is required.
57
49
 
58
50
  Install the bundled `sanka-cli` skill into an AI coding harness:
59
51
 
@@ -156,11 +148,26 @@ The Python and Node `sanka-sdk` migration adapters invoke
156
148
  execution for local commands, require an API token, auto-install this package,
157
149
  or replace its framework detection and safety defaults.
158
150
 
159
- ## MCP tools
151
+ ## Hosted MCP
152
+
153
+ Configure an MCP client with the hosted server:
154
+
155
+ ```json
156
+ {
157
+ "mcpServers": {
158
+ "sanka": { "url": "https://mcp.sanka.com/mcp" }
159
+ }
160
+ }
161
+ ```
162
+
163
+ Connect your Sanka account when prompted. Hosted operations follow their
164
+ normal permissions and usage pricing.
160
165
 
161
- `sanka mcp` exposes `sanka_research_eol`, `sanka_research_tco`,
162
- `sanka_research_compare`, and `sanka_assess`. Public research and assessment
163
- remain credential-free; the MCP server does not execute migrations.
166
+ The local research MCP server and the `mcp` installation extra were removed
167
+ in `sanka-cli` 0.2.9. Replace any `command: "sanka", args: ["mcp"]`
168
+ configuration with the hosted URL above. The old command exits with a
169
+ retirement message; it does not start a server or make a network request.
170
+ Local migration commands and SDK adapters continue to use the CLI.
164
171
 
165
172
  ## License
166
173
 
@@ -3,8 +3,8 @@
3
3
  `sanka-cli` is Sanka's single Python distribution. It installs one `sanka`
4
4
  executable and contains:
5
5
 
6
- - the Apache-2.0 hosted command dispatcher, authentication, output, and
7
- optional MCP integration under `sanka_cli`;
6
+ - the Apache-2.0 hosted command dispatcher, authentication, and output
7
+ under `sanka_cli`;
8
8
  - the embedded Apache-2.0 Sanka Extension SDK through `sanka_extensions`; and
9
9
  - the AGPL-3.0-only local migration runtime under `sanka`.
10
10
 
@@ -17,12 +17,8 @@ uv tool install sanka-cli
17
17
  sanka --help
18
18
  ```
19
19
 
20
- For the stdio MCP server:
21
-
22
- ```bash
23
- uv tool install 'sanka-cli[mcp]'
24
- sanka mcp
25
- ```
20
+ For AI agents using MCP, connect to the hosted Sanka MCP server at
21
+ `https://mcp.sanka.com/mcp`. No local MCP package is required.
26
22
 
27
23
  Install the bundled `sanka-cli` skill into an AI coding harness:
28
24
 
@@ -125,11 +121,26 @@ The Python and Node `sanka-sdk` migration adapters invoke
125
121
  execution for local commands, require an API token, auto-install this package,
126
122
  or replace its framework detection and safety defaults.
127
123
 
128
- ## MCP tools
124
+ ## Hosted MCP
125
+
126
+ Configure an MCP client with the hosted server:
127
+
128
+ ```json
129
+ {
130
+ "mcpServers": {
131
+ "sanka": { "url": "https://mcp.sanka.com/mcp" }
132
+ }
133
+ }
134
+ ```
135
+
136
+ Connect your Sanka account when prompted. Hosted operations follow their
137
+ normal permissions and usage pricing.
129
138
 
130
- `sanka mcp` exposes `sanka_research_eol`, `sanka_research_tco`,
131
- `sanka_research_compare`, and `sanka_assess`. Public research and assessment
132
- remain credential-free; the MCP server does not execute migrations.
139
+ The local research MCP server and the `mcp` installation extra were removed
140
+ in `sanka-cli` 0.2.9. Replace any `command: "sanka", args: ["mcp"]`
141
+ configuration with the hosted URL above. The old command exits with a
142
+ retirement message; it does not start a server or make a network request.
143
+ Local migration commands and SDK adapters continue to use the CLI.
133
144
 
134
145
  ## License
135
146
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sanka-cli"
3
- version = "0.2.8"
3
+ version = "0.2.9"
4
4
  description = "Sanka command-line interface and migration runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -25,9 +25,6 @@ dependencies = [
25
25
  "rich>=13,<15",
26
26
  ]
27
27
 
28
- [project.optional-dependencies]
29
- mcp = ["mcp>=1.12,<2", "pydantic>=2.11,<3", "pydantic-settings>=2.10,<3"]
30
-
31
28
  [project.scripts]
32
29
  sanka = "sanka_cli.main:main"
33
30
 
@@ -627,6 +627,9 @@ def _build_parser(*, json_errors: bool = False) -> argparse.ArgumentParser:
627
627
  marketplace_add = marketplace_commands.add_parser("add", help="add a trusted snapshot")
628
628
  marketplace_add.add_argument("source")
629
629
  marketplace_add.add_argument("--name")
630
+ marketplace_add.add_argument(
631
+ "--revision", help="pin an explicit full Git commit instead of the default catalog"
632
+ )
630
633
  marketplace_add.add_argument(
631
634
  "--trust", action="store_true", help="explicitly trust a third-party source"
632
635
  )
@@ -782,6 +785,7 @@ async def _cmd_extension_marketplace_add(args: argparse.Namespace) -> int:
782
785
  args.source,
783
786
  name=args.name,
784
787
  trust=args.trust,
788
+ revision=args.revision,
785
789
  )
786
790
  return _extension_result(args, "marketplace_add", [record.to_dict()])
787
791
 
@@ -56,6 +56,9 @@ from sanka_extensions.data import ENTRY_POINT_GROUP, ExtensionRegistration
56
56
 
57
57
  OFFICIAL_IDENTITY = "github.com/sankaHQ/extensions"
58
58
  OFFICIAL_SOURCE = "https://github.com/sankaHQ/extensions.git"
59
+ # Published extensions-v0.1.0a18. Advance only after verifying its release wheels.
60
+ # The development catalog can refer to artifacts that have not been published yet.
61
+ OFFICIAL_REVISION = "1a8c9450243b1cc25096396244dac5ed3cf7abfd"
59
62
  DEFAULT_EXTENSION_ID = "sanka/drf-to-fastapi"
60
63
  MAX_WHEEL_BYTES = 128 * 1024 * 1024
61
64
  MAX_WHEEL_UNCOMPRESSED_BYTES = 512 * 1024 * 1024
@@ -353,6 +356,7 @@ class MarketplaceRecord:
353
356
  content_digest: str | None
354
357
  tree_digest: str
355
358
  snapshot_root: Path
359
+ revision: str | None = None
356
360
 
357
361
  def to_dict(self) -> dict[str, Any]:
358
362
  return asdict(self) | {"snapshot_root": str(self.snapshot_root)}
@@ -1147,7 +1151,9 @@ class ExtensionStore:
1147
1151
  "trusted",
1148
1152
  "tree_digest",
1149
1153
  }
1150
- if set(value) != keys or not isinstance(value.get("snapshot_root"), str):
1154
+ if set(value) not in (keys, keys | {"revision"}) or not isinstance(
1155
+ value.get("snapshot_root"), str
1156
+ ):
1151
1157
  _error(
1152
1158
  "SANKA_EXTENSION_STATE_INVALID",
1153
1159
  "Marketplace record is invalid",
@@ -1184,6 +1190,7 @@ class ExtensionStore:
1184
1190
  and value["content_digest"] is None
1185
1191
  and isinstance(value["snapshot_digest"], str)
1186
1192
  and _COMMIT.fullmatch(value["snapshot_digest"]) is not None
1193
+ and (value.get("revision") is None or value["revision"] == value["resolved_commit"])
1187
1194
  )
1188
1195
  else:
1189
1196
  valid_snapshot = (
@@ -1192,6 +1199,7 @@ class ExtensionStore:
1192
1199
  and value["tree_digest"] == value["snapshot_digest"]
1193
1200
  and isinstance(value["snapshot_digest"], str)
1194
1201
  and re.fullmatch(r"sha256:[0-9a-f]{64}", value["snapshot_digest"]) is not None
1202
+ and value.get("revision") is None
1195
1203
  )
1196
1204
  if not valid_snapshot:
1197
1205
  _error(
@@ -1227,6 +1235,7 @@ class ExtensionStore:
1227
1235
  content_digest=value["content_digest"],
1228
1236
  tree_digest=value["tree_digest"],
1229
1237
  snapshot_root=root,
1238
+ revision=value.get("revision"),
1230
1239
  )
1231
1240
 
1232
1241
  @_store_operation
@@ -1450,14 +1459,34 @@ class ExtensionStore:
1450
1459
  with suppress(OSError, ExtensionError):
1451
1460
  _remove_store_tree(self.user_root, staging.parent)
1452
1461
 
1453
- def _snapshot_git(self, source: str, identity: str) -> tuple[Path, str, str, int]:
1462
+ def _snapshot_git(
1463
+ self, source: str, identity: str, *, revision: str | None = None
1464
+ ) -> tuple[Path, str, str, int]:
1465
+ selected_revision = revision or (
1466
+ OFFICIAL_REVISION if identity == OFFICIAL_IDENTITY else None
1467
+ )
1454
1468
  temporary_root = self._confined(self.user_root, self.user_root / "tmp")
1455
1469
  temporary_root.mkdir(parents=True, exist_ok=True)
1456
1470
  parent = Path(tempfile.mkdtemp(prefix="git-", dir=temporary_root))
1457
1471
  checkout = parent / "checkout"
1458
1472
  try:
1459
1473
  subprocess.run(
1460
- ["git", "clone", "--quiet", "--", source, str(checkout)],
1474
+ ["git", "clone", "--quiet", "--no-checkout", "--", source, str(checkout)],
1475
+ check=True,
1476
+ capture_output=True,
1477
+ text=True,
1478
+ )
1479
+ subprocess.run(
1480
+ [
1481
+ "git",
1482
+ "-C",
1483
+ str(checkout),
1484
+ "checkout",
1485
+ "--quiet",
1486
+ "--detach",
1487
+ selected_revision or "HEAD",
1488
+ "--",
1489
+ ],
1461
1490
  check=True,
1462
1491
  capture_output=True,
1463
1492
  text=True,
@@ -1468,7 +1497,9 @@ class ExtensionStore:
1468
1497
  capture_output=True,
1469
1498
  text=True,
1470
1499
  ).stdout.strip()
1471
- if _COMMIT.fullmatch(commit) is None:
1500
+ if _COMMIT.fullmatch(commit) is None or (
1501
+ selected_revision is not None and commit != selected_revision
1502
+ ):
1472
1503
  _error(
1473
1504
  "SANKA_MARKETPLACE_GIT_INVALID",
1474
1505
  "Marketplace Git source did not resolve to an immutable commit",
@@ -1516,8 +1547,16 @@ class ExtensionStore:
1516
1547
  *,
1517
1548
  name: str | None = None,
1518
1549
  trust: bool = False,
1550
+ revision: str | None = None,
1519
1551
  ) -> MarketplaceRecord:
1520
1552
  kind, fetch_source, identity = _canonical_source(source)
1553
+ if revision is not None and (
1554
+ kind != "git" or not isinstance(revision, str) or _COMMIT.fullmatch(revision) is None
1555
+ ):
1556
+ _error(
1557
+ "SANKA_MARKETPLACE_REVISION_INVALID",
1558
+ "A marketplace revision must be a full immutable Git commit",
1559
+ )
1521
1560
  trusted = identity == OFFICIAL_IDENTITY or trust
1522
1561
  if not trusted:
1523
1562
  _error(
@@ -1538,7 +1577,14 @@ class ExtensionStore:
1538
1577
  name=chosen_name,
1539
1578
  )
1540
1579
  if kind == "git":
1541
- root, digest, tree_digest, descriptor = self._snapshot_git(fetch_source, identity)
1580
+ if revision is None:
1581
+ root, digest, tree_digest, descriptor = self._snapshot_git(
1582
+ fetch_source, identity
1583
+ )
1584
+ else:
1585
+ root, digest, tree_digest, descriptor = self._snapshot_git(
1586
+ fetch_source, identity, revision=revision
1587
+ )
1542
1588
  commit, content_digest = digest, None
1543
1589
  else:
1544
1590
  root, digest, tree_digest, descriptor = self._snapshot_local(
@@ -1564,6 +1610,8 @@ class ExtensionStore:
1564
1610
  "tree_digest": tree_digest,
1565
1611
  "trusted": trusted,
1566
1612
  }
1613
+ if revision is not None:
1614
+ raw["revision"] = revision
1567
1615
  records.append(raw)
1568
1616
  self._write_marketplace_state(records, snapshots)
1569
1617
  return self._record(raw, history)
@@ -1591,7 +1639,15 @@ class ExtensionStore:
1591
1639
  identity = raw["identity"]
1592
1640
  source = raw["source"]
1593
1641
  if kind == "git":
1594
- root, digest, tree_digest, descriptor = self._snapshot_git(source, identity)
1642
+ revision = raw.get("revision")
1643
+ if revision is None:
1644
+ root, digest, tree_digest, descriptor = self._snapshot_git(
1645
+ source, identity
1646
+ )
1647
+ else:
1648
+ root, digest, tree_digest, descriptor = self._snapshot_git(
1649
+ source, identity, revision=revision
1650
+ )
1595
1651
  raw["resolved_commit"], raw["content_digest"] = digest, None
1596
1652
  elif kind == "local":
1597
1653
  current_kind, current_source, current_identity = _canonical_source(source)
@@ -0,0 +1,2 @@
1
+ # SPDX-License-Identifier: AGPL-3.0-only
2
+ """Host-neutral workflow reconstruction, installation state and lifecycle."""
@@ -0,0 +1,79 @@
1
+ # SPDX-License-Identifier: AGPL-3.0-only
2
+ """Target service and scenario ports for Flow; never an automation engine."""
3
+
4
+ from __future__ import annotations
5
+
6
+ from dataclasses import dataclass
7
+ from typing import Literal, Protocol
8
+
9
+ from sanka.runtime.flow.model import (
10
+ Claim,
11
+ Document,
12
+ Installation,
13
+ OperationReceipt,
14
+ TargetSnapshot,
15
+ )
16
+
17
+
18
+ @dataclass(frozen=True, slots=True)
19
+ class Recovery:
20
+ status: Literal["absent", "found", "unknown"]
21
+ receipt: OperationReceipt | None = None
22
+
23
+
24
+ @dataclass(frozen=True, slots=True)
25
+ class ActivationRecovery:
26
+ status: Literal["absent", "found", "unknown"]
27
+ observation: Document | None = None
28
+
29
+
30
+ class FlowTarget(Protocol):
31
+ """A host adapter closed over one authenticated target and installation.
32
+
33
+ Every mutation must atomically enforce its claim and observed preconditions,
34
+ and durably deduplicate the operation before returning. A read immediately
35
+ before an unconditional remote write is insufficient. Recovery returns absent
36
+ only when an older attempt cannot subsequently commit that operation; unknown
37
+ leaves the plan interrupted. Workflow construction must remain inactive.
38
+ """
39
+
40
+ @property
41
+ def target(self) -> str: ...
42
+
43
+ async def observe(self, target_ids: tuple[str, ...]) -> TargetSnapshot: ...
44
+
45
+ async def recover(self, operation: Document, claim: Claim) -> Recovery: ...
46
+
47
+ async def construct(
48
+ self,
49
+ operation: Document,
50
+ expected: Document,
51
+ bindings: Document,
52
+ claim: Claim,
53
+ ) -> OperationReceipt: ...
54
+
55
+ async def run_scenario(
56
+ self,
57
+ scenario: Document,
58
+ installation: Installation,
59
+ claim: Claim,
60
+ ) -> Document:
61
+ """Exercise the target's native semantics with isolated records/adapters.
62
+
63
+ Return scenario_id, scenario_digest, installation_id, workflow_target_id,
64
+ outcome (passed|failed|skipped), isolated=true, completed_event_digests in
65
+ delivery order, event_record_bindings mapping original scenario record IDs
66
+ to actual isolated native record IDs, and created_records containing id,
67
+ object_ref, fields and associations. Enumerate all native records created across deliveries,
68
+ including retries; associations map reference IDs to actual record IDs.
69
+ The shared runtime compares actual readback with expected counts/values.
70
+ No live messages, payments or provider writes are allowed. This port must
71
+ use native execution rather than a parallel business-action executor.
72
+ """
73
+ ...
74
+
75
+ async def recover_activation(self, intent: Document, claim: Claim) -> ActivationRecovery: ...
76
+
77
+ async def activate(self, intent: Document, expected: Document, claim: Claim) -> Document:
78
+ """Atomically activate only the observed and verified workflow revisions."""
79
+ ...