Lines 5-45javascript
5} from "../chunk-MVNOP5IZ.js";
10 removeInstructionBlock
11} from "../chunk-WXWHRXDK.js";
12import "../chunk-FDR5WYT7.js";
14// bin/pushary-clean.ts
15import { existsSync, readFileSync, writeFileSync, rmSync } from "fs";
16import { join } from "path";
17import { homedir } from "os";
18import { confirm } from "@inquirer/prompts";
19import { parse as parseTOML, stringify as stringifyTOML } from "smol-toml";
20var dim = (s) => `\x1B[2m${s}\x1B[0m`;
21var bold = (s) => `\x1B[1m${s}\x1B[0m`;
22var green = (s) => `\x1B[32m${s}\x1B[0m`;
23var yellow = (s) => `\x1B[33m${s}\x1B[0m`;
24var check = green("\u2713");
25var skip = yellow("\u2013");
26var CLAUDE_SETTINGS = join(homedir(), ".claude", "settings.json");
27var CLAUDE_SETTINGS_LOCAL = join(homedir(), ".claude", "settings.local.json");
28var CLAUDE_JSON = join(homedir(), ".claude.json");
29var SKILL_DIR = join(homedir(), ".claude", "skills", "pushary");
30var CURSOR_MCP = join(".cursor", "mcp.json");
31var CURSOR_PLUGIN_DIR = join(homedir(), ".cursor", "plugins", "local", "pushary");
32var SHELL_FILES = [".zshrc", ".zprofile", ".bashrc", ".bash_profile"].map((f) => join(homedir(), f));
33var readJson = (path) => {
35 return JSON.parse(readFileSync(path, "utf-8"));
36 } catch {
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/bin/pushary-clean.jsView on unpkg · L25 40var writeJson = (path, data) => {
41 writeFileSync(path, JSON.stringify(data, null, 2) + "\n", "utf-8");
43var cleanSettingsFile = (path, label) => {
44 const data = readJson(path);