@driftsys/markspec 0.6.2 → 0.7.1
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/README.md +2 -3
- package/esm/compiler/constants.d.ts +1 -1
- package/esm/compiler/constants.d.ts.map +1 -1
- package/esm/compiler/constants.js +4 -14
- package/esm/config/markspec.d.ts +1 -0
- package/esm/config/markspec.d.ts.map +1 -1
- package/esm/config/markspec.js +5 -1
- package/esm/lock/resolve.d.ts.map +1 -1
- package/esm/lock/resolve.js +3 -11
- package/esm/lock/serializer.d.ts.map +1 -1
- package/esm/lock/serializer.js +2 -1
- package/esm/mod.d.ts +4 -4
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +3 -3
- package/esm/model/attributes.d.ts.map +1 -1
- package/esm/model/attributes.js +7 -0
- package/esm/model/mod.d.ts +3 -1
- package/esm/model/mod.d.ts.map +1 -1
- package/esm/model/mod.js +6 -14
- package/esm/model/relations.d.ts +35 -0
- package/esm/model/relations.d.ts.map +1 -0
- package/esm/model/relations.js +86 -0
- package/esm/model/type_hierarchy.d.ts +7 -0
- package/esm/model/type_hierarchy.d.ts.map +1 -1
- package/esm/model/type_hierarchy.js +35 -10
- package/esm/profile/manifest.d.ts +8 -0
- package/esm/profile/manifest.d.ts.map +1 -1
- package/esm/profile/manifest.js +9 -8
- package/esm/self_upgrade/manifest.d.ts +59 -2
- package/esm/self_upgrade/manifest.d.ts.map +1 -1
- package/esm/self_upgrade/manifest.js +81 -2
- package/esm/self_upgrade/mod.d.ts +1 -1
- package/esm/self_upgrade/mod.d.ts.map +1 -1
- package/esm/self_upgrade/mod.js +1 -1
- package/esm/validator/listing.d.ts.map +1 -1
- package/esm/validator/listing.js +9 -10
- package/esm/validator/trace_types.d.ts.map +1 -1
- package/esm/validator/trace_types.js +7 -29
- package/package.json +1 -1
- package/script/compiler/constants.d.ts +1 -1
- package/script/compiler/constants.d.ts.map +1 -1
- package/script/compiler/constants.js +4 -14
- package/script/config/markspec.d.ts +1 -0
- package/script/config/markspec.d.ts.map +1 -1
- package/script/config/markspec.js +7 -3
- package/script/lock/resolve.d.ts.map +1 -1
- package/script/lock/resolve.js +3 -11
- package/script/lock/serializer.d.ts.map +1 -1
- package/script/lock/serializer.js +2 -1
- package/script/mod.d.ts +4 -4
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +11 -4
- package/script/model/attributes.d.ts.map +1 -1
- package/script/model/attributes.js +7 -0
- package/script/model/mod.d.ts +3 -1
- package/script/model/mod.d.ts.map +1 -1
- package/script/model/mod.js +9 -14
- package/script/model/relations.d.ts +35 -0
- package/script/model/relations.d.ts.map +1 -0
- package/script/model/relations.js +89 -0
- package/script/model/type_hierarchy.d.ts +7 -0
- package/script/model/type_hierarchy.d.ts.map +1 -1
- package/script/model/type_hierarchy.js +36 -10
- package/script/profile/manifest.d.ts +8 -0
- package/script/profile/manifest.d.ts.map +1 -1
- package/script/profile/manifest.js +18 -16
- package/script/self_upgrade/manifest.d.ts +59 -2
- package/script/self_upgrade/manifest.d.ts.map +1 -1
- package/script/self_upgrade/manifest.js +84 -2
- package/script/self_upgrade/mod.d.ts +1 -1
- package/script/self_upgrade/mod.d.ts.map +1 -1
- package/script/self_upgrade/mod.js +5 -1
- package/script/validator/listing.d.ts.map +1 -1
- package/script/validator/listing.js +9 -10
- package/script/validator/trace_types.d.ts.map +1 -1
- package/script/validator/trace_types.js +6 -28
package/esm/profile/manifest.js
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
import { parse as parseYaml } from "@std/yaml";
|
|
9
9
|
import { COLOR_NAME_RE, CORE_KINDS, CORE_TYPES, LIST_VALUE_TYPES, MIXED_DISCIPLINE, PALETTE_HUES, VALUE_TYPES, } from "../model/mod.js";
|
|
10
10
|
const VALUE_TYPE_SET = new Set(VALUE_TYPES);
|
|
11
|
-
const ALLOWED_ROOT_KEYS = new Set([
|
|
11
|
+
export const ALLOWED_ROOT_KEYS = new Set([
|
|
12
|
+
"$schema",
|
|
12
13
|
"id",
|
|
13
14
|
"version",
|
|
14
15
|
"markspec-schema",
|
|
@@ -17,7 +18,7 @@ const ALLOWED_ROOT_KEYS = new Set([
|
|
|
17
18
|
"extends",
|
|
18
19
|
"profile",
|
|
19
20
|
]);
|
|
20
|
-
const ALLOWED_PROFILE_KEYS = new Set([
|
|
21
|
+
export const ALLOWED_PROFILE_KEYS = new Set([
|
|
21
22
|
"attributes",
|
|
22
23
|
"labels",
|
|
23
24
|
"colors",
|
|
@@ -28,7 +29,7 @@ const ALLOWED_PROFILE_KEYS = new Set([
|
|
|
28
29
|
"prose",
|
|
29
30
|
"discipline-mode",
|
|
30
31
|
]);
|
|
31
|
-
const ALLOWED_TYPE_KEYS = new Set([
|
|
32
|
+
export const ALLOWED_TYPE_KEYS = new Set([
|
|
32
33
|
"extends",
|
|
33
34
|
"description",
|
|
34
35
|
"display-id-pattern",
|
|
@@ -39,9 +40,9 @@ const ALLOWED_TYPE_KEYS = new Set([
|
|
|
39
40
|
"color",
|
|
40
41
|
"discipline",
|
|
41
42
|
]);
|
|
42
|
-
const ALLOWED_DOC_TYPE_KEYS = new Set(["id", "contains", "description"]);
|
|
43
|
-
const ALLOWED_DOCUMENTS_KEYS = new Set(["types", "frontMatter"]);
|
|
44
|
-
const ALLOWED_ATTR_KEYS = new Set([
|
|
43
|
+
export const ALLOWED_DOC_TYPE_KEYS = new Set(["id", "contains", "description"]);
|
|
44
|
+
export const ALLOWED_DOCUMENTS_KEYS = new Set(["types", "frontMatter"]);
|
|
45
|
+
export const ALLOWED_ATTR_KEYS = new Set([
|
|
45
46
|
"name",
|
|
46
47
|
"type",
|
|
47
48
|
"required",
|
|
@@ -50,8 +51,8 @@ const ALLOWED_ATTR_KEYS = new Set([
|
|
|
50
51
|
"inverse",
|
|
51
52
|
"description",
|
|
52
53
|
]);
|
|
53
|
-
const ALLOWED_INVERSE_KEYS = new Set(["name", "category"]);
|
|
54
|
-
const ALLOWED_TRACE_RULE_KEYS = new Set([
|
|
54
|
+
export const ALLOWED_INVERSE_KEYS = new Set(["name", "category"]);
|
|
55
|
+
export const ALLOWED_TRACE_RULE_KEYS = new Set([
|
|
55
56
|
"target",
|
|
56
57
|
"cardinality",
|
|
57
58
|
"required",
|
|
@@ -2,18 +2,75 @@
|
|
|
2
2
|
* @module core/self_upgrade/manifest
|
|
3
3
|
*
|
|
4
4
|
* Build the release tarball + SHA-256 URLs for a (version, target) pair,
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* parse the single-line .sha256 files produced by sha256sum / shasum -a 256
|
|
6
|
+
* in the release workflow, and pin the release endpoints to the canonical
|
|
7
|
+
* GitHub origin. Pure — no I/O.
|
|
7
8
|
*
|
|
8
9
|
* The .sha256 line format is the standard one shared by GNU coreutils
|
|
9
10
|
* sha256sum and BSD/macOS shasum: `<64-hex> <basename>` with a two-space
|
|
10
11
|
* separator. We accept a trailing newline and lowercase the digest so
|
|
11
12
|
* callers can compare strings directly.
|
|
13
|
+
*
|
|
14
|
+
* Release-endpoint pinning ({@linkcode resolveReleaseEndpoints} +
|
|
15
|
+
* {@linkcode assertTrustedReleaseUrl}) ensures a self-upgrade can only fetch
|
|
16
|
+
* from the canonical github.com origin in production — the env overrides are
|
|
17
|
+
* test-mode-only (issue #580).
|
|
12
18
|
*/
|
|
13
19
|
export interface ReleaseAssets {
|
|
14
20
|
readonly tarballUrl: string;
|
|
15
21
|
readonly checksumUrl: string;
|
|
16
22
|
}
|
|
23
|
+
/** Pinned GitHub releases API endpoint for the canonical markspec repo. */
|
|
24
|
+
export declare const DEFAULT_RELEASES_API = "https://api.github.com/repos/driftsys/markspec/releases";
|
|
25
|
+
/** Pinned GitHub release-asset download base for the canonical markspec repo. */
|
|
26
|
+
export declare const DEFAULT_RELEASES_DOWNLOAD_BASE = "https://github.com/driftsys/markspec/releases/download";
|
|
27
|
+
/** Inputs to {@linkcode resolveReleaseEndpoints}. */
|
|
28
|
+
export interface ResolveEndpointsInput {
|
|
29
|
+
/**
|
|
30
|
+
* `true` only when `MARKSPEC_TEST_MODE=1`. Gates the env overrides —
|
|
31
|
+
* see {@linkcode resolveReleaseEndpoints}.
|
|
32
|
+
*/
|
|
33
|
+
readonly testMode: boolean;
|
|
34
|
+
/** Value of `MARKSPEC_RELEASES_API`, if set. */
|
|
35
|
+
readonly apiOverride?: string;
|
|
36
|
+
/** Value of `MARKSPEC_RELEASES_DOWNLOAD_BASE`, if set. */
|
|
37
|
+
readonly downloadOverride?: string;
|
|
38
|
+
}
|
|
39
|
+
/** Resolved release endpoints. */
|
|
40
|
+
export interface ReleaseEndpoints {
|
|
41
|
+
readonly apiBase: string;
|
|
42
|
+
readonly downloadBase: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Resolve the releases-API and download-base URLs, honouring the
|
|
46
|
+
* `MARKSPEC_RELEASES_API` / `MARKSPEC_RELEASES_DOWNLOAD_BASE` overrides
|
|
47
|
+
* **only** under `MARKSPEC_TEST_MODE=1` (`input.testMode`). In production
|
|
48
|
+
* the pinned `DEFAULT_RELEASES_*` constants are always returned, so a stray
|
|
49
|
+
* or hostile env var in the user's shell cannot redirect a self-upgrade to
|
|
50
|
+
* an attacker-controlled origin (issue #580) — the same gating the
|
|
51
|
+
* `MARKSPEC_SELF_UPGRADE_BIN_PATH` override already uses. A missing override
|
|
52
|
+
* under test mode falls back to the pinned default for that endpoint.
|
|
53
|
+
*/
|
|
54
|
+
export declare function resolveReleaseEndpoints(input: ResolveEndpointsInput): ReleaseEndpoints;
|
|
55
|
+
/**
|
|
56
|
+
* Assert that a release-endpoint URL is safe to fetch from, throwing
|
|
57
|
+
* otherwise. Defence-in-depth for {@linkcode resolveReleaseEndpoints}: even
|
|
58
|
+
* if a future change reintroduces an unconditional override, no fetch can
|
|
59
|
+
* reach an insecure or non-GitHub origin.
|
|
60
|
+
*
|
|
61
|
+
* In production (`allowInsecure: false`) the URL MUST use `https:` and a
|
|
62
|
+
* host in the GitHub allowlist (`github.com`, `api.github.com`,
|
|
63
|
+
* `objects.githubusercontent.com`). Under test mode (`allowInsecure: true`)
|
|
64
|
+
* an `http(s)` URL to `localhost` / `127.0.0.1` / `[::1]` is additionally
|
|
65
|
+
* permitted so the e2e suite can point at a local mock server; every other
|
|
66
|
+
* host still falls through to the production https-+-allowlist check.
|
|
67
|
+
*
|
|
68
|
+
* @throws Error when the URL is malformed, uses a non-https scheme, or
|
|
69
|
+
* targets a host outside the allowlist.
|
|
70
|
+
*/
|
|
71
|
+
export declare function assertTrustedReleaseUrl(rawUrl: string, opts: {
|
|
72
|
+
allowInsecure: boolean;
|
|
73
|
+
}): void;
|
|
17
74
|
/** Build the tarball + checksum URLs for a (version, target). */
|
|
18
75
|
export declare function releaseAssets(baseUrl: string, version: string, target: string): ReleaseAssets;
|
|
19
76
|
/** Parse a single sha256sum-format line; return the lowercase hex digest. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/manifest.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,4DAC0B,CAAC;AAE5D,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,2DACe,CAAC;AAiB3D,qDAAqD;AACrD,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,0DAA0D;IAC1D,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,kCAAkC;AAClC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,qBAAqB,GAC3B,gBAAgB,CAQlB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,GAC/B,IAAI,CA4BN;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,aAAa,CAKf;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIpD"}
|
|
@@ -2,15 +2,94 @@
|
|
|
2
2
|
* @module core/self_upgrade/manifest
|
|
3
3
|
*
|
|
4
4
|
* Build the release tarball + SHA-256 URLs for a (version, target) pair,
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* parse the single-line .sha256 files produced by sha256sum / shasum -a 256
|
|
6
|
+
* in the release workflow, and pin the release endpoints to the canonical
|
|
7
|
+
* GitHub origin. Pure — no I/O.
|
|
7
8
|
*
|
|
8
9
|
* The .sha256 line format is the standard one shared by GNU coreutils
|
|
9
10
|
* sha256sum and BSD/macOS shasum: `<64-hex> <basename>` with a two-space
|
|
10
11
|
* separator. We accept a trailing newline and lowercase the digest so
|
|
11
12
|
* callers can compare strings directly.
|
|
13
|
+
*
|
|
14
|
+
* Release-endpoint pinning ({@linkcode resolveReleaseEndpoints} +
|
|
15
|
+
* {@linkcode assertTrustedReleaseUrl}) ensures a self-upgrade can only fetch
|
|
16
|
+
* from the canonical github.com origin in production — the env overrides are
|
|
17
|
+
* test-mode-only (issue #580).
|
|
18
|
+
*/
|
|
19
|
+
/** Pinned GitHub releases API endpoint for the canonical markspec repo. */
|
|
20
|
+
export const DEFAULT_RELEASES_API = "https://api.github.com/repos/driftsys/markspec/releases";
|
|
21
|
+
/** Pinned GitHub release-asset download base for the canonical markspec repo. */
|
|
22
|
+
export const DEFAULT_RELEASES_DOWNLOAD_BASE = "https://github.com/driftsys/markspec/releases/download";
|
|
23
|
+
/**
|
|
24
|
+
* Hosts the self-upgrade fetches are permitted to contact in production.
|
|
25
|
+
* `objects.githubusercontent.com` is GitHub's release-asset CDN — a
|
|
26
|
+
* `releases/download` URL 302-redirects there, and `fetch` follows the
|
|
27
|
+
* redirect, so it must be on the allowlist even though we never build a
|
|
28
|
+
* URL pointing at it directly.
|
|
12
29
|
*/
|
|
30
|
+
const TRUSTED_RELEASE_HOSTS = new Set([
|
|
31
|
+
"github.com",
|
|
32
|
+
"api.github.com",
|
|
33
|
+
"objects.githubusercontent.com",
|
|
34
|
+
]);
|
|
13
35
|
const SHA256_LINE_RE = /^([0-9a-fA-F]{64})\s+(\S.*?)\s*$/;
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the releases-API and download-base URLs, honouring the
|
|
38
|
+
* `MARKSPEC_RELEASES_API` / `MARKSPEC_RELEASES_DOWNLOAD_BASE` overrides
|
|
39
|
+
* **only** under `MARKSPEC_TEST_MODE=1` (`input.testMode`). In production
|
|
40
|
+
* the pinned `DEFAULT_RELEASES_*` constants are always returned, so a stray
|
|
41
|
+
* or hostile env var in the user's shell cannot redirect a self-upgrade to
|
|
42
|
+
* an attacker-controlled origin (issue #580) — the same gating the
|
|
43
|
+
* `MARKSPEC_SELF_UPGRADE_BIN_PATH` override already uses. A missing override
|
|
44
|
+
* under test mode falls back to the pinned default for that endpoint.
|
|
45
|
+
*/
|
|
46
|
+
export function resolveReleaseEndpoints(input) {
|
|
47
|
+
const apiBase = input.testMode && input.apiOverride
|
|
48
|
+
? input.apiOverride
|
|
49
|
+
: DEFAULT_RELEASES_API;
|
|
50
|
+
const downloadBase = input.testMode && input.downloadOverride
|
|
51
|
+
? input.downloadOverride
|
|
52
|
+
: DEFAULT_RELEASES_DOWNLOAD_BASE;
|
|
53
|
+
return { apiBase, downloadBase };
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Assert that a release-endpoint URL is safe to fetch from, throwing
|
|
57
|
+
* otherwise. Defence-in-depth for {@linkcode resolveReleaseEndpoints}: even
|
|
58
|
+
* if a future change reintroduces an unconditional override, no fetch can
|
|
59
|
+
* reach an insecure or non-GitHub origin.
|
|
60
|
+
*
|
|
61
|
+
* In production (`allowInsecure: false`) the URL MUST use `https:` and a
|
|
62
|
+
* host in the GitHub allowlist (`github.com`, `api.github.com`,
|
|
63
|
+
* `objects.githubusercontent.com`). Under test mode (`allowInsecure: true`)
|
|
64
|
+
* an `http(s)` URL to `localhost` / `127.0.0.1` / `[::1]` is additionally
|
|
65
|
+
* permitted so the e2e suite can point at a local mock server; every other
|
|
66
|
+
* host still falls through to the production https-+-allowlist check.
|
|
67
|
+
*
|
|
68
|
+
* @throws Error when the URL is malformed, uses a non-https scheme, or
|
|
69
|
+
* targets a host outside the allowlist.
|
|
70
|
+
*/
|
|
71
|
+
export function assertTrustedReleaseUrl(rawUrl, opts) {
|
|
72
|
+
let url;
|
|
73
|
+
try {
|
|
74
|
+
url = new URL(rawUrl);
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
throw new Error(`invalid release URL: ${JSON.stringify(rawUrl)}`);
|
|
78
|
+
}
|
|
79
|
+
if (opts.allowInsecure) {
|
|
80
|
+
const isLoopback = url.hostname === "localhost" ||
|
|
81
|
+
url.hostname === "127.0.0.1" || url.hostname === "[::1]";
|
|
82
|
+
if (isLoopback && (url.protocol === "http:" || url.protocol === "https:")) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (url.protocol !== "https:") {
|
|
87
|
+
throw new Error(`refusing to self-upgrade over insecure transport: ${url.protocol}//${url.host} (only https: is permitted)`);
|
|
88
|
+
}
|
|
89
|
+
if (!TRUSTED_RELEASE_HOSTS.has(url.hostname)) {
|
|
90
|
+
throw new Error(`refusing to self-upgrade from untrusted host: ${url.host} (permitted: ${[...TRUSTED_RELEASE_HOSTS].join(", ")})`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
14
93
|
/** Build the tarball + checksum URLs for a (version, target). */
|
|
15
94
|
export function releaseAssets(baseUrl, version, target) {
|
|
16
95
|
const tag = version.startsWith("v") ? version : `v${version}`;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { compareVersions, type Comparison } from "./compare.js";
|
|
9
9
|
export { classifyInstallPath, type ClassifyResult, type InstallSource, } from "./pm_detect.js";
|
|
10
|
-
export { parseSha256Line, type ReleaseAssets, releaseAssets, } from "./manifest.js";
|
|
10
|
+
export { assertTrustedReleaseUrl, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, parseSha256Line, type ReleaseAssets, releaseAssets, type ReleaseEndpoints, type ResolveEndpointsInput, resolveReleaseEndpoints, } from "./manifest.js";
|
|
11
11
|
export { type Arch, detectTarget, type Os, type Platform, platformFromBuild, type Target, } from "./target.js";
|
|
12
12
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,KAAK,aAAa,EAClB,aAAa,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC9B,eAAe,EACf,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,IAAI,EACT,YAAY,EACZ,KAAK,EAAE,EACP,KAAK,QAAQ,EACb,iBAAiB,EACjB,KAAK,MAAM,GACZ,MAAM,aAAa,CAAC"}
|
package/esm/self_upgrade/mod.js
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { compareVersions } from "./compare.js";
|
|
9
9
|
export { classifyInstallPath, } from "./pm_detect.js";
|
|
10
|
-
export { parseSha256Line, releaseAssets, } from "./manifest.js";
|
|
10
|
+
export { assertTrustedReleaseUrl, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, parseSha256Line, releaseAssets, resolveReleaseEndpoints, } from "./manifest.js";
|
|
11
11
|
export { detectTarget, platformFromBuild, } from "./target.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../src/validator/listing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../src/validator/listing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAYpE,oDAAoD;AACpD,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;AAEnE,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;CAC3C;AA4SD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,SAAS,UAAU,EAAE,CAMvB"}
|
package/esm/validator/listing.js
CHANGED
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
* does not carry.
|
|
19
19
|
*/
|
|
20
20
|
import { basename } from "@std/path";
|
|
21
|
+
import { descendantsOf } from "../model/mod.js";
|
|
21
22
|
import { validateGlossaryStructure } from "../parser/glossary.js";
|
|
22
23
|
import { isSchemeQualifiedUri, parseComponentScheme, } from "./component_schemes.js";
|
|
23
24
|
// ---------------------------------------------------------------------------
|
|
24
25
|
// Component-family and Unit-family sets
|
|
25
26
|
// ---------------------------------------------------------------------------
|
|
26
|
-
/** Core Component-family type names per ADR-003 §Part 2 / spec §6.3.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
]);
|
|
27
|
+
/** Core Component-family type names per ADR-003 §Part 2 / spec §6.3.
|
|
28
|
+
*
|
|
29
|
+
* SoftwareInterface and HardwareInterface are NOT included here: they
|
|
30
|
+
* were re-parented from Component to Contract (interface-as-contract
|
|
31
|
+
* design). A components listing accepts only true structural components.
|
|
32
|
+
*/
|
|
33
|
+
const COMPONENT_FAMILY = descendantsOf("Component");
|
|
34
34
|
/** Core Unit-family type names per ADR-003 §Part 2. */
|
|
35
35
|
const UNIT_FAMILY = new Set([
|
|
36
36
|
"Unit",
|
|
@@ -226,8 +226,7 @@ function validateComponentsEntry(entry, file, diagnostics) {
|
|
|
226
226
|
severity: "error",
|
|
227
227
|
message: `${file}:${entry.location.line}: entry '[${entry.displayId}]' ` +
|
|
228
228
|
`has Type: ${typeVal} which is not in the Component family ` +
|
|
229
|
-
`(Component/SoftwareComponent/HardwareComponent
|
|
230
|
-
`SoftwareInterface/HardwareInterface) — ` +
|
|
229
|
+
`(Component/SoftwareComponent/HardwareComponent) — ` +
|
|
231
230
|
`only Component-family types are permitted in a components listing ` +
|
|
232
231
|
`(spec §6.3)`,
|
|
233
232
|
location: entry.location,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace_types.d.ts","sourceRoot":"","sources":["../../src/validator/trace_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"trace_types.d.ts","sourceRoot":"","sources":["../../src/validator/trace_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAoFzD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,SAAS,KAAK,EAAE,GACxB,SAAS,UAAU,EAAE,CAuHvB"}
|
|
@@ -11,36 +11,14 @@
|
|
|
11
11
|
* Unresolved targets are intentionally not flagged here — that is the
|
|
12
12
|
* job of MSL-R080 / MSL-T012 / MSL-T005 in other passes.
|
|
13
13
|
*/
|
|
14
|
-
import { CORE_TYPE_HIERARCHY } from "../model/mod.js";
|
|
14
|
+
import { CORE_RELATIONS, CORE_TYPE_HIERARCHY } from "../model/mod.js";
|
|
15
15
|
import { resolvedCoreType } from "./type_resolution.js";
|
|
16
|
-
const TRACE_RULES =
|
|
17
|
-
|
|
18
|
-
{ attr:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{ attr: "Verifies", allowedTargetTypes: ["Requirement", "Contract"] },
|
|
23
|
-
{ attr: "Tests", allowedTargetTypes: ["Component", "Unit"] },
|
|
24
|
-
// Component / Unit
|
|
25
|
-
{ attr: "Realizes", allowedTargetTypes: ["Specification"] },
|
|
26
|
-
{
|
|
27
|
-
attr: "Provides",
|
|
28
|
-
allowedTargetTypes: ["SoftwareInterface", "HardwareInterface"],
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
attr: "Requires",
|
|
32
|
-
allowedTargetTypes: ["SoftwareInterface", "HardwareInterface"],
|
|
33
|
-
},
|
|
34
|
-
{ attr: "Depends-on", allowedTargetTypes: ["Component", "Unit"] },
|
|
35
|
-
{ attr: "Part-of", allowedTargetTypes: ["Component"] },
|
|
36
|
-
// Risk
|
|
37
|
-
{ attr: "Mitigated-by", allowedTargetTypes: ["Specification"] },
|
|
38
|
-
// Record
|
|
39
|
-
{ attr: "Affects", allowedTargetTypes: ["Component", "Unit"] },
|
|
40
|
-
// `Caused-by` is polymorphic between Record (cause = Requirement/Risk/
|
|
41
|
-
// Contract/Record) and Risk (cause = Component/Unit/Specification).
|
|
42
|
-
// The simplest correct rule is the union — handled by the loop below.
|
|
43
|
-
];
|
|
16
|
+
const TRACE_RULES = CORE_RELATIONS
|
|
17
|
+
.filter((r) => r.targetTypes)
|
|
18
|
+
.map((r) => ({ attr: r.attr, allowedTargetTypes: r.targetTypes }));
|
|
19
|
+
// `Caused-by` is polymorphic between Record (cause = Requirement/Risk/
|
|
20
|
+
// Contract/Record) and Risk (cause = Component/Unit/Specification).
|
|
21
|
+
// The simplest correct rule is the union — handled by POLYMORPHIC_CAUSED_BY below.
|
|
44
22
|
/** Polymorphic relations where the source type's role widens the targets. */
|
|
45
23
|
const POLYMORPHIC_CAUSED_BY = [
|
|
46
24
|
{
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import type { LinkKind } from "../model/mod.js";
|
|
|
9
9
|
*
|
|
10
10
|
* Spec attributes: Satisfies, Derived-from, References, Allocated-to.
|
|
11
11
|
* Test attributes: Verifies, Tests.
|
|
12
|
-
* Element attributes: Realizes, Depends-on, Part-of, Generated-from.
|
|
12
|
+
* Element attributes: Realizes, Depends-on, Part-of, Generated-from, Provides, Requires.
|
|
13
13
|
* Universal: Supersedes (same-family).
|
|
14
14
|
*/
|
|
15
15
|
export declare const ATTR_TO_LINK_KIND: Readonly<Record<string, LinkKind>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/compiler/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/compiler/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAG9D,CAAC"}
|
|
@@ -6,24 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ATTR_TO_LINK_KIND = void 0;
|
|
9
|
+
const mod_js_1 = require("../model/mod.js");
|
|
9
10
|
/**
|
|
10
11
|
* Attribute keys that produce traceability links per ADR-002.
|
|
11
12
|
*
|
|
12
13
|
* Spec attributes: Satisfies, Derived-from, References, Allocated-to.
|
|
13
14
|
* Test attributes: Verifies, Tests.
|
|
14
|
-
* Element attributes: Realizes, Depends-on, Part-of, Generated-from.
|
|
15
|
+
* Element attributes: Realizes, Depends-on, Part-of, Generated-from, Provides, Requires.
|
|
15
16
|
* Universal: Supersedes (same-family).
|
|
16
17
|
*/
|
|
17
|
-
exports.ATTR_TO_LINK_KIND =
|
|
18
|
-
|
|
19
|
-
"Derived-from": "derived-from",
|
|
20
|
-
"References": "references",
|
|
21
|
-
"Allocated-to": "allocated-to",
|
|
22
|
-
"Realizes": "realizes",
|
|
23
|
-
"Verifies": "verifies",
|
|
24
|
-
"Tests": "tests",
|
|
25
|
-
"Depends-on": "depends-on",
|
|
26
|
-
"Part-of": "part-of",
|
|
27
|
-
"Generated-from": "generated-from",
|
|
28
|
-
"Supersedes": "supersedes",
|
|
29
|
-
};
|
|
18
|
+
exports.ATTR_TO_LINK_KIND = Object
|
|
19
|
+
.fromEntries(mod_js_1.CORE_RELATIONS.filter((r) => r.linkKind).map((r) => [r.attr, r.linkKind]));
|
|
@@ -33,6 +33,7 @@ export interface ParseMarkspecYamlResult {
|
|
|
33
33
|
readonly config: MarkspecYaml | null;
|
|
34
34
|
readonly diagnostics: readonly Diagnostic[];
|
|
35
35
|
}
|
|
36
|
+
export declare const ALLOWED_MARKSPEC_YAML_KEYS: Set<string>;
|
|
36
37
|
/**
|
|
37
38
|
* Parse and validate a `.markspec.yaml` string.
|
|
38
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markspec.d.ts","sourceRoot":"","sources":["../../src/config/markspec.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AAEvD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAIxB;AAMD,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAC;IA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,CAAC,IAAI,CAAC,CAAC;AAEzE;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,QAAQ,EACpB,WAAW,EAAE,SAAS,EACtB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAiDf"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* [spec §7.6](../../../../docs/superpowers/specs/2026-04-21-adr-008-profile-system-v1-design.md).
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MARKSPEC_YAML_FILENAME = void 0;
|
|
12
|
+
exports.ALLOWED_MARKSPEC_YAML_KEYS = exports.MARKSPEC_YAML_FILENAME = void 0;
|
|
13
13
|
exports.readMarkspecYaml = readMarkspecYaml;
|
|
14
14
|
exports.parseMarkspecYaml = parseMarkspecYaml;
|
|
15
15
|
exports.addProfileSpecifier = addProfileSpecifier;
|
|
@@ -29,7 +29,11 @@ async function readMarkspecYaml(projectRoot, readFile) {
|
|
|
29
29
|
const content = await readFile(path);
|
|
30
30
|
return content ?? null;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
exports.ALLOWED_MARKSPEC_YAML_KEYS = new Set([
|
|
33
|
+
"$schema",
|
|
34
|
+
"profiles",
|
|
35
|
+
"default-profile",
|
|
36
|
+
]);
|
|
33
37
|
/**
|
|
34
38
|
* Parse and validate a `.markspec.yaml` string.
|
|
35
39
|
*
|
|
@@ -70,7 +74,7 @@ function parseMarkspecYaml(rawYaml, sourcePath) {
|
|
|
70
74
|
const root = parsed;
|
|
71
75
|
// Unknown keys — warn, but continue parsing.
|
|
72
76
|
for (const key of Object.keys(root)) {
|
|
73
|
-
if (!ALLOWED_MARKSPEC_YAML_KEYS.has(key)) {
|
|
77
|
+
if (!exports.ALLOWED_MARKSPEC_YAML_KEYS.has(key)) {
|
|
74
78
|
diagnostics.push({
|
|
75
79
|
code: "MARKSPEC-YAML-001",
|
|
76
80
|
severity: "warning",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/lock/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,KAAK,EACL,YAAY,EAEZ,aAAa,EACd,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/lock/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,KAAK,EACL,YAAY,EAEZ,aAAa,EACd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EACV,UAAU,EAEV,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,KAAK,QAAQ,EAAsB,MAAM,sBAAsB,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,CACrB,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,CACrB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7C,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,KAAK,EAAE,CAAC;IACvD,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACt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WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;CAC7C;AA8BD;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAoD9B;AAMD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,GAAG,QAAQ,EAAE,CAqBtE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,uBAAuB,GAC5B,OAAO,CAAC,iBAAiB,CAAC,CAgC5B;AAmCD;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,YAAY,GAAG,SAAS,KAAK,EAAE,EACtC,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,eAAe,EAAE,CAAC,CAkC5B;AAMD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAkD7B;AAMD;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,QAAQ,EAAE,SAAS,OAAO,EAAE,GAC3B,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAuD/B"}
|
package/script/lock/resolve.js
CHANGED
|
@@ -17,6 +17,7 @@ exports.resolveUpstreams = resolveUpstreams;
|
|
|
17
17
|
exports.resolveProfileChain = resolveProfileChain;
|
|
18
18
|
exports.resolveRegistries = resolveRegistries;
|
|
19
19
|
exports.resolveBoundEntries = resolveBoundEntries;
|
|
20
|
+
const mod_js_1 = require("../model/mod.js");
|
|
20
21
|
const locked_attributes_js_1 = require("../sync/locked_attributes.js");
|
|
21
22
|
const hash_js_1 = require("./hash.js");
|
|
22
23
|
const canonical_edges_js_1 = require("./canonical_edges.js");
|
|
@@ -120,17 +121,8 @@ async function resolveReferences(entries, fetchUrl) {
|
|
|
120
121
|
*/
|
|
121
122
|
function extractEdgeQuads(entries) {
|
|
122
123
|
const TRACE_KEYS = [
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"Verified-by",
|
|
126
|
-
"References",
|
|
127
|
-
"Tests",
|
|
128
|
-
"Depends-on",
|
|
129
|
-
"Part-of",
|
|
130
|
-
"Allocated-to",
|
|
131
|
-
"Realizes",
|
|
132
|
-
"Generated-from",
|
|
133
|
-
"Supersedes",
|
|
124
|
+
...mod_js_1.CORE_RELATIONS.filter((r) => r.lockEdge).map((r) => r.attr),
|
|
125
|
+
...mod_js_1.LOCK_EXTRA_INVERSE_KEYS, // Verified-by — lock tracks the inverse edge
|
|
134
126
|
];
|
|
135
127
|
const out = [];
|
|
136
128
|
for (const entry of entries) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/lock/serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,QAAQ,EAIT,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/lock/serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,QAAQ,EAIT,MAAM,YAAY,CAAC;AAOpB,8DAA8D;AAC9D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CA4FtD"}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.serializeLockfile = serializeLockfile;
|
|
14
|
-
const HEADER = "
|
|
14
|
+
const HEADER = "#:schema https://driftsys.github.io/markspec/schemas/lock/v1.json\n" +
|
|
15
|
+
"# @generated by `markspec lock` — do not hand-edit. Run `markspec lock`.\n" +
|
|
15
16
|
"# See https://markspec.dev/lock for the format.\n";
|
|
16
17
|
/** Emit a deterministic TOML representation of a Lockfile. */
|
|
17
18
|
function serializeLockfile(lf) {
|
package/script/mod.d.ts
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* from core/mod.ts, never from internal paths.
|
|
9
9
|
*/
|
|
10
10
|
import "./_dnt.polyfills.js";
|
|
11
|
-
export declare const VERSION = "0.
|
|
11
|
+
export declare const VERSION = "0.7.1";
|
|
12
12
|
export declare const CORE_SCHEMA_VERSION = 1;
|
|
13
|
-
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, DEFAULT_PROJECT_CONFIG, KNOWN_LINK_KINDS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
|
|
14
|
-
export type { Attribute, BodyToken, BodyTokenKind, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, Diagnostic, Directive, Discipline, DisciplineRegistry, DisplayId, EarsTrigger, EffectiveProfile, EffectiveTypeDef, EntityRefConvention, Entry, EntryShape, EntrySource, ExtractorRule, InlineRef, KindDecl, LabelConcern, LabelConcernKind, LabelValue, Link, LinkKind, LoadedProfile, ModalCase, PaletteHue, ProfileChain, ProfileConvention, ProjectConfig, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, Severity, SourceLocation, Ulid, } from "./model/mod.js";
|
|
13
|
+
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, CORE_RELATIONS, DEFAULT_PROJECT_CONFIG, descendantsOf, KNOWN_LINK_KINDS, LOCK_EXTRA_INVERSE_KEYS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
|
|
14
|
+
export type { Attribute, BodyToken, BodyTokenKind, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, Diagnostic, Directive, Discipline, DisciplineRegistry, DisplayId, EarsTrigger, EffectiveProfile, EffectiveTypeDef, EntityRefConvention, Entry, EntryShape, EntrySource, ExtractorRule, InlineRef, KindDecl, LabelConcern, LabelConcernKind, LabelValue, Link, LinkKind, LoadedProfile, ModalCase, PaletteHue, ProfileChain, ProfileConvention, ProjectConfig, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, RelationDef, Severity, SourceLocation, Ulid, } from "./model/mod.js";
|
|
15
15
|
export { astEquivalent } from "./ast/equivalence.js";
|
|
16
16
|
export { normalizeBodyAst } from "./ast/normalize.js";
|
|
17
17
|
export { render } from "./ast/render.js";
|
|
@@ -50,5 +50,5 @@ export { canonicalEdgeJson, checkDrift, extractEdgeQuads, hashCanonicalEdges, is
|
|
|
50
50
|
export type { BoundEntry as LockBoundEntry, BoundEntryBinding as LockBinding, EdgeQuad, FetchUrl, GeneratedCache, LockedAttributes, Lockfile, LockfileMeta, LockfileToolchain, ParseLockfileResult, ReadFile as LockReadFile, ResolvedBoundEntry, ResolvedProfile, ResolvedReference, ResolvedRegistry, ResolvedUpstreams, ResolveUpstreamsOptions, Upstream, UpstreamProfile, UpstreamReference, UpstreamRegistry, } from "./lock/mod.js";
|
|
51
51
|
export { aggregateStatusByState, encodeLogLine, inferLockedAttributes, parseLogLine, parseMapping, validateMappings, } from "./sync/mod.js";
|
|
52
52
|
export type { AttributeMapping, BoundEntryStatus, ConflictPolicy, Direction as SyncDirection, Mapping, ParseMappingResult, RemoteState, SyncLogEntry, } from "./sync/mod.js";
|
|
53
|
-
export { type Arch as SelfUpgradeArch, classifyInstallPath, type ClassifyResult as SelfUpgradeClassifyResult, compareVersions, type Comparison, detectTarget, type InstallSource, type Os as SelfUpgradeOs, parseSha256Line, type Platform as SelfUpgradePlatform, platformFromBuild, type ReleaseAssets, releaseAssets, type Target as SelfUpgradeTarget, } from "./self_upgrade/mod.js";
|
|
53
|
+
export { type Arch as SelfUpgradeArch, assertTrustedReleaseUrl, classifyInstallPath, type ClassifyResult as SelfUpgradeClassifyResult, compareVersions, type Comparison, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, detectTarget, type InstallSource, type Os as SelfUpgradeOs, parseSha256Line, type Platform as SelfUpgradePlatform, platformFromBuild, type ReleaseAssets, releaseAssets, type ReleaseEndpoints, type ResolveEndpointsInput, resolveReleaseEndpoints, type Target as SelfUpgradeTarget, } from "./self_upgrade/mod.js";
|
|
54
54
|
//# sourceMappingURL=mod.d.ts.map
|
package/script/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAGrC,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,IAAI,GACL,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB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,EACjB,uBAAuB,EACvB,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,SAAS,IAAI,aAAa,EAC1B,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,YAAY,GACb,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,IAAI,IAAI,eAAe,EAC5B,mBAAmB,EACnB,KAAK,cAAc,IAAI,yBAAyB,EAChD,eAAe,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,EAAE,IAAI,aAAa,EACxB,eAAe,EACf,KAAK,QAAQ,IAAI,mBAAmB,EACpC,iBAAiB,EACjB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,MAAM,IAAI,iBAAiB,GACjC,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAGrC,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EAC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