-
Notifications
You must be signed in to change notification settings - Fork 308
Expand file tree
/
Copy pathturbo.json
More file actions
752 lines (752 loc) · 27.1 KB
/
Copy pathturbo.json
File metadata and controls
752 lines (752 loc) · 27.1 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
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"@bb/web#build": {
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/web/package.json",
"$TURBO_ROOT$/apps/web/src/**",
"$TURBO_ROOT$/apps/web/tsconfig.json",
"$TURBO_ROOT$/apps/web/vite.config.ts",
"$TURBO_ROOT$/packages/tsconfig/*.json",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/pnpm-workspace.yaml",
"$TURBO_ROOT$/turbo.json"
],
"env": ["CLOUDFLARE_ENV", "VITE_POSTHOG_KEY", "VITE_POSTHOG_HOST"],
"outputs": ["dist/**"]
},
// Mirrors "build" but also caches bundle-stats.json, which the
// bb:bundle-stats Vite plugin writes beside dist for the boot-payload
// budget check. Without it a cache hit would leave CI checking a stale
// file, or none at all.
"@bb/app#build": {
"dependsOn": ["topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/package.json",
"$TURBO_ROOT$/packages/tsconfig/*.json",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/pnpm-workspace.yaml",
"$TURBO_ROOT$/scripts/build-node-entry.mjs",
"$TURBO_ROOT$/scripts/build-package.mjs",
"$TURBO_ROOT$/scripts/build-utils.mjs",
"$TURBO_ROOT$/scripts/precompress-app-dist.mjs",
"$TURBO_ROOT$/turbo.json"
],
"outputs": ["bundle-stats.json", "dist/**"]
},
"build": {
"dependsOn": ["topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/package.json",
"$TURBO_ROOT$/packages/tsconfig/*.json",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/pnpm-workspace.yaml",
"$TURBO_ROOT$/scripts/build-node-entry.mjs",
"$TURBO_ROOT$/scripts/build-package.mjs",
"$TURBO_ROOT$/scripts/build-utils.mjs",
"$TURBO_ROOT$/scripts/precompress-app-dist.mjs",
"$TURBO_ROOT$/turbo.json"
],
"outputs": ["dist/**"]
},
"@bb/sdk#test": {
"dependsOn": ["//#ensure-native-modules", "topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/*/package.json",
"$TURBO_ROOT$/apps/*/scripts/**",
"$TURBO_ROOT$/apps/*/src/**",
"$TURBO_ROOT$/apps/*/tsconfig.json",
"$TURBO_ROOT$/apps/*/vite.config.ts",
"$TURBO_ROOT$/package.json",
"$TURBO_ROOT$/packages/*/package.json",
"$TURBO_ROOT$/packages/*/scripts/**",
"$TURBO_ROOT$/packages/*/src/**",
"$TURBO_ROOT$/packages/*/tsconfig.json",
"$TURBO_ROOT$/packages/db/drizzle/**",
"$TURBO_ROOT$/packages/tsconfig/*.json",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/pnpm-workspace.yaml",
"$TURBO_ROOT$/scripts/*.mjs",
"$TURBO_ROOT$/turbo.json",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
"bb-app#build": {
// copy-builtin-plugins bundles every plugin in BUNDLED_PLUGINS; the
// tasks plugin's app bundle imports the @get-bb/plugin-sdk root at runtime
// (shared RPC contract), so the SDK dist must exist first.
"dependsOn": [
"@bb/app#build",
"@bb/server#build",
"@bb/host-daemon#build",
"@bb/cli#build",
"@bb/sdk#build",
"@get-bb/plugin-sdk#build"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/app/dist/**",
"$TURBO_ROOT$/apps/server/dist/**",
"$TURBO_ROOT$/apps/host-daemon/dist/**",
"$TURBO_ROOT$/packages/bb-app/package.json",
"$TURBO_ROOT$/packages/bb-app/scripts/**",
"$TURBO_ROOT$/packages/bb-app/src/**",
"$TURBO_ROOT$/packages/bb-app/tsconfig.json",
"$TURBO_ROOT$/packages/sdk/package.json",
"$TURBO_ROOT$/packages/sdk/src/**",
"$TURBO_ROOT$/packages/sdk/tsconfig.json",
"$TURBO_ROOT$/packages/shared-ui/package.json",
"$TURBO_ROOT$/packages/shared-ui/src/**",
"$TURBO_ROOT$/packages/shared-ui/tsconfig.json",
"$TURBO_ROOT$/packages/tsconfig/*.json",
"$TURBO_ROOT$/plugins/*/**",
"!$TURBO_ROOT$/plugins/*/dist/**",
"!$TURBO_ROOT$/plugins/*/node_modules/**",
"$TURBO_ROOT$/scripts/*.mjs"
],
"outputs": ["app/**", "dist/**", "host-daemon/**", "server/**"]
},
"bb-plugin-tasks#build": {
// The tasks plugin's app bundle imports the @get-bb/plugin-sdk root at
// runtime (shared RPC contract), so the SDK dist must exist first.
"dependsOn": ["topo", "@get-bb/plugin-sdk#build"]
},
"@bb/desktop#build": {
"dependsOn": ["bb-app#build"],
"env": ["BB_DESKTOP_RELEASE_CHANNEL"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/desktop/**",
"$TURBO_ROOT$/packages/bb-app/app/**",
"$TURBO_ROOT$/packages/bb-app/dist/**",
"$TURBO_ROOT$/packages/bb-app/host-daemon/**",
"$TURBO_ROOT$/packages/bb-app/package.json",
"$TURBO_ROOT$/packages/bb-app/server/**",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/pnpm-workspace.yaml",
"$TURBO_ROOT$/turbo.json"
],
"outputs": ["dist/**"]
},
"@bb/desktop#desktop:build": {
"dependsOn": ["bb-app#build", "@bb/desktop#build"],
"cache": false,
"outputs": ["release/**"],
"passThroughEnv": ["*"]
},
"@bb/desktop#desktop:build:linux": {
"dependsOn": ["bb-app#build", "@bb/desktop#build"],
"cache": false,
"outputs": ["release/**"],
"passThroughEnv": ["*"]
},
"@bb/desktop#smoke:packaged": {
"cache": false,
"outputs": [],
"passThroughEnv": ["*"]
},
"@bb/desktop#dev": {
"dependsOn": ["bb-app#build"],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"@bb/desktop#start": {
"dependsOn": ["bb-app#build"],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"bundle": {
"cache": false,
"outputs": []
},
"template:build": {
"cache": false,
"outputs": []
},
"@bb/app#dev": {
"dependsOn": ["@bb/templates#generate:templates"],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"@bb/mobile#test": {
"dependsOn": ["//#ensure-native-modules", "topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/vitest.shared.ts",
"$TURBO_ROOT$/apps/app/src/components/ui/theme.css",
"$TURBO_ROOT$/apps/app/src/lib/themes/**"
]
},
"@bb/mobile#dev": {
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"storybook": {
"dependsOn": ["@bb/templates#generate:templates"],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"@bb/host-daemon#dev": {
// The source daemon injects apps/cli/bin/bb into agent shells. Build its
// gitignored runtime before the daemon starts so a sandboxed thread never
// has to write back into the daemon's checkout to bootstrap `bb`.
"dependsOn": [
"@bb/cli#build",
"@bb/templates#generate:templates",
"@bb/plugin-build#generate"
],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"@bb/server#dev": {
// The server installs first-party provider plugins during startup and
// builds their host artifacts. Those builds resolve the published
// `@get-bb/plugin-sdk/provider-bridge` entry from the SDK dist, so a
// clean worktree must build that runtime before the server starts.
"dependsOn": [
"@bb/templates#generate:templates",
"@bb/plugin-build#generate",
"@get-bb/plugin-sdk#build:runtime"
],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"@bb/host-daemon#start:prod": {
"dependsOn": ["build"],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"@bb/server#start:prod": {
"dependsOn": ["build"],
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"clean": {
"cache": false
},
"lint": {
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/.oxlintrc.json",
"$TURBO_ROOT$/package.json",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/pnpm-workspace.yaml",
"$TURBO_ROOT$/scripts/oxlint-plugin.mjs"
]
},
"//#ensure-native-modules": {
"cache": false,
"inputs": [
"$TURBO_ROOT$/package.json",
"$TURBO_ROOT$/packages/db/package.json",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/scripts/ensure-native-modules.mjs"
],
"outputs": []
},
// Transit node (no package defines a `topo` script; nothing executes).
// It exists so tasks that resolve `@bb/*` imports to *sources* — vitest
// and tsc both use the `source` export condition — hash the sources of
// dependency packages. Without it, a change in e.g. packages/domain
// would cache-hit @bb/server#test/#typecheck and skip them stale.
"topo": {
"dependsOn": ["^topo"]
},
// ---- Source generators --------------------------------------------------
// Generated modules are never committed (see .gitignore). Each generator
// is a turbo task with explicit inputs/outputs, so staleness is
// structurally impossible and the files can never merge-conflict.
//
// The owning package's `topo` node depends on its generators, so every
// task of that package and of every package that (transitively) depends
// on it — the ones that can resolve the generated sources — is ordered
// after them and hashes them. Unrelated packages are untouched.
"@bb/templates#topo": {
"dependsOn": [
"^topo",
"@bb/templates#generate:templates",
"@bb/templates#generate:plugin-scaffold"
]
},
"@bb/plugin-build#topo": {
"dependsOn": ["^topo", "@bb/plugin-build#generate"]
},
"@bb/templates#generate:templates": {
"dependsOn": [],
"inputs": [
"scripts/generate-templates.mjs",
"scripts/write-generated.mjs",
"src/templates/**"
],
"outputs": ["src/generated/templates.generated.ts"]
},
// The `bb plugin new` starter files from the (committed) component
// registry.
"@bb/templates#generate:plugin-scaffold": {
"dependsOn": [],
"inputs": [
"scripts/generate-plugin-scaffold.mjs",
"scripts/write-generated.mjs",
"$TURBO_ROOT$/apps/app/package.json",
"$TURBO_ROOT$/packages/plugin-registry/r/**"
],
"outputs": ["src/generated/plugin-starter-files.generated.ts"]
},
// Plugin theme CSS (from the app's theme.css + tw-animate-css) and the
// shared-runtime export manifest (introspected from installed packages).
"@bb/plugin-build#generate": {
"dependsOn": [],
"inputs": [
"scripts/generate-plugin-theme.mjs",
"scripts/generate-runtime-export-manifest.mjs",
"$TURBO_ROOT$/apps/app/package.json",
"$TURBO_ROOT$/apps/app/src/components/ui/theme.css",
"$TURBO_ROOT$/packages/plugin-sdk/src/**",
"$TURBO_ROOT$/packages/shared-ui/src/**",
"$TURBO_ROOT$/pnpm-lock.yaml"
],
"outputs": ["src/generated/**"]
},
"typecheck": {
"dependsOn": ["topo"]
},
// The packaged CLI (host-daemon/dist/bb) inlines the SDK declaration
// bundles for `bb plugin types` on vendored-layout plugins; see
// scripts/bundle-manifest.mjs and packages/templates/src/plugin-sdk-dts.ts.
"@bb/host-daemon#build": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/package.json",
"$TURBO_ROOT$/packages/tsconfig/*.json",
"$TURBO_ROOT$/pnpm-lock.yaml",
"$TURBO_ROOT$/pnpm-workspace.yaml",
"$TURBO_ROOT$/scripts/build-node-entry.mjs",
"$TURBO_ROOT$/scripts/build-package.mjs",
"$TURBO_ROOT$/scripts/build-utils.mjs",
"$TURBO_ROOT$/scripts/precompress-app-dist.mjs",
"$TURBO_ROOT$/turbo.json"
],
"outputs": ["dist/**"]
},
// `bb plugin types|build|dev` on a vendored-layout plugin reads
// packages/plugin-sdk/bundled-types at runtime (no workspace embed).
"@bb/cli#test": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build:types",
"topo"
],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"]
},
// Integration tests typecheck without the `source` condition, so
// @get-bb/plugin-sdk (reached through apps/server sources) resolves to the
// package's published `types`: bundled-types/.
"@bb/integration-tests#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/server/package.json",
"$TURBO_ROOT$/apps/server/tsconfig.json",
"$TURBO_ROOT$/apps/server/src/**",
"$TURBO_ROOT$/packages/templates/package.json",
"$TURBO_ROOT$/packages/templates/scripts/**",
"$TURBO_ROOT$/packages/templates/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
// The source-wrapper test invokes the root `pnpm bb` script, which builds
// and executes @bb/cli. Model that cross-package dependency so CLI changes
// cannot leave this test hidden behind a stale Turbo cache entry.
"@bb/scripts#test": {
"dependsOn": ["//#ensure-native-modules", "@bb/cli#build", "topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/package.json",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
"test": {
"dependsOn": ["//#ensure-native-modules", "topo"],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"],
// Re-pin knobs a suite reads to rewrite its own committed baseline.
// Turbo strips undeclared variables, so a documented re-pin command
// (`UPDATE_PARITY_ROW_COUNTS=1 pnpm exec turbo run test …`) silently
// does nothing without them.
"passThroughEnv": [
"UPDATE_PARITY_ROW_COUNTS",
"UPDATE_TRANSCRIPT_EXPECTATIONS"
]
},
// syncPluginTypes reads packages/plugin-sdk/bundled-types at runtime, and
// plugin-scaffold-external packs @get-bb/plugin-sdk (prepack rebuilds its
// dist), so the SDK build is a dependency.
"@bb/templates#test": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"]
},
// Installs first-party provider plugins, which makes the plugin runtime
// build their host artifacts. esbuild resolves the plugin sources'
// `@get-bb/plugin-sdk/provider-bridge` import through the package export
// map to `packages/plugin-sdk/dist/provider-bridge.js` — the `source`
// condition that lets vitest read `src/` does not apply inside that
// bundling step — so the SDK dist must exist before the suite runs.
"@bb/server#test": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/tests/scripted-echo-provider/host.ts",
"$TURBO_ROOT$/tests/scripted-echo-provider/src/**",
"$TURBO_ROOT$/examples/plugins/echo-provider/*.ts",
"$TURBO_ROOT$/examples/plugins/echo-provider/package.json",
"$TURBO_ROOT$/examples/plugins/echo-provider/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
// The thread.stop race suite builds the scripted echo bridge artifact and
// serves it through the daemon's artifact cache, so it needs the SDK dist
// for the same reason as @bb/server#test.
"@bb/host-daemon#test": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/tests/scripted-echo-provider/host.ts",
"$TURBO_ROOT$/tests/scripted-echo-provider/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
// The provider-corpus gates read a private corpus through
// BB_PROVIDER_CORPUS_DIR and write snapshots next to it, so the task is
// uncacheable and must see those two variables (strict env mode strips
// everything undeclared). Without the variable the suites skip.
"@bb/server#test:provider-corpus": {
"dependsOn": ["//#ensure-native-modules", "topo"],
"cache": false,
"passThroughEnv": [
"BB_PROVIDER_CORPUS_DIR",
"BB_PROVIDER_CORPUS_SNAPSHOT",
"BB_PROVIDER_CORPUS_SNAPSHOT_DIR",
"BB_PROVIDER_CORPUS_ALLOWLIST",
"BB_PROVIDER_CORPUS_ROW_CLASSES"
]
},
// Builds real plugin host artifacts (the builtin artifacts suite, plus the
// fixture that pins the published bridge surface as bundled-not-stubbed),
// so it needs the SDK dist for the same reason as @bb/server#test.
"@bb/plugin-build#test": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
],
// The SVG validator suite reads every first-party branding SVG.
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/vitest.shared.ts",
"$TURBO_ROOT$/plugins/*/icons/**",
"$TURBO_ROOT$/examples/plugins/*/icons/**"
]
},
// Runtime unit suites restart the scripted echo provider repeatedly. Build
// the real bridge worker and bridge artifact once so each child launch
// executes JavaScript instead of re-transforming the TypeScript sources.
"@bb/agent-runtime#generate:test-bridges": {
"dependsOn": ["topo"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/packages/domain/src/**",
"$TURBO_ROOT$/packages/plugin-sdk/src/**",
"$TURBO_ROOT$/packages/provider-bridge-protocol/src/**",
"$TURBO_ROOT$/scripts/build-utils.mjs",
"$TURBO_ROOT$/tests/scripted-echo-provider/src/**"
],
"outputs": ["dist/test-bridges/**"]
},
"@bb/agent-runtime#test": {
"dependsOn": [
"//#ensure-native-modules",
"@bb/agent-runtime#generate:test-bridges",
"topo"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/tests/scripted-echo-provider/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
"@bb/agent-runtime#test:unit": {
"dependsOn": [
"//#ensure-native-modules",
"@bb/agent-runtime#generate:test-bridges",
"topo"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/tests/scripted-echo-provider/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
// The live-CLI suite's global setup rebuilds every first-party provider
// bridge from source, so it needs the SDK dist too.
"@bb/agent-runtime#test:integration": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"]
},
"smoke:tarball": {
"dependsOn": ["build"],
"cache": false,
"outputs": []
},
// Boots the real server, which installs the first-party provider plugins
// and builds their host artifacts; those bundles resolve
// `@get-bb/plugin-sdk/provider-bridge` to the SDK dist.
"@bb/integration-tests#test": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/server/package.json",
"$TURBO_ROOT$/apps/server/tsconfig.json",
"$TURBO_ROOT$/apps/server/src/**",
"$TURBO_ROOT$/packages/templates/package.json",
"$TURBO_ROOT$/packages/templates/scripts/**",
"$TURBO_ROOT$/packages/templates/src/**",
"$TURBO_ROOT$/tests/scripted-echo-provider/host.ts",
"$TURBO_ROOT$/tests/scripted-echo-provider/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
"test:smoke": {
"dependsOn": ["//#ensure-native-modules", "topo"],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"]
},
"@bb/integration-tests#e2e:mobile-backend": {
"cache": false,
"persistent": true,
"passThroughEnv": ["*"],
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
]
},
"@bb/integration-tests#e2e:mobile-connect-stub": {
"cache": false,
"persistent": true,
"passThroughEnv": ["*"]
},
"@bb/integration-tests#test:smoke": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build",
"topo"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/server/package.json",
"$TURBO_ROOT$/apps/server/tsconfig.json",
"$TURBO_ROOT$/apps/server/src/**",
"$TURBO_ROOT$/packages/templates/package.json",
"$TURBO_ROOT$/packages/templates/scripts/**",
"$TURBO_ROOT$/packages/templates/src/**",
"$TURBO_ROOT$/tests/scripted-echo-provider/host.ts",
"$TURBO_ROOT$/tests/scripted-echo-provider/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
"test:integration": {
"dependsOn": ["//#ensure-native-modules", "topo"],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"]
},
"@bb/integration-tests#test:integration": {
"dependsOn": [
"//#ensure-native-modules",
"@bb/agent-runtime#test:integration",
"@get-bb/plugin-sdk#build",
"topo"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/apps/server/package.json",
"$TURBO_ROOT$/apps/server/tsconfig.json",
"$TURBO_ROOT$/apps/server/src/**",
"$TURBO_ROOT$/packages/templates/package.json",
"$TURBO_ROOT$/packages/templates/scripts/**",
"$TURBO_ROOT$/packages/templates/src/**",
"$TURBO_ROOT$/vitest.shared.ts"
]
},
// bundled-types/*.d.ts: the package's published `types` surface, the
// in-repo plugins' typecheck surface, and what `bb plugin types` writes
// into vendored-layout plugins. ~20s (rollup-plugin-dts), so only real
// consumers depend on it. Generated modules are excluded from the hash:
// they are derived from sources already hashed here.
"@get-bb/plugin-sdk#build:types": {
"dependsOn": [],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/packages/*/package.json",
"$TURBO_ROOT$/packages/*/src/**",
"!$TURBO_ROOT$/packages/*/src/generated/**",
"$TURBO_ROOT$/packages/plugin-sdk/scripts/**",
"$TURBO_ROOT$/packages/tsconfig/*.json"
],
"outputs": ["bundled-types/**"]
},
// `build` = runtime dist + types (prepack runs both outside turbo).
"@get-bb/plugin-sdk#build": {
"dependsOn": ["@get-bb/plugin-sdk#build:types"],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/packages/*/package.json",
"$TURBO_ROOT$/packages/*/src/**",
"!$TURBO_ROOT$/packages/*/src/generated/**",
"$TURBO_ROOT$/packages/plugin-sdk/scripts/**",
"$TURBO_ROOT$/packages/tsconfig/*.json"
],
"outputs": ["dist/**"]
},
"@get-bb/plugin-sdk#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
// Several suites read bundled-types/*.d.ts from disk.
"@get-bb/plugin-sdk#test": {
"dependsOn": [
"//#ensure-native-modules",
"@get-bb/plugin-sdk#build:types",
"topo"
],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"]
},
"@get-bb/plugin-sdk#build:runtime": {
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/packages/*/package.json",
"$TURBO_ROOT$/packages/*/src/**",
"$TURBO_ROOT$/packages/plugin-sdk/scripts/build-runtime.mjs"
],
"outputs": ["dist/**"]
},
// ---- In-repo plugins typecheck against the SDK's bundled .d.ts ----------
// Either through a tsconfig `paths` map or through the workspace symlink's
// package `types` field; both land on bundled-types/, a build output.
"bb-plugin-composer-customization#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-echo-provider#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-scripted-echo-provider#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-replacement-lab-alpha#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-replacement-lab-beta#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-thread-chat-demo#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-ask-user-question#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-automations#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-connect#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-custom-instructions#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-simple-notes#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-github#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-inline-vis#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-keep-awake#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-memory#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-pdf-preview#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-plugin-api-tester#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-provider-acp#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-provider-claude-code#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-provider-codex#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-provider-pi#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-provider-retry#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-secrets#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-side-chat#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-tasks#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"bb-plugin-workflows#typecheck": {
"dependsOn": ["@get-bb/plugin-sdk#build:types", "topo"]
},
"@bb/plugin-registry#typecheck": {
"dependsOn": ["topo"],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/packages/shared-ui/src/**"]
},
"@bb/plugin-registry#test": {
"dependsOn": ["//#ensure-native-modules", "topo"],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/packages/shared-ui/src/**"]
}
}
}