@gitgov/core 2.5.0 → 2.7.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/LICENSE +374 -0
- package/README.md +2 -1
- package/dist/src/agent_runner-CHDkBfPZ.d.ts +610 -0
- package/dist/src/fs.d.ts +9 -25
- package/dist/src/fs.js +3 -0
- package/dist/src/fs.js.map +1 -1
- package/dist/src/github.d.ts +117 -3
- package/dist/src/github.js +651 -10
- package/dist/src/github.js.map +1 -1
- package/dist/src/{index-Bhc341pf.d.ts → index-LULVRsCZ.d.ts} +180 -1
- package/dist/src/index.d.ts +16 -11
- package/dist/src/index.js +5 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/memory.d.ts +5 -6
- package/dist/src/{memory_file_lister-BIIcVXLw.d.ts → memory_file_lister-BCY4ZYGW.d.ts} +1 -2
- package/dist/src/prisma.d.ts +108 -26
- package/dist/src/prisma.js +268 -32
- package/dist/src/prisma.js.map +1 -1
- package/dist/src/{record_projection.types-B8AM7u8U.d.ts → record_projection.types-Dz9YU3r9.d.ts} +64 -4
- package/dist/src/session_store-I4Z6PW2c.d.ts +50 -0
- package/dist/src/{agent_runner-pr7h-9cV.d.ts → sync_state-Bn_LogJ2.d.ts} +5 -592
- package/package.json +7 -1
- package/dist/src/key_provider-jjWek3w1.d.ts +0 -227
- package/dist/src/record_store-BXKWqon5.d.ts +0 -64
|
@@ -125,6 +125,117 @@ interface IConfigManager {
|
|
|
125
125
|
getStateBranch(): Promise<string>;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
/**
|
|
129
|
+
* SessionManager Types
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Sync status for an actor's synchronization state.
|
|
133
|
+
*/
|
|
134
|
+
type SyncStatus = {
|
|
135
|
+
lastSyncPush?: string;
|
|
136
|
+
lastSyncPull?: string;
|
|
137
|
+
status?: 'synced' | 'pending' | 'pulling' | 'pushing' | 'conflict';
|
|
138
|
+
lastError?: string;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* State for a specific actor on this machine.
|
|
142
|
+
*/
|
|
143
|
+
type ActorState = {
|
|
144
|
+
activeTaskId?: string | undefined;
|
|
145
|
+
activeCycleId?: string | undefined;
|
|
146
|
+
lastSync?: string;
|
|
147
|
+
syncStatus?: SyncStatus;
|
|
148
|
+
[key: string]: unknown;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* GitGovernance Session State
|
|
152
|
+
* Based on session_state.md blueprint
|
|
153
|
+
*/
|
|
154
|
+
type GitGovSession = {
|
|
155
|
+
cloud?: {
|
|
156
|
+
sessionToken?: string;
|
|
157
|
+
};
|
|
158
|
+
lastSession?: {
|
|
159
|
+
actorId: string;
|
|
160
|
+
timestamp: string;
|
|
161
|
+
};
|
|
162
|
+
actorState?: Record<string, ActorState>;
|
|
163
|
+
syncPreferences?: {
|
|
164
|
+
pullScheduler?: {
|
|
165
|
+
enabled?: boolean;
|
|
166
|
+
pullIntervalSeconds?: number;
|
|
167
|
+
continueOnNetworkError?: boolean;
|
|
168
|
+
stopOnConflict?: boolean;
|
|
169
|
+
};
|
|
170
|
+
fileWatcher?: {
|
|
171
|
+
enabled?: boolean;
|
|
172
|
+
debounceMs?: number;
|
|
173
|
+
ignoredPatterns?: string[];
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Sync preferences update payload
|
|
179
|
+
*/
|
|
180
|
+
type SyncPreferencesUpdate = {
|
|
181
|
+
pullScheduler?: Partial<{
|
|
182
|
+
enabled: boolean;
|
|
183
|
+
pullIntervalSeconds: number;
|
|
184
|
+
continueOnNetworkError: boolean;
|
|
185
|
+
stopOnConflict: boolean;
|
|
186
|
+
}>;
|
|
187
|
+
fileWatcher?: Partial<{
|
|
188
|
+
enabled: boolean;
|
|
189
|
+
debounceMs: number;
|
|
190
|
+
ignoredPatterns: string[];
|
|
191
|
+
}>;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* ISessionManager interface
|
|
195
|
+
*
|
|
196
|
+
* Provides typed access to GitGovernance session state.
|
|
197
|
+
* Session state is ephemeral, machine-local, and NOT versioned in Git.
|
|
198
|
+
*/
|
|
199
|
+
interface ISessionManager {
|
|
200
|
+
/**
|
|
201
|
+
* Load GitGovernance session state
|
|
202
|
+
* [EARS-B9] Auto-detects actor from .key files if no session or no actorId exists
|
|
203
|
+
*/
|
|
204
|
+
loadSession(): Promise<GitGovSession | null>;
|
|
205
|
+
/**
|
|
206
|
+
* [EARS-B9] Detect actor from .key files in .gitgov/actors/
|
|
207
|
+
*/
|
|
208
|
+
detectActorFromKeyFiles(): Promise<string | null>;
|
|
209
|
+
/**
|
|
210
|
+
* Get actor state for a specific actor
|
|
211
|
+
*/
|
|
212
|
+
getActorState(actorId: string): Promise<ActorState | null>;
|
|
213
|
+
/**
|
|
214
|
+
* Update actor state for a specific actor
|
|
215
|
+
*/
|
|
216
|
+
updateActorState(actorId: string, state: Partial<ActorState>): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Get cloud session token
|
|
219
|
+
*/
|
|
220
|
+
getCloudSessionToken(): Promise<string | null>;
|
|
221
|
+
/**
|
|
222
|
+
* Get sync preferences from session
|
|
223
|
+
*/
|
|
224
|
+
getSyncPreferences(): Promise<GitGovSession['syncPreferences'] | null>;
|
|
225
|
+
/**
|
|
226
|
+
* Update sync preferences in .session.json
|
|
227
|
+
* These are local machine preferences that override project defaults
|
|
228
|
+
*/
|
|
229
|
+
updateSyncPreferences(preferences: SyncPreferencesUpdate): Promise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Get last session info (last human who interacted)
|
|
232
|
+
*/
|
|
233
|
+
getLastSession(): Promise<{
|
|
234
|
+
actorId: string;
|
|
235
|
+
timestamp: string;
|
|
236
|
+
} | null>;
|
|
237
|
+
}
|
|
238
|
+
|
|
128
239
|
/**
|
|
129
240
|
* ConfigStore Interface
|
|
130
241
|
*
|
|
@@ -176,6 +287,74 @@ interface ConfigStore<R = void> {
|
|
|
176
287
|
saveConfig(config: GitGovConfig): Promise<R>;
|
|
177
288
|
}
|
|
178
289
|
|
|
290
|
+
/**
|
|
291
|
+
* KeyProvider Interface
|
|
292
|
+
*
|
|
293
|
+
* Abstracts private key storage for Actor signing operations.
|
|
294
|
+
* Enables different backends: filesystem (development), environment variables (serverless),
|
|
295
|
+
* or cloud KMS (enterprise).
|
|
296
|
+
*
|
|
297
|
+
* @module key_provider
|
|
298
|
+
*/
|
|
299
|
+
/**
|
|
300
|
+
* Error codes for KeyProvider operations.
|
|
301
|
+
*/
|
|
302
|
+
type KeyProviderErrorCode = 'KEY_NOT_FOUND' | 'KEY_READ_ERROR' | 'KEY_WRITE_ERROR' | 'KEY_DELETE_ERROR' | 'INVALID_KEY_FORMAT' | 'INVALID_ACTOR_ID';
|
|
303
|
+
/**
|
|
304
|
+
* Error thrown when key operations fail.
|
|
305
|
+
*/
|
|
306
|
+
declare class KeyProviderError extends Error {
|
|
307
|
+
readonly code: KeyProviderErrorCode;
|
|
308
|
+
readonly actorId?: string | undefined;
|
|
309
|
+
constructor(message: string, code: KeyProviderErrorCode, actorId?: string | undefined);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Interface for managing private key storage.
|
|
313
|
+
* Implementations handle the actual persistence mechanism.
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* ```typescript
|
|
317
|
+
* // Filesystem backend (development)
|
|
318
|
+
* const provider = new FsKeyProvider({ keysDir: '.gitgov/keys' });
|
|
319
|
+
*
|
|
320
|
+
* // Environment backend (serverless)
|
|
321
|
+
* const provider = new EnvKeyProvider({ prefix: 'GITGOV_KEY_' });
|
|
322
|
+
*
|
|
323
|
+
* // Usage
|
|
324
|
+
* const privateKey = await provider.getPrivateKey('actor:human:alice');
|
|
325
|
+
* if (privateKey) {
|
|
326
|
+
* const signature = signPayload(payload, privateKey, actorId, role);
|
|
327
|
+
* }
|
|
328
|
+
* ```
|
|
329
|
+
*/
|
|
330
|
+
interface KeyProvider {
|
|
331
|
+
/**
|
|
332
|
+
* Retrieves the private key for an actor.
|
|
333
|
+
* @param actorId - The actor's ID (e.g., 'actor:human:alice')
|
|
334
|
+
* @returns The base64-encoded private key, or null if not found
|
|
335
|
+
*/
|
|
336
|
+
getPrivateKey(actorId: string): Promise<string | null>;
|
|
337
|
+
/**
|
|
338
|
+
* Stores a private key for an actor.
|
|
339
|
+
* @param actorId - The actor's ID
|
|
340
|
+
* @param privateKey - The base64-encoded private key
|
|
341
|
+
* @throws KeyProviderError if write fails
|
|
342
|
+
*/
|
|
343
|
+
setPrivateKey(actorId: string, privateKey: string): Promise<void>;
|
|
344
|
+
/**
|
|
345
|
+
* Checks if a private key exists for an actor.
|
|
346
|
+
* @param actorId - The actor's ID
|
|
347
|
+
* @returns true if key exists, false otherwise
|
|
348
|
+
*/
|
|
349
|
+
hasPrivateKey(actorId: string): Promise<boolean>;
|
|
350
|
+
/**
|
|
351
|
+
* Deletes the private key for an actor.
|
|
352
|
+
* @param actorId - The actor's ID
|
|
353
|
+
* @returns true if key was deleted, false if it didn't exist
|
|
354
|
+
*/
|
|
355
|
+
deletePrivateKey(actorId: string): Promise<boolean>;
|
|
356
|
+
}
|
|
357
|
+
|
|
179
358
|
/**
|
|
180
359
|
* Options for file listing.
|
|
181
360
|
*/
|
|
@@ -536,4 +715,4 @@ declare namespace index {
|
|
|
536
715
|
export { index_BranchAlreadyExistsError as BranchAlreadyExistsError, index_BranchNotFoundError as BranchNotFoundError, type index_ChangedFile as ChangedFile, type index_CommitAuthor as CommitAuthor, type index_CommitInfo as CommitInfo, type index_ExecOptions as ExecOptions, type index_ExecResult as ExecResult, index_FileNotFoundError as FileNotFoundError, type index_GetCommitHistoryOptions as GetCommitHistoryOptions, index_GitCommandError as GitCommandError, index_GitError as GitError, type index_GitModuleDependencies as GitModuleDependencies, type index_IGitModule as IGitModule, index_MergeConflictError as MergeConflictError, index_RebaseConflictError as RebaseConflictError, index_RebaseNotInProgressError as RebaseNotInProgressError };
|
|
537
716
|
}
|
|
538
717
|
|
|
539
|
-
export { type
|
|
718
|
+
export { type ActorState as A, type ConfigStore as C, type ExecOptions as E, type FsFileListerOptions as F, type GitGovConfig as G, type IGitModule as I, type KeyProvider as K, type MemoryFileListerOptions as M, type SyncPreferencesUpdate as S, type GitGovSession as a, type GitModuleDependencies as b, type ExecResult as c, type ChangedFile as d, type GetCommitHistoryOptions as e, type CommitInfo as f, type CommitAuthor as g, type FileLister as h, type FileListOptions as i, type FileStats as j, type ISessionManager as k, type SyncStatus as l, type AuditState as m, type AuditStateUpdate as n, type IConfigManager as o, type SyncConfig as p, type SyncDefaults as q, KeyProviderError as r, type KeyProviderErrorCode as s, index as t };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as ActorPayload,
|
|
2
|
-
import {
|
|
3
|
-
import { A as ActorState,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { E as EnvKeyProvider, a as EnvKeyProviderOptions, M as MockKeyProvider, b as MockKeyProviderOptions, c as MemoryFileLister } from './memory_file_lister-
|
|
1
|
+
import { A as ActorPayload, d as ActorRecord, e as AgentPayload, f as AgentRecord, C as ChangelogPayload, g as ChangelogRecord, h as CustomRecord, i as CyclePayload, j as CycleRecord, E as EmbeddedMetadataHeader, k as EmbeddedMetadataRecord, l as ExecutionPayload, m as ExecutionRecord, F as FeedbackPayload, n as FeedbackRecord, o as GitGovActorRecord, p as GitGovAgentRecord, q as GitGovChangelogRecord, r as GitGovCycleRecord, s as GitGovError, t as GitGovExecutionRecord, u as GitGovFeedbackRecord, G as GitGovRecord, v as GitGovRecordPayload, w as GitGovRecordType, x as GitGovTaskRecord, S as Signature, T as TaskPayload, y as TaskRecord, D as DEFAULT_ID_ENCODER, I as IdEncoder, R as RecordStore, z as RecordStores, B as CollaborationMetrics, H as IRecordMetrics, J as ProductivityMetrics, K as RecordMetrics, L as RecordMetricsDependencies, M as SystemStatus, N as TaskHealthReport, O as ActivityEvent, Q as ActorCreatedEvent, U as ActorRevokedEvent, V as AgentRegisteredEvent, W as BaseEvent, X as ChangelogCreatedEvent, Y as CycleCreatedEvent, Z as CycleStatusChangedEvent, _ as EventHandler, $ as EventMetadata, a0 as EventSubscription, a1 as ExecutionCreatedEvent, a2 as FeedbackCreatedEvent, a3 as GitGovEvent, a4 as SystemDailyTickEvent, a5 as TaskCreatedEvent, a6 as TaskStatusChangedEvent, a as IRecordProjector, a7 as RecordProjectorDependencies, c as IndexData, a8 as IndexGenerationReport, a9 as IntegrityReport, aa as AllRecords, ab as DerivedStates, ac as EnrichedTaskRecord, ad as DerivedStateSets, b as IRecordProjection, ae as IntegrityError, af as IntegrityWarning, P as ProjectionContext } from './record_projection.types-Dz9YU3r9.js';
|
|
2
|
+
import { C as ConfigManager, E as EventBus, p as IEventStream, r as eventBus, s as publishEvent, t as subscribeToEvent, q as IIdentityAdapter, u as IdentityAdapterDependencies, I as ILintModule, v as LintModuleDependencies, c as LintRecordContext, d as LintResult, L as LintOptions, a as LintReport$1, F as FixRecordOptions, b as FixReport, w as FixResult, x as LintSummary, y as RecordEntry, R as RecordStores$1, V as ValidationContext$1, z as ValidatorType, e as ISyncStateModule, B as AuditScope$1, A as AuditStateOptions, i as AuditStateReport, g as ConflictDiff, D as ConflictFileDiff, G as ConflictInfo, H as ConflictType, J as ExpectedFilesScope, h as IntegrityViolation, f as StateDeltaFile, S as SyncStateModuleDependencies, l as SyncStatePullOptions, m as SyncStatePullResult, j as SyncStatePushOptions, k as SyncStatePushResult, n as SyncStateResolveOptions, o as SyncStateResolveResult } from './sync_state-Bn_LogJ2.js';
|
|
3
|
+
import { A as ActorState, a as GitGovSession, k as ISessionManager, S as SyncPreferencesUpdate, l as SyncStatus, m as AuditState, n as AuditStateUpdate, G as GitGovConfig, o as IConfigManager, p as SyncConfig, q as SyncDefaults, K as KeyProvider, r as KeyProviderError, s as KeyProviderErrorCode, i as FileListOptions, h as FileLister, j as FileStats, F as FsFileListerOptions, M as MemoryFileListerOptions, I as IGitModule } from './index-LULVRsCZ.js';
|
|
4
|
+
export { C as ConfigStore, t as Git } from './index-LULVRsCZ.js';
|
|
5
|
+
import { S as SessionManager, g as IdentityAdapter, h as IExecutionAdapter, i as ExecutionAdapterDependencies, E as EnvironmentValidation, I as IProjectInitializer, d as FsKeyProvider, e as FsKeyProviderOptions, f as FsFileLister, D as DEFAULT_STATE_BRANCH, j as AgentExecutionContext, k as AgentOutput, c as AgentResponse, A as AgentRunnerDependencies, l as AgentRunnerEvent, m as ApiEngine, n as AuthConfig, o as AuthType, C as CustomEngine, p as Engine, q as EngineType, r as IAgentLoader, b as IAgentRunner, L as LocalEngine, M as McpEngine, s as ProtocolHandler, P as ProtocolHandlerRegistry, R as RunOptions, t as RuntimeHandler, u as RuntimeHandlerRegistry } from './agent_runner-CHDkBfPZ.js';
|
|
6
|
+
import { E as EnvKeyProvider, a as EnvKeyProviderOptions, M as MockKeyProvider, b as MockKeyProviderOptions, c as MemoryFileLister } from './memory_file_lister-BCY4ZYGW.js';
|
|
7
7
|
import { ValidateFunction } from 'ajv';
|
|
8
|
-
import
|
|
8
|
+
import './session_store-I4Z6PW2c.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* SessionManager Module
|
|
@@ -997,12 +997,13 @@ declare class WorkflowAdapter implements IWorkflow {
|
|
|
997
997
|
}
|
|
998
998
|
|
|
999
999
|
type index$h_IWorkflow = IWorkflow;
|
|
1000
|
+
type index$h_TransitionRule = TransitionRule;
|
|
1000
1001
|
type index$h_ValidationContext = ValidationContext;
|
|
1001
1002
|
type index$h_WorkflowAdapter = WorkflowAdapter;
|
|
1002
1003
|
declare const index$h_WorkflowAdapter: typeof WorkflowAdapter;
|
|
1003
1004
|
type index$h_WorkflowAdapterDependencies = WorkflowAdapterDependencies;
|
|
1004
1005
|
declare namespace index$h {
|
|
1005
|
-
export { type index$h_IWorkflow as IWorkflow, type index$h_ValidationContext as ValidationContext, index$h_WorkflowAdapter as WorkflowAdapter, type index$h_WorkflowAdapterDependencies as WorkflowAdapterDependencies };
|
|
1006
|
+
export { type index$h_IWorkflow as IWorkflow, type index$h_TransitionRule as TransitionRule, type index$h_ValidationContext as ValidationContext, index$h_WorkflowAdapter as WorkflowAdapter, type index$h_WorkflowAdapterDependencies as WorkflowAdapterDependencies };
|
|
1006
1007
|
}
|
|
1007
1008
|
|
|
1008
1009
|
/**
|
|
@@ -1393,6 +1394,8 @@ interface ProjectAdapterDependencies {
|
|
|
1393
1394
|
type ProjectInitOptions = {
|
|
1394
1395
|
/** Project name (will be slugified for projectId) */
|
|
1395
1396
|
name: string;
|
|
1397
|
+
/** Actor type for bootstrap trust root. Default: 'human' */
|
|
1398
|
+
type?: 'human' | 'agent';
|
|
1396
1399
|
/** Path to JSON template file for initial cycles/tasks */
|
|
1397
1400
|
template?: string;
|
|
1398
1401
|
/** Display name for bootstrap actor */
|
|
@@ -1641,12 +1644,13 @@ type index$c_ProjectInitOptions = ProjectInitOptions;
|
|
|
1641
1644
|
type index$c_ProjectInitResult = ProjectInitResult;
|
|
1642
1645
|
type index$c_ProjectReport = ProjectReport;
|
|
1643
1646
|
type index$c_TemplateProcessingResult = TemplateProcessingResult;
|
|
1647
|
+
type index$c_TransitionRule = TransitionRule;
|
|
1644
1648
|
type index$c_ValidationContext = ValidationContext;
|
|
1645
1649
|
type index$c_WorkflowAdapter = WorkflowAdapter;
|
|
1646
1650
|
declare const index$c_WorkflowAdapter: typeof WorkflowAdapter;
|
|
1647
1651
|
type index$c_WorkflowAdapterDependencies = WorkflowAdapterDependencies;
|
|
1648
1652
|
declare namespace index$c {
|
|
1649
|
-
export { index$c_AgentAdapter as AgentAdapter, type index$c_AgentAdapterDependencies as AgentAdapterDependencies, type index$c_AuditReport as AuditReport, index$c_BacklogAdapter as BacklogAdapter, type index$c_BacklogAdapterConfig as BacklogAdapterConfig, type index$c_BacklogAdapterDependencies as BacklogAdapterDependencies, index$c_ChangelogAdapter as ChangelogAdapter, type index$c_ChangelogAdapterDependencies as ChangelogAdapterDependencies, type index$c_ChangelogListOptions as ChangelogListOptions, index$c_EnvironmentValidation as EnvironmentValidation, index$c_ExecutionAdapter as ExecutionAdapter, index$c_ExecutionAdapterDependencies as ExecutionAdapterDependencies, index$c_FeedbackAdapter as FeedbackAdapter, type index$c_FeedbackAdapterDependencies as FeedbackAdapterDependencies, type index$c_FeedbackThread as FeedbackThread, type index$c_IAgentAdapter as IAgentAdapter, type index$c_IBacklogAdapter as IBacklogAdapter, type index$c_IChangelogAdapter as IChangelogAdapter, index$c_IExecutionAdapter as IExecutionAdapter, type index$c_IFeedbackAdapter as IFeedbackAdapter, index$c_IIdentityAdapter as IIdentityAdapter, type index$c_IProjectAdapter as IProjectAdapter, type index$c_IWorkflow as IWorkflow, index$c_IdentityAdapter as IdentityAdapter, index$c_IdentityAdapterDependencies as IdentityAdapterDependencies, type index$c_LintReport as LintReport, index$c_ProjectAdapter as ProjectAdapter, type index$c_ProjectAdapterDependencies as ProjectAdapterDependencies, type index$c_ProjectContext as ProjectContext, type index$c_ProjectInfo as ProjectInfo, type index$c_ProjectInitOptions as ProjectInitOptions, type index$c_ProjectInitResult as ProjectInitResult, type index$c_ProjectReport as ProjectReport, type index$c_TemplateProcessingResult as TemplateProcessingResult, type index$c_ValidationContext as ValidationContext, index$c_WorkflowAdapter as WorkflowAdapter, type index$c_WorkflowAdapterDependencies as WorkflowAdapterDependencies };
|
|
1653
|
+
export { index$c_AgentAdapter as AgentAdapter, type index$c_AgentAdapterDependencies as AgentAdapterDependencies, type index$c_AuditReport as AuditReport, index$c_BacklogAdapter as BacklogAdapter, type index$c_BacklogAdapterConfig as BacklogAdapterConfig, type index$c_BacklogAdapterDependencies as BacklogAdapterDependencies, index$c_ChangelogAdapter as ChangelogAdapter, type index$c_ChangelogAdapterDependencies as ChangelogAdapterDependencies, type index$c_ChangelogListOptions as ChangelogListOptions, index$c_EnvironmentValidation as EnvironmentValidation, index$c_ExecutionAdapter as ExecutionAdapter, index$c_ExecutionAdapterDependencies as ExecutionAdapterDependencies, index$c_FeedbackAdapter as FeedbackAdapter, type index$c_FeedbackAdapterDependencies as FeedbackAdapterDependencies, type index$c_FeedbackThread as FeedbackThread, type index$c_IAgentAdapter as IAgentAdapter, type index$c_IBacklogAdapter as IBacklogAdapter, type index$c_IChangelogAdapter as IChangelogAdapter, index$c_IExecutionAdapter as IExecutionAdapter, type index$c_IFeedbackAdapter as IFeedbackAdapter, index$c_IIdentityAdapter as IIdentityAdapter, type index$c_IProjectAdapter as IProjectAdapter, type index$c_IWorkflow as IWorkflow, index$c_IdentityAdapter as IdentityAdapter, index$c_IdentityAdapterDependencies as IdentityAdapterDependencies, type index$c_LintReport as LintReport, index$c_ProjectAdapter as ProjectAdapter, type index$c_ProjectAdapterDependencies as ProjectAdapterDependencies, type index$c_ProjectContext as ProjectContext, type index$c_ProjectInfo as ProjectInfo, type index$c_ProjectInitOptions as ProjectInitOptions, type index$c_ProjectInitResult as ProjectInitResult, type index$c_ProjectReport as ProjectReport, type index$c_TemplateProcessingResult as TemplateProcessingResult, type index$c_TransitionRule as TransitionRule, type index$c_ValidationContext as ValidationContext, index$c_WorkflowAdapter as WorkflowAdapter, type index$c_WorkflowAdapterDependencies as WorkflowAdapterDependencies };
|
|
1650
1654
|
}
|
|
1651
1655
|
|
|
1652
1656
|
/**
|
|
@@ -5712,6 +5716,7 @@ declare const index$5_ConflictMarkersPresentError: typeof ConflictMarkersPresent
|
|
|
5712
5716
|
declare const index$5_ConflictType: typeof ConflictType;
|
|
5713
5717
|
type index$5_CryptoModuleRequiredError = CryptoModuleRequiredError;
|
|
5714
5718
|
declare const index$5_CryptoModuleRequiredError: typeof CryptoModuleRequiredError;
|
|
5719
|
+
declare const index$5_DEFAULT_STATE_BRANCH: typeof DEFAULT_STATE_BRANCH;
|
|
5715
5720
|
declare const index$5_ExpectedFilesScope: typeof ExpectedFilesScope;
|
|
5716
5721
|
declare const index$5_ISyncStateModule: typeof ISyncStateModule;
|
|
5717
5722
|
declare const index$5_IntegrityViolation: typeof IntegrityViolation;
|
|
@@ -5756,7 +5761,7 @@ declare const index$5_isSyncStateError: typeof isSyncStateError;
|
|
|
5756
5761
|
declare const index$5_isUncommittedChangesError: typeof isUncommittedChangesError;
|
|
5757
5762
|
declare const index$5_isWorktreeSetupError: typeof isWorktreeSetupError;
|
|
5758
5763
|
declare namespace index$5 {
|
|
5759
|
-
export { index$5_ActorIdentityMismatchError as ActorIdentityMismatchError, AuditScope$1 as AuditScope, index$5_AuditStateOptions as AuditStateOptions, index$5_AuditStateReport as AuditStateReport, index$5_ConflictDiff as ConflictDiff, index$5_ConflictFileDiff as ConflictFileDiff, index$5_ConflictInfo as ConflictInfo, index$5_ConflictMarkersPresentError as ConflictMarkersPresentError, index$5_ConflictType as ConflictType, index$5_CryptoModuleRequiredError as CryptoModuleRequiredError, index$5_ExpectedFilesScope as ExpectedFilesScope, index$5_ISyncStateModule as ISyncStateModule, 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_RebaseAlreadyInProgressError as RebaseAlreadyInProgressError, index$5_StateBranchSetupError as StateBranchSetupError, index$5_StateDeltaFile as StateDeltaFile, index$5_SyncStateError as SyncStateError, index$5_SyncStateModuleDependencies as SyncStateModuleDependencies, index$5_SyncStatePullOptions as SyncStatePullOptions, index$5_SyncStatePullResult as SyncStatePullResult, index$5_SyncStatePushOptions as SyncStatePushOptions, index$5_SyncStatePushResult as SyncStatePushResult, index$5_SyncStateResolveOptions as SyncStateResolveOptions, index$5_SyncStateResolveResult as SyncStateResolveResult, index$5_UncommittedChangesError as UncommittedChangesError, index$5_WorktreeSetupError as WorktreeSetupError, index$5_isActorIdentityMismatchError as isActorIdentityMismatchError, 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_isRebaseAlreadyInProgressError as isRebaseAlreadyInProgressError, index$5_isStateBranchSetupError as isStateBranchSetupError, index$5_isSyncStateError as isSyncStateError, index$5_isUncommittedChangesError as isUncommittedChangesError, index$5_isWorktreeSetupError as isWorktreeSetupError };
|
|
5764
|
+
export { index$5_ActorIdentityMismatchError as ActorIdentityMismatchError, AuditScope$1 as AuditScope, index$5_AuditStateOptions as AuditStateOptions, index$5_AuditStateReport as AuditStateReport, index$5_ConflictDiff as ConflictDiff, index$5_ConflictFileDiff as ConflictFileDiff, index$5_ConflictInfo as ConflictInfo, index$5_ConflictMarkersPresentError as ConflictMarkersPresentError, index$5_ConflictType as ConflictType, index$5_CryptoModuleRequiredError as CryptoModuleRequiredError, index$5_DEFAULT_STATE_BRANCH as DEFAULT_STATE_BRANCH, index$5_ExpectedFilesScope as ExpectedFilesScope, index$5_ISyncStateModule as ISyncStateModule, 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_RebaseAlreadyInProgressError as RebaseAlreadyInProgressError, index$5_StateBranchSetupError as StateBranchSetupError, index$5_StateDeltaFile as StateDeltaFile, index$5_SyncStateError as SyncStateError, index$5_SyncStateModuleDependencies as SyncStateModuleDependencies, index$5_SyncStatePullOptions as SyncStatePullOptions, index$5_SyncStatePullResult as SyncStatePullResult, index$5_SyncStatePushOptions as SyncStatePushOptions, index$5_SyncStatePushResult as SyncStatePushResult, index$5_SyncStateResolveOptions as SyncStateResolveOptions, index$5_SyncStateResolveResult as SyncStateResolveResult, index$5_UncommittedChangesError as UncommittedChangesError, index$5_WorktreeSetupError as WorktreeSetupError, index$5_isActorIdentityMismatchError as isActorIdentityMismatchError, 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_isRebaseAlreadyInProgressError as isRebaseAlreadyInProgressError, index$5_isStateBranchSetupError as isStateBranchSetupError, index$5_isSyncStateError as isSyncStateError, index$5_isUncommittedChangesError as isUncommittedChangesError, index$5_isWorktreeSetupError as isWorktreeSetupError };
|
|
5760
5765
|
}
|
|
5761
5766
|
|
|
5762
5767
|
/**
|
|
@@ -7122,4 +7127,4 @@ declare namespace index {
|
|
|
7122
7127
|
export { type index_ActiveWaiver as ActiveWaiver, type index_AuditContentsInput as AuditContentsInput, type index_AuditOptions as AuditOptions, type index_AuditResult as AuditResult, type index_AuditScope as AuditScope, type index_AuditSummary as AuditSummary, type index_AuditTarget as AuditTarget, type index_CodeScope as CodeScope, type index_CreateWaiverOptions as CreateWaiverOptions, type index_FailOnSeverity as FailOnSeverity, type index_FileContent as FileContent, type index_GitgovScope as GitgovScope, type index_GroupByOption as GroupByOption, type index_IWaiverReader as IWaiverReader, type index_JiraScope as JiraScope, type index_OutputFormat as OutputFormat, type index_ScopeConfig as ScopeConfig, index_ScopeSelector as ScopeSelector, index_ScoringEngine as ScoringEngine, type index_SourceAuditorDependencies as SourceAuditorDependencies, index_SourceAuditorModule as SourceAuditorModule, type index_WaiverMetadata as WaiverMetadata, index_WaiverReader as WaiverReader, type index_WaiverStatus as WaiverStatus, index_WaiverWriter as WaiverWriter };
|
|
7123
7128
|
}
|
|
7124
7129
|
|
|
7125
|
-
export { ActivityEvent, ActorRecord, ActorState, index$c as Adapters, AgentRecord, AgentResponse, AllRecords, AuditState, AuditStateReport, index$f as BacklogAdapter, index$g as ChangelogAdapter, ChangelogRecord, CollaborationMetrics, index$r as Config, index$b as Crypto, CustomRecord, CycleRecord, DerivedStates, index$2 as DiagramGenerator, EmbeddedMetadataRecord, EnrichedTaskRecord, EnvironmentValidation, index$n as EventBus, index$j as ExecutionAdapter, ExecutionRecord, index$a as Factories, index$i as FeedbackAdapter, FeedbackRecord, index$8 as FileLister, index$1 as FindingDetector, FixReport, GitGovActorRecord, GitGovAgentRecord, GitGovChangelogRecord, GitGovConfig, GitGovCycleRecord, GitGovExecutionRecord, GitGovFeedbackRecord, GitGovRecord, GitGovRecordPayload, GitGovRecordType, GitGovTaskRecord, IAgentRunner, type IBacklogAdapter, IConfigManager, IExecutionAdapter, type IFeedbackAdapter, FileLister as IFileLister, IIdentityAdapter, KeyProvider as IKeyProvider, ILintModule, IRecordMetrics, IRecordProjection, IRecordProjector, ISessionManager, ISyncStateModule, IdEncoder, index$l as IdentityAdapter, IndexData, IndexGenerationReport, IntegrityReport, index$9 as KeyProvider, index$k as Lint, LintOptions, LintReport$1 as LintReport, LintResult, index$7 as Logger, ProductivityMetrics, index$d as ProjectAdapter, type ProjectInitResult, index$e as ProjectInitializer, ProjectionContext, index$o as RecordMetrics, RecordMetricsDependencies, index$m as RecordProjection, RecordProjectorDependencies, RecordStore, RecordStores$1 as RecordStores, index$q as Records, RunOptions, index$3 as Runner, index$6 as Schemas, index$s as Session, Signature, index as SourceAuditor, index$p as Store, index$5 as SyncState, SyncStatePullResult, SyncStatePushResult, SyncStateResolveResult, SyncStatus, SystemStatus, TaskHealthReport, TaskRecord, index$4 as Validation, ValidatorType, index$h as WorkflowAdapter, type WorkflowRecord };
|
|
7130
|
+
export { ActivityEvent, ActorRecord, ActorState, index$c as Adapters, AgentRecord, AgentResponse, AllRecords, AuditState, AuditStateReport, index$f as BacklogAdapter, index$g as ChangelogAdapter, ChangelogRecord, CollaborationMetrics, index$r as Config, index$b as Crypto, CustomRecord, CycleRecord, DerivedStates, index$2 as DiagramGenerator, EmbeddedMetadataRecord, EnrichedTaskRecord, EnvironmentValidation, index$n as EventBus, index$j as ExecutionAdapter, ExecutionRecord, index$a as Factories, index$i as FeedbackAdapter, FeedbackRecord, index$8 as FileLister, index$1 as FindingDetector, FixReport, GitGovActorRecord, GitGovAgentRecord, GitGovChangelogRecord, GitGovConfig, GitGovCycleRecord, GitGovExecutionRecord, GitGovFeedbackRecord, GitGovRecord, GitGovRecordPayload, GitGovRecordType, GitGovTaskRecord, type IAgentAdapter, IAgentRunner, type IBacklogAdapter, IConfigManager, IExecutionAdapter, type IFeedbackAdapter, FileLister as IFileLister, IIdentityAdapter, KeyProvider as IKeyProvider, ILintModule, IRecordMetrics, IRecordProjection, IRecordProjector, ISessionManager, ISyncStateModule, IdEncoder, index$l as IdentityAdapter, IndexData, IndexGenerationReport, IntegrityReport, index$9 as KeyProvider, index$k as Lint, LintOptions, LintReport$1 as LintReport, LintResult, index$7 as Logger, ProductivityMetrics, index$d as ProjectAdapter, type ProjectInitResult, index$e as ProjectInitializer, ProjectionContext, index$o as RecordMetrics, RecordMetricsDependencies, index$m as RecordProjection, RecordProjectorDependencies, RecordStore, RecordStores$1 as RecordStores, index$q as Records, RunOptions, index$3 as Runner, index$6 as Schemas, index$s as Session, Signature, index as SourceAuditor, index$p as Store, index$5 as SyncState, SyncStatePullResult, SyncStatePushResult, SyncStateResolveResult, SyncStatus, SystemStatus, TaskHealthReport, TaskRecord, index$4 as Validation, ValidatorType, index$h as WorkflowAdapter, type WorkflowRecord };
|
package/dist/src/index.js
CHANGED
|
@@ -5880,7 +5880,7 @@ var ProjectAdapter = class {
|
|
|
5880
5880
|
await this.projectInitializer.copyAgentPrompt();
|
|
5881
5881
|
const actor = await this.identityAdapter.createActor(
|
|
5882
5882
|
{
|
|
5883
|
-
type: "human",
|
|
5883
|
+
type: options.type ?? "human",
|
|
5884
5884
|
displayName: options.actorName || "Project Owner",
|
|
5885
5885
|
roles: [
|
|
5886
5886
|
"admin",
|
|
@@ -8229,6 +8229,7 @@ __export(sync_state_exports, {
|
|
|
8229
8229
|
ActorIdentityMismatchError: () => ActorIdentityMismatchError,
|
|
8230
8230
|
ConflictMarkersPresentError: () => ConflictMarkersPresentError,
|
|
8231
8231
|
CryptoModuleRequiredError: () => CryptoModuleRequiredError,
|
|
8232
|
+
DEFAULT_STATE_BRANCH: () => DEFAULT_STATE_BRANCH,
|
|
8232
8233
|
IntegrityViolationError: () => IntegrityViolationError,
|
|
8233
8234
|
NoRebaseInProgressError: () => NoRebaseInProgressError,
|
|
8234
8235
|
PullScheduler: () => PullScheduler,
|
|
@@ -8440,6 +8441,9 @@ var PullScheduler = class {
|
|
|
8440
8441
|
}
|
|
8441
8442
|
};
|
|
8442
8443
|
|
|
8444
|
+
// src/sync_state/fs_worktree/fs_worktree_sync_state.types.ts
|
|
8445
|
+
var DEFAULT_STATE_BRANCH = "gitgov-state";
|
|
8446
|
+
|
|
8443
8447
|
// src/sync_state/sync_state.errors.ts
|
|
8444
8448
|
var SyncStateError = class _SyncStateError extends Error {
|
|
8445
8449
|
constructor(message) {
|