@ever-works/activepieces-plugin 1.0.9 → 1.0.11

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
@@ -25,10 +25,10 @@ __export(index_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(index_exports);
27
27
 
28
- // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.2/node_modules/@ever-co/connect-contracts/dist/index.js
28
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.7/node_modules/@ever-co/connect-contracts/dist/index.js
29
29
  var CONSTANTS = {
30
30
  "$comment": "Wire constants of the Ever Platform modules. tools/split-integrations.mjs refreshes the fields read from the contract (contracts_version, code patterns, install_sources, products, stats_headers, feed_event_types, integration_keys, root_keys); every other value is a default a product may override by its own configuration.",
31
- "contracts_version": "1.0.0-rc.2",
31
+ "contracts_version": "1.0.0-rc.7",
32
32
  "connect_code_pattern": "^EVC(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
33
33
  "link_code_pattern": "^EVL(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
34
34
  "install_sources": "^(cloud|self-hosted|ever\\.sh|works_app|desktop|partner:[a-z0-9-]{2,32})$",
@@ -176,6 +176,15 @@ var CONSTANTS = {
176
176
  "x": "Ync-MW21JL72GOiS-RVrlvS3gyFH5Krh5f6I66jw1Qc",
177
177
  "use": "sig",
178
178
  "alg": "EdDSA"
179
+ },
180
+ {
181
+ "kid": "ever-202610-025b",
182
+ "iss": "https://api.ever.co",
183
+ "kty": "OKP",
184
+ "crv": "Ed25519",
185
+ "x": "AwXJEZdyiK3QEhUnNB-0fIsN9PPLgbF6O3tyZT3moDc",
186
+ "use": "sig",
187
+ "alg": "EdDSA"
179
188
  }
180
189
  ],
181
190
  "root_keys_file_env": "EVER_PLATFORM_ROOT_KEYS_FILE",
@@ -243,6 +252,7 @@ var PROBLEM_CODES = [
243
252
  "already_connected",
244
253
  "already_linked",
245
254
  "already_claimed",
255
+ "claim_locked",
246
256
  "invalid_client",
247
257
  "public_jwk_invalid",
248
258
  "identifier_claimed",
@@ -268,6 +278,11 @@ var PROBLEM_CODES = [
268
278
  "database_absent",
269
279
  "database_unreachable",
270
280
  "topic_private",
281
+ "realtime_disabled",
282
+ "topic_forbidden",
283
+ "topic_invalid",
284
+ "realtime_busy",
285
+ "too_many_streams",
271
286
  "keys_unavailable",
272
287
  "internal_error"
273
288
  ];
@@ -477,6 +492,13 @@ var PLATFORM_DEFAULT_MERGE_POLICY = Object.freeze({
477
492
  allowedMergeMethods: ["squash"],
478
493
  protectedBranches: ["main", "master", "develop", "stage"]
479
494
  });
495
+ var MERGE_POLICY_PROTECTED_BRANCH_FLOOR = Object.freeze([
496
+ "main",
497
+ "master",
498
+ "develop",
499
+ "stage"
500
+ ]);
501
+ var MERGE_POLICY_ALWAYS_APPROVED_BRANCHES = Object.freeze(["main", "master"]);
480
502
  var MERGE_APPROVAL_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
481
503
  var TOOL_GRANT_SCOPE_PRECEDENCE = Object.freeze([
482
504
  "tenant",
@@ -1183,6 +1205,117 @@ var FLEET_DEFAULT_NODE_OFFLINE_AFTER_MS = 5 * 6e4;
1183
1205
  var FLEET_DEFAULT_NODE_OFFLINE_NOTICE_AFTER_MS = 30 * 6e4;
1184
1206
  var FLEET_DEFAULT_CREDENTIAL_ROTATION_OVERLAP_MS = 15 * 6e4;
1185
1207
  var FLEET_MAX_CREDENTIAL_ROTATION_OVERLAP_MS = 24 * 60 * 6e4;
1208
+ var FLEET_HEALTH_RAW_RETENTION_MS = 7 * 24 * 60 * 6e4;
1209
+ var FLEET_HEALTH_HOURLY_RETENTION_MS = 90 * 24 * 60 * 6e4;
1210
+ var FLEET_HEALTH_DISK_CRITICAL_MARGIN_BYTES = 1024 ** 3;
1211
+ var FLEET_HEALTH_MAX_MIB = 2 ** 40;
1212
+ var FLEET_HEALTH_MAX_UPTIME_SEC = 100 * 365 * 24 * 60 * 60;
1213
+ var FLEET_HEALTH_BYTES_PER_MIB = 1024 * 1024;
1214
+ var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
1215
+ // Works — reads, plus the settings update (its merge / check / command
1216
+ // fields are refused for run tokens by the Works controller).
1217
+ { method: "GET", pathPattern: "/api/works" },
1218
+ { method: "GET", pathPattern: "/api/works/{id}" },
1219
+ { method: "PUT", pathPattern: "/api/works/{id}" },
1220
+ { method: "GET", pathPattern: "/api/works/{id}/config" },
1221
+ { method: "GET", pathPattern: "/api/works/{id}/items" },
1222
+ { method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
1223
+ { method: "GET", pathPattern: "/api/works/{id}/history" },
1224
+ { method: "GET", pathPattern: "/api/works/{id}/generator-form" },
1225
+ { method: "GET", pathPattern: "/api/works/{id}/schedule" },
1226
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons" },
1227
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
1228
+ // Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
1229
+ // lands `proposed` (review-gated), see the KB controller. No unlock.
1230
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
1231
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
1232
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
1233
+ { method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
1234
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
1235
+ // Deploy — reads and the capability check only.
1236
+ { method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
1237
+ { method: "GET", pathPattern: "/api/deploy/providers" },
1238
+ { method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
1239
+ // Plugins — read only.
1240
+ { method: "GET", pathPattern: "/api/plugins" },
1241
+ { method: "GET", pathPattern: "/api/plugins/{pluginId}" },
1242
+ // Missions — reads, plus pause (the safe direction).
1243
+ { method: "GET", pathPattern: "/api/me/missions" },
1244
+ { method: "GET", pathPattern: "/api/me/missions/{id}" },
1245
+ { method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
1246
+ { method: "GET", pathPattern: "/api/me/missions/{id}/works" },
1247
+ { method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
1248
+ // Ideas — reads, plus filing a new Idea (a proposal a person builds).
1249
+ { method: "POST", pathPattern: "/api/me/work-proposals" },
1250
+ { method: "GET", pathPattern: "/api/me/work-proposals" },
1251
+ { method: "GET", pathPattern: "/api/me/work-proposals/status" },
1252
+ { method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
1253
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
1254
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
1255
+ // Account-wide usage.
1256
+ { method: "GET", pathPattern: "/api/me/usage/account-wide" },
1257
+ // Tasks — reads and collaboration writes. Create / update / transition /
1258
+ // assign / chat carry body refusals for run tokens in the Tasks
1259
+ // controller (no checks, no schedule, no force, no dispatch, no @agent).
1260
+ { method: "GET", pathPattern: "/api/tasks" },
1261
+ { method: "POST", pathPattern: "/api/tasks" },
1262
+ { method: "GET", pathPattern: "/api/tasks/{id}" },
1263
+ { method: "PATCH", pathPattern: "/api/tasks/{id}" },
1264
+ { method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
1265
+ { method: "GET", pathPattern: "/api/tasks/{id}/activity" },
1266
+ { method: "POST", pathPattern: "/api/tasks/{id}/transition" },
1267
+ { method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
1268
+ { method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
1269
+ { method: "GET", pathPattern: "/api/tasks/{id}/diff" },
1270
+ { method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
1271
+ { method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
1272
+ { method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
1273
+ { method: "POST", pathPattern: "/api/tasks/{id}/relations" },
1274
+ { method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
1275
+ { method: "GET", pathPattern: "/api/tasks/{id}/chat" },
1276
+ { method: "POST", pathPattern: "/api/tasks/{id}/chat" },
1277
+ { method: "GET", pathPattern: "/api/tasks/{id}/spend" },
1278
+ // Inbox — read only (no reply, no archive / delete / mark-read).
1279
+ { method: "GET", pathPattern: "/api/inbox" },
1280
+ { method: "GET", pathPattern: "/api/inbox/unread-count" },
1281
+ { method: "GET", pathPattern: "/api/inbox/{id}" },
1282
+ // Goals — reads, a draft create, field-limited update, pause, and the
1283
+ // ASKING side of the definition of done (propose, never approve).
1284
+ { method: "GET", pathPattern: "/api/me/goals" },
1285
+ { method: "POST", pathPattern: "/api/me/goals" },
1286
+ { method: "GET", pathPattern: "/api/me/goals/{id}" },
1287
+ { method: "PATCH", pathPattern: "/api/me/goals/{id}" },
1288
+ { method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
1289
+ { method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
1290
+ { method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
1291
+ // Fleet — reads only.
1292
+ { method: "GET", pathPattern: "/api/fleet/nodes" },
1293
+ { method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
1294
+ { method: "GET", pathPattern: "/api/fleet/runner-status" },
1295
+ { method: "GET", pathPattern: "/api/fleet/execution-preferences" },
1296
+ { method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
1297
+ // Agents — reads, plus cancel and pause (the safe direction).
1298
+ { method: "GET", pathPattern: "/api/agents" },
1299
+ { method: "GET", pathPattern: "/api/agents/{id}" },
1300
+ { method: "GET", pathPattern: "/api/agents/{id}/runs" },
1301
+ { method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
1302
+ { method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
1303
+ { method: "POST", pathPattern: "/api/agents/{id}/pause" },
1304
+ { method: "GET", pathPattern: "/api/agents/{id}/budget" },
1305
+ // Agent Plugins — read only (installing a package installs instructions).
1306
+ { method: "GET", pathPattern: "/api/agent-plugins" },
1307
+ { method: "GET", pathPattern: "/api/agent-plugins/findings" },
1308
+ { method: "GET", pathPattern: "/api/agent-plugins/catalog" },
1309
+ { method: "GET", pathPattern: "/api/agent-plugins/updates" }
1310
+ ]);
1311
+ var MACHINE_PRINCIPAL_WORK_WRITABLE_FIELDS = Object.freeze(["name", "description"]);
1312
+ function splitSegments(normalizedPath) {
1313
+ return normalizedPath.split("/").filter((segment) => segment.length > 0);
1314
+ }
1315
+ var FLEET_RUN_TOKEN_ROUTE_SHAPES = FLEET_RUN_TOKEN_ROUTES.map((route) => ({
1316
+ method: route.method.toUpperCase(),
1317
+ shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
1318
+ }));
1186
1319
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
1187
1320
  var EMAIL_INBOX_BURST_SENDS = 10;
1188
1321
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -1724,9 +1857,15 @@ var INTEGRATION_SCOPES = [
1724
1857
  "email:write",
1725
1858
  "events:read",
1726
1859
  "webhooks:manage",
1727
- "links:write"
1860
+ "links:write",
1861
+ "merges:decide"
1862
+ ];
1863
+ var INTEGRATION_MERGE_DECISION_SCOPE = "merges:decide";
1864
+ var INTEGRATION_OPT_IN_SCOPES = [
1865
+ "org:write",
1866
+ "email:write",
1867
+ INTEGRATION_MERGE_DECISION_SCOPE
1728
1868
  ];
1729
- var INTEGRATION_OPT_IN_SCOPES = ["org:write", "email:write"];
1730
1869
  var EVER_GAUZY_PRESET_SCOPES = INTEGRATION_SCOPES.filter(
1731
1870
  (scope) => !INTEGRATION_OPT_IN_SCOPES.includes(scope)
1732
1871
  );
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.2/node_modules/@ever-co/connect-contracts/dist/index.js
1
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.7/node_modules/@ever-co/connect-contracts/dist/index.js
2
2
  var CONSTANTS = {
3
3
  "$comment": "Wire constants of the Ever Platform modules. tools/split-integrations.mjs refreshes the fields read from the contract (contracts_version, code patterns, install_sources, products, stats_headers, feed_event_types, integration_keys, root_keys); every other value is a default a product may override by its own configuration.",
4
- "contracts_version": "1.0.0-rc.2",
4
+ "contracts_version": "1.0.0-rc.7",
5
5
  "connect_code_pattern": "^EVC(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
6
6
  "link_code_pattern": "^EVL(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
7
7
  "install_sources": "^(cloud|self-hosted|ever\\.sh|works_app|desktop|partner:[a-z0-9-]{2,32})$",
@@ -149,6 +149,15 @@ var CONSTANTS = {
149
149
  "x": "Ync-MW21JL72GOiS-RVrlvS3gyFH5Krh5f6I66jw1Qc",
150
150
  "use": "sig",
151
151
  "alg": "EdDSA"
152
+ },
153
+ {
154
+ "kid": "ever-202610-025b",
155
+ "iss": "https://api.ever.co",
156
+ "kty": "OKP",
157
+ "crv": "Ed25519",
158
+ "x": "AwXJEZdyiK3QEhUnNB-0fIsN9PPLgbF6O3tyZT3moDc",
159
+ "use": "sig",
160
+ "alg": "EdDSA"
152
161
  }
153
162
  ],
154
163
  "root_keys_file_env": "EVER_PLATFORM_ROOT_KEYS_FILE",
@@ -216,6 +225,7 @@ var PROBLEM_CODES = [
216
225
  "already_connected",
217
226
  "already_linked",
218
227
  "already_claimed",
228
+ "claim_locked",
219
229
  "invalid_client",
220
230
  "public_jwk_invalid",
221
231
  "identifier_claimed",
@@ -241,6 +251,11 @@ var PROBLEM_CODES = [
241
251
  "database_absent",
242
252
  "database_unreachable",
243
253
  "topic_private",
254
+ "realtime_disabled",
255
+ "topic_forbidden",
256
+ "topic_invalid",
257
+ "realtime_busy",
258
+ "too_many_streams",
244
259
  "keys_unavailable",
245
260
  "internal_error"
246
261
  ];
@@ -450,6 +465,13 @@ var PLATFORM_DEFAULT_MERGE_POLICY = Object.freeze({
450
465
  allowedMergeMethods: ["squash"],
451
466
  protectedBranches: ["main", "master", "develop", "stage"]
452
467
  });
468
+ var MERGE_POLICY_PROTECTED_BRANCH_FLOOR = Object.freeze([
469
+ "main",
470
+ "master",
471
+ "develop",
472
+ "stage"
473
+ ]);
474
+ var MERGE_POLICY_ALWAYS_APPROVED_BRANCHES = Object.freeze(["main", "master"]);
453
475
  var MERGE_APPROVAL_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
454
476
  var TOOL_GRANT_SCOPE_PRECEDENCE = Object.freeze([
455
477
  "tenant",
@@ -1156,6 +1178,117 @@ var FLEET_DEFAULT_NODE_OFFLINE_AFTER_MS = 5 * 6e4;
1156
1178
  var FLEET_DEFAULT_NODE_OFFLINE_NOTICE_AFTER_MS = 30 * 6e4;
1157
1179
  var FLEET_DEFAULT_CREDENTIAL_ROTATION_OVERLAP_MS = 15 * 6e4;
1158
1180
  var FLEET_MAX_CREDENTIAL_ROTATION_OVERLAP_MS = 24 * 60 * 6e4;
1181
+ var FLEET_HEALTH_RAW_RETENTION_MS = 7 * 24 * 60 * 6e4;
1182
+ var FLEET_HEALTH_HOURLY_RETENTION_MS = 90 * 24 * 60 * 6e4;
1183
+ var FLEET_HEALTH_DISK_CRITICAL_MARGIN_BYTES = 1024 ** 3;
1184
+ var FLEET_HEALTH_MAX_MIB = 2 ** 40;
1185
+ var FLEET_HEALTH_MAX_UPTIME_SEC = 100 * 365 * 24 * 60 * 60;
1186
+ var FLEET_HEALTH_BYTES_PER_MIB = 1024 * 1024;
1187
+ var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
1188
+ // Works — reads, plus the settings update (its merge / check / command
1189
+ // fields are refused for run tokens by the Works controller).
1190
+ { method: "GET", pathPattern: "/api/works" },
1191
+ { method: "GET", pathPattern: "/api/works/{id}" },
1192
+ { method: "PUT", pathPattern: "/api/works/{id}" },
1193
+ { method: "GET", pathPattern: "/api/works/{id}/config" },
1194
+ { method: "GET", pathPattern: "/api/works/{id}/items" },
1195
+ { method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
1196
+ { method: "GET", pathPattern: "/api/works/{id}/history" },
1197
+ { method: "GET", pathPattern: "/api/works/{id}/generator-form" },
1198
+ { method: "GET", pathPattern: "/api/works/{id}/schedule" },
1199
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons" },
1200
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
1201
+ // Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
1202
+ // lands `proposed` (review-gated), see the KB controller. No unlock.
1203
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
1204
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
1205
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
1206
+ { method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
1207
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
1208
+ // Deploy — reads and the capability check only.
1209
+ { method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
1210
+ { method: "GET", pathPattern: "/api/deploy/providers" },
1211
+ { method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
1212
+ // Plugins — read only.
1213
+ { method: "GET", pathPattern: "/api/plugins" },
1214
+ { method: "GET", pathPattern: "/api/plugins/{pluginId}" },
1215
+ // Missions — reads, plus pause (the safe direction).
1216
+ { method: "GET", pathPattern: "/api/me/missions" },
1217
+ { method: "GET", pathPattern: "/api/me/missions/{id}" },
1218
+ { method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
1219
+ { method: "GET", pathPattern: "/api/me/missions/{id}/works" },
1220
+ { method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
1221
+ // Ideas — reads, plus filing a new Idea (a proposal a person builds).
1222
+ { method: "POST", pathPattern: "/api/me/work-proposals" },
1223
+ { method: "GET", pathPattern: "/api/me/work-proposals" },
1224
+ { method: "GET", pathPattern: "/api/me/work-proposals/status" },
1225
+ { method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
1226
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
1227
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
1228
+ // Account-wide usage.
1229
+ { method: "GET", pathPattern: "/api/me/usage/account-wide" },
1230
+ // Tasks — reads and collaboration writes. Create / update / transition /
1231
+ // assign / chat carry body refusals for run tokens in the Tasks
1232
+ // controller (no checks, no schedule, no force, no dispatch, no @agent).
1233
+ { method: "GET", pathPattern: "/api/tasks" },
1234
+ { method: "POST", pathPattern: "/api/tasks" },
1235
+ { method: "GET", pathPattern: "/api/tasks/{id}" },
1236
+ { method: "PATCH", pathPattern: "/api/tasks/{id}" },
1237
+ { method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
1238
+ { method: "GET", pathPattern: "/api/tasks/{id}/activity" },
1239
+ { method: "POST", pathPattern: "/api/tasks/{id}/transition" },
1240
+ { method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
1241
+ { method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
1242
+ { method: "GET", pathPattern: "/api/tasks/{id}/diff" },
1243
+ { method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
1244
+ { method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
1245
+ { method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
1246
+ { method: "POST", pathPattern: "/api/tasks/{id}/relations" },
1247
+ { method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
1248
+ { method: "GET", pathPattern: "/api/tasks/{id}/chat" },
1249
+ { method: "POST", pathPattern: "/api/tasks/{id}/chat" },
1250
+ { method: "GET", pathPattern: "/api/tasks/{id}/spend" },
1251
+ // Inbox — read only (no reply, no archive / delete / mark-read).
1252
+ { method: "GET", pathPattern: "/api/inbox" },
1253
+ { method: "GET", pathPattern: "/api/inbox/unread-count" },
1254
+ { method: "GET", pathPattern: "/api/inbox/{id}" },
1255
+ // Goals — reads, a draft create, field-limited update, pause, and the
1256
+ // ASKING side of the definition of done (propose, never approve).
1257
+ { method: "GET", pathPattern: "/api/me/goals" },
1258
+ { method: "POST", pathPattern: "/api/me/goals" },
1259
+ { method: "GET", pathPattern: "/api/me/goals/{id}" },
1260
+ { method: "PATCH", pathPattern: "/api/me/goals/{id}" },
1261
+ { method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
1262
+ { method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
1263
+ { method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
1264
+ // Fleet — reads only.
1265
+ { method: "GET", pathPattern: "/api/fleet/nodes" },
1266
+ { method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
1267
+ { method: "GET", pathPattern: "/api/fleet/runner-status" },
1268
+ { method: "GET", pathPattern: "/api/fleet/execution-preferences" },
1269
+ { method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
1270
+ // Agents — reads, plus cancel and pause (the safe direction).
1271
+ { method: "GET", pathPattern: "/api/agents" },
1272
+ { method: "GET", pathPattern: "/api/agents/{id}" },
1273
+ { method: "GET", pathPattern: "/api/agents/{id}/runs" },
1274
+ { method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
1275
+ { method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
1276
+ { method: "POST", pathPattern: "/api/agents/{id}/pause" },
1277
+ { method: "GET", pathPattern: "/api/agents/{id}/budget" },
1278
+ // Agent Plugins — read only (installing a package installs instructions).
1279
+ { method: "GET", pathPattern: "/api/agent-plugins" },
1280
+ { method: "GET", pathPattern: "/api/agent-plugins/findings" },
1281
+ { method: "GET", pathPattern: "/api/agent-plugins/catalog" },
1282
+ { method: "GET", pathPattern: "/api/agent-plugins/updates" }
1283
+ ]);
1284
+ var MACHINE_PRINCIPAL_WORK_WRITABLE_FIELDS = Object.freeze(["name", "description"]);
1285
+ function splitSegments(normalizedPath) {
1286
+ return normalizedPath.split("/").filter((segment) => segment.length > 0);
1287
+ }
1288
+ var FLEET_RUN_TOKEN_ROUTE_SHAPES = FLEET_RUN_TOKEN_ROUTES.map((route) => ({
1289
+ method: route.method.toUpperCase(),
1290
+ shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
1291
+ }));
1159
1292
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
1160
1293
  var EMAIL_INBOX_BURST_SENDS = 10;
1161
1294
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -1697,9 +1830,15 @@ var INTEGRATION_SCOPES = [
1697
1830
  "email:write",
1698
1831
  "events:read",
1699
1832
  "webhooks:manage",
1700
- "links:write"
1833
+ "links:write",
1834
+ "merges:decide"
1835
+ ];
1836
+ var INTEGRATION_MERGE_DECISION_SCOPE = "merges:decide";
1837
+ var INTEGRATION_OPT_IN_SCOPES = [
1838
+ "org:write",
1839
+ "email:write",
1840
+ INTEGRATION_MERGE_DECISION_SCOPE
1701
1841
  ];
1702
- var INTEGRATION_OPT_IN_SCOPES = ["org:write", "email:write"];
1703
1842
  var EVER_GAUZY_PRESET_SCOPES = INTEGRATION_SCOPES.filter(
1704
1843
  (scope) => !INTEGRATION_OPT_IN_SCOPES.includes(scope)
1705
1844
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/activepieces-plugin",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Activepieces Automation Pipeline Plugin - Delegates Work generation steps to Activepieces flows",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -33,10 +33,10 @@
33
33
  "test:coverage": "vitest run --coverage"
34
34
  },
35
35
  "peerDependencies": {
36
- "@ever-works/plugin": "^1.2.6"
36
+ "@ever-works/plugin": "^1.2.8"
37
37
  },
38
38
  "devDependencies": {
39
- "@ever-works/plugin": "^1.2.6",
39
+ "@ever-works/plugin": "^1.2.8",
40
40
  "@types/node": "^26.6.4",
41
41
  "tsup": "^8.0.0",
42
42
  "typescript": "^5.9.3",
@@ -76,8 +76,8 @@
76
76
  "url": "https://github.com/ever-works/ever-works/issues"
77
77
  },
78
78
  "everworksRelease": {
79
- "contentHash": "sha256:4b2cda0fbd9ad95a3bb4c039066fae99f8f0f904bbd6c1e640811dfa78f5bd9f",
80
- "commit": "54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c",
81
- "source": "https://github.com/ever-works/ever-works/tree/54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c/packages/plugins/activepieces"
79
+ "contentHash": "sha256:9239f14d8e4b7ddd3dbf095113bfb205cf825b1013d3a52b0fa0499ff8f9b04c",
80
+ "commit": "efd11a2282ea3e514e93f754b9b008543a7cff60",
81
+ "source": "https://github.com/ever-works/ever-works/tree/efd11a2282ea3e514e93f754b9b008543a7cff60/packages/plugins/activepieces"
82
82
  }
83
83
  }