Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ The package includes development probes for validating provider limit signals
without printing secrets or raw provider responses:

```sh
swift run CodexRateLimitProbe --auth ~/.codex/auth.json
swift run CodexRateLimitProbe --auth ~/.code/auth_accounts.json
GEMINI_OAUTH_CLIENT_ID=... GEMINI_OAUTH_CLIENT_SECRET=... \
swift run GeminiQuotaProbe --auth ~/.gemini/oauth_creds.json
swift run ClaudeLimitProbe
swift run SnapshotStoreProbe --codex-auth ~/.codex/auth.json --include-claude
swift run SnapshotStoreProbe --codex-auth ~/.code/auth_accounts.json --include-claude
```

The Codex and Gemini probes can return live percent-window quota buckets for
Expand Down
9 changes: 7 additions & 2 deletions Sources/CodexRateLimitProbe/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ struct ProbeConfiguration {
private static func defaultAuthPath() -> String {
let environment = ProcessInfo.processInfo.environment
let home = environment["HOME"] ?? FileManager.default.homeDirectoryForCurrentUser.path
let codexHome = environment["CODEX_HOME"] ?? "\(home)/.codex"
return "\(codexHome)/auth.json"
if let codeHome = environment["CODE_HOME"], !codeHome.isEmpty {
return "\(codeHome)/auth_accounts.json"
}
if let codexHome = environment["CODEX_HOME"], !codexHome.isEmpty {
return "\(codexHome)/auth.json"
}
return "\(home)/.code/auth_accounts.json"
}

private static func printHelp() {
Expand Down
4 changes: 2 additions & 2 deletions Sources/ContextPanelCore/AccountConfigurationStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public struct AccountConfigurationStore: Sendable {
id: "openai-code-default",
provider: .openAI,
connectorKind: .codexRateLimits,
displayName: "Code",
displayName: "Every Code",
authPath: "\(home)/.code/auth_accounts.json"
),
LocalProviderAccountConfiguration(
Expand Down Expand Up @@ -379,7 +379,7 @@ public enum AccountConnectorFactory {
let expanded = NSString(string: authPath).expandingTildeInPath
let url = URL(fileURLWithPath: expanded)
if url.deletingLastPathComponent().lastPathComponent == ".code" {
return "Code"
return "Every Code"
}
if url.deletingLastPathComponent().lastPathComponent == ".codex" {
return "Codex"
Expand Down
2 changes: 1 addition & 1 deletion Sources/ContextPanelPreview/ContextPanelPreviewApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ final class SettingsPaneModel: ObservableObject {
switch account.connectorKind {
case .codexRateLimits:
if account.displayName.localizedCaseInsensitiveContains("code") {
return "Select auth_accounts.json. All Code accounts are read from this file"
return "Select auth_accounts.json. Every Code accounts are read from this file"
}
if account.displayName.localizedCaseInsensitiveContains("codex") {
return "Select auth.json for Codex users"
Expand Down
2 changes: 1 addition & 1 deletion Sources/SnapshotStoreProbe/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct ProbeConfiguration {

private static func printHelp() {
print("""
Usage: swift run SnapshotStoreProbe [--output /tmp/context-panel-store] [--configured-accounts] [--codex-account Label=~/.codex/auth.json] [--include-claude]
Usage: swift run SnapshotStoreProbe [--output /tmp/context-panel-store] [--configured-accounts] [--codex-account Label=~/.code/auth_accounts.json] [--include-claude]

Refreshes selected local connectors, writes the normalized snapshot to
the JSON snapshot store, then reloads it. The store contains normalized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Testing

#expect(result.status == .unknown)
#expect(result.document.accounts.count == 4)
#expect(result.document.accounts.contains { $0.id == "openai-code-default" && $0.displayName == "Code" && $0.isEnabled })
#expect(result.document.accounts.contains { $0.id == "openai-code-default" && $0.displayName == "Every Code" && $0.isEnabled })
#expect(result.document.accounts.contains { $0.id == "openai-codex-default" && $0.displayName == "Codex" && !$0.isEnabled })
#expect(result.document.accounts.contains { $0.connectorKind == .geminiCodeAssist && $0.isEnabled })
#expect(result.document.accounts.contains { $0.connectorKind == .claudeOAuthUsage && $0.effectiveAuthPath == nil })
Expand Down