mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
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:
parent
ecc876f3bc
commit
f5def4119f
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue