@orkestrel/scaffold 0.0.140 → 0.0.142
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/dist/bin/main.js +1 -1
- package/dist/host/agents/skills/orkestrel-harden/references/bindings.md +2 -1
- package/dist/host/claude/agents/orkestrel.md +4 -4
- package/dist/host/claude/rules/architecture.md +4 -2
- package/dist/host/claude/rules/typescript.md +23 -10
- package/dist/host/claude/rules/workspace.md +9 -9
- package/dist/host/configs/policy.ts +174 -11
- package/dist/host/dotfiles/oxlintrc.json +595 -0
- package/dist/host/guides/agent.md +447 -531
- package/dist/host/guides/ollama.md +44 -12
- package/dist/host/guides/study.md +2680 -760
- package/dist/host/manifest.json +12 -12
- package/dist/host/tests/config.test.ts +226 -7
- package/dist/src/core/index.cjs +4 -4
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.js +4 -4
- package/dist/src/core/index.js.map +1 -1
- package/package.json +1 -1
package/dist/host/manifest.json
CHANGED
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
"storage": "agents/skills/orkestrel-harden/references/bindings.md",
|
|
275
275
|
"destination": ".agents/skills/orkestrel-harden/references/bindings.md",
|
|
276
276
|
"executable": false,
|
|
277
|
-
"digest": "
|
|
277
|
+
"digest": "77fbd8e4a0b978b25446cf8c02fe062d404e6dfe6ccfcf2b56e18bc2bfdd9464"
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"storage": "agents/skills/orkestrel-harden/references/centralization.md",
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
"storage": "claude/agents/orkestrel.md",
|
|
629
629
|
"destination": ".claude/agents/orkestrel.md",
|
|
630
630
|
"executable": false,
|
|
631
|
-
"digest": "
|
|
631
|
+
"digest": "ae1f337975883d0438b9f9155e51017b1ce7de8b287bdbff1ca516f2e396402c"
|
|
632
632
|
},
|
|
633
633
|
{
|
|
634
634
|
"storage": "claude/agents/planner.md",
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
"storage": "claude/rules/architecture.md",
|
|
671
671
|
"destination": ".claude/rules/architecture.md",
|
|
672
672
|
"executable": false,
|
|
673
|
-
"digest": "
|
|
673
|
+
"digest": "383be84cb040fa5ba2e8756ccba251991ee9f648e1b036918078e9897c1dd1de"
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
676
|
"storage": "claude/rules/browser.md",
|
|
@@ -730,13 +730,13 @@
|
|
|
730
730
|
"storage": "claude/rules/typescript.md",
|
|
731
731
|
"destination": ".claude/rules/typescript.md",
|
|
732
732
|
"executable": false,
|
|
733
|
-
"digest": "
|
|
733
|
+
"digest": "88b22b23da6ec2773d38916ac9b0e8302954c9892d5aa6cfc073e57233a32e04"
|
|
734
734
|
},
|
|
735
735
|
{
|
|
736
736
|
"storage": "claude/rules/workspace.md",
|
|
737
737
|
"destination": ".claude/rules/workspace.md",
|
|
738
738
|
"executable": false,
|
|
739
|
-
"digest": "
|
|
739
|
+
"digest": "7235250c756fa018661e01251bec7f123ae65a3a400c20dde7fceaf2f848a001"
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
742
|
"storage": "claude/rules/writing.md",
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
"storage": "configs/policy.ts",
|
|
917
917
|
"destination": "configs/policy.ts",
|
|
918
918
|
"executable": false,
|
|
919
|
-
"digest": "
|
|
919
|
+
"digest": "00cf906c747c5b37c1951de5589c8b9cb89dae94a4f9b39b24de404ccf07624e"
|
|
920
920
|
},
|
|
921
921
|
{
|
|
922
922
|
"storage": "cursor/mcp.json",
|
|
@@ -970,7 +970,7 @@
|
|
|
970
970
|
"storage": "dotfiles/oxlintrc.json",
|
|
971
971
|
"destination": ".oxlintrc.json",
|
|
972
972
|
"executable": false,
|
|
973
|
-
"digest": "
|
|
973
|
+
"digest": "5862eeea15c6e440d1f48cbcef0edde34a0e75238055b372b2f54e67a7961a9d"
|
|
974
974
|
},
|
|
975
975
|
{
|
|
976
976
|
"storage": "dotfiles/prettierignore",
|
|
@@ -994,7 +994,7 @@
|
|
|
994
994
|
"storage": "guides/agent.md",
|
|
995
995
|
"destination": "guides/agent.md",
|
|
996
996
|
"executable": false,
|
|
997
|
-
"digest": "
|
|
997
|
+
"digest": "99efc20d7e4347469d080d8e51860c2c885f98451db1beb3851017fbd5957d8b"
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
"storage": "guides/brief.md",
|
|
@@ -1132,7 +1132,7 @@
|
|
|
1132
1132
|
"storage": "guides/ollama.md",
|
|
1133
1133
|
"destination": "guides/ollama.md",
|
|
1134
1134
|
"executable": false,
|
|
1135
|
-
"digest": "
|
|
1135
|
+
"digest": "fec0f39990c1d962a9e0190c7e2c8a2b1308bddb7772e842fc277c7f29e52b30"
|
|
1136
1136
|
},
|
|
1137
1137
|
{
|
|
1138
1138
|
"storage": "guides/pool.md",
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
"storage": "guides/study.md",
|
|
1229
1229
|
"destination": "guides/study.md",
|
|
1230
1230
|
"executable": false,
|
|
1231
|
-
"digest": "
|
|
1231
|
+
"digest": "6cba19a9fb40e9b18c0b46e3513ae29880390d02566d6a790ffc3f5278860075"
|
|
1232
1232
|
},
|
|
1233
1233
|
{
|
|
1234
1234
|
"storage": "guides/table.md",
|
|
@@ -1336,7 +1336,7 @@
|
|
|
1336
1336
|
"storage": "tests/config.test.ts",
|
|
1337
1337
|
"destination": "tests/config.test.ts",
|
|
1338
1338
|
"executable": false,
|
|
1339
|
-
"digest": "
|
|
1339
|
+
"digest": "2967e824ecdfa892ed2a856032efbef5941ec6fcb6b4477b1343c0f31b4ae7ac"
|
|
1340
1340
|
},
|
|
1341
1341
|
{
|
|
1342
1342
|
"storage": "tests/policy.test.ts",
|
|
@@ -1417,5 +1417,5 @@
|
|
|
1417
1417
|
"scripts"
|
|
1418
1418
|
],
|
|
1419
1419
|
"surface": [],
|
|
1420
|
-
"digest": "
|
|
1420
|
+
"digest": "5cfcfde5d05c0fa79f9a9a33ba901ebd4968529cfb4b6e91a075dc90bd3a3ac2"
|
|
1421
1421
|
}
|
|
@@ -1352,11 +1352,9 @@ describe('root configuration', () => {
|
|
|
1352
1352
|
const lib: unknown = Object.getOwnPropertyDescriptor(compilerOptions, 'lib')?.value
|
|
1353
1353
|
const types: unknown = Object.getOwnPropertyDescriptor(compilerOptions, 'types')?.value
|
|
1354
1354
|
const expectedLib =
|
|
1355
|
-
environment === '
|
|
1356
|
-
? ['ESNext', '
|
|
1357
|
-
:
|
|
1358
|
-
? ['ESNext', 'DOM', 'DOM.Iterable']
|
|
1359
|
-
: ['ESNext']
|
|
1355
|
+
environment === 'browser' || environment === 'vue'
|
|
1356
|
+
? ['ESNext', 'DOM', 'DOM.Iterable']
|
|
1357
|
+
: ['ESNext', 'WebWorker']
|
|
1360
1358
|
const expectedTypes =
|
|
1361
1359
|
environment === 'core'
|
|
1362
1360
|
? []
|
|
@@ -2177,6 +2175,68 @@ describe('policy plugin', () => {
|
|
|
2177
2175
|
name: 'accepts a let in a namespace nested in a declared module',
|
|
2178
2176
|
code: "declare module 'm' { namespace Inner { let value: number } }",
|
|
2179
2177
|
},
|
|
2178
|
+
...[
|
|
2179
|
+
{
|
|
2180
|
+
form: 'a counter loop',
|
|
2181
|
+
code: 'for (let index = 0; index < 3; index++) read(index)',
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
form: 'two indices written in one update',
|
|
2185
|
+
code: 'for (let low = 0, high = 9; low < high; low++, high--) read(low, high)',
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
form: 'an index that a closure in the body reads',
|
|
2189
|
+
code: 'for (let index = 0; index < 3; index++) { listen(() => read(index)) }',
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
form: 'an index loop at the top level',
|
|
2193
|
+
code: 'for (let row = 0; row < 3; row += 2) read(row)',
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
form: 'a bound beside the index that nothing writes',
|
|
2197
|
+
code: 'for (let index = 0, size = values.length; index < size; index++) read(values[index])',
|
|
2198
|
+
},
|
|
2199
|
+
].map(({ form, code }) => ({
|
|
2200
|
+
name: `accepts ${form} [membership: counted index written only in its update]`,
|
|
2201
|
+
code,
|
|
2202
|
+
})),
|
|
2203
|
+
...[
|
|
2204
|
+
{
|
|
2205
|
+
form: 'an accumulator summed in a function',
|
|
2206
|
+
code: 'function total(values) {\n let sum = 0\n for (let index = 0; index < values.length; index++) { sum += values[index] }\n return sum\n}',
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
form: 'an accumulator with a const between it and the loop',
|
|
2210
|
+
code: 'function total(values) {\n let sum = 0\n const size = values.length\n for (let index = 0; index < size; index++) { sum += values[index] }\n return sum\n}',
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
form: 'two accumulators written under an if',
|
|
2214
|
+
code: 'function bounds(values) {\n let min = Infinity, max = -Infinity\n for (let index = 0; index < values.length; index++) {\n if (values[index] < min) { min = values[index] }\n if (values[index] > max) { max = values[index] }\n }\n return [min, max]\n}',
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
form: 'an accumulator read in the loop test for an early exit',
|
|
2218
|
+
code: 'function find(values) {\n let found = false\n for (let index = 0; index < values.length && !found; index++) { found = values[index] === 0 }\n return found\n}',
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
form: 'a nested kernel that writes its own output after the inner loop',
|
|
2222
|
+
code: 'function rows(grid) {\n const out = new Float64Array(grid.length)\n for (let row = 0; row < grid.length; row++) {\n let sum = 0\n for (let column = 0; column < grid[row].length; column++) { sum += grid[row][column] }\n out[row] = sum\n }\n return out\n}',
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
form: 'an accumulator written inside a nested counted loop',
|
|
2226
|
+
code: 'function total(grid) {\n let sum = 0\n for (let row = 0; row < grid.length; row++) {\n for (let column = 0; column < grid[row].length; column++) { sum += grid[row][column] }\n }\n return sum\n}',
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
form: 'an accumulator in a try block that also holds the loop',
|
|
2230
|
+
code: 'function total(values) {\n try {\n let sum = 0\n for (let index = 0; index < values.length; index++) { sum += values[index] }\n return sum\n } catch {\n return 0\n }\n}',
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
form: 'an accumulator in a while body before a counted loop',
|
|
2234
|
+
code: 'function drain(queues) {\n while (queues.length > 0) {\n let sum = 0\n for (let index = 0; index < 3; index++) { sum += index }\n read(sum)\n }\n}',
|
|
2235
|
+
},
|
|
2236
|
+
].map(({ form, code }) => ({
|
|
2237
|
+
name: `accepts ${form} [membership: block-local accumulator written only in the counted loop body]`,
|
|
2238
|
+
code,
|
|
2239
|
+
})),
|
|
2180
2240
|
],
|
|
2181
2241
|
invalid: [
|
|
2182
2242
|
...[
|
|
@@ -2184,7 +2244,6 @@ describe('policy plugin', () => {
|
|
|
2184
2244
|
{ form: 'compound assignment', code: 'let count = 0\ncount += 1' },
|
|
2185
2245
|
{ form: 'logical assignment', code: 'let count: number | undefined = 0\ncount ??= 1' },
|
|
2186
2246
|
{ form: 'update', code: 'let count = 0\ncount++' },
|
|
2187
|
-
{ form: 'counter loop', code: 'for (let index = 0; index < 3; index++) read(index)' },
|
|
2188
2247
|
{ form: 'array destructuring target', code: 'let [first] = [1]\n;[first] = [2]' },
|
|
2189
2248
|
{ form: 'object destructuring target', code: 'let { a } = record\n;({ a } = other)' },
|
|
2190
2249
|
{
|
|
@@ -2200,6 +2259,116 @@ describe('policy plugin', () => {
|
|
|
2200
2259
|
code,
|
|
2201
2260
|
errors: [{ messageId: 'let' }],
|
|
2202
2261
|
})),
|
|
2262
|
+
...[
|
|
2263
|
+
{
|
|
2264
|
+
form: 'an index written in the body',
|
|
2265
|
+
code: 'for (let index = 0; index < 3; index++) { index += 1 }',
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
form: 'an index written in the test',
|
|
2269
|
+
code: 'for (let index = 0; index++ < 3;) read(index)',
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
form: 'an index written in the test beside an update',
|
|
2273
|
+
code: 'for (let index = 0; index++ < 3; index++) read(index)',
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
form: 'an index written by a closure in the update clause',
|
|
2277
|
+
code: 'for (let index = 0; index < 3; defer(() => index++)) read(index)',
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
form: 'an accumulator at module scope before a counted loop',
|
|
2281
|
+
code: 'let sum = 0\nfor (let index = 0; index < 3; index++) { sum += index }',
|
|
2282
|
+
},
|
|
2283
|
+
{
|
|
2284
|
+
form: 'an accumulator in a class static block',
|
|
2285
|
+
code: 'class Holder { static { let sum = 0\n for (let index = 0; index < 3; index++) { sum += index } } }',
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
form: 'an accumulator in a top-level block before a counted loop',
|
|
2289
|
+
code: '{\n let sum = 0\n for (let index = 0; index < 3; index++) { sum += index }\n}',
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
form: 'an accumulator in a block inside a class static block',
|
|
2293
|
+
code: 'class Holder { static { {\n let sum = 0\n for (let index = 0; index < 3; index++) { sum += index }\n } } }',
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
form: 'an accumulator before a while loop',
|
|
2297
|
+
code: 'function drain() {\n let sum = 0\n while (more()) { sum += 1 }\n return sum\n}',
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
form: 'a let written in a try and its catch',
|
|
2301
|
+
code: 'function load() {\n let result = 0\n try { result = fetch() } catch { result = 1 }\n return result\n}',
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
form: 'an accumulator written inside a try in the loop body',
|
|
2305
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++) { try { sum += index } catch { read(index) } }\n return sum\n}',
|
|
2306
|
+
},
|
|
2307
|
+
{
|
|
2308
|
+
form: 'an accumulator written inside a while in the loop body',
|
|
2309
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++) { while (more()) { sum += index } }\n return sum\n}',
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
form: 'an accumulator written inside a do-while in the loop body',
|
|
2313
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++) { do { sum += index } while (more()) }\n return sum\n}',
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
form: 'an accumulator read before the loop in a sibling declaration',
|
|
2317
|
+
code: 'function total() {\n let sum = 0\n const start = sum\n for (let index = 0; index < 3; index++) { sum += index }\n return start\n}',
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
form: 'an accumulator written after the loop',
|
|
2321
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++) { sum += index }\n sum = 0\n return sum\n}',
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
form: 'an accumulator written by a closure in the loop body',
|
|
2325
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++) { listen(() => { sum += index }) }\n return sum\n}',
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
form: 'an accumulator read by a closure after the loop',
|
|
2329
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++) { sum += index }\n return () => sum\n}',
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
form: 'an accumulator written by a class field in the loop body',
|
|
2333
|
+
code: 'function total(list) {\n let sum = 0\n for (let index = 0; index < 3; index++) { list.push(class { value = sum++ }) }\n return sum\n}',
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
form: 'an accumulator read by a class field after the loop',
|
|
2337
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++) { sum += index }\n return class { value = sum }\n}',
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
form: 'a statement other than a declaration between the accumulator and the loop',
|
|
2341
|
+
code: 'function total() {\n let sum = 0\n log()\n for (let index = 0; index < 3; index++) { sum += index }\n return sum\n}',
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
form: 'a function declaration between the accumulator and the loop',
|
|
2345
|
+
code: 'function total() {\n let sum = 0\n function step() { return 1 }\n for (let index = 0; index < 3; index++) { sum += step() }\n return sum\n}',
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
form: 'an accumulator before a labeled counted loop',
|
|
2349
|
+
code: 'function total() {\n let sum = 0\n outer: for (let index = 0; index < 3; index++) { sum += index\n if (sum > 2) break outer }\n return sum\n}',
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
form: 'an accumulator before a for-of loop',
|
|
2353
|
+
code: 'function total(values) {\n let sum = 0\n for (const value of values) { sum += value }\n return sum\n}',
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
form: 'an accumulator before a for loop with no let index',
|
|
2357
|
+
code: 'function total() {\n let sum = 0\n for (const bound = 3; sum < bound;) { sum += 1 }\n return sum\n}',
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
form: 'an accumulator written in the loop update clause',
|
|
2361
|
+
code: 'function total() {\n let sum = 0\n for (let index = 0; index < 3; index++, sum++) { read(index) }\n return sum\n}',
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
form: 'a bare accumulator',
|
|
2365
|
+
code: 'function total() {\n let sum\n for (let index = 0; index < 3; index++) { sum = index }\n return sum\n}',
|
|
2366
|
+
},
|
|
2367
|
+
].map(({ form, code }) => ({
|
|
2368
|
+
name: `rejects ${form} [membership: let that no contained shape admits]`,
|
|
2369
|
+
code,
|
|
2370
|
+
errors: [{ messageId: 'let' }],
|
|
2371
|
+
})),
|
|
2203
2372
|
...[
|
|
2204
2373
|
{
|
|
2205
2374
|
form: 'a bare let beside a global augmentation',
|
|
@@ -5050,6 +5219,46 @@ createSomething({
|
|
|
5050
5219
|
].join('\n'),
|
|
5051
5220
|
)
|
|
5052
5221
|
}
|
|
5222
|
+
// A worker-only global read in a host-independent or a Node environment draws the built-in
|
|
5223
|
+
// restriction; each file reads one fenced name as a global.
|
|
5224
|
+
for (const { path, source } of [
|
|
5225
|
+
{ path: 'src/server/worker.ts', source: 'export const sent = postMessage' },
|
|
5226
|
+
{ path: 'src/core/worker.ts', source: 'export const scope = self' },
|
|
5227
|
+
{ path: 'src/bin/worker.ts', source: 'export const listen = addEventListener' },
|
|
5228
|
+
{ path: 'app/core/worker.ts', source: 'export const reach = origin' },
|
|
5229
|
+
{ path: 'app/server/worker.ts', source: 'export const ended = close' },
|
|
5230
|
+
{ path: 'app/browser/worker.ts', source: 'export const frame = requestAnimationFrame' },
|
|
5231
|
+
]) {
|
|
5232
|
+
scratch.write(path, source)
|
|
5233
|
+
}
|
|
5234
|
+
// A local binding, a parameter, a property, and a `globalThis` member that share a fenced
|
|
5235
|
+
// name are no global read, so the real binary reports nothing on a core file that also
|
|
5236
|
+
// names a WebAssembly type.
|
|
5237
|
+
scratch.write(
|
|
5238
|
+
'src/core/helpers.ts',
|
|
5239
|
+
[
|
|
5240
|
+
'/** Reads the name of a module. */',
|
|
5241
|
+
'export function readName(module: WebAssembly.Module, origin: string): string {',
|
|
5242
|
+
"\tconst name = 'module'",
|
|
5243
|
+
'\tconst record = { name, origin, scope: globalThis.self }',
|
|
5244
|
+
'\tvoid module',
|
|
5245
|
+
'\treturn record.name',
|
|
5246
|
+
'}',
|
|
5247
|
+
].join('\n'),
|
|
5248
|
+
)
|
|
5249
|
+
scratch.write(
|
|
5250
|
+
'src/clean/helpers.ts',
|
|
5251
|
+
[
|
|
5252
|
+
'/** Sums the numbers of a list. */',
|
|
5253
|
+
'export function sumNumbers(values: readonly number[]): number {',
|
|
5254
|
+
'\tlet total = 0',
|
|
5255
|
+
'\tfor (let index = 0; index < values.length; index++) {',
|
|
5256
|
+
'\t\ttotal += values[index] ?? 0',
|
|
5257
|
+
'\t}',
|
|
5258
|
+
'\treturn total',
|
|
5259
|
+
'}',
|
|
5260
|
+
].join('\n'),
|
|
5261
|
+
)
|
|
5053
5262
|
scratch.write(
|
|
5054
5263
|
'src/clean/CleanMember.ts',
|
|
5055
5264
|
[
|
|
@@ -5098,6 +5307,7 @@ createSomething({
|
|
|
5098
5307
|
'src/violations',
|
|
5099
5308
|
'src/bin',
|
|
5100
5309
|
'src/server',
|
|
5310
|
+
'src/core/worker.ts',
|
|
5101
5311
|
'app',
|
|
5102
5312
|
'scripts',
|
|
5103
5313
|
'tests',
|
|
@@ -5107,7 +5317,7 @@ createSomething({
|
|
|
5107
5317
|
)
|
|
5108
5318
|
const clean = spawnSync(
|
|
5109
5319
|
process.execPath,
|
|
5110
|
-
[binary, '--config', config, '--format', 'json', 'src/clean'],
|
|
5320
|
+
[binary, '--config', config, '--format', 'json', 'src/clean', 'src/core/helpers.ts'],
|
|
5111
5321
|
{ cwd: scratch.path, encoding: 'utf8', timeout: 15_000 },
|
|
5112
5322
|
)
|
|
5113
5323
|
const reports = [violations, clean].map((result): string[] => {
|
|
@@ -5139,6 +5349,11 @@ createSomething({
|
|
|
5139
5349
|
expect(violations.status).toBe(1)
|
|
5140
5350
|
for (const { code, filename } of [
|
|
5141
5351
|
{ code: 'policy(no-mocking)', filename: 'src/violations/fixture.ts' },
|
|
5352
|
+
{ code: 'eslint(no-restricted-globals)', filename: 'src/server/worker.ts' },
|
|
5353
|
+
{ code: 'eslint(no-restricted-globals)', filename: 'src/core/worker.ts' },
|
|
5354
|
+
{ code: 'eslint(no-restricted-globals)', filename: 'src/bin/worker.ts' },
|
|
5355
|
+
{ code: 'eslint(no-restricted-globals)', filename: 'app/core/worker.ts' },
|
|
5356
|
+
{ code: 'eslint(no-restricted-globals)', filename: 'app/server/worker.ts' },
|
|
5142
5357
|
{ code: 'policy(no-keyword-privacy)', filename: 'src/violations/fixture.ts' },
|
|
5143
5358
|
{ code: 'policy(no-let)', filename: 'src/violations/fixture.ts' },
|
|
5144
5359
|
{ code: 'eslint(prefer-const)', filename: 'src/violations/fixture.ts' },
|
|
@@ -5201,6 +5416,10 @@ createSomething({
|
|
|
5201
5416
|
`${code} ${normalizePolicyFilename(comparisonRoot, filename)}`,
|
|
5202
5417
|
)
|
|
5203
5418
|
}
|
|
5419
|
+
// The browser scope compiles under DOM, so a worker-only name read there draws no fence.
|
|
5420
|
+
expect(violationCodes).not.toContain(
|
|
5421
|
+
`eslint(no-restricted-globals) ${normalizePolicyFilename(comparisonRoot, 'app/browser/worker.ts')}`,
|
|
5422
|
+
)
|
|
5204
5423
|
expect(violationCodes).toContain(
|
|
5205
5424
|
`eslint(no-debugger) ${normalizePolicyFilename(comparisonRoot, 'src/violations/ambient.ts')}`,
|
|
5206
5425
|
)
|
package/dist/src/core/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ let _orkestrel_template = require("@orkestrel/template");
|
|
|
4
4
|
let _orkestrel_emitter = require("@orkestrel/emitter");
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@orkestrel/scaffold",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.142",
|
|
8
8
|
description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
|
|
9
9
|
keywords: [
|
|
10
10
|
"audit",
|
|
@@ -1944,7 +1944,7 @@ export function benchBrowser(override?: UserConfig): UserConfig {
|
|
|
1944
1944
|
server: `{
|
|
1945
1945
|
"extends": "../../tsconfig.json",
|
|
1946
1946
|
"compilerOptions": {
|
|
1947
|
-
"lib": ["ESNext"],
|
|
1947
|
+
"lib": ["ESNext", "WebWorker"],
|
|
1948
1948
|
"types": ["node"],
|
|
1949
1949
|
"noEmit": false,
|
|
1950
1950
|
"declaration": true,
|
|
@@ -1995,7 +1995,7 @@ export function benchBrowser(override?: UserConfig): UserConfig {
|
|
|
1995
1995
|
server: `{
|
|
1996
1996
|
"extends": "../../tsconfig.json",
|
|
1997
1997
|
"compilerOptions": {
|
|
1998
|
-
"lib": ["ESNext"],
|
|
1998
|
+
"lib": ["ESNext", "WebWorker"],
|
|
1999
1999
|
"types": ["node"]
|
|
2000
2000
|
},
|
|
2001
2001
|
"include": [
|
|
@@ -2007,7 +2007,7 @@ export function benchBrowser(override?: UserConfig): UserConfig {
|
|
|
2007
2007
|
bin: `{
|
|
2008
2008
|
"extends": "../../tsconfig.json",
|
|
2009
2009
|
"compilerOptions": {
|
|
2010
|
-
"lib": ["ESNext"],
|
|
2010
|
+
"lib": ["ESNext", "WebWorker"],
|
|
2011
2011
|
"types": ["node"],
|
|
2012
2012
|
"noEmit": false,
|
|
2013
2013
|
"declaration": true,
|