@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/index.js
CHANGED
|
@@ -12083,7 +12083,7 @@ function defaultTargetConfig(type) {
|
|
|
12083
12083
|
enabled: true
|
|
12084
12084
|
};
|
|
12085
12085
|
}
|
|
12086
|
-
var WAIRON_VERSION = "5.1.1-dev.
|
|
12086
|
+
var WAIRON_VERSION = "5.1.1-dev.78";
|
|
12087
12087
|
var GITHUB_REPO = "SYW-Apps/Waffle-AIron";
|
|
12088
12088
|
var ARCHITECT_AGENT_ID = "agent-architect";
|
|
12089
12089
|
var ARCHITECT_TEMPLATE_ID = "architect";
|
|
@@ -28521,9 +28521,10 @@ function candidateOptions() {
|
|
|
28521
28521
|
function noticesFrom(verdict) {
|
|
28522
28522
|
return verdict.warnings.map((w) => `${w.code}: ${w.message}`);
|
|
28523
28523
|
}
|
|
28524
|
-
function componentCandidateGate(options = candidateOptions()) {
|
|
28524
|
+
function componentCandidateGate(options = candidateOptions(), storedOwner) {
|
|
28525
28525
|
return {
|
|
28526
28526
|
gate: (kind, merged) => {
|
|
28527
|
+
refuseUnknownOwner(kind, merged, storedOwner);
|
|
28527
28528
|
if (kind !== "component") return;
|
|
28528
28529
|
const verdict = validateComponentCandidate(merged, options);
|
|
28529
28530
|
if (verdict.errors.length) throw new Error(formatCandidateRefusal(verdict));
|
|
@@ -28531,6 +28532,14 @@ function componentCandidateGate(options = candidateOptions()) {
|
|
|
28531
28532
|
}
|
|
28532
28533
|
};
|
|
28533
28534
|
}
|
|
28535
|
+
function refuseUnknownOwner(kind, merged, storedOwner) {
|
|
28536
|
+
if (kind !== "component" && kind !== "type") return;
|
|
28537
|
+
const owner = merged.subsystem;
|
|
28538
|
+
if (!owner || owner === storedOwner) return;
|
|
28539
|
+
if (loadSpec("subsystem", owner)) return;
|
|
28540
|
+
const sentence = MISSING_PARENT[kind](owner);
|
|
28541
|
+
throw new Error(`${sentence} Nothing was written.`);
|
|
28542
|
+
}
|
|
28534
28543
|
var STORE_MANAGED_FIELDS = /* @__PURE__ */ new Set(["status", "updatedAt"]);
|
|
28535
28544
|
var ALWAYS_CARRIED_FIELDS = /* @__PURE__ */ new Set(["ext"]);
|
|
28536
28545
|
var STATUS_ORDER = ["draft", "design", "complete"];
|
|
@@ -28826,9 +28835,9 @@ function deleteSpec2(kind, id) {
|
|
|
28826
28835
|
}
|
|
28827
28836
|
function updateSpecGated(kind, id, delta, dryRun) {
|
|
28828
28837
|
const bound2 = candidateOptions();
|
|
28829
|
-
const gate = componentCandidateGate(bound2);
|
|
28830
28838
|
const testRoots = bound2.rules?.conformance?.testRoots ?? [];
|
|
28831
|
-
const stored =
|
|
28839
|
+
const stored = loadSpec(kind, id);
|
|
28840
|
+
const gate = componentCandidateGate(bound2, stored?.subsystem);
|
|
28832
28841
|
const report = updateSpec(kind, id, delta, gate, dryRun);
|
|
28833
28842
|
const changed = changedMethods(report);
|
|
28834
28843
|
if (changed.length > 0 && testRoots.length > 0) {
|