-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #433 from ai16z/imports
fix: linting and imports ready for npm
- Loading branch information
Showing
19 changed files
with
192 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,6 +252,7 @@ await memoryManager.createMemory({ | |
roomId, | ||
}); | ||
``` | ||
|
||
--- | ||
|
||
## Further Reading | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { describe, it, expect } from 'vitest'; | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
import { describe, it, expect } from "vitest"; | ||
import fs from "fs"; | ||
import path from "path"; | ||
|
||
describe('Environment Setup', () => { | ||
it('should verify .env.test file exists', () => { | ||
describe("Environment Setup", () => { | ||
it("should verify .env.test file exists", () => { | ||
const possiblePaths = [ | ||
path.join(process.cwd(), '.env.test'), | ||
path.join(process.cwd(), 'packages/core/.env.test'), | ||
path.join(__dirname, '../../.env.test'), | ||
path.join(__dirname, '../.env.test'), | ||
path.join(__dirname, '.env.test'), | ||
path.join(process.cwd(), ".env.test"), | ||
path.join(process.cwd(), "packages/core/.env.test"), | ||
path.join(__dirname, "../../.env.test"), | ||
path.join(__dirname, "../.env.test"), | ||
path.join(__dirname, ".env.test"), | ||
]; | ||
|
||
console.log('Current working directory:', process.cwd()); | ||
console.log('__dirname:', __dirname); | ||
const existingPaths = possiblePaths.filter(p => { | ||
console.log("Current working directory:", process.cwd()); | ||
console.log("__dirname:", __dirname); | ||
|
||
const existingPaths = possiblePaths.filter((p) => { | ||
const exists = fs.existsSync(p); | ||
console.log(`Path ${p} exists: ${exists}`); | ||
return exists; | ||
}); | ||
|
||
expect(existingPaths.length).toBeGreaterThan(0); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.