@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.
- package/dist/agents/skills/orkestrel-harden/scripts/titles.js +3 -3
- package/dist/agents/skills/orkestrel-publish/scripts/wave.js +120 -21
- package/dist/bin/main.js +71 -23
- package/dist/bin/main.js.map +1 -1
- package/dist/host/agents/platforms/windows.md +1 -1
- package/dist/host/agents/skills/orkestrel-harden/scripts/titles.ts +3 -3
- package/dist/host/agents/skills/orkestrel-publish/SKILL.md +7 -7
- package/dist/host/agents/skills/orkestrel-publish/references/wave.md +25 -8
- package/dist/host/agents/skills/orkestrel-publish/scripts/wave.ts +187 -54
- package/dist/host/claude/agents/orkestrel.md +53 -53
- package/dist/host/claude/rules/architecture.md +4 -3
- package/dist/host/claude/rules/tests.md +24 -7
- package/dist/host/claude/rules/typescript.md +11 -2
- package/dist/host/claude/rules/workspace.md +32 -28
- package/dist/host/configs/policy.ts +49 -0
- package/dist/host/dotfiles/gitignore +1 -0
- package/dist/host/dotfiles/oxlintrc.json +6 -0
- package/dist/host/guides/agent.md +13 -13
- package/dist/host/guides/brief.md +4 -0
- package/dist/host/guides/browser.md +162 -44
- package/dist/host/guides/budget.md +1 -1
- package/dist/host/guides/capture.md +4 -0
- package/dist/host/guides/console.md +13 -0
- package/dist/host/guides/contract.md +38 -3
- package/dist/host/guides/csv.md +5 -0
- package/dist/host/guides/database.md +58 -8
- package/dist/host/guides/form.md +17 -0
- package/dist/host/guides/guide.md +36 -33
- package/dist/host/guides/html.md +72 -44
- package/dist/host/guides/indexeddb.md +4 -0
- package/dist/host/guides/lsp.md +49 -8
- package/dist/host/guides/markdown.md +146 -1
- package/dist/host/guides/mcp.md +117 -22
- package/dist/host/guides/middleware.md +194 -26
- package/dist/host/guides/msg.md +9 -5
- package/dist/host/guides/pool.md +8 -1
- package/dist/host/guides/probe.md +13 -1
- package/dist/host/guides/process.md +102 -90
- package/dist/host/guides/program.md +4 -0
- package/dist/host/guides/qualifier.md +4 -0
- package/dist/host/guides/rater.md +4 -0
- package/dist/host/guides/reason.md +6 -4
- package/dist/host/guides/relation.md +4 -0
- package/dist/host/guides/scaffold.md +32 -14
- package/dist/host/guides/server.md +29 -13
- package/dist/host/guides/sqlite.md +6 -0
- package/dist/host/guides/sse.md +6 -0
- package/dist/host/guides/study.md +473 -473
- package/dist/host/guides/table.md +3 -0
- package/dist/host/guides/template.md +3 -0
- package/dist/host/guides/test.md +38 -20
- package/dist/host/guides/tool.md +3 -0
- package/dist/host/guides/toolbox.md +21 -0
- package/dist/host/guides/websocket.md +3 -1
- package/dist/host/guides/workflow.md +103 -11
- package/dist/host/guides/workspace.md +4 -0
- package/dist/host/manifest.json +56 -56
- package/dist/host/tests/config.test.ts +72 -16
- package/dist/host/tests/policy.test.ts +21 -7
- package/dist/host/tests/setupPolicy.ts +147 -12
- package/dist/src/core/index.cjs +22 -28
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +8 -8
- package/dist/src/core/index.d.ts +8 -8
- package/dist/src/core/index.js +22 -28
- package/dist/src/core/index.js.map +1 -1
- package/package.json +12 -12
|
@@ -891,6 +891,26 @@ export const POLICY_MODULE_GLOB = `{app,src}/**/*.{${POLICY_MODULE_EXTENSIONS.jo
|
|
|
891
891
|
/** Matches the tests-axis setup module population available to mirrored tests. */
|
|
892
892
|
export const POLICY_TESTS_MODULE_GLOB = `tests/**/${POLICY_TESTS_MODULE_PREFIX}*.ts`
|
|
893
893
|
|
|
894
|
+
/**
|
|
895
|
+
* Lists the root setup modules a workspace authors; scaffold owns `tests/setupPolicy.ts` and
|
|
896
|
+
* `tests/setupDistribution.ts` beside them.
|
|
897
|
+
*/
|
|
898
|
+
export const POLICY_SETUP_MODULES: readonly string[] = Object.freeze([
|
|
899
|
+
'tests/setup.ts',
|
|
900
|
+
'tests/setupServer.ts',
|
|
901
|
+
'tests/setupBrowser.ts',
|
|
902
|
+
'tests/setupStyles.ts',
|
|
903
|
+
'tests/setupStudy.ts',
|
|
904
|
+
'tests/setupService.ts',
|
|
905
|
+
'tests/setupGlobal.ts',
|
|
906
|
+
])
|
|
907
|
+
|
|
908
|
+
/** Names the correction a tests-tree module outside the root setup modules receives. */
|
|
909
|
+
export const POLICY_INFRASTRUCTURE_MESSAGE = `test infrastructure lives only in ${POLICY_SETUP_MODULES.join(', ')}: move this module's declarations into the one its environment names, or under a fixtures/ directory when a test runs it as its own entry`
|
|
910
|
+
|
|
911
|
+
/** Matches every TypeScript module the tests tree holds. */
|
|
912
|
+
export const POLICY_TESTS_SOURCE_GLOB = 'tests/**/*.{ts,mts,cts,tsx}'
|
|
913
|
+
|
|
894
914
|
/** Matches the mirrored module-test population inspected under either workspace axis. */
|
|
895
915
|
export const POLICY_TEST_GLOB = 'tests/{app,src}/**/*.test.ts'
|
|
896
916
|
|
|
@@ -1263,7 +1283,11 @@ export function inspectPolicyMirrors(root: string): readonly PolicyViolation[] {
|
|
|
1263
1283
|
...globSync(POLICY_MODULE_GLOB, { cwd: root }).sort().map(normalizePolicyPath),
|
|
1264
1284
|
...globSync(POLICY_TESTS_MODULE_GLOB, { cwd: root }).sort().map(normalizePolicyPath),
|
|
1265
1285
|
])
|
|
1266
|
-
return [
|
|
1286
|
+
return [
|
|
1287
|
+
...inspectPolicyMirrorPaths(tests, modules),
|
|
1288
|
+
...inspectPolicySetup(root),
|
|
1289
|
+
...inspectPolicyInfrastructure(root),
|
|
1290
|
+
]
|
|
1267
1291
|
}
|
|
1268
1292
|
|
|
1269
1293
|
/**
|
|
@@ -1312,6 +1336,8 @@ export function inspectPolicySetup(root: string): readonly PolicyViolation[] {
|
|
|
1312
1336
|
? []
|
|
1313
1337
|
: [createPolicyViolation('mirror', path, `setup proof requires its module: ${module}`)]
|
|
1314
1338
|
}
|
|
1339
|
+
// A setup-named module outside the canon's set is the placement inspector's finding alone.
|
|
1340
|
+
if (!POLICY_SETUP_MODULES.includes(path) && path !== DISTRIBUTION_SETUP_PATH) return []
|
|
1315
1341
|
return /^export /m.test(readFileSync(join(root, path), 'utf8')) &&
|
|
1316
1342
|
!paths.has(path.replace(/\.ts$/u, '.test.ts')) &&
|
|
1317
1343
|
!imports.has(path)
|
|
@@ -1326,6 +1352,46 @@ export function inspectPolicySetup(root: string): readonly PolicyViolation[] {
|
|
|
1326
1352
|
})
|
|
1327
1353
|
}
|
|
1328
1354
|
|
|
1355
|
+
/**
|
|
1356
|
+
* Checks whether a tests-tree module sits where test infrastructure may live.
|
|
1357
|
+
*
|
|
1358
|
+
* @param path - The workspace-relative module path.
|
|
1359
|
+
* @param root - The workspace root whose manifest determines harness ownership.
|
|
1360
|
+
* @returns True if the module is a test, a bench, a declaration file, a root setup module the
|
|
1361
|
+
* canon names, a scaffold-owned module, or a file under a `fixtures/` directory; false otherwise.
|
|
1362
|
+
* @example
|
|
1363
|
+
* ```ts
|
|
1364
|
+
* matchesPolicyInfrastructure('tests/setupServer.ts', root) // true
|
|
1365
|
+
* matchesPolicyInfrastructure('tests/setupConformance.ts', root) // false
|
|
1366
|
+
* ```
|
|
1367
|
+
*/
|
|
1368
|
+
export function matchesPolicyInfrastructure(path: string, root: string): boolean {
|
|
1369
|
+
const normalized = normalizePolicyPath(path)
|
|
1370
|
+
return (
|
|
1371
|
+
/\.(?:test|bench)\.ts$/u.test(normalized) ||
|
|
1372
|
+
/\.d\.[cm]?ts$/u.test(normalized) ||
|
|
1373
|
+
POLICY_SETUP_MODULES.includes(normalized) ||
|
|
1374
|
+
normalized === DISTRIBUTION_SETUP_PATH ||
|
|
1375
|
+
matchesScaffoldSetup(normalized, root) ||
|
|
1376
|
+
normalized.split('/').includes('fixtures')
|
|
1377
|
+
)
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Inspects the tests tree for test infrastructure outside the root setup modules the canon names.
|
|
1382
|
+
*
|
|
1383
|
+
* @param root - The workspace root to inspect.
|
|
1384
|
+
* @returns One mirror violation per misplaced module, in path order.
|
|
1385
|
+
*/
|
|
1386
|
+
export function inspectPolicyInfrastructure(root: string): readonly PolicyViolation[] {
|
|
1387
|
+
return globSync(POLICY_TESTS_SOURCE_GLOB, { cwd: root })
|
|
1388
|
+
.map(normalizePolicyPath)
|
|
1389
|
+
.filter((path) => !path.split('/').includes('node_modules'))
|
|
1390
|
+
.sort()
|
|
1391
|
+
.filter((path) => !matchesPolicyInfrastructure(path, root))
|
|
1392
|
+
.map((path) => createPolicyViolation('mirror', path, POLICY_INFRASTRUCTURE_MESSAGE))
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1329
1395
|
/**
|
|
1330
1396
|
* Inspects code-shaped and sheet workspace files for lint and formatter suppression directives.
|
|
1331
1397
|
*
|
|
@@ -3936,11 +4002,11 @@ export const SETUP_POLICY_CONTROLS: readonly PolicyControl[] = Object.freeze([
|
|
|
3936
4002
|
label: 'rejects an exporting setup module without proof',
|
|
3937
4003
|
membership: 'target-owned exporting root setup modules',
|
|
3938
4004
|
rule: 'mirror',
|
|
3939
|
-
files: [{ path: 'tests/
|
|
4005
|
+
files: [{ path: 'tests/setupStyles.ts', content: 'export const STYLES = 1\n' }],
|
|
3940
4006
|
violations: [
|
|
3941
4007
|
{
|
|
3942
4008
|
rule: 'mirror',
|
|
3943
|
-
path: 'tests/
|
|
4009
|
+
path: 'tests/setupStyles.ts',
|
|
3944
4010
|
message:
|
|
3945
4011
|
'exporting setup module requires its sibling proof or an import from tests/setup.test.ts',
|
|
3946
4012
|
},
|
|
@@ -3950,19 +4016,19 @@ export const SETUP_POLICY_CONTROLS: readonly PolicyControl[] = Object.freeze([
|
|
|
3950
4016
|
label: 'admits a non-exporting setup module without proof',
|
|
3951
4017
|
membership: 'root setup modules without exports',
|
|
3952
4018
|
rule: 'mirror',
|
|
3953
|
-
files: [{ path: 'tests/
|
|
4019
|
+
files: [{ path: 'tests/setupStyles.ts', content: 'const canvas = 1\nvoid canvas\n' }],
|
|
3954
4020
|
violations: [],
|
|
3955
4021
|
},
|
|
3956
4022
|
{
|
|
3957
4023
|
label: 'rejects a setup proof without its module',
|
|
3958
4024
|
membership: 'target-owned root setup proofs',
|
|
3959
4025
|
rule: 'mirror',
|
|
3960
|
-
files: [{ path: 'tests/
|
|
4026
|
+
files: [{ path: 'tests/setupStyles.test.ts', content: '' }],
|
|
3961
4027
|
violations: [
|
|
3962
4028
|
{
|
|
3963
4029
|
rule: 'mirror',
|
|
3964
|
-
path: 'tests/
|
|
3965
|
-
message: 'setup proof requires its module: tests/
|
|
4030
|
+
path: 'tests/setupStyles.test.ts',
|
|
4031
|
+
message: 'setup proof requires its module: tests/setupStyles.ts',
|
|
3966
4032
|
},
|
|
3967
4033
|
],
|
|
3968
4034
|
},
|
|
@@ -3971,9 +4037,9 @@ export const SETUP_POLICY_CONTROLS: readonly PolicyControl[] = Object.freeze([
|
|
|
3971
4037
|
membership: 'root setup modules with shared proof imports',
|
|
3972
4038
|
rule: 'mirror',
|
|
3973
4039
|
files: [
|
|
3974
|
-
{ path: 'tests/
|
|
4040
|
+
{ path: 'tests/setupStyles.ts', content: 'export const STYLES = 1\n' },
|
|
3975
4041
|
{ path: 'tests/setup.ts', content: '' },
|
|
3976
|
-
{ path: 'tests/setup.test.ts', content: "import {
|
|
4042
|
+
{ path: 'tests/setup.test.ts', content: "import { STYLES } from './setupStyles.js'\n" },
|
|
3977
4043
|
],
|
|
3978
4044
|
violations: [],
|
|
3979
4045
|
},
|
|
@@ -3982,17 +4048,17 @@ export const SETUP_POLICY_CONTROLS: readonly PolicyControl[] = Object.freeze([
|
|
|
3982
4048
|
membership: 'exporting root setup modules named only by comments',
|
|
3983
4049
|
rule: 'mirror',
|
|
3984
4050
|
files: [
|
|
3985
|
-
{ path: 'tests/
|
|
4051
|
+
{ path: 'tests/setupStyles.ts', content: 'export const STYLES = 1\n' },
|
|
3986
4052
|
{ path: 'tests/setup.ts', content: '' },
|
|
3987
4053
|
{
|
|
3988
4054
|
path: 'tests/setup.test.ts',
|
|
3989
|
-
content: "/*\nimport {
|
|
4055
|
+
content: "/*\nimport { STYLES } from './setupStyles.js'\n*/\nexport {}\n",
|
|
3990
4056
|
},
|
|
3991
4057
|
],
|
|
3992
4058
|
violations: [
|
|
3993
4059
|
{
|
|
3994
4060
|
rule: 'mirror',
|
|
3995
|
-
path: 'tests/
|
|
4061
|
+
path: 'tests/setupStyles.ts',
|
|
3996
4062
|
message:
|
|
3997
4063
|
'exporting setup module requires its sibling proof or an import from tests/setup.test.ts',
|
|
3998
4064
|
},
|
|
@@ -4031,6 +4097,75 @@ export const SETUP_POLICY_CONTROLS: readonly PolicyControl[] = Object.freeze([
|
|
|
4031
4097
|
},
|
|
4032
4098
|
])
|
|
4033
4099
|
|
|
4100
|
+
/** Lists tests-tree placement controls and their expected mirror readings. */
|
|
4101
|
+
export const INFRASTRUCTURE_POLICY_CONTROLS: readonly PolicyControl[] = Object.freeze([
|
|
4102
|
+
{
|
|
4103
|
+
label: 'rejects a root setup module outside the canon names',
|
|
4104
|
+
membership: 'root setup modules the canon does not name',
|
|
4105
|
+
rule: 'mirror',
|
|
4106
|
+
files: [{ path: 'tests/setupCanvas.ts', content: 'const canvas = 1\nvoid canvas\n' }],
|
|
4107
|
+
violations: [
|
|
4108
|
+
{ rule: 'mirror', path: 'tests/setupCanvas.ts', message: POLICY_INFRASTRUCTURE_MESSAGE },
|
|
4109
|
+
],
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
label: 'rejects a helper module inside the mirrored tree',
|
|
4113
|
+
membership: 'non-test modules beneath tests outside the root setup modules',
|
|
4114
|
+
rule: 'mirror',
|
|
4115
|
+
files: [{ path: 'tests/src/core/suite.ts', content: '' }],
|
|
4116
|
+
violations: [
|
|
4117
|
+
{ rule: 'mirror', path: 'tests/src/core/suite.ts', message: POLICY_INFRASTRUCTURE_MESSAGE },
|
|
4118
|
+
],
|
|
4119
|
+
},
|
|
4120
|
+
{
|
|
4121
|
+
label: 'admits the canon setup modules, a bench, a declaration file, and a fixture entry',
|
|
4122
|
+
membership: 'modules the tests tree may hold',
|
|
4123
|
+
rule: 'mirror',
|
|
4124
|
+
files: [
|
|
4125
|
+
{ path: 'tests/setupServer.ts', content: 'const server = 1\nvoid server\n' },
|
|
4126
|
+
{ path: 'tests/setupBrowser.ts', content: 'const browser = 1\nvoid browser\n' },
|
|
4127
|
+
{ path: 'tests/src/core/helpers.bench.ts', content: '' },
|
|
4128
|
+
{ path: 'tests/env.d.ts', content: '' },
|
|
4129
|
+
{ path: 'tests/src/server/fixtures/child.ts', content: '' },
|
|
4130
|
+
],
|
|
4131
|
+
violations: [],
|
|
4132
|
+
},
|
|
4133
|
+
{
|
|
4134
|
+
label: 'reports an exporting setup module outside the canon names once',
|
|
4135
|
+
membership: 'exporting root setup modules the canon does not name',
|
|
4136
|
+
rule: 'mirror',
|
|
4137
|
+
files: [{ path: 'tests/setupCanvas.ts', content: 'export const CANVAS = 1\n' }],
|
|
4138
|
+
violations: [
|
|
4139
|
+
{ rule: 'mirror', path: 'tests/setupCanvas.ts', message: POLICY_INFRASTRUCTURE_MESSAGE },
|
|
4140
|
+
],
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
label: 'reports an exporting setup module outside the canon names once in a private workspace',
|
|
4144
|
+
membership: 'exporting root setup modules the canon does not name, private workspace',
|
|
4145
|
+
rule: 'mirror',
|
|
4146
|
+
files: [
|
|
4147
|
+
{ path: 'package.json', content: '{"private":true}\n' },
|
|
4148
|
+
{ path: 'tests/setupCanvas.ts', content: 'export const CANVAS = 1\n' },
|
|
4149
|
+
],
|
|
4150
|
+
violations: [
|
|
4151
|
+
{ rule: 'mirror', path: 'tests/setupCanvas.ts', message: POLICY_INFRASTRUCTURE_MESSAGE },
|
|
4152
|
+
],
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
label: 'admits an exporting setup-named declaration file and bench',
|
|
4156
|
+
membership: 'declaration files and benches whose names open with setup',
|
|
4157
|
+
rule: 'mirror',
|
|
4158
|
+
files: [
|
|
4159
|
+
{
|
|
4160
|
+
path: 'tests/setupTypes.d.ts',
|
|
4161
|
+
content: 'export interface Shape {\n\treadonly value: number\n}\n',
|
|
4162
|
+
},
|
|
4163
|
+
{ path: 'tests/setupTiming.bench.ts', content: 'export const TIMING = 1\n' },
|
|
4164
|
+
],
|
|
4165
|
+
violations: [],
|
|
4166
|
+
},
|
|
4167
|
+
])
|
|
4168
|
+
|
|
4034
4169
|
/** Lists standalone sheet selections and their core-bearing control for the vendored proof. */
|
|
4035
4170
|
export const SHEET_POLICY_SELECTIONS: ReadonlyArray<
|
|
4036
4171
|
Pick<Blueprint, 'src' | 'styles' | 'themes'> & {
|
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.114",
|
|
8
8
|
description: "Scaffold workspaces with commands: new, audit, repair, catalog, and overwrite.",
|
|
9
9
|
keywords: [
|
|
10
10
|
"audit",
|
|
@@ -95,20 +95,20 @@ var package_default = {
|
|
|
95
95
|
"prepublishOnly": "npm run format:check && npm run lint:check && npm run check && npm run build && npm test && npm run test:templates && npm run test:distribution -- --mode release"
|
|
96
96
|
},
|
|
97
97
|
dependencies: {
|
|
98
|
-
"@orkestrel/console": "^0.0.
|
|
99
|
-
"@orkestrel/contract": "^0.0.
|
|
100
|
-
"@orkestrel/emitter": "^0.0.
|
|
101
|
-
"@orkestrel/markdown": "^0.0.
|
|
102
|
-
"@orkestrel/process": "^0.0.
|
|
103
|
-
"@orkestrel/template": "^0.0.
|
|
98
|
+
"@orkestrel/console": "^0.0.17",
|
|
99
|
+
"@orkestrel/contract": "^0.0.20",
|
|
100
|
+
"@orkestrel/emitter": "^0.0.13",
|
|
101
|
+
"@orkestrel/markdown": "^0.0.18",
|
|
102
|
+
"@orkestrel/process": "^0.0.16",
|
|
103
|
+
"@orkestrel/template": "^0.0.11"
|
|
104
104
|
},
|
|
105
105
|
devDependencies: {
|
|
106
106
|
"@microsoft/api-extractor": "^7.60.0",
|
|
107
|
-
"@orkestrel/browser": "^0.0.
|
|
108
|
-
"@orkestrel/guide": "^0.0.
|
|
109
|
-
"@orkestrel/html": "^0.0.
|
|
110
|
-
"@orkestrel/probe": "^0.0.
|
|
111
|
-
"@orkestrel/test": "^0.0.
|
|
107
|
+
"@orkestrel/browser": "^0.0.30",
|
|
108
|
+
"@orkestrel/guide": "^0.0.26",
|
|
109
|
+
"@orkestrel/html": "^0.0.13",
|
|
110
|
+
"@orkestrel/probe": "^0.0.26",
|
|
111
|
+
"@orkestrel/test": "^0.0.31",
|
|
112
112
|
"@types/node": "^24.19.2",
|
|
113
113
|
"@vitest/browser-playwright": "^5.0.5",
|
|
114
114
|
"oxfmt": "^0.75.0",
|
|
@@ -985,6 +985,8 @@ function isNamedPlugin(plugin: PluginOption): plugin is { name: string } {
|
|
|
985
985
|
{{factories}}export default defineConfig({
|
|
986
986
|
resolve,
|
|
987
987
|
test: {
|
|
988
|
+
// Vitest 5.0.5 hands cached code to the module runner as bytes, which breaks stack mapping.
|
|
989
|
+
fsModuleCache: false,
|
|
988
990
|
{{projects}}
|
|
989
991
|
},
|
|
990
992
|
})
|
|
@@ -1610,9 +1612,7 @@ export function service(override?: UserConfig): UserConfig {
|
|
|
1610
1612
|
return mergeOverride(project, override)
|
|
1611
1613
|
}
|
|
1612
1614
|
`,
|
|
1613
|
-
studies: `//
|
|
1614
|
-
// subprocesses and protocol fixtures, so this project is isolated in its own gate script,
|
|
1615
|
-
// test:studies.
|
|
1615
|
+
studies: `// Run these @orkestrel/study proofs on demand with npm run test:studies; no gate or chain runs them.
|
|
1616
1616
|
export function studies(override?: UserConfig): UserConfig {
|
|
1617
1617
|
const project: UserConfig = {
|
|
1618
1618
|
resolve,
|
|
@@ -6958,12 +6958,13 @@ function replaceManifestOverride(manifest, path, range) {
|
|
|
6958
6958
|
* proofs every workspace can pass before it has a public API, and one build per
|
|
6959
6959
|
* target that actually builds.
|
|
6960
6960
|
*
|
|
6961
|
-
* A publishing workspace isolates its distribution
|
|
6961
|
+
* A publishing workspace isolates its distribution and live-service proofs
|
|
6962
6962
|
* from `test` and runs them from `prepublishOnly` instead. Publishing is what
|
|
6963
6963
|
* selects the distribution proof: what that proof measures is the packed tarball,
|
|
6964
6964
|
* so a workspace that packs no published source has nothing for it to read. A
|
|
6965
|
-
* private workspace therefore omits it and runs a
|
|
6966
|
-
*
|
|
6965
|
+
* private workspace therefore omits it and runs a live-service proof from `test`.
|
|
6966
|
+
* Study proofs run on demand through `test:studies` in either workspace; no gate
|
|
6967
|
+
* or chain runs them.
|
|
6967
6968
|
* Integration and conformance stay in `test` because they neither pack nor
|
|
6968
6969
|
* install the workspace and drive no external service. A conformance run may
|
|
6969
6970
|
* start a server, but it starts its own and reaches it over loopback, so the run
|
|
@@ -7043,7 +7044,6 @@ function blueprintToScripts(blueprint) {
|
|
|
7043
7044
|
...blueprint.conformance ? ["npm run test:conformance"] : [],
|
|
7044
7045
|
...blueprint.tree ? ["npm run test:tree"] : [],
|
|
7045
7046
|
...integrates ? ["npm run test:integration"] : [],
|
|
7046
|
-
...!publishes && blueprint.studies ? ["npm run test:studies"] : [],
|
|
7047
7047
|
...!publishes && blueprint.service ? ["npm run test:service"] : []
|
|
7048
7048
|
].join(" && "),
|
|
7049
7049
|
...compiles ? {
|
|
@@ -7127,7 +7127,6 @@ function blueprintToScripts(blueprint) {
|
|
|
7127
7127
|
"npm run format:check && npm run lint:check && npm run check && npm run build",
|
|
7128
7128
|
...blueprint.showcase && blueprint.app.includes("browser") ? ["npm run build:showcase", ...application.map((name) => `npm run build:showcase:${name}`)] : [],
|
|
7129
7129
|
"npm test",
|
|
7130
|
-
...blueprint.studies ? ["npm run test:studies"] : [],
|
|
7131
7130
|
RELEASE_PROOF_COMMAND,
|
|
7132
7131
|
...blueprint.service ? ["npm run test:service"] : []
|
|
7133
7132
|
].join(" && ")
|
|
@@ -7158,9 +7157,8 @@ function blueprintToScripts(blueprint) {
|
|
|
7158
7157
|
* `probe` project through `vitest bench`, before the dedicated bench project
|
|
7159
7158
|
* existed. The pack hook accepts the build chain emitted before it
|
|
7160
7159
|
* delegated to `build`. The publication hook accepts the same gate chain without
|
|
7161
|
-
* {@link RELEASE_PROOF_COMMAND}.
|
|
7162
|
-
*
|
|
7163
|
-
* the release proof. The value being written is always writable, so
|
|
7160
|
+
* {@link RELEASE_PROOF_COMMAND}. No accepted publication chain carries a study
|
|
7161
|
+
* step. The value being written is always writable, so
|
|
7164
7162
|
* it is not repeated there. Any other value is a script the workspace author
|
|
7165
7163
|
* customized, and {@link replaceManifestScripts} retains it while writing the
|
|
7166
7164
|
* other named scripts independently.
|
|
@@ -7202,11 +7200,7 @@ function blueprintToWritableScripts(blueprint) {
|
|
|
7202
7200
|
...prepublish === void 0 || unreleased === void 0 ? [] : [{
|
|
7203
7201
|
name: "prepublishOnly",
|
|
7204
7202
|
command: prepublish,
|
|
7205
|
-
accepted:
|
|
7206
|
-
unreleased,
|
|
7207
|
-
prepublish.replace(" && npm run test:studies", ""),
|
|
7208
|
-
unreleased.replace(" && npm run test:studies", "")
|
|
7209
|
-
] : [unreleased]
|
|
7203
|
+
accepted: [unreleased]
|
|
7210
7204
|
}]
|
|
7211
7205
|
];
|
|
7212
7206
|
}
|