forked from VectifyAI/PageIndex
-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(filesystem): simplify PIFS core surface #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
BukeLy
merged 14 commits into
feat/pageindex-filesystem
from
refactor/pifs-core-simplification
Jul 14, 2026
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8a9f590
refactor(filesystem): simplify PIFS core surface
BukeLy bd03e15
fix(filesystem): enforce exact PIFS schema validation
BukeLy 121bef9
fix(filesystem): close PIFS migration validation gaps
BukeLy 120b1ea
fix(filesystem): validate workspace consistency
BukeLy 30df722
fix(filesystem): reject broken projection symlinks
BukeLy 81ee9ba
fix(filesystem): preserve actionable file locators
BukeLy 0447889
fix(filesystem): complete projections for registrations
BukeLy eea969c
fix(filesystem): restore registration rollback baseline
BukeLy 867fd8f
fix(filesystem): restore PageIndex registration artifacts
BukeLy 89c6208
fix(filesystem): preserve registration rollback state
BukeLy 2b235bd
fix(filesystem): preflight registration mutations
BukeLy 4a784f7
fix(filesystem): require complete workspace projection
BukeLy 0559180
fix(filesystem): close PIFS consistency gaps
BukeLy 0b105ec
fix(filesystem): encode metadata dot segments
BukeLy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,51 +1,3 @@ | ||
| from importlib import import_module | ||
| from typing import TYPE_CHECKING | ||
|
|
||
| from .commands import PIFSCommandExecutor | ||
| from .core import PageIndexFileSystem | ||
| from .types import OpenResult, SearchResult | ||
|
|
||
| if TYPE_CHECKING: | ||
| from .semantic_projection import SemanticProjectionSearchBackend | ||
| from .semantic_projection import SummaryProjectionIndexer | ||
| from .semantic_index import ( | ||
| RebuildableSemanticIndex, | ||
| SemanticIndexRecord, | ||
| SemanticSearchResult, | ||
| SQLiteVecSemanticIndex, | ||
| ) | ||
|
|
||
| _LAZY_EXPORTS = { | ||
| "SemanticProjectionSearchBackend": (".semantic_projection", "SemanticProjectionSearchBackend"), | ||
| "RebuildableSemanticIndex": (".semantic_index", "RebuildableSemanticIndex"), | ||
| "SemanticIndexRecord": (".semantic_index", "SemanticIndexRecord"), | ||
| "SemanticSearchResult": (".semantic_index", "SemanticSearchResult"), | ||
| "SQLiteVecSemanticIndex": (".semantic_index", "SQLiteVecSemanticIndex"), | ||
| "SummaryProjectionIndexer": (".semantic_projection", "SummaryProjectionIndexer"), | ||
| } | ||
|
|
||
| __all__ = [ | ||
| "OpenResult", | ||
| "SemanticProjectionSearchBackend", | ||
| "PIFSCommandExecutor", | ||
| "PageIndexFileSystem", | ||
| "RebuildableSemanticIndex", | ||
| "SearchResult", | ||
| "SemanticIndexRecord", | ||
| "SemanticSearchResult", | ||
| "SummaryProjectionIndexer", | ||
| "SQLiteVecSemanticIndex", | ||
| ] | ||
|
|
||
|
|
||
| def __getattr__(name: str): | ||
| if name in _LAZY_EXPORTS: | ||
| module_name, attribute_name = _LAZY_EXPORTS[name] | ||
| value = getattr(import_module(module_name, __name__), attribute_name) | ||
| globals()[name] = value | ||
| return value | ||
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | ||
|
|
||
|
|
||
| def __dir__() -> list[str]: | ||
| return sorted(set(globals()) | set(__all__) | set(_LAZY_EXPORTS)) | ||
| __all__ = ["PageIndexFileSystem"] |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.