kith-coord 0.1.4 → 0.1.5
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 +5 -0
- package/README.md +1 -1
- package/bin/kith-menubar +0 -0
- package/dist/cli/index.js +57 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/docs/integrations.md +2 -2
- package/docs/reliability.md +5 -1
- package/docs/roadmap.md +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -863,7 +863,9 @@ declare function discoverRepository(input: string): RepositoryLayout;
|
|
|
863
863
|
declare function caseSensitivePaths(root: string): boolean;
|
|
864
864
|
|
|
865
865
|
/** Copies a consistent stopped-state set before opening SQLite, so even SHM reconstruction cannot touch original recovery files. */
|
|
866
|
-
declare function readCoordinationState(directory?: string
|
|
866
|
+
declare function readCoordinationState(directory?: string, options?: {
|
|
867
|
+
ownersOnly?: boolean;
|
|
868
|
+
}): {
|
|
867
869
|
protocolVersion: string;
|
|
868
870
|
observedAt: number;
|
|
869
871
|
repository: {
|
|
@@ -1019,7 +1021,7 @@ declare function recoveryReport(directory?: string): {
|
|
|
1019
1021
|
error: string | undefined;
|
|
1020
1022
|
};
|
|
1021
1023
|
|
|
1022
|
-
declare const KITH_VERSION = "0.1.
|
|
1024
|
+
declare const KITH_VERSION = "0.1.5";
|
|
1023
1025
|
declare const KITH_PROTOCOL_VERSION = "1.3.0";
|
|
1024
1026
|
|
|
1025
1027
|
export { type AcquireLockResult, type AgentRecord, type AgentUnreadDelta, AstAnalyzer, type BashGuardPostReport, BashMerkleGuard, type BlastRadiusAlert, CoWWorktreeManager, type ConflictRecord, type ContractRecord, CoordDatabase, type CoordEvent, type DeclareIntentResult, DependencyAndContractEngine, type DirtyMergeProbeResult, type ExtractedImport, type ExtractedSymbol, FencingAndAgentManager, type FileAstAnalysis, type FileModificationReport, type FileSnapshotEntry, IntentAndTaskEngine, KITH_PROTOCOL_VERSION, KITH_VERSION, KithEngine, 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 SymbolKind, type TaskRecord, type WorkspaceObservation, type WorktreeChange, caseSensitivePaths, discoverRepository, isWithin, observeWorkspaces, physicalPath, previewIntegration, readCoordinationState, recoveryReport, repositoryFile, worktreeChanges };
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ async function waitForClaim(params) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// src/version.ts
|
|
33
|
-
var KITH_VERSION = "0.1.
|
|
33
|
+
var KITH_VERSION = "0.1.5";
|
|
34
34
|
var KITH_PROTOCOL_VERSION = "1.3.0";
|
|
35
35
|
|
|
36
36
|
// src/core/workspace-observation.ts
|
|
@@ -3699,7 +3699,7 @@ import os from "os";
|
|
|
3699
3699
|
import path12 from "path";
|
|
3700
3700
|
import { createRequire as createRequire2 } from "module";
|
|
3701
3701
|
var { DatabaseSync: DatabaseSync2 } = createRequire2(import.meta.url)("node:sqlite");
|
|
3702
|
-
function readCoordinationState(directory = process.cwd()) {
|
|
3702
|
+
function readCoordinationState(directory = process.cwd(), options = {}) {
|
|
3703
3703
|
const layout = discoverRepository(directory), observedAt = Date.now();
|
|
3704
3704
|
const empty = {
|
|
3705
3705
|
protocolVersion: KITH_PROTOCOL_VERSION,
|
|
@@ -3758,6 +3758,10 @@ function readCoordinationState(directory = process.cwd()) {
|
|
|
3758
3758
|
if (CoordDatabase.inspectSchema(db) !== 2) throw new Error("Offline observation requires schema 2; preserve state and upgrade with clients stopped");
|
|
3759
3759
|
const all = (sql) => db.prepare(sql).all();
|
|
3760
3760
|
const agents = all("SELECT * FROM agents ORDER BY registered_at DESC");
|
|
3761
|
+
if (options.ownersOnly) {
|
|
3762
|
+
db.exec("COMMIT");
|
|
3763
|
+
return { ...empty, state: "ready", agents };
|
|
3764
|
+
}
|
|
3761
3765
|
const state = {
|
|
3762
3766
|
...empty,
|
|
3763
3767
|
state: "ready",
|