File tree Expand file tree Collapse file tree
src/pages/AgentsPage/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 122122 // --- style (recommended) ---
123123 "no-array-constructor" : " error" ,
124124 "prefer-exponentiation-operator" : " error" ,
125+ "consistent-type-imports" : " error" ,
125126 "consistent-type-exports" : " error" ,
126127 "prefer-literal-enum-member" : " error" ,
127128 "prefer-node-protocol" : " error" ,
206207 "no-redeclare" : " off" , // suspicious/noRedeclare (medium: TS declaration merging)
207208 "no-irregular-whitespace" : " off" , // suspicious/noIrregularWhitespace (medium)
208209 "no-inferrable-types" : " off" , // style/noInferrableTypes (medium, coder error rule)
209- "consistent-type-imports" : " off" , // style/useImportType (medium)
210210 "jsx-curly-brace-presence" : " off" , // style/useConsistentCurlyBraces (medium, coder error rule)
211211 "no-fallthrough" : " off" , // suspicious/noFallthroughSwitchClause (medium)
212212 "click-events-have-key-events" : " off" , // a11y/useKeyWithClickEvents (small)
Original file line number Diff line number Diff line change 1+ import type { StorybookConfig } from "@storybook/react-vite" ;
2+
13export default {
24 stories : [ "../src/**/*.stories.tsx" ] ,
35
@@ -32,4 +34,4 @@ export default {
3234 } ;
3335 return config ;
3436 } ,
35- } satisfies import ( "@storybook/react-vite" ) . StorybookConfig ;
37+ } satisfies StorybookConfig ;
Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ import {
2222} from "#/api/queries/chats" ;
2323import type * as TypesGen from "#/api/typesGenerated" ;
2424import type { OneWayMessageEvent } from "#/utils/OneWayWebSocket" ;
25- import { createReconnectingWebSocket } from "#/utils/reconnectingWebSocket" ;
25+ import {
26+ createReconnectingWebSocket ,
27+ type ReconnectSchedule ,
28+ } from "#/utils/reconnectingWebSocket" ;
2629import { type ChatDetailError , normalizeChatErrorPayload } from "./chatError" ;
2730import {
2831 type ChatStore ,
@@ -743,9 +746,7 @@ export const useChatStore = (
743746 historyResetPending = false ;
744747 historyReplacementBuf . length = 0 ;
745748 } ,
746- onDisconnect (
747- reconnectState : import ( "#/utils/reconnectingWebSocket" ) . ReconnectSchedule ,
748- ) {
749+ onDisconnect ( reconnectState : ReconnectSchedule ) {
749750 // Only surface reconnecting when the disconnect
750751 // interrupted active response work. Idle watcher
751752 // reconnects stay silent.
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { chatModelKey } from "#/api/queries/chats";
55import { workspaceBuildLogs } from "#/api/queries/workspaceBuilds" ;
66import { workspaceByIdKey } from "#/api/queries/workspaces" ;
77import type * as TypesGen from "#/api/typesGenerated" ;
8+ import type { MCPServerConfig } from "#/api/typesGenerated" ;
89import { MockChatModel } from "#/testHelpers/chatModels" ;
910import { MockWorkspace , MockWorkspaceBuild } from "#/testHelpers/entities" ;
1011import { ChatWorkspaceContext } from "../../../context/ChatWorkspaceContext" ;
@@ -1364,7 +1365,7 @@ const sampleMCPServers = [
13641365 created_at : "2025-01-01T00:00:00Z" ,
13651366 updated_at : "2025-01-01T00:00:00Z" ,
13661367 } ,
1367- ] satisfies readonly import ( "#/api/typesGenerated" ) . MCPServerConfig [ ] ;
1368+ ] satisfies MCPServerConfig [ ] ;
13681369
13691370export const MCPToolRunning : Story = {
13701371 args : {
You can’t perform that action at this time.
0 commit comments