feat(apps): opper apps — deploy and manage agents as managed apps#18
Open
mattias-lundell wants to merge 2 commits into
Open
feat(apps): opper apps — deploy and manage agents as managed apps#18mattias-lundell wants to merge 2 commits into
mattias-lundell wants to merge 2 commits into
Conversation
New `opper apps` command group against the /v3/apps surface (Opper
Apps — agent source in, running app out; the platform UI is a viewer,
the CLI is the creation path):
opper apps list | get <name> | delete <name>
opper apps create [--name n] [--dir .|--repo <git-url> [--ref r]]
[--config json]
opper apps redeploy <name> --dir .
opper apps logs <name> # SSE tail
opper apps run <name> --input "…"
opper apps secrets list|set|delete <app> [KEY] [VALUE]
- create accepts a local directory (tarred with the system tar,
excluding .git/node_modules/__pycache__/.venv) or a git URL that is
shallow-cloned and deployed; --name is optional when the source's
opper.yaml manifest declares one.
- OpperApi gains postMultipart (FormData upload) and streamGet
(SSE-over-GET for logs), sharing the existing SSE parser.
- New INVALID_ARGUMENT error code (exit 8) for bad local input.
Verified live against the evroc deployment: list/get/run/secrets all
round-trip; `apps run hermes` answered through the new command.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
`opper apps shell <name>` opens a real PTY in the app's container over the app's /run/shell WebSocket (the in-pod ttyd, proxied by the wrapper), through the normal API-key-authed chain — no SSH, no cluster access. It puts stdin in raw mode so Ctrl-C/Ctrl-D/arrows reach the remote shell, forwards SIGWINCH as ttyd resize frames, and restores the terminal on exit. Uses the `ws` client (Node 20 floor has no global WebSocket). Verified against a ttyd-enabled image: connects, runs a command, streams output back. Needs the deploy-side terminal (opper#2954) and the task-api websocket proxy (opper#2955) deployed to work end to end. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
opper appscommand group for Opper Apps (the deploy/Knative backend): agent source in, running app out, via task-api's/v3/appssurface.Highlights:
--reposhallow-clones and deploys, no local checkout needed —opper apps create --repo https://github.com/org/agentjust works when the repo carries anopper.yaml.--nameis optional when the source'sopper.yamldeclaresname:(fly.io-style config-as-code).postMultipart(FormData upload) +streamGet(SSE-over-GET) sharing the existing SSE parser; newINVALID_ARGUMENTerror code (exit 8).tar, excluding.git/node_modules/__pycache__/.venv— mirrors the Go deploy CLI.Tested: 8 new vitest cases (full suite 382 green,
tscclean), plus live verification against the evroc deployment —apps list/get/secretsround-trip andapps run hermesanswered through the new command.🤖 Generated with Claude Code