@lotics/cli 0.211.0 → 0.212.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/src/cli.js +13 -5
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -42733,7 +42733,7 @@ function resultSideEffects(result) {
|
|
|
42733
42733
|
}
|
|
42734
42734
|
|
|
42735
42735
|
// src/version.ts
|
|
42736
|
-
var VERSION = "0.
|
|
42736
|
+
var VERSION = "0.212.0";
|
|
42737
42737
|
|
|
42738
42738
|
// src/timezone.ts
|
|
42739
42739
|
function machineTimezone() {
|
|
@@ -55002,7 +55002,7 @@ function planWorkflows(entry, roles, templates = /* @__PURE__ */ new Map()) {
|
|
|
55002
55002
|
append.link.alias,
|
|
55003
55003
|
append.stage.alias,
|
|
55004
55004
|
append.at.alias,
|
|
55005
|
-
...append.by === void 0 ? [] : [append.by.alias]
|
|
55005
|
+
...append.by === void 0 ? [] : [append.by.column.alias]
|
|
55006
55006
|
]);
|
|
55007
55007
|
}
|
|
55008
55008
|
}
|
|
@@ -55175,7 +55175,7 @@ function writeSource(entry) {
|
|
|
55175
55175
|
if (field.type === "select_record_link") {
|
|
55176
55176
|
return [write(`set: { ${str(bound.id)}: i.${bound.alias} == null ? null : [i.${bound.alias}] }`, bound.alias)];
|
|
55177
55177
|
}
|
|
55178
|
-
if (append !== void 0 &&
|
|
55178
|
+
if (append !== void 0 && bound.id === append.from.id) {
|
|
55179
55179
|
return [
|
|
55180
55180
|
`if (includes(keys(i), ${str(bound.alias)})) {
|
|
55181
55181
|
const stood = await get_record({ table_id: ${str(entry.table.id)}, record_id: i.${param} });
|
|
@@ -55215,7 +55215,9 @@ function historyAppend(entry) {
|
|
|
55215
55215
|
return mirrored === void 0 ? [] : [[option.id, mirrored.id]];
|
|
55216
55216
|
});
|
|
55217
55217
|
if (mapped.length === 0) continue;
|
|
55218
|
-
const
|
|
55218
|
+
const moved = section.history.by;
|
|
55219
|
+
const column = moved === void 0 ? void 0 : child.operands.get(moved.alias);
|
|
55220
|
+
const by = moved === void 0 || column === void 0 ? void 0 : { column, multi: moved.type === "select_member" && moved.multi === true };
|
|
55219
55221
|
return {
|
|
55220
55222
|
table: child.table.id,
|
|
55221
55223
|
tableAlias: child.tableAlias,
|
|
@@ -55242,7 +55244,13 @@ function historyRow(append, record2, stage, pad) {
|
|
|
55242
55244
|
// WHO MOVED IT is the SERVER's answer, never the caller's: a member id sent
|
|
55243
55245
|
// as an input is a value any caller can write, so the stamp would say
|
|
55244
55246
|
// whoever the presser claimed to be.
|
|
55245
|
-
|
|
55247
|
+
//
|
|
55248
|
+
// A COLUMN THAT HOLDS ONE MEMBER TAKES THE BARE ID. Wrapped in a list it is
|
|
55249
|
+
// the multi column's write type, which the single one refuses — and the
|
|
55250
|
+
// list arm cannot carry the `null`, which is why only it branches.
|
|
55251
|
+
...append.by === void 0 ? [] : [
|
|
55252
|
+
`${str(append.by.column.id)}: ${append.by.multi ? "isNull(runtime.triggered_by_member_id) ? null : [runtime.triggered_by_member_id]" : "runtime.triggered_by_member_id"},`
|
|
55253
|
+
]
|
|
55246
55254
|
];
|
|
55247
55255
|
return `${pad}await create_records({
|
|
55248
55256
|
${pad} table_id: ${str(append.table)},
|