@boxes-dev/dvb-runtime 1.0.758 → 1.0.760
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/bin/dvb.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d56e95fd-1694-5c38-8008-dc3d61a22756")}catch(e){}}();
|
|
4
4
|
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -74562,8 +74562,8 @@ var init_otel = __esm({
|
|
|
74562
74562
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
74563
74563
|
};
|
|
74564
74564
|
readBuildMetadata = () => {
|
|
74565
|
-
const rawPackageVersion = "1.0.
|
|
74566
|
-
const rawGitSha = "
|
|
74565
|
+
const rawPackageVersion = "1.0.760";
|
|
74566
|
+
const rawGitSha = "fe70cf948ea1dca311c1addf8019c97506b68e78";
|
|
74567
74567
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
74568
74568
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
74569
74569
|
return { packageVersion, gitSha };
|
|
@@ -112522,9 +112522,9 @@ var init_sentry = __esm({
|
|
|
112522
112522
|
uncaughtExceptionMonitorInstalled = false;
|
|
112523
112523
|
currentDevboxSentryUser = null;
|
|
112524
112524
|
readBuildMetadata2 = () => {
|
|
112525
|
-
const rawPackageVersion = "1.0.
|
|
112526
|
-
const rawGitSha = "
|
|
112527
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
112525
|
+
const rawPackageVersion = "1.0.760";
|
|
112526
|
+
const rawGitSha = "fe70cf948ea1dca311c1addf8019c97506b68e78";
|
|
112527
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.760+fe70cf948ea1dca311c1addf8019c97506b68e78";
|
|
112528
112528
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
112529
112529
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
112530
112530
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -118638,7 +118638,7 @@ var init_packageVersion = __esm({
|
|
|
118638
118638
|
return import_node_path16.default.join(process.cwd(), "dvb");
|
|
118639
118639
|
};
|
|
118640
118640
|
readEmbeddedPackageVersion = () => {
|
|
118641
|
-
const raw = "1.0.
|
|
118641
|
+
const raw = "1.0.760";
|
|
118642
118642
|
return trimVersion(raw);
|
|
118643
118643
|
};
|
|
118644
118644
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -186424,7 +186424,7 @@ var init_setupTooling = __esm({
|
|
|
186424
186424
|
});
|
|
186425
186425
|
|
|
186426
186426
|
// src/devbox/managedCodex.ts
|
|
186427
|
-
var import_promises30, import_node_os15, import_node_path37,
|
|
186427
|
+
var import_promises30, import_node_os15, import_node_path37, MANAGED_CODEX_VERSION, MANAGED_CODEX_INSTALL_MANIFEST_DIR, MANAGED_CODEX_INSTALL_MANIFEST_FILES, managedCodexEnsureCache, resolveManagedCodexRootDir, resolveManagedCodexVersionsDir, resolveManagedCodexVersionDir, resolveManagedCodexLauncherPath, resolveManagedCodexManifestPath, sanitizeVersionForPath, hasManagedCodexInstallManifest, resolveManagedCodexInstallManifestDir, stageManagedCodexInstallManifest, ensureManagedCodexVersionsDir, readManagedCodexVersion, probeManagedCodexInstall, installManagedCodex, promoteManagedCodexStage, ensureManagedCodexCli;
|
|
186428
186428
|
var init_managedCodex = __esm({
|
|
186429
186429
|
"src/devbox/managedCodex.ts"() {
|
|
186430
186430
|
"use strict";
|
|
@@ -186433,8 +186433,12 @@ var init_managedCodex = __esm({
|
|
|
186433
186433
|
import_node_path37 = __toESM(require("node:path"), 1);
|
|
186434
186434
|
init_devboxCore();
|
|
186435
186435
|
init_setupTooling();
|
|
186436
|
-
MANAGED_CODEX_PACKAGE_NAME = "@openai/codex";
|
|
186437
186436
|
MANAGED_CODEX_VERSION = "0.138.0";
|
|
186437
|
+
MANAGED_CODEX_INSTALL_MANIFEST_DIR = "managed-codex-install";
|
|
186438
|
+
MANAGED_CODEX_INSTALL_MANIFEST_FILES = [
|
|
186439
|
+
"package.json",
|
|
186440
|
+
"package-lock.json"
|
|
186441
|
+
];
|
|
186438
186442
|
managedCodexEnsureCache = /* @__PURE__ */ new Map();
|
|
186439
186443
|
resolveManagedCodexRootDir = (homeDir2 = import_node_os15.default.homedir(), accountScope) => accountScope ? resolveDevboxAccountCodexDir({ accountScope, homeDir: homeDir2 }) : import_node_path37.default.join(resolveDevboxDir(homeDir2), "codex");
|
|
186440
186444
|
resolveManagedCodexVersionsDir = (homeDir2 = import_node_os15.default.homedir(), accountScope) => import_node_path37.default.join(resolveManagedCodexRootDir(homeDir2, accountScope), "versions");
|
|
@@ -186447,6 +186451,69 @@ var init_managedCodex = __esm({
|
|
|
186447
186451
|
);
|
|
186448
186452
|
resolveManagedCodexManifestPath = (installDir) => import_node_path37.default.join(installDir, "node_modules", "@openai", "codex", "package.json");
|
|
186449
186453
|
sanitizeVersionForPath = (value) => value.replace(/[^a-zA-Z0-9._-]+/g, "-");
|
|
186454
|
+
hasManagedCodexInstallManifest = async (candidateDir) => {
|
|
186455
|
+
try {
|
|
186456
|
+
await Promise.all(
|
|
186457
|
+
MANAGED_CODEX_INSTALL_MANIFEST_FILES.map(
|
|
186458
|
+
(fileName) => import_promises30.default.access(import_node_path37.default.join(candidateDir, fileName))
|
|
186459
|
+
)
|
|
186460
|
+
);
|
|
186461
|
+
return true;
|
|
186462
|
+
} catch {
|
|
186463
|
+
return false;
|
|
186464
|
+
}
|
|
186465
|
+
};
|
|
186466
|
+
resolveManagedCodexInstallManifestDir = async () => {
|
|
186467
|
+
const candidates = [
|
|
186468
|
+
...typeof __dirname === "string" ? [import_node_path37.default.resolve(__dirname, "..", MANAGED_CODEX_INSTALL_MANIFEST_DIR)] : [],
|
|
186469
|
+
import_node_path37.default.resolve(
|
|
186470
|
+
process.cwd(),
|
|
186471
|
+
"shared",
|
|
186472
|
+
"devboxCore",
|
|
186473
|
+
"assets",
|
|
186474
|
+
MANAGED_CODEX_INSTALL_MANIFEST_DIR
|
|
186475
|
+
),
|
|
186476
|
+
import_node_path37.default.resolve(
|
|
186477
|
+
process.cwd(),
|
|
186478
|
+
"..",
|
|
186479
|
+
"..",
|
|
186480
|
+
"shared",
|
|
186481
|
+
"devboxCore",
|
|
186482
|
+
"assets",
|
|
186483
|
+
MANAGED_CODEX_INSTALL_MANIFEST_DIR
|
|
186484
|
+
),
|
|
186485
|
+
import_node_path37.default.resolve(
|
|
186486
|
+
process.cwd(),
|
|
186487
|
+
"..",
|
|
186488
|
+
"..",
|
|
186489
|
+
"..",
|
|
186490
|
+
"..",
|
|
186491
|
+
"shared",
|
|
186492
|
+
"devboxCore",
|
|
186493
|
+
"assets",
|
|
186494
|
+
MANAGED_CODEX_INSTALL_MANIFEST_DIR
|
|
186495
|
+
)
|
|
186496
|
+
];
|
|
186497
|
+
for (const candidate of candidates) {
|
|
186498
|
+
if (await hasManagedCodexInstallManifest(candidate)) {
|
|
186499
|
+
return candidate;
|
|
186500
|
+
}
|
|
186501
|
+
}
|
|
186502
|
+
throw new Error(
|
|
186503
|
+
`Managed Codex install manifest is missing. Expected package.json and package-lock.json in ${candidates.join(" or ")}.`
|
|
186504
|
+
);
|
|
186505
|
+
};
|
|
186506
|
+
stageManagedCodexInstallManifest = async (installDir) => {
|
|
186507
|
+
const manifestDir = await resolveManagedCodexInstallManifestDir();
|
|
186508
|
+
await Promise.all(
|
|
186509
|
+
MANAGED_CODEX_INSTALL_MANIFEST_FILES.map(
|
|
186510
|
+
(fileName) => import_promises30.default.copyFile(
|
|
186511
|
+
import_node_path37.default.join(manifestDir, fileName),
|
|
186512
|
+
import_node_path37.default.join(installDir, fileName)
|
|
186513
|
+
)
|
|
186514
|
+
)
|
|
186515
|
+
);
|
|
186516
|
+
};
|
|
186450
186517
|
ensureManagedCodexVersionsDir = async (homeDir2 = import_node_os15.default.homedir(), accountScope) => {
|
|
186451
186518
|
const versionsDir = resolveManagedCodexVersionsDir(homeDir2, accountScope);
|
|
186452
186519
|
await import_promises30.default.mkdir(versionsDir, { recursive: true, mode: 448 });
|
|
@@ -186508,29 +186575,22 @@ var init_managedCodex = __esm({
|
|
|
186508
186575
|
env: env2,
|
|
186509
186576
|
nodeExecutable: process.execPath
|
|
186510
186577
|
});
|
|
186511
|
-
|
|
186512
|
-
...env2,
|
|
186513
|
-
NPM_CONFIG_MIN_RELEASE_AGE: "0",
|
|
186514
|
-
npm_config_min_release_age: "0"
|
|
186515
|
-
};
|
|
186516
|
-
delete installEnv.NPM_CONFIG_BEFORE;
|
|
186517
|
-
delete installEnv.npm_config_before;
|
|
186578
|
+
await stageManagedCodexInstallManifest(installDir);
|
|
186518
186579
|
await runCommandInheritedFn?.(
|
|
186519
186580
|
npmInvocation.command,
|
|
186520
186581
|
[
|
|
186521
186582
|
...npmInvocation.argsPrefix,
|
|
186522
|
-
"
|
|
186583
|
+
"ci",
|
|
186523
186584
|
"--prefix",
|
|
186524
186585
|
installDir,
|
|
186525
|
-
`${MANAGED_CODEX_PACKAGE_NAME}@${MANAGED_CODEX_VERSION}`,
|
|
186526
186586
|
"--include=optional",
|
|
186587
|
+
"--ignore-scripts",
|
|
186527
186588
|
"--loglevel=error",
|
|
186528
186589
|
"--progress=false",
|
|
186529
186590
|
"--no-audit",
|
|
186530
|
-
"--no-fund"
|
|
186531
|
-
"--package-lock=false"
|
|
186591
|
+
"--no-fund"
|
|
186532
186592
|
],
|
|
186533
|
-
{ env:
|
|
186593
|
+
{ env: env2 }
|
|
186534
186594
|
);
|
|
186535
186595
|
};
|
|
186536
186596
|
promoteManagedCodexStage = async ({
|
|
@@ -209741,4 +209801,4 @@ smol-toml/dist/index.js:
|
|
|
209741
209801
|
*/
|
|
209742
209802
|
//# sourceMappingURL=dvb.cjs.map
|
|
209743
209803
|
|
|
209744
|
-
//# debugId=
|
|
209804
|
+
//# debugId=d56e95fd-1694-5c38-8008-dc3d61a22756
|