You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Warning: You are running this wizard inside a folder that is not a git repository. The wizard may edit files.",
23
-
continueOutsideRepoQuestion: "Continue without a git repository?",
22
+
outsideRepoWarning: `${chalk.yellow.bold("Warning:")} You are running this wizard inside a folder that is not a git repository. The wizard may edit files. ${chalk.bold("Continue without a git repository?")}`,
"Braintrust CLI was installed, but the wizard could not find `bt` in PATH or the default install location. Open a new shell and run `bt status` to verify it.",
"Braintrust CLI was installed, but the wizard could not find `bt` in PATH or the default install location. Install the CLI manually:\nhttps://www.braintrust.dev/docs/reference/cli/quickstart",
"The wizard will now create .env.braintrust and .braintrust.json files that are used to authenticate your application to Braintrust. They will be used for local testing.",
183
-
existingNotice:
184
-
"A local Braintrust token file already exists. The wizard can replace local token files with the API key for this Braintrust project.",
185
-
replaceQuestion: "Replace local Braintrust token files?",
186
-
replaceChoices: {
187
-
yes: {
188
-
label: "Yes (recommended)",
189
-
hint: "Use this project key",
190
-
},
191
-
no: {
192
-
label: "No",
193
-
hint: "Keep existing file",
194
-
},
195
-
},
196
-
outsideGitRepo: (apiKey: string)=>
197
-
`BRAINTRUST_API_KEY=${apiKey}\nNot in a git repo — set this in your environment manually.`,
198
-
keptTokenFiles: ()=>
199
-
"Kept existing local Braintrust token files unchanged.",
200
-
gitignoreNote: (args: {
201
-
readonlyadded: boolean;
202
-
readonlyalreadyCovered: boolean;
203
-
})=>{
204
-
if(args.added){
205
-
return"Updated .gitignore for local Braintrust token files.";
206
-
}
207
-
if(args.alreadyCovered){
208
-
returnundefined;
209
-
}
210
-
return".gitignore unchanged.";
211
-
},
212
-
},
213
181
manual: {
214
-
title: "Manual instrumentation",
215
-
note: (docsLink: string)=>
182
+
completedQuestion: (docsLink: string)=>
216
183
[
217
-
"Follow the Braintrust instrumentation docs for your project.",
184
+
"Follow the Braintrust instrumentation docs for your project:",
185
+
chalk.cyanBright(docsLink),
218
186
"",
219
-
docsLink,
187
+
chalk.bold(
188
+
"Did you complete setting up Braintrust by following the docs?\n",
"How should Braintrust Setup deliver the instrumentation prompt?",
200
+
"How do you want to receive the prompt for your coding agent?",
232
201
copyToClipboard: "Copy to clipboard",
233
202
printToTerminal: "Print to terminal",
234
203
copiedToClipboard: "Copied instrumentation prompt to clipboard.",
235
204
clipboardFailed: (message: string)=>
236
205
`Could not copy the instrumentation prompt to the clipboard: ${message}`,
237
206
completedQuestion:
238
-
"Give the above prompt to your coding agent and proceed when the agent has completed the task.",
207
+
"Paste the above prompt into your coding agent. Press enter and proceed when the agent has completed the task.",
239
208
completedChoices: {
240
209
confirm: {
241
210
label: "Confirm and proceed",
242
-
hint: "Continue setup",
211
+
hint: "Press Enter to continue",
243
212
},
244
213
},
245
214
},
246
215
},
247
216
248
217
logs: {
249
-
projectLogsUrl: (url: string)=>`Check your Braintrust logs: ${url}`,
218
+
checkQuestion: (url: string)=>
219
+
[
220
+
"Your application should now be instrumented with Braintrust tracing.",
221
+
"",
222
+
chalk.bold(
223
+
"Please run your app locally now, and invoke AI functionality to confirm whether AI calls are logged and traced.",
224
+
),
225
+
"",
226
+
`If everything is set up correctly, traces will appear in your Braintrust logs:\n${chalk.cyanBright(url)}`,
227
+
"",
228
+
chalk.dim(
229
+
`If traces are not showing up, visit the troubleshooting guide:\nhttps://www.braintrust.dev/docs/kb/troubleshooting-guides\n`,
230
+
),
231
+
].join("\n"),
232
+
checked: "I've confirmed my application is sending traces.",
233
+
hint: "Press Enter to continue",
250
234
},
251
235
252
236
productionToken: {
253
-
title: "Production token",
254
-
noteWithEnvFile: (envFilePath: string)=>
255
-
`The local Braintrust token files contain a BRAINTRUST_API_KEY token. Add that token to your deployment platform's environment variables so tracing works in production.\n\nEnv file: ${envFilePath}`,
256
-
noteWithoutEnvFile:
257
-
"Add the BRAINTRUST_API_KEY token to your deployment platform's environment variables so tracing works in production.",
258
-
question: "Have you added BRAINTRUST_API_KEY to your deployment platform?",
259
-
understood: "Understood",
237
+
question: `Production Setup: Add the ${chalk.cyanBright("BRAINTRUST_API_KEY")} token from your local ${chalk.bold("./.env.braintrust")} file to your production environment as environment variable.\n`,
238
+
confirmed: `I have added ${chalk.bold("BRAINTRUST_API_KEY")} to my production env.`,
"This file was generated by the Braintrust CLI wizard. This file contains sensitive information. Do not commit this file to version control! The file can be safely deleted after confirming your application sends traces.";
48
+
"This file was generated by the Braintrust wizard. This file contains sensitive information. Do not commit this file to version control! The file can be safely deleted after confirming your application sends traces.";
0 commit comments