wip: integrate filegraph into session

This commit is contained in:
Justin Lin committed 2025-04-24 22:05:10 +08:00
1 parent cdd22634e0
commit 2d95ca382f
13 files changed
+105 -42

No files matched your search

+5 -2
View File
@@ -2,14 +2,17 @@ import { model, Schema, Types } from 'mongoose'
export interface INode {
path: string
type: string
type: 'file' | 'directory'
discovered: boolean
children?: INode[]
}
const nodeSchema = new Schema<INode>({
path: String,
type: String,
type: {
type: String,
enum: ['file', 'directory'],
},
discovered: {
type: Boolean,
default: false,