@ever-works/resend-plugin 1.0.4 → 1.0.6

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/index.cjs CHANGED
@@ -97,10 +97,14 @@ var USER_SELECTABLE_WORK_KINDS = [
97
97
  "repo",
98
98
  "app"
99
99
  ];
100
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
100
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
101
101
  new Set(WORK_KINDS);
102
102
  var GOAL_KINDS = ["metric", "delivery"];
103
103
  new Set(GOAL_KINDS);
104
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
105
+ new Set(RECORD_VISIBILITIES);
106
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
107
+ new Set(RECORD_LIST_VIEWS);
104
108
  var VERSION = "1.0.0";
105
109
  var GTM_SKILLS = [
106
110
  // ── research ────────────────────────────────────────────────────────
@@ -664,6 +668,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
664
668
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
665
669
  (family) => family.envNames
666
670
  );
671
+ var FLEET_LINK_FRAME_KINDS = {
672
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
673
+ DATA: 1,
674
+ /** `[cols u16][rows u16]`. */
675
+ RESIZE: 2,
676
+ /** `[code i32]`. */
677
+ EXIT: 3,
678
+ /** UTF-8 JSON control message. */
679
+ JSON: 10,
680
+ /** UTF-8 reason code. */
681
+ CLOSE: 11,
682
+ /** A full picture (the existing computer-frame encoding). */
683
+ FRAME: 20,
684
+ /** A pointer / key / text event (the existing computer input encoding). */
685
+ INPUT: 21,
686
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
687
+ TILES: 23,
688
+ /** `[bytes u32]` credit. */
689
+ ACK: 30,
690
+ /** End of a stream. */
691
+ END: 31,
692
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
693
+ CLIP: 40
694
+ };
695
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
696
+ var FLEET_LINK_CONTROL_TYPES = [
697
+ "link.hello",
698
+ "link.ready",
699
+ "link.ping",
700
+ "link.pong",
701
+ "link.pause",
702
+ "link.resume",
703
+ "link.drain",
704
+ "channel.open",
705
+ "channel.ready",
706
+ "channel.refused",
707
+ "channel.close",
708
+ "operation.progress",
709
+ "operation.done",
710
+ "operation.cancel"
711
+ ];
712
+ new Set(FLEET_LINK_CONTROL_TYPES);
713
+ new TextEncoder();
667
714
  var EMAIL_INBOX_CAP_FIELDS = [
668
715
  "inboxDailySends",
669
716
  "inboxBurstSends",
@@ -806,6 +853,115 @@ var ACTION_CATEGORIES = Object.freeze([
806
853
  Object.freeze(
807
854
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
808
855
  );
856
+ var DOMAIN_EVENT_CATALOG = [
857
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
858
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
859
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
860
+ {
861
+ type: "organization.member.added",
862
+ domain: "organization",
863
+ aggregateType: "organization",
864
+ phase: "P1",
865
+ child: "member"
866
+ },
867
+ {
868
+ type: "organization.member.updated",
869
+ domain: "organization",
870
+ aggregateType: "organization",
871
+ phase: "P1",
872
+ child: "member"
873
+ },
874
+ {
875
+ type: "organization.member.removed",
876
+ domain: "organization",
877
+ aggregateType: "organization",
878
+ phase: "P1",
879
+ child: "member"
880
+ },
881
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
882
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
883
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
884
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
885
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
886
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
887
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
888
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
889
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
890
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
891
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
892
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
893
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
894
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
895
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
896
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
897
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
898
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
899
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
900
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
901
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
902
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
903
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
904
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
905
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
906
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
907
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
908
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
909
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
910
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
911
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
912
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
913
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
914
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
915
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
916
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
917
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
918
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
919
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
920
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
921
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
922
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
923
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
924
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
925
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
926
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
927
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
928
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
929
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
930
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
931
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
932
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
933
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
934
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
935
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
936
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
937
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
938
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
939
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
940
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
941
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
942
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
943
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
944
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
945
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
946
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
947
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
948
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
949
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
950
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
951
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
952
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
953
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
954
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
955
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
956
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
957
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
958
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
959
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
960
+ ];
961
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
962
+ new Map(
963
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
964
+ );
809
965
  var PLUGIN_CAPABILITIES = {
810
966
  // Notifications v2 (EW-650) — Email Providers. Plugins MAY declare
811
967
  // `EMAIL_OUTBOUND`, `EMAIL_INBOUND`, or both. See
@@ -858,6 +1014,8 @@ var ResendPlugin = class {
858
1014
  text: input.bodyText,
859
1015
  html: input.bodyHtml,
860
1016
  replyTo: input.replyTo,
1017
+ // EW-P4-3 — RFC threading (Message-ID / In-Reply-To / References).
1018
+ headers: input.headers ? { ...input.headers } : void 0,
861
1019
  tags: input.metadata ? Object.entries(input.metadata).map(([name, value]) => ({ name, value })) : void 0,
862
1020
  attachments: input.attachments?.map((a) => ({
863
1021
  filename: a.filename,
package/dist/index.js CHANGED
@@ -95,10 +95,14 @@ var USER_SELECTABLE_WORK_KINDS = [
95
95
  "repo",
96
96
  "app"
97
97
  ];
98
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
98
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
99
99
  new Set(WORK_KINDS);
100
100
  var GOAL_KINDS = ["metric", "delivery"];
101
101
  new Set(GOAL_KINDS);
102
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
103
+ new Set(RECORD_VISIBILITIES);
104
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
105
+ new Set(RECORD_LIST_VIEWS);
102
106
  var VERSION = "1.0.0";
103
107
  var GTM_SKILLS = [
104
108
  // ── research ────────────────────────────────────────────────────────
@@ -662,6 +666,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
662
666
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
663
667
  (family) => family.envNames
664
668
  );
669
+ var FLEET_LINK_FRAME_KINDS = {
670
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
671
+ DATA: 1,
672
+ /** `[cols u16][rows u16]`. */
673
+ RESIZE: 2,
674
+ /** `[code i32]`. */
675
+ EXIT: 3,
676
+ /** UTF-8 JSON control message. */
677
+ JSON: 10,
678
+ /** UTF-8 reason code. */
679
+ CLOSE: 11,
680
+ /** A full picture (the existing computer-frame encoding). */
681
+ FRAME: 20,
682
+ /** A pointer / key / text event (the existing computer input encoding). */
683
+ INPUT: 21,
684
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
685
+ TILES: 23,
686
+ /** `[bytes u32]` credit. */
687
+ ACK: 30,
688
+ /** End of a stream. */
689
+ END: 31,
690
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
691
+ CLIP: 40
692
+ };
693
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
694
+ var FLEET_LINK_CONTROL_TYPES = [
695
+ "link.hello",
696
+ "link.ready",
697
+ "link.ping",
698
+ "link.pong",
699
+ "link.pause",
700
+ "link.resume",
701
+ "link.drain",
702
+ "channel.open",
703
+ "channel.ready",
704
+ "channel.refused",
705
+ "channel.close",
706
+ "operation.progress",
707
+ "operation.done",
708
+ "operation.cancel"
709
+ ];
710
+ new Set(FLEET_LINK_CONTROL_TYPES);
711
+ new TextEncoder();
665
712
  var EMAIL_INBOX_CAP_FIELDS = [
666
713
  "inboxDailySends",
667
714
  "inboxBurstSends",
@@ -804,6 +851,115 @@ var ACTION_CATEGORIES = Object.freeze([
804
851
  Object.freeze(
805
852
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
806
853
  );
854
+ var DOMAIN_EVENT_CATALOG = [
855
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
856
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
857
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
858
+ {
859
+ type: "organization.member.added",
860
+ domain: "organization",
861
+ aggregateType: "organization",
862
+ phase: "P1",
863
+ child: "member"
864
+ },
865
+ {
866
+ type: "organization.member.updated",
867
+ domain: "organization",
868
+ aggregateType: "organization",
869
+ phase: "P1",
870
+ child: "member"
871
+ },
872
+ {
873
+ type: "organization.member.removed",
874
+ domain: "organization",
875
+ aggregateType: "organization",
876
+ phase: "P1",
877
+ child: "member"
878
+ },
879
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
880
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
881
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
882
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
883
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
884
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
885
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
886
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
887
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
888
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
889
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
890
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
891
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
892
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
893
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
894
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
895
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
896
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
897
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
898
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
899
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
900
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
901
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
902
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
903
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
904
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
905
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
906
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
907
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
908
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
909
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
910
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
911
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
912
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
913
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
914
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
915
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
916
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
917
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
918
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
919
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
920
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
921
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
922
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
923
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
924
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
925
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
926
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
927
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
928
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
929
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
930
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
931
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
932
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
933
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
934
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
935
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
936
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
937
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
938
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
939
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
940
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
941
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
942
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
943
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
944
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
945
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
946
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
947
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
948
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
949
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
950
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
951
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
952
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
953
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
954
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
955
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
956
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
957
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
958
+ ];
959
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
960
+ new Map(
961
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
962
+ );
807
963
  var PLUGIN_CAPABILITIES = {
808
964
  // Notifications v2 (EW-650) — Email Providers. Plugins MAY declare
809
965
  // `EMAIL_OUTBOUND`, `EMAIL_INBOUND`, or both. See
@@ -856,6 +1012,8 @@ var ResendPlugin = class {
856
1012
  text: input.bodyText,
857
1013
  html: input.bodyHtml,
858
1014
  replyTo: input.replyTo,
1015
+ // EW-P4-3 — RFC threading (Message-ID / In-Reply-To / References).
1016
+ headers: input.headers ? { ...input.headers } : void 0,
859
1017
  tags: input.metadata ? Object.entries(input.metadata).map(([name, value]) => ({ name, value })) : void 0,
860
1018
  attachments: input.attachments?.map((a) => ({
861
1019
  filename: a.filename,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/resend-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Resend email provider plugin (outbound only) for Ever Works platform",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -32,14 +32,14 @@
32
32
  "test:watch": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@ever-works/plugin": "^1.2.4",
35
+ "@ever-works/plugin": "^1.2.6",
36
36
  "resend": "^4.5.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^26.6.4",
40
40
  "tsup": "^8.0.0",
41
41
  "typescript": "^5.9.3",
42
- "vitest": "^4.1.0"
42
+ "vitest": "^5.0.5"
43
43
  },
44
44
  "everworks": {
45
45
  "plugin": {
@@ -82,8 +82,8 @@
82
82
  "url": "https://github.com/ever-works/ever-works/issues"
83
83
  },
84
84
  "everworksRelease": {
85
- "contentHash": "sha256:72ef9344b50014a5d409f69a3f132f1f29af2323b7925a6da4b140a6c37cccce",
86
- "commit": "61b8320b4ad7d30bf5161acf7ee13b250a6172b9",
87
- "source": "https://github.com/ever-works/ever-works/tree/61b8320b4ad7d30bf5161acf7ee13b250a6172b9/packages/plugins/resend"
85
+ "contentHash": "sha256:5fe74eac0cda0e7e6fac1eea00082c452a681718b0e25cdcf19a7f00248d1a1b",
86
+ "commit": "54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c",
87
+ "source": "https://github.com/ever-works/ever-works/tree/54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c/packages/plugins/resend"
88
88
  }
89
89
  }