@orkestrel/scaffold 0.0.112 → 0.0.114

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.
Files changed (67) hide show
  1. package/dist/agents/skills/orkestrel-harden/scripts/titles.js +3 -3
  2. package/dist/agents/skills/orkestrel-publish/scripts/wave.js +120 -21
  3. package/dist/bin/main.js +71 -23
  4. package/dist/bin/main.js.map +1 -1
  5. package/dist/host/agents/platforms/windows.md +1 -1
  6. package/dist/host/agents/skills/orkestrel-harden/scripts/titles.ts +3 -3
  7. package/dist/host/agents/skills/orkestrel-publish/SKILL.md +7 -7
  8. package/dist/host/agents/skills/orkestrel-publish/references/wave.md +25 -8
  9. package/dist/host/agents/skills/orkestrel-publish/scripts/wave.ts +187 -54
  10. package/dist/host/claude/agents/orkestrel.md +53 -53
  11. package/dist/host/claude/rules/architecture.md +4 -3
  12. package/dist/host/claude/rules/tests.md +24 -7
  13. package/dist/host/claude/rules/typescript.md +11 -2
  14. package/dist/host/claude/rules/workspace.md +32 -28
  15. package/dist/host/configs/policy.ts +49 -0
  16. package/dist/host/dotfiles/gitignore +1 -0
  17. package/dist/host/dotfiles/oxlintrc.json +6 -0
  18. package/dist/host/guides/agent.md +13 -13
  19. package/dist/host/guides/brief.md +4 -0
  20. package/dist/host/guides/browser.md +162 -44
  21. package/dist/host/guides/budget.md +1 -1
  22. package/dist/host/guides/capture.md +4 -0
  23. package/dist/host/guides/console.md +13 -0
  24. package/dist/host/guides/contract.md +38 -3
  25. package/dist/host/guides/csv.md +5 -0
  26. package/dist/host/guides/database.md +58 -8
  27. package/dist/host/guides/form.md +17 -0
  28. package/dist/host/guides/guide.md +36 -33
  29. package/dist/host/guides/html.md +72 -44
  30. package/dist/host/guides/indexeddb.md +4 -0
  31. package/dist/host/guides/lsp.md +49 -8
  32. package/dist/host/guides/markdown.md +146 -1
  33. package/dist/host/guides/mcp.md +117 -22
  34. package/dist/host/guides/middleware.md +194 -26
  35. package/dist/host/guides/msg.md +9 -5
  36. package/dist/host/guides/pool.md +8 -1
  37. package/dist/host/guides/probe.md +13 -1
  38. package/dist/host/guides/process.md +102 -90
  39. package/dist/host/guides/program.md +4 -0
  40. package/dist/host/guides/qualifier.md +4 -0
  41. package/dist/host/guides/rater.md +4 -0
  42. package/dist/host/guides/reason.md +6 -4
  43. package/dist/host/guides/relation.md +4 -0
  44. package/dist/host/guides/scaffold.md +32 -14
  45. package/dist/host/guides/server.md +29 -13
  46. package/dist/host/guides/sqlite.md +6 -0
  47. package/dist/host/guides/sse.md +6 -0
  48. package/dist/host/guides/study.md +473 -473
  49. package/dist/host/guides/table.md +3 -0
  50. package/dist/host/guides/template.md +3 -0
  51. package/dist/host/guides/test.md +38 -20
  52. package/dist/host/guides/tool.md +3 -0
  53. package/dist/host/guides/toolbox.md +21 -0
  54. package/dist/host/guides/websocket.md +3 -1
  55. package/dist/host/guides/workflow.md +103 -11
  56. package/dist/host/guides/workspace.md +4 -0
  57. package/dist/host/manifest.json +56 -56
  58. package/dist/host/tests/config.test.ts +72 -16
  59. package/dist/host/tests/policy.test.ts +21 -7
  60. package/dist/host/tests/setupPolicy.ts +147 -12
  61. package/dist/src/core/index.cjs +22 -28
  62. package/dist/src/core/index.cjs.map +1 -1
  63. package/dist/src/core/index.d.cts +8 -8
  64. package/dist/src/core/index.d.ts +8 -8
  65. package/dist/src/core/index.js +22 -28
  66. package/dist/src/core/index.js.map +1 -1
  67. package/package.json +12 -12
@@ -28,7 +28,7 @@
28
28
  "storage": "agents/platforms/windows.md",
29
29
  "destination": ".agents/platforms/windows.md",
30
30
  "executable": false,
31
- "digest": "63a9423270590e0d064b52205a803b652df2e7c790d02e4e97101039adbd5e2b"
31
+ "digest": "0504d1ee45e180e732508a385e349a08ce1edd0827f4d810086ef708d1af5e09"
32
32
  },
33
33
  {
34
34
  "storage": "agents/skills/enterprise-bootstrap/SKILL.md",
@@ -328,7 +328,7 @@
328
328
  "storage": "agents/skills/orkestrel-harden/scripts/titles.ts",
329
329
  "destination": ".agents/skills/orkestrel-harden/scripts/titles.ts",
330
330
  "executable": false,
331
- "digest": "fb029665990e92407a9805a863d6ffc88f0a9e8a891ed50196a7c3a98eae24b1"
331
+ "digest": "b9eec5b1fcf2a4c3470021408e694caf9188a445c78a19c9b85f46a7f787d29d"
332
332
  },
