# tools/core/strings/sweep.strings.ts

> 14 lines of code and 3 definitions.

Tree: Coordination tree
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-sweep-strings-ts
Source text: https://banes-lab.com/assets/sources/source.110ffd8327e962847a59167fdbf0ff253fc12b66330f7153c6fe7dad56b58860.generated.txt

## Definitions

- `swept` (lexical_declaration, line 11, exported)
- `sweepHeld` (lexical_declaration, line 1, exported)
- `SWEEP_CONTENDED` (lexical_declaration, line 9, exported)

## Used by

- [tools/core/runners/sweep.runner.ts](https://banes-lab.com/source/coordination/tools/core/runners/sweep.runner.ts.md)

## Source

```typescript
export const sweepHeld = function sweepHeld(held: readonly string[]): string {
    return (
        `SWEEP HELD  ${String(held.length)} item(s) stay on the board because an addressee has not been handed them ` +
        `yet: ${held.join("; ")}. An addressee writing after an item shows they were active, not that they read it, ` +
        "so each item waits until every addressee's wait has delivered it.\n"
    );
};

export const SWEEP_CONTENDED = "SWEEP HELD  The board changed during the sweep, so nothing was removed.\n";

export const swept = function swept(keys: readonly string[]): string {
    return (
        `SWEPT  ${String(keys.length)} item(s) that every addressee has been handed were moved whole to the ` +
        `history file: ${keys.join(", ")}\n`
    );
};
```
