From 3cdf84b1ba232ec6e68a40cf90558afeee21154e Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sun, 14 Dec 2025 01:42:30 -0500 Subject: [PATCH 1/2] fix(auth): include unified config accounts in auth list command The `ccs auth list` command was only reading from legacy profiles.json, missing accounts stored in unified config (config.yaml). Now merges profiles from both sources, with unified config taking precedence. --- src/auth/auth-commands.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/auth/auth-commands.ts b/src/auth/auth-commands.ts index 184ace50..b496e514 100644 --- a/src/auth/auth-commands.ts +++ b/src/auth/auth-commands.ts @@ -16,6 +16,7 @@ import { spawn, ChildProcess } from 'child_process'; import * as fs from 'fs'; import * as path from 'path'; import ProfileRegistry from './profile-registry'; +import { ProfileMetadata } from '../types'; import { InstanceManager } from '../management/instance-manager'; import { initUI, @@ -285,8 +286,21 @@ class AuthCommands { const { verbose, json } = this.parseArgs(args); try { - const profiles = this.registry.getAllProfiles(); - const defaultProfile = this.registry.getDefaultProfile(); + // Get profiles from both legacy (profiles.json) and unified config (config.yaml) + const legacyProfiles = this.registry.getAllProfiles(); + const unifiedAccounts = this.registry.getAllAccountsUnified(); + + // Merge profiles: unified config takes precedence + const profiles: Record = { ...legacyProfiles }; + for (const [name, account] of Object.entries(unifiedAccounts)) { + profiles[name] = { + type: 'account', + created: account.created, + last_used: account.last_used, + }; + } + + const defaultProfile = this.registry.getDefaultUnified() ?? this.registry.getDefaultProfile(); const profileNames = Object.keys(profiles); // JSON output mode From 9c42511546e1cda51a4df5e3137e88903eb30919 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 14 Dec 2025 06:43:32 +0000 Subject: [PATCH 2/2] chore(release): 5.19.0-dev.1 [skip ci] --- VERSION | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 9c64cd9b..b8fbd074 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.19.0 +5.19.0-dev.1 diff --git a/package.json b/package.json index 39cbf39d..58055dff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kaitranntt/ccs", - "version": "5.19.0", + "version": "5.19.0-dev.1", "description": "Claude Code Switch - Instant profile switching between Claude Sonnet 4.5 and GLM 4.6", "keywords": [ "cli",