|
| 1 | +{ |
| 2 | + "original_python_lines": 71696, |
| 3 | + "migrated_python_lines": 4245, |
| 4 | + "migrated_modules": [ |
| 5 | + { |
| 6 | + "module": "src/apm_cli/constants.py", |
| 7 | + "go_package": "internal/constants", |
| 8 | + "python_lines": 55, |
| 9 | + "status": "migrated", |
| 10 | + "notes": "Pure constants and enum - no external dependencies" |
| 11 | + }, |
| 12 | + { |
| 13 | + "module": "src/apm_cli/version.py", |
| 14 | + "go_package": "internal/version", |
| 15 | + "python_lines": 101, |
| 16 | + "status": "migrated", |
| 17 | + "notes": "Version resolution from build constants or pyproject.toml" |
| 18 | + }, |
| 19 | + { |
| 20 | + "module": "src/apm_cli/utils/short_sha.py", |
| 21 | + "go_package": "internal/utils/sha", |
| 22 | + "python_lines": 45, |
| 23 | + "status": "migrated", |
| 24 | + "notes": "Short SHA formatter with sentinel and hex validation" |
| 25 | + }, |
| 26 | + { |
| 27 | + "module": "src/apm_cli/utils/paths.py", |
| 28 | + "go_package": "internal/utils/paths", |
| 29 | + "python_lines": 27, |
| 30 | + "status": "migrated", |
| 31 | + "notes": "Cross-platform relative path utility" |
| 32 | + }, |
| 33 | + { |
| 34 | + "module": "src/apm_cli/utils/normalization.py", |
| 35 | + "go_package": "internal/utils/normalization", |
| 36 | + "python_lines": 57, |
| 37 | + "status": "migrated", |
| 38 | + "notes": "Content normalization: BOM, CRLF, build-ID header stripping" |
| 39 | + }, |
| 40 | + { |
| 41 | + "module": "src/apm_cli/utils/yaml_io.py", |
| 42 | + "go_package": "internal/utils/yamlio", |
| 43 | + "python_lines": 55, |
| 44 | + "status": "migrated", |
| 45 | + "notes": "YAML I/O with UTF-8; stdlib-only implementation" |
| 46 | + }, |
| 47 | + { |
| 48 | + "module": "src/apm_cli/utils/atomic_io.py", |
| 49 | + "go_package": "internal/utils/atomicio", |
| 50 | + "python_lines": 52, |
| 51 | + "status": "migrated", |
| 52 | + "notes": "Atomic file write via temp+rename, same-filesystem rename" |
| 53 | + }, |
| 54 | + { |
| 55 | + "module": "src/apm_cli/utils/git_env.py", |
| 56 | + "go_package": "internal/utils/gitenv", |
| 57 | + "python_lines": 97, |
| 58 | + "status": "migrated", |
| 59 | + "notes": "Cached git lookup and subprocess env sanitization" |
| 60 | + }, |
| 61 | + { |
| 62 | + "module": "src/apm_cli/utils/guards.py", |
| 63 | + "go_package": "internal/utils/guards", |
| 64 | + "python_lines": 123, |
| 65 | + "status": "migrated", |
| 66 | + "notes": "ReadOnlyProjectGuard with snapshot-based mutation detection" |
| 67 | + }, |
| 68 | + { |
| 69 | + "module": "src/apm_cli/utils/subprocess_env.py", |
| 70 | + "go_package": "internal/utils/subprocenv", |
| 71 | + "python_lines": 84, |
| 72 | + "status": "migrated", |
| 73 | + "notes": "PyInstaller env restoration; stdlib-only; MapToSlice helper" |
| 74 | + }, |
| 75 | + { |
| 76 | + "module": "src/apm_cli/utils/helpers.py", |
| 77 | + "go_package": "internal/utils/helpers", |
| 78 | + "python_lines": 131, |
| 79 | + "status": "migrated", |
| 80 | + "notes": "IsToolAvailable, GetAvailablePackageManagers, DetectPlatform, FindPluginJSON" |
| 81 | + }, |
| 82 | + { |
| 83 | + "module": "src/apm_cli/utils/content_hash.py", |
| 84 | + "go_package": "internal/utils/contenthash", |
| 85 | + "python_lines": 108, |
| 86 | + "status": "migrated", |
| 87 | + "notes": "Deterministic SHA-256 tree hashing; excludes .apm-pin marker and .git/__pycache__" |
| 88 | + }, |
| 89 | + { |
| 90 | + "module": "src/apm_cli/utils/exclude.py", |
| 91 | + "go_package": "internal/utils/exclude", |
| 92 | + "python_lines": 169, |
| 93 | + "status": "migrated", |
| 94 | + "notes": "Glob pattern matching with ** support; bounded recursion; safety limit on ** count" |
| 95 | + }, |
| 96 | + { |
| 97 | + "module": "src/apm_cli/utils/path_security.py", |
| 98 | + "go_package": "internal/utils/pathsecurity", |
| 99 | + "python_lines": 130, |
| 100 | + "status": "migrated", |
| 101 | + "notes": "Path traversal guards; iterative percent-decode; EnsurePathWithin; SafeRmtree" |
| 102 | + }, |
| 103 | + { |
| 104 | + "module": "src/apm_cli/utils/version_checker.py", |
| 105 | + "go_package": "internal/utils/versionchecker", |
| 106 | + "python_lines": 193, |
| 107 | + "status": "migrated", |
| 108 | + "notes": "GitHub API version check; parse_version; is_newer_version; once-per-day cache" |
| 109 | + }, |
| 110 | + { |
| 111 | + "module": "src/apm_cli/utils/file_ops.py", |
| 112 | + "go_package": "internal/utils/fileops", |
| 113 | + "python_lines": 326, |
| 114 | + "status": "migrated", |
| 115 | + "notes": "Retry-aware rmtree/copytree/copy2; exponential backoff; Windows AV-lock detection" |
| 116 | + }, |
| 117 | + { |
| 118 | + "module": "src/apm_cli/utils/console.py", |
| 119 | + "go_package": "internal/utils/console", |
| 120 | + "python_lines": 224, |
| 121 | + "status": "migrated", |
| 122 | + "notes": "STATUS_SYMBOLS; RichEcho/Success/Error/Warning/Info; ANSI colour with NO_COLOR guard" |
| 123 | + }, |
| 124 | + { |
| 125 | + "module": "src/apm_cli/utils/diagnostics.py", |
| 126 | + "go_package": "internal/utils/diagnostics", |
| 127 | + "python_lines": 486, |
| 128 | + "status": "migrated", |
| 129 | + "notes": "DiagnosticCollector; thread-safe; grouped RenderSummary; all category constants" |
| 130 | + }, |
| 131 | + { |
| 132 | + "module": "src/apm_cli/utils/install_tui.py", |
| 133 | + "go_package": "internal/utils/installtui", |
| 134 | + "python_lines": 365, |
| 135 | + "status": "migrated", |
| 136 | + "notes": "InstallTui; deferred spinner (250ms); ShouldAnimate TTY check; phase/task tracking" |
| 137 | + }, |
| 138 | + { |
| 139 | + "module": "src/apm_cli/utils/github_host.py", |
| 140 | + "go_package": "internal/utils/githubhost", |
| 141 | + "python_lines": 624, |
| 142 | + "status": "migrated", |
| 143 | + "notes": "Host classification (github/ghes/ghe_com/gitlab/ado/artifactory); GHES precedence; FQDN validation" |
| 144 | + }, |
| 145 | + { |
| 146 | + "module": "src/apm_cli/utils/reflink.py", |
| 147 | + "go_package": "internal/utils/reflink", |
| 148 | + "python_lines": 281, |
| 149 | + "status": "migrated", |
| 150 | + "notes": "CoW reflink via FICLONE ioctl (Linux); device capability cache; regularCopy fallback" |
| 151 | + }, |
| 152 | + { |
| 153 | + "module": "src/apm_cli/install/errors.py", |
| 154 | + "go_package": "internal/install/errors", |
| 155 | + "python_lines": 113, |
| 156 | + "status": "migrated", |
| 157 | + "notes": "DirectDependencyError, AuthenticationError, FrozenInstallError, PolicyViolationError" |
| 158 | + }, |
| 159 | + { |
| 160 | + "module": "src/apm_cli/install/cache_pin.py", |
| 161 | + "go_package": "internal/install/cachepin", |
| 162 | + "python_lines": 233, |
| 163 | + "status": "migrated", |
| 164 | + "notes": "WriteMarker (silent on failures); VerifyMarker (typed CachePinError); schema v1" |
| 165 | + }, |
| 166 | + { |
| 167 | + "module": "src/apm_cli/install/context.py", |
| 168 | + "go_package": "internal/install/installctx", |
| 169 | + "python_lines": 166, |
| 170 | + "status": "migrated", |
| 171 | + "notes": "InstallContext dataclass -> Go struct; all maps/slices initialised in New()" |
| 172 | + } |
| 173 | + ], |
| 174 | + "last_updated": "2026-05-13T00:52:00Z", |
| 175 | + "iteration": 13 |
| 176 | +} |
0 commit comments