extractors — Code View¶
← Back to Container | ← Back to System
Component Information¶
| Field | Value |
|---|---|
| Component | extractors |
| Container | Application |
| Type | module |
| Description | ArchletteIR aggregation utilities | Extraction stage of the AAC pipeline |
| --- |
Code Structure¶
Class Diagram¶

Code Elements¶
5 code element(s)
#### Functions ##### `aggregateIRs()` Aggregate multiple ArchletteIR objects into a single unified IR | Field | Value | | --- | --- | | **Type** | `function` | | **Visibility** | `public` | | **Returns** | `z.inferz.infer[] — - Array of ArchletteIR objects to merge
**Examples:**
---
##### `deduplicateById()`
Deduplicate array of entities by their ID field
| Field | Value |
| --- | --- |
| **Type** | `function` |
| **Visibility** | `private` |
| **Returns** | `T[]` - Array with duplicates removed (first occurrence preserved, descriptions merged) || **Location** | `C:/Users/chris/git/archlette/src/1-extract/aggregator.ts:104` |
**Parameters:**
- `items`: T[] — - Array of entities with id property
---
##### `deduplicateByName()`
Deduplicate array of entities by their name field
| Field | Value |
| --- | --- |
| **Type** | `function` |
| **Visibility** | `private` |
| **Returns** | `T[]` - Array with duplicates removed (first occurrence preserved, descriptions merged) || **Location** | `C:/Users/chris/git/archlette/src/1-extract/aggregator.ts:142` |
**Parameters:**
- `items`: T[] — - Array of entities with name property
---
##### `deduplicateRelationships()`
Deduplicate relationships by source+destination+stereotype combination
| Field | Value |
| --- | --- |
| **Type** | `function` |
| **Visibility** | `private` |
| **Returns** | `z.inferz.infer[] — - Array of relationships to deduplicate
---
##### `run()`
Execute the extraction stage
| Field | Value |
| --- | --- |
| **Type** | `function` |
| **Visibility** | `public` |
| **Async** | Yes || **Returns** | `Promiseimport("C:/Users/chris/git/archlette/src/core/types").PipelineContext — - Pipeline context with configuration and logging
---