Skip to content

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

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.infer` - A single aggregated ArchletteIR with deduplicated elements || **Location** | `C:/Users/chris/git/archlette/src/1-extract/aggregator.ts:47` | **Parameters:** - `irs`: z.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.infer[]` - Array with duplicate relationships removed || **Location** | `C:/Users/chris/git/archlette/src/1-extract/aggregator.ts:184` | **Parameters:** - `relationships`: z.infer[] — - Array of relationships to deduplicate --- ##### `run()` Execute the extraction stage | Field | Value | | --- | --- | | **Type** | `function` | | **Visibility** | `public` | | **Async** | Yes || **Returns** | `Promise` || **Location** | `C:/Users/chris/git/archlette/src/1-extract/index.ts:43` | **Parameters:** - `ctx`: import("C:/Users/chris/git/archlette/src/core/types").PipelineContext — - Pipeline context with configuration and logging ---