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.
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/PKG-INFO +24 -17
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/README.md +23 -12
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/pyproject.toml +1 -4
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/__init__.py +4 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/discovery.py +113 -2
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/model.py +55 -1
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/store.py +106 -15
- sanka_cli-0.2.10/src/sanka/runtime/flow/__init__.py +2 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/extension.py +263 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/host.py +79 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/lifecycle.py +341 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/merge.py +109 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/model.py +240 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/planner.py +186 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/sqlite.py +406 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/state.py +55 -0
- sanka_cli-0.2.10/src/sanka/runtime/flow/verification.py +160 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/__init__.py +1 -1
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/main.py +7 -10
- sanka_cli-0.2.10/src/sanka_extensions/flow/__init__.py +101 -0
- sanka_cli-0.2.10/src/sanka_extensions/flow/_wire.py +134 -0
- sanka_cli-0.2.10/src/sanka_extensions/flow/blueprint.py +483 -0
- sanka_cli-0.2.10/src/sanka_extensions/flow/graph.py +474 -0
- sanka_cli-0.2.10/src/sanka_extensions/flow/identity.py +177 -0
- sanka_cli-0.2.10/src/sanka_extensions/flow/protocol.py +524 -0
- sanka_cli-0.2.10/src/sanka_extensions/flow/scenario.py +169 -0
- sanka_cli-0.2.10/src/sanka_extensions/flow/source.py +188 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/conftest.py +4 -0
- sanka_cli-0.2.10/tests/fixtures/flow/synthetic_sales_created_estimate_blueprint.json +306 -0
- sanka_cli-0.2.10/tests/fixtures/flow/synthetic_sales_quote_blueprint.json +325 -0
- sanka_cli-0.2.10/tests/flow_wheel_acceptance.py +135 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_cli.py +8 -4
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_store.py +59 -0
- sanka_cli-0.2.10/tests/test_flow_extension.py +275 -0
- sanka_cli-0.2.10/tests/test_flow_extension_wheel_acceptance.py +65 -0
- sanka_cli-0.2.10/tests/test_flow_lifecycle.py +405 -0
- sanka_cli-0.2.10/tests/test_flow_merge.py +73 -0
- sanka_cli-0.2.10/tests/test_flow_planner.py +229 -0
- sanka_cli-0.2.10/tests/test_flow_sdk_codec.py +112 -0
- sanka_cli-0.2.10/tests/test_flow_sqlite.py +168 -0
- sanka_cli-0.2.10/tests/test_flow_verification.py +179 -0
- sanka_cli-0.2.10/tests/test_mcp_retirement.py +41 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/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/src/sanka_extensions/flow/__init__.py +0 -18
- sanka_cli-0.2.8/tests/test_mcp.py +0 -90
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/.gitignore +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/LICENSES/AGPL-3.0-only.txt +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/LICENSES/Apache-2.0.txt +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/NOTICE +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/_client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/_compact.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/_output.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/_research.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/cli/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/connector/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/connector/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/concurrency.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/connector_client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/connector_host.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/engine.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/continuous.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/local.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/model.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/report_codec.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/routes.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/scope.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/state.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/execution/validate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/artifacts.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/code_lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/code_repair.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/runner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/extensions/stage.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/hashing.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/mapping_candidates.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/model.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/owner_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/pending_relationships.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/mapping/record_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/planner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/private_sqlite.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/registry.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/safe_local_io.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/spec.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka/runtime/state.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/__main__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/bundle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/certificates.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/ai.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/auth.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/cloud.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/cloud_fleet.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/cloud_migrate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/code.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/functions.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/migrate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/profiles.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/resources.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/skill.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/commands/workflows.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/config.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/output.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/runtime.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/skills/sanka-cli/SKILL.md +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_cli/state.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/credentials.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/protocols.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/provisioning.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/records.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/registration.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_connector/schema.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extension_sdk/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extension_sdk/contract.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extension_sdk/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/code/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/code/contract.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/credentials.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/protocols.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/provisioning.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/records.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/registration.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/data/schema.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/flow/definition.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/__about__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/credentials.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/errors.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/protocols.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/provisioning.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/py.typed +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/records.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/registration.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/src/sanka_extensions/systems/schema.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/api/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/api/serializers.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/api/views.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/config/__init__.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/config/settings.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/config/urls.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_drf_project/manage.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_marketplace/drf-to-fastapi.json +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/fixtures/extension_marketplace/marketplace.json +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_cli_developer_experience.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_bundle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_commands.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_code_repair.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_concurrency.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_connector_client.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_connector_host.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_credential_provider.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_e2e.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_execution_adoption.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_pg_to_clickhouse_e2e.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_engine_postgres_e2e.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_continuous.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_exact_scope.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_local_store.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_report_codec.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_routes.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_scope.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_seam.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_execution_validate.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_discovery.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_lifecycle.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_runner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_stage.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_extension_wheel_acceptance.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_hashing.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_hosted_cli.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_candidates.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_owner_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_pending_relationships.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_mapping_record_mapping.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_planner.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_registry.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_safe_local_io.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_skill_commands.py +0 -0
- {sanka_cli-0.2.8 → sanka_cli-0.2.10}/tests/test_spec.py +0 -0
- {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.
|
|
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
|
|
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.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 =
|
|
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 = "
|
|
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)
|