mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
fix: 批量修正 external 字面量
This commit is contained in:
@@ -273,7 +273,7 @@ async function executeForkedSlashCommand(command: CommandBase & PromptCommand, a
|
||||
logForDebugging(`Forked slash command /${command.name} completed with agent ${agentId}`);
|
||||
|
||||
// Prepend debug log for ant users so it appears inside the command output
|
||||
if (("external" as string) === 'ant') {
|
||||
if ((process.env.USER_TYPE) === 'ant') {
|
||||
resultText = `[ANT-ONLY] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}\n${resultText}`;
|
||||
}
|
||||
|
||||
@@ -427,7 +427,7 @@ export async function processSlashCommand(inputString: string, precedingInputBlo
|
||||
logEvent('tengu_input_command', {
|
||||
...eventData,
|
||||
invocation_trigger: 'user-slash' as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
...(("external" as string) === 'ant' && {
|
||||
...((process.env.USER_TYPE) === 'ant' && {
|
||||
skill_name: commandName as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
...(returnedCommand.type === 'prompt' && {
|
||||
skill_source: returnedCommand.source as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
|
||||
@@ -495,7 +495,7 @@ export async function processSlashCommand(inputString: string, precedingInputBlo
|
||||
logEvent('tengu_input_command', {
|
||||
...eventData,
|
||||
invocation_trigger: 'user-slash' as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
...(("external" as string) === 'ant' && {
|
||||
...((process.env.USER_TYPE) === 'ant' && {
|
||||
skill_name: commandName as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
...(returnedCommand.type === 'prompt' && {
|
||||
skill_source: returnedCommand.source as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
|
||||
|
||||
Reference in New Issue
Block a user