lody 0.77.1 → 0.77.2
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.
|
@@ -75,7 +75,7 @@ let __tla = Promise.all([
|
|
|
75
75
|
}
|
|
76
76
|
})()
|
|
77
77
|
]).then(async () => {
|
|
78
|
-
const reviewViewerVersion = "0.77.
|
|
78
|
+
const reviewViewerVersion = "0.77.2";
|
|
79
79
|
const reviewViewerSha256 = "41b6ffd0acff2c355e190b604776a89138f9598a1772d09390a6d5af514e71bb";
|
|
80
80
|
const reviewViewerFileName = "standalone.html";
|
|
81
81
|
const DEFAULT_CDN_BASES = [
|
package/dist/index.js
CHANGED
|
@@ -10862,6 +10862,13 @@ Requirements:
|
|
|
10862
10862
|
}
|
|
10863
10863
|
return void 0;
|
|
10864
10864
|
}
|
|
10865
|
+
function isDirectLocalProject(project, sessionIsWorktree) {
|
|
10866
|
+
if (!project || typeof project !== "object") {
|
|
10867
|
+
return false;
|
|
10868
|
+
}
|
|
10869
|
+
const typedProject = project;
|
|
10870
|
+
return typedProject.kind === "local" && typedProject.useWorktree !== true && sessionIsWorktree !== true;
|
|
10871
|
+
}
|
|
10865
10872
|
function normalizeProjectRefForDedup(project) {
|
|
10866
10873
|
if (!project) return null;
|
|
10867
10874
|
if (project.kind === "github") {
|
|
@@ -24629,7 +24636,7 @@ ${peerId}`;
|
|
|
24629
24636
|
const getSessionIdFromRoomId = (roomId) => isSessionDocRoomId(roomId) ? roomId.slice(SESSION_DOC_PREFIX.length) : null;
|
|
24630
24637
|
const isMachineDocRoomId = (roomId) => roomId.startsWith(MACHINE_DOC_PREFIX);
|
|
24631
24638
|
const name$1 = "@lody/cli-cloud";
|
|
24632
|
-
const version$6 = "0.77.
|
|
24639
|
+
const version$6 = "0.77.2";
|
|
24633
24640
|
const type$2 = "module";
|
|
24634
24641
|
const scripts = {
|
|
24635
24642
|
"dev": "node dev.mjs",
|
|
@@ -150300,6 +150307,13 @@ ${entry.text}`).join("\n\n");
|
|
|
150300
150307
|
if (!githubRepo) {
|
|
150301
150308
|
return null;
|
|
150302
150309
|
}
|
|
150310
|
+
let workspace = null;
|
|
150311
|
+
if (project?.kind === "local") {
|
|
150312
|
+
workspace = await this.resolveWorkspaceSessionContext(sessionId, sessionDoc);
|
|
150313
|
+
if (isDirectLocalProject(project, workspace.ownerMeta?.isWorktree)) {
|
|
150314
|
+
return null;
|
|
150315
|
+
}
|
|
150316
|
+
}
|
|
150303
150317
|
const workdir = session2.getWorkdir();
|
|
150304
150318
|
const detected = await detectPullRequestForBranch({
|
|
150305
150319
|
session: session2,
|
|
@@ -150311,7 +150325,7 @@ ${entry.text}`).join("\n\n");
|
|
|
150311
150325
|
if (!detected) {
|
|
150312
150326
|
return null;
|
|
150313
150327
|
}
|
|
150314
|
-
|
|
150328
|
+
workspace ??= await this.resolveWorkspaceSessionContext(sessionId, sessionDoc);
|
|
150315
150329
|
if (workspace.pullRequests.some((pr) => pr.status === "open")) {
|
|
150316
150330
|
return detected;
|
|
150317
150331
|
}
|
|
@@ -179810,6 +179824,7 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
179810
179824
|
continue;
|
|
179811
179825
|
}
|
|
179812
179826
|
const runtimeBranch = resolveDiscoveryBranch(ownerMeta) ?? null;
|
|
179827
|
+
const prPollingEnabled = !isDirectLocalProject(ownerMeta.project, ownerMeta.isWorktree);
|
|
179813
179828
|
entries.set(ownerSessionId, {
|
|
179814
179829
|
ownerSessionId,
|
|
179815
179830
|
memberSessionIds: [
|
|
@@ -179817,8 +179832,8 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
179817
179832
|
],
|
|
179818
179833
|
lastMessageAtMs: maxNullable(ownerMeta.lastMessageAt ?? null, sessionId === ownerSessionId ? null : meta.lastMessageAt ?? null),
|
|
179819
179834
|
runtimeBranch,
|
|
179820
|
-
statusTargets: collectStatusTargets(ownerMeta),
|
|
179821
|
-
discoveryTarget: collectDiscoveryTarget(ownerMeta, runtimeBranch, discoveryFingerprints[ownerSessionId], resolveGitHubRepo)
|
|
179835
|
+
statusTargets: prPollingEnabled ? collectStatusTargets(ownerMeta) : [],
|
|
179836
|
+
discoveryTarget: prPollingEnabled ? collectDiscoveryTarget(ownerMeta, runtimeBranch, discoveryFingerprints[ownerSessionId], resolveGitHubRepo) : null
|
|
179822
179837
|
});
|
|
179823
179838
|
}
|
|
179824
179839
|
return Array.from(entries.values());
|
|
@@ -180760,6 +180775,9 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
180760
180775
|
if (!freshMeta || freshMeta.isArchived || freshMeta.machineId !== runtime.handle.machineId) {
|
|
180761
180776
|
return failed;
|
|
180762
180777
|
}
|
|
180778
|
+
if (isDirectLocalProject(freshMeta.project, freshMeta.isWorktree)) {
|
|
180779
|
+
return failed;
|
|
180780
|
+
}
|
|
180763
180781
|
const freshContext = resolveOwnerRepositoryContext(freshMeta);
|
|
180764
180782
|
const contextUnchanged = args2.queriedBranch === null || freshContext.repoFullName === repoFullName && freshContext.branch === args2.queriedBranch;
|
|
180765
180783
|
const discovered = contextUnchanged ? args2.discovered : [];
|
|
@@ -213292,7 +213310,7 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
|
|
|
213292
213310
|
data = createReviewBundleSnapshot(bundle);
|
|
213293
213311
|
}
|
|
213294
213312
|
const { injectReviewSnapshot } = await import("./chunks/index-VoI6Ds2-.js");
|
|
213295
|
-
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-
|
|
213313
|
+
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-C1f8pVKg.js").then(async (m) => {
|
|
213296
213314
|
await m.__tla;
|
|
213297
213315
|
return m;
|
|
213298
213316
|
});
|