Commit Graph

6 Commits

Author SHA1 Message Date
Nick Hollon f240a40dc0 fix(code): handle recursive fetch_url conversion (#4257)
`fetch_url` no longer crashes when HTML-to-markdown conversion exceeds
recursion depth.

---

`fetch_url` can fail when `markdownify` hits Python recursion depth on
deeply nested HTML. This keeps the existing markdown path but falls back
to stdlib text extraction so dcode returns usable page content instead
of crashing.

Made by [Open
SWE](https://openswe.vercel.app/agents/79d44275-aab0-bf62-abde-8242f55e0648)

---------

Co-authored-by: Nick Hollon <274035459+nick-hollon-lc@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: Mason Daugherty <github@mdrxy.com>
2026-06-25 20:50:52 -04:00
Mason Daugherty 18ce094b70 feat(code): add get_current_thread_id tool (#3820)
Adds a `get_current_thread_id` agent tool to `deepagents-code` so models
can retrieve the active LangGraph thread ID and pass it to thread-scoped
tooling like the LangSmith CLI or an MCP server. The tool reads
`configurable.thread_id` from the injected `RunnableConfig` (so it takes
no model-visible arguments) and returns an explanatory message when no
thread ID is available. It is wired into the tool lists for both ACP
mode (`main.py`) and the server graph (`server_graph.py`).

Made by [Open SWE](https://openswe.vercel.app)

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-06-09 18:35:04 -04:00
Mason Daugherty 969cbe8709 chore(deps): update lint and typing dependency floors (#3818)
Dependency floors are refreshed across the monorepo for newer
LangChain/LangSmith releases, provider integrations, pytest tooling,
`ruff`, and `ty`. The code changes are the compatibility work needed for
those newer lint and type checks, with small structural cleanups where
the tools needed clearer narrowing or less complex functions.

## Changes
- Raised runtime and test dependency minimums across SDK, CLI, Code,
ACP, evals, examples, and partner packages, including updated
LangChain/LangSmith/provider pins and current lint/test tooling
baselines.
- Reworked backend factory typing around `BACKEND_TYPES` with
`_resolve_backend`, widened file transfer error fields to support
backend-specific strings, and updated filesystem/summarization
middleware to use the shared resolver.
- Tightened `deepagents-code` typing for middleware stacks, MCP tool
filtering, update checks, and Textual compatibility patches, replacing
stale suppressions with `ty`-specific ignores where runtime behavior is
intentionally narrower than static types.
- Split large CLI command handlers into focused helpers such as
`_dispatch_command`, `_execute_agents_command`, and the MCP server
subcommand helpers while preserving existing command behavior.
- Updated Harbor LangSmith sandbox handling to rely on explicit
`NetworkPolicy` and `capabilities` instead of legacy property overrides,
with tests adjusted around the new capability checks.
- Applied lint/format/type-check cleanups across tests and examples so
the staged code passes the refreshed tooling expectations.
2026-06-09 13:25:21 -04:00
John Kennedy 7358a6663b feat(talon): add local runtime host (#3759)
Add `deepagents-talon`, a local single-operator runtime host for
long-running Deep Agents over channels and scheduled jobs. The package
wires a Deep Agents runtime to channel adapters, cron tools, MCP
loading, optional voice transcription, LangSmith trace context, and a
runnable WhatsApp Docker Compose example.

This first PR focused is on the local host, WhatsApp adapter, scheduler,
and CI/release plumbing while reusing existing `deepagents-code` web and
MCP utilities (where practical).

Areas that need careful review:

- Whether the generic channel abstractions should stay in the first PR
or be narrowed to WhatsApp-only.
- WhatsApp exposure defaults, session storage, downloaded media
retention, and open-mode acknowledgement.
- The dependency boundary with `deepagents-code`, especially MCP helpers
and web tools.

---------

Co-authored-by: Deep Agent <agent@deepagents.dev>
Co-authored-by: Mason Daugherty <github@mdrxy.com>
2026-06-09 11:01:31 -04:00
Mason Daugherty 54d8521976 fix(code): guard fetch_url against SSRF (#3411)
Harden the `fetch_url` tool against SSRF and DNS-rebinding.
2026-05-15 16:26:57 -07:00
Mason Daugherty 2ac7d41533 feat(code): port from libs/cli (#3388)
Release-As: 0.1.0
2026-05-12 20:45:09 +00:00