Add executionModel feature and refactor CLI into modular commands (#150)

* Add executionModel feature and refactor CLI into modular commands

- Add executionModel config option to memory plugin for specifying AI provider/model
- Refactor monolithic CLI into modular commands: export, import, list, stats, cleanup
- Add model selector UI with connected providers and recent models
- Add showClear prop to Combobox component
- Update documentation and bump version to 0.0.10

* Update execution model placeholder text

* Update docs with new CLI commands and ocm-mem binary usage

* Bump version to v0.9.06

* Add executionModel field to default config
This commit is contained in:
Chris Scott authored and GitHub committed 2026-03-03 20:08:36 -05:00
1 parent e5b2cab9d9
commit c15e53fb98
22 files changed
+1719 -783

No files matched your search

+23 -2
View File
@@ -1,6 +1,6 @@
import { useState, useRef, useEffect, useCallback } from 'react'
import { cn } from '@/lib/utils'
import { ChevronDown } from 'lucide-react'
import { ChevronDown, X } from 'lucide-react'
export interface ComboboxOption {
value: string
@@ -17,6 +17,7 @@ interface ComboboxProps {
disabled?: boolean
className?: string
allowCustomValue?: boolean
showClear?: boolean
}
export function Combobox({
@@ -27,6 +28,7 @@ export function Combobox({
disabled = false,
className,
allowCustomValue = true,
showClear = false,
}: ComboboxProps) {
const [isOpen, setIsOpen] = useState(false)
const [inputValue, setInputValue] = useState(() => {
@@ -181,6 +183,22 @@ export function Combobox({
'pr-8'
)}
/>
{showClear && value && (
<button
type="button"
onClick={() => {
if (!disabled) {
onChange('')
setInputValue('')
inputRef.current?.focus()
}
}}
className="absolute right-7 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"
tabIndex={-1}
>
<X className="h-3.5 w-3.5" />
</button>
)}
<button
type="button"
onClick={() => {
@@ -189,7 +207,10 @@ export function Combobox({
inputRef.current?.focus()
}
}}
className="absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"
className={cn(
'absolute top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground',
showClear && value ? 'right-1' : 'right-2'
)}
tabIndex={-1}
>
<ChevronDown className={cn('h-4 w-4 transition-transform', isOpen && 'rotate-180')} />