Skip to content

Commit 3b790af

Browse files
committed
Merge remote-tracking branch 'origin/main' into brandon/mock-db
2 parents 6965e13 + f83289c commit 3b790af

File tree

29 files changed

+3903
-99
lines changed

29 files changed

+3903
-99
lines changed

.agents/base2/base2.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,12 @@ ${buildArray(
314314
`- For any task requiring 3+ steps, use the write_todos tool to write out your step-by-step implementation plan. Include ALL of the applicable tasks in the list.${isFast ? '' : ' You should include a step to review the changes after you have implemented the changes.'}:${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'} You may be able to do reviewing and validation in parallel in the same step. Skip write_todos for simple tasks like quick edits or answering questions.`,
315315
(isDefault || isMax) &&
316316
`- For quick problems, use <think></think> tags to think through the problem. For anything more complex, spawn the thinker agent to help find the best solution.`,
317-
isMax &&
318-
'You should use <think></think> tags all the time to help arrive at the best solution!',
319317
isLite &&
320318
'- IMPORTANT: You must spawn the editor-gpt-5 agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
321319
isDefault &&
322320
'- IMPORTANT: You must spawn the editor agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all non-trivial changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
323321
isMax &&
324-
`- IMPORTANT: You must spawn the editor-multi-prompt agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very straightforward and obvious.`,
322+
`- IMPORTANT: You must spawn the editor-multi-prompt agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very straightforward and obvious. You should also prompt it to implement the full task rather than just a single step.`,
325323
isFast &&
326324
'- Implement the changes using the str_replace or write_file tools. Implement all the changes in one go.',
327325
isFast &&

common/src/testing/fixtures/agent-runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const TEST_AGENT_RUNTIME_IMPL = Object.freeze<
6161
email: 'test-email',
6262
discord_id: 'test-discord-id',
6363
referral_code: 'ref-test-code',
64+
banned: false,
6465
}),
6566
fetchAgentFromDatabase: async () => null,
6667
startAgentRun: async () => 'test-agent-run-id',

common/src/types/contracts/database.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ type User = {
5151
email: string
5252
discord_id: string | null
5353
referral_code: string | null
54+
banned: boolean
5455
}
55-
export const userColumns = ['id', 'email', 'discord_id', 'referral_code'] as const
56+
export const userColumns = ['id', 'email', 'discord_id', 'referral_code', 'banned'] as const
5657
export type UserColumn = keyof User
5758
export type GetUserInfoFromApiKeyInput<T extends UserColumn> = {
5859
apiKey: string

evals/impl/agent-runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const EVALS_AGENT_RUNTIME_IMPL = Object.freeze<AgentRuntimeDeps>({
3737
email: 'test-email',
3838
discord_id: 'test-discord-id',
3939
referral_code: 'ref-test-code',
40+
banned: false,
4041
}),
4142
fetchAgentFromDatabase: async () => null,
4243
startAgentRun: async () => 'test-agent-run-id',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE "user" ADD COLUMN "banned" boolean DEFAULT false NOT NULL;

0 commit comments

Comments
 (0)