# tools/core/strings/source.strings.ts

> 12 lines of code and 1 definition.

Tree: Coordination tree
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-source-strings-ts
Source text: https://banes-lab.com/source/coordination/tools/core/strings/source.strings.ts.txt

Listed in [tools/core/strings](https://banes-lab.com/api/source/coordination/tools/core/strings.md), after [tools/core/strings/snapshot.strings.ts](https://banes-lab.com/source/coordination/tools/core/strings/snapshot.strings.ts.md) and before [tools/core/strings/surface.strings.ts](https://banes-lab.com/source/coordination/tools/core/strings/surface.strings.ts.md).

## Definitions

- `sourceSummary` (lexical_declaration, line 1, exported)

## Used by

- [tools/core/entrypoints/source.entrypoint.ts](https://banes-lab.com/source/coordination/tools/core/entrypoints/source.entrypoint.ts.md)

## Source

```typescript
export const sourceSummary = function sourceSummary(
    applied: boolean,
    counts: { readonly files: number; readonly kept: number; readonly removed: number; readonly scanned: number },
    report: string,
): string {
    return (
        `${applied ? "CLEANED" : "PREVIEW"}  scanned=${String(counts.scanned)} ` +
        `files=${String(counts.files)} removed=${String(counts.removed)} ` +
        `attributionKept=${String(counts.kept)}\n` +
        `report: ${report}\n`
    );
};
```
