apm-cli 0.36.0__tar.gz → 0.36.1__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.
- {apm_cli-0.36.0 → apm_cli-0.36.1}/PKG-INFO +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/pyproject.toml +1 -1
- apm_cli-0.36.1/src/apm_cli/adapters/client/_remote_shapes.py +387 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/antigravity.py +3 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/base.py +65 -5
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/claude.py +7 -10
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/codex.py +21 -20
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/copilot.py +14 -25
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/cursor.py +12 -12
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/gemini.py +14 -15
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/hermes.py +77 -32
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/intellij.py +3 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/kiro.py +12 -11
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/opencode.py +3 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/vscode.py +12 -13
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/windsurf.py +3 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adopt/discovery.py +2 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/local_bundle.py +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/_helpers.py +8 -3
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/audit.py +4 -22
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/auth.py +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/compile/cli.py +14 -20
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/export_patch.py +12 -5
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/init.py +4 -18
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/install.py +8 -3
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/mcp.py +25 -7
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/pack.py +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/targets.py +2 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/uninstall/cli.py +11 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/uninstall/engine.py +72 -10
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/update.py +24 -3
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/agents_compiler.py +2 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/copilot_plugins/settings.py +3 -5
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/apm_yml.py +0 -49
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/auth.py +205 -375
- apm_cli-0.36.1/src/apm_cli/core/auth_chain.py +406 -0
- apm_cli-0.36.1/src/apm_cli/core/auth_outcome.py +454 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/azure_cli.py +32 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/build_orchestrator.py +4 -4
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/deployment_ledger.py +2 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/target_detection.py +61 -46
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/token_manager.py +107 -15
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/apm_resolver.py +118 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/bare_cache.py +12 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/clone_engine.py +34 -63
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/dependency_graph.py +1 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/download_strategies.py +69 -118
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/git_reference_resolver.py +39 -49
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/github_downloader.py +3 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/github_downloader_validation.py +32 -48
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/lockfile.py +8 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/reachability.py +120 -13
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/auth.py +5 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/client.py +65 -71
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/artifactory_resolver.py +15 -7
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/audit_replay.py +62 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/context.py +1 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/deployment_plan.py +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/drift.py +5 -6
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/local_bundle_handler.py +15 -10
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/lsp/integration.py +177 -17
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/manifest_reconcile.py +4 -8
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/command.py +2 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/integration.py +7 -9
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/ownership.py +217 -7
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/package_resolution.py +40 -7
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/integrate.py +6 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/lockfile.py +3 -6
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/policy_target_check.py +7 -19
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/resolve.py +2 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/targets.py +24 -48
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/pipeline.py +61 -71
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/request.py +3 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/service.py +99 -24
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/service_integration.py +66 -55
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/services.py +3 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/target_filter.py +2 -10
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/template.py +17 -25
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/validation.py +111 -66
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/agent_integrator.py +164 -120
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/base_integrator.py +10 -9
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/canvas_integrator.py +3 -8
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_integrator.py +4 -3
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_reintegration.py +1 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/lsp_integrator.py +287 -55
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/mcp_integrator.py +32 -9
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/mcp_integrator_install.py +222 -26
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/skill_integrator.py +20 -7
- apm_cli-0.36.1/src/apm_cli/integration/skill_layout.py +113 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/skill_preflight.py +19 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/targets.py +173 -63
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/builder.py +51 -23
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/client.py +72 -69
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/output_mappers.py +2 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/ref_resolver.py +47 -82
- apm_cli-0.36.1/src/apm_cli/mcp_transport.py +96 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/apm_package.py +73 -40
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/mcp.py +7 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/object_fields.py +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/reference.py +26 -3
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/registry_entry.py +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/replacement.py +11 -0
- apm_cli-0.36.1/src/apm_cli/models/dependency/subsets.py +259 -0
- apm_cli-0.36.1/src/apm_cli/models/manifest_targets.py +225 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/_gitlab.py +32 -19
- apm_cli-0.36.1/src/apm_cli/policy/_policy_http.py +39 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/ci_checks.py +49 -18
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/discovery.py +62 -67
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/install_preflight.py +7 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/parser.py +8 -3
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/policy_checks.py +60 -30
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/registry/client.py +22 -2
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/file_scanner.py +13 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/github_host.py +12 -70
- apm_cli-0.36.1/src/apm_cli/utils/http_credentials.py +392 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/path_security.py +9 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli.egg-info/PKG-INFO +1 -1
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli.egg-info/SOURCES.txt +7 -0
- apm_cli-0.36.0/src/apm_cli/models/dependency/subsets.py +0 -122
- apm_cli-0.36.0/src/apm_cli/utils/http_credentials.py +0 -38
- {apm_cli-0.36.0 → apm_cli-0.36.1}/LICENSE +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/LICENSE-DOCS +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/LICENSING.md +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/NOTICE +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/README.md +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/setup.cfg +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/client/_mcp_runtime_args.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/package_manager/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/package_manager/base.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adapters/package_manager/default_manager.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adopt/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adopt/manifest_edit.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adopt/materialize.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adopt/render.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/adopt/safety.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/assets.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/constants.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/errors.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/io.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/ir.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/loader.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/projection.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/agent_plugins/validation.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bootstrap_mirror.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/agent_plugin_exporter.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/attest.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/claude_plugin_exporter.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/export_common.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/formats.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/lockfile_enrichment.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/packer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/plugin_exporter.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/plugin_hooks.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/plugin_layout.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/reproducible_archive.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/bundle/unpacker.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/cleanup.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/git_cache.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/http_cache.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/integrity.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/locking.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/paths.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cache/url_normalize.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/cli.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/codex_plugins/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/codex_plugins/admission.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/codex_plugins/client.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/codex_plugins/manifest.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/codex_plugins/registrar.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/codex_plugins/snapshot.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/_apm_yml_writer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/approve.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/cache.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/compile/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/compile/watcher.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/config.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/deps/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/deps/_utils.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/deps/cli.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/deps/why.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/discover.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/doctor.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/experimental.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/find.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/lifecycle.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/list_cmd.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/lock.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/audit.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/check.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/doctor.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/init.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/migrate.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/outdated.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/plugin/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/plugin/add.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/plugin/remove.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/plugin/set.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/marketplace/validate.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/outdated.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/plugin/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/plugin/init.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/policy.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/prune.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/publish.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/run.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/runtime.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/self_update.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/uninstall/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/uninstall/lockfile_state.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/uninstall/profile_scope.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/view.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/commands/view_file.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/build_id.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/claude_formatter.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/constants.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/constitution.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/constitution_block.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/context_optimizer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/distributed_compiler.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/footer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/gemini_formatter.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/injector.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/inventory.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/link_resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/managed_section.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/output_writer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/root_context_protection.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/template_builder.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/compilation/user_root_context.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/config.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/constants.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/copilot_plugins/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/copilot_plugins/capability.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/copilot_plugins/catalog.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/copilot_plugins/constants.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/copilot_plugins/registrar.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/_child_tls/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/_child_tls/_apm_tls.pth +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/_child_tls/_apm_tls_bootstrap.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/command_logger.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/conflict_detector.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/deployment_state.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/docker_args.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/errors.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/experimental.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/host_providers.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/install_audit.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/lifecycle_scripts.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/null_logger.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/operations.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/output_mode.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/plugin_manifest.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/project_name.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/safe_installer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/scope.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/script_executors.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/script_runner.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/script_trust.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/target_catalog.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/core/tls_trust.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/_shared.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/artifactory_entry.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/artifactory_orchestrator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/carried_license.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/file_provenance.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/git_auth_env.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/git_file_transport.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/git_remote_ops.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/git_semver_resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/github_rate_limit.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/host_backends.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/immutable_requirements.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/installed_package.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/lock_parent_placement.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/outdated_ref_cache.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/outdated_row.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/package_validator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/path_anchoring.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/plugin_parser.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/config_loader.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/extractor.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/feature_gate.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/outdated.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry/semver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/registry_proxy.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/revision_pins.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/shared_clone_cache.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/tiered_ref_resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/transport_selection.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/verifier.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/virtual_file.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/deps/why_walker.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/drift.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/entrypoint.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/authoring.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/declared_license.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/formats.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/purl.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/sbom.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/spdx.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/export/spdx_data.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/factory.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/hook_contract.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/argv.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/audit_target_roots.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/cache_pin.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/deployable_source_plan.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/deployed_paths.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/drift_claims.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/drift_render.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/dry_run_plan.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/errors.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/exec_gate.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/failure_residue.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/finalization.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/gitlab_resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/heals/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/heals/base.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/heals/branch_ref_drift.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/heals/buggy_lockfile_recovery.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/absence_observation.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/no_work.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/plan_inputs.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/reconciliation_scope.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/ref_reuse.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/ref_seed.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/helpers/security_scan.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/insecure_policy.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/integrity.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/legacy_plugin_compat.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/local_bundle_paths.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/local_edits.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/locking.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/lsp/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/manifest_helpers.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/args.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/conflicts.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/entry.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/registry.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/warnings.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/mcp/writer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/native_plugin_admission.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/outcome.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/package_selection.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/_redownload.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/_skip_logic.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/audit.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/cleanup.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/codex_plugins.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/copilot_plugins.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/download.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/finalize.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/heal.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/local_content.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/policy_gate.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/phases/post_deps_local.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/plan.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/presentation/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/presentation/dry_run.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/presentation/resolution.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/primitive_classification.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/project_package.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/registry_wiring.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/replay_transport.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/resolution_staging.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/root_redirect.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/selected_cleanup.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/skill_path_migration.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/source_helpers.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/sources.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/summary.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/target_hints.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/target_warnings.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/install/transaction.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/_hook_dropped_targets.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/_shared.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/cleanup.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/command_integrator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/copilot_app_db.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/copilot_app_project.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/copilot_app_workflow_integrator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/copilot_app_ws.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/copilot_cowork_paths.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/coverage.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/dispatch.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_bundle.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_command_paths.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_command_warnings.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_cursor_preflight.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_file_routing.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_ir.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_native_formats.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_ownership.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/hook_source_selection.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/instruction_integrator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/kiro_hook_integrator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/mcp_config_view.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/opencode_frontmatter.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/prompt_integrator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/skill_adoption.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/skill_package_routing.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/skill_support.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/skill_transformer.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/integration/utils.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/_git_utils.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/_io.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/_shared.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/audit.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/auth_helpers.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/authoring_source.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/diagnostics.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/drift_check.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/errors.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/git_stderr.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/init_template.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/migration.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/models.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/output_profiles.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/reconcile.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/registration.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/registry.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/semver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/shadow_detector.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/source_identity.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/tag_pattern.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/user_manifest.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/validator.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/version_check.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/version_pins.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/version_resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/yml_editor.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/marketplace/yml_schema.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/host_virtual.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/identity.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/lsp.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/materialization.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/provider_coordinates.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/selection.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/dependency/types.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/format_detection.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/manifest_contract.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/manifest_io.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/plugin.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/results.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/models/validation.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/output/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/output/formatters.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/output/models.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/output/script_formatters.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/_constraint_pinning.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/_help_text.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/_remote.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/_shared.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/inheritance.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/matcher.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/models.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/outcome_routing.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/project_config.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/policy/schema.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/primitives/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/primitives/discovery.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/primitives/models.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/primitives/parser.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/registry/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/registry/integration.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/registry/operations.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/base.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/codex_runtime.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/copilot_runtime.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/factory.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/llm_runtime.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/manager.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/registry.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/runtime/utils.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/audit_report.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/content_scanner.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/executables.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/base.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/gate.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/generic_sarif.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/options.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/registry.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/runner.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/sarif_ingest.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/external/skillspector.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/gate.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/security/primitive_discovery.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/update_policy.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/__init__.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/archive.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/atomic_io.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/console.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/content_hash.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/diagnostics.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/exclude.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/file_ops.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/git_env.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/git_sparse.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/guards.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/helpers.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/install_tui.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/net.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/normalization.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/paths.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/patterns.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/perf_stats.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/reflink.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/short_sha.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/staging_guard.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/subprocess_env.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/version_checker.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/utils/yaml_io.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/version.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli/version_output.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli.egg-info/dependency_links.txt +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli.egg-info/entry_points.txt +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli.egg-info/requires.txt +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/src/apm_cli.egg-info/top_level.txt +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_apm_package_models.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_apm_resolver.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_codex_docker_args_fix.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_codex_empty_string_and_defaults.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_collision_integration.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_console.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_distributed_compilation.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_empty_string_and_defaults.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_enhanced_discovery.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_github_downloader.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_github_downloader_token_precedence.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_gitlab_git_transport.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_lockfile.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_runnable_prompts.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_runtime_manager_token_precedence.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_token_manager.py +0 -0
- {apm_cli-0.36.0 → apm_cli-0.36.1}/tests/test_virtual_package_multi_install.py +0 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
"""Per-harness remote MCP output shape table (single owner).
|
|
2
|
+
|
|
3
|
+
Each MCP client adapter registered in :class:`apm_cli.factory.ClientFactory`
|
|
4
|
+
declares its own row here and binds it in its class body
|
|
5
|
+
(``remote_shape = remote_shape_row("<runtime>")``), so a subclass never
|
|
6
|
+
silently inherits its parent's remote keys. Every row cites the vendor
|
|
7
|
+
evidence it was built from; rows APM has not re-verified against current
|
|
8
|
+
vendor docs are marked ``verified=False`` and listed in
|
|
9
|
+
:data:`UNVERIFIED_REMOTE_SHAPES`.
|
|
10
|
+
|
|
11
|
+
A row maps each canonical transport (see :mod:`apm_cli.mcp_transport`) to the
|
|
12
|
+
native URL key and, when the harness uses one, the native transport
|
|
13
|
+
discriminator. A transport the harness does not support maps to
|
|
14
|
+
:data:`UNSUPPORTED`; such a server is skipped for that harness with one
|
|
15
|
+
warning and is not claimed (:func:`skip_unsupported_remote`).
|
|
16
|
+
|
|
17
|
+
``retired`` lists the remote shapes earlier APM releases wrote for the same
|
|
18
|
+
row, so the ownership owner can recognize and heal an APM-written entry in a
|
|
19
|
+
retired shape (``MCPClientAdapter.legacy_managed_renders``).
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from __future__ import annotations
|
|
23
|
+
|
|
24
|
+
from collections.abc import Callable, Mapping
|
|
25
|
+
from dataclasses import dataclass, field
|
|
26
|
+
from types import MappingProxyType
|
|
27
|
+
from typing import Any
|
|
28
|
+
|
|
29
|
+
from ...mcp_transport import (
|
|
30
|
+
CANONICAL_REMOTE_TRANSPORTS,
|
|
31
|
+
TRANSPORT_SSE,
|
|
32
|
+
TRANSPORT_STREAMABLE_HTTP,
|
|
33
|
+
canonical_remote_transport,
|
|
34
|
+
)
|
|
35
|
+
from ...utils.console import _rich_warning
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class _Unsupported:
|
|
39
|
+
"""Sentinel marking a canonical transport a harness cannot load."""
|
|
40
|
+
|
|
41
|
+
_instance: _Unsupported | None = None
|
|
42
|
+
|
|
43
|
+
def __new__(cls) -> _Unsupported:
|
|
44
|
+
if cls._instance is None:
|
|
45
|
+
cls._instance = super().__new__(cls)
|
|
46
|
+
return cls._instance
|
|
47
|
+
|
|
48
|
+
def __repr__(self) -> str:
|
|
49
|
+
return "UNSUPPORTED"
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
UNSUPPORTED = _Unsupported()
|
|
53
|
+
|
|
54
|
+
# ``None`` in ``type_values`` means "emit no discriminator for this transport".
|
|
55
|
+
_TypeValue = str | None
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class UnsupportedRemoteTransportError(ValueError):
|
|
59
|
+
"""Raised when a comparison render asks for a transport the harness refuses."""
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _frozen(mapping: Mapping[str, Any]) -> Mapping[str, Any]:
|
|
63
|
+
return MappingProxyType(dict(mapping))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@dataclass(frozen=True)
|
|
67
|
+
class ShapeSpec:
|
|
68
|
+
"""Remote keys one harness reads, per canonical transport."""
|
|
69
|
+
|
|
70
|
+
url_keys: Mapping[str, str | _Unsupported]
|
|
71
|
+
type_key: str | None = None
|
|
72
|
+
type_values: Mapping[str, _TypeValue] = field(default_factory=dict)
|
|
73
|
+
|
|
74
|
+
def __post_init__(self) -> None:
|
|
75
|
+
object.__setattr__(self, "url_keys", _frozen(self.url_keys))
|
|
76
|
+
object.__setattr__(self, "type_values", _frozen(self.type_values))
|
|
77
|
+
if set(self.url_keys) != CANONICAL_REMOTE_TRANSPORTS:
|
|
78
|
+
raise ValueError("A remote shape must state every canonical transport explicitly")
|
|
79
|
+
if self.type_key is None and self.type_values:
|
|
80
|
+
raise ValueError("type_values require a type_key")
|
|
81
|
+
if self.type_key is not None and set(self.type_values) != set(self.supported):
|
|
82
|
+
raise ValueError("type_values must cover exactly the supported transports")
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def supported(self) -> frozenset[str]:
|
|
86
|
+
return frozenset(t for t, key in self.url_keys.items() if key is not UNSUPPORTED)
|
|
87
|
+
|
|
88
|
+
def supports(self, transport: str) -> bool:
|
|
89
|
+
return transport in self.supported
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def owned_keys(self) -> frozenset[str]:
|
|
93
|
+
keys = {key for key in self.url_keys.values() if isinstance(key, str)}
|
|
94
|
+
if self.type_key is not None:
|
|
95
|
+
keys.add(self.type_key)
|
|
96
|
+
return frozenset(keys)
|
|
97
|
+
|
|
98
|
+
def render(self, transport: str, url: str) -> dict:
|
|
99
|
+
"""Return the native transport keys for *transport* (discriminator first)."""
|
|
100
|
+
url_key = self.url_keys[transport]
|
|
101
|
+
if url_key is UNSUPPORTED:
|
|
102
|
+
raise UnsupportedRemoteTransportError(f"transport {transport!r} is unsupported")
|
|
103
|
+
rendered: dict = {}
|
|
104
|
+
if self.type_key is not None and self.type_values.get(transport) is not None:
|
|
105
|
+
rendered[self.type_key] = self.type_values[transport]
|
|
106
|
+
rendered[url_key] = url
|
|
107
|
+
return rendered
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
@dataclass(frozen=True)
|
|
111
|
+
class RemoteShape(ShapeSpec):
|
|
112
|
+
"""One harness row: current shape, evidence, and earlier APM renders."""
|
|
113
|
+
|
|
114
|
+
runtime: str = ""
|
|
115
|
+
label: str = ""
|
|
116
|
+
evidence_url: str = ""
|
|
117
|
+
verified: bool = True
|
|
118
|
+
retired: tuple[ShapeSpec, ...] = ()
|
|
119
|
+
# Explicitly reuse another row's evidence; never implied by subclassing.
|
|
120
|
+
inherits: str | None = None
|
|
121
|
+
inherits_evidence_url: str | None = None
|
|
122
|
+
|
|
123
|
+
def __post_init__(self) -> None:
|
|
124
|
+
super().__post_init__()
|
|
125
|
+
if not self.runtime or not self.label or not self.evidence_url:
|
|
126
|
+
raise ValueError("A remote shape row needs runtime, label and evidence_url")
|
|
127
|
+
if self.inherits is not None and not self.inherits_evidence_url:
|
|
128
|
+
raise ValueError("An inherited remote shape needs its own evidence URL")
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def unsupported(self) -> frozenset[str]:
|
|
132
|
+
return CANONICAL_REMOTE_TRANSPORTS - self.supported
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
_S = TRANSPORT_STREAMABLE_HTTP
|
|
136
|
+
_E = TRANSPORT_SSE
|
|
137
|
+
_TRANSPORT_DISPLAY = {_S: "Streamable HTTP", _E: "SSE"}
|
|
138
|
+
|
|
139
|
+
_COPILOT_DOCS = (
|
|
140
|
+
"https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference"
|
|
141
|
+
)
|
|
142
|
+
_ANTIGRAVITY_DOCS = "https://antigravity.google/docs/mcp"
|
|
143
|
+
_GEMINI_DOCS = "https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md"
|
|
144
|
+
|
|
145
|
+
# APM <= 0.36 wrote ``type: http`` for every remote on the Copilot family.
|
|
146
|
+
_RETIRED_TYPE_HTTP_FOR_SSE = ShapeSpec(
|
|
147
|
+
url_keys={_S: "url", _E: "url"}, type_key="type", type_values={_S: "http", _E: "http"}
|
|
148
|
+
)
|
|
149
|
+
# APM <= 0.36 wrote ``httpUrl`` for registry remotes on Gemini and Antigravity
|
|
150
|
+
# (the v0.1 ``type`` was not read) and ``url`` for self-defined SSE.
|
|
151
|
+
_RETIRED_GEMINI_HTTPURL = ShapeSpec(url_keys={_S: "httpUrl", _E: "httpUrl"})
|
|
152
|
+
_RETIRED_GEMINI_SSE_URL = ShapeSpec(url_keys={_S: "httpUrl", _E: "url"})
|
|
153
|
+
|
|
154
|
+
REMOTE_SHAPES: Mapping[str, RemoteShape] = MappingProxyType(
|
|
155
|
+
{
|
|
156
|
+
row.runtime: row
|
|
157
|
+
for row in (
|
|
158
|
+
RemoteShape(
|
|
159
|
+
runtime="copilot",
|
|
160
|
+
label="Copilot CLI",
|
|
161
|
+
url_keys={_S: "url", _E: "url"},
|
|
162
|
+
type_key="type",
|
|
163
|
+
type_values={_S: "http", _E: "sse"},
|
|
164
|
+
evidence_url=_COPILOT_DOCS,
|
|
165
|
+
retired=(_RETIRED_TYPE_HTTP_FOR_SSE,),
|
|
166
|
+
),
|
|
167
|
+
RemoteShape(
|
|
168
|
+
runtime="vscode",
|
|
169
|
+
label="VS Code",
|
|
170
|
+
url_keys={_S: "url", _E: "url"},
|
|
171
|
+
type_key="type",
|
|
172
|
+
type_values={_S: "http", _E: "sse"},
|
|
173
|
+
evidence_url="https://code.visualstudio.com/docs/copilot/reference/mcp-configuration",
|
|
174
|
+
retired=(
|
|
175
|
+
# Self-defined ``transport: streamable-http`` was written
|
|
176
|
+
# verbatim; registry SSE remotes were written as ``http``.
|
|
177
|
+
ShapeSpec(
|
|
178
|
+
url_keys={_S: "url", _E: "url"},
|
|
179
|
+
type_key="type",
|
|
180
|
+
type_values={_S: "streamable-http", _E: "http"},
|
|
181
|
+
),
|
|
182
|
+
),
|
|
183
|
+
),
|
|
184
|
+
RemoteShape(
|
|
185
|
+
runtime="claude",
|
|
186
|
+
label="Claude Code",
|
|
187
|
+
url_keys={_S: "url", _E: "url"},
|
|
188
|
+
type_key="type",
|
|
189
|
+
type_values={_S: "http", _E: "sse"},
|
|
190
|
+
evidence_url="https://code.claude.com/docs/en/mcp",
|
|
191
|
+
retired=(_RETIRED_TYPE_HTTP_FOR_SSE,),
|
|
192
|
+
),
|
|
193
|
+
RemoteShape(
|
|
194
|
+
runtime="cursor",
|
|
195
|
+
label="Cursor",
|
|
196
|
+
url_keys={_S: "url", _E: "url"},
|
|
197
|
+
type_key="type",
|
|
198
|
+
type_values={_S: "http", _E: "http"},
|
|
199
|
+
evidence_url="https://cursor.com/docs/context/mcp",
|
|
200
|
+
verified=False,
|
|
201
|
+
),
|
|
202
|
+
RemoteShape(
|
|
203
|
+
runtime="gemini",
|
|
204
|
+
label="Gemini CLI",
|
|
205
|
+
url_keys={_S: "httpUrl", _E: "url"},
|
|
206
|
+
evidence_url=_GEMINI_DOCS,
|
|
207
|
+
retired=(_RETIRED_GEMINI_HTTPURL,),
|
|
208
|
+
),
|
|
209
|
+
RemoteShape(
|
|
210
|
+
runtime="antigravity",
|
|
211
|
+
label="Antigravity",
|
|
212
|
+
url_keys={_S: "serverUrl", _E: UNSUPPORTED},
|
|
213
|
+
evidence_url=_ANTIGRAVITY_DOCS,
|
|
214
|
+
retired=(_RETIRED_GEMINI_HTTPURL, _RETIRED_GEMINI_SSE_URL),
|
|
215
|
+
),
|
|
216
|
+
RemoteShape(
|
|
217
|
+
runtime="codex",
|
|
218
|
+
label="Codex CLI",
|
|
219
|
+
url_keys={_S: "url", _E: UNSUPPORTED},
|
|
220
|
+
evidence_url="https://developers.openai.com/codex/mcp",
|
|
221
|
+
# APM <= 0.36 wrote registry SSE remotes as Streamable HTTP.
|
|
222
|
+
retired=(ShapeSpec(url_keys={_S: "url", _E: "url"}),),
|
|
223
|
+
),
|
|
224
|
+
# Hermes connects over Streamable HTTP unless ``transport: sse``
|
|
225
|
+
# is set (``None`` omits the key for Streamable HTTP).
|
|
226
|
+
RemoteShape(
|
|
227
|
+
runtime="hermes",
|
|
228
|
+
label="Hermes",
|
|
229
|
+
url_keys={_S: "url", _E: "url"},
|
|
230
|
+
type_key="transport",
|
|
231
|
+
type_values={_S: None, _E: "sse"},
|
|
232
|
+
evidence_url="https://hermes-agent.nousresearch.com/docs/reference/mcp-config-reference",
|
|
233
|
+
# APM <= 0.36 wrote no ``transport`` key, so SSE remotes
|
|
234
|
+
# connected as Streamable HTTP (#3749).
|
|
235
|
+
retired=(ShapeSpec(url_keys={_S: "url", _E: "url"}),),
|
|
236
|
+
),
|
|
237
|
+
# OpenCode converts the entry to ``type: remote`` (opencode.py).
|
|
238
|
+
RemoteShape(
|
|
239
|
+
runtime="opencode",
|
|
240
|
+
label="OpenCode",
|
|
241
|
+
url_keys={_S: "url", _E: "url"},
|
|
242
|
+
type_key="type",
|
|
243
|
+
type_values={_S: "remote", _E: "remote"},
|
|
244
|
+
evidence_url="https://opencode.ai/docs/mcp-servers/",
|
|
245
|
+
verified=False,
|
|
246
|
+
),
|
|
247
|
+
RemoteShape(
|
|
248
|
+
runtime="kiro",
|
|
249
|
+
label="Kiro",
|
|
250
|
+
url_keys={_S: "url", _E: "url"},
|
|
251
|
+
evidence_url="https://kiro.dev/docs/mcp/configuration/",
|
|
252
|
+
verified=False,
|
|
253
|
+
),
|
|
254
|
+
RemoteShape(
|
|
255
|
+
runtime="windsurf",
|
|
256
|
+
label="Windsurf",
|
|
257
|
+
url_keys={_S: "url", _E: "url"},
|
|
258
|
+
type_key="type",
|
|
259
|
+
type_values={_S: "http", _E: "http"},
|
|
260
|
+
evidence_url="https://docs.windsurf.com/windsurf/cascade/mcp",
|
|
261
|
+
verified=False,
|
|
262
|
+
),
|
|
263
|
+
RemoteShape(
|
|
264
|
+
runtime="intellij",
|
|
265
|
+
label="JetBrains Copilot",
|
|
266
|
+
url_keys={_S: "url", _E: "url"},
|
|
267
|
+
type_key="type",
|
|
268
|
+
type_values={_S: "http", _E: "http"},
|
|
269
|
+
evidence_url="https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp",
|
|
270
|
+
verified=False,
|
|
271
|
+
),
|
|
272
|
+
)
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
# Rows whose remote keys were not re-verified against current vendor docs.
|
|
277
|
+
UNVERIFIED_REMOTE_SHAPES: frozenset[str] = frozenset(
|
|
278
|
+
{"cursor", "intellij", "kiro", "opencode", "windsurf"}
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def remote_shape_row(runtime: str) -> RemoteShape:
|
|
283
|
+
"""Return the row an adapter class binds in its own body."""
|
|
284
|
+
return REMOTE_SHAPES[runtime]
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def remote_shape_of(adapter: Any) -> RemoteShape:
|
|
288
|
+
"""Return the row the adapter's own class declares (never an inherited one)."""
|
|
289
|
+
cls = adapter if isinstance(adapter, type) else type(adapter)
|
|
290
|
+
shape = cls.__dict__.get("remote_shape")
|
|
291
|
+
if not isinstance(shape, RemoteShape):
|
|
292
|
+
raise TypeError(f"{cls.__name__} must declare its own remote_shape row")
|
|
293
|
+
return shape
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
def active_remote_shape(adapter: Any) -> ShapeSpec:
|
|
297
|
+
"""Shape an adapter renders with now: its own row, or a retired shape while
|
|
298
|
+
``legacy_managed_renders`` reproduces an earlier APM render."""
|
|
299
|
+
override = adapter._remote_shape_override
|
|
300
|
+
return override if isinstance(override, ShapeSpec) else remote_shape_of(adapter)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
def requested_remote_transport(adapter: Any, server_info: Mapping) -> str | None:
|
|
304
|
+
"""Return the canonical transport of the remote *adapter* would render, if any."""
|
|
305
|
+
remote = adapter.selected_remote(server_info)
|
|
306
|
+
if remote is None:
|
|
307
|
+
return None
|
|
308
|
+
try:
|
|
309
|
+
return canonical_remote_transport(remote)
|
|
310
|
+
except ValueError:
|
|
311
|
+
return None # the adapter reports an unknown transport when it renders
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
def unsupported_remote_transport(adapter: Any, server_info: Mapping) -> str | None:
|
|
315
|
+
"""Return the requested transport when *adapter*'s harness cannot load it."""
|
|
316
|
+
transport = requested_remote_transport(adapter, server_info)
|
|
317
|
+
if transport is None or remote_shape_of(adapter).supports(transport):
|
|
318
|
+
return None
|
|
319
|
+
return transport
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
def may_refuse_remote(runtime: str, declared_transport: str | None) -> bool:
|
|
323
|
+
"""Whether *runtime* may refuse this server's remote transport (no registry payload).
|
|
324
|
+
|
|
325
|
+
``None`` (a registry server without a declared transport) means only the
|
|
326
|
+
registry payload can decide, so any runtime with an unsupported transport may.
|
|
327
|
+
"""
|
|
328
|
+
row = REMOTE_SHAPES.get(runtime)
|
|
329
|
+
if row is None or not row.unsupported:
|
|
330
|
+
return False
|
|
331
|
+
if declared_transport is None:
|
|
332
|
+
return True
|
|
333
|
+
if declared_transport not in ("http", TRANSPORT_SSE, TRANSPORT_STREAMABLE_HTTP):
|
|
334
|
+
return False
|
|
335
|
+
return canonical_remote_transport({"transport": declared_transport}) in row.unsupported
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
def unsupported_remote_message(adapter: Any, server_name: str, transport: str) -> str:
|
|
339
|
+
"""Wording shared by every unsupported-transport skip."""
|
|
340
|
+
shape = remote_shape_of(adapter)
|
|
341
|
+
supported = ", ".join(sorted(shape.supported)) or "none"
|
|
342
|
+
display = _TRANSPORT_DISPLAY.get(transport, transport)
|
|
343
|
+
return (
|
|
344
|
+
f"Skipping MCP server '{server_name}' for {shape.label}: the {display} transport "
|
|
345
|
+
f"is not supported by {shape.label} (supported remote transports: {supported}). "
|
|
346
|
+
f"The server was not configured for {shape.label}. See {shape.evidence_url}"
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
def skip_unsupported_remote(
|
|
351
|
+
adapter: Any,
|
|
352
|
+
server_name: str,
|
|
353
|
+
transport: str,
|
|
354
|
+
*,
|
|
355
|
+
warn: Callable[[str], Any] | None = None,
|
|
356
|
+
) -> None:
|
|
357
|
+
"""Disposition for a transport the harness refuses: warn, skip, do not claim.
|
|
358
|
+
|
|
359
|
+
Returns ``None`` so an adapter's ``_format_server_config`` can return it
|
|
360
|
+
directly. A comparison render raises instead, so preview and ownership
|
|
361
|
+
comparisons never print the warning a second time.
|
|
362
|
+
"""
|
|
363
|
+
message = unsupported_remote_message(adapter, server_name, transport)
|
|
364
|
+
if adapter._comparison_render_depth:
|
|
365
|
+
raise UnsupportedRemoteTransportError(message)
|
|
366
|
+
if warn is None:
|
|
367
|
+
_rich_warning(message, symbol="warning")
|
|
368
|
+
else:
|
|
369
|
+
warn(message)
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
__all__ = [
|
|
373
|
+
"REMOTE_SHAPES",
|
|
374
|
+
"UNSUPPORTED",
|
|
375
|
+
"UNVERIFIED_REMOTE_SHAPES",
|
|
376
|
+
"RemoteShape",
|
|
377
|
+
"ShapeSpec",
|
|
378
|
+
"UnsupportedRemoteTransportError",
|
|
379
|
+
"active_remote_shape",
|
|
380
|
+
"may_refuse_remote",
|
|
381
|
+
"remote_shape_of",
|
|
382
|
+
"remote_shape_row",
|
|
383
|
+
"requested_remote_transport",
|
|
384
|
+
"skip_unsupported_remote",
|
|
385
|
+
"unsupported_remote_message",
|
|
386
|
+
"unsupported_remote_transport",
|
|
387
|
+
]
|
|
@@ -27,6 +27,7 @@ Ref: https://antigravity.google/docs/mcp
|
|
|
27
27
|
|
|
28
28
|
from pathlib import Path
|
|
29
29
|
|
|
30
|
+
from ._remote_shapes import remote_shape_row
|
|
30
31
|
from .gemini import GeminiClientAdapter
|
|
31
32
|
|
|
32
33
|
|
|
@@ -40,6 +41,8 @@ class AntigravityClientAdapter(GeminiClientAdapter):
|
|
|
40
41
|
``mcp_config.json`` rather than ``settings.json``.
|
|
41
42
|
"""
|
|
42
43
|
|
|
44
|
+
remote_shape = remote_shape_row("antigravity")
|
|
45
|
+
|
|
43
46
|
supports_user_scope: bool = True
|
|
44
47
|
target_name: str = "antigravity"
|
|
45
48
|
|
|
@@ -310,6 +310,13 @@ class MCPClientAdapter(ABC):
|
|
|
310
310
|
# other adapters keep their written entry until the declaration changes.
|
|
311
311
|
refreshes_environment_renders: bool = False
|
|
312
312
|
|
|
313
|
+
# Render-time state owned by ``_remote_shapes``: a retired shape while
|
|
314
|
+
# ``legacy_managed_renders`` reproduces an earlier APM render, and the
|
|
315
|
+
# nesting depth of comparison renders (which raise instead of warning on
|
|
316
|
+
# an unsupported transport).
|
|
317
|
+
_remote_shape_override: Any = None
|
|
318
|
+
_comparison_render_depth: int = 0
|
|
319
|
+
|
|
313
320
|
@staticmethod
|
|
314
321
|
def _merge_extra(config: dict, server_info: dict) -> dict:
|
|
315
322
|
"""Merge harness-specific ``_extra`` keys from server_info into config.
|
|
@@ -401,17 +408,59 @@ class MCPClientAdapter(ABC):
|
|
|
401
408
|
runtime_vars: dict | None = None,
|
|
402
409
|
) -> dict:
|
|
403
410
|
"""Render one native server entry for exact baseline comparisons."""
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
411
|
+
# A comparison render reports an unsupported transport by raising,
|
|
412
|
+
# so only the install itself warns about the skip.
|
|
413
|
+
self._comparison_render_depth += 1
|
|
414
|
+
try:
|
|
415
|
+
rendered = self._format_server_config(
|
|
416
|
+
server_info,
|
|
417
|
+
env_overrides=env_overrides or {},
|
|
418
|
+
runtime_vars=runtime_vars or {},
|
|
419
|
+
)
|
|
420
|
+
finally:
|
|
421
|
+
self._comparison_render_depth -= 1
|
|
409
422
|
if isinstance(rendered, tuple):
|
|
410
423
|
rendered = rendered[0]
|
|
411
424
|
if not isinstance(rendered, dict):
|
|
412
425
|
raise ValueError("Adapter did not produce a native MCP server mapping")
|
|
413
426
|
return rendered
|
|
414
427
|
|
|
428
|
+
def legacy_managed_renders(
|
|
429
|
+
self,
|
|
430
|
+
server_info: dict,
|
|
431
|
+
*,
|
|
432
|
+
env_overrides: dict | None = None,
|
|
433
|
+
runtime_vars: dict | None = None,
|
|
434
|
+
) -> tuple[dict, ...]:
|
|
435
|
+
"""Renders earlier APM releases wrote for the same declaration.
|
|
436
|
+
|
|
437
|
+
Rendered with each retired remote shape of this adapter's row
|
|
438
|
+
(``_remote_shapes``), so the ownership owner can recognize, heal or
|
|
439
|
+
retire an APM-written entry in a shape APM no longer writes.
|
|
440
|
+
"""
|
|
441
|
+
from ._remote_shapes import remote_shape_of, requested_remote_transport
|
|
442
|
+
|
|
443
|
+
shape = remote_shape_of(self)
|
|
444
|
+
if not shape.retired or requested_remote_transport(self, server_info) is None:
|
|
445
|
+
return ()
|
|
446
|
+
kwargs = {"env_overrides": env_overrides, "runtime_vars": runtime_vars}
|
|
447
|
+
try:
|
|
448
|
+
current = self.render_server_config(server_info, **kwargs)
|
|
449
|
+
except ValueError:
|
|
450
|
+
current = None
|
|
451
|
+
renders: list[dict] = []
|
|
452
|
+
for spec in shape.retired:
|
|
453
|
+
self._remote_shape_override = spec
|
|
454
|
+
try:
|
|
455
|
+
candidate = self.render_server_config(server_info, **kwargs)
|
|
456
|
+
except ValueError:
|
|
457
|
+
continue
|
|
458
|
+
finally:
|
|
459
|
+
self._remote_shape_override = None
|
|
460
|
+
if candidate != current and candidate not in renders:
|
|
461
|
+
renders.append(candidate)
|
|
462
|
+
return tuple(renders)
|
|
463
|
+
|
|
415
464
|
@staticmethod
|
|
416
465
|
def json_identical(left: object, right: object) -> bool:
|
|
417
466
|
"""Compare native JSON values by type as well as value.
|
|
@@ -1271,6 +1320,17 @@ class MCPClientAdapter(ABC):
|
|
|
1271
1320
|
# If no priority package found, return the first one
|
|
1272
1321
|
return packages[0] if packages else None
|
|
1273
1322
|
|
|
1323
|
+
@classmethod
|
|
1324
|
+
def selected_remote(cls, server_info) -> dict | None:
|
|
1325
|
+
"""Return the remote entry this adapter renders for *server_info*, if any."""
|
|
1326
|
+
if not isinstance(server_info, dict) or server_info.get("_raw_stdio"):
|
|
1327
|
+
return None
|
|
1328
|
+
remotes = server_info.get("remotes") or []
|
|
1329
|
+
if not remotes:
|
|
1330
|
+
return None
|
|
1331
|
+
remote = cls._select_remote_with_url(remotes) or remotes[0]
|
|
1332
|
+
return remote if isinstance(remote, dict) else None
|
|
1333
|
+
|
|
1274
1334
|
@staticmethod
|
|
1275
1335
|
def _select_remote_with_url(remotes):
|
|
1276
1336
|
"""Return the first remote entry that has a non-empty URL.
|
|
@@ -30,6 +30,7 @@ from typing import ClassVar
|
|
|
30
30
|
from ...utils.atomic_io import atomic_write_text
|
|
31
31
|
from ...utils.console import _rich_error, _rich_success, _rich_warning
|
|
32
32
|
from ...utils.path_security import PathTraversalError, validate_path_segments
|
|
33
|
+
from ._remote_shapes import remote_shape_row
|
|
33
34
|
from .base import _ENV_VAR_RE, _translate_env_placeholder
|
|
34
35
|
from .copilot import CopilotClientAdapter
|
|
35
36
|
|
|
@@ -123,6 +124,8 @@ class ClaudeClientAdapter(CopilotClientAdapter):
|
|
|
123
124
|
from :class:`MCPClientAdapter` -- not by post-construction monkey-patching.
|
|
124
125
|
"""
|
|
125
126
|
|
|
127
|
+
remote_shape = remote_shape_row("claude")
|
|
128
|
+
|
|
126
129
|
supports_user_scope: bool = True
|
|
127
130
|
_client_label: str = "Claude Code"
|
|
128
131
|
target_name: str = "claude"
|
|
@@ -475,16 +478,10 @@ class ClaudeClientAdapter(CopilotClientAdapter):
|
|
|
475
478
|
|
|
476
479
|
Used for symlink pre-checks before canonical resolution.
|
|
477
480
|
"""
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
raise PathTraversalError(
|
|
483
|
-
"CLAUDE_CONFIG_DIR must be an absolute path for user-scope MCP "
|
|
484
|
-
"config; set an absolute path or unset it to use ~/.claude.json."
|
|
485
|
-
)
|
|
486
|
-
return config_path / ".claude.json"
|
|
487
|
-
return Path.home() / ".claude.json"
|
|
481
|
+
from ...integration.targets import configured_user_root
|
|
482
|
+
|
|
483
|
+
config_dir = configured_user_root("claude")
|
|
484
|
+
return (config_dir if config_dir is not None else Path.home()) / ".claude.json"
|
|
488
485
|
|
|
489
486
|
@classmethod
|
|
490
487
|
def resolve_user_claude_json_path(cls, unresolved_path: Path | None = None) -> Path:
|
|
@@ -11,13 +11,14 @@ import tomlkit
|
|
|
11
11
|
from tomlkit.exceptions import TOMLKitError
|
|
12
12
|
from tomlkit.items import InlineTable, Item, String, Table
|
|
13
13
|
|
|
14
|
+
from ...mcp_transport import canonical_remote_transport
|
|
14
15
|
from ...registry.client import SimpleRegistryClient
|
|
15
16
|
from ...registry.integration import RegistryIntegration
|
|
16
17
|
from ...utils.atomic_io import atomic_write_text
|
|
17
18
|
from ...utils.console import _rich_success, _rich_warning
|
|
18
19
|
from ...utils.net import is_loopback_host
|
|
19
|
-
from ...utils.path_security import PathTraversalError
|
|
20
20
|
from ._mcp_runtime_args import process_v01_value_hint_arg
|
|
21
|
+
from ._remote_shapes import active_remote_shape, remote_shape_row, skip_unsupported_remote
|
|
21
22
|
from .base import _ENV_PLACEHOLDER_RE, _ENV_VAR_RE, MCPClientAdapter
|
|
22
23
|
|
|
23
24
|
_log = logging.getLogger(__name__)
|
|
@@ -62,6 +63,15 @@ class CodexClientAdapter(MCPClientAdapter):
|
|
|
62
63
|
server configuration.
|
|
63
64
|
"""
|
|
64
65
|
|
|
66
|
+
remote_shape = remote_shape_row("codex")
|
|
67
|
+
|
|
68
|
+
@classmethod
|
|
69
|
+
def selected_remote(cls, server_info) -> dict | None:
|
|
70
|
+
"""Codex renders a published stdio package before any remote."""
|
|
71
|
+
if isinstance(server_info, dict) and server_info.get("packages"):
|
|
72
|
+
return None
|
|
73
|
+
return super().selected_remote(server_info)
|
|
74
|
+
|
|
65
75
|
supports_user_scope: bool = True
|
|
66
76
|
target_name: str = "codex"
|
|
67
77
|
mcp_servers_key: str = "mcp_servers"
|
|
@@ -93,16 +103,9 @@ class CodexClientAdapter(MCPClientAdapter):
|
|
|
93
103
|
def _get_codex_dir(self) -> Path:
|
|
94
104
|
"""Return the root directory used for Codex config in the current scope."""
|
|
95
105
|
if self.user_scope:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if not codex_home_path.is_absolute():
|
|
100
|
-
raise PathTraversalError(
|
|
101
|
-
"CODEX_HOME is set to a non-absolute path; cannot locate the "
|
|
102
|
-
"Codex CLI configuration directory."
|
|
103
|
-
)
|
|
104
|
-
return codex_home_path
|
|
105
|
-
return Path.home() / ".codex"
|
|
106
|
+
from ...integration.targets import resolve_user_root
|
|
107
|
+
|
|
108
|
+
return resolve_user_root("codex")
|
|
106
109
|
return self.project_root / ".codex"
|
|
107
110
|
|
|
108
111
|
def get_config_path(self) -> str:
|
|
@@ -483,14 +486,12 @@ class CodexClientAdapter(MCPClientAdapter):
|
|
|
483
486
|
if remotes and not packages:
|
|
484
487
|
remote = self._select_remote_with_url(remotes) or remotes[0]
|
|
485
488
|
server_name = server_info.get("name", "")
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
)
|
|
493
|
-
return None
|
|
489
|
+
transport = canonical_remote_transport(
|
|
490
|
+
remote, runtime_label="Codex CLI", server_name=server_name
|
|
491
|
+
)
|
|
492
|
+
shape = active_remote_shape(self)
|
|
493
|
+
if not shape.supports(transport):
|
|
494
|
+
return skip_unsupported_remote(self, server_name, transport)
|
|
494
495
|
|
|
495
496
|
remote_url = (remote.get("url") or "").strip()
|
|
496
497
|
if not remote_url:
|
|
@@ -521,7 +522,7 @@ class CodexClientAdapter(MCPClientAdapter):
|
|
|
521
522
|
)
|
|
522
523
|
return None
|
|
523
524
|
|
|
524
|
-
remote_config =
|
|
525
|
+
remote_config = shape.render(transport, remote_url)
|
|
525
526
|
http_headers: dict[str, str] = {}
|
|
526
527
|
env_http_headers: dict[str, str] = {}
|
|
527
528
|
bearer_token_env_var = ""
|