mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
* feat: rename working_dir to vault_dir and update documentation - Rename working_dir to vault_dir across the application - Update documentation to reflect vault_dir instead of working_dir - Change FileFrontMatter title field to name field - Update .gitignore to include vault directory - Modify file path descriptions to reference vault instead of working_dir - Update related configuration and property names accordingly * refactor(steps): rename working_path to vault_path in CRUD operations - Rename parameter from `working_path` to `vault_path` in `resolve_path` function - Update all usages in append, edit, read, and write steps to use `self.vault_path` - Update documentation comments to reflect the new parameter name - Update docstring in read.py to mention `vault_dir` instead of `vault` test(chunked_file_parser): update frontmatter field from title to name - Change frontmatter field from `title` to `name` in test cases - Update comment in background steps test to reference `vault_path` instead of `working_path` * refactor(schema): remove unused ResourceEntry import * feat(file_graph): add link scope filtering to get_inlinks/get_outlinks * feat(file-store): add scope parameter to link methods
16 lines
720 B
Python
16 lines
720 B
Python
"""File node — a file's metadata, links, and chunk references in the graph."""
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from .file_front_matter import FileFrontMatter
|
|
from .file_link import FileLink
|
|
|
|
|
|
class FileNode(BaseModel):
|
|
"""A vault file as a graph node."""
|
|
|
|
path: str = Field(default=..., description="Path relative to the vault")
|
|
st_mtime: float = Field(default=..., description="Filesystem mtime (seconds)")
|
|
links: list[FileLink] = Field(default_factory=list, description="Outgoing wikilinks")
|
|
chunk_ids: list[str] = Field(default_factory=list, description="Owned FileChunk ids")
|
|
front_matter: FileFrontMatter = Field(default_factory=FileFrontMatter, description="Parsed front matter")
|