@ever-works/pty-local-plugin 1.0.2 → 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
@@ -10,6 +10,88 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
12
12
  });
13
+ var PROBLEM_CODES = [
14
+ "validation_failed",
15
+ "not_found",
16
+ "unauthorized",
17
+ "forbidden_role",
18
+ "forbidden_scope",
19
+ "ambiguous_credentials",
20
+ "credential_revoked",
21
+ "instance_disconnected",
22
+ "instance_pending_approval",
23
+ "not_connection_owner",
24
+ "integration_disabled",
25
+ "integration_revoked",
26
+ "denied_by_policy",
27
+ "integration_not_available",
28
+ "entitlement_required",
29
+ "tier_required",
30
+ "limit_exceeded",
31
+ "rate_limited",
32
+ "idempotency_mismatch",
33
+ "idempotency_in_progress",
34
+ "stale_version",
35
+ "module_disabled",
36
+ "handle_taken",
37
+ "handle_reserved",
38
+ "handle_retired",
39
+ "handle_invalid",
40
+ "handle_held",
41
+ "handle_held_by_you",
42
+ "code_invalid",
43
+ "code_expired",
44
+ "product_mismatch",
45
+ "product_not_supported",
46
+ "key_mismatch",
47
+ "signature_invalid",
48
+ "unlinked_org",
49
+ "schema_violation",
50
+ "mirror_owned_field",
51
+ "illegal_transition",
52
+ "already_exists",
53
+ "already_completed",
54
+ "billing_active",
55
+ "sso_required",
56
+ "reauth_required",
57
+ "session_required",
58
+ "step_up_required",
59
+ "session_bound",
60
+ "authorization_pending",
61
+ "slow_down",
62
+ "expired_token",
63
+ "already_connected",
64
+ "already_linked",
65
+ "already_claimed",
66
+ "invalid_client",
67
+ "public_jwk_invalid",
68
+ "identifier_claimed",
69
+ "salt_version_unknown",
70
+ "salt_version_retired",
71
+ "hashes_invalid",
72
+ "lookup_key_required",
73
+ "required_component",
74
+ "resync_required",
75
+ "last_owner",
76
+ "last_auth_method",
77
+ "instances_linked",
78
+ "install_in_progress",
79
+ "slug_reserved",
80
+ "checklist_incomplete",
81
+ "scope_version_outdated",
82
+ "method_not_allowed",
83
+ "payload_too_large",
84
+ "unsupported_media_type",
85
+ "gone",
86
+ "unavailable",
87
+ "upstream",
88
+ "database_absent",
89
+ "database_unreachable",
90
+ "topic_private",
91
+ "keys_unavailable",
92
+ "internal_error"
93
+ ];
94
+ new Set(PROBLEM_CODES);
13
95
 
14
96
  // ../../contracts/dist/index.js
15
97
  var USER_SELECTABLE_WORK_KINDS = [
@@ -21,10 +103,14 @@ var USER_SELECTABLE_WORK_KINDS = [
21
103
  "repo",
22
104
  "app"
23
105
  ];
24
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
106
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
25
107
  new Set(WORK_KINDS);
26
108
  var GOAL_KINDS = ["metric", "delivery"];
27
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);
28
114
  var VERSION = "1.0.0";
