busroot-sdk 0.0.8-dev.2791703343 → 0.0.8-dev.2797155609

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.
Files changed (2) hide show
  1. package/build/index.js +11 -5
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -774,7 +774,7 @@ var require_base_station = __commonJS({
774
774
  // allowScheduleCutShort, allowRejectProduction, allowEditPartsPerCycle, schedulingOnly) are now
775
775
  // registry-managed tri-state `enable*` fields, added below via flagSchemaFieldsForLevel("station").
776
776
  // Current State
777
- currentOperatorInitials: zod_1.z.string().min(3).max(3).nullish().describe("Current Operator Initials: Current operator's initials (exactly 3 characters, system managed)"),
777
+ currentOperatorInitials: zod_1.z.string().min(3).max(8).nullish().describe("Current Operator Initials: Current operator's initials (3-8 letters/numbers, system managed)"),
778
778
  statusCode: zod_1.z.string().nullish().describe("Status Code: Current status code of the station (system managed)"),
779
779
  statusCodeUpdatedAt: zod_1.z.string().nullish().describe("Status Code Updated At: Timestamp when status was last updated (ISO 8601, system managed)"),
780
780
  // Performance Mode
@@ -7796,6 +7796,7 @@ var require_reason4 = __commonJS({
7796
7796
  exports2.reasonByCode = reasonByCode;
7797
7797
  exports2.subtreeReasonCodes = subtreeReasonCodes;
7798
7798
  exports2.reasonBreadcrumb = reasonBreadcrumb;
7799
+ exports2.withReasonCodeFallbackBreadcrumbs = withReasonCodeFallbackBreadcrumbs;
7799
7800
  exports2.withAncestorReasons = withAncestorReasons;
7800
7801
  var reason_1 = require_reason3();
7801
7802
  function flattenReasons(reasons, parentReasonCode, inheritedRequireNotes) {
@@ -7885,6 +7886,9 @@ var require_reason4 = __commonJS({
7885
7886
  }
7886
7887
  return chain;
7887
7888
  }
7889
+ function withReasonCodeFallbackBreadcrumbs(items) {
7890
+ return items.map((item) => item.reasonCode != null && !item.reasonBreadcrumb?.length ? { ...item, reasonBreadcrumb: [{ code: item.reasonCode, description: item.reasonCode }] } : item);
7891
+ }
7888
7892
  function withAncestorReasons(visible, allReasons) {
7889
7893
  const present = new Map(visible.map((r) => [r.code, r]));
7890
7894
  const result = [...visible];
@@ -9154,12 +9158,13 @@ var require_oee2 = __commonJS({
9154
9158
  i = j;
9155
9159
  } while (j < stationWindows.length);
9156
9160
  if (duration) {
9161
+ const fallbackDescription = s === exports2.UNKNOWN_DATA.key ? exports2.UNKNOWN_DATA.value : s;
9157
9162
  const breadcrumb = nonProductionCauseService != null ? nonProductionCauseService.getCauseBreadcrumb(s) : [];
9158
- const description = nonProductionCauseService != null ? breadcrumb.map((c) => c.description).join(" | ") || exports2.UNKNOWN_DATA.value : "";
9163
+ const description = breadcrumb.map((c) => c.description).join(" | ") || fallbackDescription;
9159
9164
  results.push({
9160
9165
  code: s,
9161
9166
  description,
9162
- reasonBreadcrumb: breadcrumb.length > 0 ? breadcrumb : [{ code: s, description: description || exports2.UNKNOWN_DATA.value }],
9167
+ reasonBreadcrumb: breadcrumb.length > 0 ? breadcrumb : [{ code: s, description: fallbackDescription }],
9163
9168
  duration,
9164
9169
  cost: 0,
9165
9170
  percent: 0,
@@ -9209,12 +9214,13 @@ var require_oee2 = __commonJS({
9209
9214
  i = j;
9210
9215
  } while (j < stationWindows.length);
9211
9216
  if (duration) {
9217
+ const fallbackDescription = s === exports2.UNKNOWN_DATA.key ? exports2.UNKNOWN_DATA.value : s;
9212
9218
  const breadcrumb = reasonCauseService != null ? reasonCauseService.getCauseBreadcrumb(s) : [];
9213
- const description = reasonCauseService != null ? breadcrumb.map((c) => c.description).join(" | ") || exports2.UNKNOWN_DATA.value : "";
9219
+ const description = breadcrumb.map((c) => c.description).join(" | ") || fallbackDescription;
9214
9220
  results.push({
9215
9221
  code: s,
9216
9222
  description,
9217
- reasonBreadcrumb: breadcrumb.length > 0 ? breadcrumb : [{ code: s, description: description || exports2.UNKNOWN_DATA.value }],
9223
+ reasonBreadcrumb: breadcrumb.length > 0 ? breadcrumb : [{ code: s, description: fallbackDescription }],
9218
9224
  duration,
9219
9225
  cost: issueDowntimeCost,
9220
9226
  energy: energyDowntime,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "busroot-sdk",
3
- "version": "0.0.8-dev.2791703343",
3
+ "version": "0.0.8-dev.2797155609",
4
4
  "description": "An SDK for accessing Busroot from output.industries",
5
5
  "homepage": "https://www.output.industries",
6
6
  "main": "./build/index.js",