@docyrus/docyrus 0.0.77 → 0.0.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/docyrus",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "private": false,
5
5
  "description": "Docyrus API CLI",
6
6
  "main": "./main.js",
package/server-loader.js CHANGED
@@ -44931,9 +44931,6 @@ async function waitForIdle(session, timeoutMs = 3e4) {
44931
44931
  }
44932
44932
  });
44933
44933
  }
44934
- function resolveServerSettingsRootPath(agentDir) {
44935
- return (0, import_node_path22.resolve)(agentDir, "..", "..");
44936
- }
44937
44934
  var SESSION_MODE_COMMANDS = {
44938
44935
  "read-only": "read-only",
44939
44936
  "end-read-only": "normal"
@@ -45362,7 +45359,7 @@ async function createAgentServer(params) {
45362
45359
  const pendingAskUserRequests = /* @__PURE__ */ new Map();
45363
45360
  const oauthFlowManager = new OAuthFlowManager();
45364
45361
  const app = new Hono2();
45365
- const settingsRootPath = resolveServerSettingsRootPath(context.agentDir);
45362
+ const settingsRootPath = context.settingsRootPath;
45366
45363
  function getModelIdsByProvider() {
45367
45364
  const values = {};
45368
45365
  for (const model of modelRegistry.getAll()) {
@@ -48162,6 +48159,7 @@ async function main() {
48162
48159
  const pi = await loadPiExports();
48163
48160
  const cwd = process.cwd();
48164
48161
  const agentDir = readRequiredEnv("PI_CODING_AGENT_DIR");
48162
+ const settingsRootPath = readRequiredEnv("DOCYRUS_SETTINGS_ROOT");
48165
48163
  const version2 = process.env.DOCYRUS_PI_VERSION || "dev";
48166
48164
  const resourceRoot = resolvePackagedPiResourceRoot();
48167
48165
  const packagedExtensionPaths = resolvePackagedExtensionPaths(resourceRoot, "server");
@@ -48269,6 +48267,7 @@ async function main() {
48269
48267
  cwd,
48270
48268
  profile: request.profile,
48271
48269
  agentDir,
48270
+ settingsRootPath,
48272
48271
  version: version2,
48273
48272
  sessionDir: request.sessionDir ?? null,
48274
48273
  thinkingLevel: request.thinking ?? null,