Skip to content

Commit 7162dfa

Browse files
committed
Merge branch 'main' into decouple_and_fix_mistral
2 parents 55f6ef3 + f4ac709 commit 7162dfa

87 files changed

Lines changed: 4759 additions & 422 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/cli/update.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,12 @@ export async function update() {
400400
if (useLocalUpdate) {
401401
process.stderr.write('Try manually updating with:\n')
402402
process.stderr.write(
403-
` cd ~/.claude/local && npm update ${MACRO.PACKAGE_URL}\n`,
403+
` cd ~/.openclaude/local && npm update ${MACRO.PACKAGE_URL}\n`,
404404
)
405405
} else {
406406
process.stderr.write('Try running with sudo or fix npm permissions\n')
407407
process.stderr.write(
408-
'Or consider using native installation with: claude install\n',
408+
'Or consider using native installation with: openclaude install\n',
409409
)
410410
}
411411
await gracefulShutdown(1)
@@ -415,11 +415,11 @@ export async function update() {
415415
if (useLocalUpdate) {
416416
process.stderr.write('Try manually updating with:\n')
417417
process.stderr.write(
418-
` cd ~/.claude/local && npm update ${MACRO.PACKAGE_URL}\n`,
418+
` cd ~/.openclaude/local && npm update ${MACRO.PACKAGE_URL}\n`,
419419
)
420420
} else {
421421
process.stderr.write(
422-
'Or consider using native installation with: claude install\n',
422+
'Or consider using native installation with: openclaude install\n',
423423
)
424424
}
425425
await gracefulShutdown(1)

src/commands.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import logout from './commands/logout/index.js'
3232
import installGitHubApp from './commands/install-github-app/index.js'
3333
import installSlackApp from './commands/install-slack-app/index.js'
3434
import breakCache from './commands/break-cache/index.js'
35+
import cacheProbe from './commands/cache-probe/index.js'
3536
import mcp from './commands/mcp/index.js'
3637
import mobile from './commands/mobile/index.js'
3738
import onboarding from './commands/onboarding/index.js'
@@ -136,13 +137,15 @@ import hooks from './commands/hooks/index.js'
136137
import files from './commands/files/index.js'
137138
import branch from './commands/branch/index.js'
138139
import agents from './commands/agents/index.js'
140+
import autoFix from './commands/auto-fix.js'
139141
import plugin from './commands/plugin/index.js'
140142
import reloadPlugins from './commands/reload-plugins/index.js'
141143
import rewind from './commands/rewind/index.js'
142144
import heapDump from './commands/heapdump/index.js'
143145
import mockLimits from './commands/mock-limits/index.js'
144146
import bridgeKick from './commands/bridge-kick.js'
145147
import version from './commands/version.js'
148+
import wiki from './commands/wiki/index.js'
146149
import summary from './commands/summary/index.js'
147150
import {
148151
resetLimits,
@@ -263,8 +266,10 @@ const COMMANDS = memoize((): Command[] => [
263266
addDir,
264267
advisor,
265268
agents,
269+
autoFix,
266270
branch,
267271
btw,
272+
cacheProbe,
268273
chrome,
269274
clear,
270275
color,
@@ -324,6 +329,7 @@ const COMMANDS = memoize((): Command[] => [
324329
usage,
325330
usageReport,
326331
vim,
332+
wiki,
327333
...(webCmd ? [webCmd] : []),
328334
...(forkCmd ? [forkCmd] : []),
329335
...(buddy ? [buddy] : []),

src/commands/auto-fix.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import type { Command } from '../types/command.js'
2+
3+
const command: Command = {
4+
name: 'auto-fix',
5+
description: 'Configure auto-fix: run lint/test after AI edits',
6+
isEnabled: () => true,
7+
type: 'prompt',
8+
progressMessage: 'Configuring auto-fix...',
9+
contentLength: 0,
10+
source: 'builtin',
11+
async getPromptForCommand() {
12+
return [
13+
{
14+
type: 'text',
15+
text:
16+
'The user wants to configure auto-fix settings. Auto-fix automatically runs lint and test commands after AI file edits, feeding errors back for self-repair.\n\n' +
17+
'Current settings location: `.claude/settings.json` or `.claude/settings.local.json`\n\n' +
18+
'Example configuration:\n```json\n{\n "autoFix": {\n "enabled": true,\n "lint": "eslint . --fix",\n "test": "bun test",\n "maxRetries": 3,\n "timeout": 30000\n }\n}\n```\n\n' +
19+
'Ask the user what lint and test commands they use, then help them set up the configuration.',
20+
},
21+
]
22+
},
23+
}
24+
25+
export default command

0 commit comments

Comments
 (0)