Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bridge/bridgeUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
6 changes: 3 additions & 3 deletions src/commands/context/context-noninteractive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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`
Expand Down
6 changes: 3 additions & 3 deletions src/components/ContextVisualization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/DevBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/HelpV2/HelpV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/components/InterruptedByUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
4 changes: 2 additions & 2 deletions src/components/LogoV2/LogoV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/services/api/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
Expand Down
4 changes: 2 additions & 2 deletions src/services/tips/tipRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
4 changes: 2 additions & 2 deletions src/tools/AgentTool/UI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/analyzeContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/model/modelOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/processUserInput/processSlashCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings/mdm/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
})
}

Expand Down
Loading