From 77938951af60b415eafcb0c81815b96acaed6688 Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Wed, 29 Jul 2026 14:30:04 +0700 Subject: [PATCH] Replace Pi Firecrawl extension with web access --- module/home-manager.nix | 11 +++++++++-- pkgs/pi-firecrawl.nix | 39 --------------------------------------- 2 files changed, 9 insertions(+), 41 deletions(-) delete mode 100644 pkgs/pi-firecrawl.nix diff --git a/module/home-manager.nix b/module/home-manager.nix index 3ea2c42..a1bf9d9 100644 --- a/module/home-manager.nix +++ b/module/home-manager.nix @@ -1,13 +1,20 @@ { email }: { config, inputs, pkgs, ... }: let - piFirecrawl = pkgs.callPackage ../pkgs/pi-firecrawl.nix { }; tobserverAgent = pkgs.callPackage ../pkgs/tobserver-agent.nix { script = inputs.agent-skills + "/tobserver-change/scripts/tobserver-agent"; }; in { home.file.".clojure/deps.edn".source = ../config/clojure/deps.edn; + home.file.".pi/web-search.json".text = builtins.toJSON { + workflow = "none"; + allowBrowserCookies = false; + + firecrawlBaseUrl = "https://api.firecrawl.dev"; + firecrawlApiKey = "$FIRECRAWL_API_KEY"; + firecrawlFreshScrape = true; + }; sops = { age.keyFile = "${config.home.homeDirectory}/Library/Application Support/sops/age/keys.txt"; @@ -118,7 +125,7 @@ in defaultThinkingLevel = "high"; packages = [ - "${piFirecrawl}/lib/pi-packages/@firecrawl/pi-firecrawl" + "npm:pi-web-access@0.15.0" "npm:pi-mcp-adapter@2.10.0" ]; }; diff --git a/pkgs/pi-firecrawl.nix b/pkgs/pi-firecrawl.nix deleted file mode 100644 index 0f38440..0000000 --- a/pkgs/pi-firecrawl.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ lib -, buildNpmPackage -, fetchFromGitHub -}: - -buildNpmPackage rec { - pname = "pi-firecrawl"; - version = "0.1.0"; - - src = fetchFromGitHub { - owner = "firecrawl"; - repo = "pi-firecrawl"; - rev = "2d7e8966ad63744fa7d5932f7bd5b4a78eddb894"; - hash = "sha256-1jbWRlQh72qoGUf2Bl220ZGKVzH/AsDgrS9weGgxb2I="; - }; - - npmDepsHash = "sha256-+ox5eIPBF9eY0yPw5IL4LypRSxZ1sz8JCFaDjmZ2DuU="; - - dontNpmBuild = true; - npmPackFlags = [ "--ignore-scripts" ]; - - installPhase = '' - runHook preInstall - - packageDir="$out/lib/pi-packages/@firecrawl/pi-firecrawl" - mkdir -p "$packageDir" - - cp -R package.json package-lock.json README.md LICENSE src node_modules "$packageDir"/ - - runHook postInstall - ''; - - meta = { - description = "Official Firecrawl extension for the Pi coding agent"; - homepage = "https://github.com/firecrawl/pi-firecrawl"; - license = lib.licenses.mit; - platforms = lib.platforms.unix; - }; -}