mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
chore(agents): remove crush
Crush hardcodes banned bash commands, blocking many operations. Drop the package, its AGENTS.md/CRUSH.md install target, env vars, and preservation entries.
This commit is contained in:
1 parent
310d59b437
commit
e401a75ca5
8 files changed
+3
-15
No files matched your search
@@ -35,7 +35,6 @@ Current targets:
|
||||
- OpenCode: `AGENTS.md` -> `${XDG_CONFIG_HOME:-~/.config}/opencode/AGENTS.md`
|
||||
- Pi: `AGENTS.md` -> `~/.pi/agent/AGENTS.md`
|
||||
- OMP: `AGENTS.md` -> `~/.omp/agent/AGENTS.md`
|
||||
- Crush: `AGENTS.md` -> `${XDG_CONFIG_HOME:-~/.config}/crush/CRUSH.md`
|
||||
- Generic cross-tool (read by Kimi Code): `AGENTS.md` -> `~/.agents/AGENTS.md`
|
||||
|
||||
Behavior:
|
||||
|
||||
@@ -11,7 +11,6 @@ Installed via Nix:
|
||||
- kimi-code
|
||||
- pi
|
||||
- omp
|
||||
- crush
|
||||
|
||||
## Optional tooling
|
||||
|
||||
|
||||
@@ -47,14 +47,12 @@ def main() -> int:
|
||||
opencode_dir = xdg_config_home / "opencode"
|
||||
pi_dir = Path("~/.pi/agent").expanduser()
|
||||
omp_dir = Path("~/.omp/agent").expanduser()
|
||||
crush_dir = xdg_config_home / "crush"
|
||||
agents_dir = Path("~/.agents").expanduser()
|
||||
targets = (
|
||||
(codex_dir, "AGENTS.md"),
|
||||
(opencode_dir, "AGENTS.md"),
|
||||
(pi_dir, "AGENTS.md"),
|
||||
(omp_dir, "AGENTS.md"),
|
||||
(crush_dir, "CRUSH.md"),
|
||||
(agents_dir, "AGENTS.md"),
|
||||
)
|
||||
failed = False
|
||||
|
||||
@@ -23,7 +23,6 @@ class InstallRulesTests(unittest.TestCase):
|
||||
(home / ".config" / "opencode", "AGENTS.md"),
|
||||
(home / ".pi" / "agent", "AGENTS.md"),
|
||||
(home / ".omp" / "agent", "AGENTS.md"),
|
||||
(home / ".config" / "crush", "CRUSH.md"),
|
||||
(home / ".agents", "AGENTS.md"),
|
||||
)
|
||||
for target_dir, _ in target_names:
|
||||
@@ -42,18 +41,18 @@ class InstallRulesTests(unittest.TestCase):
|
||||
patch.object(
|
||||
installer,
|
||||
"install_one",
|
||||
side_effect=[PermissionError("denied"), None, None, None, None, None],
|
||||
side_effect=[PermissionError("denied"), None, None, None, None],
|
||||
) as install,
|
||||
patch("sys.stderr", new_callable=io.StringIO) as stderr,
|
||||
):
|
||||
self.assertEqual(installer.main(), 1)
|
||||
self.assertEqual(install.call_count, 6)
|
||||
self.assertEqual(install.call_count, 5)
|
||||
self.assertIn("denied", stderr.getvalue())
|
||||
|
||||
def test_successful_targets_return_success(self):
|
||||
with patch.object(installer, "install_one") as install:
|
||||
self.assertEqual(installer.main(), 0)
|
||||
self.assertEqual(install.call_count, 6)
|
||||
self.assertEqual(install.call_count, 5)
|
||||
|
||||
def test_existing_file_is_backed_up_without_overwriting_backup(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
|
||||
@@ -27,6 +27,5 @@ in
|
||||
agentPackages.kimi-code
|
||||
agentPackages.pi
|
||||
agentPackages.omp
|
||||
agentPackages.crush
|
||||
];
|
||||
}
|
||||
@@ -5,9 +5,6 @@
|
||||
PI_TELEMETRY = "0";
|
||||
PI_SKIP_VERSION_CHECK = "1";
|
||||
|
||||
CRUSH_DISABLE_METRICS = "1";
|
||||
CRUSH_DISABLE_PROVIDER_AUTO_UPDATE = "1";
|
||||
|
||||
OPENCODE_DISABLE_AUTOUPDATE = "1";
|
||||
};
|
||||
|
||||
|
||||
@@ -159,8 +159,6 @@ in
|
||||
".config/opencode"
|
||||
".local/share/opencode"
|
||||
".local/state/opencode"
|
||||
".config/crush"
|
||||
".local/share/crush"
|
||||
|
||||
# herdr: plugin registry, plugin checkouts/config, session layout
|
||||
".config/herdr"
|
||||
|
||||
@@ -88,6 +88,5 @@ in
|
||||
agentPackages.kimi-code
|
||||
agentPackages.pi
|
||||
agentPackages.omp
|
||||
agentPackages.crush
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user