From 8f6fe0dc28439ede5eea561fd3bcdb9db49831e2 Mon Sep 17 00:00:00 2001
From: rhit-lid2 <59123825+NeoLi00@users.noreply.github.com>
Date: Sun, 19 Jul 2026 22:18:42 +0530
Subject: [PATCH] chore: fix linting issues
---
.../config/ProviderInstancesConfig.tsx | 10 +-
apps/gui/src/components/play/HandoffModal.tsx | 111 ++++++++++--------
apps/gui/src/components/play/InteractView.tsx | 8 +-
apps/gui/src/components/play/PromptModal.tsx | 6 +-
.../src/components/play/PromptSwitcher.tsx | 2 +-
apps/gui/src/components/ui/combobox.tsx | 1 -
apps/gui/src/components/ui/input-group.tsx | 5 +-
apps/gui/src/lib/simulation-types.ts | 9 +-
apps/gui/src/lib/simulation/alias-handoff.ts | 2 +-
apps/gui/src/lib/simulation/turn-executor.ts | 7 +-
packages/actor/src/actor-prompt-builder.ts | 1 -
packages/intent/tests/intent.test.ts | 2 +-
packages/llm/src/llm.ts | 4 +-
packages/llm/src/providers/mock.ts | 1 +
packages/llm/tests/openai.test.ts | 1 +
packages/memory/src/buffer.ts | 2 +-
packages/memory/src/handoff.ts | 8 +-
packages/voice/src/dehydration.ts | 6 +-
packages/voice/src/hydration.ts | 10 +-
tests/integration/actor-monologue.test.ts | 1 -
tests/integration/game-loop.test.ts | 2 +-
21 files changed, 105 insertions(+), 94 deletions(-)
diff --git a/apps/gui/src/components/config/ProviderInstancesConfig.tsx b/apps/gui/src/components/config/ProviderInstancesConfig.tsx
index f405581..ad84f2b 100644
--- a/apps/gui/src/components/config/ProviderInstancesConfig.tsx
+++ b/apps/gui/src/components/config/ProviderInstancesConfig.tsx
@@ -43,13 +43,7 @@ import {
CardTitle,
CardAction,
} from "@/components/ui/card";
-import {
- Item,
- ItemContent,
- ItemGroup,
- ItemTitle,
- ItemDescription,
-} from "@/components/ui/item";
+import { Item, ItemContent, ItemGroup, ItemTitle } from "@/components/ui/item";
import { Empty, EmptyTitle, EmptyDescription } from "@/components/ui/empty";
import { cn } from "@/lib/utils";
import { RefreshCwIcon } from "lucide-react";
@@ -200,14 +194,12 @@ export function ProviderInstancesConfig({
fetchModelsForExistingInstance(selectedInstanceId);
}
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedInstanceId, instances, availableProviders]);
// Re-fetch models when provider/key/endpoint changes on new instance form
useEffect(() => {
if (selectedInstanceId !== "new") return;
fetchModelsForNewInstance(editProvider, editKey, editEndpointUrl);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [editProvider, editKey, editEndpointUrl, selectedInstanceId]);
const handleProviderChange = (providerId: string | null) => {
diff --git a/apps/gui/src/components/play/HandoffModal.tsx b/apps/gui/src/components/play/HandoffModal.tsx
index c8186a4..55af187 100644
--- a/apps/gui/src/components/play/HandoffModal.tsx
+++ b/apps/gui/src/components/play/HandoffModal.tsx
@@ -126,66 +126,73 @@ export function HandoffModal({ entry, onClose }: HandoffModalProps) {
Memory Ledger Additions
- {chunks.map((chunk: any, index: number) => (
-
-
-
- {chunk.content}
-
-
- Importance: {chunk.importance}
-
-
-
- {chunk.quotes && chunk.quotes.length > 0 && (
-
- {chunk.quotes.map((quote: string, qIdx: number) => (
-
“{quote}”
- ))}
-
- )}
-
-
- {chunk.retainInBuffer ? (
+ {chunks.map(
+ (
+ chunk: { content: string; importance: number },
+ index: number,
+ ) => (
+
+
+
+ {chunk.content}
+
- Pinned in Buffer
-
- ) : (
-
- Pruned from Buffer
+ Importance: {chunk.importance}
+
+
+ {chunk.quotes && chunk.quotes.length > 0 && (
+
+ {chunk.quotes.map((quote: string, qIdx: number) => (
+
“{quote}”
+ ))}
+
)}
- {chunk.involvedEntityIds &&
- chunk.involvedEntityIds.length > 0 && (
-
- Entities:
- {chunk.involvedEntityIds.map((entId: string) => (
-
- {entId}
-
- ))}
-
+
+ {chunk.retainInBuffer ? (
+
+ Pinned in Buffer
+
+ ) : (
+
+ Pruned from Buffer
+
)}
+
+ {chunk.involvedEntityIds &&
+ chunk.involvedEntityIds.length > 0 && (
+
+ Entities:
+ {chunk.involvedEntityIds.map(
+ (entId: string) => (
+
+ {entId}
+
+ ),
+ )}
+
+ )}
+
-
- ))}
+ ),
+ )}
)}
diff --git a/apps/gui/src/components/play/InteractView.tsx b/apps/gui/src/components/play/InteractView.tsx
index 68ae954..503b484 100644
--- a/apps/gui/src/components/play/InteractView.tsx
+++ b/apps/gui/src/components/play/InteractView.tsx
@@ -17,13 +17,11 @@ import {
function IntentTag({
intent,
- isSelf,
playerAliases,
playerId,
entities,
}: {
intent: SimSnapshot["log"][number]["intents"][number];
- isSelf?: boolean;
playerAliases: Record;
playerId: string;
entities: SimSnapshot["entities"];
@@ -59,7 +57,10 @@ function IntentTag({
aliases: viewerAliasesMap,
};
- const textToDisplay = hydrate(intent.content, viewerEntityMock as any);
+ const textToDisplay = hydrate(
+ intent.content,
+ viewerEntityMock as unknown as Parameters[1],
+ );
const modifiersStr =
intent.modifiers && intent.modifiers.length > 0 ? (
@@ -147,7 +148,6 @@ function LogEntryCard({
{
if (!promptBreakdown) return [];
@@ -66,7 +66,7 @@ export function PromptModal({ entry, onClose }: PromptModalProps) {
return (