@happyvertical/smrt-messages 0.62.8 → 0.62.9

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 (23) hide show
  1. package/dist/chunks/{AttachmentCollection-DhCoruwp.js → AttachmentCollection-CqMr6vDW.js} +4 -4
  2. package/dist/chunks/{AttachmentCollection-DhCoruwp.js.map → AttachmentCollection-CqMr6vDW.js.map} +1 -1
  3. package/dist/chunks/{Email-CmNoK1lj.js → Email-HQRz_jXr.js} +6 -6
  4. package/dist/chunks/{Email-CmNoK1lj.js.map → Email-HQRz_jXr.js.map} +1 -1
  5. package/dist/chunks/{EmailAccountCollection-CHizpsxL.js → EmailAccountCollection-D5RrI88X.js} +14 -14
  6. package/dist/chunks/{EmailAccountCollection-CHizpsxL.js.map → EmailAccountCollection-D5RrI88X.js.map} +1 -1
  7. package/dist/chunks/{EmailCollection-Yo2wBv_1.js → EmailCollection-BitVR0qy.js} +3 -3
  8. package/dist/chunks/{EmailCollection-Yo2wBv_1.js.map → EmailCollection-BitVR0qy.js.map} +1 -1
  9. package/dist/chunks/{EmailFolder-Dks5clxA.js → EmailFolder-94T__o1R.js} +6 -6
  10. package/dist/chunks/{EmailFolder-Dks5clxA.js.map → EmailFolder-94T__o1R.js.map} +1 -1
  11. package/dist/chunks/{EmailFolderCollection-nIR4Kpcr.js → EmailFolderCollection-B6jWiIRV.js} +2 -2
  12. package/dist/chunks/{EmailFolderCollection-nIR4Kpcr.js.map → EmailFolderCollection-B6jWiIRV.js.map} +1 -1
  13. package/dist/chunks/{Message-e99HkbG8.js → Message-GEH6EbM0.js} +6 -6
  14. package/dist/chunks/{Message-e99HkbG8.js.map → Message-GEH6EbM0.js.map} +1 -1
  15. package/dist/chunks/{MessageCollection-t8cLUSNJ.js → MessageCollection-CeBjGYG0.js} +2 -2
  16. package/dist/chunks/{MessageCollection-t8cLUSNJ.js.map → MessageCollection-CeBjGYG0.js.map} +1 -1
  17. package/dist/chunks/{MessagingEndpointCollection-CGtAL77R.js → MessagingEndpointCollection-CgxxGRXx.js} +2 -2
  18. package/dist/chunks/{MessagingEndpointCollection-CGtAL77R.js.map → MessagingEndpointCollection-CgxxGRXx.js.map} +1 -1
  19. package/dist/connect.js +1 -1
  20. package/dist/index.js +11 -11
  21. package/dist/manifest.json +1 -1
  22. package/dist/smrt-knowledge.json +3 -3
  23. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"MessagingEndpointCollection-CGtAL77R.js","names":[],"sources":["../../src/models/MessagingEndpoint.ts","../../src/collections/MessagingEndpointCollection.ts"],"sourcesContent":["import type { SmrtObjectOptions } from '@happyvertical/smrt-core';\n// Register the package manifest before this module's @smrt() decorator\n// runs, whichever chunk the library build places it in (#3098).\nimport '../__smrt-register__.js';\nimport {\n crossPackageRef,\n field,\n SmrtObject,\n smrt,\n} from '@happyvertical/smrt-core';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy/decorators';\nimport type { MessagingChannel, MessagingEndpointOptions } from '../types.js';\n\n@TenantScoped({ mode: 'required' })\n@smrt({\n tableName: 'messaging_endpoints',\n api: { include: ['list', 'get'] },\n mcp: { include: ['list', 'get'] },\n cli: { include: ['list', 'get'] },\n conflictColumns: ['tenant_id', 'channel', 'label'],\n})\nexport class MessagingEndpoint extends SmrtObject { static __smrtPackage__ = \"@happyvertical/smrt-messages\";\n @tenantId()\n tenantId = '';\n\n @crossPackageRef('@happyvertical/smrt-profiles:Profile', { nullable: true })\n profileId: string | null = null;\n\n @field({ required: true, requiredFor: 'identity' })\n label = '';\n\n @field({ required: true })\n channel: MessagingChannel = 'email';\n\n /** Provider-specific destination JSON. Hidden from generated read surfaces. */\n @field({ required: true, sensitive: true })\n address = '{}';\n\n isActive = true;\n verifiedAt: Date | null = null;\n createdAt = new Date();\n updatedAt = new Date();\n\n constructor(options: MessagingEndpointOptions = {}) {\n super(options as SmrtObjectOptions);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n if (options.profileId !== undefined) this.profileId = options.profileId;\n if (options.label !== undefined) this.label = options.label;\n if (options.channel !== undefined) this.channel = options.channel;\n if (options.address !== undefined) this.address = options.address;\n if (options.isActive !== undefined) this.isActive = options.isActive;\n if (options.verifiedAt !== undefined) this.verifiedAt = options.verifiedAt;\n if (options.createdAt !== undefined) this.createdAt = options.createdAt;\n if (options.updatedAt !== undefined) this.updatedAt = options.updatedAt;\n }\n\n getAddress<T extends Record<string, unknown> = Record<string, unknown>>(): T {\n try {\n return JSON.parse(this.address) as T;\n } catch {\n return {} as T;\n }\n }\n\n setAddress(address: Record<string, unknown>): void {\n this.address = JSON.stringify(address);\n }\n\n getMaskedAddress(): string {\n const address = this.getAddress();\n const visible =\n address.email ??\n address.chatId ??\n address.to ??\n address.stream ??\n address.phoneNumber;\n if (typeof visible !== 'string' && typeof visible !== 'number')\n return '••••';\n const value = String(visible);\n if (value.includes('@')) {\n const [name, domain] = value.split('@');\n return `${name.slice(0, 2)}•••@${domain}`;\n }\n return value.length <= 4 ? '••••' : `••••${value.slice(-4)}`;\n }\n}\n","import { SmrtCollection } from '@happyvertical/smrt-core';\nimport { MessagingEndpoint } from '../models/MessagingEndpoint.js';\n\nexport class MessagingEndpointCollection extends SmrtCollection<MessagingEndpoint> {\n static readonly _itemClass = MessagingEndpoint;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBO,IAAM,oBAAN,cAAgC,WAAW;CAEhD,WAAW;CAGX,YAA2B;CAG3B,QAAQ;CAGR,UAA4B;CAI5B,UAAU;CAEV,WAAW;CACX,aAA0B;CAC1B,4BAAY,IAAI,KAAK;CACrB,4BAAY,IAAI,KAAK;CAErB,YAAY,UAAoC,CAAC,GAAG;EAClD,MAAM,OAA4B;EAClC,IAAI,QAAQ,aAAa,KAAA,GAAW,KAAK,WAAW,QAAQ;EAC5D,IAAI,QAAQ,cAAc,KAAA,GAAW,KAAK,YAAY,QAAQ;EAC9D,IAAI,QAAQ,UAAU,KAAA,GAAW,KAAK,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SAAA,CAAA;AAGA,gBAAA,CADC,MAAM,EAAE,UAAU,KAAK,CAAC,CAAA,GAVd,kBAWX,WAAA,WAAA,CAAA;AAIA,gBAAA,CADC,MAAM;CAAE,UAAU;CAAM,WAAW;AAAK,CAAC,CAAA,GAd/B,kBAeX,WAAA,WAAA,CAAA;AAfW,oBAAN,gBAAA,CARN,aAAa,EAAE,MAAM,WAAW,CAAC,GACjC,KAAK;CACJ,WAAW;CACX,KAAK,EAAE,SAAS,CAAC,QAAQ,KAAK,EAAE;CAChC,KAAK,EAAE,SAAS,CAAC,QAAQ,KAAK,EAAE;CAChC,KAAK,EAAE,SAAS,CAAC,QAAQ,KAAK,EAAE;CAChC,iBAAiB;EAAC;EAAa;EAAW;CAAO;AACnD,CAAC,CAAA,GACY,iBAAA;;;;AClBN,IAAM,8BAAN,cAA0C,eAAkC;CACjF,OAAgB,aAAa;AAC/B"}
