@n1creator/openacp-cli 2026.712.7 → 2026.712.8

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/cli.js CHANGED
@@ -2088,6 +2088,11 @@ var init_types = __esm({
2088
2088
 
2089
2089
  // src/plugins/identity/identity-service.ts
2090
2090
  import { nanoid } from "nanoid";
2091
+ function nextIsoTimestamp(previous) {
2092
+ const now = Date.now();
2093
+ const previousTime = Date.parse(previous);
2094
+ return new Date(Number.isNaN(previousTime) ? now : Math.max(now, previousTime + 1)).toISOString();
2095
+ }
2091
2096
  var IdentityServiceImpl;
2092
2097
  var init_identity_service = __esm({
2093
2098
  "src/plugins/identity/identity-service.ts"() {
@@ -2217,7 +2222,7 @@ var init_identity_service = __esm({
2217
2222
  const updated = {
2218
2223
  ...user,
2219
2224
  ...changes,
2220
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
2225
+ updatedAt: nextIsoTimestamp(user.updatedAt)
2221
2226
  };
2222
2227
  await this.store.putUser(updated);
2223
2228
  this.emitEvent("identity:updated", { userId, changes: Object.keys(changes) });