@gitgov/core 2.7.0 → 2.7.1
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/{agent_runner-CHDkBfPZ.d.ts → agent_runner-DijNVjaF.d.ts} +2 -2
- package/dist/src/fs.d.ts +9 -5
- package/dist/src/fs.js +15 -37
- package/dist/src/fs.js.map +1 -1
- package/dist/src/github.d.ts +2 -2
- package/dist/src/index.d.ts +28 -82
- package/dist/src/index.js +112 -51
- package/dist/src/index.js.map +1 -1
- package/dist/src/memory.d.ts +1 -1
- package/dist/src/prisma.d.ts +1 -1
- package/dist/src/{record_projection.types-Dz9YU3r9.d.ts → record_projection.types-D9NkQbL_.d.ts} +4 -19
- package/dist/src/{sync_state-Bn_LogJ2.d.ts → sync_state-C2a2RuBQ.d.ts} +13 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as SessionStore } from './session_store-I4Z6PW2c.js';
|
|
2
2
|
import { k as ISessionManager, a as GitGovSession, A as ActorState, S as SyncPreferencesUpdate, K as KeyProvider, h as FileLister, F as FsFileListerOptions, i as FileListOptions, j as FileStats, G as GitGovConfig } from './index-LULVRsCZ.js';
|
|
3
|
-
import { q as IIdentityAdapter, u as IdentityAdapterDependencies, S as SyncStateModuleDependencies, p as IEventStream } from './sync_state-
|
|
4
|
-
import { A as ActorPayload, d as ActorRecord, G as GitGovRecord,
|
|
3
|
+
import { q as IIdentityAdapter, u as IdentityAdapterDependencies, S as SyncStateModuleDependencies, p as IEventStream } from './sync_state-C2a2RuBQ.js';
|
|
4
|
+
import { A as ActorPayload, d as ActorRecord, G as GitGovRecord, l as ExecutionRecord, y as RecordStores, f as AgentRecord } from './record_projection.types-D9NkQbL_.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* SessionManager - Local Session State Manager
|
package/dist/src/fs.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as RecordStore, I as IdEncoder, a as IRecordProjector, G as GitGovRecord, b as IRecordProjection, c as IndexData, P as ProjectionContext } from './record_projection.types-
|
|
2
|
-
export { D as DEFAULT_ID_ENCODER } from './record_projection.types-
|
|
1
|
+
import { R as RecordStore, I as IdEncoder, a as IRecordProjector, G as GitGovRecord, b as IRecordProjection, c as IndexData, P as ProjectionContext } from './record_projection.types-D9NkQbL_.js';
|
|
2
|
+
export { D as DEFAULT_ID_ENCODER } from './record_projection.types-D9NkQbL_.js';
|
|
3
3
|
import { C as ConfigStore, G as GitGovConfig, a as GitGovSession, I as IGitModule, b as GitModuleDependencies, E as ExecOptions, c as ExecResult, d as ChangedFile, e as GetCommitHistoryOptions, f as CommitInfo, g as CommitAuthor } from './index-LULVRsCZ.js';
|
|
4
4
|
export { F as FsFileListerOptions } from './index-LULVRsCZ.js';
|
|
5
|
-
import { C as ConfigManager, I as ILintModule, L as LintOptions, a as LintReport, F as FixRecordOptions, b as FixReport, R as RecordStores, c as LintRecordContext, d as LintResult, e as ISyncStateModule, S as SyncStateModuleDependencies, f as StateDeltaFile, g as ConflictDiff, h as IntegrityViolation, A as AuditStateOptions, i as AuditStateReport, j as SyncStatePushOptions, k as SyncStatePushResult, l as SyncStatePullOptions, m as SyncStatePullResult, n as SyncStateResolveOptions, o as SyncStateResolveResult, p as IEventStream } from './sync_state-
|
|
5
|
+
import { C as ConfigManager, I as ILintModule, L as LintOptions, a as LintReport, F as FixRecordOptions, b as FixReport, R as RecordStores, c as LintRecordContext, d as LintResult, e as ISyncStateModule, S as SyncStateModuleDependencies, f as StateDeltaFile, g as ConflictDiff, h as IntegrityViolation, A as AuditStateOptions, i as AuditStateReport, j as SyncStatePushOptions, k as SyncStatePushResult, l as SyncStatePullOptions, m as SyncStatePullResult, n as SyncStateResolveOptions, o as SyncStateResolveResult, p as IEventStream } from './sync_state-C2a2RuBQ.js';
|
|
6
6
|
import { S as SessionStore } from './session_store-I4Z6PW2c.js';
|
|
7
|
-
import { S as SessionManager, I as IProjectInitializer, E as EnvironmentValidation, F as FsWorktreeSyncStateDependencies, a as FsWorktreeSyncStateConfig, b as IAgentRunner, P as ProtocolHandlerRegistry, A as AgentRunnerDependencies, R as RunOptions, c as AgentResponse } from './agent_runner-
|
|
8
|
-
export { f as FsFileLister, d as FsKeyProvider, e as FsKeyProviderOptions } from './agent_runner-
|
|
7
|
+
import { S as SessionManager, I as IProjectInitializer, E as EnvironmentValidation, F as FsWorktreeSyncStateDependencies, a as FsWorktreeSyncStateConfig, b as IAgentRunner, P as ProtocolHandlerRegistry, A as AgentRunnerDependencies, R as RunOptions, c as AgentResponse } from './agent_runner-DijNVjaF.js';
|
|
8
|
+
export { f as FsFileLister, d as FsKeyProvider, e as FsKeyProviderOptions } from './agent_runner-DijNVjaF.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Serializer for FsRecordStore - allows custom serialization
|
|
@@ -313,6 +313,10 @@ declare class FsLintModule implements IFsLintModule {
|
|
|
313
313
|
* Delegates to LintModule.lintRecord() for pure validation.
|
|
314
314
|
*/
|
|
315
315
|
lintRecord(record: GitGovRecord, context: LintRecordContext): LintResult[];
|
|
316
|
+
/**
|
|
317
|
+
* Delegates to LintModule.lintRecordReferences() for prefix validation.
|
|
318
|
+
*/
|
|
319
|
+
lintRecordReferences(record: GitGovRecord, context: LintRecordContext): LintResult[];
|
|
316
320
|
/**
|
|
317
321
|
* Delegates to LintModule.fixRecord() for pure fix.
|
|
318
322
|
*/
|
package/dist/src/fs.js
CHANGED
|
@@ -1798,20 +1798,10 @@ var embedded_metadata_schema_default = {
|
|
|
1798
1798
|
"execution",
|
|
1799
1799
|
"changelog",
|
|
1800
1800
|
"feedback",
|
|
1801
|
-
"cycle"
|
|
1802
|
-
"custom"
|
|
1801
|
+
"cycle"
|
|
1803
1802
|
],
|
|
1804
1803
|
description: "The type of the record contained in the payload."
|
|
1805
1804
|
},
|
|
1806
|
-
schemaUrl: {
|
|
1807
|
-
type: "string",
|
|
1808
|
-
description: "Optional URL to a custom schema for the payload."
|
|
1809
|
-
},
|
|
1810
|
-
schemaChecksum: {
|
|
1811
|
-
type: "string",
|
|
1812
|
-
pattern: "^[a-fA-F0-9]{64}$",
|
|
1813
|
-
description: "Optional SHA-256 checksum of the custom schema."
|
|
1814
|
-
},
|
|
1815
1805
|
payloadChecksum: {
|
|
1816
1806
|
type: "string",
|
|
1817
1807
|
pattern: "^[a-fA-F0-9]{64}$",
|
|
@@ -2035,32 +2025,6 @@ var embedded_metadata_schema_default = {
|
|
|
2035
2025
|
}
|
|
2036
2026
|
},
|
|
2037
2027
|
else: false
|
|
2038
|
-
},
|
|
2039
|
-
{
|
|
2040
|
-
if: {
|
|
2041
|
-
properties: {
|
|
2042
|
-
header: {
|
|
2043
|
-
type: "object",
|
|
2044
|
-
properties: {
|
|
2045
|
-
type: {
|
|
2046
|
-
const: "custom"
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
},
|
|
2052
|
-
then: {
|
|
2053
|
-
properties: {
|
|
2054
|
-
header: {
|
|
2055
|
-
type: "object",
|
|
2056
|
-
required: [
|
|
2057
|
-
"schemaUrl",
|
|
2058
|
-
"schemaChecksum"
|
|
2059
|
-
]
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
},
|
|
2063
|
-
else: false
|
|
2064
2028
|
}
|
|
2065
2029
|
],
|
|
2066
2030
|
examples: [
|
|
@@ -3551,6 +3515,12 @@ var FsLintModule = class {
|
|
|
3551
3515
|
lintRecord(record, context) {
|
|
3552
3516
|
return this.lintModule.lintRecord(record, context);
|
|
3553
3517
|
}
|
|
3518
|
+
/**
|
|
3519
|
+
* Delegates to LintModule.lintRecordReferences() for prefix validation.
|
|
3520
|
+
*/
|
|
3521
|
+
lintRecordReferences(record, context) {
|
|
3522
|
+
return this.lintModule.lintRecordReferences(record, context);
|
|
3523
|
+
}
|
|
3554
3524
|
/**
|
|
3555
3525
|
* Delegates to LintModule.fixRecord() for pure fix.
|
|
3556
3526
|
*/
|
|
@@ -3803,6 +3773,14 @@ var FsLintModule = class {
|
|
|
3803
3773
|
const namingResults = this.validateFileNaming(record, recordId, filePath, entityType);
|
|
3804
3774
|
results.push(...namingResults);
|
|
3805
3775
|
}
|
|
3776
|
+
if (options.validateReferences) {
|
|
3777
|
+
const refResults = this.lintModule.lintRecordReferences(record, {
|
|
3778
|
+
recordId,
|
|
3779
|
+
entityType,
|
|
3780
|
+
filePath
|
|
3781
|
+
});
|
|
3782
|
+
results.push(...refResults);
|
|
3783
|
+
}
|
|
3806
3784
|
} catch (error) {
|
|
3807
3785
|
if (error instanceof DetailedValidationError) {
|
|
3808
3786
|
const hasAdditionalProperties = error.errors.some(
|