Skip to content

datapages fix autofix CLI command #24

Description

@romshark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions