Skip to content
Myr

Merge build/108-agents-table: AGENTS.md names only fences that exist, held by a table test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by oscabriel · committed by oscabriel · parents 3b0df19, 44d40e8 · Browse files · 4 files+765 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+765 added−18 removed

  • tests:+719 added−0 removed
  • other:+46 added−18 removed

4 files+765 added−18 removed

modified:docs/adr/0011-the-fence.md+3 added-2 removed
added:packages/config/test/agents-table.test.ts+248 added
1import { NodeServices } from "@effect/platform-node";2import { describe, expect, it } from "@effect/vitest";3import { Effect } from "effect";45import type { Repo, Sources } from "./agents-table.ts";6import {7 missingEnforcers,8 principleRows,9 readAgentsTable,10 repoOf,11} from "./agents-table.ts";1213/** A repo with one enforcer of each kind, and nothing else. */14const plantedRepo: Repo = {15 configKeys: ["allowedUnstableApis"],16 diagnosticsAtError: ["globalDate"],17 files: [18 ".pi/extensions/vcs-policy/index.ts",19 "apps/cli/src/surfaces.ts",20 "debt.baseline.json",21 "scripts/gen.ts",22 ],23 ids: ["AskId"],24 lintPlugins: ["eslint", "fence"],25 lintRulesAtError: [26 "fence/no-module-level-mutable-state",27 "no-restricted-imports",28 ],29 refusals: ["StaleBase"],30 scripts: ["gen:check", "verify"],31};3233/** A file whose principles table has one row, principle 4, held by `cell`. */34const plantedTable = (cell: string) =>35 [36 "# A repo",37 "",38 "## Principles",39 "",40 "| # | Principle | Held by |",41 "| --- | --- | --- |",42 `| 4 | **One schema, many surfaces.** | ${cell} |`,43 "",44 "## Fence",45 "",46 ].join("\n");4748const audit = (cell: string) =>49 principleRows(plantedTable(cell)).flatMap((row) =>50 missingEnforcers(row, plantedRepo)51 );5253describe("the agents-table check, over a planted table", () => {54 it("fails each enforcer the repo lacks, naming its row", () => {55 expect(56 audit(57 "`scripts/nope.ts`; `nope:check`; `fence/nope`; `globalNope`; `NopeRefusal`"58 )59 ).toStrictEqual([60 "principle 4 names `scripts/nope.ts`, but the repo has no such file",61 "principle 4 names `nope:check`, but the repo has no such root package.json script",62 "principle 4 names `fence/nope`, but the repo has no such lint rule at error in oxlint.config.ts",63 "principle 4 names `globalNope`, but the repo has no such Effect diagnostic at error in tsconfig.base.json or key in tsconfig.base.json",64 "principle 4 names `NopeRefusal`, but the repo has no such refusal class in packages/protocol/src/refusal.ts or id exported from packages/protocol/src/ids.ts",65 ]);66 });6768 it("passes an enforcer of each kind that exists", () => {69 expect(70 audit(71 [72 "`scripts/gen.ts`, `apps/*/src/surfaces.ts`, `scripts/{debt,gen}.ts`, `.pi/extensions/vcs-policy/` and `debt.baseline.json`;",73 "`bun run verify` and `gen:check`;",74 "`fence/no-module-level-mutable-state`, `no-module-level-mutable-state` and `no-restricted-imports`;",75 "`globalDate` and `allowedUnstableApis`; `StaleBase` and `AskId`",76 ].join(" ")77 )78 ).toStrictEqual([]);79 });8081 it("reads nothing after No fence yet", () => {82 expect(83 audit(84 "`gen:check`. No fence yet: `scripts/nope.ts` and `nope:check` (W9 901)"85 )86 ).toStrictEqual([]);87 });8889 it("fails a row that names no enforcer and says no fence is coming", () => {90 expect(audit("The union test and an MCP tools/call test")).toStrictEqual([91 "principle 4 names no enforcer; name one, or what will hold it after No fence yet:",92 ]);93 });9495 it("passes a row whose every enforcer is still to come", () => {96 expect(audit("No fence yet: the union test (W9 901)")).toStrictEqual([]);97 });9899 it("fails an enforcer it cannot classify", () => {100 expect(audit("`git push --force`")).toStrictEqual([101 "unclassified enforcer `git push --force` in principle 4; name a file, script, rule, diagnostic or tag",102 ]);103 });104105 it("reads only the Held by cells of the table under Principles", () => {106 const markdown = [107 "# A repo",108 "",109 "Prose names `scripts/prose.ts`.",110 "",111 "## Principles",112 "",113 "A preamble names `scripts/preamble.ts`.",114 "",115 "| # | Principle | Held by |",116 "| --- | --- | --- |",117 "| 1 | **A rule** named in `scripts/principle.ts`. | `verify` |",118 "| 2 | **Another rule.** | `a\\|b` and `gen:check` |",119 "",120 "## Fence",121 "",122 "| # | Rule | Held by |",123 "| --- | --- | --- |",124 "| 3 | Another table. | `scripts/elsewhere.ts` |",125 ].join("\n");126127 expect(principleRows(markdown)).toStrictEqual([128 { enforcers: ["verify"], principle: "1", waiting: false },129 { enforcers: ["a|b", "gen:check"], principle: "2", waiting: false },130 ]);131 });132});133134/**135 * Sources shaped like the repo's: a lint preset our config extends and136 * overrides, and a test-file override that turns on its own plugin.137 */138const plantedSources: Sources = {139 files: [],140 idsSource: [141 'export const AskId = Schema.String.pipe(Schema.brand("AskId"));',142 "export type AskId = typeof AskId.Type;",143 ].join("\n"),144 oxlint: {145 extends: [146 {147 plugins: ["eslint", "typescript"],148 rules: { "no-alert": "error", "no-console": "error" },149 },150 ],151 overrides: [152 {153 files: ["**/*.test.ts"],154 plugins: ["vitest"],155 rules: { "vitest/no-disabled-tests": ["error"] },156 },157 ],158 rules: { "no-console": "off", "typescript/no-explicit-any": "warn" },159 },160 refusalSource: [161 'export class StaleBase extends Schema.TaggedError<StaleBase>()("StaleBase", {}) {}',162 "export const Refusal = Schema.Union([StaleBase]);",163 ].join("\n"),164 rootPackage: JSON.stringify({ scripts: { verify: "bun run check" } }),165 tsconfig: JSON.stringify({166 compilerOptions: {167 plugins: [168 {169 allowedUnstableApis: ["effect/rpc"],170 diagnosticSeverity: { globalDate: "error", globalRandom: "off" },171 name: "@effect/language-service",172 },173 ],174 },175 }),176};177178const auditSources = (cell: string) =>179 Effect.map(repoOf(plantedSources), (repo) =>180 principleRows(plantedTable(cell)).flatMap((row) =>181 missingEnforcers(row, repo)182 )183 );184185describe("what the repo holds, read from planted sources", () => {186 it.effect(187 "counts a lint rule as on only at error after every layer, overrides included",188 () =>189 Effect.gen(function* () {190 expect(191 yield* auditSources(192 "`no-alert`, `no-console`, `typescript/no-explicit-any` and `vitest/no-disabled-tests`"193 )194 ).toStrictEqual([195 "principle 4 names `no-console`, but the repo has no such lint rule at error in oxlint.config.ts or root package.json script",196 "principle 4 names `typescript/no-explicit-any`, but the repo has no such lint rule at error in oxlint.config.ts",197 ]);198 })199 );200201 it.effect(202 "counts a diagnostic as on only at error, and never as a config key",203 () =>204 Effect.gen(function* () {205 expect(206 yield* auditSources(207 "`globalDate`, `globalRandom` and `allowedUnstableApis`"208 )209 ).toStrictEqual([210 "principle 4 names `globalRandom`, but the repo has no such Effect diagnostic at error in tsconfig.base.json or key in tsconfig.base.json",211 ]);212 })213 );214215 it.effect(216 "reads root scripts, refusal classes and exported ids, and nothing else",217 () =>218 Effect.gen(function* () {219 expect(220 yield* auditSources("`verify`, `StaleBase`, `AskId` and `Refusal`")221 ).toStrictEqual([222 "principle 4 names `Refusal`, but the repo has no such refusal class in packages/protocol/src/refusal.ts or id exported from packages/protocol/src/ids.ts",223 ]);224 })225 );226});227228// The rows are known only once a test has read AGENTS.md, so one test checks229// every row; each line it reports names its principle.230describe("AGENTS.md's principles table", () => {231 it.live("is under ## Principles, with a Held by column", () =>232 Effect.gen(function* () {233 const { rows } = yield* readAgentsTable;234235 expect(rows).not.toHaveLength(0);236 }).pipe(Effect.provide(NodeServices.layer))237 );238239 it.live("names, in every row, only enforcers the repo has", () =>240 Effect.gen(function* () {241 const { repo, rows } = yield* readAgentsTable;242243 expect(rows.flatMap((row) => missingEnforcers(row, repo))).toStrictEqual(244 []245 );246 }).pipe(Effect.provide(NodeServices.layer))247 );248});
added:packages/config/test/agents-table.ts+471 added
1/**2 * The agents-table check's core (AGENTS.md principle 1): every enforcer the3 * principles table names under "Held by" must exist in the repo and be on.4 *5 * Only the table under `## Principles` is read, and in it only the "Held by"6 * cells, each up to "No fence yet". Each backticked enforcer there is7 * classified by its shape, then looked up:8 *9 * - a path, glob or folder (`scripts/gen.ts`, `docs/adr/*.md`,10 * `.pi/extensions/vcs-policy/`): a file git tracks, or a new one it doesn't11 * ignore, matches it;12 * - a root script (`gen:check`, `verify`, `bun run debt`): a key of the root13 * `package.json`'s `scripts`;14 * - a lint rule (`fence/no-x`, or bare `no-x`): set to error in15 * `oxlint.config.ts`, at its top level or in an override;16 * - an Effect diagnostic or a config key (camelCase): at error in17 * `tsconfig.base.json`'s `diagnosticSeverity`, or a key elsewhere in it;18 * - a refusal or an id (PascalCase): a refusal class in `refusal.ts`, or an19 * export of `ids.ts`, in `packages/protocol/src/`.20 *21 * Anything else is unclassified, and fails. So does a row that names no22 * enforcer and says nothing after "No fence yet": prose alone holds nothing.23 */24import { Effect, FileSystem, Path, Schema } from "effect";25import { ChildProcess, ChildProcessSpawner } from "effect/process";26import type { DummyRule, OxlintConfig } from "oxlint";2728import oxlintConfig from "../../../oxlint.config.ts";2930/** What the repo holds that a "Held by" cell may name. */31export interface Repo {32 /** Every file git tracks or would add, relative to the repo root. */33 readonly files: readonly string[];34 /** The root `package.json`'s script names. */35 readonly scripts: readonly string[];36 /** The plugins oxlint runs, built in or from JavaScript. */37 readonly lintPlugins: readonly string[];38 readonly lintRulesAtError: readonly string[];39 readonly diagnosticsAtError: readonly string[];40 /** Every key in `tsconfig.base.json`, except diagnostics' names. */41 readonly configKeys: readonly string[];42 readonly refusals: readonly string[];43 readonly ids: readonly string[];44}4546/** One principle's row: its number and the enforcers it claims. */47export interface Row {48 readonly principle: string;49 readonly enforcers: readonly string[];50 /** The cell says, after "No fence yet", what will hold the rest. */51 readonly waiting: boolean;52}5354type Kind =55 | "file"56 | "script"57 | "lint rule"58 | "diagnostic"59 | "config key"60 | "refusal"61 | "id";6263const CUT = "No fence yet";6465const HELD_BY = "Held by";6667const SECTION = /^## Principles\s*$/u;6869const HEADING = /^#{1,2} /u;7071const BACKTICKED = /`(?<enforcer>[^`]+)`/gu;7273const UNESCAPED_PIPE = /(?<!\\)\|/u;7475const BUN_RUN = /^bun run (?<script>\S+)/u;7677const PLUGIN_RULE = /^(?<plugin>[a-z][a-z0-9-]*)\/[a-z][a-z0-9-]*$/u;7879const GLOB = /[*?{]/u;8081const EXTENSION = /\.[a-z0-9]+$/u;8283const SCRIPT = /^[a-z][a-z0-9]*(?::[a-z0-9-]+)*$/u;8485const KEBAB = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)+$/u;8687const CAMEL = /^[a-z][a-z0-9]*(?:[A-Z][A-Za-z0-9]*)+$/u;8889const PASCAL = /^[A-Z][A-Za-z0-9]*$/u;9091/** A table line's cells, trimmed, with `\|` read as a pipe inside a cell. */92const cellsOf = (line: string) =>93 line94 .trim()95 .replace(/^\|/u, "")96 .replace(/\|$/u, "")97 .split(UNESCAPED_PIPE)98 .map((cell) => cell.trim().replaceAll(String.raw`\|`, "|"));99100/** The backticked enforcers in a "Held by" cell, before "No fence yet". */101const enforcersIn = (cell: string) =>102 Array.from(103 (cell.split(CUT)[0] ?? "").matchAll(BACKTICKED),104 (match) => match.groups?.enforcer ?? ""105 );106107/**108 * Each row of the first table under `## Principles` whose header has a109 * "Held by" column. No such table: no rows.110 */111export const principleRows = (markdown: string): readonly Row[] => {112 const lines = markdown.split("\n");113 const start = lines.findIndex((line) => SECTION.test(line));114115 if (start === -1) {116 return [];117 }118119 const end = lines.findIndex(120 (line, index) => index > start && HEADING.test(line)121 );122123 const section = lines.slice(start + 1, end === -1 ? undefined : end);124125 const header = section.findIndex(126 (line) => line.startsWith("|") && cellsOf(line).includes(HELD_BY)127 );128129 if (header === -1) {130 return [];131 }132133 const columns = cellsOf(section[header] ?? "");134 const heldBy = columns.indexOf(HELD_BY);135 const numbered = columns.indexOf("#");136 const body = section.slice(header + 2);137 const last = body.findIndex((line) => !line.startsWith("|"));138139 return body140 .slice(0, last === -1 ? undefined : last)141 .map(cellsOf)142 .map((cells, index) => ({143 enforcers: enforcersIn(cells[heldBy] ?? ""),144 principle: cells[numbered] ?? String(index + 1),145 waiting: (cells[heldBy] ?? "").includes(CUT),146 }));147};148149const GLOB_PART = /\{[^{}]*\}|\*\*\/|\*\*|\*|\?|[.+^$()|[\]{}\\]/gu;150151const WILDCARDS = new Map([152 ["*", "[^/]*"],153 ["**", ".*"],154 ["**/", "(?:.*/)?"],155 ["?", "[^/]"],156]);157158const escapeRegExp = (text: string) =>159 text.replaceAll(/[.+^$()|[\]{}\\*?]/gu, String.raw`\$&`);160161/** One part of a glob as a pattern: a wildcard, `{a,b}`, or one literal character. */162const globPart = (part: string) => {163 const wildcard = WILDCARDS.get(part);164165 if (wildcard !== undefined) {166 return wildcard;167 }168169 return part.length > 1170 ? `(?:${part.slice(1, -1).split(",").map(escapeRegExp).join("|")})`171 : escapeRegExp(part);172};173174/** `*` and `?` stay inside one folder, `**` crosses folders, `{a,b}` is either. */175const globPattern = (glob: string) =>176 new RegExp(`^${glob.replaceAll(GLOB_PART, globPart)}$`, "u");177178/** A path matches itself, a folder (with or without its slash) its files. */179const matchesFile = (token: string, files: readonly string[]) => {180 if (GLOB.test(token)) {181 const pattern = globPattern(token);182183 return files.some((file) => pattern.test(file));184 }185186 const folder = token.endsWith("/") ? token : `${token}/`;187188 return files.some((file) => file === token || file.startsWith(folder));189};190191/** `fence/no-x` matches itself; a bare `no-x` matches it under any plugin. */192const matchesRule = (token: string, rules: readonly string[]) =>193 rules.some((rule) => rule === token || rule.endsWith(`/${token}`));194195const holds: Readonly<Record<Kind, (token: string, repo: Repo) => boolean>> = {196 "config key": (token, repo) => repo.configKeys.includes(token),197 diagnostic: (token, repo) => repo.diagnosticsAtError.includes(token),198 file: (token, repo) => matchesFile(token, repo.files),199 id: (token, repo) => repo.ids.includes(token),200 "lint rule": (token, repo) => matchesRule(token, repo.lintRulesAtError),201 refusal: (token, repo) => repo.refusals.includes(token),202 script: (token, repo) =>203 repo.scripts.includes(BUN_RUN.exec(token)?.groups?.script ?? token),204};205206const described: Readonly<Record<Kind, string>> = {207 "config key": "key in tsconfig.base.json",208 diagnostic: "Effect diagnostic at error in tsconfig.base.json",209 file: "file",210 id: "id exported from packages/protocol/src/ids.ts",211 "lint rule": "lint rule at error in oxlint.config.ts",212 refusal: "refusal class in packages/protocol/src/refusal.ts",213 script: "root package.json script",214};215216/** What an enforcer could be, by its shape alone; none if it has no known shape. */217const kindsOf = (token: string, repo: Repo): readonly Kind[] => {218 if (BUN_RUN.test(token)) {219 return ["script"];220 }221222 if (/\s/u.test(token)) {223 return [];224 }225226 const plugin = PLUGIN_RULE.exec(token)?.groups?.plugin;227228 if (plugin !== undefined && repo.lintPlugins.includes(plugin)) {229 return ["lint rule"];230 }231232 if (233 token.includes("/") ||234 token.startsWith(".") ||235 GLOB.test(token) ||236 EXTENSION.test(token)237 ) {238 return ["file"];239 }240241 if (SCRIPT.test(token)) {242 return ["script"];243 }244245 if (KEBAB.test(token)) {246 return ["lint rule", "script"];247 }248249 if (CAMEL.test(token)) {250 return ["diagnostic", "config key"];251 }252253 return PASCAL.test(token) ? ["refusal", "id"] : [];254};255256/**257 * One line for each enforcer in `row` that the repo doesn't hold, or one line258 * when the row names no enforcer and no fence still to come.259 */260export const missingEnforcers = (row: Row, repo: Repo): readonly string[] => {261 if (row.enforcers.length === 0 && !row.waiting) {262 return [263 `principle ${row.principle} names no enforcer; name one, or what will hold it after ${CUT}:`,264 ];265 }266267 return row.enforcers.flatMap((token) => {268 const kinds = kindsOf(token, repo);269270 if (kinds.length === 0) {271 return [272 `unclassified enforcer \`${token}\` in principle ${row.principle}; name a file, script, rule, diagnostic or tag`,273 ];274 }275276 return kinds.some((kind) => holds[kind](token, repo))277 ? []278 : [279 `principle ${row.principle} names \`${token}\`, but the repo has no such ${kinds280 .map((kind) => described[kind])281 .join(" or ")}`,282 ];283 });284};285286const isError = (setting: DummyRule | undefined) => {287 const severity = Array.isArray(setting) ? setting[0] : setting;288289 return severity === "error" || severity === "deny" || severity === 2;290};291292/** A config, then each config it extends, innermost first. */293const layersOf = (config: OxlintConfig): readonly OxlintConfig[] => [294 ...(config.extends ?? []).flatMap(layersOf),295 config,296];297298/** The rules oxlint runs at error: top level (a later layer wins) or in an override. */299const rulesAtError = (config: OxlintConfig) => {300 const layers = layersOf(config);301302 const topLevel = new Map(303 layers.flatMap((layer) => Object.entries(layer.rules ?? {}))304 );305306 const overridden = layers.flatMap((layer) =>307 (layer.overrides ?? []).flatMap((override) =>308 Object.entries(override.rules ?? {})309 )310 );311312 return [...topLevel, ...overridden].flatMap(([rule, setting]) =>313 isError(setting) ? [rule] : []314 );315};316317/**318 * Built-in plugins each layer or override turns on, and each JavaScript319 * plugin's name: the vitest plugin, for one, is on only for test files.320 */321const pluginsOf = (config: OxlintConfig) =>322 layersOf(config)323 .flatMap((layer) => [layer, ...(layer.overrides ?? [])])324 .flatMap((scope) => [325 ...(scope.plugins ?? []),326 ...(scope.jsPlugins ?? []).map((plugin) =>327 Schema.is(Schema.String)(plugin) ? plugin : plugin.name328 ),329 ]);330331const isJsonArray = Schema.is(Schema.Array(Schema.Json));332333const isJsonObject = Schema.is(Schema.JsonObject);334335/** Every key in a JSON document, except the diagnostics' names. */336const keysOf = (json: Schema.Json): readonly string[] => {337 if (isJsonArray(json)) {338 return json.flatMap(keysOf);339 }340341 if (isJsonObject(json)) {342 return Object.entries(json).flatMap(([key, value]) => [343 key,344 ...(key === "diagnosticSeverity" ? [] : keysOf(value)),345 ]);346 }347348 return [];349};350351const RootPackage = Schema.Struct({352 scripts: Schema.Record(Schema.String, Schema.String),353});354355const TsconfigBase = Schema.Struct({356 compilerOptions: Schema.Struct({357 plugins: Schema.Array(358 Schema.Struct({359 diagnosticSeverity: Schema.optionalKey(360 Schema.Record(Schema.String, Schema.String)361 ),362 })363 ),364 }),365});366367const REFUSAL_CLASS =368 /\bclass\s+(?<name>[A-Z][A-Za-z0-9]*)\s+extends\s+Schema\.TaggedError\b/gu;369370const EXPORTED =371 /^export\s+(?:const|type|interface|class)\s+(?<name>[A-Z][A-Za-z0-9]*)/gmu;372373const namesIn = (source: string, pattern: RegExp) => [374 ...new Set(375 Array.from(source.matchAll(pattern), (match) => match.groups?.name ?? "")376 ),377];378379/** The texts and config a "Held by" cell is checked against. */380export interface Sources {381 /** Every file git tracks or would add, relative to the repo root. */382 readonly files: readonly string[];383 /** The root `package.json`. */384 readonly rootPackage: string;385 readonly oxlint: OxlintConfig;386 /** `tsconfig.base.json`. */387 readonly tsconfig: string;388 /** `packages/protocol/src/refusal.ts`. */389 readonly refusalSource: string;390 /** `packages/protocol/src/ids.ts`. */391 readonly idsSource: string;392}393394/** What the repo holds, out of its sources. */395export const repoOf = (sources: Sources) =>396 Effect.gen(function* () {397 const { scripts } = yield* Schema.decodeEffect(398 Schema.fromJsonString(RootPackage)399 )(sources.rootPackage);400401 const tsconfig = yield* Schema.decodeEffect(402 Schema.fromJsonString(Schema.Json)403 )(sources.tsconfig);404405 const { compilerOptions } =406 yield* Schema.decodeUnknownEffect(TsconfigBase)(tsconfig);407408 const repo: Repo = {409 configKeys: [...new Set(keysOf(tsconfig))],410 diagnosticsAtError: compilerOptions.plugins.flatMap((plugin) =>411 Object.entries(plugin.diagnosticSeverity ?? {}).flatMap(412 ([diagnostic, severity]) => (severity === "error" ? [diagnostic] : [])413 )414 ),415 files: sources.files,416 ids: namesIn(sources.idsSource, EXPORTED),417 lintPlugins: [...new Set(pluginsOf(sources.oxlint))],418 lintRulesAtError: [...new Set(rulesAtError(sources.oxlint))],419 refusals: namesIn(sources.refusalSource, REFUSAL_CLASS),420 scripts: Object.keys(scripts),421 };422423 return repo;424 });425426/** AGENTS.md's principle rows, and what the repo holds, read from the repo root. */427export const readAgentsTable = Effect.gen(function* () {428 const fs = yield* FileSystem.FileSystem;429 const path = yield* Path.Path;430 const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;431 // Vitest runs in the package's folder, two below the repo root.432 const root = path.resolve("..", "..");433 const read = (file: string) => fs.readFileString(path.join(root, file));434435 const lsFiles = (...args: readonly string[]) =>436 spawner.lines(437 ChildProcess.make("git", ["ls-files", ...args], { cwd: root })438 );439440 const [agents, rootPackage, tsconfig, refusalSource, idsSource] =441 yield* Effect.all(442 [443 read("AGENTS.md"),444 read("package.json"),445 read("tsconfig.base.json"),446 read("packages/protocol/src/refusal.ts"),447 read("packages/protocol/src/ids.ts"),448 ],449 { concurrency: "unbounded" }450 );451452 const listed = yield* lsFiles(453 "--cached",454 "--others",455 "--exclude-standard",456 "--deduplicate"457 );458459 const deleted = new Set(yield* lsFiles("--deleted"));460461 const repo = yield* repoOf({462 files: listed.filter((file) => file.length > 0 && !deleted.has(file)),463 idsSource,464 oxlint: oxlintConfig,465 refusalSource,466 rootPackage,467 tsconfig,468 });469470 return { repo, rows: principleRows(agents) };471});
modified:AGENTS.md+43 added-16 removed