Skip to content

Commit e7a210f

Browse files
committed
fix typechecker
1 parent 83eb622 commit e7a210f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

backend/src/__tests__/process-str-replace.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ describe('Benchify resilience', () => {
549549
],
550550
toolCalls: [],
551551
toolResults: [],
552-
ws: {} as any,
553552
agentStepId: 'test-step',
554553
clientSessionId: 'test-session',
555554
userInputId: 'test-input',
@@ -578,7 +577,6 @@ describe('Benchify resilience', () => {
578577
deferredStrReplaces: [],
579578
toolCalls: [],
580579
toolResults: [],
581-
ws: {} as any,
582580
agentStepId: 'test-step',
583581
clientSessionId: 'test-session',
584582
userInputId: 'test-input',
@@ -617,7 +615,6 @@ describe('Benchify resilience', () => {
617615
deferredStrReplaces: [],
618616
toolCalls: [],
619617
toolResults: [],
620-
ws: {} as any,
621618
agentStepId: 'test-step',
622619
clientSessionId: 'test-session',
623620
userInputId: 'test-input',

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const testLogger: Logger = {
1111
warn: () => {},
1212
}
1313

14-
export const TEST_AGENT_RUNTIME_IMPL: AgentRuntimeDeps = Object.freeze({
14+
export const TEST_AGENT_RUNTIME_IMPL = Object.freeze<AgentRuntimeDeps>({
1515
// Database
1616
getUserInfoFromApiKey: async () => ({
1717
id: 'test-user-id',
@@ -38,8 +38,8 @@ export const TEST_AGENT_RUNTIME_IMPL: AgentRuntimeDeps = Object.freeze({
3838
logger: testLogger,
3939
})
4040

41-
export const TEST_AGENT_RUNTIME_SCOPED_IMPL: AgentRuntimeScopedDeps =
42-
Object.freeze({
41+
export const TEST_AGENT_RUNTIME_SCOPED_IMPL =
42+
Object.freeze<AgentRuntimeScopedDeps>({
4343
// Database
4444
requestToolCall: () => {
4545
throw new Error('requestToolCall not implemented in test runtime')
@@ -53,4 +53,7 @@ export const TEST_AGENT_RUNTIME_SCOPED_IMPL: AgentRuntimeScopedDeps =
5353
requestOptionalFile: () => {
5454
throw new Error('requestOptionalFile not implemented in test runtime')
5555
},
56+
sendSubagentChunk: () => {
57+
throw new Error('sendSubagentChunk not implemented in test runtime')
58+
},
5659
})

evals/impl/agent-runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { AgentRuntimeDeps } from '@codebuff/common/types/contracts/agent-runtime'
22

3-
export const EVALS_AGENT_RUNTIME_IMPL: AgentRuntimeDeps = Object.freeze({
3+
export const EVALS_AGENT_RUNTIME_IMPL = Object.freeze<AgentRuntimeDeps>({
44
// Database
55
getUserInfoFromApiKey: async () => ({
66
id: 'test-user-id',

0 commit comments

Comments
 (0)