forked from closedloop-ai/closedloop-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbiome.jsonc
More file actions
1417 lines (1417 loc) · 56.9 KB
/
Copy pathbiome.jsonc
File metadata and controls
1417 lines (1417 loc) · 56.9 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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["ultracite/core", "ultracite/react", "ultracite/next"],
"linter": {
"domains": {
"project": "recommended",
"types": "recommended"
},
"rules": {
"style": {
"useConsistentTypeDefinitions": {
"level": "warn",
"options": {
"style": "type"
}
},
"noNonNullAssertion": "off",
// Biome 2.4: defer substring→slice migration to separate PR
"noSubstr": "warn",
"noDescendingSpecificity": "warn"
},
"suspicious": {
"noEmptyBlockStatements": "off",
// Biome 2.4: defer array-index-key fixes to separate PR
"noArrayIndexKey": "warn"
}
}
},
"javascript": {
"globals": ["Liveblocks"]
},
"overrides": [
{
"includes": [
"**/__tests__/**",
"**/test/**",
"**/*.spec.cts",
"**/*.spec.js",
"**/*.spec.jsx",
"**/*.spec.mjs",
"**/*.spec.mts",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*.test.cts",
"**/*.test.js",
"**/*.test.jsx",
"**/*.test.mjs",
"**/*.test.mts",
"**/*.test.ts",
"**/*.test.tsx",
"**/vitest.setup.cts",
"**/vitest.setup.js",
"**/vitest.setup.jsx",
"**/vitest.setup.mjs",
"**/vitest.setup.mts",
"**/vitest.setup.ts",
"**/vitest.setup.tsx"
],
"javascript": {
"globals": [
"Liveblocks",
"afterAll",
"afterEach",
"assert",
"beforeAll",
"beforeEach",
"describe",
"expect",
"it",
"suite",
"test",
"vi"
]
}
},
{
// Static brand/icon assets (*.svg) and HTML templates (storybook
// preview-head, the desktop renderer index, public/*.html) are not code.
// ultracite enables Biome's html/svg support, but its formatter / assist
// (attribute sorting) / a11y (noSvgWithoutTitle) findings aren't
// meaningful for committed assets — disable them so the repo-wide lint
// doesn't fail on assets.
"includes": ["**/*.svg", "**/*.html"],
"formatter": {
"enabled": false
},
"linter": {
"rules": {
"a11y": {
"noSvgWithoutTitle": "off"
}
}
},
"assist": {
"enabled": false
}
},
{
"includes": ["**/*", "!apps/desktop/**"],
"linter": {
"domains": {
// FEA-1544: activate project/type inference only for Desktop so
// noFloatingPromises replaces the removed package-local ESLint rule.
"project": "none",
"types": "none"
}
}
},
{
"includes": [
"apps/app/components/engineer/**",
"apps/app/components/chat/**",
"apps/app/hooks/engineer/**",
// Narrowed from hooks/chat/** to the single remaining offender
"apps/app/hooks/chat/use-stream-dispatch.ts",
"apps/app/lib/engineer/**",
"apps/app/lib/chat/**"
],
"linter": {
"rules": {
"performance": {
// Keep engineer/chat noBarrel carve-out while compatibility shims and
// existing barrel patterns remain in this scope.
"noBarrelFile": "off"
}
}
}
},
{
"includes": [
"apps/app/components/chat/CollapsibleBlock.tsx",
"apps/app/components/chat/MessageContent.tsx",
"apps/app/components/engineer/CommentChat.tsx",
"apps/app/components/engineer/JudgesViewer.tsx",
"apps/app/components/engineer/PlanViewer.tsx",
"apps/app/components/engineer/RepoPickerDialog.tsx",
"apps/app/components/engineer/ReviewChatPane.tsx",
"apps/app/components/engineer/ClosedloopChat.tsx",
"apps/app/components/engineer/TerminalChatDialog.tsx",
"apps/app/components/engineer/TicketCard.tsx",
"apps/app/components/engineer/TicketList.tsx",
"apps/app/components/engineer/TicketListRow.tsx",
"apps/app/components/engineer/__tests__/HealthCheckDialog.test.tsx",
"apps/app/components/engineer/run-viewer/RunViewerDialog.tsx",
"apps/app/components/engineer/run-viewer/viewers/JudgesViewer.tsx",
"apps/app/components/engineer/run-viewer/viewers/MarkdownViewer.tsx",
"apps/app/hooks/engineer/use-codex-debate.ts",
"apps/app/hooks/engineer/use-review-chat.ts",
"apps/app/hooks/engineer/use-slash-commands.ts",
"apps/app/lib/chat/chat-markdown.tsx",
"apps/app/lib/chat/chat-utils.ts",
"apps/app/lib/engineer/deploy-detect.ts",
"apps/app/lib/engineer/relay-client.ts",
"apps/app/lib/engineer/repos.ts",
"apps/app/lib/engineer/review-split.ts",
"apps/app/lib/engineer/worktree-utils.ts"
],
"linter": {
"rules": {
"performance": {
// FEA-520: keep regex-hoisting carve-out limited to files still requiring
// behavior-safe parser/streaming refactors.
"useTopLevelRegex": "off"
}
}
}
},
{
"includes": [
"apps/app/components/chat/SubagentBlock.tsx",
"apps/app/components/engineer/ActiveTicketCard.tsx",
"apps/app/components/engineer/CommentChat.tsx",
"apps/app/components/engineer/DeployDialog.tsx",
"apps/app/components/engineer/JsonlLogViewer.tsx",
"apps/app/components/engineer/LearningsDialog.tsx",
"apps/app/components/engineer/PRCommentCard.tsx",
"apps/app/components/engineer/RepoPickerDialog.tsx",
"apps/app/components/engineer/ReviewChatPane.tsx",
"apps/app/components/engineer/ClosedloopChat.tsx",
"apps/app/components/engineer/ClosedloopStatus.tsx",
"apps/app/components/engineer/TerminalChatDialog.tsx",
"apps/app/components/engineer/TicketChatDialog.tsx",
"apps/app/components/engineer/TicketList.tsx",
"apps/app/components/engineer/TicketListRow.tsx",
"apps/app/hooks/chat/use-stream-dispatch.ts",
"apps/app/hooks/engineer/use-codex-debate.ts",
"apps/app/hooks/engineer/use-engineer-features.ts",
"apps/app/hooks/engineer/use-review-chat.ts",
"apps/app/hooks/engineer/use-review-execution.ts",
"apps/app/hooks/engineer/use-start-plan-loop.ts",
"apps/app/hooks/engineer/useCommentChat.ts",
"apps/app/hooks/engineer/useClosedloopLaunch.ts",
"apps/app/lib/chat/chat-utils.ts",
"apps/app/lib/engineer/claude-stream-utils.ts",
"apps/app/lib/engineer/deploy-detect.ts",
"apps/app/lib/engineer/engineer-fetch-interceptor.ts",
"apps/app/lib/engineer/queries/health-check.ts",
"apps/app/lib/engineer/relay-client.ts",
"apps/app/lib/engineer/review-stream.ts",
"apps/app/lib/engineer/sessions.ts",
"apps/app/lib/engineer/stream-events.ts"
],
"linter": {
"rules": {
"complexity": {
// FEA-520: keep cognitive-complexity carve-out only on current
// orchestration/parser hotspots that still need module-level refactors.
"noExcessiveCognitiveComplexity": {
"level": "error",
"options": { "maxAllowedComplexity": 106 }
}
}
}
}
},
{
"includes": [
// FEA-520: postpone PascalCase -> kebab-case migration to a dedicated rename pass.
"apps/app/components/chat/**",
"apps/app/components/engineer/**",
"apps/app/hooks/engineer/__tests__/useClosedloopLaunch.test.ts",
"apps/app/hooks/engineer/useCommentChat.ts",
"apps/app/hooks/engineer/useGitOperations.ts",
"apps/app/hooks/engineer/useMediaQuery.ts",
"apps/app/hooks/engineer/useClosedloopLaunch.ts",
"apps/app/hooks/engineer/useTerminalStatus.ts",
"apps/app/hooks/engineer/useUpdateChecker.ts",
"apps/app/lib/chat/runner-token/**"
],
"linter": {
"rules": {
"style": {
"useFilenamingConvention": "off"
}
}
}
},
{
"includes": [
// PLN-806 / FEA-1509: client navigation goes through the
// @repo/navigation port. Only the Next adapter may import next/link
// or next/navigation client hooks; server components keep importing
// redirect/notFound from next/navigation (allowImportNames below).
"apps/app/**",
"!apps/app/lib/navigation/next-adapter.tsx",
// Test setup shims delegate port hooks back to next/navigation mocks.
"!apps/app/vitest.setup.ts",
// Tests may reference next/navigation to drive vi.mock factories —
// both __tests__/ directories and colocated *.test.* files.
"!apps/app/**/__tests__/**",
"!apps/app/**/*.test.ts",
"!apps/app/**/*.test.tsx"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"next/link": "Use Link from @repo/navigation/link instead (navigation port, PLN-806). Only lib/navigation/next-adapter.tsx may import next/link.",
"next/navigation": {
"message": "Use @repo/navigation hooks instead (navigation port, PLN-806). Only server redirect/notFound may be imported from next/navigation; client hooks live in lib/navigation/next-adapter.tsx.",
"allowImportNames": ["redirect", "notFound"]
}
},
// FEA-1511 / PRD-430 (AC-040.4): the privileged Desktop gateway
// tree (apps/desktop/src/server/operations/*) runs in the
// Electron main process with local filesystem/process access and
// can spawn CLI processes — apps/app must never import it. These
// patterns MUST live in the SAME options block as the navigation
// `paths` above: Biome does not deep-merge a rule's options
// across overlapping overrides, so a second apps/app override for
// noRestrictedImports would clobber the navigation ban. The
// apps/api half of the boundary lives in its own override below
// (no navigation ban there to conflict with).
"patterns": [
{
// Realistic case today: a relative deep path. The specifier
// has no leading `apps/`, but always contains the
// `desktop/src/server/operations/` segment, so a `**/` prefix
// matches every relative depth as well as the bare
// `apps/desktop/src/server/operations/...` form.
"group": ["**/desktop/src/server/operations/**"],
"message": "apps/app must never import the privileged Desktop gateway tree (FEA-1511, PRD-430 AC-040.4): apps/desktop/src/server/operations/* runs in the Electron main process with local filesystem/process access and can spawn CLI processes — importing it opens an arbitrary local command execution path. See apps/desktop/AGENTS.md."
},
{
// Future-proofing: a bare/aliased form (a package export or
// tsconfig path alias) that drops the `src/` segment.
"group": ["**/desktop/server/operations/**"],
"message": "apps/app must never import the privileged Desktop gateway tree (FEA-1511, PRD-430 AC-040.4): apps/desktop/src/server/operations/* runs in the Electron main process with local filesystem/process access and can spawn CLI processes — importing it opens an arbitrary local command execution path. See apps/desktop/AGENTS.md."
}
]
}
}
}
}
}
},
{
"includes": [
// PLN-806: the navigation port must stay framework-agnostic — it is
// consumed by non-Next shells (desktop renderer). No next/* imports;
// the Next-specific implementation lives in the web adapter
// (apps/app/lib/navigation/next-adapter.tsx).
"packages/navigation/**"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"next/link": "The navigation port is framework-agnostic; next/link belongs only in the web adapter (apps/app/lib/navigation/next-adapter.tsx).",
"next/navigation": "The navigation port is framework-agnostic; next/navigation belongs only in the web adapter (apps/app/lib/navigation/next-adapter.tsx)."
}
}
}
}
}
}
},
{
"includes": [
// PLN-810 / FEA-1510 migration seam: this file temporarily re-exports
// the shared app-core transport port (useApiClient) so existing
// importers keep working until it is removed in PLN-810 Phase 6. The
// query-key-factory and auth seams were removed once their importers
// were rewritten; this is the last one.
"apps/app/hooks/use-api-client.ts"
],
"linter": {
"rules": {
"performance": {
"noBarrelFile": "off"
}
}
}
},
{
"includes": [
// PLN-810 / FEA-1510: the shared app-core layer is surface-agnostic —
// it renders in both the web app and the desktop renderer (no SSR).
// No Next.js, Clerk, or server-only imports; transport and auth are
// injected via the shared/api and shared/auth adapter ports, with
// surface adapters living in each app (web: apps/app/lib/app-core-adapters.tsx).
"packages/app/**"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
// Pattern groups (gitignore-style) so the guardrail bans whole
// forbidden families, not just exact specifiers: any `next/*`
// subpath, every `@clerk/*`, `@repo/auth/*`, `@repo/database/*`,
// and any app-local `@/*` alias are rejected, however deep.
// Groups are disjoint so an import matches exactly one message.
"patterns": [
{
"group": ["next", "next/**"],
"message": "@repo/app is surface-agnostic (FEA-1510): no Next.js imports. Use @repo/navigation (Link, hooks); next/image, fonts, and server APIs (next/headers, next/server, next/cache) stay in apps/app."
},
{
"group": ["@clerk/**"],
"message": "@repo/app never imports Clerk (FEA-1510): consume the shared/auth adapter port."
},
{
"group": ["@repo/auth", "@repo/auth/**"],
"message": "@repo/app never imports the auth SDK (FEA-1510): consume @repo/app/shared/auth/use-auth-snapshot via the injected adapter."
},
{
"group": ["@repo/database", "@repo/database/**"],
"message": "@repo/app is client code (FEA-1510): all data access goes through apps/api via useApiClient (no @repo/database, incl. /generated)."
},
{
"group": ["@repo/analytics", "@repo/analytics/**"],
"message": "@repo/app never imports the analytics SDK (FEA-1510): @repo/analytics pulls in PostHog/Next/server-only. Consume @repo/app/shared/feature-flags/use-feature-flag-enabled via the injected adapter; surface telemetry stays in apps/app."
},
{
"group": [
"@repo/collaboration/server",
"@repo/collaboration/server/**"
],
"message": "@repo/app is client/renderer code (FEA-1510): @repo/collaboration/server/* pulls in @liveblocks/node + server-only. Use @repo/collaboration/client/* and /shared/*; room auth goes through apps/api via the injected api client."
},
{
"group": ["server-only"],
"message": "@repo/app runs in browser/renderer contexts only (FEA-1510)."
},
{
"group": ["@/**"],
"message": "@repo/app must not reach into an app's @/ alias (FEA-1510): shared code cannot depend on a specific shell."
}
]
}
}
}
}
}
},
{
"includes": [
// FEA-1510: @repo/collaboration is split into server/ (Node-only,
// server-only) and client/ + shared/ (surface-agnostic — they render in
// both the web app and the desktop renderer). Keep the client/shared
// surfaces portable: no server-only, Next.js, DB, auth SDK, the package's
// own server/ tree, or app-local aliases. Room auth is injected (the
// authEndpoint prop) and resolved by apps/api, not imported here.
"packages/collaboration/client/**",
"packages/collaboration/shared/**"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"patterns": [
{
"group": ["next", "next/**"],
"message": "@repo/collaboration client/shared is surface-agnostic (FEA-1510): no Next.js imports. Surface concerns (navigation, the auth endpoint) are injected by the shell."
},
{
"group": ["@clerk/**"],
"message": "@repo/collaboration client/shared never imports Clerk (FEA-1510): the shell injects the authEndpoint; room auth is resolved by apps/api."
},
{
"group": ["@repo/auth", "@repo/auth/**"],
"message": "@repo/collaboration client/shared never imports the auth SDK (FEA-1510): the shell injects the authEndpoint; room auth is resolved by apps/api."
},
{
"group": ["@repo/database", "@repo/database/**"],
"message": "@repo/collaboration client/shared is client/renderer code (FEA-1510): no @repo/database (incl. /generated). Data access goes through apps/api."
},
{
"group": ["@repo/analytics", "@repo/analytics/**"],
"message": "@repo/collaboration client/shared never imports the analytics SDK (FEA-1510): @repo/analytics pulls in PostHog/Next/server-only."
},
{
"group": [
"@repo/collaboration/server",
"@repo/collaboration/server/**"
],
"message": "@repo/collaboration client/shared must not import the package's own server/ tree (FEA-1510): server/* pulls in @liveblocks/node + server-only. Cross-layer data is injected or resolved via apps/api."
},
{
"group": ["server-only"],
"message": "@repo/collaboration client/shared runs in browser/renderer contexts only (FEA-1510)."
},
{
"group": ["@/**"],
"message": "@repo/collaboration client/shared must not reach into an app's @/ alias (FEA-1510): shared code cannot depend on a specific shell."
}
]
}
}
}
}
}
},
{
"includes": [
// FEA-1511 / PRD-430 (AC-040.4): apps/desktop/src/server/operations/*
// runs in the Electron main/server process with local filesystem +
// process access and can spawn local CLI processes. The browser-reachable
// apps/api surface must never import that privileged tree — a direct or
// transitive import would open an arbitrary local command execution path.
// This makes the prose rule in apps/desktop/AGENTS.md a build-enforced
// guardrail. The apps/app half of the boundary is enforced in the
// navigation override above (merged into the same noRestrictedImports
// options so Biome does not clobber the navigation ban); apps/api has no
// navigation ban, so it gets its own dedicated override here.
"apps/api/**"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
// Disjoint groups so an import matches exactly one message.
// Biome matches the literal specifier string, not the resolved
// path, so both the realistic relative-deep-path form and a
// future bare/aliased form are banned.
"patterns": [
{
// Realistic case today: a relative deep path. From
// apps/api/lib/foo.ts the specifier is
// `../../desktop/src/server/operations/...` — it has no
// leading `apps/`, but always contains the
// `desktop/src/server/operations/` segment, so a `**/`
// prefix matches every relative depth as well as the
// `apps/desktop/src/server/operations/...` form.
"group": ["**/desktop/src/server/operations/**"],
"message": "apps/api must never import the privileged Desktop gateway tree (FEA-1511, PRD-430 AC-040.4): apps/desktop/src/server/operations/* runs in the Electron main process with local filesystem/process access and can spawn CLI processes — importing it opens an arbitrary local command execution path. See apps/desktop/AGENTS.md."
},
{
// Future-proofing: a bare/aliased form (a package export or
// tsconfig path alias) that drops the `src/` segment.
"group": ["**/desktop/server/operations/**"],
"message": "apps/api must never import the privileged Desktop gateway tree (FEA-1511, PRD-430 AC-040.4): apps/desktop/src/server/operations/* runs in the Electron main process with local filesystem/process access and can spawn CLI processes — importing it opens an arbitrary local command execution path. See apps/desktop/AGENTS.md."
}
]
}
}
}
}
}
},
{
"includes": [
// Prototype sandbox (docs/design/prototype-sandbox.md): prototypes are
// presentational, mock-data-only references. The dependency boundary
// (these packages are not installed in apps/prototypes) is the primary
// enforcement; this guardrail catches copy-paste from the real app.
"apps/prototypes/**"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"patterns": [
{
"group": ["@repo/database", "@repo/database/**"],
"message": "Prototypes are an isolated sandbox: no database access. Use inline mock data (docs/design/prototype-sandbox.md)."
},
{
"group": ["@repo/api", "@repo/api/**"],
"message": "Prototypes never call the API: props in, mock data inline (docs/design/prototype-sandbox.md)."
},
{
"group": ["@repo/auth", "@repo/auth/**"],
"message": "Prototypes have no auth: they render static mock data only (docs/design/prototype-sandbox.md)."
},
{
"group": ["@repo/collaboration", "@repo/collaboration/**"],
"message": "Prototypes are presentational only: no collaboration or real-time wiring (docs/design/prototype-sandbox.md)."
},
{
"group": ["server-only"],
"message": "Prototypes are a pure presentational sandbox: no server-only modules (docs/design/prototype-sandbox.md)."
}
]
}
}
}
}
}
},
{
"includes": [
// Machine-written by apps/prototypes/scripts/generate-registry.mjs.
// The generator's output is canonical: keep Biome (and the pre-commit
// hook) from reformatting it, which would make the next regeneration
// produce a spurious diff.
"apps/prototypes/lib/registry.generated.ts"
],
"formatter": {
"enabled": false
},
"linter": {
"enabled": false
},
"assist": {
"enabled": false
}
},
{
"includes": ["e2e/**", "playwright.config.ts"],
"linter": {
"rules": {
"performance": {
"noBarrelFile": "off"
},
"a11y": {
"useButtonType": "off",
"useSemanticElements": "off"
}
}
}
},
{
"includes": ["apps/desktop/**/*.ts", "apps/desktop/**/*.tsx"],
"linter": {
"domains": {
"project": "recommended",
"types": "recommended"
},
"rules": {
"nursery": {
// FEA-1544: preserve Desktop's former ESLint
// @typescript-eslint/no-floating-promises coverage.
"noFloatingPromises": "error"
}
}
}
},
{
"includes": [
"apps/desktop/src/main/**/*.ts",
"apps/desktop/src/server/**/*.ts"
],
"linter": {
"rules": {
"suspicious": {
// FEA-1544: preserve Desktop's former main/server no-console policy.
"noConsole": "error"
}
}
}
},
{
"includes": ["apps/desktop/src/main/gateway-logger.ts"],
"linter": {
"rules": {
"suspicious": {
// GatewayLogger is the documented Desktop console transport.
"noConsole": {
"level": "error",
"options": {
"allow": ["error", "warn", "log"]
}
}
}
}
}
},
// FEA-1544: exact-file legacy Desktop diagnostics retained during ESLint removal.
// These are explicit file-list carve-outs for pre-existing non-safety diagnostics;
// Desktop safety rules restored by this plan remain active.
{
"includes": [
"apps/desktop/src/main/agent-session-sync-service.ts",
"apps/desktop/src/main/anthropic-admin-client.ts",
"apps/desktop/src/main/app.ts",
"apps/desktop/src/main/approval-operations.ts",
"apps/desktop/src/main/boot-recovery.ts",
"apps/desktop/src/main/claude-code-analytics-client.ts",
"apps/desktop/src/main/cloud-command-executor.ts",
"apps/desktop/src/main/collectors/claude/claude-parser.ts",
"apps/desktop/src/main/collectors/codex/codex-parser.ts",
"apps/desktop/src/main/collectors/engine/collector-manager.ts",
"apps/desktop/src/main/collectors/copilot/copilot-parser.ts",
"apps/desktop/src/main/collectors/cursor/cursor-parser.ts",
"apps/desktop/src/main/collectors/opencode/opencode-parser.ts",
"apps/desktop/src/main/collectors/parsing/parser-utils.ts",
"apps/desktop/src/main/command-key-target-context.ts",
"apps/desktop/src/main/database/dashboard-queries.ts",
"apps/desktop/src/main/database/db-host/db-host-agent-database.ts",
"apps/desktop/src/main/database/read-stores.ts",
"apps/desktop/src/main/database/session-trace.ts",
"apps/desktop/src/main/database/sqlite.ts",
"apps/desktop/src/main/database/sync-source.ts",
"apps/desktop/src/main/database/transcript.ts",
"apps/desktop/src/main/database/write-core.ts",
"apps/desktop/src/main/loop-finalizer.ts",
"apps/desktop/src/main/loop-heartbeat.ts",
"apps/desktop/src/main/loop-perf-telemetry.ts",
"apps/desktop/src/main/loop-refresh.ts",
"apps/desktop/src/main/observability.ts",
"apps/desktop/src/main/packs/catalog-contents.ts",
"apps/desktop/src/main/packs/catalog-fetcher.ts",
"apps/desktop/src/main/packs/catalog-store.ts",
"apps/desktop/src/main/packs/install-orchestrator.ts",
"apps/desktop/src/main/packs/pack-scanner.ts",
"apps/desktop/src/main/plans/plan-store.ts",
"apps/desktop/src/main/pull-requests/pr-store.ts",
"apps/desktop/src/main/reconciliation-worker.ts",
"apps/desktop/src/main/settings-store.ts",
"apps/desktop/src/server/operations/binary-paths.ts",
"apps/desktop/src/server/operations/codex.ts",
"apps/desktop/src/server/operations/deploy.ts",
"apps/desktop/src/server/operations/filesystem-directories.ts",
"apps/desktop/src/server/operations/filesystem-search.ts",
"apps/desktop/src/server/operations/git-action.ts",
"apps/desktop/src/server/operations/git-diff.ts",
"apps/desktop/src/server/operations/git-pr.ts",
"apps/desktop/src/server/operations/git-worktree.ts",
"apps/desktop/src/server/operations/health-check.ts",
"apps/desktop/src/server/operations/learnings.ts",
"apps/desktop/src/server/operations/loop-http.ts",
"apps/desktop/src/server/operations/metadata-routes.ts",
"apps/desktop/src/server/operations/output-tailer.ts",
"apps/desktop/src/server/operations/run-viewer-chat.ts",
"apps/desktop/src/server/operations/stream-events.ts",
"apps/desktop/src/server/operations/symphony-chat-history.ts",
"apps/desktop/src/server/operations/symphony-interactive.ts",
"apps/desktop/src/server/operations/symphony-job-snapshot.ts",
"apps/desktop/src/server/operations/symphony-judges.ts",
"apps/desktop/src/server/operations/symphony-kill.ts",
"apps/desktop/src/server/operations/symphony-loop.ts",
"apps/desktop/src/server/operations/symphony-plan-loop.ts",
"apps/desktop/src/server/operations/symphony-plan.ts",
"apps/desktop/src/server/operations/symphony-status.ts",
"apps/desktop/src/server/operations/symphony-upload.ts",
"apps/desktop/src/server/operations/ticket-chat.ts",
"apps/desktop/src/server/router.ts",
"apps/desktop/test/symphony-test-utils.ts"
],
"linter": {
"rules": {
"complexity": {
"noExcessiveCognitiveComplexity": "off"
}
}
}
},
{
"includes": ["apps/desktop/src/main/observability.ts"],
"linter": {
"rules": {
"complexity": {
"noStaticOnlyClass": "off"
}
}
}
},
{
"includes": [
"apps/desktop/src/main/agent-dashboard-design-system-runtime.ts",
"apps/desktop/src/main/agent-session-sync-service.ts",
"apps/desktop/src/main/app.ts",
"apps/desktop/src/main/boot-recovery.ts",
"apps/desktop/src/main/browser-command-key-approval-request.ts",
"apps/desktop/src/main/cloud-command-executor.ts",
"apps/desktop/src/main/cloud-socket.ts",
"apps/desktop/src/main/collectors/engine/collector-manager.ts",
"apps/desktop/src/main/collectors/engine/watcher.ts",
"apps/desktop/src/main/command-key-reconciler.ts",
"apps/desktop/src/main/cost-reconciliation-service.ts",
"apps/desktop/src/main/gateway-recovery.ts",
"apps/desktop/src/main/index.ts",
"apps/desktop/src/main/startup.ts",
"apps/desktop/src/main/loop-heartbeat.ts",
"apps/desktop/src/main/loop-scheduler-context.ts",
"apps/desktop/src/main/loop-sleep-recovery.ts",
"apps/desktop/src/main/packs/install-orchestrator.ts",
"apps/desktop/src/main/pending-command-key-notifier.ts",
"apps/desktop/src/main/window.ts",
"apps/desktop/src/renderer/components/diagnostics/LogsPanel.tsx",
"apps/desktop/src/server/operations/codex.ts",
"apps/desktop/src/server/operations/deploy.ts",
"apps/desktop/src/server/operations/learnings.ts",
"apps/desktop/src/server/operations/run-viewer-chat.ts",
"apps/desktop/src/server/operations/symphony-loop.ts",
"apps/desktop/src/server/operations/terminal-chat.ts",
"apps/desktop/src/server/operations/ticket-chat.ts",
"apps/desktop/src/server/process-manager.ts",
"apps/desktop/src/server/server.ts",
"apps/desktop/test/cloud-command-executor.test.ts",
"apps/desktop/test/cloud-socket-presence.test.ts",
"apps/desktop/test/resolve-binary.test.ts",
"apps/desktop/test/symphony-loop-branch-materialization.test.ts",
"apps/desktop/test/symphony-loop-ssrf.test.ts",
"apps/desktop/test/symphony-test-utils.ts"
],
"linter": {
"rules": {
"complexity": {
"noVoid": "off"
}
}
}
},
{
"includes": ["apps/desktop/src/server/operations/symphony-loop.ts"],
"linter": {
"rules": {
"performance": {
"noBarrelFile": "off"
}
}
}
},
{
"includes": ["apps/desktop/src/server/shell-path.ts"],
"linter": {
"rules": {
"performance": {
"noDelete": "off"
}
}
}
},
{
"includes": [
"apps/desktop/src/main/agent-dashboard-design-system-runtime.ts",
"apps/desktop/src/main/app.ts",
"apps/desktop/src/main/database/db-host/db-host-worker.ts",
"apps/desktop/src/main/loop-scheduler-context.ts"
],
"linter": {
"rules": {
"performance": {
"noNamespaceImport": "off"
}
}
}
},
{
"includes": [
"apps/desktop/scripts/assert-design-system-boot-off.mjs",
"apps/desktop/src/main/admin-key-store.ts",
"apps/desktop/src/main/agent-monitor-hooks.ts",
"apps/desktop/src/main/app.ts",
"apps/desktop/src/main/collectors/codex/codex-home.ts",
"apps/desktop/src/main/collectors/copilot/copilot-home.ts",
"apps/desktop/src/main/collectors/cursor/cursor-home.ts",
"apps/desktop/src/main/collectors/opencode/opencode-home.ts",
"apps/desktop/src/main/collectors/parsing/parser-utils.ts",
"apps/desktop/src/main/cost-math.ts",
"apps/desktop/src/main/database/sqlite.ts",
"apps/desktop/src/main/database/write-core.ts",
"apps/desktop/src/main/decision-table-verification-telemetry.ts",
"apps/desktop/src/main/desktop-pop.ts",
"apps/desktop/src/main/loop-finalizer.ts",
"apps/desktop/src/main/packs/catalog-contents.ts",
"apps/desktop/src/main/packs/catalog-fetcher.ts",
"apps/desktop/src/main/packs/pack-scanner.ts",
"apps/desktop/src/main/persistent-log.ts",
"apps/desktop/src/main/plans/plan-store.ts",
"apps/desktop/src/main/pull-requests/pr-store.ts",
"apps/desktop/src/main/window.ts",
"apps/desktop/src/server/operations/chat-backend-client.ts",
"apps/desktop/src/server/operations/chat-session.ts",
"apps/desktop/src/server/operations/codex.ts",
"apps/desktop/src/server/operations/deploy.ts",
"apps/desktop/src/server/operations/git-action.ts",
"apps/desktop/src/server/operations/git-helpers.ts",
"apps/desktop/src/server/operations/git-local-changes.ts",
"apps/desktop/src/server/operations/git-pr.ts",
"apps/desktop/src/server/operations/git-worktree.ts",
"apps/desktop/src/server/operations/health-check.ts",
"apps/desktop/src/server/operations/learnings.ts",
"apps/desktop/src/server/operations/plugin-cache.ts",
"apps/desktop/src/server/operations/symphony-interactive.ts",
"apps/desktop/src/server/operations/symphony-loop.ts",
"apps/desktop/src/server/operations/symphony-utils.ts",
"apps/desktop/src/server/router.ts",
"apps/desktop/src/shared/network-utils.ts",
"apps/desktop/src/shared/sandbox-policy.ts",
"apps/desktop/test/admin-cost-clients.test.ts",
"apps/desktop/test/admin-key-store.test.ts",
"apps/desktop/test/agent-dashboard-boundary.test.ts",
"apps/desktop/test/agent-monitor-hooks-core.test.ts",
"apps/desktop/test/app-lifecycle.test.ts",
"apps/desktop/test/authorized-command-key-store.test.ts",
"apps/desktop/test/authorized-public-keys-client.test.ts",
"apps/desktop/test/binary-paths.test.ts",
"apps/desktop/test/boot-recovery.test.ts",
"apps/desktop/test/chat-backend-client.test.ts",
"apps/desktop/test/chat-session.test.ts",
"apps/desktop/test/claude-code-analytics-client.test.ts",
"apps/desktop/test/claude-code-analytics-service.test.ts",
"apps/desktop/test/cloud-socket-presence.test.ts",
"apps/desktop/test/codex-log-parsing.test.ts",
"apps/desktop/test/codex-spawn-enoent.test.ts",
"apps/desktop/test/command-key-notification-boundary.test.ts",
"apps/desktop/test/command-key-reconciler.test.ts",
"apps/desktop/test/cost-math.test.ts",
"apps/desktop/test/cost-reconciliation-service.test.ts",
"apps/desktop/test/error-handlers.test.ts",
"apps/desktop/test/feature-flags.test.ts",
"apps/desktop/test/gateway-auth.test.ts",
"apps/desktop/test/gateway-server.test.ts",
"apps/desktop/test/gateway-signing-key-store.test.ts",
"apps/desktop/test/git-local-changes.test.ts",
"apps/desktop/test/health-check-mcp.test.ts",
"apps/desktop/test/loop-finalizer.test.ts",
"apps/desktop/test/loop-http.test.ts",
"apps/desktop/test/loop-perf-telemetry.test.ts",
"apps/desktop/test/loop-sleep-recovery.test.ts",
"apps/desktop/test/no-token-surface.test.ts",
"apps/desktop/test/origin-policy.test.ts",
"apps/desktop/test/pending-command-key-notifier.test.ts",
"apps/desktop/test/persistent-log.test.ts",
"apps/desktop/test/renderer-logs-static.test.ts",
"apps/desktop/test/saved-configs.test.ts",
"apps/desktop/test/shutdown-lifecycle.test.ts",
"apps/desktop/test/shutdown.test.ts",
"apps/desktop/test/symphony-bootstrap.test.ts",
"apps/desktop/test/symphony-loop-branch-materialization.test.ts",
"apps/desktop/test/symphony-loop-cloud-failures.test.ts",
"apps/desktop/test/symphony-loop-evaluate-context-materialization.test.ts",
"apps/desktop/test/symphony-loop-evaluate-feature.test.ts",
"apps/desktop/test/symphony-loop-execute.test.ts",
"apps/desktop/test/symphony-loop-multi-repo-contract.test.ts",
"apps/desktop/test/symphony-loop-multi-repo-spawn.test.ts",
"apps/desktop/test/symphony-loop-multi-repo-worktree.test.ts",
"apps/desktop/test/symphony-loop-resolve-primary-artifact.test.ts",
"apps/desktop/test/symphony-test-utils.ts",
"apps/desktop/test/update-banner-state.test.ts"
],
"linter": {
"rules": {
"performance": {
"useTopLevelRegex": "off"
}
}
}
},
{
"includes": [
"apps/desktop/test/symphony-loop-cloud-failures.test.ts",
"apps/desktop/test/check-design-system-drift.test.ts"
],
"linter": {
"rules": {
"style": {
"noDoneCallback": "off"
}
}
}
},
{
"includes": [
"apps/desktop/src/main/admin-billing.ts",
"apps/desktop/src/main/electron-log-main.d.ts",
"apps/desktop/src/main/persistent-log.ts"
],
"linter": {
"rules": {
"style": {
"noExportedImports": "off"
}
}
}
},
{
"includes": [
"apps/desktop/src/main/app.ts",
"apps/desktop/src/main/cloud-socket.ts",
"apps/desktop/src/main/collectors/codex/codex-parser.ts",
"apps/desktop/src/main/collectors/cursor/cursor-parser.ts",
"apps/desktop/src/main/collectors/opencode/opencode-parser.ts",
"apps/desktop/src/main/collectors/parsing/parser-utils.ts",
"apps/desktop/src/main/command-key-app-lifecycle.ts",
"apps/desktop/src/main/command-key-target-context.ts",
"apps/desktop/src/main/decision-table-verification-telemetry.ts",
"apps/desktop/src/main/loop-finalizer.ts",
"apps/desktop/src/main/packs/install-orchestrator.ts",
"apps/desktop/src/main/reconciliation-store.ts",
"apps/desktop/src/renderer/components/activity/ActivityPanel.tsx",
"apps/desktop/src/renderer/components/approvals/ApprovalsPanel.tsx",
"apps/desktop/src/renderer/components/diagnostics/LogsPanel.tsx",
"apps/desktop/src/renderer/components/features/InstallModal.tsx",
"apps/desktop/src/renderer/components/features/PlansView.tsx",
"apps/desktop/src/renderer/components/features/PullRequestsView.tsx",
"apps/desktop/src/renderer/components/settings/SettingsPanel.tsx",
"apps/desktop/src/server/operations/chat-providers.ts",
"apps/desktop/src/server/operations/health-check.ts",
"apps/desktop/src/server/operations/repos-config-utils.ts",
"apps/desktop/src/server/operations/symphony-loop.ts",
"apps/desktop/src/server/shell-path.ts",
"apps/desktop/test/gateway-server.test.ts"
],
"linter": {
"rules": {
"style": {
"noNestedTernary": "off"
}
}
}
},
{
"includes": ["apps/desktop/src/server/operations/symphony-loop.ts"],
"linter": {
"rules": {
"style": {
"noParameterAssign": "off"
}
}
}
},
{
"includes": [
"apps/desktop/src/main/database/db-host/db-host-client.ts",
"apps/desktop/src/main/gateway-identity.ts",
"apps/desktop/src/main/gateway-logger.ts",
"apps/desktop/src/main/gateway-recovery.ts",
"apps/desktop/src/server/operations/symphony-loop.ts",
"apps/desktop/test/agent-monitor-listener.test.ts"
],
"linter": {
"rules": {
"style": {
"noParameterProperties": "off"
}
}
}
},
{
"includes": ["apps/desktop/src/server/operations/symphony-loop.ts"],
"linter": {
"rules": {