Skip to content

fix(lint): bring connector-cloud.ts back under max-lines - #48549

Merged
orca-remote-automation[bot] merged 1 commit into
mainfrom
fix/connector-cloud-max-lines
Nov 24, 2026
Merged

orca-remote-automation[bot] merged 1 commit into
mainfrom
fix/connector-cloud-max-lines

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Lint is failing on every PR because connector-cloud.ts grew past the 300-line limit. This trims it back under the limit without changing behavior.

Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9 $\color{#cf222e}{\Huge{\mathbf{−}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6

What Changed

src/main/connector-cloud/connector-cloud.ts drops from 306 to 300 counted lines:

  • the transport field's type now fits on one line
  • withConnection uses this.client directly instead of copying it into a local first
  • botListFacts reads cloudFeatures() and the needs-sign-in check into locals once, instead of repeating them

Why

#47381 left the file at 306 lines, so the Lint step in static analysis fails on main and on every open PR.

Linked Issue

N/A (main CI fix)

Visual Proof

N/A, no UI change.

Testing

pnpm check:changed passes (25 checks, including lint, typecheck and related tests).

Performance

None, because this only restructures code. It now calls cloudFeatures() once per botListFacts call instead of three times.

Risk

Very low: a behavior-preserving restructure of one file. Undo with a plain revert.

Level: Low

Review

Self-reviewed. This is a mechanical CI fix.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No platform, SSH, mobile or workspace impact.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

#47381 left it at 306 counted lines, failing Lint on every PR.
@orca-remote-automation
orca-remote-automation Bot merged commit 9120306 into main Nov 24, 2026
54 checks passed
Jinwoo-H pushed a commit that referenced this pull request Nov 24, 2026
#47381 left it at 306 counted lines, failing Lint on every PR.

Co-authored-by: m4air <[email protected]>
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.

0 participants