@gitgov/core 1.10.1 → 1.12.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.
- package/dist/src/index.d.ts +1491 -415
- package/dist/src/index.js +1227 -23
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -765,39 +765,39 @@ declare class GitGovError extends Error {
|
|
|
765
765
|
constructor(message: string, code: string);
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
type index$
|
|
769
|
-
type index$
|
|
770
|
-
type index$
|
|
771
|
-
type index$
|
|
772
|
-
type index$
|
|
773
|
-
type index$
|
|
774
|
-
type index$
|
|
775
|
-
type index$
|
|
776
|
-
type index$
|
|
777
|
-
type index$
|
|
778
|
-
type index$
|
|
779
|
-
type index$
|
|
780
|
-
type index$
|
|
781
|
-
type index$
|
|
782
|
-
type index$
|
|
783
|
-
type index$
|
|
784
|
-
type index$
|
|
785
|
-
type index$
|
|
786
|
-
type index$
|
|
787
|
-
type index$
|
|
788
|
-
declare const index$
|
|
789
|
-
type index$
|
|
790
|
-
type index$
|
|
791
|
-
type index$
|
|
792
|
-
type index$
|
|
793
|
-
type index$
|
|
794
|
-
type index$
|
|
795
|
-
type index$
|
|
796
|
-
type index$
|
|
797
|
-
type index$
|
|
798
|
-
type index$
|
|
799
|
-
declare namespace index$
|
|
800
|
-
export { type index$
|
|
768
|
+
type index$p_ActorPayload = ActorPayload;
|
|
769
|
+
type index$p_ActorRecord = ActorRecord;
|
|
770
|
+
type index$p_AgentPayload = AgentPayload;
|
|
771
|
+
type index$p_AgentRecord<TMetadata = object> = AgentRecord<TMetadata>;
|
|
772
|
+
type index$p_ChangelogPayload = ChangelogPayload;
|
|
773
|
+
type index$p_ChangelogRecord = ChangelogRecord;
|
|
774
|
+
type index$p_CustomRecord = CustomRecord;
|
|
775
|
+
type index$p_CyclePayload = CyclePayload;
|
|
776
|
+
type index$p_CycleRecord = CycleRecord;
|
|
777
|
+
type index$p_EmbeddedMetadataHeader = EmbeddedMetadataHeader;
|
|
778
|
+
type index$p_EmbeddedMetadataRecord<T extends GitGovRecordPayload> = EmbeddedMetadataRecord<T>;
|
|
779
|
+
type index$p_ExecutionPayload = ExecutionPayload;
|
|
780
|
+
type index$p_ExecutionRecord<TMetadata = object> = ExecutionRecord<TMetadata>;
|
|
781
|
+
type index$p_FeedbackPayload = FeedbackPayload;
|
|
782
|
+
type index$p_FeedbackRecord<TMetadata = object> = FeedbackRecord<TMetadata>;
|
|
783
|
+
type index$p_GitGovActorRecord = GitGovActorRecord;
|
|
784
|
+
type index$p_GitGovAgentRecord = GitGovAgentRecord;
|
|
785
|
+
type index$p_GitGovChangelogRecord = GitGovChangelogRecord;
|
|
786
|
+
type index$p_GitGovCycleRecord = GitGovCycleRecord;
|
|
787
|
+
type index$p_GitGovError = GitGovError;
|
|
788
|
+
declare const index$p_GitGovError: typeof GitGovError;
|
|
789
|
+
type index$p_GitGovExecutionRecord = GitGovExecutionRecord;
|
|
790
|
+
type index$p_GitGovFeedbackRecord = GitGovFeedbackRecord;
|
|
791
|
+
type index$p_GitGovRecord = GitGovRecord;
|
|
792
|
+
type index$p_GitGovRecordPayload = GitGovRecordPayload;
|
|
793
|
+
type index$p_GitGovRecordType = GitGovRecordType;
|
|
794
|
+
type index$p_GitGovTaskRecord = GitGovTaskRecord;
|
|
795
|
+
type index$p_Signature = Signature;
|
|
796
|
+
type index$p_TaskPayload = TaskPayload;
|
|
797
|
+
type index$p_TaskRecord = TaskRecord;
|
|
798
|
+
type index$p_WorkflowMethodologyRecord = WorkflowMethodologyRecord;
|
|
799
|
+
declare namespace index$p {
|
|
800
|
+
export { type index$p_ActorPayload as ActorPayload, type index$p_ActorRecord as ActorRecord, type index$p_AgentPayload as AgentPayload, type index$p_AgentRecord as AgentRecord, type index$p_ChangelogPayload as ChangelogPayload, type index$p_ChangelogRecord as ChangelogRecord, type index$p_CustomRecord as CustomRecord, type index$p_CyclePayload as CyclePayload, type index$p_CycleRecord as CycleRecord, type index$p_EmbeddedMetadataHeader as EmbeddedMetadataHeader, type index$p_EmbeddedMetadataRecord as EmbeddedMetadataRecord, type index$p_ExecutionPayload as ExecutionPayload, type index$p_ExecutionRecord as ExecutionRecord, type index$p_FeedbackPayload as FeedbackPayload, type index$p_FeedbackRecord as FeedbackRecord, type index$p_GitGovActorRecord as GitGovActorRecord, type index$p_GitGovAgentRecord as GitGovAgentRecord, type index$p_GitGovChangelogRecord as GitGovChangelogRecord, type index$p_GitGovCycleRecord as GitGovCycleRecord, index$p_GitGovError as GitGovError, type index$p_GitGovExecutionRecord as GitGovExecutionRecord, type index$p_GitGovFeedbackRecord as GitGovFeedbackRecord, type index$p_GitGovRecord as GitGovRecord, type index$p_GitGovRecordPayload as GitGovRecordPayload, type index$p_GitGovRecordType as GitGovRecordType, type index$p_GitGovTaskRecord as GitGovTaskRecord, type index$p_Signature as Signature, type index$p_TaskPayload as TaskPayload, type index$p_TaskRecord as TaskRecord, type index$p_WorkflowMethodologyRecord as WorkflowMethodologyRecord };
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
type StorablePayload$1 = Exclude<GitGovRecordPayload, CustomRecord>;
|
|
@@ -830,11 +830,11 @@ declare class RecordStore<T extends StorablePayload$1> {
|
|
|
830
830
|
exists(recordId: string): Promise<boolean>;
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
type index$
|
|
834
|
-
type index$
|
|
835
|
-
declare const index$
|
|
836
|
-
declare namespace index$
|
|
837
|
-
export { type index$
|
|
833
|
+
type index$o_FsDependencies = FsDependencies;
|
|
834
|
+
type index$o_RecordStore<T extends StorablePayload$1> = RecordStore<T>;
|
|
835
|
+
declare const index$o_RecordStore: typeof RecordStore;
|
|
836
|
+
declare namespace index$o {
|
|
837
|
+
export { type index$o_FsDependencies as FsDependencies, index$o_RecordStore as RecordStore };
|
|
838
838
|
}
|
|
839
839
|
|
|
840
840
|
/**
|
|
@@ -1194,31 +1194,31 @@ declare function publishEvent(event: GitGovEvent): void;
|
|
|
1194
1194
|
*/
|
|
1195
1195
|
declare function subscribeToEvent<T extends GitGovEvent>(eventType: T['type'], handler: EventHandler<T>): EventSubscription;
|
|
1196
1196
|
|
|
1197
|
-
type index$
|
|
1198
|
-
type index$
|
|
1199
|
-
type index$
|
|
1200
|
-
type index$
|
|
1201
|
-
type index$
|
|
1202
|
-
type index$
|
|
1203
|
-
type index$
|
|
1204
|
-
type index$
|
|
1205
|
-
type index$
|
|
1206
|
-
declare const index$
|
|
1207
|
-
type index$
|
|
1208
|
-
type index$
|
|
1209
|
-
type index$
|
|
1210
|
-
type index$
|
|
1211
|
-
type index$
|
|
1212
|
-
type index$
|
|
1213
|
-
type index$
|
|
1214
|
-
type index$
|
|
1215
|
-
type index$
|
|
1216
|
-
type index$
|
|
1217
|
-
declare const index$
|
|
1218
|
-
declare const index$
|
|
1219
|
-
declare const index$
|
|
1220
|
-
declare namespace index$
|
|
1221
|
-
export { type index$
|
|
1197
|
+
type index$n_ActivityEvent = ActivityEvent;
|
|
1198
|
+
type index$n_ActorCreatedEvent = ActorCreatedEvent;
|
|
1199
|
+
type index$n_ActorRevokedEvent = ActorRevokedEvent;
|
|
1200
|
+
type index$n_AgentRegisteredEvent = AgentRegisteredEvent;
|
|
1201
|
+
type index$n_BaseEvent = BaseEvent;
|
|
1202
|
+
type index$n_ChangelogCreatedEvent = ChangelogCreatedEvent;
|
|
1203
|
+
type index$n_CycleCreatedEvent = CycleCreatedEvent;
|
|
1204
|
+
type index$n_CycleStatusChangedEvent = CycleStatusChangedEvent;
|
|
1205
|
+
type index$n_EventBus = EventBus;
|
|
1206
|
+
declare const index$n_EventBus: typeof EventBus;
|
|
1207
|
+
type index$n_EventHandler<T extends BaseEvent = BaseEvent> = EventHandler<T>;
|
|
1208
|
+
type index$n_EventMetadata = EventMetadata;
|
|
1209
|
+
type index$n_EventSubscription = EventSubscription;
|
|
1210
|
+
type index$n_ExecutionCreatedEvent = ExecutionCreatedEvent;
|
|
1211
|
+
type index$n_FeedbackCreatedEvent = FeedbackCreatedEvent;
|
|
1212
|
+
type index$n_GitGovEvent = GitGovEvent;
|
|
1213
|
+
type index$n_IEventStream = IEventStream;
|
|
1214
|
+
type index$n_SystemDailyTickEvent = SystemDailyTickEvent;
|
|
1215
|
+
type index$n_TaskCreatedEvent = TaskCreatedEvent;
|
|
1216
|
+
type index$n_TaskStatusChangedEvent = TaskStatusChangedEvent;
|
|
1217
|
+
declare const index$n_eventBus: typeof eventBus;
|
|
1218
|
+
declare const index$n_publishEvent: typeof publishEvent;
|
|
1219
|
+
declare const index$n_subscribeToEvent: typeof subscribeToEvent;
|
|
1220
|
+
declare namespace index$n {
|
|
1221
|
+
export { type index$n_ActivityEvent as ActivityEvent, type index$n_ActorCreatedEvent as ActorCreatedEvent, type index$n_ActorRevokedEvent as ActorRevokedEvent, type index$n_AgentRegisteredEvent as AgentRegisteredEvent, type index$n_BaseEvent as BaseEvent, type index$n_ChangelogCreatedEvent as ChangelogCreatedEvent, type index$n_CycleCreatedEvent as CycleCreatedEvent, type index$n_CycleStatusChangedEvent as CycleStatusChangedEvent, index$n_EventBus as EventBus, type index$n_EventHandler as EventHandler, type index$n_EventMetadata as EventMetadata, type index$n_EventSubscription as EventSubscription, type index$n_ExecutionCreatedEvent as ExecutionCreatedEvent, type index$n_FeedbackCreatedEvent as FeedbackCreatedEvent, type index$n_GitGovEvent as GitGovEvent, type index$n_IEventStream as IEventStream, type index$n_SystemDailyTickEvent as SystemDailyTickEvent, type index$n_TaskCreatedEvent as TaskCreatedEvent, type index$n_TaskStatusChangedEvent as TaskStatusChangedEvent, index$n_eventBus as eventBus, index$n_publishEvent as publishEvent, index$n_subscribeToEvent as subscribeToEvent };
|
|
1222
1222
|
}
|
|
1223
1223
|
|
|
1224
1224
|
/**
|
|
@@ -1298,12 +1298,12 @@ declare class IdentityAdapter implements IIdentityAdapter {
|
|
|
1298
1298
|
listAgentRecords(): Promise<AgentRecord[]>;
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
type index$
|
|
1302
|
-
type index$
|
|
1303
|
-
declare const index$
|
|
1304
|
-
type index$
|
|
1305
|
-
declare namespace index$
|
|
1306
|
-
export { type index$
|
|
1301
|
+
type index$m_IIdentityAdapter = IIdentityAdapter;
|
|
1302
|
+
type index$m_IdentityAdapter = IdentityAdapter;
|
|
1303
|
+
declare const index$m_IdentityAdapter: typeof IdentityAdapter;
|
|
1304
|
+
type index$m_IdentityAdapterDependencies = IdentityAdapterDependencies;
|
|
1305
|
+
declare namespace index$m {
|
|
1306
|
+
export { type index$m_IIdentityAdapter as IIdentityAdapter, index$m_IdentityAdapter as IdentityAdapter, type index$m_IdentityAdapterDependencies as IdentityAdapterDependencies };
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
@@ -1421,13 +1421,13 @@ declare class FeedbackAdapter implements IFeedbackAdapter {
|
|
|
1421
1421
|
private buildThread;
|
|
1422
1422
|
}
|
|
1423
1423
|
|
|
1424
|
-
type index$
|
|
1425
|
-
declare const index$
|
|
1426
|
-
type index$
|
|
1427
|
-
type index$
|
|
1428
|
-
type index$
|
|
1429
|
-
declare namespace index$
|
|
1430
|
-
export { index$
|
|
1424
|
+
type index$l_FeedbackAdapter = FeedbackAdapter;
|
|
1425
|
+
declare const index$l_FeedbackAdapter: typeof FeedbackAdapter;
|
|
1426
|
+
type index$l_FeedbackAdapterDependencies = FeedbackAdapterDependencies;
|
|
1427
|
+
type index$l_FeedbackThread = FeedbackThread;
|
|
1428
|
+
type index$l_IFeedbackAdapter = IFeedbackAdapter;
|
|
1429
|
+
declare namespace index$l {
|
|
1430
|
+
export { index$l_FeedbackAdapter as FeedbackAdapter, type index$l_FeedbackAdapterDependencies as FeedbackAdapterDependencies, type index$l_FeedbackThread as FeedbackThread, type index$l_IFeedbackAdapter as IFeedbackAdapter };
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
/**
|
|
@@ -1515,12 +1515,12 @@ declare class ExecutionAdapter implements IExecutionAdapter {
|
|
|
1515
1515
|
private isFirstExecutionForTask;
|
|
1516
1516
|
}
|
|
1517
1517
|
|
|
1518
|
-
type index$
|
|
1519
|
-
declare const index$
|
|
1520
|
-
type index$
|
|
1521
|
-
type index$
|
|
1522
|
-
declare namespace index$
|
|
1523
|
-
export { index$
|
|
1518
|
+
type index$k_ExecutionAdapter = ExecutionAdapter;
|
|
1519
|
+
declare const index$k_ExecutionAdapter: typeof ExecutionAdapter;
|
|
1520
|
+
type index$k_ExecutionAdapterDependencies = ExecutionAdapterDependencies;
|
|
1521
|
+
type index$k_IExecutionAdapter = IExecutionAdapter;
|
|
1522
|
+
declare namespace index$k {
|
|
1523
|
+
export { index$k_ExecutionAdapter as ExecutionAdapter, type index$k_ExecutionAdapterDependencies as ExecutionAdapterDependencies, type index$k_IExecutionAdapter as IExecutionAdapter };
|
|
1524
1524
|
}
|
|
1525
1525
|
|
|
1526
1526
|
/**
|
|
@@ -1613,13 +1613,13 @@ declare class ChangelogAdapter implements IChangelogAdapter {
|
|
|
1613
1613
|
getChangelogsByEntity(entityId: string, _entityType?: string): Promise<ChangelogRecord[]>;
|
|
1614
1614
|
}
|
|
1615
1615
|
|
|
1616
|
-
type index$
|
|
1617
|
-
declare const index$
|
|
1618
|
-
type index$
|
|
1619
|
-
type index$
|
|
1620
|
-
type index$
|
|
1621
|
-
declare namespace index$
|
|
1622
|
-
export { index$
|
|
1616
|
+
type index$j_ChangelogAdapter = ChangelogAdapter;
|
|
1617
|
+
declare const index$j_ChangelogAdapter: typeof ChangelogAdapter;
|
|
1618
|
+
type index$j_ChangelogAdapterDependencies = ChangelogAdapterDependencies;
|
|
1619
|
+
type index$j_ChangelogListOptions = ChangelogListOptions;
|
|
1620
|
+
type index$j_IChangelogAdapter = IChangelogAdapter;
|
|
1621
|
+
declare namespace index$j {
|
|
1622
|
+
export { index$j_ChangelogAdapter as ChangelogAdapter, type index$j_ChangelogAdapterDependencies as ChangelogAdapterDependencies, type index$j_ChangelogListOptions as ChangelogListOptions, type index$j_IChangelogAdapter as IChangelogAdapter };
|
|
1623
1623
|
}
|
|
1624
1624
|
|
|
1625
1625
|
/**
|
|
@@ -1804,16 +1804,16 @@ declare class MetricsAdapter implements IMetricsAdapter {
|
|
|
1804
1804
|
calculateAgentExecutionTime(_executions: ExecutionRecord[]): number;
|
|
1805
1805
|
}
|
|
1806
1806
|
|
|
1807
|
-
type index$
|
|
1808
|
-
type index$
|
|
1809
|
-
type index$
|
|
1810
|
-
declare const index$
|
|
1811
|
-
type index$
|
|
1812
|
-
type index$
|
|
1813
|
-
type index$
|
|
1814
|
-
type index$
|
|
1815
|
-
declare namespace index$
|
|
1816
|
-
export { type index$
|
|
1807
|
+
type index$i_CollaborationMetrics = CollaborationMetrics;
|
|
1808
|
+
type index$i_IMetricsAdapter = IMetricsAdapter;
|
|
1809
|
+
type index$i_MetricsAdapter = MetricsAdapter;
|
|
1810
|
+
declare const index$i_MetricsAdapter: typeof MetricsAdapter;
|
|
1811
|
+
type index$i_MetricsAdapterDependencies = MetricsAdapterDependencies;
|
|
1812
|
+
type index$i_ProductivityMetrics = ProductivityMetrics;
|
|
1813
|
+
type index$i_SystemStatus = SystemStatus;
|
|
1814
|
+
type index$i_TaskHealthReport = TaskHealthReport;
|
|
1815
|
+
declare namespace index$i {
|
|
1816
|
+
export { type index$i_CollaborationMetrics as CollaborationMetrics, type index$i_IMetricsAdapter as IMetricsAdapter, index$i_MetricsAdapter as MetricsAdapter, type index$i_MetricsAdapterDependencies as MetricsAdapterDependencies, type index$i_ProductivityMetrics as ProductivityMetrics, type index$i_SystemStatus as SystemStatus, type index$i_TaskHealthReport as TaskHealthReport };
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
1819
|
/**
|
|
@@ -1845,6 +1845,14 @@ interface GitGovConfig {
|
|
|
1845
1845
|
defaultIgnoredPatterns?: string[];
|
|
1846
1846
|
};
|
|
1847
1847
|
};
|
|
1848
|
+
audit?: {
|
|
1849
|
+
/** Commit SHA of last full audit (for incremental mode) */
|
|
1850
|
+
lastFullAuditCommit?: string;
|
|
1851
|
+
/** ISO 8601 timestamp of last full audit */
|
|
1852
|
+
lastFullAuditTimestamp?: string;
|
|
1853
|
+
/** Number of findings in last full audit */
|
|
1854
|
+
lastFullAuditFindingsCount?: number;
|
|
1855
|
+
};
|
|
1848
1856
|
};
|
|
1849
1857
|
}
|
|
1850
1858
|
/**
|
|
@@ -1864,6 +1872,14 @@ interface ActorState {
|
|
|
1864
1872
|
syncStatus?: SyncStatus;
|
|
1865
1873
|
[key: string]: any;
|
|
1866
1874
|
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Audit state stored in config.json for incremental mode
|
|
1877
|
+
*/
|
|
1878
|
+
interface AuditState {
|
|
1879
|
+
lastFullAuditCommit: string | null;
|
|
1880
|
+
lastFullAuditTimestamp: string | null;
|
|
1881
|
+
lastFullAuditFindingsCount: number | null;
|
|
1882
|
+
}
|
|
1867
1883
|
interface GitGovSession {
|
|
1868
1884
|
cloud?: {
|
|
1869
1885
|
sessionToken?: string;
|
|
@@ -2015,6 +2031,20 @@ declare class ConfigManager {
|
|
|
2015
2031
|
ignoredPatterns: string[];
|
|
2016
2032
|
}>;
|
|
2017
2033
|
}): Promise<void>;
|
|
2034
|
+
/**
|
|
2035
|
+
* Get audit state from config.json
|
|
2036
|
+
* Returns last full audit commit and timestamp for incremental mode
|
|
2037
|
+
*/
|
|
2038
|
+
getAuditState(): Promise<AuditState>;
|
|
2039
|
+
/**
|
|
2040
|
+
* Update audit state in config.json after a full audit
|
|
2041
|
+
* This is used to enable incremental audits
|
|
2042
|
+
*/
|
|
2043
|
+
updateAuditState(auditState: {
|
|
2044
|
+
lastFullAuditCommit: string;
|
|
2045
|
+
lastFullAuditTimestamp: string;
|
|
2046
|
+
lastFullAuditFindingsCount: number;
|
|
2047
|
+
}): Promise<void>;
|
|
2018
2048
|
/**
|
|
2019
2049
|
* Finds the project root by searching upwards for a .git directory.
|
|
2020
2050
|
* Caches the result for subsequent calls.
|
|
@@ -2043,15 +2073,16 @@ declare class ConfigManager {
|
|
|
2043
2073
|
*/
|
|
2044
2074
|
declare function createConfigManager(projectRoot?: string): ConfigManager;
|
|
2045
2075
|
|
|
2046
|
-
type index$
|
|
2047
|
-
type index$
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
type index$
|
|
2051
|
-
type index$
|
|
2052
|
-
|
|
2053
|
-
declare
|
|
2054
|
-
|
|
2076
|
+
type index$h_ActorState = ActorState;
|
|
2077
|
+
type index$h_AuditState = AuditState;
|
|
2078
|
+
type index$h_ConfigManager = ConfigManager;
|
|
2079
|
+
declare const index$h_ConfigManager: typeof ConfigManager;
|
|
2080
|
+
type index$h_GitGovConfig = GitGovConfig;
|
|
2081
|
+
type index$h_GitGovSession = GitGovSession;
|
|
2082
|
+
type index$h_SyncStatus = SyncStatus;
|
|
2083
|
+
declare const index$h_createConfigManager: typeof createConfigManager;
|
|
2084
|
+
declare namespace index$h {
|
|
2085
|
+
export { type index$h_ActorState as ActorState, type index$h_AuditState as AuditState, index$h_ConfigManager as ConfigManager, type index$h_GitGovConfig as GitGovConfig, type index$h_GitGovSession as GitGovSession, type index$h_SyncStatus as SyncStatus, index$h_createConfigManager as createConfigManager };
|
|
2055
2086
|
}
|
|
2056
2087
|
|
|
2057
2088
|
type TaskStatus = TaskRecord['status'];
|
|
@@ -2123,12 +2154,12 @@ declare class WorkflowMethodologyAdapter implements IWorkflowMethodology {
|
|
|
2123
2154
|
getAvailableTransitions(from: TaskStatus): Promise<TransitionRule[]>;
|
|
2124
2155
|
}
|
|
2125
2156
|
|
|
2126
|
-
type index$
|
|
2127
|
-
type index$
|
|
2128
|
-
declare const index$
|
|
2129
|
-
type index$
|
|
2130
|
-
declare namespace index$
|
|
2131
|
-
export { type index$
|
|
2157
|
+
type index$g_IWorkflowMethodology = IWorkflowMethodology;
|
|
2158
|
+
type index$g_WorkflowMethodologyAdapter = WorkflowMethodologyAdapter;
|
|
2159
|
+
declare const index$g_WorkflowMethodologyAdapter: typeof WorkflowMethodologyAdapter;
|
|
2160
|
+
type index$g_WorkflowMethodologyAdapterDependencies = WorkflowMethodologyAdapterDependencies;
|
|
2161
|
+
declare namespace index$g {
|
|
2162
|
+
export { type index$g_IWorkflowMethodology as IWorkflowMethodology, type ValidationContext$1 as ValidationContext, index$g_WorkflowMethodologyAdapter as WorkflowMethodologyAdapter, type index$g_WorkflowMethodologyAdapterDependencies as WorkflowMethodologyAdapterDependencies };
|
|
2132
2163
|
}
|
|
2133
2164
|
|
|
2134
2165
|
/**
|
|
@@ -2361,13 +2392,13 @@ declare class BacklogAdapter implements IBacklogAdapter {
|
|
|
2361
2392
|
processChanges(_changes: unknown[]): Promise<ExecutionRecord[]>;
|
|
2362
2393
|
}
|
|
2363
2394
|
|
|
2364
|
-
type index$
|
|
2365
|
-
declare const index$
|
|
2366
|
-
type index$
|
|
2367
|
-
type index$
|
|
2368
|
-
type index$
|
|
2369
|
-
declare namespace index$
|
|
2370
|
-
export { index$
|
|
2395
|
+
type index$f_BacklogAdapter = BacklogAdapter;
|
|
2396
|
+
declare const index$f_BacklogAdapter: typeof BacklogAdapter;
|
|
2397
|
+
type index$f_BacklogAdapterConfig = BacklogAdapterConfig;
|
|
2398
|
+
type index$f_BacklogAdapterDependencies = BacklogAdapterDependencies;
|
|
2399
|
+
type index$f_IBacklogAdapter = IBacklogAdapter;
|
|
2400
|
+
declare namespace index$f {
|
|
2401
|
+
export { index$f_BacklogAdapter as BacklogAdapter, type index$f_BacklogAdapterConfig as BacklogAdapterConfig, type index$f_BacklogAdapterDependencies as BacklogAdapterDependencies, type index$f_IBacklogAdapter as IBacklogAdapter };
|
|
2371
2402
|
}
|
|
2372
2403
|
|
|
2373
2404
|
/**
|
|
@@ -2726,21 +2757,21 @@ declare class FileIndexerAdapter implements IIndexerAdapter {
|
|
|
2726
2757
|
private getTimestampFromId;
|
|
2727
2758
|
}
|
|
2728
2759
|
|
|
2729
|
-
type index$
|
|
2730
|
-
type index$
|
|
2731
|
-
type index$
|
|
2732
|
-
type index$
|
|
2733
|
-
type index$
|
|
2734
|
-
declare const index$
|
|
2735
|
-
type index$
|
|
2736
|
-
type index$
|
|
2737
|
-
type index$
|
|
2738
|
-
type index$
|
|
2739
|
-
type index$
|
|
2740
|
-
type index$
|
|
2741
|
-
type index$
|
|
2742
|
-
declare namespace index$
|
|
2743
|
-
export { type index$
|
|
2760
|
+
type index$e_AllRecords = AllRecords;
|
|
2761
|
+
type index$e_DerivedStateSets = DerivedStateSets;
|
|
2762
|
+
type index$e_DerivedStates = DerivedStates;
|
|
2763
|
+
type index$e_EnrichedTaskRecord = EnrichedTaskRecord;
|
|
2764
|
+
type index$e_FileIndexerAdapter = FileIndexerAdapter;
|
|
2765
|
+
declare const index$e_FileIndexerAdapter: typeof FileIndexerAdapter;
|
|
2766
|
+
type index$e_IIndexerAdapter = IIndexerAdapter;
|
|
2767
|
+
type index$e_IndexData = IndexData;
|
|
2768
|
+
type index$e_IndexGenerationReport = IndexGenerationReport;
|
|
2769
|
+
type index$e_IndexerAdapterDependencies = IndexerAdapterDependencies;
|
|
2770
|
+
type index$e_IntegrityError = IntegrityError;
|
|
2771
|
+
type index$e_IntegrityReport = IntegrityReport;
|
|
2772
|
+
type index$e_IntegrityWarning = IntegrityWarning;
|
|
2773
|
+
declare namespace index$e {
|
|
2774
|
+
export { type index$e_AllRecords as AllRecords, type index$e_DerivedStateSets as DerivedStateSets, type index$e_DerivedStates as DerivedStates, type index$e_EnrichedTaskRecord as EnrichedTaskRecord, index$e_FileIndexerAdapter as FileIndexerAdapter, type index$e_IIndexerAdapter as IIndexerAdapter, type index$e_IndexData as IndexData, type index$e_IndexGenerationReport as IndexGenerationReport, type index$e_IndexerAdapterDependencies as IndexerAdapterDependencies, type index$e_IntegrityError as IntegrityError, type index$e_IntegrityReport as IntegrityReport, type index$e_IntegrityWarning as IntegrityWarning };
|
|
2744
2775
|
}
|
|
2745
2776
|
|
|
2746
2777
|
/**
|
|
@@ -3418,31 +3449,31 @@ declare class RebaseNotInProgressError extends GitError {
|
|
|
3418
3449
|
* @module git
|
|
3419
3450
|
*/
|
|
3420
3451
|
|
|
3421
|
-
type index$
|
|
3422
|
-
declare const index$
|
|
3423
|
-
type index$
|
|
3424
|
-
type index$
|
|
3425
|
-
type index$
|
|
3426
|
-
type index$
|
|
3427
|
-
type index$
|
|
3428
|
-
type index$
|
|
3429
|
-
declare const index$
|
|
3430
|
-
type index$
|
|
3431
|
-
type index$
|
|
3432
|
-
declare const index$
|
|
3433
|
-
type index$
|
|
3434
|
-
declare const index$
|
|
3435
|
-
type index$
|
|
3436
|
-
declare const index$
|
|
3437
|
-
type index$
|
|
3438
|
-
type index$
|
|
3439
|
-
declare const index$
|
|
3440
|
-
type index$
|
|
3441
|
-
declare const index$
|
|
3442
|
-
type index$
|
|
3443
|
-
declare const index$
|
|
3444
|
-
declare namespace index$
|
|
3445
|
-
export { index$
|
|
3452
|
+
type index$d_BranchNotFoundError = BranchNotFoundError;
|
|
3453
|
+
declare const index$d_BranchNotFoundError: typeof BranchNotFoundError;
|
|
3454
|
+
type index$d_ChangedFile = ChangedFile;
|
|
3455
|
+
type index$d_CommitAuthor = CommitAuthor;
|
|
3456
|
+
type index$d_CommitInfo = CommitInfo;
|
|
3457
|
+
type index$d_ExecOptions = ExecOptions;
|
|
3458
|
+
type index$d_ExecResult = ExecResult;
|
|
3459
|
+
type index$d_FileNotFoundError = FileNotFoundError;
|
|
3460
|
+
declare const index$d_FileNotFoundError: typeof FileNotFoundError;
|
|
3461
|
+
type index$d_GetCommitHistoryOptions = GetCommitHistoryOptions;
|
|
3462
|
+
type index$d_GitCommandError = GitCommandError;
|
|
3463
|
+
declare const index$d_GitCommandError: typeof GitCommandError;
|
|
3464
|
+
type index$d_GitError = GitError;
|
|
3465
|
+
declare const index$d_GitError: typeof GitError;
|
|
3466
|
+
type index$d_GitModule = GitModule;
|
|
3467
|
+
declare const index$d_GitModule: typeof GitModule;
|
|
3468
|
+
type index$d_GitModuleDependencies = GitModuleDependencies;
|
|
3469
|
+
type index$d_MergeConflictError = MergeConflictError;
|
|
3470
|
+
declare const index$d_MergeConflictError: typeof MergeConflictError;
|
|
3471
|
+
type index$d_RebaseConflictError = RebaseConflictError;
|
|
3472
|
+
declare const index$d_RebaseConflictError: typeof RebaseConflictError;
|
|
3473
|
+
type index$d_RebaseNotInProgressError = RebaseNotInProgressError;
|
|
3474
|
+
declare const index$d_RebaseNotInProgressError: typeof RebaseNotInProgressError;
|
|
3475
|
+
declare namespace index$d {
|
|
3476
|
+
export { index$d_BranchNotFoundError as BranchNotFoundError, type index$d_ChangedFile as ChangedFile, type index$d_CommitAuthor as CommitAuthor, type index$d_CommitInfo as CommitInfo, type index$d_ExecOptions as ExecOptions, type index$d_ExecResult as ExecResult, index$d_FileNotFoundError as FileNotFoundError, type index$d_GetCommitHistoryOptions as GetCommitHistoryOptions, index$d_GitCommandError as GitCommandError, index$d_GitError as GitError, index$d_GitModule as GitModule, type index$d_GitModuleDependencies as GitModuleDependencies, index$d_MergeConflictError as MergeConflictError, index$d_RebaseConflictError as RebaseConflictError, index$d_RebaseNotInProgressError as RebaseNotInProgressError };
|
|
3446
3477
|
}
|
|
3447
3478
|
|
|
3448
3479
|
/**
|
|
@@ -3586,82 +3617,82 @@ declare class ProjectAdapter implements IProjectAdapter {
|
|
|
3586
3617
|
private setupGitIntegration;
|
|
3587
3618
|
}
|
|
3588
3619
|
|
|
3589
|
-
type index$
|
|
3590
|
-
type index$
|
|
3591
|
-
type index$
|
|
3592
|
-
declare const index$
|
|
3593
|
-
type index$
|
|
3594
|
-
type index$
|
|
3595
|
-
type index$
|
|
3596
|
-
type index$
|
|
3597
|
-
type index$
|
|
3598
|
-
type index$
|
|
3599
|
-
type index$
|
|
3600
|
-
declare namespace index$
|
|
3601
|
-
export { type index$
|
|
3620
|
+
type index$c_EnvironmentValidation = EnvironmentValidation;
|
|
3621
|
+
type index$c_IProjectAdapter = IProjectAdapter;
|
|
3622
|
+
type index$c_ProjectAdapter = ProjectAdapter;
|
|
3623
|
+
declare const index$c_ProjectAdapter: typeof ProjectAdapter;
|
|
3624
|
+
type index$c_ProjectAdapterDependencies = ProjectAdapterDependencies;
|
|
3625
|
+
type index$c_ProjectContext = ProjectContext;
|
|
3626
|
+
type index$c_ProjectInfo = ProjectInfo;
|
|
3627
|
+
type index$c_ProjectInitOptions = ProjectInitOptions;
|
|
3628
|
+
type index$c_ProjectInitResult = ProjectInitResult;
|
|
3629
|
+
type index$c_ProjectReport = ProjectReport;
|
|
3630
|
+
type index$c_TemplateProcessingResult = TemplateProcessingResult;
|
|
3631
|
+
declare namespace index$c {
|
|
3632
|
+
export { type index$c_EnvironmentValidation as EnvironmentValidation, type index$c_IProjectAdapter as IProjectAdapter, 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 };
|
|
3602
3633
|
}
|
|
3603
3634
|
|
|
3604
|
-
type index$
|
|
3605
|
-
type index$
|
|
3606
|
-
declare const index$
|
|
3607
|
-
type index$
|
|
3608
|
-
type index$
|
|
3609
|
-
type index$
|
|
3610
|
-
declare const index$
|
|
3611
|
-
type index$
|
|
3612
|
-
type index$
|
|
3613
|
-
type index$
|
|
3614
|
-
type index$
|
|
3615
|
-
type index$
|
|
3616
|
-
type index$
|
|
3617
|
-
type index$
|
|
3618
|
-
type index$
|
|
3619
|
-
declare const index$
|
|
3620
|
-
type index$
|
|
3621
|
-
type index$
|
|
3622
|
-
declare const index$
|
|
3623
|
-
type index$
|
|
3624
|
-
type index$
|
|
3625
|
-
type index$
|
|
3626
|
-
declare const index$
|
|
3627
|
-
type index$
|
|
3628
|
-
type index$
|
|
3629
|
-
type index$
|
|
3630
|
-
type index$
|
|
3631
|
-
type index$
|
|
3632
|
-
type index$
|
|
3633
|
-
type index$
|
|
3634
|
-
type index$
|
|
3635
|
-
type index$
|
|
3636
|
-
type index$
|
|
3637
|
-
declare const index$
|
|
3638
|
-
type index$
|
|
3639
|
-
type index$
|
|
3640
|
-
type index$
|
|
3641
|
-
type index$
|
|
3642
|
-
type index$
|
|
3643
|
-
type index$
|
|
3644
|
-
type index$
|
|
3645
|
-
type index$
|
|
3646
|
-
declare const index$
|
|
3647
|
-
type index$
|
|
3648
|
-
type index$
|
|
3649
|
-
type index$
|
|
3650
|
-
declare const index$
|
|
3651
|
-
type index$
|
|
3652
|
-
type index$
|
|
3653
|
-
type index$
|
|
3654
|
-
type index$
|
|
3655
|
-
type index$
|
|
3656
|
-
type index$
|
|
3657
|
-
type index$
|
|
3658
|
-
type index$
|
|
3659
|
-
type index$
|
|
3660
|
-
type index$
|
|
3661
|
-
declare const index$
|
|
3662
|
-
type index$
|
|
3663
|
-
declare namespace index$
|
|
3664
|
-
export { type index$
|
|
3635
|
+
type index$b_AllRecords = AllRecords;
|
|
3636
|
+
type index$b_BacklogAdapter = BacklogAdapter;
|
|
3637
|
+
declare const index$b_BacklogAdapter: typeof BacklogAdapter;
|
|
3638
|
+
type index$b_BacklogAdapterConfig = BacklogAdapterConfig;
|
|
3639
|
+
type index$b_BacklogAdapterDependencies = BacklogAdapterDependencies;
|
|
3640
|
+
type index$b_ChangelogAdapter = ChangelogAdapter;
|
|
3641
|
+
declare const index$b_ChangelogAdapter: typeof ChangelogAdapter;
|
|
3642
|
+
type index$b_ChangelogAdapterDependencies = ChangelogAdapterDependencies;
|
|
3643
|
+
type index$b_ChangelogListOptions = ChangelogListOptions;
|
|
3644
|
+
type index$b_CollaborationMetrics = CollaborationMetrics;
|
|
3645
|
+
type index$b_DerivedStateSets = DerivedStateSets;
|
|
3646
|
+
type index$b_DerivedStates = DerivedStates;
|
|
3647
|
+
type index$b_EnrichedTaskRecord = EnrichedTaskRecord;
|
|
3648
|
+
type index$b_EnvironmentValidation = EnvironmentValidation;
|
|
3649
|
+
type index$b_ExecutionAdapter = ExecutionAdapter;
|
|
3650
|
+
declare const index$b_ExecutionAdapter: typeof ExecutionAdapter;
|
|
3651
|
+
type index$b_ExecutionAdapterDependencies = ExecutionAdapterDependencies;
|
|
3652
|
+
type index$b_FeedbackAdapter = FeedbackAdapter;
|
|
3653
|
+
declare const index$b_FeedbackAdapter: typeof FeedbackAdapter;
|
|
3654
|
+
type index$b_FeedbackAdapterDependencies = FeedbackAdapterDependencies;
|
|
3655
|
+
type index$b_FeedbackThread = FeedbackThread;
|
|
3656
|
+
type index$b_FileIndexerAdapter = FileIndexerAdapter;
|
|
3657
|
+
declare const index$b_FileIndexerAdapter: typeof FileIndexerAdapter;
|
|
3658
|
+
type index$b_IBacklogAdapter = IBacklogAdapter;
|
|
3659
|
+
type index$b_IChangelogAdapter = IChangelogAdapter;
|
|
3660
|
+
type index$b_IExecutionAdapter = IExecutionAdapter;
|
|
3661
|
+
type index$b_IFeedbackAdapter = IFeedbackAdapter;
|
|
3662
|
+
type index$b_IIdentityAdapter = IIdentityAdapter;
|
|
3663
|
+
type index$b_IIndexerAdapter = IIndexerAdapter;
|
|
3664
|
+
type index$b_IMetricsAdapter = IMetricsAdapter;
|
|
3665
|
+
type index$b_IProjectAdapter = IProjectAdapter;
|
|
3666
|
+
type index$b_IWorkflowMethodology = IWorkflowMethodology;
|
|
3667
|
+
type index$b_IdentityAdapter = IdentityAdapter;
|
|
3668
|
+
declare const index$b_IdentityAdapter: typeof IdentityAdapter;
|
|
3669
|
+
type index$b_IdentityAdapterDependencies = IdentityAdapterDependencies;
|
|
3670
|
+
type index$b_IndexData = IndexData;
|
|
3671
|
+
type index$b_IndexGenerationReport = IndexGenerationReport;
|
|
3672
|
+
type index$b_IndexerAdapterDependencies = IndexerAdapterDependencies;
|
|
3673
|
+
type index$b_IntegrityError = IntegrityError;
|
|
3674
|
+
type index$b_IntegrityReport = IntegrityReport;
|
|
3675
|
+
type index$b_IntegrityWarning = IntegrityWarning;
|
|
3676
|
+
type index$b_MetricsAdapter = MetricsAdapter;
|
|
3677
|
+
declare const index$b_MetricsAdapter: typeof MetricsAdapter;
|
|
3678
|
+
type index$b_MetricsAdapterDependencies = MetricsAdapterDependencies;
|
|
3679
|
+
type index$b_ProductivityMetrics = ProductivityMetrics;
|
|
3680
|
+
type index$b_ProjectAdapter = ProjectAdapter;
|
|
3681
|
+
declare const index$b_ProjectAdapter: typeof ProjectAdapter;
|
|
3682
|
+
type index$b_ProjectAdapterDependencies = ProjectAdapterDependencies;
|
|
3683
|
+
type index$b_ProjectContext = ProjectContext;
|
|
3684
|
+
type index$b_ProjectInfo = ProjectInfo;
|
|
3685
|
+
type index$b_ProjectInitOptions = ProjectInitOptions;
|
|
3686
|
+
type index$b_ProjectInitResult = ProjectInitResult;
|
|
3687
|
+
type index$b_ProjectReport = ProjectReport;
|
|
3688
|
+
type index$b_SystemStatus = SystemStatus;
|
|
3689
|
+
type index$b_TaskHealthReport = TaskHealthReport;
|
|
3690
|
+
type index$b_TemplateProcessingResult = TemplateProcessingResult;
|
|
3691
|
+
type index$b_WorkflowMethodologyAdapter = WorkflowMethodologyAdapter;
|
|
3692
|
+
declare const index$b_WorkflowMethodologyAdapter: typeof WorkflowMethodologyAdapter;
|
|
3693
|
+
type index$b_WorkflowMethodologyAdapterDependencies = WorkflowMethodologyAdapterDependencies;
|
|
3694
|
+
declare namespace index$b {
|
|
3695
|
+
export { type index$b_AllRecords as AllRecords, index$b_BacklogAdapter as BacklogAdapter, type index$b_BacklogAdapterConfig as BacklogAdapterConfig, type index$b_BacklogAdapterDependencies as BacklogAdapterDependencies, index$b_ChangelogAdapter as ChangelogAdapter, type index$b_ChangelogAdapterDependencies as ChangelogAdapterDependencies, type index$b_ChangelogListOptions as ChangelogListOptions, type index$b_CollaborationMetrics as CollaborationMetrics, type index$b_DerivedStateSets as DerivedStateSets, type index$b_DerivedStates as DerivedStates, type index$b_EnrichedTaskRecord as EnrichedTaskRecord, type index$b_EnvironmentValidation as EnvironmentValidation, index$b_ExecutionAdapter as ExecutionAdapter, type index$b_ExecutionAdapterDependencies as ExecutionAdapterDependencies, index$b_FeedbackAdapter as FeedbackAdapter, type index$b_FeedbackAdapterDependencies as FeedbackAdapterDependencies, type index$b_FeedbackThread as FeedbackThread, index$b_FileIndexerAdapter as FileIndexerAdapter, type index$b_IBacklogAdapter as IBacklogAdapter, type index$b_IChangelogAdapter as IChangelogAdapter, type index$b_IExecutionAdapter as IExecutionAdapter, type index$b_IFeedbackAdapter as IFeedbackAdapter, type index$b_IIdentityAdapter as IIdentityAdapter, type index$b_IIndexerAdapter as IIndexerAdapter, type index$b_IMetricsAdapter as IMetricsAdapter, type index$b_IProjectAdapter as IProjectAdapter, type index$b_IWorkflowMethodology as IWorkflowMethodology, index$b_IdentityAdapter as IdentityAdapter, type index$b_IdentityAdapterDependencies as IdentityAdapterDependencies, type index$b_IndexData as IndexData, type index$b_IndexGenerationReport as IndexGenerationReport, type index$b_IndexerAdapterDependencies as IndexerAdapterDependencies, type index$b_IntegrityError as IntegrityError, type index$b_IntegrityReport as IntegrityReport, type index$b_IntegrityWarning as IntegrityWarning, index$b_MetricsAdapter as MetricsAdapter, type index$b_MetricsAdapterDependencies as MetricsAdapterDependencies, type index$b_ProductivityMetrics as ProductivityMetrics, index$b_ProjectAdapter as ProjectAdapter, type index$b_ProjectAdapterDependencies as ProjectAdapterDependencies, type index$b_ProjectContext as ProjectContext, type index$b_ProjectInfo as ProjectInfo, type index$b_ProjectInitOptions as ProjectInitOptions, type index$b_ProjectInitResult as ProjectInitResult, type index$b_ProjectReport as ProjectReport, type index$b_SystemStatus as SystemStatus, type index$b_TaskHealthReport as TaskHealthReport, type index$b_TemplateProcessingResult as TemplateProcessingResult, type ValidationContext$1 as ValidationContext, index$b_WorkflowMethodologyAdapter as WorkflowMethodologyAdapter, type index$b_WorkflowMethodologyAdapterDependencies as WorkflowMethodologyAdapterDependencies };
|
|
3665
3696
|
}
|
|
3666
3697
|
|
|
3667
3698
|
/**
|
|
@@ -3701,12 +3732,12 @@ declare function verifySignatures(record: {
|
|
|
3701
3732
|
payload: GitGovRecordPayload;
|
|
3702
3733
|
}, getActorPublicKey: (keyId: string) => Promise<string | null>): Promise<boolean>;
|
|
3703
3734
|
|
|
3704
|
-
declare const index$
|
|
3705
|
-
declare const index$
|
|
3706
|
-
declare const index$
|
|
3707
|
-
declare const index$
|
|
3708
|
-
declare namespace index$
|
|
3709
|
-
export { index$
|
|
3735
|
+
declare const index$a_calculatePayloadChecksum: typeof calculatePayloadChecksum;
|
|
3736
|
+
declare const index$a_generateKeys: typeof generateKeys;
|
|
3737
|
+
declare const index$a_signPayload: typeof signPayload;
|
|
3738
|
+
declare const index$a_verifySignatures: typeof verifySignatures;
|
|
3739
|
+
declare namespace index$a {
|
|
3740
|
+
export { index$a_calculatePayloadChecksum as calculatePayloadChecksum, index$a_generateKeys as generateKeys, index$a_signPayload as signPayload, index$a_verifySignatures as verifySignatures };
|
|
3710
3741
|
}
|
|
3711
3742
|
|
|
3712
3743
|
/**
|
|
@@ -3897,28 +3928,28 @@ declare function createTestSignature(keyId?: string, role?: string, notes?: stri
|
|
|
3897
3928
|
*/
|
|
3898
3929
|
declare function createEmbeddedMetadataRecord<T extends GitGovRecordPayload>(payload: T, options?: CreateEmbeddedMetadataOptions): EmbeddedMetadataRecord<T>;
|
|
3899
3930
|
|
|
3900
|
-
type index$
|
|
3901
|
-
type index$
|
|
3902
|
-
declare const index$
|
|
3903
|
-
declare const index$
|
|
3904
|
-
declare const index$
|
|
3905
|
-
declare const index$
|
|
3906
|
-
declare const index$
|
|
3907
|
-
declare const index$
|
|
3908
|
-
declare const index$
|
|
3909
|
-
declare const index$
|
|
3910
|
-
declare const index$
|
|
3911
|
-
declare const index$
|
|
3912
|
-
declare const index$
|
|
3913
|
-
declare const index$
|
|
3914
|
-
declare const index$
|
|
3915
|
-
declare const index$
|
|
3916
|
-
declare const index$
|
|
3917
|
-
declare const index$
|
|
3918
|
-
declare const index$
|
|
3919
|
-
declare const index$
|
|
3920
|
-
declare namespace index$
|
|
3921
|
-
export { type index$
|
|
3931
|
+
type index$9_CreateEmbeddedMetadataOptions = CreateEmbeddedMetadataOptions;
|
|
3932
|
+
type index$9_SignatureConfig = SignatureConfig;
|
|
3933
|
+
declare const index$9_createActorRecord: typeof createActorRecord;
|
|
3934
|
+
declare const index$9_createAgentRecord: typeof createAgentRecord;
|
|
3935
|
+
declare const index$9_createChangelogRecord: typeof createChangelogRecord;
|
|
3936
|
+
declare const index$9_createCycleRecord: typeof createCycleRecord;
|
|
3937
|
+
declare const index$9_createDefaultWorkflowMethodologyConfig: typeof createDefaultWorkflowMethodologyConfig;
|
|
3938
|
+
declare const index$9_createEmbeddedMetadataRecord: typeof createEmbeddedMetadataRecord;
|
|
3939
|
+
declare const index$9_createExecutionRecord: typeof createExecutionRecord;
|
|
3940
|
+
declare const index$9_createFeedbackRecord: typeof createFeedbackRecord;
|
|
3941
|
+
declare const index$9_createTaskRecord: typeof createTaskRecord;
|
|
3942
|
+
declare const index$9_createTestSignature: typeof createTestSignature;
|
|
3943
|
+
declare const index$9_createWorkflowMethodologyConfig: typeof createWorkflowMethodologyConfig;
|
|
3944
|
+
declare const index$9_loadActorRecord: typeof loadActorRecord;
|
|
3945
|
+
declare const index$9_loadAgentRecord: typeof loadAgentRecord;
|
|
3946
|
+
declare const index$9_loadChangelogRecord: typeof loadChangelogRecord;
|
|
3947
|
+
declare const index$9_loadCycleRecord: typeof loadCycleRecord;
|
|
3948
|
+
declare const index$9_loadExecutionRecord: typeof loadExecutionRecord;
|
|
3949
|
+
declare const index$9_loadFeedbackRecord: typeof loadFeedbackRecord;
|
|
3950
|
+
declare const index$9_loadTaskRecord: typeof loadTaskRecord;
|
|
3951
|
+
declare namespace index$9 {
|
|
3952
|
+
export { type index$9_CreateEmbeddedMetadataOptions as CreateEmbeddedMetadataOptions, type index$9_SignatureConfig as SignatureConfig, index$9_createActorRecord as createActorRecord, index$9_createAgentRecord as createAgentRecord, index$9_createChangelogRecord as createChangelogRecord, index$9_createCycleRecord as createCycleRecord, index$9_createDefaultWorkflowMethodologyConfig as createDefaultWorkflowMethodologyConfig, index$9_createEmbeddedMetadataRecord as createEmbeddedMetadataRecord, index$9_createExecutionRecord as createExecutionRecord, index$9_createFeedbackRecord as createFeedbackRecord, index$9_createTaskRecord as createTaskRecord, index$9_createTestSignature as createTestSignature, index$9_createWorkflowMethodologyConfig as createWorkflowMethodologyConfig, index$9_loadActorRecord as loadActorRecord, index$9_loadAgentRecord as loadAgentRecord, index$9_loadChangelogRecord as loadChangelogRecord, index$9_loadCycleRecord as loadCycleRecord, index$9_loadExecutionRecord as loadExecutionRecord, index$9_loadFeedbackRecord as loadFeedbackRecord, index$9_loadTaskRecord as loadTaskRecord };
|
|
3922
3953
|
}
|
|
3923
3954
|
|
|
3924
3955
|
type StorablePayload = Exclude<GitGovRecordPayload, CustomRecord>;
|
|
@@ -4584,22 +4615,22 @@ declare class LintModule implements ILintModule {
|
|
|
4584
4615
|
* ```
|
|
4585
4616
|
*/
|
|
4586
4617
|
|
|
4587
|
-
type index$
|
|
4588
|
-
type index$
|
|
4589
|
-
type index$
|
|
4590
|
-
type index$
|
|
4591
|
-
type index$
|
|
4592
|
-
type index$
|
|
4593
|
-
declare const index$
|
|
4594
|
-
type index$
|
|
4595
|
-
type index$
|
|
4596
|
-
type index$
|
|
4597
|
-
type index$
|
|
4598
|
-
type index$
|
|
4599
|
-
type index$
|
|
4600
|
-
type index$
|
|
4601
|
-
declare namespace index$
|
|
4602
|
-
export { type index$
|
|
4618
|
+
type index$8_FileSystem = FileSystem;
|
|
4619
|
+
type index$8_FixOptions = FixOptions;
|
|
4620
|
+
type index$8_FixReport = FixReport;
|
|
4621
|
+
type index$8_FixResult = FixResult;
|
|
4622
|
+
type index$8_ILintModule = ILintModule;
|
|
4623
|
+
type index$8_LintModule = LintModule;
|
|
4624
|
+
declare const index$8_LintModule: typeof LintModule;
|
|
4625
|
+
type index$8_LintModuleDependencies = LintModuleDependencies;
|
|
4626
|
+
type index$8_LintOptions = LintOptions;
|
|
4627
|
+
type index$8_LintReport = LintReport;
|
|
4628
|
+
type index$8_LintResult = LintResult;
|
|
4629
|
+
type index$8_LintSummary = LintSummary;
|
|
4630
|
+
type index$8_ValidationContext = ValidationContext;
|
|
4631
|
+
type index$8_ValidatorType = ValidatorType;
|
|
4632
|
+
declare namespace index$8 {
|
|
4633
|
+
export { type index$8_FileSystem as FileSystem, type index$8_FixOptions as FixOptions, type index$8_FixReport as FixReport, type index$8_FixResult as FixResult, type index$8_ILintModule as ILintModule, index$8_LintModule as LintModule, type index$8_LintModuleDependencies as LintModuleDependencies, type index$8_LintOptions as LintOptions, type index$8_LintReport as LintReport, type index$8_LintResult as LintResult, type index$8_LintSummary as LintSummary, type index$8_ValidationContext as ValidationContext, type index$8_ValidatorType as ValidatorType };
|
|
4603
4634
|
}
|
|
4604
4635
|
|
|
4605
4636
|
type LogLevel = "debug" | "info" | "warn" | "error" | "silent";
|
|
@@ -4612,12 +4643,12 @@ interface Logger {
|
|
|
4612
4643
|
declare function createLogger(prefix?: string, level?: LogLevel): Logger;
|
|
4613
4644
|
declare const logger: Logger;
|
|
4614
4645
|
|
|
4615
|
-
type index$
|
|
4616
|
-
type index$
|
|
4617
|
-
declare const index$
|
|
4618
|
-
declare const index$
|
|
4619
|
-
declare namespace index$
|
|
4620
|
-
export { type index$
|
|
4646
|
+
type index$7_LogLevel = LogLevel;
|
|
4647
|
+
type index$7_Logger = Logger;
|
|
4648
|
+
declare const index$7_createLogger: typeof createLogger;
|
|
4649
|
+
declare const index$7_logger: typeof logger;
|
|
4650
|
+
declare namespace index$7 {
|
|
4651
|
+
export { type index$7_LogLevel as LogLevel, type index$7_Logger as Logger, index$7_createLogger as createLogger, index$7_logger as logger };
|
|
4621
4652
|
}
|
|
4622
4653
|
|
|
4623
4654
|
/**
|
|
@@ -8386,21 +8417,21 @@ declare class DetailedValidationError extends GitGovError {
|
|
|
8386
8417
|
}>);
|
|
8387
8418
|
}
|
|
8388
8419
|
|
|
8389
|
-
type index$
|
|
8390
|
-
declare const index$
|
|
8391
|
-
type index$
|
|
8392
|
-
declare const index$
|
|
8393
|
-
type index$
|
|
8394
|
-
type index$
|
|
8395
|
-
declare const index$
|
|
8396
|
-
type index$
|
|
8397
|
-
declare const index$
|
|
8398
|
-
declare const index$
|
|
8399
|
-
declare const index$
|
|
8400
|
-
declare const index$
|
|
8401
|
-
declare const index$
|
|
8402
|
-
declare namespace index$
|
|
8403
|
-
export { index$
|
|
8420
|
+
type index$6_DetailedValidationError = DetailedValidationError;
|
|
8421
|
+
declare const index$6_DetailedValidationError: typeof DetailedValidationError;
|
|
8422
|
+
type index$6_GitGovError = GitGovError;
|
|
8423
|
+
declare const index$6_GitGovError: typeof GitGovError;
|
|
8424
|
+
type index$6_SchemaName = SchemaName;
|
|
8425
|
+
type index$6_SchemaValidationCache = SchemaValidationCache;
|
|
8426
|
+
declare const index$6_SchemaValidationCache: typeof SchemaValidationCache;
|
|
8427
|
+
type index$6_SchemaValidationError = SchemaValidationError;
|
|
8428
|
+
declare const index$6_SchemaValidationError: typeof SchemaValidationError;
|
|
8429
|
+
declare const index$6_Schemas: typeof Schemas;
|
|
8430
|
+
declare const index$6_getSchema: typeof getSchema;
|
|
8431
|
+
declare const index$6_getSchemaNames: typeof getSchemaNames;
|
|
8432
|
+
declare const index$6_hasSchema: typeof hasSchema;
|
|
8433
|
+
declare namespace index$6 {
|
|
8434
|
+
export { index$6_DetailedValidationError as DetailedValidationError, index$6_GitGovError as GitGovError, type index$6_SchemaName as SchemaName, index$6_SchemaValidationCache as SchemaValidationCache, index$6_SchemaValidationError as SchemaValidationError, index$6_Schemas as Schemas, index$6_getSchema as getSchema, index$6_getSchemaNames as getSchemaNames, index$6_hasSchema as hasSchema };
|
|
8404
8435
|
}
|
|
8405
8436
|
|
|
8406
8437
|
/**
|
|
@@ -8557,7 +8588,7 @@ interface IntegrityViolation {
|
|
|
8557
8588
|
/**
|
|
8558
8589
|
* Verification scope for state audit
|
|
8559
8590
|
*/
|
|
8560
|
-
type AuditScope = "current" | "state-branch" | "all";
|
|
8591
|
+
type AuditScope$1 = "current" | "state-branch" | "all";
|
|
8561
8592
|
/**
|
|
8562
8593
|
* Scope for expected files verification
|
|
8563
8594
|
*/
|
|
@@ -8567,7 +8598,7 @@ type ExpectedFilesScope = "head" | "all-commits";
|
|
|
8567
8598
|
*/
|
|
8568
8599
|
interface AuditStateOptions {
|
|
8569
8600
|
/** Verification scope: which Records to verify (default: "all") */
|
|
8570
|
-
scope?: AuditScope;
|
|
8601
|
+
scope?: AuditScope$1;
|
|
8571
8602
|
/** Verify signatures in Records (default: true) */
|
|
8572
8603
|
verifySignatures?: boolean;
|
|
8573
8604
|
/** Verify checksums of Records (default: true) */
|
|
@@ -8618,7 +8649,7 @@ interface AuditStateReport {
|
|
|
8618
8649
|
/** Indicates if the audit passed without violations */
|
|
8619
8650
|
passed: boolean;
|
|
8620
8651
|
/** Scope used for the audit */
|
|
8621
|
-
scope: AuditScope;
|
|
8652
|
+
scope: AuditScope$1;
|
|
8622
8653
|
/** Total commits analyzed */
|
|
8623
8654
|
totalCommits: number;
|
|
8624
8655
|
/** Rebase commits found */
|
|
@@ -9031,56 +9062,55 @@ declare function isNoRebaseInProgressError(error: unknown): error is NoRebaseInP
|
|
|
9031
9062
|
declare function isStateBranchSetupError(error: unknown): error is StateBranchSetupError;
|
|
9032
9063
|
declare function isCryptoModuleRequiredError(error: unknown): error is CryptoModuleRequiredError;
|
|
9033
9064
|
|
|
9034
|
-
type index$
|
|
9035
|
-
type index$
|
|
9036
|
-
type index$
|
|
9037
|
-
type index$
|
|
9038
|
-
type index$
|
|
9039
|
-
type index$
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
type index$
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
type index$
|
|
9046
|
-
type index$
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
type index$
|
|
9054
|
-
type index$
|
|
9055
|
-
type index$
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
type index$
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
type index$
|
|
9066
|
-
type index$
|
|
9067
|
-
type index$
|
|
9068
|
-
type index$
|
|
9069
|
-
type index$
|
|
9070
|
-
type index$
|
|
9071
|
-
type index$
|
|
9072
|
-
|
|
9073
|
-
declare const index$
|
|
9074
|
-
declare const index$
|
|
9075
|
-
declare const index$
|
|
9076
|
-
declare const index$
|
|
9077
|
-
declare const index$
|
|
9078
|
-
declare const index$
|
|
9079
|
-
declare const index$
|
|
9080
|
-
declare const index$
|
|
9081
|
-
declare
|
|
9082
|
-
|
|
9083
|
-
export { type index$2_AuditScope as AuditScope, type index$2_AuditStateOptions as AuditStateOptions, type index$2_AuditStateReport as AuditStateReport, type index$2_ConflictDiff as ConflictDiff, type index$2_ConflictFileDiff as ConflictFileDiff, type index$2_ConflictInfo as ConflictInfo, index$2_ConflictMarkersPresentError as ConflictMarkersPresentError, type index$2_ConflictType as ConflictType, index$2_CryptoModuleRequiredError as CryptoModuleRequiredError, type index$2_ExpectedFilesScope as ExpectedFilesScope, type index$2_IntegrityViolation as IntegrityViolation, index$2_IntegrityViolationError as IntegrityViolationError, index$2_NoRebaseInProgressError as NoRebaseInProgressError, index$2_PullScheduler as PullScheduler, type index$2_PullSchedulerConfig as PullSchedulerConfig, type index$2_PullSchedulerDependencies as PullSchedulerDependencies, type index$2_PullSchedulerResult as PullSchedulerResult, index$2_PushFromStateBranchError as PushFromStateBranchError, index$2_StateBranchSetupError as StateBranchSetupError, type index$2_StateDeltaFile as StateDeltaFile, index$2_SyncError as SyncError, index$2_SyncModule as SyncModule, type index$2_SyncModuleDependencies as SyncModuleDependencies, type index$2_SyncPullOptions as SyncPullOptions, type index$2_SyncPullResult as SyncPullResult, type index$2_SyncPushOptions as SyncPushOptions, type index$2_SyncPushResult as SyncPushResult, type index$2_SyncResolveOptions as SyncResolveOptions, type index$2_SyncResolveResult as SyncResolveResult, index$2_UncommittedChangesError as UncommittedChangesError, index$2_isConflictMarkersPresentError as isConflictMarkersPresentError, index$2_isCryptoModuleRequiredError as isCryptoModuleRequiredError, index$2_isIntegrityViolationError as isIntegrityViolationError, index$2_isNoRebaseInProgressError as isNoRebaseInProgressError, index$2_isPushFromStateBranchError as isPushFromStateBranchError, index$2_isStateBranchSetupError as isStateBranchSetupError, index$2_isSyncError as isSyncError, index$2_isUncommittedChangesError as isUncommittedChangesError };
|
|
9065
|
+
type index$5_AuditStateOptions = AuditStateOptions;
|
|
9066
|
+
type index$5_AuditStateReport = AuditStateReport;
|
|
9067
|
+
type index$5_ConflictDiff = ConflictDiff;
|
|
9068
|
+
type index$5_ConflictFileDiff = ConflictFileDiff;
|
|
9069
|
+
type index$5_ConflictInfo = ConflictInfo;
|
|
9070
|
+
type index$5_ConflictMarkersPresentError = ConflictMarkersPresentError;
|
|
9071
|
+
declare const index$5_ConflictMarkersPresentError: typeof ConflictMarkersPresentError;
|
|
9072
|
+
type index$5_ConflictType = ConflictType;
|
|
9073
|
+
type index$5_CryptoModuleRequiredError = CryptoModuleRequiredError;
|
|
9074
|
+
declare const index$5_CryptoModuleRequiredError: typeof CryptoModuleRequiredError;
|
|
9075
|
+
type index$5_ExpectedFilesScope = ExpectedFilesScope;
|
|
9076
|
+
type index$5_IntegrityViolation = IntegrityViolation;
|
|
9077
|
+
type index$5_IntegrityViolationError = IntegrityViolationError;
|
|
9078
|
+
declare const index$5_IntegrityViolationError: typeof IntegrityViolationError;
|
|
9079
|
+
type index$5_NoRebaseInProgressError = NoRebaseInProgressError;
|
|
9080
|
+
declare const index$5_NoRebaseInProgressError: typeof NoRebaseInProgressError;
|
|
9081
|
+
type index$5_PullScheduler = PullScheduler;
|
|
9082
|
+
declare const index$5_PullScheduler: typeof PullScheduler;
|
|
9083
|
+
type index$5_PullSchedulerConfig = PullSchedulerConfig;
|
|
9084
|
+
type index$5_PullSchedulerDependencies = PullSchedulerDependencies;
|
|
9085
|
+
type index$5_PullSchedulerResult = PullSchedulerResult;
|
|
9086
|
+
type index$5_PushFromStateBranchError = PushFromStateBranchError;
|
|
9087
|
+
declare const index$5_PushFromStateBranchError: typeof PushFromStateBranchError;
|
|
9088
|
+
type index$5_StateBranchSetupError = StateBranchSetupError;
|
|
9089
|
+
declare const index$5_StateBranchSetupError: typeof StateBranchSetupError;
|
|
9090
|
+
type index$5_StateDeltaFile = StateDeltaFile;
|
|
9091
|
+
type index$5_SyncError = SyncError;
|
|
9092
|
+
declare const index$5_SyncError: typeof SyncError;
|
|
9093
|
+
type index$5_SyncModule = SyncModule;
|
|
9094
|
+
declare const index$5_SyncModule: typeof SyncModule;
|
|
9095
|
+
type index$5_SyncModuleDependencies = SyncModuleDependencies;
|
|
9096
|
+
type index$5_SyncPullOptions = SyncPullOptions;
|
|
9097
|
+
type index$5_SyncPullResult = SyncPullResult;
|
|
9098
|
+
type index$5_SyncPushOptions = SyncPushOptions;
|
|
9099
|
+
type index$5_SyncPushResult = SyncPushResult;
|
|
9100
|
+
type index$5_SyncResolveOptions = SyncResolveOptions;
|
|
9101
|
+
type index$5_SyncResolveResult = SyncResolveResult;
|
|
9102
|
+
type index$5_UncommittedChangesError = UncommittedChangesError;
|
|
9103
|
+
declare const index$5_UncommittedChangesError: typeof UncommittedChangesError;
|
|
9104
|
+
declare const index$5_isConflictMarkersPresentError: typeof isConflictMarkersPresentError;
|
|
9105
|
+
declare const index$5_isCryptoModuleRequiredError: typeof isCryptoModuleRequiredError;
|
|
9106
|
+
declare const index$5_isIntegrityViolationError: typeof isIntegrityViolationError;
|
|
9107
|
+
declare const index$5_isNoRebaseInProgressError: typeof isNoRebaseInProgressError;
|
|
9108
|
+
declare const index$5_isPushFromStateBranchError: typeof isPushFromStateBranchError;
|
|
9109
|
+
declare const index$5_isStateBranchSetupError: typeof isStateBranchSetupError;
|
|
9110
|
+
declare const index$5_isSyncError: typeof isSyncError;
|
|
9111
|
+
declare const index$5_isUncommittedChangesError: typeof isUncommittedChangesError;
|
|
9112
|
+
declare namespace index$5 {
|
|
9113
|
+
export { type AuditScope$1 as AuditScope, type index$5_AuditStateOptions as AuditStateOptions, type index$5_AuditStateReport as AuditStateReport, type index$5_ConflictDiff as ConflictDiff, type index$5_ConflictFileDiff as ConflictFileDiff, type index$5_ConflictInfo as ConflictInfo, index$5_ConflictMarkersPresentError as ConflictMarkersPresentError, type index$5_ConflictType as ConflictType, index$5_CryptoModuleRequiredError as CryptoModuleRequiredError, type index$5_ExpectedFilesScope as ExpectedFilesScope, type index$5_IntegrityViolation as IntegrityViolation, index$5_IntegrityViolationError as IntegrityViolationError, index$5_NoRebaseInProgressError as NoRebaseInProgressError, index$5_PullScheduler as PullScheduler, type index$5_PullSchedulerConfig as PullSchedulerConfig, type index$5_PullSchedulerDependencies as PullSchedulerDependencies, type index$5_PullSchedulerResult as PullSchedulerResult, index$5_PushFromStateBranchError as PushFromStateBranchError, index$5_StateBranchSetupError as StateBranchSetupError, type index$5_StateDeltaFile as StateDeltaFile, index$5_SyncError as SyncError, index$5_SyncModule as SyncModule, type index$5_SyncModuleDependencies as SyncModuleDependencies, type index$5_SyncPullOptions as SyncPullOptions, type index$5_SyncPullResult as SyncPullResult, type index$5_SyncPushOptions as SyncPushOptions, type index$5_SyncPushResult as SyncPushResult, type index$5_SyncResolveOptions as SyncResolveOptions, type index$5_SyncResolveResult as SyncResolveResult, index$5_UncommittedChangesError as UncommittedChangesError, index$5_isConflictMarkersPresentError as isConflictMarkersPresentError, index$5_isCryptoModuleRequiredError as isCryptoModuleRequiredError, index$5_isIntegrityViolationError as isIntegrityViolationError, index$5_isNoRebaseInProgressError as isNoRebaseInProgressError, index$5_isPushFromStateBranchError as isPushFromStateBranchError, index$5_isStateBranchSetupError as isStateBranchSetupError, index$5_isSyncError as isSyncError, index$5_isUncommittedChangesError as isUncommittedChangesError };
|
|
9084
9114
|
}
|
|
9085
9115
|
|
|
9086
9116
|
/**
|
|
@@ -9287,46 +9317,46 @@ declare function validateWorkflowMethodologyConfigBusinessRules(config: Workflow
|
|
|
9287
9317
|
}>;
|
|
9288
9318
|
};
|
|
9289
9319
|
|
|
9290
|
-
type index$
|
|
9291
|
-
declare const index$
|
|
9292
|
-
declare const index$
|
|
9293
|
-
declare const index$
|
|
9294
|
-
declare const index$
|
|
9295
|
-
declare const index$
|
|
9296
|
-
declare const index$
|
|
9297
|
-
declare const index$
|
|
9298
|
-
declare const index$
|
|
9299
|
-
declare const index$
|
|
9300
|
-
declare const index$
|
|
9301
|
-
declare const index$
|
|
9302
|
-
declare const index$
|
|
9303
|
-
declare const index$
|
|
9304
|
-
declare const index$
|
|
9305
|
-
declare const index$
|
|
9306
|
-
declare const index$
|
|
9307
|
-
declare const index$
|
|
9308
|
-
declare const index$
|
|
9309
|
-
declare const index$
|
|
9310
|
-
declare const index$
|
|
9311
|
-
declare const index$
|
|
9312
|
-
declare const index$
|
|
9313
|
-
declare const index$
|
|
9314
|
-
declare const index$
|
|
9315
|
-
declare const index$
|
|
9316
|
-
declare const index$
|
|
9317
|
-
declare const index$
|
|
9318
|
-
declare const index$
|
|
9319
|
-
declare const index$
|
|
9320
|
-
declare const index$
|
|
9321
|
-
declare const index$
|
|
9322
|
-
declare const index$
|
|
9323
|
-
declare const index$
|
|
9324
|
-
declare const index$
|
|
9325
|
-
declare const index$
|
|
9326
|
-
declare const index$
|
|
9327
|
-
declare const index$
|
|
9328
|
-
declare namespace index$
|
|
9329
|
-
export { type index$
|
|
9320
|
+
type index$4_ValidationResult = ValidationResult;
|
|
9321
|
+
declare const index$4_isActorRecord: typeof isActorRecord;
|
|
9322
|
+
declare const index$4_isAgentRecord: typeof isAgentRecord;
|
|
9323
|
+
declare const index$4_isChangelogRecord: typeof isChangelogRecord;
|
|
9324
|
+
declare const index$4_isCycleRecord: typeof isCycleRecord;
|
|
9325
|
+
declare const index$4_isEmbeddedMetadataRecord: typeof isEmbeddedMetadataRecord;
|
|
9326
|
+
declare const index$4_isExecutionRecord: typeof isExecutionRecord;
|
|
9327
|
+
declare const index$4_isFeedbackRecord: typeof isFeedbackRecord;
|
|
9328
|
+
declare const index$4_isTaskRecord: typeof isTaskRecord;
|
|
9329
|
+
declare const index$4_isWorkflowMethodologyConfig: typeof isWorkflowMethodologyConfig;
|
|
9330
|
+
declare const index$4_validateActorRecordDetailed: typeof validateActorRecordDetailed;
|
|
9331
|
+
declare const index$4_validateActorRecordSchema: typeof validateActorRecordSchema;
|
|
9332
|
+
declare const index$4_validateAgentActorRelationship: typeof validateAgentActorRelationship;
|
|
9333
|
+
declare const index$4_validateAgentRecordDetailed: typeof validateAgentRecordDetailed;
|
|
9334
|
+
declare const index$4_validateAgentRecordSchema: typeof validateAgentRecordSchema;
|
|
9335
|
+
declare const index$4_validateChangelogRecordDetailed: typeof validateChangelogRecordDetailed;
|
|
9336
|
+
declare const index$4_validateChangelogRecordSchema: typeof validateChangelogRecordSchema;
|
|
9337
|
+
declare const index$4_validateCycleRecordDetailed: typeof validateCycleRecordDetailed;
|
|
9338
|
+
declare const index$4_validateCycleRecordSchema: typeof validateCycleRecordSchema;
|
|
9339
|
+
declare const index$4_validateEmbeddedMetadataDetailed: typeof validateEmbeddedMetadataDetailed;
|
|
9340
|
+
declare const index$4_validateEmbeddedMetadataSchema: typeof validateEmbeddedMetadataSchema;
|
|
9341
|
+
declare const index$4_validateExecutionRecordDetailed: typeof validateExecutionRecordDetailed;
|
|
9342
|
+
declare const index$4_validateExecutionRecordSchema: typeof validateExecutionRecordSchema;
|
|
9343
|
+
declare const index$4_validateFeedbackRecordDetailed: typeof validateFeedbackRecordDetailed;
|
|
9344
|
+
declare const index$4_validateFeedbackRecordSchema: typeof validateFeedbackRecordSchema;
|
|
9345
|
+
declare const index$4_validateFullActorRecord: typeof validateFullActorRecord;
|
|
9346
|
+
declare const index$4_validateFullAgentRecord: typeof validateFullAgentRecord;
|
|
9347
|
+
declare const index$4_validateFullChangelogRecord: typeof validateFullChangelogRecord;
|
|
9348
|
+
declare const index$4_validateFullCycleRecord: typeof validateFullCycleRecord;
|
|
9349
|
+
declare const index$4_validateFullEmbeddedMetadataRecord: typeof validateFullEmbeddedMetadataRecord;
|
|
9350
|
+
declare const index$4_validateFullExecutionRecord: typeof validateFullExecutionRecord;
|
|
9351
|
+
declare const index$4_validateFullFeedbackRecord: typeof validateFullFeedbackRecord;
|
|
9352
|
+
declare const index$4_validateFullTaskRecord: typeof validateFullTaskRecord;
|
|
9353
|
+
declare const index$4_validateTaskRecordDetailed: typeof validateTaskRecordDetailed;
|
|
9354
|
+
declare const index$4_validateTaskRecordSchema: typeof validateTaskRecordSchema;
|
|
9355
|
+
declare const index$4_validateWorkflowMethodologyConfigBusinessRules: typeof validateWorkflowMethodologyConfigBusinessRules;
|
|
9356
|
+
declare const index$4_validateWorkflowMethodologyConfigDetailed: typeof validateWorkflowMethodologyConfigDetailed;
|
|
9357
|
+
declare const index$4_validateWorkflowMethodologyConfigSchema: typeof validateWorkflowMethodologyConfigSchema;
|
|
9358
|
+
declare namespace index$4 {
|
|
9359
|
+
export { type index$4_ValidationResult as ValidationResult, index$4_isActorRecord as isActorRecord, index$4_isAgentRecord as isAgentRecord, index$4_isChangelogRecord as isChangelogRecord, index$4_isCycleRecord as isCycleRecord, index$4_isEmbeddedMetadataRecord as isEmbeddedMetadataRecord, index$4_isExecutionRecord as isExecutionRecord, index$4_isFeedbackRecord as isFeedbackRecord, index$4_isTaskRecord as isTaskRecord, index$4_isWorkflowMethodologyConfig as isWorkflowMethodologyConfig, index$4_validateActorRecordDetailed as validateActorRecordDetailed, index$4_validateActorRecordSchema as validateActorRecordSchema, index$4_validateAgentActorRelationship as validateAgentActorRelationship, index$4_validateAgentRecordDetailed as validateAgentRecordDetailed, index$4_validateAgentRecordSchema as validateAgentRecordSchema, index$4_validateChangelogRecordDetailed as validateChangelogRecordDetailed, index$4_validateChangelogRecordSchema as validateChangelogRecordSchema, index$4_validateCycleRecordDetailed as validateCycleRecordDetailed, index$4_validateCycleRecordSchema as validateCycleRecordSchema, index$4_validateEmbeddedMetadataDetailed as validateEmbeddedMetadataDetailed, index$4_validateEmbeddedMetadataSchema as validateEmbeddedMetadataSchema, index$4_validateExecutionRecordDetailed as validateExecutionRecordDetailed, index$4_validateExecutionRecordSchema as validateExecutionRecordSchema, index$4_validateFeedbackRecordDetailed as validateFeedbackRecordDetailed, index$4_validateFeedbackRecordSchema as validateFeedbackRecordSchema, index$4_validateFullActorRecord as validateFullActorRecord, index$4_validateFullAgentRecord as validateFullAgentRecord, index$4_validateFullChangelogRecord as validateFullChangelogRecord, index$4_validateFullCycleRecord as validateFullCycleRecord, index$4_validateFullEmbeddedMetadataRecord as validateFullEmbeddedMetadataRecord, index$4_validateFullExecutionRecord as validateFullExecutionRecord, index$4_validateFullFeedbackRecord as validateFullFeedbackRecord, index$4_validateFullTaskRecord as validateFullTaskRecord, index$4_validateTaskRecordDetailed as validateTaskRecordDetailed, index$4_validateTaskRecordSchema as validateTaskRecordSchema, index$4_validateWorkflowMethodologyConfigBusinessRules as validateWorkflowMethodologyConfigBusinessRules, index$4_validateWorkflowMethodologyConfigDetailed as validateWorkflowMethodologyConfigDetailed, index$4_validateWorkflowMethodologyConfigSchema as validateWorkflowMethodologyConfigSchema };
|
|
9330
9360
|
}
|
|
9331
9361
|
|
|
9332
9362
|
interface DiagramNode {
|
|
@@ -9596,28 +9626,1074 @@ declare class DiagramGenerator {
|
|
|
9596
9626
|
};
|
|
9597
9627
|
}
|
|
9598
9628
|
|
|
9599
|
-
type
|
|
9600
|
-
declare const
|
|
9601
|
-
type
|
|
9602
|
-
declare const
|
|
9603
|
-
type
|
|
9604
|
-
type
|
|
9605
|
-
declare const
|
|
9606
|
-
type
|
|
9607
|
-
declare const
|
|
9608
|
-
type
|
|
9609
|
-
type
|
|
9610
|
-
type
|
|
9611
|
-
declare const
|
|
9612
|
-
type
|
|
9613
|
-
declare const
|
|
9614
|
-
type
|
|
9615
|
-
declare const
|
|
9616
|
-
type
|
|
9617
|
-
type
|
|
9618
|
-
declare const
|
|
9629
|
+
type index$3_CircularDependencyError = CircularDependencyError;
|
|
9630
|
+
declare const index$3_CircularDependencyError: typeof CircularDependencyError;
|
|
9631
|
+
type index$3_ContentSanitizer = ContentSanitizer;
|
|
9632
|
+
declare const index$3_ContentSanitizer: typeof ContentSanitizer;
|
|
9633
|
+
type index$3_DiagramEdge = DiagramEdge;
|
|
9634
|
+
type index$3_DiagramGenerator = DiagramGenerator;
|
|
9635
|
+
declare const index$3_DiagramGenerator: typeof DiagramGenerator;
|
|
9636
|
+
type index$3_DiagramMetrics = DiagramMetrics;
|
|
9637
|
+
declare const index$3_DiagramMetrics: typeof DiagramMetrics;
|
|
9638
|
+
type index$3_DiagramNode = DiagramNode;
|
|
9639
|
+
type index$3_DiagramOptions = DiagramOptions;
|
|
9640
|
+
type index$3_MermaidRenderer = MermaidRenderer;
|
|
9641
|
+
declare const index$3_MermaidRenderer: typeof MermaidRenderer;
|
|
9642
|
+
type index$3_MermaidValidator = MermaidValidator;
|
|
9643
|
+
declare const index$3_MermaidValidator: typeof MermaidValidator;
|
|
9644
|
+
type index$3_RelationshipAnalyzer = RelationshipAnalyzer;
|
|
9645
|
+
declare const index$3_RelationshipAnalyzer: typeof RelationshipAnalyzer;
|
|
9646
|
+
type index$3_RelationshipGraph = RelationshipGraph;
|
|
9647
|
+
type index$3_RenderingError = RenderingError;
|
|
9648
|
+
declare const index$3_RenderingError: typeof RenderingError;
|
|
9649
|
+
declare namespace index$3 {
|
|
9650
|
+
export { index$3_CircularDependencyError as CircularDependencyError, index$3_ContentSanitizer as ContentSanitizer, type index$3_DiagramEdge as DiagramEdge, index$3_DiagramGenerator as DiagramGenerator, index$3_DiagramMetrics as DiagramMetrics, type index$3_DiagramNode as DiagramNode, type index$3_DiagramOptions as DiagramOptions, index$3_MermaidRenderer as MermaidRenderer, index$3_MermaidValidator as MermaidValidator, index$3_RelationshipAnalyzer as RelationshipAnalyzer, type index$3_RelationshipGraph as RelationshipGraph, index$3_RenderingError as RenderingError };
|
|
9651
|
+
}
|
|
9652
|
+
|
|
9653
|
+
/**
|
|
9654
|
+
* Finding categories detectable by the module.
|
|
9655
|
+
* Includes PII, secrets, logging, and data transfer.
|
|
9656
|
+
*/
|
|
9657
|
+
type FindingCategory = "pii-email" | "pii-phone" | "pii-financial" | "pii-health" | "pii-generic" | "hardcoded-secret" | "logging-pii" | "tracking-cookie" | "tracking-analytics-id" | "unencrypted-storage" | "third-party-transfer" | "unknown-risk";
|
|
9658
|
+
/**
|
|
9659
|
+
* Severity levels for remediation prioritization.
|
|
9660
|
+
*/
|
|
9661
|
+
type FindingSeverity = "critical" | "high" | "medium" | "low" | "info";
|
|
9662
|
+
/**
|
|
9663
|
+
* Identifier of the detector that generated the finding.
|
|
9664
|
+
*/
|
|
9665
|
+
type DetectorName = "regex" | "heuristic" | "llm";
|
|
9666
|
+
/**
|
|
9667
|
+
* PII/secrets detection result in source code.
|
|
9668
|
+
* Includes metadata for deduplication and traceability.
|
|
9669
|
+
*/
|
|
9670
|
+
interface GdprFinding {
|
|
9671
|
+
/** Unique UUID of the finding */
|
|
9672
|
+
id: string;
|
|
9673
|
+
/** Rule ID that detected it (e.g., "PII-001", "SEC-002") */
|
|
9674
|
+
ruleId: string;
|
|
9675
|
+
/** Semantic category of the finding */
|
|
9676
|
+
category: FindingCategory;
|
|
9677
|
+
/** Severity for prioritization */
|
|
9678
|
+
severity: FindingSeverity;
|
|
9679
|
+
/** Relative path to repo */
|
|
9680
|
+
file: string;
|
|
9681
|
+
/** Line number (1-based) */
|
|
9682
|
+
line: number;
|
|
9683
|
+
/** Optional column */
|
|
9684
|
+
column?: number;
|
|
9685
|
+
/** Sanitized affected code (max 300 chars) */
|
|
9686
|
+
snippet: string;
|
|
9687
|
+
/** Problem description */
|
|
9688
|
+
message: string;
|
|
9689
|
+
/** Remediation suggestion */
|
|
9690
|
+
suggestion?: string;
|
|
9691
|
+
/** Legal reference (e.g., "GDPR Art. 5(1)(f)") */
|
|
9692
|
+
legalReference?: string;
|
|
9693
|
+
/** Detector that generated the finding */
|
|
9694
|
+
detector: DetectorName;
|
|
9695
|
+
/** SHA256 for deduplication: hash(ruleId:file:line) */
|
|
9696
|
+
fingerprint: string;
|
|
9697
|
+
/** Confidence level 0-1 */
|
|
9698
|
+
confidence: number;
|
|
9699
|
+
}
|
|
9700
|
+
/**
|
|
9701
|
+
* Configuration to enable/disable detectors.
|
|
9702
|
+
*/
|
|
9703
|
+
interface DetectorConfig {
|
|
9704
|
+
/** Whether the detector is enabled */
|
|
9705
|
+
enabled: boolean;
|
|
9706
|
+
/** Specific rule IDs to use (optional, default: all) */
|
|
9707
|
+
rules?: string[];
|
|
9708
|
+
}
|
|
9709
|
+
/**
|
|
9710
|
+
* Interface for local detectors (regex, heuristic).
|
|
9711
|
+
* Process file content and return findings.
|
|
9712
|
+
*/
|
|
9713
|
+
interface Detector {
|
|
9714
|
+
/** Unique name of the detector */
|
|
9715
|
+
name: DetectorName;
|
|
9716
|
+
/**
|
|
9717
|
+
* Detects PII/secrets in file content.
|
|
9718
|
+
* @param content - File content as string
|
|
9719
|
+
* @param filePath - Relative path to include in findings
|
|
9720
|
+
* @returns Array of detected findings
|
|
9721
|
+
*/
|
|
9722
|
+
detect(content: string, filePath: string): Promise<GdprFinding[]>;
|
|
9723
|
+
}
|
|
9724
|
+
/**
|
|
9725
|
+
* Code snippet sent to LLM for semantic analysis.
|
|
9726
|
+
* Includes context from adjacent lines.
|
|
9727
|
+
*/
|
|
9728
|
+
interface CodeSnippet {
|
|
9729
|
+
/** File path */
|
|
9730
|
+
file: string;
|
|
9731
|
+
/** Start line of context */
|
|
9732
|
+
lineStart: number;
|
|
9733
|
+
/** End line of context */
|
|
9734
|
+
lineEnd: number;
|
|
9735
|
+
/** Detected language (typescript, python, etc.) */
|
|
9736
|
+
language: string;
|
|
9737
|
+
/** Snippet content (typically 5 lines) */
|
|
9738
|
+
content: string;
|
|
9739
|
+
/** Tags from heuristic detector that flagged it */
|
|
9740
|
+
heuristicTags: string[];
|
|
9741
|
+
}
|
|
9742
|
+
/** Quota type for LLM usage control */
|
|
9743
|
+
type QuotaType = "unlimited" | "trial" | "usage-based";
|
|
9744
|
+
/**
|
|
9745
|
+
* Remote LLM detector configuration.
|
|
9746
|
+
*/
|
|
9747
|
+
interface LlmDetectorConfig {
|
|
9748
|
+
/** Whether LLM detector is enabled */
|
|
9749
|
+
enabled: boolean;
|
|
9750
|
+
/** Analysis endpoint URL */
|
|
9751
|
+
endpoint: string;
|
|
9752
|
+
/** Model to use (claude-3-haiku, claude-3-sonnet) */
|
|
9753
|
+
model?: string;
|
|
9754
|
+
/** Max snippets per request (default: 50) */
|
|
9755
|
+
maxSnippetsPerRequest?: number;
|
|
9756
|
+
/** Applicable quota type */
|
|
9757
|
+
quotaType: QuotaType;
|
|
9758
|
+
/** Remaining uses for trial/usage-based */
|
|
9759
|
+
remainingUses?: number;
|
|
9760
|
+
/** ISO expiration date for trial */
|
|
9761
|
+
expiresAt?: string;
|
|
9762
|
+
}
|
|
9763
|
+
/**
|
|
9764
|
+
* Interface for remote LLM detectors.
|
|
9765
|
+
* Receive pre-filtered snippets in batch.
|
|
9766
|
+
*/
|
|
9767
|
+
interface LlmDetector {
|
|
9768
|
+
/**
|
|
9769
|
+
* Analyzes snippets with LLM for semantic detection.
|
|
9770
|
+
* @param snippets - Pre-filtered candidates by heuristic
|
|
9771
|
+
* @returns Findings confirmed by LLM analysis
|
|
9772
|
+
*/
|
|
9773
|
+
analyzeSnippets(snippets: CodeSnippet[]): Promise<GdprFinding[]>;
|
|
9774
|
+
}
|
|
9775
|
+
/**
|
|
9776
|
+
* Complete PII Detector module configuration.
|
|
9777
|
+
* Allows enabling/disabling each detector individually.
|
|
9778
|
+
*/
|
|
9779
|
+
interface PiiDetectorConfig {
|
|
9780
|
+
/** Regex detector configuration (Free tier) */
|
|
9781
|
+
regex?: DetectorConfig;
|
|
9782
|
+
/** Heuristic detector configuration (Trial+ tier) */
|
|
9783
|
+
heuristic?: DetectorConfig;
|
|
9784
|
+
/** LLM detector configuration (Premium tier) */
|
|
9785
|
+
llm?: LlmDetectorConfig;
|
|
9786
|
+
}
|
|
9787
|
+
/**
|
|
9788
|
+
* Regex detection rule definition.
|
|
9789
|
+
*/
|
|
9790
|
+
interface RegexRule {
|
|
9791
|
+
/** Unique rule ID (e.g., "PII-001") */
|
|
9792
|
+
id: string;
|
|
9793
|
+
/** Regex pattern with global flag */
|
|
9794
|
+
pattern: RegExp;
|
|
9795
|
+
/** Resulting finding category */
|
|
9796
|
+
category: FindingCategory;
|
|
9797
|
+
/** Resulting finding severity */
|
|
9798
|
+
severity: FindingSeverity;
|
|
9799
|
+
/** Descriptive problem message */
|
|
9800
|
+
message: string;
|
|
9801
|
+
/** Remediation suggestion */
|
|
9802
|
+
suggestion?: string;
|
|
9803
|
+
/** Applicable legal reference */
|
|
9804
|
+
legalReference?: string;
|
|
9805
|
+
}
|
|
9806
|
+
/**
|
|
9807
|
+
* Finding structure returned by LLM API.
|
|
9808
|
+
* Normalized to GdprFinding in normalizeFindings().
|
|
9809
|
+
*/
|
|
9810
|
+
interface LlmRawFinding {
|
|
9811
|
+
file: string;
|
|
9812
|
+
line: number;
|
|
9813
|
+
ruleId?: string;
|
|
9814
|
+
category: string;
|
|
9815
|
+
severity: "critical" | "high" | "medium" | "low" | "info";
|
|
9816
|
+
message: string;
|
|
9817
|
+
suggestion?: string;
|
|
9818
|
+
legalReference?: string;
|
|
9819
|
+
snippet?: string;
|
|
9820
|
+
confidence?: number;
|
|
9821
|
+
}
|
|
9822
|
+
|
|
9823
|
+
/**
|
|
9824
|
+
* PII Detector Module - Central component for sensitive data detection.
|
|
9825
|
+
*
|
|
9826
|
+
* Architecture: Two-phase detection
|
|
9827
|
+
* - Phase 1: Local detection (regex + heuristic) - always runs
|
|
9828
|
+
* - Phase 2: Remote LLM analysis - only for low-confidence candidates
|
|
9829
|
+
*
|
|
9830
|
+
* Implements EARS-14: Execute Phase 1 before Phase 2
|
|
9831
|
+
* Implements EARS-16: Deduplicate by SHA256 fingerprint
|
|
9832
|
+
* Implements EARS-17: Work with local-only detection when no LLM
|
|
9833
|
+
* Implements EARS-23: Truncate snippets to 300 chars
|
|
9834
|
+
*/
|
|
9835
|
+
declare class PiiDetectorModule {
|
|
9836
|
+
private localDetectors;
|
|
9837
|
+
private llmDetector?;
|
|
9838
|
+
private llmConfig?;
|
|
9839
|
+
/**
|
|
9840
|
+
* Constructs the module with graceful degradation.
|
|
9841
|
+
* Without config -> only RegexDetector (Free tier).
|
|
9842
|
+
*/
|
|
9843
|
+
constructor(config?: PiiDetectorConfig);
|
|
9844
|
+
/**
|
|
9845
|
+
* Detects PII and secrets in file content.
|
|
9846
|
+
*
|
|
9847
|
+
* Flow:
|
|
9848
|
+
* 1. Run all enabled local detectors (Phase 1)
|
|
9849
|
+
* 2. Extract candidates with confidence < 0.8
|
|
9850
|
+
* 3. If LLM enabled and quota OK, analyze candidates (Phase 2)
|
|
9851
|
+
* 4. Merge and deduplicate by fingerprint
|
|
9852
|
+
*/
|
|
9853
|
+
detect(content: string, filePath: string): Promise<GdprFinding[]>;
|
|
9854
|
+
/**
|
|
9855
|
+
* Runs all local detectors and collects findings.
|
|
9856
|
+
*/
|
|
9857
|
+
private runLocalDetectors;
|
|
9858
|
+
/**
|
|
9859
|
+
* Extracts CodeSnippets from low-confidence findings for LLM analysis.
|
|
9860
|
+
* Includes 2 lines of context before and after.
|
|
9861
|
+
* Implements EARS-15: Extract candidates with confidence < 0.8
|
|
9862
|
+
*/
|
|
9863
|
+
private extractCandidates;
|
|
9864
|
+
/**
|
|
9865
|
+
* Checks if LLM quota is available.
|
|
9866
|
+
* Implements EARS-20: Reject when trial expired
|
|
9867
|
+
* Implements EARS-21: Reject when remainingUses is zero
|
|
9868
|
+
*/
|
|
9869
|
+
private checkQuota;
|
|
9870
|
+
/**
|
|
9871
|
+
* Decrements quota after successful LLM call.
|
|
9872
|
+
* Implements EARS-22: Decrement remainingUses after successful call
|
|
9873
|
+
*/
|
|
9874
|
+
private decrementQuota;
|
|
9875
|
+
/**
|
|
9876
|
+
* Deduplicates findings by SHA256 fingerprint.
|
|
9877
|
+
*/
|
|
9878
|
+
private deduplicateByFingerprint;
|
|
9879
|
+
/**
|
|
9880
|
+
* Detects programming language based on file extension.
|
|
9881
|
+
*/
|
|
9882
|
+
private detectLanguage;
|
|
9883
|
+
}
|
|
9884
|
+
|
|
9885
|
+
/**
|
|
9886
|
+
* Regex-based detector for PII and secrets.
|
|
9887
|
+
* Tier: Free (always available)
|
|
9888
|
+
* Confidence: 1.0 (deterministic)
|
|
9889
|
+
*/
|
|
9890
|
+
declare class RegexDetector implements Detector {
|
|
9891
|
+
readonly name: "regex";
|
|
9892
|
+
private rules;
|
|
9893
|
+
constructor(ruleIds?: string[]);
|
|
9894
|
+
detect(content: string, filePath: string): Promise<GdprFinding[]>;
|
|
9895
|
+
}
|
|
9896
|
+
|
|
9897
|
+
/**
|
|
9898
|
+
* Heuristic detector for complex PII patterns.
|
|
9899
|
+
* Tier: Trial+ (requires enablement)
|
|
9900
|
+
* Confidence: 0.5-0.7 (probabilistic)
|
|
9901
|
+
*/
|
|
9902
|
+
declare class HeuristicDetector implements Detector {
|
|
9903
|
+
readonly name: "heuristic";
|
|
9904
|
+
detect(content: string, filePath: string): Promise<GdprFinding[]>;
|
|
9905
|
+
}
|
|
9906
|
+
|
|
9907
|
+
/**
|
|
9908
|
+
* HTTP-based LLM detector for semantic PII analysis.
|
|
9909
|
+
* Tier: Premium (requires API key and quota)
|
|
9910
|
+
* Confidence: 0.9 (LLM-confirmed)
|
|
9911
|
+
*
|
|
9912
|
+
* Implements EARS-24: Reads API key from GITGOV_LLM_API_KEY env var
|
|
9913
|
+
* Implements EARS-25: Uses Bearer token authentication
|
|
9914
|
+
*/
|
|
9915
|
+
declare class HttpLlmDetector implements LlmDetector {
|
|
9916
|
+
private endpoint;
|
|
9917
|
+
private apiKey;
|
|
9918
|
+
constructor(endpoint: string, apiKey: string);
|
|
9919
|
+
/**
|
|
9920
|
+
* Analyzes code snippets with LLM for semantic PII detection.
|
|
9921
|
+
* Implements EARS-18: Send candidates to LLM when quota available
|
|
9922
|
+
* Implements EARS-19: Normalize LLM response to GdprFinding format
|
|
9923
|
+
*/
|
|
9924
|
+
analyzeSnippets(snippets: CodeSnippet[]): Promise<GdprFinding[]>;
|
|
9925
|
+
/**
|
|
9926
|
+
* Normalizes raw LLM findings to GdprFinding format.
|
|
9927
|
+
*/
|
|
9928
|
+
private normalizeFindings;
|
|
9929
|
+
}
|
|
9930
|
+
|
|
9931
|
+
declare const REGEX_RULES: RegexRule[];
|
|
9932
|
+
|
|
9933
|
+
type index$2_CodeSnippet = CodeSnippet;
|
|
9934
|
+
type index$2_Detector = Detector;
|
|
9935
|
+
type index$2_DetectorConfig = DetectorConfig;
|
|
9936
|
+
type index$2_DetectorName = DetectorName;
|
|
9937
|
+
type index$2_FindingCategory = FindingCategory;
|
|
9938
|
+
type index$2_FindingSeverity = FindingSeverity;
|
|
9939
|
+
type index$2_GdprFinding = GdprFinding;
|
|
9940
|
+
type index$2_HeuristicDetector = HeuristicDetector;
|
|
9941
|
+
declare const index$2_HeuristicDetector: typeof HeuristicDetector;
|
|
9942
|
+
type index$2_HttpLlmDetector = HttpLlmDetector;
|
|
9943
|
+
declare const index$2_HttpLlmDetector: typeof HttpLlmDetector;
|
|
9944
|
+
type index$2_LlmDetector = LlmDetector;
|
|
9945
|
+
type index$2_LlmDetectorConfig = LlmDetectorConfig;
|
|
9946
|
+
type index$2_LlmRawFinding = LlmRawFinding;
|
|
9947
|
+
type index$2_PiiDetectorConfig = PiiDetectorConfig;
|
|
9948
|
+
type index$2_PiiDetectorModule = PiiDetectorModule;
|
|
9949
|
+
declare const index$2_PiiDetectorModule: typeof PiiDetectorModule;
|
|
9950
|
+
type index$2_QuotaType = QuotaType;
|
|
9951
|
+
declare const index$2_REGEX_RULES: typeof REGEX_RULES;
|
|
9952
|
+
type index$2_RegexDetector = RegexDetector;
|
|
9953
|
+
declare const index$2_RegexDetector: typeof RegexDetector;
|
|
9954
|
+
type index$2_RegexRule = RegexRule;
|
|
9955
|
+
declare namespace index$2 {
|
|
9956
|
+
export { type index$2_CodeSnippet as CodeSnippet, type index$2_Detector as Detector, type index$2_DetectorConfig as DetectorConfig, type index$2_DetectorName as DetectorName, type index$2_FindingCategory as FindingCategory, type index$2_FindingSeverity as FindingSeverity, type index$2_GdprFinding as GdprFinding, index$2_HeuristicDetector as HeuristicDetector, index$2_HttpLlmDetector as HttpLlmDetector, type index$2_LlmDetector as LlmDetector, type index$2_LlmDetectorConfig as LlmDetectorConfig, type index$2_LlmRawFinding as LlmRawFinding, type index$2_PiiDetectorConfig as PiiDetectorConfig, index$2_PiiDetectorModule as PiiDetectorModule, type index$2_QuotaType as QuotaType, index$2_REGEX_RULES as REGEX_RULES, index$2_RegexDetector as RegexDetector, type index$2_RegexRule as RegexRule };
|
|
9957
|
+
}
|
|
9958
|
+
|
|
9959
|
+
/**
|
|
9960
|
+
* What to audit.
|
|
9961
|
+
* - code: Source code in the repository (MVP)
|
|
9962
|
+
* - jira: Jira issues (future)
|
|
9963
|
+
* - gitgov: GitGovernance records (future)
|
|
9964
|
+
*/
|
|
9965
|
+
type AuditTarget = "code" | "jira" | "gitgov";
|
|
9966
|
+
/**
|
|
9967
|
+
* Scope for code auditing.
|
|
9968
|
+
* - diff: Only files modified since last baseline (default)
|
|
9969
|
+
* - full: All files in repo (without saving baseline)
|
|
9970
|
+
* - baseline: All files + save commit as new baseline
|
|
9971
|
+
*/
|
|
9972
|
+
type CodeScope = "diff" | "full" | "baseline";
|
|
9973
|
+
/**
|
|
9974
|
+
* Scope for Jira auditing (future).
|
|
9975
|
+
* - all: All issues
|
|
9976
|
+
* - sprint: Only current sprint issues
|
|
9977
|
+
* - stale: Issues without activity > 30 days
|
|
9978
|
+
* - backlog: Unassigned backlog issues
|
|
9979
|
+
*/
|
|
9980
|
+
type JiraScope = "all" | "sprint" | "stale" | "backlog";
|
|
9981
|
+
/**
|
|
9982
|
+
* Scope for GitGov records auditing (future).
|
|
9983
|
+
* - all: All records
|
|
9984
|
+
* - tasks: Only TaskRecords
|
|
9985
|
+
* - cycles: Only CycleRecords
|
|
9986
|
+
*/
|
|
9987
|
+
type GitgovScope = "all" | "tasks" | "cycles";
|
|
9988
|
+
/**
|
|
9989
|
+
* Union of all possible scopes depending on target.
|
|
9990
|
+
*/
|
|
9991
|
+
type AuditScope = CodeScope | JiraScope | GitgovScope;
|
|
9992
|
+
/**
|
|
9993
|
+
* How to group findings in output.
|
|
9994
|
+
*/
|
|
9995
|
+
type GroupByOption = "file" | "severity" | "category";
|
|
9996
|
+
/**
|
|
9997
|
+
* Output format for the report.
|
|
9998
|
+
*/
|
|
9999
|
+
type OutputFormat = "text" | "json" | "sarif";
|
|
10000
|
+
/**
|
|
10001
|
+
* Minimum severity level to fail the audit.
|
|
10002
|
+
*/
|
|
10003
|
+
type FailOnSeverity = "critical" | "high" | "medium" | "low" | "none";
|
|
10004
|
+
/**
|
|
10005
|
+
* Metadata stored in FeedbackRecord for waivers.
|
|
10006
|
+
* Uses the generic metadata<T> field of FeedbackRecord.
|
|
10007
|
+
*/
|
|
10008
|
+
interface WaiverMetadata {
|
|
10009
|
+
/** SHA256 fingerprint for matching */
|
|
10010
|
+
fingerprint: string;
|
|
10011
|
+
/** Rule ID (e.g., "PII-001", "SEC-002") */
|
|
10012
|
+
ruleId: string;
|
|
10013
|
+
/** File path of the original finding */
|
|
10014
|
+
file: string;
|
|
10015
|
+
/** Line number of the original finding */
|
|
10016
|
+
line: number;
|
|
10017
|
+
/** Optional expiration date (ISO string) */
|
|
10018
|
+
expiresAt?: string;
|
|
10019
|
+
/** Optional related TaskRecord ID */
|
|
10020
|
+
relatedTaskId?: string;
|
|
10021
|
+
}
|
|
10022
|
+
/**
|
|
10023
|
+
* Active waiver loaded from FeedbackRecord.
|
|
10024
|
+
*/
|
|
10025
|
+
interface ActiveWaiver {
|
|
10026
|
+
/** Fingerprint for matching with findings */
|
|
10027
|
+
fingerprint: string;
|
|
10028
|
+
/** Original rule ID */
|
|
10029
|
+
ruleId: string;
|
|
10030
|
+
/** Expiration date (undefined = permanent) */
|
|
10031
|
+
expiresAt?: Date;
|
|
10032
|
+
/** Original FeedbackRecord with metadata */
|
|
10033
|
+
feedback: FeedbackRecord<WaiverMetadata>;
|
|
10034
|
+
}
|
|
10035
|
+
/**
|
|
10036
|
+
* Interface for loading active waivers.
|
|
10037
|
+
*/
|
|
10038
|
+
interface IWaiverReader {
|
|
10039
|
+
/** Loads all active (non-expired) waivers */
|
|
10040
|
+
loadActiveWaivers(): Promise<ActiveWaiver[]>;
|
|
10041
|
+
/** Checks if a specific fingerprint has an active waiver */
|
|
10042
|
+
hasActiveWaiver(fingerprint: string): Promise<boolean>;
|
|
10043
|
+
}
|
|
10044
|
+
/**
|
|
10045
|
+
* Scope configuration for file selection.
|
|
10046
|
+
*/
|
|
10047
|
+
interface ScopeConfig {
|
|
10048
|
+
/** Glob patterns to include */
|
|
10049
|
+
include: string[];
|
|
10050
|
+
/** Glob patterns to exclude */
|
|
10051
|
+
exclude: string[];
|
|
10052
|
+
/** Commit SHA to compare against for incremental mode (optional) */
|
|
10053
|
+
changedSince?: string;
|
|
10054
|
+
}
|
|
10055
|
+
/**
|
|
10056
|
+
* Options for running an audit.
|
|
10057
|
+
*/
|
|
10058
|
+
interface AuditOptions {
|
|
10059
|
+
/** File include/exclude configuration */
|
|
10060
|
+
scope: ScopeConfig;
|
|
10061
|
+
/** Base directory for file scanning (defaults to cwd) */
|
|
10062
|
+
baseDir?: string;
|
|
10063
|
+
}
|
|
10064
|
+
/**
|
|
10065
|
+
* Aggregated summary of findings.
|
|
10066
|
+
*/
|
|
10067
|
+
interface AuditSummary {
|
|
10068
|
+
/** Total findings (post-waiver) */
|
|
10069
|
+
total: number;
|
|
10070
|
+
/** Count by severity */
|
|
10071
|
+
bySeverity: Record<FindingSeverity, number>;
|
|
10072
|
+
/** Count by category */
|
|
10073
|
+
byCategory: Partial<Record<FindingCategory, number>>;
|
|
10074
|
+
/** Count by detector */
|
|
10075
|
+
byDetector: Record<DetectorName, number>;
|
|
10076
|
+
}
|
|
10077
|
+
/**
|
|
10078
|
+
* Waiver application status.
|
|
10079
|
+
*/
|
|
10080
|
+
interface WaiverStatus {
|
|
10081
|
+
/** Findings with active waiver (excluded from result) */
|
|
10082
|
+
acknowledged: number;
|
|
10083
|
+
/** New findings without waiver */
|
|
10084
|
+
new: number;
|
|
10085
|
+
}
|
|
10086
|
+
/**
|
|
10087
|
+
* Complete audit result.
|
|
10088
|
+
*/
|
|
10089
|
+
interface AuditResult {
|
|
10090
|
+
/** Detected findings (post-waiver) */
|
|
10091
|
+
findings: GdprFinding[];
|
|
10092
|
+
/** Aggregated summary */
|
|
10093
|
+
summary: AuditSummary;
|
|
10094
|
+
/** Number of files scanned */
|
|
10095
|
+
scannedFiles: number;
|
|
10096
|
+
/** Number of lines scanned */
|
|
10097
|
+
scannedLines: number;
|
|
10098
|
+
/** Duration in milliseconds */
|
|
10099
|
+
duration: number;
|
|
10100
|
+
/** Detectors used in this scan */
|
|
10101
|
+
detectors: DetectorName[];
|
|
10102
|
+
/** Waiver status */
|
|
10103
|
+
waivers: WaiverStatus;
|
|
10104
|
+
}
|
|
10105
|
+
/**
|
|
10106
|
+
* Injectable dependencies for SourceAuditorModule.
|
|
10107
|
+
* ScopeSelector and ScoringEngine are internal.
|
|
10108
|
+
*/
|
|
10109
|
+
interface SourceAuditorDependencies {
|
|
10110
|
+
/** PII/secrets detection module */
|
|
10111
|
+
piiDetector: PiiDetectorModule;
|
|
10112
|
+
/** Waiver reader for loading active waivers */
|
|
10113
|
+
waiverReader: IWaiverReader;
|
|
10114
|
+
}
|
|
10115
|
+
/**
|
|
10116
|
+
* Options for creating a waiver.
|
|
10117
|
+
*/
|
|
10118
|
+
interface CreateWaiverOptions {
|
|
10119
|
+
/** Finding to waive */
|
|
10120
|
+
finding: GdprFinding;
|
|
10121
|
+
/** ExecutionRecord where it was detected */
|
|
10122
|
+
executionId: string;
|
|
10123
|
+
/** Human-readable justification */
|
|
10124
|
+
justification: string;
|
|
10125
|
+
/** Optional expiration date (ISO string) */
|
|
10126
|
+
expiresAt?: string;
|
|
10127
|
+
/** Optional related TaskRecord ID */
|
|
10128
|
+
relatedTaskId?: string;
|
|
10129
|
+
}
|
|
10130
|
+
|
|
10131
|
+
/**
|
|
10132
|
+
* Source Auditor Module - Main audit pipeline for source code.
|
|
10133
|
+
*
|
|
10134
|
+
* Pipeline: Scope -> Detect -> Filter -> Score -> Output
|
|
10135
|
+
*
|
|
10136
|
+
* Orchestrates the complete flow: file selection, PII/secrets detection,
|
|
10137
|
+
* waiver filtering, scoring, and structured result generation.
|
|
10138
|
+
*/
|
|
10139
|
+
declare class SourceAuditorModule {
|
|
10140
|
+
private deps;
|
|
10141
|
+
private scopeSelector;
|
|
10142
|
+
private scoringEngine;
|
|
10143
|
+
/**
|
|
10144
|
+
* Creates module instance with injected dependencies.
|
|
10145
|
+
* ScopeSelector and ScoringEngine are internal components.
|
|
10146
|
+
*/
|
|
10147
|
+
constructor(deps: SourceAuditorDependencies);
|
|
10148
|
+
/**
|
|
10149
|
+
* Executes complete source code audit.
|
|
10150
|
+
* Pipeline: Scope -> Detect -> Filter -> Score -> Output
|
|
10151
|
+
*/
|
|
10152
|
+
audit(options: AuditOptions): Promise<AuditResult>;
|
|
10153
|
+
/**
|
|
10154
|
+
* Runs detection on all files, processing in batches for large file counts.
|
|
10155
|
+
*/
|
|
10156
|
+
private runDetection;
|
|
10157
|
+
/**
|
|
10158
|
+
* Creates batches of files for processing.
|
|
10159
|
+
*/
|
|
10160
|
+
private createBatches;
|
|
10161
|
+
/**
|
|
10162
|
+
* Filters findings that already have active waivers.
|
|
10163
|
+
* @returns new findings and count of acknowledged
|
|
10164
|
+
*/
|
|
10165
|
+
private filterByWaivers;
|
|
10166
|
+
/**
|
|
10167
|
+
* Calculates summary of findings by severity, category, and detector.
|
|
10168
|
+
*/
|
|
10169
|
+
private calculateSummary;
|
|
10170
|
+
/**
|
|
10171
|
+
* Creates empty result for when no files are selected.
|
|
10172
|
+
*/
|
|
10173
|
+
private createEmptyResult;
|
|
10174
|
+
}
|
|
10175
|
+
|
|
10176
|
+
/**
|
|
10177
|
+
* Internal component for selecting files based on glob patterns.
|
|
10178
|
+
* Not injectable - instantiated internally by SourceAuditorModule.
|
|
10179
|
+
*/
|
|
10180
|
+
declare class ScopeSelector {
|
|
10181
|
+
/**
|
|
10182
|
+
* Selects files matching include patterns, excluding those matching exclude patterns.
|
|
10183
|
+
* Automatically respects .gitignore patterns from the project root.
|
|
10184
|
+
* If scope.changedSince is set, only returns files changed since that commit.
|
|
10185
|
+
* @param scope - Include and exclude glob patterns, optional changedSince commit
|
|
10186
|
+
* @param baseDir - Base directory for file search
|
|
10187
|
+
* @returns Array of file paths relative to baseDir
|
|
10188
|
+
*/
|
|
10189
|
+
selectFiles(scope: ScopeConfig, baseDir: string): Promise<string[]>;
|
|
10190
|
+
/**
|
|
10191
|
+
* Selects files changed since a specific commit (incremental mode).
|
|
10192
|
+
* Includes: git diff, modified files, untracked files.
|
|
10193
|
+
*/
|
|
10194
|
+
private selectChangedFiles;
|
|
10195
|
+
/**
|
|
10196
|
+
* Reads .gitignore and converts patterns to glob format.
|
|
10197
|
+
* Returns empty array if .gitignore doesn't exist.
|
|
10198
|
+
*/
|
|
10199
|
+
private loadGitignorePatterns;
|
|
10200
|
+
/**
|
|
10201
|
+
* Parses .gitignore content into glob patterns.
|
|
10202
|
+
* Handles comments, empty lines, and directory patterns.
|
|
10203
|
+
*/
|
|
10204
|
+
private parseGitignore;
|
|
10205
|
+
}
|
|
10206
|
+
|
|
10207
|
+
/**
|
|
10208
|
+
* Internal component for applying scoring rules to findings.
|
|
10209
|
+
* Not injectable - instantiated internally by SourceAuditorModule.
|
|
10210
|
+
*
|
|
10211
|
+
* Currently a pass-through; scoring rules will be added in future cycles.
|
|
10212
|
+
*/
|
|
10213
|
+
declare class ScoringEngine {
|
|
10214
|
+
/**
|
|
10215
|
+
* Applies scoring rules to findings.
|
|
10216
|
+
* Currently returns findings unchanged (future enhancement).
|
|
10217
|
+
* @param findings - Findings to score
|
|
10218
|
+
* @returns Scored findings (same as input for now)
|
|
10219
|
+
*/
|
|
10220
|
+
score(findings: GdprFinding[]): GdprFinding[];
|
|
10221
|
+
}
|
|
10222
|
+
|
|
10223
|
+
/**
|
|
10224
|
+
* Reads active waivers from FeedbackRecords.
|
|
10225
|
+
* Uses FeedbackAdapter for access to feedback data.
|
|
10226
|
+
*/
|
|
10227
|
+
declare class WaiverReader implements IWaiverReader {
|
|
10228
|
+
private feedbackAdapter;
|
|
10229
|
+
constructor(feedbackAdapter: IFeedbackAdapter);
|
|
10230
|
+
/**
|
|
10231
|
+
* Loads all active waivers (non-expired).
|
|
10232
|
+
* Filters by type: "approval" and metadata.fingerprint present.
|
|
10233
|
+
*/
|
|
10234
|
+
loadActiveWaivers(): Promise<ActiveWaiver[]>;
|
|
10235
|
+
/**
|
|
10236
|
+
* Checks if a specific finding has an active waiver.
|
|
10237
|
+
*/
|
|
10238
|
+
hasActiveWaiver(fingerprint: string): Promise<boolean>;
|
|
10239
|
+
/**
|
|
10240
|
+
* Gets waivers for a specific ExecutionRecord.
|
|
10241
|
+
*/
|
|
10242
|
+
getWaiversForExecution(executionId: string): Promise<ActiveWaiver[]>;
|
|
10243
|
+
}
|
|
10244
|
+
|
|
10245
|
+
/**
|
|
10246
|
+
* Creates waivers as FeedbackRecords with structured metadata.
|
|
10247
|
+
* Uses FeedbackAdapter for signature and event handling.
|
|
10248
|
+
*/
|
|
10249
|
+
declare class WaiverWriter {
|
|
10250
|
+
private feedbackAdapter;
|
|
10251
|
+
constructor(feedbackAdapter: IFeedbackAdapter);
|
|
10252
|
+
/**
|
|
10253
|
+
* Creates a waiver for a specific finding.
|
|
10254
|
+
* The waiver is stored as FeedbackRecord with type: "approval".
|
|
10255
|
+
*/
|
|
10256
|
+
createWaiver(options: CreateWaiverOptions, actorId: string): Promise<void>;
|
|
10257
|
+
/**
|
|
10258
|
+
* Creates waivers in batch for multiple findings.
|
|
10259
|
+
*/
|
|
10260
|
+
createWaiversBatch(findings: GdprFinding[], executionId: string, justification: string, actorId: string): Promise<void>;
|
|
10261
|
+
}
|
|
10262
|
+
|
|
10263
|
+
type index$1_ActiveWaiver = ActiveWaiver;
|
|
10264
|
+
type index$1_AuditOptions = AuditOptions;
|
|
10265
|
+
type index$1_AuditResult = AuditResult;
|
|
10266
|
+
type index$1_AuditScope = AuditScope;
|
|
10267
|
+
type index$1_AuditSummary = AuditSummary;
|
|
10268
|
+
type index$1_AuditTarget = AuditTarget;
|
|
10269
|
+
type index$1_CodeScope = CodeScope;
|
|
10270
|
+
type index$1_CreateWaiverOptions = CreateWaiverOptions;
|
|
10271
|
+
type index$1_FailOnSeverity = FailOnSeverity;
|
|
10272
|
+
type index$1_GitgovScope = GitgovScope;
|
|
10273
|
+
type index$1_GroupByOption = GroupByOption;
|
|
10274
|
+
type index$1_IWaiverReader = IWaiverReader;
|
|
10275
|
+
type index$1_JiraScope = JiraScope;
|
|
10276
|
+
type index$1_OutputFormat = OutputFormat;
|
|
10277
|
+
type index$1_ScopeConfig = ScopeConfig;
|
|
10278
|
+
type index$1_ScopeSelector = ScopeSelector;
|
|
10279
|
+
declare const index$1_ScopeSelector: typeof ScopeSelector;
|
|
10280
|
+
type index$1_ScoringEngine = ScoringEngine;
|
|
10281
|
+
declare const index$1_ScoringEngine: typeof ScoringEngine;
|
|
10282
|
+
type index$1_SourceAuditorDependencies = SourceAuditorDependencies;
|
|
10283
|
+
type index$1_SourceAuditorModule = SourceAuditorModule;
|
|
10284
|
+
declare const index$1_SourceAuditorModule: typeof SourceAuditorModule;
|
|
10285
|
+
type index$1_WaiverMetadata = WaiverMetadata;
|
|
10286
|
+
type index$1_WaiverReader = WaiverReader;
|
|
10287
|
+
declare const index$1_WaiverReader: typeof WaiverReader;
|
|
10288
|
+
type index$1_WaiverStatus = WaiverStatus;
|
|
10289
|
+
type index$1_WaiverWriter = WaiverWriter;
|
|
10290
|
+
declare const index$1_WaiverWriter: typeof WaiverWriter;
|
|
10291
|
+
declare namespace index$1 {
|
|
10292
|
+
export { type index$1_ActiveWaiver as ActiveWaiver, type index$1_AuditOptions as AuditOptions, type index$1_AuditResult as AuditResult, type index$1_AuditScope as AuditScope, type index$1_AuditSummary as AuditSummary, type index$1_AuditTarget as AuditTarget, type index$1_CodeScope as CodeScope, type index$1_CreateWaiverOptions as CreateWaiverOptions, type index$1_FailOnSeverity as FailOnSeverity, type index$1_GitgovScope as GitgovScope, type index$1_GroupByOption as GroupByOption, type index$1_IWaiverReader as IWaiverReader, type index$1_JiraScope as JiraScope, type index$1_OutputFormat as OutputFormat, type index$1_ScopeConfig as ScopeConfig, index$1_ScopeSelector as ScopeSelector, index$1_ScoringEngine as ScoringEngine, type index$1_SourceAuditorDependencies as SourceAuditorDependencies, index$1_SourceAuditorModule as SourceAuditorModule, type index$1_WaiverMetadata as WaiverMetadata, index$1_WaiverReader as WaiverReader, type index$1_WaiverStatus as WaiverStatus, index$1_WaiverWriter as WaiverWriter };
|
|
10293
|
+
}
|
|
10294
|
+
|
|
10295
|
+
/**
|
|
10296
|
+
* Supported engine types by the runner (per agent_protocol.md).
|
|
10297
|
+
*/
|
|
10298
|
+
type EngineType = "local" | "api" | "mcp" | "custom";
|
|
10299
|
+
/**
|
|
10300
|
+
* Local engine configuration.
|
|
10301
|
+
* Agent executes in the same process.
|
|
10302
|
+
*/
|
|
10303
|
+
type LocalEngine = {
|
|
10304
|
+
type: "local";
|
|
10305
|
+
/** Registered runtime (e.g., "claude:computer-use", "langchain:agent") */
|
|
10306
|
+
runtime?: string;
|
|
10307
|
+
/** Relative path to entrypoint (from project root) */
|
|
10308
|
+
entrypoint?: string;
|
|
10309
|
+
/** Exported function name (default: "runAgent") */
|
|
10310
|
+
function?: string;
|
|
10311
|
+
};
|
|
10312
|
+
/**
|
|
10313
|
+
* Authentication types for remote backends (API/MCP).
|
|
10314
|
+
*/
|
|
10315
|
+
type AuthType = "none" | "bearer" | "oauth" | "api-key" | "actor-signature";
|
|
10316
|
+
/**
|
|
10317
|
+
* Authentication configuration for remote backends.
|
|
10318
|
+
*/
|
|
10319
|
+
type AuthConfig = {
|
|
10320
|
+
type: AuthType;
|
|
10321
|
+
/** Environment variable name with token/key */
|
|
10322
|
+
secret_key?: string;
|
|
10323
|
+
/** Direct token (not recommended, prefer secret_key) */
|
|
10324
|
+
token?: string;
|
|
10325
|
+
};
|
|
10326
|
+
/**
|
|
10327
|
+
* API engine configuration.
|
|
10328
|
+
* Agent executes on a remote server via HTTP.
|
|
10329
|
+
*/
|
|
10330
|
+
type ApiEngine = {
|
|
10331
|
+
type: "api";
|
|
10332
|
+
/** Agent endpoint URL (required) */
|
|
10333
|
+
url: string;
|
|
10334
|
+
/** HTTP method (default: "POST") */
|
|
10335
|
+
method?: "POST" | "GET" | "PUT";
|
|
10336
|
+
/** Authentication configuration */
|
|
10337
|
+
auth?: AuthConfig;
|
|
10338
|
+
};
|
|
10339
|
+
/**
|
|
10340
|
+
* MCP engine configuration.
|
|
10341
|
+
* Agent executes as MCP server (Model Context Protocol).
|
|
10342
|
+
*/
|
|
10343
|
+
type McpEngine = {
|
|
10344
|
+
type: "mcp";
|
|
10345
|
+
/** MCP server URL (required) */
|
|
10346
|
+
url: string;
|
|
10347
|
+
/** Tool name to invoke (default: uses agentId) */
|
|
10348
|
+
tool?: string;
|
|
10349
|
+
/** Authentication configuration */
|
|
10350
|
+
auth?: AuthConfig;
|
|
10351
|
+
};
|
|
10352
|
+
/**
|
|
10353
|
+
* Custom engine configuration.
|
|
10354
|
+
* Allows extensibility via registered protocol handlers.
|
|
10355
|
+
*/
|
|
10356
|
+
type CustomEngine = {
|
|
10357
|
+
type: "custom";
|
|
10358
|
+
/** Protocol identifier (e.g., "a2a", "grpc") - required for execution */
|
|
10359
|
+
protocol?: string;
|
|
10360
|
+
/** Protocol-specific configuration */
|
|
10361
|
+
config?: Record<string, unknown>;
|
|
10362
|
+
};
|
|
10363
|
+
/**
|
|
10364
|
+
* Union type of all supported engines.
|
|
10365
|
+
*/
|
|
10366
|
+
type Engine = LocalEngine | ApiEngine | McpEngine | CustomEngine;
|
|
10367
|
+
|
|
10368
|
+
/**
|
|
10369
|
+
* Execution context passed to each agent.
|
|
10370
|
+
* Includes all information needed for traceability.
|
|
10371
|
+
*/
|
|
10372
|
+
type AgentExecutionContext = {
|
|
10373
|
+
/** Agent ID being executed (e.g., "agent:gdpr-audit") */
|
|
10374
|
+
agentId: string;
|
|
10375
|
+
/** ActorRecord executing (type "agent") */
|
|
10376
|
+
actorId: string;
|
|
10377
|
+
/** TaskRecord that triggered this execution (required) */
|
|
10378
|
+
taskId: string;
|
|
10379
|
+
/** Unique UUID for this execution */
|
|
10380
|
+
runId: string;
|
|
10381
|
+
/** Optional input passed to the agent (from RunOptions.input) */
|
|
10382
|
+
input?: unknown;
|
|
10383
|
+
};
|
|
10384
|
+
/**
|
|
10385
|
+
* Options for executing an agent.
|
|
10386
|
+
*/
|
|
10387
|
+
type RunOptions = {
|
|
10388
|
+
/** Agent ID to execute (e.g., "agent:gdpr-audit") */
|
|
10389
|
+
agentId: string;
|
|
10390
|
+
/** TaskRecord that triggers this execution (required) */
|
|
10391
|
+
taskId: string;
|
|
10392
|
+
/** Actor executing. If not provided, uses agentId */
|
|
10393
|
+
actorId?: string;
|
|
10394
|
+
/** Specific tool to invoke (MCP engines only) */
|
|
10395
|
+
tool?: string;
|
|
10396
|
+
/** Input to pass to the agent */
|
|
10397
|
+
input?: unknown;
|
|
10398
|
+
};
|
|
10399
|
+
/**
|
|
10400
|
+
* Structured output from the agent.
|
|
10401
|
+
* Captured by the runner from each backend.
|
|
10402
|
+
*/
|
|
10403
|
+
type AgentOutput = {
|
|
10404
|
+
/** Response data from agent (free structure) */
|
|
10405
|
+
data?: unknown;
|
|
10406
|
+
/** Text message (summary or description) */
|
|
10407
|
+
message?: string;
|
|
10408
|
+
/** Generated artifacts (file paths, record IDs, etc.) */
|
|
10409
|
+
artifacts?: string[];
|
|
10410
|
+
/** Additional agent metadata */
|
|
10411
|
+
metadata?: Record<string, unknown>;
|
|
10412
|
+
};
|
|
10413
|
+
/**
|
|
10414
|
+
* Complete response from an agent execution.
|
|
10415
|
+
* Returned by runner.runOnce().
|
|
10416
|
+
*/
|
|
10417
|
+
type AgentResponse = {
|
|
10418
|
+
/** Unique UUID for this execution */
|
|
10419
|
+
runId: string;
|
|
10420
|
+
/** Executed agent ID */
|
|
10421
|
+
agentId: string;
|
|
10422
|
+
/** Execution status */
|
|
10423
|
+
status: "success" | "error";
|
|
10424
|
+
/** Agent output (only if status: "success") */
|
|
10425
|
+
output?: AgentOutput;
|
|
10426
|
+
/** Error message (only if status: "error") */
|
|
10427
|
+
error?: string;
|
|
10428
|
+
/** Created ExecutionRecord ID */
|
|
10429
|
+
executionRecordId: string;
|
|
10430
|
+
/** Start timestamp */
|
|
10431
|
+
startedAt: string;
|
|
10432
|
+
/** Completion timestamp */
|
|
10433
|
+
completedAt: string;
|
|
10434
|
+
/** Duration in milliseconds */
|
|
10435
|
+
durationMs: number;
|
|
10436
|
+
};
|
|
10437
|
+
/**
|
|
10438
|
+
* AgentRunner module dependencies.
|
|
10439
|
+
*/
|
|
10440
|
+
type AgentRunnerDependencies = {
|
|
10441
|
+
/** Path to .gitgov directory (optional, uses ConfigManager by default) */
|
|
10442
|
+
gitgovPath?: string;
|
|
10443
|
+
/** Path to project root (optional, uses ConfigManager by default) */
|
|
10444
|
+
projectRoot?: string;
|
|
10445
|
+
/** IdentityAdapter for actor-signature auth (required if that auth type is used) */
|
|
10446
|
+
identityAdapter?: IIdentityAdapter;
|
|
10447
|
+
/** ExecutionAdapter for persisting executions (REQUIRED) */
|
|
10448
|
+
executionAdapter: IExecutionAdapter;
|
|
10449
|
+
/** EventBus for emitting events (optional, no events if not provided) */
|
|
10450
|
+
eventBus?: IEventStream;
|
|
10451
|
+
/** Protocol handler registry (for engine.type: "custom") */
|
|
10452
|
+
protocolHandlers?: ProtocolHandlerRegistry;
|
|
10453
|
+
/** Runtime handler registry (for engine.runtime in local engines) */
|
|
10454
|
+
runtimeHandlers?: RuntimeHandlerRegistry;
|
|
10455
|
+
};
|
|
10456
|
+
/**
|
|
10457
|
+
* Registry for protocol handlers (engine.type: "custom").
|
|
10458
|
+
*/
|
|
10459
|
+
interface ProtocolHandlerRegistry {
|
|
10460
|
+
register(protocol: string, handler: ProtocolHandler): void;
|
|
10461
|
+
get(protocol: string): ProtocolHandler | undefined;
|
|
10462
|
+
}
|
|
10463
|
+
/**
|
|
10464
|
+
* Handler for engine.type: "custom".
|
|
10465
|
+
*/
|
|
10466
|
+
type ProtocolHandler = (engine: CustomEngine, ctx: AgentExecutionContext) => Promise<AgentOutput>;
|
|
10467
|
+
/**
|
|
10468
|
+
* Registry for runtime handlers (engine.runtime in local engines).
|
|
10469
|
+
*/
|
|
10470
|
+
interface RuntimeHandlerRegistry {
|
|
10471
|
+
register(runtime: string, handler: RuntimeHandler): void;
|
|
10472
|
+
get(runtime: string): RuntimeHandler | undefined;
|
|
10473
|
+
}
|
|
10474
|
+
/**
|
|
10475
|
+
* Handler for engine.runtime in local engines.
|
|
10476
|
+
*/
|
|
10477
|
+
type RuntimeHandler = (engine: LocalEngineForHandler, ctx: AgentExecutionContext) => Promise<AgentOutput>;
|
|
10478
|
+
/**
|
|
10479
|
+
* LocalEngine shape for handlers (avoids circular import).
|
|
10480
|
+
*/
|
|
10481
|
+
type LocalEngineForHandler = {
|
|
10482
|
+
type: "local";
|
|
10483
|
+
runtime?: string;
|
|
10484
|
+
entrypoint?: string;
|
|
10485
|
+
function?: string;
|
|
10486
|
+
};
|
|
10487
|
+
/**
|
|
10488
|
+
* Events emitted by the runner via EventBus.
|
|
10489
|
+
*/
|
|
10490
|
+
type AgentRunnerEvent = {
|
|
10491
|
+
type: "agent:started";
|
|
10492
|
+
payload: {
|
|
10493
|
+
runId: string;
|
|
10494
|
+
agentId: string;
|
|
10495
|
+
taskId: string;
|
|
10496
|
+
startedAt: string;
|
|
10497
|
+
};
|
|
10498
|
+
} | {
|
|
10499
|
+
type: "agent:completed";
|
|
10500
|
+
payload: {
|
|
10501
|
+
runId: string;
|
|
10502
|
+
agentId: string;
|
|
10503
|
+
taskId: string;
|
|
10504
|
+
status: "success";
|
|
10505
|
+
durationMs: number;
|
|
10506
|
+
executionRecordId: string;
|
|
10507
|
+
};
|
|
10508
|
+
} | {
|
|
10509
|
+
type: "agent:error";
|
|
10510
|
+
payload: {
|
|
10511
|
+
runId: string;
|
|
10512
|
+
agentId: string;
|
|
10513
|
+
taskId: string;
|
|
10514
|
+
status: "error";
|
|
10515
|
+
error: string;
|
|
10516
|
+
durationMs: number;
|
|
10517
|
+
executionRecordId: string;
|
|
10518
|
+
};
|
|
10519
|
+
};
|
|
10520
|
+
/**
|
|
10521
|
+
* Interface for agent loader (allows mocking in tests).
|
|
10522
|
+
*/
|
|
10523
|
+
interface IAgentLoader {
|
|
10524
|
+
loadAgent(agentId: string): Promise<AgentRecord>;
|
|
10525
|
+
}
|
|
10526
|
+
|
|
10527
|
+
/**
|
|
10528
|
+
* Agent Runner Module - Executes agents based on their engine.type.
|
|
10529
|
+
*
|
|
10530
|
+
* Responsibilities:
|
|
10531
|
+
* - Load AgentRecords from .gitgov/agents/
|
|
10532
|
+
* - Execute via appropriate backend (local, api, mcp, custom)
|
|
10533
|
+
* - Capture responses and write ExecutionRecords
|
|
10534
|
+
* - Emit events via EventBus
|
|
10535
|
+
*/
|
|
10536
|
+
declare class AgentRunnerModule {
|
|
10537
|
+
private gitgovPath;
|
|
10538
|
+
private projectRoot;
|
|
10539
|
+
private identityAdapter;
|
|
10540
|
+
private executionAdapter;
|
|
10541
|
+
private eventBus;
|
|
10542
|
+
/** Fase 2: Protocol handlers for CustomBackend */
|
|
10543
|
+
readonly protocolHandlers: ProtocolHandlerRegistry | undefined;
|
|
10544
|
+
private runtimeHandlers;
|
|
10545
|
+
private localBackend;
|
|
10546
|
+
constructor(deps: AgentRunnerDependencies);
|
|
10547
|
+
/**
|
|
10548
|
+
* Executes an agent once and returns the response.
|
|
10549
|
+
* TaskRecord must exist before calling this method.
|
|
10550
|
+
*/
|
|
10551
|
+
runOnce(opts: RunOptions): Promise<AgentResponse>;
|
|
10552
|
+
/**
|
|
10553
|
+
* [EARS-A1, A2] Loads AgentRecord from .gitgov/agents/agent-{id}.json
|
|
10554
|
+
*/
|
|
10555
|
+
private loadAgent;
|
|
10556
|
+
/**
|
|
10557
|
+
* [EARS-I4] Emits event via EventBus if available.
|
|
10558
|
+
* Works silently without EventBus.
|
|
10559
|
+
*/
|
|
10560
|
+
private emitEvent;
|
|
10561
|
+
}
|
|
10562
|
+
|
|
10563
|
+
/**
|
|
10564
|
+
* Backend for executing local agents.
|
|
10565
|
+
* Supports entrypoint (custom code) and runtime (registered handler).
|
|
10566
|
+
* RETURNS AgentOutput captured from the agent function.
|
|
10567
|
+
*/
|
|
10568
|
+
declare class LocalBackend {
|
|
10569
|
+
private projectRoot;
|
|
10570
|
+
private runtimeRegistry?;
|
|
10571
|
+
constructor(projectRoot: string, runtimeRegistry?: RuntimeHandlerRegistry | undefined);
|
|
10572
|
+
/**
|
|
10573
|
+
* Executes a local agent and captures its output.
|
|
10574
|
+
*/
|
|
10575
|
+
execute(engine: LocalEngine, ctx: AgentExecutionContext): Promise<AgentOutput>;
|
|
10576
|
+
/**
|
|
10577
|
+
* Executes via entrypoint (dynamic import) and captures output.
|
|
10578
|
+
*/
|
|
10579
|
+
private executeEntrypoint;
|
|
10580
|
+
/**
|
|
10581
|
+
* Executes via runtime handler.
|
|
10582
|
+
*/
|
|
10583
|
+
private executeRuntime;
|
|
10584
|
+
/**
|
|
10585
|
+
* Normalizes any result to AgentOutput.
|
|
10586
|
+
* If agent returns void/undefined, uses empty object.
|
|
10587
|
+
* If returns object with known fields, extracts them.
|
|
10588
|
+
*/
|
|
10589
|
+
private normalizeOutput;
|
|
10590
|
+
}
|
|
10591
|
+
|
|
10592
|
+
/**
|
|
10593
|
+
* Custom Error Classes for AgentRunnerModule
|
|
10594
|
+
*
|
|
10595
|
+
* These errors provide typed exceptions for better error handling
|
|
10596
|
+
* and diagnostics in the agent runner operations.
|
|
10597
|
+
*/
|
|
10598
|
+
/**
|
|
10599
|
+
* Base error class for all Runner-related errors
|
|
10600
|
+
*/
|
|
10601
|
+
declare class RunnerError extends Error {
|
|
10602
|
+
constructor(message: string);
|
|
10603
|
+
}
|
|
10604
|
+
/**
|
|
10605
|
+
* Error thrown when an agent file is not found in .gitgov/agents/
|
|
10606
|
+
*/
|
|
10607
|
+
declare class AgentNotFoundError extends RunnerError {
|
|
10608
|
+
readonly agentId: string;
|
|
10609
|
+
constructor(agentId: string);
|
|
10610
|
+
}
|
|
10611
|
+
/**
|
|
10612
|
+
* Error thrown when the specified function is not exported from entrypoint
|
|
10613
|
+
*/
|
|
10614
|
+
declare class FunctionNotExportedError extends RunnerError {
|
|
10615
|
+
readonly functionName: string;
|
|
10616
|
+
readonly entrypoint: string;
|
|
10617
|
+
constructor(functionName: string, entrypoint: string);
|
|
10618
|
+
}
|
|
10619
|
+
/**
|
|
10620
|
+
* Error thrown when local engine has neither entrypoint nor runtime
|
|
10621
|
+
*/
|
|
10622
|
+
declare class LocalEngineConfigError extends RunnerError {
|
|
10623
|
+
constructor();
|
|
10624
|
+
}
|
|
10625
|
+
/**
|
|
10626
|
+
* Error thrown when engine.type is not supported
|
|
10627
|
+
*/
|
|
10628
|
+
declare class UnsupportedEngineTypeError extends RunnerError {
|
|
10629
|
+
readonly engineType: string;
|
|
10630
|
+
constructor(engineType: string);
|
|
10631
|
+
}
|
|
10632
|
+
/**
|
|
10633
|
+
* Error thrown when engine configuration is invalid
|
|
10634
|
+
*/
|
|
10635
|
+
declare class EngineConfigError extends RunnerError {
|
|
10636
|
+
readonly engineType: string;
|
|
10637
|
+
readonly missingField: string;
|
|
10638
|
+
constructor(engineType: string, missingField: string);
|
|
10639
|
+
}
|
|
10640
|
+
/**
|
|
10641
|
+
* Error thrown when a required dependency is missing
|
|
10642
|
+
*/
|
|
10643
|
+
declare class MissingDependencyError extends RunnerError {
|
|
10644
|
+
readonly dependency: string;
|
|
10645
|
+
readonly reason: string;
|
|
10646
|
+
constructor(dependency: string, reason: string);
|
|
10647
|
+
}
|
|
10648
|
+
/**
|
|
10649
|
+
* Error thrown when runtime handler is not found in registry
|
|
10650
|
+
*/
|
|
10651
|
+
declare class RuntimeNotFoundError extends RunnerError {
|
|
10652
|
+
readonly runtime: string;
|
|
10653
|
+
constructor(runtime: string);
|
|
10654
|
+
}
|
|
10655
|
+
|
|
10656
|
+
type index_AgentExecutionContext = AgentExecutionContext;
|
|
10657
|
+
type index_AgentNotFoundError = AgentNotFoundError;
|
|
10658
|
+
declare const index_AgentNotFoundError: typeof AgentNotFoundError;
|
|
10659
|
+
type index_AgentOutput = AgentOutput;
|
|
10660
|
+
type index_AgentResponse = AgentResponse;
|
|
10661
|
+
type index_AgentRunnerDependencies = AgentRunnerDependencies;
|
|
10662
|
+
type index_AgentRunnerEvent = AgentRunnerEvent;
|
|
10663
|
+
type index_AgentRunnerModule = AgentRunnerModule;
|
|
10664
|
+
declare const index_AgentRunnerModule: typeof AgentRunnerModule;
|
|
10665
|
+
type index_ApiEngine = ApiEngine;
|
|
10666
|
+
type index_AuthConfig = AuthConfig;
|
|
10667
|
+
type index_AuthType = AuthType;
|
|
10668
|
+
type index_CustomEngine = CustomEngine;
|
|
10669
|
+
type index_Engine = Engine;
|
|
10670
|
+
type index_EngineConfigError = EngineConfigError;
|
|
10671
|
+
declare const index_EngineConfigError: typeof EngineConfigError;
|
|
10672
|
+
type index_EngineType = EngineType;
|
|
10673
|
+
type index_FunctionNotExportedError = FunctionNotExportedError;
|
|
10674
|
+
declare const index_FunctionNotExportedError: typeof FunctionNotExportedError;
|
|
10675
|
+
type index_IAgentLoader = IAgentLoader;
|
|
10676
|
+
type index_LocalBackend = LocalBackend;
|
|
10677
|
+
declare const index_LocalBackend: typeof LocalBackend;
|
|
10678
|
+
type index_LocalEngine = LocalEngine;
|
|
10679
|
+
type index_LocalEngineConfigError = LocalEngineConfigError;
|
|
10680
|
+
declare const index_LocalEngineConfigError: typeof LocalEngineConfigError;
|
|
10681
|
+
type index_McpEngine = McpEngine;
|
|
10682
|
+
type index_MissingDependencyError = MissingDependencyError;
|
|
10683
|
+
declare const index_MissingDependencyError: typeof MissingDependencyError;
|
|
10684
|
+
type index_ProtocolHandler = ProtocolHandler;
|
|
10685
|
+
type index_ProtocolHandlerRegistry = ProtocolHandlerRegistry;
|
|
10686
|
+
type index_RunOptions = RunOptions;
|
|
10687
|
+
type index_RunnerError = RunnerError;
|
|
10688
|
+
declare const index_RunnerError: typeof RunnerError;
|
|
10689
|
+
type index_RuntimeHandler = RuntimeHandler;
|
|
10690
|
+
type index_RuntimeHandlerRegistry = RuntimeHandlerRegistry;
|
|
10691
|
+
type index_RuntimeNotFoundError = RuntimeNotFoundError;
|
|
10692
|
+
declare const index_RuntimeNotFoundError: typeof RuntimeNotFoundError;
|
|
10693
|
+
type index_UnsupportedEngineTypeError = UnsupportedEngineTypeError;
|
|
10694
|
+
declare const index_UnsupportedEngineTypeError: typeof UnsupportedEngineTypeError;
|
|
9619
10695
|
declare namespace index {
|
|
9620
|
-
export {
|
|
10696
|
+
export { type index_AgentExecutionContext as AgentExecutionContext, index_AgentNotFoundError as AgentNotFoundError, type index_AgentOutput as AgentOutput, type index_AgentResponse as AgentResponse, type index_AgentRunnerDependencies as AgentRunnerDependencies, type index_AgentRunnerEvent as AgentRunnerEvent, index_AgentRunnerModule as AgentRunnerModule, type index_ApiEngine as ApiEngine, type index_AuthConfig as AuthConfig, type index_AuthType as AuthType, type index_CustomEngine as CustomEngine, type index_Engine as Engine, index_EngineConfigError as EngineConfigError, type index_EngineType as EngineType, index_FunctionNotExportedError as FunctionNotExportedError, type index_IAgentLoader as IAgentLoader, index_LocalBackend as LocalBackend, type index_LocalEngine as LocalEngine, index_LocalEngineConfigError as LocalEngineConfigError, type index_McpEngine as McpEngine, index_MissingDependencyError as MissingDependencyError, type index_ProtocolHandler as ProtocolHandler, type index_ProtocolHandlerRegistry as ProtocolHandlerRegistry, type index_RunOptions as RunOptions, index_RunnerError as RunnerError, type index_RuntimeHandler as RuntimeHandler, type index_RuntimeHandlerRegistry as RuntimeHandlerRegistry, index_RuntimeNotFoundError as RuntimeNotFoundError, index_UnsupportedEngineTypeError as UnsupportedEngineTypeError };
|
|
9621
10697
|
}
|
|
9622
10698
|
|
|
9623
|
-
export { index$
|
|
10699
|
+
export { index$b as Adapters, index$f as BacklogAdapter, index$j as ChangelogAdapter, index$h as Config, index$a as Crypto, index$3 as DiagramGenerator, index$n as EventBus, index$k as ExecutionAdapter, index$9 as Factories, index$l as FeedbackAdapter, index$d as Git, index$m as IdentityAdapter, index$e as IndexerAdapter, index$8 as Lint, index$7 as Logger, index$i as MetricsAdapter, index$2 as PiiDetector, index$c as ProjectAdapter, index$p as Records, index as Runner, index$6 as Schemas, index$1 as SourceAuditor, index$o as Store, index$5 as Sync, index$4 as Validation, index$g as WorkflowMethodologyAdapter };
|