Skip to content

Commit 7ea3f23

Browse files
committed
Apply ESLint auto-fixes and replace as any casts with typed mock factories in tests
1 parent eba49bc commit 7ea3f23

File tree

375 files changed

+1232
-1110
lines changed

Some content is hidden

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

375 files changed

+1232
-1110
lines changed

.agents/lib/cli-agent-prompts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import type { CliAgentConfig } from './cli-agent-types'
21
import { CLI_AGENT_MODES } from './cli-agent-types'
32

3+
import type { CliAgentConfig } from './cli-agent-types'
4+
45
const TMUX_SESSION_DOCS = `## Session Logs (Paper Trail)
56
67
All session data is stored in **YAML format** in \`debug/tmux-sessions/{session-name}/\`:

.agents/lib/create-cli-agent.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import type { AgentDefinition } from '../types/agent-definition'
2-
import type { CliAgentConfig } from './cli-agent-types'
3-
import { CLI_AGENT_MODES } from './cli-agent-types'
4-
import { outputSchema } from './cli-agent-schemas'
51
import {
62
getSpawnerPrompt,
73
getSystemPrompt,
84
getInstructionsPrompt,
95
} from './cli-agent-prompts'
6+
import { outputSchema } from './cli-agent-schemas'
7+
import { CLI_AGENT_MODES } from './cli-agent-types'
8+
9+
import type { CliAgentConfig } from './cli-agent-types'
10+
import type { AgentDefinition } from '../types/agent-definition'
1011

1112
export function createCliAgent(config: CliAgentConfig): AgentDefinition {
1213
// Simple validation for shortName since it's used in file paths

.agents/notion-researcher.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import type { AgentDefinition } from './types/agent-definition'
21
import { publisher } from './constants'
32

3+
import type { AgentDefinition } from './types/agent-definition'
4+
45
const definition: AgentDefinition = {
56
id: 'notion-researcher',
67
publisher,

agents-graveyard/base/ask.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { buildArray } from '@codebuff/common/util/array'
33
import { closeXml } from '@codebuff/common/util/xml'
44

55
import { publisher } from '../constants'
6-
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
76
import { PLACEHOLDER } from '../types/secret-agent-definition'
87

8+
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
9+
910
const definition: SecretAgentDefinition = {
1011
id: 'ask',
1112
publisher,

agents-graveyard/base/base-lite-codex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { publisher } from '../../agents/constants.ts'
21
import baseLite from './base-lite.ts'
2+
import { publisher } from '../../agents/constants.ts'
33

44
import type { SecretAgentDefinition } from '../../agents/types/secret-agent-definition.ts'
55

agents-graveyard/base/base-lite-grok-4-fast.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
import { publisher } from '../constants'
21
import {
3-
PLACEHOLDER,
4-
SecretAgentDefinition,
2+
PLACEHOLDER
53
} from 'types/secret-agent-definition'
6-
import baseLite from './base-lite'
4+
75
import { buildArray } from '@codebuff/common/util/array'
86
import { closeXml } from '@codebuff/common/util/xml'
97

8+
import baseLite from './base-lite'
9+
import { publisher } from '../constants'
10+
11+
import type {
12+
SecretAgentDefinition} from 'types/secret-agent-definition';
13+
1014
const definition: SecretAgentDefinition = {
1115
...baseLite,
1216
id: 'base-lite-grok-4-fast',

agents-graveyard/base/base-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { base } from './base-factory.ts'
2+
import { baseAgentAgentStepPrompt } from './base-prompts.ts'
23
import { publisher } from '../../agents/constants.ts'
34

45
import type { SecretAgentDefinition } from '../../agents/types/secret-agent-definition.ts'
5-
import { baseAgentAgentStepPrompt } from './base-prompts.ts'
66

77
const definition: SecretAgentDefinition = {
88
id: 'base-lite',

agents-graveyard/base2/alloy/base2-alloy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createBase2 } from '../base2'
2+
23
import type { SecretAgentDefinition } from '../../types/secret-agent-definition'
34

45
const base2 = createBase2('default')

agents-graveyard/base2/alloy/base2-gpt-5-single-step.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createBase2 } from '../../../agents/base2/base2'
2+
23
import type { SecretAgentDefinition } from '../../../agents/types/secret-agent-definition'
34

45
const definition: SecretAgentDefinition = {

agents-graveyard/base2/alloy2/base2-plan-step-gpt-5.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import planStep from './base2-plan-step'
2+
23
import type { SecretAgentDefinition } from '../../types/secret-agent-definition'
34

45
const definition: SecretAgentDefinition = {

0 commit comments

Comments
 (0)