@ever-works/everworks-playbooks-plugin 1.0.1 → 1.0.3

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
@@ -2,6 +2,90 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.2/node_modules/@ever-co/connect-contracts/dist/index.js
6
+ var PROBLEM_CODES = [
7
+ "validation_failed",
8
+ "not_found",
9
+ "unauthorized",
10
+ "forbidden_role",
11
+ "forbidden_scope",
12
+ "ambiguous_credentials",
13
+ "credential_revoked",
14
+ "instance_disconnected",
15
+ "instance_pending_approval",
16
+ "not_connection_owner",
17
+ "integration_disabled",
18
+ "integration_revoked",
19
+ "denied_by_policy",
20
+ "integration_not_available",
21
+ "entitlement_required",
22
+ "tier_required",
23
+ "limit_exceeded",
24
+ "rate_limited",
25
+ "idempotency_mismatch",
26
+ "idempotency_in_progress",
27
+ "stale_version",
28
+ "module_disabled",
29
+ "handle_taken",
30
+ "handle_reserved",
31
+ "handle_retired",
32
+ "handle_invalid",
33
+ "handle_held",
34
+ "handle_held_by_you",
35
+ "code_invalid",
36
+ "code_expired",
37
+ "product_mismatch",
38
+ "product_not_supported",
39
+ "key_mismatch",
40
+ "signature_invalid",
41
+ "unlinked_org",
42
+ "schema_violation",
43
+ "mirror_owned_field",
44
+ "illegal_transition",
45
+ "already_exists",
46
+ "already_completed",
47
+ "billing_active",
48
+ "sso_required",
49
+ "reauth_required",
50
+ "session_required",
51
+ "step_up_required",
52
+ "session_bound",
53
+ "authorization_pending",
54
+ "slow_down",
55
+ "expired_token",
56
+ "already_connected",
57
+ "already_linked",
58
+ "already_claimed",
59
+ "invalid_client",
60
+ "public_jwk_invalid",
61
+ "identifier_claimed",
62
+ "salt_version_unknown",
63
+ "salt_version_retired",
64
+ "hashes_invalid",
65
+ "lookup_key_required",
66
+ "required_component",
67
+ "resync_required",
68
+ "last_owner",
69
+ "last_auth_method",
70
+ "instances_linked",
71
+ "install_in_progress",
72
+ "slug_reserved",
73
+ "checklist_incomplete",
74
+ "scope_version_outdated",
75
+ "method_not_allowed",
76
+ "payload_too_large",
77
+ "unsupported_media_type",
78
+ "gone",
79
+ "unavailable",
80
+ "upstream",
81
+ "database_absent",
82
+ "database_unreachable",
83
+ "topic_private",
84
+ "keys_unavailable",
85
+ "internal_error"
86
+ ];
87
+ new Set(PROBLEM_CODES);
88
+
5
89
  // ../../contracts/dist/index.js
