registerScoped<T> method

void registerScoped<T>(
  1. ZenQuery<T> query,
  2. String scopedKey,
  3. String scopeId
)

Register a scoped query with automatic scope tracking

Implementation

void registerScoped<T>(ZenQuery<T> query, String scopedKey, String scopeId) {
  _queries[scopedKey] = query;

  // Track which queries belong to this scope
  _scopeQueries.putIfAbsent(scopeId, () => <String>{}).add(scopedKey);

  ZenLogger.logDebug(
    'Registered scoped query: ${query.queryKey} '
    '(scopedKey: $scopedKey, scopeId: $scopeId)',
  );
}