Rename all workspace packages from @paperclip/* to @paperclipai/* and the CLI binary from `paperclip` to `paperclipai` in preparation for npm publishing. Bump CLI version to 0.1.0 and add package metadata (description, keywords, license, repository, files). Update all imports, documentation, user-facing messages, and tests accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
480 B
TypeScript
17 lines
480 B
TypeScript
import fs from "node:fs";
|
|
import { paperclipConfigSchema, type PaperclipConfig } from "@paperclipai/shared";
|
|
import { resolvePaperclipConfigPath } from "./paths.js";
|
|
|
|
export function readConfigFile(): PaperclipConfig | null {
|
|
const configPath = resolvePaperclipConfigPath();
|
|
|
|
if (!fs.existsSync(configPath)) return null;
|
|
|
|
try {
|
|
const raw = JSON.parse(fs.readFileSync(configPath, "utf-8"));
|
|
return paperclipConfigSchema.parse(raw);
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|