@wairon/cli 5.1.1-dev.77 → 5.1.1-dev.78
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/index.js +13 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var init_defaults = __esm({
|
|
|
65
65
|
copilot: ".github/prompts",
|
|
66
66
|
codex: ".codex/agents"
|
|
67
67
|
};
|
|
68
|
-
WAIRON_VERSION = "5.1.1-dev.
|
|
68
|
+
WAIRON_VERSION = "5.1.1-dev.78";
|
|
69
69
|
GITHUB_REPO = "SYW-Apps/Waffle-AIron";
|
|
70
70
|
SUPPORTED_ALIASES = ["wai"];
|
|
71
71
|
SCAN_EXCLUDE_DIRS = /* @__PURE__ */ new Set([
|
|
@@ -30224,9 +30224,10 @@ function candidateOptions() {
|
|
|
30224
30224
|
function noticesFrom(verdict) {
|
|
30225
30225
|
return verdict.warnings.map((w) => `${w.code}: ${w.message}`);
|
|
30226
30226
|
}
|
|
30227
|
-
function componentCandidateGate(options = candidateOptions()) {
|
|
30227
|
+
function componentCandidateGate(options = candidateOptions(), storedOwner) {
|
|
30228
30228
|
return {
|
|
30229
30229
|
gate: (kind, merged) => {
|
|
30230
|
+
refuseUnknownOwner(kind, merged, storedOwner);
|
|
30230
30231
|
if (kind !== "component") return;
|
|
30231
30232
|
const verdict = validateComponentCandidate(merged, options);
|
|
30232
30233
|
if (verdict.errors.length) throw new Error(formatCandidateRefusal(verdict));
|
|
@@ -30234,6 +30235,14 @@ function componentCandidateGate(options = candidateOptions()) {
|
|
|
30234
30235
|
}
|
|
30235
30236
|
};
|
|
30236
30237
|
}
|
|
30238
|
+
function refuseUnknownOwner(kind, merged, storedOwner) {
|
|
30239
|
+
if (kind !== "component" && kind !== "type") return;
|
|
30240
|
+
const owner = merged.subsystem;
|
|
30241
|
+
if (!owner || owner === storedOwner) return;
|
|
30242
|
+
if (loadSpec("subsystem", owner)) return;
|
|
30243
|
+
const sentence = MISSING_PARENT[kind](owner);
|
|
30244
|
+
throw new Error(`${sentence} Nothing was written.`);
|
|
30245
|
+
}
|
|
30237
30246
|
function restatementParent(restatement) {
|
|
30238
30247
|
const spec = restatement.spec;
|
|
30239
30248
|
switch (restatement.kind) {
|
|
@@ -30497,9 +30506,9 @@ function deleteSpec2(kind, id) {
|
|
|
30497
30506
|
}
|
|
30498
30507
|
function updateSpecGated(kind, id, delta, dryRun) {
|
|
30499
30508
|
const bound2 = candidateOptions();
|
|
30500
|
-
const gate = componentCandidateGate(bound2);
|
|
30501
30509
|
const testRoots = bound2.rules?.conformance?.testRoots ?? [];
|
|
30502
|
-
const stored =
|
|
30510
|
+
const stored = loadSpec(kind, id);
|
|
30511
|
+
const gate = componentCandidateGate(bound2, stored?.subsystem);
|
|
30503
30512
|
const report2 = updateSpec(kind, id, delta, gate, dryRun);
|
|
30504
30513
|
const changed = changedMethods(report2);
|
|
30505
30514
|
if (changed.length > 0 && testRoots.length > 0) {
|