Repository navigation
Conversation
There was a problem hiding this comment.
1 issue found across 14 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/command-surface/src/schema/command-overrides.ts">
<violation number="1" location="packages/command-surface/src/schema/command-overrides.ts:143">
P1: `--form` is advertised but is not accepted by the `connect` CLI because it was added only to `supportedFlags`, not `CONNECT_ALLOWED_FLAGS`. Add `form` to `CONNECT_ALLOWED_FLAGS` so `connect cloud list --form <form>` reaches the request parser.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| positionalArgs: ['provider?|list'], | ||
| allowedFlags: CONNECT_ALLOWED_FLAGS, | ||
| supportedFlags: [...CONNECT_SUPPORTED_FLAGS, 'live'], | ||
| supportedFlags: [...CONNECT_SUPPORTED_FLAGS, 'live', 'form'], |
There was a problem hiding this comment.
P1: --form is advertised but is not accepted by the connect CLI because it was added only to supportedFlags, not CONNECT_ALLOWED_FLAGS. Add form to CONNECT_ALLOWED_FLAGS so connect cloud list --form <form> reaches the request parser.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At packages/command-surface/src/schema/command-overrides.ts, line 143:
<comment>`--form` is advertised but is not accepted by the `connect` CLI because it was added only to `supportedFlags`, not `CONNECT_ALLOWED_FLAGS`. Add `form` to `CONNECT_ALLOWED_FLAGS` so `connect cloud list --form <form>` reaches the request parser.</comment>
<file context>
@@ -135,12 +135,12 @@ const SCHEMA_ONLY_CLI_COMMAND_SCHEMAS = {
positionalArgs: ['provider?|list'],
allowedFlags: CONNECT_ALLOWED_FLAGS,
- supportedFlags: [...CONNECT_SUPPORTED_FLAGS, 'live'],
+ supportedFlags: [...CONNECT_SUPPORTED_FLAGS, 'live', 'form'],
explicitOnlyFlags: ['target'],
},
</file context>
There was a problem hiding this comment.
Catalog listing preflight consumes --form before the normal connect allowed-flag check. The production CLI route test at 62f43d403b verifies that it reaches the query string and that booking refuses it. No flag allowance change was needed.
There was a problem hiding this comment.
The CLI test passed at ae45a2b007: catalog preflight sends form=phone on a listing and refuses --form on a booking. Catalog preflight handles the flag before the shared connect allowed-flag check.
Size Report
Startup median (7 runs, lower is better):
Affected plugins
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 5261814. The verdict and the full list are in the summary comment.
- 🟡 Minor · An empty catalog view now prints nothing at all; the old empty-listing message is gone ·
src/cli/connection/cloud-catalog.ts:48 - 🟡 Minor · View
versionis validated then ignored, so a v2 view renders as an empty v1 view ·src/cli/connection/cloud-catalog.ts:76
| if ( | ||
| !Array.isArray(rows) || | ||
| !rows.every(isCloudVendorRow) || | ||
| containsCloudCredential(rows, [accessToken, ...(options.catalogCredentials ?? [])]) | ||
| !view || | ||
| typeof view.version !== 'number' || | ||
| !Array.isArray(view.nodes) || | ||
| !Array.isArray(view.data) || | ||
| containsCloudCredential(body, [accessToken, ...(options.catalogCredentials ?? [])]) | ||
| ) { | ||
| throw new AppError('COMMAND_FAILED', 'Cloud session API returned an invalid vendor list.'); | ||
| throw new AppError('COMMAND_FAILED', 'Cloud session API returned an invalid catalog view.'); | ||
| } | ||
| if (!options.live) return rows; | ||
| const checkedAt = new Date().toISOString(); | ||
| return rows.map((row) => | ||
| row.availability ? row : { ...row, availability: unsupportedAvailability(checkedAt) }, | ||
| ); | ||
| return { version: view.version, nodes: view.nodes, data: view.data }; |
There was a problem hiding this comment.
No longer raised on 0001878: the code it pointed at changed.
🆕 🟡 Minor · View version is validated as a number but never compared, so a v2 view renders empty
A cloud service that answers /v1/catalog/view with {version: 2, nodes: [...]} in a v2 node vocabulary renders as "No cloud catalog offers to display." with no hint the CLI is too old. fetchCloudCatalogView checks typeof view.version !== 'number' and returns the version without branching on it; renderCloudCatalogView never receives it.
Suggested change
Compare view.version against the highest version this CLI renders and fail (or warn) with a message naming the supported version, instead of accepting any number.
Details
persona: maintainability, senior-developer, javascript
Useful? Reply @apex-sentinel-staging like, or @apex-sentinel-staging dislike <why> if it is not.
Reply @apex-sentinel-staging note ... to add context, or @apex-sentinel-staging pivot ... if it is wrong — I will re-check the cited code.
There was a problem hiding this comment.
The finding was withdrawn. 62f43d403b keeps the existing behavior for numeric versions and unknown node kinds. A version compatibility policy awaits a service contract.
There was a problem hiding this comment.
This finding was withdrawn. The CLI renders known node kinds and skips unknown kinds in numeric-version views. Rejecting a version requires a compatibility contract with the cloud service so that compatible views keep working.
This comment has been minimized.
This comment has been minimized.
|
The review of c0a1d5a found two defects in catalog processing. A sufficiently large array of valid rows can exceed JavaScript's argument limit at cloud-catalog.ts:123, causing an authenticated catalog listing to fail. Append table lines iteratively, and bound or safely reject excessive nesting and size across validation and rendering. A deeply nested tree can overflow the stack during credential checking or recursive rendering at cloud-catalog.ts:166, causing a malformed service response to fail the listing. Enforce a safe depth across the whole response, or traverse iteratively with bounded output and credential checking. The open threads on filter defaults and booking flags still apply; one lower-priority thread still applies. The form preflight thread does not apply because catalog preflight returns before finalization and the production-route test covers the flag. The skill wording thread does not apply because both steps are already present. The version thread does not apply because future-version behavior is unspecified and the concern was withdrawn. The review packet reports 19 passing checks at c0a1d5a, with no failing route to attribute. No conflicts are known. Not verified here: service filtering, booking hints, live availability semantics, and empty-match notes could not be independently established because the companion service source and contract were not supplied. Before merge, make catalog processing safe for oversized and deeply nested service trees, resolve the open empty-catalog regression, and verify the booking and filter contracts. |
|
This branch now conflicts with |
c0a1d5a to
62f43d4
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 62f43d4. The verdict and the full list are in the summary comment.
- 🟡 Minor · Cloud list filters inherit the stored device pin, silently emptying the catalog ·
src/cli/connect-preflight.ts:60
|
At 62f43d4, the previous conflict is cleared and the earlier configured defaults, platform guidance, and text fallback issues are fixed. The table formatting and device-pin regression still need fixes. Table rendering pads and joins cells before trimming trailing whitespace, so wide columns and empty trailing cells can repeat large amounts of work without charging it to the output budget. An authenticated text listing can stall even when the response passes both size limits; JSON bypasses the table. Find the last visible cell and omit its trailing padding, then account for the line before materializing padding, or charge the full untrimmed cost to the shared budget. The high-priority device-pin thread still stands. No lower-priority threads still apply. The flag validation thread does not apply because listing preflight returns before ordinary connect validation and the fixture checks the flag on the wire. The configured defaults thread is fixed; the separate pin interaction remains open. The platform guidance thread is fixed in the help, docs, and skill. The sentence splitting thread does not apply because both actions are already given in order. The text fallback thread is fixed and covered by a stdout assertion. The version compatibility thread does not apply because the assumed compatibility rule was not supplied. Smoke Tests appear unrelated: the supplied excerpt ends with an adb connection failure before the emulator CLI calls, and this change does not touch that path. Coverage remains unexplained because the supplied excerpt has no failure line, assertion, threshold, or termination reason. There are no conflicts. Not verified here: the companion endpoint was not exercised. Please verify that combined filters constrain offers, a live listing carries the intended availability, JSON returns its data array, a no-match text listing explains the result, and representative book hints pass existing booking validation. The local build, test count, example output, and timings are author-reported. No device run is needed for this CLI-to-service read before daemon dispatch. Before merge, bound table work, resolve the device-pin regression, and provide the Coverage failure tail and companion endpoint integration receipt. |
|
This branch now conflicts with |
connect cloud list fetches /v1/catalog/view and renders its node tree with one generic renderer: heading, group, row, text and note. Unknown node kinds are skipped. The cloud service decides groups, labels and order. --platform, --form, --device and --os pass through as query parameters, --live asks for live availability, and --json prints the view's data rows. --form is new and only valid on a catalog listing.
62f43d4 to
0001878
Compare
Group cloud catalog and Limrun guidance in one paragraph so the compact skill fits the read budget enforced by the help conformance test.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 2146d66. The verdict and the full list are in the summary comment.
- 🟠 Major · Credential split by a control character bypasses the leak check and is rejoined by the renderer ·
src/cli/connection/cloud-catalog.ts:88
Apex Sentinel · ✅ Approve · review of
|
| Finding | Fixed by | Where |
|---|---|---|
| Ambient AGENT_DEVICE_PLATFORM or a stored devicePin silently filters connect cloud list | thymikee | ae45a2b · reply |
| Credential split by a control character bypasses the leak check and is rejoined by the renderer | thymikee | ae45a2b · reply |
Reviewed with this repository's own Sentinel configuration (64dd30eae755).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Summary
connect cloud listnow renders a display tree that the cloud service sends from<cloud endpoint>. The service decides groups, labels, order and notes. The CLI has one generic renderer forheading,group,row,textandnote, and skips unknown kinds.--platform,--form(new, listing only),--deviceand--ospass through as query parameters.--livestill works.--jsonprints the view'sdatarows. The old catalog formatter is removed. Help, docs and the skill card gain a pick-a-device flow, and the book example names--session <name>. Needs the companion cloud-service PR.Before / after
Local cloud API with seeded data. Offer names, isolation labels and prerequisite text are redacted; the companion PR shows them.
Before: one flat line per offer and platform, with no device or OS view and no filters.
connect cloud list --platform iosconnect cloud listWall time, p50 of 10 runs: comparable across base, head and filtered listings.
Release notes
connect cloud list --jsonchanges shape. Before (the Dec-1 nightly): one row per vendor and platform withcapabilities. Now: the service'sdata, one row per offer, with device, OS, price, connect P50, availability scope andbookflags. The repository keeps no changelog file.Validation
At
ae45a2b007, the fullunit-cigate, typecheck, and lint passed locally on Node 26. Changed-line coverage reached 92/92. Hosted CI and companion endpoint verification are pending.