333
333
  {
334
334
  "storage": "agents/skills/orkestrel-journey/SKILL.md",
@@ -448,7 +448,7 @@
448
448
  "storage": "agents/skills/orkestrel-publish/SKILL.md",
449
449
  "destination": ".agents/skills/orkestrel-publish/SKILL.md",
450
450
  "executable": false,
451
- "digest": "2fbe57d20e5982df605d677f397b5e73b0313ae29a11d27f1494c47ea5255405"
451
+ "digest": "6c296c5a2869b2cd1f793a30b5d38cb34a76093e9a1c4b86d0bd3183f01cfc5b"
452
452
  },
453
453
  {
454
454
  "storage": "agents/skills/orkestrel-publish/agents/openai.yaml",
@@ -472,7 +472,7 @@
472
472
  "storage": "agents/skills/orkestrel-publish/references/wave.md",
473
473
  "destination": ".agents/skills/orkestrel-publish/references/wave.md",
474
474
  "executable": false,
475
- "digest": "86474895668e2e6bb0da3eaa70dc434787513cae46dfb7e0c189c884e769a131"
475
+ "digest": "e59878d73f54c09a11a02827eca1615a64d01d47535d3c872223bba4134c63b4"
476
476
  },
477
477
  {
478
478
  "storage": "agents/skills/orkestrel-publish/references/window.md",
@@ -502,7 +502,7 @@
502
502
  "storage": "agents/skills/orkestrel-publish/scripts/wave.ts",
503
503
  "destination": ".agents/skills/orkestrel-publish/scripts/wave.ts",
504
504
  "executable": false,
505
- "digest": "b287101aa6a85f9a3051a77ed5e675ca078c9d8c91b39c82bf629c060b44bd83"
505
+ "digest": "f580329017e3076a4cfdfa60db6ec426369c9883ace2bcce7eb5a6346b8f0d6d"
506
506
  },
507
507
  {
508
508
  "storage": "agents/skills/orkestrel-publish/scripts/window.ts",
@@ -604,7 +604,7 @@
604
604
  "storage": "claude/agents/orkestrel.md",
605
605
  "destination": ".claude/agents/orkestrel.md",
606
606
  "executable": false,
607
- "digest": "2a1895d1205648961be79f6bc7d92e27fffa3f6aa6e9f2ff6ff8588992feb4d0"
607
+ "digest": "858ee17e096f0704fa5bf79452dc1d92384ef5a0b557094769ff5ac8e45d05f0"
608
608
  },
609
609
  {
610
610
  "storage": "claude/agents/planner.md",
@@ -646,7 +646,7 @@
646
646
  "storage": "claude/rules/architecture.md",
647
647
  "destination": ".claude/rules/architecture.md",
648
648
  "executable": false,
649
- "digest": "249b5a5545852b468e9c48e507574e9a5dc4a4c79b155849c854748c7a416dd3"
649
+ "digest": "e096a38930147d66c04948f02d4f797935bd8633ed98abf04f8732618dab8133"
650
650
  },
651
651
  {
652
652
  "storage": "claude/rules/browser.md",
@@ -700,19 +700,19 @@
700
700
  "storage": "claude/rules/tests.md",
701
701
  "destination": ".claude/rules/tests.md",
702
702
  "executable": false,
703
- "digest": "3a192979f45a81fe0cb5be249064c63ea0187c4bea2c7eeb8440578053662630"
703
+ "digest": "c81878d22e32530bd68db2ae2245806bb31de7b7035b26f1e67b94510020d928"
704
704
  },
705
705
  {
706
706
  "storage": "claude/rules/typescript.md",
707
707
  "destination": ".claude/rules/typescript.md",
708
708
  "executable": false,
709
- "digest": "d42925d482c8922ce8cd3cc699ec7e95696081b93ea4fbb8ceb8a70b38537164"
709
+ "digest": "dbbb6685847dd31752ba62dd2fbdc9d1b47402aaa247529684a5c192040e07e1"
710
710
  },
711
711
  {
712
712
  "storage": "claude/rules/workspace.md",
713
713
  "destination": ".claude/rules/workspace.md",
714
714
  "executable": false,
715
- "digest": "362240820975555fc2cafe379832bd4e65c3cdd46d964a83434e5a4969b65789"
715
+ "digest": "a364813cdba3276deefa159eb2a4cb85f8acb2becb4f55ebff17a019c397c381"
716
716
  },
717
717
  {
718
718
  "storage": "claude/rules/writing.md",
@@ -892,7 +892,7 @@
892
892
  "storage": "configs/policy.ts",
893
893
  "destination": "configs/policy.ts",
894
894
  "executable": false,
895
- "digest": "f68b8a7ead761d35fcdaa32a63c979a4e0401847fc5357adf2c6b24f1e9f475b"
895
+ "digest": "b80d6a2b5e4d693341cec7c02ad6097d04218d4adcd4640976971c19fda219ab"
896
896
  },
897
897
  {
898
898
  "storage": "cursor/mcp.json",
@@ -922,7 +922,7 @@
922
922
  "storage": "dotfiles/gitignore",
923
923
  "destination": ".gitignore",
924
924
  "executable": false,
925
- "digest": "e8789a7b46ab16a8a4127127fa5e9f131f7fb559936c878ef07d59afafcc08cb"
925
+ "digest": "300f28f9058bb54c50af1615b38b8347fa5126b03e0ec90ae92824538ac5d089"
926
926
  },