29
115
  var GTM_SKILLS = [
30
116
  // ── research ────────────────────────────────────────────────────────
@@ -730,6 +816,115 @@ var ACTION_CATEGORIES = Object.freeze([
730
816
  Object.freeze(
731
817
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
732
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
+ );
733
928
  var TerminalNotProvisionedError = class extends Error {
734
929
  constructor(message) {
735
930
  super(message ?? "Terminal session host is not provisioned in this runtime.");
package/dist/index.js CHANGED
@@ -6,6 +6,88 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
6
  if (typeof require !== "undefined") return require.apply(this, arguments);
7
7
  throw Error('Dynamic require of "' + x + '" is not supported');
8
8
  });
9
+ var PROBLEM_CODES = [
10
+ "validation_failed",
11
+ "not_found",
12
+ "unauthorized",
13
+ "forbidden_role",
14
+ "forbidden_scope",
15
+ "ambiguous_credentials",
16
+ "credential_revoked",
17
+ "instance_disconnected",
18
+ "instance_pending_approval",
19
+ "not_connection_owner",
20
+ "integration_disabled",
21
+ "integration_revoked",
22
+ "denied_by_policy",
23
+ "integration_not_available",
24
+ "entitlement_required",
25
+ "tier_required",
26
+ "limit_exceeded",
27
+ "rate_limited",
28
+ "idempotency_mismatch",
29
+ "idempotency_in_progress",
30
+ "stale_version",
31
+ "module_disabled",
32
+ "handle_taken",
33
+ "handle_reserved",
34
+ "handle_retired",
35
+ "handle_invalid",
36
+ "handle_held",
37
+ "handle_held_by_you",
38
+ "code_invalid",
39
+ "code_expired",
40
+ "product_mismatch",
41
+ "product_not_supported",
42
+ "key_mismatch",
43
+ "signature_invalid",
44
+ "unlinked_org",
45
+ "schema_violation",
46
+ "mirror_owned_field",
47
+ "illegal_transition",
48
+ "already_exists",
49
+ "already_completed",
50
+ "billing_active",
51
+ "sso_required",
52
+ "reauth_required",
53
+ "session_required",
54
+ "step_up_required",
55
+ "session_bound",
56
+ "authorization_pending",
57
+ "slow_down",
58
+ "expired_token",
59
+ "already_connected",
60
+ "already_linked",
61
+ "already_claimed",
62
+ "invalid_client",
63
+ "public_jwk_invalid",
64
+ "identifier_claimed",
65
+ "salt_version_unknown",
66
+ "salt_version_retired",
67
+ "hashes_invalid",
68
+ "lookup_key_required",
69
+ "required_component",
70
+ "resync_required",
71
+ "last_owner",
72
+ "last_auth_method",
73
+ "instances_linked",
74
+ "install_in_progress",
75
+ "slug_reserved",
76
+ "checklist_incomplete",
77
+ "scope_version_outdated",
78
+ "method_not_allowed",
79
+ "payload_too_large",
80
+ "unsupported_media_type",
81
+ "gone",
82
+ "unavailable",
83
+ "upstream",
84
+ "database_absent",
85
+ "database_unreachable",
86
+ "topic_private",
87
+ "keys_unavailable",
88
+ "internal_error"
89
+ ];
90
+ new Set(PROBLEM_CODES);
9
91
 
10
92
  // ../../contracts/dist/index.js
11
93
  var USER_SELECTABLE_WORK_KINDS = [
@@ -17,10 +99,14 @@ var USER_SELECTABLE_WORK_KINDS = [
17
99
  "repo",
18
100
  "app"
19
101
  ];
20
- var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
102
+ var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
21
103
  new Set(WORK_KINDS);
22
104
  var GOAL_KINDS = ["metric", "delivery"];
23
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);
24
110
  var VERSION = "1.0.0";
25
111
  var GTM_SKILLS = [
26
112
  // ── research ────────────────────────────────────────────────────────
@@ -726,6 +812,115 @@ var ACTION_CATEGORIES = Object.freeze([
726
812
  Object.freeze(
727
813
  ACTION_CATEGORIES.filter((c) => c !== "read.internal")
728
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
+ );
729
924
  var TerminalNotProvisionedError = class extends Error {
730
925
  constructor(message) {
731
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.2",
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.3"
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.3",
42
- "@ever-works/plugin": "^1.2.3",
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:2c3639ad9491de539047ceec2593eca14b9f9392a20c1139f9a739c334318b83",
74
- "commit": "481654e1181e43571ceb71e50ec465d9df360cb2",
75
- "source": "https://github.com/ever-works/ever-works/tree/481654e1181e43571ceb71e50ec465d9df360cb2/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
  }