@ever-works/composio-plugin 1.0.5 → 1.0.7

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
@@ -283,10 +283,14 @@ var USER_SELECTABLE_WORK_KINDS = [
283
283
  "repo",
284
284
  "app"
285
285
  ];
286
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
286
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
287
287
  var WORK_KIND_SET = new Set(WORK_KINDS);
288
288
  var GOAL_KINDS = ["metric", "delivery"];
289
289
  var GOAL_KIND_SET = new Set(GOAL_KINDS);
290
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
291
+ var RECORD_VISIBILITY_SET = new Set(RECORD_VISIBILITIES);
292
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
293
+ var RECORD_LIST_VIEW_SET = new Set(RECORD_LIST_VIEWS);
290
294
  var APP_DEPENDENCY_BACKUP_OVERDUE_MS = 26 * 36e5;
291
295
  var APP_DEPENDENCY_MANAGED = {
292
296
  pgRoleConnectionLimit: 20,
@@ -1079,6 +1083,10 @@ var FLEET_AGENT_TASK_TIMELINE_MAX_BYTES = 48 * 1024;
1079
1083
  var FLEET_AGENT_TASK_TRANSCRIPT_MAX_BYTES = 64 * 1024;
1080
1084
  var FLEET_AGENT_TASK_QUESTION_MAX_FILE_BYTES = 64 * 1024;
1081
1085
  var FLEET_AGENT_TASK_QUESTION_MAX_CONTEXT_BYTES = 6 * 1024;
1086
+ var FLEET_MODEL_USAGE_LIMIT_FALLBACK_MS = 60 * 60 * 1e3;
1087
+ var FLEET_MODEL_USAGE_LIMIT_MIN_MS = 60 * 1e3;
1088
+ var FLEET_MODEL_USAGE_LIMIT_MAX_MS = 8 * 24 * 60 * 60 * 1e3;
1089
+ var FLEET_MODEL_USAGE_LIMIT_RESET_SLACK_MS = 60 * 1e3;
1082
1090
  var FLEET_NODE_MAX_MEMORY_MB = 1024 * 1024;
1083
1091
  var FLEET_MAX_DAILY_COST_CEILING_CENTS = 1e5 * 100;
1084
1092
  var FLEET_MAX_DISK_FREE_BYTES = 2 ** 60;
@@ -1488,6 +1496,152 @@ var EVER_STATS_SIGNATURE_HEADER = CONSTANTS.stats_headers.signature;
1488
1496
  var EVER_STATS_KEY_ID_HEADER = CONSTANTS.stats_headers.key_id;
1489
1497
  var EVER_STATS_SIGNATURE_PREFIX = CONSTANTS.stats_signature_prefix;
1490
1498
  var EVER_STATS_MAX_BODY_BYTES = CONSTANTS.stats.max_bytes;
1499
+ var DOMAIN_EVENT_CATALOG = [
1500
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
1501
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
1502
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
1503
+ {
1504
+ type: "organization.member.added",
1505
+ domain: "organization",
1506
+ aggregateType: "organization",
1507
+ phase: "P1",
1508
+ child: "member"
1509
+ },
1510
+ {
1511
+ type: "organization.member.updated",
1512
+ domain: "organization",
1513
+ aggregateType: "organization",
1514
+ phase: "P1",
1515
+ child: "member"
1516
+ },
1517
+ {
1518
+ type: "organization.member.removed",
1519
+ domain: "organization",
1520
+ aggregateType: "organization",
1521
+ phase: "P1",
1522
+ child: "member"
1523
+ },
1524
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
1525
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
1526
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
1527
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
1528
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
1529
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
1530
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
1531
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
1532
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1533
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1534
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1535
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1536
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1537
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
1538
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
1539
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
1540
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
1541
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1542
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1543
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1544
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
1545
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
1546
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
1547
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
1548
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1549
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1550
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1551
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1552
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
1553
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
1554
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1555
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
1556
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
1557
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
1558
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1559
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
1560
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
1561
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
1562
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
1563
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
1564
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
1565
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
1566
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
1567
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1568
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1569
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1570
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1571
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1572
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1573
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1574
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1575
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1576
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1577
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1578
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1579
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1580
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
1581
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1582
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1583
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1584
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1585
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1586
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1587
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1588
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1589
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1590
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1591
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1592
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1593
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1594
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1595
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
1596
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
1597
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
1598
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
1599
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
1600
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
1601
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
1602
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
1603
+ ];
1604
+ var DOMAIN_EVENT_TYPES = DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
1605
+ var CATALOG_BY_TYPE = new Map(
1606
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
1607
+ );
1608
+ var RECIPIENT_SCOPED_EVENT_DOMAINS = {
1609
+ inbox: "inbox:read",
1610
+ email: "email:read"
1611
+ };
1612
+ var RECIPIENT_EVENT_SCOPES = Object.values(RECIPIENT_SCOPED_EVENT_DOMAINS);
1613
+ var INTEGRATION_SCOPES = [
1614
+ "org:read",
1615
+ "org:write",
1616
+ "members:read",
1617
+ "members:write",
1618
+ "agents:read",
1619
+ "teams:read",
1620
+ "teams:write",
1621
+ "works:read",
1622
+ "works:write",
1623
+ "missions:read",
1624
+ "missions:write",
1625
+ "goals:read",
1626
+ "goals:write",
1627
+ "ideas:read",
1628
+ "ideas:write",
1629
+ "tasks:read",
1630
+ "tasks:write",
1631
+ "inbox:read",
1632
+ "inbox:write",
1633
+ "kb:read",
1634
+ "kb:write",
1635
+ "email:read",
1636
+ "email:write",
1637
+ "events:read",
1638
+ "webhooks:manage",
1639
+ "links:write"
1640
+ ];
1641
+ var INTEGRATION_OPT_IN_SCOPES = ["org:write", "email:write"];
1642
+ var EVER_GAUZY_PRESET_SCOPES = INTEGRATION_SCOPES.filter(
1643
+ (scope) => !INTEGRATION_OPT_IN_SCOPES.includes(scope)
1644
+ );
1491
1645
 
1492
1646
  // ../../plugin/dist/index.js
1493
1647
  var DEFAULT_DIFF_MAX_BYTES = 256 * 1024;
@@ -1634,7 +1788,14 @@ var PLUGIN_CAPABILITIES = {
1634
1788
  // new category: the tier's plugin is a `deployment` plugin, so
1635
1789
  // `PLUGIN_CATEGORIES` is untouched and every exhaustive map over it in
1636
1790
  // `apps/web` stays total.
1637
- APPS_TIER: "apps-tier"
1791
+ APPS_TIER: "apps-tier",
1792
+ // Domain events (EW-P1-1) — plugins that follow the durable domain event
1793
+ // outbox (`task.updated`, `team.member.added`, …) through the relay, at
1794
+ // least once, with a per-plugin cursor. See
1795
+ // `capabilities/domain-event-subscriber.interface.ts`. Appended last, so
1796
+ // every existing constant keeps its value and its position; no category is
1797
+ // added (a subscriber plugin keeps the category of what it otherwise is).
1798
+ DOMAIN_EVENT_SUBSCRIBER: "domain-event-subscriber"
1638
1799
  };
1639
1800
  var ALL_PLUGIN_CAPABILITIES = Object.values(PLUGIN_CAPABILITIES);
1640
1801
  var ITEM_SCHEMA_PROMPT_TEXT = `
package/dist/index.js CHANGED
@@ -256,10 +256,14 @@ var USER_SELECTABLE_WORK_KINDS = [
256
256
  "repo",
257
257
  "app"
258
258
  ];
259
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
259
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
260
260
  var WORK_KIND_SET = new Set(WORK_KINDS);
261
261
  var GOAL_KINDS = ["metric", "delivery"];
262
262
  var GOAL_KIND_SET = new Set(GOAL_KINDS);
263
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
264
+ var RECORD_VISIBILITY_SET = new Set(RECORD_VISIBILITIES);
265
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
266
+ var RECORD_LIST_VIEW_SET = new Set(RECORD_LIST_VIEWS);
263
267
  var APP_DEPENDENCY_BACKUP_OVERDUE_MS = 26 * 36e5;
264
268
  var APP_DEPENDENCY_MANAGED = {
265
269
  pgRoleConnectionLimit: 20,
@@ -1052,6 +1056,10 @@ var FLEET_AGENT_TASK_TIMELINE_MAX_BYTES = 48 * 1024;
1052
1056
  var FLEET_AGENT_TASK_TRANSCRIPT_MAX_BYTES = 64 * 1024;
1053
1057
  var FLEET_AGENT_TASK_QUESTION_MAX_FILE_BYTES = 64 * 1024;
1054
1058
  var FLEET_AGENT_TASK_QUESTION_MAX_CONTEXT_BYTES = 6 * 1024;
1059
+ var FLEET_MODEL_USAGE_LIMIT_FALLBACK_MS = 60 * 60 * 1e3;
1060
+ var FLEET_MODEL_USAGE_LIMIT_MIN_MS = 60 * 1e3;
1061
+ var FLEET_MODEL_USAGE_LIMIT_MAX_MS = 8 * 24 * 60 * 60 * 1e3;
1062
+ var FLEET_MODEL_USAGE_LIMIT_RESET_SLACK_MS = 60 * 1e3;
1055
1063
  var FLEET_NODE_MAX_MEMORY_MB = 1024 * 1024;
1056
1064
  var FLEET_MAX_DAILY_COST_CEILING_CENTS = 1e5 * 100;
1057
1065
  var FLEET_MAX_DISK_FREE_BYTES = 2 ** 60;
@@ -1461,6 +1469,152 @@ var EVER_STATS_SIGNATURE_HEADER = CONSTANTS.stats_headers.signature;
1461
1469
  var EVER_STATS_KEY_ID_HEADER = CONSTANTS.stats_headers.key_id;
1462
1470
  var EVER_STATS_SIGNATURE_PREFIX = CONSTANTS.stats_signature_prefix;
1463
1471
  var EVER_STATS_MAX_BODY_BYTES = CONSTANTS.stats.max_bytes;
1472
+ var DOMAIN_EVENT_CATALOG = [
1473
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
1474
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
1475
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
1476
+ {
1477
+ type: "organization.member.added",
1478
+ domain: "organization",
1479
+ aggregateType: "organization",
1480
+ phase: "P1",
1481
+ child: "member"
1482
+ },
1483
+ {
1484
+ type: "organization.member.updated",
1485
+ domain: "organization",
1486
+ aggregateType: "organization",
1487
+ phase: "P1",
1488
+ child: "member"
1489
+ },
1490
+ {
1491
+ type: "organization.member.removed",
1492
+ domain: "organization",
1493
+ aggregateType: "organization",
1494
+ phase: "P1",
1495
+ child: "member"
1496
+ },
1497
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
1498
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
1499
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
1500
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
1501
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
1502
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
1503
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
1504
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
1505
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1506
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1507
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1508
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1509
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1510
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
1511
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
1512
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
1513
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
1514
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1515
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1516
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1517
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
1518
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
1519
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
1520
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
1521
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1522
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1523
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1524
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1525
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
1526
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
1527
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1528
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
1529
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
1530
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
1531
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1532
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
1533
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
1534
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
1535
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
1536
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
1537
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
1538
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
1539
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
1540
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1541
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1542
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1543
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1544
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1545
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1546
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1547
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1548
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1549
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1550
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1551
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1552
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1553
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
1554
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1555
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1556
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1557
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1558
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1559
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1560
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1561
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1562
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1563
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1564
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1565
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1566
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1567
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1568
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
1569
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
1570
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
1571
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
1572
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
1573
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
1574
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
1575
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
1576
+ ];
1577
+ var DOMAIN_EVENT_TYPES = DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
1578
+ var CATALOG_BY_TYPE = new Map(
1579
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
1580
+ );
1581
+ var RECIPIENT_SCOPED_EVENT_DOMAINS = {
1582
+ inbox: "inbox:read",
1583
+ email: "email:read"
1584
+ };
1585
+ var RECIPIENT_EVENT_SCOPES = Object.values(RECIPIENT_SCOPED_EVENT_DOMAINS);
1586
+ var INTEGRATION_SCOPES = [
1587
+ "org:read",
1588
+ "org:write",
1589
+ "members:read",
1590
+ "members:write",
1591
+ "agents:read",
1592
+ "teams:read",
1593
+ "teams:write",
1594
+ "works:read",
1595
+ "works:write",
1596
+ "missions:read",
1597
+ "missions:write",
1598
+ "goals:read",
1599
+ "goals:write",
1600
+ "ideas:read",
1601
+ "ideas:write",
1602
+ "tasks:read",
1603
+ "tasks:write",
1604
+ "inbox:read",
1605
+ "inbox:write",
1606
+ "kb:read",
1607
+ "kb:write",
1608
+ "email:read",
1609
+ "email:write",
1610
+ "events:read",
1611
+ "webhooks:manage",
1612
+ "links:write"
1613
+ ];
1614
+ var INTEGRATION_OPT_IN_SCOPES = ["org:write", "email:write"];
1615
+ var EVER_GAUZY_PRESET_SCOPES = INTEGRATION_SCOPES.filter(
1616
+ (scope) => !INTEGRATION_OPT_IN_SCOPES.includes(scope)
1617
+ );
1464
1618
 
1465
1619
  // ../../plugin/dist/index.js
1466
1620
  var DEFAULT_DIFF_MAX_BYTES = 256 * 1024;
@@ -1607,7 +1761,14 @@ var PLUGIN_CAPABILITIES = {
1607
1761
  // new category: the tier's plugin is a `deployment` plugin, so
1608
1762
  // `PLUGIN_CATEGORIES` is untouched and every exhaustive map over it in
1609
1763
  // `apps/web` stays total.
1610
- APPS_TIER: "apps-tier"
1764
+ APPS_TIER: "apps-tier",
1765
+ // Domain events (EW-P1-1) — plugins that follow the durable domain event
1766
+ // outbox (`task.updated`, `team.member.added`, …) through the relay, at
1767
+ // least once, with a per-plugin cursor. See
1768
+ // `capabilities/domain-event-subscriber.interface.ts`. Appended last, so
1769
+ // every existing constant keeps its value and its position; no category is
1770
+ // added (a subscriber plugin keeps the category of what it otherwise is).
1771
+ DOMAIN_EVENT_SUBSCRIBER: "domain-event-subscriber"
1611
1772
  };
1612
1773
  var ALL_PLUGIN_CAPABILITIES = Object.values(PLUGIN_CAPABILITIES);
1613
1774
  var ITEM_SCHEMA_PROMPT_TEXT = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/composio-plugin",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Composio Integration Plugin - Brokers OAuth and tool execution across 500+ apps via composio.dev",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -36,14 +36,14 @@
36
36
  "@composio/core": "^0.10.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@ever-works/plugin": "^1.2.4"
39
+ "@ever-works/plugin": "^1.2.6"
40
40
  },
41
41
  "devDependencies": {
42
- "@ever-works/plugin": "^1.2.4",
42
+ "@ever-works/plugin": "^1.2.6",
43
43
  "@types/node": "^26.6.4",
44
44
  "tsup": "^8.0.0",
45
45
  "typescript": "^5.9.3",
46
- "vitest": "^4.1.0"
46
+ "vitest": "^5.0.5"
47
47
  },
48
48
  "everworks": {
49
49
  "plugin": {
@@ -80,8 +80,8 @@
80
80
  "url": "https://github.com/ever-works/ever-works/issues"
81
81
  },
82
82
  "everworksRelease": {
83
- "contentHash": "sha256:7f31786d4669bbeb83fd64710236987ef519ad68d370c07618db5d6bb6b8b6ba",
84
- "commit": "61b8320b4ad7d30bf5161acf7ee13b250a6172b9",
85
- "source": "https://github.com/ever-works/ever-works/tree/61b8320b4ad7d30bf5161acf7ee13b250a6172b9/packages/plugins/composio"
83
+ "contentHash": "sha256:4be2eaa5593ad65f20cf1e9c3ff0fbceab4ffc37cecf7395bbd0baec2756dc6a",
84
+ "commit": "48bb7f0a20744cbdfae87675743421804e100af6",
85
+ "source": "https://github.com/ever-works/ever-works/tree/48bb7f0a20744cbdfae87675743421804e100af6/packages/plugins/composio"
86
86
  }
87
87
  }