Skip to content

feat(app-client): major app-client add/remove - #169

Open
josegironn wants to merge 4 commits into
mainfrom
app-client
Open

josegironn wants to merge 4 commits into
mainfrom
app-client

Conversation

@josegironn

@josegironn josegironn commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds major app-client add|remove, so an app can call another app in its org. Server side: https://github.com/major-technology/mono-builder/pull/2389

  • major app-client add --id <appId> [--name] [--json]:
    • It reads the current app from the workspace.
    • It looks up the target with the view-level GET /cli/applications/:id/info, so the lookup works with a sandbox token and for apps you can only view.
    • It rejects a target in another org, and it rejects the app itself.
    • It installs @major-tech/app-client if the package is missing.
    • It runs pnpm exec major-app-client add <id> <name> --framework <fw>.
    • There is no server write. The query-extractor picks up the id on commit, and the deploy grants access.
  • major app-client remove --id <appId> [--json] removes the client entry from apps.json.
  • One line in the app-builder skill names the command.

Release order

Release after the mono-builder PR is deployed and @major-tech/app-client is published.

Test plan

  • go build ./... && go test ./cmd/.... New tests: success in the same org, a target in another org, a target lookup that returns 403.
  • Local end to end in an app sandbox with this CLI build

🤖 Generated with Claude Code

https://claude.ai/code/session_01EGETL8EkHy8uWDx9ezWrgd

Made with Orca 🐋

josegironn and others added 4 commits September 23, 2026 17:47
Generates fetch clients (via pnpm exec major-app-client) that let a
deployed app call other applications in its organization.

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

Co-authored-by: Orca <help@stably.ai>
Round-1 fix for the app-client task: add the missing skill-doc line
next to the agent-client bullet.

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

Co-authored-by: Orca <help@stably.ai>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Co-authored-by: Orca <help@stably.ai>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Co-authored-by: Orca <help@stably.ai>
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