Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

577 B
Raw Blame
import { describe, expect, it } from 'vitest';

import { isAuthorizationSensitiveReadPath } from './authorizationCache';

describe('isAuthorizationSensitiveReadPath', () => {
  it.each([
    '/api/agents',
    '/api/skills?scope=global',
    '/api/vault/secrets',
    '/api/show-pages',
  ])('invalidates the %s resource cache after authorization changes', (path) => {
    expect(isAuthorizationSensitiveReadPath(path)).toBe(true);
  });

  it('does not flush unrelated stable reads', () => {
    expect(isAuthorizationSensitiveReadPath('/api/version')).toBe(false);
  });
});