Neutralize remaining internal-only diagnostic labels (#359)
This pass rewrites a small set of ant-only diagnostic and UI labels to neutral internal wording while leaving command definitions, flags, and runtime logic untouched. It focuses on internal debug output, dead UI branches, and noninteractive headings rather than broader product text. Constraint: Label cleanup only; do not change command semantics or ant-only logic gates Rejected: Renaming ant-only command descriptions in main.tsx | broader UX surface better handled in a separate reviewed pass Confidence: high Scope-risk: narrow Reversibility: clean Directive: Remaining ANT-ONLY hits are mostly command descriptions and intentionally deferred user-facing strings 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:
@@ -223,7 +223,7 @@ export function createBridgeLogger(options: {
|
||||
|
||||
if (process.env.USER_TYPE === 'ant' && debugLogPath) {
|
||||
writeStatus(
|
||||
`${chalk.yellow('[ANT-ONLY] Logs:')} ${chalk.dim(debugLogPath)}\n`,
|
||||
`${chalk.yellow('[internal] Logs:')} ${chalk.dim(debugLogPath)}\n`,
|
||||
)
|
||||
}
|
||||
writeStatus(`${indicatorColor(indicator)} ${stateText}${suffix}\n`)
|
||||
|
||||
@@ -205,7 +205,7 @@ function formatContextAsMarkdownTable(data: ContextData): string {
|
||||
systemTools.length > 0 &&
|
||||
process.env.USER_TYPE === 'ant'
|
||||
) {
|
||||
output += `### [ANT-ONLY] System Tools\n\n`
|
||||
output += `### [internal] System Tools\n\n`
|
||||
output += `| Tool | Tokens |\n`
|
||||
output += `|------|--------|\n`
|
||||
for (const tool of systemTools) {
|
||||
@@ -220,7 +220,7 @@ function formatContextAsMarkdownTable(data: ContextData): string {
|
||||
systemPromptSections.length > 0 &&
|
||||
process.env.USER_TYPE === 'ant'
|
||||
) {
|
||||
output += `### [ANT-ONLY] System Prompt Sections\n\n`
|
||||
output += `### [internal] System Prompt Sections\n\n`
|
||||
output += `| Section | Tokens |\n`
|
||||
output += `|---------|--------|\n`
|
||||
for (const section of systemPromptSections) {
|
||||
@@ -290,7 +290,7 @@ function formatContextAsMarkdownTable(data: ContextData): string {
|
||||
|
||||
// Message breakdown (internal-only)
|
||||
if (messageBreakdown && process.env.USER_TYPE === 'ant') {
|
||||
output += `### [ANT-ONLY] Message Breakdown\n\n`
|
||||
output += `### [internal] Message Breakdown\n\n`
|
||||
output += `| Category | Tokens |\n`
|
||||
output += `|----------|--------|\n`
|
||||
output += `| Tool calls | ${formatTokens(messageBreakdown.toolCallTokens)} |\n`
|
||||
|
||||
@@ -270,7 +270,7 @@ export function ContextVisualization(t0) {
|
||||
} else {
|
||||
t4 = $[53];
|
||||
}
|
||||
t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false && <Box flexDirection="column" marginTop={1}><Box><Text bold={true}>[ANT-ONLY] System tools</Text>{hasDeferredBuiltinTools && <Text dimColor={true}> (some loaded on-demand)</Text>}</Box><Box flexDirection="column" marginTop={1}><Text dimColor={true}>Loaded</Text>{systemTools?.map(_temp14)}{deferredBuiltinTools.filter(_temp15).map(_temp16)}</Box>{hasDeferredBuiltinTools && deferredBuiltinTools.some(_temp17) && <Box flexDirection="column" marginTop={1}><Text dimColor={true}>Available</Text>{deferredBuiltinTools.filter(_temp18).map(_temp19)}</Box>}</Box>;
|
||||
t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false && <Box flexDirection="column" marginTop={1}><Box><Text bold={true}>[internal] System tools</Text>{hasDeferredBuiltinTools && <Text dimColor={true}> (some loaded on-demand)</Text>}</Box><Box flexDirection="column" marginTop={1}><Text dimColor={true}>Loaded</Text>{systemTools?.map(_temp14)}{deferredBuiltinTools.filter(_temp15).map(_temp16)}</Box>{hasDeferredBuiltinTools && deferredBuiltinTools.some(_temp17) && <Box flexDirection="column" marginTop={1}><Text dimColor={true}>Available</Text>{deferredBuiltinTools.filter(_temp18).map(_temp19)}</Box>}</Box>;
|
||||
$[0] = categories;
|
||||
$[1] = gridRows;
|
||||
$[2] = mcpTools;
|
||||
@@ -304,7 +304,7 @@ export function ContextVisualization(t0) {
|
||||
}
|
||||
let t10;
|
||||
if ($[54] !== systemPromptSections) {
|
||||
t10 = systemPromptSections && systemPromptSections.length > 0 && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] System prompt sections</Text>{systemPromptSections.map(_temp20)}</Box>;
|
||||
t10 = systemPromptSections && systemPromptSections.length > 0 && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] System prompt sections</Text>{systemPromptSections.map(_temp20)}</Box>;
|
||||
$[54] = systemPromptSections;
|
||||
$[55] = t10;
|
||||
} else {
|
||||
@@ -336,7 +336,7 @@ export function ContextVisualization(t0) {
|
||||
}
|
||||
let t14;
|
||||
if ($[62] !== messageBreakdown) {
|
||||
t14 = messageBreakdown && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] Message breakdown</Text><Box flexDirection="column" marginLeft={1}><Box><Text>Tool calls: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolCallTokens)} tokens</Text></Box><Box><Text>Tool results: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolResultTokens)} tokens</Text></Box><Box><Text>Attachments: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.attachmentTokens)} tokens</Text></Box><Box><Text>Assistant messages (non-tool): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.assistantMessageTokens)} tokens</Text></Box><Box><Text>User messages (non-tool-result): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.userMessageTokens)} tokens</Text></Box></Box>{messageBreakdown.toolCallsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] Top tools</Text>{messageBreakdown.toolCallsByType.slice(0, 5).map(_temp26)}</Box>}{messageBreakdown.attachmentsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] Top attachments</Text>{messageBreakdown.attachmentsByType.slice(0, 5).map(_temp27)}</Box>}</Box>;
|
||||
t14 = messageBreakdown && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] Message breakdown</Text><Box flexDirection="column" marginLeft={1}><Box><Text>Tool calls: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolCallTokens)} tokens</Text></Box><Box><Text>Tool results: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolResultTokens)} tokens</Text></Box><Box><Text>Attachments: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.attachmentTokens)} tokens</Text></Box><Box><Text>Assistant messages (non-tool): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.assistantMessageTokens)} tokens</Text></Box><Box><Text>User messages (non-tool-result): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.userMessageTokens)} tokens</Text></Box></Box>{messageBreakdown.toolCallsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] Top tools</Text>{messageBreakdown.toolCallsByType.slice(0, 5).map(_temp26)}</Box>}{messageBreakdown.attachmentsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] Top attachments</Text>{messageBreakdown.attachmentsByType.slice(0, 5).map(_temp27)}</Box>}</Box>;
|
||||
$[62] = messageBreakdown;
|
||||
$[63] = t14;
|
||||
} else {
|
||||
|
||||
@@ -35,7 +35,7 @@ export function DevBar() {
|
||||
const recentOps = t1;
|
||||
let t2;
|
||||
if ($[3] !== recentOps) {
|
||||
t2 = <Text wrap="truncate-end" color="warning">[ANT-ONLY] slow sync: {recentOps}</Text>;
|
||||
t2 = <Text wrap="truncate-end" color="warning">[internal] slow sync: {recentOps}</Text>;
|
||||
$[3] = recentOps;
|
||||
$[4] = t2;
|
||||
} else {
|
||||
|
||||
@@ -114,7 +114,7 @@ export function HelpV2(t0) {
|
||||
if (false && antOnlyCommands.length > 0) {
|
||||
let t7;
|
||||
if ($[26] !== antOnlyCommands || $[27] !== close || $[28] !== columns || $[29] !== maxHeight) {
|
||||
t7 = <Tab key="ant-only" title="[ant-only]"><Commands commands={antOnlyCommands} maxHeight={maxHeight} columns={columns} title="Browse ant-only commands:" onCancel={close} /></Tab>;
|
||||
t7 = <Tab key="ant-only" title="[internal-only]"><Commands commands={antOnlyCommands} maxHeight={maxHeight} columns={columns} title="Browse internal-only commands:" onCancel={close} /></Tab>;
|
||||
$[26] = antOnlyCommands;
|
||||
$[27] = close;
|
||||
$[28] = columns;
|
||||
|
||||
@@ -4,7 +4,7 @@ export function InterruptedByUser() {
|
||||
const $ = _c(1);
|
||||
let t0;
|
||||
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
||||
t0 = <><Text dimColor={true}>Interrupted </Text>{false ? <Text dimColor={true}>· [ANT-ONLY] /issue to report a model issue</Text> : <Text dimColor={true}>· What should Claude do instead?</Text>}</>;
|
||||
t0 = <><Text dimColor={true}>Interrupted </Text>{false ? <Text dimColor={true}>· [internal] /issue to report a model issue</Text> : <Text dimColor={true}>· What should Claude do instead?</Text>}</>;
|
||||
$[0] = t0;
|
||||
} else {
|
||||
t0 = $[0];
|
||||
|
||||
@@ -225,7 +225,7 @@ export function LogoV2() {
|
||||
let t22;
|
||||
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
||||
t19 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text dimColor={true}>Use /issue to report model behavior issues</Text></Box>;
|
||||
t20 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[ANT-ONLY] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>;
|
||||
t20 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[internal] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>;
|
||||
t21 = false && <GateOverridesWarning />;
|
||||
t22 = false && <ExperimentEnrollmentNotice />;
|
||||
$[25] = t19;
|
||||
@@ -502,7 +502,7 @@ export function LogoV2() {
|
||||
let t40;
|
||||
if ($[86] === Symbol.for("react.memo_cache_sentinel")) {
|
||||
t37 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text dimColor={true}>Use /issue to report model behavior issues</Text></Box>;
|
||||
t38 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[ANT-ONLY] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>;
|
||||
t38 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[internal] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>;
|
||||
t39 = false && <GateOverridesWarning />;
|
||||
t40 = false && <ExperimentEnrollmentNotice />;
|
||||
$[86] = t37;
|
||||
|
||||
@@ -764,7 +764,7 @@ export function getAssistantMessageFromError(
|
||||
) {
|
||||
// Get organization ID from config - only use OAuth account data when actively using OAuth
|
||||
const orgId = getOauthAccountInfo()?.organizationUuid
|
||||
const baseMsg = `[ANT-ONLY] Your org isn't gated into the \`${model}\` model. Either run \`claude\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\``
|
||||
const baseMsg = `[internal] Your org isn't gated into the \`${model}\` model. Either run \`claude\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\``
|
||||
const msg = orgId
|
||||
? `${baseMsg} or share your orgId (${orgId}) in ${MACRO.FEEDBACK_CHANNEL} for help getting access.`
|
||||
: `${baseMsg} or reach out in ${MACRO.FEEDBACK_CHANNEL} for help getting access.`
|
||||
|
||||
@@ -638,14 +638,14 @@ const internalOnlyTips: Tip[] =
|
||||
{
|
||||
id: 'important-claudemd',
|
||||
content: async () =>
|
||||
'[ANT-ONLY] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules',
|
||||
'[internal] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules',
|
||||
cooldownSessions: 30,
|
||||
isRelevant: async () => true,
|
||||
},
|
||||
{
|
||||
id: 'skillify',
|
||||
content: async () =>
|
||||
'[ANT-ONLY] Use /skillify at the end of a workflow to turn it into a reusable skill',
|
||||
'[internal] Use /skillify at the end of a workflow to turn it into a reusable skill',
|
||||
cooldownSessions: 15,
|
||||
isRelevant: async () => true,
|
||||
},
|
||||
|
||||
@@ -387,7 +387,7 @@ export function renderToolResultMessage(data: Output, progressMessagesForMessage
|
||||
return <Box flexDirection="column">
|
||||
{"external" === 'ant' && <MessageResponse>
|
||||
<Text color="warning">
|
||||
[ANT-ONLY] API calls: {getDisplayPath(getDumpPromptsPath(agentId))}
|
||||
[internal] API calls: {getDisplayPath(getDumpPromptsPath(agentId))}
|
||||
</Text>
|
||||
</MessageResponse>}
|
||||
{isTranscriptMode && prompt && <MessageResponse>
|
||||
@@ -593,7 +593,7 @@ export function renderToolUseRejectedMessage(_input: {
|
||||
return <>
|
||||
{"external" === 'ant' && agentId && <MessageResponse>
|
||||
<Text color="warning">
|
||||
[ANT-ONLY] API calls: {getDisplayPath(getDumpPromptsPath(agentId))}
|
||||
[internal] API calls: {getDisplayPath(getDumpPromptsPath(agentId))}
|
||||
</Text>
|
||||
</MessageResponse>}
|
||||
{renderToolUseProgressMessage(progressMessagesForMessage, {
|
||||
|
||||
@@ -1023,7 +1023,7 @@ export async function analyzeContextUsage(
|
||||
cats.push({
|
||||
name:
|
||||
process.env.USER_TYPE === 'ant'
|
||||
? '[ANT-ONLY] System tools'
|
||||
? '[internal] System tools'
|
||||
: 'System tools',
|
||||
tokens: systemToolsTokens,
|
||||
color: 'inactive',
|
||||
|
||||
@@ -261,7 +261,7 @@ export function logAntError(context: string, error: unknown): void {
|
||||
}
|
||||
|
||||
if (error instanceof Error && error.stack) {
|
||||
logForDebugging(`[ANT-ONLY] ${context} stack trace:\n${error.stack}`, {
|
||||
logForDebugging(`[internal] ${context} stack trace:\n${error.stack}`, {
|
||||
level: 'error',
|
||||
})
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@ function getModelOptionsBase(fastMode = false): ModelOption[] {
|
||||
const antModelOptions: ModelOption[] = getAntModels().map(m => ({
|
||||
value: m.alias,
|
||||
label: m.label,
|
||||
description: m.description ?? `[ANT-ONLY] ${m.label} (${m.model})`,
|
||||
description: m.description ?? `[internal] ${m.label} (${m.model})`,
|
||||
}))
|
||||
|
||||
return [
|
||||
|
||||
@@ -274,7 +274,7 @@ async function executeForkedSlashCommand(command: CommandBase & PromptCommand, a
|
||||
|
||||
// Prepend debug log for ant users so it appears inside the command output
|
||||
if ("external" === 'ant') {
|
||||
resultText = `[ANT-ONLY] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}\n${resultText}`;
|
||||
resultText = `[internal] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}\n${resultText}`;
|
||||
}
|
||||
|
||||
// Return the result as a user message (simulates the agent's output)
|
||||
|
||||
@@ -73,7 +73,7 @@ export function getMacOSPlistPaths(): Array<{ path: string; label: string }> {
|
||||
'Preferences',
|
||||
`${MACOS_PREFERENCE_DOMAIN}.plist`,
|
||||
),
|
||||
label: 'user preferences (ant-only)',
|
||||
label: 'user preferences (internal-only)',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user