@hasna/coders 0.0.10 → 0.0.11

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/dist/cli.mjs CHANGED
@@ -7635,11 +7635,6 @@ function getConfigDir() {
7635
7635
  _configDir = primary;
7636
7636
  return _configDir;
7637
7637
  }
7638
- const compat = join(home, COMPAT_CONFIG_DIR_NAME);
7639
- if (existsSync(compat)) {
7640
- _configDir = compat;
7641
- return _configDir;
7642
- }
7643
7638
  ensureDir(primary);
7644
7639
  _configDir = primary;
7645
7640
  return _configDir;
@@ -7651,24 +7646,19 @@ function getUserConfigPath() {
7651
7646
  return join(getConfigDir(), ".config.json");
7652
7647
  }
7653
7648
  function getProjectSettingsPath(projectRoot) {
7654
- const primary = join(projectRoot, ".coders", "settings.json");
7655
- if (existsSync(primary)) return primary;
7656
- const compat = join(projectRoot, ".claude", "settings.json");
7657
- if (existsSync(compat)) return compat;
7658
- return primary;
7649
+ return join(projectRoot, ".coders", "settings.json");
7659
7650
  }
7660
7651
  function ensureDir(dir) {
7661
7652
  if (!existsSync(dir)) {
7662
7653
  mkdirSync(dir, { recursive: true });
7663
7654
  }
7664
7655
  }
7665
- var CONFIG_DIR_ENV, DEFAULT_CONFIG_DIR_NAME, COMPAT_CONFIG_DIR_NAME, _configDir;
7656
+ var CONFIG_DIR_ENV, DEFAULT_CONFIG_DIR_NAME, _configDir;
7666
7657
  var init_paths = __esm({
7667
7658
  "src/config/paths.ts"() {
7668
7659
  "use strict";
7669
7660
  CONFIG_DIR_ENV = "CODERS_CONFIG_DIR";
7670
7661
  DEFAULT_CONFIG_DIR_NAME = ".coders";
7671
- COMPAT_CONFIG_DIR_NAME = ".claude";
7672
7662
  _configDir = null;
7673
7663
  }
7674
7664
  });
@@ -58043,9 +58033,9 @@ function resolveApiKey() {
58043
58033
  if (primaryKey) {
58044
58034
  return { apiKey: primaryKey, source: "config:primaryApiKey", isOAuth: false };
58045
58035
  }
58046
- const claudeAiOauth = config.claudeAiOauth;
58047
- if (claudeAiOauth?.accessToken) {
58048
- return { apiKey: claudeAiOauth.accessToken, source: "config:claudeAiOauth", isOAuth: true };
58036
+ const codersOauth = config.codersOauth;
58037
+ if (codersOauth?.accessToken) {
58038
+ return { apiKey: codersOauth.accessToken, source: "config:codersOauth", isOAuth: true };
58049
58039
  }
58050
58040
  return null;
58051
58041
  }
@@ -58448,7 +58438,7 @@ var init_client = __esm({
58448
58438
  "Content-Type": "application/json",
58449
58439
  "anthropic-version": "2023-06-01",
58450
58440
  "anthropic-beta": BETA_HEADERS.join(","),
58451
- "User-Agent": `coders/${"0.0.10"}`
58441
+ "User-Agent": `coders/${"0.0.11"}`
58452
58442
  };
58453
58443
  if (key.isOAuth) {
58454
58444
  headers["Authorization"] = `Bearer ${key.apiKey}`;
@@ -70406,8 +70396,8 @@ async function bootstrap() {
70406
70396
  var VERSION, BUILD_TIME, PACKAGE_NAME2, ISSUES_URL2, startupTimestamps, originalCwd, RESET_TERMINAL, cleanupHandlers, earlyInput, earlyInputCapturing;
70407
70397
  var init_index = __esm({
70408
70398
  "src/cli/index.ts"() {
70409
- VERSION = "0.0.10";
70410
- BUILD_TIME = "2026-03-20T08:16:11.053Z";
70399
+ VERSION = "0.0.11";
70400
+ BUILD_TIME = "2026-03-20T08:23:15.616Z";
70411
70401
  PACKAGE_NAME2 = "@hasna/coders";
70412
70402
  ISSUES_URL2 = "https://github.com/hasnaxyz/open-coders/issues";
70413
70403
  startupTimestamps = {};