Replace Pi Firecrawl extension with web access
This commit is contained in:
parent
71442b023e
commit
77938951af
2 changed files with 9 additions and 41 deletions
|
|
@ -1,13 +1,20 @@
|
||||||
{ email }: { config, inputs, pkgs, ... }:
|
{ email }: { config, inputs, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
piFirecrawl = pkgs.callPackage ../pkgs/pi-firecrawl.nix { };
|
|
||||||
tobserverAgent = pkgs.callPackage ../pkgs/tobserver-agent.nix {
|
tobserverAgent = pkgs.callPackage ../pkgs/tobserver-agent.nix {
|
||||||
script = inputs.agent-skills + "/tobserver-change/scripts/tobserver-agent";
|
script = inputs.agent-skills + "/tobserver-change/scripts/tobserver-agent";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.file.".clojure/deps.edn".source = ../config/clojure/deps.edn;
|
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 = {
|
sops = {
|
||||||
age.keyFile = "${config.home.homeDirectory}/Library/Application Support/sops/age/keys.txt";
|
age.keyFile = "${config.home.homeDirectory}/Library/Application Support/sops/age/keys.txt";
|
||||||
|
|
@ -118,7 +125,7 @@ in
|
||||||
defaultThinkingLevel = "high";
|
defaultThinkingLevel = "high";
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
"${piFirecrawl}/lib/pi-packages/@firecrawl/pi-firecrawl"
|
"npm:pi-web-access@0.15.0"
|
||||||
"npm:pi-mcp-adapter@2.10.0"
|
"npm:pi-mcp-adapter@2.10.0"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue