Skip to content

Commit 22b9e8d

Browse files
committed
move CODEBUFF_BINARY to constants.ts
1 parent 43a1cd4 commit 22b9e8d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sdk/src/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { execFileSync } from 'child_process'
22

3+
import { CODEBUFF_BINARY } from './constants'
34
import { processStream } from './process-stream'
45

56
import type {
@@ -9,8 +10,6 @@ import type {
910
NewChatOptions,
1011
} from './types'
1112

12-
const CODEBUFF_BINARY = 'codebuff'
13-
1413
export class CodebuffClient {
1514
private authToken: string
1615

sdk/src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const CODEBUFF_BINARY = 'codebuff'

sdk/src/process-stream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { spawn } from 'child_process'
22

3-
import type { PrintModeEvent } from '@codebuff/common/types/print-mode'
3+
import { CODEBUFF_BINARY } from './constants'
44

5-
const CODEBUFF_BINARY = 'codebuff'
5+
import type { PrintModeEvent } from '@codebuff/common/types/print-mode'
66

77
export function processStream({
88
codebuffArgs,

0 commit comments

Comments
 (0)