@tablation/crew 0.167.0 → 0.168.0
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/cli.js +89 -26
- package/dist/sandbox-intel-bridge.cjs +51 -14
- package/docs/repo-setup-prompt.md +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3512,11 +3512,35 @@ function parseDeniedRequests(log) {
|
|
|
3512
3512
|
return [...out.values()];
|
|
3513
3513
|
}
|
|
3514
3514
|
|
|
3515
|
+
// src/version-compare.ts
|
|
3516
|
+
function parseVersion(v) {
|
|
3517
|
+
const m = /^v?(\d+)\.(\d+)\.(\d+)/.exec(v.trim());
|
|
3518
|
+
return m ? [Number(m[1]), Number(m[2]), Number(m[3])] : null;
|
|
3519
|
+
}
|
|
3520
|
+
function compareVersions(a, b) {
|
|
3521
|
+
const pa = parseVersion(a);
|
|
3522
|
+
const pb = parseVersion(b);
|
|
3523
|
+
if (!pa || !pb) return null;
|
|
3524
|
+
for (let i = 0; i < 3; i++) if (pa[i] !== pb[i]) return pa[i] - pb[i];
|
|
3525
|
+
return 0;
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3515
3528
|
// src/repo-config.ts
|
|
3516
3529
|
var SPEC_VERSION = 1;
|
|
3517
3530
|
var REPO_CONFIG_FILENAMES = [".crew.yaml", ".crew.yml", ".crew.json"];
|
|
3518
3531
|
var RepoConfigError = class extends Error {
|
|
3519
3532
|
};
|
|
3533
|
+
var NewerContractError = class extends RepoConfigError {
|
|
3534
|
+
};
|
|
3535
|
+
var NEWER_CONTRACT_PHRASE = "needs a newer crew";
|
|
3536
|
+
function newerContractSummary(n) {
|
|
3537
|
+
return `this contract was written for crew ${n.required} and this is crew ${n.running}; ignoring ${n.keys.join(", ")}. Upgrading crew clears this`;
|
|
3538
|
+
}
|
|
3539
|
+
var runningCrewVersion;
|
|
3540
|
+
function setRunningCrewVersion(v) {
|
|
3541
|
+
runningCrewVersion = v;
|
|
3542
|
+
}
|
|
3543
|
+
var IGNORABLE_UNKNOWN_KEY_GROUPS = /* @__PURE__ */ new Set(["release", "release.isolateFailures", "labels", "periscope", "docs"]);
|
|
3520
3544
|
function versionFileProblem(name, text2) {
|
|
3521
3545
|
const remedy = `a version file that is not a JSON object with a string "version" needs hooks.bump instead of release.versionFiles (docs/REPO_SPEC.md)`;
|
|
3522
3546
|
let doc;
|
|
@@ -3550,6 +3574,7 @@ var HOOK_NAMES = [
|
|
|
3550
3574
|
];
|
|
3551
3575
|
var TOP_LEVEL = /* @__PURE__ */ new Set([
|
|
3552
3576
|
"version",
|
|
3577
|
+
"minCrewVersion",
|
|
3553
3578
|
"platform",
|
|
3554
3579
|
"shell",
|
|
3555
3580
|
"branch",
|
|
@@ -3644,10 +3669,20 @@ function findRepoConfig(dir) {
|
|
|
3644
3669
|
}
|
|
3645
3670
|
return null;
|
|
3646
3671
|
}
|
|
3647
|
-
function rejectUnknown(obj, allowed, where, file) {
|
|
3672
|
+
function rejectUnknown(obj, allowed, where, file, newer) {
|
|
3648
3673
|
if (!obj || typeof obj !== "object") return;
|
|
3649
3674
|
const unknown = Object.keys(obj).filter((k) => !allowed.has(k));
|
|
3650
3675
|
if (unknown.length > 0) {
|
|
3676
|
+
if (newer) {
|
|
3677
|
+
const paths = unknown.map((k) => where === "top-level" ? k : `${where}.${k}`);
|
|
3678
|
+
if (IGNORABLE_UNKNOWN_KEY_GROUPS.has(where)) {
|
|
3679
|
+
newer.ignored.push(...paths);
|
|
3680
|
+
return;
|
|
3681
|
+
}
|
|
3682
|
+
throw new NewerContractError(
|
|
3683
|
+
`${file}: ${paths.join(", ")} ${paths.length === 1 ? "is" : "are"} not known to crew ${newer.running}, and the file declares minCrewVersion ${newer.required}: this repository ${NEWER_CONTRACT_PHRASE} (${newer.required} or later) and is skipped until crew is upgraded`
|
|
3684
|
+
);
|
|
3685
|
+
}
|
|
3651
3686
|
throw new RepoConfigError(
|
|
3652
3687
|
`${file}: unknown ${where} ${unknown.length === 1 ? "key" : "keys"}: ${unknown.join(", ")} (allowed: ${[...allowed].sort().join(", ")})`
|
|
3653
3688
|
);
|
|
@@ -3690,7 +3725,7 @@ function parseSandbox(raw, file) {
|
|
|
3690
3725
|
if (!image && packages.length === 0 && setup.length === 0 && warm.length === 0) return void 0;
|
|
3691
3726
|
return { ...image ? { image } : {}, packages, setup, warm };
|
|
3692
3727
|
}
|
|
3693
|
-
function parseRepoConfig(text2, file) {
|
|
3728
|
+
function parseRepoConfig(text2, file, opts = {}) {
|
|
3694
3729
|
let raw;
|
|
3695
3730
|
try {
|
|
3696
3731
|
raw = file.endsWith(".json") ? JSON.parse(text2) : parse(text2);
|
|
@@ -3698,18 +3733,25 @@ function parseRepoConfig(text2, file) {
|
|
|
3698
3733
|
throw new RepoConfigError(`${file}: could not be parsed \u2014 ${e.message}`);
|
|
3699
3734
|
}
|
|
3700
3735
|
if (!raw || typeof raw !== "object") throw new RepoConfigError(`${file} is empty or not a mapping`);
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
rejectUnknown(raw
|
|
3709
|
-
rejectUnknown(raw.
|
|
3710
|
-
rejectUnknown(raw.
|
|
3711
|
-
rejectUnknown(raw.
|
|
3712
|
-
rejectUnknown(raw.
|
|
3736
|
+
const minRaw = raw.minCrewVersion;
|
|
3737
|
+
if (minRaw !== void 0 && (typeof minRaw !== "string" || !/^\d+\.\d+\.\d+$/.test(minRaw.trim()))) {
|
|
3738
|
+
throw new RepoConfigError(`${file}: minCrewVersion must be a version like "0.167.0" (got "${String(minRaw)}")`);
|
|
3739
|
+
}
|
|
3740
|
+
const running = opts.crewVersion ?? runningCrewVersion;
|
|
3741
|
+
const newerThanRunning = typeof minRaw === "string" && running !== void 0 && parseVersion(running) !== null && (compareVersions(running, minRaw) ?? 0) < 0;
|
|
3742
|
+
const newer = newerThanRunning ? { required: minRaw.trim(), running, ignored: [] } : void 0;
|
|
3743
|
+
rejectUnknown(raw, TOP_LEVEL, "top-level", file, newer);
|
|
3744
|
+
rejectUnknown(raw.hooks, new Set(HOOK_NAMES), "hooks", file, newer);
|
|
3745
|
+
rejectUnknown(raw.labels, new Set(HOOK_NAMES), "labels", file, newer);
|
|
3746
|
+
rejectUnknown(raw.release, RELEASE_KEYS, "release", file, newer);
|
|
3747
|
+
rejectUnknown(raw.release?.ci, CI_KEYS, "release.ci", file, newer);
|
|
3748
|
+
rejectUnknown(raw.release?.verify, VERIFY_KEYS, "release.verify", file, newer);
|
|
3749
|
+
rejectUnknown(raw.release?.isolateFailures, ISOLATE_KEYS, "release.isolateFailures", file, newer);
|
|
3750
|
+
rejectUnknown(raw.branch, BRANCH_KEYS, "branch", file, newer);
|
|
3751
|
+
rejectUnknown(raw.worktrees, /* @__PURE__ */ new Set(["copy", "prefix", "name"]), "worktrees", file, newer);
|
|
3752
|
+
rejectUnknown(raw.periscope, /* @__PURE__ */ new Set(["inspector"]), "periscope", file, newer);
|
|
3753
|
+
rejectUnknown(raw.docs, /* @__PURE__ */ new Set(["triagePolicy", "designGuide"]), "docs", file, newer);
|
|
3754
|
+
rejectUnknown(raw.sandbox, SANDBOX_KEYS, "sandbox", file, newer);
|
|
3713
3755
|
const sandboxNetwork = parseSandboxNetwork(raw.sandbox, file, (m) => new RepoConfigError(m));
|
|
3714
3756
|
if (raw.version === void 0) throw new RepoConfigError(`${file}: version is required`);
|
|
3715
3757
|
if (raw.version !== SPEC_VERSION) {
|
|
@@ -3919,6 +3961,7 @@ function parseRepoConfig(text2, file) {
|
|
|
3919
3961
|
}
|
|
3920
3962
|
return {
|
|
3921
3963
|
version: SPEC_VERSION,
|
|
3964
|
+
...newer && newer.ignored.length > 0 ? { newerContract: { required: newer.required, running: newer.running, keys: newer.ignored } } : {},
|
|
3922
3965
|
branch,
|
|
3923
3966
|
worktrees: worktrees2,
|
|
3924
3967
|
...inspectorRaw ? { periscope: { inspector: inspectorRaw } } : {},
|
|
@@ -4055,6 +4098,7 @@ function resolveRepoConfig(repo, ship, dir) {
|
|
|
4055
4098
|
);
|
|
4056
4099
|
return {
|
|
4057
4100
|
version: SPEC_VERSION,
|
|
4101
|
+
...repo?.newerContract ? { newerContract: repo.newerContract } : {},
|
|
4058
4102
|
// Repo-only, like platform: what a repo needs installed is a fact about it.
|
|
4059
4103
|
...repo?.sandbox ? { sandbox: repo.sandbox } : {},
|
|
4060
4104
|
worktrees: {
|
|
@@ -6866,6 +6910,14 @@ function seatKeyUnreadableItem(route2, seat, storeError, nowIso = (/* @__PURE__
|
|
|
6866
6910
|
}
|
|
6867
6911
|
var repoContractRefusedKey = (repo) => `repo_contract_refused:${repo}`;
|
|
6868
6912
|
function repoContractRefusedItem(repo, detail, nowIso = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
6913
|
+
if (detail.includes(NEWER_CONTRACT_PHRASE)) {
|
|
6914
|
+
return {
|
|
6915
|
+
kind: "repo_contract_refused",
|
|
6916
|
+
key: repoContractRefusedKey(repo),
|
|
6917
|
+
since: nowIso,
|
|
6918
|
+
message: `${repo}: this crew is older than its repo contract needs and the repository is skipped \u2014 ${detail}. Upgrade crew to resume; \`crew doctor\` names the versions`
|
|
6919
|
+
};
|
|
6920
|
+
}
|
|
6869
6921
|
return {
|
|
6870
6922
|
kind: "repo_contract_refused",
|
|
6871
6923
|
key: repoContractRefusedKey(repo),
|
|
@@ -6873,6 +6925,15 @@ function repoContractRefusedItem(repo, detail, nowIso = (/* @__PURE__ */ new Dat
|
|
|
6873
6925
|
message: `${repo}: its repo contract is refused and the repository is skipped \u2014 ${detail}. Resumes automatically once the file is valid on its base; \`crew doctor\` names the problem`
|
|
6874
6926
|
};
|
|
6875
6927
|
}
|
|
6928
|
+
var repoContractNewerKey = (repo) => `repo_contract_newer:${repo}`;
|
|
6929
|
+
function repoContractNewerItem(repo, note, nowIso = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
6930
|
+
return {
|
|
6931
|
+
kind: "repo_contract_newer",
|
|
6932
|
+
key: repoContractNewerKey(repo),
|
|
6933
|
+
since: nowIso,
|
|
6934
|
+
message: `${repo}: ${newerContractSummary(note)}; the repository is still served`
|
|
6935
|
+
};
|
|
6936
|
+
}
|
|
6876
6937
|
var repoPlatformUnreleasableKey = (repo) => `repo_platform_unreleasable:${repo}`;
|
|
6877
6938
|
function repoPlatformUnreleasableItem(repo, detail, nowIso = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
6878
6939
|
return {
|
|
@@ -19453,17 +19514,6 @@ function realPoolMemberDeps(o) {
|
|
|
19453
19514
|
// src/crew-floor.ts
|
|
19454
19515
|
import { TablationApiError as TablationApiError4 } from "@tablation/client";
|
|
19455
19516
|
var CREW_OUTDATED_KEY = "crew_outdated";
|
|
19456
|
-
function parseVersion(v) {
|
|
19457
|
-
const m = /^v?(\d+)\.(\d+)\.(\d+)/.exec(v.trim());
|
|
19458
|
-
return m ? [Number(m[1]), Number(m[2]), Number(m[3])] : null;
|
|
19459
|
-
}
|
|
19460
|
-
function compareVersions(a, b) {
|
|
19461
|
-
const pa = parseVersion(a);
|
|
19462
|
-
const pb = parseVersion(b);
|
|
19463
|
-
if (!pa || !pb) return null;
|
|
19464
|
-
for (let i = 0; i < 3; i++) if (pa[i] !== pb[i]) return pa[i] - pb[i];
|
|
19465
|
-
return 0;
|
|
19466
|
-
}
|
|
19467
19517
|
function belowFloor(have, floor) {
|
|
19468
19518
|
if (!floor) return false;
|
|
19469
19519
|
const c = compareVersions(have, floor);
|
|
@@ -28562,6 +28612,7 @@ function renderRepoCheck(r) {
|
|
|
28562
28612
|
` branch.name ${e.branch.name}`,
|
|
28563
28613
|
` branch.push ${e.branch.push}`
|
|
28564
28614
|
];
|
|
28615
|
+
if (e.newerContract) lines2.push(` newer contract: ${newerContractSummary(e.newerContract)}`);
|
|
28565
28616
|
for (const s of r.samples) lines2.push(` ${s.case}: branch ${s.branch}, worktree ../${s.worktree}`);
|
|
28566
28617
|
if (r.mapFile) {
|
|
28567
28618
|
const m = r.mapFile;
|
|
@@ -29737,7 +29788,7 @@ import { dirname as dirOf2, resolve as resolvePath } from "path";
|
|
|
29737
29788
|
import { existsSync as existsSync56, readdirSync as readdirSync18, statSync as statSync17 } from "fs";
|
|
29738
29789
|
import { join as join61 } from "path";
|
|
29739
29790
|
function builtVersion() {
|
|
29740
|
-
return true ? "0.
|
|
29791
|
+
return true ? "0.168.0" : null;
|
|
29741
29792
|
}
|
|
29742
29793
|
var REBUILD_HINT = "rebuild with npm run build";
|
|
29743
29794
|
function newestMtime(path) {
|
|
@@ -31779,6 +31830,10 @@ function findPeriscope(sidecars, segment) {
|
|
|
31779
31830
|
|
|
31780
31831
|
// src/cli.ts
|
|
31781
31832
|
var CREW_HOME = isCompiledBinary(import.meta.url) ? dirname38(process.execPath) : resolve7(dirname38(fileURLToPath2(import.meta.url)), "..");
|
|
31833
|
+
{
|
|
31834
|
+
const v = crewVersion(CREW_HOME);
|
|
31835
|
+
if (v !== "0.0.0") setRunningCrewVersion(v);
|
|
31836
|
+
}
|
|
31782
31837
|
var RELEASE_LOCK_TTL_MS = 20 * 60 * 1e3;
|
|
31783
31838
|
var CYCLE_SECONDS2 = 120;
|
|
31784
31839
|
var STALE_CYCLES = 3;
|
|
@@ -33070,6 +33125,14 @@ ${changed2.map((c) => ` - ${c}
|
|
|
33070
33125
|
}
|
|
33071
33126
|
const refused = new Set(errors.map((e) => e.repo));
|
|
33072
33127
|
for (const t of reposOf(c)) if (!refused.has(t.name)) clearShipAttention(state, repoContractRefusedKey(t.name));
|
|
33128
|
+
const newer = new Map(settled.filter((r) => r.config.newerContract).map((r) => [r.name, r.config.newerContract]));
|
|
33129
|
+
for (const [repo, note] of newer) {
|
|
33130
|
+
try {
|
|
33131
|
+
await raiseShipAttention({ state, emit }, repoContractNewerItem(repo, note));
|
|
33132
|
+
} catch {
|
|
33133
|
+
}
|
|
33134
|
+
}
|
|
33135
|
+
for (const t of reposOf(c)) if (!newer.has(t.name)) clearShipAttention(state, repoContractNewerKey(t.name));
|
|
33073
33136
|
return { settled, errors };
|
|
33074
33137
|
}
|
|
33075
33138
|
async function shipNeedsDocker() {
|
|
@@ -24714,6 +24714,19 @@ function parseSandboxNetwork(raw, file, fail2) {
|
|
|
24714
24714
|
return { hosts, toolchains };
|
|
24715
24715
|
}
|
|
24716
24716
|
|
|
24717
|
+
// src/version-compare.ts
|
|
24718
|
+
function parseVersion(v) {
|
|
24719
|
+
const m = /^v?(\d+)\.(\d+)\.(\d+)/.exec(v.trim());
|
|
24720
|
+
return m ? [Number(m[1]), Number(m[2]), Number(m[3])] : null;
|
|
24721
|
+
}
|
|
24722
|
+
function compareVersions(a, b) {
|
|
24723
|
+
const pa = parseVersion(a);
|
|
24724
|
+
const pb = parseVersion(b);
|
|
24725
|
+
if (!pa || !pb) return null;
|
|
24726
|
+
for (let i = 0; i < 3; i++) if (pa[i] !== pb[i]) return pa[i] - pb[i];
|
|
24727
|
+
return 0;
|
|
24728
|
+
}
|
|
24729
|
+
|
|
24717
24730
|
// src/platform.ts
|
|
24718
24731
|
var PLATFORM_REQUIREMENTS = ["any", "unix", "macos", "linux", "windows"];
|
|
24719
24732
|
function isPlatformRequirement(v) {
|
|
@@ -24725,6 +24738,11 @@ var SPEC_VERSION = 1;
|
|
|
24725
24738
|
var REPO_CONFIG_FILENAMES = [".crew.yaml", ".crew.yml", ".crew.json"];
|
|
24726
24739
|
var RepoConfigError = class extends Error {
|
|
24727
24740
|
};
|
|
24741
|
+
var NewerContractError = class extends RepoConfigError {
|
|
24742
|
+
};
|
|
24743
|
+
var NEWER_CONTRACT_PHRASE = "needs a newer crew";
|
|
24744
|
+
var runningCrewVersion;
|
|
24745
|
+
var IGNORABLE_UNKNOWN_KEY_GROUPS = /* @__PURE__ */ new Set(["release", "release.isolateFailures", "labels", "periscope", "docs"]);
|
|
24728
24746
|
function versionFileProblem(name, text) {
|
|
24729
24747
|
const remedy = `a version file that is not a JSON object with a string "version" needs hooks.bump instead of release.versionFiles (docs/REPO_SPEC.md)`;
|
|
24730
24748
|
let doc;
|
|
@@ -24758,6 +24776,7 @@ var HOOK_NAMES = [
|
|
|
24758
24776
|
];
|
|
24759
24777
|
var TOP_LEVEL = /* @__PURE__ */ new Set([
|
|
24760
24778
|
"version",
|
|
24779
|
+
"minCrewVersion",
|
|
24761
24780
|
"platform",
|
|
24762
24781
|
"shell",
|
|
24763
24782
|
"branch",
|
|
@@ -24850,10 +24869,20 @@ function findRepoConfig(dir) {
|
|
|
24850
24869
|
}
|
|
24851
24870
|
return null;
|
|
24852
24871
|
}
|
|
24853
|
-
function rejectUnknown(obj, allowed, where, file) {
|
|
24872
|
+
function rejectUnknown(obj, allowed, where, file, newer) {
|
|
24854
24873
|
if (!obj || typeof obj !== "object") return;
|
|
24855
24874
|
const unknown2 = Object.keys(obj).filter((k) => !allowed.has(k));
|
|
24856
24875
|
if (unknown2.length > 0) {
|
|
24876
|
+
if (newer) {
|
|
24877
|
+
const paths = unknown2.map((k) => where === "top-level" ? k : `${where}.${k}`);
|
|
24878
|
+
if (IGNORABLE_UNKNOWN_KEY_GROUPS.has(where)) {
|
|
24879
|
+
newer.ignored.push(...paths);
|
|
24880
|
+
return;
|
|
24881
|
+
}
|
|
24882
|
+
throw new NewerContractError(
|
|
24883
|
+
`${file}: ${paths.join(", ")} ${paths.length === 1 ? "is" : "are"} not known to crew ${newer.running}, and the file declares minCrewVersion ${newer.required}: this repository ${NEWER_CONTRACT_PHRASE} (${newer.required} or later) and is skipped until crew is upgraded`
|
|
24884
|
+
);
|
|
24885
|
+
}
|
|
24857
24886
|
throw new RepoConfigError(
|
|
24858
24887
|
`${file}: unknown ${where} ${unknown2.length === 1 ? "key" : "keys"}: ${unknown2.join(", ")} (allowed: ${[...allowed].sort().join(", ")})`
|
|
24859
24888
|
);
|
|
@@ -24896,7 +24925,7 @@ function parseSandbox(raw, file) {
|
|
|
24896
24925
|
if (!image && packages.length === 0 && setup.length === 0 && warm.length === 0) return void 0;
|
|
24897
24926
|
return { ...image ? { image } : {}, packages, setup, warm };
|
|
24898
24927
|
}
|
|
24899
|
-
function parseRepoConfig(text, file) {
|
|
24928
|
+
function parseRepoConfig(text, file, opts = {}) {
|
|
24900
24929
|
let raw;
|
|
24901
24930
|
try {
|
|
24902
24931
|
raw = file.endsWith(".json") ? JSON.parse(text) : (0, import_yaml2.parse)(text);
|
|
@@ -24904,18 +24933,25 @@ function parseRepoConfig(text, file) {
|
|
|
24904
24933
|
throw new RepoConfigError(`${file}: could not be parsed \u2014 ${e.message}`);
|
|
24905
24934
|
}
|
|
24906
24935
|
if (!raw || typeof raw !== "object") throw new RepoConfigError(`${file} is empty or not a mapping`);
|
|
24907
|
-
|
|
24908
|
-
|
|
24909
|
-
|
|
24910
|
-
|
|
24911
|
-
|
|
24912
|
-
|
|
24913
|
-
|
|
24914
|
-
rejectUnknown(raw
|
|
24915
|
-
rejectUnknown(raw.
|
|
24916
|
-
rejectUnknown(raw.
|
|
24917
|
-
rejectUnknown(raw.
|
|
24918
|
-
rejectUnknown(raw.
|
|
24936
|
+
const minRaw = raw.minCrewVersion;
|
|
24937
|
+
if (minRaw !== void 0 && (typeof minRaw !== "string" || !/^\d+\.\d+\.\d+$/.test(minRaw.trim()))) {
|
|
24938
|
+
throw new RepoConfigError(`${file}: minCrewVersion must be a version like "0.167.0" (got "${String(minRaw)}")`);
|
|
24939
|
+
}
|
|
24940
|
+
const running = opts.crewVersion ?? runningCrewVersion;
|
|
24941
|
+
const newerThanRunning = typeof minRaw === "string" && running !== void 0 && parseVersion(running) !== null && (compareVersions(running, minRaw) ?? 0) < 0;
|
|
24942
|
+
const newer = newerThanRunning ? { required: minRaw.trim(), running, ignored: [] } : void 0;
|
|
24943
|
+
rejectUnknown(raw, TOP_LEVEL, "top-level", file, newer);
|
|
24944
|
+
rejectUnknown(raw.hooks, new Set(HOOK_NAMES), "hooks", file, newer);
|
|
24945
|
+
rejectUnknown(raw.labels, new Set(HOOK_NAMES), "labels", file, newer);
|
|
24946
|
+
rejectUnknown(raw.release, RELEASE_KEYS, "release", file, newer);
|
|
24947
|
+
rejectUnknown(raw.release?.ci, CI_KEYS, "release.ci", file, newer);
|
|
24948
|
+
rejectUnknown(raw.release?.verify, VERIFY_KEYS, "release.verify", file, newer);
|
|
24949
|
+
rejectUnknown(raw.release?.isolateFailures, ISOLATE_KEYS, "release.isolateFailures", file, newer);
|
|
24950
|
+
rejectUnknown(raw.branch, BRANCH_KEYS, "branch", file, newer);
|
|
24951
|
+
rejectUnknown(raw.worktrees, /* @__PURE__ */ new Set(["copy", "prefix", "name"]), "worktrees", file, newer);
|
|
24952
|
+
rejectUnknown(raw.periscope, /* @__PURE__ */ new Set(["inspector"]), "periscope", file, newer);
|
|
24953
|
+
rejectUnknown(raw.docs, /* @__PURE__ */ new Set(["triagePolicy", "designGuide"]), "docs", file, newer);
|
|
24954
|
+
rejectUnknown(raw.sandbox, SANDBOX_KEYS, "sandbox", file, newer);
|
|
24919
24955
|
const sandboxNetwork = parseSandboxNetwork(raw.sandbox, file, (m) => new RepoConfigError(m));
|
|
24920
24956
|
if (raw.version === void 0) throw new RepoConfigError(`${file}: version is required`);
|
|
24921
24957
|
if (raw.version !== SPEC_VERSION) {
|
|
@@ -25125,6 +25161,7 @@ function parseRepoConfig(text, file) {
|
|
|
25125
25161
|
}
|
|
25126
25162
|
return {
|
|
25127
25163
|
version: SPEC_VERSION,
|
|
25164
|
+
...newer && newer.ignored.length > 0 ? { newerContract: { required: newer.required, running: newer.running, keys: newer.ignored } } : {},
|
|
25128
25165
|
branch,
|
|
25129
25166
|
worktrees,
|
|
25130
25167
|
...inspectorRaw ? { periscope: { inspector: inspectorRaw } } : {},
|
|
@@ -158,7 +158,7 @@ Finish with a short report:
|
|
|
158
158
|
|
|
159
159
|
## Reference
|
|
160
160
|
|
|
161
|
-
Top-level keys: `version`, `platform`, `shell`, `branch`, `worktrees`, `docs`, `hooks`, `labels`, `release`, `sandbox`, `periscope`. Nothing else is accepted. The tables list the settings this task can need. The specification has the rest (branch and worktree naming, `shell`, `periscope`, `sandbox`, per-machine release settings); leave those unset unless I ask for them.
|
|
161
|
+
Top-level keys: `version`, `minCrewVersion` (leave it unset), `platform`, `shell`, `branch`, `worktrees`, `docs`, `hooks`, `labels`, `release`, `sandbox`, `periscope`. Nothing else is accepted. The tables list the settings this task can need. The specification has the rest (branch and worktree naming, `shell`, `periscope`, `sandbox`, per-machine release settings); leave those unset unless I ask for them.
|
|
162
162
|
|
|
163
163
|
| Key | Values and meaning |
|
|
164
164
|
| --- | --- |
|
package/package.json
CHANGED