Reduce internal-only labeling noise in source comments (#355)
This pass rewrites comment-only ANT-ONLY markers to neutral internal-only language across the source tree without changing runtime strings, flags, commands, or protocol identifiers. The goal is to lower obvious internal prose leakage while keeping the diff mechanically safe and easy to review. Constraint: Phase B is limited to comments/prose only; runtime strings and user-facing labels remain deferred Rejected: Broad search-and-replace across strings and command descriptions | too risky for a prose-only pass Confidence: high Scope-risk: narrow Reversibility: clean Directive: Remaining ANT-ONLY hits are mostly runtime/user-facing strings and should be handled separately from comment cleanup Tested: bun run build Tested: bun run smoke Tested: bun run verify:privacy Tested: bun run test:provider Tested: bun run test:provider-recommendation Not-tested: Full repo typecheck (upstream baseline remains noisy) Co-authored-by: anandh8x <test@example.com>
This commit is contained in:
@@ -232,9 +232,9 @@ export type GlobalConfig = {
|
||||
}
|
||||
primaryApiKey?: string // Primary API key for the user when no environment variable is set, set via oauth (TODO: rename)
|
||||
hasAcknowledgedCostThreshold?: boolean
|
||||
hasSeenUndercoverAutoNotice?: boolean // ant-only: whether the one-time auto-undercover explainer has been shown
|
||||
hasSeenUltraplanTerms?: boolean // ant-only: whether the one-time CCR terms notice has been shown in the ultraplan launch dialog
|
||||
hasResetAutoModeOptInForDefaultOffer?: boolean // ant-only: one-shot migration guard, re-prompts churned auto-mode users
|
||||
hasSeenUndercoverAutoNotice?: boolean // internal-only: whether the one-time auto-undercover explainer has been shown
|
||||
hasSeenUltraplanTerms?: boolean // internal-only: whether the one-time CCR terms notice has been shown in the ultraplan launch dialog
|
||||
hasResetAutoModeOptInForDefaultOffer?: boolean // internal-only: one-shot migration guard, re-prompts churned auto-mode users
|
||||
oauthAccount?: AccountInfo
|
||||
iterm2KeyBindingInstalled?: boolean // Legacy - keeping for backward compatibility
|
||||
editorMode?: EditorMode
|
||||
@@ -405,7 +405,7 @@ export type GlobalConfig = {
|
||||
// Claude Code usage tracking
|
||||
claudeCodeFirstTokenDate?: string // ISO timestamp of the user's first Claude Code OAuth token
|
||||
|
||||
// Model switch callout tracking (ant-only)
|
||||
// Model switch callout tracking (internal-only)
|
||||
modelSwitchCalloutDismissed?: boolean // Whether user chose "Don't show again"
|
||||
modelSwitchCalloutLastShown?: number // Timestamp of last shown (don't show for 24h)
|
||||
modelSwitchCalloutVersion?: string
|
||||
@@ -457,7 +457,7 @@ export type GlobalConfig = {
|
||||
// Cached GrowthBook feature values
|
||||
cachedGrowthBookFeatures?: { [featureName: string]: unknown }
|
||||
|
||||
// Local GrowthBook overrides (ant-only, set via /config Gates tab).
|
||||
// Local GrowthBook overrides (internal-only, set via /config Gates tab).
|
||||
// Checked after env-var overrides but before the real resolved value.
|
||||
growthBookOverrides?: { [featureName: string]: unknown }
|
||||
|
||||
@@ -545,7 +545,7 @@ export type GlobalConfig = {
|
||||
// PR status footer configuration (feature-flagged via GrowthBook)
|
||||
prStatusFooterEnabled?: boolean // Show PR review status in footer (default: true)
|
||||
|
||||
// Tmux live panel visibility (ant-only, toggled via Enter on tmux pill)
|
||||
// Tmux live panel visibility (internal-only, toggled via Enter on tmux pill)
|
||||
tungstenPanelVisible?: boolean
|
||||
|
||||
// Cached org-level fast mode status from the API.
|
||||
@@ -564,10 +564,10 @@ export type GlobalConfig = {
|
||||
// undefined = no cache, null = extra usage enabled, string = disabled reason.
|
||||
cachedExtraUsageDisabledReason?: string | null
|
||||
|
||||
// Auto permissions notification tracking (ant-only)
|
||||
// Auto permissions notification tracking (internal-only)
|
||||
autoPermissionsNotificationCount?: number // Number of times the auto permissions notification has been shown
|
||||
|
||||
// Speculation configuration (ant-only)
|
||||
// Speculation configuration (internal-only)
|
||||
speculationEnabled?: boolean // Whether speculation is enabled (default: true)
|
||||
|
||||
|
||||
@@ -913,7 +913,7 @@ let lastReadFileStats: { mtime: number; size: number } | null = null
|
||||
let configCacheHits = 0
|
||||
let configCacheMisses = 0
|
||||
// Session-total count of actual disk writes to the global config file.
|
||||
// Exposed for ant-only dev diagnostics (see inc-4552) so anomalous write
|
||||
// Exposed for internal-only dev diagnostics (see inc-4552) so anomalous write
|
||||
// rates surface in the UI before they corrupt ~/.claude.json.
|
||||
let globalConfigWriteCount = 0
|
||||
|
||||
@@ -1125,7 +1125,7 @@ export function getGlobalConfig(): GlobalConfig {
|
||||
/**
|
||||
* Returns the effective value of remoteControlAtStartup. Precedence:
|
||||
* 1. User's explicit config value (always wins — honors opt-out)
|
||||
* 2. CCR auto-connect default (ant-only build, GrowthBook-gated)
|
||||
* 2. CCR auto-connect default (internal-only build, GrowthBook-gated)
|
||||
* 3. false (Remote Control must be explicitly opted into)
|
||||
*/
|
||||
export function getRemoteControlAtStartup(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user