MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / STMTab

Function STMTab

SettingsModal.tsx:1303–1343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1301}
1302
1303function STMTab() {
1304 const { stmModules, toggleSTM } = useStore()
1305
1306 return (
1307 <div className="space-y-4">
1308 <div>
1309 <h3 className="text-lg font-semibold mb-2">Semantic Transformation Modules</h3>
1310 <p className="text-sm theme-secondary mb-4">
1311 STMs modify model outputs to adjust tone, style, or behavior.
1312 Enable modules to transform responses in real-time.
1313 </p>
1314 </div>
1315
1316 <div className="space-y-3">
1317 {stmModules.map((stm) => (
1318 <div
1319 key={stm.id}
1320 className="p-4 bg-theme-dim border border-theme-primary rounded-lg"
1321 >
1322 <div className="flex items-center justify-between">
1323 <div className="flex-1">
1324 <h4 className="font-semibold">{stm.name}</h4>
1325 <p className="text-sm theme-secondary">{stm.description}</p>
1326 </div>
1327 <button
1328 onClick={() => toggleSTM(stm.id)}
1329 className={`w-12 h-6 rounded-full transition-colors relative
1330 ${stm.enabled ? 'bg-green-500' : 'bg-theme-accent'}`}
1331 >
1332 <span
1333 className={`absolute top-1 w-4 h-4 rounded-full bg-white transition-transform
1334 ${stm.enabled ? 'left-7' : 'left-1'}`}
1335 />
1336 </button>
1337 </div>
1338 </div>
1339 ))}
1340 </div>
1341 </div>
1342 )
1343}
1344
1345function MemoryTab() {
1346 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected