lody 0.77.0 → 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.
|
@@ -31,7 +31,7 @@ import "perf_hooks";
|
|
|
31
31
|
import "net";
|
|
32
32
|
import "tls";
|
|
33
33
|
import "url";
|
|
34
|
-
import { __tla as __tla_1 } from "./loro_wasm_bg-
|
|
34
|
+
import { __tla as __tla_1 } from "./loro_wasm_bg-BPNKba8n.js";
|
|
35
35
|
import "assert";
|
|
36
36
|
import "fs/promises";
|
|
37
37
|
import "better-sqlite3";
|
|
@@ -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
|
@@ -41,7 +41,7 @@ import { performance as performance$1 } from "perf_hooks";
|
|
|
41
41
|
import require$$0$9 from "net";
|
|
42
42
|
import require$$4$2 from "tls";
|
|
43
43
|
import require$$7$2, { fileURLToPath as fileURLToPath$1, pathToFileURL as pathToFileURL$1 } from "url";
|
|
44
|
-
import { i as imports, _ as __wbg_set_wasm$1, r as rawWasm, L as LoroDoc, E as EphemeralStoreWasm, U as UndoManager, c as callPendingEvents$3, a as LoroTree, b as LoroText, d as LoroMovableList, e as LoroList, f as LoroMap, V as VersionVector, g as __vite__initWasm, h as decodeImportBlobMeta, __tla as __tla_0 } from "./chunks/loro_wasm_bg-
|
|
44
|
+
import { i as imports, _ as __wbg_set_wasm$1, r as rawWasm, L as LoroDoc, E as EphemeralStoreWasm, U as UndoManager, c as callPendingEvents$3, a as LoroTree, b as LoroText, d as LoroMovableList, e as LoroList, f as LoroMap, V as VersionVector, g as __vite__initWasm, h as decodeImportBlobMeta, __tla as __tla_0 } from "./chunks/loro_wasm_bg-BPNKba8n.js";
|
|
45
45
|
import assert from "assert";
|
|
46
46
|
import * as fs$3 from "fs/promises";
|
|
47
47
|
import fs__default$3 from "fs/promises";
|
|
@@ -7242,7 +7242,7 @@ Requirements:
|
|
|
7242
7242
|
}
|
|
7243
7243
|
finalize$1(instance.exports);
|
|
7244
7244
|
} else {
|
|
7245
|
-
const wkmod = wasmModuleOrExports instanceof WebAssembly.Module ? wasmModuleOrExports : await import("./chunks/loro_wasm_bg-
|
|
7245
|
+
const wkmod = wasmModuleOrExports instanceof WebAssembly.Module ? wasmModuleOrExports : await import("./chunks/loro_wasm_bg-BPNKba8n.js").then(async (m) => {
|
|
7246
7246
|
await m.__tla;
|
|
7247
7247
|
return m;
|
|
7248
7248
|
}).then((n) => n.r);
|
|
@@ -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,13 +24636,14 @@ ${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",
|
|
24636
24643
|
"dev:staging": "LODY_ENV=staging NODE_ENV=production node dev.mjs",
|
|
24637
24644
|
"build": "node build.mjs",
|
|
24638
|
-
"prepare:publish": "node prepare-publish.js"
|
|
24645
|
+
"prepare:publish": "node prepare-publish.js",
|
|
24646
|
+
"test": "node --test pnpm-runner.test.mjs"
|
|
24639
24647
|
};
|
|
24640
24648
|
const devDependencies = {
|
|
24641
24649
|
"dotenv": "^16.6.1",
|
|
@@ -150299,6 +150307,13 @@ ${entry.text}`).join("\n\n");
|
|
|
150299
150307
|
if (!githubRepo) {
|
|
150300
150308
|
return null;
|
|
150301
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
|
+
}
|
|
150302
150317
|
const workdir = session2.getWorkdir();
|
|
150303
150318
|
const detected = await detectPullRequestForBranch({
|
|
150304
150319
|
session: session2,
|
|
@@ -150310,7 +150325,7 @@ ${entry.text}`).join("\n\n");
|
|
|
150310
150325
|
if (!detected) {
|
|
150311
150326
|
return null;
|
|
150312
150327
|
}
|
|
150313
|
-
|
|
150328
|
+
workspace ??= await this.resolveWorkspaceSessionContext(sessionId, sessionDoc);
|
|
150314
150329
|
if (workspace.pullRequests.some((pr) => pr.status === "open")) {
|
|
150315
150330
|
return detected;
|
|
150316
150331
|
}
|
|
@@ -179809,6 +179824,7 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
179809
179824
|
continue;
|
|
179810
179825
|
}
|
|
179811
179826
|
const runtimeBranch = resolveDiscoveryBranch(ownerMeta) ?? null;
|
|
179827
|
+
const prPollingEnabled = !isDirectLocalProject(ownerMeta.project, ownerMeta.isWorktree);
|
|
179812
179828
|
entries.set(ownerSessionId, {
|
|
179813
179829
|
ownerSessionId,
|
|
179814
179830
|
memberSessionIds: [
|
|
@@ -179816,8 +179832,8 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
179816
179832
|
],
|
|
179817
179833
|
lastMessageAtMs: maxNullable(ownerMeta.lastMessageAt ?? null, sessionId === ownerSessionId ? null : meta.lastMessageAt ?? null),
|
|
179818
179834
|
runtimeBranch,
|
|
179819
|
-
statusTargets: collectStatusTargets(ownerMeta),
|
|
179820
|
-
discoveryTarget: collectDiscoveryTarget(ownerMeta, runtimeBranch, discoveryFingerprints[ownerSessionId], resolveGitHubRepo)
|
|
179835
|
+
statusTargets: prPollingEnabled ? collectStatusTargets(ownerMeta) : [],
|
|
179836
|
+
discoveryTarget: prPollingEnabled ? collectDiscoveryTarget(ownerMeta, runtimeBranch, discoveryFingerprints[ownerSessionId], resolveGitHubRepo) : null
|
|
179821
179837
|
});
|
|
179822
179838
|
}
|
|
179823
179839
|
return Array.from(entries.values());
|
|
@@ -180759,6 +180775,9 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
180759
180775
|
if (!freshMeta || freshMeta.isArchived || freshMeta.machineId !== runtime.handle.machineId) {
|
|
180760
180776
|
return failed;
|
|
180761
180777
|
}
|
|
180778
|
+
if (isDirectLocalProject(freshMeta.project, freshMeta.isWorktree)) {
|
|
180779
|
+
return failed;
|
|
180780
|
+
}
|
|
180762
180781
|
const freshContext = resolveOwnerRepositoryContext(freshMeta);
|
|
180763
180782
|
const contextUnchanged = args2.queriedBranch === null || freshContext.repoFullName === repoFullName && freshContext.branch === args2.queriedBranch;
|
|
180764
180783
|
const discovered = contextUnchanged ? args2.discovered : [];
|
|
@@ -213291,7 +213310,7 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
|
|
|
213291
213310
|
data = createReviewBundleSnapshot(bundle);
|
|
213292
213311
|
}
|
|
213293
213312
|
const { injectReviewSnapshot } = await import("./chunks/index-VoI6Ds2-.js");
|
|
213294
|
-
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-
|
|
213313
|
+
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-C1f8pVKg.js").then(async (m) => {
|
|
213295
213314
|
await m.__tla;
|
|
213296
213315
|
return m;
|
|
213297
213316
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lody",
|
|
3
|
-
"version": "0.77.
|
|
3
|
+
"version": "0.77.2",
|
|
4
4
|
"description": "Lody Agent CLI tool for managing remote command execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"dependencies": {
|
|
119
119
|
"@lydell/node-pty": "1.2.0-beta.14",
|
|
120
120
|
"better-sqlite3": "catalog:",
|
|
121
|
-
"loro-crdt": "1.14.
|
|
121
|
+
"loro-crdt": "1.14.1",
|
|
122
122
|
"shell-env": "^4.0.3",
|
|
123
123
|
"tinypool": "^1.0.0",
|
|
124
124
|
"typescript": "^5.9.3"
|