@ever-works/hermes-agent-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
@@ -1,7 +1,7 @@
1
- // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.7/node_modules/@ever-co/connect-contracts/dist/index.js
1
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.8/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.7",
4
+ "contracts_version": "1.0.0-rc.8",
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})$",
@@ -185,6 +185,10 @@ var PROBLEM_CODES = [
185
185
  "not_connection_owner",
186
186
  "integration_disabled",
187
187
  "integration_revoked",
188
+ "subject_unknown",
189
+ "link_not_found",
190
+ "oidc_client_exists",
191
+ "redirect_uri_invalid",
188
192
  "denied_by_policy",
189
193
  "integration_not_available",
190
194
  "entitlement_required",
@@ -213,6 +217,8 @@ var PROBLEM_CODES = [
213
217
  "illegal_transition",
214
218
  "already_exists",
215
219
  "already_completed",
220
+ "legal_basis_required",
221
+ "receipt_final",
216
222
  "billing_active",
217
223
  "sso_required",
218
224
  "reauth_required",
@@ -403,6 +409,49 @@ var APP_PROVISION_LIMITS = {
403
409
  podPendingInfraMs: 10 * 6e4
404
410
  };
405
411
  var MAX_CANDIDATE_OPTIONS = APP_PROVISION_LIMITS.optionsMax - 1;
412
+ var UPSTREAM_LIMIT_WINDOW_MS = 24 * 36e5;
413
+ var UPSTREAM_TIMEOUTS = {
414
+ preparationMs: 90 * 6e4,
415
+ checkCommandMs: 30 * 6e4,
416
+ checksTotalMs: 60 * 6e4,
417
+ maxCheckCommands: 10,
418
+ approvalTtlMs: 72 * 36e5,
419
+ branchCleanupMs: 10 * 6e4,
420
+ deletionCascadeMs: 10 * 6e4
421
+ };
422
+ var UPSTREAM_POLLING = {
423
+ earlyIntervalMs: 30 * 6e4,
424
+ earlyWindowMs: 7 * 864e5,
425
+ lateIntervalMs: 6 * 36e5,
426
+ pauseAfterInactivityMs: 90 * 864e5,
427
+ batch: 100,
428
+ maxRequestsPerRead: 4
429
+ };
430
+ var UPSTREAM_TEXT = {
431
+ titleMax: 72,
432
+ bodyMax: 8e3,
433
+ guideFileMaxBytes: 64 * 1024,
434
+ quoteMax: 300,
435
+ reviewBriefMaxBytes: 64 * 1024,
436
+ maxMissingPieces: 10,
437
+ reportMaxBytes: 32 * 1024,
438
+ maxSeenReviewIds: 200
439
+ };
440
+ var TASK_DELIVERY_STATES = [
441
+ "merged",
442
+ "building",
443
+ "build_failed",
444
+ "built",
445
+ "deploying",
446
+ "deploy_failed",
447
+ "live",
448
+ "closed_without_deploy"
449
+ ];
450
+ var TASK_DELIVERY_FILTER_WAITING = "waiting";
451
+ var TASK_DELIVERY_STATE_FILTERS = [
452
+ TASK_DELIVERY_FILTER_WAITING,
453
+ ...TASK_DELIVERY_STATES
454
+ ];
406
455
  var KB_EXPORT_MAX_BYTES = 200 * 1024 * 1024;
407
456
  var TERMINAL_MAX_FRAME_BYTES = 1024 * 1024;
408
457
  var COMPUTER_MAX_FRAME_BYTES = 512 * 1024;
@@ -2795,6 +2844,9 @@ var DOMAIN_EVENT_CATALOG = [
2795
2844
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2796
2845
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2797
2846
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2847
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
2848
+ // answer to an integration item (stored on the item; no run is started).
2849
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2798
2850
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2799
2851
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2800
2852
  { 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/hermes-agent-plugin",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Hermes Agent pipeline plugin for Ever Works",
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.12"
36
+ "@ever-works/plugin": "^1.2.16"
37
37
  },
38
38
  "devDependencies": {
39
- "@ever-works/plugin": "^1.2.12",
39
+ "@ever-works/plugin": "^1.2.16",
40
40
  "@types/node": "^26.6.4",
41
41
  "tsup": "^8.0.0",
42
42
  "typescript": "^5.9.3",
@@ -73,8 +73,8 @@
73
73
  "url": "https://github.com/ever-works/ever-works/issues"
74
74
  },
75
75
  "everworksRelease": {
76
- "contentHash": "sha256:12511a58188161eba121e5601bfe5e968c698eda836b9980c96aa356f41e824a",
77
- "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
78
- "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/hermes-agent"
76
+ "contentHash": "sha256:7a34b46440678f0320dd29e39cad0876335c886d4be43838b9167ab11778a46d",
77
+ "commit": "89cee44a662034ea957b07ec5e1230ecf340b107",
78
+ "source": "https://github.com/ever-works/ever-works/tree/89cee44a662034ea957b07ec5e1230ecf340b107/packages/plugins/hermes-agent"
79
79
  }
80
80
  }