927
927
  {
928
928
  "storage": "dotfiles/mcp.json",
@@ -946,7 +946,7 @@
946
946
  "storage": "dotfiles/oxlintrc.json",
947
947
  "destination": ".oxlintrc.json",
948
948
  "executable": false,
949
- "digest": "d644dea01bc19a4ecb40e36b09a4636de21899e9bece8cc6101f3b08091bd29c"
949
+ "digest": "8c459fbf2120d1de42cdf6380e26988c96044253578c6b2b9749cab322155c62"
950
950
  },
951
951
  {
952
952
  "storage": "dotfiles/prettierignore",
@@ -970,31 +970,31 @@
970
970
  "storage": "guides/agent.md",
971
971
  "destination": "guides/agent.md",
972
972
  "executable": false,
973
- "digest": "128f9bcb3751a0fb8d99ffae54fc1778dddc17ad56f68e02b0d98c90a7e4a5ab"
973
+ "digest": "675cafb567a893dc7bf0f296ceac7022534b2509fa34b6bbaf68fc6e68aad2dd"
974
974
  },
975
975
  {
976
976
  "storage": "guides/brief.md",
977
977
  "destination": "guides/brief.md",
978
978
  "executable": false,
979
- "digest": "1c832b7c82846c0cafb8b1d3157c3b4697baf3f5697c34cad483af6175266942"
979
+ "digest": "55fd0d63fccf1af8329eea17179a3fdf158ed953b6d46164f8672bee2edffd3b"
980
980
  },
981
981
  {
982
982
  "storage": "guides/browser.md",
983
983
  "destination": "guides/browser.md",
984
984
  "executable": false,
985
- "digest": "41892754ac63c9344555f53fb8b2118bb2ece1ec79b4d4594077e8a77e1cb3a2"
985
+ "digest": "35ef0b7b4f7050de94ef7fb408bf285571d02ac1af9cace23b0ad3420bc81e2e"
986
986
  },
987
987
  {
988
988
  "storage": "guides/budget.md",
989
989
  "destination": "guides/budget.md",
990
990
  "executable": false,
991
- "digest": "d9bb1ac17b8eea3d84312f433e4695a4e73b14a82347a2c6af732f7844b96038"
991
+ "digest": "748b1da40f61d6f39335253595885aae3c8faf94e324c6256c72295b4b32c260"
992
992
  },
993
993
  {
994
994
  "storage": "guides/capture.md",
995
995
  "destination": "guides/capture.md",
996
996
  "executable": false,
997
- "digest": "de0af91a1f7f73bcf25a1b3ca290426c19440913f38f17ac110cbe8ca37f5bfa"
997
+ "digest": "14f693ead9a396ee9cb6d1554fb170e09c996c02db618852e391e8e37ccb585c"
998
998
  },
999
999
  {
1000
1000
  "storage": "guides/codec.md",
@@ -1006,25 +1006,25 @@
1006
1006
  "storage": "guides/console.md",
1007
1007
  "destination": "guides/console.md",
1008
1008
  "executable": false,
1009
- "digest": "c575601b79a0bc3236e4d6dd636870c1579509f459bbdcd6dc14e2a9860b2c1b"
1009
+ "digest": "6f487af2635e8b40555112e4826869ca938fa485f53b405bc56b0304257abf8a"
1010
1010
  },
1011
1011
  {
1012
1012
  "storage": "guides/contract.md",
1013
1013
  "destination": "guides/contract.md",
1014
1014
  "executable": false,
1015
- "digest": "5339c1ba3a1ffe9ffe5415d70bd4868a73f9ef2661c4ce97e22dc8a30054569c"
1015
+ "digest": "df54f956f43a099c02a1ce06b8a1340b042ed1c0e25968535cc764328bcdee98"
1016
1016
  },
1017
1017
  {
1018
1018
  "storage": "guides/csv.md",
1019
1019
  "destination": "guides/csv.md",
1020
1020
  "executable": false,
1021
- "digest": "d0607331254fce34e99859bdfa5f8e1c4ae48d310c8a3a431f175275c3605319"
1021
+ "digest": "9b0c9f7913cf89d1ec168cff811bbc90ebc993fc67e44b1401ac78cf66f3db71"
1022
1022
  },
1023
1023
  {
1024
1024
  "storage": "guides/database.md",
1025
1025
  "destination": "guides/database.md",
1026
1026
  "executable": false,
1027
- "digest": "82affd78e089b87fad745a485815307dffaaeac9915149e9ed906d99b61f9905"
1027
+ "digest": "8cd5338fcca2e13cebbe5c221adda35f7032bde120f3a3350fdc074acc89c42c"
1028
1028
  },
1029
1029
  {
1030
1030
  "storage": "guides/emitter.md",
@@ -1036,25 +1036,25 @@
1036
1036
  "storage": "guides/form.md",
1037
1037
  "destination": "guides/form.md",
1038
1038
  "executable": false,
1039
- "digest": "c96e74336646def8cb8eb38bb2aeec07a075af321a5a12e5e217452a582de6a3"
1039
+ "digest": "67c37642c8710110a5e7297b2a2ecc34e27e484eb10d458b155cd21c4bb428b8"
1040
1040
  },
1041
1041
  {
1042
1042
  "storage": "guides/guide.md",
1043
1043
  "destination": "guides/guide.md",
1044
1044
  "executable": false,
1045
- "digest": "4749d6a2a7da1d8d89a8c3ee3b60c5f21fcfb112074db80d7b1a2edcdef93afd"
1045
+ "digest": "84a4806796d520b9a396515f36f5657d2c2b086393935233130ea915995cc31a"
1046
1046
  },
