Problem
Some errors can automatically be fixed by Datapages:
ErrAppMissingTypeApp -> just add type App struct{} to the source package.
ErrSessionMissingUserID -> just add field UserID string to the Session type.
- etc.
Right now, these have to be fixed manually.
A datapages fix command would save time for both humans and LLM agents (if there's at least one fix: suggestion in the error report - simply run datapages fix).
Proposed Solution
Errors should be categorized into either a suggestion or a fix where the former can't be auto-fixed and has to be fixed manually, while the later is automatically fixable through running datapages fix.
Command fix would potentially also automatically upgrade the code to newer backward incompatible APIs of Datapages (addresses #21) with the opt-in flag --upgrade.
It's questionable whether datapages watch should run fix manually but I'd say it probably shouldn't.
Alternatives Considered
No response
Problem
Some errors can automatically be fixed by Datapages:
ErrAppMissingTypeApp-> just addtype App struct{}to the source package.ErrSessionMissingUserID-> just add fieldUserID stringto theSessiontype.Right now, these have to be fixed manually.
A
datapages fixcommand would save time for both humans and LLM agents (if there's at least onefix:suggestion in the error report - simply rundatapages fix).Proposed Solution
Errors should be categorized into either a suggestion or a fix where the former can't be auto-fixed and has to be fixed manually, while the later is automatically fixable through running
datapages fix.Command
fixwould potentially also automatically upgrade the code to newer backward incompatible APIs of Datapages (addresses #21) with the opt-in flag--upgrade.It's questionable whether
datapages watchshould runfixmanually but I'd say it probably shouldn't.Alternatives Considered
No response