unoverse 0.1.173 → 0.1.174
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.
|
@@ -108,6 +108,7 @@ cmd_db_verify() {
|
|
|
108
108
|
dictionary_regions: [
|
|
109
109
|
"region_id", "workflow_id", "depth", "name", "description", "name_locked",
|
|
110
110
|
"locked_at", "locked_by", "stage", "stage_set_by", "needs_review",
|
|
111
|
+
"skills", "skills_set_by", "skills_set_at",
|
|
111
112
|
"derived_from", "first_seen", "last_seen", "closed_at"
|
|
112
113
|
],
|
|
113
114
|
dictionary_content_chunks: [
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ function checkStateOrder(order, rootFolder, file, includeLayouts = false) {
|
|
|
34
34
|
const onDisk = new Set([...stateNames, ...(includeLayouts ? dirNames("layouts") : [])]);
|
|
35
35
|
for (const name of order)
|
|
36
36
|
if (typeof name === "string" && !onDisk.has(name))
|
|
37
|
-
report("error", file, `stateOrder lists "${name}" but no states/${name}${includeLayouts ? ` or layouts/${name}` : ""} definition exists (docs/design/${includeLayouts ? "
|
|
37
|
+
report("error", file, `stateOrder lists "${name}" but no states/${name}${includeLayouts ? ` or layouts/${name}` : ""} definition exists (docs.unoverse.ai/design/${includeLayouts ? "apps" : "components"})`);
|
|
38
38
|
// Only STATES must appear in stateOrder to lock the picker order; the default layout is
|
|
39
39
|
// legitimately omitted, so never warn on layouts.
|
|
40
40
|
for (const name of stateNames)
|
|
@@ -488,6 +488,14 @@ function lintFile(file) {
|
|
|
488
488
|
if (typeof arrival !== "string")
|
|
489
489
|
report("error", file, `a faced component must declare its base state — a v2 state.view tree \`initial\`, or (legacy) manifest.defaultState / state.defaultState (docs.unoverse.ai/design/components)`);
|
|
490
490
|
}
|
|
491
|
+
// A tree DECLARES its order, so an authored stateOrder beside one is a second source
|
|
492
|
+
// of truth that can silently disagree with it. Five docs call this form legacy and
|
|
493
|
+
// nothing enforced it, so a component kept running on one and never heard a word.
|
|
494
|
+
// The old check only fired when a states/ FOLDER existed, which a fragment-based
|
|
495
|
+
// component does not have (docs/doc-control §Guards: enforce rules as tests).
|
|
496
|
+
if (viewTree && json.stateOrder !== undefined)
|
|
497
|
+
report("error", file, `authored "stateOrder" beside a "state.view" tree. The tree declares the order: nest these as substates and delete the list (docs.unoverse.ai/design/state)`);
|
|
498
|
+
|
|
491
499
|
if (stateFiles.length) {
|
|
492
500
|
const order = Array.isArray(json.stateOrder) ? [...json.stateOrder].sort() : null;
|
|
493
501
|
if (!order || !order.length)
|