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",
|
"id": "workspace-groups-remote",
|
||||||
"package": "workspace-groups-remote",
|
"package": "workspace-groups-remote",
|
||||||
"version": "1.2.1",
|
"version": "1.2.0",
|
||||||
"sourceRepo": "DeepsSeekHarness/workspace-groups-remote",
|
"sourceRepo": "DeepsSeekHarness/workspace-groups-remote",
|
||||||
"sourceCommit": "60cbf403b0d9e1c49cc39c4c43df0ab61fb78b4a",
|
"sourceCommit": "99a8c811a4061443c5aed29a2ee0dae634a331c3",
|
||||||
"vendorPath": "vendor/workspace-groups-remote"
|
"vendorPath": "vendor/workspace-groups-remote"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "qq-dsh",
|
"name": "qq-dsh",
|
||||||
"version": "1.5.1",
|
"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.",
|
"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",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -3454,32 +3454,24 @@ async function buildFarm(input) {
|
||||||
if (targets.length < 2) throw new Error("farm: needs at least two distinct folders");
|
if (targets.length < 2) throw new Error("farm: needs at least two distinct folders");
|
||||||
const root = defaultFarmRoot();
|
const root = defaultFarmRoot();
|
||||||
const path = join(root, farmDirectoryName(String(input.name)));
|
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 });
|
await mkdir(root, { recursive: true });
|
||||||
try {
|
try {
|
||||||
await mkdir(path);
|
await mkdir(path);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.code !== "EEXIST") throw new Error(`farm: cannot create ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
if (error.code === "EEXIST") throw new Error(`farm: already exists, remove it first: ${path}`);
|
||||||
const existing = (await readdir(path)).sort();
|
throw new Error(`farm: cannot create ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
||||||
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
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
const taken = /* @__PURE__ */ new Set();
|
||||||
|
const links = [];
|
||||||
try {
|
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) {
|
} catch (error) {
|
||||||
await discard(path);
|
await discard(path);
|
||||||
throw new Error(`farm: cannot link into ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
throw new Error(`farm: cannot link into ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "workspace-groups-remote",
|
"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.",
|
"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": [
|
"keywords": [
|
||||||
"dsh",
|
"dsh",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue