@buda-ai/connector 0.1.21 → 0.1.22
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/cli.js +8 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -517,7 +517,7 @@ import path2 from "path";
|
|
|
517
517
|
// package.json
|
|
518
518
|
var package_default = {
|
|
519
519
|
name: "@buda-ai/connector",
|
|
520
|
-
version: "0.1.
|
|
520
|
+
version: "0.1.22",
|
|
521
521
|
private: false,
|
|
522
522
|
type: "module",
|
|
523
523
|
publishConfig: {
|
|
@@ -4400,6 +4400,11 @@ import {
|
|
|
4400
4400
|
writeFile as writeFile4
|
|
4401
4401
|
} from "fs/promises";
|
|
4402
4402
|
import path11 from "path";
|
|
4403
|
+
|
|
4404
|
+
// src/directory-link.ts
|
|
4405
|
+
var directoryLinkType = (platform4 = process.platform) => platform4 === "win32" ? "junction" : "dir";
|
|
4406
|
+
|
|
4407
|
+
// src/workspace-volume-lifecycle.ts
|
|
4403
4408
|
var MOUNT_DIRECTORY = "mount";
|
|
4404
4409
|
var ARCHIVE_MARKER = "archived.json";
|
|
4405
4410
|
var AGENT_CONTEXT_TEMPLATE_FILES = [
|
|
@@ -4551,7 +4556,7 @@ var ensureVolumeLink = async (target, linkPath) => {
|
|
|
4551
4556
|
} catch (error) {
|
|
4552
4557
|
if (!isMissingFile(error)) throw error;
|
|
4553
4558
|
try {
|
|
4554
|
-
await symlink2(target, linkPath,
|
|
4559
|
+
await symlink2(target, linkPath, directoryLinkType());
|
|
4555
4560
|
} catch (createError) {
|
|
4556
4561
|
if (!isAlreadyExists3(createError)) throw createError;
|
|
4557
4562
|
const info = await lstat2(linkPath);
|
|
@@ -5191,7 +5196,7 @@ async function ensureSymlink(target, linkPath) {
|
|
|
5191
5196
|
} catch {
|
|
5192
5197
|
}
|
|
5193
5198
|
await mkdir10(path13.dirname(linkPath), { recursive: true });
|
|
5194
|
-
await symlink3(target, linkPath,
|
|
5199
|
+
await symlink3(target, linkPath, directoryLinkType());
|
|
5195
5200
|
}
|
|
5196
5201
|
|
|
5197
5202
|
// src/workspace-registry.ts
|