Conversation
🦋 Changeset detectedLatest commit: 9606832 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This branch has not been deployed
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.
Browse list commands currently disagree about JSON envelopes, whether
--limitapplies to JSON, pagination, and available formatting flags. For example,cloud sessions list --limit 1 --jsonreturns the whole API response, while secrets lists use--limitas a single-page request size.This draft introduces a shared collection adapter behind
--list-version 2.cloud sessions list --list-version 2 --limit 1 --jsonreturns one record in{ data, hasMore, nextCursor }. Existing invocations keep their behavior; version 1 remains the default.Contract and scope
--limitdefaults to 20 in both table and JSON output.--allremoves that limit and follows API cursors; combining it with an explicit limit is an error.--format table|json,--json,--wide, TTY defaults, empty output, and continuation messages. Resource columns remain specific to the resource.hasMoreistrue,false, ornullfor unknown completeness. AnextCursoris returned only when the backend can resume after the last emitted record. Sessions cannot claim a complete history from their unpaginated response.listandfind(nine commands).The README documents the contract and migration. A
browseminor changeset makes this suitable for the next minor release once the spike is accepted; it does not flip the default. Rankedcloud search, browser-drivertab list, logs, and artifact downloads are outside this initial adapter.Validation
CLI build passed. Full CLI suite: 38 files / 494 tests passed, including the existing compatibility tests and 17 new pagination/collection tests. After the final cursor validation and help-text cleanup, the focused collection tests and build passed again. ESLint and changed-file formatting passed.
E2E Test Matrix
Built CLI against live APIs on 2026-09-24; existing environment credentials, synthetic secret values only.
--limit 1 --json--limit 1, resume with--cursor ... --all--all --format table --wide{ data, limit, nextCursor }single-page shapeRelated independent PRs: dotenv default transition #3038; bundled secrets skill #3037. The list contract does not depend on the Functions shared-core PR.
Summary by cubic
Adds an opt-in shared list contract behind
--list-version 2so project, session, context, secrets, skills, and templates list commands agree on JSON envelopes, total--limit, and formatting. Existing invocations keep their current behavior; version 1 remains the default.Contract
--limitis a total record limit (default 20) in every output format;--allremoves it and cannot be combined with an explicit limit.{ data, hasMore, nextCursor };hasMoreisfalsewhen the source is exhausted andnullwhen completeness is unknown (sessions).Scope
browseminor changeset keeps it suitable for the next minor release without changing the default.Written for commit 9606832. Summary will update on new commits.