Skip to content

Commit 5db73dc

Browse files
committed
fix(build): resolve nextjs ts errors and force vercel sdk build
- Changed frontend build script to 'npm run build --prefix .. && next build' to ensure the SDK dist folder is generated on Vercel before Next.js compiles - Exposed loadRegistry() as public in AgentRuntime so Next.js strict TS compiler accepts calls to it when index.d.ts is generated - Re-synced lockfiles and bumped SDK version to v1.5.2
1 parent 7b923d3 commit 5db73dc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"scripts": {
55
"dev": "next dev",
6-
"build": "next build",
6+
"build": "npm run build --prefix .. && next build",
77
"start": "next start",
88
"lint": "eslint"
99
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arienjain/agent-db",
3-
"version": "1.5.1",
3+
"version": "1.5.0",
44
"description": "Persistent, encrypted, and permission-controlled memory for autonomous AI agents.",
55
"main": "dist/index.cjs",
66
"module": "dist/index.js",

src/lib/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ export class AgentRuntime {
620620
await fs.writeFile(indexPath, JSON.stringify(indexer, null, 2), 'utf-8');
621621
}
622622

623-
private async loadRegistry(): Promise<Record<string, string>> {
623+
public async loadRegistry(): Promise<Record<string, string>> {
624624
// 1. Try Decentralized Registry first (Device-Agnostic)
625625
if (this.rootIpnsName) {
626626
const cid = await StorachaService.resolveIpns(this.rootIpnsName.toString());

0 commit comments

Comments
 (0)