← Back to issue list

Rework PackageService API

View original Github issue

Metadata

Project
craft-application
Number
#420
Type
issue
State
open
Author
lengau
Labels
—
Created
Updated
Closed
—

Current evaluation

Maintainer-authored PackageService API rework remains open; current code still has pack(prime_dir, dest), abstract metadata, and write_metadata(path).

Suggested action: keep open

Reason: The issue is a clear, maintainer-authored API spec, and inspection confirms the requested changes are still not implemented: package.py still defines pack(prime_dir, dest), the abstract metadata property, and write_metadata(path).

Evaluated by: mr-cal-bot

Impact: 55 Quick Win: 20 Complexity: 55 Confidence: 75 Actionability: 80

Issue body

### What needs to get done - Remove `prime_dir` from `pack` - Remove `metadata` altogether - Make `write_metadata` abstract with no `path` parameter - Explain that `write_metadata` should write all metadata files into the prime directory. ### Why it needs to get done The current API no longer makes sense for all craft apps.

Evaluation history

Date Model Scores Action Summary
~deepseek/deepseek-pro-latest
Impact: 55
Quick Win: 20
Complexity: 55
Confidence: 75
Actionability: 80
keep open Maintainer-authored PackageService API rework remains open; current code still has pack(prime_dir, dest), abstract metadata, and write_metadata(path).
stealth/space-bunny-alpha
Impact: 52
Quick Win: 24
Complexity: 48
Confidence: 95
Actionability: 88
needs triage Maintainer-authored PackageService API rework remains open and untriaged; current code still has pack(prime_dir, dest), abstract metadata, and write_metadata(path).
qwen/qwen3.6-35b-a3b
Impact: 60
Quick Win: 21
Complexity: 50
Confidence: 70
Actionability: 70
keep open API rework for PackageService: remove prime_dir from pack, remove metadata, make write_metadata abstract with no path parameter
qwen/qwen3.8-27b
Impact: 45
Quick Win: 14
Staleness: 55
Complexity: 70
Confidence: 72
Support Request: 5
needs triage PackageService API rework: remove prime_dir from pack, remove metadata, make write_metadata abstract. prime_dir is now deprecated in pack but metadata and write_metadata(path) remain unchanged. No labels, comments, or assignee in ~2 years.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 75
Confidence: 85
Support Request: 5
needs triage Proposal to refactor PackageService API by removing prime_dir from pack, eliminating metadata handling, and making write_metadata abstract to better support craft apps. Currently untriaged with no maintainer comments after over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 60
Confidence: 75
Support Request: 5
close stale Internal API refactoring task for PackageService proposed nearly two years ago. No comments, labels, or assignee, indicating it has likely been superseded by newer architectural decisions or implementations.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.