kith-coord 0.1.8 → 0.1.9
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/CHANGELOG.md +9 -0
- package/CONTRIBUTING.md +7 -1
- package/README.md +7 -7
- package/bin/kith-menubar +0 -0
- package/dist/cli/index.js +3139 -796
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +46 -2
- package/dist/index.js +2171 -375
- package/dist/index.js.map +1 -1
- package/docs/architecture.md +1 -1
- package/docs/integrations.md +4 -4
- package/docs/sessions-and-mutexes.md +28 -2
- package/package.json +26 -16
- package/server.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -558,6 +558,30 @@ declare class ShadowGitEngine {
|
|
|
558
558
|
probePairConflict(agentA: string, commitA: string, agentB: string, commitB: string): DirtyMergeProbeResult;
|
|
559
559
|
/** Remove orphaned shadow Git index files left behind by dead or completed sessions. */
|
|
560
560
|
pruneStaleShadowIndexes(dryRun?: boolean): number;
|
|
561
|
+
/** Counts from the most recent {@link pruneFalseConflicts} call. Tests assert the probe budget. */
|
|
562
|
+
lastConflictHygiene: {
|
|
563
|
+
mergeFileProbes: number;
|
|
564
|
+
headReads: number;
|
|
565
|
+
removed: number;
|
|
566
|
+
probeDir: string | null;
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* Drop stored conflicts that are no longer real. 0.1.8 already refuses to record a side equal
|
|
570
|
+
* to HEAD, or two identical sides, while probing. Rows written before that commit, or before
|
|
571
|
+
* HEAD moved, stay until something reads them. `git merge-file` runs only for triples not
|
|
572
|
+
* already settled, at most `maxMergeProbes` per call, and the decision is cached by HEAD sha
|
|
573
|
+
* plus conflict id so a later status read does not spawn those processes again. Probe files
|
|
574
|
+
* live in the system temp directory and are removed before this returns.
|
|
575
|
+
*/
|
|
576
|
+
pruneFalseConflicts(maxMergeProbes?: number): number;
|
|
577
|
+
private blobsAtCommit;
|
|
578
|
+
/** `conflict` is a real overlap. `error` is not cached, so a later read can retry the probe. */
|
|
579
|
+
private blobsMergeCleanly;
|
|
580
|
+
/** Prefer the system temp dir. If that lives inside this checkout, step outside it. */
|
|
581
|
+
private mergeProbeParent;
|
|
582
|
+
private hygieneCachePath;
|
|
583
|
+
private readHygieneCache;
|
|
584
|
+
private writeHygieneCache;
|
|
561
585
|
listConflicts(): ConflictRecord[];
|
|
562
586
|
}
|
|
563
587
|
|
|
@@ -583,6 +607,12 @@ interface BashGuardPostReport {
|
|
|
583
607
|
authorizedModifiedFiles: string[];
|
|
584
608
|
quarantinedViolations: QuarantineRecord[];
|
|
585
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
* Checkouts whose index should be resynced after a command that ran `git update-ref`.
|
|
612
|
+
* Each directory is the worktree root of a classified `update-ref` (after `git -C` and `cd`).
|
|
613
|
+
* Unparsed commands and stdin batches yield nothing, so the post-hook does not reset an unrelated index.
|
|
614
|
+
*/
|
|
615
|
+
declare function refUpdateResyncRoots(command: string, startDir: string): string[];
|
|
586
616
|
/**
|
|
587
617
|
* True when a shell command is purely observational (e.g. `ls`, `tail`, `git status`, `stack.mjs status`)
|
|
588
618
|
* and contains no file-redirection or write primitives.
|
|
@@ -611,7 +641,21 @@ declare class BashMerkleGuard {
|
|
|
611
641
|
}): {
|
|
612
642
|
safe: boolean;
|
|
613
643
|
reason?: string;
|
|
644
|
+
deferred?: boolean;
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* Post-hook half of a deferred shared-checkout update-ref. Literal SHAs are decided in
|
|
648
|
+
* checkCommandSafety; shell variables are checked against the commit that landed.
|
|
649
|
+
*/
|
|
650
|
+
settleDeferredRefUpdate(params: {
|
|
651
|
+
agentId: string;
|
|
652
|
+
command: string;
|
|
653
|
+
}): {
|
|
654
|
+
warnings: string[];
|
|
655
|
+
reverted: boolean;
|
|
614
656
|
};
|
|
657
|
+
private refHost;
|
|
658
|
+
private recordedTasks;
|
|
615
659
|
private getSnapshotFilePath;
|
|
616
660
|
/**
|
|
617
661
|
* Captures a Merkle snapshot of workspace files before a Bash tool execution.
|
|
@@ -1586,7 +1630,7 @@ interface GcReport {
|
|
|
1586
1630
|
declare function resyncStaleIndexEntries(repoRoot: string): number;
|
|
1587
1631
|
declare function gcCoordination(directory?: string, options?: GcOptions): GcReport;
|
|
1588
1632
|
|
|
1589
|
-
declare const KITH_VERSION = "0.1.
|
|
1633
|
+
declare const KITH_VERSION = "0.1.9";
|
|
1590
1634
|
declare const KITH_PROTOCOL_VERSION = "1.6.0";
|
|
1591
1635
|
|
|
1592
|
-
export { type AcquireLockResult, type AgentRecord, type AgentUnreadDelta, AstAnalyzer, type BashGuardPostReport, BashMerkleGuard, type BlastRadiusAlert, CoWWorktreeManager, type CommitParams, type CommitResult, type ConflictRecord, type ContractRecord, CoordDatabase, type CoordEvent, type DeclareIntentResult, DependencyAndContractEngine, type DirtyMergeProbeResult, type ExtractedImport, type ExtractedSymbol, FencingAndAgentManager, type FileAstAnalysis, type FileModificationReport, type FileSnapshotEntry, type GcOptions, type GcPreservedItem, type GcReport, IntentAndTaskEngine, KITH_PROTOCOL_VERSION, KITH_VERSION, KithEngine, type LinkedWorkspaceContract, type LockConflict, LockEngine, type LockRecord, type MergeTrainEntry, type PostFileEditHookResult, type QuarantineRecord, type RepositoryLayout, ResourceBroker, type ResourceRecord, SessionOwnershipError, type SessionRegistration, ShadowGitEngine, type SpawnedWorktree, type SpeculativeMergeResult, SpeculativeMergeTrain, StaleFencingTokenError, type SupervisedCommandOptions, type SwarmPrompts, type SymbolKind, type TaskRecord, type WorkspaceContractReport, type WorkspaceObservation, type WorktreeChange, buildSwarmPrompts, caseSensitivePaths, commandTargetsFileForWrite, commitScopedFiles, discoverChildRepositories, discoverRepository, extractRecentAgentFiles, gcCoordination, inspectWorkspaceContracts, isReadOnlyShellCommand, isWithin, observeWorkspaces, physicalPath, previewIntegration, readBrief, readCoordinationState, recoveryReport, repositoryFile, resyncStaleIndexEntries, runVerificationCommand, sqliteDatabase, verifyCrossRepoImportsForFile, worktreeChanges };
|
|
1636
|
+
export { type AcquireLockResult, type AgentRecord, type AgentUnreadDelta, AstAnalyzer, type BashGuardPostReport, BashMerkleGuard, type BlastRadiusAlert, CoWWorktreeManager, type CommitParams, type CommitResult, type ConflictRecord, type ContractRecord, CoordDatabase, type CoordEvent, type DeclareIntentResult, DependencyAndContractEngine, type DirtyMergeProbeResult, type ExtractedImport, type ExtractedSymbol, FencingAndAgentManager, type FileAstAnalysis, type FileModificationReport, type FileSnapshotEntry, type GcOptions, type GcPreservedItem, type GcReport, IntentAndTaskEngine, KITH_PROTOCOL_VERSION, KITH_VERSION, KithEngine, type LinkedWorkspaceContract, type LockConflict, LockEngine, type LockRecord, type MergeTrainEntry, type PostFileEditHookResult, type QuarantineRecord, type RepositoryLayout, ResourceBroker, type ResourceRecord, SessionOwnershipError, type SessionRegistration, ShadowGitEngine, type SpawnedWorktree, type SpeculativeMergeResult, SpeculativeMergeTrain, StaleFencingTokenError, type SupervisedCommandOptions, type SwarmPrompts, type SymbolKind, type TaskRecord, type WorkspaceContractReport, type WorkspaceObservation, type WorktreeChange, buildSwarmPrompts, caseSensitivePaths, commandTargetsFileForWrite, commitScopedFiles, discoverChildRepositories, discoverRepository, extractRecentAgentFiles, gcCoordination, inspectWorkspaceContracts, isReadOnlyShellCommand, isWithin, observeWorkspaces, physicalPath, previewIntegration, readBrief, readCoordinationState, recoveryReport, refUpdateResyncRoots, repositoryFile, resyncStaleIndexEntries, runVerificationCommand, sqliteDatabase, verifyCrossRepoImportsForFile, worktreeChanges };
|