Skip to content

chore(dream-cli): cmd_list --json should emit via jq like cmd_status_json (stacked on PR-9) #449

@yasinBursali

Description

@yasinBursali

Context

Issue #398 (upstream: Light-Heart-Labs/DreamServer) was dropped from PR-1F (batch A)
because the target code does not exist on upstream/main @ d5154c3.

The `--json` branch in `cmd_list` is introduced by upstream PR Light-Heart-Labs#1000
(`feat/dream-cli-json-flag`, branch `feat/dream-cli-json-flag`). Until that PR
merges upstream, there is nothing to refactor on main.

What this follow-up tracks

Once upstream PR Light-Heart-Labs#1000 is merged:

  • Refactor `cmd_list`'s `--json` emission from `printf '{"id":"%s",...}'` to the
    same `jq -n --arg ... | jq -s .` pattern used by `cmd_status_json`.
  • This closes the user-installed-extension special-char escaping risk raised in
    the original issue body.

Scope

Mechanical: read manifest fields into `--arg` pairs, collect per-service jq objects,
`jq -s .` at end. No behavior change for built-in extensions.

Dependencies

Origin

Deferred from batch A PR-1F by verify-1f (dreamserver-verifier).
Original upstream issue: Light-Heart-Labs#398.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions