@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.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.120",
|
|
8
8
|
description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
|
|
9
9
|
keywords: [
|
|
10
10
|
"audit",
|
|
@@ -97,19 +97,19 @@ var package_default = {
|
|
|
97
97
|
},
|
|
98
98
|
dependencies: {
|
|
99
99
|
"@orkestrel/console": "^0.0.17",
|
|
100
|
-
"@orkestrel/contract": "^0.0.
|
|
101
|
-
"@orkestrel/emitter": "^0.0.
|
|
102
|
-
"@orkestrel/markdown": "^0.0.
|
|
103
|
-
"@orkestrel/process": "^0.0.
|
|
104
|
-
"@orkestrel/template": "^0.0.
|
|
100
|
+
"@orkestrel/contract": "^0.0.21",
|
|
101
|
+
"@orkestrel/emitter": "^0.0.14",
|
|
102
|
+
"@orkestrel/markdown": "^0.0.19",
|
|
103
|
+
"@orkestrel/process": "^0.0.17",
|
|
104
|
+
"@orkestrel/template": "^0.0.12"
|
|
105
105
|
},
|
|
106
106
|
devDependencies: {
|
|
107
|
-
"@microsoft/api-extractor": "^7.60.
|
|
107
|
+
"@microsoft/api-extractor": "^7.60.1",
|
|
108
108
|
"@orkestrel/browser": "^0.0.30",
|
|
109
109
|
"@orkestrel/guide": "^0.0.28",
|
|
110
|
-
"@orkestrel/html": "^0.0.
|
|
110
|
+
"@orkestrel/html": "^0.0.14",
|
|
111
111
|
"@orkestrel/probe": "^0.0.26",
|
|
112
|
-
"@orkestrel/test": "^0.0.
|
|
112
|
+
"@orkestrel/test": "^0.0.32",
|
|
113
113
|
"@types/node": "^24.19.2",
|
|
114
114
|
"@vitest/browser-playwright": "^5.0.5",
|
|
115
115
|
"oxfmt": "^0.75.0",
|
|
@@ -175,14 +175,14 @@ var RESERVED_SHEET_NAMES = Object.freeze([
|
|
|
175
175
|
...FRAMEWORKS
|
|
176
176
|
]);
|
|
177
177
|
/**
|
|
178
|
-
* Lists the `
|
|
178
|
+
* Lists the `ArtifactGroup` values in plan order, frozen.
|
|
179
179
|
*
|
|
180
180
|
* @remarks
|
|
181
181
|
* A compile that names no groups covers every one of them, so this list is the
|
|
182
182
|
* default selection as well as the accepted candidates for a rejected one. The
|
|
183
183
|
* order is the order a plan lists its artifacts in.
|
|
184
184
|
*/
|
|
185
|
-
var
|
|
185
|
+
var ARTIFACT_GROUPS = Object.freeze([
|
|
186
186
|
"manifest",
|
|
187
187
|
"configs",
|
|
188
188
|
"source",
|
|
@@ -364,6 +364,54 @@ var SEED_GUIDE_PATHS = Object.freeze(["guides/guide.md", "guides/scaffold.md"]);
|
|
|
364
364
|
/** Names the repository-relative path where the committed vendored-file inventory is served. */
|
|
365
365
|
var HOST_INVENTORY_PATH = "host.json";
|
|
366
366
|
/**
|
|
367
|
+
* Lists the declared transfers of bare names to their ruled keepers, frozen.
|
|
368
|
+
*
|
|
369
|
+
* @remarks
|
|
370
|
+
* `stageHost` admits each keeper into its name's recorded owner set and refuses a transfer
|
|
371
|
+
* whose keeper alone claims the name. `.claude/rules/names.md` § Fleet name ownership rule 5
|
|
372
|
+
* governs when a transfer is declared and removed.
|
|
373
|
+
*/
|
|
374
|
+
var SURFACE_TRANSFERS = Object.freeze([...[
|
|
375
|
+
"errorToMessage",
|
|
376
|
+
"escapeRegExp",
|
|
377
|
+
"failure",
|
|
378
|
+
"success"
|
|
379
|
+
].map((name) => ({
|
|
380
|
+
name,
|
|
381
|
+
keeper: "contract",
|
|
382
|
+
item: 79
|
|
383
|
+
})), ...[
|
|
384
|
+
"JSONRPCError",
|
|
385
|
+
"JSONRPCErrorResponse",
|
|
386
|
+
"JSONRPCId",
|
|
387
|
+
"JSONRPCInvocation",
|
|
388
|
+
"JSONRPCMessage",
|
|
389
|
+
"JSONRPCNotification",
|
|
390
|
+
"JSONRPCRequest",
|
|
391
|
+
"JSONRPCResponse",
|
|
392
|
+
"JSONRPCResultResponse",
|
|
393
|
+
"JSONRPC_INTERNAL_ERROR",
|
|
394
|
+
"JSONRPC_INVALID_PARAMS",
|
|
395
|
+
"JSONRPC_INVALID_REQUEST",
|
|
396
|
+
"JSONRPC_METHOD_NOT_FOUND",
|
|
397
|
+
"JSONRPC_PARSE_ERROR",
|
|
398
|
+
"buildJSONRPCError",
|
|
399
|
+
"buildJSONRPCResult",
|
|
400
|
+
"isJSONRPCError",
|
|
401
|
+
"isJSONRPCErrorResponse",
|
|
402
|
+
"isJSONRPCId",
|
|
403
|
+
"isJSONRPCInvocation",
|
|
404
|
+
"isJSONRPCMessage",
|
|
405
|
+
"isJSONRPCNotification",
|
|
406
|
+
"isJSONRPCRequest",
|
|
407
|
+
"isJSONRPCResponse",
|
|
408
|
+
"isJSONRPCResultResponse"
|
|
409
|
+
].map((name) => ({
|
|
410
|
+
name,
|
|
411
|
+
keeper: "jsonrpc",
|
|
412
|
+
item: 81
|
|
413
|
+
}))].map((transfer) => Object.freeze(transfer)));
|
|
414
|
+
/**
|
|
367
415
|
* Lists the vendored paths whose present bytes belong to each workspace, frozen.
|
|
368
416
|
*
|
|
369
417
|
* @remarks
|
|
@@ -4833,13 +4881,13 @@ function isPath(value) {
|
|
|
4833
4881
|
*
|
|
4834
4882
|
* @example
|
|
4835
4883
|
* ```ts
|
|
4836
|
-
* import {
|
|
4884
|
+
* import { isHexContent } from '@orkestrel/scaffold'
|
|
4837
4885
|
*
|
|
4838
|
-
*
|
|
4839
|
-
*
|
|
4886
|
+
* isHexContent('68690a') // true
|
|
4887
|
+
* isHexContent('68690A') // false
|
|
4840
4888
|
* ```
|
|
4841
4889
|
*/
|
|
4842
|
-
var
|
|
4890
|
+
var isHexContent = (0, _orkestrel_contract.stringOf)({
|
|
4843
4891
|
max: MAX_ARTIFACT_HEX_LENGTH,
|
|
4844
4892
|
pattern: HEX_PATTERN
|
|
4845
4893
|
});
|
|
@@ -4964,19 +5012,19 @@ var isStylesExtension = (0, _orkestrel_contract.recordOf)({
|
|
|
4964
5012
|
*/
|
|
4965
5013
|
var isExtension = (0, _orkestrel_contract.unionOf)(isBrowserExtension, isStylesExtension);
|
|
4966
5014
|
/**
|
|
4967
|
-
* Narrows a value to one {@link
|
|
5015
|
+
* Narrows a value to one {@link ArtifactGroup} a plan selects over.
|
|
4968
5016
|
*
|
|
4969
5017
|
* @example
|
|
4970
5018
|
* ```ts
|
|
4971
|
-
* import {
|
|
5019
|
+
* import { isArtifactGroup } from '@orkestrel/scaffold'
|
|
4972
5020
|
*
|
|
4973
|
-
*
|
|
4974
|
-
*
|
|
5021
|
+
* isArtifactGroup('manifest') // true
|
|
5022
|
+
* isArtifactGroup('readme') // false
|
|
4975
5023
|
* ```
|
|
4976
5024
|
*/
|
|
4977
|
-
var
|
|
5025
|
+
var isArtifactGroup = (0, _orkestrel_contract.literalOf)(ARTIFACT_GROUPS);
|
|
4978
5026
|
/** Narrows a value to a bounded group selection. */
|
|
4979
|
-
var
|
|
5027
|
+
var isArtifactGroups = (0, _orkestrel_contract.andOf)(isCollection, (0, _orkestrel_contract.arrayOf)(isArtifactGroup));
|
|
4980
5028
|
/**
|
|
4981
5029
|
* Narrows a value to the scoped package name a runtime dependency carries.
|
|
4982
5030
|
*
|
|
@@ -5142,7 +5190,7 @@ var isBlueprint = (0, _orkestrel_contract.recordOf)({
|
|
|
5142
5190
|
*/
|
|
5143
5191
|
var isArtifact = (0, _orkestrel_contract.unionOf)((0, _orkestrel_contract.recordOf)({
|
|
5144
5192
|
path: isPath,
|
|
5145
|
-
group:
|
|
5193
|
+
group: isArtifactGroup,
|
|
5146
5194
|
ownership: (0, _orkestrel_contract.literalOf)("presence", "birth"),
|
|
5147
5195
|
environment: isEnvironment,
|
|
5148
5196
|
origin: (0, _orkestrel_contract.literalOf)("host"),
|
|
@@ -5154,15 +5202,15 @@ var isArtifact = (0, _orkestrel_contract.unionOf)((0, _orkestrel_contract.record
|
|
|
5154
5202
|
"pointer"
|
|
5155
5203
|
]), (0, _orkestrel_contract.recordOf)({
|
|
5156
5204
|
path: isPath,
|
|
5157
|
-
group:
|
|
5205
|
+
group: isArtifactGroup,
|
|
5158
5206
|
ownership: (0, _orkestrel_contract.literalOf)("content"),
|
|
5159
5207
|
environment: isEnvironment,
|
|
5160
5208
|
origin: (0, _orkestrel_contract.literalOf)("host"),
|
|
5161
5209
|
source: isPath,
|
|
5162
|
-
hex:
|
|
5210
|
+
hex: isHexContent
|
|
5163
5211
|
}, ["environment", "source"]), (0, _orkestrel_contract.recordOf)({
|
|
5164
5212
|
path: isPath,
|
|
5165
|
-
group:
|
|
5213
|
+
group: isArtifactGroup,
|
|
5166
5214
|
ownership: (0, _orkestrel_contract.literalOf)("content", "presence", "birth"),
|
|
5167
5215
|
environment: isEnvironment,
|
|
5168
5216
|
origin: (0, _orkestrel_contract.literalOf)("template", "computed"),
|
|
@@ -5180,9 +5228,9 @@ var isArtifact = (0, _orkestrel_contract.unionOf)((0, _orkestrel_contract.record
|
|
|
5180
5228
|
*/
|
|
5181
5229
|
var isPlan = (0, _orkestrel_contract.andOf)((0, _orkestrel_contract.recordOf)({
|
|
5182
5230
|
blueprint: isBlueprint,
|
|
5183
|
-
groups:
|
|
5231
|
+
groups: isArtifactGroups,
|
|
5184
5232
|
artifacts: (0, _orkestrel_contract.andOf)(isCollection, (0, _orkestrel_contract.arrayOf)(isArtifact)),
|
|
5185
|
-
hash:
|
|
5233
|
+
hash: isHexContent
|
|
5186
5234
|
}, ["hash"]), (plan) => plan.artifacts.every((artifact) => artifact.path !== "package.json" || artifact.ownership === "birth"));
|
|
5187
5235
|
/**
|
|
5188
5236
|
* Narrows a value to a {@link Question}.
|
|
@@ -5201,7 +5249,7 @@ var isQuestion = (0, _orkestrel_contract.recordOf)({
|
|
|
5201
5249
|
candidates: (0, _orkestrel_contract.andOf)(isCollection, (0, _orkestrel_contract.arrayOf)(_orkestrel_contract.isString))
|
|
5202
5250
|
}, ["candidates"]);
|
|
5203
5251
|
/**
|
|
5204
|
-
* Narrows a value to
|
|
5252
|
+
* Narrows a value to an {@link ArtifactFinding}.
|
|
5205
5253
|
*
|
|
5206
5254
|
* @remarks
|
|
5207
5255
|
* `observed` is required exactly where the mutation it precedes is held to it,
|
|
@@ -5212,30 +5260,30 @@ var isQuestion = (0, _orkestrel_contract.recordOf)({
|
|
|
5212
5260
|
* That is the whole claim. This guard proves the shape a reader may destructure
|
|
5213
5261
|
* and nothing about whether the verdict is one an audit could have reached: the
|
|
5214
5262
|
* correlation between `ownership`, `drift`, and `observed` belongs to
|
|
5215
|
-
* {@link
|
|
5263
|
+
* {@link inferArtifactDrift}, and it is re-derived at the verb that acts on the finding.
|
|
5216
5264
|
*/
|
|
5217
|
-
var
|
|
5265
|
+
var isArtifactFinding = (0, _orkestrel_contract.unionOf)((0, _orkestrel_contract.recordOf)({
|
|
5218
5266
|
path: isPath,
|
|
5219
|
-
group:
|
|
5267
|
+
group: isArtifactGroup,
|
|
5220
5268
|
ownership: (0, _orkestrel_contract.literalOf)("content", "presence", "birth"),
|
|
5221
5269
|
drift: (0, _orkestrel_contract.literalOf)("stale"),
|
|
5222
|
-
observed:
|
|
5270
|
+
observed: isHexContent
|
|
5223
5271
|
}), (0, _orkestrel_contract.recordOf)({
|
|
5224
5272
|
path: isPath,
|
|
5225
|
-
group:
|
|
5273
|
+
group: isArtifactGroup,
|
|
5226
5274
|
drift: (0, _orkestrel_contract.literalOf)("foreign"),
|
|
5227
|
-
observed:
|
|
5275
|
+
observed: isHexContent
|
|
5228
5276
|
}), (0, _orkestrel_contract.recordOf)({
|
|
5229
5277
|
path: isPath,
|
|
5230
|
-
group:
|
|
5278
|
+
group: isArtifactGroup,
|
|
5231
5279
|
ownership: (0, _orkestrel_contract.literalOf)("content", "presence", "birth"),
|
|
5232
5280
|
drift: (0, _orkestrel_contract.literalOf)("missing")
|
|
5233
5281
|
}), (0, _orkestrel_contract.recordOf)({
|
|
5234
5282
|
path: isPath,
|
|
5235
|
-
group:
|
|
5283
|
+
group: isArtifactGroup,
|
|
5236
5284
|
ownership: (0, _orkestrel_contract.literalOf)("content", "presence", "birth"),
|
|
5237
5285
|
drift: (0, _orkestrel_contract.literalOf)("aligned"),
|
|
5238
|
-
observed:
|
|
5286
|
+
observed: isHexContent
|
|
5239
5287
|
}, ["observed"]));
|
|
5240
5288
|
/**
|
|
5241
5289
|
* Narrows a value to an {@link Audit}.
|
|
@@ -5246,7 +5294,7 @@ var isFinding = (0, _orkestrel_contract.unionOf)((0, _orkestrel_contract.recordO
|
|
|
5246
5294
|
* bounds: one per planned artifact, then one per unplanned snapshot path.
|
|
5247
5295
|
*/
|
|
5248
5296
|
var isAudit = (0, _orkestrel_contract.recordOf)({
|
|
5249
|
-
findings: (0, _orkestrel_contract.andOf)((value) => (0, _orkestrel_contract.holds)(() => (0, _orkestrel_contract.isArray)(value) && value.length <= 2e3), (0, _orkestrel_contract.arrayOf)(
|
|
5297
|
+
findings: (0, _orkestrel_contract.andOf)((value) => (0, _orkestrel_contract.holds)(() => (0, _orkestrel_contract.isArray)(value) && value.length <= 2e3), (0, _orkestrel_contract.arrayOf)(isArtifactFinding)),
|
|
5250
5298
|
questions: (0, _orkestrel_contract.andOf)(isCollection, (0, _orkestrel_contract.arrayOf)(isQuestion))
|
|
5251
5299
|
});
|
|
5252
5300
|
/**
|
|
@@ -5262,13 +5310,13 @@ var isMirror = (0, _orkestrel_contract.unionOf)((0, _orkestrel_contract.recordOf
|
|
|
5262
5310
|
path: isPath,
|
|
5263
5311
|
lookup: (0, _orkestrel_contract.literalOf)("found"),
|
|
5264
5312
|
content: isContent,
|
|
5265
|
-
observed:
|
|
5313
|
+
observed: isHexContent
|
|
5266
5314
|
}, ["observed"]), (0, _orkestrel_contract.recordOf)({
|
|
5267
5315
|
name: isDependencyName,
|
|
5268
5316
|
path: isPath,
|
|
5269
5317
|
lookup: (0, _orkestrel_contract.literalOf)("missing", "unmatched", "failed"),
|
|
5270
5318
|
note: _orkestrel_contract.isString,
|
|
5271
|
-
observed:
|
|
5319
|
+
observed: isHexContent
|
|
5272
5320
|
}, ["observed"]));
|
|
5273
5321
|
/**
|
|
5274
5322
|
* Narrows a value to a {@link CatalogEntry}.
|
|
@@ -5314,7 +5362,7 @@ function isSnapshot(value) {
|
|
|
5314
5362
|
if (!(0, _orkestrel_contract.isRecord)(value)) return false;
|
|
5315
5363
|
const keys = (0, _orkestrel_contract.enumerableKeys)(value);
|
|
5316
5364
|
if (keys === void 0 || keys.length > 1e3) return false;
|
|
5317
|
-
for (const key of keys) if (!isPath(key) || !
|
|
5365
|
+
for (const key of keys) if (!isPath(key) || !isHexContent(value[key])) return false;
|
|
5318
5366
|
return true;
|
|
5319
5367
|
});
|
|
5320
5368
|
}
|
|
@@ -5386,12 +5434,12 @@ var isCompilerOptions = (0, _orkestrel_contract.recordOf)({
|
|
|
5386
5434
|
*
|
|
5387
5435
|
* @example
|
|
5388
5436
|
* ```ts
|
|
5389
|
-
* import {
|
|
5437
|
+
* import { parseBlueprint, parseOwnedJSONValue } from '@orkestrel/scaffold'
|
|
5390
5438
|
*
|
|
5391
|
-
* const owned = parseBlueprint(
|
|
5439
|
+
* const owned = parseBlueprint(parseOwnedJSONValue(input))
|
|
5392
5440
|
* ```
|
|
5393
5441
|
*/
|
|
5394
|
-
function
|
|
5442
|
+
function parseOwnedJSONValue(value) {
|
|
5395
5443
|
const outcome = (0, _orkestrel_contract.attempt)(() => (0, _orkestrel_contract.cloneJSONValue)(value));
|
|
5396
5444
|
return outcome.success ? outcome.value : void 0;
|
|
5397
5445
|
}
|
|
@@ -5453,20 +5501,20 @@ function parseBlueprint(value) {
|
|
|
5453
5501
|
* @returns The selection, or `undefined` when the value is not one.
|
|
5454
5502
|
*
|
|
5455
5503
|
* @remarks
|
|
5456
|
-
* Derived from {@link
|
|
5504
|
+
* Derived from {@link isArtifactGroups}. Order and repetition are preserved: which
|
|
5457
5505
|
* groups a plan finally covers, and in which order, is the compiler's to decide
|
|
5458
|
-
* from `
|
|
5506
|
+
* from `ARTIFACT_GROUPS`, not this boundary's.
|
|
5459
5507
|
*
|
|
5460
5508
|
* @example
|
|
5461
5509
|
* ```ts
|
|
5462
|
-
* import {
|
|
5510
|
+
* import { parseArtifactGroups } from '@orkestrel/scaffold'
|
|
5463
5511
|
*
|
|
5464
|
-
*
|
|
5465
|
-
*
|
|
5512
|
+
* parseArtifactGroups(['manifest', 'configs']) // ['manifest', 'configs']
|
|
5513
|
+
* parseArtifactGroups(['readme']) // undefined
|
|
5466
5514
|
* ```
|
|
5467
5515
|
*/
|
|
5468
|
-
function
|
|
5469
|
-
return
|
|
5516
|
+
function parseArtifactGroups(value) {
|
|
5517
|
+
return isArtifactGroups(value) ? value : void 0;
|
|
5470
5518
|
}
|
|
5471
5519
|
/**
|
|
5472
5520
|
* Coerces an untrusted value to a {@link Snapshot}.
|
|
@@ -5692,8 +5740,8 @@ function collectSurfaceAdvisories(candidate, published, contracts) {
|
|
|
5692
5740
|
name,
|
|
5693
5741
|
owner,
|
|
5694
5742
|
signature: signatures.get(name)
|
|
5695
|
-
}))).sort((left, right) => (0, _orkestrel_contract.
|
|
5696
|
-
return [...new Set(candidate.names)].filter((name) => !known.has(name)).sort(_orkestrel_contract.
|
|
5743
|
+
}))).sort((left, right) => (0, _orkestrel_contract.comparePrimitives)(left.owner, right.owner) || (0, _orkestrel_contract.comparePrimitives)(left.name, right.name));
|
|
5744
|
+
return [...new Set(candidate.names)].filter((name) => !known.has(name)).sort(_orkestrel_contract.comparePrimitives).flatMap((name) => {
|
|
5697
5745
|
const signature = candidate.signatures.get(name);
|
|
5698
5746
|
const structure = signature !== void 0 && matchesSurfaceStructure(signature);
|
|
5699
5747
|
return peers.flatMap((peer) => {
|
|
@@ -5998,7 +6046,7 @@ function isFloorPath(path) {
|
|
|
5998
6046
|
return isDeferredPath(path) || isCanonPath(path);
|
|
5999
6047
|
}
|
|
6000
6048
|
/**
|
|
6001
|
-
* Infers the {@link
|
|
6049
|
+
* Infers the {@link ArtifactGroup} a path belongs to.
|
|
6002
6050
|
*
|
|
6003
6051
|
* @param path - The target-relative path to classify.
|
|
6004
6052
|
* @returns The group that owns the path.
|
|
@@ -6014,14 +6062,14 @@ function isFloorPath(path) {
|
|
|
6014
6062
|
*
|
|
6015
6063
|
* @example
|
|
6016
6064
|
* ```ts
|
|
6017
|
-
* import {
|
|
6065
|
+
* import { inferArtifactGroup } from '@orkestrel/scaffold'
|
|
6018
6066
|
*
|
|
6019
|
-
*
|
|
6020
|
-
*
|
|
6021
|
-
*
|
|
6067
|
+
* inferArtifactGroup('src/core/index.ts') // 'source'
|
|
6068
|
+
* inferArtifactGroup('AGENTS.md') // 'docs'
|
|
6069
|
+
* inferArtifactGroup('.editorconfig') // 'configs'
|
|
6022
6070
|
* ```
|
|
6023
6071
|
*/
|
|
6024
|
-
function
|
|
6072
|
+
function inferArtifactGroup(path) {
|
|
6025
6073
|
if (path === "package.json" || path === "package-lock.json") return "manifest";
|
|
6026
6074
|
if (matchesOrchestrationPath(path)) return "orchestration";
|
|
6027
6075
|
if (path.startsWith("src/") || path.startsWith("app/")) return "source";
|
|
@@ -6173,26 +6221,26 @@ function selectHostPaths(paths, name) {
|
|
|
6173
6221
|
* Selects the groups a compile covers, in plan order.
|
|
6174
6222
|
*
|
|
6175
6223
|
* @param groups - The requested selection; every group when absent.
|
|
6176
|
-
* @returns The requested groups in `
|
|
6224
|
+
* @returns The requested groups in `ARTIFACT_GROUPS` order, without repeats.
|
|
6177
6225
|
*
|
|
6178
6226
|
* @remarks
|
|
6179
6227
|
* A caller's selection is data, so it arrives in whatever order and with
|
|
6180
6228
|
* whatever repeats the caller wrote. Plan order is this package's, so the
|
|
6181
|
-
* selection is read as membership and the order comes from `
|
|
6229
|
+
* selection is read as membership and the order comes from `ARTIFACT_GROUPS`. An empty
|
|
6182
6230
|
* selection covers nothing, which is a caller asking for an empty plan rather
|
|
6183
6231
|
* than a caller asking for everything.
|
|
6184
6232
|
*
|
|
6185
6233
|
* @example
|
|
6186
6234
|
* ```ts
|
|
6187
|
-
* import {
|
|
6235
|
+
* import { selectArtifactGroups } from '@orkestrel/scaffold'
|
|
6188
6236
|
*
|
|
6189
|
-
*
|
|
6190
|
-
*
|
|
6237
|
+
* selectArtifactGroups(['tests', 'manifest', 'tests']) // ['manifest', 'tests']
|
|
6238
|
+
* selectArtifactGroups() // every group, in plan order
|
|
6191
6239
|
* ```
|
|
6192
6240
|
*/
|
|
6193
|
-
function
|
|
6194
|
-
const selection = groups ??
|
|
6195
|
-
return
|
|
6241
|
+
function selectArtifactGroups(groups) {
|
|
6242
|
+
const selection = groups ?? ARTIFACT_GROUPS;
|
|
6243
|
+
return ARTIFACT_GROUPS.filter((group) => selection.includes(group));
|
|
6196
6244
|
}
|
|
6197
6245
|
/**
|
|
6198
6246
|
* Projects an artifact to the exact bytes it claims, as hexadecimal.
|
|
@@ -6244,7 +6292,7 @@ function artifactToHex(artifact) {
|
|
|
6244
6292
|
* @example
|
|
6245
6293
|
* ```ts
|
|
6246
6294
|
* import type { Artifact } from '@orkestrel/scaffold'
|
|
6247
|
-
* import {
|
|
6295
|
+
* import { inferArtifactDrift } from '@orkestrel/scaffold'
|
|
6248
6296
|
*
|
|
6249
6297
|
* const artifact: Artifact = {
|
|
6250
6298
|
* path: 'README.md',
|
|
@@ -6254,12 +6302,12 @@ function artifactToHex(artifact) {
|
|
|
6254
6302
|
* content: 'hi\n',
|
|
6255
6303
|
* }
|
|
6256
6304
|
*
|
|
6257
|
-
*
|
|
6258
|
-
*
|
|
6259
|
-
*
|
|
6305
|
+
* inferArtifactDrift(artifact, '68690a') // 'aligned'
|
|
6306
|
+
* inferArtifactDrift(artifact, '6279650a') // 'stale'
|
|
6307
|
+
* inferArtifactDrift(artifact) // 'missing'
|
|
6260
6308
|
* ```
|
|
6261
6309
|
*/
|
|
6262
|
-
function
|
|
6310
|
+
function inferArtifactDrift(artifact, observed) {
|
|
6263
6311
|
if (artifact.ownership === "birth") return "aligned";
|
|
6264
6312
|
if (observed === void 0) return "missing";
|
|
6265
6313
|
if (artifact.ownership === "presence") return "aligned";
|
|
@@ -6275,7 +6323,7 @@ function inferDrift(artifact, observed) {
|
|
|
6275
6323
|
* exactly where bytes were read.
|
|
6276
6324
|
*
|
|
6277
6325
|
* @remarks
|
|
6278
|
-
* The comparison itself is {@link
|
|
6326
|
+
* The comparison itself is {@link inferArtifactDrift}'s, so ownership decides it here
|
|
6279
6327
|
* exactly as it does everywhere else. This adds only the shape: a missing
|
|
6280
6328
|
* destination has no bytes to record, and every other verdict records the bytes
|
|
6281
6329
|
* it was given, which is the precondition the mutation that follows is held to.
|
|
@@ -6287,19 +6335,19 @@ function inferDrift(artifact, observed) {
|
|
|
6287
6335
|
*
|
|
6288
6336
|
* @example
|
|
6289
6337
|
* ```ts
|
|
6290
|
-
* import {
|
|
6338
|
+
* import { artifactToArtifactFinding } from '@orkestrel/scaffold'
|
|
6291
6339
|
*
|
|
6292
|
-
*
|
|
6340
|
+
* artifactToArtifactFinding(
|
|
6293
6341
|
* { path: 'README.md', group: 'docs', ownership: 'content', origin: 'computed', content: 'hi\n' },
|
|
6294
6342
|
* '6279650a',
|
|
6295
6343
|
* ) // { path: 'README.md', group: 'docs', ownership: 'content', drift: 'stale', observed: '6279650a' }
|
|
6296
6344
|
* ```
|
|
6297
6345
|
*/
|
|
6298
|
-
function
|
|
6346
|
+
function artifactToArtifactFinding(artifact, observed) {
|
|
6299
6347
|
const path = artifact.path;
|
|
6300
6348
|
const group = artifact.group;
|
|
6301
6349
|
const ownership = artifact.ownership;
|
|
6302
|
-
if (observed === void 0) return
|
|
6350
|
+
if (observed === void 0) return inferArtifactDrift(artifact) === "aligned" ? {
|
|
6303
6351
|
path,
|
|
6304
6352
|
group,
|
|
6305
6353
|
ownership,
|
|
@@ -6310,7 +6358,7 @@ function artifactToFinding(artifact, observed) {
|
|
|
6310
6358
|
ownership,
|
|
6311
6359
|
drift: "missing"
|
|
6312
6360
|
};
|
|
6313
|
-
return
|
|
6361
|
+
return inferArtifactDrift(artifact, observed) === "stale" ? {
|
|
6314
6362
|
path,
|
|
6315
6363
|
group,
|
|
6316
6364
|
ownership,
|
|
@@ -6325,12 +6373,12 @@ function artifactToFinding(artifact, observed) {
|
|
|
6325
6373
|
};
|
|
6326
6374
|
}
|
|
6327
6375
|
/**
|
|
6328
|
-
* Tests whether {@link
|
|
6376
|
+
* Tests whether {@link inferArtifactDrift} could have produced a finding for an ownership.
|
|
6329
6377
|
*
|
|
6330
6378
|
* @param ownership - What scaffold claims at the planned path.
|
|
6331
6379
|
* @param finding - The audit verdict to test.
|
|
6332
6380
|
* @returns True if the ownership and verdict are reachable through
|
|
6333
|
-
* {@link
|
|
6381
|
+
* {@link inferArtifactDrift}; false otherwise.
|
|
6334
6382
|
*
|
|
6335
6383
|
* @remarks
|
|
6336
6384
|
* This predicate keeps the comparison law beside the reachability law it
|
|
@@ -6339,16 +6387,16 @@ function artifactToFinding(artifact, observed) {
|
|
|
6339
6387
|
*
|
|
6340
6388
|
* @example
|
|
6341
6389
|
* ```ts
|
|
6342
|
-
* import type {
|
|
6343
|
-
* import {
|
|
6390
|
+
* import type { ArtifactFinding } from '@orkestrel/scaffold'
|
|
6391
|
+
* import { matchesArtifactDriftReachability } from '@orkestrel/scaffold'
|
|
6344
6392
|
*
|
|
6345
|
-
* const aligned:
|
|
6393
|
+
* const aligned: ArtifactFinding = {
|
|
6346
6394
|
* path: 'README.md',
|
|
6347
6395
|
* group: 'docs',
|
|
6348
6396
|
* ownership: 'birth',
|
|
6349
6397
|
* drift: 'aligned',
|
|
6350
6398
|
* }
|
|
6351
|
-
* const stale:
|
|
6399
|
+
* const stale: ArtifactFinding = {
|
|
6352
6400
|
* path: 'README.md',
|
|
6353
6401
|
* group: 'docs',
|
|
6354
6402
|
* ownership: 'birth',
|
|
@@ -6356,11 +6404,11 @@ function artifactToFinding(artifact, observed) {
|
|
|
6356
6404
|
* observed: '6279650a',
|
|
6357
6405
|
* }
|
|
6358
6406
|
*
|
|
6359
|
-
*
|
|
6360
|
-
*
|
|
6407
|
+
* matchesArtifactDriftReachability('birth', aligned) // true
|
|
6408
|
+
* matchesArtifactDriftReachability('birth', stale) // false
|
|
6361
6409
|
* ```
|
|
6362
6410
|
*/
|
|
6363
|
-
function
|
|
6411
|
+
function matchesArtifactDriftReachability(ownership, finding) {
|
|
6364
6412
|
if (finding.drift === "aligned") return ownership === "birth" || finding.observed !== void 0;
|
|
6365
6413
|
if (finding.drift === "missing") return ownership !== "birth";
|
|
6366
6414
|
return finding.drift === "stale" && ownership === "content";
|
|
@@ -6530,10 +6578,10 @@ function compareVersions(left, right) {
|
|
|
6530
6578
|
if (first === void 0 || second === void 0) {
|
|
6531
6579
|
if (first !== void 0) return 1;
|
|
6532
6580
|
if (second !== void 0) return -1;
|
|
6533
|
-
return (0, _orkestrel_contract.
|
|
6581
|
+
return (0, _orkestrel_contract.comparePrimitives)(left, right);
|
|
6534
6582
|
}
|
|
6535
6583
|
for (const [index, component] of first.entries()) {
|
|
6536
|
-
const order = (0, _orkestrel_contract.
|
|
6584
|
+
const order = (0, _orkestrel_contract.comparePrimitives)(component, second[index] ?? 0);
|
|
6537
6585
|
if (order !== 0) return order;
|
|
6538
6586
|
}
|
|
6539
6587
|
return 0;
|
|
@@ -7019,7 +7067,7 @@ function blueprintToDevDependencies(blueprint) {
|
|
|
7019
7067
|
...Object.fromEntries(peers.filter(([name], index) => peers.findIndex(([other]) => other === name) === index))
|
|
7020
7068
|
};
|
|
7021
7069
|
const runtime = new Set(blueprint.dependencies.map((dependency) => dependency.name));
|
|
7022
|
-
return Object.fromEntries(Object.entries(merged).filter(([name]) => name !== own && !runtime.has(name)).sort(([left], [right]) => (0, _orkestrel_contract.
|
|
7070
|
+
return Object.fromEntries(Object.entries(merged).filter(([name]) => name !== own && !runtime.has(name)).sort(([left], [right]) => (0, _orkestrel_contract.comparePrimitives)(left, right)));
|
|
7023
7071
|
}
|
|
7024
7072
|
/**
|
|
7025
7073
|
* Projects a blueprint into the toolchain holds its browser frameworks require.
|
|
@@ -7445,8 +7493,8 @@ function blueprintToManifest(blueprint) {
|
|
|
7445
7493
|
const targets = [...sheets, ...blueprint.themes ? ["styles/themes"] : []];
|
|
7446
7494
|
const publishes = blueprint.src.length > 0 || targets.length > 0;
|
|
7447
7495
|
const name = publishes ? `@orkestrel/${blueprint.name}` : blueprint.name;
|
|
7448
|
-
const dependencies = Object.fromEntries([...blueprint.dependencies].sort((left, right) => (0, _orkestrel_contract.
|
|
7449
|
-
const peers = [...blueprint.peers].sort((left, right) => (0, _orkestrel_contract.
|
|
7496
|
+
const dependencies = Object.fromEntries([...blueprint.dependencies].sort((left, right) => (0, _orkestrel_contract.comparePrimitives)(left.name, right.name)).map((dependency) => [dependency.name, dependency.range]));
|
|
7497
|
+
const peers = [...blueprint.peers].sort((left, right) => (0, _orkestrel_contract.comparePrimitives)(left.name, right.name));
|
|
7450
7498
|
const peerDependencies = Object.fromEntries(peers.map((peer) => [peer.name, peer.range]));
|
|
7451
7499
|
const peerDependenciesMeta = Object.fromEntries(peers.filter((peer) => peer.optional === true).map((peer) => [peer.name, { optional: true }]));
|
|
7452
7500
|
const entry = srcToEntry(blueprint.src);
|
|
@@ -8517,7 +8565,7 @@ function blueprintToOrchestrationArtifacts(blueprint) {
|
|
|
8517
8565
|
*
|
|
8518
8566
|
* `source` is left absent because it falls back to `path`, and every vendored
|
|
8519
8567
|
* path is stored under the name it is written to. The group comes from
|
|
8520
|
-
* {@link
|
|
8568
|
+
* {@link inferArtifactGroup}, so a vendored path and a foreign path found in a target
|
|
8521
8569
|
* are classified by one rule and a plan never disagrees with the audit beside
|
|
8522
8570
|
* it.
|
|
8523
8571
|
*
|
|
@@ -8555,7 +8603,7 @@ function blueprintToOrchestrationArtifacts(blueprint) {
|
|
|
8555
8603
|
function blueprintToHostArtifacts(blueprint) {
|
|
8556
8604
|
const vendored = [...selectHostPaths([...HOST_PATHS, ...SEED_GUIDE_PATHS], blueprint.name), CATALOG_AGENT_PATH].map((path) => ({
|
|
8557
8605
|
path,
|
|
8558
|
-
group:
|
|
8606
|
+
group: inferArtifactGroup(path),
|
|
8559
8607
|
ownership: "presence",
|
|
8560
8608
|
origin: "host"
|
|
8561
8609
|
}));
|
|
@@ -8567,19 +8615,19 @@ function blueprintToHostArtifacts(blueprint) {
|
|
|
8567
8615
|
return [
|
|
8568
8616
|
{
|
|
8569
8617
|
path: bridge,
|
|
8570
|
-
group:
|
|
8618
|
+
group: inferArtifactGroup(bridge),
|
|
8571
8619
|
ownership: "presence",
|
|
8572
8620
|
origin: "host"
|
|
8573
8621
|
},
|
|
8574
8622
|
{
|
|
8575
8623
|
path: sidecar,
|
|
8576
|
-
group:
|
|
8624
|
+
group: inferArtifactGroup(sidecar),
|
|
8577
8625
|
ownership: "presence",
|
|
8578
8626
|
origin: "host"
|
|
8579
8627
|
},
|
|
8580
8628
|
{
|
|
8581
8629
|
path: pointer,
|
|
8582
|
-
group:
|
|
8630
|
+
group: inferArtifactGroup(pointer),
|
|
8583
8631
|
ownership: "presence",
|
|
8584
8632
|
origin: "host",
|
|
8585
8633
|
pointer: true
|
|
@@ -8789,7 +8837,7 @@ function insertManifestDependencies(manifest, additions) {
|
|
|
8789
8837
|
function insertManifestSection(manifest, section, dependencies, present) {
|
|
8790
8838
|
const tokens = scanManifestTokens(manifest);
|
|
8791
8839
|
if (tokens === void 0) return void 0;
|
|
8792
|
-
const ordered = [...dependencies].sort((left, right) => (0, _orkestrel_contract.
|
|
8840
|
+
const ordered = [...dependencies].sort((left, right) => (0, _orkestrel_contract.comparePrimitives)(left.name, right.name));
|
|
8793
8841
|
const lines = ordered.map(({ name, range }) => `${JSON.stringify(name)}: ${JSON.stringify(range)}`);
|
|
8794
8842
|
const sibling = section === "dependencies" ? "devDependencies" : "dependencies";
|
|
8795
8843
|
const occurrences = tokens.flatMap((token, at) => {
|
|
@@ -8855,7 +8903,7 @@ function insertManifestSection(manifest, section, dependencies, present) {
|
|
|
8855
8903
|
const separator = newline < 0 || /\S/u.test(indent) ? "" : `\n${indent}`;
|
|
8856
8904
|
const placements = ordered.map((dependency, index) => {
|
|
8857
8905
|
const line = lines[index] ?? "";
|
|
8858
|
-
const anchor = declarations.find((declaration) => (0, _orkestrel_contract.
|
|
8906
|
+
const anchor = declarations.find((declaration) => (0, _orkestrel_contract.comparePrimitives)(declaration.name, dependency.name) > 0);
|
|
8859
8907
|
return {
|
|
8860
8908
|
position: anchor?.start ?? last.end,
|
|
8861
8909
|
text: anchor === void 0 ? `,${separator}${line}` : `${line},${separator}`
|
|
@@ -9096,22 +9144,22 @@ function planToHash(plan) {
|
|
|
9096
9144
|
*
|
|
9097
9145
|
* @example
|
|
9098
9146
|
* ```ts
|
|
9099
|
-
* import { Compiler, createBlueprint,
|
|
9147
|
+
* import { Compiler, createBlueprint, planToArtifactFindings } from '@orkestrel/scaffold'
|
|
9100
9148
|
*
|
|
9101
9149
|
* const { plan } = new Compiler().compile(createBlueprint('router', { src: ['core'] }))
|
|
9102
9150
|
*
|
|
9103
|
-
* plan === undefined ? [] :
|
|
9151
|
+
* plan === undefined ? [] : planToArtifactFindings(plan, { 'AGENTS.md': '68690a' })
|
|
9104
9152
|
* ```
|
|
9105
9153
|
*/
|
|
9106
|
-
function
|
|
9154
|
+
function planToArtifactFindings(plan, current) {
|
|
9107
9155
|
const listed = Iterator.from(plan.artifacts).map((artifact) => ({
|
|
9108
9156
|
path: artifact.path,
|
|
9109
|
-
finding:
|
|
9157
|
+
finding: artifactToArtifactFinding(artifact, current[artifact.path])
|
|
9110
9158
|
})).toArray();
|
|
9111
9159
|
const planned = new Set(listed.map(({ path }) => path));
|
|
9112
9160
|
return [...listed.map(({ finding }) => finding), ...Object.entries(current).flatMap(([path, observed]) => {
|
|
9113
9161
|
if (planned.has(path)) return [];
|
|
9114
|
-
const group =
|
|
9162
|
+
const group = inferArtifactGroup(path);
|
|
9115
9163
|
return plan.groups.includes(group) ? [{
|
|
9116
9164
|
path,
|
|
9117
9165
|
group,
|
|
@@ -9494,7 +9542,7 @@ function overridesToQuestions(overrides, artifacts) {
|
|
|
9494
9542
|
* ```
|
|
9495
9543
|
*/
|
|
9496
9544
|
function createBlueprint(name, input) {
|
|
9497
|
-
const blueprint = parseBlueprint(
|
|
9545
|
+
const blueprint = parseBlueprint(parseOwnedJSONValue({
|
|
9498
9546
|
name,
|
|
9499
9547
|
...input?.description === void 0 ? {} : { description: input.description },
|
|
9500
9548
|
keywords: input?.keywords ?? [],
|
|
@@ -9543,7 +9591,7 @@ function createBlueprint(name, input) {
|
|
|
9543
9591
|
* so a caller reads the refusal from the value it asked for.
|
|
9544
9592
|
*
|
|
9545
9593
|
* Both entry points snapshot each caller-supplied value and then guard the
|
|
9546
|
-
* snapshot, which is the order `
|
|
9594
|
+
* snapshot, which is the order `parseOwnedJSONValue` fixes. A value that is not the exact
|
|
9547
9595
|
* shape is off-contract input rather than an answerable question, so it raises
|
|
9548
9596
|
* `INVALID`. Structure raises; the laws a well-formed blueprint can still break
|
|
9549
9597
|
* are the gate's, and they answer with questions.
|
|
@@ -9674,7 +9722,7 @@ var Compiler = class {
|
|
|
9674
9722
|
const compiled = this.#scaffold(accepted, this.#select(groups));
|
|
9675
9723
|
if (compiled.plan === void 0) this.#emitter.emit("block", compiled.questions);
|
|
9676
9724
|
const result = {
|
|
9677
|
-
findings: compiled.plan === void 0 ? [] :
|
|
9725
|
+
findings: compiled.plan === void 0 ? [] : planToArtifactFindings(compiled.plan, observed),
|
|
9678
9726
|
questions: compiled.questions
|
|
9679
9727
|
};
|
|
9680
9728
|
this.#emitter.emit("audit", result);
|
|
@@ -9807,10 +9855,10 @@ var Compiler = class {
|
|
|
9807
9855
|
];
|
|
9808
9856
|
}
|
|
9809
9857
|
#select(groups) {
|
|
9810
|
-
return
|
|
9858
|
+
return selectArtifactGroups(groups === void 0 ? void 0 : this.#accept(groups, parseArtifactGroups, "groups", ARTIFACT_GROUPS));
|
|
9811
9859
|
}
|
|
9812
9860
|
#accept(value, parse, field, candidates) {
|
|
9813
|
-
const accepted = parse(
|
|
9861
|
+
const accepted = parse(parseOwnedJSONValue(value));
|
|
9814
9862
|
if (accepted !== void 0) return accepted;
|
|
9815
9863
|
throw this.#error("INVALID", `The ${field} argument is not the exact shape this compiler accepts.`, candidates === void 0 ? { field } : {
|
|
9816
9864
|
field,
|
|
@@ -9830,6 +9878,7 @@ exports.APP_BROWSER_DEV_DEPENDENCIES = APP_BROWSER_DEV_DEPENDENCIES;
|
|
|
9830
9878
|
exports.APP_DEV_DEPENDENCIES = APP_DEV_DEPENDENCIES;
|
|
9831
9879
|
exports.APP_MATRIX = APP_MATRIX;
|
|
9832
9880
|
exports.APP_SERVER_DEV_DEPENDENCIES = APP_SERVER_DEV_DEPENDENCIES;
|
|
9881
|
+
exports.ARTIFACT_GROUPS = ARTIFACT_GROUPS;
|
|
9833
9882
|
exports.ARTIFACT_TEMPLATES = ARTIFACT_TEMPLATES;
|
|
9834
9883
|
exports.AXES = AXES;
|
|
9835
9884
|
exports.BASE_DEV_DEPENDENCIES = BASE_DEV_DEPENDENCIES;
|
|
@@ -9863,7 +9912,6 @@ exports.FOREIGN_NAME_PATTERN = FOREIGN_NAME_PATTERN;
|
|
|
9863
9912
|
exports.FRAMEWORKS = FRAMEWORKS;
|
|
9864
9913
|
exports.FRAMEWORK_MATRIX = FRAMEWORK_MATRIX;
|
|
9865
9914
|
exports.GLOBAL_SETUP_PATH = GLOBAL_SETUP_PATH;
|
|
9866
|
-
exports.GROUPS = GROUPS;
|
|
9867
9915
|
exports.GUIDES_TEST_PATH = GUIDES_TEST_PATH;
|
|
9868
9916
|
exports.HEX_PATTERN = HEX_PATTERN;
|
|
9869
9917
|
exports.HOST_INVENTORY_PATH = HOST_INVENTORY_PATH;
|
|
@@ -9912,6 +9960,7 @@ exports.STYLES_DEV_DEPENDENCIES = STYLES_DEV_DEPENDENCIES;
|
|
|
9912
9960
|
exports.STYLES_ENTRY_PATH = STYLES_ENTRY_PATH;
|
|
9913
9961
|
exports.SURFACES = SURFACES;
|
|
9914
9962
|
exports.SURFACE_EDIT_LENGTH = SURFACE_EDIT_LENGTH;
|
|
9963
|
+
exports.SURFACE_TRANSFERS = SURFACE_TRANSFERS;
|
|
9915
9964
|
exports.ScaffoldError = ScaffoldError;
|
|
9916
9965
|
exports.TAB_WIDTH = TAB_WIDTH;
|
|
9917
9966
|
exports.TARGET_SKILL_NAMES = TARGET_SKILL_NAMES;
|
|
@@ -9923,7 +9972,7 @@ exports.VERSION_PATTERN = VERSION_PATTERN;
|
|
|
9923
9972
|
exports.WORKSPACE_DEV_ENGINES = WORKSPACE_DEV_ENGINES;
|
|
9924
9973
|
exports.WORKSPACE_OWNED_PATHS = WORKSPACE_OWNED_PATHS;
|
|
9925
9974
|
exports.applyOverrides = applyOverrides;
|
|
9926
|
-
exports.
|
|
9975
|
+
exports.artifactToArtifactFinding = artifactToArtifactFinding;
|
|
9927
9976
|
exports.artifactToHex = artifactToHex;
|
|
9928
9977
|
exports.artifactsToQuestions = artifactsToQuestions;
|
|
9929
9978
|
exports.blueprintToConfigArtifacts = blueprintToConfigArtifacts;
|
|
@@ -9950,7 +9999,6 @@ exports.blueprintToToolchainHolds = blueprintToToolchainHolds;
|
|
|
9950
9999
|
exports.blueprintToWritableScripts = blueprintToWritableScripts;
|
|
9951
10000
|
exports.bytesToHex = bytesToHex;
|
|
9952
10001
|
exports.catalogToLayers = catalogToLayers;
|
|
9953
|
-
exports.cloneValue = cloneValue;
|
|
9954
10002
|
exports.collectSurfaceAdvisories = collectSurfaceAdvisories;
|
|
9955
10003
|
exports.collectSurfaceCollisions = collectSurfaceCollisions;
|
|
9956
10004
|
exports.collectSurfaceConflicts = collectSurfaceConflicts;
|
|
@@ -9964,12 +10012,15 @@ exports.createBlueprint = createBlueprint;
|
|
|
9964
10012
|
exports.dependenciesToQuestions = dependenciesToQuestions;
|
|
9965
10013
|
exports.extractRangeMajor = extractRangeMajor;
|
|
9966
10014
|
exports.extractVersion = extractVersion;
|
|
9967
|
-
exports.
|
|
9968
|
-
exports.
|
|
10015
|
+
exports.inferArtifactDrift = inferArtifactDrift;
|
|
10016
|
+
exports.inferArtifactGroup = inferArtifactGroup;
|
|
9969
10017
|
exports.inferSurfaceSimilarity = inferSurfaceSimilarity;
|
|
9970
10018
|
exports.insertManifestDependencies = insertManifestDependencies;
|
|
9971
10019
|
exports.insertManifestSection = insertManifestSection;
|
|
9972
10020
|
exports.isArtifact = isArtifact;
|
|
10021
|
+
exports.isArtifactFinding = isArtifactFinding;
|
|
10022
|
+
exports.isArtifactGroup = isArtifactGroup;
|
|
10023
|
+
exports.isArtifactGroups = isArtifactGroups;
|
|
9973
10024
|
exports.isAudit = isAudit;
|
|
9974
10025
|
exports.isBlueprint = isBlueprint;
|
|
9975
10026
|
exports.isBrowserExtension = isBrowserExtension;
|
|
@@ -9984,11 +10035,8 @@ exports.isDependency = isDependency;
|
|
|
9984
10035
|
exports.isDependencyName = isDependencyName;
|
|
9985
10036
|
exports.isEnvironment = isEnvironment;
|
|
9986
10037
|
exports.isExtension = isExtension;
|
|
9987
|
-
exports.isFinding = isFinding;
|
|
9988
10038
|
exports.isFloorPath = isFloorPath;
|
|
9989
|
-
exports.
|
|
9990
|
-
exports.isGroups = isGroups;
|
|
9991
|
-
exports.isHex = isHex;
|
|
10039
|
+
exports.isHexContent = isHexContent;
|
|
9992
10040
|
exports.isManifestScript = isManifestScript;
|
|
9993
10041
|
exports.isMirror = isMirror;
|
|
9994
10042
|
exports.isOverride = isOverride;
|
|
@@ -10004,7 +10052,7 @@ exports.isSurface = isSurface;
|
|
|
10004
10052
|
exports.iterateAnswers = iterateAnswers;
|
|
10005
10053
|
exports.manifestToDependencies = manifestToDependencies;
|
|
10006
10054
|
exports.manifestToName = manifestToName;
|
|
10007
|
-
exports.
|
|
10055
|
+
exports.matchesArtifactDriftReachability = matchesArtifactDriftReachability;
|
|
10008
10056
|
exports.matchesEngines = matchesEngines;
|
|
10009
10057
|
exports.matchesGuideRefusal = matchesGuideRefusal;
|
|
10010
10058
|
exports.matchesOrchestrationPath = matchesOrchestrationPath;
|
|
@@ -10013,13 +10061,14 @@ exports.matchesRange = matchesRange;
|
|
|
10013
10061
|
exports.matchesSurfaceStructure = matchesSurfaceStructure;
|
|
10014
10062
|
exports.nameToGuide = nameToGuide;
|
|
10015
10063
|
exports.overridesToQuestions = overridesToQuestions;
|
|
10064
|
+
exports.parseArtifactGroups = parseArtifactGroups;
|
|
10016
10065
|
exports.parseBlueprint = parseBlueprint;
|
|
10017
10066
|
exports.parseCompilerOptions = parseCompilerOptions;
|
|
10018
10067
|
exports.parseExtension = parseExtension;
|
|
10019
|
-
exports.
|
|
10068
|
+
exports.parseOwnedJSONValue = parseOwnedJSONValue;
|
|
10020
10069
|
exports.parseSnapshot = parseSnapshot;
|
|
10021
10070
|
exports.pathToCondition = pathToCondition;
|
|
10022
|
-
exports.
|
|
10071
|
+
exports.planToArtifactFindings = planToArtifactFindings;
|
|
10023
10072
|
exports.planToHash = planToHash;
|
|
10024
10073
|
exports.planToSummary = planToSummary;
|
|
10025
10074
|
exports.renderSkillPointer = renderSkillPointer;
|
|
@@ -10029,7 +10078,7 @@ exports.replaceManifestRanges = replaceManifestRanges;
|
|
|
10029
10078
|
exports.replaceManifestScripts = replaceManifestScripts;
|
|
10030
10079
|
exports.replacePlanRanges = replacePlanRanges;
|
|
10031
10080
|
exports.scanManifestTokens = scanManifestTokens;
|
|
10032
|
-
exports.
|
|
10081
|
+
exports.selectArtifactGroups = selectArtifactGroups;
|
|
10033
10082
|
exports.selectHostPaths = selectHostPaths;
|
|
10034
10083
|
exports.serializeTypeScriptString = serializeTypeScriptString;
|
|
10035
10084
|
exports.srcToEntry = srcToEntry;
|