@ai-matrx/records 0.78.0 → 0.78.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.
@@ -9171,6 +9171,7 @@ async function archiveTableRow(client, table, rowId) {
9171
9171
  var import_uuid4 = require("@ai-matrx/kit/uuid");
9172
9172
 
9173
9173
  // src/newerKinds.ts
9174
+ var import_format = require("@ai-matrx/kit/format");
9174
9175
  var NEWER_FIELD_KINDS = [
9175
9176
  "rating",
9176
9177
  "duration",
@@ -9215,12 +9216,7 @@ function ratingMaxOf(field2) {
9215
9216
  function durationText(seconds) {
9216
9217
  const n = typeof seconds === "number" ? seconds : typeof seconds === "string" && seconds.trim() !== "" ? Number(seconds) : NaN;
9217
9218
  if (!Number.isFinite(n)) return null;
9218
- const whole = Math.round(Math.abs(n));
9219
- const h = Math.floor(whole / 3600);
9220
- const m = Math.floor(whole % 3600 / 60);
9221
- const s = whole % 60;
9222
- const sign = n < 0 ? "-" : "";
9223
- return s === 0 ? `${sign}${h}:${String(m).padStart(2, "0")}` : `${sign}${h}:${String(m).padStart(2, "0")}:${String(s).padStart(2, "0")}`;
9219
+ return (0, import_format.formatDurationSeconds)(Math.round(n), { granularity: "minute", signed: true });
9224
9220
  }
9225
9221
  function readTypedDuration(text2) {
9226
9222
  const t = text2.trim().toLowerCase();