Skip to content

publish: CLI app support in the submission wizard#44

Merged
TeoSlayer merged 1 commit into
mainfrom
cli-publish-form
Jun 22, 2026
Merged

publish: CLI app support in the submission wizard#44
TeoSlayer merged 1 commit into
mainfrom
cli-publish-form

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

Wires the Backend-type selector on /publish (the CLI option was an inert, disabled placeholder) so the wizard can build CLI submissions end-to-end. Pairs with the publish-api CLI support in pilot-protocol/app-template#31.

What changes (all in src/pages/publish.astro)

  • Backend step branches by app type: HTTP (base URL + headers) or CLI (command + env_passthrough).
  • Methods get a CLI route per method: enumerated args (comma-separated, with ${param} substitution) + optional params-as-flags, or a passthrough toggle that fronts the whole CLI (call as {"args":[...]}).
  • Validation, the live help/pilotctl preview (debounced /api/preview), and the review table are all backend-aware.
  • The submission JSON now carries backend.type=cli / command / env_passthrough and per-method cli routes — matching the publish-api Submission model.

Verification

  • Wizard JS parses clean (node --check).
  • The exact JSON the form emits was driven through a locally-run publish-server: /api/preview returns the correct passthrough command (gh.exec '{"args":[...]}'), and /api/submit + build reached pending (scaffold → cross-compile → sign → catalogue self-verify with the proc.exec manifest all succeeded).
  • A manual browser dogfood is still recommended before deploy (Astro node_modules weren't installed in this environment).

🤖 Generated with Claude Code

Wire the Backend-type selector (the cli option was an inert placeholder): the
form now builds CLI submissions end-to-end. Backend step branches to a command
+ env_passthrough body; each method gets a CLI route — enumerated args (with
${param} substitution) + optional params-as-flags, or a passthrough toggle that
fronts the whole CLI (call as {"args":[...]}). Validation, the live
help/pilotctl preview, and the review table are all backend-aware. Submission
JSON carries backend.type=cli/command/env_passthrough and per-method cli routes,
matching the publish-api.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed to Cloudflare Pages

  • Commit deploy URL: https://30278067.pilotprotocol.pages.dev
  • Branch alias: https://cli-publish-form.pilotprotocol.pages.dev (may take ~30s to propagate)
  • Commit: c4b6e71d4fbecca4fbb55b1b91d1e4d9dbf10f05

@TeoSlayer TeoSlayer merged commit 9a795bc into main Jun 22, 2026
2 checks passed
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.

2 participants