@docyrus/docyrus 0.0.71 → 0.0.73
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/agent-loader.js +7 -4
- package/agent-loader.js.map +2 -2
- package/main.js +8 -17
- package/main.js.map +2 -2
- package/package.json +1 -1
- package/server-loader.js +144 -82
- package/server-loader.js.map +2 -2
package/main.js
CHANGED
|
@@ -139349,7 +139349,7 @@ function buildInputSchema(args2, env2, options2) {
|
|
|
139349
139349
|
// package.json
|
|
139350
139350
|
var package_default = {
|
|
139351
139351
|
name: "@docyrus/docyrus",
|
|
139352
|
-
version: "0.0.
|
|
139352
|
+
version: "0.0.73",
|
|
139353
139353
|
private: false,
|
|
139354
139354
|
description: "Docyrus API CLI",
|
|
139355
139355
|
main: "./main.js",
|
|
@@ -147746,6 +147746,7 @@ var import_promise2 = __toESM(require("libsql/promise"));
|
|
|
147746
147746
|
// src/agent/envStore.ts
|
|
147747
147747
|
var import_promises8 = require("node:fs/promises");
|
|
147748
147748
|
var import_node_path13 = require("node:path");
|
|
147749
|
+
var LEGACY_AZURE_OPENAI_DEFAULT_API_VERSION = "2025-04-01-preview";
|
|
147749
147750
|
function createDefaultState() {
|
|
147750
147751
|
return {
|
|
147751
147752
|
version: 1,
|
|
@@ -147760,6 +147761,9 @@ function normalizeState(state) {
|
|
|
147760
147761
|
if (!normalizedKey || !normalizedValue) {
|
|
147761
147762
|
continue;
|
|
147762
147763
|
}
|
|
147764
|
+
if (normalizedKey === "AZURE_OPENAI_API_VERSION" && normalizedValue === LEGACY_AZURE_OPENAI_DEFAULT_API_VERSION) {
|
|
147765
|
+
continue;
|
|
147766
|
+
}
|
|
147763
147767
|
values[normalizedKey] = normalizedValue;
|
|
147764
147768
|
}
|
|
147765
147769
|
return {
|
|
@@ -154287,24 +154291,11 @@ function resolveInstalledPiPackageRootPath(options2 = {}) {
|
|
|
154287
154291
|
candidates.push(candidate);
|
|
154288
154292
|
}
|
|
154289
154293
|
};
|
|
154290
|
-
const collectAncestorCandidates = (startDir) => {
|
|
154291
|
-
let currentDir = (0, import_node_path30.resolve)(startDir);
|
|
154292
|
-
while (true) {
|
|
154293
|
-
addCandidate((0, import_node_path30.join)(currentDir, "node_modules", "@mariozechner", "pi-coding-agent", "package.json"));
|
|
154294
|
-
if ((0, import_node_path30.basename)(currentDir) === "node_modules") {
|
|
154295
|
-
addCandidate((0, import_node_path30.join)(currentDir, "@mariozechner", "pi-coding-agent", "package.json"));
|
|
154296
|
-
}
|
|
154297
|
-
const parentDir = (0, import_node_path30.resolve)(currentDir, "..");
|
|
154298
|
-
if (parentDir === currentDir) {
|
|
154299
|
-
break;
|
|
154300
|
-
}
|
|
154301
|
-
currentDir = parentDir;
|
|
154302
|
-
}
|
|
154303
|
-
};
|
|
154304
154294
|
addCandidate((0, import_node_path30.resolve)(cwd, "apps/api-cli/node_modules/@mariozechner/pi-coding-agent/package.json"));
|
|
154295
|
+
addCandidate((0, import_node_path30.resolve)(cwd, "node_modules/@mariozechner/pi-coding-agent/package.json"));
|
|
154305
154296
|
addCandidate((0, import_node_path30.resolve)(dirname14, "../../../apps/api-cli/node_modules/@mariozechner/pi-coding-agent/package.json"));
|
|
154306
|
-
|
|
154307
|
-
|
|
154297
|
+
addCandidate((0, import_node_path30.resolve)(dirname14, "../node_modules/@mariozechner/pi-coding-agent/package.json"));
|
|
154298
|
+
addCandidate((0, import_node_path30.resolve)(dirname14, "../../node_modules/@mariozechner/pi-coding-agent/package.json"));
|
|
154308
154299
|
const resolvedPackageJson = candidates.find((candidate) => fileExists(candidate));
|
|
154309
154300
|
if (!resolvedPackageJson) {
|
|
154310
154301
|
throw new UserInputError(`Unable to locate the installed pi package root. Checked: ${candidates.join(", ")}`);
|