@ever-works/everworks-skills-plugin 1.0.3 → 1.0.4

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
@@ -102,10 +102,14 @@ var USER_SELECTABLE_WORK_KINDS = [
102
102
  "repo",
103
103
  "app"
104
104
  ];
105
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
105
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
106
106
  new Set(WORK_KINDS);
107
107
  var GOAL_KINDS = ["metric", "delivery"];
108
108
  new Set(GOAL_KINDS);
109
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
110
+ new Set(RECORD_VISIBILITIES);
111
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
112
+ new Set(RECORD_LIST_VIEWS);
109
113
  var VERSION = "1.0.0";
110
114
  var GTM_SKILLS = [
111
115
  // ── research ────────────────────────────────────────────────────────
@@ -811,6 +815,115 @@ var ACTION_CATEGORIES = Object.freeze([
811
815
  Object.freeze(
812
816
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
813
817
  );
818
+ var DOMAIN_EVENT_CATALOG = [
819
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
820
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
821
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
822
+ {
823
+ type: "organization.member.added",
824
+ domain: "organization",
825
+ aggregateType: "organization",
826
+ phase: "P1",
827
+ child: "member"
828
+ },
829
+ {
830
+ type: "organization.member.updated",
831
+ domain: "organization",
832
+ aggregateType: "organization",
833
+ phase: "P1",
834
+ child: "member"
835
+ },
836
+ {
837
+ type: "organization.member.removed",
838
+ domain: "organization",
839
+ aggregateType: "organization",
840
+ phase: "P1",
841
+ child: "member"
842
+ },
843
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
844
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
845
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
846
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
847
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
848
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
849
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
850
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
851
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
852
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
853
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
854
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
855
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
856
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
857
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
858
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
859
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
860
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
861
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
862
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
863
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
864
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
865
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
866
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
867
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
868
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
869
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
870
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
871
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
872
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
873
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
874
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
875
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
876
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
877
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
878
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
879
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
880
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
881
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
882
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
883
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
884
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
885
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
886
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
887
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
888
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
889
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
890
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
891
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
892
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
893
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
894
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
895
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
896
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
897
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
898
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
899
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
900
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
901
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
902
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
903
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
904
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
905
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
906
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
907
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
908
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
909
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
910
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
911
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
912
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
913
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
914
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
915
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
916
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
917
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
918
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
919
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
920
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
921
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
922
+ ];
923
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
924
+ new Map(
925
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
926
+ );
814
927
 
815
928
  // src/gtm-catalog.ts
816
929
  function ioTable(heading, rows) {
package/dist/index.js CHANGED
@@ -94,10 +94,14 @@ var USER_SELECTABLE_WORK_KINDS = [
94
94
  "repo",
95
95
  "app"
96
96
  ];
97
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
97
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
98
98
  new Set(WORK_KINDS);
99
99
  var GOAL_KINDS = ["metric", "delivery"];
100
100
  new Set(GOAL_KINDS);
101
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
102
+ new Set(RECORD_VISIBILITIES);
103
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
104
+ new Set(RECORD_LIST_VIEWS);
101
105
  var VERSION = "1.0.0";
102
106
  var GTM_SKILLS = [
103
107
  // ── research ────────────────────────────────────────────────────────
@@ -803,6 +807,115 @@ var ACTION_CATEGORIES = Object.freeze([
803
807
  Object.freeze(
804
808
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
805
809
  );
810
+ var DOMAIN_EVENT_CATALOG = [
811
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
812
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
813
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
814
+ {
815
+ type: "organization.member.added",
816
+ domain: "organization",
817
+ aggregateType: "organization",
818
+ phase: "P1",
819
+ child: "member"
820
+ },
821
+ {
822
+ type: "organization.member.updated",
823
+ domain: "organization",
824
+ aggregateType: "organization",
825
+ phase: "P1",
826
+ child: "member"
827
+ },
828
+ {
829
+ type: "organization.member.removed",
830
+ domain: "organization",
831
+ aggregateType: "organization",
832
+ phase: "P1",
833
+ child: "member"
834
+ },
835
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
836
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
837
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
838
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
839
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
840
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
841
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
842
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
843
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
844
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
845
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
846
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
847
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
848
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
849
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
850
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
851
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
852
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
853
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
854
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
855
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
856
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
857
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
858
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
859
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
860
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
861
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
862
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
863
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
864
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
865
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
866
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
867
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
868
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
869
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
870
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
871
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
872
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
873
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
874
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
875
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
876
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
877
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
878
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
879
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
880
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
881
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
882
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
883
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
884
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
885
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
886
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
887
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
888
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
889
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
890
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
891
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
892
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
893
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
894
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
895
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
896
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
897
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
898
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
899
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
900
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
901
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
902
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
903
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
904
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
905
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
906
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
907
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
908
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
909
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
910
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
911
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
912
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
913
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
914
+ ];
915
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
916
+ new Map(
917
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
918
+ );
806
919
 
807
920
  // src/gtm-catalog.ts
808
921
  function ioTable(heading, rows) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/everworks-skills-plugin",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Ever Works Skills — first-party skills-provider plugin sourcing the curated catalog from the ever-works/skills GitHub repo.",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -33,14 +33,14 @@
33
33
  "test:coverage": "vitest run --coverage"
34
34
  },
35
35
  "dependencies": {
36
- "@ever-works/contracts": "^1.0.5",
37
- "@ever-works/plugin": "^1.2.4",
36
+ "@ever-works/contracts": "^1.0.6",
37
+ "@ever-works/plugin": "^1.2.5",
38
38
  "gray-matter": "^4.0.3"
39
39
  },
40
40
  "devDependencies": {
41
41
  "tsup": "^8.3.0",
42
42
  "typescript": "^5.9.3",
43
- "vitest": "^4.1.0"
43
+ "vitest": "^5.0.5"
44
44
  },
45
45
  "everworks": {
46
46
  "plugin": {
@@ -68,8 +68,8 @@
68
68
  "url": "https://github.com/ever-works/ever-works/issues"
69
69
  },
70
70
  "everworksRelease": {
71
- "contentHash": "sha256:1026b3b8b5ba76594fb011944c3d81648bd49ccbdd75c85ace3d0808824f9ff9",
72
- "commit": "61b8320b4ad7d30bf5161acf7ee13b250a6172b9",
73
- "source": "https://github.com/ever-works/ever-works/tree/61b8320b4ad7d30bf5161acf7ee13b250a6172b9/packages/plugins/everworks-skills"
71
+ "contentHash": "sha256:464fe9669450cf738fe56a6556bf068c4c93c009c016025bffedd042b77743f0",
72
+ "commit": "19905c70cf05be3bc523db030597046067cd322a",
73
+ "source": "https://github.com/ever-works/ever-works/tree/19905c70cf05be3bc523db030597046067cd322a/packages/plugins/everworks-skills"
74
74
  }
75
75
  }