6
90
  var USER_SELECTABLE_WORK_KINDS = [
7
91
  "website",
@@ -12,10 +96,14 @@ var USER_SELECTABLE_WORK_KINDS = [
12
96
  "repo",
13
97
  "app"
14
98
  ];
15
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
99
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
16
100
  new Set(WORK_KINDS);
17
101
  var GOAL_KINDS = ["metric", "delivery"];
18
102
  new Set(GOAL_KINDS);
103
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
104
+ new Set(RECORD_VISIBILITIES);
105
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
106
+ new Set(RECORD_LIST_VIEWS);
19
107
  var VERSION = "1.0.0";
20
108
  var GTM_SKILLS = [
21
109
  // ── research ────────────────────────────────────────────────────────
@@ -1064,6 +1152,115 @@ var ACTION_CATEGORIES = Object.freeze([
1064
1152
  Object.freeze(
1065
1153
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
1066
1154
  );
1155
+ var DOMAIN_EVENT_CATALOG = [
1156
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
1157
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
1158
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
1159
+ {
1160
+ type: "organization.member.added",
1161
+ domain: "organization",
1162
+ aggregateType: "organization",
1163
+ phase: "P1",
1164
+ child: "member"
1165
+ },
1166
+ {
1167
+ type: "organization.member.updated",
1168
+ domain: "organization",
1169
+ aggregateType: "organization",
1170
+ phase: "P1",
1171
+ child: "member"
1172
+ },
1173
+ {
1174
+ type: "organization.member.removed",
1175
+ domain: "organization",
1176
+ aggregateType: "organization",
1177
+ phase: "P1",
1178
+ child: "member"
1179
+ },
1180
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
1181
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
1182
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
1183
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
1184
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
1185
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
1186
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
1187
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
1188
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1189
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1190
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1191
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1192
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1193
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
1194
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
1195
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
1196
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
1197
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1198
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1199
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1200
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
1201
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
1202
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
1203
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
1204
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1205
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1206
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1207
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1208
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
1209
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
1210
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1211
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
1212
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
1213
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
1214
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1215
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
1216
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
1217
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
1218
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
1219
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
1220
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
1221
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
1222
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
1223
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1224
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1225
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1226
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1227
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1228
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1229
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1230
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1231
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1232
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1233
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1234
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1235
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1236
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
1237
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1238
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1239
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1240
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1241
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1242
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1243
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1244
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1245
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1246
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1247
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1248
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1249
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1250
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1251
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
1252
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
1253
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
1254
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
1255
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
1256
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
1257
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
1258
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
1259
+ ];
1260
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
1261
+ new Map(
1262
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
1263
+ );
1067
1264
 
1068
1265
  // src/builtin-catalog.ts
1069
1266
  var ASK_BEFORE_EVERYTHING = {
package/dist/index.js CHANGED
@@ -1,3 +1,87 @@
1
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.2/node_modules/@ever-co/connect-contracts/dist/index.js
2
+ var PROBLEM_CODES = [
3
+ "validation_failed",
4
+ "not_found",
5
+ "unauthorized",
6
+ "forbidden_role",
7
+ "forbidden_scope",
8
+ "ambiguous_credentials",
9
+ "credential_revoked",
10
+ "instance_disconnected",
11
+ "instance_pending_approval",
12
+ "not_connection_owner",
13
+ "integration_disabled",
14
+ "integration_revoked",
15
+ "denied_by_policy",
16
+ "integration_not_available",
17
+ "entitlement_required",
18
+ "tier_required",
19
+ "limit_exceeded",
20
+ "rate_limited",
21
+ "idempotency_mismatch",
22
+ "idempotency_in_progress",
23
+ "stale_version",
24
+ "module_disabled",
25
+ "handle_taken",
26
+ "handle_reserved",
27
+ "handle_retired",
28
+ "handle_invalid",
29
+ "handle_held",
30
+ "handle_held_by_you",
31
+ "code_invalid",
32
+ "code_expired",
33
+ "product_mismatch",
34
+ "product_not_supported",
35
+ "key_mismatch",
36
+ "signature_invalid",
37
+ "unlinked_org",
38
+ "schema_violation",
39
+ "mirror_owned_field",
40
+ "illegal_transition",
41
+ "already_exists",
42
+ "already_completed",
43
+ "billing_active",
44
+ "sso_required",
45
+ "reauth_required",
46
+ "session_required",
47
+ "step_up_required",
48
+ "session_bound",
49
+ "authorization_pending",
50
+ "slow_down",
51
+ "expired_token",
52
+ "already_connected",
53
+ "already_linked",
54
+ "already_claimed",
55
+ "invalid_client",
56
+ "public_jwk_invalid",
57
+ "identifier_claimed",
58
+ "salt_version_unknown",
59
+ "salt_version_retired",
60
+ "hashes_invalid",
61
+ "lookup_key_required",
62
+ "required_component",
63
+ "resync_required",
64
+ "last_owner",
65
+ "last_auth_method",
66
+ "instances_linked",
67
+ "install_in_progress",
68
+ "slug_reserved",
69
+ "checklist_incomplete",
70
+ "scope_version_outdated",
71
+ "method_not_allowed",
72
+ "payload_too_large",
73
+ "unsupported_media_type",
74
+ "gone",
75
+ "unavailable",
76
+ "upstream",
77
+ "database_absent",
78
+ "database_unreachable",
79
+ "topic_private",
80
+ "keys_unavailable",
81
+ "internal_error"
82
+ ];
83
+ new Set(PROBLEM_CODES);
84
+
1
85
  // ../../contracts/dist/index.js
2
86
  var USER_SELECTABLE_WORK_KINDS = [
3
87
  "website",
@@ -8,10 +92,14 @@ var USER_SELECTABLE_WORK_KINDS = [
8
92
  "repo",
9
93
  "app"
10
94
  ];
11
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
95
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
12
96
  new Set(WORK_KINDS);
13
97
  var GOAL_KINDS = ["metric", "delivery"];
14
98
  new Set(GOAL_KINDS);
99
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
100
+ new Set(RECORD_VISIBILITIES);
101
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
102
+ new Set(RECORD_LIST_VIEWS);
15
103
  var VERSION = "1.0.0";
16
104
  var GTM_SKILLS = [
17
105
  // ── research ────────────────────────────────────────────────────────
@@ -1060,6 +1148,115 @@ var ACTION_CATEGORIES = Object.freeze([
1060
1148
  Object.freeze(
1061
1149
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
1062
1150
  );
1151
+ var DOMAIN_EVENT_CATALOG = [
1152
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
1153
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
1154
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
1155
+ {
1156
+ type: "organization.member.added",
1157
+ domain: "organization",
1158
+ aggregateType: "organization",
1159
+ phase: "P1",
1160
+ child: "member"
1161
+ },
1162
+ {
1163
+ type: "organization.member.updated",
1164
+ domain: "organization",
1165
+ aggregateType: "organization",
1166
+ phase: "P1",
1167
+ child: "member"
1168
+ },
1169
+ {
1170
+ type: "organization.member.removed",
1171
+ domain: "organization",
1172
+ aggregateType: "organization",
1173
+ phase: "P1",
1174
+ child: "member"
1175
+ },
1176
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
1177
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
1178
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
1179
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
1180
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
1181
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
1182
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
1183
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
1184
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1185
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1186
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
1187
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1188
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
1189
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
1190
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
1191
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
1192
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
1193
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1194
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1195
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
1196
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
1197
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
1198
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
1199
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
1200
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1201
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
1202
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1203
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
1204
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
1205
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
1206
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1207
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
1208
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
1209
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
1210
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
1211
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
1212
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
1213
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
1214
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
1215
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
1216
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
1217
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
1218
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
1219
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1220
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
1221
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1222
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
1223
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1224
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
1225
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1226
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
1227
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1228
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1229
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
1230
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1231
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
1232
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
1233
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1234
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1235
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1236
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1237
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1238
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1239
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1240
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1241
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1242
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1243
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1244
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1245
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1246
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
1247
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
1248
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
1249
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
1250
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
1251
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
1252
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
1253
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
1254
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
1255
+ ];
1256
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
1257
+ new Map(
1258
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
1259
+ );
1063
1260
 
1064
1261
  // src/builtin-catalog.ts
1065
1262
  var ASK_BEFORE_EVERYTHING = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/everworks-playbooks-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Ever Works Playbooks — first-party playbook-provider plugin supplying the built-in Playbook catalogue: packaged outcomes with their trigger, steps, required capabilities, artefacts and escalation points.",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -33,13 +33,13 @@
33
33
  "test:coverage": "vitest run --coverage"
34
34
  },
35
35
  "dependencies": {
36
- "@ever-works/contracts": "^1.0.1",
37
- "@ever-works/plugin": "^1.2.1"
36
+ "@ever-works/contracts": "^1.0.6",
37
+ "@ever-works/plugin": "^1.2.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "tsup": "^8.3.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": {
@@ -67,8 +67,8 @@
67
67
  "url": "https://github.com/ever-works/ever-works/issues"
68
68
  },
69
69
  "everworksRelease": {
70
- "contentHash": "sha256:6bd8d94a52c611a3853bd879cef5a6b638ba47d409412ec7100d630ea5cc790e",
71
- "commit": "818c27bf090ec12bc7ccd6a837905544ee9ebbca",
72
- "source": "https://github.com/ever-works/ever-works/tree/818c27bf090ec12bc7ccd6a837905544ee9ebbca/packages/plugins/everworks-playbooks"
70
+ "contentHash": "sha256:2beada21f84405218a81d1579a6b4d2d2c109aa9cfdb396212a29e2f8bf17287",
71
+ "commit": "19905c70cf05be3bc523db030597046067cd322a",
72
+ "source": "https://github.com/ever-works/ever-works/tree/19905c70cf05be3bc523db030597046067cd322a/packages/plugins/everworks-playbooks"
73
73
  }
74
74
  }