@ever-works/opencode-plugin 1.0.16 → 1.0.18

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.7/node_modules/@ever-co/connect-contracts/dist/index.js
40
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.8/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.7",
43
+ "contracts_version": "1.0.0-rc.8",
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})$",
@@ -224,6 +224,10 @@ var PROBLEM_CODES = [
224
224
  "not_connection_owner",
225
225
  "integration_disabled",
226
226
  "integration_revoked",
227
+ "subject_unknown",
228
+ "link_not_found",
229
+ "oidc_client_exists",
230
+ "redirect_uri_invalid",
227
231
  "denied_by_policy",
228
232
  "integration_not_available",
229
233
  "entitlement_required",
@@ -252,6 +256,8 @@ var PROBLEM_CODES = [
252
256
  "illegal_transition",
253
257
  "already_exists",
254
258
  "already_completed",
259
+ "legal_basis_required",
260
+ "receipt_final",
255
261
  "billing_active",
256
262
  "sso_required",
257
263
  "reauth_required",
@@ -442,6 +448,49 @@ var APP_PROVISION_LIMITS = {
442
448
  podPendingInfraMs: 10 * 6e4
443
449
  };
444
450
  var MAX_CANDIDATE_OPTIONS = APP_PROVISION_LIMITS.optionsMax - 1;
451
+ var UPSTREAM_LIMIT_WINDOW_MS = 24 * 36e5;
452
+ var UPSTREAM_TIMEOUTS = {
453
+ preparationMs: 90 * 6e4,
454
+ checkCommandMs: 30 * 6e4,
455
+ checksTotalMs: 60 * 6e4,
456
+ maxCheckCommands: 10,
457
+ approvalTtlMs: 72 * 36e5,
458
+ branchCleanupMs: 10 * 6e4,
459
+ deletionCascadeMs: 10 * 6e4
460
+ };
461
+ var UPSTREAM_POLLING = {
462
+ earlyIntervalMs: 30 * 6e4,
463
+ earlyWindowMs: 7 * 864e5,
464
+ lateIntervalMs: 6 * 36e5,
465
+ pauseAfterInactivityMs: 90 * 864e5,
466
+ batch: 100,
467
+ maxRequestsPerRead: 4
468
+ };
469
+ var UPSTREAM_TEXT = {
470
+ titleMax: 72,
471
+ bodyMax: 8e3,
472
+ guideFileMaxBytes: 64 * 1024,
473
+ quoteMax: 300,
474
+ reviewBriefMaxBytes: 64 * 1024,
475
+ maxMissingPieces: 10,
476
+ reportMaxBytes: 32 * 1024,
477
+ maxSeenReviewIds: 200
478
+ };
479
+ var TASK_DELIVERY_STATES = [
480
+ "merged",
481
+ "building",
482
+ "build_failed",
483
+ "built",
484
+ "deploying",
485
+ "deploy_failed",
486
+ "live",
487
+ "closed_without_deploy"
488
+ ];
489
+ var TASK_DELIVERY_FILTER_WAITING = "waiting";
490
+ var TASK_DELIVERY_STATE_FILTERS = [
491
+ TASK_DELIVERY_FILTER_WAITING,
492
+ ...TASK_DELIVERY_STATES
493
+ ];
445
494
  var KB_EXPORT_MAX_BYTES = 200 * 1024 * 1024;
446
495
  var TERMINAL_MAX_FRAME_BYTES = 1024 * 1024;
447
496
  var COMPUTER_MAX_FRAME_BYTES = 512 * 1024;
@@ -2834,6 +2883,9 @@ var DOMAIN_EVENT_CATALOG = [
2834
2883
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2835
2884
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2836
2885
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2886
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
2887
+ // answer to an integration item (stored on the item; no run is started).
2888
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2837
2889
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2838
2890
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2839
2891
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
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.7/node_modules/@ever-co/connect-contracts/dist/index.js
7
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.8/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.7",
10
+ "contracts_version": "1.0.0-rc.8",
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})$",
@@ -191,6 +191,10 @@ var PROBLEM_CODES = [
191
191
  "not_connection_owner",
192
192
  "integration_disabled",
193
193
  "integration_revoked",
194
+ "subject_unknown",
195
+ "link_not_found",
196
+ "oidc_client_exists",
197
+ "redirect_uri_invalid",
194
198
  "denied_by_policy",
195
199
  "integration_not_available",
196
200
  "entitlement_required",
@@ -219,6 +223,8 @@ var PROBLEM_CODES = [
219
223
  "illegal_transition",
220
224
  "already_exists",
221
225
  "already_completed",
226
+ "legal_basis_required",
227
+ "receipt_final",
222
228
  "billing_active",
223
229
  "sso_required",
224
230
  "reauth_required",
@@ -409,6 +415,49 @@ var APP_PROVISION_LIMITS = {
409
415
  podPendingInfraMs: 10 * 6e4
410
416
  };
411
417
  var MAX_CANDIDATE_OPTIONS = APP_PROVISION_LIMITS.optionsMax - 1;
418
+ var UPSTREAM_LIMIT_WINDOW_MS = 24 * 36e5;
419
+ var UPSTREAM_TIMEOUTS = {
420
+ preparationMs: 90 * 6e4,
421
+ checkCommandMs: 30 * 6e4,
422
+ checksTotalMs: 60 * 6e4,
423
+ maxCheckCommands: 10,
424
+ approvalTtlMs: 72 * 36e5,
425
+ branchCleanupMs: 10 * 6e4,
426
+ deletionCascadeMs: 10 * 6e4
427
+ };
428
+ var UPSTREAM_POLLING = {
429
+ earlyIntervalMs: 30 * 6e4,
430
+ earlyWindowMs: 7 * 864e5,
431
+ lateIntervalMs: 6 * 36e5,
432
+ pauseAfterInactivityMs: 90 * 864e5,
433
+ batch: 100,
434
+ maxRequestsPerRead: 4
435
+ };
436
+ var UPSTREAM_TEXT = {
437
+ titleMax: 72,
438
+ bodyMax: 8e3,
439
+ guideFileMaxBytes: 64 * 1024,
440
+ quoteMax: 300,
441
+ reviewBriefMaxBytes: 64 * 1024,
442
+ maxMissingPieces: 10,
443
+ reportMaxBytes: 32 * 1024,
444
+ maxSeenReviewIds: 200
445
+ };
446
+ var TASK_DELIVERY_STATES = [
447
+ "merged",
448
+ "building",
449
+ "build_failed",
450
+ "built",
451
+ "deploying",
452
+ "deploy_failed",
453
+ "live",
454
+ "closed_without_deploy"
455
+ ];
456
+ var TASK_DELIVERY_FILTER_WAITING = "waiting";
457
+ var TASK_DELIVERY_STATE_FILTERS = [
458
+ TASK_DELIVERY_FILTER_WAITING,
459
+ ...TASK_DELIVERY_STATES
460
+ ];
412
461
  var KB_EXPORT_MAX_BYTES = 200 * 1024 * 1024;
413
462
  var TERMINAL_MAX_FRAME_BYTES = 1024 * 1024;
414
463
  var COMPUTER_MAX_FRAME_BYTES = 512 * 1024;
@@ -2801,6 +2850,9 @@ var DOMAIN_EVENT_CATALOG = [
2801
2850
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2802
2851
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2803
2852
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2853
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
2854
+ // answer to an integration item (stored on the item; no run is started).
2855
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2804
2856
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2805
2857
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2806
2858
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/opencode-plugin",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
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.12"
36
+ "@ever-works/plugin": "^1.2.16"
37
37
  },
38
38
  "dependencies": {
39
39
  "@electron-internal/extract-zip": "^1.0.6",
40
40
  "tar": "^7.5.21"
41
41
  },
42
42
  "devDependencies": {
43
- "@ever-works/plugin": "^1.2.12",
43
+ "@ever-works/plugin": "^1.2.16",
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:68722941da8c4e6da495e4dc3b49098bc2301b6913c230264ffb93f9c7689a28",
82
- "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
83
- "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/opencode"
81
+ "contentHash": "sha256:1785eda0f5b011a27b678e3e77ff83ffc98a05e91275c09b0c8de481ac5e7064",
82
+ "commit": "89cee44a662034ea957b07ec5e1230ecf340b107",
83
+ "source": "https://github.com/ever-works/ever-works/tree/89cee44a662034ea957b07ec5e1230ecf340b107/packages/plugins/opencode"
84
84
  }
85
85
  }