Finish eliminating remaining ANT-ONLY source labels (#360)

This extends the label-only cleanup to the remaining internal-only command,
debug, and heading strings so the source tree no longer contains ANT-ONLY
markers. The pass still avoids logic changes and only renames labels shown
in internal or gated surfaces.

Constraint: Update the existing label-cleanup PR without widening scope into behavior changes
Rejected: Leave the last ANT-ONLY strings for a later pass | low-cost cleanup while the branch is already focused on labels
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: The next phase should move off label cleanup and onto a separately scoped logic or rebrand slice
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:58:34 +05:30
committed by GitHub
parent 0d27ca596a
commit ba1b9913aa
8 changed files with 19 additions and 19 deletions

View File

@@ -16,7 +16,7 @@ export const call: LocalCommandCall = async () => {
} }
if (process.env.USER_TYPE === 'ant') { if (process.env.USER_TYPE === 'ant') {
value += `\n\n[ANT-ONLY] Showing cost anyway:\n ${formatTotalCost()}` value += `\n\n[internal-only] Showing cost anyway:\n ${formatTotalCost()}`
} }
return { type: 'text', value } return { type: 'text', value }
} }

View File

@@ -114,7 +114,7 @@ export function HelpV2(t0) {
if (false && antOnlyCommands.length > 0) { if (false && antOnlyCommands.length > 0) {
let t7; let t7;
if ($[26] !== antOnlyCommands || $[27] !== close || $[28] !== columns || $[29] !== maxHeight) { if ($[26] !== antOnlyCommands || $[27] !== close || $[28] !== columns || $[29] !== maxHeight) {
t7 = <Tab key="ant-only" title="[internal-only]"><Commands commands={antOnlyCommands} maxHeight={maxHeight} columns={columns} title="Browse internal-only commands:" onCancel={close} /></Tab>; t7 = <Tab key="internal-only" title="[internal-only]"><Commands commands={antOnlyCommands} maxHeight={maxHeight} columns={columns} title="Browse internal-only commands:" onCancel={close} /></Tab>;
$[26] = antOnlyCommands; $[26] = antOnlyCommands;
$[27] = close; $[27] = close;
$[28] = columns; $[28] = columns;

View File

@@ -41,7 +41,7 @@ export function createWhatsNewFeed(releaseNotes: string[]): FeedConfig {
}); });
const emptyMessage = "external" === 'ant' ? 'Unable to fetch latest claude-cli-internal commits' : 'Check /release-notes for recent updates'; const emptyMessage = "external" === 'ant' ? 'Unable to fetch latest claude-cli-internal commits' : 'Check /release-notes for recent updates';
return { return {
title: "external" === 'ant' ? "Open Claude Updates [ANT-ONLY: Latest CC commits]" : "Open Claude Updates", title: "external" === 'ant' ? "Open Claude Updates [internal-only: Latest CC commits]" : "Open Claude Updates",
lines, lines,
footer: lines.length > 0 ? '/release-notes for more' : undefined, footer: lines.length > 0 ? '/release-notes for more' : undefined,
emptyMessage emptyMessage

View File

@@ -3798,17 +3798,17 @@ async function run(): Promise<CommanderCommand> {
program.addOption(new Option('--advisor <model>', 'Enable the server-side advisor tool with the specified model (alias or full ID).').hideHelp()); program.addOption(new Option('--advisor <model>', 'Enable the server-side advisor tool with the specified model (alias or full ID).').hideHelp());
} }
if ("external" === 'ant') { if ("external" === 'ant') {
program.addOption(new Option('--delegate-permissions', '[ANT-ONLY] Alias for --permission-mode auto.').implies({ program.addOption(new Option('--delegate-permissions', '[internal-only] Alias for --permission-mode auto.').implies({
permissionMode: 'auto' permissionMode: 'auto'
})); }));
program.addOption(new Option('--dangerously-skip-permissions-with-classifiers', '[ANT-ONLY] Deprecated alias for --permission-mode auto.').hideHelp().implies({ program.addOption(new Option('--dangerously-skip-permissions-with-classifiers', '[internal-only] Deprecated alias for --permission-mode auto.').hideHelp().implies({
permissionMode: 'auto' permissionMode: 'auto'
})); }));
program.addOption(new Option('--afk', '[ANT-ONLY] Deprecated alias for --permission-mode auto.').hideHelp().implies({ program.addOption(new Option('--afk', '[internal-only] Deprecated alias for --permission-mode auto.').hideHelp().implies({
permissionMode: 'auto' permissionMode: 'auto'
})); }));
program.addOption(new Option('--tasks [id]', '[ANT-ONLY] Tasks mode: watch for tasks and auto-process them. Optional id is used as both the task list ID and agent ID (defaults to "tasklist").').argParser(String).hideHelp()); program.addOption(new Option('--tasks [id]', '[internal-only] Tasks mode: watch for tasks and auto-process them. Optional id is used as both the task list ID and agent ID (defaults to "tasklist").').argParser(String).hideHelp());
program.option('--agent-teams', '[ANT-ONLY] Force Claude to use multi-agent mode for solving problems', () => true); program.option('--agent-teams', '[internal-only] Force Claude to use multi-agent mode for solving problems', () => true);
} }
if (feature('TRANSCRIPT_CLASSIFIER')) { if (feature('TRANSCRIPT_CLASSIFIER')) {
program.addOption(new Option('--enable-auto-mode', 'Opt in to auto mode').hideHelp()); program.addOption(new Option('--enable-auto-mode', 'Opt in to auto mode').hideHelp());
@@ -4353,7 +4353,7 @@ async function run(): Promise<CommanderCommand> {
// claude up — run the project's CLAUDE.md "# claude up" setup instructions. // claude up — run the project's CLAUDE.md "# claude up" setup instructions.
if ("external" === 'ant') { if ("external" === 'ant') {
program.command('up').description('[ANT-ONLY] Initialize or upgrade the local dev environment using the "# claude up" section of the nearest CLAUDE.md').action(async () => { program.command('up').description('[internal-only] Initialize or upgrade the local dev environment using the "# claude up" section of the nearest CLAUDE.md').action(async () => {
const { const {
up up
} = await import('src/cli/up.js'); } = await import('src/cli/up.js');
@@ -4364,7 +4364,7 @@ async function run(): Promise<CommanderCommand> {
// claude rollback (internal-only) // claude rollback (internal-only)
// Rolls back to previous releases // Rolls back to previous releases
if ("external" === 'ant') { 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?: { program.command('rollback [target]').description('[internal-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?: {
list?: boolean; list?: boolean;
dryRun?: boolean; dryRun?: boolean;
safe?: boolean; safe?: boolean;
@@ -4394,7 +4394,7 @@ async function run(): Promise<CommanderCommand> {
return Number(value); return Number(value);
}; };
// claude log // claude log
program.command('log').description('[ANT-ONLY] Manage conversation logs.').argument('[number|sessionId]', 'A number (0, 1, 2, etc.) to display a specific log, or the sesssion ID (uuid) of a log', validateLogId).action(async (logId: string | number | undefined) => { program.command('log').description('[internal-only] Manage conversation logs.').argument('[number|sessionId]', 'A number (0, 1, 2, etc.) to display a specific log, or the sesssion ID (uuid) of a log', validateLogId).action(async (logId: string | number | undefined) => {
const { const {
logHandler logHandler
} = await import('./cli/handlers/ant.js'); } = await import('./cli/handlers/ant.js');
@@ -4402,7 +4402,7 @@ async function run(): Promise<CommanderCommand> {
}); });
// claude error // claude error
program.command('error').description('[ANT-ONLY] View error logs. Optionally provide a number (0, -1, -2, etc.) to display a specific log.').argument('[number]', 'A number (0, 1, 2, etc.) to display a specific log', parseInt).action(async (number: number | undefined) => { program.command('error').description('[internal-only] View error logs. Optionally provide a number (0, -1, -2, etc.) to display a specific log.').argument('[number]', 'A number (0, 1, 2, etc.) to display a specific log', parseInt).action(async (number: number | undefined) => {
const { const {
errorHandler errorHandler
} = await import('./cli/handlers/ant.js'); } = await import('./cli/handlers/ant.js');
@@ -4410,7 +4410,7 @@ async function run(): Promise<CommanderCommand> {
}); });
// claude export // claude export
program.command('export').description('[ANT-ONLY] Export a conversation to a text file.').usage('<source> <outputFile>').argument('<source>', 'Session ID, log index (0, 1, 2...), or path to a .json/.jsonl log file').argument('<outputFile>', 'Output file path for the exported text').addHelpText('after', ` program.command('export').description('[internal-only] Export a conversation to a text file.').usage('<source> <outputFile>').argument('<source>', 'Session ID, log index (0, 1, 2...), or path to a .json/.jsonl log file').argument('<outputFile>', 'Output file path for the exported text').addHelpText('after', `
Examples: Examples:
$ claude export 0 conversation.txt Export conversation at log index 0 $ claude export 0 conversation.txt Export conversation at log index 0
$ claude export <uuid> conversation.txt Export conversation by session ID $ claude export <uuid> conversation.txt Export conversation by session ID
@@ -4422,7 +4422,7 @@ Examples:
await exportHandler(source, outputFile); await exportHandler(source, outputFile);
}); });
if ("external" === 'ant') { if ("external" === 'ant') {
const taskCmd = program.command('task').description('[ANT-ONLY] Manage task list tasks'); const taskCmd = program.command('task').description('[internal-only] Manage task list tasks');
taskCmd.command('create <subject>').description('Create a new task').option('-d, --description <text>', 'Task description').option('-l, --list <id>', 'Task list ID (defaults to "tasklist")').action(async (subject: string, opts: { taskCmd.command('create <subject>').description('Create a new task').option('-d, --description <text>', 'Task description').option('-l, --list <id>', 'Task list ID (defaults to "tasklist")').action(async (subject: string, opts: {
description?: string; description?: string;
list?: string; list?: string;

View File

@@ -302,7 +302,7 @@ function createSpeculationFeedbackMessage(
: '' : ''
return createSystemMessage( return createSystemMessage(
`[ANT-ONLY] ${parts.join(' · ')} · ${savedText}${sessionSuffix}`, `[internal-only] ${parts.join(' · ')} · ${savedText}${sessionSuffix}`,
'warning', 'warning',
) )
} }

View File

@@ -186,7 +186,7 @@ async function logEventTo1PAsync(
// Debug logging when debug mode is enabled // Debug logging when debug mode is enabled
if (process.env.USER_TYPE === 'ant') { if (process.env.USER_TYPE === 'ant') {
logForDebugging( logForDebugging(
`[ANT-ONLY] 1P event: ${eventName} ${jsonStringify(metadata, null, 0)}`, `[internal-only] 1P event: ${eventName} ${jsonStringify(metadata, null, 0)}`,
) )
} }
@@ -287,7 +287,7 @@ export function logGrowthBookExperimentTo1P(
if (process.env.USER_TYPE === 'ant') { if (process.env.USER_TYPE === 'ant') {
logForDebugging( logForDebugging(
`[ANT-ONLY] 1P GrowthBook experiment: ${data.experimentId} variation=${data.variationId}`, `[internal-only] 1P GrowthBook experiment: ${data.experimentId} variation=${data.variationId}`,
) )
} }

View File

@@ -292,7 +292,7 @@ export function getEffortLevelDescription(level: EffortLevel | OpenAIEffortLevel
*/ */
export function getEffortValueDescription(value: EffortValue): string { export function getEffortValueDescription(value: EffortValue): string {
if (process.env.USER_TYPE === 'ant' && typeof value === 'number') { if (process.env.USER_TYPE === 'ant' && typeof value === 'number') {
return `[ANT-ONLY] Numeric effort value of ${value}` return `[internal-only] Numeric effort value of ${value}`
} }
if (typeof value === 'string') { if (typeof value === 'string') {

View File

@@ -350,7 +350,7 @@ export function groupHooksByEventAndMatcher(
event: hookEvent, event: hookEvent,
config: { config: {
type: 'command', type: 'command',
command: '[ANT-ONLY] Built-in Hook', command: '[internal-only] Built-in Hook',
}, },
matcher: matcher.matcher, matcher: matcher.matcher,
source: 'builtinHook', source: 'builtinHook',