@gitgov/core 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { Octokit } from '@octokit/rest';
2
2
  export { Octokit, RestEndpointMethodTypes } from '@octokit/rest';
3
- import { h as FileLister, i as FileListOptions, j as FileStats, I as IdEncoder, R as RecordStore, a as IGitModule, d as ChangedFile, e as GetCommitHistoryOptions, f as CommitInfo, g as CommitAuthor, E as ExecOptions, c as ExecResult, C as ConfigStore, G as GitGovConfig } from './index-D1RVufxB.js';
3
+ import { g as FileLister, h as FileListOptions, i as FileStats, I as IGitModule, c as ChangedFile, d as GetCommitHistoryOptions, e as CommitInfo, f as CommitAuthor, E as ExecOptions, b as ExecResult, C as ConfigStore, G as GitGovConfig } from './index-Bhc341pf.js';
4
+ import { I as IdEncoder, R as RecordStore } from './record_store-BXKWqon5.js';
4
5
 
5
6
  /**
6
7
  * Types for GitHubFileLister module.
@@ -1,66 +1,3 @@
1
- /**
2
- * IdEncoder for transforming IDs to storage-safe filenames.
3
- * Useful for characters not allowed in filesystem (e.g., `:` on Windows)
4
- * or URL-unsafe characters in remote backends.
5
- */
6
- interface IdEncoder {
7
- /** Transform ID to storage-safe string */
8
- encode: (id: string) => string;
9
- /** Recover original ID from encoded string */
10
- decode: (encoded: string) => string;
11
- }
12
- /**
13
- * Default encoder: `:` → `_` (for IDs like "human:camilo")
14
- * Reversible because IDs cannot contain `_` (see id_generator.ts)
15
- */
16
- declare const DEFAULT_ID_ENCODER: IdEncoder;
17
- /**
18
- * RecordStore<V, R, O> - Generic interface for record persistence
19
- *
20
- * Abstracts CRUD operations without assuming storage backend.
21
- * Each implementation decides how to persist (fs, memory, db, remote).
22
- *
23
- * @typeParam V - Value type (the record being stored)
24
- * @typeParam R - Return type for write operations (default: void for local, GitHubWriteResult for GitHub)
25
- * @typeParam O - Options type for write operations (default: void for local, GitHubWriteOpts for GitHub)
26
- */
27
- interface RecordStore<V, R = void, O = void> {
28
- /**
29
- * Gets a record by ID
30
- * @returns The record or null if it doesn't exist
31
- */
32
- get(id: string): Promise<V | null>;
33
- /**
34
- * Persists a record
35
- * @param id - Unique identifier
36
- * @param value - The record to persist
37
- */
38
- put(id: string, value: V, ...opts: O extends void ? [] : [opts?: O]): Promise<R>;
39
- /**
40
- * Persists multiple records in a single operation.
41
- * Local backends iterate sequentially; GitHub backend uses atomic commits.
42
- */
43
- putMany(entries: Array<{
44
- id: string;
45
- value: V;
46
- }>, ...opts: O extends void ? [] : [opts?: O]): Promise<R>;
47
- /**
48
- * Deletes a record
49
- * @param id - Identifier of the record to delete
50
- */
51
- delete(id: string, ...opts: O extends void ? [] : [opts?: O]): Promise<R>;
52
- /**
53
- * Lists all record IDs
54
- * @returns Array of IDs
55
- */
56
- list(): Promise<string[]>;
57
- /**
58
- * Checks if a record exists
59
- * @param id - Identifier to check
60
- */
61
- exists(id: string): Promise<boolean>;
62
- }
63
-
64
1
  /**
65
2
  * ConfigManager Types
66
3
  */
