diff --git a/package.json b/package.json index f9d384346..07b3dbb53 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,20 @@ { "name": "@costrict/csc", - "version": "4.0.12", + "version": "4.0.13-beta.0", "description": "costrict", "type": "module", - "author": "claude-code-best ", + "author": "costrict", "repository": { "type": "git", - "url": "git+https://github.com/claude-code-best/claude-code.git" + "url": "git+https://github.com/y574444354/csc.git" }, - "homepage": "https://github.com/claude-code-best/claude-code#readme", + "homepage": "https://github.com/y574444354/csc#readme", "bugs": { - "url": "https://github.com/claude-code-best/claude-code/issues" + "url": "https://github.com/y574444354/csc/issues" }, "keywords": [ - "claude", - "anthropic", + "csc", + "CoStrict", "cli", "ai", "coding-assistant", diff --git a/scripts/defines.ts b/scripts/defines.ts index 8dcc12002..d91a96970 100644 --- a/scripts/defines.ts +++ b/scripts/defines.ts @@ -7,7 +7,7 @@ */ export function getMacroDefines(): Record { return { - "MACRO.VERSION": JSON.stringify("4.0.12"), + "MACRO.VERSION": JSON.stringify("4.0.13-beta.0"), "MACRO.BUILD_TIME": JSON.stringify(new Date().toISOString()), "MACRO.FEEDBACK_CHANNEL": JSON.stringify(""), "MACRO.ISSUES_EXPLAINER": JSON.stringify(""), diff --git a/src/constants/prompts.ts b/src/constants/prompts.ts index 02b68f94f..3ee2b59a4 100644 --- a/src/constants/prompts.ts +++ b/src/constants/prompts.ts @@ -213,7 +213,7 @@ function getSimpleDoingTasksSection(): string { ] const userHelpSubitems = [ - `/help: Get help with using Claude Code`, + `/help: Get help with using CoStrict`, `To give feedback, users should ${MACRO.ISSUES_EXPLAINER}`, ] @@ -539,7 +539,7 @@ export async function getSystemPrompt( ): Promise { if (isEnvTruthy(process.env.CLAUDE_CODE_SIMPLE)) { return [ - `You are Claude Code, Anthropic's official CLI for Claude.\n\nCWD: ${getCwd()}\nDate: ${getSessionStartDate()}`, + `You are CoStrict, an AI coding assistant.\n\nCWD: ${getCwd()}\nDate: ${getSessionStartDate()}`, ] } @@ -775,10 +775,10 @@ export async function computeSimpleEnvInfo( : `The most recent Claude model family is Claude 4.5/4.6/4.7. Model IDs — Opus 4.7: '${CLAUDE_LATEST_MODEL_IDS.opus}', Sonnet 4.6: '${CLAUDE_LATEST_MODEL_IDS.sonnet}', Haiku 4.5: '${CLAUDE_LATEST_MODEL_IDS.haiku}'. When building AI applications, default to the latest and most capable Claude models.`, process.env.USER_TYPE === 'ant' && isUndercover() ? null - : `Claude Code is available as a CLI in the terminal, desktop app (Mac/Windows), web app (claude.ai/code), and IDE extensions (VS Code, JetBrains). Claude is also accessible via Claude in Chrome (a browsing agent), Claude in Excel (a spreadsheet agent), and Cowork (desktop automation for non-developers).`, + : `CoStrict is available as a CLI in the terminal.`, process.env.USER_TYPE === 'ant' && isUndercover() ? null - : `Fast mode for Claude Code uses the same ${FRONTIER_MODEL_NAME} model with faster output. It does NOT switch to a different model. It can be toggled with /fast.`, + : `Fast mode for CoStrict uses the same ${FRONTIER_MODEL_NAME} model with faster output. It does NOT switch to a different model. It can be toggled with /fast.`, ].filter(item => item !== null) return [ @@ -836,7 +836,7 @@ export function getUnameSR(): string { return `${osType()} ${osRelease()}` } -export const DEFAULT_AGENT_PROMPT = `You are an agent for Claude Code, Anthropic's official CLI for Claude. Given the user's message, you should use the tools available to complete the task. Complete the task fully—don't gold-plate, but don't leave it half-done. When you complete the task, respond with a concise report covering what was done and any key findings — the caller will relay this to the user, so it only needs the essentials.` +export const DEFAULT_AGENT_PROMPT = `You are an agent for CoStrict. Given the user's message, you should use the tools available to complete the task. Complete the task fully—don't gold-plate, but don't leave it half-done. When you complete the task, respond with a concise report covering what was done and any key findings — the caller will relay this to the user, so it only needs the essentials.` export async function enhanceSystemPromptWithEnvDetails( existingSystemPrompt: string[], diff --git a/src/entrypoints/cli.tsx b/src/entrypoints/cli.tsx index 844c4d710..6cb7feec8 100644 --- a/src/entrypoints/cli.tsx +++ b/src/entrypoints/cli.tsx @@ -80,7 +80,7 @@ async function main(): Promise { (args[0] === '--version' || args[0] === '-v' || args[0] === '-V') ) { // MACRO.VERSION is inlined at build time - console.log(`${MACRO.VERSION} (Claude Code)`) + console.log(`${MACRO.VERSION} (csc)`) return } diff --git a/src/main.tsx b/src/main.tsx index a3cd69809..77440e614 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -4992,7 +4992,7 @@ async function run(): Promise { } } - // --remote and --teleport both create/resume Claude Code Web (CCR) sessions. + // --remote and --teleport both create/resume CoStrict remote sessions. // Remote Control (--rc) is a separate feature gated in initReplBridge.ts. if (remote !== null || teleport) { await waitForPolicyLimitsToLoad(); @@ -6722,14 +6722,6 @@ async function run(): Promise { }, ); - // claude update — update ccb to the latest version via npm or bun - program - .command("update") - .description("Update claude-code-best (ccb) to the latest version") - .action(async () => { - const { updateCCB } = await import("./cli/updateCCB.js"); - await updateCCB(); - }); // ant-only commands if (process.env.USER_TYPE === "ant") {