@moxxy/cli 0.48.3 → 0.48.4
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.js +31 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -94678,7 +94678,12 @@ function codexWindowsPrograms(arch) {
|
|
|
94678
94678
|
fromRealPackage: true,
|
|
94679
94679
|
env: (packageRoot) => ({ CODEX_MANAGED_BY_PNPM: "1", CODEX_MANAGED_PACKAGE_ROOT: packageRoot })
|
|
94680
94680
|
};
|
|
94681
|
-
|
|
94681
|
+
const searched = {
|
|
94682
|
+
path: `@openai/${build2.pkg}/${program}`,
|
|
94683
|
+
fromNodeSearch: true,
|
|
94684
|
+
env: (packageRoot) => ({ CODEX_MANAGED_BY_NPM: "1", CODEX_MANAGED_PACKAGE_ROOT: packageRoot })
|
|
94685
|
+
};
|
|
94686
|
+
return [...shimRelative, pnpm, searched];
|
|
94682
94687
|
}
|
|
94683
94688
|
function searchOptions(desc, opts) {
|
|
94684
94689
|
const platform2 = opts.platform ?? process.platform;
|
|
@@ -94862,6 +94867,15 @@ function windowsShimRoot(desc, found, read) {
|
|
|
94862
94867
|
}
|
|
94863
94868
|
return path3__default.win32.dirname(found);
|
|
94864
94869
|
}
|
|
94870
|
+
function nodeSearchFolders(from) {
|
|
94871
|
+
const folders = [];
|
|
94872
|
+
for (let dir = from; ; dir = path3__default.win32.dirname(dir)) {
|
|
94873
|
+
if (path3__default.win32.basename(dir).toLowerCase() !== "node_modules")
|
|
94874
|
+
folders.push(path3__default.win32.join(dir, "node_modules"));
|
|
94875
|
+
if (path3__default.win32.dirname(dir) === dir)
|
|
94876
|
+
return folders;
|
|
94877
|
+
}
|
|
94878
|
+
}
|
|
94865
94879
|
function agentCliTargetAt(desc, found, opts = {}) {
|
|
94866
94880
|
const platform2 = opts.platform ?? process.platform;
|
|
94867
94881
|
if (platform2 !== "win32")
|
|
@@ -94882,6 +94896,15 @@ function agentCliTargetAt(desc, found, opts = {}) {
|
|
|
94882
94896
|
}
|
|
94883
94897
|
};
|
|
94884
94898
|
for (const program of desc.windowsShim.native?.(opts.arch ?? process.arch) ?? []) {
|
|
94899
|
+
if (program.fromNodeSearch) {
|
|
94900
|
+
const packageRoot = realPackage() ?? at(`node_modules/${desc.npmPackage}`);
|
|
94901
|
+
for (const modules of nodeSearchFolders(packageRoot)) {
|
|
94902
|
+
const command2 = path3__default.win32.join(modules, ...program.path.split("/"));
|
|
94903
|
+
if (exists3(command2))
|
|
94904
|
+
return program.env ? { kind: "direct", command: command2, env: program.env(packageRoot) } : { kind: "direct", command: command2 };
|
|
94905
|
+
}
|
|
94906
|
+
continue;
|
|
94907
|
+
}
|
|
94885
94908
|
const root = program.fromRealPackage ? realPackage() : dir;
|
|
94886
94909
|
if (!root)
|
|
94887
94910
|
continue;
|
|
@@ -95421,6 +95444,12 @@ var init_stop_agent = __esm({
|
|
|
95421
95444
|
}
|
|
95422
95445
|
});
|
|
95423
95446
|
|
|
95447
|
+
// ../agent-connection-kit/dist/agent-env.js
|
|
95448
|
+
var init_agent_env = __esm({
|
|
95449
|
+
"../agent-connection-kit/dist/agent-env.js"() {
|
|
95450
|
+
}
|
|
95451
|
+
});
|
|
95452
|
+
|
|
95424
95453
|
// ../agent-connection-kit/dist/index.js
|
|
95425
95454
|
var init_dist34 = __esm({
|
|
95426
95455
|
"../agent-connection-kit/dist/index.js"() {
|
|
@@ -95437,6 +95466,7 @@ var init_dist34 = __esm({
|
|
|
95437
95466
|
init_one_off_prompt();
|
|
95438
95467
|
init_resume();
|
|
95439
95468
|
init_stop_agent();
|
|
95469
|
+
init_agent_env();
|
|
95440
95470
|
}
|
|
95441
95471
|
});
|
|
95442
95472
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/cli",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.4",
|
|
4
4
|
"description": "moxxy command-line agent: TUI, one-shot prompts, setup, services, and API-key or installed-CLI subscription providers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moxxy",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"undici": "^8.12.2",
|
|
51
51
|
"zod": "^4.6.7",
|
|
52
|
-
"@moxxy/sdk": "0.48.
|
|
52
|
+
"@moxxy/sdk": "0.48.4"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
55
|
"@napi-rs/keyring": "^2.1.2"
|