forked from cardosofelipe/fast-next-template
Add scope management system for hierarchical memory access: - ScopeManager with hierarchy: Global → Project → Agent Type → Agent Instance → Session - ScopePolicy for access control (read, write, inherit permissions) - ScopeResolver for resolving queries across scope hierarchies with inheritance - ScopeFilter for filtering scopes by type, project, or agent - Access control enforcement with parent scope visibility - Deduplication support during resolution across scopes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
616 B
Python
34 lines
616 B
Python
# app/services/memory/scoping/__init__.py
|
|
"""
|
|
Memory Scoping
|
|
|
|
Hierarchical scoping for memory with inheritance:
|
|
Global -> Project -> Agent Type -> Agent Instance -> Session
|
|
"""
|
|
|
|
from .resolver import (
|
|
ResolutionOptions,
|
|
ResolutionResult,
|
|
ScopeFilter,
|
|
ScopeResolver,
|
|
get_scope_resolver,
|
|
)
|
|
from .scope import (
|
|
ScopeInfo,
|
|
ScopeManager,
|
|
ScopePolicy,
|
|
get_scope_manager,
|
|
)
|
|
|
|
__all__ = [
|
|
"ResolutionOptions",
|
|
"ResolutionResult",
|
|
"ScopeFilter",
|
|
"ScopeInfo",
|
|
"ScopeManager",
|
|
"ScopePolicy",
|
|
"ScopeResolver",
|
|
"get_scope_manager",
|
|
"get_scope_resolver",
|
|
]
|