1047
1047
  {
1048
1048
  "storage": "guides/html.md",
1049
1049
  "destination": "guides/html.md",
1050
1050
  "executable": false,
1051
- "digest": "59cfa48c75cc8b93c1160c5a01afa5d1722a70e16cbcadeca4a4cd46277c119e"
1051
+ "digest": "efe0e6a980cddf9680d86a9676bec77aa9bf332d5c4adecde86f7a848c48e580"
1052
1052
  },
1053
1053
  {
1054
1054
  "storage": "guides/indexeddb.md",
1055
1055
  "destination": "guides/indexeddb.md",
1056
1056
  "executable": false,
1057
- "digest": "ff2a2a49808a08885fc42f6758c0ceafcf1f986a5b27d401d5b15b74955761ac"
1057
+ "digest": "cb1fa6886a466f5852d694c1dffef09acc49a5e5f0656583842aba9fe60cc5b4"
1058
1058
  },
1059
1059
  {
1060
1060
  "storage": "guides/interpret.md",
@@ -1066,31 +1066,31 @@
1066
1066
  "storage": "guides/lsp.md",
1067
1067
  "destination": "guides/lsp.md",
1068
1068
  "executable": false,
1069
- "digest": "4797d16708e284f5aedffb433515c8332e23c962313410686ff1f667122aba49"
1069
+ "digest": "b53c987ec732d91d421640b07c53a61766da656d9dbe2c5f3a1015904dfb4da3"
1070
1070
  },
1071
1071
  {
1072
1072
  "storage": "guides/markdown.md",
1073
1073
  "destination": "guides/markdown.md",
1074
1074
  "executable": false,
1075
- "digest": "fc52d472e3295c78d39efb3fac243454a078ba8f8ef6b68d2b6b28df4e8fc031"
1075
+ "digest": "931bb821dfbbd28f805063e5a601f0113ffdfa783a670d83fb4b866a39bc1626"
1076
1076
  },
1077
1077
  {
1078
1078
  "storage": "guides/mcp.md",
1079
1079
  "destination": "guides/mcp.md",
1080
1080
  "executable": false,
1081
- "digest": "ea75c0a7f43e99787f808abf6e99093624b636f35cd8181923c578f0f6a349a5"
1081
+ "digest": "b50d2ccb4732ed69262959dcc3a75510c4e1981a394c4bad823b4d5664c3aeef"
1082
1082
  },
1083
1083
  {
1084
1084
  "storage": "guides/middleware.md",
1085
1085
  "destination": "guides/middleware.md",
1086
1086
  "executable": false,
1087
- "digest": "2674357af960607a004dcef04e8a4d01f140a6a6ce0d30b74b65e5735bea5546"
1087
+ "digest": "ee41b2c21390a2a81415dc5aae18d850a5d3c27c3cd354734f2f381d58b652b7"
1088
1088
  },
1089
1089
  {
1090
1090
  "storage": "guides/msg.md",
1091
1091
  "destination": "guides/msg.md",
1092
1092
  "executable": false,
1093
- "digest": "335777be8e8f515f521a016ed7d7b1d3e165f083b2fe22fbd12d67eb9231b3cd"
1093
+ "digest": "958b9fbd2dfb9dfa63ac394a7af87716cc965c3990a6306d8d136e3f633c4dcc"
1094
1094
  },
1095
1095
  {
1096
1096
  "storage": "guides/ndjson.md",
@@ -1108,31 +1108,31 @@
1108
1108
  "storage": "guides/pool.md",
1109
1109
  "destination": "guides/pool.md",
1110
1110
  "executable": false,
1111
- "digest": "a8bbdd91006afeb577d9e43a3f04ffe37cae989db954058b2e67197a3ca62572"
1111
+ "digest": "5616dfddf50f2e4a3a81847bcd1e1596ff73c78d464bb2f5c7deee26758db6a7"
1112
1112
  },
1113
1113
  {
1114
1114
  "storage": "guides/probe.md",
1115
1115
  "destination": "guides/probe.md",
1116
1116
  "executable": false,
1117
- "digest": "a54e8abba99ca3e603cc3266db3387d621d1efa31ceb097b33bb0c8009807775"
1117
+ "digest": "793e797e3bbeae2a66782db95081db31209ea0e1ee0005b6ce58ccf1a5baa6ed"
1118
1118
  },
1119
1119
  {
1120
1120
  "storage": "guides/process.md",
1121
1121
  "destination": "guides/process.md",
1122
1122
  "executable": false,
1123
- "digest": "c1294ee9e29d10c28fd3e4b73d9cd622168816ddeceb2a8fd01b4877a935b026"
1123
+ "digest": "26b6109585bc4b8069ff3e4e948c477cd61d81e402ffdbf587fdbfaf46f3f4f9"
1124
1124
  },
1125
1125
  {
1126
1126
  "storage": "guides/program.md",
1127
1127
  "destination": "guides/program.md",
1128
1128
  "executable": false,
1129
- "digest": "d76a34dac74feac38f7ffbb61a06b653c47b053d2c8b5fcae09624966e6a0910"
1129
+ "digest": "99b9cbad800f29bc01d66e212ea2a91b791e449b195ccefd0eb0f6605a502b03"
1130
1130
  },
