@ever-works/opencode-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
@@ -37,10 +37,10 @@ __export(index_exports, {
37
37
  });
38
38
  module.exports = __toCommonJS(index_exports);
39
39
 
40
- // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.2/node_modules/@ever-co/connect-contracts/dist/index.js
40
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.7/node_modules/@ever-co/connect-contracts/dist/index.js
41
41
  var CONSTANTS = {
42
42
  "$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.",
43
- "contracts_version": "1.0.0-rc.2",
43
+ "contracts_version": "1.0.0-rc.7",
44
44
  "connect_code_pattern": "^EVC(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
45
45
  "link_code_pattern": "^EVL(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
46
46
  "install_sources": "^(cloud|self-hosted|ever\\.sh|works_app|desktop|partner:[a-z0-9-]{2,32})$",
@@ -188,6 +188,15 @@ var CONSTANTS = {
188
188
  "x": "Ync-MW21JL72GOiS-RVrlvS3gyFH5Krh5f6I66jw1Qc",
189
189
  "use": "sig",
190
190
  "alg": "EdDSA"
191
+ },
192
+ {
193
+ "kid": "ever-202610-025b",
194
+ "iss": "https://api.ever.co",
195
+ "kty": "OKP",
196
+ "crv": "Ed25519",
197
+ "x": "AwXJEZdyiK3QEhUnNB-0fIsN9PPLgbF6O3tyZT3moDc",
198
+ "use": "sig",
199
+ "alg": "EdDSA"
191
200
  }
192
201
  ],
193
202
  "root_keys_file_env": "EVER_PLATFORM_ROOT_KEYS_FILE",
@@ -255,6 +264,7 @@ var PROBLEM_CODES = [
255
264
  "already_connected",
256
265
  "already_linked",
257
266
  "already_claimed",
267
+ "claim_locked",
258
268
  "invalid_client",
259
269
  "public_jwk_invalid",
260
270
  "identifier_claimed",
@@ -280,6 +290,11 @@ var PROBLEM_CODES = [
280
290
  "database_absent",
281
291
  "database_unreachable",
282
292
  "topic_private",
293
+ "realtime_disabled",
294
+ "topic_forbidden",
295
+ "topic_invalid",
296
+ "realtime_busy",
297
+ "too_many_streams",
283
298
  "keys_unavailable",
284
299
  "internal_error"
285
300
  ];
@@ -489,6 +504,13 @@ var PLATFORM_DEFAULT_MERGE_POLICY = Object.freeze({
489
504
  allowedMergeMethods: ["squash"],
490
505
  protectedBranches: ["main", "master", "develop", "stage"]
491
506
  });
507
+ var MERGE_POLICY_PROTECTED_BRANCH_FLOOR = Object.freeze([
508
+ "main",
509
+ "master",
510
+ "develop",
511
+ "stage"
512
+ ]);
513
+ var MERGE_POLICY_ALWAYS_APPROVED_BRANCHES = Object.freeze(["main", "master"]);
492
514
  var MERGE_APPROVAL_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
493
515
  var TOOL_GRANT_SCOPE_PRECEDENCE = Object.freeze([
494
516
  "tenant",
@@ -1195,6 +1217,117 @@ var FLEET_DEFAULT_NODE_OFFLINE_AFTER_MS = 5 * 6e4;
1195
1217
  var FLEET_DEFAULT_NODE_OFFLINE_NOTICE_AFTER_MS = 30 * 6e4;
1196
1218
  var FLEET_DEFAULT_CREDENTIAL_ROTATION_OVERLAP_MS = 15 * 6e4;
1197
1219
  var FLEET_MAX_CREDENTIAL_ROTATION_OVERLAP_MS = 24 * 60 * 6e4;
1220
+ var FLEET_HEALTH_RAW_RETENTION_MS = 7 * 24 * 60 * 6e4;
1221
+ var FLEET_HEALTH_HOURLY_RETENTION_MS = 90 * 24 * 60 * 6e4;
1222
+ var FLEET_HEALTH_DISK_CRITICAL_MARGIN_BYTES = 1024 ** 3;
1223
+ var FLEET_HEALTH_MAX_MIB = 2 ** 40;
1224
+ var FLEET_HEALTH_MAX_UPTIME_SEC = 100 * 365 * 24 * 60 * 60;
1225
+ var FLEET_HEALTH_BYTES_PER_MIB = 1024 * 1024;
1226
+ var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
1227
+ // Works — reads, plus the settings update (its merge / check / command
1228
+ // fields are refused for run tokens by the Works controller).
1229
+ { method: "GET", pathPattern: "/api/works" },
1230
+ { method: "GET", pathPattern: "/api/works/{id}" },
1231
+ { method: "PUT", pathPattern: "/api/works/{id}" },
1232
+ { method: "GET", pathPattern: "/api/works/{id}/config" },
1233
+ { method: "GET", pathPattern: "/api/works/{id}/items" },
1234
+ { method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
1235
+ { method: "GET", pathPattern: "/api/works/{id}/history" },
1236
+ { method: "GET", pathPattern: "/api/works/{id}/generator-form" },
1237
+ { method: "GET", pathPattern: "/api/works/{id}/schedule" },
1238
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons" },
1239
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
1240
+ // Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
1241
+ // lands `proposed` (review-gated), see the KB controller. No unlock.
1242
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
1243
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
1244
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
1245
+ { method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
1246
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
1247
+ // Deploy — reads and the capability check only.
1248
+ { method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
1249
+ { method: "GET", pathPattern: "/api/deploy/providers" },
1250
+ { method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
1251
+ // Plugins — read only.
1252
+ { method: "GET", pathPattern: "/api/plugins" },
1253
+ { method: "GET", pathPattern: "/api/plugins/{pluginId}" },
1254
+ // Missions — reads, plus pause (the safe direction).
1255
+ { method: "GET", pathPattern: "/api/me/missions" },
1256
+ { method: "GET", pathPattern: "/api/me/missions/{id}" },
1257
+ { method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
1258
+ { method: "GET", pathPattern: "/api/me/missions/{id}/works" },
1259
+ { method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
1260
+ // Ideas — reads, plus filing a new Idea (a proposal a person builds).
1261
+ { method: "POST", pathPattern: "/api/me/work-proposals" },
1262
+ { method: "GET", pathPattern: "/api/me/work-proposals" },
1263
+ { method: "GET", pathPattern: "/api/me/work-proposals/status" },
1264
+ { method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
1265
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
1266
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
1267
+ // Account-wide usage.
1268
+ { method: "GET", pathPattern: "/api/me/usage/account-wide" },
1269
+ // Tasks — reads and collaboration writes. Create / update / transition /
1270
+ // assign / chat carry body refusals for run tokens in the Tasks
1271
+ // controller (no checks, no schedule, no force, no dispatch, no @agent).
1272
+ { method: "GET", pathPattern: "/api/tasks" },
1273
+ { method: "POST", pathPattern: "/api/tasks" },
1274
+ { method: "GET", pathPattern: "/api/tasks/{id}" },
1275
+ { method: "PATCH", pathPattern: "/api/tasks/{id}" },
1276
+ { method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
1277
+ { method: "GET", pathPattern: "/api/tasks/{id}/activity" },
1278
+ { method: "POST", pathPattern: "/api/tasks/{id}/transition" },
1279
+ { method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
1280
+ { method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
1281
+ { method: "GET", pathPattern: "/api/tasks/{id}/diff" },
1282
+ { method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
1283
+ { method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
1284
+ { method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
1285
+ { method: "POST", pathPattern: "/api/tasks/{id}/relations" },
1286
+ { method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
1287
+ { method: "GET", pathPattern: "/api/tasks/{id}/chat" },
1288
+ { method: "POST", pathPattern: "/api/tasks/{id}/chat" },
1289
+ { method: "GET", pathPattern: "/api/tasks/{id}/spend" },
1290
+ // Inbox — read only (no reply, no archive / delete / mark-read).
1291
+ { method: "GET", pathPattern: "/api/inbox" },
1292
+ { method: "GET", pathPattern: "/api/inbox/unread-count" },
1293
+ { method: "GET", pathPattern: "/api/inbox/{id}" },
1294
+ // Goals — reads, a draft create, field-limited update, pause, and the
1295
+ // ASKING side of the definition of done (propose, never approve).
1296
+ { method: "GET", pathPattern: "/api/me/goals" },
1297
+ { method: "POST", pathPattern: "/api/me/goals" },
1298
+ { method: "GET", pathPattern: "/api/me/goals/{id}" },
1299
+ { method: "PATCH", pathPattern: "/api/me/goals/{id}" },
1300
+ { method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
1301
+ { method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
1302
+ { method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
1303
+ // Fleet — reads only.
1304
+ { method: "GET", pathPattern: "/api/fleet/nodes" },
1305
+ { method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
1306
+ { method: "GET", pathPattern: "/api/fleet/runner-status" },
1307
+ { method: "GET", pathPattern: "/api/fleet/execution-preferences" },
1308
+ { method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
1309
+ // Agents — reads, plus cancel and pause (the safe direction).
1310
+ { method: "GET", pathPattern: "/api/agents" },
1311
+ { method: "GET", pathPattern: "/api/agents/{id}" },
1312
+ { method: "GET", pathPattern: "/api/agents/{id}/runs" },
1313
+ { method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
1314
+ { method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
1315
+ { method: "POST", pathPattern: "/api/agents/{id}/pause" },
1316
+ { method: "GET", pathPattern: "/api/agents/{id}/budget" },
1317
+ // Agent Plugins — read only (installing a package installs instructions).
1318
+ { method: "GET", pathPattern: "/api/agent-plugins" },
1319
+ { method: "GET", pathPattern: "/api/agent-plugins/findings" },
1320
+ { method: "GET", pathPattern: "/api/agent-plugins/catalog" },
1321
+ { method: "GET", pathPattern: "/api/agent-plugins/updates" }
1322
+ ]);
1323
+ var MACHINE_PRINCIPAL_WORK_WRITABLE_FIELDS = Object.freeze(["name", "description"]);
1324
+ function splitSegments(normalizedPath) {
1325
+ return normalizedPath.split("/").filter((segment) => segment.length > 0);
1326
+ }
1327
+ var FLEET_RUN_TOKEN_ROUTE_SHAPES = FLEET_RUN_TOKEN_ROUTES.map((route) => ({
1328
+ method: route.method.toUpperCase(),
1329
+ shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
1330
+ }));
1198
1331
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
1199
1332
  var EMAIL_INBOX_BURST_SENDS = 10;
1200
1333
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -1736,9 +1869,15 @@ var INTEGRATION_SCOPES = [
1736
1869
  "email:write",
1737
1870
  "events:read",
1738
1871
  "webhooks:manage",
1739
- "links:write"
1872
+ "links:write",
1873
+ "merges:decide"
1874
+ ];
1875
+ var INTEGRATION_MERGE_DECISION_SCOPE = "merges:decide";
1876
+ var INTEGRATION_OPT_IN_SCOPES = [
1877
+ "org:write",
1878
+ "email:write",
1879
+ INTEGRATION_MERGE_DECISION_SCOPE
1740
1880
  ];
1741
- var INTEGRATION_OPT_IN_SCOPES = ["org:write", "email:write"];
1742
1881
  var EVER_GAUZY_PRESET_SCOPES = INTEGRATION_SCOPES.filter(
1743
1882
  (scope) => !INTEGRATION_OPT_IN_SCOPES.includes(scope)
1744
1883
  );
package/dist/index.js CHANGED
@@ -4,10 +4,10 @@ var __export = (target, all) => {
4
4
  __defProp(target, name, { get: all[name], enumerable: true });
5
5
  };
6
6
 
7
- // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.2/node_modules/@ever-co/connect-contracts/dist/index.js
7
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.7/node_modules/@ever-co/connect-contracts/dist/index.js
8
8
  var CONSTANTS = {
9
9
  "$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.",
10
- "contracts_version": "1.0.0-rc.2",
10
+ "contracts_version": "1.0.0-rc.7",
11
11
  "connect_code_pattern": "^EVC(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
12
12
  "link_code_pattern": "^EVL(-[0-9A-HJKMNP-TV-Za-hj-kmnp-tv-z]{4}){3}$",
13
13
  "install_sources": "^(cloud|self-hosted|ever\\.sh|works_app|desktop|partner:[a-z0-9-]{2,32})$",
@@ -155,6 +155,15 @@ var CONSTANTS = {
155
155
  "x": "Ync-MW21JL72GOiS-RVrlvS3gyFH5Krh5f6I66jw1Qc",
156
156
  "use": "sig",
157
157
  "alg": "EdDSA"
158
+ },
159
+ {
160
+ "kid": "ever-202610-025b",
161
+ "iss": "https://api.ever.co",
162
+ "kty": "OKP",
163
+ "crv": "Ed25519",
164
+ "x": "AwXJEZdyiK3QEhUnNB-0fIsN9PPLgbF6O3tyZT3moDc",
165
+ "use": "sig",
166
+ "alg": "EdDSA"
158
167
  }
159
168
  ],
160
169
  "root_keys_file_env": "EVER_PLATFORM_ROOT_KEYS_FILE",
@@ -222,6 +231,7 @@ var PROBLEM_CODES = [
222
231
  "already_connected",
223
232
  "already_linked",
224
233
  "already_claimed",
234
+ "claim_locked",
225
235
  "invalid_client",
226
236
  "public_jwk_invalid",
227
237
  "identifier_claimed",
@@ -247,6 +257,11 @@ var PROBLEM_CODES = [
247
257
  "database_absent",
248
258
  "database_unreachable",
249
259
  "topic_private",
260
+ "realtime_disabled",
261
+ "topic_forbidden",
262
+ "topic_invalid",
263
+ "realtime_busy",
264
+ "too_many_streams",
250
265
  "keys_unavailable",
251
266
  "internal_error"
252
267
  ];
@@ -456,6 +471,13 @@ var PLATFORM_DEFAULT_MERGE_POLICY = Object.freeze({
456
471
  allowedMergeMethods: ["squash"],
457
472
  protectedBranches: ["main", "master", "develop", "stage"]
458
473
  });
474
+ var MERGE_POLICY_PROTECTED_BRANCH_FLOOR = Object.freeze([
475
+ "main",
476
+ "master",
477
+ "develop",
478
+ "stage"
479
+ ]);
480
+ var MERGE_POLICY_ALWAYS_APPROVED_BRANCHES = Object.freeze(["main", "master"]);
459
481
  var MERGE_APPROVAL_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
460
482
  var TOOL_GRANT_SCOPE_PRECEDENCE = Object.freeze([
461
483
  "tenant",
@@ -1162,6 +1184,117 @@ var FLEET_DEFAULT_NODE_OFFLINE_AFTER_MS = 5 * 6e4;
1162
1184
  var FLEET_DEFAULT_NODE_OFFLINE_NOTICE_AFTER_MS = 30 * 6e4;
1163
1185
  var FLEET_DEFAULT_CREDENTIAL_ROTATION_OVERLAP_MS = 15 * 6e4;
1164
1186
  var FLEET_MAX_CREDENTIAL_ROTATION_OVERLAP_MS = 24 * 60 * 6e4;
1187
+ var FLEET_HEALTH_RAW_RETENTION_MS = 7 * 24 * 60 * 6e4;
1188
+ var FLEET_HEALTH_HOURLY_RETENTION_MS = 90 * 24 * 60 * 6e4;
1189
+ var FLEET_HEALTH_DISK_CRITICAL_MARGIN_BYTES = 1024 ** 3;
1190
+ var FLEET_HEALTH_MAX_MIB = 2 ** 40;
1191
+ var FLEET_HEALTH_MAX_UPTIME_SEC = 100 * 365 * 24 * 60 * 60;
1192
+ var FLEET_HEALTH_BYTES_PER_MIB = 1024 * 1024;
1193
+ var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
1194
+ // Works — reads, plus the settings update (its merge / check / command
1195
+ // fields are refused for run tokens by the Works controller).
1196
+ { method: "GET", pathPattern: "/api/works" },
1197
+ { method: "GET", pathPattern: "/api/works/{id}" },
1198
+ { method: "PUT", pathPattern: "/api/works/{id}" },
1199
+ { method: "GET", pathPattern: "/api/works/{id}/config" },
1200
+ { method: "GET", pathPattern: "/api/works/{id}/items" },
1201
+ { method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
1202
+ { method: "GET", pathPattern: "/api/works/{id}/history" },
1203
+ { method: "GET", pathPattern: "/api/works/{id}/generator-form" },
1204
+ { method: "GET", pathPattern: "/api/works/{id}/schedule" },
1205
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons" },
1206
+ { method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
1207
+ // Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
1208
+ // lands `proposed` (review-gated), see the KB controller. No unlock.
1209
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
1210
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
1211
+ { method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
1212
+ { method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
1213
+ { method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
1214
+ // Deploy — reads and the capability check only.
1215
+ { method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
1216
+ { method: "GET", pathPattern: "/api/deploy/providers" },
1217
+ { method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
1218
+ // Plugins — read only.
1219
+ { method: "GET", pathPattern: "/api/plugins" },
1220
+ { method: "GET", pathPattern: "/api/plugins/{pluginId}" },
1221
+ // Missions — reads, plus pause (the safe direction).
1222
+ { method: "GET", pathPattern: "/api/me/missions" },
1223
+ { method: "GET", pathPattern: "/api/me/missions/{id}" },
1224
+ { method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
1225
+ { method: "GET", pathPattern: "/api/me/missions/{id}/works" },
1226
+ { method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
1227
+ // Ideas — reads, plus filing a new Idea (a proposal a person builds).
1228
+ { method: "POST", pathPattern: "/api/me/work-proposals" },
1229
+ { method: "GET", pathPattern: "/api/me/work-proposals" },
1230
+ { method: "GET", pathPattern: "/api/me/work-proposals/status" },
1231
+ { method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
1232
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
1233
+ { method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
1234
+ // Account-wide usage.
1235
+ { method: "GET", pathPattern: "/api/me/usage/account-wide" },
1236
+ // Tasks — reads and collaboration writes. Create / update / transition /
1237
+ // assign / chat carry body refusals for run tokens in the Tasks
1238
+ // controller (no checks, no schedule, no force, no dispatch, no @agent).
1239
+ { method: "GET", pathPattern: "/api/tasks" },
1240
+ { method: "POST", pathPattern: "/api/tasks" },
1241
+ { method: "GET", pathPattern: "/api/tasks/{id}" },
1242
+ { method: "PATCH", pathPattern: "/api/tasks/{id}" },
1243
+ { method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
1244
+ { method: "GET", pathPattern: "/api/tasks/{id}/activity" },
1245
+ { method: "POST", pathPattern: "/api/tasks/{id}/transition" },
1246
+ { method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
1247
+ { method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
1248
+ { method: "GET", pathPattern: "/api/tasks/{id}/diff" },
1249
+ { method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
1250
+ { method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
1251
+ { method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
1252
+ { method: "POST", pathPattern: "/api/tasks/{id}/relations" },
1253
+ { method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
1254
+ { method: "GET", pathPattern: "/api/tasks/{id}/chat" },
1255
+ { method: "POST", pathPattern: "/api/tasks/{id}/chat" },
1256
+ { method: "GET", pathPattern: "/api/tasks/{id}/spend" },
1257
+ // Inbox — read only (no reply, no archive / delete / mark-read).
1258
+ { method: "GET", pathPattern: "/api/inbox" },
1259
+ { method: "GET", pathPattern: "/api/inbox/unread-count" },
1260
+ { method: "GET", pathPattern: "/api/inbox/{id}" },
1261
+ // Goals — reads, a draft create, field-limited update, pause, and the
1262
+ // ASKING side of the definition of done (propose, never approve).
1263
+ { method: "GET", pathPattern: "/api/me/goals" },
1264
+ { method: "POST", pathPattern: "/api/me/goals" },
1265
+ { method: "GET", pathPattern: "/api/me/goals/{id}" },
1266
+ { method: "PATCH", pathPattern: "/api/me/goals/{id}" },
1267
+ { method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
1268
+ { method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
1269
+ { method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
1270
+ // Fleet — reads only.
1271
+ { method: "GET", pathPattern: "/api/fleet/nodes" },
1272
+ { method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
1273
+ { method: "GET", pathPattern: "/api/fleet/runner-status" },
1274
+ { method: "GET", pathPattern: "/api/fleet/execution-preferences" },
1275
+ { method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
1276
+ // Agents — reads, plus cancel and pause (the safe direction).
1277
+ { method: "GET", pathPattern: "/api/agents" },
1278
+ { method: "GET", pathPattern: "/api/agents/{id}" },
1279
+ { method: "GET", pathPattern: "/api/agents/{id}/runs" },
1280
+ { method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
1281
+ { method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
1282
+ { method: "POST", pathPattern: "/api/agents/{id}/pause" },
1283
+ { method: "GET", pathPattern: "/api/agents/{id}/budget" },
1284
+ // Agent Plugins — read only (installing a package installs instructions).
1285
+ { method: "GET", pathPattern: "/api/agent-plugins" },
1286
+ { method: "GET", pathPattern: "/api/agent-plugins/findings" },
1287
+ { method: "GET", pathPattern: "/api/agent-plugins/catalog" },
1288
+ { method: "GET", pathPattern: "/api/agent-plugins/updates" }
1289
+ ]);
1290
+ var MACHINE_PRINCIPAL_WORK_WRITABLE_FIELDS = Object.freeze(["name", "description"]);
1291
+ function splitSegments(normalizedPath) {
1292
+ return normalizedPath.split("/").filter((segment) => segment.length > 0);
1293
+ }
1294
+ var FLEET_RUN_TOKEN_ROUTE_SHAPES = FLEET_RUN_TOKEN_ROUTES.map((route) => ({
1295
+ method: route.method.toUpperCase(),
1296
+ shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
1297
+ }));
1165
1298
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
1166
1299
  var EMAIL_INBOX_BURST_SENDS = 10;
1167
1300
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -1703,9 +1836,15 @@ var INTEGRATION_SCOPES = [
1703
1836
  "email:write",
1704
1837
  "events:read",
1705
1838
  "webhooks:manage",
1706
- "links:write"
1839
+ "links:write",
1840
+ "merges:decide"
1841
+ ];
1842
+ var INTEGRATION_MERGE_DECISION_SCOPE = "merges:decide";
1843
+ var INTEGRATION_OPT_IN_SCOPES = [
1844
+ "org:write",
1845
+ "email:write",
1846
+ INTEGRATION_MERGE_DECISION_SCOPE
1707
1847
  ];
1708
- var INTEGRATION_OPT_IN_SCOPES = ["org:write", "email:write"];
1709
1848
  var EVER_GAUZY_PRESET_SCOPES = INTEGRATION_SCOPES.filter(
1710
1849
  (scope) => !INTEGRATION_OPT_IN_SCOPES.includes(scope)
1711
1850
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/opencode-plugin",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "OpenCode Generator Plugin - Full pipeline plugin that delegates generation to OpenCode",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -33,14 +33,14 @@
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
  "dependencies": {
39
39
  "extract-zip": "^2.0.1",
40
40
  "tar": "^7.5.21"
41
41
  },
42
42
  "devDependencies": {
43
- "@ever-works/plugin": "^1.2.6",
43
+ "@ever-works/plugin": "^1.2.8",
44
44
  "@types/node": "^26.6.4",
45
45
  "tsup": "^8.0.0",
46
46
  "typescript": "^5.9.3",
@@ -78,8 +78,8 @@
78
78
  "url": "https://github.com/ever-works/ever-works/issues"
79
79
  },
80
80
  "everworksRelease": {
81
- "contentHash": "sha256:802cbbe59d4a9e4e162ac34b96a5ab04eed025d9f50b30e75a0c771846fe7aba",
82
- "commit": "54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c",
83
- "source": "https://github.com/ever-works/ever-works/tree/54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c/packages/plugins/opencode"
81
+ "contentHash": "sha256:1bbf3edc7cb0c0f9461ab85cd498f24cb198f8b1c4d5f3d9fd30bf30e06c4e13",
82
+ "commit": "efd11a2282ea3e514e93f754b9b008543a7cff60",
83
+ "source": "https://github.com/ever-works/ever-works/tree/efd11a2282ea3e514e93f754b9b008543a7cff60/packages/plugins/opencode"
84
84
  }
85
85
  }