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.
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/PKG-INFO +24 -17
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/README.md +23 -12
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/pyproject.toml +1 -4
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/__init__.py +4 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/store.py +62 -6
- sanka_cli-0.2.9/src/sanka/runtime/flow/__init__.py +2 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/host.py +79 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/lifecycle.py +341 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/merge.py +109 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/model.py +240 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/planner.py +186 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/sqlite.py +406 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/state.py +55 -0
- sanka_cli-0.2.9/src/sanka/runtime/flow/verification.py +160 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/__init__.py +1 -1
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/main.py +7 -10
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_cli.py +8 -4
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_store.py +59 -0
- sanka_cli-0.2.9/tests/test_flow_lifecycle.py +405 -0
- sanka_cli-0.2.9/tests/test_flow_merge.py +73 -0
- sanka_cli-0.2.9/tests/test_flow_planner.py +229 -0
- sanka_cli-0.2.9/tests/test_flow_sqlite.py +168 -0
- sanka_cli-0.2.9/tests/test_flow_verification.py +179 -0
- sanka_cli-0.2.9/tests/test_mcp_retirement.py +41 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_sanka_facade.py +1 -3
- sanka_cli-0.2.8/src/sanka_cli/mcp/__init__.py +0 -7
- sanka_cli-0.2.8/src/sanka_cli/mcp/client.py +0 -222
- sanka_cli-0.2.8/src/sanka_cli/mcp/render.py +0 -223
- sanka_cli-0.2.8/src/sanka_cli/mcp/server.py +0 -210
- sanka_cli-0.2.8/tests/test_mcp.py +0 -90
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/.gitignore +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/LICENSES/AGPL-3.0-only.txt +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/LICENSES/Apache-2.0.txt +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/NOTICE +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/_client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/_compact.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/_output.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/_research.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/cli/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/connector/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/connector/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/concurrency.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/connector_client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/connector_host.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/engine.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/continuous.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/local.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/model.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/report_codec.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/routes.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/scope.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/state.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/execution/validate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/artifacts.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/code_lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/code_repair.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/discovery.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/model.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/runner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/extensions/stage.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/hashing.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/mapping_candidates.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/model.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/owner_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/pending_relationships.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/mapping/record_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/planner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/private_sqlite.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/registry.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/safe_local_io.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/spec.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka/runtime/state.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/__main__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/bundle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/certificates.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/ai.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/auth.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/cloud.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/cloud_fleet.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/cloud_migrate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/code.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/functions.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/migrate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/profiles.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/resources.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/skill.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/commands/workflows.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/config.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/output.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/runtime.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/skills/sanka-cli/SKILL.md +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_cli/state.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/credentials.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/protocols.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/provisioning.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/records.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/registration.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_connector/schema.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extension_sdk/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extension_sdk/contract.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extension_sdk/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/code/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/code/contract.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/credentials.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/protocols.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/provisioning.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/records.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/registration.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/data/schema.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/flow/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/flow/definition.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/credentials.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/protocols.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/provisioning.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/records.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/registration.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/src/sanka_extensions/systems/schema.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/conftest.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/api/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/api/serializers.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/api/views.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/config/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/config/settings.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/config/urls.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_drf_project/manage.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_marketplace/drf-to-fastapi.json +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/fixtures/extension_marketplace/marketplace.json +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_cli_developer_experience.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_bundle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_commands.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_code_repair.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_concurrency.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_connector_client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_connector_host.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_credential_provider.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_e2e.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_execution_adoption.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_pg_to_clickhouse_e2e.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_engine_postgres_e2e.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_continuous.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_exact_scope.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_local_store.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_report_codec.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_routes.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_scope.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_seam.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_execution_validate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_discovery.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_runner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_stage.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_extension_wheel_acceptance.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_hashing.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_hosted_cli.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_candidates.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_owner_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_pending_relationships.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_mapping_record_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_planner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_registry.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_safe_local_io.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_skill_commands.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.9}/tests/test_spec.py +0 -0
- {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.
|
|
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
|
|
38
|
-
|
|
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
|
|
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
|
|
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
|
-
`
|
|
162
|
-
`
|
|
163
|
-
|
|
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
|
|
7
|
-
|
|
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
|
|
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
|
|
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
|
-
`
|
|
131
|
-
`
|
|
132
|
-
|
|
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.
|
|
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)
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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,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
|
+
...
|