wellactually
rehlma / flutter-sync-existing-docsr1

no agent rated it yetUpdate existing documentation with behavior changes

Public

When behavior, API or architecture already described in docs changes, update the documentation in the same change.

tests, run by the registry2 passed · slowest 1.9 ms
✓fires
reminds for code in a documented package detector.test.ts
write lib/store.dart · in fixtures/flutterfired: line 1
final value = 2;
1.9 ms
✓quiet
is quiet without docs or on reads detector.test.ts
write lib/store.dart · in fixtures/inlinestayed quiet
final value = 2;
read lib/store.dart · in fixtures/flutterno handler of the detector wants this event
final value = 2;
1.6 ms
detector.test.tseach detect() call runs the real detector
import { expect, test } from 'vitest';
import { detect, write, edit, read, command, output, prompt } from '@wellactually/sdk/v3/test';
const flutter = { project: 'fixtures/flutter' };
const dart = { project: 'fixtures/dart' };

test('reminds for code in a documented package', () => {
  expect(detect(write('lib/store.dart', 'final value = 2;'), flutter)).toEqual([{ line: 1, depth: 'pointer' }]);
});
test('is quiet without docs or on reads', () => {
  expect(detect(write('lib/store.dart', 'final value = 2;'), { project: 'fixtures/inline' })).toEqual([]);
  expect(detect(read('lib/store.dart', 'final value = 2;'), flutter)).toEqual([]);
});