Skip to content

Commit

Permalink
comment out directory stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed Aug 15, 2024
1 parent beb5c7c commit 6a1086c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { BaseCognitiveFunction } from '../../base_cognitive_function'
import { metadataManager } from './metadata_manager'
import { SeraphCore } from '../../seraphCore'

import { fileURLToPath } from 'url'
// import { fileURLToPath } from 'url'

//@ts-ignore
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
// const __filename = fileURLToPath(import.meta.url)
// const __dirname = path.dirname(__filename)

interface MemoryMetadata {
text: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import fs from 'fs/promises'
import path from 'path'

import { fileURLToPath } from 'url'
// import { fileURLToPath } from 'url'

//@ts-ignore
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
// const __filename = fileURLToPath(import.meta.url)
// const __dirname = path.dirname(__filename)
class MetadataManager {
private metadataFilePath: string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import { metadataManager } from '../cognitive_functions/memory'
import { SeraphCore } from '../seraphCore'
import { z } from 'zod'

import { fileURLToPath } from 'url'
// import { fileURLToPath } from 'url'

//@ts-ignore
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
// @ts-ignore
// const __dirname = path.dirname(fileURLToPath(import.meta.url))

class MemoryStorageMiddleware implements IMiddleware {
name = 'memoryStorage'
Expand Down

0 comments on commit 6a1086c

Please sign in to comment.