From 8feaaa2845a5ccb77b169404a93c2c88f0c1d52b Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Thu, 16 Apr 2026 08:20:00 +0200 Subject: [PATCH] chore: remaining cleanup changes --- .pi-lens/cache/jscpd.meta.json | 2 +- .pi-lens/cache/knip.meta.json | 2 +- .pi-lens/cache/session-start-guidance.meta.json | 2 +- .pi-lens/cache/todo-baseline.meta.json | 2 +- .pi-lens/install-choices.json | 6 ++++++ .pi-lens/turn-state.json | 2 +- .../home-manager/coding/agents/claude-code.nix | 5 ++++- overlays/default.nix | 3 +-- pkgs/opencode-desktop/default.nix | 2 +- tests/lib/agents-test.nix | 7 ++----- tests/lib/coding-rules-test.nix | 17 ++++++----------- 11 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 .pi-lens/install-choices.json diff --git a/.pi-lens/cache/jscpd.meta.json b/.pi-lens/cache/jscpd.meta.json index 666cf25..a592c3c 100644 --- a/.pi-lens/cache/jscpd.meta.json +++ b/.pi-lens/cache/jscpd.meta.json @@ -1,3 +1,3 @@ { - "timestamp": "2026-04-15T09:30:34.459Z" + "timestamp": "2026-04-16T05:17:32.737Z" } \ No newline at end of file diff --git a/.pi-lens/cache/knip.meta.json b/.pi-lens/cache/knip.meta.json index d80ceea..269182e 100644 --- a/.pi-lens/cache/knip.meta.json +++ b/.pi-lens/cache/knip.meta.json @@ -1,3 +1,3 @@ { - "timestamp": "2026-04-15T09:30:35.667Z" + "timestamp": "2026-04-16T05:17:34.002Z" } \ No newline at end of file diff --git a/.pi-lens/cache/session-start-guidance.meta.json b/.pi-lens/cache/session-start-guidance.meta.json index 42b8956..be2e165 100644 --- a/.pi-lens/cache/session-start-guidance.meta.json +++ b/.pi-lens/cache/session-start-guidance.meta.json @@ -1,3 +1,3 @@ { - "timestamp": "2026-04-15T09:28:51.987Z" + "timestamp": "2026-04-16T05:07:03.715Z" } \ No newline at end of file diff --git a/.pi-lens/cache/todo-baseline.meta.json b/.pi-lens/cache/todo-baseline.meta.json index f2588fa..93ee8ba 100644 --- a/.pi-lens/cache/todo-baseline.meta.json +++ b/.pi-lens/cache/todo-baseline.meta.json @@ -1,3 +1,3 @@ { - "timestamp": "2026-04-15T09:28:16.965Z" + "timestamp": "2026-04-16T05:05:46.953Z" } \ No newline at end of file diff --git a/.pi-lens/install-choices.json b/.pi-lens/install-choices.json new file mode 100644 index 0000000..e6131b0 --- /dev/null +++ b/.pi-lens/install-choices.json @@ -0,0 +1,6 @@ +{ + "nixd": { + "choice": "no", + "timestamp": 1776314948230 + } +} \ No newline at end of file diff --git a/.pi-lens/turn-state.json b/.pi-lens/turn-state.json index 3e1b99d..05d0cf2 100644 --- a/.pi-lens/turn-state.json +++ b/.pi-lens/turn-state.json @@ -2,5 +2,5 @@ "files": {}, "turnCycles": 0, "maxCycles": 3, - "lastUpdated": "2026-04-15T09:30:35.668Z" + "lastUpdated": "2026-04-16T05:17:34.002Z" } \ No newline at end of file diff --git a/modules/home-manager/coding/agents/claude-code.nix b/modules/home-manager/coding/agents/claude-code.nix index 7bfee57..7a5d402 100644 --- a/modules/home-manager/coding/agents/claude-code.nix +++ b/modules/home-manager/coding/agents/claude-code.nix @@ -76,7 +76,10 @@ in { mcpServers = mkOption { type = types.attrsOf types.anything; - default = if mcpCfg != null then mcpCfg.servers else {}; + default = + if mcpCfg != null + then mcpCfg.servers + else {}; defaultText = literalExpression "config.programs.mcp.servers"; description = '' MCP server configurations for Claude Code. diff --git a/overlays/default.nix b/overlays/default.nix index b0ad210..574659c 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,7 +1,6 @@ {inputs, ...}: { # This one brings our custom packages from the 'pkgs' directory - additions = final: prev: - (import ../pkgs {pkgs = final;}); + additions = final: prev: (import ../pkgs {pkgs = final;}); # This one contains whatever you want to overlay # You can change versions, add patches, set compilation flags, anything really. diff --git a/pkgs/opencode-desktop/default.nix b/pkgs/opencode-desktop/default.nix index 06b53c7..97d98d2 100644 --- a/pkgs/opencode-desktop/default.nix +++ b/pkgs/opencode-desktop/default.nix @@ -31,7 +31,7 @@ # Upstream is missing outputHashes for git dependencies # Also fix stale npm deps hash in upstream node_modules FOD fixedNodeModules = opencode.node_modules.overrideAttrs { - outputHash = "sha256-LRhPPrOKCGUSCEWTpAxPdWKTKVNkg82WrvD25cP3jts="; + outputHash = "sha256-285KZ7rZLRoc6XqCZRHc25NE+mmpGh/BVeMpv8aPQtQ="; }; opencode-desktop = rustPlatform.buildRustPackage (finalAttrs: { diff --git a/tests/lib/agents-test.nix b/tests/lib/agents-test.nix index 6e3b3c0..9fe2bed 100644 --- a/tests/lib/agents-test.nix +++ b/tests/lib/agents-test.nix @@ -12,17 +12,14 @@ let } ); in - assert result.success == false; - {result = "pass";}; + assert result.success == false; {result = "pass";}; # Test 2: loadCanonical extracts loadAgents from input testLoadCanonical = let fakeInput = {lib.loadAgents = {test = {description = "test";};};}; result = agentsLib.loadCanonical {agentsInput = fakeInput;}; in - assert result == {test = {description = "test";};}; - {result = "pass";}; - + assert result == {test = {description = "test";};}; {result = "pass";}; in { unknown-tool-throws = testUnknownTool; load-canonical = testLoadCanonical; diff --git a/tests/lib/coding-rules-test.nix b/tests/lib/coding-rules-test.nix index 433b270..e37c804 100644 --- a/tests/lib/coding-rules-test.nix +++ b/tests/lib/coding-rules-test.nix @@ -11,11 +11,11 @@ let rulesDir = ".coding-rules"; }; in - assert rules.instructions == [ + assert rules.instructions + == [ ".coding-rules/concerns/naming.md" ".coding-rules/languages/python.md" - ]; - {result = "pass";}; + ]; {result = "pass";}; # Test 2: default rulesDir is .opencode-rules testDefaultRulesDir = let @@ -24,13 +24,10 @@ let }; hasCorrectPrefix = builtins.all (s: builtins.substring 0 15 s == ".opencode-rules") rules.instructions; in - assert hasCorrectPrefix == true; - {result = "pass";}; + assert hasCorrectPrefix == true; {result = "pass";}; # Test 3: backward-compat alias exists - testBackwardCompat = - assert codingRulesLib.mkOpencodeRules == codingRulesLib.mkCodingRules; - {result = "pass";}; + testBackwardCompat = assert codingRulesLib.mkOpencodeRules == codingRulesLib.mkCodingRules; {result = "pass";}; # Test 4: shellHook contains both the symlink command and the config generation testShellHook = let @@ -42,9 +39,7 @@ let hasConfigGen = builtins.match ".*coding-rules.json.*" hook != null; in assert hasSymlink; - assert hasConfigGen; - {result = "pass";}; - + assert hasConfigGen; {result = "pass";}; in { instructions-correct = testInstructions; default-rules-dir = testDefaultRulesDir;