Skip to content

Commit 4b7933c

Browse files
authored
feat: langgraph canonical package (#1742)
1 parent d4b6d9c commit 4b7933c

File tree

135 files changed

+3375
-2717
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+3375
-2717
lines changed

.changeset/chatty-shirts-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"langgraph": major
3+
---
4+
5+
release package

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,8 @@ jobs:
118118
diff -C 3 README.md libs/langgraph/README.md
119119
exit 1
120120
fi
121+
if ! diff -q README.md libs/langgraph-core/README.md >/dev/null; then
122+
echo "README.md is out of sync with langgraph-core/README.md"
123+
diff -C 3 README.md libs/langgraph-core/README.md
124+
exit 1
125+
fi

internal/environment_tests/docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
- ../../internal/environment_tests/test-exports-esbuild:/package
1111
- ../../internal/environment_tests/scripts:/scripts
1212
- ../../libs/langgraph:/langgraph
13+
- ../../libs/langgraph-core:/langgraph-core
1314
- ../../libs/checkpoint:/checkpoint
1415
command: bash /scripts/docker-ci-entrypoint.sh
1516
test-exports-esm:
@@ -25,6 +26,7 @@ services:
2526
- ../../internal/environment_tests/test-exports-esm:/package
2627
- ../../internal/environment_tests/scripts:/scripts
2728
- ../../libs/langgraph:/langgraph
29+
- ../../libs/langgraph-core:/langgraph-core
2830
- ../../libs/checkpoint:/checkpoint
2931
command: bash /scripts/docker-ci-entrypoint.sh
3032
test-exports-tsc:
@@ -37,6 +39,7 @@ services:
3739
- ../../internal/environment_tests/test-exports-tsc:/package
3840
- ../../internal/environment_tests/scripts:/scripts
3941
- ../../libs/langgraph:/langgraph
42+
- ../../libs/langgraph-core:/langgraph-core
4043
- ../../libs/checkpoint:/checkpoint
4144
command: bash /scripts/docker-ci-entrypoint.sh
4245
test-exports-cjs:
@@ -49,6 +52,7 @@ services:
4952
- ../../internal/environment_tests/test-exports-cjs:/package
5053
- ../../internal/environment_tests/scripts:/scripts
5154
- ../../libs/langgraph:/langgraph
55+
- ../../libs/langgraph-core:/langgraph-core
5256
- ../../libs/checkpoint:/checkpoint
5357
command: bash /scripts/docker-ci-entrypoint.sh
5458
test-exports-cf:
@@ -61,6 +65,7 @@ services:
6165
- ../../internal/environment_tests/test-exports-cf:/package
6266
- ../../internal/environment_tests/scripts:/scripts
6367
- ../../libs/langgraph:/langgraph
68+
- ../../libs/langgraph-core:/langgraph-core
6469
- ../../libs/checkpoint:/checkpoint
6570
command: bash /scripts/docker-ci-entrypoint.sh
6671
test-exports-vercel:
@@ -76,6 +81,7 @@ services:
7681
- ../../internal/environment_tests/test-exports-vercel:/package
7782
- ../../internal/environment_tests/scripts:/scripts
7883
- ../../libs/langgraph:/langgraph
84+
- ../../libs/langgraph-core:/langgraph-core
7985
- ../../libs/checkpoint:/checkpoint
8086
command: bash /scripts/docker-ci-entrypoint.sh
8187
test-exports-vite:
@@ -88,6 +94,7 @@ services:
8894
- ../../internal/environment_tests/test-exports-vite:/package
8995
- ../../internal/environment_tests/scripts:/scripts
9096
- ../../libs/langgraph:/langgraph
97+
- ../../libs/langgraph-core:/langgraph-core
9198
- ../../libs/checkpoint:/checkpoint
9299
command: bash /scripts/docker-ci-entrypoint.sh
93100
success:

internal/environment_tests/scripts/docker-ci-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ cp -r ../package/!(node_modules|dist|dist-cjs|dist-esm|build|.next|.turbo) .
1414
cp ../package/.[!.]* . 2>/dev/null || true
1515

1616
mkdir -p ./libs/langgraph/
17+
mkdir -p ./libs/langgraph-core/
1718
mkdir -p ./libs/checkpoint/
1819

1920
cp -r ../langgraph ./libs/
21+
cp -r ../langgraph-core ./libs/
2022
cp -r ../checkpoint ./libs/
2123

2224
# copy cache
File renamed without changes.

libs/langgraph-core/.eslintrc.cjs

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
module.exports = {
2+
extends: [
3+
"airbnb-base",
4+
"eslint:recommended",
5+
"prettier",
6+
"plugin:@typescript-eslint/recommended",
7+
],
8+
parserOptions: {
9+
ecmaVersion: 12,
10+
parser: "@typescript-eslint/parser",
11+
project: "./tsconfig.json",
12+
sourceType: "module",
13+
},
14+
plugins: ["@typescript-eslint", "no-instanceof"],
15+
ignorePatterns: [
16+
".eslintrc.cjs",
17+
"scripts",
18+
"node_modules",
19+
"dist",
20+
"dist-cjs",
21+
"*.js",
22+
"*.cjs",
23+
"*.d.ts",
24+
],
25+
rules: {
26+
"no-process-env": 2,
27+
"no-instanceof/no-instanceof": 2,
28+
"@typescript-eslint/explicit-module-boundary-types": 0,
29+
"@typescript-eslint/no-empty-function": 0,
30+
"@typescript-eslint/no-shadow": 0,
31+
"@typescript-eslint/no-empty-interface": 0,
32+
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
33+
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
34+
"@typescript-eslint/no-floating-promises": "error",
35+
"@typescript-eslint/no-misused-promises": "error",
36+
"arrow-body-style": 0,
37+
camelcase: 0,
38+
"class-methods-use-this": 0,
39+
"import/extensions": [2, "ignorePackages"],
40+
"import/no-extraneous-dependencies": [
41+
"error",
42+
{ devDependencies: ["**/*.test.ts", "**/*.test-d.ts"] },
43+
],
44+
"import/no-unresolved": 0,
45+
"import/prefer-default-export": 0,
46+
"keyword-spacing": "error",
47+
"max-classes-per-file": 0,
48+
"max-len": 0,
49+
"no-await-in-loop": 0,
50+
"no-bitwise": 0,
51+
"no-console": 0,
52+
"no-empty-function": 0,
53+
"no-restricted-syntax": 0,
54+
"no-shadow": 0,
55+
"no-continue": 0,
56+
"no-void": 0,
57+
"no-underscore-dangle": 0,
58+
"no-use-before-define": 0,
59+
"no-useless-constructor": 0,
60+
"no-return-await": 0,
61+
"consistent-return": 0,
62+
"no-else-return": 0,
63+
"func-names": 0,
64+
"no-lonely-if": 0,
65+
"prefer-rest-params": 0,
66+
"new-cap": ["error", { properties: false, capIsNew: false }],
67+
},
68+
overrides: [
69+
{
70+
files: ["src/tests/**/*.ts"],
71+
rules: { "no-instanceof/no-instanceof": 0 },
72+
},
73+
],
74+
};

libs/langgraph-core/.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
index.cjs
2+
index.js
3+
index.d.ts
4+
index.d.cts
5+
web.cjs
6+
web.js
7+
web.d.ts
8+
web.d.cts
9+
pregel.cjs
10+
pregel.js
11+
pregel.d.ts
12+
pregel.d.cts
13+
prebuilt.cjs
14+
prebuilt.js
15+
prebuilt.d.ts
16+
prebuilt.d.cts
17+
remote.cjs
18+
remote.js
19+
remote.d.ts
20+
remote.d.cts
21+
zod.cjs
22+
zod.js
23+
zod.d.ts
24+
zod.d.cts
25+
zod/schema.cjs
26+
zod/schema.js
27+
zod/schema.d.ts
28+
zod/schema.d.cts
29+
node_modules
30+
dist
31+
.yarn

libs/langgraph-core/.prettierrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"printWidth": 80,
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"semi": true,
7+
"singleQuote": false,
8+
"quoteProps": "as-needed",
9+
"jsxSingleQuote": false,
10+
"trailingComma": "es5",
11+
"bracketSpacing": true,
12+
"arrowParens": "always",
13+
"requirePragma": false,
14+
"insertPragma": false,
15+
"proseWrap": "preserve",
16+
"htmlWhitespaceSensitivity": "css",
17+
"vueIndentScriptAndStyle": false,
18+
"endOfLine": "lf"
19+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)