@lotics/cli 0.257.0 → 0.257.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/dist/src/cli.js +10 -4
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -63785,7 +63785,7 @@ function resultSideEffects(result) {
|
|
|
63785
63785
|
|
|
63786
63786
|
// src/version.ts
|
|
63787
63787
|
init_define_LOTICS_KIT_VERSIONS();
|
|
63788
|
-
var VERSION = "0.257.
|
|
63788
|
+
var VERSION = "0.257.1";
|
|
63789
63789
|
|
|
63790
63790
|
// src/timezone.ts
|
|
63791
63791
|
init_define_LOTICS_KIT_VERSIONS();
|
|
@@ -66325,6 +66325,9 @@ function settledDifferences(where, mine, theirs, renamed) {
|
|
|
66325
66325
|
const held2 = formatWords(theirs);
|
|
66326
66326
|
const line = ` ${where}: model says format ${format2 ?? "none"}, workspace has ${held2 ?? "none"}`;
|
|
66327
66327
|
return [
|
|
66328
|
+
// A constraint is added like a column; one the workspace holds and the model drops stands.
|
|
66329
|
+
...mine.required === true && theirs.required !== true ? [{ side: "create", line: ` ${where}: workspace does not require it` }] : [],
|
|
66330
|
+
...mine.required !== true && theirs.required === true ? [{ side: "standing", line: ` ${where}: workspace requires it, the model does not` }] : [],
|
|
66328
66331
|
...ours === yours ? [] : [{ side: "disagreement", line: ` ${where}: model starts a new row at ${ours ?? "nothing"}, workspace at ${yours ?? "nothing"}` }],
|
|
66329
66332
|
...format2 === held2 ? [] : [
|
|
66330
66333
|
mine.type === "date" ? { side: "standing", line: `${line} \u2014 apply leaves it, since it would rewrite every stored date; state ${held2 ?? "none"} in the model` } : { side: "disagreement", line }
|
|
@@ -66602,7 +66605,7 @@ function scaffoldDelta(entity) {
|
|
|
66602
66605
|
[entity.created_options, "option"],
|
|
66603
66606
|
[entity.created_views, "view"]
|
|
66604
66607
|
].flatMap(([added, noun]) => added === void 0 || added === 0 ? [] : [`+${count(added, noun)}`]),
|
|
66605
|
-
...entity.settled_fields === void 0 || entity.settled_fields === 0 ? [] : [`${count(entity.settled_fields, "field")} set to the model's default, format or unit`]
|
|
66608
|
+
...entity.settled_fields === void 0 || entity.settled_fields === 0 ? [] : [`${count(entity.settled_fields, "field")} set to the model's required, default, format or unit`]
|
|
66606
66609
|
];
|
|
66607
66610
|
return parts.length === 0 ? "" : ` ${parts.join(", ")}`;
|
|
66608
66611
|
}
|
|
@@ -80432,7 +80435,10 @@ ${existing.replace(/^\s+/, "")}`;
|
|
|
80432
80435
|
// src/app_body_create.ts
|
|
80433
80436
|
init_define_LOTICS_KIT_VERSIONS();
|
|
80434
80437
|
function createdInput(field2) {
|
|
80435
|
-
return
|
|
80438
|
+
return `i.${createdInputName(field2)}`;
|
|
80439
|
+
}
|
|
80440
|
+
function createdInputName(field2) {
|
|
80441
|
+
return editedByDelta(field2.field) ? deltaOf(field2).added : field2.alias;
|
|
80436
80442
|
}
|
|
80437
80443
|
function createdDefault(field2) {
|
|
80438
80444
|
const declared = field2.field;
|
|
@@ -80502,7 +80508,7 @@ function createSource(plan) {
|
|
|
80502
80508
|
lines.push(
|
|
80503
80509
|
...validateBlock([
|
|
80504
80510
|
...plan.fields.flatMap(
|
|
80505
|
-
(one) => one.required ? [checkLine(heldEmpty(one.field, createdInput(one.field)), one.field
|
|
80511
|
+
(one) => one.required ? [checkLine(heldEmpty(one.field, createdInput(one.field)), createdInputName(one.field), str(words.refusals.required(one.label)))] : []
|
|
80506
80512
|
),
|
|
80507
80513
|
...valueChecks(plan.fields, words, sending)
|
|
80508
80514
|
])
|