Skip to content

CLI agent platform: content API alignment, theme assets, draft resume, diff#6

Draft
mikel wants to merge 1 commit into
developfrom
feature/cli-agent-platform
Draft

CLI agent platform: content API alignment, theme assets, draft resume, diff#6
mikel wants to merge 1 commit into
developfrom
feature/cli-agent-platform

Conversation

@mikel

@mikel mikel commented Jun 22, 2026

Copy link
Copy Markdown

Summary

The StoreConnect CLI's side of the agent platform, collapsed into one PR (previously #3#4#5), off develop.

Contents

  • Content API alignment: articles/pages/content-blocks/categories use the /content endpoints and {data: […]} envelopes; serializer field names (Path, Template, …); sc theme submit (push a draft for Salesforce review).
  • Theme asset binaries: sc theme pull downloads assets into assets/; sc theme push SHA-256 hash-diffs local assets against the server and uploads only changed binaries via the media upload flow, registering them on the draft.
  • Draft resume: sc change list [--status] lists the store's content changes so drafts can be resumed from any machine.
  • sc theme diff: shows local-vs-server template/asset changes; --exit-code exits 9 on drift (CI gate).

Verification

make fmt && make test && make build green (including go test -race). Tested against the live full-stack Heroku environment during E2E.

Dependencies

Consumes the core-gem Store Management REST API — see the collapsed agent-platform PR core-gem #8160 (on [WEB-8858] #8159). No in-repo dependency.

Collapses the CLI stack (previously #3 content-api-alignment -> #4
theme-assets-and-changes -> #5 theme-diff) into one change off develop.

- Aligns the CLI with the gem Content API (/content endpoints, data envelopes)
  and adds 'sc theme submit'.
- 'sc theme pull' downloads asset binaries; 'sc theme push' hash-diffs and
  uploads changed binaries via the media flow; 'sc change list' lists/resumes
  content changes from any machine.
- 'sc theme diff' shows local-vs-server changes with --exit-code for CI.

make fmt && make test && make build all green.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant