Skip to content

Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base

add sandbox:create script

Hugo Richard1f6c778926ed
diff --git a/apps/api/package.json b/apps/api/package.json
index 48f8971..e805484 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -7,6 +7,7 @@
"dev": "nitro dev --port 3001",
"preview": "npx srvx --prod .output/",
"sync:docs": "curl -X POST http://localhost:3001/api/sync",
+ "snapshot:create": "curl -X POST http://localhost:3001/api/sandbox/snapshot",
"workflow:web": "npx workflow web",
"typecheck": "tsc --noEmit",
"lint": "eslint .",
diff --git a/package.json b/package.json
index 523da56..3cb5ce6 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"dev:api": "pnpm --filter @savoir/api dev",
"dev:chat": "pnpm --filter @savoir/chat dev",
"sync:docs": "pnpm --filter @savoir/api sync:docs",
+ "snapshot:create": "pnpm --filter @savoir/api snapshot:create",
"lint": "turbo lint",
"lint:fix": "turbo lint:fix",
"typecheck": "turbo typecheck",