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/eighty-owls-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mi8y/cds-langgraph-persistence": patch
---

Updated path from `srv/` to `db/` for the generated CDS files
2 changes: 2 additions & 0 deletions .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
hotfix
scopes: |
cds-langgraph-persistence
cds-langgraph-checkpointer
cds-langgraph-memorystore
cds-langchain-vectorstore
cds-langchain-telemetry
docs
Expand Down
8 changes: 4 additions & 4 deletions packages/cds-langgraph-persistence/lib/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ async function writeCdsFile(cdsFileRelPath, cdsContent, description) {
}

async function addCheckpointerEntities() {
const srvRelPath = cds.env.folders?.srv || "srv/";
const dbPath = cds.env.folders?.db || "db/";
const cdsFileRelPath = cds.utils.path.join(
srvRelPath,
dbPath,
"langgraph-checkpointer.cds",
);
await writeCdsFile(
Expand All @@ -66,9 +66,9 @@ async function addCheckpointerEntities() {
}

async function addMemoryStoreEntities() {
const srvRelPath = cds.env.folders?.srv || "srv/";
const dbPath = cds.env.folders?.db || "db/";
const cdsFileRelPath = cds.utils.path.join(
srvRelPath,
dbPath,
"langgraph-memorystore.cds",
);
await writeCdsFile(
Expand Down
6 changes: 4 additions & 2 deletions packages/integration-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ for combo in "${VERSIONS[@]}"; do

echo ""
echo "→ Running 'add' command..."
pnpm exec cds add langgraph-persistence
pnpm exec cds add langgraph-checkpointer
pnpm exec cds add langgraph-memorystore

echo ""
echo "→ Running tests..."
Expand All @@ -103,7 +104,8 @@ for combo in "${VERSIONS[@]}"; do
echo ""
echo "→ Cleaning up..."
rm -rf node_modules pnpm-lock.yaml
rm srv/langgraph-persistence.cds 2>/dev/null || true
rm db/langgraph-checkpointer.cds 2>/dev/null || true
rm db/langgraph-memorystore.cds 2>/dev/null || true

popd > /dev/null
done
Expand Down
Loading