forked from pingdotgg/t3code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.ts
More file actions
353 lines (345 loc) · 9.86 KB
/
Copy pathdata.ts
File metadata and controls
353 lines (345 loc) · 9.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
export type PreviewAccessMode = "approval-required" | "auto-accept-edits" | "full-access";
export type PreviewThread = {
id: string;
projectId: string;
title: string;
age: string;
branch: string;
worktree: string;
access: PreviewAccessMode;
composerText: string;
status?: "Working" | "Completed";
};
export type PreviewProject = {
id: string;
title: string;
icon: "marcode" | "round" | "lawn" | "folder";
threads: string[];
};
export type PreviewTurn =
| { type: "user"; text: string }
| { type: "assistant"; text: string }
| {
type: "tool";
title: string;
calls: Array<{
kind: "command" | "read" | "edit" | "search" | "fetch";
heading: string;
preview: string;
}>;
};
export const ACCESS_LABELS: Record<PreviewAccessMode, string> = {
"approval-required": "Supervised",
"auto-accept-edits": "Auto-accept edits",
"full-access": "Full access",
};
export const previewProjects: PreviewProject[] = [
{
id: "marcode-landing",
title: "marcode-landing",
icon: "marcode",
threads: ["preview-component", "minimap-rail", "rate-limit-meter", "old-hero"],
},
{
id: "round",
title: "round",
icon: "round",
threads: ["round-modernize"],
},
{
id: "lawn",
title: "lawn",
icon: "lawn",
threads: ["lawn-security", "lawn-analyze"],
},
{
id: "shoo",
title: "shoo",
icon: "folder",
threads: ["shoo-secure"],
},
];
export const previewThreads: PreviewThread[] = [
{
id: "preview-component",
projectId: "marcode-landing",
title: "Build an interactive app preview to replace the static screensh...",
age: "1m ago",
status: "Working",
branch: "feat/app-preview",
worktree: "marcode-landing",
access: "full-access",
composerText: "",
},
{
id: "minimap-rail",
projectId: "marcode-landing",
title: "Wire the chat minimap rail into the timeline",
age: "6m ago",
status: "Working",
branch: "feat/chat-minimap",
worktree: "marcode-landing",
access: "auto-accept-edits",
composerText: "Keep the rail collapsed by default and animate the active dash.",
},
{
id: "rate-limit-meter",
projectId: "marcode-landing",
title: "Surface provider rate limit usage in composer",
age: "8m ago",
status: "Completed",
branch: "feat/rate-limit-meter",
worktree: "marcode-landing",
access: "approval-required",
composerText: "Audit the Codex + Claude meter copy before shipping.",
},
{
id: "old-hero",
projectId: "marcode-landing",
title: "Drop the static hero screenshot",
age: "13h ago",
branch: "main",
worktree: "marcode-landing",
access: "full-access",
composerText: "Remove the legacy <Image> hero and confirm nothing else linked to it.",
},
{
id: "round-modernize",
projectId: "round",
title: "Modernize the dashboard shell",
age: "9m ago",
status: "Working",
branch: "feat/shell",
worktree: "round",
access: "full-access",
composerText: "Modernize the shell without changing the route structure.",
},
{
id: "lawn-security",
projectId: "lawn",
title: "What potential security issues should we look at first?",
age: "7m ago",
branch: "main",
worktree: "lawn",
access: "full-access",
composerText: "Audit the auth path and summarize the risky edges.",
},
{
id: "lawn-analyze",
projectId: "lawn",
title: "Help me analyze this project's hot paths",
age: "9m ago",
branch: "main",
worktree: "lawn",
access: "full-access",
composerText: "Build a concise project map from the repo structure.",
},
{
id: "shoo-secure",
projectId: "shoo",
title: "Is this app secure against token replay?",
age: "just now",
status: "Working",
branch: "main",
worktree: "shoo",
access: "full-access",
composerText: "Inspect the security posture and list the highest-risk fixes first.",
},
];
export const previewTurns: Record<string, PreviewTurn[]> = {
"preview-component": [
{
type: "user",
text: "Build an interactive app preview for the landing page. Use MarCode brand colors, no static screenshots.",
},
{
type: "assistant",
text: "I'll scaffold a React component that mirrors the app shell — sidebar, chat timeline, composer — and make thread switching real. Brand tokens from globals.css, Klaster Sans for the heading, Inter elsewhere.",
},
{
type: "tool",
title: "Tool calls (3)",
calls: [
{
kind: "read",
heading: "Read file",
preview: "apps/landing/src/app/globals.css",
},
{
kind: "read",
heading: "Read file",
preview: "apps/landing/src/components/Hero.tsx",
},
{
kind: "search",
heading: "Searched",
preview: 'rg "fresh-syntax|curious-sky" apps/landing/src',
},
],
},
{
type: "assistant",
text: "Brand tokens are wired through `@theme inline` in globals.css. I'll use them directly in Tailwind utilities (bg-fresh-syntax/10, text-curious-sky, etc.) so dark-first stays consistent.",
},
{
type: "user",
text: "Make sure the threads switch when I click them — not just visual.",
},
{
type: "tool",
title: "Tool calls (2)",
calls: [
{
kind: "edit",
heading: "Edited file",
preview: "apps/landing/src/components/AppPreview/AppPreview.tsx",
},
{
kind: "edit",
heading: "Edited file",
preview: "apps/landing/src/components/AppPreview/data.ts",
},
],
},
{
type: "assistant",
text: "Threads are wired through useState. Clicking any thread row swaps the timeline, composer placeholder, and checkout bar instantly — no animation jank, just structural state.",
},
],
"minimap-rail": [
{
type: "user",
text: "I want a way to move between long chat sessions faster.",
},
{
type: "assistant",
text: "I'll add a minimap rail on the right side of the timeline — one dash per user message, hover to expand previews, click to jump.",
},
{
type: "tool",
title: "Tool calls (2)",
calls: [
{
kind: "read",
heading: "Read file",
preview: "apps/web/src/components/chat/MessagesTimeline.tsx",
},
{
kind: "search",
heading: "Searched",
preview: 'rg "LegendList|scrollToIndex" apps/web/src',
},
],
},
{
type: "assistant",
text: "Active dash tracks scroll via the LegendList state. No rAF polling — just two listeners and a pure helper.",
},
],
"rate-limit-meter": [
{
type: "user",
text: "Surface provider rate limit usage in the composer.",
},
{
type: "tool",
title: "Tool calls (1)",
calls: [
{
kind: "search",
heading: "Searched",
preview: 'rg "account.rate-limits.updated" apps/server/src',
},
],
},
{
type: "assistant",
text: "ProviderRuntimeIngestion was dropping these events. Wired through to a new ProviderUsageMeter, normalised both Claude (rate_limit_event) and Codex (account/rateLimits/updated) shapes.",
},
],
"old-hero": [
{
type: "user",
text: "Drop the static hero screenshot. The new preview replaces it.",
},
{
type: "tool",
title: "Tool calls (1)",
calls: [
{
kind: "command",
heading: "Ran command",
preview: "rg --files-with-matches /marcode-screenshot apps/landing/src",
},
],
},
{
type: "assistant",
text: "Confirmed nothing else referenced it. Removed the <Image> from Hero and dropped the asset from /public.",
},
],
"round-modernize": [
{
type: "user",
text: "Modernize the dashboard shell without rewriting the routes.",
},
{
type: "assistant",
text: "Lifting the shell to a layout component preserves the existing route tree. I'll start with the navigation rail and topbar.",
},
],
"lawn-security": [
{
type: "user",
text: "What potential security issues should we look at first?",
},
{
type: "assistant",
text: "Auth path is the highest-risk surface. I'll start with token replay, missing CSRF on mutations, and any unvalidated redirects.",
},
],
"lawn-analyze": [
{
type: "user",
text: "Help me analyze this project's hot paths.",
},
{
type: "assistant",
text: "Building a project map from the repo structure now. I'll group by package and call out shared services so the architecture is legible at a glance.",
},
],
"shoo-secure": [
{
type: "user",
text: "Is this app secure against token replay?",
},
{
type: "tool",
title: "Tool calls (2)",
calls: [
{
kind: "search",
heading: "Searched",
preview: 'rg "sessionToken|nonce" apps/server/src/auth',
},
{
kind: "read",
heading: "Read file",
preview: "apps/server/src/auth/SessionCredentialService.ts",
},
],
},
{
type: "assistant",
text: "Sessions are nonced and rotated on every refresh. Replay surface is small but I'd still tighten the pairing-link TTL.",
},
],
};
export const MODELS = [
{ provider: "Claude", model: "Claude Sonnet 4.5", accent: "fresh-syntax" as const },
{ provider: "Claude", model: "Claude Opus 4.1", accent: "fresh-syntax" as const },
{ provider: "Codex", model: "GPT-5", accent: "rebel-mint" as const },
{ provider: "Codex", model: "GPT-5 mini", accent: "rebel-mint" as const },
{ provider: "Cursor", model: "Auto", accent: "dream-shift" as const },
{ provider: "OpenCode", model: "Opencode", accent: "curious-sky" as const },
];