sanka-cli 0.2.8__tar.gz → 0.2.10__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 (206) hide show
  1. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/PKG-INFO +24 -17
  2. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/README.md +23 -12
  3. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/pyproject.toml +1 -4
  4. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/__init__.py +4 -0
  5. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/discovery.py +113 -2
  6. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/model.py +55 -1
  7. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/store.py +106 -15
  8. sanka_cli-0.2.10/src/sanka/runtime/flow/__init__.py +2 -0
  9. sanka_cli-0.2.10/src/sanka/runtime/flow/extension.py +263 -0
  10. sanka_cli-0.2.10/src/sanka/runtime/flow/host.py +79 -0
  11. sanka_cli-0.2.10/src/sanka/runtime/flow/lifecycle.py +341 -0
  12. sanka_cli-0.2.10/src/sanka/runtime/flow/merge.py +109 -0
  13. sanka_cli-0.2.10/src/sanka/runtime/flow/model.py +240 -0
  14. sanka_cli-0.2.10/src/sanka/runtime/flow/planner.py +186 -0
  15. sanka_cli-0.2.10/src/sanka/runtime/flow/sqlite.py +406 -0
  16. sanka_cli-0.2.10/src/sanka/runtime/flow/state.py +55 -0
  17. sanka_cli-0.2.10/src/sanka/runtime/flow/verification.py +160 -0
  18. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/__init__.py +1 -1
  19. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/main.py +7 -10
  20. sanka_cli-0.2.10/src/sanka_extensions/flow/__init__.py +101 -0
  21. sanka_cli-0.2.10/src/sanka_extensions/flow/_wire.py +134 -0
  22. sanka_cli-0.2.10/src/sanka_extensions/flow/blueprint.py +483 -0
  23. sanka_cli-0.2.10/src/sanka_extensions/flow/graph.py +474 -0
  24. sanka_cli-0.2.10/src/sanka_extensions/flow/identity.py +177 -0
  25. sanka_cli-0.2.10/src/sanka_extensions/flow/protocol.py +524 -0
  26. sanka_cli-0.2.10/src/sanka_extensions/flow/scenario.py +169 -0
  27. sanka_cli-0.2.10/src/sanka_extensions/flow/source.py +188 -0
  28. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/conftest.py +4 -0
  29. sanka_cli-0.2.10/tests/fixtures/flow/synthetic_sales_created_estimate_blueprint.json +306 -0
  30. sanka_cli-0.2.10/tests/fixtures/flow/synthetic_sales_quote_blueprint.json +325 -0
  31. sanka_cli-0.2.10/tests/flow_wheel_acceptance.py +135 -0
  32. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_cli.py +8 -4
  33. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_store.py +59 -0
  34. sanka_cli-0.2.10/tests/test_flow_extension.py +275 -0
  35. sanka_cli-0.2.10/tests/test_flow_extension_wheel_acceptance.py +65 -0
  36. sanka_cli-0.2.10/tests/test_flow_lifecycle.py +405 -0
  37. sanka_cli-0.2.10/tests/test_flow_merge.py +73 -0
  38. sanka_cli-0.2.10/tests/test_flow_planner.py +229 -0
  39. sanka_cli-0.2.10/tests/test_flow_sdk_codec.py +112 -0
  40. sanka_cli-0.2.10/tests/test_flow_sqlite.py +168 -0
  41. sanka_cli-0.2.10/tests/test_flow_verification.py +179 -0
  42. sanka_cli-0.2.10/tests/test_mcp_retirement.py +41 -0
  43. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_sanka_facade.py +1 -3
  44. sanka_cli-0.2.8/src/sanka_cli/mcp/__init__.py +0 -7
  45. sanka_cli-0.2.8/src/sanka_cli/mcp/client.py +0 -222
  46. sanka_cli-0.2.8/src/sanka_cli/mcp/render.py +0 -223
  47. sanka_cli-0.2.8/src/sanka_cli/mcp/server.py +0 -210
  48. sanka_cli-0.2.8/src/sanka_extensions/flow/__init__.py +0 -18
  49. sanka_cli-0.2.8/tests/test_mcp.py +0 -90
  50. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/.gitignore +0 -0
  51. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/LICENSES/AGPL-3.0-only.txt +0 -0
  52. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/LICENSES/Apache-2.0.txt +0 -0
  53. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/NOTICE +0 -0
  54. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/__init__.py +0 -0
  55. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/_client.py +0 -0
  56. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/_compact.py +0 -0
  57. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/_output.py +0 -0
  58. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/_research.py +0 -0
  59. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/py.typed +0 -0
  60. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/connector/__init__.py +0 -0
  61. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/connector/py.typed +0 -0
  62. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/__about__.py +0 -0
  63. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/__init__.py +0 -0
  64. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/concurrency.py +0 -0
  65. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/connector_client.py +0 -0
  66. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/connector_host.py +0 -0
  67. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/engine.py +0 -0
  68. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/__init__.py +0 -0
  69. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/continuous.py +0 -0
  70. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/errors.py +0 -0
  71. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/local.py +0 -0
  72. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/model.py +0 -0
  73. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/report_codec.py +0 -0
  74. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/routes.py +0 -0
  75. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/scope.py +0 -0
  76. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/state.py +0 -0
  77. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/validate.py +0 -0
  78. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/__init__.py +0 -0
  79. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/artifacts.py +0 -0
  80. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/code_lifecycle.py +0 -0
  81. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/code_repair.py +0 -0
  82. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/lifecycle.py +0 -0
  83. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/runner.py +0 -0
  84. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/stage.py +0 -0
  85. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/hashing.py +0 -0
  86. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/__init__.py +0 -0
  87. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/errors.py +0 -0
  88. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/mapping_candidates.py +0 -0
  89. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/model.py +0 -0
  90. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/owner_mapping.py +0 -0
  91. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/pending_relationships.py +0 -0
  92. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/record_mapping.py +0 -0
  93. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/planner.py +0 -0
  94. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/private_sqlite.py +0 -0
  95. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/py.typed +0 -0
  96. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/registry.py +0 -0
  97. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/safe_local_io.py +0 -0
  98. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/spec.py +0 -0
  99. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/state.py +0 -0
  100. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/__main__.py +0 -0
  101. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/bundle.py +0 -0
  102. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/certificates.py +0 -0
  103. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/client.py +0 -0
  104. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/__init__.py +0 -0
  105. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/ai.py +0 -0
  106. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/auth.py +0 -0
  107. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/cloud.py +0 -0
  108. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/cloud_fleet.py +0 -0
  109. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/cloud_migrate.py +0 -0
  110. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/code.py +0 -0
  111. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/functions.py +0 -0
  112. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/migrate.py +0 -0
  113. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/profiles.py +0 -0
  114. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/resources.py +0 -0
  115. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/skill.py +0 -0
  116. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/workflows.py +0 -0
  117. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/config.py +0 -0
  118. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/output.py +0 -0
  119. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/runtime.py +0 -0
  120. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/skills/sanka-cli/SKILL.md +0 -0
  121. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/state.py +0 -0
  122. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/__about__.py +0 -0
  123. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/__init__.py +0 -0
  124. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/credentials.py +0 -0
  125. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/errors.py +0 -0
  126. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/protocols.py +0 -0
  127. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/provisioning.py +0 -0
  128. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/py.typed +0 -0
  129. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/records.py +0 -0
  130. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/registration.py +0 -0
  131. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/schema.py +0 -0
  132. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extension_sdk/__init__.py +0 -0
  133. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extension_sdk/contract.py +0 -0
  134. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extension_sdk/py.typed +0 -0
  135. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/__init__.py +0 -0
  136. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/code/__init__.py +0 -0
  137. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/code/contract.py +0 -0
  138. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/__about__.py +0 -0
  139. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/__init__.py +0 -0
  140. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/credentials.py +0 -0
  141. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/errors.py +0 -0
  142. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/protocols.py +0 -0
  143. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/provisioning.py +0 -0
  144. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/py.typed +0 -0
  145. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/records.py +0 -0
  146. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/registration.py +0 -0
  147. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/schema.py +0 -0
  148. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/flow/definition.py +0 -0
  149. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/py.typed +0 -0
  150. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/__about__.py +0 -0
  151. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/__init__.py +0 -0
  152. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/credentials.py +0 -0
  153. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/errors.py +0 -0
  154. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/protocols.py +0 -0
  155. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/provisioning.py +0 -0
  156. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/py.typed +0 -0
  157. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/records.py +0 -0
  158. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/registration.py +0 -0
  159. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/schema.py +0 -0
  160. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/api/__init__.py +0 -0
  161. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/api/serializers.py +0 -0
  162. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/api/views.py +0 -0
  163. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/config/__init__.py +0 -0
  164. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/config/settings.py +0 -0
  165. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/config/urls.py +0 -0
  166. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/manage.py +0 -0
  167. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_marketplace/drf-to-fastapi.json +0 -0
  168. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_marketplace/marketplace.json +0 -0
  169. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_cli_developer_experience.py +0 -0
  170. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_bundle.py +0 -0
  171. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_commands.py +0 -0
  172. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_lifecycle.py +0 -0
  173. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_repair.py +0 -0
  174. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_concurrency.py +0 -0
  175. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_connector_client.py +0 -0
  176. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_connector_host.py +0 -0
  177. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_credential_provider.py +0 -0
  178. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_e2e.py +0 -0
  179. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_execution_adoption.py +0 -0
  180. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_pg_to_clickhouse_e2e.py +0 -0
  181. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_postgres_e2e.py +0 -0
  182. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_continuous.py +0 -0
  183. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_exact_scope.py +0 -0
  184. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_local_store.py +0 -0
  185. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_report_codec.py +0 -0
  186. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_routes.py +0 -0
  187. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_scope.py +0 -0
  188. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_seam.py +0 -0
  189. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_validate.py +0 -0
  190. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_discovery.py +0 -0
  191. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_lifecycle.py +0 -0
  192. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_runner.py +0 -0
  193. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_stage.py +0 -0
  194. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_wheel_acceptance.py +0 -0
  195. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_hashing.py +0 -0
  196. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_hosted_cli.py +0 -0
  197. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_candidates.py +0 -0
  198. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_owner_mapping.py +0 -0
  199. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_pending_relationships.py +0 -0
  200. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_record_mapping.py +0 -0
  201. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_planner.py +0 -0
  202. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_registry.py +0 -0
  203. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_safe_local_io.py +0 -0
  204. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_skill_commands.py +0 -0
  205. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_spec.py +0 -0
  206. {sanka_cli-0.2.8 → sanka_cli-0.2.10}/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.10
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.10"
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
 