1
+ {"version":3,"file":"MessagingEndpointCollection-CgxxGRXx.js","names":[],"sources":["../../src/models/MessagingEndpoint.ts","../../src/collections/MessagingEndpointCollection.ts"],"sourcesContent":["import type { SmrtObjectOptions } from '@happyvertical/smrt-core';\n// Register the package manifest before this module's @smrt() decorator\n// runs, whichever chunk the library build places it in (#3098).\nimport '../__smrt-register__.js';\nimport {\n crossPackageRef,\n field,\n SmrtObject,\n smrt,\n} from '@happyvertical/smrt-core';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy/decorators';\nimport type { MessagingChannel, MessagingEndpointOptions } from '../types.js';\n\n@TenantScoped({ mode: 'required' })\n@smrt({\n tableName: 'messaging_endpoints',\n api: { include: ['list', 'get'] },\n mcp: { include: ['list', 'get'] },\n cli: { include: ['list', 'get'] },\n conflictColumns: ['tenant_id', 'channel', 'label'],\n})\nexport class MessagingEndpoint extends SmrtObject { static __smrtPackage__ = \"@happyvertical/smrt-messages\";\n @tenantId()\n tenantId = '';\n\n @crossPackageRef('@happyvertical/smrt-profiles:Profile', { nullable: true })\n profileId: string | null = null;\n\n @field({ required: true, requiredFor: 'identity' })\n label = '';\n\n @field({ required: true })\n channel: MessagingChannel = 'email';\n\n /** Provider-specific destination JSON. Hidden from generated read surfaces. */\n @field({ required: true, sensitive: true })\n address = '{}';\n\n isActive = true;\n verifiedAt: Date | null = null;\n createdAt = new Date();\n updatedAt = new Date();\n\n constructor(options: MessagingEndpointOptions = {}) {\n super(options as SmrtObjectOptions);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n if (options.profileId !== undefined) this.profileId = options.profileId;\n if (options.label !== undefined) this.label = options.label;\n if (options.channel !== undefined) this.channel = options.channel;\n if (options.address !== undefined) this.address = options.address;\n if (options.isActive !== undefined) this.isActive = options.isActive;\n if (options.verifiedAt !== undefined) this.verifiedAt = options.verifiedAt;\n if (options.createdAt !== undefined) this.createdAt = options.createdAt;\n if (options.updatedAt !== undefined) this.updatedAt = options.updatedAt;\n }\n\n getAddress<T extends Record<string, unknown> = Record<string, unknown>>(): T {\n try {\n return JSON.parse(this.address) as T;\n } catch {\n return {} as T;\n }\n }\n\n setAddress(address: Record<string, unknown>): void {\n this.address = JSON.stringify(address);\n }\n\n getMaskedAddress(): string {\n const address = this.getAddress();\n const visible =\n address.email ??\n address.chatId ??\n address.to ??\n address.stream ??\n address.phoneNumber;\n if (typeof visible !== 'string' && typeof visible !== 'number')\n return '••••';\n const value = String(visible);\n if (value.includes('@')) {\n const [name, domain] = value.split('@');\n return `${name.slice(0, 2)}•••@${domain}`;\n }\n return value.length <= 4 ? '••••' : `••••${value.slice(-4)}`;\n }\n}\n","import { SmrtCollection } from '@happyvertical/smrt-core';\nimport { MessagingEndpoint } from '../models/MessagingEndpoint.js';\n\nexport class MessagingEndpointCollection extends SmrtCollection<MessagingEndpoint> {\n static readonly _itemClass = MessagingEndpoint;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBO,IAAM,oBAAN,cAAgC,WAAW;CAEhD,WAAW;CAGX,YAA2B;CAG3B,QAAQ;CAGR,UAA4B;CAI5B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D;AACF;AAhEoD,cAAvC,mBAA8C,mBAAkB,8BAAA;AAE3E,gBAAA,CADC,SAAS,CAAA,GADC,kBAEX,WAAA,YAAA,CAAA;AAGA,gBAAA,CADC,gBAAgB,wCAAwC,EAAE,UAAU,KAAK,CAAC,CAAA,GAJhE,kBAKX,WAAA,aAAA,CAAA;AAGA,gBAAA,CADC,MAAM;CAAE,UAAU;CAAM,aAAa;AAAW,CAAC,CAAA,GAPvC,kBAQX,WAAA,SAAA,CAAA;AAGA,gBAAA,CADC,MAAM,EAAE,UAAU,KAAK,CAAC,CAAA,GAVd,kBAWX,WAAA,WAAA,CAAA;AAIA,gBAAA,CADC,MAAM;CAAE,UAAU;CAAM,WAAW;AAAK,CAAC,CAAA,GAd/B,kBAeX,WAAA,WAAA,CAAA;AAfW,oBAAN,gBAAA,CARN,aAAa,EAAE,MAAM,WAAW,CAAC,GACjC,KAAK;CACJ,WAAW;CACX,KAAK,EAAE,SAAS,CAAC,QAAQ,KAAK,EAAE;CAChC,KAAK,EAAE,SAAS,CAAC,QAAQ,KAAK,EAAE;CAChC,KAAK,EAAE,SAAS,CAAC,QAAQ,KAAK,EAAE;CAChC,iBAAiB;EAAC;EAAa;EAAW;CAAO;AACnD,CAAC,CAAA,GACY,iBAAA;;;;AClBN,IAAM,8BAAN,cAA0C,eAAkC;CACjF,OAAgB,aAAa;AAC/B"}
package/dist/connect.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as EmailAccount, t as EmailAccountCollection } from "./chunks/EmailAccountCollection-CHizpsxL.js";
1
+ import { r as EmailAccount, t as EmailAccountCollection } from "./chunks/EmailAccountCollection-D5RrI88X.js";
2
2
  import { withTenant } from "./host.js";
