@almadar/core 10.65.0 → 10.66.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.
@@ -1,7 +1,7 @@
1
- import { O as OrbitalSchema } from '../schema-BBcQsU1e.js';
2
- export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessTable } from '../entityAccess-BrSu-_jI.js';
3
- import { a as EntityPersistence, E as EntityField, F as FieldValue, f as EntityRow } from '../effect-COsZyQ3w.js';
4
- import '../trait-DjBq4fW8.js';
1
+ import { O as OrbitalSchema } from '../schema-DwFRl8ZS.js';
2
+ export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessTable } from '../entityAccess-B5nbSI6L.js';
3
+ import { a as EntityPersistence, E as EntityField, F as FieldValue, f as EntityRow } from '../effect-BTXY2wl8.js';
4
+ import '../trait-CzOtZitc.js';
5
5
  import '../expression-Fk8bQWef.js';
6
6
  import 'zod';
7
7
 
@@ -62,68 +62,66 @@ function randomAnytimeDate() {
62
62
  return new Date(now - age);
63
63
  }
64
64
  var LOREM_WORDS = [
65
- "lorem",
66
- "ipsum",
67
- "dolor",
68
- "sit",
69
- "amet",
70
- "consectetur",
71
- "adipiscing",
72
- "elit",
73
- "sed",
74
- "do",
75
- "eiusmod",
76
- "tempor",
77
- "incididunt",
78
- "ut",
79
- "labore",
80
- "et",
81
- "dolore",
82
- "magna",
83
- "aliqua",
84
- "enim",
85
- "ad",
86
- "minim",
87
- "veniam",
88
- "quis",
89
- "nostrud",
90
- "exercitation",
91
- "ullamco",
92
- "laboris",
93
- "nisi",
94
- "aliquip",
95
- "ex",
96
- "ea",
97
- "commodo",
98
- "consequat",
99
- "duis",
100
- "aute",
101
- "irure",
102
- "in",
103
- "reprehenderit",
104
- "voluptate",
105
- "velit",
106
- "esse",
107
- "cillum",
108
- "fugiat",
109
- "nulla",
110
- "pariatur",
111
- "excepteur",
112
- "sint",
113
- "occaecat",
114
- "cupidatat",
115
- "non",
116
- "proident",
117
- "sunt",
118
- "culpa",
119
- "qui",
120
- "officia",
121
- "deserunt",
122
- "mollit",
123
- "anim",
124
- "id",
125
- "est",
126
- "laborum"
65
+ "harbor",
66
+ "summit",
67
+ "meridian",
68
+ "atlas",
69
+ "beacon",
70
+ "cedar",
71
+ "delta",
72
+ "ember",
73
+ "falcon",
74
+ "garnet",
75
+ "horizon",
76
+ "indigo",
77
+ "juniper",
78
+ "keystone",
79
+ "lantern",
80
+ "meadow",
81
+ "nimbus",
82
+ "orchard",
83
+ "pioneer",
84
+ "quarry",
85
+ "redwood",
86
+ "sierra",
87
+ "timber",
88
+ "umber",
89
+ "vista",
90
+ "willow",
91
+ "zenith",
92
+ "anchor",
93
+ "basalt",
94
+ "canyon",
95
+ "drift",
96
+ "estuary",
97
+ "fjord",
98
+ "grove",
99
+ "heath",
100
+ "inlet",
101
+ "jade",
102
+ "knoll",
103
+ "lagoon",
104
+ "mesa",
105
+ "north",
106
+ "onyx",
107
+ "prairie",
108
+ "quartz",
109
+ "ridge",
110
+ "slate",
111
+ "terrace",
112
+ "upland",
113
+ "valley",
114
+ "wharf",
115
+ "yonder",
116
+ "aspen",
117
+ "brook",
118
+ "cove",
119
+ "dune",
120
+ "elm",
121
+ "fern",
122
+ "glen",
123
+ "haven",
124
+ "isle"
127
125
  ];
128
126
  function randomWords(count) {
129
127
  const words = [];
@@ -733,7 +731,7 @@ function sampleText(field, ctx) {
733
731
  if (IMAGE_FIELD_NAMES.has(fieldName.toLowerCase())) {
734
732
  return sampleImageUrl(ctx.entityName, fieldName, ctx);
735
733
  }
736
- return ctx.strategy === "seeded" ? randomWords(2) : `${titleCase(fieldName)} ${ctx.index}`;
734
+ return ctx.strategy === "seeded" ? titleCase(randomWords(2)) : `${titleCase(fieldName)} ${ctx.index}`;
737
735
  }
738
736
  function sampleDate(ctx, dateOnly) {
739
737
  if (ctx.strategy === "index") {
@@ -804,16 +802,17 @@ function sampleFieldValue(field, ctx) {
804
802
  return sampleImageUrl(ctx.entityName, field.name ?? "image", ctx);
805
803
  case "number": {
806
804
  if (ctx.strategy === "seeded") {
807
- return randomInt({ min: field.min ?? 0, max: field.max ?? 100 });
805
+ return randomInt({ min: field.min ?? 1, max: field.max ?? 250 });
808
806
  }
809
807
  const stepped = (field.min ?? 0) + ctx.index * 10;
810
808
  return field.max !== void 0 && stepped > field.max ? field.max : stepped;
811
809
  }
812
810
  // Money is numeric at rest — same sampling as `number` (index strategy
813
- // mirrors the Rust seeder for the shared parity fixture).
811
+ // mirrors the Rust seeder for the shared parity fixture). Seeded fallback
812
+ // avoids $0.00 amounts for the same reason as `number`.
814
813
  case "money": {
815
814
  if (ctx.strategy === "seeded") {
816
- return randomInt({ min: field.min ?? 0, max: field.max ?? 100 });
815
+ return randomInt({ min: field.min ?? 10, max: field.max ?? 900 });
817
816
  }
818
817
  const steppedMoney = (field.min ?? 0) + ctx.index * 10;
819
818
  return field.max !== void 0 && steppedMoney > field.max ? field.max : steppedMoney;