@happyvertical/smrt-messages 0.51.23 → 0.51.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/AGENTS.md +9 -0
- package/dist/chunks/{AccountCollection-5IchK-_S.js → AccountCollection-DIhA4nQy.js} +2 -1
- package/dist/chunks/AccountCollection-DIhA4nQy.js.map +1 -0
- package/dist/chunks/{Email-BIdbpXym.js → Email-BxQFI5Wj.js} +3 -2
- package/dist/chunks/Email-BxQFI5Wj.js.map +1 -0
- package/dist/chunks/{EmailFolder-D0o1z0_T.js → EmailFolder-B4d7y8qC.js} +2 -1
- package/dist/chunks/EmailFolder-B4d7y8qC.js.map +1 -0
- package/dist/chunks/{Message-BtsJ06xH.js → Message-Biodokz9.js} +4 -3
- package/dist/chunks/Message-Biodokz9.js.map +1 -0
- package/dist/chunks/{MessageCollection-CYEFYNMh.js → MessageCollection-DL_zg9th.js} +2 -2
- package/dist/chunks/{MessageCollection-CYEFYNMh.js.map → MessageCollection-DL_zg9th.js.map} +1 -1
- package/dist/chunks/__smrt-register__-ColnvjzR.js +6 -0
- package/dist/chunks/__smrt-register__-ColnvjzR.js.map +1 -0
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2 -1
- package/dist/models/Account.d.ts.map +1 -1
- package/dist/models/Attachment.d.ts +1 -1
- package/dist/models/Attachment.d.ts.map +1 -1
- package/dist/models/Blacklist.d.ts.map +1 -1
- package/dist/models/Email.d.ts +2 -2
- package/dist/models/Email.d.ts.map +1 -1
- package/dist/models/EmailAccount.d.ts +1 -1
- package/dist/models/EmailAccount.d.ts.map +1 -1
- package/dist/models/EmailFolder.d.ts +3 -3
- package/dist/models/EmailFolder.d.ts.map +1 -1
- package/dist/models/Message.d.ts +3 -3
- package/dist/models/Message.d.ts.map +1 -1
- package/dist/models/MessagingEndpoint.d.ts.map +1 -1
- package/dist/models/PersonaMessageRoute.d.ts.map +1 -1
- package/dist/models/SlackAccount.d.ts.map +1 -1
- package/dist/models/SlackMessage.d.ts.map +1 -1
- package/dist/models/TelegramAccount.d.ts.map +1 -1
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/TwitterAccount.d.ts.map +1 -1
- package/dist/models/Whitelist.d.ts.map +1 -1
- package/dist/models/ZulipAccount.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +7 -5
- package/package.json +11 -8
- package/dist/chunks/AccountCollection-5IchK-_S.js.map +0 -1
- package/dist/chunks/Email-BIdbpXym.js.map +0 -1
- package/dist/chunks/EmailFolder-D0o1z0_T.js.map +0 -1
- package/dist/chunks/Message-BtsJ06xH.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__smrt-register__-ColnvjzR.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,10 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunks/rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import "./chunks/__smrt-register__-ColnvjzR.js";
|
|
2
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";
|
|
3
|
-
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-
|
|
4
|
-
import { t as Message } from "./chunks/Message-
|
|
5
|
-
import { t as MessageCollection } from "./chunks/MessageCollection-
|
|
6
|
-
import { t as Email } from "./chunks/Email-
|
|
7
|
-
import { t as EmailFolder } from "./chunks/EmailFolder-
|
|
4
|
+
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-DIhA4nQy.js";
|
|
5
|
+
import { t as Message } from "./chunks/Message-Biodokz9.js";
|
|
6
|
+
import { t as MessageCollection } from "./chunks/MessageCollection-DL_zg9th.js";
|
|
7
|
+
import { t as Email } from "./chunks/Email-BxQFI5Wj.js";
|
|
8
|
+
import { t as EmailFolder } from "./chunks/EmailFolder-B4d7y8qC.js";
|
|
8
9
|
import { t as SlackSender } from "./chunks/SlackSender-CjSvwY1K.js";
|
|
9
10
|
import { t as TweetSender } from "./chunks/TweetSender-CcLPNNi1.js";
|
|
10
11
|
import { SmrtCollection, SmrtObject, crossPackageRef, field, foreignKey, importOptionalDependency, smrt } from "@happyvertical/smrt-core";
|
|
@@ -90,7 +91,7 @@ var Attachment = class extends SmrtObject {
|
|
|
90
91
|
*/
|
|
91
92
|
async getMessage() {
|
|
92
93
|
if (!this.messageId) return null;
|
|
93
|
-
const { MessageCollection } = await import("./chunks/MessageCollection-
|
|
94
|
+
const { MessageCollection } = await import("./chunks/MessageCollection-DL_zg9th.js").then((n) => n.n);
|
|
94
95
|
return await (await MessageCollection.create(this.options)).get({ id: this.messageId });
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
@@ -525,7 +526,7 @@ var EmailAccount = class extends Account {
|
|
|
525
526
|
for (const folderName of foldersToSync) try {
|
|
526
527
|
let folder = await folderCollection.getByPath(accountId, folderName);
|
|
527
528
|
if (!folder) {
|
|
528
|
-
const { EmailFolder } = await import("./chunks/EmailFolder-
|
|
529
|
+
const { EmailFolder } = await import("./chunks/EmailFolder-B4d7y8qC.js").then((n) => n.n);
|
|
529
530
|
folder = new EmailFolder({
|
|
530
531
|
...this.childOptions(),
|
|
531
532
|
accountId,
|
|
@@ -550,7 +551,7 @@ var EmailAccount = class extends Account {
|
|
|
550
551
|
result.messagesSkipped++;
|
|
551
552
|
continue;
|
|
552
553
|
}
|
|
553
|
-
const { Email } = await import("./chunks/Email-
|
|
554
|
+
const { Email } = await import("./chunks/Email-BxQFI5Wj.js").then((n) => n.n);
|
|
554
555
|
let email = existingEmail;
|
|
555
556
|
if (!email) {
|
|
556
557
|
email = new Email({
|