From 9e65e80276aeb33c0f917d005e621a18158fffee Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 2 Dec 2025 15:51:42 -0500 Subject: Fix Admin.py imports for bild local dep detection - Change 'from Biz.X import Y' to 'import Biz.X as X' style - bild only recognizes 'import X as Y' for local dep detection - Add setuptools to Python deps (required by newer nixpkgs) Amp-Thread-ID: https://ampcode.com/threads/T-fe8328a9-7709-4544-9d31-b099f04aa120 Co-authored-by: Amp --- Omni/Bild/Deps/Python.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'Omni/Bild') diff --git a/Omni/Bild/Deps/Python.nix b/Omni/Bild/Deps/Python.nix index 2b8531b..d21e129 100644 --- a/Omni/Bild/Deps/Python.nix +++ b/Omni/Bild/Deps/Python.nix @@ -23,6 +23,7 @@ "pytest-asyncio" "pytest-mock" "requests" + "setuptools" "slixmpp" "sqids" "starlette" -- cgit v1.2.3 From b60fc6f95e68c8581e2cec48f8d99e7c467a1db2 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 2 Dec 2025 15:52:27 -0500 Subject: Remove pyproject=true, use format=setuptools, add toggle_episode_public --- Omni/Bild/Builder.nix | 3 +-- Omni/Bild/Deps/Python.nix | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'Omni/Bild') diff --git a/Omni/Bild/Builder.nix b/Omni/Bild/Builder.nix index 9ede3b8..9356d97 100644 --- a/Omni/Bild/Builder.nix +++ b/Omni/Bild/Builder.nix @@ -280,8 +280,7 @@ with bild; let python = python.buildPythonApplication rec { inherit name src CODEROOT; - pyproject = true; - build-system = [python.packages.setuptools]; + format = "setuptools"; nativeBuildInputs = [makeWrapper]; propagatedBuildInputs = langdeps_ ++ sysdeps_ ++ rundeps_; buildInputs = sysdeps_; diff --git a/Omni/Bild/Deps/Python.nix b/Omni/Bild/Deps/Python.nix index d21e129..2b8531b 100644 --- a/Omni/Bild/Deps/Python.nix +++ b/Omni/Bild/Deps/Python.nix @@ -23,7 +23,6 @@ "pytest-asyncio" "pytest-mock" "requests" - "setuptools" "slixmpp" "sqids" "starlette" -- cgit v1.2.3 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') 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 ++ Omni/Bild/Haskell.nix | 2 ++ 2 files changed, 4 insertions(+) (limited to 'Omni/Bild') 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" diff --git a/Omni/Bild/Haskell.nix b/Omni/Bild/Haskell.nix index e55dee9..5754253 100644 --- a/Omni/Bild/Haskell.nix +++ b/Omni/Bild/Haskell.nix @@ -21,6 +21,8 @@ in rec { cmark = doJailbreak sup.cmark; docopt = buildCabal sel "docopt"; filelock = dontCheck sup.filelock; + HaskellNet = doJailbreak sup.HaskellNet; + HaskellNet-SSL = doJailbreak sup.HaskellNet-SSL; linear-generics = doJailbreak sup.linear-generics; req = doJailbreak sup.req; servant-auth = doJailbreak sup.servant-auth; -- cgit v1.2.3