refactor(cli-workflow): unexport internal-only interfaces#2436
Conversation
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
Reduces the accidental public TypeScript API surface of the CLI workflow module by making internal-only interfaces module-private, while keeping the intended public exports intact.
Changes:
- Unexports
WorkflowCallbacks,WorkflowLogger, andWorkflowOptionsinsrc/cli-workflow.ts. - Keeps
WorkflowDependenciesandrunMainWorkflowexported as the intended external surface.
Show a summary per file
| File | Description |
|---|---|
| src/cli-workflow.ts | Makes three internal interfaces non-exported to avoid exposing them as public API/types. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 1
| interface WorkflowCallbacks { | ||
| onHostIptablesSetup?: () => void; | ||
| onContainersStarted?: () => void; | ||
| } | ||
|
|
||
| export interface WorkflowLogger { | ||
| interface WorkflowLogger { | ||
| info: (message: string, ...args: unknown[]) => void; | ||
| success: (message: string, ...args: unknown[]) => void; | ||
| warn: (message: string, ...args: unknown[]) => void; | ||
| } | ||
|
|
||
| export interface WorkflowOptions extends WorkflowCallbacks { | ||
| interface WorkflowOptions extends WorkflowCallbacks { | ||
| logger: WorkflowLogger; | ||
| performCleanup: () => Promise<void>; | ||
| } |
🔥 Smoke Test Results
Overall: PASS PR: refactor(cli-workflow): unexport internal-only interfaces — author
|
Smoke Test: Copilot BYOK — PASS ✅
Running in BYOK offline mode ( PR author: Overall: PASS (file test skipped due to missing pre-step data)
|
|
Smoke Test Results: ✅ GitHub MCP: Retrieved 2 merged PRs (#2417, #2409) Status: PASS
|
|
feat: add 4 agentic code quality workflows Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Chroot Version Comparison Results
Overall: ❌ FAILED — Python and Node.js versions differ between host and chroot environment.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test Results
Overall: FAIL — service containers unreachable from this environment.
|
|
@copilot address the review feedback |
This is safe — The reviewer's concern is valid in general, but doesn't apply here. No code change is needed. |
WorkflowCallbacks,WorkflowLogger, andWorkflowOptionswere exported fromsrc/cli-workflow.tsbut never imported elsewhere — making them accidental public API surface.Changes
src/cli-workflow.ts: Dropexportfrom all three interfaces; they remain in scope forrunMainWorkflowwithin the same module.WorkflowDependenciesandrunMainWorkflowretain their exports as they are part of the intended public surface.