* chore: rebrand user-facing copy to OpenClaude Replace lingering Claude Code branding in CLI, tips, and runtime UI with OpenClaude/openclaude, including the startup tip Gitlawb mention. Co-Authored-By: Claude GPT-5.4 <noreply@openclaude.dev> * chore: address branding-sweep review feedback - PermissionRequest.tsx: rebrand the two remaining "Claude needs your approval/permission" notifications to OpenClaude (review-artifact and generic tool permission paths). - main.tsx, teleport.tsx, session.tsx, WebFetchTool/utils.ts, skills/bundled/{debug,updateConfig}.ts: replace leftover `claude --…` CLI hints and "Claude Code" labels missed by the original sweep. - main.tsx: drop the inline gitlawb.com marketing copy from the stale-prompt tip; keep it a pure rebrand. - auth.ts: finish the half-rename so both `claude setup-token` and `claude auth login` references in the same error block now read `openclaude …`. - mcp/client.ts: keep `name: 'claude-code'` for MCP server allowlist compatibility (now explicit via comment) and replace the "Anthropic's agentic coding tool" description with an OpenClaude one. - MCPSettings.tsx: point the empty-server-list hint at https://github.com/Gitlawb/openclaude instead of code.claude.com. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: replace help link with OpenClaude repo URL Replace https://code.claude.com/docs/en/overview with https://github.com/Gitlawb/openclaude in the help screen. Co-Authored-By: OpenClaude <openclaude@gitlawb.com> --------- Co-authored-by: Claude GPT-5.4 <noreply@openclaude.dev> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: OpenClaude <openclaude@gitlawb.com>
92 lines
3.0 KiB
TypeScript
92 lines
3.0 KiB
TypeScript
import figures from 'figures';
|
|
import { homedir } from 'os';
|
|
import * as React from 'react';
|
|
import { Box, Text } from '../../ink.js';
|
|
import type { Step } from '../../projectOnboardingState.js';
|
|
import { formatCreditAmount, getCachedReferrerReward } from '../../services/api/referral.js';
|
|
import type { LogOption } from '../../types/logs.js';
|
|
import { getCwd } from '../../utils/cwd.js';
|
|
import { formatRelativeTimeAgo } from '../../utils/format.js';
|
|
import type { FeedConfig, FeedLine } from './Feed.js';
|
|
export function createRecentActivityFeed(activities: LogOption[]): FeedConfig {
|
|
const lines: FeedLine[] = activities.map(log => {
|
|
const time = formatRelativeTimeAgo(log.modified);
|
|
const description = log.summary && log.summary !== 'No prompt' ? log.summary : log.firstPrompt;
|
|
return {
|
|
text: description || '',
|
|
timestamp: time
|
|
};
|
|
});
|
|
return {
|
|
title: 'Recent Sessions',
|
|
lines,
|
|
footer: lines.length > 0 ? '/resume for more' : undefined,
|
|
emptyMessage: 'No recent sessions'
|
|
};
|
|
}
|
|
export function createWhatsNewFeed(releaseNotes: string[]): FeedConfig {
|
|
const lines: FeedLine[] = releaseNotes.map(note => {
|
|
if ("external" === 'ant') {
|
|
const match = note.match(/^(\d+\s+\w+\s+ago)\s+(.+)$/);
|
|
if (match) {
|
|
return {
|
|
timestamp: match[1],
|
|
text: match[2] || ''
|
|
};
|
|
}
|
|
}
|
|
return {
|
|
text: note
|
|
};
|
|
});
|
|
const emptyMessage = "external" === 'ant' ? 'Unable to fetch latest claude-cli-internal commits' : 'Check /release-notes for recent updates';
|
|
return {
|
|
title: "external" === 'ant' ? "OpenClaude Updates [internal-only: Latest CC commits]" : "OpenClaude Updates",
|
|
lines,
|
|
footer: lines.length > 0 ? '/release-notes for more' : undefined,
|
|
emptyMessage
|
|
};
|
|
}
|
|
export function createProjectOnboardingFeed(steps: Step[]): FeedConfig {
|
|
const enabledSteps = steps.filter(({
|
|
isEnabled
|
|
}) => isEnabled).sort((a, b) => Number(a.isComplete) - Number(b.isComplete));
|
|
const lines: FeedLine[] = enabledSteps.map(({
|
|
text,
|
|
isComplete
|
|
}) => {
|
|
const checkmark = isComplete ? `${figures.tick} ` : '';
|
|
return {
|
|
text: `${checkmark}${text}`
|
|
};
|
|
});
|
|
const warningText = getCwd() === homedir() ? 'Note: You have launched openclaude in your home directory. For the best experience, launch it in a project directory instead.' : undefined;
|
|
if (warningText) {
|
|
lines.push({
|
|
text: warningText
|
|
});
|
|
}
|
|
return {
|
|
title: 'Tips for getting started',
|
|
lines
|
|
};
|
|
}
|
|
export function createGuestPassesFeed(): FeedConfig {
|
|
const reward = getCachedReferrerReward();
|
|
const subtitle = reward ? `Share OpenClaude and earn ${formatCreditAmount(reward)} of extra usage` : 'Share OpenClaude with friends';
|
|
return {
|
|
title: '3 guest passes',
|
|
lines: [],
|
|
customContent: {
|
|
content: <>
|
|
<Box marginY={1}>
|
|
<Text color="claude">[✻] [✻] [✻]</Text>
|
|
</Box>
|
|
<Text dimColor>{subtitle}</Text>
|
|
</>,
|
|
width: 48
|
|
},
|
|
footer: '/passes'
|
|
};
|
|
}
|