Skip to content

Commit a205832

Browse files
authored
Remove unused site files and conversation copy interfaces (#1547)
chore: remove unused site files and conversation copy interfaces
1 parent e99ceed commit a205832

7 files changed

Lines changed: 0 additions & 238 deletions

File tree

‎knip.jsonc‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"src/components/BottomCTA.tsx",
3737
"src/components/DocFeedbackContext.tsx",
3838
"src/components/DocsCalloutNewsletter.tsx",
39-
"src/components/FeatureGrid.tsx",
4039
"src/components/FrameworkIconTabs.tsx",
4140
"src/components/Gam.tsx",
4241
"src/components/LandingCommunitySection.tsx",
@@ -97,11 +96,7 @@
9796
"src/components/landing/codeExamples.ts",
9897
"src/components/npm-stats/index.ts",
9998
"src/components/shop/ShopDropCard.tsx",
100-
"src/components/shop/ShopHero3D.tsx", // Removed by PR #1541
10199
"src/components/shop/ShopStrip.tsx",
102-
"src/contexts/AdsContext.tsx",
103-
"src/hooks/useAdPreference.ts",
104-
"src/hooks/useInlineEdit.ts",
105100
"src/hooks/useQueryGGPPPDiscount.ts",
106101
"src/libraries/cli.tsx",
107102
"src/libraries/config.tsx",
@@ -125,7 +120,6 @@
125120
"src/server/blog.ts",
126121
"src/server/runtime/ejs-compat.server.ts",
127122
"src/server/sponsors.ts",
128-
"src/stores/userSettings.ts",
129123
"src/utils/auth.client.ts",
130124
"src/utils/cookies.server.ts",
131125
"src/utils/docFeedback.client.ts",
@@ -145,7 +139,6 @@
145139
"encoding-sniffer",
146140
"gray-matter",
147141
"iconv-lite",
148-
"maath", // Removed by PR #1541
149142
"parse5-parser-stream",
150143
"remove-markdown",
151144
"source-map-explorer",

‎src/chat/core/conversation-copy.ts‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,6 @@ export type BranchRecord =
111111
| BranchEvidenceRecord
112112
| BranchRetryRecord
113113
| BranchActionEvidenceRecord
114-
export interface ConversationSourceRef {
115-
workspaceId: string
116-
botId: string
117-
conversationId?: string
118-
messageId: string
119-
toolCallId?: string
120-
resultId?: string
121-
digest: string
122-
}
123-
export interface BranchProvenance {
124-
operationId: string
125-
sourceBotId: string
126-
sourceConversationId: string
127-
sourceEpoch: string
128-
sourceRevision: number
129-
sourceMessageId: string | null
130-
sourceMessageDigest: string | null
131-
sourceMessagePosition?: 'before'
132-
prefixDigest: string
133-
copiedAt: number
134-
copySchemaVersion: 1 | 2
135-
kind: CopyKind
136-
}
137114
export function canonicalCopyJson(value: unknown): string {
138115
if (value === null || typeof value !== 'object')
139116
return JSON.stringify(value) ?? 'null'

‎src/components/FeatureGrid.tsx‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎src/contexts/AdsContext.tsx‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎src/hooks/useAdPreference.ts‎

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎src/hooks/useInlineEdit.ts‎

Lines changed: 0 additions & 109 deletions
This file was deleted.

‎src/stores/userSettings.ts‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)