@@ -20,6 +20,10 @@ from sanka.runtime.extensions.model import (
20
20
  EndpointSupport,
21
21
  ExtensionError,
22
22
  Fingerprint,
23
+ FlowCapability,
24
+ FlowReferenceRole,
25
+ FlowTemplateIdentity,
26
+ FlowValueRole,
23
27
  Manifest,
24
28
  MatchedEvidence,
25
29
  Matcher,
@@ -425,6 +429,100 @@ def _load_json(path: Path, code: str, *, data: bytes | None = None) -> dict[str,
425
429
  return payload
426
430
 
427
431
 
432
+ def _flow_capabilities(value: Any, code: str, path: Path) -> tuple[FlowCapability, ...]:
433
+ """Validate static Flow declarations without importing an extension SDK or provider."""
434
+ logical_id = re.compile(r"[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}")
435
+
436
+ def identifier(item: Any) -> bool:
437
+ return isinstance(item, str) and logical_id.fullmatch(item) is not None
438
+
439
+ if not isinstance(value, list) or not value:
440
+ _invalid(code, path, "Flow capabilities must be a nonempty array")
441
+ capabilities: list[FlowCapability] = []
442
+ for raw in value:
443
+ item = _object(
444
+ raw,
445
+ {"type", "references", "values", "template", "output_schema"},
446
+ code,
447
+ path,
448
+ "capability",
449
+ )
450
+ flow_type = item["type"]
451
+ if (
452
+ not isinstance(flow_type, str)
453
+ or len(flow_type) > 127
454
+ or re.fullmatch(
455
+ r"[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:/[a-z][a-z0-9]*(?:-[a-z0-9]+)*)?", flow_type
456
+ )
457
+ is None
458
+ or item["output_schema"] not in ("sanka-flow-blueprint/v1", "sanka-flow-blueprint/v2")
459
+ or not isinstance(item["references"], list)
460
+ or not isinstance(item["values"], list)
461
+ ):
462
+ _invalid(code, path, "Flow capability type, output schema or inputs are invalid")
463
+ template = _object(item["template"], {"id", "revision", "digest"}, code, path, "template")
464
+ if (
465
+ template["id"] != flow_type
466
+ or not isinstance(template["revision"], str)
467
+ or not template["revision"].strip()
468
+ or template["revision"] != template["revision"].strip()
469
+ or len(template["revision"]) > 1024
470
+ or not isinstance(template["digest"], str)
471
+ or re.fullmatch(r"sha256:[0-9a-f]{64}", template["digest"]) is None
472
+ ):
473
+ _invalid(code, path, "Flow capability requires an exact template artifact identity")
474
+ references: list[FlowReferenceRole] = []
475
+ for raw_role in item["references"]:
476
+ role = _object(
477
+ raw_role,
478
+ {"id", "kind", "parent_id", "related_object_id"},
479
+ code,
480
+ path,
481
+ "reference role",
482
+ )
483
+ kind, parent, related = role["kind"], role["parent_id"], role["related_object_id"]
484
+ if (
485
+ not identifier(role["id"])
486
+ or kind not in ("object", "property", "relationship", "record")
487
+ or (kind == "object" and (parent is not None or related is not None))
488
+ or (kind != "object" and not identifier(parent))
489
+ or (kind == "relationship" and not identifier(related))
490
+ or (kind != "relationship" and related is not None)
491
+ ):
492
+ _invalid(code, path, "Flow reference role is invalid")
493
+ references.append(FlowReferenceRole(**role))
494
+ index = {reference.id: reference for reference in references}
495
+ if len(index) != len(references):
496
+ _invalid(code, path, "Flow reference roles must be unique")
497
+ for reference in references:
498
+ for parent in (reference.parent_id, reference.related_object_id):
499
+ if parent is not None and (parent not in index or index[parent].kind != "object"):
500
+ _invalid(code, path, "Flow reference role must name a declared object parent")
501
+ values: list[FlowValueRole] = []
502
+ for raw_role in item["values"]:
503
+ role = _object(raw_role, {"id", "types"}, code, path, "value role")
504
+ types = _string_list(role["types"], code=code, path=path, label="Flow scalar types")
505
+ if not identifier(role["id"]) or not set(types).issubset(
506
+ {"string", "number", "boolean", "null"}
507
+ ):
508
+ _invalid(code, path, "Flow value role is invalid")
509
+ values.append(FlowValueRole(role["id"], tuple(sorted(types))))
510
+ if len({role.id for role in values}) != len(values):
511
+ _invalid(code, path, "Flow value roles must be unique")
512
+ capabilities.append(
513
+ FlowCapability(
514
+ flow_type,
515
+ tuple(sorted(references, key=lambda role: role.id)),
516
+ tuple(sorted(values, key=lambda role: role.id)),
517
+ FlowTemplateIdentity(**template),
518
+ item["output_schema"],
519
+ )
520
+ )
521
+ if len({capability.type for capability in capabilities}) != len(capabilities):
522
+ _invalid(code, path, "Flow capability types must be unique")
523
+ return tuple(sorted(capabilities, key=lambda capability: capability.type))
524
+
525
+
428
526
  def _load_manifest(path: Path, marketplace: str, *, data: bytes | None = None) -> Manifest:
429
527
  code = "SANKA_EXTENSION_MANIFEST_INVALID"
430
528
  raw = _load_json(path, code, data=data)
@@ -445,6 +543,8 @@ def _load_manifest(path: Path, marketplace: str, *, data: bytes | None = None) -
445
543
  keys = common | {"commands", "match", "targets"}
446
544
  elif kind == "connector":
447
545
  keys = common | {"providers"}
546
+ elif kind == "flow":
547
+ keys = common | {"commands", "capabilities"}
448
548
  else:
449
549
  _invalid(code, path, "manifest kind is unsupported")
450
550
  payload = _object(
@@ -459,11 +559,15 @@ def _load_manifest(path: Path, marketplace: str, *, data: bytes | None = None) -
459
559
  version = payload["version"]
460
560
  if not isinstance(version, str) or VERSION.fullmatch(version) is None:
461
561
  _invalid(code, path, "extension version must be exact")
462
- protocol = "sanka-extension/v1" if kind == "migration" else "sanka-connector/v1"
562
+ protocol = {
563
+ "migration": "sanka-extension/v1",
564
+ "connector": "sanka-connector/v1",
565
+ "flow": "sanka-flow-extension/v1",
566
+ }[kind]
463
567
  if payload["protocol_version"] != protocol:
464
568
  _invalid(code, path, "manifest kind and protocol version differ")
465
569
 
466
- distribution_key = "executable" if kind == "migration" else "entry_point"
570
+ distribution_key = "entry_point" if kind == "connector" else "executable"
467
571
  distribution = _object(
468
572
  payload["distribution"],
469
573
  {distribution_key, "name", "version"},
@@ -485,6 +589,7 @@ def _load_manifest(path: Path, marketplace: str, *, data: bytes | None = None) -
485
589
  match_all: tuple[Matcher, ...] = ()
486
590
  match_any: tuple[Matcher, ...] = ()
487
591
  providers: tuple[EndpointSupport, ...] = ()
592
+ capabilities: tuple[FlowCapability, ...] = ()
488
593
  if kind == "migration":
489
594
  commands = _string_list(payload["commands"], code=code, path=path, label="commands")
490
595
  if not set(commands).issubset(LIFECYCLE_COMMANDS):
@@ -503,6 +608,11 @@ def _load_manifest(path: Path, marketplace: str, *, data: bytes | None = None) -
503
608
  _invalid(code, path, "manifest must declare at least one matcher")
504
609
  if len(set(match_all)) != len(match_all) or len(set(match_any)) != len(match_any):
505
610
  _invalid(code, path, "manifest matchers must be unique")
611
+ elif kind == "flow":
612
+ if payload["commands"] != ["blueprint"]:
613
+ _invalid(code, path, "Flow extensions expose only the blueprint command")
614
+ commands = ("blueprint",)
615
+ capabilities = _flow_capabilities(payload["capabilities"], code, path)
506
616
  else:
507
617
  raw_providers = payload["providers"]
508
618
  if not isinstance(raw_providers, list) or not raw_providers:
@@ -589,6 +699,7 @@ def _load_manifest(path: Path, marketplace: str, *, data: bytes | None = None) -
589
699
  runtime_sanka_cli=runtime_specifier,
590
700
  wheels=tuple(sorted(wheels, key=lambda item: item.name)),
591
701
  digest=content_hash(payload),
702
+ capabilities=capabilities,
592
703
  )
593
704
 
594
705
 
@@ -50,6 +50,59 @@ class EndpointSupport:
50
50
  roles: tuple[Literal["source", "destination"], ...]
51
51
 
52
52
 
53
+ @dataclass(frozen=True)
54
+ class FlowReferenceRole:
55
+ id: str
56
+ kind: str
57
+ parent_id: str | None
58
+ related_object_id: str | None
59
+
60
+ def to_dict(self) -> dict[str, Any]:
61
+ return {
62
+ "id": self.id,
63
+ "kind": self.kind,
64
+ "parent_id": self.parent_id,
65
+ "related_object_id": self.related_object_id,
66
+ }
67
+
68
+
69
+ @dataclass(frozen=True)
70
+ class FlowValueRole:
71
+ id: str
72
+ types: tuple[str, ...]
73
+
74
+ def to_dict(self) -> dict[str, Any]:
75
+ return {"id": self.id, "types": list(self.types)}
76
+
77
+
78
+ @dataclass(frozen=True)
79
+ class FlowTemplateIdentity:
80
+ id: str
81
+ revision: str
82
+ digest: str
83
+
84
+ def to_dict(self) -> dict[str, str]:
85
+ return {"id": self.id, "revision": self.revision, "digest": self.digest}
86
+
87
+
88
+ @dataclass(frozen=True)
89
+ class FlowCapability:
90
+ type: str
91
+ references: tuple[FlowReferenceRole, ...]
92
+ values: tuple[FlowValueRole, ...]
93
+ template: FlowTemplateIdentity
94
+ output_schema: str
95
+
96
+ def to_dict(self) -> dict[str, Any]:
97
+ return {
98
+ "type": self.type,
99
+ "references": [item.to_dict() for item in self.references],
100
+ "values": [item.to_dict() for item in self.values],
101
+ "template": self.template.to_dict(),
102
+ "output_schema": self.output_schema,
103
+ }
104
+
105
+
53
106
  @dataclass(frozen=True)
54
107
  class Fingerprint:
55
108
  languages: tuple[str, ...]
@@ -64,7 +117,7 @@ class Manifest:
64
117
  id: str
65
118
  version: str
66
119
  marketplace: str
67
- kind: Literal["migration", "connector"]
120
+ kind: Literal["migration", "connector", "flow"]
68
121
  protocol_version: str
69
122
  distribution: str
70
123
  distribution_version: str
@@ -78,6 +131,7 @@ class Manifest:
78
131
  runtime_sanka_cli: str
79
132
  wheels: tuple[Wheel, ...]
80
133
  digest: str
134
+ capabilities: tuple[FlowCapability, ...] = ()
81
135
 
82
136
 
83
137
  @dataclass(frozen=True)