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:
Anandan
2026-04-04 23:26:14 +05:30
committed by GitHub
parent 9e84d2fddc
commit 2f162af60c
96 changed files with 160 additions and 160 deletions

View File

@@ -1127,7 +1127,7 @@ async function run(): Promise<CommanderCommand> {
// Extract disable slash commands flag
const disableSlashCommands = options.disableSlashCommands || false;
// Extract tasks mode options (ant-only)
// Extract tasks mode options (internal-only)
const tasksOption = "external" === 'ant' && (options as {
tasks?: boolean | string;
}).tasks;
@@ -2213,7 +2213,7 @@ async function run(): Promise<CommanderCommand> {
const ctx = getRenderContext(false);
getFpsMetrics = ctx.getFpsMetrics;
stats = ctx.stats;
// Install asciicast recorder before Ink mounts (ant-only, opt-in via CLAUDE_CODE_TERMINAL_RECORDING=1)
// Install asciicast recorder before Ink mounts (internal-only, opt-in via CLAUDE_CODE_TERMINAL_RECORDING=1)
if ("external" === 'ant') {
installAsciicastRecorder();
}
@@ -2246,7 +2246,7 @@ async function run(): Promise<CommanderCommand> {
}
}
// Check for pending agent memory snapshot updates (only for --agent mode, ant-only)
// Check for pending agent memory snapshot updates (only for --agent mode, internal-only)
if (feature('AGENT_MEMORY_SNAPSHOT') && mainThreadAgentDefinition && isCustomAgent(mainThreadAgentDefinition) && mainThreadAgentDefinition.memory && mainThreadAgentDefinition.pendingSnapshotUpdate) {
const agentDef = mainThreadAgentDefinition;
const choice = await launchSnapshotUpdateDialog(root, {
@@ -3041,7 +3041,7 @@ async function run(): Promise<CommanderCommand> {
logSessionTelemetry();
});
// Set up per-turn session environment data uploader (ant-only build).
// Set up per-turn session environment data uploader (internal-only build).
// Default-enabled for all ant users when working in an Anthropic-owned
// repo. Captures git/filesystem state (NOT transcripts) at each turn so
// environments can be recreated at any user message index. Gating:
@@ -3341,7 +3341,7 @@ async function run(): Promise<CommanderCommand> {
}, renderAndRun);
return;
} else if (options.resume || options.fromPr || teleport || remote !== null) {
// Handle resume flow - from file (ant-only), session ID, or interactive selector
// Handle resume flow - from file (internal-only), session ID, or interactive selector
// Clear stale caches before resuming to ensure fresh file/skill discovery
const {
@@ -4246,7 +4246,7 @@ async function run(): Promise<CommanderCommand> {
} = await import('./cli/handlers/plugins.js');
await pluginUpdateHandler(plugin, options);
});
// END ANT-ONLY
// END internal-only
// Setup token command
program.command('setup-token').description('Set up a long-lived authentication token (requires Claude subscription)').action(async () => {
@@ -4361,7 +4361,7 @@ async function run(): Promise<CommanderCommand> {
});
}
// claude rollback (ant-only)
// claude rollback (internal-only)
// Rolls back to previous releases
if ("external" === 'ant') {
program.command('rollback [target]').description('[ANT-ONLY] Roll back to a previous release\n\nExamples:\n claude rollback Go 1 version back from current\n claude rollback 3 Go 3 versions back from current\n claude rollback 2.0.73-dev.20251217.t190658 Roll back to a specific version').option('-l, --list', 'List recent published versions with ages').option('--dry-run', 'Show what would be installed without installing').option('--safe', 'Roll back to the server-pinned safe version (set by oncall during incidents)').action(async (target?: string, options?: {
@@ -4386,7 +4386,7 @@ async function run(): Promise<CommanderCommand> {
await installHandler(target, options);
});
// ant-only commands
// internal-only commands
if ("external" === 'ant') {
const validateLogId = (value: string) => {
const maybeSessionId = validateUuid(value);