Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sixty-donkeys-send.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mi8y/cds-langgraph-persistence": patch
---

Fixed module exports for the package
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist
dist-*
coverage
@cds-models
tmp
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# CDS Plugin for LangGraph Checkpoint & Memory

## LICENSE

[MIT License](LICENSE). Usage requires `@sap/cds` under SAP license terms.
6 changes: 6 additions & 0 deletions cds-plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const cds = require("@sap/cds");

// add this plugin's root to cds.env.roots
// cds find the `index.cds` file to be loaded into CDS model and available for any DB or tenancy approach
const root = __dirname;
if (!cds.env.roots.includes(root)) cds.env.roots.push(root);
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tseslint from "typescript-eslint";
import cds from "@sap/eslint-plugin-cds";

export default defineConfig({
files: ["src/**/*.{js,ts}", "**/*.cds"],
files: ["src/**/*.{js,ts}", "*.cds"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
Expand Down
32 changes: 30 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,30 @@
"require": "./dist/index.js"
}
},
"files": [
"dist/**/*",
"index.cds",
"cds-plugin.js",
"LICENSE",
"package.json",
"README.md"
],
"keywords": [
"sap",
"cap",
"cds",
"agent",
"langgraph",
"langchain",
"deepagents",
"checkpointer"
],
"dependencies": {
"@langchain/langgraph-checkpoint": "^1.1.3"
},
"devDependencies": {
"@cap-js/cds-typer": "^0.40.0",
"@sap/cds": ">=8",
"@cap-js/cds-types": "^0.18.0",
"@cap-js/sqlite": "^3.0.2",
"@changesets/cli": "^2.31.0",
Expand All @@ -38,6 +57,7 @@
"@vitest/coverage-v8": "^4.1.10",
"eslint": "^10.6.0",
"prettier": "^3.9.4",
"shelljs": "^0.10.0",
"shx": "^0.4.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.1",
Expand All @@ -49,11 +69,16 @@
"peerDependencies": {
"@sap/cds": ">=8"
},
"peerDependenciesMeta": {
"@sap/cds": {
"optional": false
}
},
"scripts": {
"dev": "npm run build:cds-types && vite build --watch",
"build": "shx rm -rf dist && npm run build:cds-types && vite build",
"build:cds-types": "cds-typer index.cds",
"test": "npm run build:cds-types && vitest run --coverage",
"build:cds-types": "node scripts/build-cds-types.mjs",
"test": "vitest run --coverage",
"lint": "eslint . --fix",
"lint:check": "eslint . --max-warnings 0",
"format": "prettier --write \"**/*.{json,ts,js,mjs,cjs,md}\"",
Expand All @@ -67,5 +92,8 @@
"publishConfig": {
"access": "public",
"provenance": true
},
"cds": {
"requires": {}
}
}
Loading
Loading