@hublo/sentinel 1.7.0-alpha.30 → 1.7.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/bin/sentinel.js +13 -7
- package/dist/{chunk-HYXFUUF5.js → chunk-2DUG6GVU.js} +3850 -2246
- package/dist/chunk-F5WISUN3.js +17 -0
- package/dist/chunk-F5WISUN3.js.map +1 -0
- package/dist/{chunk-2PRJJRJI.js → chunk-FZLUCPST.js} +1 -1
- package/dist/{chunk-YUZB4LRJ.js → chunk-KKHKRY7P.js} +6 -1
- package/dist/chunk-KKHKRY7P.js.map +1 -0
- package/dist/chunk-NE3IEJBN.js +59 -0
- package/dist/chunk-NE3IEJBN.js.map +1 -0
- package/dist/{chunk-SHF46ALB.js → chunk-NGLEGAEN.js} +1 -1
- package/dist/chunk-NGLEGAEN.js.map +1 -0
- package/dist/{chunk-LVY5NPOC.js → chunk-QMIJ4ZGJ.js} +2 -2
- package/dist/chunk-U7G2Y6YC.js +15 -0
- package/dist/chunk-U7G2Y6YC.js.map +1 -0
- package/dist/chunk-VWASE6NN.js +34 -0
- package/dist/chunk-VWASE6NN.js.map +1 -0
- package/dist/{chunk-APBEGLRI.js → chunk-XMAXE2Q2.js} +5 -2
- package/dist/chunk-XMAXE2Q2.js.map +1 -0
- package/dist/index.js +9 -5
- package/dist/roles/runtime-analysis/config.d.ts +97 -0
- package/dist/roles/runtime-analysis/config.js +10 -0
- package/dist/roles/runtime-analysis/config.js.map +1 -0
- package/dist/roles/runtime-analysis/gateway.d.ts +2 -0
- package/dist/roles/runtime-analysis/gateway.js +89 -0
- package/dist/roles/runtime-analysis/gateway.js.map +1 -0
- package/dist/roles/runtime-analysis/mock-api.d.ts +2 -0
- package/dist/roles/runtime-analysis/mock-api.js +43 -0
- package/dist/roles/runtime-analysis/mock-api.js.map +1 -0
- package/dist/roles/sql/config.js +1 -1
- package/dist/roles/static-analysis/config.js +1 -1
- package/dist/roles/test/setup/jest-parity.js +2 -2
- package/dist/roles/test/setup/workspace-entry.js +2 -2
- package/dist/{validate-4GMB32V7.js → validate-GTBRD2M4.js} +2 -2
- package/docs/runtime-analysis-adoption.md +198 -0
- package/docs/sql-adoption.md +18 -92
- package/docs/typescript-traces.md +2 -38
- package/package.json +10 -3
- package/runtime-analysis-deps/load.mjs +6 -0
- package/runtime-analysis-deps/package-lock.json +1766 -0
- package/runtime-analysis-deps/package.json +11 -0
- package/dist/chunk-APBEGLRI.js.map +0 -1
- package/dist/chunk-SHF46ALB.js.map +0 -1
- package/dist/chunk-YUZB4LRJ.js.map +0 -1
- /package/dist/{chunk-LVY5NPOC.js.map → chunk-QMIJ4ZGJ.js.map} +0 -0
package/docs/sql-adoption.md
CHANGED
|
@@ -145,14 +145,11 @@ which a module may turn off) and the 2 timeouts the key calls for.
|
|
|
145
145
|
| sentinel, `applied-migration-changed` | 1 | **yes**, at `warn` |
|
|
146
146
|
| sentinel, `enum-value-used-before-commit` | 1 | **yes**, at `warn` |
|
|
147
147
|
| sentinel, `migration-folder-without-sql` | 1 | **yes**, at `warn` |
|
|
148
|
-
| sentinel, its rules on the SQL of templates | 5 | **yes**, at `warn` |
|
|
149
|
-
| sentinel, its opt-in rules on the SQL of templates | 3 | no: one runs once the module gives it a level |
|
|
150
148
|
|
|
151
|
-
**
|
|
149
|
+
**55 rules run on every module**, the set squawk itself runs, plus sentinel's five. sentinel turns
|
|
152
150
|
no squawk rule off and turns no opt-in rule on: the choice of what runs by default is squawk's, and
|
|
153
|
-
a module moves it in its own config. `pnpm exec sentinel --inspect --sql --json` lists all
|
|
154
|
-
with the level each has in this module: squawk's 76, sentinel's
|
|
155
|
-
rules on the SQL of templates are in [The SQL of templates](#the-sql-of-templates-queryraw-executeraw-prismasql).
|
|
151
|
+
a module moves it in its own config. `pnpm exec sentinel --inspect --sql --json` lists all 82 names
|
|
152
|
+
with the level each has in this module: squawk's 76, sentinel's five, and `syntax-error`.
|
|
156
153
|
|
|
157
154
|
**A migration that does not parse** is reported first, with its first error (the ones squawk gives
|
|
158
155
|
after it follow from it), and counts as **one finding** under `syntax-error`, at `warn` like every
|
|
@@ -549,88 +546,22 @@ the safety of the text rests on code the call does not show.
|
|
|
549
546
|
list, but its separator, prefix and suffix are SQL text. Measured on `main`: 88 calls with a
|
|
550
547
|
separator, every one a literal (`' AND '`, `' OR '`, `'\n'`), so none is reported.
|
|
551
548
|
|
|
552
|
-
## The SQL of templates, `$queryRaw`, `$executeRaw`, `Prisma.sql`
|
|
553
|
-
|
|
554
|
-
Prisma binds every `${}` of these three, so they are safe from injection. Their SQL is still SQL,
|
|
555
|
-
and the 19 May incident was written in one. The role reads each template of the files the branch
|
|
556
|
-
adds or changes with **PostgreSQL's own parser** (`libpg-query` 16.8.3, the 16 line the monorepo
|
|
557
|
-
runs), the same grammar the server applies: a rule matches the tree, never a word in a string or a
|
|
558
|
-
comment.
|
|
559
|
-
|
|
560
|
-
**How a fragment is read.** A `Prisma.sql` is often a fragment, a condition or an `ORDER BY` list,
|
|
561
|
-
joined into a query later. Each `${}` is filled with what it most likely is (a value, then an
|
|
562
|
-
identifier, then nothing, then a list of values), and the text is wrapped in the smallest statement
|
|
563
|
-
it can stand in (itself, `SELECT …`, `SELECT 1 WHERE …`, `… ORDER BY …`, `WITH … SELECT 1`, …). The
|
|
564
|
-
first reading PostgreSQL accepts is kept. A rule never reports what the wrap wrote, and a rule
|
|
565
|
-
about a whole statement (`UPDATE` without `WHERE`) runs only on a template that is one.
|
|
566
|
-
|
|
567
|
-
**What cannot be read alone** is named in every report, the console, the comment, the json and the
|
|
568
|
-
page, with its line, and never fails the run: the role reads all it can rather than stop. On
|
|
569
|
-
`main` 837abe3f29c, 1 237 of the 1 360 production templates holding SQL of their own are read
|
|
570
|
-
(91 %), and 227 of 227 in tests. A template made of `${}` only has nothing to read and is not
|
|
571
|
-
counted.
|
|
572
|
-
|
|
573
|
-
**Tests are read**, as the `Unsafe` rule reads them: `unsafe.includeTests`, which a module may set
|
|
574
|
-
to `false` for both.
|
|
575
|
-
|
|
576
|
-
| Rule | Default | Reports | Leaves alone |
|
|
577
|
-
| --------------------------------- | ------- | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
578
|
-
| `exists-union-correlated-outside` | **on** | an `EXISTS` over a derived `UNION` filtered only outside it | a `UNION` whose branches each carry the correlation (mission's `UNION ALL`) |
|
|
579
|
-
| `update-delete-without-where` | **on** | an `UPDATE` or `DELETE` with no `WHERE`, `UPDATE … FROM` included | a `SET` fragment |
|
|
580
|
-
| `insert-without-columns` | **on** | an `INSERT` with values and no column list | `DEFAULT VALUES`, a `VALUES` fragment |
|
|
581
|
-
| `select-star` | **on** | `SELECT *` or `t.*` on a table of the schema | `EXISTS (SELECT * …)`, `count(*)`, a `WITH` table, a subquery, `jsonb_to_recordset(…)` |
|
|
582
|
-
| `leading-wildcard-like` | **on** | a literal `LIKE` / `ILIKE` pattern starting with `%`, in a query | an anchored pattern, a bound one, a `CHECK` constraint |
|
|
583
|
-
| `offset-pagination` | opt-in | `OFFSET` in a query or in the fragment that pages it | `LIMIT` alone |
|
|
584
|
-
| `select-distinct` | opt-in | a plain `SELECT DISTINCT` | `DISTINCT ON (…)` |
|
|
585
|
-
| `not-in-subquery` | opt-in | `NOT IN (SELECT …)`, which one `NULL` in the result empties | `NOT IN (1, 2)`, `NOT EXISTS` |
|
|
586
|
-
|
|
587
|
-
Measured over every template of `main` 837abe3f29c: the five rules on by default report 3
|
|
588
|
-
templates of production code (all `select-star` on a table) and 15 in tests (fixtures that update
|
|
589
|
-
every row or insert by position, and two `ILIKE '%…'` on `pg_indexes`). Turned on, the opt-in
|
|
590
|
-
ones would report 14, 22 and 0 templates of production code.
|
|
591
|
-
|
|
592
|
-
### The 19 May incident, `exists-union-correlated-outside`
|
|
593
|
-
|
|
594
|
-
```sql
|
|
595
|
-
EXISTS (
|
|
596
|
-
SELECT 1 FROM (
|
|
597
|
-
SELECT j.profile_id FROM profile_jobs j WHERE j.approval = 'idle'
|
|
598
|
-
UNION
|
|
599
|
-
SELECT s.profile_id FROM profile_specialties s WHERE s.approval = 'idle'
|
|
600
|
-
) pending
|
|
601
|
-
WHERE pending.profile_id = p.id
|
|
602
|
-
)
|
|
603
|
-
```
|
|
604
|
-
|
|
605
|
-
The correlation to the outer row sits outside the union, on the derived table, and PostgreSQL does
|
|
606
|
-
not push it into the branches: for every outer row it builds the whole union. That made the
|
|
607
|
-
network list scan both tables once per profile (monorepo 868e2b4). Run on a copy of `network`, the
|
|
608
|
-
rule reports `has-pending-skill-requests.filter-strategy.ts:21` at `868e2b4^1` and nothing at
|
|
609
|
-
`868e2b4`; over every template of `main`, nothing.
|
|
610
|
-
|
|
611
|
-
```
|
|
612
|
-
this EXISTS reads the UNION `pending` and filters it only outside the union (`pending.profile_id`): PostgreSQL cannot push that filter into the branches, so it builds the whole union for every outer row. This is the shape of the 19 May incident.
|
|
613
|
-
```
|
|
614
|
-
|
|
615
|
-
The fix: repeat the correlation in each branch (`WHERE j.profile_id = p.id`), or write one
|
|
616
|
-
`EXISTS` per branch joined by `OR`, so each branch is filtered with its own index.
|
|
617
|
-
|
|
618
549
|
## Every way to send SQL text, and what reads it
|
|
619
550
|
|
|
620
551
|
Measured on the monorepo (`main` f12da701121), every call that can send text to a database:
|
|
621
552
|
|
|
622
|
-
| Entry point | Calls | Its text is | Read by
|
|
623
|
-
| ---------------------------------------------------------------------- | ------------: | -------------------------------------------------------- |
|
|
624
|
-
| `` $queryRaw`…` ``, `` $executeRaw`…` ``, `` Prisma.sql`…` `` (tagged) | 332 and 1 079 | a template whose every `${}` Prisma binds |
|
|
625
|
-
| `$queryRaw(sql)` called as a function | 30 | a `Prisma.Sql` object; TypeScript refuses a plain string | nothing to report
|
|
626
|
-
| `$queryRawUnsafe` / `$executeRawUnsafe` | 219 | SQL | `unsafe-sql-pasted-value`
|
|
627
|
-
| `pg` `query` | 37 | SQL | `unsafe-sql-pasted-value`
|
|
628
|
-
| postgres.js `unsafe` | 1 | SQL | `unsafe-sql-pasted-value`
|
|
629
|
-
| `Prisma.raw` | 97 | SQL, pasted as is | `unsafe-sql-raw-fragment`
|
|
630
|
-
| `Prisma.join` separator, prefix, suffix | 88 | SQL | `unsafe-sql-raw-fragment`
|
|
631
|
-
| postgres.js tagged `` sql`…` `` | | a template whose every `${}` the driver binds | nothing to report
|
|
632
|
-
| knex, TypeORM, Sequelize, mysql | 0 | | not used
|
|
633
|
-
| MongoDB (35 imports) | | not SQL | outside this role
|
|
553
|
+
| Entry point | Calls | Its text is | Read by |
|
|
554
|
+
| ---------------------------------------------------------------------- | ------------: | -------------------------------------------------------- | --------------------------------------- |
|
|
555
|
+
| `` $queryRaw`…` ``, `` $executeRaw`…` ``, `` Prisma.sql`…` `` (tagged) | 332 and 1 079 | a template whose every `${}` Prisma binds | nothing to report: safe by construction |
|
|
556
|
+
| `$queryRaw(sql)` called as a function | 30 | a `Prisma.Sql` object; TypeScript refuses a plain string | nothing to report |
|
|
557
|
+
| `$queryRawUnsafe` / `$executeRawUnsafe` | 219 | SQL | `unsafe-sql-pasted-value` |
|
|
558
|
+
| `pg` `query` | 37 | SQL | `unsafe-sql-pasted-value` |
|
|
559
|
+
| postgres.js `unsafe` | 1 | SQL | `unsafe-sql-pasted-value` |
|
|
560
|
+
| `Prisma.raw` | 97 | SQL, pasted as is | `unsafe-sql-raw-fragment` |
|
|
561
|
+
| `Prisma.join` separator, prefix, suffix | 88 | SQL | `unsafe-sql-raw-fragment` |
|
|
562
|
+
| postgres.js tagged `` sql`…` `` | | a template whose every `${}` the driver binds | nothing to report |
|
|
563
|
+
| knex, TypeORM, Sequelize, mysql | 0 | | not used |
|
|
564
|
+
| MongoDB (35 imports) | | not SQL | outside this role |
|
|
634
565
|
|
|
635
566
|
## What the role does not read yet
|
|
636
567
|
|
|
@@ -639,14 +570,9 @@ Said here so that a clean report is not read as more than it is:
|
|
|
639
570
|
- **`VACUUM` in a migration of several statements.** PostgreSQL refuses it inside a transaction,
|
|
640
571
|
as it refuses `CONCURRENTLY`, and squawk 2.72.0 does not report it there. No migration of the
|
|
641
572
|
monorepo runs `VACUUM`.
|
|
642
|
-
- **
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
- **The templates PostgreSQL's parser cannot read alone**, about 9 % of the production ones on
|
|
646
|
-
`main` 837abe3f29c: named in every report, never a failure, and checked by no rule.
|
|
647
|
-
- **The SQL text of `$queryRawUnsafe`** is checked for what is pasted into it, not against the
|
|
648
|
-
rules on templates, and **drizzle-orm's `` sql`…` ``** (6 files) is not read: its fragments are
|
|
649
|
-
built for its query builder.
|
|
573
|
+
- **The SQL text itself** of a raw query is not parsed: a tagged `$queryRaw` with only parameters is
|
|
574
|
+
safe from injection, and its SQL is not checked against any rule. A syntax error inside it is not
|
|
575
|
+
seen. That is the next step, with libpg-query.
|
|
650
576
|
- **JavaScript files** (`.js`, `.mjs`): the role reads TypeScript (`.ts`, `.mts`, `.cts`).
|
|
651
577
|
- **Files outside a module.** The role runs on a module; a script at the repository's root that
|
|
652
578
|
belongs to no module is read by no role.
|
|
@@ -241,9 +241,7 @@ $ sentinel --report --json 2>/dev/null
|
|
|
241
241
|
"code-churn",
|
|
242
242
|
"arch"
|
|
243
243
|
],
|
|
244
|
-
"skipped": [
|
|
245
|
-
"runtime-analysis"
|
|
246
|
-
],
|
|
244
|
+
"skipped": [],
|
|
247
245
|
"results": [
|
|
248
246
|
{
|
|
249
247
|
"project": "svelte-app",
|
|
@@ -330,7 +328,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
330
328
|
"migrations": 0,
|
|
331
329
|
"codeFiles": 1,
|
|
332
330
|
"unsafeFiles": 0,
|
|
333
|
-
"templateFiles": 0,
|
|
334
331
|
"base": null,
|
|
335
332
|
"migrationsRead": 0,
|
|
336
333
|
"migrationsUnchanged": 0,
|
|
@@ -339,9 +336,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
339
336
|
"unsafeCalls": 0,
|
|
340
337
|
"rawFragmentCalls": 0,
|
|
341
338
|
"unsafeUnparsed": 0,
|
|
342
|
-
"templateFilesRead": 0,
|
|
343
|
-
"templatesRead": 0,
|
|
344
|
-
"templatesUnread": 0,
|
|
345
339
|
"findings": 0,
|
|
346
340
|
"errors": 0,
|
|
347
341
|
"rulesOff": [],
|
|
@@ -458,7 +452,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
458
452
|
"migrations": 0,
|
|
459
453
|
"codeFiles": 1,
|
|
460
454
|
"unsafeFiles": 0,
|
|
461
|
-
"templateFiles": 0,
|
|
462
455
|
"base": null,
|
|
463
456
|
"migrationsRead": 0,
|
|
464
457
|
"migrationsUnchanged": 0,
|
|
@@ -467,9 +460,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
467
460
|
"unsafeCalls": 0,
|
|
468
461
|
"rawFragmentCalls": 0,
|
|
469
462
|
"unsafeUnparsed": 0,
|
|
470
|
-
"templateFilesRead": 0,
|
|
471
|
-
"templatesRead": 0,
|
|
472
|
-
"templatesUnread": 0,
|
|
473
463
|
"findings": 0,
|
|
474
464
|
"errors": 0,
|
|
475
465
|
"rulesOff": [],
|
|
@@ -586,7 +576,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
586
576
|
"migrations": 0,
|
|
587
577
|
"codeFiles": 1,
|
|
588
578
|
"unsafeFiles": 0,
|
|
589
|
-
"templateFiles": 0,
|
|
590
579
|
"base": null,
|
|
591
580
|
"migrationsRead": 0,
|
|
592
581
|
"migrationsUnchanged": 0,
|
|
@@ -595,9 +584,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
595
584
|
"unsafeCalls": 0,
|
|
596
585
|
"rawFragmentCalls": 0,
|
|
597
586
|
"unsafeUnparsed": 0,
|
|
598
|
-
"templateFilesRead": 0,
|
|
599
|
-
"templatesRead": 0,
|
|
600
|
-
"templatesUnread": 0,
|
|
601
587
|
"findings": 0,
|
|
602
588
|
"errors": 0,
|
|
603
589
|
"rulesOff": [],
|
|
@@ -702,7 +688,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
702
688
|
"migrations": 0,
|
|
703
689
|
"codeFiles": 1,
|
|
704
690
|
"unsafeFiles": 0,
|
|
705
|
-
"templateFiles": 0,
|
|
706
691
|
"base": null,
|
|
707
692
|
"migrationsRead": 0,
|
|
708
693
|
"migrationsUnchanged": 0,
|
|
@@ -711,9 +696,6 @@ $ sentinel --report --json 2>/dev/null
|
|
|
711
696
|
"unsafeCalls": 0,
|
|
712
697
|
"rawFragmentCalls": 0,
|
|
713
698
|
"unsafeUnparsed": 0,
|
|
714
|
-
"templateFilesRead": 0,
|
|
715
|
-
"templatesRead": 0,
|
|
716
|
-
"templatesUnread": 0,
|
|
717
699
|
"findings": 0,
|
|
718
700
|
"errors": 0,
|
|
719
701
|
"rulesOff": [],
|
|
@@ -781,9 +763,7 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
781
763
|
"code-churn",
|
|
782
764
|
"arch"
|
|
783
765
|
],
|
|
784
|
-
"skipped": [
|
|
785
|
-
"runtime-analysis"
|
|
786
|
-
],
|
|
766
|
+
"skipped": [],
|
|
787
767
|
"results": [
|
|
788
768
|
{
|
|
789
769
|
"project": "svelte-app",
|
|
@@ -870,7 +850,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
870
850
|
"migrations": 0,
|
|
871
851
|
"codeFiles": 1,
|
|
872
852
|
"unsafeFiles": 0,
|
|
873
|
-
"templateFiles": 0,
|
|
874
853
|
"base": null,
|
|
875
854
|
"migrationsRead": 0,
|
|
876
855
|
"migrationsUnchanged": 0,
|
|
@@ -879,9 +858,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
879
858
|
"unsafeCalls": 0,
|
|
880
859
|
"rawFragmentCalls": 0,
|
|
881
860
|
"unsafeUnparsed": 0,
|
|
882
|
-
"templateFilesRead": 0,
|
|
883
|
-
"templatesRead": 0,
|
|
884
|
-
"templatesUnread": 0,
|
|
885
861
|
"findings": 0,
|
|
886
862
|
"errors": 0,
|
|
887
863
|
"rulesOff": [],
|
|
@@ -998,7 +974,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
998
974
|
"migrations": 0,
|
|
999
975
|
"codeFiles": 1,
|
|
1000
976
|
"unsafeFiles": 0,
|
|
1001
|
-
"templateFiles": 0,
|
|
1002
977
|
"base": null,
|
|
1003
978
|
"migrationsRead": 0,
|
|
1004
979
|
"migrationsUnchanged": 0,
|
|
@@ -1007,9 +982,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
1007
982
|
"unsafeCalls": 0,
|
|
1008
983
|
"rawFragmentCalls": 0,
|
|
1009
984
|
"unsafeUnparsed": 0,
|
|
1010
|
-
"templateFilesRead": 0,
|
|
1011
|
-
"templatesRead": 0,
|
|
1012
|
-
"templatesUnread": 0,
|
|
1013
985
|
"findings": 0,
|
|
1014
986
|
"errors": 0,
|
|
1015
987
|
"rulesOff": [],
|
|
@@ -1126,7 +1098,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
1126
1098
|
"migrations": 0,
|
|
1127
1099
|
"codeFiles": 1,
|
|
1128
1100
|
"unsafeFiles": 0,
|
|
1129
|
-
"templateFiles": 0,
|
|
1130
1101
|
"base": null,
|
|
1131
1102
|
"migrationsRead": 0,
|
|
1132
1103
|
"migrationsUnchanged": 0,
|
|
@@ -1135,9 +1106,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
1135
1106
|
"unsafeCalls": 0,
|
|
1136
1107
|
"rawFragmentCalls": 0,
|
|
1137
1108
|
"unsafeUnparsed": 0,
|
|
1138
|
-
"templateFilesRead": 0,
|
|
1139
|
-
"templatesRead": 0,
|
|
1140
|
-
"templatesUnread": 0,
|
|
1141
1109
|
"findings": 0,
|
|
1142
1110
|
"errors": 0,
|
|
1143
1111
|
"rulesOff": [],
|
|
@@ -1242,7 +1210,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
1242
1210
|
"migrations": 0,
|
|
1243
1211
|
"codeFiles": 1,
|
|
1244
1212
|
"unsafeFiles": 0,
|
|
1245
|
-
"templateFiles": 0,
|
|
1246
1213
|
"base": null,
|
|
1247
1214
|
"migrationsRead": 0,
|
|
1248
1215
|
"migrationsUnchanged": 0,
|
|
@@ -1251,9 +1218,6 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
1251
1218
|
"unsafeCalls": 0,
|
|
1252
1219
|
"rawFragmentCalls": 0,
|
|
1253
1220
|
"unsafeUnparsed": 0,
|
|
1254
|
-
"templateFilesRead": 0,
|
|
1255
|
-
"templatesRead": 0,
|
|
1256
|
-
"templatesUnread": 0,
|
|
1257
1221
|
"findings": 0,
|
|
1258
1222
|
"errors": 0,
|
|
1259
1223
|
"rulesOff": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.7.0-alpha.
|
|
3
|
+
"version": "1.7.0-alpha.31",
|
|
4
4
|
"description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
"types": "./dist/roles/code-churn/config.d.ts",
|
|
67
67
|
"import": "./dist/roles/code-churn/config.js"
|
|
68
68
|
},
|
|
69
|
+
"./runtime-analysis": {
|
|
70
|
+
"types": "./dist/roles/runtime-analysis/config.d.ts",
|
|
71
|
+
"import": "./dist/roles/runtime-analysis/config.js"
|
|
72
|
+
},
|
|
69
73
|
"./env": {
|
|
70
74
|
"types": "./dist/roles/env/config.d.ts",
|
|
71
75
|
"import": "./dist/roles/env/config.js"
|
|
@@ -125,7 +129,8 @@
|
|
|
125
129
|
"docs",
|
|
126
130
|
"lint",
|
|
127
131
|
"oxlint",
|
|
128
|
-
"plugins"
|
|
132
|
+
"plugins",
|
|
133
|
+
"runtime-analysis-deps"
|
|
129
134
|
],
|
|
130
135
|
"scripts": {
|
|
131
136
|
"build": "tsup && tsx scripts/build-presets.ts",
|
|
@@ -177,7 +182,6 @@
|
|
|
177
182
|
"jscpd": "5.4.0",
|
|
178
183
|
"jsdom": "^24.1.3",
|
|
179
184
|
"jsonc-parser": "^3.3.1",
|
|
180
|
-
"libpg-query": "16.8.3",
|
|
181
185
|
"msw": "1.3.3",
|
|
182
186
|
"nitro": "3.0.260415-beta",
|
|
183
187
|
"oxc-parser": "0.147.0",
|
|
@@ -197,7 +201,10 @@
|
|
|
197
201
|
"@hublo/sentinel": "link:.",
|
|
198
202
|
"@types/node": "^24.19.2",
|
|
199
203
|
"@types/picomatch": "4.0.3",
|
|
204
|
+
"lighthouse": "13.6.0",
|
|
200
205
|
"nx": "^23.1.0",
|
|
206
|
+
"playwright-core": "1.64.1",
|
|
207
|
+
"puppeteer-core": "25.16.0",
|
|
201
208
|
"tsup": "^8.3.0",
|
|
202
209
|
"tsx": "^4.19.0"
|
|
203
210
|
},
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Imported by file path from sentinel's cache: the bare names below resolve to the node_modules
|
|
2
|
+
// installed next to this file, never to the workspace's.
|
|
3
|
+
export { startFlow } from 'lighthouse'
|
|
4
|
+
export { default as desktopConfig } from 'lighthouse/core/config/desktop-config.js'
|
|
5
|
+
export { chromium } from 'playwright-core'
|
|
6
|
+
export { default as puppeteer } from 'puppeteer-core'
|