@opencode/browse 0.0.18-dev.193 → 0.0.18-dev.198
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.mjs +62 -117
- package/package.json +13 -33
- package/dist/Runtime-r9sev1rq.mjs +0 -16
- package/dist/THIRD_PARTY_NOTICES.txt +0 -310
- package/dist/Undici-xgvbtsb1.mjs +0 -25295
- package/dist/cli-ekwkvvmm.mjs +0 -5943
- package/dist/coreBundle-mbshhes2.mjs +0 -8
- package/dist/helpers-3ycvp75a.mjs +0 -71
- package/dist/index-xsb9s479.mjs +0 -13
- package/dist/legacy-runtime-v1sdjj5h.mjs +0 -135
- package/dist/log-yek648ak.mjs +0 -9
- package/dist/main-1qwrze1y.mjs +0 -140
- package/dist/main-2p0v71q0.mjs +0 -1752
- package/dist/main-3g7fdzbh.mjs +0 -5360
- package/dist/main-55a4gpef.mjs +0 -1261
- package/dist/main-693wwz19.mjs +0 -4
- package/dist/main-91vhk5de.mjs +0 -38
- package/dist/main-9t32k44b.mjs +0 -798
- package/dist/main-bv9nawja.mjs +0 -5191
- package/dist/main-cgnkhs2x.mjs +0 -35
- package/dist/main-esdgpebk.mjs +0 -161
- package/dist/main-fg5awggs.mjs +0 -5514
- package/dist/main-gexpjhk5.mjs +0 -32
- package/dist/main-gt2gskrq.mjs +0 -160
- package/dist/main-gw77et6v.mjs +0 -342
- package/dist/main-j98fzrvv.mjs +0 -68
- package/dist/main-kcw411ep.mjs +0 -891
- package/dist/main-nnfxg7re.mjs +0 -11403
- package/dist/main-pcqtqhgv.mjs +0 -64
- package/dist/main-pmfd055v.mjs +0 -63
- package/dist/main-pxs5m0kb.mjs +0 -329
- package/dist/main-qazf3bhk.mjs +0 -223
- package/dist/main-sf7vaxb6.mjs +0 -17
- package/dist/main-stf180y1.mjs +0 -229
- package/dist/main-tk4axre7.mjs +0 -39
- package/dist/main-zedq93ez.mjs +0 -215
- package/dist/main-zzggnpf4.mjs +0 -73
- package/dist/mcp-xfx04fxe.mjs +0 -9470
- package/dist/migrate-4rewxqd7.mjs +0 -354
- package/dist/relay-me036e19.mjs +0 -18765
- package/dist/remove-stored-secrets-ymhge5va.mjs +0 -6
- package/dist/runtime-update-hd2cvy1c.mjs +0 -246
- package/dist/setup-0hmbzam5.mjs +0 -1052
- package/dist/update-vnkjbc0e.mjs +0 -17
- package/dist/version-jn0h3rmc.mjs +0 -8
package/dist/main-693wwz19.mjs
DELETED
package/dist/main-91vhk5de.mjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isString
|
|
3
|
-
} from "./main-qazf3bhk.mjs";
|
|
4
|
-
// src/fs-durability.ts
|
|
5
|
-
import crypto from "node:crypto";
|
|
6
|
-
import fsSync from "node:fs";
|
|
7
|
-
import path from "node:path";
|
|
8
|
-
var unsupportedDirectorySyncCodes = new Set(["EPERM", "EINVAL", "ENOTSUP"]);
|
|
9
|
-
function isNodeError(error) {
|
|
10
|
-
return error instanceof Error && "code" in error;
|
|
11
|
-
}
|
|
12
|
-
function isUnsupportedDirectorySyncError(error) {
|
|
13
|
-
return isNodeError(error) && isString(error.code) && unsupportedDirectorySyncCodes.has(error.code);
|
|
14
|
-
}
|
|
15
|
-
function ensurePrivateDirectorySync(directory) {
|
|
16
|
-
fsSync.mkdirSync(directory, { recursive: true, mode: 448 });
|
|
17
|
-
if (process.platform !== "win32")
|
|
18
|
-
fsSync.chmodSync(directory, 448);
|
|
19
|
-
}
|
|
20
|
-
function writePrivateJsonFileSync(filePath, value, options = {}) {
|
|
21
|
-
if (options.ensureParent)
|
|
22
|
-
ensurePrivateDirectorySync(path.dirname(filePath));
|
|
23
|
-
const temporaryPath = `${filePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
|
|
24
|
-
let renamed = false;
|
|
25
|
-
try {
|
|
26
|
-
fsSync.writeFileSync(temporaryPath, `${JSON.stringify(value, null, 2)}
|
|
27
|
-
`, { mode: 384 });
|
|
28
|
-
fsSync.renameSync(temporaryPath, filePath);
|
|
29
|
-
renamed = true;
|
|
30
|
-
if (process.platform !== "win32")
|
|
31
|
-
fsSync.chmodSync(filePath, 384);
|
|
32
|
-
} finally {
|
|
33
|
-
if (!renamed)
|
|
34
|
-
fsSync.rmSync(temporaryPath, { force: true });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { isNodeError, isUnsupportedDirectorySyncError, ensurePrivateDirectorySync, writePrivateJsonFileSync };
|