Skip to content

Commit de5d149

Browse files
committed
rename constants to old-constants
1 parent 0c92f5f commit de5d149

File tree

103 files changed

+328
-328
lines changed

Some content is hidden

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

103 files changed

+328
-328
lines changed

.agents/factory/ask.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '../types/secret-agent-definition'
1212

1313
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
14-
import type { Model } from '@codebuff/common/constants'
14+
import type { Model } from '@codebuff/common/old-constants'
1515

1616
export const ask = (model: Model): Omit<SecretAgentDefinition, 'id'> => ({
1717
model,

.agents/factory/docs-researcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
2-
import type { Model } from '@codebuff/common/constants'
2+
import type { Model } from '@codebuff/common/old-constants'
33

44
export const docsResearcher = (
55
model: Model,

.agents/factory/researcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AGENT_PERSONAS } from '@codebuff/common/constants/agents'
22

33
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4-
import type { Model } from '@codebuff/common/constants'
4+
import type { Model } from '@codebuff/common/old-constants'
55

66
export const researcher = (
77
model: Model,

.agents/factory/reviewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { AGENT_PERSONAS } from '@codebuff/common/constants/agents'
22
import { closeXml } from '@codebuff/common/util/xml'
33

44
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
5-
import type { Model } from '@codebuff/common/constants'
5+
import type { Model } from '@codebuff/common/old-constants'
66

77
export const reviewer = (model: Model): Omit<SecretAgentDefinition, 'id'> => ({
88
model,

.agents/factory/superagent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { AGENT_PERSONAS } from '@codebuff/common/constants/agents'
22
import { AgentTemplateTypes } from '@codebuff/common/types/session-state'
33

44
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
5-
import type { Model } from '@codebuff/common/constants'
5+
import type { Model } from '@codebuff/common/old-constants'
66

77
export const superagent = (
88
model: Model,

.agents/factory/thinker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AGENT_PERSONAS } from '@codebuff/common/constants/agents'
22

33
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4-
import type { Model } from '@codebuff/common/constants'
4+
import type { Model } from '@codebuff/common/old-constants'
55
export const thinker = (model: Model): Omit<SecretAgentDefinition, 'id'> => ({
66
model,
77
displayName: AGENT_PERSONAS.thinker.displayName,

.agents/factory/thinking-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '../prompts'
99

1010
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
11-
import type { Model } from '@codebuff/common/constants'
11+
import type { Model } from '@codebuff/common/old-constants'
1212
import type { ToolCall } from '@codebuff/common/templates/initial-agents-dir/types/agent-definition'
1313

1414
const baseAgentToolNames = [

.agents/factory/web-researcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
2-
import type { Model } from '@codebuff/common/constants'
2+
import type { Model } from '@codebuff/common/old-constants'
33

44
export const webResearcher = (
55
model: Model,

.agents/prompts/ask-prompts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { models } from '@codebuff/common/constants'
1+
import { models } from '@codebuff/common/old-constants'
22
import { getToolCallString } from '@codebuff/common/tools/utils'
33
import { buildArray } from '@codebuff/common/util/array'
44
import { closeXml } from '@codebuff/common/util/xml'
55

66
import { PLACEHOLDER } from '../types/secret-agent-definition'
77

8-
import type { Model } from '@codebuff/common/constants'
8+
import type { Model } from '@codebuff/common/old-constants'
99

1010
export const askAgentSystemPrompt = (model: Model) => {
1111
return `# Persona: Buffy - The Enthusiastic Coding Assistant

.agents/prompts/base-prompts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { models } from '@codebuff/common/constants'
1+
import { models } from '@codebuff/common/old-constants'
22
import { getToolCallString } from '@codebuff/common/tools/utils'
33
import { buildArray } from '@codebuff/common/util/array'
44
import { closeXml } from '@codebuff/common/util/xml'
55

66
import { PLACEHOLDER } from '../types/secret-agent-definition'
77

8-
import type { Model } from '@codebuff/common/constants'
8+
import type { Model } from '@codebuff/common/old-constants'
99

1010
export const baseAgentSystemPrompt = (model: Model) => {
1111
const isGPT5 = model === models.openrouter_gpt5

0 commit comments

Comments
 (0)