3
3
  import { ObjectRegistry } from "@happyvertical/smrt-core";
4
4
  import { ConnectError, ConnectStateCollection, beginConnect, buildOAuth2AuthorizeUrl, consumeConnect, discoverOidcEndpoints, exchangeOAuth2Code, fetchOidcUserInfo } from "@happyvertical/smrt-secrets/connect";
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { A as messagingPrincipalFromPermissions, C as runWithMailSystemAccess, D as SEND_MESSAGES_PERMISSION, E as MESSAGING_PERMISSION_DEFINITIONS, O as assertMessagingPermission, S as resetMailAccess, T as MANAGE_MESSAGE_ROUTES_PERMISSION, _ as getEffectiveMailAccessConfigs, b as learnMailAccessOptions, c as MAIL_SCOPES, d as assertHydratedMailAccess, f as assertMailAccess, g as deniedMailAccountIds, h as decideMailAccess, i as AccountCollection, k as ensureMessagingPermissionsRegistered, l as MailAccessError, m as configureMailAccess, o as Account, p as canAccessMailAccount, r as EmailAccount, s as MAIL_ACCOUNT_RESOURCE_TYPE, t as EmailAccountCollection, u as MailAccessService, v as inMailSystemAccess, w as MANAGE_MESSAGE_CREDENTIALS_PERMISSION, x as mailScopePermission, y as isMailScope } from "./chunks/EmailAccountCollection-CHizpsxL.js";
1
+ import { A as messagingPrincipalFromPermissions, C as runWithMailSystemAccess, D as SEND_MESSAGES_PERMISSION, E as MESSAGING_PERMISSION_DEFINITIONS, O as assertMessagingPermission, S as resetMailAccess, T as MANAGE_MESSAGE_ROUTES_PERMISSION, _ as getEffectiveMailAccessConfigs, b as learnMailAccessOptions, c as MAIL_SCOPES, d as assertHydratedMailAccess, f as assertMailAccess, g as deniedMailAccountIds, h as decideMailAccess, i as AccountCollection, k as ensureMessagingPermissionsRegistered, l as MailAccessError, m as configureMailAccess, o as Account, p as canAccessMailAccount, r as EmailAccount, s as MAIL_ACCOUNT_RESOURCE_TYPE, t as EmailAccountCollection, u as MailAccessService, v as inMailSystemAccess, w as MANAGE_MESSAGE_CREDENTIALS_PERMISSION, x as mailScopePermission, y as isMailScope } from "./chunks/EmailAccountCollection-D5RrI88X.js";
2
2
  import { buildSqliteRebuildStatements, isDeepStrictEqual, normalizeIdentityEmail, queryGlobal, queryWithGlobals, readNotificationProfile, withSystemContext, withTenant } from "./host.js";
