offsite 0.0.33 → 0.0.34

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.
@@ -3460,14 +3460,6 @@ function openCodeRuns() {
3460
3460
  }
3461
3461
  //#endregion
3462
3462
  //#region src/services/accounts.ts
3463
- const accountColors = [
3464
- "#3b82f6",
3465
- "#16a34a",
3466
- "#f97316",
3467
- "#a855f7",
3468
- "#ec4899",
3469
- "#0d9488"
3470
- ];
3471
3463
  const providerNames = {
3472
3464
  claude: "Claude",
3473
3465
  codex: "Codex",
@@ -3478,11 +3470,13 @@ function providerName(provider) {
3478
3470
  }
3479
3471
  function storedAccounts() {
3480
3472
  const config = readConfig();
3481
- return [...config.claudeAccounts, ...config.codexAccounts].map((item, index) => ({
3473
+ return [...config.claudeAccounts.map((item) => ({
3482
3474
  ...item,
3483
- color: item.color ?? accountColors[index % accountColors.length],
3484
3475
  configDir: item.configDir[platform()]
3485
- }));
3476
+ })), ...config.codexAccounts.map((item) => ({
3477
+ ...item,
3478
+ configDir: item.configDir[platform()]
3479
+ }))];
3486
3480
  }
3487
3481
  function assertEnabled(provider, accountId) {
3488
3482
  if (!readConfig().enabledProviders[provider]) throw new Error(`${providerName(provider)} is disabled in Settings`);
@@ -3584,8 +3578,6 @@ function providerCapabilities(provider, accountId, cwd) {
3584
3578
  }
3585
3579
  function addAccount(provider, name, configDir) {
3586
3580
  const account = validAccount(name, configDir);
3587
- const stored = storedAccounts();
3588
- const color = accountColors.find((item) => stored.every((other) => other.color !== item)) ?? accountColors[stored.length % accountColors.length];
3589
3581
  const config = readConfig();
3590
3582
  const key = `${provider}Accounts`;
3591
3583
  saveConfig({
@@ -3594,7 +3586,7 @@ function addAccount(provider, name, configDir) {
3594
3586
  id: randomUUID(),
3595
3587
  provider,
3596
3588
  name: account.name,
3597
- color,
3589
+ color: null,
3598
3590
  configDir: { [platform()]: account.configDir },
3599
3591
  enabled: true,
3600
3592
  hiddenModels: {}