1131
1131
  {
1132
1132
  "storage": "guides/qualifier.md",
1133
1133
  "destination": "guides/qualifier.md",
1134
1134
  "executable": false,
1135
- "digest": "61149796aad928fc562634199cfb1ee8d9bfbf29e9c6ebd6e10694318c70f27f"
1135
+ "digest": "efc4b6f3dc3791cd0e4cf3c5260c651fa243133713f758dca270ef8c228c607f"
1136
1136
  },
1137
1137
  {
1138
1138
  "storage": "guides/queue.md",
@@ -1144,19 +1144,19 @@
1144
1144
  "storage": "guides/rater.md",
1145
1145
  "destination": "guides/rater.md",
1146
1146
  "executable": false,
1147
- "digest": "df5a7684ae3575140b8e2e73bc0c322dc8b1b8e115e57a4bad42c178d22bfb20"
1147
+ "digest": "2a3b3fe8ccf8f510fc514a97f81e06b648167dbddc2157c18b1c44c87cf1f7e1"
1148
1148
  },
1149
1149
  {
1150
1150
  "storage": "guides/reason.md",
1151
1151
  "destination": "guides/reason.md",
1152
1152
  "executable": false,
1153
- "digest": "b001ebddb038f0d5ab9744970322687ae39a4173ffabe8e352bfd03948102a50"
1153
+ "digest": "1673e32e8c2a09f33aaf3ba807b71e45f210a87d1233c61a6d38addb028f1c33"
1154
1154
  },
1155
1155
  {
1156
1156
  "storage": "guides/relation.md",
1157
1157
  "destination": "guides/relation.md",
1158
1158
  "executable": false,
1159
- "digest": "0d4a1b19240cb4287a0c178eec05328a8a8f8acff1ce04ef0afb839ccf4ec814"
1159
+ "digest": "ef45c6618f301e9dbaaff675cb1cf6e2da1df5cd1cf4a06fb64b34cb10754a9b"
1160
1160
  },
1161
1161
  {
1162
1162
  "storage": "guides/router.md",
@@ -1168,7 +1168,7 @@
1168
1168
  "storage": "guides/scaffold.md",
1169
1169
  "destination": "guides/scaffold.md",
1170
1170
  "executable": false,
1171
- "digest": "e1a5a1c2e27e6d6ea06de836b90ef98b5b231d685b85a3315a31c3c71bc5465e"
1171
+ "digest": "0051b423298277bd7fd2d12a81f6a858a4fd633bd3a44c735a0d8db8dbdd866d"
1172
1172
  },
1173
1173
  {
1174
1174
  "storage": "guides/sea.md",
@@ -1180,37 +1180,37 @@
1180
1180
  "storage": "guides/server.md",
1181
1181
  "destination": "guides/server.md",
1182
1182
  "executable": false,
1183
- "digest": "25bbe9def89dcdcce6eb2b0226f4703bac7afc7706cc9074fce6816a94664f5a"
1183
+ "digest": "4290030d156bc22f5741ad8acfedaba7eda9197cd6ffaaba06937aef0a00cd05"
1184
1184
  },
1185
1185
  {
1186
1186
  "storage": "guides/sqlite.md",
1187
1187
  "destination": "guides/sqlite.md",
1188
1188
  "executable": false,
1189
- "digest": "494acc0cc4d27b37ee1b666ff1e7908220fd2f4d594f0d3e3ef5b07d6b8229de"
1189
+ "digest": "d2ab5c43fbf646596fe146154ed818ca64e8434ab3c7b3e68b5a4319dc3112af"
1190
1190
  },
1191
1191
  {
1192
1192
  "storage": "guides/sse.md",
1193
1193
  "destination": "guides/sse.md",
1194
1194
  "executable": false,
1195
- "digest": "88c5fa0b3dadde1370f5e74f087f472cbedbdf18e695d4a82e37a4abc8e24579"
1195
+ "digest": "bb2c1a98674ba4eee328125173d682c68724a788f76dfd4123a00dab837b6cc8"
1196
1196
  },
1197
1197
  {
1198
1198
  "storage": "guides/study.md",
1199
1199
  "destination": "guides/study.md",
1200
1200
  "executable": false,
1201
- "digest": "2a85a221bdff846aeadfc9b7885a8d758e15c034abe3c6a90f2a4f140a31bb4b"
1201
+ "digest": "a2838d667df274296563865cf0735901c2082e7cede72fa92125103cf887dc17"
1202
1202
  },
1203
1203
  {
1204
1204
  "storage": "guides/table.md",
1205
1205
  "destination": "guides/table.md",
1206
1206
  "executable": false,
1207
- "digest": "31a509657873420ad4d922aa257b3aa0fa6e4f347ae653094178829a7cfef53e"
1207
+ "digest": "7cf56ef990816d9345e48a4b5c4fcf7a32960298066d607abab7c9a8f0bceacd"
1208
1208
  },
1209
1209
  {
1210
1210
  "storage": "guides/template.md",
1211
1211
  "destination": "guides/template.md",
1212
1212
  "executable": false,
1213
- "digest": "e0dda23ec042e810ee97a1907007ef06e5f6c21e579dd9d61f1c8d1612500d36"
1213
+ "digest": "4a1bab2e9cf19f124419ee14baf17b702699f2b53f1762b659c75e3baa412327"
1214
1214
  },
1215
1215
  {
1216
1216
  "storage": "guides/terminal.md",
@@ -1222,7 +1222,7 @@
1222
1222
  "storage": "guides/test.md",
1223
1223
  "destination": "guides/test.md",
1224
1224
  "executable": false,
1225
- "digest": "cef16dcdcc69697d2b35af741646dee4e6ec0ff2d96eded200db7ed1a335f0c6"
1225
+ "digest": "dbfcb7b98dfe1b8f824b661c7f15b3a4c474f8ef66f21c143f69639dc457adf2"
1226
1226
  },
