more claude references

This commit is contained in:
x1xhlol
2026-04-01 18:05:13 +02:00
Unverified
parent cd9537eddf
commit b181c9925d
2 changed files with 13 additions and 8 deletions

View File

@@ -43,7 +43,11 @@ import pMap from 'p-map'
import { getOriginalCwd, getSessionId } from '../../bootstrap/state.js' import { getOriginalCwd, getSessionId } from '../../bootstrap/state.js'
import type { Command } from '../../commands.js' import type { Command } from '../../commands.js'
import { getOauthConfig } from '../../constants/oauth.js' import { getOauthConfig } from '../../constants/oauth.js'
import { PRODUCT_URL } from '../../constants/product.js' import {
PRODUCT_NAME,
PRODUCT_SLUG,
PRODUCT_URL,
} from '../../constants/product.js'
import type { AppState } from '../../state/AppState.js' import type { AppState } from '../../state/AppState.js'
import { import {
type Tool, type Tool,
@@ -984,10 +988,10 @@ export const connectToServer = memoize(
const client = new Client( const client = new Client(
{ {
name: 'claude-code', name: PRODUCT_SLUG,
title: 'Claude Code', title: PRODUCT_NAME,
version: MACRO.VERSION ?? 'unknown', version: MACRO.VERSION ?? 'unknown',
description: "Anthropic's agentic coding tool", description: `${PRODUCT_NAME} MCP client`,
websiteUrl: PRODUCT_URL, websiteUrl: PRODUCT_URL,
}, },
{ {
@@ -3279,10 +3283,10 @@ export async function setupSdkMcpClients(
const client = new Client( const client = new Client(
{ {
name: 'claude-code', name: PRODUCT_SLUG,
title: 'Claude Code', title: PRODUCT_NAME,
version: MACRO.VERSION ?? 'unknown', version: MACRO.VERSION ?? 'unknown',
description: "Anthropic's agentic coding tool", description: `${PRODUCT_NAME} MCP client`,
websiteUrl: PRODUCT_URL, websiteUrl: PRODUCT_URL,
}, },
{ {

View File

@@ -4,6 +4,7 @@ import { env } from '../utils/env.js'
import { execFileNoThrow } from '../utils/execFileNoThrow.js' import { execFileNoThrow } from '../utils/execFileNoThrow.js'
import { executeNotificationHooks } from '../utils/hooks.js' import { executeNotificationHooks } from '../utils/hooks.js'
import { logError } from '../utils/log.js' import { logError } from '../utils/log.js'
import { PRODUCT_NAME } from '../constants/product.js'
import { import {
type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
logEvent, logEvent,
@@ -35,7 +36,7 @@ export async function sendNotification(
}) })
} }
const DEFAULT_TITLE = 'Claude Code' const DEFAULT_TITLE = PRODUCT_NAME
async function sendToChannel( async function sendToChannel(
channel: string, channel: string,