better-codex 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/backend/README.md +43 -2
- package/apps/backend/src/core/app-server.ts +68 -2
- package/apps/backend/src/server.ts +156 -1
- package/apps/backend/src/services/codex-config.ts +561 -0
- package/apps/backend/src/thread-activity/service.ts +47 -0
- package/apps/web/README.md +18 -2
- package/apps/web/src/components/layout/codex-settings.tsx +1208 -0
- package/apps/web/src/components/layout/settings-dialog.tsx +9 -1
- package/apps/web/src/components/layout/virtualized-message-list.tsx +581 -86
- package/apps/web/src/hooks/use-hub-connection.ts +21 -3
- package/apps/web/src/hooks/use-thread-history.ts +94 -5
- package/apps/web/src/services/hub-client.ts +98 -1
- package/apps/web/src/types/index.ts +24 -0
- package/apps/web/src/utils/item-format.ts +55 -9
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import { Dialog, Button, Icons } from '../ui'
|
|
3
|
+
import { CodexSettings } from './codex-settings'
|
|
3
4
|
|
|
4
5
|
interface SettingsDialogProps {
|
|
5
6
|
open: boolean
|
|
6
7
|
onClose: () => void
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
type SettingsTab = 'general' | 'accounts' | 'appearance' | 'shortcuts'
|
|
10
|
+
type SettingsTab = 'general' | 'accounts' | 'codex' | 'appearance' | 'shortcuts'
|
|
10
11
|
|
|
11
12
|
export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
|
|
12
13
|
const [activeTab, setActiveTab] = useState<SettingsTab>('general')
|
|
@@ -29,6 +30,12 @@ export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
|
|
|
29
30
|
active={activeTab === 'accounts'}
|
|
30
31
|
onClick={() => setActiveTab('accounts')}
|
|
31
32
|
/>
|
|
33
|
+
<SettingsNavItem
|
|
34
|
+
icon={<Icons.Terminal className="w-4 h-4" />}
|
|
35
|
+
label="Codex"
|
|
36
|
+
active={activeTab === 'codex'}
|
|
37
|
+
onClick={() => setActiveTab('codex')}
|
|
38
|
+
/>
|
|
32
39
|
<SettingsNavItem
|
|
33
40
|
icon={<Icons.Bolt className="w-4 h-4" />}
|
|
34
41
|
label="Appearance"
|
|
@@ -52,6 +59,7 @@ export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
|
|
|
52
59
|
<div className="flex-1 overflow-y-auto">
|
|
53
60
|
{activeTab === 'general' && <GeneralSettings />}
|
|
54
61
|
{activeTab === 'accounts' && <AccountsSettings />}
|
|
62
|
+
{activeTab === 'codex' && <CodexSettings />}
|
|
55
63
|
{activeTab === 'appearance' && <AppearanceSettings />}
|
|
56
64
|
{activeTab === 'shortcuts' && <ShortcutsSettings />}
|
|
57
65
|
</div>
|