Commit Graph

74 Commits

Author SHA1 Message Date
github-actions[bot] d4e81b58cc chore: version packages (#224)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-18 12:46:01 -08:00
Christian Bromann 199c86c013 fix(deepagents): update summarization behavior (#234)
* fix(deepagents): update summarization behavior

* actually use deepagent summarization middleware

* Update summarization behavior for deepagents

* make it work

* format

* fix pnpm-lock
2026-02-18 12:27:49 -08:00
Christian Bromann a827af7be8 feat(standard-tests): make test suite framework-agnostic and publish as public package (#237)
* feat(standard-tests): make test suite framework-agnostic and publish as public package

Move @langchain/sandbox-standard-tests from internal/ to libs/ for
publishing. The test suite no longer hard-depends on Vitest — test-runner
primitives (describe, it, expect, beforeAll, afterAll) are supplied via
a `runner` config property, letting consumers use any framework.

A convenience sub-export at @langchain/sandbox-standard-tests/vitest
pre-fills the runner with Vitest primitives for zero-config usage.

* format

* no underscore

* adding copies of license files

* adding changesets

* add build step

* fix test
2026-02-18 12:14:01 -08:00
Christian Bromann 357a092b31 feat(deepagents): add local shell backend (#236)
* feat(deepagents): add local shell backend

* format

* make it async

* update readme

* add integration tests

* format

* fix types
2026-02-18 11:09:17 -08:00
Alexei Vedernikov a762b91e7a chore(deepagents): re-export createSummarizationMiddleware (#230) 2026-02-15 11:04:00 -08:00
Maahir Sachdev bfa843d4fe Create happy-flowers-mix.md 2026-02-12 09:23:54 -08:00
github-actions[bot] 310f6fcab9 chore: version packages (#220)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-11 21:32:18 -08:00
Christian Bromann 163c1357e8 fix(deepagents): unwrap responseFormat strategy types so structuredResponse is correctly typed (#222)
* fix(deepagents): unwrap responseFormat strategy types so structuredResponse is correctly typed

Previously, passing responseFormat to createDeepAgent would leak the
strategy wrapper type (e.g. ToolStrategy<{ city: string }>) into the
agent's structuredResponse property instead of the inner parsed type
({ city: string }). This adds an InferStructuredResponse utility type
that extracts T from ToolStrategy<T> / ProviderStrategy<T>, and resolves
to ResponseFormatUndefined when no responseFormat is provided.

Also adds integration tests covering toolStrategy, providerStrategy,
combined tools + responseFormat, nested schemas, and subagents with
structured output.

* format

* Create stale-planes-breathe.md

* improve tests

* update deps

* add type tests
2026-02-11 21:31:03 -08:00
Christian Bromann ae70fa400e fix(deepagents): pass on subagent name (#218)
* fix(deepagents): pass on subagent name

* Add changeset for deepagents patch

* update deps

* format
2026-02-10 23:04:54 -08:00
github-actions[bot] 4b2892bd5b chore: version packages (#219)
* chore: version packages

* cr

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hunter Lovell <hunter@hntrl.io>
2026-02-11 03:47:30 +00:00
Hunter Lovell adce96c7c7 fix(skills): improve skills middleware input validation and add annotations (#211)
* fix(skills): improve skills middleware input validation and add annotations

* cr

* cr

* cr
2026-02-10 19:37:56 -08:00
Hunter Lovell 2eea576809 refactor(summarization): state rework, move to wrap pattern (#210)
* refactor(summarization): state rework, move to wrap pattern

* cr
2026-02-10 18:18:42 -08:00
github-actions[bot] 7f82473721 chore: version packages (#217)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-10 15:18:49 -08:00
Christian Bromann 786053fe42 feat(deno): better support for sandbox volumes (#216)
* feat(deno): better support for sandbox volumes

* format

* cr

* format
2026-02-10 15:17:41 -08:00
Anton Nak 4ea18587a3 fix(skills): use systemMessage.concat() instead of systemPrompt string (#208)
* fix(skills): use systemMessage.concat() instead of systemPrompt string

* style: fix Prettier formatting in skills.test.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(skills): update integration tests to use systemMessage API

The integration tests were using the old systemPrompt string API
but wrapModelCall now uses request.systemMessage.concat(). Updated
tests to pass SystemMessage objects and read from systemMessage.text.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Anton Nakaliuzhnyi <anakaliuzhnyi@gipartners.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 14:38:52 -08:00
github-actions[bot] 809d79aff0 chore: version packages (#202)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-09 10:22:32 -08:00
Christian Bromann 3f30ba7e1d test(sandbox): enhance standard tests for sandboxes (#201)
* test(sandbox): enhance standard tests for sandboxes

* retrigger

* fix tests

* cr

* format

* fix deno

* cr

* format

* changeset

* cr

* cr

* don't need read/write overwrite anymore

* fix initial files

* format

* fix
2026-02-09 10:20:33 -08:00
Youngho Kim a837eacb81 fix: normalize path handling for cross-platform compatibility (#200)
* fix: normalize path handling for cross-platform compatibility

* add changesets

---------

Co-authored-by: Christian Bromann <git@bromann.dev>
2026-02-07 00:07:00 -08:00
github-actions[bot] 381e854d01 chore: version packages (#198)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-06 15:02:01 -08:00
Christian Bromann e4b5892b0e fix(deepagents): runtime agnostic sandbox operations (#197)
* fix(modal): add token to run in CI

* improve fs operations

* format

* changesets
2026-02-06 14:59:51 -08:00
github-actions[bot] 7cf506eee6 chore: version packages (#196)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-06 13:31:18 -08:00
Christian Bromann 731b01ed17 fix(deepagents): polish sandbox interfaces (#194)
* fix(deepagents): polish sandbox interfaces

* revert

* global ref

* format

* changesets

* tweak CI

* fix
2026-02-06 13:27:10 -08:00
github-actions[bot] e1a9a62d12 chore: version packages (#192)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-04 22:57:14 -08:00
Christian Bromann 7c7c1eff77 fix: switch to minor release 2026-02-04 22:50:53 -08:00
Christian Bromann 010d49c2f3 fix: tweak changesets config 2026-02-04 22:47:25 -08:00
Christian Bromann 115b76403d fix: change changesets back to minor 2026-02-04 22:35:13 -08:00
Christian Bromann b5e719c8aa chore: add missing changesets 2026-02-04 22:21:32 -08:00
Christian Bromann dd848abf24 fix: update changesets 2026-02-04 22:18:24 -08:00
Christian Bromann 0d3aa48230 feat(daytona): adding sandbox integration (#188)
* feat: add support for Vercel sandbox

* format

* switch to deno

* cr

* format

* rename

* format

* auto bump peer dep

* format

* feat(daytona): adding sandbox integration

* format

* test fix

* format

* add support for

* add changesets

* feat: add modal sandbox (#190)

* feat: add modal sandbox

* chore: format

* cr

---------

Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>
2026-02-04 22:11:38 -08:00
Christian Bromann 988b44c129 feat: add SandboxProvider abstraction (#165)
* feat: add support for Vercel sandbox

* format

* switch to deno

* cr

* format

* feat: add support for Vercel sandbox

* feat: add VFS sandbox

* format

* rm vercel

* rename

* format

* rename

* feat: add support for Vercel sandbox

* format

* switch to deno

* cr

* feat: add support for Vercel sandbox

* feat: add VFS sandbox

* format

* rm vercel

* rename

* rename

* feat: add support for Vercel sandbox

* feat: support for sandbox provider

* not needed

* format

* add changeset

* missed file

* tweak

* format

* change changeset
2026-02-04 21:49:22 -08:00
Christian Bromann 80a41ef018 chore(node-vfs): add changeset 2026-02-04 21:37:41 -08:00
Christian Bromann c0e676a1a5 feat: add support for Deno sandbox (#162)
* feat: add support for Vercel sandbox

* format

* switch to deno

* cr

* format

* rename

* format

* remove skip

* feedback

* Apply suggestion from @hntrl

Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>

* auto bump peer dep

* format

* fix lock file

* add jiti

* add support for initialFiles

* include provider integration tests

* use DENO_DEPLOY_TOKEN

* add changeset

---------

Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>
2026-02-04 21:10:28 -08:00
github-actions[bot] 72c3b18d09 chore: version packages (#182)
* chore: version packages

* cr

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hunter Lovell <hunter@hntrl.io>
2026-02-04 03:14:33 +00:00
Hunter Lovell 063436e0a0 feat: set default recursionLimit to 10k (#183)
* feat: set default recursionLimit to 10k

* chore: format

* chore: fixup bad test
2026-02-03 19:11:23 -08:00
Youngho Kim 9f77da4723 refactor: migrate memory middleware to use SystemMessage (#178)
* refactor(deepagents): migrate memory middleware to use SystemMessage

Update memory middleware to use SystemMessage class instead of string-based systemPrompt. This change aligns the middleware with the updated request interface and provides better type safety.

- Replace systemPrompt string with SystemMessage object in memory.ts
- Use SystemMessage.concat() method for combining memory section with existing system message
- Update all test cases to use SystemMessage constructor and .text property for assertions

* add changeset

---------

Co-authored-by: Christian Bromann <git@bromann.dev>
2026-02-03 16:18:50 -08:00
github-actions[bot] 41f1e38f65 chore: version packages (#164)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-02 22:40:11 -08:00
Maahir Sachdev e4f9f8d8c8 fix: missing files in skillsMiddleware schema (#160)
* fix missing files in skillsMiddleware

* Update tests

* Add integration tests + fixes

* Restore skills.test.ts from main

* Update tests to unit from integration

* Update unit tests

* fix test

* changeset
2026-02-02 21:11:51 -08:00
Christian Bromann c674c619cd fix(deepagents): prevent infinite loop when read_file returns large content (#172)
* fix(deepagents): prevent infinite loop when read_file returns large content (#82)

When a tool returned a large result with few but very long lines, the
agent could enter an infinite eviction/read loop. The content would be
evicted to the filesystem, then read_file would return all the content
(since it only had a line limit, not a character limit), which would
again exceed the eviction threshold.

fixes #82

* export FileData from right place

* add changesets
2026-02-02 21:10:56 -08:00
Christian Bromann b3cf8e391d fix(deepagents): add missing changeset 2026-02-02 21:09:25 -08:00
Christian Bromann e6d895bdf9 fix(middleware): avoid unnecessary REMOVE_ALL_MESSAGES in PatchToolCallsMiddleware (#169)
* fix(middleware): avoid unnecessary REMOVE_ALL_MESSAGES in PatchToolCallsMiddleware

The middleware was unconditionally triggering REMOVE_ALL_MESSAGES on every
request, even when there were no dangling tool calls to patch. This caused
unnecessary frontend re-renders and UI flickering when using useStream with
fetchStateHistory: true.

Added a needsPatch flag to track whether any dangling tool calls are found,
and only trigger the state rebuild when patching is actually needed.

Fixes #127

* retrigger

* fix test

* add changeset
2026-02-02 21:08:12 -08:00
Maahir Sachdev 0fe09a51de fix: missing files/memoryContents in memory middleware (#159)
* Update memory state schmea

* Update tests

* Update testing

* changeset

* Update libs/deepagents/src/middleware/memory.test.ts

* Update libs/deepagents/src/middleware/memory.test.ts

* Update libs/deepagents/src/middleware/memory.test.ts

* Update libs/deepagents/src/middleware/memory.test.ts

* Update libs/deepagents/src/middleware/memory.test.ts

* Update libs/deepagents/src/middleware/memory.test.ts

---------

Co-authored-by: Christian Bromann <git@bromann.dev>
2026-02-02 20:07:59 -08:00
Christian Bromann 0b65b09864 fix(deepagents): copy LICENSE file into published package 2026-02-01 19:14:00 -08:00
github-actions[bot] fa41f08580 chore: version packages (#151)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-28 10:55:12 -08:00
Christian Bromann a0f69609b8 chore: add changeset 2026-01-28 10:54:17 -08:00
github-actions[bot] eb79cdc1e7 chore: version packages (#140)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-23 13:24:49 -08:00
Christian Bromann 10c4e8b6f8 fix: add missing changeset 2026-01-23 13:23:51 -08:00
github-actions[bot] 5596fa1e68 chore: version packages (#135)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-22 13:25:31 -08:00
Christian Bromann 0fa85f6169 chore(deepagents): update deps and re-establish old interfaces (#133)
* chore(deepagents): update deps

* add changeset

* re-estebalish old interfaces

* format

* skip new integration test for now
2026-01-22 13:20:07 -08:00
github-actions[bot] de2b4f1bec chore: version packages (#126)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-16 12:53:36 -08:00
Christian Bromann b3bb68bcae fix: add missing changesets 2026-01-16 12:47:24 -08:00