Skip to content

Commit 7983b0c

Browse files
committed
run prettier on all files
1 parent f90bcad commit 7983b0c

File tree

174 files changed

+1131
-1000
lines changed

Some content is hidden

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

174 files changed

+1131
-1000
lines changed

.agents/base2/base2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ ${buildArray(
143143
'- You must spawn a file-researcher to find relevant files; consider also spawning a web and/or docs researcher to find relevant information online.',
144144
'- Read **ALL** the files that the file-researcher found using the read_files tool. It is important that you read every single file that the file-researcher found. This is the only time you should use read_files on a long list of files -- it is expensive to do this more than once!',
145145
`- Consider spawning other agents or reading more files as needed to gather comprehensive context to answer the user's request.`,
146-
isFast && `- Use the write_todos tool to write out your step-by-step implementation plan.${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes.'}`,
146+
isFast &&
147+
`- Use the write_todos tool to write out your step-by-step implementation plan.${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes.'}`,
147148
isFast &&
148149
`- Use the str_replace or write_file tool to make the changes. (Pause after making all the changes to see the tool results of your edits and double check they went through correctly.)`,
149150
isMax &&

.agents/editor/code-sketcher.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const definition: SecretAgentDefinition = {
1111
inputSchema: {
1212
prompt: {
1313
type: 'string',
14-
description: 'The coding task to sketch out, including the key sections of logic or interfaces it should focus on.',
14+
description:
15+
'The coding task to sketch out, including the key sections of logic or interfaces it should focus on.',
1516
},
1617
},
1718
outputMode: 'last_message',

.agents/file-explorer/file-q-and-a.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ Read the file and answer the user's question about it. Depending on what they're
4141
- For specific questions: focus on the relevant parts and provide clear explanations
4242
- For excerpts: reproduce the requested code exactly as it appears in the file
4343
`.trim(),
44-
stepPrompt: 'Do not use any tools again. Just answer the question about the file.',
44+
stepPrompt:
45+
'Do not use any tools again. Just answer the question about the file.',
4546

4647
handleSteps: function* ({ prompt, params }) {
4748
const filePath = params?.filePath

.agents/planners/planner-pro.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const definition: SecretAgentDefinition = {
99
model: 'openai/gpt-5-pro',
1010
publisher,
1111
displayName: 'Planner Pro',
12-
spawnerPrompt: 'Uses deep thinking to generate an implementation plan for a user request.',
12+
spawnerPrompt:
13+
'Uses deep thinking to generate an implementation plan for a user request.',
1314
inputSchema: {},
1415
outputMode: 'last_message',
1516
spawnableAgents: [],

.agents/researcher/researcher-grok-4-fast.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ const definition: SecretAgentDefinition = {
1010
model: 'x-ai/grok-4-fast',
1111
displayName: 'Grok 4 Fast Researcher',
1212
toolNames: ['spawn_agents'],
13-
spawnableAgents: [
14-
'file-explorer',
15-
'researcher-web',
16-
'researcher-docs',
17-
],
13+
spawnableAgents: ['file-explorer', 'researcher-web', 'researcher-docs'],
1814

1915
inputSchema: {
2016
prompt: {

.agents/thinker/deep-thinker.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ const definition: AgentDefinition = {
1414
},
1515

1616
toolNames: ['spawn_agents'],
17-
spawnableAgents: [
18-
'gpt5-thinker',
19-
'sonnet-thinker',
20-
'gemini-thinker',
21-
],
17+
spawnableAgents: ['gpt5-thinker', 'sonnet-thinker', 'gemini-thinker'],
2218

2319
includeMessageHistory: true,
2420
inputSchema: {

.agents/thinker/thinker-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ const definition: SecretAgentDefinition = {
88
model: 'x-ai/grok-4-fast',
99
}
1010

11-
export default definition
11+
export default definition

backend/src/util/auth-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export function extractAuthTokenFromHeader(req: Request): string | undefined {
77
const token = req.headers['x-codebuff-api-key'] as string | undefined
88
// Trim any whitespace that might be present
99
return token?.trim()
10-
}
10+
}

cli/scripts/build-binary.ts

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ async function main() {
170170
chmodSync(outputFile, 0o755)
171171
}
172172

173-
logAlways(`✅ Built ${outputFilename} (${targetInfo.platform}-${targetInfo.arch})`)
173+
logAlways(
174+
`✅ Built ${outputFilename} (${targetInfo.platform}-${targetInfo.arch})`,
175+
)
174176
}
175177

176178
main().catch((error: unknown) => {
@@ -232,9 +234,13 @@ async function ensureOpenTuiNativeBundle(targetInfo: TargetInfo) {
232234
},
233235
]
234236

235-
const missingTargets = installTargets.filter(({ packageDir }) => !existsSync(packageDir))
237+
const missingTargets = installTargets.filter(
238+
({ packageDir }) => !existsSync(packageDir),
239+
)
236240
if (missingTargets.length === 0) {
237-
log(`OpenTUI native bundle already present for ${targetInfo.platform}-${targetInfo.arch}`)
241+
log(
242+
`OpenTUI native bundle already present for ${targetInfo.platform}-${targetInfo.arch}`,
243+
)
238244
return
239245
}
240246

@@ -252,7 +258,9 @@ async function ensureOpenTuiNativeBundle(targetInfo: TargetInfo) {
252258
}
253259
const version = corePackageJson.optionalDependencies?.[packageName]
254260
if (!version) {
255-
log(`No optional dependency declared for ${packageName}; skipping native bundle fetch`)
261+
log(
262+
`No optional dependency declared for ${packageName}; skipping native bundle fetch`,
263+
)
256264
return
257265
}
258266

@@ -306,15 +314,27 @@ async function ensureOpenTuiNativeBundle(targetInfo: TargetInfo) {
306314
mkdirSync(target.packageDir, { recursive: true })
307315

308316
if (!existsSync(target.packageDir)) {
309-
throw new Error(`Failed to create directory for ${packageName}: ${target.packageDir}`)
317+
throw new Error(
318+
`Failed to create directory for ${packageName}: ${target.packageDir}`,
319+
)
310320
}
311321

312322
const tarballForTar =
313-
process.platform === 'win32' ? tarballPath.replace(/\\/g, '/') : tarballPath
323+
process.platform === 'win32'
324+
? tarballPath.replace(/\\/g, '/')
325+
: tarballPath
314326
const extractDirForTar =
315-
process.platform === 'win32' ? target.packageDir.replace(/\\/g, '/') : target.packageDir
316-
317-
const tarArgs = ['-xzf', tarballForTar, '--strip-components=1', '-C', extractDirForTar]
327+
process.platform === 'win32'
328+
? target.packageDir.replace(/\\/g, '/')
329+
: target.packageDir
330+
331+
const tarArgs = [
332+
'-xzf',
333+
tarballForTar,
334+
'--strip-components=1',
335+
'-C',
336+
extractDirForTar,
337+
]
318338
if (process.platform === 'win32') {
319339
tarArgs.unshift('--force-local')
320340
}
@@ -324,7 +344,9 @@ async function ensureOpenTuiNativeBundle(targetInfo: TargetInfo) {
324344
`Installed OpenTUI native bundle for ${targetInfo.platform}-${targetInfo.arch} in ${target.label}`,
325345
)
326346
}
327-
logAlways(`Fetched OpenTUI native bundle for ${targetInfo.platform}-${targetInfo.arch}`)
347+
logAlways(
348+
`Fetched OpenTUI native bundle for ${targetInfo.platform}-${targetInfo.arch}`,
349+
)
328350
} finally {
329351
rmSync(tempDir, { recursive: true, force: true })
330352
}

cli/src/login/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ export function parseLogoLines(logo: string): string[] {
101101
/**
102102
* Calculates responsive layout dimensions based on terminal size
103103
*/
104-
export function calculateResponsiveLayout(terminalWidth: number, terminalHeight: number) {
104+
export function calculateResponsiveLayout(
105+
terminalWidth: number,
106+
terminalHeight: number,
107+
) {
105108
// Responsive breakpoints based on terminal height
106109
const isVerySmall = terminalHeight < 15 // Minimal UI
107110
const isSmall = terminalHeight >= 15 && terminalHeight < 20 // Compact UI

0 commit comments

Comments
 (0)