negotium 0.3.4 → 0.3.6

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.
@@ -1017,7 +1017,7 @@ var init_claude_registry = __esm(() => {
1017
1017
  });
1018
1018
 
1019
1019
  // ../../packages/core/src/version.ts
1020
- var NEGOTIUM_VERSION = "0.3.4";
1020
+ var NEGOTIUM_VERSION = "0.3.6";
1021
1021
 
1022
1022
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
1023
1023
  import { spawn as spawn2 } from "child_process";
@@ -15737,30 +15737,21 @@ import { dirname as dirname16, join as join29 } from "path";
15737
15737
  function settingsFile() {
15738
15738
  return join29(resolveStorageDataDir(), "otium-settings.json");
15739
15739
  }
15740
- function ensureSettingsLoaded() {
15740
+ function getGlobalAiName() {
15741
15741
  const path = settingsFile();
15742
- if (loadedSettingsFile === path)
15743
- return path;
15744
- loadedSettingsFile = path;
15745
- aiName = DEFAULT_AI_NAME;
15746
15742
  try {
15747
15743
  if (existsSync20(path)) {
15748
15744
  const data = JSON.parse(readFileSync20(path, "utf8"));
15749
15745
  if (typeof data.aiName === "string" && data.aiName.trim()) {
15750
- aiName = data.aiName.trim();
15746
+ return data.aiName.trim();
15751
15747
  }
15752
15748
  }
15753
15749
  } catch {}
15754
- return path;
15755
- }
15756
- function getGlobalAiName() {
15757
- ensureSettingsLoaded();
15758
- return aiName || DEFAULT_AI_NAME;
15750
+ return DEFAULT_AI_NAME;
15759
15751
  }
15760
- var DEFAULT_AI_NAME = "Otium", aiName, loadedSettingsFile = null;
15752
+ var DEFAULT_AI_NAME = "Otium";
15761
15753
  var init_app_settings = __esm(async () => {
15762
15754
  await init_storage_host();
15763
- aiName = DEFAULT_AI_NAME;
15764
15755
  });
15765
15756
 
15766
15757
  // ../../packages/core/src/runtime/turn-runner.ts
@@ -21538,4 +21529,4 @@ export {
21538
21529
  createAgentHealthMcpServer
21539
21530
  };
21540
21531
 
21541
- //# debugId=42E261F490A5308F64756E2164756E21
21532
+ //# debugId=E24528E1658A42ED64756E2164756E21