apm-cli 0.24.1__tar.gz → 0.26.0__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.24.1 → apm_cli-0.26.0}/NOTICE +37 -0
- {apm_cli-0.24.1/src/apm_cli.egg-info → apm_cli-0.26.0}/PKG-INFO +4 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/pyproject.toml +51 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/base.py +13 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/packer.py +4 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/plugin_exporter.py +139 -10
- apm_cli-0.26.0/src/apm_cli/bundle/plugin_layout.py +24 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/http_cache.py +23 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/url_normalize.py +2 -5
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cli.py +29 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/_helpers.py +5 -3
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/approve.py +56 -31
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/audit.py +79 -15
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/compile/cli.py +146 -86
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/_utils.py +69 -12
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/cli.py +185 -64
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/why.py +0 -8
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/doctor.py +2 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/init.py +16 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/install.py +223 -201
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/lock.py +0 -5
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/check.py +13 -4
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/doctor.py +6 -3
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/mcp.py +16 -10
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/pack.py +0 -5
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/policy.py +13 -14
- apm_cli-0.26.0/src/apm_cli/commands/prune.py +354 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/runtime.py +3 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/uninstall/cli.py +43 -14
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/uninstall/engine.py +283 -61
- apm_cli-0.26.0/src/apm_cli/commands/uninstall/lockfile_state.py +78 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/update.py +66 -14
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/agents_compiler.py +145 -113
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/link_resolver.py +23 -21
- apm_cli-0.26.0/src/apm_cli/compilation/output_writer.py +83 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/user_root_context.py +34 -36
- apm_cli-0.26.0/src/apm_cli/core/_child_tls/__init__.py +15 -0
- apm_cli-0.26.0/src/apm_cli/core/_child_tls/_apm_tls.pth +1 -0
- apm_cli-0.26.0/src/apm_cli/core/_child_tls/_apm_tls_bootstrap.py +59 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/apm_yml.py +69 -21
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/auth.py +57 -94
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/command_logger.py +40 -1
- apm_cli-0.26.0/src/apm_cli/core/deployment_ledger.py +644 -0
- apm_cli-0.26.0/src/apm_cli/core/deployment_state.py +429 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/errors.py +19 -16
- apm_cli-0.26.0/src/apm_cli/core/host_providers.py +197 -0
- apm_cli-0.26.0/src/apm_cli/core/output_mode.py +66 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/script_runner.py +42 -56
- apm_cli-0.26.0/src/apm_cli/core/target_catalog.py +282 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/target_detection.py +100 -30
- apm_cli-0.26.0/src/apm_cli/core/tls_trust.py +343 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/apm_resolver.py +142 -35
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/bare_cache.py +56 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/clone_engine.py +1 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/dependency_graph.py +6 -4
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/download_strategies.py +134 -86
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_auth_env.py +18 -7
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_file_transport.py +38 -3
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_reference_resolver.py +39 -7
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_semver_resolver.py +7 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/github_downloader.py +48 -23
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/github_downloader_validation.py +12 -1
- apm_cli-0.26.0/src/apm_cli/deps/github_rate_limit.py +77 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/host_backends.py +25 -74
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/lockfile.py +156 -16
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/plugin_parser.py +42 -0
- apm_cli-0.26.0/src/apm_cli/deps/reachability.py +245 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/shared_clone_cache.py +57 -35
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/tiered_ref_resolver.py +17 -8
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/drift.py +25 -6
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/context.py +9 -2
- apm_cli-0.26.0/src/apm_cli/install/deployed_paths.py +88 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/drift.py +26 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/errors.py +4 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/branch_ref_drift.py +1 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/buggy_lockfile_recovery.py +1 -1
- apm_cli-0.26.0/src/apm_cli/install/helpers/ref_reuse.py +264 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/helpers/ref_seed.py +7 -10
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/integrity.py +10 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/local_bundle_handler.py +82 -44
- apm_cli-0.26.0/src/apm_cli/install/manifest_reconcile.py +650 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/command.py +10 -3
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/integration.py +54 -22
- apm_cli-0.26.0/src/apm_cli/install/mcp/ownership.py +68 -0
- apm_cli-0.26.0/src/apm_cli/install/outcome.py +100 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/cleanup.py +37 -11
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/finalize.py +128 -27
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/integrate.py +5 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/lockfile.py +181 -43
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/policy_target_check.py +10 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/post_deps_local.py +53 -50
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/resolve.py +49 -142
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/targets.py +53 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/pipeline.py +76 -9
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/plan.py +39 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/request.py +2 -0
- apm_cli-0.26.0/src/apm_cli/install/resolution_staging.py +59 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/service.py +9 -3
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/services.py +29 -33
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/skill_path_migration.py +6 -10
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/sources.py +22 -19
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/summary.py +45 -32
- apm_cli-0.26.0/src/apm_cli/install/target_warnings.py +57 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/template.py +23 -1
- apm_cli-0.26.0/src/apm_cli/install/transaction.py +204 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/validation.py +61 -47
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/__init__.py +4 -0
- apm_cli-0.26.0/src/apm_cli/integration/_hook_dropped_targets.py +129 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/agent_integrator.py +85 -7
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/base_integrator.py +66 -5
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/cleanup.py +14 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/hook_integrator.py +296 -262
- apm_cli-0.26.0/src/apm_cli/integration/hook_ir.py +54 -0
- apm_cli-0.26.0/src/apm_cli/integration/hook_native_formats.py +176 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/kiro_hook_integrator.py +62 -80
- apm_cli-0.26.0/src/apm_cli/integration/mcp_config_view.py +344 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/mcp_integrator.py +45 -83
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/mcp_integrator_install.py +42 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/opencode_frontmatter.py +4 -18
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/skill_integrator.py +98 -21
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/targets.py +165 -81
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/auth_helpers.py +30 -13
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/builder.py +77 -60
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/models.py +13 -18
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/output_mappers.py +2 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/ref_resolver.py +263 -15
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/registry.py +28 -10
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/resolver.py +104 -52
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/version_resolver.py +14 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/yml_schema.py +4 -4
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/apm_package.py +240 -21
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/identity.py +19 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/mcp.py +3 -3
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/object_fields.py +31 -1
- apm_cli-0.26.0/src/apm_cli/models/dependency/provider_coordinates.py +54 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/reference.py +70 -63
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/subsets.py +28 -0
- apm_cli-0.26.0/src/apm_cli/models/manifest_contract.py +31 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/results.py +16 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/validation.py +2 -6
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/ci_checks.py +148 -53
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/discovery.py +463 -90
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/inheritance.py +2 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/install_preflight.py +10 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/models.py +1 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/outcome_routing.py +30 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/parser.py +26 -5
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/policy_checks.py +63 -1
- apm_cli-0.26.0/src/apm_cli/runtime/base.py +186 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/codex_runtime.py +3 -20
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/factory.py +12 -10
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/llm_runtime.py +15 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/manager.py +49 -28
- apm_cli-0.26.0/src/apm_cli/runtime/registry.py +126 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/audit_report.py +139 -23
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/file_scanner.py +7 -2
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/gate.py +19 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/diagnostics.py +40 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/git_env.py +10 -15
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/github_host.py +24 -19
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/runner.py +1 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0/src/apm_cli.egg-info}/PKG-INFO +4 -1
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/SOURCES.txt +25 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/requires.txt +3 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_apm_package_models.py +18 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_github_downloader.py +122 -3
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_gitlab_git_transport.py +121 -21
- apm_cli-0.24.1/src/apm_cli/commands/prune.py +0 -168
- apm_cli-0.24.1/src/apm_cli/compilation/output_writer.py +0 -49
- apm_cli-0.24.1/src/apm_cli/install/deployed_paths.py +0 -70
- apm_cli-0.24.1/src/apm_cli/install/helpers/ref_reuse.py +0 -96
- apm_cli-0.24.1/src/apm_cli/install/manifest_reconcile.py +0 -112
- apm_cli-0.24.1/src/apm_cli/runtime/base.py +0 -103
- {apm_cli-0.24.1 → apm_cli-0.26.0}/AUTHORS +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/LICENSE +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/README.md +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/setup.cfg +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/_mcp_runtime_args.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/antigravity.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/claude.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/codex.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/copilot.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/cursor.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/gemini.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/hermes.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/intellij.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/kiro.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/opencode.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/vscode.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/windsurf.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/package_manager/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/package_manager/base.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/package_manager/default_manager.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bootstrap_mirror.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/attest.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/local_bundle.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/lockfile_enrichment.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/unpacker.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/git_cache.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/integrity.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/locking.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/paths.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/_apm_yml_writer.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/cache.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/compile/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/compile/watcher.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/config.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/experimental.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/find.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/lifecycle.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/list_cmd.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/audit.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/init.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/migrate.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/outdated.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/add.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/remove.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/set.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/validate.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/outdated.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/plugin/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/plugin/init.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/publish.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/run.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/self_update.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/targets.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/uninstall/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/view.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/build_id.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/claude_formatter.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/constants.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/constitution.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/constitution_block.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/context_optimizer.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/distributed_compiler.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/gemini_formatter.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/injector.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/managed_section.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/template_builder.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/config.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/constants.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/azure_cli.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/build_orchestrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/conflict_detector.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/docker_args.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/experimental.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/install_audit.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/lifecycle_scripts.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/null_logger.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/operations.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/plugin_manifest.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/safe_installer.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/scope.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/script_executors.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/script_trust.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/token_manager.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/_shared.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/aggregator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/artifactory_entry.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/artifactory_orchestrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_remote_ops.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/installed_package.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/outdated_ref_cache.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/outdated_row.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/package_validator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/path_anchoring.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/auth.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/client.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/config_loader.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/extractor.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/feature_gate.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/outdated.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/resolver.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/semver.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry_proxy.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/revision_pins.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/transport_selection.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/verifier.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/why_walker.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/authoring.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/declared_license.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/formats.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/purl.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/sbom.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/spdx.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/spdx_data.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/factory.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/artifactory_resolver.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/cache_pin.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/exec_gate.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/gitlab_resolver.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/base.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/helpers/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/helpers/security_scan.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/insecure_policy.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/lsp/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/lsp/integration.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/args.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/conflicts.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/entry.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/registry.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/warnings.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/writer.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/package_resolution.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/package_selection.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/_redownload.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/_skip_logic.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/audit.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/download.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/heal.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/local_content.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/policy_gate.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/presentation/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/presentation/dry_run.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/registry_wiring.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/root_redirect.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/target_filter.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/_shared.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/canvas_integrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/command_integrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_db.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_project.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_workflow_integrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_ws.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_cowork_paths.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/coverage.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/dispatch.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/hook_bundle.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/hook_file_routing.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/instruction_integrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/lsp_integrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/prompt_integrator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/skill_transformer.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/utils.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/_git_utils.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/_io.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/_shared.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/audit.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/client.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/diagnostics.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/drift_check.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/errors.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/git_stderr.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/init_template.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/migration.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/output_profiles.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/semver.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/shadow_detector.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/tag_pattern.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/validator.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/version_check.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/version_pins.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/yml_editor.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/lsp.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/types.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/format_detection.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/plugin.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/formatters.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/models.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/script_formatters.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/_constraint_pinning.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/_help_text.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/_shared.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/matcher.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/project_config.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/schema.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/discovery.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/models.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/parser.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/client.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/integration.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/operations.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/copilot_runtime.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/utils.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/content_scanner.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/executables.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/base.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/gate.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/generic_sarif.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/options.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/registry.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/runner.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/sarif_ingest.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/skillspector.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/update_policy.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/archive.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/atomic_io.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/console.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/content_hash.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/exclude.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/file_ops.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/git_sparse.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/guards.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/helpers.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/install_tui.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/normalization.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/path_security.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/paths.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/patterns.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/perf_stats.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/reflink.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/short_sha.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/subprocess_env.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/version_checker.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/yaml_io.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/version.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/__init__.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/discovery.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/parser.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/dependency_links.txt +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/entry_points.txt +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/top_level.txt +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_apm_resolver.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_codex_docker_args_fix.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_codex_empty_string_and_defaults.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_collision_integration.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_console.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_distributed_compilation.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_empty_string_and_defaults.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_enhanced_discovery.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_github_downloader_token_precedence.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_lockfile.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_runnable_prompts.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_runtime_manager_token_precedence.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_token_manager.py +0 -0
- {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_virtual_package_multi_install.py +0 -0
|
@@ -334,6 +334,43 @@ Copyright 2019 Kenneth Reitz
|
|
|
334
334
|
|
|
335
335
|
---
|
|
336
336
|
|
|
337
|
+
## Component. truststore
|
|
338
|
+
|
|
339
|
+
- Version requirement: `>=0.10.0`
|
|
340
|
+
- Upstream: https://github.com/sethmlarson/truststore
|
|
341
|
+
- SPDX: `MIT`
|
|
342
|
+
- Notes: Verifies HTTPS against the operating-system trust store by default so `apm` works behind a corporate CA / TLS-inspecting proxy.
|
|
343
|
+
|
|
344
|
+
### Open Source License/Copyright Notice.
|
|
345
|
+
|
|
346
|
+
_Copyright (c) 2022 Seth Michael Larson_
|
|
347
|
+
|
|
348
|
+
```
|
|
349
|
+
The MIT License (MIT)
|
|
350
|
+
|
|
351
|
+
Copyright (c) 2022 Seth Michael Larson
|
|
352
|
+
|
|
353
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
354
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
355
|
+
in the Software without restriction, including without limitation the rights
|
|
356
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
357
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
358
|
+
furnished to do so, subject to the following conditions:
|
|
359
|
+
|
|
360
|
+
The above copyright notice and this permission notice shall be included in
|
|
361
|
+
all copies or substantial portions of the Software.
|
|
362
|
+
|
|
363
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
364
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
365
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
366
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
367
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
368
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
369
|
+
THE SOFTWARE.
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
337
374
|
## Component. python-frontmatter
|
|
338
375
|
|
|
339
376
|
- Version requirement: `>=1.0.0`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apm-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26.0
|
|
4
4
|
Summary: MCP configuration tool
|
|
5
5
|
Author-email: Daniel Meppiel <user@example.com>
|
|
6
6
|
License: MIT License
|
|
@@ -41,6 +41,7 @@ Requires-Dist: click>=8.0.0
|
|
|
41
41
|
Requires-Dist: colorama>=0.4.6
|
|
42
42
|
Requires-Dist: pyyaml>=6.0.0
|
|
43
43
|
Requires-Dist: requests>=2.31.0
|
|
44
|
+
Requires-Dist: truststore>=0.10.0
|
|
44
45
|
Requires-Dist: python-frontmatter>=1.0.0
|
|
45
46
|
Requires-Dist: llm>=0.28
|
|
46
47
|
Requires-Dist: llm-github-models>=0.18.0
|
|
@@ -63,6 +64,8 @@ Requires-Dist: ruff>=0.11.0; extra == "dev"
|
|
|
63
64
|
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
64
65
|
Requires-Dist: jsonschema>=4.0.0; extra == "dev"
|
|
65
66
|
Requires-Dist: pylint>=3.0.0; extra == "dev"
|
|
67
|
+
Requires-Dist: hypothesis>=6.0.0; extra == "dev"
|
|
68
|
+
Requires-Dist: mutmut==3.6.0; extra == "dev"
|
|
66
69
|
Provides-Extra: build
|
|
67
70
|
Requires-Dist: pyinstaller>=6.0.0; extra == "build"
|
|
68
71
|
Dynamic: license-file
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "apm-cli"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.26.0"
|
|
8
8
|
description = "MCP configuration tool"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -26,6 +26,7 @@ dependencies = [
|
|
|
26
26
|
"colorama>=0.4.6",
|
|
27
27
|
"pyyaml>=6.0.0",
|
|
28
28
|
"requests>=2.31.0",
|
|
29
|
+
"truststore>=0.10.0",
|
|
29
30
|
"python-frontmatter>=1.0.0",
|
|
30
31
|
"llm>=0.28",
|
|
31
32
|
"llm-github-models>=0.18.0",
|
|
@@ -51,6 +52,8 @@ dev = [
|
|
|
51
52
|
"mypy>=1.0.0",
|
|
52
53
|
"jsonschema>=4.0.0",
|
|
53
54
|
"pylint>=3.0.0",
|
|
55
|
+
"hypothesis>=6.0.0",
|
|
56
|
+
"mutmut==3.6.0",
|
|
54
57
|
]
|
|
55
58
|
build = [
|
|
56
59
|
"pyinstaller>=6.0.0",
|
|
@@ -63,6 +66,12 @@ apm = "apm_cli.cli:main"
|
|
|
63
66
|
where = ["src"]
|
|
64
67
|
include = ["apm_cli*"]
|
|
65
68
|
|
|
69
|
+
[tool.setuptools.package-data]
|
|
70
|
+
# Belt-and-suspenders: ship the child-TLS .pth alongside the bootstrap module.
|
|
71
|
+
# Delivery no longer depends on this (ensure_child_tls_bootstrap generates the
|
|
72
|
+
# .pth inline), but packaging it keeps the source tree and wheel in sync.
|
|
73
|
+
"apm_cli.core._child_tls" = ["*.pth"]
|
|
74
|
+
|
|
66
75
|
[tool.ruff]
|
|
67
76
|
line-length = 100
|
|
68
77
|
target-version = "py310"
|
|
@@ -152,22 +161,62 @@ exclude_lines = [
|
|
|
152
161
|
"@overload",
|
|
153
162
|
]
|
|
154
163
|
|
|
164
|
+
[tool.mutmut]
|
|
165
|
+
source_paths = ["src/"]
|
|
166
|
+
only_mutate = [
|
|
167
|
+
"src/apm_cli/models/dependency/subsets.py",
|
|
168
|
+
"src/apm_cli/install/plan.py",
|
|
169
|
+
"src/apm_cli/policy/discovery.py",
|
|
170
|
+
"src/apm_cli/compilation/link_resolver.py",
|
|
171
|
+
"src/apm_cli/deps/lockfile.py",
|
|
172
|
+
]
|
|
173
|
+
pytest_add_cli_args = [
|
|
174
|
+
"-n0",
|
|
175
|
+
"-p",
|
|
176
|
+
"no:cacheprovider",
|
|
177
|
+
"-o",
|
|
178
|
+
"addopts=",
|
|
179
|
+
]
|
|
180
|
+
pytest_add_cli_args_test_selection = [
|
|
181
|
+
"tests/unit/test_skill_subset_persistence.py",
|
|
182
|
+
"tests/unit/test_dep_targets_persistence.py",
|
|
183
|
+
"tests/unit/install/test_plan.py",
|
|
184
|
+
"tests/unit/policy/test_cache_merged_effective.py::test_policy_serializer_covers_every_dataclass_leaf",
|
|
185
|
+
"tests/unit/policy/test_cache_merged_effective.py::test_policy_serializer_preserves_sparse_bin_deploy_shapes",
|
|
186
|
+
"tests/unit/policy/test_cache_merged_effective.py::TestPolicyRoundTrip::test_all_effective_policy_fields_survive_cache_round_trip",
|
|
187
|
+
"tests/unit/compilation/test_link_resolver.py",
|
|
188
|
+
"tests/unit/compilation/test_link_resolver_phase3.py",
|
|
189
|
+
"tests/unit/compilation/test_link_resolver_resolution.py",
|
|
190
|
+
"tests/unit/deps/test_lockfile_field_properties.py",
|
|
191
|
+
]
|
|
192
|
+
timeout_constant = 1.0
|
|
193
|
+
timeout_multiplier = 5.0
|
|
194
|
+
use_setproctitle = false
|
|
195
|
+
|
|
155
196
|
[tool.pytest.ini_options]
|
|
156
|
-
addopts = "-m 'not benchmark and not live'"
|
|
197
|
+
addopts = "-m 'not benchmark and not live' --strict-markers"
|
|
198
|
+
testpaths = ["tests"]
|
|
157
199
|
markers = [
|
|
200
|
+
"unit: pure logic with no filesystem and no CLI",
|
|
201
|
+
"component: in-process behavior that touches a filesystem or one command boundary",
|
|
202
|
+
"e2e: a real installed CLI crossing at least one command boundary",
|
|
158
203
|
"integration: marks tests as integration tests that may require network access",
|
|
159
204
|
"live: marks tests that hit real GitHub repos (requires network + optional GITHUB_TOKEN)",
|
|
160
205
|
"slow: marks tests as slow running tests",
|
|
161
206
|
"benchmark: marks performance benchmark tests (deselected by default, run with -m benchmark)",
|
|
207
|
+
"windows_compat: load-bearing cross-platform regression contract family (CRLF-safe atomic writes, portable path formatting, git-executable resolution, socket/thread shutdown); runs on every OS and is additionally selected by the PR-time Windows Compatibility Gate -- NOT a requires_windows skip-gate, do not use requires_windows for this",
|
|
162
208
|
"requires_e2e_mode: requires APM_E2E_TESTS=1",
|
|
163
209
|
"requires_github_token: requires GITHUB_APM_PAT or GITHUB_TOKEN",
|
|
164
210
|
"requires_ado_pat: requires ADO_APM_PAT",
|
|
165
211
|
"requires_ado_bearer: requires az CLI logged in + APM_TEST_ADO_BEARER=1",
|
|
166
212
|
"requires_network_integration: requires APM_RUN_INTEGRATION_TESTS=1",
|
|
213
|
+
"requires_windows: requires a Windows host",
|
|
167
214
|
"requires_apm_binary: requires built apm binary on PATH (or APM_BINARY_PATH)",
|
|
168
215
|
"requires_runtime_codex: requires codex runtime installed",
|
|
169
216
|
"requires_runtime_copilot: requires GitHub Copilot CLI runtime installed",
|
|
170
217
|
"requires_runtime_llm: requires llm runtime installed",
|
|
171
218
|
"requires_inference: requires APM_RUN_INFERENCE_TESTS=1 + model API access",
|
|
172
219
|
"req: binds a test to one or more OpenAPM req-XXX ids (spec-conformance suite)",
|
|
220
|
+
"lifecycle_smoke: promoted to the required PR-time Lifecycle Smoke (Linux) job -- see ci.yml's lifecycle-smoke job and docs/src/content/docs/contributing/integration-testing.md",
|
|
221
|
+
"lifecycle_merge_group: unique lifecycle contracts retained in the full merge-group integration suite",
|
|
173
222
|
]
|
|
@@ -210,6 +210,19 @@ class MCPClientAdapter(ABC):
|
|
|
210
210
|
return self._project_root
|
|
211
211
|
return Path(os.getcwd())
|
|
212
212
|
|
|
213
|
+
def render_server_config(self, server_info: dict) -> dict:
|
|
214
|
+
"""Render one native server entry for exact baseline comparisons."""
|
|
215
|
+
rendered = self._format_server_config(
|
|
216
|
+
server_info,
|
|
217
|
+
env_overrides={},
|
|
218
|
+
runtime_vars={},
|
|
219
|
+
)
|
|
220
|
+
if isinstance(rendered, tuple):
|
|
221
|
+
rendered = rendered[0]
|
|
222
|
+
if not isinstance(rendered, dict):
|
|
223
|
+
raise ValueError("Adapter did not produce a native MCP server mapping")
|
|
224
|
+
return rendered
|
|
225
|
+
|
|
213
226
|
@abstractmethod
|
|
214
227
|
def get_config_path(self):
|
|
215
228
|
"""Get the path to the MCP configuration file."""
|
|
@@ -93,7 +93,9 @@ def pack_bundle(
|
|
|
93
93
|
package = APMPackage.from_apm_yml(apm_yml_path)
|
|
94
94
|
pkg_name = package.name
|
|
95
95
|
pkg_version = package.version or "0.0.0"
|
|
96
|
-
|
|
96
|
+
from apm_cli.models.apm_package import package_target_selection
|
|
97
|
+
|
|
98
|
+
config_target = package_target_selection(package)
|
|
97
99
|
|
|
98
100
|
# HYBRID author guard: apm.yml.description and SKILL.md
|
|
99
101
|
# description serve different consumers (human-facing CLI/search
|
|
@@ -141,7 +143,7 @@ def pack_bundle(
|
|
|
141
143
|
# List from CLI (e.g. --target claude,copilot) passes through directly
|
|
142
144
|
effective_target = target
|
|
143
145
|
elif isinstance(config_target, list) and target is None:
|
|
144
|
-
#
|
|
146
|
+
# Canonical list from either apm.yml target spelling.
|
|
145
147
|
effective_target = config_target
|
|
146
148
|
else:
|
|
147
149
|
effective_target, _reason = detect_target(
|
|
@@ -22,6 +22,7 @@ from ..deps.lockfile import (
|
|
|
22
22
|
migrate_lockfile_if_needed,
|
|
23
23
|
)
|
|
24
24
|
from ..models.apm_package import APMPackage, DependencyReference
|
|
25
|
+
from ..models.dependency.subsets import skill_subset_filter_tokens
|
|
25
26
|
from ..utils.archive import (
|
|
26
27
|
projected_archive_path,
|
|
27
28
|
validate_archive_format,
|
|
@@ -30,8 +31,10 @@ from ..utils.archive import (
|
|
|
30
31
|
)
|
|
31
32
|
from ..utils.console import _rich_warning
|
|
32
33
|
from ..utils.path_security import PathTraversalError, ensure_path_within, safe_rmtree
|
|
34
|
+
from ..utils.paths import portable_relpath
|
|
33
35
|
from .attest import verify_attested_file
|
|
34
36
|
from .packer import PackResult
|
|
37
|
+
from .plugin_layout import PLUGIN_ROOT_DIRS, find_plugin_root_sources
|
|
35
38
|
|
|
36
39
|
# ---------------------------------------------------------------------------
|
|
37
40
|
# Path helpers
|
|
@@ -125,11 +128,49 @@ def _collect_root_plugin_components(project_root: Path) -> list[tuple[Path, str]
|
|
|
125
128
|
``skills/``, etc. at the repo root) have their files picked up here.
|
|
126
129
|
"""
|
|
127
130
|
components: list[tuple[Path, str]] = []
|
|
128
|
-
for dir_name in
|
|
131
|
+
for dir_name in PLUGIN_ROOT_DIRS:
|
|
132
|
+
if dir_name == "hooks":
|
|
133
|
+
continue
|
|
129
134
|
_collect_recursive(project_root / dir_name, dir_name, components)
|
|
130
135
|
return components
|
|
131
136
|
|
|
132
137
|
|
|
138
|
+
def _emit_pack_warning(message: str, logger=None) -> None:
|
|
139
|
+
"""Send a pack warning through the command logger when available."""
|
|
140
|
+
if logger:
|
|
141
|
+
logger.warning(message)
|
|
142
|
+
else:
|
|
143
|
+
_rich_warning(message, symbol="warning")
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def _warn_skipped_root_components(project_root: Path, logger=None) -> None:
|
|
147
|
+
"""Explain why plugin-native root sources are not packed."""
|
|
148
|
+
for source in find_plugin_root_sources(project_root):
|
|
149
|
+
if source == "hooks.json":
|
|
150
|
+
message = (
|
|
151
|
+
"Skipping root-level hooks.json because .apm/ is present. "
|
|
152
|
+
"Move publishable hook configuration to .apm/hooks/ or remove "
|
|
153
|
+
"hooks.json to silence this warning."
|
|
154
|
+
)
|
|
155
|
+
else:
|
|
156
|
+
message = (
|
|
157
|
+
f"Skipping root-level {source}/ because .apm/ is present. "
|
|
158
|
+
f"Move publishable files to .apm/{source}/ or remove {source}/ "
|
|
159
|
+
"to silence this warning."
|
|
160
|
+
)
|
|
161
|
+
_emit_pack_warning(message, logger)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def _warn_no_local_primitives(logger=None) -> None:
|
|
165
|
+
"""Explain how to recover from an empty APM-native source layout."""
|
|
166
|
+
_emit_pack_warning(
|
|
167
|
+
"No local primitives found. Expected content under .apm/. "
|
|
168
|
+
"Move plugin-native content into .apm/, or remove .apm/ to restore "
|
|
169
|
+
"root convention discovery.",
|
|
170
|
+
logger,
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
|
|
133
174
|
def _collect_bare_skill(
|
|
134
175
|
install_path: Path,
|
|
135
176
|
dep: "LockedDependency",
|
|
@@ -178,7 +219,7 @@ def _collect_flat(
|
|
|
178
219
|
rename=None,
|
|
179
220
|
) -> None:
|
|
180
221
|
"""Add every regular non-symlink file directly inside *src_dir*."""
|
|
181
|
-
if not src_dir.is_dir():
|
|
222
|
+
if src_dir.is_symlink() or not src_dir.is_dir():
|
|
182
223
|
return
|
|
183
224
|
for f in sorted(src_dir.iterdir()):
|
|
184
225
|
if f.is_file() and not f.is_symlink():
|
|
@@ -194,7 +235,7 @@ def _collect_recursive(
|
|
|
194
235
|
rename=None,
|
|
195
236
|
) -> None:
|
|
196
237
|
"""Add every regular non-symlink file under *src_dir*, preserving hierarchy."""
|
|
197
|
-
if not src_dir.is_dir():
|
|
238
|
+
if src_dir.is_symlink() or not src_dir.is_dir():
|
|
198
239
|
return
|
|
199
240
|
for f in sorted(src_dir.rglob("*")):
|
|
200
241
|
if not f.is_file() or f.is_symlink():
|
|
@@ -483,6 +524,76 @@ def _plugin_rel_for_deployed_path(
|
|
|
483
524
|
return PurePosixPath(*plugin_parts).as_posix()
|
|
484
525
|
|
|
485
526
|
|
|
527
|
+
def _collect_explicit_local_components(
|
|
528
|
+
project_root: Path,
|
|
529
|
+
includes: list[str],
|
|
530
|
+
) -> tuple[list[tuple[Path, str]], dict]:
|
|
531
|
+
"""Collect only explicitly listed local paths and validate each path."""
|
|
532
|
+
components: list[tuple[Path, str]] = []
|
|
533
|
+
hooks: dict = {}
|
|
534
|
+
for declared_path in includes:
|
|
535
|
+
parts = _deployed_path_parts(declared_path)
|
|
536
|
+
candidate = project_root.joinpath(*parts)
|
|
537
|
+
if candidate.is_symlink():
|
|
538
|
+
raise ValueError(
|
|
539
|
+
f"includes path {declared_path!r} is a symlink. "
|
|
540
|
+
"Replace it with a regular file or directory."
|
|
541
|
+
)
|
|
542
|
+
try:
|
|
543
|
+
source = ensure_path_within(candidate, project_root)
|
|
544
|
+
except PathTraversalError as exc:
|
|
545
|
+
raise ValueError(
|
|
546
|
+
f"includes path {declared_path!r} escapes the project root. "
|
|
547
|
+
"Fix the path in apm.yml."
|
|
548
|
+
) from exc
|
|
549
|
+
if not source.exists():
|
|
550
|
+
raise ValueError(
|
|
551
|
+
f"includes path {declared_path!r} does not exist. "
|
|
552
|
+
"Fix the path in apm.yml or create it."
|
|
553
|
+
)
|
|
554
|
+
entries = [source] if source.is_file() else sorted(source.rglob("*"))
|
|
555
|
+
for entry in entries:
|
|
556
|
+
if entry.is_symlink():
|
|
557
|
+
raise ValueError(
|
|
558
|
+
f"Symlink found inside includes path {declared_path!r}: "
|
|
559
|
+
f"{entry.name}. Remove the symlink or list a regular path."
|
|
560
|
+
)
|
|
561
|
+
for file_path in (entry for entry in entries if entry.is_file()):
|
|
562
|
+
try:
|
|
563
|
+
file_path = ensure_path_within(file_path, project_root)
|
|
564
|
+
except PathTraversalError as exc:
|
|
565
|
+
raise ValueError(
|
|
566
|
+
f"A file inside includes path {declared_path!r} escapes the "
|
|
567
|
+
"project root. Remove the symlink or fix the path in apm.yml."
|
|
568
|
+
) from exc
|
|
569
|
+
repo_relative = portable_relpath(file_path, project_root)
|
|
570
|
+
is_hook = (
|
|
571
|
+
repo_relative == "hooks.json"
|
|
572
|
+
or repo_relative.startswith("hooks/")
|
|
573
|
+
or repo_relative.startswith(".apm/hooks/")
|
|
574
|
+
)
|
|
575
|
+
if is_hook:
|
|
576
|
+
try:
|
|
577
|
+
hook_data = json.loads(file_path.read_text(encoding="utf-8"))
|
|
578
|
+
except (OSError, ValueError, RecursionError) as exc:
|
|
579
|
+
raise ValueError(
|
|
580
|
+
f"Explicit hook include is not valid JSON: {repo_relative}"
|
|
581
|
+
) from exc
|
|
582
|
+
if not isinstance(hook_data, dict):
|
|
583
|
+
raise ValueError(
|
|
584
|
+
f"Explicit hook include must contain a JSON object: {repo_relative}"
|
|
585
|
+
)
|
|
586
|
+
_deep_merge(hooks, hook_data, overwrite=False)
|
|
587
|
+
continue
|
|
588
|
+
plugin_relative = _plugin_rel_for_deployed_path(repo_relative, None)
|
|
589
|
+
if plugin_relative is None:
|
|
590
|
+
raise ValueError(
|
|
591
|
+
f"Explicit include path is not a packable primitive: {repo_relative}"
|
|
592
|
+
)
|
|
593
|
+
components.append((file_path, plugin_relative))
|
|
594
|
+
return components, hooks
|
|
595
|
+
|
|
596
|
+
|
|
486
597
|
def _verify_attested_hash(
|
|
487
598
|
source: Path,
|
|
488
599
|
project_root: Path,
|
|
@@ -531,7 +642,7 @@ def _collect_deployed_components(
|
|
|
531
642
|
components: list[tuple[Path, str]] = []
|
|
532
643
|
missing: list[str] = []
|
|
533
644
|
seen_outputs: set[str] = set()
|
|
534
|
-
skill_subset =
|
|
645
|
+
skill_subset = skill_subset_filter_tokens(dep.skill_subset)
|
|
535
646
|
|
|
536
647
|
for rel_path in dep.deployed_files:
|
|
537
648
|
try:
|
|
@@ -765,16 +876,34 @@ def export_plugin_bundle(
|
|
|
765
876
|
|
|
766
877
|
_merge_file_map(file_map, dep_components, dep_name, force, collisions)
|
|
767
878
|
|
|
768
|
-
# 6. Collect own components
|
|
879
|
+
# 6. Collect own components according to the local source authority.
|
|
769
880
|
own_apm_dir = project_root / ".apm"
|
|
770
|
-
|
|
771
|
-
|
|
881
|
+
if isinstance(package.includes, list):
|
|
882
|
+
own_components, root_hooks = _collect_explicit_local_components(
|
|
883
|
+
project_root,
|
|
884
|
+
package.includes,
|
|
885
|
+
)
|
|
886
|
+
else:
|
|
887
|
+
own_components = _collect_apm_components(own_apm_dir)
|
|
888
|
+
root_hooks = _collect_hooks_from_apm(own_apm_dir)
|
|
889
|
+
if own_apm_dir.is_dir():
|
|
890
|
+
_warn_skipped_root_components(project_root, logger)
|
|
891
|
+
else:
|
|
892
|
+
own_components.extend(_collect_root_plugin_components(project_root))
|
|
893
|
+
root_hooks_top = _collect_hooks_from_root(project_root)
|
|
894
|
+
_deep_merge(root_hooks, root_hooks_top, overwrite=False)
|
|
895
|
+
|
|
896
|
+
if (
|
|
897
|
+
not isinstance(package.includes, list)
|
|
898
|
+
and own_apm_dir.is_dir()
|
|
899
|
+
and not own_components
|
|
900
|
+
and not root_hooks
|
|
901
|
+
):
|
|
902
|
+
_warn_no_local_primitives(logger)
|
|
903
|
+
|
|
772
904
|
_merge_file_map(file_map, own_components, pkg_name, force, collisions)
|
|
773
905
|
|
|
774
906
|
# Hooks -- root package wins on key collision
|
|
775
|
-
root_hooks = _collect_hooks_from_apm(own_apm_dir)
|
|
776
|
-
root_hooks_top = _collect_hooks_from_root(project_root)
|
|
777
|
-
_deep_merge(root_hooks, root_hooks_top, overwrite=False)
|
|
778
907
|
_deep_merge(merged_hooks, root_hooks, overwrite=True)
|
|
779
908
|
|
|
780
909
|
# MCP -- root package wins on server-name collision
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Plugin-native source-layout conventions."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
PLUGIN_ROOT_DIRS = (
|
|
6
|
+
"agents",
|
|
7
|
+
"skills",
|
|
8
|
+
"commands",
|
|
9
|
+
"instructions",
|
|
10
|
+
"extensions",
|
|
11
|
+
"hooks",
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def find_plugin_root_sources(project_root: Path) -> list[str]:
|
|
16
|
+
"""Return plugin-native root sources that exist."""
|
|
17
|
+
sources = [
|
|
18
|
+
name
|
|
19
|
+
for name in PLUGIN_ROOT_DIRS
|
|
20
|
+
if (project_root / name).is_dir() and not (project_root / name).is_symlink()
|
|
21
|
+
]
|
|
22
|
+
if (project_root / "hooks.json").is_file():
|
|
23
|
+
sources.append("hooks.json")
|
|
24
|
+
return sources
|
|
@@ -70,6 +70,7 @@ class HttpCache:
|
|
|
70
70
|
self._cache_dir.mkdir(parents=True, exist_ok=True)
|
|
71
71
|
os.chmod(str(self._cache_dir), 0o700)
|
|
72
72
|
cleanup_incomplete(self._cache_dir)
|
|
73
|
+
self._tracked_size: int | None = None
|
|
73
74
|
|
|
74
75
|
def get(self, url: str, headers: dict[str, str] | None = None) -> CacheEntry | None:
|
|
75
76
|
"""Look up a cached response for *url*.
|
|
@@ -233,6 +234,13 @@ class HttpCache:
|
|
|
233
234
|
with contextlib.suppress(OSError):
|
|
234
235
|
os.utime(str(entry_path), None)
|
|
235
236
|
|
|
237
|
+
# Update tracked size with an upper-bound estimate. Over-counting is
|
|
238
|
+
# intentional: it triggers a real scan sooner, correcting the estimate,
|
|
239
|
+
# rather than delaying eviction. The scan in _enforce_size_cap resets
|
|
240
|
+
# _tracked_size to the real total once it runs.
|
|
241
|
+
if self._tracked_size is not None:
|
|
242
|
+
self._tracked_size += len(body) + 512 # body + metadata upper-bound estimate
|
|
243
|
+
|
|
236
244
|
# Enforce size cap
|
|
237
245
|
self._enforce_size_cap()
|
|
238
246
|
|
|
@@ -321,10 +329,20 @@ class HttpCache:
|
|
|
321
329
|
return 300.0
|
|
322
330
|
|
|
323
331
|
def _enforce_size_cap(self) -> None:
|
|
324
|
-
"""Evict LRU entries if total cache size exceeds the cap.
|
|
332
|
+
"""Evict LRU entries if total cache size exceeds the cap.
|
|
333
|
+
|
|
334
|
+
Uses a tracked size estimate to skip the full directory scan
|
|
335
|
+
when we are clearly under the cap (fast path). Falls back to a
|
|
336
|
+
full scan when the tracked size exceeds the limit or has not
|
|
337
|
+
been computed yet.
|
|
338
|
+
"""
|
|
325
339
|
if not self._cache_dir.is_dir():
|
|
326
340
|
return
|
|
327
341
|
|
|
342
|
+
# Fast path: if we have a tracked size and it is under cap, skip scan
|
|
343
|
+
if self._tracked_size is not None and self._tracked_size <= MAX_HTTP_CACHE_BYTES:
|
|
344
|
+
return
|
|
345
|
+
|
|
328
346
|
entries: list[tuple[float, str, int]] = []
|
|
329
347
|
total_size = 0
|
|
330
348
|
|
|
@@ -343,6 +361,8 @@ class HttpCache:
|
|
|
343
361
|
except OSError:
|
|
344
362
|
continue
|
|
345
363
|
|
|
364
|
+
self._tracked_size = total_size
|
|
365
|
+
|
|
346
366
|
if total_size <= MAX_HTTP_CACHE_BYTES:
|
|
347
367
|
return
|
|
348
368
|
|
|
@@ -356,3 +376,5 @@ class HttpCache:
|
|
|
356
376
|
break
|
|
357
377
|
robust_rmtree(Path(path), ignore_errors=True)
|
|
358
378
|
total_size -= size
|
|
379
|
+
|
|
380
|
+
self._tracked_size = total_size
|
|
@@ -108,8 +108,8 @@ def normalize_repo_url(url: str) -> str:
|
|
|
108
108
|
if port:
|
|
109
109
|
authority = f"{authority}:{port}"
|
|
110
110
|
|
|
111
|
-
# Step 1: Strip trailing .git from path
|
|
112
|
-
path = parsed.path or ""
|
|
111
|
+
# Step 1: Strip trailing slash and one trailing .git suffix from path.
|
|
112
|
+
path = (parsed.path or "").rstrip("/")
|
|
113
113
|
if path.endswith(".git"):
|
|
114
114
|
path = path[:-4]
|
|
115
115
|
|
|
@@ -122,9 +122,6 @@ def normalize_repo_url(url: str) -> str:
|
|
|
122
122
|
if hostname in _CASE_INSENSITIVE_HOSTS:
|
|
123
123
|
path = path.lower()
|
|
124
124
|
|
|
125
|
-
# Strip trailing slash from path
|
|
126
|
-
path = path.rstrip("/")
|
|
127
|
-
|
|
128
125
|
# Reconstruct normalized URL
|
|
129
126
|
return f"{scheme}://{authority}{path}"
|
|
130
127
|
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Thin wiring layer -- all command logic lives in ``apm_cli.commands.*`` modules.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
+
# ruff: noqa: E402
|
|
7
|
+
|
|
6
8
|
import ctypes
|
|
7
9
|
import logging
|
|
8
10
|
import os
|
|
@@ -11,6 +13,10 @@ import warnings
|
|
|
11
13
|
|
|
12
14
|
import click
|
|
13
15
|
|
|
16
|
+
from apm_cli.core.tls_trust import configure_process_tls_trust, log_tls_trust_status
|
|
17
|
+
|
|
18
|
+
configure_process_tls_trust()
|
|
19
|
+
|
|
14
20
|
from apm_cli.commands._helpers import (
|
|
15
21
|
ERROR,
|
|
16
22
|
RESET,
|
|
@@ -64,6 +70,14 @@ _CLI_EPILOG = (
|
|
|
64
70
|
)
|
|
65
71
|
|
|
66
72
|
|
|
73
|
+
class _OutputModeGroup(click.Group):
|
|
74
|
+
"""Capture full argv so root output mode precedes subcommand callbacks."""
|
|
75
|
+
|
|
76
|
+
def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
|
|
77
|
+
ctx.meta["apm_raw_args"] = tuple(args)
|
|
78
|
+
return super().parse_args(ctx, args)
|
|
79
|
+
|
|
80
|
+
|
|
67
81
|
def _configure_logging(verbose: bool = False) -> None:
|
|
68
82
|
"""Configure stdlib logging for the ``apm_cli`` package.
|
|
69
83
|
|
|
@@ -102,11 +116,17 @@ def _configure_logging(verbose: bool = False) -> None:
|
|
|
102
116
|
# Install secret-redaction filter (idempotent: skip if already present).
|
|
103
117
|
from apm_cli.core.auth import SecretRedactionFilter
|
|
104
118
|
|
|
105
|
-
|
|
106
|
-
|
|
119
|
+
handlers = {
|
|
120
|
+
*logging.getLogger().handlers,
|
|
121
|
+
*apm_logger.handlers,
|
|
122
|
+
}
|
|
123
|
+
for handler in handlers:
|
|
124
|
+
if not any(isinstance(f, SecretRedactionFilter) for f in handler.filters):
|
|
125
|
+
handler.addFilter(SecretRedactionFilter())
|
|
107
126
|
|
|
108
127
|
|
|
109
128
|
@click.group(
|
|
129
|
+
cls=_OutputModeGroup,
|
|
110
130
|
help="Agent Package Manager (APM): The package manager for AI-Native Development",
|
|
111
131
|
epilog=_CLI_EPILOG,
|
|
112
132
|
)
|
|
@@ -130,10 +150,16 @@ def cli(ctx, verbose: bool) -> None:
|
|
|
130
150
|
"""Main entry point for the APM CLI."""
|
|
131
151
|
ctx.ensure_object(dict)
|
|
132
152
|
ctx.obj["verbose"] = verbose
|
|
153
|
+
from apm_cli.core.output_mode import configure_output_mode, detect_output_mode
|
|
154
|
+
|
|
155
|
+
output_mode = detect_output_mode(ctx.meta.get("apm_raw_args", sys.argv[1:]))
|
|
156
|
+
configure_output_mode(output_mode)
|
|
157
|
+
ctx.obj["output_mode"] = output_mode
|
|
133
158
|
|
|
134
159
|
if verbose:
|
|
135
160
|
# Upgrade to DEBUG when the flag is set; env-var path runs in main().
|
|
136
161
|
_configure_logging(verbose=True)
|
|
162
|
+
log_tls_trust_status()
|
|
137
163
|
|
|
138
164
|
# Suppress only the agents-target deprecation warning so CLI users see
|
|
139
165
|
# the formatted logger.warning() in the install phase, not a double print.
|
|
@@ -333,6 +359,7 @@ def main():
|
|
|
333
359
|
"""Main entry point for the CLI."""
|
|
334
360
|
_configure_logging() # honours APM_LOG_LEVEL env var; --verbose upgrades in cli()
|
|
335
361
|
_configure_encoding()
|
|
362
|
+
configure_process_tls_trust()
|
|
336
363
|
try:
|
|
337
364
|
cli(obj={})
|
|
338
365
|
except Exception as e:
|
|
@@ -474,7 +474,7 @@ def _check_and_notify_updates():
|
|
|
474
474
|
_rich_echo(get_update_hint_message(), color="yellow", bold=True)
|
|
475
475
|
|
|
476
476
|
# Add a blank line for visual separation
|
|
477
|
-
|
|
477
|
+
_rich_echo("")
|
|
478
478
|
except Exception:
|
|
479
479
|
# Silently fail - version checking should never block CLI usage
|
|
480
480
|
pass
|
|
@@ -706,12 +706,14 @@ def _create_minimal_apm_yml(config, plugin=False, target_path=None):
|
|
|
706
706
|
content = out_file.read_text(encoding="utf-8")
|
|
707
707
|
|
|
708
708
|
if "targets" in apm_yml_data:
|
|
709
|
+
from apm_cli.core.target_catalog import manifest_target_names
|
|
710
|
+
|
|
709
711
|
# Insert comment before the targets: line
|
|
712
|
+
accepted_targets = ", ".join(sorted(manifest_target_names()))
|
|
710
713
|
targets_comment = (
|
|
711
714
|
"# Which agent platforms to deploy to.\n"
|
|
712
715
|
"# Resolution order: --target flag > this field > auto-detect from filesystem.\n"
|
|
713
|
-
"# Accepted values:
|
|
714
|
-
"# gemini, antigravity, windsurf, kiro, agent-skills, all\n"
|
|
716
|
+
f"# Accepted values: {accepted_targets}\n"
|
|
715
717
|
)
|
|
716
718
|
content = content.replace("targets:", targets_comment + "targets:", 1)
|
|
717
719
|
else:
|