Skip to content

Commit 4a3692b

Browse files
committed
refactor(cli): add decomposed blocks/ directory components
1 parent 8656f77 commit 4a3692b

File tree

9 files changed

+935
-24
lines changed

9 files changed

+935
-24
lines changed

cli/src/components/agent-block-grid.tsx renamed to cli/src/components/blocks/agent-block-grid.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { pluralize } from '@codebuff/common/util/string'
22
import { TextAttributes } from '@opentui/core'
33
import React, { memo, useCallback } from 'react'
44

5-
import { GridLayout } from './grid-layout'
6-
import { useTheme } from '../hooks/use-theme'
7-
import type { AgentContentBlock } from '../types/chat'
5+
import { GridLayout } from '../grid-layout'
6+
import { useTheme } from '../../hooks/use-theme'
7+
import type { AgentContentBlock } from '../../types/chat'
88

99
export interface AgentBlockGridProps {
1010
agentBlocks: AgentContentBlock[]

cli/src/components/agent-branch-item.tsx renamed to cli/src/components/blocks/agent-branch-item.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { TextAttributes } from '@opentui/core'
22
import React, { memo, type ReactNode } from 'react'
33

4-
import { Button } from './button'
5-
import { CollapseButton } from './collapse-button'
6-
import { useTheme } from '../hooks/use-theme'
7-
import { useWhyDidYouUpdateById } from '../hooks/use-why-did-you-update'
8-
import { getCliEnv } from '../utils/env'
9-
import { BORDER_CHARS } from '../utils/ui-constants'
4+
import { Button } from '../button'
5+
import { CollapseButton } from '../collapse-button'
6+
import { useTheme } from '../../hooks/use-theme'
7+
import { useWhyDidYouUpdateById } from '../../hooks/use-why-did-you-update'
8+
import { getCliEnv } from '../../utils/env'
9+
import { BORDER_CHARS } from '../../utils/ui-constants'
1010

1111
interface AgentBranchItemProps {
1212
name: string

0 commit comments

Comments
 (0)