From 4ff40843e7a6801b7785bfff7f4e9e8fff4e27d4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 13 Dec 2025 00:35:24 -0500 Subject: telegram: fix parsing, add webpage reader, use gemini - Fix Provider.hs to strip leading whitespace from OpenRouter responses - Fix FunctionCall parser to handle missing 'arguments' field - Use eitherDecode for better error messages on parse failures - Switch to claude-sonnet-4.5 for main agent - Use gemini-2.0-flash for conversation summarization (cheaper) - Add read_webpage tool for fetching and summarizing URLs - Add tagsoup to Haskell deps (unused, kept for future) --- Omni/Bild/Deps/Haskell.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'Omni/Bild/Deps/Haskell.nix') diff --git a/Omni/Bild/Deps/Haskell.nix b/Omni/Bild/Deps/Haskell.nix index 7e3650a..21325ec 100644 --- a/Omni/Bild/Deps/Haskell.nix +++ b/Omni/Bild/Deps/Haskell.nix @@ -53,6 +53,7 @@ "sqids" "sqlite-simple" "stm" + "tagsoup" "tasty" "tasty-hunit" "tasty-quickcheck" -- cgit v1.2.3 From 89d9fc7449ab2e799742470c3294c6e062e6de0b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 14 Dec 2025 20:57:09 -0500 Subject: telegram: switch to HaskellNet for IMAP, fix message delivery bugs - Replace openssl s_client with HaskellNet/HaskellNet-SSL for proper IMAP client support (better protocol handling, no manual parsing) - Add HaskellNet deps to Haskell.nix with doJailbreak for version bounds - Fix lost messages: sendMessageReturningId now throws on API errors instead of returning Nothing (which was incorrectly treated as success) - Auto-retry markdown parse errors as plain text - Hardcode benChatId for reliable email check loop startup --- Omni/Bild/Deps/Haskell.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Omni/Bild/Deps/Haskell.nix') diff --git a/Omni/Bild/Deps/Haskell.nix b/Omni/Bild/Deps/Haskell.nix index 21325ec..138a80e 100644 --- a/Omni/Bild/Deps/Haskell.nix +++ b/Omni/Bild/Deps/Haskell.nix @@ -22,6 +22,8 @@ "fast-logger" "filepath" "github" + "HaskellNet" + "HaskellNet-SSL" "haskeline" "hostname" "http-types" -- cgit v1.2.3