agentv 4.25.4-next.1 → 4.25.5-next.1
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/{chunk-WNT323IP.js → chunk-WQTBGQ3M.js} +10 -6
- package/dist/chunk-WQTBGQ3M.js.map +1 -0
- package/dist/{chunk-J4PUJUDE.js → chunk-XUJ3ATR2.js} +13 -9
- package/dist/{chunk-J4PUJUDE.js.map → chunk-XUJ3ATR2.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{interactive-7VWCCTHF.js → interactive-FMDTIIH7.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-WNT323IP.js.map +0 -1
- /package/dist/{interactive-7VWCCTHF.js.map → interactive-FMDTIIH7.js.map} +0 -0
|
@@ -176,7 +176,7 @@ async function findRepoRoot(start) {
|
|
|
176
176
|
// package.json
|
|
177
177
|
var package_default = {
|
|
178
178
|
name: "agentv",
|
|
179
|
-
version: "4.25.
|
|
179
|
+
version: "4.25.5-next.1",
|
|
180
180
|
description: "CLI entry point for AgentV",
|
|
181
181
|
type: "module",
|
|
182
182
|
repository: {
|
|
@@ -297,7 +297,10 @@ import { spawn } from "node:child_process";
|
|
|
297
297
|
import { existsSync } from "node:fs";
|
|
298
298
|
import { get } from "node:https";
|
|
299
299
|
import { basename, dirname, join, win32 } from "node:path";
|
|
300
|
-
var
|
|
300
|
+
var NPM_REGISTRY_BASE = "https://registry.npmjs.org/agentv/";
|
|
301
|
+
function getDistTagForVersion(version) {
|
|
302
|
+
return version.includes("-") ? "next" : "latest";
|
|
303
|
+
}
|
|
301
304
|
function detectPackageManagerFromPath(scriptPath) {
|
|
302
305
|
if (scriptPath.includes(".bun")) {
|
|
303
306
|
return "bun";
|
|
@@ -341,9 +344,9 @@ function runCommand(cmd, args) {
|
|
|
341
344
|
child.on("close", (code) => resolve({ exitCode: code ?? 1, stdout }));
|
|
342
345
|
});
|
|
343
346
|
}
|
|
344
|
-
function fetchLatestVersion() {
|
|
347
|
+
function fetchLatestVersion(distTag = "latest") {
|
|
345
348
|
return new Promise((resolve) => {
|
|
346
|
-
const req = get(
|
|
349
|
+
const req = get(`${NPM_REGISTRY_BASE}${distTag}`, { timeout: 5e3 }, (res) => {
|
|
347
350
|
if (res.statusCode !== 200) {
|
|
348
351
|
res.resume();
|
|
349
352
|
resolve(null);
|
|
@@ -404,7 +407,7 @@ function resolvePackageManagerCommand(pm, args, options) {
|
|
|
404
407
|
async function performSelfUpdate(options) {
|
|
405
408
|
const pm = options?.pm ?? detectPackageManager();
|
|
406
409
|
const currentVersion = options?.currentVersion ?? "unknown";
|
|
407
|
-
const versionSpec = options?.versionRange ?? "
|
|
410
|
+
const versionSpec = options?.versionRange ?? getDistTagForVersion(currentVersion === "unknown" ? "" : currentVersion);
|
|
408
411
|
const scope = options?.scope ?? detectInstallScope();
|
|
409
412
|
const args = getInstallArgs(pm, versionSpec, scope);
|
|
410
413
|
const command = resolvePackageManagerCommand(pm, args);
|
|
@@ -6002,6 +6005,7 @@ export {
|
|
|
6002
6005
|
loadManifestResults,
|
|
6003
6006
|
loadLightweightResults,
|
|
6004
6007
|
HtmlWriter,
|
|
6008
|
+
getDistTagForVersion,
|
|
6005
6009
|
detectPackageManager,
|
|
6006
6010
|
detectInstallScope,
|
|
6007
6011
|
fetchLatestVersion,
|
|
@@ -6042,4 +6046,4 @@ export {
|
|
|
6042
6046
|
getCategories,
|
|
6043
6047
|
filterByCategory
|
|
6044
6048
|
};
|
|
6045
|
-
//# sourceMappingURL=chunk-
|
|
6049
|
+
//# sourceMappingURL=chunk-WQTBGQ3M.js.map
|