@orkestrel/scaffold 0.0.118 → 0.0.120
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 +15 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/host/agents/platforms/windows.md +2 -1
- package/dist/host/agents/skills/orkestrel-journey/references/layer.md +10 -10
- package/dist/host/agents/skills/orkestrel-journey/references/statechart.md +1 -1
- package/dist/host/agents/skills/orkestrel-journey/references/styles.md +3 -3
- package/dist/host/agents/skills/orkestrel-publish/references/release.md +1 -0
- package/dist/host/agents/skills/orkestrel-publish/references/wave.md +2 -1
- package/dist/host/claude/agents/orkestrel.md +27 -26
- package/dist/host/claude/rules/names.md +3 -2
- package/dist/host/claude/rules/tests.md +4 -2
- package/dist/host/claude/rules/typescript.md +2 -3
- package/dist/host/claude/rules/workspace.md +2 -1
- package/dist/host/guides/abort.md +0 -4
- package/dist/host/guides/budget.md +1 -5
- package/dist/host/guides/codec.md +18 -3
- package/dist/host/guides/contract.md +23 -44
- package/dist/host/guides/csv.md +86 -93
- package/dist/host/guides/database.md +0 -4
- package/dist/host/guides/emitter.md +0 -2
- package/dist/host/guides/form.md +26 -47
- package/dist/host/guides/html.md +3 -7
- package/dist/host/guides/indexeddb.md +28 -32
- package/dist/host/guides/jsonrpc.md +187 -0
- package/dist/host/guides/markdown.md +132 -141
- package/dist/host/guides/msg.md +47 -63
- package/dist/host/guides/ndjson.md +0 -4
- package/dist/host/guides/pool.md +0 -4
- package/dist/host/guides/process.md +71 -79
- package/dist/host/guides/reason.md +30 -36
- package/dist/host/guides/router.md +11 -18
- package/dist/host/guides/scaffold.md +147 -137
- package/dist/host/guides/sqlite.md +0 -4
- package/dist/host/guides/sse.md +6 -10
- package/dist/host/guides/table.md +481 -493
- package/dist/host/guides/template.md +0 -4
- package/dist/host/guides/test.md +46 -66
- package/dist/host/guides/timeout.md +0 -6
- package/dist/host/guides/tool.md +2 -6
- package/dist/host/guides/websocket.md +0 -4
- package/dist/host/manifest.json +100 -428
- package/dist/host/tests/setupPolicy.ts +18 -6
- package/dist/src/core/index.cjs +171 -122
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +236 -213
- package/dist/src/core/index.d.ts +236 -213
- package/dist/src/core/index.js +159 -111
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +62 -39
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +59 -54
- package/dist/src/server/index.d.ts +59 -54
- package/dist/src/server/index.js +63 -40
- package/dist/src/server/index.js.map +1 -1
- package/package.json +9 -9
package/dist/src/core/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { andOf, arrayOf, attempt, canonicalStringify, cloneJSONValue,
|
|
1
|
+
import { andOf, arrayOf, attempt, canonicalStringify, cloneJSONValue, comparePrimitives, enumerableKeys, holds, isArray, isBoolean, isFunction, isInstance, isRecord, isString, limitEntries, literalOf, parseJSON, recordOf, sortValues, stringOf, unionOf } from "@orkestrel/contract";
|
|
2
2
|
import { fillTemplate } from "@orkestrel/template";
|
|
3
3
|
import { Emitter } from "@orkestrel/emitter";
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@orkestrel/scaffold",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.120",
|
|
7
7
|
description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
|
|
8
8
|
keywords: [
|
|
9
9
|
"audit",
|
|
@@ -96,19 +96,19 @@ var package_default = {
|
|
|
96
96
|
},
|
|
97
97
|
dependencies: {
|
|
98
98
|
"@orkestrel/console": "^0.0.17",
|
|
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.
|
|
99
|
+
"@orkestrel/contract": "^0.0.21",
|
|
100
|
+
"@orkestrel/emitter": "^0.0.14",
|
|
101
|
+
"@orkestrel/markdown": "^0.0.19",
|
|
102
|
+
"@orkestrel/process": "^0.0.17",
|
|
103
|
+
"@orkestrel/template": "^0.0.12"
|
|
104
104
|
},
|
|
105
105
|
devDependencies: {
|
|
106
|
-
"@microsoft/api-extractor": "^7.60.
|
|
106
|
+
"@microsoft/api-extractor": "^7.60.1",
|
|
107
107
|
"@orkestrel/browser": "^0.0.30",
|
|
108
108
|
"@orkestrel/guide": "^0.0.28",
|
|
109
|
-
"@orkestrel/html": "^0.0.
|
|
109
|
+
"@orkestrel/html": "^0.0.14",
|
|
110
110
|
"@orkestrel/probe": "^0.0.26",
|
|
111
|
-
"@orkestrel/test": "^0.0.
|
|
111
|
+
"@orkestrel/test": "^0.0.32",
|
|
112
112
|
"@types/node": "^24.19.2",
|
|
113
113
|
"@vitest/browser-playwright": "^5.0.5",
|
|
114
114
|
"oxfmt": "^0.75.0",
|
|
@@ -174,14 +174,14 @@ var RESERVED_SHEET_NAMES = Object.freeze([
|
|
|
174
174
|
...FRAMEWORKS
|
|
175
175
|
]);
|
|
176
176
|
/**
|
|
177
|
-
* Lists the `
|
|
177
|
+
* Lists the `ArtifactGroup` values in plan order, frozen.
|
|
178
178
|
*
|
|
179
179
|
* @remarks
|
|
180
180
|
* A compile that names no groups covers every one of them, so this list is the
|
|
181
181
|
* default selection as well as the accepted candidates for a rejected one. The
|
|
182
182
|
* order is the order a plan lists its artifacts in.
|
|
183
183
|
*/
|
|
184
|
-
var
|
|
184
|
+
var ARTIFACT_GROUPS = Object.freeze([
|
|
185
185
|
"manifest",
|
|
186
186
|
"configs",
|
|
187
187
|
"source",
|
|
@@ -363,6 +363,54 @@ var SEED_GUIDE_PATHS = Object.freeze(["guides/guide.md", "guides/scaffold.md"]);
|
|
|
363
363
|
/** Names the repository-relative path where the committed vendored-file inventory is served. */
|
|
364
364
|
var HOST_INVENTORY_PATH = "host.json";
|
|
365
365
|
/**
|
|
366
|
+
* Lists the declared transfers of bare names to their ruled keepers, frozen.
|
|
367
|
+
*
|
|
368
|
+
* @remarks
|
|
369
|
+
* `stageHost` admits each keeper into its name's recorded owner set and refuses a transfer
|
|
370
|
+
* whose keeper alone claims the name. `.claude/rules/names.md` § Fleet name ownership rule 5
|
|
371
|
+
* governs when a transfer is declared and removed.
|
|
372
|
+
*/
|
|
373
|
+
var SURFACE_TRANSFERS = Object.freeze([...[
|
|
374
|
+
"errorToMessage",
|
|
375
|
+
"escapeRegExp",
|
|
376
|
+
"failure",
|
|
377
|
+
"success"
|
|
378
|
+
].map((name) => ({
|
|
379
|
+
name,
|
|
380
|
+
keeper: "contract",
|
|
381
|
+
item: 79
|
|
382
|
+
})), ...[
|
|
383
|
+
"JSONRPCError",
|
|
384
|
+
"JSONRPCErrorResponse",
|
|
385
|
+
"JSONRPCId",
|
|
386
|
+
"JSONRPCInvocation",
|
|
387
|
+
"JSONRPCMessage",
|
|
388
|
+
"JSONRPCNotification",
|
|
389
|
+
"JSONRPCRequest",
|
|
390
|
+
"JSONRPCResponse",
|
|
391
|
+
"JSONRPCResultResponse",
|
|
392
|
+
"JSONRPC_INTERNAL_ERROR",
|
|
393
|
+
"JSONRPC_INVALID_PARAMS",
|
|
394
|
+
"JSONRPC_INVALID_REQUEST",
|
|
395
|
+
"JSONRPC_METHOD_NOT_FOUND",
|
|
396
|
+
"JSONRPC_PARSE_ERROR",
|
|
397
|
+
"buildJSONRPCError",
|
|
398
|
+
"buildJSONRPCResult",
|
|
399
|
+
"isJSONRPCError",
|
|
400
|
+
"isJSONRPCErrorResponse",
|
|
401
|
+
"isJSONRPCId",
|
|
402
|
+
"isJSONRPCInvocation",
|
|
403
|
+
"isJSONRPCMessage",
|
|
404
|
+
"isJSONRPCNotification",
|
|
405
|
+
"isJSONRPCRequest",
|
|
406
|
+
"isJSONRPCResponse",
|
|
407
|
+
"isJSONRPCResultResponse"
|
|
408
|
+
].map((name) => ({
|
|
409
|
+
name,
|
|
410
|
+
keeper: "jsonrpc",
|
|
411
|
+
item: 81
|
|
412
|
+
}))].map((transfer) => Object.freeze(transfer)));
|
|
413
|
+
/**
|
|
366
414
|
* Lists the vendored paths whose present bytes belong to each workspace, frozen.
|
|
367
415
|
*
|
|
368
416
|
* @remarks
|
|
@@ -4832,13 +4880,13 @@ function isPath(value) {
|
|
|
4832
4880
|
*
|
|
4833
4881
|
* @example
|
|
4834
4882
|
* ```ts
|
|
4835
|
-
* import {
|
|
4883
|
+
* import { isHexContent } from '@orkestrel/scaffold'
|
|
4836
4884
|
*
|
|
4837
|
-
*
|
|
4838
|
-
*
|
|
4885
|
+
* isHexContent('68690a') // true
|
|
4886
|
+
* isHexContent('68690A') // false
|
|
4839
4887
|
* ```
|
|
4840
4888
|
*/
|
|
4841
|
-
var
|
|
4889
|
+
var isHexContent = stringOf({
|
|
4842
4890
|
max: MAX_ARTIFACT_HEX_LENGTH,
|
|
4843
4891
|
pattern: HEX_PATTERN
|
|
4844
4892
|
});
|
|
@@ -4963,19 +5011,19 @@ var isStylesExtension = recordOf({
|
|
|
4963
5011
|
*/
|
|
4964
5012
|
var isExtension = unionOf(isBrowserExtension, isStylesExtension);
|
|
4965
5013
|
/**
|
|
4966
|
-
* Narrows a value to one {@link
|
|
5014
|
+
* Narrows a value to one {@link ArtifactGroup} a plan selects over.
|
|
4967
5015
|
*
|
|
4968
5016
|
* @example
|
|
4969
5017
|
* ```ts
|
|
4970
|
-
* import {
|
|
5018
|
+
* import { isArtifactGroup } from '@orkestrel/scaffold'
|
|
4971
5019
|
*
|
|
4972
|
-
*
|
|
4973
|
-
*
|
|
5020
|
+
* isArtifactGroup('manifest') // true
|
|
5021
|
+
* isArtifactGroup('readme') // false
|
|
4974
5022
|
* ```
|
|
4975
5023
|
*/
|
|
4976
|
-
var
|
|
5024
|
+
var isArtifactGroup = literalOf(ARTIFACT_GROUPS);
|
|
4977
5025
|
/** Narrows a value to a bounded group selection. */
|
|
4978
|
-
var
|
|
5026
|
+
var isArtifactGroups = andOf(isCollection, arrayOf(isArtifactGroup));
|
|
4979
5027
|
/**
|
|
4980
5028
|
* Narrows a value to the scoped package name a runtime dependency carries.
|
|
4981
5029
|
*
|
|
@@ -5141,7 +5189,7 @@ var isBlueprint = recordOf({
|
|
|
5141
5189
|
*/
|
|
5142
5190
|
var isArtifact = unionOf(recordOf({
|
|
5143
5191
|
path: isPath,
|
|
5144
|
-
group:
|
|
5192
|
+
group: isArtifactGroup,
|
|
5145
5193
|
ownership: literalOf("presence", "birth"),
|
|
5146
5194
|
environment: isEnvironment,
|
|
5147
5195
|
origin: literalOf("host"),
|
|
@@ -5153,15 +5201,15 @@ var isArtifact = unionOf(recordOf({
|
|
|
5153
5201
|
"pointer"
|
|
5154
5202
|
]), recordOf({
|
|
5155
5203
|
path: isPath,
|
|
5156
|
-
group:
|
|
5204
|
+
group: isArtifactGroup,
|
|
5157
5205
|
ownership: literalOf("content"),
|
|
5158
5206
|
environment: isEnvironment,
|
|
5159
5207
|
origin: literalOf("host"),
|
|
5160
5208
|
source: isPath,
|
|
5161
|
-
hex:
|
|
5209
|
+
hex: isHexContent
|
|
5162
5210
|
}, ["environment", "source"]), recordOf({
|
|
5163
5211
|
path: isPath,
|
|
5164
|
-
group:
|
|
5212
|
+
group: isArtifactGroup,
|
|
5165
5213
|
ownership: literalOf("content", "presence", "birth"),
|
|
5166
5214
|
environment: isEnvironment,
|
|
5167
5215
|
origin: literalOf("template", "computed"),
|
|
@@ -5179,9 +5227,9 @@ var isArtifact = unionOf(recordOf({
|
|
|
5179
5227
|
*/
|
|
5180
5228
|
var isPlan = andOf(recordOf({
|
|
5181
5229
|
blueprint: isBlueprint,
|
|
5182
|
-
groups:
|
|
5230
|
+
groups: isArtifactGroups,
|
|
5183
5231
|
artifacts: andOf(isCollection, arrayOf(isArtifact)),
|
|
5184
|
-
hash:
|
|
5232
|
+
hash: isHexContent
|
|
5185
5233
|
}, ["hash"]), (plan) => plan.artifacts.every((artifact) => artifact.path !== "package.json" || artifact.ownership === "birth"));
|
|
5186
5234
|
/**
|
|
5187
5235
|
* Narrows a value to a {@link Question}.
|
|
@@ -5200,7 +5248,7 @@ var isQuestion = recordOf({
|
|
|
5200
5248
|
candidates: andOf(isCollection, arrayOf(isString))
|
|
5201
5249
|
}, ["candidates"]);
|
|
5202
5250
|
/**
|
|
5203
|
-
* Narrows a value to
|
|
5251
|
+
* Narrows a value to an {@link ArtifactFinding}.
|
|
5204
5252
|
*
|
|
5205
5253
|
* @remarks
|
|
5206
5254
|
* `observed` is required exactly where the mutation it precedes is held to it,
|
|
@@ -5211,30 +5259,30 @@ var isQuestion = recordOf({
|
|
|
5211
5259
|
* That is the whole claim. This guard proves the shape a reader may destructure
|
|
5212
5260
|
* and nothing about whether the verdict is one an audit could have reached: the
|
|
5213
5261
|
* correlation between `ownership`, `drift`, and `observed` belongs to
|
|
5214
|
-
* {@link
|
|
5262
|
+
* {@link inferArtifactDrift}, and it is re-derived at the verb that acts on the finding.
|
|
5215
5263
|
*/
|
|
5216
|
-
var
|
|
5264
|
+
var isArtifactFinding = unionOf(recordOf({
|
|
5217
5265
|
path: isPath,
|
|
5218
|
-
group:
|
|
5266
|
+
group: isArtifactGroup,
|
|
5219
5267
|
ownership: literalOf("content", "presence", "birth"),
|
|
5220
5268
|
drift: literalOf("stale"),
|
|
5221
|
-
observed:
|
|
5269
|
+
observed: isHexContent
|
|
5222
5270
|
}), recordOf({
|
|
5223
5271
|
path: isPath,
|
|
5224
|
-
group:
|
|
5272
|
+
group: isArtifactGroup,
|
|
5225
5273
|
drift: literalOf("foreign"),
|
|
5226
|
-
observed:
|
|
5274
|
+
observed: isHexContent
|
|
5227
5275
|
}), recordOf({
|
|
5228
5276
|
path: isPath,
|
|
5229
|
-
group:
|
|
5277
|
+
group: isArtifactGroup,
|
|
5230
5278
|
ownership: literalOf("content", "presence", "birth"),
|
|
5231
5279
|
drift: literalOf("missing")
|
|
5232
5280
|
}), recordOf({
|
|
5233
5281
|
path: isPath,
|
|
5234
|
-
group:
|
|
5282
|
+
group: isArtifactGroup,
|
|
5235
5283
|
ownership: literalOf("content", "presence", "birth"),
|
|
5236
5284
|
drift: literalOf("aligned"),
|
|
5237
|
-
observed:
|
|
5285
|
+
observed: isHexContent
|
|
5238
5286
|
}, ["observed"]));
|
|
5239
5287
|
/**
|
|
5240
5288
|
* Narrows a value to an {@link Audit}.
|
|
@@ -5245,7 +5293,7 @@ var isFinding = unionOf(recordOf({
|
|
|
5245
5293
|
* bounds: one per planned artifact, then one per unplanned snapshot path.
|
|
5246
5294
|
*/
|
|
5247
5295
|
var isAudit = recordOf({
|
|
5248
|
-
findings: andOf((value) => holds(() => isArray(value) && value.length <= 2e3), arrayOf(
|
|
5296
|
+
findings: andOf((value) => holds(() => isArray(value) && value.length <= 2e3), arrayOf(isArtifactFinding)),
|
|
5249
5297
|
questions: andOf(isCollection, arrayOf(isQuestion))
|
|
5250
5298
|
});
|
|
5251
5299
|
/**
|
|
@@ -5261,13 +5309,13 @@ var isMirror = unionOf(recordOf({
|
|
|
5261
5309
|
path: isPath,
|
|
5262
5310
|
lookup: literalOf("found"),
|
|
5263
5311
|
content: isContent,
|
|
5264
|
-
observed:
|
|
5312
|
+
observed: isHexContent
|
|
5265
5313
|
}, ["observed"]), recordOf({
|
|
5266
5314
|
name: isDependencyName,
|
|
5267
5315
|
path: isPath,
|
|
5268
5316
|
lookup: literalOf("missing", "unmatched", "failed"),
|
|
5269
5317
|
note: isString,
|
|
5270
|
-
observed:
|
|
5318
|
+
observed: isHexContent
|
|
5271
5319
|
}, ["observed"]));
|
|
5272
5320
|
/**
|
|
5273
5321
|
* Narrows a value to a {@link CatalogEntry}.
|
|
@@ -5313,7 +5361,7 @@ function isSnapshot(value) {
|
|
|
5313
5361
|
if (!isRecord(value)) return false;
|
|
5314
5362
|
const keys = enumerableKeys(value);
|
|
5315
5363
|
if (keys === void 0 || keys.length > 1e3) return false;
|
|
5316
|
-
for (const key of keys) if (!isPath(key) || !
|
|
5364
|
+
for (const key of keys) if (!isPath(key) || !isHexContent(value[key])) return false;
|
|
5317
5365
|
return true;
|
|
5318
5366
|
});
|
|
5319
5367
|
}
|
|
@@ -5385,12 +5433,12 @@ var isCompilerOptions = recordOf({
|
|
|
5385
5433
|
*
|
|
5386
5434
|
* @example
|
|
5387
5435
|
* ```ts
|
|
5388
|
-
* import {
|
|
5436
|
+
* import { parseBlueprint, parseOwnedJSONValue } from '@orkestrel/scaffold'
|
|
5389
5437
|
*
|
|
5390
|
-
* const owned = parseBlueprint(
|
|
5438
|
+
* const owned = parseBlueprint(parseOwnedJSONValue(input))
|
|
5391
5439
|
* ```
|
|
5392
5440
|
*/
|
|
5393
|
-
function
|
|
5441
|
+
function parseOwnedJSONValue(value) {
|
|
5394
5442
|
const outcome = attempt(() => cloneJSONValue(value));
|
|
5395
5443
|
return outcome.success ? outcome.value : void 0;
|
|
5396
5444
|
}
|
|
@@ -5452,20 +5500,20 @@ function parseBlueprint(value) {
|
|
|
5452
5500
|
* @returns The selection, or `undefined` when the value is not one.
|
|
5453
5501
|
*
|
|
5454
5502
|
* @remarks
|
|
5455
|
-
* Derived from {@link
|
|
5503
|
+
* Derived from {@link isArtifactGroups}. Order and repetition are preserved: which
|
|
5456
5504
|
* groups a plan finally covers, and in which order, is the compiler's to decide
|
|
5457
|
-
* from `
|
|
5505
|
+
* from `ARTIFACT_GROUPS`, not this boundary's.
|
|
5458
5506
|
*
|
|
5459
5507
|
* @example
|
|
5460
5508
|
* ```ts
|
|
5461
|
-
* import {
|
|
5509
|
+
* import { parseArtifactGroups } from '@orkestrel/scaffold'
|
|
5462
5510
|
*
|
|
5463
|
-
*
|
|
5464
|
-
*
|
|
5511
|
+
* parseArtifactGroups(['manifest', 'configs']) // ['manifest', 'configs']
|
|
5512
|
+
* parseArtifactGroups(['readme']) // undefined
|
|
5465
5513
|
* ```
|
|
5466
5514
|
*/
|
|
5467
|
-
function
|
|
5468
|
-
return
|
|
5515
|
+
function parseArtifactGroups(value) {
|
|
5516
|
+
return isArtifactGroups(value) ? value : void 0;
|
|
5469
5517
|
}
|
|
5470
5518
|
/**
|
|
5471
5519
|
* Coerces an untrusted value to a {@link Snapshot}.
|
|
@@ -5691,8 +5739,8 @@ function collectSurfaceAdvisories(candidate, published, contracts) {
|
|
|
5691
5739
|
name,
|
|
5692
5740
|
owner,
|
|
5693
5741
|
signature: signatures.get(name)
|
|
5694
|
-
}))).sort((left, right) =>
|
|
5695
|
-
return [...new Set(candidate.names)].filter((name) => !known.has(name)).sort(
|
|
5742
|
+
}))).sort((left, right) => comparePrimitives(left.owner, right.owner) || comparePrimitives(left.name, right.name));
|
|
5743
|
+
return [...new Set(candidate.names)].filter((name) => !known.has(name)).sort(comparePrimitives).flatMap((name) => {
|
|
5696
5744
|
const signature = candidate.signatures.get(name);
|
|
5697
5745
|
const structure = signature !== void 0 && matchesSurfaceStructure(signature);
|
|
5698
5746
|
return peers.flatMap((peer) => {
|
|
@@ -5997,7 +6045,7 @@ function isFloorPath(path) {
|
|
|
5997
6045
|
return isDeferredPath(path) || isCanonPath(path);
|
|
5998
6046
|
}
|
|
5999
6047
|
/**
|
|
6000
|
-
* Infers the {@link
|
|
6048
|
+
* Infers the {@link ArtifactGroup} a path belongs to.
|
|
6001
6049
|
*
|
|
6002
6050
|
* @param path - The target-relative path to classify.
|
|
6003
6051
|
* @returns The group that owns the path.
|
|
@@ -6013,14 +6061,14 @@ function isFloorPath(path) {
|
|
|
6013
6061
|
*
|
|
6014
6062
|
* @example
|
|
6015
6063
|
* ```ts
|
|
6016
|
-
* import {
|
|
6064
|
+
* import { inferArtifactGroup } from '@orkestrel/scaffold'
|
|
6017
6065
|
*
|
|
6018
|
-
*
|
|
6019
|
-
*
|
|
6020
|
-
*
|
|
6066
|
+
* inferArtifactGroup('src/core/index.ts') // 'source'
|
|
6067
|
+
* inferArtifactGroup('AGENTS.md') // 'docs'
|
|
6068
|
+
* inferArtifactGroup('.editorconfig') // 'configs'
|
|
6021
6069
|
* ```
|
|
6022
6070
|
*/
|
|
6023
|
-
function
|
|
6071
|
+
function inferArtifactGroup(path) {
|
|
6024
6072
|
if (path === "package.json" || path === "package-lock.json") return "manifest";
|
|
6025
6073
|
if (matchesOrchestrationPath(path)) return "orchestration";
|
|
6026
6074
|
if (path.startsWith("src/") || path.startsWith("app/")) return "source";
|
|
@@ -6172,26 +6220,26 @@ function selectHostPaths(paths, name) {
|
|
|
6172
6220
|
* Selects the groups a compile covers, in plan order.
|
|
6173
6221
|
*
|
|
6174
6222
|
* @param groups - The requested selection; every group when absent.
|
|
6175
|
-
* @returns The requested groups in `
|
|
6223
|
+
* @returns The requested groups in `ARTIFACT_GROUPS` order, without repeats.
|
|
6176
6224
|
*
|
|
6177
6225
|
* @remarks
|
|
6178
6226
|
* A caller's selection is data, so it arrives in whatever order and with
|
|
6179
6227
|
* whatever repeats the caller wrote. Plan order is this package's, so the
|
|
6180
|
-
* selection is read as membership and the order comes from `
|
|
6228
|
+
* selection is read as membership and the order comes from `ARTIFACT_GROUPS`. An empty
|
|
6181
6229
|
* selection covers nothing, which is a caller asking for an empty plan rather
|
|
6182
6230
|
* than a caller asking for everything.
|
|
6183
6231
|
*
|
|
6184
6232
|
* @example
|
|
6185
6233
|
* ```ts
|
|
6186
|
-
* import {
|
|
6234
|
+
* import { selectArtifactGroups } from '@orkestrel/scaffold'
|
|
6187
6235
|
*
|
|
6188
|
-
*
|
|
6189
|
-
*
|
|
6236
|
+
* selectArtifactGroups(['tests', 'manifest', 'tests']) // ['manifest', 'tests']
|
|
6237
|
+
* selectArtifactGroups() // every group, in plan order
|
|
6190
6238
|
* ```
|
|
6191
6239
|
*/
|
|
6192
|
-
function
|
|
6193
|
-
const selection = groups ??
|
|
6194
|
-
return
|
|
6240
|
+
function selectArtifactGroups(groups) {
|
|
6241
|
+
const selection = groups ?? ARTIFACT_GROUPS;
|
|
6242
|
+
return ARTIFACT_GROUPS.filter((group) => selection.includes(group));
|
|
6195
6243
|
}
|
|
6196
6244
|
/**
|
|
6197
6245
|
* Projects an artifact to the exact bytes it claims, as hexadecimal.
|
|
@@ -6243,7 +6291,7 @@ function artifactToHex(artifact) {
|
|
|
6243
6291
|
* @example
|
|
6244
6292
|
* ```ts
|
|
6245
6293
|
* import type { Artifact } from '@orkestrel/scaffold'
|
|
6246
|
-
* import {
|
|
6294
|
+
* import { inferArtifactDrift } from '@orkestrel/scaffold'
|
|
6247
6295
|
*
|
|
6248
6296
|
* const artifact: Artifact = {
|
|
6249
6297
|
* path: 'README.md',
|
|
@@ -6253,12 +6301,12 @@ function artifactToHex(artifact) {
|
|
|
6253
6301
|
* content: 'hi\n',
|
|
6254
6302
|
* }
|
|
6255
6303
|
*
|
|
6256
|
-
*
|
|
6257
|
-
*
|
|
6258
|
-
*
|
|
6304
|
+
* inferArtifactDrift(artifact, '68690a') // 'aligned'
|
|
6305
|
+
* inferArtifactDrift(artifact, '6279650a') // 'stale'
|
|
6306
|
+
* inferArtifactDrift(artifact) // 'missing'
|
|
6259
6307
|
* ```
|
|
6260
6308
|
*/
|
|
6261
|
-
function
|
|
6309
|
+
function inferArtifactDrift(artifact, observed) {
|
|
6262
6310
|
if (artifact.ownership === "birth") return "aligned";
|
|
6263
6311
|
if (observed === void 0) return "missing";
|
|
6264
6312
|
if (artifact.ownership === "presence") return "aligned";
|
|
@@ -6274,7 +6322,7 @@ function inferDrift(artifact, observed) {
|
|
|
6274
6322
|
* exactly where bytes were read.
|
|
6275
6323
|
*
|
|
6276
6324
|
* @remarks
|
|
6277
|
-
* The comparison itself is {@link
|
|
6325
|
+
* The comparison itself is {@link inferArtifactDrift}'s, so ownership decides it here
|
|
6278
6326
|
* exactly as it does everywhere else. This adds only the shape: a missing
|
|
6279
6327
|
* destination has no bytes to record, and every other verdict records the bytes
|
|
6280
6328
|
* it was given, which is the precondition the mutation that follows is held to.
|
|
@@ -6286,19 +6334,19 @@ function inferDrift(artifact, observed) {
|
|
|
6286
6334
|
*
|
|
6287
6335
|
* @example
|
|
6288
6336
|
* ```ts
|
|
6289
|
-
* import {
|
|
6337
|
+
* import { artifactToArtifactFinding } from '@orkestrel/scaffold'
|
|
6290
6338
|
*
|
|
6291
|
-
*
|
|
6339
|
+
* artifactToArtifactFinding(
|
|
6292
6340
|
* { path: 'README.md', group: 'docs', ownership: 'content', origin: 'computed', content: 'hi\n' },
|
|
6293
6341
|
* '6279650a',
|
|
6294
6342
|
* ) // { path: 'README.md', group: 'docs', ownership: 'content', drift: 'stale', observed: '6279650a' }
|
|
6295
6343
|
* ```
|
|
6296
6344
|
*/
|
|
6297
|
-
function
|
|
6345
|
+
function artifactToArtifactFinding(artifact, observed) {
|
|
6298
6346
|
const path = artifact.path;
|
|
6299
6347
|
const group = artifact.group;
|
|
6300
6348
|
const ownership = artifact.ownership;
|
|
6301
|
-
if (observed === void 0) return
|
|
6349
|
+
if (observed === void 0) return inferArtifactDrift(artifact) === "aligned" ? {
|
|
6302
6350
|
path,
|
|
6303
6351
|
group,
|
|
6304
6352
|
ownership,
|
|
@@ -6309,7 +6357,7 @@ function artifactToFinding(artifact, observed) {
|
|
|
6309
6357
|
ownership,
|
|
6310
6358
|
drift: "missing"
|
|
6311
6359
|
};
|
|
6312
|
-
return
|
|
6360
|
+
return inferArtifactDrift(artifact, observed) === "stale" ? {
|
|
6313
6361
|
path,
|
|
6314
6362
|
group,
|
|
6315
6363
|
ownership,
|
|
@@ -6324,12 +6372,12 @@ function artifactToFinding(artifact, observed) {
|
|
|
6324
6372
|
};
|
|
6325
6373
|
}
|
|
6326
6374
|
/**
|
|
6327
|
-
* Tests whether {@link
|
|
6375
|
+
* Tests whether {@link inferArtifactDrift} could have produced a finding for an ownership.
|
|
6328
6376
|
*
|
|
6329
6377
|
* @param ownership - What scaffold claims at the planned path.
|
|
6330
6378
|
* @param finding - The audit verdict to test.
|
|
6331
6379
|
* @returns True if the ownership and verdict are reachable through
|
|
6332
|
-
* {@link
|
|
6380
|
+
* {@link inferArtifactDrift}; false otherwise.
|
|
6333
6381
|
*
|
|
6334
6382
|
* @remarks
|
|
6335
6383
|
* This predicate keeps the comparison law beside the reachability law it
|
|
@@ -6338,16 +6386,16 @@ function artifactToFinding(artifact, observed) {
|
|
|
6338
6386
|
*
|
|
6339
6387
|
* @example
|
|
6340
6388
|
* ```ts
|
|
6341
|
-
* import type {
|
|
6342
|
-
* import {
|
|
6389
|
+
* import type { ArtifactFinding } from '@orkestrel/scaffold'
|
|
6390
|
+
* import { matchesArtifactDriftReachability } from '@orkestrel/scaffold'
|
|
6343
6391
|
*
|
|
6344
|
-
* const aligned:
|
|
6392
|
+
* const aligned: ArtifactFinding = {
|
|
6345
6393
|
* path: 'README.md',
|
|
6346
6394
|
* group: 'docs',
|
|
6347
6395
|
* ownership: 'birth',
|
|
6348
6396
|
* drift: 'aligned',
|
|
6349
6397
|
* }
|
|
6350
|
-
* const stale:
|
|
6398
|
+
* const stale: ArtifactFinding = {
|
|
6351
6399
|
* path: 'README.md',
|
|
6352
6400
|
* group: 'docs',
|
|
6353
6401
|
* ownership: 'birth',
|
|
@@ -6355,11 +6403,11 @@ function artifactToFinding(artifact, observed) {
|
|
|
6355
6403
|
* observed: '6279650a',
|
|
6356
6404
|
* }
|
|
6357
6405
|
*
|
|
6358
|
-
*
|
|
6359
|
-
*
|
|
6406
|
+
* matchesArtifactDriftReachability('birth', aligned) // true
|
|
6407
|
+
* matchesArtifactDriftReachability('birth', stale) // false
|
|
6360
6408
|
* ```
|
|
6361
6409
|
*/
|
|
6362
|
-
function
|
|
6410
|
+
function matchesArtifactDriftReachability(ownership, finding) {
|
|
6363
6411
|
if (finding.drift === "aligned") return ownership === "birth" || finding.observed !== void 0;
|
|
6364
6412
|
if (finding.drift === "missing") return ownership !== "birth";
|
|
6365
6413
|
return finding.drift === "stale" && ownership === "content";
|
|
@@ -6529,10 +6577,10 @@ function compareVersions(left, right) {
|
|
|
6529
6577
|
if (first === void 0 || second === void 0) {
|
|
6530
6578
|
if (first !== void 0) return 1;
|
|
6531
6579
|
if (second !== void 0) return -1;
|
|
6532
|
-
return
|
|
6580
|
+
return comparePrimitives(left, right);
|
|
6533
6581
|
}
|
|
6534
6582
|
for (const [index, component] of first.entries()) {
|
|
6535
|
-
const order =
|
|
6583
|
+
const order = comparePrimitives(component, second[index] ?? 0);
|
|
6536
6584
|
if (order !== 0) return order;
|
|
6537
6585
|
}
|
|
6538
6586
|
return 0;
|
|
@@ -7018,7 +7066,7 @@ function blueprintToDevDependencies(blueprint) {
|
|
|
7018
7066
|
...Object.fromEntries(peers.filter(([name], index) => peers.findIndex(([other]) => other === name) === index))
|
|
7019
7067
|
};
|
|
7020
7068
|
const runtime = new Set(blueprint.dependencies.map((dependency) => dependency.name));
|
|
7021
|
-
return Object.fromEntries(Object.entries(merged).filter(([name]) => name !== own && !runtime.has(name)).sort(([left], [right]) =>
|
|
7069
|
+
return Object.fromEntries(Object.entries(merged).filter(([name]) => name !== own && !runtime.has(name)).sort(([left], [right]) => comparePrimitives(left, right)));
|
|
7022
7070
|
}
|
|
7023
7071
|
/**
|
|
7024
7072
|
* Projects a blueprint into the toolchain holds its browser frameworks require.
|
|
@@ -7444,8 +7492,8 @@ function blueprintToManifest(blueprint) {
|
|
|
7444
7492
|
const targets = [...sheets, ...blueprint.themes ? ["styles/themes"] : []];
|
|
7445
7493
|
const publishes = blueprint.src.length > 0 || targets.length > 0;
|
|
7446
7494
|
const name = publishes ? `@orkestrel/${blueprint.name}` : blueprint.name;
|
|
7447
|
-
const dependencies = Object.fromEntries([...blueprint.dependencies].sort((left, right) =>
|
|
7448
|
-
const peers = [...blueprint.peers].sort((left, right) =>
|
|
7495
|
+
const dependencies = Object.fromEntries([...blueprint.dependencies].sort((left, right) => comparePrimitives(left.name, right.name)).map((dependency) => [dependency.name, dependency.range]));
|
|
7496
|
+
const peers = [...blueprint.peers].sort((left, right) => comparePrimitives(left.name, right.name));
|
|
7449
7497
|
const peerDependencies = Object.fromEntries(peers.map((peer) => [peer.name, peer.range]));
|
|
7450
7498
|
const peerDependenciesMeta = Object.fromEntries(peers.filter((peer) => peer.optional === true).map((peer) => [peer.name, { optional: true }]));
|
|
7451
7499
|
const entry = srcToEntry(blueprint.src);
|
|
@@ -8516,7 +8564,7 @@ function blueprintToOrchestrationArtifacts(blueprint) {
|
|
|
8516
8564
|
*
|
|
8517
8565
|
* `source` is left absent because it falls back to `path`, and every vendored
|
|
8518
8566
|
* path is stored under the name it is written to. The group comes from
|
|
8519
|
-
* {@link
|
|
8567
|
+
* {@link inferArtifactGroup}, so a vendored path and a foreign path found in a target
|
|
8520
8568
|
* are classified by one rule and a plan never disagrees with the audit beside
|
|
8521
8569
|
* it.
|
|
8522
8570
|
*
|
|
@@ -8554,7 +8602,7 @@ function blueprintToOrchestrationArtifacts(blueprint) {
|
|
|
8554
8602
|
function blueprintToHostArtifacts(blueprint) {
|
|
8555
8603
|
const vendored = [...selectHostPaths([...HOST_PATHS, ...SEED_GUIDE_PATHS], blueprint.name), CATALOG_AGENT_PATH].map((path) => ({
|
|
8556
8604
|
path,
|
|
8557
|
-
group:
|
|
8605
|
+
group: inferArtifactGroup(path),
|
|
8558
8606
|
ownership: "presence",
|
|
8559
8607
|
origin: "host"
|
|
8560
8608
|
}));
|
|
@@ -8566,19 +8614,19 @@ function blueprintToHostArtifacts(blueprint) {
|
|
|
8566
8614
|
return [
|
|
8567
8615
|
{
|
|
8568
8616
|
path: bridge,
|
|
8569
|
-
group:
|
|
8617
|
+
group: inferArtifactGroup(bridge),
|
|
8570
8618
|
ownership: "presence",
|
|
8571
8619
|
origin: "host"
|
|
8572
8620
|
},
|
|
8573
8621
|
{
|
|
8574
8622
|
path: sidecar,
|
|
8575
|
-
group:
|
|
8623
|
+
group: inferArtifactGroup(sidecar),
|
|
8576
8624
|
ownership: "presence",
|
|
8577
8625
|
origin: "host"
|
|
8578
8626
|
},
|
|
8579
8627
|
{
|
|
8580
8628
|
path: pointer,
|
|
8581
|
-
group:
|
|
8629
|
+
group: inferArtifactGroup(pointer),
|
|
8582
8630
|
ownership: "presence",
|
|
8583
8631
|
origin: "host",
|
|
8584
8632
|
pointer: true
|
|
@@ -8788,7 +8836,7 @@ function insertManifestDependencies(manifest, additions) {
|
|
|
8788
8836
|
function insertManifestSection(manifest, section, dependencies, present) {
|
|
8789
8837
|
const tokens = scanManifestTokens(manifest);
|
|
8790
8838
|
if (tokens === void 0) return void 0;
|
|
8791
|
-
const ordered = [...dependencies].sort((left, right) =>
|
|
8839
|
+
const ordered = [...dependencies].sort((left, right) => comparePrimitives(left.name, right.name));
|
|
8792
8840
|
const lines = ordered.map(({ name, range }) => `${JSON.stringify(name)}: ${JSON.stringify(range)}`);
|
|
8793
8841
|
const sibling = section === "dependencies" ? "devDependencies" : "dependencies";
|
|
8794
8842
|
const occurrences = tokens.flatMap((token, at) => {
|
|
@@ -8854,7 +8902,7 @@ function insertManifestSection(manifest, section, dependencies, present) {
|
|
|
8854
8902
|
const separator = newline < 0 || /\S/u.test(indent) ? "" : `\n${indent}`;
|
|
8855
8903
|
const placements = ordered.map((dependency, index) => {
|
|
8856
8904
|
const line = lines[index] ?? "";
|
|
8857
|
-
const anchor = declarations.find((declaration) =>
|
|
8905
|
+
const anchor = declarations.find((declaration) => comparePrimitives(declaration.name, dependency.name) > 0);
|
|
8858
8906
|
return {
|
|
8859
8907
|
position: anchor?.start ?? last.end,
|
|
8860
8908
|
text: anchor === void 0 ? `,${separator}${line}` : `${line},${separator}`
|
|
@@ -9095,22 +9143,22 @@ function planToHash(plan) {
|
|
|
9095
9143
|
*
|
|
9096
9144
|
* @example
|
|
9097
9145
|
* ```ts
|
|
9098
|
-
* import { Compiler, createBlueprint,
|
|
9146
|
+
* import { Compiler, createBlueprint, planToArtifactFindings } from '@orkestrel/scaffold'
|
|
9099
9147
|
*
|
|
9100
9148
|
* const { plan } = new Compiler().compile(createBlueprint('router', { src: ['core'] }))
|
|
9101
9149
|
*
|
|
9102
|
-
* plan === undefined ? [] :
|
|
9150
|
+
* plan === undefined ? [] : planToArtifactFindings(plan, { 'AGENTS.md': '68690a' })
|
|
9103
9151
|
* ```
|
|
9104
9152
|
*/
|
|
9105
|
-
function
|
|
9153
|
+
function planToArtifactFindings(plan, current) {
|
|
9106
9154
|
const listed = Iterator.from(plan.artifacts).map((artifact) => ({
|
|
9107
9155
|
path: artifact.path,
|
|
9108
|
-
finding:
|
|
9156
|
+
finding: artifactToArtifactFinding(artifact, current[artifact.path])
|
|
9109
9157
|
})).toArray();
|
|
9110
9158
|
const planned = new Set(listed.map(({ path }) => path));
|
|
9111
9159
|
return [...listed.map(({ finding }) => finding), ...Object.entries(current).flatMap(([path, observed]) => {
|
|
9112
9160
|
if (planned.has(path)) return [];
|
|
9113
|
-
const group =
|
|
9161
|
+
const group = inferArtifactGroup(path);
|
|
9114
9162
|
return plan.groups.includes(group) ? [{
|
|
9115
9163
|
path,
|
|
9116
9164
|
group,
|
|
@@ -9493,7 +9541,7 @@ function overridesToQuestions(overrides, artifacts) {
|
|
|
9493
9541
|
* ```
|
|
9494
9542
|
*/
|
|
9495
9543
|
function createBlueprint(name, input) {
|
|
9496
|
-
const blueprint = parseBlueprint(
|
|
9544
|
+
const blueprint = parseBlueprint(parseOwnedJSONValue({
|
|
9497
9545
|
name,
|
|
9498
9546
|
...input?.description === void 0 ? {} : { description: input.description },
|
|
9499
9547
|
keywords: input?.keywords ?? [],
|
|
@@ -9542,7 +9590,7 @@ function createBlueprint(name, input) {
|
|
|
9542
9590
|
* so a caller reads the refusal from the value it asked for.
|
|
9543
9591
|
*
|
|
9544
9592
|
* Both entry points snapshot each caller-supplied value and then guard the
|
|
9545
|
-
* snapshot, which is the order `
|
|
9593
|
+
* snapshot, which is the order `parseOwnedJSONValue` fixes. A value that is not the exact
|
|
9546
9594
|
* shape is off-contract input rather than an answerable question, so it raises
|
|
9547
9595
|
* `INVALID`. Structure raises; the laws a well-formed blueprint can still break
|
|
9548
9596
|
* are the gate's, and they answer with questions.
|
|
@@ -9673,7 +9721,7 @@ var Compiler = class {
|
|
|
9673
9721
|
const compiled = this.#scaffold(accepted, this.#select(groups));
|
|
9674
9722
|
if (compiled.plan === void 0) this.#emitter.emit("block", compiled.questions);
|
|
9675
9723
|
const result = {
|
|
9676
|
-
findings: compiled.plan === void 0 ? [] :
|
|
9724
|
+
findings: compiled.plan === void 0 ? [] : planToArtifactFindings(compiled.plan, observed),
|
|
9677
9725
|
questions: compiled.questions
|
|
9678
9726
|
};
|
|
9679
9727
|
this.#emitter.emit("audit", result);
|
|
@@ -9806,10 +9854,10 @@ var Compiler = class {
|
|
|
9806
9854
|
];
|
|
9807
9855
|
}
|
|
9808
9856
|
#select(groups) {
|
|
9809
|
-
return
|
|
9857
|
+
return selectArtifactGroups(groups === void 0 ? void 0 : this.#accept(groups, parseArtifactGroups, "groups", ARTIFACT_GROUPS));
|
|
9810
9858
|
}
|
|
9811
9859
|
#accept(value, parse, field, candidates) {
|
|
9812
|
-
const accepted = parse(
|
|
9860
|
+
const accepted = parse(parseOwnedJSONValue(value));
|
|
9813
9861
|
if (accepted !== void 0) return accepted;
|
|
9814
9862
|
throw this.#error("INVALID", `The ${field} argument is not the exact shape this compiler accepts.`, candidates === void 0 ? { field } : {
|
|
9815
9863
|
field,
|
|
@@ -9825,6 +9873,6 @@ var Compiler = class {
|
|
|
9825
9873
|
return error;
|
|
9826
9874
|
}
|
|
9827
9875
|
};
|
|
9828
|
-
export { APP_BROWSER_DEV_DEPENDENCIES, APP_DEV_DEPENDENCIES, APP_MATRIX, APP_SERVER_DEV_DEPENDENCIES, ARTIFACT_TEMPLATES, AXES, BASE_DEV_DEPENDENCIES, BIN_CONFIGS, BIN_ENTRY_PATH, BIN_OUTPUT_PATH, BROWSE_DEV_DEPENDENCIES, BROWSE_UPSTREAM, CANON_PATHS, CAPTURE_DEV_DEPENDENCIES, CAPTURE_UPSTREAM, CATALOG_AGENT_PATH, CATALOG_END_MARKER, CATALOG_START_MARKER, CONFIG_TEMPLATES, CONFORMANCE_TEST_PATH, CONTROL_CHARACTER_PATTERN, Compiler, DECLARATION_DEV_DEPENDENCIES, DEFAULT_ENGINES, DEFAULT_VERSION, DEPENDENCY_NAME_PATTERN, DISTRIBUTION_SETUP_PATH, DISTRIBUTION_TEST_PATH, ENGINES_PATTERN, ENVIRONMENTS, EXECUTABLE_PATHS, EXTRA_RANGE_PATTERN, FLOOR_RANGE_PATTERN, FOREIGN_NAME_PATTERN, FRAMEWORKS, FRAMEWORK_MATRIX, GLOBAL_SETUP_PATH,
|
|
9876
|
+
export { APP_BROWSER_DEV_DEPENDENCIES, APP_DEV_DEPENDENCIES, APP_MATRIX, APP_SERVER_DEV_DEPENDENCIES, ARTIFACT_GROUPS, ARTIFACT_TEMPLATES, AXES, BASE_DEV_DEPENDENCIES, BIN_CONFIGS, BIN_ENTRY_PATH, BIN_OUTPUT_PATH, BROWSE_DEV_DEPENDENCIES, BROWSE_UPSTREAM, CANON_PATHS, CAPTURE_DEV_DEPENDENCIES, CAPTURE_UPSTREAM, CATALOG_AGENT_PATH, CATALOG_END_MARKER, CATALOG_START_MARKER, CONFIG_TEMPLATES, CONFORMANCE_TEST_PATH, CONTROL_CHARACTER_PATTERN, Compiler, DECLARATION_DEV_DEPENDENCIES, DEFAULT_ENGINES, DEFAULT_VERSION, DEPENDENCY_NAME_PATTERN, DISTRIBUTION_SETUP_PATH, DISTRIBUTION_TEST_PATH, ENGINES_PATTERN, ENVIRONMENTS, EXECUTABLE_PATHS, EXTRA_RANGE_PATTERN, FLOOR_RANGE_PATTERN, FOREIGN_NAME_PATTERN, FRAMEWORKS, FRAMEWORK_MATRIX, GLOBAL_SETUP_PATH, GUIDES_TEST_PATH, HEX_PATTERN, HOST_INVENTORY_PATH, HOST_PATHS, INTEGRATION_TEST_PATH, INVALID_PATH_CHARACTER_PATTERN, JOURNEY_CONFIG_PATH, MANIFEST_PATH, MAX_ARTIFACT_BYTES, MAX_ARTIFACT_HEX_LENGTH, MAX_AUDIT_FINDINGS, MAX_COLLECTION_ITEMS, MAX_DEPENDENCY_NAME_LENGTH, MAX_MANIFEST_BYTES, MAX_NAME_LENGTH, MAX_PATH_LENGTH, MAX_RANGE_LENGTH, MAX_REGISTRY_BYTES, MAX_SCRIPT_LENGTH, MAX_TOTAL_ARTIFACT_BYTES, MAX_TOTAL_REGISTRY_BYTES, MINIMUM_NODE_VERSION, MINIMUM_NPM_VERSION, NAME_PATTERN, ORCHESTRATION_PATH_NAMES, ORCHESTRATION_PATH_PREFIXES, ORKESTREL_RANGE_PATTERN, PRINT_WIDTH, REFERENCE_PATHS, RELEASE_PROOF_COMMAND, RESERVED_SHEET_NAMES, SEED_GUIDE_PATHS, SERVICE_SCRIPT_PATH, SERVICE_SETUP_PATH, SERVICE_TEST_INCLUDE, SHEET_ENTRY_NAME, SHOWCASE_CONFIG_PATH, SHOWCASE_DEV_DEPENDENCIES, SHOWCASE_OVERRIDES, SHOWCASE_PAGES_PATH, SKILLS_CONFIG_PATH, SOURCE_BROWSER_DEV_DEPENDENCIES, SRC_MATRIX, STUDIES_TEST_INCLUDE, STYLES_DEV_DEPENDENCIES, STYLES_ENTRY_PATH, SURFACES, SURFACE_EDIT_LENGTH, SURFACE_TRANSFERS, ScaffoldError, TAB_WIDTH, TARGET_SKILL_NAMES, THEMES_BARREL_PATH, THEMES_ENTRY_PATH, TOOLCHAIN_HOLDS, TREE_TEST_PATH, VERSION_PATTERN, WORKSPACE_DEV_ENGINES, WORKSPACE_OWNED_PATHS, applyOverrides, artifactToArtifactFinding, artifactToHex, artifactsToQuestions, blueprintToConfigArtifacts, blueprintToDevDependencies, blueprintToDocumentArtifacts, blueprintToExports, blueprintToFaces, blueprintToGuideArtifacts, blueprintToHostArtifacts, blueprintToMachinery, blueprintToManifest, blueprintToManifestOverrides, blueprintToOptimizedDependencies, blueprintToOrchestrationArtifacts, blueprintToProjects, blueprintToQuestions, blueprintToRootTsconfig, blueprintToRootVite, blueprintToScripts, blueprintToSheets, blueprintToSourceArtifacts, blueprintToTestArtifacts, blueprintToToolchainHolds, blueprintToWritableScripts, bytesToHex, catalogToLayers, collectSurfaceAdvisories, collectSurfaceCollisions, collectSurfaceConflicts, compareSurfaceCollisions, compareVersions, computeBytes, computeHash, computeTotal, contentToHex, createBlueprint, dependenciesToQuestions, extractRangeMajor, extractVersion, inferArtifactDrift, inferArtifactGroup, inferSurfaceSimilarity, insertManifestDependencies, insertManifestSection, isArtifact, isArtifactFinding, isArtifactGroup, isArtifactGroups, isAudit, isBlueprint, isBrowserExtension, isCanonPath, isCatalogEntry, isCollection, isCompilerHooks, isCompilerOptions, isContent, isDeferredPath, isDependency, isDependencyName, isEnvironment, isExtension, isFloorPath, isHexContent, isManifestScript, isMirror, isOverride, isPath, isPlan, isQuestion, isRetainedPath, isScaffoldError, isSheetName, isSnapshot, isStylesExtension, isSurface, iterateAnswers, manifestToDependencies, manifestToName, matchesArtifactDriftReachability, matchesEngines, matchesGuideRefusal, matchesOrchestrationPath, matchesPrintWidth, matchesRange, matchesSurfaceStructure, nameToGuide, overridesToQuestions, parseArtifactGroups, parseBlueprint, parseCompilerOptions, parseExtension, parseOwnedJSONValue, parseSnapshot, pathToCondition, planToArtifactFindings, planToHash, planToSummary, renderSkillPointer, replaceManifestOverride, replaceManifestOverrides, replaceManifestRanges, replaceManifestScripts, replacePlanRanges, scanManifestTokens, selectArtifactGroups, selectHostPaths, serializeTypeScriptString, srcToEntry, srcToExports, srcToRoot };
|
|
9829
9877
|
|
|
9830
9878
|
//# sourceMappingURL=index.js.map
|