ever-works-node 0.2.2 → 0.2.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/cli.js +373 -8
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -6119,6 +6119,145 @@ var EVER_STATS_SIGNATURE_HEADER = CONSTANTS.stats_headers.signature;
|
|
|
6119
6119
|
var EVER_STATS_KEY_ID_HEADER = CONSTANTS.stats_headers.key_id;
|
|
6120
6120
|
var EVER_STATS_SIGNATURE_PREFIX = CONSTANTS.stats_signature_prefix;
|
|
6121
6121
|
var EVER_STATS_MAX_BODY_BYTES = CONSTANTS.stats.max_bytes;
|
|
6122
|
+
var DOMAIN_EVENT_CATALOG = [
|
|
6123
|
+
{ type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
|
|
6124
|
+
{
|
|
6125
|
+
type: "organization.member.added",
|
|
6126
|
+
domain: "organization",
|
|
6127
|
+
aggregateType: "organization",
|
|
6128
|
+
phase: "P1",
|
|
6129
|
+
child: "member"
|
|
6130
|
+
},
|
|
6131
|
+
{
|
|
6132
|
+
type: "organization.member.updated",
|
|
6133
|
+
domain: "organization",
|
|
6134
|
+
aggregateType: "organization",
|
|
6135
|
+
phase: "P1",
|
|
6136
|
+
child: "member"
|
|
6137
|
+
},
|
|
6138
|
+
{
|
|
6139
|
+
type: "organization.member.removed",
|
|
6140
|
+
domain: "organization",
|
|
6141
|
+
aggregateType: "organization",
|
|
6142
|
+
phase: "P1",
|
|
6143
|
+
child: "member"
|
|
6144
|
+
},
|
|
6145
|
+
{ type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
6146
|
+
{ type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
6147
|
+
{ type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
6148
|
+
{ type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
6149
|
+
{ type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
6150
|
+
{ type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
6151
|
+
{ type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
6152
|
+
{ type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
6153
|
+
{ type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
6154
|
+
{ type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
6155
|
+
{ type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
6156
|
+
{ type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
6157
|
+
{ type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
6158
|
+
{ type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
|
|
6159
|
+
{ type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
|
|
6160
|
+
{ type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
|
|
6161
|
+
{ type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
|
|
6162
|
+
{ type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
6163
|
+
{ type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
6164
|
+
{ type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
6165
|
+
{ type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6166
|
+
{ type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6167
|
+
{ type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6168
|
+
{ type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6169
|
+
{ type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6170
|
+
{ type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6171
|
+
{ type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6172
|
+
{ type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
6173
|
+
{ type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
6174
|
+
{ type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
6175
|
+
{ type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
6176
|
+
{ type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
6177
|
+
{ type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
6178
|
+
{ type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
6179
|
+
{ type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
6180
|
+
{ type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
6181
|
+
{ type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
6182
|
+
{ type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
6183
|
+
{ type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
6184
|
+
{ type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
6185
|
+
{ type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
6186
|
+
{ type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
6187
|
+
{ type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
6188
|
+
{ type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
6189
|
+
{ type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
6190
|
+
{ type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
6191
|
+
{ type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
6192
|
+
{ type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
6193
|
+
{ type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
6194
|
+
{ type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
6195
|
+
{ type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
6196
|
+
{ type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
6197
|
+
{ type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
6198
|
+
{ type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
6199
|
+
{ type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
6200
|
+
{ type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
6201
|
+
{ type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
|
|
6202
|
+
{ type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
6203
|
+
{ type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
6204
|
+
{ type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
6205
|
+
{ type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
6206
|
+
{ type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
6207
|
+
{ type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
6208
|
+
{ type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
6209
|
+
{ type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
6210
|
+
{ type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
6211
|
+
{ type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
6212
|
+
{ type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
6213
|
+
{ type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
6214
|
+
{ type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
6215
|
+
{ type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
6216
|
+
{ type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
6217
|
+
{ type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
6218
|
+
{ type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
6219
|
+
{ type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
|
|
6220
|
+
{ type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
|
|
6221
|
+
{ type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
|
|
6222
|
+
{ type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
|
|
6223
|
+
{ type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
|
|
6224
|
+
];
|
|
6225
|
+
var DOMAIN_EVENT_TYPES = DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
|
|
6226
|
+
var CATALOG_BY_TYPE = new Map(
|
|
6227
|
+
DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
|
|
6228
|
+
);
|
|
6229
|
+
var INTEGRATION_SCOPES = [
|
|
6230
|
+
"org:read",
|
|
6231
|
+
"org:write",
|
|
6232
|
+
"members:read",
|
|
6233
|
+
"members:write",
|
|
6234
|
+
"agents:read",
|
|
6235
|
+
"teams:read",
|
|
6236
|
+
"teams:write",
|
|
6237
|
+
"works:read",
|
|
6238
|
+
"works:write",
|
|
6239
|
+
"missions:read",
|
|
6240
|
+
"missions:write",
|
|
6241
|
+
"goals:read",
|
|
6242
|
+
"goals:write",
|
|
6243
|
+
"ideas:read",
|
|
6244
|
+
"ideas:write",
|
|
6245
|
+
"tasks:read",
|
|
6246
|
+
"tasks:write",
|
|
6247
|
+
"inbox:read",
|
|
6248
|
+
"inbox:write",
|
|
6249
|
+
"kb:read",
|
|
6250
|
+
"kb:write",
|
|
6251
|
+
"email:read",
|
|
6252
|
+
"email:write",
|
|
6253
|
+
"events:read",
|
|
6254
|
+
"webhooks:manage",
|
|
6255
|
+
"links:write"
|
|
6256
|
+
];
|
|
6257
|
+
var INTEGRATION_OPT_IN_SCOPES = ["org:write", "email:write"];
|
|
6258
|
+
var EVER_GAUZY_PRESET_SCOPES = INTEGRATION_SCOPES.filter(
|
|
6259
|
+
(scope) => !INTEGRATION_OPT_IN_SCOPES.includes(scope)
|
|
6260
|
+
);
|
|
6122
6261
|
|
|
6123
6262
|
// src/core/gpu-probe.ts
|
|
6124
6263
|
var VENDOR_PATTERNS = [
|
|
@@ -7917,10 +8056,19 @@ var MODEL_CLI_REQUIRED_FLAGS = {
|
|
|
7917
8056
|
codex: ["--json", "--sandbox", "-C"]
|
|
7918
8057
|
};
|
|
7919
8058
|
var MODEL_CLI_CONDITIONAL_FLAGS = {
|
|
7920
|
-
"claude-code": [
|
|
8059
|
+
"claude-code": [
|
|
8060
|
+
"--model",
|
|
8061
|
+
"--add-dir",
|
|
8062
|
+
"--allowedTools",
|
|
8063
|
+
"--dangerously-skip-permissions",
|
|
8064
|
+
"--verbose",
|
|
8065
|
+
"--resume",
|
|
8066
|
+
"--fork-session"
|
|
8067
|
+
],
|
|
7921
8068
|
codex: ["--add-dir", "-c", "-m", "--dangerously-bypass-approvals-and-sandbox"]
|
|
7922
8069
|
};
|
|
7923
8070
|
var MODEL_CLI_COMPAT_UNSTAMPED_TTL_MS = 10 * 6e4;
|
|
8071
|
+
var MODEL_CLI_COMPAT_STAMPED_MAX_AGE_MS = 60 * 6e4;
|
|
7924
8072
|
var MODEL_CLI_COMPAT_INCOMPLETE_RETRY_MS = 6e4;
|
|
7925
8073
|
var ModelCliCompatibilityProbe = class {
|
|
7926
8074
|
constructor(options) {
|
|
@@ -7928,6 +8076,7 @@ var ModelCliCompatibilityProbe = class {
|
|
|
7928
8076
|
this.now = options.now ?? (() => Date.now());
|
|
7929
8077
|
this.unstampedTtlMs = options.unstampedTtlMs ?? MODEL_CLI_COMPAT_UNSTAMPED_TTL_MS;
|
|
7930
8078
|
this.incompleteRetryMs = options.incompleteRetryMs ?? MODEL_CLI_COMPAT_INCOMPLETE_RETRY_MS;
|
|
8079
|
+
this.stampedMaxAgeMs = options.stampedMaxAgeMs ?? MODEL_CLI_COMPAT_STAMPED_MAX_AGE_MS;
|
|
7931
8080
|
}
|
|
7932
8081
|
options;
|
|
7933
8082
|
static {
|
|
@@ -7938,12 +8087,13 @@ var ModelCliCompatibilityProbe = class {
|
|
|
7938
8087
|
now;
|
|
7939
8088
|
unstampedTtlMs;
|
|
7940
8089
|
incompleteRetryMs;
|
|
8090
|
+
stampedMaxAgeMs;
|
|
7941
8091
|
/** One pinned binary. */
|
|
7942
8092
|
async probe(provider, executable) {
|
|
7943
8093
|
const stamp = await this.stamp(executable);
|
|
7944
8094
|
const key = `${provider}|${executable}|${stamp ? `${stamp.mtimeMs}:${stamp.size}` : "unstamped"}`;
|
|
7945
8095
|
const cached = this.cache.get(`${provider}|${executable}`);
|
|
7946
|
-
if (cached && cached.key === key &&
|
|
8096
|
+
if (cached && cached.key === key && this.now() - cached.probedAt < cached.ttlMs) {
|
|
7947
8097
|
return cached.result;
|
|
7948
8098
|
}
|
|
7949
8099
|
const pending = this.inFlight.get(key);
|
|
@@ -7951,11 +8101,12 @@ var ModelCliCompatibilityProbe = class {
|
|
|
7951
8101
|
const run = this.run(provider, executable).then(({ result, answered }) => {
|
|
7952
8102
|
this.cache.set(`${provider}|${executable}`, {
|
|
7953
8103
|
key,
|
|
7954
|
-
//
|
|
7955
|
-
//
|
|
7956
|
-
//
|
|
7957
|
-
|
|
7958
|
-
|
|
8104
|
+
// A COMPLETE answer from a stamped file is kept until the file
|
|
8105
|
+
// changes or, at the latest, for `stampedMaxAgeMs` (an upgrade
|
|
8106
|
+
// behind a stable wrapper does not change the stamp). An
|
|
8107
|
+
// incomplete one is retried soon, and an unstamped one on the
|
|
8108
|
+
// ten-minute clock.
|
|
8109
|
+
ttlMs: !answered ? this.incompleteRetryMs : stamp !== null ? this.stampedMaxAgeMs : this.unstampedTtlMs,
|
|
7959
8110
|
probedAt: this.now(),
|
|
7960
8111
|
result
|
|
7961
8112
|
});
|
|
@@ -15695,6 +15846,113 @@ var ACTION_CATEGORIES2 = Object.freeze([
|
|
|
15695
15846
|
Object.freeze(
|
|
15696
15847
|
ACTION_CATEGORIES2.filter((c) => c !== "read.internal")
|
|
15697
15848
|
);
|
|
15849
|
+
var DOMAIN_EVENT_CATALOG2 = [
|
|
15850
|
+
{ type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
|
|
15851
|
+
{
|
|
15852
|
+
type: "organization.member.added",
|
|
15853
|
+
domain: "organization",
|
|
15854
|
+
aggregateType: "organization",
|
|
15855
|
+
phase: "P1",
|
|
15856
|
+
child: "member"
|
|
15857
|
+
},
|
|
15858
|
+
{
|
|
15859
|
+
type: "organization.member.updated",
|
|
15860
|
+
domain: "organization",
|
|
15861
|
+
aggregateType: "organization",
|
|
15862
|
+
phase: "P1",
|
|
15863
|
+
child: "member"
|
|
15864
|
+
},
|
|
15865
|
+
{
|
|
15866
|
+
type: "organization.member.removed",
|
|
15867
|
+
domain: "organization",
|
|
15868
|
+
aggregateType: "organization",
|
|
15869
|
+
phase: "P1",
|
|
15870
|
+
child: "member"
|
|
15871
|
+
},
|
|
15872
|
+
{ type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
15873
|
+
{ type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
15874
|
+
{ type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
15875
|
+
{ type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
15876
|
+
{ type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
15877
|
+
{ type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
15878
|
+
{ type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
15879
|
+
{ type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
15880
|
+
{ type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
15881
|
+
{ type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
15882
|
+
{ type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
15883
|
+
{ type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
15884
|
+
{ type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
15885
|
+
{ type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
|
|
15886
|
+
{ type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
|
|
15887
|
+
{ type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
|
|
15888
|
+
{ type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
|
|
15889
|
+
{ type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
15890
|
+
{ type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
15891
|
+
{ type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
15892
|
+
{ type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15893
|
+
{ type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15894
|
+
{ type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15895
|
+
{ type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15896
|
+
{ type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15897
|
+
{ type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15898
|
+
{ type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15899
|
+
{ type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
15900
|
+
{ type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
15901
|
+
{ type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
15902
|
+
{ type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
15903
|
+
{ type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
15904
|
+
{ type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
15905
|
+
{ type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
15906
|
+
{ type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
15907
|
+
{ type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
15908
|
+
{ type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
15909
|
+
{ type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
15910
|
+
{ type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
15911
|
+
{ type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
15912
|
+
{ type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
15913
|
+
{ type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
15914
|
+
{ type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
15915
|
+
{ type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
15916
|
+
{ type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
15917
|
+
{ type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
15918
|
+
{ type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
15919
|
+
{ type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
15920
|
+
{ type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
15921
|
+
{ type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
15922
|
+
{ type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
15923
|
+
{ type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
15924
|
+
{ type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
15925
|
+
{ type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
15926
|
+
{ type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
15927
|
+
{ type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
15928
|
+
{ type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
|
|
15929
|
+
{ type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
15930
|
+
{ type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
15931
|
+
{ type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
15932
|
+
{ type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
15933
|
+
{ type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
15934
|
+
{ type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
15935
|
+
{ type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
15936
|
+
{ type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
15937
|
+
{ type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
15938
|
+
{ type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
15939
|
+
{ type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
15940
|
+
{ type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
15941
|
+
{ type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
15942
|
+
{ type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
15943
|
+
{ type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
15944
|
+
{ type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
15945
|
+
{ type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
15946
|
+
{ type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
|
|
15947
|
+
{ type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
|
|
15948
|
+
{ type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
|
|
15949
|
+
{ type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
|
|
15950
|
+
{ type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
|
|
15951
|
+
];
|
|
15952
|
+
DOMAIN_EVENT_CATALOG2.map((entry) => entry.type);
|
|
15953
|
+
new Map(
|
|
15954
|
+
DOMAIN_EVENT_CATALOG2.map((entry) => [entry.type, entry])
|
|
15955
|
+
);
|
|
15698
15956
|
var WorkspaceNotProvisionedError = class extends Error {
|
|
15699
15957
|
static {
|
|
15700
15958
|
__name(this, "WorkspaceNotProvisionedError");
|
|
@@ -19902,6 +20160,113 @@ var ACTION_CATEGORIES3 = Object.freeze([
|
|
|
19902
20160
|
Object.freeze(
|
|
19903
20161
|
ACTION_CATEGORIES3.filter((c) => c !== "read.internal")
|
|
19904
20162
|
);
|
|
20163
|
+
var DOMAIN_EVENT_CATALOG3 = [
|
|
20164
|
+
{ type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
|
|
20165
|
+
{
|
|
20166
|
+
type: "organization.member.added",
|
|
20167
|
+
domain: "organization",
|
|
20168
|
+
aggregateType: "organization",
|
|
20169
|
+
phase: "P1",
|
|
20170
|
+
child: "member"
|
|
20171
|
+
},
|
|
20172
|
+
{
|
|
20173
|
+
type: "organization.member.updated",
|
|
20174
|
+
domain: "organization",
|
|
20175
|
+
aggregateType: "organization",
|
|
20176
|
+
phase: "P1",
|
|
20177
|
+
child: "member"
|
|
20178
|
+
},
|
|
20179
|
+
{
|
|
20180
|
+
type: "organization.member.removed",
|
|
20181
|
+
domain: "organization",
|
|
20182
|
+
aggregateType: "organization",
|
|
20183
|
+
phase: "P1",
|
|
20184
|
+
child: "member"
|
|
20185
|
+
},
|
|
20186
|
+
{ type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
20187
|
+
{ type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
20188
|
+
{ type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
20189
|
+
{ type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
20190
|
+
{ type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
20191
|
+
{ type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
20192
|
+
{ type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
20193
|
+
{ type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
20194
|
+
{ type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
20195
|
+
{ type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
20196
|
+
{ type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
20197
|
+
{ type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
20198
|
+
{ type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
20199
|
+
{ type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
|
|
20200
|
+
{ type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
|
|
20201
|
+
{ type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
|
|
20202
|
+
{ type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
|
|
20203
|
+
{ type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
20204
|
+
{ type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
20205
|
+
{ type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
20206
|
+
{ type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20207
|
+
{ type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20208
|
+
{ type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20209
|
+
{ type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20210
|
+
{ type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20211
|
+
{ type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20212
|
+
{ type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20213
|
+
{ type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
20214
|
+
{ type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
20215
|
+
{ type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
20216
|
+
{ type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
20217
|
+
{ type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
20218
|
+
{ type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
20219
|
+
{ type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
20220
|
+
{ type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
20221
|
+
{ type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
20222
|
+
{ type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
20223
|
+
{ type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
20224
|
+
{ type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
20225
|
+
{ type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
20226
|
+
{ type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
20227
|
+
{ type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
20228
|
+
{ type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
20229
|
+
{ type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
20230
|
+
{ type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
20231
|
+
{ type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
20232
|
+
{ type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
20233
|
+
{ type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
20234
|
+
{ type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
20235
|
+
{ type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
20236
|
+
{ type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
20237
|
+
{ type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
20238
|
+
{ type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
20239
|
+
{ type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
20240
|
+
{ type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
20241
|
+
{ type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
20242
|
+
{ type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
|
|
20243
|
+
{ type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
20244
|
+
{ type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
20245
|
+
{ type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
20246
|
+
{ type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
20247
|
+
{ type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
20248
|
+
{ type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
20249
|
+
{ type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
20250
|
+
{ type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
20251
|
+
{ type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
20252
|
+
{ type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
20253
|
+
{ type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
20254
|
+
{ type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
20255
|
+
{ type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
20256
|
+
{ type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
20257
|
+
{ type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
20258
|
+
{ type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
20259
|
+
{ type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
20260
|
+
{ type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
|
|
20261
|
+
{ type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
|
|
20262
|
+
{ type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
|
|
20263
|
+
{ type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
|
|
20264
|
+
{ type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
|
|
20265
|
+
];
|
|
20266
|
+
DOMAIN_EVENT_CATALOG3.map((entry) => entry.type);
|
|
20267
|
+
new Map(
|
|
20268
|
+
DOMAIN_EVENT_CATALOG3.map((entry) => [entry.type, entry])
|
|
20269
|
+
);
|
|
19905
20270
|
var TerminalNotProvisionedError = class extends Error {
|
|
19906
20271
|
static {
|
|
19907
20272
|
__name(this, "TerminalNotProvisionedError");
|
|
@@ -23532,7 +23897,7 @@ function createLogger(options = {}) {
|
|
|
23532
23897
|
__name(createLogger, "createLogger");
|
|
23533
23898
|
|
|
23534
23899
|
// src/version.ts
|
|
23535
|
-
var NODE_APP_VERSION = "0.2.
|
|
23900
|
+
var NODE_APP_VERSION = "0.2.3";
|
|
23536
23901
|
|
|
23537
23902
|
// src/cli.ts
|
|
23538
23903
|
function buildDeps() {
|
package/package.json
CHANGED