mirror of
https://github.com/langchain-ai/deepagentsjs.git
synced 2026-07-22 12:25:36 -04:00
@langchain/quickjs@0.2.6
11 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
883581cda6 |
fix(deepagents): handle Windows absolute paths in tsdown external filter (#489)
## Fix: `ERR_MODULE_NOT_FOUND` on Windows when building `deepagents`
### Problem
Building `libs/deepagents` on Windows produces a `dist/index.js` that
imports
local modules with `.ts` extensions instead of bundling them:
```js
import { createDeepAgent } from "./agent.ts";
import { ConfigurationError } from "./errors.ts";
```
This causes an immediate crash at runtime for any consumer of the
library:
```
Error [ERR_MODULE_NOT_FOUND]: Cannot find module
'C:\...\deepagentsjs\libs\deepagents\dist\agent.ts'
imported from C:\...\deepagentsjs\libs\deepagents\dist\index.js
```
**Root Cause**
The `external` filter in `libs/deepagents/tsdown.config.ts:` used a regex intended to match
only npm package names (which don't start with `.` or `/`):
```js
const external = [/^[^./]/];
```
On Unix absolute paths start with `/` so the regex correctly excludes them. On Windows absolute paths start with a drive letter (e.g. C:\...), which also doesn't start with `.` or `/` - so rolldown matches them as external, excludes them from the bundle, and leaves raw `.ts` references in the output.
**Fix**
Replace the regex with a function that explicitly excludes Windows-style
absolute paths:
```js
const external = (id: string) =>
!id.startsWith(".") && !id.startsWith("/") &&
!/^[A-Za-z]:[\\/]/.test(id);
```
After this change `pnpm -w run build` in `libs/deepagents` produces a fully
bundled `[dist/index.js]` with no `.ts` imports and examples run correctly on Windows.
Notes
- `deps.neverBundle` (the tsdown-recommended replacement for `[external]` is not yet functional in tsdown 0.21.7 / rolldown 1.0.0-rc.12 and causes a build error. This fix is the correct workaround until that API stabilises.
---------
Co-authored-by: Hunter Lovell <hunter@hntrl.io>
|
||
|
|
02c1c7fa38 |
chore: version packages (#433)
* 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> |
||
|
|
67d7423c82 |
build(deps-dev): bump typescript from 5.9.3 to 6.0.2 (#409)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.2) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
ca5cc0acfb |
chore: merge alpha into main (#404)
* Revert "revert: "feat(deepagents): support multimodal files for backends (#298)" (#352)" (#353) This reverts commit |
||
|
|
03ea1c9729 |
revert: "feat(deepagents): support multimodal files for backends (#298)" (#352)
* Revert "feat(deepagents): support multimodal files for backends (#298)"
This reverts commit
|
||
|
|
573479d743 |
Revert "chore(deepagents): refactor backend method names - lsInfo -> ls, …" (#349)
This reverts commit
|
||
|
|
0bc3efec28 |
build(deps-dev): bump tsdown from 0.20.3 to 0.21.4 (#343)
Bumps [tsdown](https://github.com/rolldown/tsdown) from 0.20.3 to 0.21.4. - [Release notes](https://github.com/rolldown/tsdown/releases) - [Commits](https://github.com/rolldown/tsdown/compare/v0.20.3...v0.21.4) --- updated-dependencies: - dependency-name: tsdown dependency-version: 0.21.4 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
a5ba74eac2 |
chore(deepagents): refactor backend method names - lsInfo -> ls, grepRaw -> grep, globInfo -> glob (#318)
* update backend protocol interface, types, and utils * refactor state backend * refactor store backend * clean up * unit tests * refactor filesystem * unit tests * skip binary files in literal search for filesystem backend * refactor base sandbox * base sandbox unit tests * refactor local shell backend * refactor composite backend * composite and local shell backend changes * refactor fs middleware * unit tests and fixed issue where createFileData was removed - this would be breaking * refactor acp filesystem backend * backend protocol v2 * simplify createFileData * docstrings * adapt backend protocol tests * sandbox protocol v2 * format * standard tests * fix tests * fix tests * fix tests * fix node vfs * lint fix * empty commit * fix download files to handle binary * any backend protocol * lint * make backend protocol v2 extend backend protocol * make backend unknown type for is sandbox backend check * add changeset * add max binary file size * add svg * separate v1 and v2 * format * lint * format * update glob, ls, read raw return types * unit test fixes * fix tests * restore standard-tests package * fix integ tests - make standard-tests backward compatible * remove deleted sandbox adapter * standard-test refactor for backwards compat * linting * fix tests * type guards and improved guard checks * store mime type with v2 file data * make explicit v1 types * fix locall shell int types * fix bug * edge case * update providers * lint * fix repl * read raw tests * support string or unint8arrays * clean comments, docstrings, and fix issue where we were throwing a string * don't re-wrap uint8arrays * clean up test names * fix quickjs * poison pill and uint8array issues * add back video and audio support * bump langgraph-checkpoint version for json plus serializer changes * fix lock after merge with main * remove explicit cast * use instance of Uint8Array for FileDataV2 schema * update changeset * update backend protocol interface, types, and utils * refactor state backend * refactor store backend * clean up * unit tests * refactor filesystem * unit tests * skip binary files in literal search for filesystem backend * refactor base sandbox * base sandbox unit tests * refactor local shell backend * refactor composite backend * composite and local shell backend changes * refactor fs middleware * unit tests and fixed issue where createFileData was removed - this would be breaking * refactor acp filesystem backend * backend protocol v2 * simplify createFileData * docstrings * adapt backend protocol tests * sandbox protocol v2 * format * standard tests * fix tests * fix tests * fix tests * fix node vfs * lint fix * empty commit * fix download files to handle binary * any backend protocol * lint * make backend protocol v2 extend backend protocol * make backend unknown type for is sandbox backend check * add changeset * add max binary file size * add svg * separate v1 and v2 * format * lint * format * update glob, ls, read raw return types * unit test fixes * fix tests * restore standard-tests package * fix integ tests - make standard-tests backward compatible * remove deleted sandbox adapter * standard-test refactor for backwards compat * linting * fix tests * type guards and improved guard checks * store mime type with v2 file data * make explicit v1 types * fix locall shell int types * fix bug * edge case * update providers * lint * fix repl * read raw tests * support string or unint8arrays * clean comments, docstrings, and fix issue where we were throwing a string * don't re-wrap uint8arrays * clean up test names * fix quickjs * poison pill and uint8array issues * add back video and audio support * bump langgraph-checkpoint version for json plus serializer changes * fix lock after merge with main * remove explicit cast * use instance of Uint8Array for FileDataV2 schema * refactor backend methods * add changeset * changesets * regen lock |
||
|
|
aab678ad66 |
feat(deepagents): support multimodal files for backends (#298)
* update backend protocol interface, types, and utils * refactor state backend * refactor store backend * clean up * unit tests * refactor filesystem * unit tests * skip binary files in literal search for filesystem backend * refactor base sandbox * base sandbox unit tests * refactor local shell backend * refactor composite backend * composite and local shell backend changes * refactor fs middleware * unit tests and fixed issue where createFileData was removed - this would be breaking * refactor acp filesystem backend * backend protocol v2 * simplify createFileData * docstrings * adapt backend protocol tests * sandbox protocol v2 * format * standard tests * fix tests * fix tests * fix tests * fix node vfs * lint fix * empty commit * fix download files to handle binary * any backend protocol * lint * make backend protocol v2 extend backend protocol * make backend unknown type for is sandbox backend check * add changeset * add max binary file size * add svg * separate v1 and v2 * format * lint * format * update glob, ls, read raw return types * unit test fixes * fix tests * restore standard-tests package * fix integ tests - make standard-tests backward compatible * remove deleted sandbox adapter * standard-test refactor for backwards compat * linting * fix tests * fix integ test * type guards and improved guard checks * store mime type with v2 file data * make explicit v1 types * fix locall shell int types * fix bug * edge case * update providers * lint * fix repl * read raw tests * support string or unint8arrays * clean comments, docstrings, and fix issue where we were throwing a string * don't re-wrap uint8arrays * clean up test names * fix quickjs * poison pill and uint8array issues * add back video and audio support * bump langgraph-checkpoint version for json plus serializer changes * fix lock after merge with main * remove explicit cast * use instance of Uint8Array for FileDataV2 schema * update changeset * regen lock |
||
|
|
d4e81b58cc |
chore: version packages (#224)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
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 |