Skip to content

[Autoloop: python-to-go-migration]#43

Draft
github-actions[bot] wants to merge 12 commits into
mainfrom
autoloop/python-to-go-migration
Draft

[Autoloop: python-to-go-migration]#43
github-actions[bot] wants to merge 12 commits into
mainfrom
autoloop/python-to-go-migration

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Python-to-Go Migration Progress

This PR accumulates all accepted iterations of the incremental Python-to-Go migration of the APM CLI.

Program goal: Rewrite the APM CLI from Python to Go, one module at a time, tracking migration progress as a percentage of original Python source lines replaced by working Go code.

Current best metric: 25.62% of original Python lines migrated

Program issue: #3


Latest iteration (38)

Migrated 4 modules (+893 Python lines):

  • src/apm_cli/update_policy.py (50 lines) -> internal/updatepolicy/
  • src/apm_cli/output/models.py (136 lines) -> internal/output/models/
  • src/apm_cli/integration/prompt_integrator.py (228 lines) -> internal/integration/promptintegrator/
  • src/apm_cli/integration/instruction_integrator.py (479 lines) -> internal/integration/instructionintegrator/

All packages use stdlib-only Go. The instruction integrator includes a test suite covering cursor/claude/windsurf format transforms.


[!] This PR is maintained by Autoloop. Each accepted iteration adds a commit to this branch.

Generated by Autoloop · ● 66.5M ·

github-actions Bot and others added 4 commits May 14, 2026 06:17
…targets, deps/lockfile, install/local_bundle_handler

Run: https://github.com/githubnext/apm/actions/runs/25844894761

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…late, runtime/factory, marketplace/registry, marketplace/git_stderr (+588 lines, 24.38%)

Run: https://github.com/githubnext/apm/actions/runs/25847876982

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…pdate_policy, output/models, prompt_integrator, instruction_integrator) +893 lines

Run: https://github.com/githubnext/apm/actions/runs/25851449671

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tor, agent_integrator, utils

Migrated 3 modules:
- integration/base_integrator.py (562 lines) -> internal/integration/baseintegrator/
- integration/agent_integrator.py (606 lines) -> internal/integration/agentintegrator/
- integration/utils.py (46 lines) -> already in intutils (counted)

Total: +1214 Python lines migrated. Metric: 27.32 (was 25.62, delta: +1.70)

Run: https://github.com/githubnext/apm/actions/runs/25854672963

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: 05d41e2

Generated by Autoloop

@github-actions github-actions Bot mentioned this pull request May 14, 2026
… command integrators (+3359 Python lines)

Run: https://github.com/githubnext/apm/actions/runs/25857101991

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: 2e52f0d

Generated by Autoloop

github-actions Bot and others added 2 commits May 14, 2026 11:30
…er and models/validation

Migrate 2 Python modules to Go:
- src/apm_cli/core/command_logger.py (751 lines) -> internal/core/commandlogger
- src/apm_cli/models/validation.py (800 lines) -> internal/models/validation

Total new lines: +1551 Python lines migrated.
Metric: 34.17% (previous: 32.00%, delta: +2.17%)

commandlogger: CommandLogger and InstallLogger with full lifecycle
  methods (start, progress, success, error, warning, verbose, policy
  violation logging, install summary). Delegates to console package.

validation: PackageType/PackageContentType enums, ValidationResult,
  DetectionEvidence, GatherDetectionEvidence, DetectPackageType,
  and ValidateAPMPackage with all 7 detection-cascade cases.
  Includes test suite (6 tests pass).

Run: https://github.com/githubnext/apm/actions/runs/25859136824

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: f6c870d

Generated by Autoloop

github-actions Bot and others added 2 commits May 14, 2026 12:24
…tion, apm_package, marketplace/ymlschema (+1953 lines)

Run: https://github.com/githubnext/apm/actions/runs/25861743202

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: 6b3adfc

Generated by Autoloop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants