@happyvertical/smrt-messages 0.51.28 → 0.51.29
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/chunks/{AccountCollection-BcuXzsOP.js → AccountCollection-DzhA84ZE.js} +2 -2
- package/dist/chunks/{AccountCollection-BcuXzsOP.js.map → AccountCollection-DzhA84ZE.js.map} +1 -1
- package/dist/chunks/{Email-DwnPRMox.js → Email-CXkIEcli.js} +3 -3
- package/dist/chunks/{Email-DwnPRMox.js.map → Email-CXkIEcli.js.map} +1 -1
- package/dist/chunks/{EmailFolder-cNEZp7UM.js → EmailFolder-Cvq6vgI_.js} +2 -2
- package/dist/chunks/{EmailFolder-cNEZp7UM.js.map → EmailFolder-Cvq6vgI_.js.map} +1 -1
- package/dist/chunks/{Message-D75h17M5.js → Message-YZthqomi.js} +4 -4
- package/dist/chunks/{Message-D75h17M5.js.map → Message-YZthqomi.js.map} +1 -1
- package/dist/chunks/{MessageCollection-Bu4fjbYW.js → MessageCollection-Cw-Zcs3_.js} +2 -2
- package/dist/chunks/{MessageCollection-Bu4fjbYW.js.map → MessageCollection-Cw-Zcs3_.js.map} +1 -1
- package/dist/chunks/{__smrt-register__-DK5zVafa.js → __smrt-register__-Mgc_L6Fb.js} +2 -2
- package/dist/chunks/{__smrt-register__-DK5zVafa.js.map → __smrt-register__-Mgc_L6Fb.js.map} +1 -1
- package/dist/index.js +9 -9
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__smrt-register__-
|
|
1
|
+
{"version":3,"file":"__smrt-register__-Mgc_L6Fb.js","names":[],"sources":["../../src/__smrt-register__.ts"],"sourcesContent":["/**\n * Self-registers this package's build-time manifest before any @smrt() decorator\n * in the package fires. Fixes issue #1132: in consumer runtimes (tsx, SvelteKit\n * SSR, plain `vite dev`) the decorator's synchronous manifest lookup previously\n * missed because no step populated the global manifest cache — classes got\n * registered with zero fields and `save()` / `toJSON()` silently dropped every\n * declared property.\n *\n * Import this module as the first statement in `src/index.ts` so its top-level\n * side effect runs ahead of any class module's @smrt() decorator.\n *\n * Silent no-op in dev/test, where the vitest plugin already populates manifests\n * via a different path. Only needs to succeed in the published dist output.\n *\n * @see https://github.com/happyvertical/smrt/issues/1132\n */\nimport { ObjectRegistry } from '@happyvertical/smrt-core';\n\n// During library builds, smrtPlugin replaces this entire module with generated\n// code that embeds the scanned manifest inline (#1506/#1507) — published dists\n// never resolve this URL, so downstream bundlers cannot break registration by\n// relocating the compiled module away from dist/manifest.json. The runtime\n// lookup below is the fallback for source-mode runs without that transform.\nObjectRegistry.registerPackageManifest(\n new URL('./manifest.json', import.meta.url),\n);\n"],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunks/rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import "./chunks/__smrt-register__-
|
|
2
|
+
import "./chunks/__smrt-register__-Mgc_L6Fb.js";
|
|
3
3
|
import { a as registerMessagingProvider, n as getMessagingProvider, o as ZulipSender, r as listMessagingProviders, s as TelegramSender, t as ensureBuiltinMessagingProvidersRegistered } from "./chunks/providers-4iLula-V.js";
|
|
4
|
-
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-
|
|
5
|
-
import { t as Message } from "./chunks/Message-
|
|
6
|
-
import { t as MessageCollection } from "./chunks/MessageCollection-
|
|
7
|
-
import { t as Email } from "./chunks/Email-
|
|
8
|
-
import { t as EmailFolder } from "./chunks/EmailFolder-
|
|
4
|
+
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-DzhA84ZE.js";
|
|
5
|
+
import { t as Message } from "./chunks/Message-YZthqomi.js";
|
|
6
|
+
import { t as MessageCollection } from "./chunks/MessageCollection-Cw-Zcs3_.js";
|
|
7
|
+
import { t as Email } from "./chunks/Email-CXkIEcli.js";
|
|
8
|
+
import { t as EmailFolder } from "./chunks/EmailFolder-Cvq6vgI_.js";
|
|
9
9
|
import { t as SlackSender } from "./chunks/SlackSender-CjSvwY1K.js";
|
|
10
10
|
import { t as TweetSender } from "./chunks/TweetSender-CcLPNNi1.js";
|
|
11
11
|
import { SmrtCollection, SmrtObject, crossPackageRef, field, foreignKey, importOptionalDependency, smrt } from "@happyvertical/smrt-core";
|
|
@@ -91,7 +91,7 @@ var Attachment = class extends SmrtObject {
|
|
|
91
91
|
*/
|
|
92
92
|
async getMessage() {
|
|
93
93
|
if (!this.messageId) return null;
|
|
94
|
-
const { MessageCollection } = await import("./chunks/MessageCollection-
|
|
94
|
+
const { MessageCollection } = await import("./chunks/MessageCollection-Cw-Zcs3_.js").then((n) => n.n);
|
|
95
95
|
return await (await MessageCollection.create(this.options)).get({ id: this.messageId });
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
@@ -526,7 +526,7 @@ var EmailAccount = class extends Account {
|
|
|
526
526
|
for (const folderName of foldersToSync) try {
|
|
527
527
|
let folder = await folderCollection.getByPath(accountId, folderName);
|
|
528
528
|
if (!folder) {
|
|
529
|
-
const { EmailFolder } = await import("./chunks/EmailFolder-
|
|
529
|
+
const { EmailFolder } = await import("./chunks/EmailFolder-Cvq6vgI_.js").then((n) => n.n);
|
|
530
530
|
folder = new EmailFolder({
|
|
531
531
|
...this.childOptions(),
|
|
532
532
|
accountId,
|
|
@@ -551,7 +551,7 @@ var EmailAccount = class extends Account {
|
|
|
551
551
|
result.messagesSkipped++;
|
|
552
552
|
continue;
|
|
553
553
|
}
|
|
554
|
-
const { Email } = await import("./chunks/Email-
|
|
554
|
+
const { Email } = await import("./chunks/Email-CXkIEcli.js").then((n) => n.n);
|
|
555
555
|
let email = existingEmail;
|
|
556
556
|
if (!email) {
|
|
557
557
|
email = new Email({
|
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -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.51.
|
|
6
|
+
"packageVersion": "0.51.29",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "22e41de0b21134cb1cc15d9b5f973e3c65082ec8ea709860b6af2ee1c4635915",
|
|
11
|
+
"packageJson": "996c60931c4107634de006050dd5467b9826bb49806c98bd585deea255272ee2",
|
|
12
12
|
"agents": "ceb0ee5313abe0316f7b4dbfc0ec8c94e3ec0e10826851145d4da91b6b764f38"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-messages",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.29",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Unified multi-channel messaging with STI-based hierarchies",
|
|
6
6
|
"type": "module",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@happyvertical/files": "^0.90.0",
|
|
63
63
|
"@happyvertical/logger": "^0.90.0",
|
|
64
64
|
"@happyvertical/messages": "^0.90.0",
|
|
65
|
-
"@happyvertical/smrt-core": "0.51.
|
|
66
|
-
"@happyvertical/smrt-types": "0.51.
|
|
67
|
-
"@happyvertical/smrt-secrets": "0.51.
|
|
68
|
-
"@happyvertical/smrt-tenancy": "0.51.
|
|
69
|
-
"@happyvertical/smrt-ui": "0.51.
|
|
70
|
-
"@happyvertical/smrt-users": "0.51.
|
|
65
|
+
"@happyvertical/smrt-core": "0.51.29",
|
|
66
|
+
"@happyvertical/smrt-types": "0.51.29",
|
|
67
|
+
"@happyvertical/smrt-secrets": "0.51.29",
|
|
68
|
+
"@happyvertical/smrt-tenancy": "0.51.29",
|
|
69
|
+
"@happyvertical/smrt-ui": "0.51.29",
|
|
70
|
+
"@happyvertical/smrt-users": "0.51.29",
|
|
71
71
|
"@happyvertical/sql": "^0.90.0",
|
|
72
72
|
"@happyvertical/utils": "^0.90.0"
|
|
73
73
|
},
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@happyvertical/smrt-ledgers": "0.51.
|
|
88
|
-
"@happyvertical/smrt-vitest": "0.51.
|
|
87
|
+
"@happyvertical/smrt-ledgers": "0.51.29",
|
|
88
|
+
"@happyvertical/smrt-vitest": "0.51.29",
|
|
89
89
|
"@sveltejs/package": "^2.5.8",
|
|
90
90
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
91
91
|
"@types/node": "24.13.6",
|