@adhdev/daemon-standalone 0.9.82-rc.25 → 0.9.82-rc.26
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/index.js +27 -47
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-Ce58Aw2L.js +98 -0
- package/public/index.html +1 -1
- package/public/assets/index-Dt2Xvr87.js +0 -98
package/dist/index.js
CHANGED
|
@@ -46072,49 +46072,7 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
|
|
|
46072
46072
|
}).filter((entry) => entry !== null);
|
|
46073
46073
|
return submodules.length > 0 ? submodules : void 0;
|
|
46074
46074
|
}
|
|
46075
|
-
function
|
|
46076
|
-
const cachedStatus = readObjectRecord(node?.cachedStatus);
|
|
46077
|
-
const cachedGit = readObjectRecord(cachedStatus.git);
|
|
46078
|
-
if (Object.keys(cachedGit).length) {
|
|
46079
|
-
const conflictFiles2 = Array.isArray(cachedGit.conflictFiles) ? cachedGit.conflictFiles.filter((value) => typeof value === "string") : [];
|
|
46080
|
-
const conflictCount2 = readNumberValue(cachedGit.conflicts) ?? conflictFiles2.length;
|
|
46081
|
-
const hasConflicts2 = readBooleanValue(cachedGit.hasConflicts) ?? conflictCount2 > 0;
|
|
46082
|
-
const isGitRepo2 = readBooleanValue(cachedGit.isGitRepo);
|
|
46083
|
-
if (isGitRepo2 !== void 0) {
|
|
46084
|
-
const submodules2 = readGitSubmodules(cachedGit.submodules);
|
|
46085
|
-
return {
|
|
46086
|
-
workspace: readStringValue(cachedGit.workspace, node?.workspace) || "",
|
|
46087
|
-
repoRoot: readStringValue(cachedGit.repoRoot, node?.repoRoot, node?.workspace) || null,
|
|
46088
|
-
isGitRepo: isGitRepo2,
|
|
46089
|
-
branch: readStringValue(cachedGit.branch) ?? null,
|
|
46090
|
-
headCommit: readStringValue(cachedGit.headCommit) ?? null,
|
|
46091
|
-
headMessage: readStringValue(cachedGit.headMessage) ?? null,
|
|
46092
|
-
upstream: readStringValue(cachedGit.upstream) ?? null,
|
|
46093
|
-
ahead: readNumberValue(cachedGit.ahead) ?? 0,
|
|
46094
|
-
behind: readNumberValue(cachedGit.behind) ?? 0,
|
|
46095
|
-
staged: readNumberValue(cachedGit.staged) ?? 0,
|
|
46096
|
-
modified: readNumberValue(cachedGit.modified) ?? 0,
|
|
46097
|
-
untracked: readNumberValue(cachedGit.untracked) ?? 0,
|
|
46098
|
-
deleted: readNumberValue(cachedGit.deleted) ?? 0,
|
|
46099
|
-
renamed: readNumberValue(cachedGit.renamed) ?? 0,
|
|
46100
|
-
hasConflicts: hasConflicts2,
|
|
46101
|
-
conflictFiles: conflictFiles2,
|
|
46102
|
-
stashCount: readNumberValue(cachedGit.stashCount) ?? 0,
|
|
46103
|
-
lastCheckedAt: readNumberValue(cachedGit.lastCheckedAt) ?? Date.now(),
|
|
46104
|
-
...submodules2 ? { submodules: submodules2 } : {}
|
|
46105
|
-
};
|
|
46106
|
-
}
|
|
46107
|
-
}
|
|
46108
|
-
const rawGit = readObjectRecord(node?.lastGit ?? node?.last_git);
|
|
46109
|
-
const gitResult = readObjectRecord(rawGit.result);
|
|
46110
|
-
const directStatus = readObjectRecord(rawGit.status);
|
|
46111
|
-
const nestedStatus = readObjectRecord(gitResult.status);
|
|
46112
|
-
const rawProbe = readObjectRecord(node?.lastProbe ?? node?.last_probe);
|
|
46113
|
-
const probeGit = readObjectRecord(rawProbe.git);
|
|
46114
|
-
const probeGitResult = readObjectRecord(probeGit.result);
|
|
46115
|
-
const probeDirectStatus = readObjectRecord(probeGit.status);
|
|
46116
|
-
const probeNestedStatus = readObjectRecord(probeGitResult.status);
|
|
46117
|
-
const status = Object.keys(directStatus).length ? directStatus : Object.keys(nestedStatus).length ? nestedStatus : Object.keys(probeDirectStatus).length ? probeDirectStatus : Object.keys(probeNestedStatus).length ? probeNestedStatus : {};
|
|
46075
|
+
function normalizeInlineMeshGitStatus(status, node, options) {
|
|
46118
46076
|
const isGitRepo = readBooleanValue(status.isGitRepo);
|
|
46119
46077
|
if (!Object.keys(status).length || isGitRepo === void 0) return void 0;
|
|
46120
46078
|
const conflictFiles = Array.isArray(status.conflictFiles) ? status.conflictFiles.filter((value) => typeof value === "string") : [];
|
|
@@ -46139,10 +46097,31 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
|
|
|
46139
46097
|
hasConflicts,
|
|
46140
46098
|
conflictFiles,
|
|
46141
46099
|
stashCount: readNumberValue(status.stashCount) ?? 0,
|
|
46142
|
-
lastCheckedAt: Date.now(),
|
|
46100
|
+
lastCheckedAt: options?.lastCheckedAt ?? readNumberValue(status.lastCheckedAt) ?? Date.now(),
|
|
46143
46101
|
...submodules ? { submodules } : {}
|
|
46144
46102
|
};
|
|
46145
46103
|
}
|
|
46104
|
+
function buildInlineMeshTransitGitStatus(node) {
|
|
46105
|
+
const rawGit = readObjectRecord(node?.lastGit ?? node?.last_git);
|
|
46106
|
+
const gitResult = readObjectRecord(rawGit.result);
|
|
46107
|
+
const directStatus = readObjectRecord(rawGit.status);
|
|
46108
|
+
const nestedStatus = readObjectRecord(gitResult.status);
|
|
46109
|
+
const rawProbe = readObjectRecord(node?.lastProbe ?? node?.last_probe);
|
|
46110
|
+
const probeGit = readObjectRecord(rawProbe.git);
|
|
46111
|
+
const probeGitResult = readObjectRecord(probeGit.result);
|
|
46112
|
+
const probeDirectStatus = readObjectRecord(probeGit.status);
|
|
46113
|
+
const probeNestedStatus = readObjectRecord(probeGitResult.status);
|
|
46114
|
+
const status = Object.keys(directStatus).length ? directStatus : Object.keys(nestedStatus).length ? nestedStatus : Object.keys(probeDirectStatus).length ? probeDirectStatus : Object.keys(probeNestedStatus).length ? probeNestedStatus : {};
|
|
46115
|
+
return normalizeInlineMeshGitStatus(status, node, { lastCheckedAt: Date.now() });
|
|
46116
|
+
}
|
|
46117
|
+
function buildCachedInlineMeshGitStatus(node) {
|
|
46118
|
+
const liveGit = buildInlineMeshTransitGitStatus(node);
|
|
46119
|
+
if (liveGit) return liveGit;
|
|
46120
|
+
const cachedStatus = readObjectRecord(node?.cachedStatus);
|
|
46121
|
+
const cachedGit = readObjectRecord(cachedStatus.git);
|
|
46122
|
+
if (!Object.keys(cachedGit).length) return void 0;
|
|
46123
|
+
return normalizeInlineMeshGitStatus(cachedGit, node);
|
|
46124
|
+
}
|
|
46146
46125
|
function shouldDiscardCachedInlineMeshStatus(node) {
|
|
46147
46126
|
const cachedStatus = readObjectRecord(node?.cachedStatus);
|
|
46148
46127
|
if (!Object.keys(cachedStatus).length) return false;
|
|
@@ -46371,9 +46350,10 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
|
|
|
46371
46350
|
}
|
|
46372
46351
|
function applyCachedInlineMeshNodeStatus(status, node) {
|
|
46373
46352
|
const cachedStatus = readObjectRecord(node?.cachedStatus);
|
|
46374
|
-
const
|
|
46375
|
-
const
|
|
46376
|
-
const
|
|
46353
|
+
const liveGit = buildInlineMeshTransitGitStatus(node);
|
|
46354
|
+
const git = liveGit ?? buildCachedInlineMeshGitStatus(node);
|
|
46355
|
+
const error48 = liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
|
|
46356
|
+
const health = liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
|
|
46377
46357
|
const machineStatus = readStringValue(cachedStatus.machineStatus, node?.machineStatus);
|
|
46378
46358
|
const lastSeenAt = toIsoTimestamp(cachedStatus.lastSeenAt ?? cachedStatus.last_seen_at ?? node?.lastSeenAt ?? node?.last_seen_at);
|
|
46379
46359
|
const updatedAt = toIsoTimestamp(cachedStatus.updatedAt ?? cachedStatus.updated_at ?? node?.updatedAt ?? node?.updated_at);
|