@ever-works/mailchimp-transactional-plugin 1.0.7 → 1.0.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/index.cjs CHANGED
@@ -721,6 +721,110 @@ var FLEET_LINK_CONTROL_TYPES = [
721
721
  ];
722
722
  new Set(FLEET_LINK_CONTROL_TYPES);
723
723
  new TextEncoder();
724
+ var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
725
+ // Works — reads, plus the settings update (its merge / check / command
726
+ // fields are refused for run tokens by the Works controller).
727
+ { method: "GET", pathPattern: "/api/works" },
728
+ { method: "GET", pathPattern: "/api/works/{id}" },
729
+ { method: "PUT", pathPattern: "/api/works/{id}" },
730
+ { method: "GET", pathPattern: "/api/works/{id}/config" },
731
+ { method: "GET", pathPattern: "/api/works/{id}/items" },
732
+ { method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
733
+ { method: "GET", pathPattern: "/api/works/{id}/history" },
734
+ { method: "GET", pathPattern: "/api/works/{id}/generator-form" },
735
+ { method: "GET", pathPattern: "/api/works/{id}/schedule" },
736
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons" },
737
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
738
+ // Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
739
+ // lands `proposed` (review-gated), see the KB controller. No unlock.
740
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
741
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
742
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
743
+ { method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
744
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
745
+ // Deploy — reads and the capability check only.
746
+ { method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
747
+ { method: "GET", pathPattern: "/api/deploy/providers" },
748
+ { method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
749
+ // Plugins — read only.
750
+ { method: "GET", pathPattern: "/api/plugins" },
751
+ { method: "GET", pathPattern: "/api/plugins/{pluginId}" },
752
+ // Missions — reads, plus pause (the safe direction).
753
+ { method: "GET", pathPattern: "/api/me/missions" },
754
+ { method: "GET", pathPattern: "/api/me/missions/{id}" },
755
+ { method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
756
+ { method: "GET", pathPattern: "/api/me/missions/{id}/works" },
757
+ { method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
758
+ // Ideas — reads, plus filing a new Idea (a proposal a person builds).
759
+ { method: "POST", pathPattern: "/api/me/work-proposals" },
760
+ { method: "GET", pathPattern: "/api/me/work-proposals" },
761
+ { method: "GET", pathPattern: "/api/me/work-proposals/status" },
762
+ { method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
763
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
764
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
765
+ // Account-wide usage.
766
+ { method: "GET", pathPattern: "/api/me/usage/account-wide" },
767
+ // Tasks — reads and collaboration writes. Create / update / transition /
768
+ // assign / chat carry body refusals for run tokens in the Tasks
769
+ // controller (no checks, no schedule, no force, no dispatch, no @agent).
770
+ { method: "GET", pathPattern: "/api/tasks" },
771
+ { method: "POST", pathPattern: "/api/tasks" },
772
+ { method: "GET", pathPattern: "/api/tasks/{id}" },
773
+ { method: "PATCH", pathPattern: "/api/tasks/{id}" },
774
+ { method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
775
+ { method: "GET", pathPattern: "/api/tasks/{id}/activity" },
776
+ { method: "POST", pathPattern: "/api/tasks/{id}/transition" },
777
+ { method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
778
+ { method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
779
+ { method: "GET", pathPattern: "/api/tasks/{id}/diff" },
780
+ { method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
781
+ { method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
782
+ { method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
783
+ { method: "POST", pathPattern: "/api/tasks/{id}/relations" },
784
+ { method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
785
+ { method: "GET", pathPattern: "/api/tasks/{id}/chat" },
786
+ { method: "POST", pathPattern: "/api/tasks/{id}/chat" },
787
+ { method: "GET", pathPattern: "/api/tasks/{id}/spend" },
788
+ // Inbox — read only (no reply, no archive / delete / mark-read).
789
+ { method: "GET", pathPattern: "/api/inbox" },
790
+ { method: "GET", pathPattern: "/api/inbox/unread-count" },
791
+ { method: "GET", pathPattern: "/api/inbox/{id}" },
792
+ // Goals — reads, a draft create, field-limited update, pause, and the
793
+ // ASKING side of the definition of done (propose, never approve).
794
+ { method: "GET", pathPattern: "/api/me/goals" },
795
+ { method: "POST", pathPattern: "/api/me/goals" },
796
+ { method: "GET", pathPattern: "/api/me/goals/{id}" },
797
+ { method: "PATCH", pathPattern: "/api/me/goals/{id}" },
798
+ { method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
799
+ { method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
800
+ { method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
801
+ // Fleet — reads only.
802
+ { method: "GET", pathPattern: "/api/fleet/nodes" },
803
+ { method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
804
+ { method: "GET", pathPattern: "/api/fleet/runner-status" },
805
+ { method: "GET", pathPattern: "/api/fleet/execution-preferences" },
806
+ { method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
807
+ // Agents — reads, plus cancel and pause (the safe direction).
808
+ { method: "GET", pathPattern: "/api/agents" },
809
+ { method: "GET", pathPattern: "/api/agents/{id}" },
810
+ { method: "GET", pathPattern: "/api/agents/{id}/runs" },
811
+ { method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
812
+ { method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
813
+ { method: "POST", pathPattern: "/api/agents/{id}/pause" },
814
+ { method: "GET", pathPattern: "/api/agents/{id}/budget" },
815
+ // Agent Plugins — read only (installing a package installs instructions).
816
+ { method: "GET", pathPattern: "/api/agent-plugins" },
817
+ { method: "GET", pathPattern: "/api/agent-plugins/findings" },
818
+ { method: "GET", pathPattern: "/api/agent-plugins/catalog" },
819
+ { method: "GET", pathPattern: "/api/agent-plugins/updates" }
820
+ ]);
821
+ function splitSegments(normalizedPath) {
822
+ return normalizedPath.split("/").filter((segment) => segment.length > 0);
823
+ }
824
+ FLEET_RUN_TOKEN_ROUTES.map((route) => ({
825
+ method: route.method.toUpperCase(),
826
+ shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
827
+ }));
724
828
  var EMAIL_INBOX_CAP_FIELDS = [
725
829
  "inboxDailySends",
726
830
  "inboxBurstSends",
package/dist/index.js CHANGED
@@ -715,6 +715,110 @@ var FLEET_LINK_CONTROL_TYPES = [
715
715
  ];
716
716
  new Set(FLEET_LINK_CONTROL_TYPES);
717
717
  new TextEncoder();
718
+ var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
719
+ // Works — reads, plus the settings update (its merge / check / command
720
+ // fields are refused for run tokens by the Works controller).
721
+ { method: "GET", pathPattern: "/api/works" },
722
+ { method: "GET", pathPattern: "/api/works/{id}" },
723
+ { method: "PUT", pathPattern: "/api/works/{id}" },
724
+ { method: "GET", pathPattern: "/api/works/{id}/config" },
725
+ { method: "GET", pathPattern: "/api/works/{id}/items" },
726
+ { method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
727
+ { method: "GET", pathPattern: "/api/works/{id}/history" },
728
+ { method: "GET", pathPattern: "/api/works/{id}/generator-form" },
729
+ { method: "GET", pathPattern: "/api/works/{id}/schedule" },
730
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons" },
731
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
732
+ // Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
733
+ // lands `proposed` (review-gated), see the KB controller. No unlock.
734
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
735
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
736
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
737
+ { method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
738
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
739
+ // Deploy — reads and the capability check only.
740
+ { method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
741
+ { method: "GET", pathPattern: "/api/deploy/providers" },
742
+ { method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
743
+ // Plugins — read only.
744
+ { method: "GET", pathPattern: "/api/plugins" },
745
+ { method: "GET", pathPattern: "/api/plugins/{pluginId}" },
746
+ // Missions — reads, plus pause (the safe direction).
747
+ { method: "GET", pathPattern: "/api/me/missions" },
748
+ { method: "GET", pathPattern: "/api/me/missions/{id}" },
749
+ { method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
750
+ { method: "GET", pathPattern: "/api/me/missions/{id}/works" },
751
+ { method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
752
+ // Ideas — reads, plus filing a new Idea (a proposal a person builds).
753
+ { method: "POST", pathPattern: "/api/me/work-proposals" },
754
+ { method: "GET", pathPattern: "/api/me/work-proposals" },
755
+ { method: "GET", pathPattern: "/api/me/work-proposals/status" },
756
+ { method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
757
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
758
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
759
+ // Account-wide usage.
760
+ { method: "GET", pathPattern: "/api/me/usage/account-wide" },
761
+ // Tasks — reads and collaboration writes. Create / update / transition /
762
+ // assign / chat carry body refusals for run tokens in the Tasks
763
+ // controller (no checks, no schedule, no force, no dispatch, no @agent).
764
+ { method: "GET", pathPattern: "/api/tasks" },
765
+ { method: "POST", pathPattern: "/api/tasks" },
766
+ { method: "GET", pathPattern: "/api/tasks/{id}" },
767
+ { method: "PATCH", pathPattern: "/api/tasks/{id}" },
768
+ { method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
769
+ { method: "GET", pathPattern: "/api/tasks/{id}/activity" },
770
+ { method: "POST", pathPattern: "/api/tasks/{id}/transition" },
771
+ { method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
772
+ { method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
773
+ { method: "GET", pathPattern: "/api/tasks/{id}/diff" },
774
+ { method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
775
+ { method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
776
+ { method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
777
+ { method: "POST", pathPattern: "/api/tasks/{id}/relations" },
778
+ { method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
779
+ { method: "GET", pathPattern: "/api/tasks/{id}/chat" },
780
+ { method: "POST", pathPattern: "/api/tasks/{id}/chat" },
781
+ { method: "GET", pathPattern: "/api/tasks/{id}/spend" },
782
+ // Inbox — read only (no reply, no archive / delete / mark-read).
783
+ { method: "GET", pathPattern: "/api/inbox" },
784
+ { method: "GET", pathPattern: "/api/inbox/unread-count" },
785
+ { method: "GET", pathPattern: "/api/inbox/{id}" },
786
+ // Goals — reads, a draft create, field-limited update, pause, and the
787
+ // ASKING side of the definition of done (propose, never approve).
788
+ { method: "GET", pathPattern: "/api/me/goals" },
789
+ { method: "POST", pathPattern: "/api/me/goals" },
790
+ { method: "GET", pathPattern: "/api/me/goals/{id}" },
791
+ { method: "PATCH", pathPattern: "/api/me/goals/{id}" },
792
+ { method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
793
+ { method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
794
+ { method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
795
+ // Fleet — reads only.
796
+ { method: "GET", pathPattern: "/api/fleet/nodes" },
797
+ { method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
798
+ { method: "GET", pathPattern: "/api/fleet/runner-status" },
799
+ { method: "GET", pathPattern: "/api/fleet/execution-preferences" },
800
+ { method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
801
+ // Agents — reads, plus cancel and pause (the safe direction).
802
+ { method: "GET", pathPattern: "/api/agents" },
803
+ { method: "GET", pathPattern: "/api/agents/{id}" },
804
+ { method: "GET", pathPattern: "/api/agents/{id}/runs" },
805
+ { method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
806
+ { method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
807
+ { method: "POST", pathPattern: "/api/agents/{id}/pause" },
808
+ { method: "GET", pathPattern: "/api/agents/{id}/budget" },
809
+ // Agent Plugins — read only (installing a package installs instructions).
810
+ { method: "GET", pathPattern: "/api/agent-plugins" },
811
+ { method: "GET", pathPattern: "/api/agent-plugins/findings" },
812
+ { method: "GET", pathPattern: "/api/agent-plugins/catalog" },
813
+ { method: "GET", pathPattern: "/api/agent-plugins/updates" }
814
+ ]);
815
+ function splitSegments(normalizedPath) {
816
+ return normalizedPath.split("/").filter((segment) => segment.length > 0);
817
+ }
818
+ FLEET_RUN_TOKEN_ROUTES.map((route) => ({
819
+ method: route.method.toUpperCase(),
820
+ shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
821
+ }));
718
822
  var EMAIL_INBOX_CAP_FIELDS = [
719
823
  "inboxDailySends",
720
824
  "inboxBurstSends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/mailchimp-transactional-plugin",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Mailchimp Transactional (Mandrill) email provider plugin (outbound) for Ever Works platform",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -32,7 +32,7 @@
32
32
  "test:watch": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@ever-works/plugin": "^1.2.6",
35
+ "@ever-works/plugin": "^1.2.8",
36
36
  "@mailchimp/mailchimp_transactional": "^1.0.59"
37
37
  },
38
38
  "devDependencies": {
@@ -82,8 +82,8 @@
82
82
  "url": "https://github.com/ever-works/ever-works/issues"
83
83
  },
84
84
  "everworksRelease": {
85
- "contentHash": "sha256:f3de987f16e548bc9fff80021bd857e4360a882afead3e83684b2f2d53b97c37",
86
- "commit": "eff002871bfd7f9f8e0f984907f45265ae8b01e0",
87
- "source": "https://github.com/ever-works/ever-works/tree/eff002871bfd7f9f8e0f984907f45265ae8b01e0/packages/plugins/mailchimp-transactional"
85
+ "contentHash": "sha256:5f9bea5b548222e44c9915dd95abe4d508d4cffd8d6f183e1ff000245324da9c",
86
+ "commit": "efd11a2282ea3e514e93f754b9b008543a7cff60",
87
+ "source": "https://github.com/ever-works/ever-works/tree/efd11a2282ea3e514e93f754b9b008543a7cff60/packages/plugins/mailchimp-transactional"
88
88
  }
89
89
  }