Compare commits
No commits in common. "main" and "release/1.5.0" have entirely different histories.
main
...
release/1.
|
|
@ -18,9 +18,9 @@
|
|||
{
|
||||
"id": "workspace-groups-remote",
|
||||
"package": "workspace-groups-remote",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.0",
|
||||
"sourceRepo": "DeepsSeekHarness/workspace-groups-remote",
|
||||
"sourceCommit": "60cbf403b0d9e1c49cc39c4c43df0ab61fb78b4a",
|
||||
"sourceCommit": "99a8c811a4061443c5aed29a2ee0dae634a331c3",
|
||||
"vendorPath": "vendor/workspace-groups-remote"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "qq-dsh",
|
||||
"version": "1.5.1",
|
||||
"description": "QQ-dsh 闁?personal DSH plugin bundle: sansheng-liubu workbench + dsh-brain (LongMemory bridge, skill sync) + workspace-groups-remote (grouped workspaces + remote SSH) + dsh-better-chat (approval Enter/Esc), in one install.",
|
||||
"version": "1.5.0",
|
||||
"description": "QQ-dsh 閳?personal DSH plugin bundle: sansheng-liubu workbench + dsh-brain (LongMemory bridge, skill sync) + workspace-groups-remote (grouped workspaces + remote SSH) + dsh-better-chat (approval Enter/Esc), in one install.",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
|
|
|
|||
|
|
@ -3454,32 +3454,24 @@ async function buildFarm(input) {
|
|||
if (targets.length < 2) throw new Error("farm: needs at least two distinct folders");
|
||||
const root = defaultFarmRoot();
|
||||
const path = join(root, farmDirectoryName(String(input.name)));
|
||||
const taken = /* @__PURE__ */ new Set();
|
||||
const links = targets.map((target) => ({
|
||||
name: linkNameFor(target, taken),
|
||||
target
|
||||
}));
|
||||
await mkdir(root, { recursive: true });
|
||||
try {
|
||||
await mkdir(path);
|
||||
} catch (error) {
|
||||
if (error.code !== "EEXIST") throw new Error(`farm: cannot create ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
||||
const existing = (await readdir(path)).sort();
|
||||
const expected = links.map((link) => link.name).sort();
|
||||
if (existing.length !== expected.length || existing.some((name, index) => name !== expected[index])) throw new Error(`farm: already exists with different folders: ${path}`);
|
||||
for (const link of links) {
|
||||
const entryPath = join(path, link.name);
|
||||
if (!(await lstat(entryPath)).isSymbolicLink()) throw new Error(`farm: already exists, entry is not a link: ${entryPath}`);
|
||||
const actual = await realpath(entryPath);
|
||||
if (!(WINDOWS ? actual.toLowerCase() === link.target.toLowerCase() : actual === link.target)) throw new Error(`farm: already exists, link points elsewhere: ${entryPath}`);
|
||||
}
|
||||
return {
|
||||
path,
|
||||
links
|
||||
};
|
||||
if (error.code === "EEXIST") throw new Error(`farm: already exists, remove it first: ${path}`);
|
||||
throw new Error(`farm: cannot create ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
||||
}
|
||||
const taken = /* @__PURE__ */ new Set();
|
||||
const links = [];
|
||||
try {
|
||||
for (const link of links) await symlink(link.target, join(path, link.name), WINDOWS ? "junction" : "dir");
|
||||
for (const target of targets) {
|
||||
const name = linkNameFor(target, taken);
|
||||
await symlink(target, join(path, name), WINDOWS ? "junction" : "dir");
|
||||
links.push({
|
||||
name,
|
||||
target
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
await discard(path);
|
||||
throw new Error(`farm: cannot link into ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "workspace-groups-remote",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.0",
|
||||
"description": "Merged DSH bundle: the workspace-groups sidebar manager (category -> project -> session grouped tree, session tab strip) plus dsh-remote-ssh (VSCode Remote-SSH-like remote development: remote workspaces, file access, integrated terminal) in one installable package.",
|
||||
"keywords": [
|
||||
"dsh",
|
||||
|
|
|
|||
Loading…
Reference in New Issue