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.
Files changed (455) hide show
  1. {apm_cli-0.24.1 → apm_cli-0.26.0}/NOTICE +37 -0
  2. {apm_cli-0.24.1/src/apm_cli.egg-info → apm_cli-0.26.0}/PKG-INFO +4 -1
  3. {apm_cli-0.24.1 → apm_cli-0.26.0}/pyproject.toml +51 -2
  4. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/base.py +13 -0
  5. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/packer.py +4 -2
  6. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/plugin_exporter.py +139 -10
  7. apm_cli-0.26.0/src/apm_cli/bundle/plugin_layout.py +24 -0
  8. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/http_cache.py +23 -1
  9. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/url_normalize.py +2 -5
  10. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cli.py +29 -2
  11. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/_helpers.py +5 -3
  12. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/approve.py +56 -31
  13. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/audit.py +79 -15
  14. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/compile/cli.py +146 -86
  15. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/_utils.py +69 -12
  16. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/cli.py +185 -64
  17. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/why.py +0 -8
  18. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/doctor.py +2 -2
  19. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/init.py +16 -1
  20. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/install.py +223 -201
  21. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/lock.py +0 -5
  22. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/check.py +13 -4
  23. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/doctor.py +6 -3
  24. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/mcp.py +16 -10
  25. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/pack.py +0 -5
  26. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/policy.py +13 -14
  27. apm_cli-0.26.0/src/apm_cli/commands/prune.py +354 -0
  28. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/runtime.py +3 -2
  29. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/uninstall/cli.py +43 -14
  30. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/uninstall/engine.py +283 -61
  31. apm_cli-0.26.0/src/apm_cli/commands/uninstall/lockfile_state.py +78 -0
  32. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/update.py +66 -14
  33. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/agents_compiler.py +145 -113
  34. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/link_resolver.py +23 -21
  35. apm_cli-0.26.0/src/apm_cli/compilation/output_writer.py +83 -0
  36. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/user_root_context.py +34 -36
  37. apm_cli-0.26.0/src/apm_cli/core/_child_tls/__init__.py +15 -0
  38. apm_cli-0.26.0/src/apm_cli/core/_child_tls/_apm_tls.pth +1 -0
  39. apm_cli-0.26.0/src/apm_cli/core/_child_tls/_apm_tls_bootstrap.py +59 -0
  40. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/apm_yml.py +69 -21
  41. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/auth.py +57 -94
  42. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/command_logger.py +40 -1
  43. apm_cli-0.26.0/src/apm_cli/core/deployment_ledger.py +644 -0
  44. apm_cli-0.26.0/src/apm_cli/core/deployment_state.py +429 -0
  45. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/errors.py +19 -16
  46. apm_cli-0.26.0/src/apm_cli/core/host_providers.py +197 -0
  47. apm_cli-0.26.0/src/apm_cli/core/output_mode.py +66 -0
  48. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/script_runner.py +42 -56
  49. apm_cli-0.26.0/src/apm_cli/core/target_catalog.py +282 -0
  50. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/target_detection.py +100 -30
  51. apm_cli-0.26.0/src/apm_cli/core/tls_trust.py +343 -0
  52. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/apm_resolver.py +142 -35
  53. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/bare_cache.py +56 -0
  54. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/clone_engine.py +1 -0
  55. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/dependency_graph.py +6 -4
  56. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/download_strategies.py +134 -86
  57. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_auth_env.py +18 -7
  58. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_file_transport.py +38 -3
  59. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_reference_resolver.py +39 -7
  60. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_semver_resolver.py +7 -1
  61. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/github_downloader.py +48 -23
  62. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/github_downloader_validation.py +12 -1
  63. apm_cli-0.26.0/src/apm_cli/deps/github_rate_limit.py +77 -0
  64. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/host_backends.py +25 -74
  65. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/lockfile.py +156 -16
  66. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/plugin_parser.py +42 -0
  67. apm_cli-0.26.0/src/apm_cli/deps/reachability.py +245 -0
  68. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/shared_clone_cache.py +57 -35
  69. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/tiered_ref_resolver.py +17 -8
  70. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/drift.py +25 -6
  71. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/context.py +9 -2
  72. apm_cli-0.26.0/src/apm_cli/install/deployed_paths.py +88 -0
  73. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/drift.py +26 -1
  74. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/errors.py +4 -0
  75. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/branch_ref_drift.py +1 -1
  76. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/buggy_lockfile_recovery.py +1 -1
  77. apm_cli-0.26.0/src/apm_cli/install/helpers/ref_reuse.py +264 -0
  78. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/helpers/ref_seed.py +7 -10
  79. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/integrity.py +10 -0
  80. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/local_bundle_handler.py +82 -44
  81. apm_cli-0.26.0/src/apm_cli/install/manifest_reconcile.py +650 -0
  82. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/command.py +10 -3
  83. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/integration.py +54 -22
  84. apm_cli-0.26.0/src/apm_cli/install/mcp/ownership.py +68 -0
  85. apm_cli-0.26.0/src/apm_cli/install/outcome.py +100 -0
  86. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/cleanup.py +37 -11
  87. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/finalize.py +128 -27
  88. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/integrate.py +5 -1
  89. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/lockfile.py +181 -43
  90. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/policy_target_check.py +10 -0
  91. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/post_deps_local.py +53 -50
  92. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/resolve.py +49 -142
  93. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/targets.py +53 -2
  94. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/pipeline.py +76 -9
  95. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/plan.py +39 -0
  96. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/request.py +2 -0
  97. apm_cli-0.26.0/src/apm_cli/install/resolution_staging.py +59 -0
  98. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/service.py +9 -3
  99. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/services.py +29 -33
  100. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/skill_path_migration.py +6 -10
  101. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/sources.py +22 -19
  102. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/summary.py +45 -32
  103. apm_cli-0.26.0/src/apm_cli/install/target_warnings.py +57 -0
  104. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/template.py +23 -1
  105. apm_cli-0.26.0/src/apm_cli/install/transaction.py +204 -0
  106. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/validation.py +61 -47
  107. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/__init__.py +4 -0
  108. apm_cli-0.26.0/src/apm_cli/integration/_hook_dropped_targets.py +129 -0
  109. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/agent_integrator.py +85 -7
  110. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/base_integrator.py +66 -5
  111. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/cleanup.py +14 -1
  112. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/hook_integrator.py +296 -262
  113. apm_cli-0.26.0/src/apm_cli/integration/hook_ir.py +54 -0
  114. apm_cli-0.26.0/src/apm_cli/integration/hook_native_formats.py +176 -0
  115. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/kiro_hook_integrator.py +62 -80
  116. apm_cli-0.26.0/src/apm_cli/integration/mcp_config_view.py +344 -0
  117. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/mcp_integrator.py +45 -83
  118. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/mcp_integrator_install.py +42 -2
  119. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/opencode_frontmatter.py +4 -18
  120. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/skill_integrator.py +98 -21
  121. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/targets.py +165 -81
  122. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/auth_helpers.py +30 -13
  123. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/builder.py +77 -60
  124. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/models.py +13 -18
  125. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/output_mappers.py +2 -0
  126. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/ref_resolver.py +263 -15
  127. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/registry.py +28 -10
  128. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/resolver.py +104 -52
  129. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/version_resolver.py +14 -1
  130. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/yml_schema.py +4 -4
  131. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/apm_package.py +240 -21
  132. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/identity.py +19 -0
  133. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/mcp.py +3 -3
  134. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/object_fields.py +31 -1
  135. apm_cli-0.26.0/src/apm_cli/models/dependency/provider_coordinates.py +54 -0
  136. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/reference.py +70 -63
  137. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/subsets.py +28 -0
  138. apm_cli-0.26.0/src/apm_cli/models/manifest_contract.py +31 -0
  139. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/results.py +16 -0
  140. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/validation.py +2 -6
  141. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/ci_checks.py +148 -53
  142. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/discovery.py +463 -90
  143. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/inheritance.py +2 -0
  144. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/install_preflight.py +10 -1
  145. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/models.py +1 -0
  146. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/outcome_routing.py +30 -0
  147. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/parser.py +26 -5
  148. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/policy_checks.py +63 -1
  149. apm_cli-0.26.0/src/apm_cli/runtime/base.py +186 -0
  150. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/codex_runtime.py +3 -20
  151. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/factory.py +12 -10
  152. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/llm_runtime.py +15 -2
  153. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/manager.py +49 -28
  154. apm_cli-0.26.0/src/apm_cli/runtime/registry.py +126 -0
  155. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/audit_report.py +139 -23
  156. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/file_scanner.py +7 -2
  157. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/gate.py +19 -0
  158. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/diagnostics.py +40 -0
  159. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/git_env.py +10 -15
  160. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/github_host.py +24 -19
  161. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/runner.py +1 -1
  162. {apm_cli-0.24.1 → apm_cli-0.26.0/src/apm_cli.egg-info}/PKG-INFO +4 -1
  163. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/SOURCES.txt +25 -0
  164. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/requires.txt +3 -0
  165. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_apm_package_models.py +18 -0
  166. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_github_downloader.py +122 -3
  167. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_gitlab_git_transport.py +121 -21
  168. apm_cli-0.24.1/src/apm_cli/commands/prune.py +0 -168
  169. apm_cli-0.24.1/src/apm_cli/compilation/output_writer.py +0 -49
  170. apm_cli-0.24.1/src/apm_cli/install/deployed_paths.py +0 -70
  171. apm_cli-0.24.1/src/apm_cli/install/helpers/ref_reuse.py +0 -96
  172. apm_cli-0.24.1/src/apm_cli/install/manifest_reconcile.py +0 -112
  173. apm_cli-0.24.1/src/apm_cli/runtime/base.py +0 -103
  174. {apm_cli-0.24.1 → apm_cli-0.26.0}/AUTHORS +0 -0
  175. {apm_cli-0.24.1 → apm_cli-0.26.0}/LICENSE +0 -0
  176. {apm_cli-0.24.1 → apm_cli-0.26.0}/README.md +0 -0
  177. {apm_cli-0.24.1 → apm_cli-0.26.0}/setup.cfg +0 -0
  178. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/__init__.py +0 -0
  179. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/__init__.py +0 -0
  180. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/__init__.py +0 -0
  181. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/_mcp_runtime_args.py +0 -0
  182. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/antigravity.py +0 -0
  183. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/claude.py +0 -0
  184. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/codex.py +0 -0
  185. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/copilot.py +0 -0
  186. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/cursor.py +0 -0
  187. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/gemini.py +0 -0
  188. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/hermes.py +0 -0
  189. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/intellij.py +0 -0
  190. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/kiro.py +0 -0
  191. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/opencode.py +0 -0
  192. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/vscode.py +0 -0
  193. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/client/windsurf.py +0 -0
  194. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/package_manager/__init__.py +0 -0
  195. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/package_manager/base.py +0 -0
  196. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/adapters/package_manager/default_manager.py +0 -0
  197. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bootstrap_mirror.py +0 -0
  198. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/__init__.py +0 -0
  199. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/attest.py +0 -0
  200. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/local_bundle.py +0 -0
  201. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/lockfile_enrichment.py +0 -0
  202. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/bundle/unpacker.py +0 -0
  203. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/__init__.py +0 -0
  204. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/git_cache.py +0 -0
  205. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/integrity.py +0 -0
  206. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/locking.py +0 -0
  207. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/cache/paths.py +0 -0
  208. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/__init__.py +0 -0
  209. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/_apm_yml_writer.py +0 -0
  210. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/cache.py +0 -0
  211. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/compile/__init__.py +0 -0
  212. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/compile/watcher.py +0 -0
  213. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/config.py +0 -0
  214. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/deps/__init__.py +0 -0
  215. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/experimental.py +0 -0
  216. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/find.py +0 -0
  217. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/lifecycle.py +0 -0
  218. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/list_cmd.py +0 -0
  219. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/__init__.py +0 -0
  220. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/audit.py +0 -0
  221. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/init.py +0 -0
  222. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/migrate.py +0 -0
  223. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/outdated.py +0 -0
  224. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/__init__.py +0 -0
  225. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/add.py +0 -0
  226. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/remove.py +0 -0
  227. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/plugin/set.py +0 -0
  228. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/marketplace/validate.py +0 -0
  229. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/outdated.py +0 -0
  230. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/plugin/__init__.py +0 -0
  231. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/plugin/init.py +0 -0
  232. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/publish.py +0 -0
  233. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/run.py +0 -0
  234. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/self_update.py +0 -0
  235. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/targets.py +0 -0
  236. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/uninstall/__init__.py +0 -0
  237. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/commands/view.py +0 -0
  238. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/__init__.py +0 -0
  239. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/build_id.py +0 -0
  240. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/claude_formatter.py +0 -0
  241. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/constants.py +0 -0
  242. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/constitution.py +0 -0
  243. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/constitution_block.py +0 -0
  244. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/context_optimizer.py +0 -0
  245. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/distributed_compiler.py +0 -0
  246. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/gemini_formatter.py +0 -0
  247. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/injector.py +0 -0
  248. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/managed_section.py +0 -0
  249. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/compilation/template_builder.py +0 -0
  250. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/config.py +0 -0
  251. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/constants.py +0 -0
  252. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/__init__.py +0 -0
  253. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/azure_cli.py +0 -0
  254. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/build_orchestrator.py +0 -0
  255. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/conflict_detector.py +0 -0
  256. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/docker_args.py +0 -0
  257. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/experimental.py +0 -0
  258. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/install_audit.py +0 -0
  259. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/lifecycle_scripts.py +0 -0
  260. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/null_logger.py +0 -0
  261. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/operations.py +0 -0
  262. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/plugin_manifest.py +0 -0
  263. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/safe_installer.py +0 -0
  264. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/scope.py +0 -0
  265. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/script_executors.py +0 -0
  266. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/script_trust.py +0 -0
  267. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/core/token_manager.py +0 -0
  268. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/__init__.py +0 -0
  269. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/_shared.py +0 -0
  270. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/aggregator.py +0 -0
  271. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/artifactory_entry.py +0 -0
  272. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/artifactory_orchestrator.py +0 -0
  273. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/git_remote_ops.py +0 -0
  274. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/installed_package.py +0 -0
  275. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/outdated_ref_cache.py +0 -0
  276. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/outdated_row.py +0 -0
  277. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/package_validator.py +0 -0
  278. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/path_anchoring.py +0 -0
  279. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/__init__.py +0 -0
  280. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/auth.py +0 -0
  281. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/client.py +0 -0
  282. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/config_loader.py +0 -0
  283. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/extractor.py +0 -0
  284. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/feature_gate.py +0 -0
  285. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/outdated.py +0 -0
  286. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/resolver.py +0 -0
  287. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry/semver.py +0 -0
  288. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/registry_proxy.py +0 -0
  289. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/revision_pins.py +0 -0
  290. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/transport_selection.py +0 -0
  291. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/verifier.py +0 -0
  292. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/deps/why_walker.py +0 -0
  293. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/__init__.py +0 -0
  294. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/authoring.py +0 -0
  295. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/declared_license.py +0 -0
  296. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/formats.py +0 -0
  297. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/purl.py +0 -0
  298. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/sbom.py +0 -0
  299. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/spdx.py +0 -0
  300. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/export/spdx_data.py +0 -0
  301. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/factory.py +0 -0
  302. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/__init__.py +0 -0
  303. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/artifactory_resolver.py +0 -0
  304. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/cache_pin.py +0 -0
  305. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/exec_gate.py +0 -0
  306. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/gitlab_resolver.py +0 -0
  307. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/__init__.py +0 -0
  308. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/heals/base.py +0 -0
  309. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/helpers/__init__.py +0 -0
  310. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/helpers/security_scan.py +0 -0
  311. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/insecure_policy.py +0 -0
  312. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/lsp/__init__.py +0 -0
  313. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/lsp/integration.py +0 -0
  314. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/__init__.py +0 -0
  315. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/args.py +0 -0
  316. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/conflicts.py +0 -0
  317. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/entry.py +0 -0
  318. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/registry.py +0 -0
  319. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/warnings.py +0 -0
  320. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/mcp/writer.py +0 -0
  321. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/package_resolution.py +0 -0
  322. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/package_selection.py +0 -0
  323. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/__init__.py +0 -0
  324. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/_redownload.py +0 -0
  325. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/_skip_logic.py +0 -0
  326. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/audit.py +0 -0
  327. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/download.py +0 -0
  328. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/heal.py +0 -0
  329. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/local_content.py +0 -0
  330. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/phases/policy_gate.py +0 -0
  331. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/presentation/__init__.py +0 -0
  332. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/presentation/dry_run.py +0 -0
  333. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/registry_wiring.py +0 -0
  334. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/root_redirect.py +0 -0
  335. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/install/target_filter.py +0 -0
  336. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/_shared.py +0 -0
  337. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/canvas_integrator.py +0 -0
  338. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/command_integrator.py +0 -0
  339. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_db.py +0 -0
  340. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_project.py +0 -0
  341. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_workflow_integrator.py +0 -0
  342. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_app_ws.py +0 -0
  343. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/copilot_cowork_paths.py +0 -0
  344. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/coverage.py +0 -0
  345. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/dispatch.py +0 -0
  346. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/hook_bundle.py +0 -0
  347. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/hook_file_routing.py +0 -0
  348. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/instruction_integrator.py +0 -0
  349. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/lsp_integrator.py +0 -0
  350. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/prompt_integrator.py +0 -0
  351. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/skill_transformer.py +0 -0
  352. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/integration/utils.py +0 -0
  353. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/__init__.py +0 -0
  354. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/_git_utils.py +0 -0
  355. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/_io.py +0 -0
  356. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/_shared.py +0 -0
  357. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/audit.py +0 -0
  358. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/client.py +0 -0
  359. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/diagnostics.py +0 -0
  360. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/drift_check.py +0 -0
  361. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/errors.py +0 -0
  362. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/git_stderr.py +0 -0
  363. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/init_template.py +0 -0
  364. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/migration.py +0 -0
  365. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/output_profiles.py +0 -0
  366. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/semver.py +0 -0
  367. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/shadow_detector.py +0 -0
  368. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/tag_pattern.py +0 -0
  369. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/validator.py +0 -0
  370. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/version_check.py +0 -0
  371. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/version_pins.py +0 -0
  372. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/marketplace/yml_editor.py +0 -0
  373. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/__init__.py +0 -0
  374. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/__init__.py +0 -0
  375. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/lsp.py +0 -0
  376. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/dependency/types.py +0 -0
  377. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/format_detection.py +0 -0
  378. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/models/plugin.py +0 -0
  379. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/__init__.py +0 -0
  380. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/formatters.py +0 -0
  381. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/models.py +0 -0
  382. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/output/script_formatters.py +0 -0
  383. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/__init__.py +0 -0
  384. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/_constraint_pinning.py +0 -0
  385. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/_help_text.py +0 -0
  386. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/_shared.py +0 -0
  387. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/matcher.py +0 -0
  388. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/project_config.py +0 -0
  389. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/policy/schema.py +0 -0
  390. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/__init__.py +0 -0
  391. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/discovery.py +0 -0
  392. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/models.py +0 -0
  393. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/primitives/parser.py +0 -0
  394. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/__init__.py +0 -0
  395. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/client.py +0 -0
  396. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/integration.py +0 -0
  397. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/registry/operations.py +0 -0
  398. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/__init__.py +0 -0
  399. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/copilot_runtime.py +0 -0
  400. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/runtime/utils.py +0 -0
  401. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/__init__.py +0 -0
  402. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/content_scanner.py +0 -0
  403. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/executables.py +0 -0
  404. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/__init__.py +0 -0
  405. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/base.py +0 -0
  406. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/gate.py +0 -0
  407. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/generic_sarif.py +0 -0
  408. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/options.py +0 -0
  409. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/registry.py +0 -0
  410. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/runner.py +0 -0
  411. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/sarif_ingest.py +0 -0
  412. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/security/external/skillspector.py +0 -0
  413. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/update_policy.py +0 -0
  414. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/__init__.py +0 -0
  415. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/archive.py +0 -0
  416. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/atomic_io.py +0 -0
  417. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/console.py +0 -0
  418. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/content_hash.py +0 -0
  419. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/exclude.py +0 -0
  420. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/file_ops.py +0 -0
  421. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/git_sparse.py +0 -0
  422. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/guards.py +0 -0
  423. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/helpers.py +0 -0
  424. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/install_tui.py +0 -0
  425. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/normalization.py +0 -0
  426. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/path_security.py +0 -0
  427. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/paths.py +0 -0
  428. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/patterns.py +0 -0
  429. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/perf_stats.py +0 -0
  430. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/reflink.py +0 -0
  431. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/short_sha.py +0 -0
  432. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/subprocess_env.py +0 -0
  433. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/version_checker.py +0 -0
  434. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/utils/yaml_io.py +0 -0
  435. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/version.py +0 -0
  436. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/__init__.py +0 -0
  437. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/discovery.py +0 -0
  438. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli/workflow/parser.py +0 -0
  439. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/dependency_links.txt +0 -0
  440. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/entry_points.txt +0 -0
  441. {apm_cli-0.24.1 → apm_cli-0.26.0}/src/apm_cli.egg-info/top_level.txt +0 -0
  442. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_apm_resolver.py +0 -0
  443. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_codex_docker_args_fix.py +0 -0
  444. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_codex_empty_string_and_defaults.py +0 -0
  445. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_collision_integration.py +0 -0
  446. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_console.py +0 -0
  447. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_distributed_compilation.py +0 -0
  448. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_empty_string_and_defaults.py +0 -0
  449. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_enhanced_discovery.py +0 -0
  450. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_github_downloader_token_precedence.py +0 -0
  451. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_lockfile.py +0 -0
  452. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_runnable_prompts.py +0 -0
  453. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_runtime_manager_token_precedence.py +0 -0
  454. {apm_cli-0.24.1 → apm_cli-0.26.0}/tests/test_token_manager.py +0 -0
  455. {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.24.1
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.24.1"
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
- config_target = package.target
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
- # List from apm.yml target: [claude, copilot]
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 ("agents", "skills", "commands", "instructions", "extensions"):
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 = set(dep.skill_subset) if dep.skill_subset else None
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 (.apm/ and root-level)
879
+ # 6. Collect own components according to the local source authority.
769
880
  own_apm_dir = project_root / ".apm"
770
- own_components = _collect_apm_components(own_apm_dir)
771
- own_components.extend(_collect_root_plugin_components(project_root))
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
- if not any(isinstance(f, SecretRedactionFilter) for f in apm_logger.filters):
106
- apm_logger.addFilter(SecretRedactionFilter())
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
- click.echo()
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: vscode, agents, copilot, claude, cursor, opencode, codex,\n"
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: