@orkestrel/scaffold 0.0.141 → 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/claude/agents/orkestrel.md +1 -1
- package/dist/host/claude/rules/workspace.md +9 -9
- package/dist/host/dotfiles/oxlintrc.json +595 -0
- package/dist/host/manifest.json +5 -5
- package/dist/host/tests/config.test.ts +41 -6
- 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
|
@@ -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",
|
|
@@ -736,7 +736,7 @@
|
|
|
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",
|
|
@@ -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",
|
|
@@ -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
|
? []
|
|
@@ -5221,6 +5219,33 @@ createSomething({
|
|
|
5221
5219
|
].join('\n'),
|
|
5222
5220
|
)
|
|
5223
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
|
+
)
|
|
5224
5249
|
scratch.write(
|
|
5225
5250
|
'src/clean/helpers.ts',
|
|
5226
5251
|
[
|
|
@@ -5282,6 +5307,7 @@ createSomething({
|
|
|
5282
5307
|
'src/violations',
|
|
5283
5308
|
'src/bin',
|
|
5284
5309
|
'src/server',
|
|
5310
|
+
'src/core/worker.ts',
|
|
5285
5311
|
'app',
|
|
5286
5312
|
'scripts',
|
|
5287
5313
|
'tests',
|
|
@@ -5291,7 +5317,7 @@ createSomething({
|
|
|
5291
5317
|
)
|
|
5292
5318
|
const clean = spawnSync(
|
|
5293
5319
|
process.execPath,
|
|
5294
|
-
[binary, '--config', config, '--format', 'json', 'src/clean'],
|
|
5320
|
+
[binary, '--config', config, '--format', 'json', 'src/clean', 'src/core/helpers.ts'],
|
|
5295
5321
|
{ cwd: scratch.path, encoding: 'utf8', timeout: 15_000 },
|
|
5296
5322
|
)
|
|
5297
5323
|
const reports = [violations, clean].map((result): string[] => {
|
|
@@ -5323,6 +5349,11 @@ createSomething({
|
|
|
5323
5349
|
expect(violations.status).toBe(1)
|
|
5324
5350
|
for (const { code, filename } of [
|
|
5325
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' },
|
|
5326
5357
|
{ code: 'policy(no-keyword-privacy)', filename: 'src/violations/fixture.ts' },
|
|
5327
5358
|
{ code: 'policy(no-let)', filename: 'src/violations/fixture.ts' },
|
|
5328
5359
|
{ code: 'eslint(prefer-const)', filename: 'src/violations/fixture.ts' },
|
|
@@ -5385,6 +5416,10 @@ createSomething({
|
|
|
5385
5416
|
`${code} ${normalizePolicyFilename(comparisonRoot, filename)}`,
|
|
5386
5417
|
)
|
|
5387
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
|
+
)
|
|
5388
5423
|
expect(violationCodes).toContain(
|
|
5389
5424
|
`eslint(no-debugger) ${normalizePolicyFilename(comparisonRoot, 'src/violations/ambient.ts')}`,
|
|
5390
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,
|