@ever-works/pty-local-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
@@ -103,10 +103,14 @@ var USER_SELECTABLE_WORK_KINDS = [
103
103
  "repo",
104
104
  "app"
105
105
  ];
106
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
106
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
107
107
  new Set(WORK_KINDS);
108
108
  var GOAL_KINDS = ["metric", "delivery"];
109
109
  new Set(GOAL_KINDS);
110
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
111
+ new Set(RECORD_VISIBILITIES);
112
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
113
+ new Set(RECORD_LIST_VIEWS);
110
114
  var VERSION = "1.0.0";
111
115
  var GTM_SKILLS = [
112
116
  // ── research ────────────────────────────────────────────────────────
@@ -812,6 +816,115 @@ var ACTION_CATEGORIES = Object.freeze([
812
816
  Object.freeze(
813
817
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
814
818
  );
819
+ var DOMAIN_EVENT_CATALOG = [
820
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
821
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
822
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
823
+ {
824
+ type: "organization.member.added",
825
+ domain: "organization",
826
+ aggregateType: "organization",
827
+ phase: "P1",
828
+ child: "member"
829
+ },
830
+ {
831
+ type: "organization.member.updated",
832
+ domain: "organization",
833
+ aggregateType: "organization",
834
+ phase: "P1",
835
+ child: "member"
836
+ },
837
+ {
838
+ type: "organization.member.removed",
839
+ domain: "organization",
840
+ aggregateType: "organization",
841
+ phase: "P1",
842
+ child: "member"
843
+ },
844
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
845
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
846
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
847
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
848
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
849
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
850
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
851
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
852
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
853
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
854
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
855
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
856
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
857
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
858
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
859
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
860
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
861
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
862
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
863
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
864
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
865
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
866
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
867
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
868
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
869
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
870
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
871
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
872
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
873
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
874
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
875
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
876
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
877
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
878
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
879
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
880
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
881
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
882
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
883
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
884
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
885
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
886
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
887
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
888
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
889
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
890
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
891
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
892
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
893
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
894
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
895
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
896
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
897
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
898
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
899
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
900
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
901
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
902
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
903
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
904
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
905
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
906
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
907
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
908
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
909
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
910
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
911
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
912
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
913
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
914
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
915
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
916
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
917
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
918
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
919
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
920
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
921
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
922
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
923
+ ];
924
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
925
+ new Map(
926
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
927
+ );
815
928
  var TerminalNotProvisionedError = class extends Error {
816
929
  constructor(message) {
817
930
  super(message ?? "Terminal session host is not provisioned in this runtime.");
package/dist/index.js CHANGED
@@ -99,10 +99,14 @@ var USER_SELECTABLE_WORK_KINDS = [
99
99
  "repo",
100
100
  "app"
101
101
  ];
102
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
102
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
103
103
  new Set(WORK_KINDS);
104
104
  var GOAL_KINDS = ["metric", "delivery"];
105
105
  new Set(GOAL_KINDS);
106
+ var RECORD_VISIBILITIES = ["private", "team", "organization"];
107
+ new Set(RECORD_VISIBILITIES);
108
+ var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
109
+ new Set(RECORD_LIST_VIEWS);
106
110
  var VERSION = "1.0.0";
107
111
  var GTM_SKILLS = [
108
112
  // ── research ────────────────────────────────────────────────────────
@@ -808,6 +812,115 @@ var ACTION_CATEGORIES = Object.freeze([
808
812
  Object.freeze(
809
813
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
810
814
  );
815
+ var DOMAIN_EVENT_CATALOG = [
816
+ // EW-P2-6 — `org:write` (and the app) create Organizations.
817
+ { type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
818
+ { type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
819
+ {
820
+ type: "organization.member.added",
821
+ domain: "organization",
822
+ aggregateType: "organization",
823
+ phase: "P1",
824
+ child: "member"
825
+ },
826
+ {
827
+ type: "organization.member.updated",
828
+ domain: "organization",
829
+ aggregateType: "organization",
830
+ phase: "P1",
831
+ child: "member"
832
+ },
833
+ {
834
+ type: "organization.member.removed",
835
+ domain: "organization",
836
+ aggregateType: "organization",
837
+ phase: "P1",
838
+ child: "member"
839
+ },
840
+ { type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
841
+ { type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
842
+ { type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
843
+ { type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
844
+ { type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
845
+ { type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
846
+ { type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
847
+ { type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
848
+ { type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
849
+ { type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
850
+ { type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
851
+ { type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
852
+ { type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
853
+ { type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
854
+ { type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
855
+ { type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
856
+ { type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
857
+ { type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
858
+ { type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
859
+ { type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
860
+ { type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
861
+ { type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
862
+ { type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
863
+ { type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
864
+ { type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
865
+ { type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
866
+ { type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
867
+ { type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
868
+ { type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
869
+ { type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
870
+ { type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
871
+ { type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
872
+ { type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
873
+ { type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
874
+ { type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
875
+ { type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
876
+ { type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
877
+ { type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
878
+ { type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
879
+ { type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
880
+ { type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
881
+ { type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
882
+ { type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
883
+ { type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
884
+ { type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
885
+ { type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
886
+ { type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
887
+ { type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
888
+ { type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
889
+ { type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
890
+ { type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
891
+ { type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
892
+ { type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
893
+ { type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
894
+ { type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
895
+ { type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
896
+ { type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
897
+ { type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
898
+ { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
899
+ { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
900
+ { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
901
+ { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
902
+ { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
903
+ { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
904
+ { type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
905
+ { type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
906
+ { type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
907
+ { type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
908
+ { type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
909
+ { type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
910
+ { type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
911
+ { type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
912
+ { type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
913
+ { type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
914
+ { type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
915
+ { type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
916
+ { type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
917
+ { type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
918
+ { type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
919
+ ];
920
+ DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
921
+ new Map(
922
+ DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
923
+ );
811
924
  var TerminalNotProvisionedError = class extends Error {
812
925
  constructor(message) {
813
926
  super(message ?? "Terminal session host is not provisioned in this runtime.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/pty-local-plugin",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Streaming-terminal session host for Ever Works — spawns the agent CLI under a real PTY inside the executing job-runtime worker (node-pty prebuilt), degrading to a child_process pipe floor when the native addon is unavailable.",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -32,18 +32,18 @@
32
32
  "test:coverage": "vitest run --coverage"
33
33
  },
34
34
  "peerDependencies": {
35
- "@ever-works/plugin": "^1.2.4"
35
+ "@ever-works/plugin": "^1.2.5"
36
36
  },
37
37
  "optionalDependencies": {
38
38
  "@homebridge/node-pty-prebuilt-multiarch": "^0.13.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@ever-works/contracts": "^1.0.4",
42
- "@ever-works/plugin": "^1.2.4",
41
+ "@ever-works/contracts": "^1.0.6",
42
+ "@ever-works/plugin": "^1.2.5",
43
43
  "@types/node": "^26.6.4",
44
44
  "tsup": "^8.4.0",
45
45
  "typescript": "^5.7.3",
46
- "vitest": "^4.1.0"
46
+ "vitest": "^5.0.5"
47
47
  },
48
48
  "everworks": {
49
49
  "plugin": {
@@ -70,8 +70,8 @@
70
70
  "url": "https://github.com/ever-works/ever-works/issues"
71
71
  },
72
72
  "everworksRelease": {
73
- "contentHash": "sha256:27899d8a86f0a79e2bc53180a48bdf80a619df264d75cab79e5f7f7e1c35bf77",
74
- "commit": "5afea18479322951b23246dd492a05dc332e90ca",
75
- "source": "https://github.com/ever-works/ever-works/tree/5afea18479322951b23246dd492a05dc332e90ca/packages/plugins/pty-local"
73
+ "contentHash": "sha256:342f7ffa8ada5497f31ae9126384bc051741560b1e9ee6dbdb2f894deedd6af6",
74
+ "commit": "19905c70cf05be3bc523db030597046067cd322a",
75
+ "source": "https://github.com/ever-works/ever-works/tree/19905c70cf05be3bc523db030597046067cd322a/packages/plugins/pty-local"
76
76
  }
77
77
  }