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:
@@ -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