3
- import { r as Attachment, t as AttachmentCollection } from "./chunks/AttachmentCollection-DhCoruwp.js";
4
- import { t as EmailFolder } from "./chunks/EmailFolder-Dks5clxA.js";
3
+ import { r as Attachment, t as AttachmentCollection } from "./chunks/AttachmentCollection-CqMr6vDW.js";
4
+ import { t as EmailFolder } from "./chunks/EmailFolder-94T__o1R.js";
5
5
  import { d as withProtectedNotificationHandoff, f as PROFILE_NOTIFICATION_POLICY_PREFIX, l as protectedNotificationMetadata, m as profileNotificationPolicy, p as assertNotificationRecipientIdentity, t as ProtectedNotificationHandoffError } from "./chunks/protected-notification-handoff-mvaEZVp7.js";
6
- import { t as Message } from "./chunks/Message-e99HkbG8.js";
6
+ import { t as Message } from "./chunks/Message-GEH6EbM0.js";
7
7
  import { a as registerMessagingProvider, n as getMessagingProvider, o as ZulipSender, r as listMessagingProviders, s as TelegramSender, t as ensureBuiltinMessagingProvidersRegistered } from "./chunks/providers-Bz_F_ywF.js";
8
- import { t as MessageCollection } from "./chunks/MessageCollection-t8cLUSNJ.js";
9
- import { r as MessagingEndpoint, t as MessagingEndpointCollection } from "./chunks/MessagingEndpointCollection-CGtAL77R.js";
10
- import { t as Email } from "./chunks/Email-CmNoK1lj.js";
11
- import { t as EmailCollection } from "./chunks/EmailCollection-Yo2wBv_1.js";
12
- import { t as EmailFolderCollection } from "./chunks/EmailFolderCollection-nIR4Kpcr.js";
8
+ import { t as MessageCollection } from "./chunks/MessageCollection-CeBjGYG0.js";
9
+ import { r as MessagingEndpoint, t as MessagingEndpointCollection } from "./chunks/MessagingEndpointCollection-CgxxGRXx.js";
10
+ import { t as Email } from "./chunks/Email-HQRz_jXr.js";
11
+ import { t as EmailCollection } from "./chunks/EmailCollection-BitVR0qy.js";
12
+ import { t as EmailFolderCollection } from "./chunks/EmailFolderCollection-B6jWiIRV.js";
13
13
  import { t as EmailSender } from "./chunks/EmailSender-B-Rtq9du.js";
