mixdog 0.9.164 → 0.9.166

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": "mixdog",
3
- "version": "0.9.164",
3
+ "version": "0.9.166",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Standalone mixdog coding-agent CLI/TUI workspace.",
@@ -2,6 +2,7 @@ import { createHash } from 'node:crypto';
2
2
  import { existsSync, readFileSync, statSync } from 'node:fs';
3
3
  import { join } from 'node:path';
4
4
  import { resolvePluginData } from '../../../shared/plugin-paths.mjs';
5
+ import { boundProviderAuthPath } from '../../../shared/provider-auth-binding.mjs';
5
6
  import { cursorTokenExpiry } from './cursor-auth.mjs';
6
7
 
7
8
  const ANTHROPIC_DEFAULT_CREDENTIALS_PATH = join(resolvePluginData(), 'anthropic-oauth-credentials.json');
@@ -133,9 +134,12 @@ function anthropicOAuthState() {
133
134
  }
134
135
 
135
136
  function openAIOAuthState() {
137
+ // Match the chat provider's account/path precedence. Credentials belonging
138
+ // to another account must never authenticate a missing or unreadable one.
136
139
  const paths = [
137
- process.env.OPENAI_OAUTH_CREDENTIALS_PATH,
138
- join(resolvePluginData(), 'openai-oauth.json'),
140
+ boundProviderAuthPath('openai-oauth')
141
+ || process.env.OPENAI_OAUTH_CREDENTIALS_PATH
142
+ || join(resolvePluginData(), 'openai-oauth.json'),
139
143
  ];
140
144
  return memoProbe('openai-oauth', paths, () => resolveProbeState(
141
145
  paths,