refactor: remove dead exported types from picker.ts and spawn-config.ts (#2553)

PickOption, PickConfig, and PickResult interfaces in picker.ts were exported
but never imported by any external module. SpawnConfig type in spawn-config.ts
was similarly exported but not used outside the module. Made all four private
to reduce the public API surface.

Bump CLI patch version to 0.17.2.

-- qa/code-quality

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
A 2026-03-12 18:43:05 -07:00 committed by GitHub
parent ecc876f3bc
commit f5def4119f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -21,21 +21,21 @@ import { spawnSync } from "node:child_process";
import * as fs from "node:fs";
import { tryCatch, unwrapOr } from "./shared/result.js";
export interface PickOption {
interface PickOption {
value: string;
label: string;
hint?: string;
subtitle?: string;
}
export interface PickConfig {
interface PickConfig {
message: string;
options: PickOption[];
defaultValue?: string;
deleteKey?: boolean;
}
export interface PickResult {
interface PickResult {
action: "select" | "delete" | "cancel";
value: string | null;
index: number;

View file

@ -18,7 +18,7 @@ const SpawnConfigSchema = v.object({
setup: v.optional(SpawnConfigSetupSchema),
});
export type SpawnConfig = v.InferOutput<typeof SpawnConfigSchema>;
type SpawnConfig = v.InferOutput<typeof SpawnConfigSchema>;
/** Maximum config file size (1 MB) */
const MAX_CONFIG_SIZE = 1024 * 1024;