sanka-cli 0.3.0__tar.gz → 0.3.2__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.3.0 → sanka_cli-0.3.2}/PKG-INFO +8 -15
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/README.md +7 -14
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/pyproject.toml +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/_client.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/__init__.py +5 -5
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/app.py +76 -25
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/model.py +6 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/services.py +25 -3
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/__init__.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/connector_client.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/connector_host.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/engine.py +4 -4
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/model.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/report_codec.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/routes.py +3 -3
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/scope.py +4 -4
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/validate.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/store.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/mapping/mapping_candidates.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/mapping/model.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/mapping/owner_mapping.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/mapping/pending_relationships.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/mapping/record_mapping.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/planner.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/registry.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/state.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/__init__.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/registration.py +1 -1
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/__init__.py +1 -1
- sanka_cli-0.3.2/src/sanka_extensions/systems/__about__.py +6 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/__init__.py +132 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/credentials.py +8 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/errors.py +34 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/protocols.py +48 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/provisioning.py +24 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/records.py +44 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/registration.py +7 -0
- sanka_cli-0.3.2/src/sanka_extensions/systems/schema.py +10 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_cli.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_connector_client.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_connector_host.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_credential_provider.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_engine_execution_adoption.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_exact_scope.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_routes.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_scope.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_seam.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_validate.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_extension_wheel_acceptance.py +0 -95
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_extension_wheel_acceptance.py +8 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_mapping_candidates.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_mapping_owner_mapping.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_mapping_pending_relationships.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_mapping_record_mapping.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_mcp_retirement.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_planner.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_registry.py +2 -2
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_sanka_facade.py +1 -1
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_tui.py +115 -2
- sanka_cli-0.3.0/src/sanka_extensions/systems/__about__.py +0 -6
- sanka_cli-0.3.0/src/sanka_extensions/systems/__init__.py +0 -132
- sanka_cli-0.3.0/src/sanka_extensions/systems/credentials.py +0 -8
- sanka_cli-0.3.0/src/sanka_extensions/systems/errors.py +0 -34
- sanka_cli-0.3.0/src/sanka_extensions/systems/protocols.py +0 -48
- sanka_cli-0.3.0/src/sanka_extensions/systems/provisioning.py +0 -24
- sanka_cli-0.3.0/src/sanka_extensions/systems/records.py +0 -44
- sanka_cli-0.3.0/src/sanka_extensions/systems/registration.py +0 -7
- sanka_cli-0.3.0/src/sanka_extensions/systems/schema.py +0 -10
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/.gitignore +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/LICENSES/AGPL-3.0-only.txt +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/LICENSES/Apache-2.0.txt +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/NOTICE +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/_compact.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/_output.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/_research.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/_summary.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/py.typed +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/cloud.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/history.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/launch.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/cli/tui/widgets.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/connector/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/connector/py.typed +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/__about__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/concurrency.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/continuous.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/errors.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/local.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/execution/state.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/artifacts.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/code_lifecycle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/code_repair.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/discovery.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/lifecycle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/model.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/runner.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/extensions/stage.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/extension.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/host.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/lifecycle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/merge.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/model.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/native_verification.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/planner.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/sqlite.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/state.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/verification.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/flow/verification_plan.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/hashing.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/mapping/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/mapping/errors.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/private_sqlite.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/py.typed +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/safe_local_io.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka/runtime/spec.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/__main__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/bundle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/certificates.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/client.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/cloud_source.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/ai.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/auth.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/cloud.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/cloud_fleet.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/cloud_github.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/cloud_migrate.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/code.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/code_cloud.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/doctor.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/fix.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/functions.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/migrate.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/profiles.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/resources.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/skill.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/workflow_templates.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/commands/workflows.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/config.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/main.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/output.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/runtime.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/skills/sanka-cli/SKILL.md +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_cli/state.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/__about__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/credentials.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/errors.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/protocols.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/provisioning.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/py.typed +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/records.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_connector/schema.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extension_sdk/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extension_sdk/contract.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extension_sdk/py.typed +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/__init__.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/__about__.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/credentials.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/errors.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/protocols.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/provisioning.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/py.typed +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/records.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/registration.py +0 -0
- {sanka_cli-0.3.0/src/sanka_extensions/data → sanka_cli-0.3.2/src/sanka_extensions/app}/schema.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/code/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/code/contract.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/_wire.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/blueprint.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/definition.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/graph.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/identity.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/native.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/native_fixtures.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/native_process_recipes.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/native_profiles.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/native_recipes.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/native_task_recipes.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/native_verification.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/protocol.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/scenario.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/flow/source.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/py.typed +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/src/sanka_extensions/systems/py.typed +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/conftest.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_drf_project/api/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_drf_project/api/serializers.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_drf_project/api/views.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_drf_project/config/__init__.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_drf_project/config/settings.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_drf_project/config/urls.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_drf_project/manage.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_marketplace/drf-to-fastapi.json +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/extension_marketplace/marketplace.json +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/flow/synthetic_native_order_billing_blueprint.json +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/flow/synthetic_sales_created_estimate_blueprint.json +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/fixtures/flow/synthetic_sales_quote_blueprint.json +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/flow_wheel_acceptance.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_application_summary.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_business_flow_extension_acceptance.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_cli_developer_experience.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_code_bundle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_code_commands.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_code_lifecycle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_code_repair.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_concurrency.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_doctor.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_engine_e2e.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_engine_pg_to_clickhouse_e2e.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_engine_postgres_e2e.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_continuous.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_local_store.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_execution_report_codec.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_extension_discovery.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_extension_lifecycle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_extension_runner.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_extension_stage.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_extension_store.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_extension.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_lifecycle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_merge.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_native_lifecycle.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_native_verification.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_planner.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_sdk_codec.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_sqlite.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_flow_verification.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_hashing.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_help_shortcuts.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_hosted_cli.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_plan_input_hints.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_safe_local_io.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_skill_commands.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_spec.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_state_store.py +0 -0
- {sanka_cli-0.3.0 → sanka_cli-0.3.2}/tests/test_workflow_templates_cli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sanka-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
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
|
|
@@ -61,7 +61,9 @@ The macOS/Linux uv prerequisite is `curl -LsSf https://astral.sh/uv/install.sh |
|
|
|
61
61
|
follow its printed shell setup instructions. Advanced pip users should use a
|
|
62
62
|
Python 3.12+ virtual environment and `python -m pip install sanka-cli`.
|
|
63
63
|
Bare `pip` can select an older system interpreter and report “No matching distribution found.”
|
|
64
|
-
|
|
64
|
+
Sanka CLI 0.3.0 includes the interactive TUI. The installer pins the CLI version
|
|
65
|
+
of its release (`sh install.sh --version X.Y.Z` selects another). See
|
|
66
|
+
[installation and recovery](https://github.com/sankaHQ/sanka/blob/main/docs/install.md)
|
|
65
67
|
for Homebrew upgrades, PATH conflicts, and project environments.
|
|
66
68
|
|
|
67
69
|
For AI agents using MCP, connect to the hosted Sanka MCP server at
|
|
@@ -87,11 +89,13 @@ manager:
|
|
|
87
89
|
```bash
|
|
88
90
|
sanka extension marketplace add https://github.com/sankaHQ/extensions.git --name sanka
|
|
89
91
|
sanka extension add sanka/drf-to-fastapi
|
|
90
|
-
sanka extension add sanka/markdown
|
|
91
|
-
sanka extension add sanka/sqlite
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
PyPI is not used as an extension fallback.
|
|
95
|
+
The revised official catalog offers code migration extensions. The CLI's default
|
|
96
|
+
snapshot advances only after that catalog is reviewed and published; existing
|
|
97
|
+
data project locks continue to use their pinned marketplace snapshots.
|
|
98
|
+
The embedded SDK exposes `sanka_extensions.app` for application data access.
|
|
95
99
|
|
|
96
100
|
## Local commands
|
|
97
101
|
|
|
@@ -110,17 +114,6 @@ Cloud / Account monitors hosted runs. See the [TUI guide](https://github.com/san
|
|
|
110
114
|
for configuration and shortcuts. Agents can use `--json` or `--compact-dsl`;
|
|
111
115
|
pipes and CI keep non-interactive output.
|
|
112
116
|
|
|
113
|
-
Data migrations default to `sanka.yaml`:
|
|
114
|
-
|
|
115
|
-
```yaml
|
|
116
|
-
source:
|
|
117
|
-
type: markdown
|
|
118
|
-
connection: ./content
|
|
119
|
-
target:
|
|
120
|
-
type: sqlite
|
|
121
|
-
connection: content.db
|
|
122
|
-
```
|
|
123
|
-
|
|
124
117
|
`scan`, marketplace management, extension installation, local planning,
|
|
125
118
|
testing, and verification never require a Sanka API token. Hosted resources,
|
|
126
119
|
workflows, AI, Custom Code, and explicitly cloud-selected migrations retain
|
|
@@ -33,7 +33,9 @@ The macOS/Linux uv prerequisite is `curl -LsSf https://astral.sh/uv/install.sh |
|
|
|
33
33
|
follow its printed shell setup instructions. Advanced pip users should use a
|
|
34
34
|
Python 3.12+ virtual environment and `python -m pip install sanka-cli`.
|
|
35
35
|
Bare `pip` can select an older system interpreter and report “No matching distribution found.”
|
|
36
|
-
|
|
36
|
+
Sanka CLI 0.3.0 includes the interactive TUI. The installer pins the CLI version
|
|
37
|
+
of its release (`sh install.sh --version X.Y.Z` selects another). See
|
|
38
|
+
[installation and recovery](https://github.com/sankaHQ/sanka/blob/main/docs/install.md)
|
|
37
39
|
for Homebrew upgrades, PATH conflicts, and project environments.
|
|
38
40
|
|
|
39
41
|
For AI agents using MCP, connect to the hosted Sanka MCP server at
|
|
@@ -59,11 +61,13 @@ manager:
|
|
|
59
61
|
```bash
|
|
60
62
|
sanka extension marketplace add https://github.com/sankaHQ/extensions.git --name sanka
|
|
61
63
|
sanka extension add sanka/drf-to-fastapi
|
|
62
|
-
sanka extension add sanka/markdown
|
|
63
|
-
sanka extension add sanka/sqlite
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
PyPI is not used as an extension fallback.
|
|
67
|
+
The revised official catalog offers code migration extensions. The CLI's default
|
|
68
|
+
snapshot advances only after that catalog is reviewed and published; existing
|
|
69
|
+
data project locks continue to use their pinned marketplace snapshots.
|
|
70
|
+
The embedded SDK exposes `sanka_extensions.app` for application data access.
|
|
67
71
|
|
|
68
72
|
## Local commands
|
|
69
73
|
|
|
@@ -82,17 +86,6 @@ Cloud / Account monitors hosted runs. See the [TUI guide](https://github.com/san
|
|
|
82
86
|
for configuration and shortcuts. Agents can use `--json` or `--compact-dsl`;
|
|
83
87
|
pipes and CI keep non-interactive output.
|
|
84
88
|
|
|
85
|
-
Data migrations default to `sanka.yaml`:
|
|
86
|
-
|
|
87
|
-
```yaml
|
|
88
|
-
source:
|
|
89
|
-
type: markdown
|
|
90
|
-
connection: ./content
|
|
91
|
-
target:
|
|
92
|
-
type: sqlite
|
|
93
|
-
connection: content.db
|
|
94
|
-
```
|
|
95
|
-
|
|
96
89
|
`scan`, marketplace management, extension installation, local planning,
|
|
97
90
|
testing, and verification never require a Sanka API token. Hosted resources,
|
|
98
91
|
workflows, AI, Custom Code, and explicitly cloud-selected migrations retain
|
|
@@ -15,7 +15,7 @@ from sanka.runtime.planner import MigrationPlan
|
|
|
15
15
|
from sanka.runtime.registry import ExtensionRegistry
|
|
16
16
|
from sanka.runtime.spec import EndpointSpec, MigrationSpec, SpecError
|
|
17
17
|
from sanka.runtime.state import RunStatus, SqliteStateStore
|
|
18
|
-
from sanka_extensions.
|
|
18
|
+
from sanka_extensions.app import CredentialProvider
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
@dataclass(frozen=True, slots=True, kw_only=True, init=False)
|
|
@@ -10,7 +10,7 @@ Spec-driven flow (migration-as-code)::
|
|
|
10
10
|
|
|
11
11
|
``validate`` is write-free by construction: it samples live source records
|
|
12
12
|
through the reviewed plan and reports rejects without ever resolving the
|
|
13
|
-
destination
|
|
13
|
+
destination data extension, exiting non-zero when invalid records exist.
|
|
14
14
|
|
|
15
15
|
Shorthand and provider selection::
|
|
16
16
|
|
|
@@ -721,7 +721,7 @@ def _extension_result(
|
|
|
721
721
|
[
|
|
722
722
|
(
|
|
723
723
|
str(record.get("id", "")),
|
|
724
|
-
{"connector": "
|
|
724
|
+
{"connector": "Data", "migration": "Code", "flow": "Workflow"}.get(
|
|
725
725
|
str(record.get("kind", "")), str(record.get("kind", ""))
|
|
726
726
|
),
|
|
727
727
|
str(record.get("version", "")),
|
|
@@ -1260,8 +1260,8 @@ async def _cmd_assess(args: argparse.Namespace) -> int:
|
|
|
1260
1260
|
|
|
1261
1261
|
|
|
1262
1262
|
def _infer_endpoint(value: str, *, role: str) -> EndpointSpec:
|
|
1263
|
-
"""Map a CLI shorthand to an endpoint: paths → file
|
|
1264
|
-
schemes → the
|
|
1263
|
+
"""Map a CLI shorthand to an endpoint: paths → file extensions, URL
|
|
1264
|
+
schemes → the data extension named by the scheme."""
|
|
1265
1265
|
if "://" in value:
|
|
1266
1266
|
scheme, _, rest = value.partition("://")
|
|
1267
1267
|
scheme = scheme.lower()
|
|
@@ -1278,7 +1278,7 @@ def _infer_endpoint(value: str, *, role: str) -> EndpointSpec:
|
|
|
1278
1278
|
if path.suffix in {".db", ".sqlite", ".sqlite3"}:
|
|
1279
1279
|
return EndpointSpec(type="sqlite", connection=str(path))
|
|
1280
1280
|
raise SpecError(
|
|
1281
|
-
f"cannot infer the {role}
|
|
1281
|
+
f"cannot infer the {role} data extension from {value!r}; use a URL-style endpoint"
|
|
1282
1282
|
" (e.g. sqlite://out.db) or a directory path"
|
|
1283
1283
|
)
|
|
1284
1284
|
|
|
@@ -45,7 +45,7 @@ from sanka.cli.tui.model import (
|
|
|
45
45
|
format_elapsed,
|
|
46
46
|
parse_endpoints,
|
|
47
47
|
)
|
|
48
|
-
from sanka.cli.tui.services import TuiServices, cloud_exit_code
|
|
48
|
+
from sanka.cli.tui.services import TuiServices, cloud_exit_code, preferred_extension
|
|
49
49
|
from sanka.cli.tui.widgets import ActivityLog, CliLine, EmptyState, KeysBar, StageHeader
|
|
50
50
|
from sanka_cli import __version__
|
|
51
51
|
|
|
@@ -364,14 +364,17 @@ class SearchModal(ModalScreen[str | None]):
|
|
|
364
364
|
target = self.query_one("#target-filter", Input).value.strip()
|
|
365
365
|
needle = query.strip().casefold()
|
|
366
366
|
for choice in self._choices:
|
|
367
|
-
if kind and
|
|
367
|
+
if kind and kind.casefold() not in {
|
|
368
|
+
choice.kind.casefold(),
|
|
369
|
+
choice.kind_label.casefold(),
|
|
370
|
+
}:
|
|
368
371
|
continue
|
|
369
372
|
label = choice.status_label.lower()
|
|
370
373
|
if status and status not in choice.status and label != status.lower():
|
|
371
374
|
continue
|
|
372
375
|
if target and target not in choice.targets:
|
|
373
376
|
continue
|
|
374
|
-
prompt = f"{choice.label} {choice.
|
|
377
|
+
prompt = f"{choice.label} {choice.kind_label} {', '.join(choice.targets) or '-'}"
|
|
375
378
|
if needle and needle not in f"{choice.id} {prompt}".casefold():
|
|
376
379
|
continue
|
|
377
380
|
listing.add_option(Option(prompt, id=choice.id))
|
|
@@ -1518,9 +1521,9 @@ class ExtensionListScreen(SankaScreen):
|
|
|
1518
1521
|
options = tuple(
|
|
1519
1522
|
(
|
|
1520
1523
|
choice.id,
|
|
1521
|
-
f"{choice.label} {choice.
|
|
1524
|
+
f"{choice.label} {choice.kind_label} {', '.join(choice.targets) or '-'}",
|
|
1522
1525
|
)
|
|
1523
|
-
for choice in self.
|
|
1526
|
+
for choice in self._choices()
|
|
1524
1527
|
)
|
|
1525
1528
|
self.app.push_screen(SearchModal("Search extensions", options), self._picked)
|
|
1526
1529
|
|
|
@@ -1531,19 +1534,30 @@ class ExtensionListScreen(SankaScreen):
|
|
|
1531
1534
|
table.move_cursor(row=self._ids.index(extension_id))
|
|
1532
1535
|
table.focus()
|
|
1533
1536
|
|
|
1537
|
+
def _choices(self) -> tuple[ExtensionChoice, ...]:
|
|
1538
|
+
catalog = self.sanka.services.extensions("")
|
|
1539
|
+
return tuple(
|
|
1540
|
+
choice
|
|
1541
|
+
for extension_id in dict.fromkeys(item.id for item in catalog)
|
|
1542
|
+
if (choice := preferred_extension(catalog, extension_id)) is not None
|
|
1543
|
+
)
|
|
1544
|
+
|
|
1534
1545
|
def _fill(self) -> None:
|
|
1535
|
-
choices = self.
|
|
1546
|
+
choices = self._choices()
|
|
1536
1547
|
table = self.query_one(DataTable)
|
|
1548
|
+
selected = self._selected() if hasattr(self, "_ids") else None
|
|
1537
1549
|
table.clear()
|
|
1538
1550
|
self._ids = [choice.id for choice in choices]
|
|
1539
1551
|
for choice in choices:
|
|
1540
1552
|
table.add_row(
|
|
1541
1553
|
choice.label,
|
|
1542
|
-
choice.
|
|
1554
|
+
choice.kind_label,
|
|
1543
1555
|
", ".join(choice.targets) or "-",
|
|
1544
1556
|
choice.status_label,
|
|
1545
1557
|
choice.version_label,
|
|
1546
1558
|
)
|
|
1559
|
+
if selected in self._ids:
|
|
1560
|
+
table.move_cursor(row=self._ids.index(selected))
|
|
1547
1561
|
|
|
1548
1562
|
def _selected(self) -> str | None:
|
|
1549
1563
|
table = self.query_one(DataTable)
|
|
@@ -1578,7 +1592,9 @@ class ExtensionListScreen(SankaScreen):
|
|
|
1578
1592
|
self.app.call_from_thread(self.notify, "That extension is incompatible with this CLI.")
|
|
1579
1593
|
return
|
|
1580
1594
|
try:
|
|
1581
|
-
message = self.sanka.services.install(
|
|
1595
|
+
message = self.sanka.services.install(
|
|
1596
|
+
extension_id, choice.marketplace if choice else None
|
|
1597
|
+
)
|
|
1582
1598
|
except Exception as error:
|
|
1583
1599
|
message = str(error)
|
|
1584
1600
|
self.app.call_from_thread(self._installed, message)
|
|
@@ -1591,6 +1607,10 @@ class ExtensionListScreen(SankaScreen):
|
|
|
1591
1607
|
self._fill()
|
|
1592
1608
|
self.query_one("#catalog-status", Static).update("")
|
|
1593
1609
|
|
|
1610
|
+
def on_screen_resume(self) -> None:
|
|
1611
|
+
super().on_screen_resume()
|
|
1612
|
+
self._fill()
|
|
1613
|
+
|
|
1594
1614
|
def _remove(self, extension_id: str) -> None:
|
|
1595
1615
|
self.run_worker(lambda: self._remove_work(extension_id), thread=True)
|
|
1596
1616
|
|
|
@@ -1624,6 +1644,13 @@ class ExtensionDetailScreen(SankaScreen):
|
|
|
1624
1644
|
self.refresh_footer()
|
|
1625
1645
|
self._show()
|
|
1626
1646
|
|
|
1647
|
+
def on_catalog_refreshed(self) -> None:
|
|
1648
|
+
self._show()
|
|
1649
|
+
|
|
1650
|
+
def on_screen_resume(self) -> None:
|
|
1651
|
+
super().on_screen_resume()
|
|
1652
|
+
self._show()
|
|
1653
|
+
|
|
1627
1654
|
def _choice(self) -> ExtensionChoice | None:
|
|
1628
1655
|
return self.sanka.services.extension(self.extension_id)
|
|
1629
1656
|
|
|
@@ -1631,6 +1658,8 @@ class ExtensionDetailScreen(SankaScreen):
|
|
|
1631
1658
|
choice = self._choice()
|
|
1632
1659
|
if choice is None:
|
|
1633
1660
|
self.query_one("#detail", Static).update(f"{self.extension_id} is not in the catalog.")
|
|
1661
|
+
for action in ("install", "update", "enable", "disable", "uninstall"):
|
|
1662
|
+
self.query_one(f"#{action}", Button).display = False
|
|
1634
1663
|
return
|
|
1635
1664
|
used = self.sanka.services.used_extension_id(self.sanka.session.target)
|
|
1636
1665
|
used_line = (
|
|
@@ -1648,7 +1677,7 @@ class ExtensionDetailScreen(SankaScreen):
|
|
|
1648
1677
|
(
|
|
1649
1678
|
choice.label,
|
|
1650
1679
|
f"Id {choice.id}",
|
|
1651
|
-
f"Type {choice.
|
|
1680
|
+
f"Type {choice.kind_label}",
|
|
1652
1681
|
f"Status {choice.status_label}",
|
|
1653
1682
|
f"Version {choice.version_label}",
|
|
1654
1683
|
f"Marketplace {choice.marketplace}",
|
|
@@ -1663,9 +1692,11 @@ class ExtensionDetailScreen(SankaScreen):
|
|
|
1663
1692
|
)
|
|
1664
1693
|
installed = bool(choice.status.intersection({"installed", "locked", "update_available"}))
|
|
1665
1694
|
incompatible = "incompatible" in choice.status
|
|
1666
|
-
self.query_one("#install", Button).display =
|
|
1695
|
+
self.query_one("#install", Button).display = (
|
|
1696
|
+
not installed and "disabled" not in choice.status and not incompatible
|
|
1697
|
+
)
|
|
1667
1698
|
self.query_one("#update", Button).display = "update_available" in choice.status
|
|
1668
|
-
self.query_one("#enable", Button).display = "disabled" in choice.status
|
|
1699
|
+
self.query_one("#enable", Button).display = "disabled" in choice.status and not incompatible
|
|
1669
1700
|
self.query_one("#disable", Button).display = installed and not incompatible
|
|
1670
1701
|
self.query_one("#uninstall", Button).display = installed or "disabled" in choice.status
|
|
1671
1702
|
|
|
@@ -1683,20 +1714,39 @@ class ExtensionDetailScreen(SankaScreen):
|
|
|
1683
1714
|
if action == "disable":
|
|
1684
1715
|
self._run("disable")
|
|
1685
1716
|
return
|
|
1686
|
-
if action
|
|
1717
|
+
if action == "update":
|
|
1718
|
+
choice = self._choice()
|
|
1719
|
+
if choice is None or "update_available" not in choice.status:
|
|
1720
|
+
self.notify("No update is available in the current marketplace snapshot.")
|
|
1721
|
+
return
|
|
1722
|
+
self.app.push_screen(
|
|
1723
|
+
ConfirmScreen(
|
|
1724
|
+
f"Update {choice.id} to {choice.version} from {choice.marketplace}? "
|
|
1725
|
+
"This changes the project lock. Review a new plan before applying."
|
|
1726
|
+
),
|
|
1727
|
+
callback=lambda yes: self._run("update", choice) if yes else None,
|
|
1728
|
+
)
|
|
1729
|
+
return
|
|
1730
|
+
if action in {"install", "enable"}:
|
|
1687
1731
|
self._run("install")
|
|
1688
1732
|
|
|
1689
|
-
def _run(self, action: str) -> None:
|
|
1690
|
-
self.run_worker(lambda: self._work(action), thread=True)
|
|
1733
|
+
def _run(self, action: str, choice: ExtensionChoice | None = None) -> None:
|
|
1734
|
+
self.run_worker(lambda: self._work(action, choice), thread=True)
|
|
1691
1735
|
|
|
1692
|
-
def _work(self, action: str) -> None:
|
|
1736
|
+
def _work(self, action: str, choice: ExtensionChoice | None = None) -> None:
|
|
1693
1737
|
try:
|
|
1738
|
+
if action == "update" and self._choice() != choice:
|
|
1739
|
+
raise ValueError("The available extension changed. Review the update again.")
|
|
1694
1740
|
if action == "remove":
|
|
1695
1741
|
message = self.sanka.services.remove(self.extension_id)
|
|
1696
1742
|
elif action == "disable":
|
|
1697
1743
|
message = self.sanka.services.disable(self.extension_id)
|
|
1698
1744
|
else:
|
|
1699
|
-
|
|
1745
|
+
choice = choice or self._choice()
|
|
1746
|
+
message = self.sanka.services.install(
|
|
1747
|
+
self.extension_id,
|
|
1748
|
+
choice.marketplace if choice else None,
|
|
1749
|
+
)
|
|
1700
1750
|
except Exception as error:
|
|
1701
1751
|
message = str(error)
|
|
1702
1752
|
self.app.call_from_thread(self._done, message)
|
|
@@ -1736,7 +1786,7 @@ class MarketplaceScreen(SankaScreen):
|
|
|
1736
1786
|
self.refresh_footer()
|
|
1737
1787
|
catalog = self.query_one("#catalog", DataTable)
|
|
1738
1788
|
catalog.cursor_type = "row"
|
|
1739
|
-
catalog.add_columns("Name", "Type", "Targets", "Status", "Version")
|
|
1789
|
+
catalog.add_columns("Name", "Marketplace", "Type", "Targets", "Status", "Version")
|
|
1740
1790
|
snapshots = self.query_one("#snapshots", DataTable)
|
|
1741
1791
|
snapshots.cursor_type = "row"
|
|
1742
1792
|
snapshots.add_columns("Name", "Identity", "Revision", "Trusted")
|
|
@@ -1766,13 +1816,15 @@ class MarketplaceScreen(SankaScreen):
|
|
|
1766
1816
|
|
|
1767
1817
|
def _fill(self) -> None:
|
|
1768
1818
|
choices = self.sanka.services.extensions("")
|
|
1819
|
+
self._choices = choices
|
|
1769
1820
|
table = self.query_one("#catalog", DataTable)
|
|
1770
1821
|
table.clear()
|
|
1771
1822
|
self._ids = [choice.id for choice in choices]
|
|
1772
1823
|
for choice in choices:
|
|
1773
1824
|
table.add_row(
|
|
1774
1825
|
choice.label,
|
|
1775
|
-
choice.
|
|
1826
|
+
choice.marketplace,
|
|
1827
|
+
choice.kind_label,
|
|
1776
1828
|
", ".join(choice.targets) or "-",
|
|
1777
1829
|
choice.status_label,
|
|
1778
1830
|
choice.version_label,
|
|
@@ -1810,9 +1862,10 @@ class MarketplaceScreen(SankaScreen):
|
|
|
1810
1862
|
self.app.push_screen(ExtensionDetailScreen(extension_id))
|
|
1811
1863
|
return
|
|
1812
1864
|
if event.button.id == "install":
|
|
1813
|
-
|
|
1814
|
-
if
|
|
1815
|
-
|
|
1865
|
+
row = self.query_one("#catalog", DataTable).cursor_row
|
|
1866
|
+
if row is not None and 0 <= row < len(self._choices):
|
|
1867
|
+
choice = self._choices[row]
|
|
1868
|
+
self.run_worker(lambda: self._install(choice), thread=True)
|
|
1816
1869
|
return
|
|
1817
1870
|
if event.button.id == "add-snapshot":
|
|
1818
1871
|
source = self.query_one("#source", Input).value.strip()
|
|
@@ -1836,11 +1889,9 @@ class MarketplaceScreen(SankaScreen):
|
|
|
1836
1889
|
callback=lambda yes: self._drop_snapshot(name) if yes else None,
|
|
1837
1890
|
)
|
|
1838
1891
|
|
|
1839
|
-
def _install(self,
|
|
1840
|
-
choice = self.sanka.services.extension(extension_id)
|
|
1841
|
-
marketplace = choice.marketplace_identity if choice else None
|
|
1892
|
+
def _install(self, choice: ExtensionChoice) -> None:
|
|
1842
1893
|
try:
|
|
1843
|
-
message = self.sanka.services.install(
|
|
1894
|
+
message = self.sanka.services.install(choice.id, choice.marketplace)
|
|
1844
1895
|
except Exception as error:
|
|
1845
1896
|
message = str(error)
|
|
1846
1897
|
self.app.call_from_thread(self._done, message)
|
|
@@ -94,6 +94,12 @@ class ExtensionChoice:
|
|
|
94
94
|
def label(self) -> str:
|
|
95
95
|
return display_name(self.id)
|
|
96
96
|
|
|
97
|
+
@property
|
|
98
|
+
def kind_label(self) -> str:
|
|
99
|
+
return {"connector": "Data", "migration": "Code", "flow": "Workflow"}.get(
|
|
100
|
+
self.kind, self.kind.title()
|
|
101
|
+
)
|
|
102
|
+
|
|
97
103
|
@property
|
|
98
104
|
def status_label(self) -> str:
|
|
99
105
|
if "disabled" in self.status:
|
|
@@ -9,6 +9,8 @@ from datetime import UTC, datetime
|
|
|
9
9
|
from pathlib import Path
|
|
10
10
|
from typing import Any, Protocol
|
|
11
11
|
|
|
12
|
+
from packaging.version import Version
|
|
13
|
+
|
|
12
14
|
from sanka.cli.tui.history import append_history, load_history
|
|
13
15
|
from sanka.cli.tui.model import (
|
|
14
16
|
EndpointChoice,
|
|
@@ -127,6 +129,18 @@ def _choice_from_record(
|
|
|
127
129
|
)
|
|
128
130
|
|
|
129
131
|
|
|
132
|
+
def preferred_extension(
|
|
133
|
+
choices: tuple[ExtensionChoice, ...], extension_id: str
|
|
134
|
+
) -> ExtensionChoice | None:
|
|
135
|
+
matching = [item for item in choices if item.id == extension_id]
|
|
136
|
+
active = [item for item in matching if item.status.intersection({"locked", "update_available"})]
|
|
137
|
+
return max(
|
|
138
|
+
active or matching,
|
|
139
|
+
key=lambda item: (Version(item.version), "update_available" in item.status),
|
|
140
|
+
default=None,
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
|
|
130
144
|
def read_plan_hash(root: Path, artifact_dir: str) -> str | None:
|
|
131
145
|
path = root / artifact_dir / "plan.json"
|
|
132
146
|
try:
|
|
@@ -222,20 +236,25 @@ class HostServices:
|
|
|
222
236
|
for record in records:
|
|
223
237
|
runtime, commands = facts.get(record.id, ("", ()))
|
|
224
238
|
choice = _choice_from_record(record, runtime_specifier=runtime, commands=commands)
|
|
225
|
-
if kind and
|
|
239
|
+
if kind and kind.casefold() not in {
|
|
240
|
+
choice.kind.casefold(),
|
|
241
|
+
choice.kind_label.casefold(),
|
|
242
|
+
}:
|
|
226
243
|
continue
|
|
227
244
|
if status and status not in choice.status and choice.status_label != status:
|
|
228
245
|
continue
|
|
229
246
|
if target and target not in choice.targets:
|
|
230
247
|
continue
|
|
231
|
-
haystack = " ".join(
|
|
248
|
+
haystack = " ".join(
|
|
249
|
+
(choice.id, choice.kind_label, *choice.targets, choice.label)
|
|
250
|
+
).lower()
|
|
232
251
|
if needle and needle not in haystack:
|
|
233
252
|
continue
|
|
234
253
|
choices.append(choice)
|
|
235
254
|
return tuple(choices)
|
|
236
255
|
|
|
237
256
|
def extension(self, extension_id: str) -> ExtensionChoice | None:
|
|
238
|
-
return
|
|
257
|
+
return preferred_extension(self.extensions(), extension_id)
|
|
239
258
|
|
|
240
259
|
def marketplaces(self) -> tuple[MarketplaceView, ...]:
|
|
241
260
|
store = self._store()
|
|
@@ -305,6 +324,9 @@ class HostServices:
|
|
|
305
324
|
return parse_endpoints(payload)
|
|
306
325
|
|
|
307
326
|
def install(self, extension_id: str, marketplace: str | None = None) -> str:
|
|
327
|
+
if marketplace is None:
|
|
328
|
+
choice = self.extension(extension_id)
|
|
329
|
+
marketplace = choice.marketplace if choice else None
|
|
308
330
|
store = self._store()
|
|
309
331
|
try:
|
|
310
332
|
entry = store.add_extension(extension_id, marketplace=marketplace)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""Sanka Runtime — planner, engine, state, and verification.
|
|
3
3
|
|
|
4
4
|
Everything under ``sanka.runtime`` is AGPL-3.0-only. Connectors must not
|
|
5
|
-
import this package; they depend on the Apache-2.0 ``sanka_extensions.
|
|
5
|
+
import this package; they depend on the Apache-2.0 ``sanka_extensions.app`` SPI
|
|
6
6
|
instead, and CI enforces that boundary.
|
|
7
7
|
|
|
8
8
|
The runtime lands in Phase 2 (lifecycle state machine, SQLite state store,
|
|
@@ -23,7 +23,7 @@ from sanka.runtime.connector_host import (
|
|
|
23
23
|
encode_value,
|
|
24
24
|
)
|
|
25
25
|
from sanka.runtime.extensions.model import ExtensionError
|
|
26
|
-
from sanka_extensions.
|
|
26
|
+
from sanka_extensions.app import (
|
|
27
27
|
BatchRelationshipWriteResult,
|
|
28
28
|
BatchWriteInput,
|
|
29
29
|
BatchWriteResult,
|
|
@@ -15,7 +15,7 @@ from importlib.metadata import distributions
|
|
|
15
15
|
from pathlib import Path
|
|
16
16
|
from typing import Any, NoReturn, cast
|
|
17
17
|
|
|
18
|
-
from sanka_extensions.
|
|
18
|
+
from sanka_extensions.app import (
|
|
19
19
|
ENTRY_POINT_GROUP,
|
|
20
20
|
BatchRelationshipWriteResult,
|
|
21
21
|
BatchWriteInput,
|
|
@@ -59,14 +59,14 @@ from sanka.runtime.planner import MigrationPlan, RoutePlan, build_plan
|
|
|
59
59
|
from sanka.runtime.registry import ExtensionRegistry
|
|
60
60
|
from sanka.runtime.spec import EndpointSpec, MigrationSpec, resolve_env
|
|
61
61
|
from sanka.runtime.state import TERMINAL_WRITE_STATUSES, RunStatus, StateStore
|
|
62
|
-
from sanka_extensions.
|
|
62
|
+
from sanka_extensions.app import (
|
|
63
63
|
ConflictPolicy,
|
|
64
64
|
CredentialProvider,
|
|
65
65
|
Credentials,
|
|
66
66
|
DataAccessError,
|
|
67
67
|
SupportsRecordCounts,
|
|
68
68
|
)
|
|
69
|
-
from sanka_extensions.
|
|
69
|
+
from sanka_extensions.app.protocols import DataReader, DataWriter
|
|
70
70
|
|
|
71
71
|
MAX_WRITE_ATTEMPTS = 5
|
|
72
72
|
_BACKOFF_BASE_SECONDS = 0.5
|
|
@@ -778,7 +778,7 @@ def _source_object_payload(obj: Any) -> dict[str, Any]:
|
|
|
778
778
|
|
|
779
779
|
|
|
780
780
|
def _source_object_from_payload(payload: dict[str, Any]) -> Any:
|
|
781
|
-
from sanka_extensions.
|
|
781
|
+
from sanka_extensions.app.schema import SourceObject
|
|
782
782
|
|
|
783
783
|
return SourceObject(
|
|
784
784
|
key=payload["key"],
|
|
@@ -810,7 +810,7 @@ def _inventory_payload(inventory: Any) -> dict[str, Any]:
|
|
|
810
810
|
|
|
811
811
|
|
|
812
812
|
def _inventory_from_payload(payload: dict[str, Any]) -> Any:
|
|
813
|
-
from sanka_extensions.
|
|
813
|
+
from sanka_extensions.app.schema import FieldSchema, Inventory, ObjectSchema
|
|
814
814
|
|
|
815
815
|
return Inventory(
|
|
816
816
|
provider=payload["provider"],
|
|
@@ -25,7 +25,7 @@ from typing import Any, Literal
|
|
|
25
25
|
from sanka.runtime.hashing import content_hash
|
|
26
26
|
from sanka.runtime.mapping.model import MigrationMappingField
|
|
27
27
|
from sanka.runtime.mapping.pending_relationships import PendingRelationshipsByRoute
|
|
28
|
-
from sanka_extensions.
|
|
28
|
+
from sanka_extensions.app import SourceFilter
|
|
29
29
|
|
|
30
30
|
ExecutionStatus = Literal["queued", "running", "completed", "failed", "cancelled"]
|
|
31
31
|
WriteStatus = Literal["created", "updated", "skipped", "failed"]
|
|
@@ -70,7 +70,7 @@ from sanka.runtime.mapping.record_mapping import (
|
|
|
70
70
|
mapping_group_key,
|
|
71
71
|
mapping_route_manifest,
|
|
72
72
|
)
|
|
73
|
-
from sanka_extensions.
|
|
73
|
+
from sanka_extensions.app import SourceFilter
|
|
74
74
|
|
|
75
75
|
HEARTBEAT_FRESHNESS = timedelta(minutes=5)
|
|
76
76
|
"""An execution job counts as active while its heartbeat is this recent."""
|
|
@@ -63,7 +63,7 @@ from sanka.runtime.mapping.record_mapping import (
|
|
|
63
63
|
relationship_source_ids,
|
|
64
64
|
source_field_keys,
|
|
65
65
|
)
|
|
66
|
-
from sanka_extensions.
|
|
66
|
+
from sanka_extensions.app import (
|
|
67
67
|
BatchRelationshipWriteResult,
|
|
68
68
|
BatchWriteInput,
|
|
69
69
|
BatchWriteResult,
|
|
@@ -80,7 +80,7 @@ from sanka_extensions.data import (
|
|
|
80
80
|
WriteOptions,
|
|
81
81
|
WriteResult,
|
|
82
82
|
)
|
|
83
|
-
from sanka_extensions.
|
|
83
|
+
from sanka_extensions.app.records import BatchWriteStatus, ConflictPolicy, InvalidEmailPolicy
|
|
84
84
|
|
|
85
85
|
if TYPE_CHECKING:
|
|
86
86
|
from sanka.runtime.execution.scope import ExactIdScope
|
|
@@ -122,7 +122,7 @@ EXACT_SCOPE_COVERAGE_WARNING = (
|
|
|
122
122
|
class WritePolicies:
|
|
123
123
|
"""Reviewed write behavior applied uniformly across one batch.
|
|
124
124
|
|
|
125
|
-
Per-route :class:`~sanka_extensions.
|
|
125
|
+
Per-route :class:`~sanka_extensions.app.WriteOptions` derive from these plus
|
|
126
126
|
each route's identity fields; the owner policies feed the owner-mapping
|
|
127
127
|
phase.
|
|
128
128
|
"""
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"""Scope freeze: per-route high-water marks, frozen totals, route resolution.
|
|
3
3
|
|
|
4
4
|
Faithful port of the production scope mechanics: the queue-time high-water
|
|
5
|
-
mark freeze probes :class:`~sanka_extensions.
|
|
5
|
+
mark freeze probes :class:`~sanka_extensions.app.SupportsHighWaterMark` and
|
|
6
6
|
freezes a mark for **every** reviewed route (not only the selected ones); the
|
|
7
|
-
claim-time total count probes :class:`~sanka_extensions.
|
|
7
|
+
claim-time total count probes :class:`~sanka_extensions.app.SupportsRecordCounts`
|
|
8
8
|
and counts **selected** routes only, bounded by the frozen marks through
|
|
9
|
-
:class:`~sanka_extensions.
|
|
9
|
+
:class:`~sanka_extensions.app.SupportsBoundedCounts`. A route whose frozen mark is
|
|
10
10
|
``None`` (the source held no records at freeze time) counts as ``0`` and is
|
|
11
11
|
completed without a read. Sources that cannot count report ``None`` totals —
|
|
12
12
|
unknown, never zero.
|
|
@@ -46,7 +46,7 @@ from sanka.runtime.mapping.record_mapping import (
|
|
|
46
46
|
mapping_group_key,
|
|
47
47
|
mapping_route_manifest,
|
|
48
48
|
)
|
|
49
|
-
from sanka_extensions.
|
|
49
|
+
from sanka_extensions.app import (
|
|
50
50
|
Credentials,
|
|
51
51
|
DataReader,
|
|
52
52
|
SupportsBoundedCounts,
|
|
@@ -62,7 +62,7 @@ from sanka.runtime.execution.routes import (
|
|
|
62
62
|
)
|
|
63
63
|
from sanka.runtime.mapping.errors import MappingError
|
|
64
64
|
from sanka.runtime.mapping.record_mapping import destination_properties, relationship_source_ids
|
|
65
|
-
from sanka_extensions.
|
|
65
|
+
from sanka_extensions.app import Credentials, DataReader
|
|
66
66
|
|
|
67
67
|
DEFAULT_VALIDATION_SAMPLE_SIZE = 10
|
|
68
68
|
"""Records sampled per route — the production dry-run ``maxRecords`` default."""
|
|
@@ -53,13 +53,13 @@ from sanka.runtime.extensions.model import (
|
|
|
53
53
|
)
|
|
54
54
|
from sanka.runtime.hashing import content_hash
|
|
55
55
|
from sanka_cli import __version__
|
|
56
|
-
from sanka_extensions.
|
|
56
|
+
from sanka_extensions.app import ENTRY_POINT_GROUP, ExtensionRegistration
|
|
57
57
|
|
|
58
58
|
OFFICIAL_IDENTITY = "github.com/sankaHQ/extensions"
|
|
59
59
|
OFFICIAL_SOURCE = "https://github.com/sankaHQ/extensions.git"
|
|
60
60
|
# Advance only after verifying the catalog's published release wheels.
|
|
61
61
|
# Development entries may still refer to releases awaiting publication.
|
|
62
|
-
OFFICIAL_REVISION = "
|
|
62
|
+
OFFICIAL_REVISION = "5ff7cd9af57a5fd1a98574c3fc8da1d1de76d285"
|
|
63
63
|
DEFAULT_EXTENSION_ID = "sanka/drf-to-fastapi"
|
|
64
64
|
MAX_WHEEL_BYTES = 128 * 1024 * 1024
|
|
65
65
|
MAX_WHEEL_UNCOMPRESSED_BYTES = 512 * 1024 * 1024
|