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