@orkestrel/scaffold 0.0.119 → 0.0.121
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 +19 -19
- package/dist/bin/main.js.map +1 -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/claude/agents/orkestrel.md +52 -51
- package/dist/host/claude/rules/tests.md +2 -2
- package/dist/host/claude/rules/typescript.md +2 -3
- package/dist/host/guides/abort.md +0 -4
- package/dist/host/guides/agent.md +5 -5
- package/dist/host/guides/brief.md +7 -15
- package/dist/host/guides/browser.md +1 -1
- package/dist/host/guides/budget.md +1 -5
- package/dist/host/guides/capture.md +2 -2
- package/dist/host/guides/codec.md +18 -3
- package/dist/host/guides/console.md +4 -30
- 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/guide.md +0 -1
- package/dist/host/guides/html.md +3 -7
- package/dist/host/guides/indexeddb.md +28 -32
- package/dist/host/guides/interpret.md +165 -182
- package/dist/host/guides/jsonrpc.md +187 -0
- package/dist/host/guides/lsp.md +26 -51
- package/dist/host/guides/markdown.md +132 -141
- package/dist/host/guides/mcp.md +220 -276
- package/dist/host/guides/middleware.md +14 -22
- package/dist/host/guides/msg.md +47 -63
- package/dist/host/guides/ndjson.md +0 -4
- package/dist/host/guides/ollama.md +1 -3
- package/dist/host/guides/pool.md +0 -4
- package/dist/host/guides/probe.md +71 -80
- package/dist/host/guides/process.md +71 -79
- package/dist/host/guides/program.md +26 -35
- package/dist/host/guides/qualifier.md +0 -6
- package/dist/host/guides/queue.md +0 -4
- package/dist/host/guides/rater.md +6 -12
- package/dist/host/guides/reason.md +30 -36
- package/dist/host/guides/relation.md +0 -2
- package/dist/host/guides/router.md +11 -18
- package/dist/host/guides/scaffold.md +148 -144
- package/dist/host/guides/sea.md +47 -51
- package/dist/host/guides/server.md +15 -19
- 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/terminal.md +0 -26
- 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/toolbox.md +0 -10
- package/dist/host/guides/websocket.md +0 -4
- package/dist/host/guides/worker.md +57 -57
- package/dist/host/guides/workflow.md +13 -26
- package/dist/host/guides/workspace.md +15 -21
- package/dist/host/manifest.json +64 -909
- package/dist/src/core/index.cjs +128 -181
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +213 -213
- package/dist/src/core/index.d.ts +213 -213
- package/dist/src/core/index.js +117 -170
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +35 -34
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +62 -58
- package/dist/src/server/index.d.ts +62 -58
- package/dist/src/server/index.js +36 -35
- package/dist/src/server/index.js.map +1 -1
- package/package.json +13 -13
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.121",
|
|
7
7
|
description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
|
|
8
8
|
keywords: [
|
|
9
9
|
"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.18",
|
|
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.
|
|
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.
|
|
106
|
+
"@microsoft/api-extractor": "^7.60.1",
|
|
107
|
+
"@orkestrel/browser": "^0.0.31",
|
|
108
|
+
"@orkestrel/guide": "^0.0.29",
|
|
109
|
+
"@orkestrel/html": "^0.0.14",
|
|
110
|
+
"@orkestrel/probe": "^0.0.27",
|
|
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",
|
|
@@ -370,61 +370,7 @@ var HOST_INVENTORY_PATH = "host.json";
|
|
|
370
370
|
* whose keeper alone claims the name. `.claude/rules/names.md` § Fleet name ownership rule 5
|
|
371
371
|
* governs when a transfer is declared and removed.
|
|
372
372
|
*/
|
|
373
|
-
var SURFACE_TRANSFERS = Object.freeze([
|
|
374
|
-
...["BOM"].map((name) => ({
|
|
375
|
-
name,
|
|
376
|
-
keeper: "codec",
|
|
377
|
-
item: 80
|
|
378
|
-
})),
|
|
379
|
-
...[
|
|
380
|
-
"CHOICE_LIMIT",
|
|
381
|
-
"NAME_LIMIT",
|
|
382
|
-
"NODE_LIMIT",
|
|
383
|
-
"STRING_LIMIT",
|
|
384
|
-
"TEXT_LIMIT",
|
|
385
|
-
"errorToMessage",
|
|
386
|
-
"escapeRegExp",
|
|
387
|
-
"failure",
|
|
388
|
-
"isFailure",
|
|
389
|
-
"isSuccess",
|
|
390
|
-
"success"
|
|
391
|
-
].map((name) => ({
|
|
392
|
-
name,
|
|
393
|
-
keeper: "contract",
|
|
394
|
-
item: 79
|
|
395
|
-
})),
|
|
396
|
-
...[
|
|
397
|
-
"JSONRPCError",
|
|
398
|
-
"JSONRPCErrorResponse",
|
|
399
|
-
"JSONRPCId",
|
|
400
|
-
"JSONRPCInvocation",
|
|
401
|
-
"JSONRPCMessage",
|
|
402
|
-
"JSONRPCNotification",
|
|
403
|
-
"JSONRPCRequest",
|
|
404
|
-
"JSONRPCResponse",
|
|
405
|
-
"JSONRPCResultResponse",
|
|
406
|
-
"JSONRPC_INTERNAL_ERROR",
|
|
407
|
-
"JSONRPC_INVALID_PARAMS",
|
|
408
|
-
"JSONRPC_INVALID_REQUEST",
|
|
409
|
-
"JSONRPC_METHOD_NOT_FOUND",
|
|
410
|
-
"JSONRPC_PARSE_ERROR",
|
|
411
|
-
"buildJSONRPCError",
|
|
412
|
-
"buildJSONRPCResult",
|
|
413
|
-
"isJSONRPCError",
|
|
414
|
-
"isJSONRPCErrorResponse",
|
|
415
|
-
"isJSONRPCId",
|
|
416
|
-
"isJSONRPCInvocation",
|
|
417
|
-
"isJSONRPCMessage",
|
|
418
|
-
"isJSONRPCNotification",
|
|
419
|
-
"isJSONRPCRequest",
|
|
420
|
-
"isJSONRPCResponse",
|
|
421
|
-
"isJSONRPCResultResponse"
|
|
422
|
-
].map((name) => ({
|
|
423
|
-
name,
|
|
424
|
-
keeper: "jsonrpc",
|
|
425
|
-
item: 81
|
|
426
|
-
}))
|
|
427
|
-
].map((transfer) => Object.freeze(transfer)));
|
|
373
|
+
var SURFACE_TRANSFERS = Object.freeze([]);
|
|
428
374
|
/**
|
|
429
375
|
* Lists the vendored paths whose present bytes belong to each workspace, frozen.
|
|
430
376
|
*
|
|
@@ -825,6 +771,7 @@ var BROWSE_UPSTREAM = Object.freeze([
|
|
|
825
771
|
"@orkestrel/contract",
|
|
826
772
|
"@orkestrel/emitter",
|
|
827
773
|
"@orkestrel/html",
|
|
774
|
+
"@orkestrel/jsonrpc",
|
|
828
775
|
"@orkestrel/markdown",
|
|
829
776
|
"@orkestrel/mcp",
|
|
830
777
|
"@orkestrel/pool",
|
|
@@ -4895,13 +4842,13 @@ function isPath(value) {
|
|
|
4895
4842
|
*
|
|
4896
4843
|
* @example
|
|
4897
4844
|
* ```ts
|
|
4898
|
-
* import {
|
|
4845
|
+
* import { isHexContent } from '@orkestrel/scaffold'
|
|
4899
4846
|
*
|
|
4900
|
-
*
|
|
4901
|
-
*
|
|
4847
|
+
* isHexContent('68690a') // true
|
|
4848
|
+
* isHexContent('68690A') // false
|
|
4902
4849
|
* ```
|
|
4903
4850
|
*/
|
|
4904
|
-
var
|
|
4851
|
+
var isHexContent = stringOf({
|
|
4905
4852
|
max: MAX_ARTIFACT_HEX_LENGTH,
|
|
4906
4853
|
pattern: HEX_PATTERN
|
|
4907
4854
|
});
|
|
@@ -5026,19 +4973,19 @@ var isStylesExtension = recordOf({
|
|
|
5026
4973
|
*/
|
|
5027
4974
|
var isExtension = unionOf(isBrowserExtension, isStylesExtension);
|
|
5028
4975
|
/**
|
|
5029
|
-
* Narrows a value to one {@link
|
|
4976
|
+
* Narrows a value to one {@link ArtifactGroup} a plan selects over.
|
|
5030
4977
|
*
|
|
5031
4978
|
* @example
|
|
5032
4979
|
* ```ts
|
|
5033
|
-
* import {
|
|
4980
|
+
* import { isArtifactGroup } from '@orkestrel/scaffold'
|
|
5034
4981
|
*
|
|
5035
|
-
*
|
|
5036
|
-
*
|
|
4982
|
+
* isArtifactGroup('manifest') // true
|
|
4983
|
+
* isArtifactGroup('readme') // false
|
|
5037
4984
|
* ```
|
|
5038
4985
|
*/
|
|
5039
|
-
var
|
|
4986
|
+
var isArtifactGroup = literalOf(ARTIFACT_GROUPS);
|
|
5040
4987
|
/** Narrows a value to a bounded group selection. */
|
|
5041
|
-
var
|
|
4988
|
+
var isArtifactGroups = andOf(isCollection, arrayOf(isArtifactGroup));
|
|
5042
4989
|
/**
|
|
5043
4990
|
* Narrows a value to the scoped package name a runtime dependency carries.
|
|
5044
4991
|
*
|
|
@@ -5204,7 +5151,7 @@ var isBlueprint = recordOf({
|
|
|
5204
5151
|
*/
|
|
5205
5152
|
var isArtifact = unionOf(recordOf({
|
|
5206
5153
|
path: isPath,
|
|
5207
|
-
group:
|
|
5154
|
+
group: isArtifactGroup,
|
|
5208
5155
|
ownership: literalOf("presence", "birth"),
|
|
5209
5156
|
environment: isEnvironment,
|
|
5210
5157
|
origin: literalOf("host"),
|
|
@@ -5216,15 +5163,15 @@ var isArtifact = unionOf(recordOf({
|
|
|
5216
5163
|
"pointer"
|
|
5217
5164
|
]), recordOf({
|
|
5218
5165
|
path: isPath,
|
|
5219
|
-
group:
|
|
5166
|
+
group: isArtifactGroup,
|
|
5220
5167
|
ownership: literalOf("content"),
|
|
5221
5168
|
environment: isEnvironment,
|
|
5222
5169
|
origin: literalOf("host"),
|
|
5223
5170
|
source: isPath,
|
|
5224
|
-
hex:
|
|
5171
|
+
hex: isHexContent
|
|
5225
5172
|
}, ["environment", "source"]), recordOf({
|
|
5226
5173
|
path: isPath,
|
|
5227
|
-
group:
|
|
5174
|
+
group: isArtifactGroup,
|
|
5228
5175
|
ownership: literalOf("content", "presence", "birth"),
|
|
5229
5176
|
environment: isEnvironment,
|
|
5230
5177
|
origin: literalOf("template", "computed"),
|
|
@@ -5242,9 +5189,9 @@ var isArtifact = unionOf(recordOf({
|
|
|
5242
5189
|
*/
|
|
5243
5190
|
var isPlan = andOf(recordOf({
|
|
5244
5191
|
blueprint: isBlueprint,
|
|
5245
|
-
groups:
|
|
5192
|
+
groups: isArtifactGroups,
|
|
5246
5193
|
artifacts: andOf(isCollection, arrayOf(isArtifact)),
|
|
5247
|
-
hash:
|
|
5194
|
+
hash: isHexContent
|
|
5248
5195
|
}, ["hash"]), (plan) => plan.artifacts.every((artifact) => artifact.path !== "package.json" || artifact.ownership === "birth"));
|
|
5249
5196
|
/**
|
|
5250
5197
|
* Narrows a value to a {@link Question}.
|
|
@@ -5263,7 +5210,7 @@ var isQuestion = recordOf({
|
|
|
5263
5210
|
candidates: andOf(isCollection, arrayOf(isString))
|
|
5264
5211
|
}, ["candidates"]);
|
|
5265
5212
|
/**
|
|
5266
|
-
* Narrows a value to
|
|
5213
|
+
* Narrows a value to an {@link ArtifactFinding}.
|
|
5267
5214
|
*
|
|
5268
5215
|
* @remarks
|
|
5269
5216
|
* `observed` is required exactly where the mutation it precedes is held to it,
|
|
@@ -5274,30 +5221,30 @@ var isQuestion = recordOf({
|
|
|
5274
5221
|
* That is the whole claim. This guard proves the shape a reader may destructure
|
|
5275
5222
|
* and nothing about whether the verdict is one an audit could have reached: the
|
|
5276
5223
|
* correlation between `ownership`, `drift`, and `observed` belongs to
|
|
5277
|
-
* {@link
|
|
5224
|
+
* {@link inferArtifactDrift}, and it is re-derived at the verb that acts on the finding.
|
|
5278
5225
|
*/
|
|
5279
|
-
var
|
|
5226
|
+
var isArtifactFinding = unionOf(recordOf({
|
|
5280
5227
|
path: isPath,
|
|
5281
|
-
group:
|
|
5228
|
+
group: isArtifactGroup,
|
|
5282
5229
|
ownership: literalOf("content", "presence", "birth"),
|
|
5283
5230
|
drift: literalOf("stale"),
|
|
5284
|
-
observed:
|
|
5231
|
+
observed: isHexContent
|
|
5285
5232
|
}), recordOf({
|
|
5286
5233
|
path: isPath,
|
|
5287
|
-
group:
|
|
5234
|
+
group: isArtifactGroup,
|
|
5288
5235
|
drift: literalOf("foreign"),
|
|
5289
|
-
observed:
|
|
5236
|
+
observed: isHexContent
|
|
5290
5237
|
}), recordOf({
|
|
5291
5238
|
path: isPath,
|
|
5292
|
-
group:
|
|
5239
|
+
group: isArtifactGroup,
|
|
5293
5240
|
ownership: literalOf("content", "presence", "birth"),
|
|
5294
5241
|
drift: literalOf("missing")
|
|
5295
5242
|
}), recordOf({
|
|
5296
5243
|
path: isPath,
|
|
5297
|
-
group:
|
|
5244
|
+
group: isArtifactGroup,
|
|
5298
5245
|
ownership: literalOf("content", "presence", "birth"),
|
|
5299
5246
|
drift: literalOf("aligned"),
|
|
5300
|
-
observed:
|
|
5247
|
+
observed: isHexContent
|
|
5301
5248
|
}, ["observed"]));
|
|
5302
5249
|
/**
|
|
5303
5250
|
* Narrows a value to an {@link Audit}.
|
|
@@ -5308,7 +5255,7 @@ var isFinding = unionOf(recordOf({
|
|
|
5308
5255
|
* bounds: one per planned artifact, then one per unplanned snapshot path.
|
|
5309
5256
|
*/
|
|
5310
5257
|
var isAudit = recordOf({
|
|
5311
|
-
findings: andOf((value) => holds(() => isArray(value) && value.length <= 2e3), arrayOf(
|
|
5258
|
+
findings: andOf((value) => holds(() => isArray(value) && value.length <= 2e3), arrayOf(isArtifactFinding)),
|
|
5312
5259
|
questions: andOf(isCollection, arrayOf(isQuestion))
|
|
5313
5260
|
});
|
|
5314
5261
|
/**
|
|
@@ -5324,13 +5271,13 @@ var isMirror = unionOf(recordOf({
|
|
|
5324
5271
|
path: isPath,
|
|
5325
5272
|
lookup: literalOf("found"),
|
|
5326
5273
|
content: isContent,
|
|
5327
|
-
observed:
|
|
5274
|
+
observed: isHexContent
|
|
5328
5275
|
}, ["observed"]), recordOf({
|
|
5329
5276
|
name: isDependencyName,
|
|
5330
5277
|
path: isPath,
|
|
5331
5278
|
lookup: literalOf("missing", "unmatched", "failed"),
|
|
5332
5279
|
note: isString,
|
|
5333
|
-
observed:
|
|
5280
|
+
observed: isHexContent
|
|
5334
5281
|
}, ["observed"]));
|
|
5335
5282
|
/**
|
|
5336
5283
|
* Narrows a value to a {@link CatalogEntry}.
|
|
@@ -5376,7 +5323,7 @@ function isSnapshot(value) {
|
|
|
5376
5323
|
if (!isRecord(value)) return false;
|
|
5377
5324
|
const keys = enumerableKeys(value);
|
|
5378
5325
|
if (keys === void 0 || keys.length > 1e3) return false;
|
|
5379
|
-
for (const key of keys) if (!isPath(key) || !
|
|
5326
|
+
for (const key of keys) if (!isPath(key) || !isHexContent(value[key])) return false;
|
|
5380
5327
|
return true;
|
|
5381
5328
|
});
|
|
5382
5329
|
}
|
|
@@ -5448,12 +5395,12 @@ var isCompilerOptions = recordOf({
|
|
|
5448
5395
|
*
|
|
5449
5396
|
* @example
|
|
5450
5397
|
* ```ts
|
|
5451
|
-
* import {
|
|
5398
|
+
* import { parseBlueprint, parseOwnedJSONValue } from '@orkestrel/scaffold'
|
|
5452
5399
|
*
|
|
5453
|
-
* const owned = parseBlueprint(
|
|
5400
|
+
* const owned = parseBlueprint(parseOwnedJSONValue(input))
|
|
5454
5401
|
* ```
|
|
5455
5402
|
*/
|
|
5456
|
-
function
|
|
5403
|
+
function parseOwnedJSONValue(value) {
|
|
5457
5404
|
const outcome = attempt(() => cloneJSONValue(value));
|
|
5458
5405
|
return outcome.success ? outcome.value : void 0;
|
|
5459
5406
|
}
|
|
@@ -5515,20 +5462,20 @@ function parseBlueprint(value) {
|
|
|
5515
5462
|
* @returns The selection, or `undefined` when the value is not one.
|
|
5516
5463
|
*
|
|
5517
5464
|
* @remarks
|
|
5518
|
-
* Derived from {@link
|
|
5465
|
+
* Derived from {@link isArtifactGroups}. Order and repetition are preserved: which
|
|
5519
5466
|
* groups a plan finally covers, and in which order, is the compiler's to decide
|
|
5520
|
-
* from `
|
|
5467
|
+
* from `ARTIFACT_GROUPS`, not this boundary's.
|
|
5521
5468
|
*
|
|
5522
5469
|
* @example
|
|
5523
5470
|
* ```ts
|
|
5524
|
-
* import {
|
|
5471
|
+
* import { parseArtifactGroups } from '@orkestrel/scaffold'
|
|
5525
5472
|
*
|
|
5526
|
-
*
|
|
5527
|
-
*
|
|
5473
|
+
* parseArtifactGroups(['manifest', 'configs']) // ['manifest', 'configs']
|
|
5474
|
+
* parseArtifactGroups(['readme']) // undefined
|
|
5528
5475
|
* ```
|
|
5529
5476
|
*/
|
|
5530
|
-
function
|
|
5531
|
-
return
|
|
5477
|
+
function parseArtifactGroups(value) {
|
|
5478
|
+
return isArtifactGroups(value) ? value : void 0;
|
|
5532
5479
|
}
|
|
5533
5480
|
/**
|
|
5534
5481
|
* Coerces an untrusted value to a {@link Snapshot}.
|
|
@@ -5754,8 +5701,8 @@ function collectSurfaceAdvisories(candidate, published, contracts) {
|
|
|
5754
5701
|
name,
|
|
5755
5702
|
owner,
|
|
5756
5703
|
signature: signatures.get(name)
|
|
5757
|
-
}))).sort((left, right) =>
|
|
5758
|
-
return [...new Set(candidate.names)].filter((name) => !known.has(name)).sort(
|
|
5704
|
+
}))).sort((left, right) => comparePrimitives(left.owner, right.owner) || comparePrimitives(left.name, right.name));
|
|
5705
|
+
return [...new Set(candidate.names)].filter((name) => !known.has(name)).sort(comparePrimitives).flatMap((name) => {
|
|
5759
5706
|
const signature = candidate.signatures.get(name);
|
|
5760
5707
|
const structure = signature !== void 0 && matchesSurfaceStructure(signature);
|
|
5761
5708
|
return peers.flatMap((peer) => {
|
|
@@ -6060,7 +6007,7 @@ function isFloorPath(path) {
|
|
|
6060
6007
|
return isDeferredPath(path) || isCanonPath(path);
|
|
6061
6008
|
}
|
|
6062
6009
|
/**
|
|
6063
|
-
* Infers the {@link
|
|
6010
|
+
* Infers the {@link ArtifactGroup} a path belongs to.
|
|
6064
6011
|
*
|
|
6065
6012
|
* @param path - The target-relative path to classify.
|
|
6066
6013
|
* @returns The group that owns the path.
|
|
@@ -6076,14 +6023,14 @@ function isFloorPath(path) {
|
|
|
6076
6023
|
*
|
|
6077
6024
|
* @example
|
|
6078
6025
|
* ```ts
|
|
6079
|
-
* import {
|
|
6026
|
+
* import { inferArtifactGroup } from '@orkestrel/scaffold'
|
|
6080
6027
|
*
|
|
6081
|
-
*
|
|
6082
|
-
*
|
|
6083
|
-
*
|
|
6028
|
+
* inferArtifactGroup('src/core/index.ts') // 'source'
|
|
6029
|
+
* inferArtifactGroup('AGENTS.md') // 'docs'
|
|
6030
|
+
* inferArtifactGroup('.editorconfig') // 'configs'
|
|
6084
6031
|
* ```
|
|
6085
6032
|
*/
|
|
6086
|
-
function
|
|
6033
|
+
function inferArtifactGroup(path) {
|
|
6087
6034
|
if (path === "package.json" || path === "package-lock.json") return "manifest";
|
|
6088
6035
|
if (matchesOrchestrationPath(path)) return "orchestration";
|
|
6089
6036
|
if (path.startsWith("src/") || path.startsWith("app/")) return "source";
|
|
@@ -6235,26 +6182,26 @@ function selectHostPaths(paths, name) {
|
|
|
6235
6182
|
* Selects the groups a compile covers, in plan order.
|
|
6236
6183
|
*
|
|
6237
6184
|
* @param groups - The requested selection; every group when absent.
|
|
6238
|
-
* @returns The requested groups in `
|
|
6185
|
+
* @returns The requested groups in `ARTIFACT_GROUPS` order, without repeats.
|
|
6239
6186
|
*
|
|
6240
6187
|
* @remarks
|
|
6241
6188
|
* A caller's selection is data, so it arrives in whatever order and with
|
|
6242
6189
|
* whatever repeats the caller wrote. Plan order is this package's, so the
|
|
6243
|
-
* selection is read as membership and the order comes from `
|
|
6190
|
+
* selection is read as membership and the order comes from `ARTIFACT_GROUPS`. An empty
|
|
6244
6191
|
* selection covers nothing, which is a caller asking for an empty plan rather
|
|
6245
6192
|
* than a caller asking for everything.
|
|
6246
6193
|
*
|
|
6247
6194
|
* @example
|
|
6248
6195
|
* ```ts
|
|
6249
|
-
* import {
|
|
6196
|
+
* import { selectArtifactGroups } from '@orkestrel/scaffold'
|
|
6250
6197
|
*
|
|
6251
|
-
*
|
|
6252
|
-
*
|
|
6198
|
+
* selectArtifactGroups(['tests', 'manifest', 'tests']) // ['manifest', 'tests']
|
|
6199
|
+
* selectArtifactGroups() // every group, in plan order
|
|
6253
6200
|
* ```
|
|
6254
6201
|
*/
|
|
6255
|
-
function
|
|
6256
|
-
const selection = groups ??
|
|
6257
|
-
return
|
|
6202
|
+
function selectArtifactGroups(groups) {
|
|
6203
|
+
const selection = groups ?? ARTIFACT_GROUPS;
|
|
6204
|
+
return ARTIFACT_GROUPS.filter((group) => selection.includes(group));
|
|
6258
6205
|
}
|
|
6259
6206
|
/**
|
|
6260
6207
|
* Projects an artifact to the exact bytes it claims, as hexadecimal.
|
|
@@ -6306,7 +6253,7 @@ function artifactToHex(artifact) {
|
|
|
6306
6253
|
* @example
|
|
6307
6254
|
* ```ts
|
|
6308
6255
|
* import type { Artifact } from '@orkestrel/scaffold'
|
|
6309
|
-
* import {
|
|
6256
|
+
* import { inferArtifactDrift } from '@orkestrel/scaffold'
|
|
6310
6257
|
*
|
|
6311
6258
|
* const artifact: Artifact = {
|
|
6312
6259
|
* path: 'README.md',
|
|
@@ -6316,12 +6263,12 @@ function artifactToHex(artifact) {
|
|
|
6316
6263
|
* content: 'hi\n',
|
|
6317
6264
|
* }
|
|
6318
6265
|
*
|
|
6319
|
-
*
|
|
6320
|
-
*
|
|
6321
|
-
*
|
|
6266
|
+
* inferArtifactDrift(artifact, '68690a') // 'aligned'
|
|
6267
|
+
* inferArtifactDrift(artifact, '6279650a') // 'stale'
|
|
6268
|
+
* inferArtifactDrift(artifact) // 'missing'
|
|
6322
6269
|
* ```
|
|
6323
6270
|
*/
|
|
6324
|
-
function
|
|
6271
|
+
function inferArtifactDrift(artifact, observed) {
|
|
6325
6272
|
if (artifact.ownership === "birth") return "aligned";
|
|
6326
6273
|
if (observed === void 0) return "missing";
|
|
6327
6274
|
if (artifact.ownership === "presence") return "aligned";
|
|
@@ -6337,7 +6284,7 @@ function inferDrift(artifact, observed) {
|
|
|
6337
6284
|
* exactly where bytes were read.
|
|
6338
6285
|
*
|
|
6339
6286
|
* @remarks
|
|
6340
|
-
* The comparison itself is {@link
|
|
6287
|
+
* The comparison itself is {@link inferArtifactDrift}'s, so ownership decides it here
|
|
6341
6288
|
* exactly as it does everywhere else. This adds only the shape: a missing
|
|
6342
6289
|
* destination has no bytes to record, and every other verdict records the bytes
|
|
6343
6290
|
* it was given, which is the precondition the mutation that follows is held to.
|
|
@@ -6349,19 +6296,19 @@ function inferDrift(artifact, observed) {
|
|
|
6349
6296
|
*
|
|
6350
6297
|
* @example
|
|
6351
6298
|
* ```ts
|
|
6352
|
-
* import {
|
|
6299
|
+
* import { artifactToArtifactFinding } from '@orkestrel/scaffold'
|
|
6353
6300
|
*
|
|
6354
|
-
*
|
|
6301
|
+
* artifactToArtifactFinding(
|
|
6355
6302
|
* { path: 'README.md', group: 'docs', ownership: 'content', origin: 'computed', content: 'hi\n' },
|
|
6356
6303
|
* '6279650a',
|
|
6357
6304
|
* ) // { path: 'README.md', group: 'docs', ownership: 'content', drift: 'stale', observed: '6279650a' }
|
|
6358
6305
|
* ```
|
|
6359
6306
|
*/
|
|
6360
|
-
function
|
|
6307
|
+
function artifactToArtifactFinding(artifact, observed) {
|
|
6361
6308
|
const path = artifact.path;
|
|
6362
6309
|
const group = artifact.group;
|
|
6363
6310
|
const ownership = artifact.ownership;
|
|
6364
|
-
if (observed === void 0) return
|
|
6311
|
+
if (observed === void 0) return inferArtifactDrift(artifact) === "aligned" ? {
|
|
6365
6312
|
path,
|
|
6366
6313
|
group,
|
|
6367
6314
|
ownership,
|
|
@@ -6372,7 +6319,7 @@ function artifactToFinding(artifact, observed) {
|
|
|
6372
6319
|
ownership,
|
|
6373
6320
|
drift: "missing"
|
|
6374
6321
|
};
|
|
6375
|
-
return
|
|
6322
|
+
return inferArtifactDrift(artifact, observed) === "stale" ? {
|
|
6376
6323
|
path,
|
|
6377
6324
|
group,
|
|
6378
6325
|
ownership,
|
|
@@ -6387,12 +6334,12 @@ function artifactToFinding(artifact, observed) {
|
|
|
6387
6334
|
};
|
|
6388
6335
|
}
|
|
6389
6336
|
/**
|
|
6390
|
-
* Tests whether {@link
|
|
6337
|
+
* Tests whether {@link inferArtifactDrift} could have produced a finding for an ownership.
|
|
6391
6338
|
*
|
|
6392
6339
|
* @param ownership - What scaffold claims at the planned path.
|
|
6393
6340
|
* @param finding - The audit verdict to test.
|
|
6394
6341
|
* @returns True if the ownership and verdict are reachable through
|
|
6395
|
-
* {@link
|
|
6342
|
+
* {@link inferArtifactDrift}; false otherwise.
|
|
6396
6343
|
*
|
|
6397
6344
|
* @remarks
|
|
6398
6345
|
* This predicate keeps the comparison law beside the reachability law it
|
|
@@ -6401,16 +6348,16 @@ function artifactToFinding(artifact, observed) {
|
|
|
6401
6348
|
*
|
|
6402
6349
|
* @example
|
|
6403
6350
|
* ```ts
|
|
6404
|
-
* import type {
|
|
6405
|
-
* import {
|
|
6351
|
+
* import type { ArtifactFinding } from '@orkestrel/scaffold'
|
|
6352
|
+
* import { matchesArtifactDriftReachability } from '@orkestrel/scaffold'
|
|
6406
6353
|
*
|
|
6407
|
-
* const aligned:
|
|
6354
|
+
* const aligned: ArtifactFinding = {
|
|
6408
6355
|
* path: 'README.md',
|
|
6409
6356
|
* group: 'docs',
|
|
6410
6357
|
* ownership: 'birth',
|
|
6411
6358
|
* drift: 'aligned',
|
|
6412
6359
|
* }
|
|
6413
|
-
* const stale:
|
|
6360
|
+
* const stale: ArtifactFinding = {
|
|
6414
6361
|
* path: 'README.md',
|
|
6415
6362
|
* group: 'docs',
|
|
6416
6363
|
* ownership: 'birth',
|
|
@@ -6418,11 +6365,11 @@ function artifactToFinding(artifact, observed) {
|
|
|
6418
6365
|
* observed: '6279650a',
|
|
6419
6366
|
* }
|
|
6420
6367
|
*
|
|
6421
|
-
*
|
|
6422
|
-
*
|
|
6368
|
+
* matchesArtifactDriftReachability('birth', aligned) // true
|
|
6369
|
+
* matchesArtifactDriftReachability('birth', stale) // false
|
|
6423
6370
|
* ```
|
|
6424
6371
|
*/
|
|
6425
|
-
function
|
|
6372
|
+
function matchesArtifactDriftReachability(ownership, finding) {
|
|
6426
6373
|
if (finding.drift === "aligned") return ownership === "birth" || finding.observed !== void 0;
|
|
6427
6374
|
if (finding.drift === "missing") return ownership !== "birth";
|
|
6428
6375
|
return finding.drift === "stale" && ownership === "content";
|
|
@@ -6592,10 +6539,10 @@ function compareVersions(left, right) {
|
|
|
6592
6539
|
if (first === void 0 || second === void 0) {
|
|
6593
6540
|
if (first !== void 0) return 1;
|
|
6594
6541
|
if (second !== void 0) return -1;
|
|
6595
|
-
return
|
|
6542
|
+
return comparePrimitives(left, right);
|
|
6596
6543
|
}
|
|
6597
6544
|
for (const [index, component] of first.entries()) {
|
|
6598
|
-
const order =
|
|
6545
|
+
const order = comparePrimitives(component, second[index] ?? 0);
|
|
6599
6546
|
if (order !== 0) return order;
|
|
6600
6547
|
}
|
|
6601
6548
|
return 0;
|
|
@@ -7081,7 +7028,7 @@ function blueprintToDevDependencies(blueprint) {
|
|
|
7081
7028
|
...Object.fromEntries(peers.filter(([name], index) => peers.findIndex(([other]) => other === name) === index))
|
|
7082
7029
|
};
|
|
7083
7030
|
const runtime = new Set(blueprint.dependencies.map((dependency) => dependency.name));
|
|
7084
|
-
return Object.fromEntries(Object.entries(merged).filter(([name]) => name !== own && !runtime.has(name)).sort(([left], [right]) =>
|
|
7031
|
+
return Object.fromEntries(Object.entries(merged).filter(([name]) => name !== own && !runtime.has(name)).sort(([left], [right]) => comparePrimitives(left, right)));
|
|
7085
7032
|
}
|
|
7086
7033
|
/**
|
|
7087
7034
|
* Projects a blueprint into the toolchain holds its browser frameworks require.
|
|
@@ -7507,8 +7454,8 @@ function blueprintToManifest(blueprint) {
|
|
|
7507
7454
|
const targets = [...sheets, ...blueprint.themes ? ["styles/themes"] : []];
|
|
7508
7455
|
const publishes = blueprint.src.length > 0 || targets.length > 0;
|
|
7509
7456
|
const name = publishes ? `@orkestrel/${blueprint.name}` : blueprint.name;
|
|
7510
|
-
const dependencies = Object.fromEntries([...blueprint.dependencies].sort((left, right) =>
|
|
7511
|
-
const peers = [...blueprint.peers].sort((left, right) =>
|
|
7457
|
+
const dependencies = Object.fromEntries([...blueprint.dependencies].sort((left, right) => comparePrimitives(left.name, right.name)).map((dependency) => [dependency.name, dependency.range]));
|
|
7458
|
+
const peers = [...blueprint.peers].sort((left, right) => comparePrimitives(left.name, right.name));
|
|
7512
7459
|
const peerDependencies = Object.fromEntries(peers.map((peer) => [peer.name, peer.range]));
|
|
7513
7460
|
const peerDependenciesMeta = Object.fromEntries(peers.filter((peer) => peer.optional === true).map((peer) => [peer.name, { optional: true }]));
|
|
7514
7461
|
const entry = srcToEntry(blueprint.src);
|
|
@@ -8579,7 +8526,7 @@ function blueprintToOrchestrationArtifacts(blueprint) {
|
|
|
8579
8526
|
*
|
|
8580
8527
|
* `source` is left absent because it falls back to `path`, and every vendored
|
|
8581
8528
|
* path is stored under the name it is written to. The group comes from
|
|
8582
|
-
* {@link
|
|
8529
|
+
* {@link inferArtifactGroup}, so a vendored path and a foreign path found in a target
|
|
8583
8530
|
* are classified by one rule and a plan never disagrees with the audit beside
|
|
8584
8531
|
* it.
|
|
8585
8532
|
*
|
|
@@ -8617,7 +8564,7 @@ function blueprintToOrchestrationArtifacts(blueprint) {
|
|
|
8617
8564
|
function blueprintToHostArtifacts(blueprint) {
|
|
8618
8565
|
const vendored = [...selectHostPaths([...HOST_PATHS, ...SEED_GUIDE_PATHS], blueprint.name), CATALOG_AGENT_PATH].map((path) => ({
|
|
8619
8566
|
path,
|
|
8620
|
-
group:
|
|
8567
|
+
group: inferArtifactGroup(path),
|
|
8621
8568
|
ownership: "presence",
|
|
8622
8569
|
origin: "host"
|
|
8623
8570
|
}));
|
|
@@ -8629,19 +8576,19 @@ function blueprintToHostArtifacts(blueprint) {
|
|
|
8629
8576
|
return [
|
|
8630
8577
|
{
|
|
8631
8578
|
path: bridge,
|
|
8632
|
-
group:
|
|
8579
|
+
group: inferArtifactGroup(bridge),
|
|
8633
8580
|
ownership: "presence",
|
|
8634
8581
|
origin: "host"
|
|
8635
8582
|
},
|
|
8636
8583
|
{
|
|
8637
8584
|
path: sidecar,
|
|
8638
|
-
group:
|
|
8585
|
+
group: inferArtifactGroup(sidecar),
|
|
8639
8586
|
ownership: "presence",
|
|
8640
8587
|
origin: "host"
|
|
8641
8588
|
},
|
|
8642
8589
|
{
|
|
8643
8590
|
path: pointer,
|
|
8644
|
-
group:
|
|
8591
|
+
group: inferArtifactGroup(pointer),
|
|
8645
8592
|
ownership: "presence",
|
|
8646
8593
|
origin: "host",
|
|
8647
8594
|
pointer: true
|
|
@@ -8851,7 +8798,7 @@ function insertManifestDependencies(manifest, additions) {
|
|
|
8851
8798
|
function insertManifestSection(manifest, section, dependencies, present) {
|
|
8852
8799
|
const tokens = scanManifestTokens(manifest);
|
|
8853
8800
|
if (tokens === void 0) return void 0;
|
|
8854
|
-
const ordered = [...dependencies].sort((left, right) =>
|
|
8801
|
+
const ordered = [...dependencies].sort((left, right) => comparePrimitives(left.name, right.name));
|
|
8855
8802
|
const lines = ordered.map(({ name, range }) => `${JSON.stringify(name)}: ${JSON.stringify(range)}`);
|
|
8856
8803
|
const sibling = section === "dependencies" ? "devDependencies" : "dependencies";
|
|
8857
8804
|
const occurrences = tokens.flatMap((token, at) => {
|
|
@@ -8917,7 +8864,7 @@ function insertManifestSection(manifest, section, dependencies, present) {
|
|
|
8917
8864
|
const separator = newline < 0 || /\S/u.test(indent) ? "" : `\n${indent}`;
|
|
8918
8865
|
const placements = ordered.map((dependency, index) => {
|
|
8919
8866
|
const line = lines[index] ?? "";
|
|
8920
|
-
const anchor = declarations.find((declaration) =>
|
|
8867
|
+
const anchor = declarations.find((declaration) => comparePrimitives(declaration.name, dependency.name) > 0);
|
|
8921
8868
|
return {
|
|
8922
8869
|
position: anchor?.start ?? last.end,
|
|
8923
8870
|
text: anchor === void 0 ? `,${separator}${line}` : `${line},${separator}`
|
|
@@ -9158,22 +9105,22 @@ function planToHash(plan) {
|
|
|
9158
9105
|
*
|
|
9159
9106
|
* @example
|
|
9160
9107
|
* ```ts
|
|
9161
|
-
* import { Compiler, createBlueprint,
|
|
9108
|
+
* import { Compiler, createBlueprint, planToArtifactFindings } from '@orkestrel/scaffold'
|
|
9162
9109
|
*
|
|
9163
9110
|
* const { plan } = new Compiler().compile(createBlueprint('router', { src: ['core'] }))
|
|
9164
9111
|
*
|
|
9165
|
-
* plan === undefined ? [] :
|
|
9112
|
+
* plan === undefined ? [] : planToArtifactFindings(plan, { 'AGENTS.md': '68690a' })
|
|
9166
9113
|
* ```
|
|
9167
9114
|
*/
|
|
9168
|
-
function
|
|
9115
|
+
function planToArtifactFindings(plan, current) {
|
|
9169
9116
|
const listed = Iterator.from(plan.artifacts).map((artifact) => ({
|
|
9170
9117
|
path: artifact.path,
|
|
9171
|
-
finding:
|
|
9118
|
+
finding: artifactToArtifactFinding(artifact, current[artifact.path])
|
|
9172
9119
|
})).toArray();
|
|
9173
9120
|
const planned = new Set(listed.map(({ path }) => path));
|
|
9174
9121
|
return [...listed.map(({ finding }) => finding), ...Object.entries(current).flatMap(([path, observed]) => {
|
|
9175
9122
|
if (planned.has(path)) return [];
|
|
9176
|
-
const group =
|
|
9123
|
+
const group = inferArtifactGroup(path);
|
|
9177
9124
|
return plan.groups.includes(group) ? [{
|
|
9178
9125
|
path,
|
|
9179
9126
|
group,
|
|
@@ -9556,7 +9503,7 @@ function overridesToQuestions(overrides, artifacts) {
|
|
|
9556
9503
|
* ```
|
|
9557
9504
|
*/
|
|
9558
9505
|
function createBlueprint(name, input) {
|
|
9559
|
-
const blueprint = parseBlueprint(
|
|
9506
|
+
const blueprint = parseBlueprint(parseOwnedJSONValue({
|
|
9560
9507
|
name,
|
|
9561
9508
|
...input?.description === void 0 ? {} : { description: input.description },
|
|
9562
9509
|
keywords: input?.keywords ?? [],
|
|
@@ -9605,7 +9552,7 @@ function createBlueprint(name, input) {
|
|
|
9605
9552
|
* so a caller reads the refusal from the value it asked for.
|
|
9606
9553
|
*
|
|
9607
9554
|
* Both entry points snapshot each caller-supplied value and then guard the
|
|
9608
|
-
* snapshot, which is the order `
|
|
9555
|
+
* snapshot, which is the order `parseOwnedJSONValue` fixes. A value that is not the exact
|
|
9609
9556
|
* shape is off-contract input rather than an answerable question, so it raises
|
|
9610
9557
|
* `INVALID`. Structure raises; the laws a well-formed blueprint can still break
|
|
9611
9558
|
* are the gate's, and they answer with questions.
|
|
@@ -9736,7 +9683,7 @@ var Compiler = class {
|
|
|
9736
9683
|
const compiled = this.#scaffold(accepted, this.#select(groups));
|
|
9737
9684
|
if (compiled.plan === void 0) this.#emitter.emit("block", compiled.questions);
|
|
9738
9685
|
const result = {
|
|
9739
|
-
findings: compiled.plan === void 0 ? [] :
|
|
9686
|
+
findings: compiled.plan === void 0 ? [] : planToArtifactFindings(compiled.plan, observed),
|
|
9740
9687
|
questions: compiled.questions
|
|
9741
9688
|
};
|
|
9742
9689
|
this.#emitter.emit("audit", result);
|
|
@@ -9869,10 +9816,10 @@ var Compiler = class {
|
|
|
9869
9816
|
];
|
|
9870
9817
|
}
|
|
9871
9818
|
#select(groups) {
|
|
9872
|
-
return
|
|
9819
|
+
return selectArtifactGroups(groups === void 0 ? void 0 : this.#accept(groups, parseArtifactGroups, "groups", ARTIFACT_GROUPS));
|
|
9873
9820
|
}
|
|
9874
9821
|
#accept(value, parse, field, candidates) {
|
|
9875
|
-
const accepted = parse(
|
|
9822
|
+
const accepted = parse(parseOwnedJSONValue(value));
|
|
9876
9823
|
if (accepted !== void 0) return accepted;
|
|
9877
9824
|
throw this.#error("INVALID", `The ${field} argument is not the exact shape this compiler accepts.`, candidates === void 0 ? { field } : {
|
|
9878
9825
|
field,
|
|
@@ -9888,6 +9835,6 @@ var Compiler = class {
|
|
|
9888
9835
|
return error;
|
|
9889
9836
|
}
|
|
9890
9837
|
};
|
|
9891
|
-
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,
|
|
9838
|
+
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 };
|
|
9892
9839
|
|
|
9893
9840
|
//# sourceMappingURL=index.js.map
|