Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
chore(server): stop committing requirements.txt
trohitgd5fbbb5cee72
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex 89b46f5d..5f43a876 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -3,9 +3,7 @@# JS -> bump the range in the relevant package.json (or the top-level# `overrides` block for transitive pins), `bun install`,# `bun run audit:deps`, run tests-# pip -> `uv lock --upgrade-package <name>` in server/, regenerate-# server/requirements.txt with the `uv export` command in its-# header, `uv sync`, tests+# pip -> `uv lock --upgrade-package <name>` in server/, `uv sync`, tests# Alerts stay visible in the repository's Security tab, except for bun.lock,# which GitHub cannot read: CI's `bun run audit:deps` covers the JS trees.#diff --git a/.gitignore b/.gitignoreindex 7acdb717..1ff74ec3 100644--- a/.gitignore+++ b/.gitignore@@ -118,6 +118,10 @@ venv/# app version gets the same dependency tree, and CI runs ``uv lock --check``.uv.lock!server/uv.lock+# server/requirements.txt is a pip export of server/uv.lock, made on demand+# (docs-internal/SETUP.md). A tracked copy drifts from the lock and gets its+# own Dependabot alerts, which never close.+server/requirements.txt# .python-version at the repo root IS tracked -- it's the project-wide# toolchain pin (read by uv, pyenv, asdf, AND ``setup-python`` via# python-version-file: in our GitHub Actions workflows). Per-developerdiff --git a/docs-internal/SETUP.md b/docs-internal/SETUP.mdindex 4316c26a..80bb691c 100644--- a/docs-internal/SETUP.md+++ b/docs-internal/SETUP.md@@ -16,7 +16,7 @@ OpenCompany/│ ├── models/ # SQLModel definitions│ ├── nodes/ # Plugin folders (one per node; the WhatsApp bridge is the│ │ # `edgymeow` package `bun add`ed under DATA_DIR/packages/, not in-tree)-│ └── requirements.txt+│ └── uv.lock # Locked Python dependencies (`uv sync` installs from it)├── scripts/ # Install lifecycle helpers, run by bun (install/preinstall/postinstall)└── package.json # Workspace root; [email protected] scripts wrapping `python -m cli````@@ -240,17 +240,15 @@ PYTHON_BACKEND_PORT=6678```### Python dependencies fail-The server is uv-managed — prefer `uv sync` from `server/` (creates `server/.venv` against the committed `uv.lock`; after editing `pyproject.toml` run `uv lock` and commit the result, CI checks it with `uv lock --check`). The pip fallback works too:+The server is uv-managed — prefer `uv sync` from `server/` (creates `server/.venv` against the committed `uv.lock`; after editing `pyproject.toml` run `uv lock` and commit the result, CI checks it with `uv lock --check`). The pip fallback installs the same pins from an export of the lock:```bashcd server+uv export --frozen --no-emit-project --no-hashes --no-dev -o requirements.txtpython -m venv venvsource venv/bin/activate # or venv\Scripts\activate on Windowspip install -r requirements.txt```-`server/requirements.txt` is an exact-pin export of the lock — regenerate after dependency changes with:-```bash-uv export --frozen --no-emit-project --no-hashes --no-dev -o requirements.txt-```+The export is never committed (`.gitignore` lists it): a tracked copy drifts from the lock, and GitHub files a second Dependabot alert against it that cannot close.### Database issuesSQLite databases are created automatically under `DATA_DIR`diff --git a/docs-internal/ci_cd.md b/docs-internal/ci_cd.mdindex 6f46d1af..e18c802d 100644--- a/docs-internal/ci_cd.md+++ b/docs-internal/ci_cd.md@@ -254,9 +254,8 @@ by hand, alongside test runs:- JS: bump the range in the relevant `package.json` (or the top-level`overrides` block in the root manifest for transitive pins), `bun install`,`bun run audit:deps` (at the root and in `desktop/`), run the suites.-- pip: `uv lock --upgrade-package <name>` in `server/`, regenerate- `server/requirements.txt` with the `uv export` command in its header,- `uv sync`, run the suites (`predeploy.yml` runs `uv lock --check`).+- pip: `uv lock --upgrade-package <name>` in `server/`, `uv sync`, run the+ suites (`predeploy.yml` runs `uv lock --check`).The file is kept rather than deleted because of how alerts are routed:a directory with no entry gets whatever updater Dependabot guesses, and for@@ -271,12 +270,18 @@ only the `pip` entry ignored updates it kept opening security PRs (#140 to#142, 2026-09-30 and 10-01).Alerts themselves still appear in the repository's Security tab; they are-useful and cost nothing. One kind never closes by itself: GitHub builds-`server/`'s dependency graph from `uv.lock` alone (its "uv in /server" graph-job submits only that manifest), so an alert filed against-`server/requirements.txt` stays open after the file is re-exported with the-fixed version. Dismiss those once `uv.lock` and the export both carry the-fix. Dependabot's own security-update attempts are a+useful and cost nothing. Those for `server/` come from `uv.lock`, which+Dependabot's "uv in /server" graph job resubmits whenever a push changes+it, so they close as fixed once the lock carries the fix.+`server/requirements.txt` is no longer committed; pip users export it on+demand (`SETUP.md`). As a tracked copy of the lock's pins it received every+Python alert twice, and GitHub matched it against a snapshot that only+Dependabot's pip graph job for the repository root refreshes, so those+copies never closed (the last 18 were dismissed on 2026-10-03). GitHub keeps+that snapshot until the job runs again (it last ran on 2026-09-12, for the+v0.2.0 release commit, which changed the root `pyproject.toml`); until then,+dismiss any alert filed against `server/requirements.txt` as inaccurate.+Dependabot's own security-update attempts are arepository setting (Settings > Code security > Dependabot), not somethingthe config file controls; turn them off there if the "Dependabot Updates"job should stop running entirely.diff --git a/server/core/ansi.py b/server/core/ansi.pyindex d964f879..624adfca 100644--- a/server/core/ansi.py+++ b/server/core/ansi.py@@ -7,7 +7,7 @@ Terminal tab (``process_service`` broadcasts + log files) and node Output panels``[36mvite v7.3.3[39m``. Strip them at the capture boundary so stored logs,broadcasts, and node outputs are all clean.-Delegates to ``click.unstyle`` (``click==8.3.2`` in ``requirements.txt``), a+Delegates to ``click.unstyle`` (``click`` is pinned in ``server/uv.lock``), afaithful strip: it removes ANSI CSI colour / cursor / erase codes whilepreserving everything else — trailing newlines, tabs, spacing — so commandoutput isn't silently mangled. (``rich.text.Text.from_ansi`` was rejected: itdiff --git a/server/requirements.txt b/server/requirements.txtdeleted file mode 100644index 64456d15..00000000--- a/server/requirements.txt+++ /dev/null@@ -1,517 +0,0 @@-# This file was autogenerated by uv via the following command:-# uv export --frozen --no-emit-project --no-hashes --no-dev -o requirements.txt-aiohappyeyeballs==2.7.1- # via aiohttp-aiohttp==3.14.3- # via- # discord-py- # opencompany-server-aiosignal==1.4.0- # via aiohttp-aiosqlite==0.22.1- # via opencompany-server-annotated-doc==0.0.4- # via- # fastapi- # typer-annotated-types==0.7.0- # via pydantic-anthropic==0.96.0- # via- # opencompany-server- # rlms-anyio==4.14.2- # via- # anthropic- # google-genai- # httpx- # httpx-ws- # lmstudio- # mcp- # openai- # portkey-ai- # sse-starlette- # starlette- # tikhub- # watchfiles-apify-client==3.1.0- # via opencompany-server-async-timeout==5.0.1- # via crawlee-attrs==26.1.0- # via- # aiohttp- # jsonschema- # referencing-bcrypt==5.0.0- # via opencompany-server-beautifulsoup4==4.15.0- # via crawlee-brotli==1.2.0 ; platform_python_implementation == 'CPython'- # via httpx-brotlicffi==1.2.0.1 ; platform_python_implementation != 'CPython'- # via httpx-cached-property==2.0.1- # via portkey-ai-cachetools==7.1.4- # via crawlee-certifi==2026.6.17- # via- # httpcore- # httpx- # requests-cffi==2.1.0- # via- # brotlicffi- # cryptography-charset-normalizer==3.4.9- # via requests-click==8.4.2- # via- # ddgs- # uvicorn-colorama==0.4.6- # via- # apify-client- # click- # crawlee- # pytest- # qrcode- # tqdm- # typer-crawlee==1.8.1- # via opencompany-server-cryptography==50.0.0- # via- # google-auth- # opencompany-server- # pyjwt-ddgs==9.14.4- # via opencompany-server-dependency-injector==4.49.1- # via opencompany-server-discord-py==2.7.1- # via opencompany-server-distro==1.9.0- # via- # anthropic- # google-genai- # openai- # portkey-ai-dnspython==2.8.0- # via email-validator-docstring-parser==0.18.0- # via anthropic-email-validator==2.3.0- # via- # opencompany-server- # pydantic-et-xmlfile==2.0.0- # via openpyxl-fake-useragent==2.2.0- # via ddgs-fastapi==0.140.13- # via opencompany-server-filelock==3.32.0- # via tldextract-frozenlist==1.8.0- # via- # aiohttp- # aiosignal-google-api-core==2.33.0- # via google-api-python-client-google-api-python-client==2.198.0- # via opencompany-server-google-auth==2.55.2- # via- # google-api-core- # google-api-python-client- # google-auth-httplib2- # google-auth-oauthlib- # google-genai- # opencompany-server-google-auth-httplib2==0.4.0- # via google-api-python-client-google-auth-oauthlib==1.4.0- # via opencompany-server-google-genai==2.11.0- # via- # opencompany-server- # rlms-googleapis-common-protos==1.75.0- # via google-api-core-googlemaps==4.10.0- # via opencompany-server-greenlet==3.5.3- # via- # opencompany-server- # sqlalchemy-h11==0.16.0- # via- # httpcore- # uvicorn- # wsproto-h2==4.4.1- # via httpx-hpack==4.2.0- # via h2-html2text==2025.4.15- # via opencompany-server-html5lib==1.1- # via crawlee-httpcore==1.0.9- # via- # httpx- # httpx-ws-httplib2==0.32.0- # via- # google-api-python-client- # google-auth-httplib2-httptools==0.8.0- # via uvicorn-httpx==0.28.1- # via- # anthropic- # ddgs- # google-genai- # httpx-ws- # lmstudio- # mcp- # ollama- # openai- # opencompany-server- # portkey-ai- # python-telegram-bot- # tikhub-httpx-sse==0.4.3- # via mcp-httpx-ws==0.9.0- # via lmstudio-hyperframe==6.1.0- # via h2-idna==3.18- # via- # anyio- # email-validator- # httpx- # requests- # tldextract- # yarl-impit==0.13.1- # via- # apify-client- # crawlee-iniconfig==2.3.0- # via pytest-jiter==0.16.0- # via- # anthropic- # openai- # portkey-ai-jsonschema==4.26.0- # via mcp-jsonschema-specifications==2025.9.1- # via jsonschema-lmstudio==1.5.0- # via opencompany-server-lxml==6.1.1- # via- # beautifulsoup4- # ddgs-markdown-it-py==4.2.0- # via- # opencompany-server- # rich-mcp==1.28.1- # via opencompany-server-mdurl==0.1.2- # via markdown-it-py-more-itertools==11.1.0- # via- # apify-client- # crawlee-msgspec==0.21.1- # via lmstudio-multidict==6.7.1- # via- # aiohttp- # yarl-nexus-rpc==1.4.0- # via temporalio-oauthlib==4.0.0- # via requests-oauthlib-ollama==0.6.2- # via opencompany-server-openai==2.53.0- # via- # opencompany-server- # rlms-openpyxl==3.1.5- # via opencompany-server-opentelemetry-api==1.44.0- # via- # opencompany-server- # opentelemetry-sdk- # opentelemetry-semantic-conventions-opentelemetry-sdk==1.44.0- # via opencompany-server-opentelemetry-semantic-conventions==0.65b0- # via opentelemetry-sdk-orjson==3.11.9- # via opencompany-server-packaging==26.2- # via- # pooch- # pytest-pillow==12.3.0- # via- # opencompany-server- # qrcode-platformdirs==4.10.0- # via pooch-pluggy==1.6.0- # via pytest-pooch==1.9.0- # via opencompany-server-portkey-ai==2.3.2- # via rlms-primp==1.3.1- # via ddgs-propcache==0.5.2- # via- # aiohttp- # yarl-protego==0.6.2- # via crawlee-proto-plus==1.28.1- # via google-api-core-protobuf==7.35.1- # via- # google-api-core- # googleapis-common-protos- # proto-plus- # temporalio-psutil==7.2.2- # via- # crawlee- # opencompany-server-ptyprocess==0.7.0 ; sys_platform != 'win32'- # via opencompany-server-pyasn1==0.6.4- # via pyasn1-modules-pyasn1-modules==0.4.2- # via google-auth-pycparser==3.0 ; implementation_name != 'PyPy'- # via cffi-pydantic==2.12.5- # via- # anthropic- # apify-client- # crawlee- # fastapi- # google-genai- # mcp- # ollama- # openai- # opencompany-server- # portkey-ai- # pydantic-settings- # sqlmodel- # tikhub- # xdk-pydantic-core==2.41.5- # via pydantic-pydantic-monty==0.0.18- # via opencompany-server-pydantic-settings==2.14.2- # via- # crawlee- # mcp- # opencompany-server-pyee==13.0.1- # via crawlee-pygments==2.20.0- # via- # pytest- # rich-pyjwt==2.15.1- # via- # mcp- # opencompany-server-pyparsing==3.3.2- # via httplib2-pytest==9.1.1- # via rlms-python-dotenv==1.2.2- # via- # opencompany-server- # pydantic-settings- # rlms- # uvicorn-python-multipart==0.0.32- # via- # mcp- # opencompany-server-python-slugify==8.0.4- # via opencompany-server-python-telegram-bot==22.8- # via opencompany-server-pywin32==312 ; sys_platform == 'win32'- # via mcp-pywinpty==3.0.5 ; sys_platform == 'win32'- # via opencompany-server-pyyaml==6.0.3- # via- # opencompany-server- # uvicorn-qrcode==8.2- # via opencompany-server-referencing==0.37.0- # via- # jsonschema- # jsonschema-specifications-requests==2.34.2- # via- # google-api-core- # google-auth- # google-genai- # googlemaps- # pooch- # requests-file- # requests-oauthlib- # rlms- # tldextract- # xdk-requests-file==3.0.1- # via tldextract-requests-oauthlib==2.0.0- # via- # google-auth-oauthlib- # xdk-rich==15.0.0- # via- # rlms- # typer-rlms==0.1.3- # via opencompany-server-rpds-py==2026.6.3- # via- # jsonschema- # referencing-shellingham==1.5.4- # via typer-six==1.17.0- # via html5lib-sniffio==1.3.1- # via- # anthropic- # google-genai- # openai- # portkey-ai-socksio==1.0.0- # via httpx-soupsieve==2.10- # via- # beautifulsoup4- # opencompany-server-sqlalchemy==2.0.51- # via sqlmodel-sqlmodel==0.0.39- # via opencompany-server-sse-starlette==3.4.6- # via mcp-starlette==1.3.1- # via- # fastapi- # mcp- # sse-starlette-structlog==26.1.0- # via opencompany-server-temporalio==1.30.0- # via opencompany-server-tenacity==9.1.4- # via google-genai-text-unidecode==1.3- # via python-slugify-tikhub==2.1.2- # via opencompany-server-tinytag==2.2.1- # via opencompany-server-tldextract==5.3.1- # via crawlee-tqdm==4.68.4- # via- # openai- # portkey-ai-typer==0.27.0- # via tikhub-types-protobuf==7.34.1.20260518- # via temporalio-types-requests==2.33.0.20260712- # via portkey-ai-typing-extensions==4.16.0- # via- # aiohttp- # aiosignal- # anthropic- # anyio- # beautifulsoup4- # crawlee- # dependency-injector- # fastapi- # google-genai- # lmstudio- # mcp- # nexus-rpc- # openai- # opentelemetry-api- # opentelemetry-sdk- # opentelemetry-semantic-conventions- # portkey-ai- # pydantic- # pydantic-core- # pydantic-monty- # pyee- # referencing- # sqlalchemy- # sqlmodel- # starlette- # temporalio- # typing-inspection-typing-inspection==0.4.2- # via- # fastapi- # mcp- # pydantic- # pydantic-settings-tzdata==2026.3- # via opencompany-server-uritemplate==4.2.0- # via google-api-python-client-urllib3==2.8.0- # via- # requests- # types-requests-uvicorn==0.51.0- # via- # mcp- # opencompany-server-uvloop==0.22.1 ; platform_python_implementation != 'PyPy' and sys_platform != 'cygwin' and sys_platform != 'win32'- # via uvicorn-watchfiles==1.2.0- # via uvicorn-webencodings==0.5.1- # via html5lib-websockets==16.1.1- # via- # google-genai- # opencompany-server- # uvicorn-wsproto==1.3.2- # via httpx-ws-xdk==0.9.0- # via opencompany-server-yarl==1.24.2- # via- # aiohttp- # crawlee