14
14
  import { t as SlackSender } from "./chunks/SlackSender-CetlSe6D.js";
15
15
  import { t as TweetSender } from "./chunks/TweetSender-Dw-TDxIB.js";
@@ -98,7 +98,7 @@ function createMailAccessInterceptor() {
98
98
  const row = instance;
99
99
  row.accountId = null;
100
100
  if (!row.messageId || !row.options) return;
101
- const { MessageCollection } = await import("./chunks/MessageCollection-t8cLUSNJ.js").then((n) => n.n);
101
+ const { MessageCollection } = await import("./chunks/MessageCollection-CeBjGYG0.js").then((n) => n.n);
102
102
  row.accountId = (await runWithMailSystemAccess(async () => (await MessageCollection.create(row.options)).get({ id: row.messageId })))?.accountId || null;
103
103
  },
104
104
  async afterList(className, results, context) {
@@ -785,7 +785,7 @@ var EmailAttachment = class extends Attachment {
785
785
  */
786
786
  async getEmail() {
787
787
  if (!this.messageId) return null;
788
- const { EmailCollection } = await import("./chunks/EmailCollection-Yo2wBv_1.js").then((n) => n.n);
788
+ const { EmailCollection } = await import("./chunks/EmailCollection-BitVR0qy.js").then((n) => n.n);
789
789
  return await (await EmailCollection.create(this.options)).get({ id: this.messageId });
790
790
  }
791
791
  };
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-messages",
5
- "packageVersion": "0.62.8",
5
+ "packageVersion": "0.62.9",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-messages:AccountCollection": {
8
8
  "name": "accountcollection",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-messages",
6
- "packageVersion": "0.62.8",
6
+ "packageVersion": "0.62.9",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "a96b8fdd5313347a372e26a66d66bbc52953b2e5ad113fc8b42cf302f130304c",
11
- "packageJson": "5028e9ffa88bda2ddda443593a8328574db036fece8ac463703c7d621d305471",
10
+ "manifest": "ed056ee424041ea85203a81445c642b7b90517c90a396bc52c276c1e0d9c1c76",
11
+ "packageJson": "fb136f50904ebe72cd7cc36c86f3c07fefaf33bd379a4836f09d07a24bce155b",
12
12
  "agents": "d0e96fb1da71c991c47f14bf2add20ff51b97deb3ff4482cc7569800ef11f047",
13
13
  "moduleDoc:agents/notification-outbox.md": "0e9a870c4b2d5f0fec47af0dff6e61d216fb0121d384d99bccfc506beb6e38ad",
14
14
  "moduleDoc:agents/profile-recipients.md": "1b6710bf646ddeafd6836df8270fcbb8e29226dceda716a693d945cc2e914606"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-messages",
3
- "version": "0.62.8",
3
+ "version": "0.62.9",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Unified multi-channel messaging with STI-based hierarchies",
6
6
  "type": "module",
@@ -67,14 +67,14 @@
67
67
  "@happyvertical/files": "^0.115.0",
68
68
  "@happyvertical/logger": "^0.115.0",
69
69
  "@happyvertical/messages": "^0.115.0",
70
- "@happyvertical/smrt-core": "0.62.8",
71
- "@happyvertical/smrt-jobs": "0.62.8",
72
- "@happyvertical/smrt-profiles": "0.62.8",
73
- "@happyvertical/smrt-secrets": "0.62.8",
74
- "@happyvertical/smrt-tenancy": "0.62.8",
75
- "@happyvertical/smrt-types": "0.62.8",
76
- "@happyvertical/smrt-ui": "0.62.8",
77
- "@happyvertical/smrt-users": "0.62.8",
70
+ "@happyvertical/smrt-core": "0.62.9",
71
+ "@happyvertical/smrt-jobs": "0.62.9",
72
+ "@happyvertical/smrt-profiles": "0.62.9",
73
+ "@happyvertical/smrt-secrets": "0.62.9",
74
+ "@happyvertical/smrt-tenancy": "0.62.9",
75
+ "@happyvertical/smrt-types": "0.62.9",
76
+ "@happyvertical/smrt-ui": "0.62.9",
77
+ "@happyvertical/smrt-users": "0.62.9",
78
78
  "@happyvertical/sql": "^0.115.0",
79
79
  "@happyvertical/utils": "^0.115.0"
80
80
  },
@@ -91,8 +91,8 @@
91
91
  }
92
92
  },
93
93
  "devDependencies": {
94
- "@happyvertical/smrt-ledgers": "0.62.8",
95
- "@happyvertical/smrt-vitest": "0.62.8",
94
+ "@happyvertical/smrt-ledgers": "0.62.9",
95
+ "@happyvertical/smrt-vitest": "0.62.9",
96
96
  "@sveltejs/package": "^2.5.8",
97
97
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
98
98
  "@types/node": "24.13.6",