1227
1227
  {
1228
1228
  "storage": "guides/timeout.md",
@@ -1234,19 +1234,19 @@
1234
1234
  "storage": "guides/tool.md",
1235
1235
  "destination": "guides/tool.md",
1236
1236
  "executable": false,
1237
- "digest": "ad68991917befd3cc8b2816035e91ceac62fad3a281684a9d943d7fc49615d48"
1237
+ "digest": "10c8378d1fa84d45817439a7c6e3678c3afb13a6690e2579d0d3bccd4c58df1c"
1238
1238
  },
1239
1239
  {
1240
1240
  "storage": "guides/toolbox.md",
1241
1241
  "destination": "guides/toolbox.md",
1242
1242
  "executable": false,
1243
- "digest": "80f9f6c95dafddd02a2fa59856a1af70e55fa2f7f74fe857e551b4d2249e98d4"
1243
+ "digest": "b20c58d347a351b439ae1ac9a2e05488380ef1eb90c19ee5f63264c2125bf4be"
1244
1244
  },
1245
1245
  {
1246
1246
  "storage": "guides/websocket.md",
1247
1247
  "destination": "guides/websocket.md",
1248
1248
  "executable": false,
1249
- "digest": "d7acb11fe203c7291d86082fcc73f1291492bf4c32ebe5d0ca15a6486f825b2e"
1249
+ "digest": "2db26ff03790d86cf828162db56d16a58991bdfc6444ffaa88732374bd8d2785"
1250
1250
  },
1251
1251
  {
1252
1252
  "storage": "guides/worker.md",
@@ -1258,13 +1258,13 @@
1258
1258
  "storage": "guides/workflow.md",
1259
1259
  "destination": "guides/workflow.md",
1260
1260
  "executable": false,
1261
- "digest": "bd55e864f65ac1159c3424986baf78bf5c49ba71f9c743a7e1f37cb9a43edae2"
1261
+ "digest": "2ac4e783c908f31377ce3381065150ba4c02afbcff65cbfcdc2c960692af464c"
1262
1262
  },
1263
1263
  {
1264
1264
  "storage": "guides/workspace.md",
1265
1265
  "destination": "guides/workspace.md",
1266
1266
  "executable": false,
1267
- "digest": "1353da0a0340a8ec7d7c2c08a028d95361bb75b2b03a0e743865c66eee3d0a42"
1267
+ "digest": "df7b4411caba1e409bd4a12e247c5e63136df9d3fecf3b8b91cf8ffd80b076a2"
1268
1268
  },
1269
1269
  {
1270
1270
  "storage": "scripts/browsers.sh",
@@ -1306,19 +1306,19 @@
1306
1306
  "storage": "tests/config.test.ts",
1307
1307
  "destination": "tests/config.test.ts",
1308
1308
  "executable": false,
1309
- "digest": "1e8e35c602078aacf2e40e1bb997af96f6b491f5acc57a804bb315f9a33d0d28"
1309
+ "digest": "17d55e5774b5dcaa3bd3549a653016788fbbe7a7cdc04ba72e7603b923f759da"
1310
1310
  },
1311
1311
  {
1312
1312
  "storage": "tests/policy.test.ts",
1313
1313
  "destination": "tests/policy.test.ts",
1314
1314
  "executable": false,
1315
- "digest": "5144bb711810c8aa6bc4f27dbb27e7a84a5a363131aa08cfe902c1c5c7fd56e0"
1315
+ "digest": "af7f29b43ea7761f99bfd40a9253ccd4bc200908d8ff0ffc6429f5b2b39ce516"
1316
1316
  },
1317
1317
  {
1318
1318
  "storage": "tests/setupPolicy.ts",
1319
1319
  "destination": "tests/setupPolicy.ts",
1320
1320
  "executable": false,
1321
- "digest": "51b2cb41616a7935e320d743354ebcb11f748a4b03312d457d96090beaa1d46a"
1321
+ "digest": "311efff7dce707c5f8553271076d7de853da5c9f795f2ba83f19e35131bbc6ce"
1322
1322
  }
1323
1323
  ],
1324
1324
  "roots": [
@@ -2141,5 +2141,5 @@
2141
2141
  ]
2142
2142
  }
2143
2143
  ],
2144
- "digest": "a3c8bbe5bf6b648df8bae2b16eb53584423b05ac61c8a31a6d8af964d72929c1"
2144
+ "digest": "040f0ff1e6ff0a94cbb87612e43b7c1d129b7626cc29013c859a2f8e97de6582"
2145
2145
  }
