Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The new request path treats HTTP 403 as a generic error instead of an authentication failure, omitting the login guidance required by the existing provider contract.
1 open issue
What changed in this PR
Adds mieweb containers list for inspecting running containers on the connected opensource-server Manager, addressing #26 and supporting use outside a project directory.
Changes:
- Adds table and JSON output, scoped to the selected site or all visible sites, including shared containers.
- Shares Manager URL and site resolution with the target banner while preserving Cloudflare forwarding to Wrangler.
- Adds integration coverage, usage documentation, and a minor-release changeset.
| File | Description |
|---|---|
README.md |
Adds inventory examples and target-banner documentation. |
packages/cli/test/command-output.test.mjs |
Shares the Manager fixture and tests inventory, failures, and Wrangler forwarding. |
packages/cli/src/provider.mjs |
Extracts shared Manager URL and site resolution. |
packages/cli/src/index.mjs |
Routes Manager container commands and updates help. |
packages/cli/src/containers.mjs |
Implements authenticated inventory requests and table/JSON output. |
packages/cli/README.md |
Documents inventory scope, credentials, and target behavior. |
.changeset/list-running-containers.md |
Records the CLI feature for a minor release. |
Review effort: Balanced
| redirect: 'manual', | ||
| signal: AbortSignal.timeout(30_000), | ||
| }); | ||
| if (response.status === 401) throw new Error(`Manager rejected the credentials. ${loginHint}`); |
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.

Closes #26.
mieweb containers listqueries the connected Manager for running containers and displays the site ID, container ID, hostname, node, and status.--jsonexposes the same fields for scripts. The command uses the configured site when one is selected and checks all visible sites otherwise.The listing and target banner share Manager URL and site resolution. Integration tests for
whoamiand inventory share one HTTP fixture, covering saved logins, shared containers, site selection, empty results, API failures, and Wrangler forwarding.pnpm typecheck,pnpm test, andpnpm check:packspassed locally. The inventory tests ran against a local Manager fixture. A live inventory check requires cluster credentials.