@ai-matrx/vault 0.1.24 → 0.1.25

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.25
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/vault/src`.
7
+
3
8
  ## 0.1.24
4
9
 
5
10
  - **A copy or reveal that needs "Confirm it's you" is never silent.** Closing the prompt says "Not confirmed, so nothing was done" once, from `IdentityGate` (every caller already stays quiet about a cancel via `wasCancelled`), so the row buttons, the row's More menu, a host's right-click menu (`rowMenuEntriesAt`) and the keyboard all end in either the copy or a message. Guard: `src/review-0-1-23.test.tsx` § 1. Consumer action: none (a host that passes `notify` receives the line with kind `info`).
package/dist/index.cjs CHANGED
@@ -6776,6 +6776,7 @@ var import_controls25 = require("@ai-matrx/design-system/controls");
6776
6776
  var import_format9 = require("@ai-matrx/kit/format");
6777
6777
 
6778
6778
  // src/lists/logic.ts
6779
+ var import_uuid = require("@ai-matrx/kit/uuid");
6779
6780
  var ENTITY_TYPE = "credential_item";
6780
6781
  var rowsOf = (data) => (Array.isArray(data) ? data : []).filter((r) => r && r.entity_type === ENTITY_TYPE && typeof r.entity_id === "string");
6781
6782
  function favoriteIds(data) {
@@ -6806,7 +6807,6 @@ var REFUSALS = [
6806
6807
  "native_manifest_invalid"
6807
6808
  ];
6808
6809
  var isRefusal = (v) => REFUSALS.includes(v);
6809
- var isUuid = (v) => typeof v === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(v);
6810
6810
  var isCount = (v) => typeof v === "number" && Number.isInteger(v) && v >= 0;
6811
6811
  var INCOMPLETE = "Recovery details were incomplete. Reload Trash and try again.";
6812
6812
  function parseRecoveryPreview(raw) {
@@ -6816,11 +6816,11 @@ function parseRecoveryPreview(raw) {
6816
6816
  const prior = r.prior_was_disabled;
6817
6817
  if (r.supported) {
6818
6818
  const passkeys = r.native_passkeys_count === void 0 ? 0 : r.native_passkeys_count;
6819
- if (!isCount(r.fields_count) || !isCount(r.attachments_count) || passkeys !== 0 && passkeys !== 1 || passkeys === 1 && r.fields_count < 1 || typeof prior !== "boolean" || !isUuid(r.deletion_id) || (r.reason ?? null) !== null) throw new Error(INCOMPLETE);
6819
+ if (!isCount(r.fields_count) || !isCount(r.attachments_count) || passkeys !== 0 && passkeys !== 1 || passkeys === 1 && r.fields_count < 1 || typeof prior !== "boolean" || !(0, import_uuid.isRfc9562Uuid)(r.deletion_id) || (r.reason ?? null) !== null) throw new Error(INCOMPLETE);
6820
6820
  return { supported: true, deletionId: r.deletion_id, fields: r.fields_count, attachments: r.attachments_count, passkeys, priorWasDisabled: prior };
6821
6821
  }
6822
6822
  const deletionId = r.deletion_id ?? null;
6823
- if (deletionId !== null && !isUuid(deletionId) || prior != null && typeof prior !== "boolean" || (r.fields_count ?? null) !== null || (r.attachments_count ?? null) !== null || !isRefusal(r.reason)) throw new Error(INCOMPLETE);
6823
+ if (deletionId !== null && !(0, import_uuid.isRfc9562Uuid)(deletionId) || prior != null && typeof prior !== "boolean" || (r.fields_count ?? null) !== null || (r.attachments_count ?? null) !== null || !isRefusal(r.reason)) throw new Error(INCOMPLETE);
6824
6824
  return { supported: false, deletionId, reason: r.reason, priorWasDisabled: typeof prior === "boolean" ? prior : null };
6825
6825
  }
6826
6826
  function refusalText(reason) {