@@ -39,6 +39,7 @@ import policyPlugin, {
39
39
  LET_RULE,
40
40
  MOCKING_RULE,
41
41
  MUTABLE_RULE,
42
+ HELPER_RULE,
42
43
  NESTED_RULE,
43
44
  PARSER_RULE,
44
45
  PLUGIN_RULE,
@@ -46,6 +47,7 @@ import policyPlugin, {
46
47
  POLICY_ENDING_GLOBS,
47
48
  POLICY_JUDGED_TERMS,
48
49
  POLICY_NESTED_GLOBS,
50
+ POLICY_TEST_GLOBS,
49
51
  POLICY_PLACEMENT_GLOBS,
50
52
  POLICY_SCRIPT_GLOBS,
51
53
  POLICY_VOICE_STOPWORDS,
@@ -1494,24 +1496,18 @@ describe('root configuration', () => {
1494
1496
  expect(typeof publish === 'string' && publish.includes('npm run test:service')).toBe(
1495
1497
  hasService && manifestPublishes,
1496
1498
  )
1497
- // The study proof spawns processes, so it follows the same split as the live-service proof:
1498
- // the publish gate of a publishing workspace runs it after `npm test` and before the release
1499
- // proof, and a private workspace reaches it from `test`.
1500
1499
  expect(studies).toBe(
1501
1500
  hasStudies
1502
1501
  ? 'vitest run --config vite.config.ts --no-cache --reporter=dot --project studies'
1503
1502
  : undefined,
1504
1503
  )
1505
- expect(typeof test === 'string' && test.includes('npm run test:studies')).toBe(
1506
- hasStudies && !manifestPublishes,
1507
- )
1508
- expect(typeof publish === 'string' && publish.includes('npm run test:studies')).toBe(
1509
- hasStudies && manifestPublishes,
1510
- )
1511
- const steps = ['npm test &&', 'npm run test:studies', 'npm run test:distribution']
1512
- const positions = typeof publish === 'string' ? steps.map((step) => publish.indexOf(step)) : []
1513
- const sequenced = positions.every((position, index) => position > (positions[index - 1] ?? -1))
1514
- expect(sequenced || !(hasStudies && hasDistribution && manifestPublishes)).toBe(true)
1504
+ for (const [name, command] of Object.entries(scripts)) {
1505
+ if (name === 'test:studies') continue
1506
+ expect(
1507
+ typeof command === 'string' &&
1508
+ (command.includes('npm run test:studies') || command.includes('--project studies')),
1509
+ ).toBe(false)
1510
+ }
1515
1511
  })
1516
1512
 
1517
1513
  it('rebuilds publishing workspaces before packing', () => {
@@ -2806,6 +2802,53 @@ createSomething({
2806
2802
  ],
2807
2803
  })
2808
2804
 
2805
+ tester.run('no-test-helper', HELPER_RULE, {
2806
+ valid: [
2807
+ {
2808
+ name: 'accepts imports, registrations, and module data in a mirrored test',
2809
+ filename: 'tests/src/core/helpers.test.ts',
2810
+ code: "import { it } from 'vitest'\nconst CASES = Object.freeze([1, 2])\nit('reads', () => { const read = () => CASES[0]; void read })",
2811
+ },
2812
+ {
2813
+ name: 'accepts a callback passed to a registration',
2814
+ filename: 'tests/setupServer.test.ts',
2815
+ code: "import { describe, it } from 'vitest'\ndescribe('server', () => { it('reads', function () {}) })",
2816
+ },
2817
+ ],
2818
+ invalid: [
2819
+ {
2820
+ name: 'rejects a module-scope function declaration [membership: module-scope declarations of a mirrored test]',
2821
+ filename: 'tests/src/core/helpers.test.ts',
2822
+ code: 'function buildValue(): number { return 1 }\nvoid buildValue',
2823
+ errors: [{ messageId: 'helper' }],
2824
+ },
2825
+ {
2826
+ name: 'rejects a function-valued binding [membership: module-scope declarations of a mirrored test]',
2827
+ filename: 'tests/app/browser/App.test.ts',
2828
+ code: 'const createFixture = () => ({ id: 1 })\nvoid createFixture',
2829
+ errors: [{ messageId: 'helper' }],
2830
+ },
2831
+ {
2832
+ name: 'rejects an exported function expression [membership: module-scope declarations of a mirrored test]',
2833
+ filename: 'tests/src/core/helpers.test.ts',
2834
+ code: 'export const readValue = function (): number { return 1 }',
2835
+ errors: [{ messageId: 'helper' }],
2836
+ },
2837
+ {
2838
+ name: 'rejects a module-scope class [membership: module-scope declarations of a root setup proof]',
2839
+ filename: 'tests/setupBrowser.test.ts',
2840
+ code: 'class Fixture {}\nvoid Fixture',
2841
+ errors: [{ messageId: 'helper' }],
2842
+ },
2843
+ {
2844
+ name: 'rejects a class-valued binding [membership: module-scope declarations of a mirrored test]',
2845
+ filename: 'tests/src/core/helpers.test.ts',
2846
+ code: 'const Fixture = class {}\nvoid Fixture',
2847
+ errors: [{ messageId: 'helper' }],
2848
+ },
2849
+ ],
2850
+ })
2851
+
2809
2852
  tester.run('no-mutable-property', MUTABLE_RULE, {
2810
2853
  valid: [
2811
2854
  {
@@ -4329,18 +4372,25 @@ createSomething({
4329
4372
  expect(declared).toContain('no-cross-vue-face')
4330
4373
  expect(declared).toContain('no-malformed-script')
4331
4374
  expect(declared).toContain('no-mutable-property')
4375
+ expect(declared).toContain('no-test-helper')
4332
4376
  expect(
4333
4377
  inspectPolicyWiring(
4334
4378
  parsed,
4335
4379
  declared.map((name) => `policy/${name}`),
4336
- [POLICY_PLACEMENT_GLOBS, POLICY_ENDING_GLOBS, POLICY_SCRIPT_GLOBS, POLICY_NESTED_GLOBS],
4380
+ [
4381
+ POLICY_PLACEMENT_GLOBS,
4382
+ POLICY_ENDING_GLOBS,
4383
+ POLICY_SCRIPT_GLOBS,
4384
+ POLICY_NESTED_GLOBS,
4385
+ POLICY_TEST_GLOBS,
4386
+ ],
4337
4387
  ),
4338
4388
  ).toEqual([])
4339
4389
  // The controls: a configuration with the skill-script override or the nested-function
4340
4390
  // override removed reports the population it no longer declares.
4341
4391
  const overrides: unknown = Object.getOwnPropertyDescriptor(parsed, 'overrides')?.value
4342
4392
  if (!Array.isArray(overrides)) throw new Error('The Oxlint configuration has no overrides')
4343
- for (const population of [POLICY_SCRIPT_GLOBS, POLICY_NESTED_GLOBS]) {
4393
+ for (const population of [POLICY_SCRIPT_GLOBS, POLICY_NESTED_GLOBS, POLICY_TEST_GLOBS]) {
4344
4394
  const trimmed = {
4345
4395
  ...readConfigRecord(parsed),
4346
4396
  overrides: overrides.filter((override: unknown) => {
@@ -4352,7 +4402,13 @@ createSomething({
4352
4402
  inspectPolicyWiring(
4353
4403
  trimmed,
4354
4404
  [],
4355
- [POLICY_PLACEMENT_GLOBS, POLICY_ENDING_GLOBS, POLICY_SCRIPT_GLOBS, POLICY_NESTED_GLOBS],
4405
+ [
4406
+ POLICY_PLACEMENT_GLOBS,
4407
+ POLICY_ENDING_GLOBS,
4408
+ POLICY_SCRIPT_GLOBS,
4409
+ POLICY_NESTED_GLOBS,
4410
+ POLICY_TEST_GLOBS,
4411
+ ],
4356
4412
  ),
4357
4413
  ).toEqual([`no override files list declares the population exactly: ${population.join(' ')}`])
4358
4414
  }
@@ -36,6 +36,8 @@ import {
36
36
  POLICY_SURFACE_CATALOG,
37
37
  POLICY_CONTROLS,
38
38
  SETUP_POLICY_CONTROLS,
39
+ INFRASTRUCTURE_POLICY_CONTROLS,
40
+ POLICY_INFRASTRUCTURE_MESSAGE,
39
41
  POLICY_MIRROR_PATTERN,
40
42
  POLICY_SUPPRESSION_DIRECTIVE,
41
43
  POLICY_TERM_FILE,
@@ -76,6 +78,16 @@ describe('root setup mirror controls', () => {
76
78
  }
77
79
  })
78
80
 
81
+ describe('tests-tree placement controls', () => {
82
+ for (const control of INFRASTRUCTURE_POLICY_CONTROLS) {
83
+ it(`${control.label} [membership: ${control.membership}]`, () => {
84
+ expect(
85
+ inspectPolicyControl(control).filter((violation) => violation.rule === 'mirror'),
86
+ ).toEqual(control.violations)
87
+ })
88
+ }
89
+ })
90
+
79
91
  describe('surface policy controls', () => {
80
92
  it('accepts a quoted relative barrel target containing a space', () => {
81
93
  const scratch = createPolicySurfaceFixture()
@@ -237,17 +249,17 @@ describe('surface policy controls', () => {
237
249
  try {
238
250
  scratch.write('tests/setupDistribution.ts', 'export function readShared() {}\n')
239
251
  expect(inspectPolicyWorkspace(scratch.path)).toEqual([])
240
- scratch.write('tests/setupExtra.ts', 'export function readShared() {}\n')
252
+ scratch.write('tests/setupGlobal.ts', 'export function readShared() {}\n')
241
253
  expect(inspectPolicyWorkspace(scratch.path)).toEqual([
242
254
  {
243
255
  rule: 'mirror',
244
- path: 'tests/setupExtra.ts',
256
+ path: 'tests/setupGlobal.ts',
245
257
  message:
246
258
  'exporting setup module requires its sibling proof or an import from tests/setup.test.ts',
247
259
  },
248
260
  {
249
261
  rule: 'surface',
250
- path: 'tests/setupExtra.ts',
262
+ path: 'tests/setupGlobal.ts',
251
263
  line: 1,
252
264
  message: 'surface name belongs to one package: readShared (other)',
253
265
  },
@@ -517,18 +529,20 @@ describe('policy population controls', () => {
517
529
  ).toEqual([])
518
530
  })
519
531
 
520
- it('accepts a setup module mirror inside tests', () => {
532
+ it('refuses a nested setup module even where a test stem mirrors it', () => {
521
533
  expect(
522
534
  inspectPolicyControl({
523
- label: 'accepts a setup module mirror inside tests',
524
- membership: 'tests-axis setup modules with an exact test stem',
535
+ label: 'refuses a nested setup module even where a test stem mirrors it',
536
+ membership: 'tests-axis setup modules outside the root setup modules',
525
537
  rule: 'mirror',
526
538
  files: [
527
539
  { path: 'tests/app/core/setup.ts', content: '' },
528
540
  { path: 'tests/app/core/setup.test.ts', content: '' },
529
541
  ],
530
542
  }),
531
- ).toEqual([])
543
+ ).toEqual([
544
+ { rule: 'mirror', path: 'tests/app/core/setup.ts', message: POLICY_INFRASTRUCTURE_MESSAGE },
545
+ ])
532
546
  })
533
547
 
534
548
  it('excludes documentation from the suppression population', () => {