@@ -284,7 +221,7 @@ type MemoryFileListerOptions = {
284
221
  * FileLister Interface
285
222
  *
286
223
  * Abstracts file listing and reading operations for serverless compatibility.
287
- * Enables modules like ScopeSelector and IndexerAdapter to work without
224
+ * Enables modules like ScopeSelector and RecordProjector to work without
288
225
  * direct filesystem dependencies.
289
226
  *
290
227
  * @module file_lister
@@ -599,4 +536,4 @@ declare namespace index {
599
536
  export { index_BranchAlreadyExistsError as BranchAlreadyExistsError, index_BranchNotFoundError as BranchNotFoundError, type index_ChangedFile as ChangedFile, type index_CommitAuthor as CommitAuthor, type index_CommitInfo as CommitInfo, type index_ExecOptions as ExecOptions, type index_ExecResult as ExecResult, index_FileNotFoundError as FileNotFoundError, type index_GetCommitHistoryOptions as GetCommitHistoryOptions, index_GitCommandError as GitCommandError, index_GitError as GitError, type index_GitModuleDependencies as GitModuleDependencies, type index_IGitModule as IGitModule, index_MergeConflictError as MergeConflictError, index_RebaseConflictError as RebaseConflictError, index_RebaseNotInProgressError as RebaseNotInProgressError };
600
537
  }
601
538
 
602
- export { type AuditState as A, type ConfigStore as C, DEFAULT_ID_ENCODER as D, type ExecOptions as E, type FsFileListerOptions as F, type GitGovConfig as G, type IdEncoder as I, type MemoryFileListerOptions as M, type RecordStore as R, type SyncConfig as S, type IGitModule as a, type GitModuleDependencies as b, type ExecResult as c, type ChangedFile as d, type GetCommitHistoryOptions as e, type CommitInfo as f, type CommitAuthor as g, type FileLister as h, type FileListOptions as i, type FileStats as j, type AuditStateUpdate as k, type IConfigManager as l, type SyncDefaults as m, index as n };
539
+ export { type AuditState as A, type ConfigStore as C, type ExecOptions as E, type FsFileListerOptions as F, type GitGovConfig as G, type IGitModule as I, type MemoryFileListerOptions as M, type SyncConfig as S, type GitModuleDependencies as a, type ExecResult as b, type ChangedFile as c, type GetCommitHistoryOptions as d, type CommitInfo as e, type CommitAuthor as f, type FileLister as g, type FileListOptions as h, type FileStats as i, type AuditStateUpdate as j, type IConfigManager as k, type SyncDefaults as l, index as m };
@@ -1,9 +1,11 @@
1
- import { S as SessionManager, C as ConfigManager, B as ActorPayload, D as ActorRecord, H as AgentPayload, J as AgentRecord, K as ChangelogPayload, M as ChangelogRecord, N as CustomRecord, O as CyclePayload, Q as CycleRecord, T as EmbeddedMetadataHeader, U as EmbeddedMetadataRecord, V as ExecutionPayload, W as ExecutionRecord, X as FeedbackPayload, Y as FeedbackRecord, Z as GitGovActorRecord, _ as GitGovAgentRecord, $ as GitGovChangelogRecord, a0 as GitGovCycleRecord, a1 as GitGovError, a2 as GitGovExecutionRecord, a3 as GitGovFeedbackRecord, G as GitGovRecord, a4 as GitGovRecordPayload, a5 as GitGovRecordType, a6 as GitGovTaskRecord, a7 as Signature, a8 as TaskPayload, a9 as TaskRecord, aa as RecordStores, ab as CollaborationMetrics, ac as IMetricsAdapter, ad as IPlatformApi, ae as MetricsAdapter, af as MetricsAdapterDependencies, ag as ProductivityMetrics, ah as SystemStatus, ai as TaskHealthReport, aj as TokenConsumption, ak as ActivityEvent, al as ActorCreatedEvent, am as ActorRevokedEvent, an as AgentRegisteredEvent, ao as BaseEvent, ap as ChangelogCreatedEvent, aq as CycleCreatedEvent, ar as CycleStatusChangedEvent, as as EventBus, at as EventHandler, au as EventMetadata, av as EventSubscription, aw as ExecutionCreatedEvent, ax as FeedbackCreatedEvent, ay as GitGovEvent, s as IEventStream, az as SystemDailyTickEvent, aA as TaskCreatedEvent, aB as TaskStatusChangedEvent, aC as eventBus, aD as publishEvent, aE as subscribeToEvent, c as IIndexerAdapter, aF as IndexerAdapterDependencies, aG as IndexGenerationReport, aH as IndexData, aI as IntegrityReport, aJ as AllRecords, aK as DerivedStates, aL as EnrichedTaskRecord, aM as DerivedStateSets, aN as IntegrityError, aO as IntegrityWarning, aP as IIdentityAdapter, aQ as IdentityAdapter, aR as IdentityAdapterDependencies, I as ILintModule, aS as LintModuleDependencies, d as LintRecordContext, e as LintResult, L as LintOptions, a as LintReport$1, F as FixRecordOptions, b as FixReport, aT as FixResult, aU as LintSummary, aV as RecordEntry, R as RecordStores$1, aW as ValidationContext$1, aX as ValidatorType, aY as IExecutionAdapter, aZ as ExecutionAdapterDependencies, E as EnvironmentValidation, f as IProjectInitializer, x as FsKeyProvider, y as FsKeyProviderOptions, z as FsFileLister, g as ISyncStateModule, a_ as AuditScope$1, A as AuditStateOptions, l as AuditStateReport, j as ConflictDiff, a$ as ConflictFileDiff, b0 as ConflictInfo, b1 as ConflictType, b2 as ExpectedFilesScope, k as IntegrityViolation, i as StateDeltaFile, h as SyncStateModuleDependencies, o as SyncStatePullOptions, p as SyncStatePullResult, m as SyncStatePushOptions, n as SyncStatePushResult, q as SyncStateResolveOptions, r as SyncStateResolveResult, b3 as AgentExecutionContext, b4 as AgentOutput, w as AgentResponse, u as AgentRunnerDependencies, b5 as AgentRunnerEvent, b6 as ApiEngine, b7 as AuthConfig, b8 as AuthType, b9 as CustomEngine, ba as Engine, bb as EngineType, bc as IAgentLoader, t as IAgentRunner, bd as LocalEngine, be as McpEngine, bf as ProtocolHandler, P as ProtocolHandlerRegistry, v as RunOptions, bg as RuntimeHandler, bh as RuntimeHandlerRegistry } from './agent_runner-Cs5HXt4h.js';
1
+ import { A as ActorPayload, c as ActorRecord, d as AgentPayload, e as AgentRecord, C as ChangelogPayload, f as ChangelogRecord, g as CustomRecord, h as CyclePayload, i as CycleRecord, E as EmbeddedMetadataHeader, j as EmbeddedMetadataRecord, k as ExecutionPayload, l as ExecutionRecord, F as FeedbackPayload, m as FeedbackRecord, n as GitGovActorRecord, o as GitGovAgentRecord, p as GitGovChangelogRecord, q as GitGovCycleRecord, r as GitGovError, s as GitGovExecutionRecord, t as GitGovFeedbackRecord, G as GitGovRecord, u as GitGovRecordPayload, v as GitGovRecordType, w as GitGovTaskRecord, S as Signature, T as TaskPayload, x as TaskRecord, R as RecordStores, y as CollaborationMetrics, z as IRecordMetrics, B as ProductivityMetrics, D as RecordMetrics, H as RecordMetricsDependencies, J as SystemStatus, K as TaskHealthReport, L as ActivityEvent, M as ActorCreatedEvent, N as ActorRevokedEvent, O as AgentRegisteredEvent, Q as BaseEvent, U as ChangelogCreatedEvent, V as CycleCreatedEvent, W as CycleStatusChangedEvent, X as EventHandler, Y as EventMetadata, Z as EventSubscription, _ as ExecutionCreatedEvent, $ as FeedbackCreatedEvent, a0 as GitGovEvent, a1 as SystemDailyTickEvent, a2 as TaskCreatedEvent, a3 as TaskStatusChangedEvent, I as IRecordProjector, a4 as RecordProjectorDependencies, b as IndexData, a5 as IndexGenerationReport, a6 as IntegrityReport, a7 as AllRecords, a8 as DerivedStates, a9 as EnrichedTaskRecord, aa as DerivedStateSets, a as IRecordProjection, ab as IntegrityError, ac as IntegrityWarning, P as ProjectionContext } from './record_projection.types-B8AM7u8U.js';
2
+ import { S as SessionManager, C as ConfigManager, z as EventBus, r as IEventStream, B as eventBus, D as publishEvent, G as subscribeToEvent, H as IIdentityAdapter, J as IdentityAdapter, K as IdentityAdapterDependencies, I as ILintModule, M as LintModuleDependencies, c as LintRecordContext, d as LintResult, L as LintOptions, a as LintReport$1, F as FixRecordOptions, b as FixReport, N as FixResult, O as LintSummary, Q as RecordEntry, R as RecordStores$1, V as ValidationContext$1, T as ValidatorType, U as IExecutionAdapter, W as ExecutionAdapterDependencies, E as EnvironmentValidation, e as IProjectInitializer, w as FsKeyProvider, x as FsKeyProviderOptions, y as FsFileLister, f as ISyncStateModule, X as AuditScope$1, A as AuditStateOptions, k as AuditStateReport, i as ConflictDiff, Y as ConflictFileDiff, Z as ConflictInfo, _ as ConflictType, $ as ExpectedFilesScope, j as IntegrityViolation, h as StateDeltaFile, g as SyncStateModuleDependencies, n as SyncStatePullOptions, o as SyncStatePullResult, l as SyncStatePushOptions, m as SyncStatePushResult, p as SyncStateResolveOptions, q as SyncStateResolveResult, a0 as AgentExecutionContext, a1 as AgentOutput, v as AgentResponse, t as AgentRunnerDependencies, a2 as AgentRunnerEvent, a3 as ApiEngine, a4 as AuthConfig, a5 as AuthType, a6 as CustomEngine, a7 as Engine, a8 as EngineType, a9 as IAgentLoader, s as IAgentRunner, aa as LocalEngine, ab as McpEngine, ac as ProtocolHandler, P as ProtocolHandlerRegistry, u as RunOptions, ad as RuntimeHandler, ae as RuntimeHandlerRegistry } from './agent_runner-D7JahEKk.js';
2
3
  import { A as ActorState, G as GitGovSession, I as ISessionManager, a as SyncPreferencesUpdate, b as SyncStatus, K as KeyProvider, c as KeyProviderError, d as KeyProviderErrorCode } from './key_provider-CRpHFGjN.js';
3
- import { A as AuditState, k as AuditStateUpdate, G as GitGovConfig, l as IConfigManager, S as SyncConfig, m as SyncDefaults, D as DEFAULT_ID_ENCODER, I as IdEncoder, R as RecordStore, i as FileListOptions, h as FileLister, j as FileStats, F as FsFileListerOptions, M as MemoryFileListerOptions, a as IGitModule } from './index-D1RVufxB.js';
4
- export { C as ConfigStore, n as Git } from './index-D1RVufxB.js';
5
- import { E as EnvKeyProvider, a as EnvKeyProviderOptions, M as MockKeyProvider, b as MockKeyProviderOptions, c as MemoryFileLister } from './memory_file_lister-CfHtByeZ.js';
4
+ import { A as AuditState, j as AuditStateUpdate, G as GitGovConfig, k as IConfigManager, S as SyncConfig, l as SyncDefaults, h as FileListOptions, g as FileLister, i as FileStats, F as FsFileListerOptions, M as MemoryFileListerOptions, I as IGitModule } from './index-Bhc341pf.js';
5
+ export { C as ConfigStore, m as Git } from './index-Bhc341pf.js';
6
+ import { E as EnvKeyProvider, a as EnvKeyProviderOptions, M as MockKeyProvider, b as MockKeyProviderOptions, c as MemoryFileLister } from './memory_file_lister-C978PA8g.js';
6
7
  import { ValidateFunction } from 'ajv';
8
+ import { D as DEFAULT_ID_ENCODER, I as IdEncoder, R as RecordStore } from './record_store-BXKWqon5.js';
7
9
 
8
10
  /**
9
11
  * SessionManager Module
@@ -225,16 +227,14 @@ declare namespace index$p {
225
227
  }
226
228
 
227
229
  declare const index$o_CollaborationMetrics: typeof CollaborationMetrics;
228
- declare const index$o_IMetricsAdapter: typeof IMetricsAdapter;
229
- declare const index$o_IPlatformApi: typeof IPlatformApi;
230
- declare const index$o_MetricsAdapter: typeof MetricsAdapter;
231
- declare const index$o_MetricsAdapterDependencies: typeof MetricsAdapterDependencies;
230
+ declare const index$o_IRecordMetrics: typeof IRecordMetrics;
232
231
  declare const index$o_ProductivityMetrics: typeof ProductivityMetrics;
232
+ declare const index$o_RecordMetrics: typeof RecordMetrics;
233
+ declare const index$o_RecordMetricsDependencies: typeof RecordMetricsDependencies;
233
234
  declare const index$o_SystemStatus: typeof SystemStatus;
234
235
  declare const index$o_TaskHealthReport: typeof TaskHealthReport;
235
- declare const index$o_TokenConsumption: typeof TokenConsumption;
236
236
  declare namespace index$o {
237
- export { index$o_CollaborationMetrics as CollaborationMetrics, index$o_IMetricsAdapter as IMetricsAdapter, index$o_IPlatformApi as IPlatformApi, index$o_MetricsAdapter as MetricsAdapter, index$o_MetricsAdapterDependencies as MetricsAdapterDependencies, index$o_ProductivityMetrics as ProductivityMetrics, index$o_SystemStatus as SystemStatus, index$o_TaskHealthReport as TaskHealthReport, index$o_TokenConsumption as TokenConsumption };
237
+ export { index$o_CollaborationMetrics as CollaborationMetrics, index$o_IRecordMetrics as IRecordMetrics, index$o_ProductivityMetrics as ProductivityMetrics, index$o_RecordMetrics as RecordMetrics, index$o_RecordMetricsDependencies as RecordMetricsDependencies, index$o_SystemStatus as SystemStatus, index$o_TaskHealthReport as TaskHealthReport };
238
238
  }
239
239
 
240
240
  declare const index$n_ActivityEvent: typeof ActivityEvent;
@@ -264,20 +264,30 @@ declare namespace index$n {
264
264
  }
265
265
 
266
266
  /**
267
- * IndexerAdapter - Backend-agnostic cache implementation.
267
+ * RecordProjector - Backend-agnostic projection engine.
268
268
  *
269
- * Uses RecordStore<IndexData> abstraction for cache operations.
270
- * Caller chooses implementation: FsRecordStore, MemoryRecordStore, etc.
269
+ * Uses IRecordProjection driver pattern for output.
270
+ * Caller chooses implementation: FsRecordProjection, MemoryRecordProjection, PrismaRecordProjection, etc.
271
271
  *
272
- * @see indexer_adapter.md Section 2 - Architecture
272
+ * @see record_projection.md Section 2 - Architecture
273
273
  */
274
- declare class IndexerAdapter implements IIndexerAdapter {
275
- private metricsAdapter;
274
+ declare class RecordProjector implements IRecordProjector {
275
+ private recordMetrics;
276
276
  private stores;
277
- private cacheStore;
278
- constructor(dependencies: IndexerAdapterDependencies);
277
+ private sink;
278
+ constructor(dependencies: RecordProjectorDependencies);
279
+ /**
280
+ * [EARS-U1] Pure computation: projects raw Records into IndexData without I/O.
281
+ * [EARS-U2] Uses opts.lastCommitHash if provided, otherwise falls back to getGitCommitHash().
282
+ * [EARS-U7] Output is identical to what generateIndex() would produce.
283
+ */
284
+ computeProjection(opts?: {
285
+ lastCommitHash?: string;
286
+ }): Promise<IndexData>;
279
287
  /**
280
- * [EARS-1] Generates complete index from raw Records with MetricsAdapter integration
288
+ * [EARS-1] Generates complete index from raw Records with RecordMetrics integration.
289
+ * [EARS-U3] Delegates computation to computeProjection().
290
+ * [EARS-U4] Skips persist and sets writeTime=0 when no sink is configured.
281
291
  */
282
292
  generateIndex(): Promise<IndexGenerationReport>;
283
293
  /**
@@ -332,10 +342,11 @@ declare class IndexerAdapter implements IIndexerAdapter {
332
342
  */
333
343
  private readAllChangelogs;
334
344
  /**
335
- * Writes cache data using Store abstraction
336
- * [EARS-14] Store implementation handles atomicity internally
345
+ * Persists IndexData to sink if available.
346
+ * [EARS-U4] No-op when sink is undefined (writeTime=0).
347
+ * [EARS-14] Sink implementation handles atomicity internally.
337
348
  */
338
- private writeCacheFile;
349
+ private persistToSink;
339
350
  /**
340
351
  * Gets current git commit hash (simplified)
341
352
  */
@@ -408,17 +419,19 @@ declare const index$m_AllRecords: typeof AllRecords;
408
419
  declare const index$m_DerivedStateSets: typeof DerivedStateSets;
409
420
  declare const index$m_DerivedStates: typeof DerivedStates;
410
421
  declare const index$m_EnrichedTaskRecord: typeof EnrichedTaskRecord;
411
- declare const index$m_IIndexerAdapter: typeof IIndexerAdapter;
422
+ declare const index$m_IRecordProjection: typeof IRecordProjection;
423
+ declare const index$m_IRecordProjector: typeof IRecordProjector;
412
424
  declare const index$m_IndexData: typeof IndexData;
413
425
  declare const index$m_IndexGenerationReport: typeof IndexGenerationReport;
414
- type index$m_IndexerAdapter = IndexerAdapter;
415
- declare const index$m_IndexerAdapter: typeof IndexerAdapter;
416
- declare const index$m_IndexerAdapterDependencies: typeof IndexerAdapterDependencies;
417
426
  declare const index$m_IntegrityError: typeof IntegrityError;
418
427
  declare const index$m_IntegrityReport: typeof IntegrityReport;
419
428
  declare const index$m_IntegrityWarning: typeof IntegrityWarning;
429
+ declare const index$m_ProjectionContext: typeof ProjectionContext;
430
+ type index$m_RecordProjector = RecordProjector;
431
+ declare const index$m_RecordProjector: typeof RecordProjector;
432
+ declare const index$m_RecordProjectorDependencies: typeof RecordProjectorDependencies;
420
433
  declare namespace index$m {
421
- export { index$m_AllRecords as AllRecords, index$m_DerivedStateSets as DerivedStateSets, index$m_DerivedStates as DerivedStates, index$m_EnrichedTaskRecord as EnrichedTaskRecord, index$m_IIndexerAdapter as IIndexerAdapter, index$m_IndexData as IndexData, index$m_IndexGenerationReport as IndexGenerationReport, index$m_IndexerAdapter as IndexerAdapter, index$m_IndexerAdapterDependencies as IndexerAdapterDependencies, index$m_IntegrityError as IntegrityError, index$m_IntegrityReport as IntegrityReport, index$m_IntegrityWarning as IntegrityWarning };
434
+ export { index$m_AllRecords as AllRecords, index$m_DerivedStateSets as DerivedStateSets, index$m_DerivedStates as DerivedStates, index$m_EnrichedTaskRecord as EnrichedTaskRecord, index$m_IRecordProjection as IRecordProjection, index$m_IRecordProjector as IRecordProjector, index$m_IndexData as IndexData, index$m_IndexGenerationReport as IndexGenerationReport, index$m_IntegrityError as IntegrityError, index$m_IntegrityReport as IntegrityReport, index$m_IntegrityWarning as IntegrityWarning, index$m_ProjectionContext as ProjectionContext, index$m_RecordProjector as RecordProjector, index$m_RecordProjectorDependencies as RecordProjectorDependencies };
422
435
  }
423
436
 
424
437
  declare const index$l_IIdentityAdapter: typeof IIdentityAdapter;
@@ -450,7 +463,7 @@ declare namespace index$l {
450
463
  */
451
464
  declare class LintModule implements ILintModule {
452
465
  private readonly stores;
453
- private readonly indexerAdapter;
466
+ private readonly projector;
454
467
  /**
455
468
  * Constructor for pure LintModule.
456
469
  *
@@ -647,7 +660,7 @@ declare class ExecutionAdapter implements IExecutionAdapter {
647
660
  *
648
661
  * Description: Gets all ExecutionRecords associated with a specific Task.
649
662
  * Implementation: Reads all records and filters by matching taskId.
650
- * Usage: Invoked by `gitgov exec list` and MetricsAdapter for staleness calculations.
663
+ * Usage: Invoked by `gitgov exec list` and RecordMetrics for staleness calculations.
651
664
  * Returns: Array of ExecutionRecords filtered for the task.
652
665
  */
653
666
  getExecutionsByTask(taskId: string): Promise<ExecutionRecord[]>;
@@ -656,7 +669,7 @@ declare class ExecutionAdapter implements IExecutionAdapter {
656
669
  *
657
670
  * Description: Gets all ExecutionRecords in the system for complete indexation.
658
671
  * Implementation: Complete read from record store without filters.
659
- * Usage: Invoked by `gitgov exec list --all` and MetricsAdapter for general calculations.
672
+ * Usage: Invoked by `gitgov exec list --all` and RecordMetrics for general calculations.
660
673
  * Returns: Complete array of all ExecutionRecords.
661
674
  */
662
675
  getAllExecutions(): Promise<ExecutionRecord[]>;
@@ -886,7 +899,7 @@ declare class FeedbackAdapter implements IFeedbackAdapter {
886
899
  *
887
900
  * Description: Gets all FeedbackRecords in the system for complete indexation.
888
901
  * Implementation: Complete read from record store without filters.
889
- * Usage: Invoked by `gitgov feedback list` and by MetricsAdapter for calculations.
902
+ * Usage: Invoked by `gitgov feedback list` and by RecordMetrics for calculations.
890
903
  * Returns: Complete array of all FeedbackRecords.
891
904
  */
892
905
  getAllFeedback(): Promise<FeedbackRecord[]>;
@@ -1102,7 +1115,7 @@ type BacklogAdapterDependencies = {
1102
1115
  feedbackAdapter: FeedbackAdapter;
1103
1116
  executionAdapter: ExecutionAdapter;
1104
1117
  changelogAdapter: ChangelogAdapter;
1105
- metricsAdapter: MetricsAdapter;
1118
+ metricsAdapter: RecordMetrics;
1106
1119
  workflowAdapter: IWorkflow;
1107
1120
  identity: IdentityAdapter;
1108
1121
  eventBus: IEventStream;
@@ -1266,11 +1279,11 @@ declare class BacklogAdapter implements IBacklogAdapter {
1266
1279
  */
1267
1280
  handleCycleStatusChanged(event: CycleStatusChangedEvent): Promise<void>;
1268
1281
  /**
1269
- * Gets system status by delegating to MetricsAdapter
1282
+ * Gets system status by delegating to RecordMetrics
1270
1283
  */
1271
1284
  getSystemStatus(): Promise<SystemStatus>;
1272
1285
  /**
1273
- * Gets task health by delegating to MetricsAdapter
1286
+ * Gets task health by delegating to RecordMetrics
1274
1287
  */
1275
1288
  getTaskHealth(taskId: string): Promise<TaskHealthReport>;
1276
1289
  /**
@@ -1591,7 +1604,6 @@ declare namespace index$d {
1591
1604
  type index$c_AgentAdapter = AgentAdapter;
1592
1605
  declare const index$c_AgentAdapter: typeof AgentAdapter;
1593
1606
  type index$c_AgentAdapterDependencies = AgentAdapterDependencies;
1594
- declare const index$c_AllRecords: typeof AllRecords;
1595
1607
  type index$c_AuditReport = AuditReport;
1596
1608
  type index$c_BacklogAdapter = BacklogAdapter;
1597
1609
  declare const index$c_BacklogAdapter: typeof BacklogAdapter;
@@ -1601,10 +1613,6 @@ type index$c_ChangelogAdapter = ChangelogAdapter;
1601
1613
  declare const index$c_ChangelogAdapter: typeof ChangelogAdapter;
1602
1614
  type index$c_ChangelogAdapterDependencies = ChangelogAdapterDependencies;
1603
1615
  type index$c_ChangelogListOptions = ChangelogListOptions;
1604
- declare const index$c_CollaborationMetrics: typeof CollaborationMetrics;
1605
- declare const index$c_DerivedStateSets: typeof DerivedStateSets;
1606
- declare const index$c_DerivedStates: typeof DerivedStates;
1607
- declare const index$c_EnrichedTaskRecord: typeof EnrichedTaskRecord;
1608
1616
  declare const index$c_EnvironmentValidation: typeof EnvironmentValidation;
1609
1617
  type index$c_ExecutionAdapter = ExecutionAdapter;
1610
1618
  declare const index$c_ExecutionAdapter: typeof ExecutionAdapter;
@@ -1619,25 +1627,11 @@ type index$c_IChangelogAdapter = IChangelogAdapter;
1619
1627
  declare const index$c_IExecutionAdapter: typeof IExecutionAdapter;
1620
1628
  type index$c_IFeedbackAdapter = IFeedbackAdapter;
1621
1629
  declare const index$c_IIdentityAdapter: typeof IIdentityAdapter;
1622
- declare const index$c_IIndexerAdapter: typeof IIndexerAdapter;
1623
- declare const index$c_IMetricsAdapter: typeof IMetricsAdapter;
1624
- declare const index$c_IPlatformApi: typeof IPlatformApi;
1625
1630
  type index$c_IProjectAdapter = IProjectAdapter;
1626
1631
  type index$c_IWorkflow = IWorkflow;
1627
1632
  declare const index$c_IdentityAdapter: typeof IdentityAdapter;
1628
1633
  declare const index$c_IdentityAdapterDependencies: typeof IdentityAdapterDependencies;
1629
- declare const index$c_IndexData: typeof IndexData;
1630
- declare const index$c_IndexGenerationReport: typeof IndexGenerationReport;
1631
- type index$c_IndexerAdapter = IndexerAdapter;
1632
- declare const index$c_IndexerAdapter: typeof IndexerAdapter;
1633
- declare const index$c_IndexerAdapterDependencies: typeof IndexerAdapterDependencies;
1634
- declare const index$c_IntegrityError: typeof IntegrityError;
1635
- declare const index$c_IntegrityReport: typeof IntegrityReport;
1636
- declare const index$c_IntegrityWarning: typeof IntegrityWarning;
1637
1634
  type index$c_LintReport = LintReport;
1638
- declare const index$c_MetricsAdapter: typeof MetricsAdapter;
1639
- declare const index$c_MetricsAdapterDependencies: typeof MetricsAdapterDependencies;
1640
- declare const index$c_ProductivityMetrics: typeof ProductivityMetrics;
1641
1635
  type index$c_ProjectAdapter = ProjectAdapter;
1642
1636
  declare const index$c_ProjectAdapter: typeof ProjectAdapter;
1643
1637
  type index$c_ProjectAdapterDependencies = ProjectAdapterDependencies;
@@ -1646,16 +1640,13 @@ type index$c_ProjectInfo = ProjectInfo;
1646
1640
  type index$c_ProjectInitOptions = ProjectInitOptions;
1647
1641
  type index$c_ProjectInitResult = ProjectInitResult;
1648
1642
  type index$c_ProjectReport = ProjectReport;
1649
- declare const index$c_SystemStatus: typeof SystemStatus;
1650
- declare const index$c_TaskHealthReport: typeof TaskHealthReport;
1651
1643
  type index$c_TemplateProcessingResult = TemplateProcessingResult;
1652
- declare const index$c_TokenConsumption: typeof TokenConsumption;
1653
1644
  type index$c_ValidationContext = ValidationContext;
1654
1645
  type index$c_WorkflowAdapter = WorkflowAdapter;
1655
1646
  declare const index$c_WorkflowAdapter: typeof WorkflowAdapter;
1656
1647
  type index$c_WorkflowAdapterDependencies = WorkflowAdapterDependencies;
1657
1648
  declare namespace index$c {
1658
- export { index$c_AgentAdapter as AgentAdapter, type index$c_AgentAdapterDependencies as AgentAdapterDependencies, index$c_AllRecords as AllRecords, type index$c_AuditReport as AuditReport, index$c_BacklogAdapter as BacklogAdapter, type index$c_BacklogAdapterConfig as BacklogAdapterConfig, type index$c_BacklogAdapterDependencies as BacklogAdapterDependencies, index$c_ChangelogAdapter as ChangelogAdapter, type index$c_ChangelogAdapterDependencies as ChangelogAdapterDependencies, type index$c_ChangelogListOptions as ChangelogListOptions, index$c_CollaborationMetrics as CollaborationMetrics, index$c_DerivedStateSets as DerivedStateSets, index$c_DerivedStates as DerivedStates, index$c_EnrichedTaskRecord as EnrichedTaskRecord, index$c_EnvironmentValidation as EnvironmentValidation, index$c_ExecutionAdapter as ExecutionAdapter, index$c_ExecutionAdapterDependencies as ExecutionAdapterDependencies, index$c_FeedbackAdapter as FeedbackAdapter, type index$c_FeedbackAdapterDependencies as FeedbackAdapterDependencies, type index$c_FeedbackThread as FeedbackThread, type index$c_IAgentAdapter as IAgentAdapter, type index$c_IBacklogAdapter as IBacklogAdapter, type index$c_IChangelogAdapter as IChangelogAdapter, index$c_IExecutionAdapter as IExecutionAdapter, type index$c_IFeedbackAdapter as IFeedbackAdapter, index$c_IIdentityAdapter as IIdentityAdapter, index$c_IIndexerAdapter as IIndexerAdapter, index$c_IMetricsAdapter as IMetricsAdapter, index$c_IPlatformApi as IPlatformApi, type index$c_IProjectAdapter as IProjectAdapter, type index$c_IWorkflow as IWorkflow, index$c_IdentityAdapter as IdentityAdapter, index$c_IdentityAdapterDependencies as IdentityAdapterDependencies, index$c_IndexData as IndexData, index$c_IndexGenerationReport as IndexGenerationReport, index$c_IndexerAdapter as IndexerAdapter, index$c_IndexerAdapterDependencies as IndexerAdapterDependencies, index$c_IntegrityError as IntegrityError, index$c_IntegrityReport as IntegrityReport, index$c_IntegrityWarning as IntegrityWarning, type index$c_LintReport as LintReport, index$c_MetricsAdapter as MetricsAdapter, index$c_MetricsAdapterDependencies as MetricsAdapterDependencies, index$c_ProductivityMetrics as ProductivityMetrics, index$c_ProjectAdapter as ProjectAdapter, type index$c_ProjectAdapterDependencies as ProjectAdapterDependencies, type index$c_ProjectContext as ProjectContext, type index$c_ProjectInfo as ProjectInfo, type index$c_ProjectInitOptions as ProjectInitOptions, type index$c_ProjectInitResult as ProjectInitResult, type index$c_ProjectReport as ProjectReport, index$c_SystemStatus as SystemStatus, index$c_TaskHealthReport as TaskHealthReport, type index$c_TemplateProcessingResult as TemplateProcessingResult, index$c_TokenConsumption as TokenConsumption, type index$c_ValidationContext as ValidationContext, index$c_WorkflowAdapter as WorkflowAdapter, type index$c_WorkflowAdapterDependencies as WorkflowAdapterDependencies };
1649
+ export { index$c_AgentAdapter as AgentAdapter, type index$c_AgentAdapterDependencies as AgentAdapterDependencies, type index$c_AuditReport as AuditReport, index$c_BacklogAdapter as BacklogAdapter, type index$c_BacklogAdapterConfig as BacklogAdapterConfig, type index$c_BacklogAdapterDependencies as BacklogAdapterDependencies, index$c_ChangelogAdapter as ChangelogAdapter, type index$c_ChangelogAdapterDependencies as ChangelogAdapterDependencies, type index$c_ChangelogListOptions as ChangelogListOptions, index$c_EnvironmentValidation as EnvironmentValidation, index$c_ExecutionAdapter as ExecutionAdapter, index$c_ExecutionAdapterDependencies as ExecutionAdapterDependencies, index$c_FeedbackAdapter as FeedbackAdapter, type index$c_FeedbackAdapterDependencies as FeedbackAdapterDependencies, type index$c_FeedbackThread as FeedbackThread, type index$c_IAgentAdapter as IAgentAdapter, type index$c_IBacklogAdapter as IBacklogAdapter, type index$c_IChangelogAdapter as IChangelogAdapter, index$c_IExecutionAdapter as IExecutionAdapter, type index$c_IFeedbackAdapter as IFeedbackAdapter, index$c_IIdentityAdapter as IIdentityAdapter, type index$c_IProjectAdapter as IProjectAdapter, type index$c_IWorkflow as IWorkflow, index$c_IdentityAdapter as IdentityAdapter, index$c_IdentityAdapterDependencies as IdentityAdapterDependencies, type index$c_LintReport as LintReport, index$c_ProjectAdapter as ProjectAdapter, type index$c_ProjectAdapterDependencies as ProjectAdapterDependencies, type index$c_ProjectContext as ProjectContext, type index$c_ProjectInfo as ProjectInfo, type index$c_ProjectInitOptions as ProjectInitOptions, type index$c_ProjectInitResult as ProjectInitResult, type index$c_ProjectReport as ProjectReport, type index$c_TemplateProcessingResult as TemplateProcessingResult, type index$c_ValidationContext as ValidationContext, index$c_WorkflowAdapter as WorkflowAdapter, type index$c_WorkflowAdapterDependencies as WorkflowAdapterDependencies };
1659
1650
  }
1660
1651
 
1661
1652
  /**
@@ -7106,4 +7097,4 @@ declare namespace index {
7106
7097
  export { type index_ActiveWaiver as ActiveWaiver, type index_AuditContentsInput as AuditContentsInput, type index_AuditOptions as AuditOptions, type index_AuditResult as AuditResult, type index_AuditScope as AuditScope, type index_AuditSummary as AuditSummary, type index_AuditTarget as AuditTarget, type index_CodeScope as CodeScope, type index_CreateWaiverOptions as CreateWaiverOptions, type index_FailOnSeverity as FailOnSeverity, type index_FileContent as FileContent, type index_GitgovScope as GitgovScope, type index_GroupByOption as GroupByOption, type index_IWaiverReader as IWaiverReader, type index_JiraScope as JiraScope, type index_OutputFormat as OutputFormat, type index_ScopeConfig as ScopeConfig, index_ScopeSelector as ScopeSelector, index_ScoringEngine as ScoringEngine, type index_SourceAuditorDependencies as SourceAuditorDependencies, index_SourceAuditorModule as SourceAuditorModule, type index_WaiverMetadata as WaiverMetadata, index_WaiverReader as WaiverReader, type index_WaiverStatus as WaiverStatus, index_WaiverWriter as WaiverWriter };
7107
7098
  }
7108
7099
 
7109
- export { ActivityEvent, ActorRecord, ActorState, index$c as Adapters, AgentRecord, AgentResponse, AllRecords, AuditState, AuditStateReport, index$f as BacklogAdapter, index$g as ChangelogAdapter, ChangelogRecord, CollaborationMetrics, index$r as Config, index$b as Crypto, CustomRecord, CycleRecord, DerivedStates, index$2 as DiagramGenerator, EmbeddedMetadataRecord, EnrichedTaskRecord, EnvironmentValidation, index$n as EventBus, index$j as ExecutionAdapter, ExecutionRecord, index$a as Factories, index$i as FeedbackAdapter, FeedbackRecord, index$8 as FileLister, index$1 as FindingDetector, FixReport, GitGovActorRecord, GitGovAgentRecord, GitGovChangelogRecord, GitGovConfig, GitGovCycleRecord, GitGovExecutionRecord, GitGovFeedbackRecord, GitGovRecord, GitGovRecordPayload, GitGovRecordType, GitGovTaskRecord, IAgentRunner, IConfigManager, FileLister as IFileLister, IIdentityAdapter, IIndexerAdapter, KeyProvider as IKeyProvider, ILintModule, IMetricsAdapter, ISessionManager, ISyncStateModule, IdEncoder, index$l as IdentityAdapter, IndexData, IndexGenerationReport, index$m as IndexerAdapter, IndexerAdapterDependencies, IntegrityReport, index$9 as KeyProvider, index$k as Lint, LintOptions, LintReport$1 as LintReport, LintResult, index$7 as Logger, index$o as MetricsAdapter, ProductivityMetrics, index$d as ProjectAdapter, type ProjectInitResult, index$e as ProjectInitializer, RecordStore, RecordStores$1 as RecordStores, index$q as Records, RunOptions, index$3 as Runner, index$6 as Schemas, index$s as Session, Signature, index as SourceAuditor, index$p as Store, index$5 as SyncState, SyncStatePullResult, SyncStatePushResult, SyncStateResolveResult, SyncStatus, SystemStatus, TaskHealthReport, TaskRecord, index$4 as Validation, ValidatorType, index$h as WorkflowAdapter, type WorkflowRecord };
7100
+ export { ActivityEvent, ActorRecord, ActorState, index$c as Adapters, AgentRecord, AgentResponse, AllRecords, AuditState, AuditStateReport, index$f as BacklogAdapter, index$g as ChangelogAdapter, ChangelogRecord, CollaborationMetrics, index$r as Config, index$b as Crypto, CustomRecord, CycleRecord, DerivedStates, index$2 as DiagramGenerator, EmbeddedMetadataRecord, EnrichedTaskRecord, EnvironmentValidation, index$n as EventBus, index$j as ExecutionAdapter, ExecutionRecord, index$a as Factories, index$i as FeedbackAdapter, FeedbackRecord, index$8 as FileLister, index$1 as FindingDetector, FixReport, GitGovActorRecord, GitGovAgentRecord, GitGovChangelogRecord, GitGovConfig, GitGovCycleRecord, GitGovExecutionRecord, GitGovFeedbackRecord, GitGovRecord, GitGovRecordPayload, GitGovRecordType, GitGovTaskRecord, IAgentRunner, IConfigManager, FileLister as IFileLister, IIdentityAdapter, KeyProvider as IKeyProvider, ILintModule, IRecordMetrics, IRecordProjection, IRecordProjector, ISessionManager, ISyncStateModule, IdEncoder, index$l as IdentityAdapter, IndexData, IndexGenerationReport, IntegrityReport, index$9 as KeyProvider, index$k as Lint, LintOptions, LintReport$1 as LintReport, LintResult, index$7 as Logger, ProductivityMetrics, index$d as ProjectAdapter, type ProjectInitResult, index$e as ProjectInitializer, ProjectionContext, index$o as RecordMetrics, RecordMetricsDependencies, index$m as RecordProjection, RecordProjectorDependencies, RecordStore, RecordStores$1 as RecordStores, index$q as Records, RunOptions, index$3 as Runner, index$6 as Schemas, index$s as Session, Signature, index as SourceAuditor, index$p as Store, index$5 as SyncState, SyncStatePullResult, SyncStatePushResult, SyncStateResolveResult, SyncStatus, SystemStatus, TaskHealthReport, TaskRecord, index$4 as Validation, ValidatorType, index$h as WorkflowAdapter, type WorkflowRecord };