negotium 0.2.6 → 0.2.7

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.
@@ -940,7 +940,7 @@ var init_claude_registry = __esm(() => {
940
940
  });
941
941
 
942
942
  // ../../packages/core/src/version.ts
943
- var NEGOTIUM_VERSION = "0.2.6";
943
+ var NEGOTIUM_VERSION = "0.2.7";
944
944
 
945
945
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
946
946
  import { spawn as spawn2 } from "child_process";
@@ -16633,16 +16633,16 @@ function checkAgentAuth(agent, host = defaultAgentAuthHost, userId) {
16633
16633
  case "claude": {
16634
16634
  if (host.environment.ANTHROPIC_API_KEY)
16635
16635
  return { ok: true };
16636
+ const path = join30(host.homeDirectory(), ".claude", ".credentials.json");
16636
16637
  if (host.operatingSystem() === "darwin") {
16637
- if (host.hasMacOsCredential("Claude Code-credentials")) {
16638
+ if (host.hasMacOsCredential("Claude Code-credentials") || host.exists(path)) {
16638
16639
  return { ok: true };
16639
16640
  }
16640
16641
  return {
16641
16642
  ok: false,
16642
- error: "claude is not logged in (no macOS keychain entry 'Claude Code-credentials'). Run `claude` and complete login first"
16643
+ error: `claude is not logged in (no macOS keychain entry 'Claude Code-credentials' and no credentials at ${path}). Run \`claude\` and complete login first`
16643
16644
  };
16644
16645
  }
16645
- const path = join30(host.homeDirectory(), ".claude", ".credentials.json");
16646
16646
  if (host.exists(path))
16647
16647
  return { ok: true };
16648
16648
  return {
@@ -19653,4 +19653,4 @@ export {
19653
19653
  createAgentHealthMcpServer
19654
19654
  };
19655
19655
 
19656
- //# debugId=09A6616F9F0036C964756E2164756E21
19656
+ //# debugId=70529255C313CC1964756E2164756E21