@yadsh/dsh-qa-integrations 0.8.3 → 0.10.0

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.
Files changed (188) hide show
  1. package/README.md +44 -27
  2. package/compatibility.json +7 -3
  3. package/lib/broker.js +225 -18
  4. package/lib/broker.js.map +1 -1
  5. package/lib/client/bitrix24.js +8 -6
  6. package/lib/client/bitrix24.js.map +1 -1
  7. package/lib/client/card.js +14 -13
  8. package/lib/client/card.js.map +1 -1
  9. package/lib/client/confluence.js +11 -7
  10. package/lib/client/confluence.js.map +1 -1
  11. package/lib/client/credential-help-note.js +51 -0
  12. package/lib/client/credential-help-note.js.map +1 -0
  13. package/lib/client/gitlab.js +8 -6
  14. package/lib/client/gitlab.js.map +1 -1
  15. package/lib/client/index.js +38 -32
  16. package/lib/client/index.js.map +1 -1
  17. package/lib/client/integrations.js +31 -18
  18. package/lib/client/integrations.js.map +1 -1
  19. package/lib/client/jira.js +10 -8
  20. package/lib/client/jira.js.map +1 -1
  21. package/lib/client/operator-card.js +93 -534
  22. package/lib/client/operator-card.js.map +1 -1
  23. package/lib/client/operator-controls.js +72 -23
  24. package/lib/client/operator-controls.js.map +1 -1
  25. package/lib/client/operator-sections/bitrix24.js +22 -0
  26. package/lib/client/operator-sections/bitrix24.js.map +1 -0
  27. package/lib/client/operator-sections/confluence.js +27 -0
  28. package/lib/client/operator-sections/confluence.js.map +1 -0
  29. package/lib/client/operator-sections/credential-help.js +15 -0
  30. package/lib/client/operator-sections/credential-help.js.map +1 -0
  31. package/lib/client/operator-sections/general.js +8 -0
  32. package/lib/client/operator-sections/general.js.map +1 -0
  33. package/lib/client/operator-sections/gitlab.js +41 -0
  34. package/lib/client/operator-sections/gitlab.js.map +1 -0
  35. package/lib/client/operator-sections/jira.js +25 -0
  36. package/lib/client/operator-sections/jira.js.map +1 -0
  37. package/lib/client/operator-sections/provider-section.js +21 -0
  38. package/lib/client/operator-sections/provider-section.js.map +1 -0
  39. package/lib/client/operator-sections/service-profiles.js +178 -0
  40. package/lib/client/operator-sections/service-profiles.js.map +1 -0
  41. package/lib/client/operator-sections/shared.js +192 -0
  42. package/lib/client/operator-sections/shared.js.map +1 -0
  43. package/lib/client/operator-sections/teamcity.js +42 -0
  44. package/lib/client/operator-sections/teamcity.js.map +1 -0
  45. package/lib/client/operator-sections/testit.js +35 -0
  46. package/lib/client/operator-sections/testit.js.map +1 -0
  47. package/lib/client/operator-sections/weblate.js +32 -0
  48. package/lib/client/operator-sections/weblate.js.map +1 -0
  49. package/lib/client/operator-service-reach.js +98 -0
  50. package/lib/client/operator-service-reach.js.map +1 -0
  51. package/lib/client/provider-card.js +32 -19
  52. package/lib/client/provider-card.js.map +1 -1
  53. package/lib/client/styles.js +52 -15
  54. package/lib/client/styles.js.map +1 -1
  55. package/lib/client/teamcity.js +7 -5
  56. package/lib/client/teamcity.js.map +1 -1
  57. package/lib/client/testit.js +8 -6
  58. package/lib/client/testit.js.map +1 -1
  59. package/lib/client/weblate.js +8 -6
  60. package/lib/client/weblate.js.map +1 -1
  61. package/lib/client.js +2838 -1923
  62. package/lib/client.js.map +1 -1
  63. package/lib/config.js +64 -17
  64. package/lib/config.js.map +1 -1
  65. package/lib/index.js +177 -223
  66. package/lib/index.js.map +1 -1
  67. package/lib/providers/bitrix24/tools.js +7 -2
  68. package/lib/providers/bitrix24/tools.js.map +1 -1
  69. package/lib/providers/bitrix24/transport.js +16 -6
  70. package/lib/providers/bitrix24/transport.js.map +1 -1
  71. package/lib/providers/confluence/config.js +14 -55
  72. package/lib/providers/confluence/config.js.map +1 -1
  73. package/lib/providers/confluence/tools.js +7 -2
  74. package/lib/providers/confluence/tools.js.map +1 -1
  75. package/lib/providers/confluence/transport.js +42 -78
  76. package/lib/providers/confluence/transport.js.map +1 -1
  77. package/lib/providers/gitlab/config.js +11 -55
  78. package/lib/providers/gitlab/config.js.map +1 -1
  79. package/lib/providers/gitlab/operations.js +3 -3
  80. package/lib/providers/gitlab/operations.js.map +1 -1
  81. package/lib/providers/gitlab/tools.js +7 -2
  82. package/lib/providers/gitlab/tools.js.map +1 -1
  83. package/lib/providers/gitlab/transport.js +33 -65
  84. package/lib/providers/gitlab/transport.js.map +1 -1
  85. package/lib/providers/jira/config.js +18 -58
  86. package/lib/providers/jira/config.js.map +1 -1
  87. package/lib/providers/jira/jql.js +105 -1
  88. package/lib/providers/jira/jql.js.map +1 -1
  89. package/lib/providers/jira/tools.js +68 -2
  90. package/lib/providers/jira/tools.js.map +1 -1
  91. package/lib/providers/jira/transport.js +44 -110
  92. package/lib/providers/jira/transport.js.map +1 -1
  93. package/lib/providers/kernel/address.js +90 -0
  94. package/lib/providers/kernel/address.js.map +1 -0
  95. package/lib/providers/kernel/errors.js +42 -0
  96. package/lib/providers/kernel/errors.js.map +1 -0
  97. package/lib/providers/kernel/read-policy.js +250 -0
  98. package/lib/providers/kernel/read-policy.js.map +1 -0
  99. package/lib/providers/kernel/token.js +45 -0
  100. package/lib/providers/kernel/token.js.map +1 -0
  101. package/lib/providers/shared/service-boundary.js +31 -3
  102. package/lib/providers/shared/service-boundary.js.map +1 -1
  103. package/lib/providers/teamcity/tools.js +8 -3
  104. package/lib/providers/teamcity/tools.js.map +1 -1
  105. package/lib/providers/teamcity/transport.js +6 -8
  106. package/lib/providers/teamcity/transport.js.map +1 -1
  107. package/lib/providers/testit/config.js +12 -57
  108. package/lib/providers/testit/config.js.map +1 -1
  109. package/lib/providers/testit/tools.js +7 -2
  110. package/lib/providers/testit/tools.js.map +1 -1
  111. package/lib/providers/testit/transport.js +12 -12
  112. package/lib/providers/testit/transport.js.map +1 -1
  113. package/lib/providers/weblate/config.js +12 -55
  114. package/lib/providers/weblate/config.js.map +1 -1
  115. package/lib/providers/weblate/tools.js +7 -2
  116. package/lib/providers/weblate/tools.js.map +1 -1
  117. package/lib/providers/weblate/transport.js +21 -20
  118. package/lib/providers/weblate/transport.js.map +1 -1
  119. package/lib/public-api.js +79 -0
  120. package/lib/public-api.js.map +1 -0
  121. package/lib/repository.js +96 -16
  122. package/lib/repository.js.map +1 -1
  123. package/lib/service-credentials/config.js +61 -0
  124. package/lib/service-credentials/config.js.map +1 -1
  125. package/lib/service-credentials/policy.js +14 -1
  126. package/lib/service-credentials/policy.js.map +1 -1
  127. package/lib/service-credentials/rate-limit.js +136 -0
  128. package/lib/service-credentials/rate-limit.js.map +1 -0
  129. package/lib/tool-kit.js +15 -7
  130. package/lib/tool-kit.js.map +1 -1
  131. package/lib/tools.js +49 -24
  132. package/lib/tools.js.map +1 -1
  133. package/lib/typert.host.js +460 -352
  134. package/lib/typert.remote-client.js +450 -336
  135. package/lib/types/broker.d.ts +77 -3
  136. package/lib/types/client/card.d.ts +13 -4
  137. package/lib/types/client/credential-help-note.d.ts +26 -0
  138. package/lib/types/client/index.d.ts +15 -7
  139. package/lib/types/client/integrations.d.ts +5 -4
  140. package/lib/types/client/operator-card.d.ts +56 -4
  141. package/lib/types/client/operator-controls.d.ts +31 -0
  142. package/lib/types/client/operator-sections/bitrix24.d.ts +12 -0
  143. package/lib/types/client/operator-sections/confluence.d.ts +10 -0
  144. package/lib/types/client/operator-sections/credential-help.d.ts +17 -0
  145. package/lib/types/client/operator-sections/general.d.ts +11 -0
  146. package/lib/types/client/operator-sections/gitlab.d.ts +13 -0
  147. package/lib/types/client/operator-sections/jira.d.ts +11 -0
  148. package/lib/types/client/operator-sections/provider-section.d.ts +58 -0
  149. package/lib/types/client/operator-sections/service-profiles.d.ts +13 -0
  150. package/lib/types/client/operator-sections/shared.d.ts +123 -0
  151. package/lib/types/client/operator-sections/teamcity.d.ts +11 -0
  152. package/lib/types/client/operator-sections/testit.d.ts +10 -0
  153. package/lib/types/client/operator-sections/weblate.d.ts +10 -0
  154. package/lib/types/client/operator-service-reach.d.ts +76 -0
  155. package/lib/types/client/provider-card.d.ts +14 -3
  156. package/lib/types/client/styles.d.ts +28 -4
  157. package/lib/types/config.d.ts +49 -2
  158. package/lib/types/index.d.ts +54 -117
  159. package/lib/types/providers/bitrix24/tools.d.ts +2 -5
  160. package/lib/types/providers/confluence/tools.d.ts +2 -6
  161. package/lib/types/providers/confluence/transport.d.ts +0 -6
  162. package/lib/types/providers/gitlab/config.d.ts +1 -1
  163. package/lib/types/providers/gitlab/tools.d.ts +2 -6
  164. package/lib/types/providers/gitlab/transport.d.ts +3 -5
  165. package/lib/types/providers/jira/tools.d.ts +2 -6
  166. package/lib/types/providers/jira/transport.d.ts +2 -11
  167. package/lib/types/providers/kernel/address.d.ts +57 -0
  168. package/lib/types/providers/kernel/errors.d.ts +34 -0
  169. package/lib/types/providers/kernel/read-policy.d.ts +107 -0
  170. package/lib/types/providers/kernel/token.d.ts +25 -0
  171. package/lib/types/providers/shared/service-boundary.d.ts +15 -0
  172. package/lib/types/providers/teamcity/tools.d.ts +2 -6
  173. package/lib/types/providers/teamcity/transport.d.ts +1 -1
  174. package/lib/types/providers/testit/tools.d.ts +2 -6
  175. package/lib/types/providers/testit/transport.d.ts +1 -1
  176. package/lib/types/providers/weblate/tools.d.ts +2 -6
  177. package/lib/types/public-api.d.ts +80 -0
  178. package/lib/types/repository.d.ts +64 -2
  179. package/lib/types/service-credentials/config.d.ts +22 -0
  180. package/lib/types/service-credentials/rate-limit.d.ts +66 -0
  181. package/lib/types/service-credentials/types.d.ts +18 -0
  182. package/lib/types/tool-kit.d.ts +27 -1
  183. package/lib/types/tools.d.ts +26 -9
  184. package/lib/types/types.d.ts +17 -3
  185. package/package.json +23 -21
  186. package/lib/providers/shared/http.js +0 -168
  187. package/lib/providers/shared/http.js.map +0 -1
  188. package/lib/types/providers/shared/http.d.ts +0 -60
package/lib/index.js CHANGED
@@ -35,8 +35,7 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
35
35
  import { Remote, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
36
36
  import { createHostLoggerSink, getPluginLogger, } from "@yadsh/dsh-plugin-log";
37
37
  import { IntegrationBroker } from "./broker.js";
38
- import { ConfigSchema, resolveConfig, } from "./config.js";
39
- import { QA_INTEGRATIONS_SETTINGS_NAMESPACE } from "./shared/settings.js";
38
+ import { ConfigSchema, resolveConfig, snapshotConfig, } from "./config.js";
40
39
  import { IntegrationError, publicIntegrationError } from "./errors.js";
41
40
  import Bitrix24Provider from "./providers/bitrix24/index.js";
42
41
  import ConfluenceProvider from "./providers/confluence/index.js";
@@ -74,6 +73,25 @@ function legacySiblingOf(filePath) {
74
73
  ? `${filePath.slice(0, -".db".length)}.json`
75
74
  : undefined;
76
75
  }
76
+ /**
77
+ * One row of a provider's connect-form list: the address a token may be spent
78
+ * against, and the managed credential bound to it when this deployment has one.
79
+ * Every provider's list is this shape, so the shape is stated once; the
80
+ * deployment type travels only for the two products that distinguish the
81
+ * vendor's hosted installation from a self-hosted one, and its absence is what
82
+ * tells the client to read the resolver's own default.
83
+ */
84
+ function instanceSummary(row, service) {
85
+ return {
86
+ id: row.id,
87
+ label: row.label,
88
+ baseUrl: row.baseUrl,
89
+ ...(row.deploymentType === undefined
90
+ ? {}
91
+ : { deploymentType: row.deploymentType }),
92
+ service,
93
+ };
94
+ }
77
95
  /** Host remote, broker owner, and registration point for read-only tools. */
78
96
  let QaIntegrations = (() => {
79
97
  let _classSuper = TypertRemoteService;
@@ -256,13 +274,13 @@ let QaIntegrations = (() => {
256
274
  /** The Bitrix24 portals this deployment allows, in config order. */
257
275
  configuredBitrix24Portals = [];
258
276
  /**
259
- * The composition row the Host resolved at load. It stays the base of the
260
- * settings section, and the configuration source until the namespace takes
261
- * over, so a deployment without a settings provider keeps booting on it.
277
+ * The configuration source is the plugin's own profile entry: on a 0.1.7
278
+ * host the entry id *is* the settings namespace, and a field the operator
279
+ * card may edit is a volatile node in `ConfigSchema` rather than a section
280
+ * installed beside it. A composition without a settings surface keeps the
281
+ * same source, so nothing here depends on the surface being reachable.
262
282
  */
263
- entryConfig;
264
- /** Where the live configuration is read from; the settings namespace swaps this. */
265
- configSource;
283
+ liveConfig;
266
284
  /**
267
285
  * The connection store and its key live for the whole process: connections
268
286
  * and wrapped secrets belong to the boot path, and only derivations of the
@@ -277,16 +295,15 @@ let QaIntegrations = (() => {
277
295
  toolRemovers = [];
278
296
  /** The mounted tool-name list; an unchanged signature never re-registers. */
279
297
  toolsKey = "";
280
- constructor(ctx, rawConfig = {}) {
298
+ constructor(ctx, rawConfig) {
281
299
  super(ctx, "qaIntegrations", { namespace: "qaIntegrations" });
282
300
  this.owner = ctx;
283
301
  this.logger = getPluginLogger({
284
302
  pluginId: "dsh-qa-integrations",
285
303
  consoleSink: createHostLoggerSink(ctx.logger),
286
304
  });
287
- this.entryConfig = structuredClone(rawConfig);
288
- this.configSource = () => this.entryConfig;
289
- const boot = resolveConfig(rawConfig);
305
+ this.liveConfig = rawConfig;
306
+ const boot = resolveConfig(snapshotConfig(rawConfig));
290
307
  const repository = new IntegrationRepository(boot.dataPath, {
291
308
  auditRetentionDays: boot.auditRetentionDays,
292
309
  });
@@ -306,7 +323,7 @@ let QaIntegrations = (() => {
306
323
  this.bootMasterKeyVersion = boot.masterKeyVersion;
307
324
  this.broker = new IntegrationBroker(repository, this.secrets, new IntegrationProviderRegistry(), this.logger, {});
308
325
  this.applyConfig(boot);
309
- this.installSettings();
326
+ this.watchSettings();
310
327
  ctx.effect(() => () => {
311
328
  for (const remove of this.toolRemovers)
312
329
  remove();
@@ -384,48 +401,21 @@ let QaIntegrations = (() => {
384
401
  ? providers.list().map(providerSummary)
385
402
  : [];
386
403
  this.configuredConfluenceSites = config.confluence.enabled
387
- ? config.confluence.instances.map((instance) => ({
388
- id: instance.id,
389
- label: instance.label,
390
- baseUrl: instance.baseUrl,
391
- deploymentType: instance.deploymentType,
392
- service: this.serviceBinding("confluence", instance.id),
393
- }))
404
+ ? config.confluence.instances.map((site) => instanceSummary(site, this.serviceBinding("confluence", site.id)))
394
405
  : [];
395
406
  this.configuredInstances = config.gitlab.enabled
396
- ? config.gitlab.instances.map((instance) => ({
397
- id: instance.id,
398
- label: instance.label,
399
- baseUrl: instance.baseUrl,
400
- service: this.serviceBinding("gitlab", instance.id),
401
- }))
407
+ ? config.gitlab.instances.map((instance) => instanceSummary(instance, this.serviceBinding("gitlab", instance.id)))
402
408
  : [];
403
409
  this.configuredJiraSites = config.jira.enabled
404
- ? config.jira.sites.map((site) => ({
405
- id: site.id,
406
- label: site.label,
407
- baseUrl: site.baseUrl,
408
- deploymentType: site.deploymentType,
409
- service: this.serviceBinding("jira", site.id),
410
- }))
410
+ ? config.jira.sites.map((site) => instanceSummary(site, this.serviceBinding("jira", site.id)))
411
411
  : [];
412
412
  this.configuredTestitInstances = config.testit.enabled
413
- ? config.testit.instances.map((instance) => ({
414
- id: instance.id,
415
- label: instance.label,
416
- baseUrl: instance.baseUrl,
417
- service: this.serviceBinding("testit", instance.id),
418
- }))
413
+ ? config.testit.instances.map((instance) => instanceSummary(instance, this.serviceBinding("testit", instance.id)))
419
414
  : [];
420
415
  // The portal a Bitrix24 connection answers on is a hostname, not a URL —
421
416
  // the same shape a webhook URL reports, so profile and connection match.
422
417
  this.configuredBitrix24Portals = config.bitrix24.enabled
423
- ? config.bitrix24.instances.map((instance) => ({
424
- id: instance.id,
425
- label: instance.label,
426
- baseUrl: instance.portal,
427
- service: this.serviceBinding("bitrix24", instance.id),
428
- }))
418
+ ? config.bitrix24.instances.map((portal) => instanceSummary({ id: portal.id, label: portal.label, baseUrl: portal.portal }, this.serviceBinding("bitrix24", portal.id)))
429
419
  : [];
430
420
  this.configuredServer =
431
421
  config.teamcity.enabled && config.teamcity.serverUrl !== ""
@@ -437,17 +427,12 @@ let QaIntegrations = (() => {
437
427
  }
438
428
  : null;
439
429
  this.configuredWeblateInstances = config.weblate.enabled
440
- ? config.weblate.instances.map((instance) => ({
441
- id: instance.id,
442
- label: instance.label,
443
- baseUrl: instance.baseUrl,
444
- service: this.serviceBinding("weblate", instance.id),
445
- }))
430
+ ? config.weblate.instances.map((instance) => instanceSummary(instance, this.serviceBinding("weblate", instance.id)))
446
431
  : [];
447
432
  // The broker is one object for the service's lifetime — the mounted tools
448
433
  // close over it — so a fresh configuration is swapped in rather than
449
434
  // mounted beside the old one.
450
- this.broker.swap(providers, this.serviceCredentials, this.defaultForNewConnections);
435
+ this.broker.swap(providers, this.serviceCredentials, this.defaultForNewConnections, config.managedServiceCredentials.rateLimit);
451
436
  this.syncTools(config);
452
437
  if (config.teamcity.enabled &&
453
438
  networkAllowsNothing(config.teamcity.network)) {
@@ -470,16 +455,30 @@ let QaIntegrations = (() => {
470
455
  }
471
456
  }
472
457
  /**
473
- * Mount the tools the configuration asks for. The mounted set changes only
474
- * when the plugin or its one write capability flips, so an unrelated card
475
- * edit never churns the Host tool registry.
458
+ * Mount the tools the configuration asks for. The mounted surface changes only
459
+ * when the plugin, its one write capability, or the managed service credential
460
+ * flips, so an unrelated card edit never churns the Host tool registry.
476
461
  */
477
462
  syncTools(config) {
463
+ // The providers this configuration kept: switching one off takes its tools
464
+ // away from the model too, so a disabled integration leaves nothing mounted
465
+ // that every call could only refuse.
466
+ const enabledProviders = this.providerRegistry
467
+ .list()
468
+ .map((provider) => provider.id);
469
+ const managedCeiling = config.managedServiceCredentials.enabled;
478
470
  const toolOptions = {
479
471
  bitrix24CrmCommentWrite: config.bitrix24.crmCommentWrite,
472
+ enabledProviders,
473
+ // Which readings the ceiling refuses is in the tool descriptions, so the
474
+ // slice decides what the model is told about them.
475
+ managedServiceCredentialsEnabled: managedCeiling,
480
476
  };
481
477
  const names = config.enabled ? integrationToolNames(toolOptions) : [];
482
- const signature = names.join(",");
478
+ // The key carries the slice because a description is part of the mounted
479
+ // surface: without it, toggling the managed credential would leave the old
480
+ // warnings — or their absence — in the Host registry.
481
+ const signature = `${names.join(",")}|ceiling=${managedCeiling}`;
483
482
  if (signature === this.toolsKey)
484
483
  return;
485
484
  for (const remove of this.toolRemovers)
@@ -500,44 +499,43 @@ let QaIntegrations = (() => {
500
499
  this.logger.info("plugin.ready", { tools: [...names] });
501
500
  }
502
501
  /**
503
- * Attach the settings namespace. The installed section becomes the plugin's
504
- * configuration source, so an operator card edit re-applies the running
505
- * service instead of waiting for a restart; without a settings provider the
506
- * composition entry stays authoritative. The read is structural and optional:
507
- * a Host without a mounted settings provider keeps this plugin fully working.
502
+ * Keep the running service in step with the settings namespace this entry
503
+ * owns. There is nothing to install: the namespace *is* the profile entry,
504
+ * and the Host serves whatever `ConfigSchema` marks `.volatile()`. Two things
505
+ * are left to do — decline the generated page the Host would otherwise draw
506
+ * for it, because this plugin ships its own operator card, and re-apply when
507
+ * a committed edit lands on the live references. The read is structural and
508
+ * optional: a Host without a mounted settings provider keeps this plugin
509
+ * fully working.
508
510
  */
509
- installSettings() {
511
+ watchSettings() {
510
512
  this.owner.inject(["settings"], (settingsCtx) => {
511
513
  const settings = settingsCtx.settings;
512
514
  if (settings === undefined)
513
515
  return;
514
- settings.installSection(this.owner, QA_INTEGRATIONS_SETTINGS_NAMESPACE, ConfigSchema, this.entryConfig, {
515
- setSource: (current) => {
516
- this.configSource = current;
517
- },
518
- onChange: () => {
519
- this.reapply();
520
- },
521
- // Constraints the schema alone cannot carry (a TeamCity host pattern
522
- // that matches nothing, an instance list with a duplicate id) are
523
- // refused at write time, so the card reports them instead of storing
524
- // a configuration the resolvers would throw away at the next boot.
525
- validate: (value) => {
526
- resolveConfig(value);
527
- },
528
- });
516
+ settingsCtx.effect(() => settings.configure({ auto: false }, this.owner.fiber));
517
+ });
518
+ // The Loader commits a card edit into this entry's volatile references and
519
+ // tells the owning fiber, and only the owning fiber, that they moved. The
520
+ // event belongs to the Loader's own types, which this package does not
521
+ // depend on, so it is reached through the same structural face as the
522
+ // optional settings service above.
523
+ this.owner.on("loader/volatile-update", () => {
524
+ this.reapply();
529
525
  });
530
526
  }
531
527
  /**
532
528
  * Re-resolve the source after a committed settings change and rebuild what
533
- * derives from it. A source the resolvers refuse keeps the running state:
534
- * the settings provider validates on write, so this only covers a value
535
- * that arrived through another path.
529
+ * derives from it. The Host validates an edit against `ConfigSchema` before
530
+ * it persists, so the resolvers here only refuse what a schema node cannot
531
+ * express — a TeamCity host pattern that matches nothing, an instance list
532
+ * with a duplicate id. Such a value keeps the running state and is logged
533
+ * rather than half-applied.
536
534
  */
537
535
  reapply() {
538
536
  let next;
539
537
  try {
540
- next = resolveConfig(this.configSource());
538
+ next = resolveConfig(snapshotConfig(this.liveConfig));
541
539
  }
542
540
  catch (error) {
543
541
  this.logger.warn("config.rejected", {
@@ -564,62 +562,54 @@ let QaIntegrations = (() => {
564
562
  return this.run(token, (principal) => this.broker.list(principal));
565
563
  }
566
564
  getBitrix24(token) {
567
- return this.run(token, (principal) => this.broker.summary(principal, "bitrix24"));
565
+ return this.summaryOf(token, "bitrix24");
568
566
  }
569
567
  async putBitrix24Credential(token, input) {
570
- return this.runAsync(token, (principal) => this.broker.connect(principal, "bitrix24", {
568
+ return this.putCredentialOf(token, "bitrix24", {
571
569
  token: input.token,
572
570
  options: { instanceId: input.instanceId },
573
- }, { useServiceCredential: input.useServiceCredential }));
571
+ useServiceCredential: input.useServiceCredential,
572
+ });
574
573
  }
575
574
  bitrix24Instances(token) {
576
- return this.run(token, () => this.configuredBitrix24Portals);
575
+ return this.endpointsOf(token, this.configuredBitrix24Portals);
577
576
  }
578
577
  async testBitrix24(token) {
579
- return this.runAsync(token, (principal) => this.broker.validate(principal, "bitrix24"));
578
+ return this.validateOf(token, "bitrix24");
580
579
  }
581
580
  patchBitrix24Policy(token, patch) {
582
- return this.run(token, (principal) => this.broker.patchPolicy(principal, "bitrix24", patch));
581
+ return this.patchPolicyOf(token, "bitrix24", patch);
583
582
  }
584
583
  disconnectBitrix24(token) {
585
- return this.run(token, (principal) => this.broker.disconnect(principal, "bitrix24"));
584
+ return this.disconnectOf(token, "bitrix24");
586
585
  }
587
- /**
588
- * Instances this deployment allows. The connect form picks from this list and
589
- * never takes a hostname, which is what keeps the broker from being pointed at
590
- * an origin the operator did not configure.
591
- */
592
586
  gitlabInstances(token) {
593
- return this.run(token, () => this.configuredInstances);
587
+ return this.endpointsOf(token, this.configuredInstances);
594
588
  }
595
589
  getGitlab(token) {
596
- return this.run(token, (principal) => this.broker.summary(principal, "gitlab"));
590
+ return this.summaryOf(token, "gitlab");
597
591
  }
598
592
  async putGitlabCredential(token, input) {
599
- return this.runAsync(token, (principal) => this.broker.connect(principal, "gitlab", {
593
+ return this.putCredentialOf(token, "gitlab", {
600
594
  token: input.token,
601
595
  options: { instanceId: input.instanceId },
602
- }, { useServiceCredential: input.useServiceCredential }));
596
+ useServiceCredential: input.useServiceCredential,
597
+ });
603
598
  }
604
599
  async testGitlab(token) {
605
- return this.runAsync(token, (principal) => this.broker.validate(principal, "gitlab"));
600
+ return this.validateOf(token, "gitlab");
606
601
  }
607
602
  patchGitlabPolicy(token, patch) {
608
- return this.run(token, (principal) => this.broker.patchPolicy(principal, "gitlab", patch));
603
+ return this.patchPolicyOf(token, "gitlab", patch);
609
604
  }
610
605
  disconnectGitlab(token) {
611
- return this.run(token, (principal) => this.broker.disconnect(principal, "gitlab"));
606
+ return this.disconnectOf(token, "gitlab");
612
607
  }
613
- /**
614
- * Sites this deployment allows. The connect form picks from this list and
615
- * never takes a hostname, which is what keeps the broker from being pointed
616
- * at an origin the operator did not configure.
617
- */
618
608
  confluenceSites(token) {
619
- return this.run(token, () => this.configuredConfluenceSites);
609
+ return this.endpointsOf(token, this.configuredConfluenceSites);
620
610
  }
621
611
  getConfluence(token) {
622
- return this.run(token, (principal) => this.broker.summary(principal, "confluence"));
612
+ return this.summaryOf(token, "confluence");
623
613
  }
624
614
  /**
625
615
  * The account e-mail is not a secret, but it is half of the Basic pair, so it
@@ -630,25 +620,26 @@ let QaIntegrations = (() => {
630
620
  * deployment type is what makes that shape acceptable.
631
621
  */
632
622
  async putConfluenceCredential(token, input) {
633
- return this.runAsync(token, (principal) => this.broker.connect(principal, "confluence", {
623
+ return this.putCredentialOf(token, "confluence", {
634
624
  token: input.token,
635
625
  options: {
636
626
  instanceId: input.instanceId,
637
627
  ...(input.email === undefined ? {} : { email: input.email }),
638
628
  },
639
- }, { useServiceCredential: input.useServiceCredential }));
629
+ useServiceCredential: input.useServiceCredential,
630
+ });
640
631
  }
641
632
  async testConfluence(token) {
642
- return this.runAsync(token, (principal) => this.broker.validate(principal, "confluence"));
633
+ return this.validateOf(token, "confluence");
643
634
  }
644
635
  patchConfluencePolicy(token, patch) {
645
- return this.run(token, (principal) => this.broker.patchPolicy(principal, "confluence", patch));
636
+ return this.patchPolicyOf(token, "confluence", patch);
646
637
  }
647
638
  disconnectConfluence(token) {
648
- return this.run(token, (principal) => this.broker.disconnect(principal, "confluence"));
639
+ return this.disconnectOf(token, "confluence");
649
640
  }
650
641
  getTeamcity(token) {
651
- return this.run(token, (principal) => this.broker.summary(principal, "teamcity"));
642
+ return this.summaryOf(token, "teamcity");
652
643
  }
653
644
  /**
654
645
  * The TeamCity address is operator configuration, so the connect form sends
@@ -657,7 +648,10 @@ let QaIntegrations = (() => {
657
648
  * every call.
658
649
  */
659
650
  async putTeamcityCredential(token, input) {
660
- return this.runAsync(token, (principal) => this.broker.connect(principal, "teamcity", { token: input.token }, { useServiceCredential: input.useServiceCredential }));
651
+ return this.putCredentialOf(token, "teamcity", {
652
+ token: input.token,
653
+ useServiceCredential: input.useServiceCredential,
654
+ });
661
655
  }
662
656
  /**
663
657
  * The address the connect form shows next to the token field, or null when
@@ -666,31 +660,25 @@ let QaIntegrations = (() => {
666
660
  * of the stand's CI is not something an unauthenticated caller needs.
667
661
  */
668
662
  teamcityServer(token) {
669
- return this.run(token, () => this.configuredServer);
663
+ return this.endpointsOf(token, this.configuredServer);
670
664
  }
671
665
  async testTeamcity(token) {
672
- return this.runAsync(token, (principal) => this.broker.validate(principal, "teamcity"));
666
+ return this.validateOf(token, "teamcity");
673
667
  }
674
668
  patchTeamcityPolicy(token, patch) {
675
- return this.run(token, (principal) => this.broker.patchPolicy(principal, "teamcity", patch));
669
+ return this.patchPolicyOf(token, "teamcity", patch);
676
670
  }
677
671
  disconnectTeamcity(token) {
678
- return this.run(token, (principal) => this.broker.disconnect(principal, "teamcity"));
672
+ return this.disconnectOf(token, "teamcity");
679
673
  }
680
- /**
681
- * Sites this deployment allows. Like the GitLab instance list, the connect
682
- * form picks from it and never takes a hostname: the Atlassian site a token is
683
- * spent against is operator configuration, and the e-mail the form collects
684
- * next to the token is an identity, not a secret.
685
- */
686
674
  jiraSites(token) {
687
- return this.run(token, () => this.configuredJiraSites);
675
+ return this.endpointsOf(token, this.configuredJiraSites);
688
676
  }
689
677
  getJira(token) {
690
- return this.run(token, (principal) => this.broker.summary(principal, "jira"));
678
+ return this.summaryOf(token, "jira");
691
679
  }
692
680
  async putJiraCredential(token, input) {
693
- return this.runAsync(token, (principal) => this.broker.connect(principal, "jira", {
681
+ return this.putCredentialOf(token, "jira", {
694
682
  token: input.token,
695
683
  // The broker resolves the profile by `instanceId`; Jira names its
696
684
  // instances `siteId` on the wire.
@@ -698,68 +686,61 @@ let QaIntegrations = (() => {
698
686
  instanceId: input.siteId,
699
687
  ...(input.email === undefined ? {} : { email: input.email }),
700
688
  },
701
- }, { useServiceCredential: input.useServiceCredential }));
689
+ useServiceCredential: input.useServiceCredential,
690
+ });
702
691
  }
703
692
  async testJira(token) {
704
- return this.runAsync(token, (principal) => this.broker.validate(principal, "jira"));
693
+ return this.validateOf(token, "jira");
705
694
  }
706
695
  patchJiraPolicy(token, patch) {
707
- return this.run(token, (principal) => this.broker.patchPolicy(principal, "jira", patch));
696
+ return this.patchPolicyOf(token, "jira", patch);
708
697
  }
709
698
  disconnectJira(token) {
710
- return this.run(token, (principal) => this.broker.disconnect(principal, "jira"));
699
+ return this.disconnectOf(token, "jira");
711
700
  }
712
- /**
713
- * Installations this deployment allows. Like the GitLab instance list, the
714
- * connect form picks from it and never takes a hostname: the Test IT address a
715
- * token is spent against is operator configuration.
716
- */
717
701
  testitInstances(token) {
718
- return this.run(token, () => this.configuredTestitInstances);
702
+ return this.endpointsOf(token, this.configuredTestitInstances);
719
703
  }
720
704
  getTestit(token) {
721
- return this.run(token, (principal) => this.broker.summary(principal, "testit"));
705
+ return this.summaryOf(token, "testit");
722
706
  }
723
707
  async putTestitCredential(token, input) {
724
- return this.runAsync(token, (principal) => this.broker.connect(principal, "testit", {
708
+ return this.putCredentialOf(token, "testit", {
725
709
  token: input.token,
726
710
  options: { instanceId: input.instanceId },
727
- }, { useServiceCredential: input.useServiceCredential }));
711
+ useServiceCredential: input.useServiceCredential,
712
+ });
728
713
  }
729
714
  async testTestit(token) {
730
- return this.runAsync(token, (principal) => this.broker.validate(principal, "testit"));
715
+ return this.validateOf(token, "testit");
731
716
  }
732
717
  patchTestitPolicy(token, patch) {
733
- return this.run(token, (principal) => this.broker.patchPolicy(principal, "testit", patch));
718
+ return this.patchPolicyOf(token, "testit", patch);
734
719
  }
735
720
  disconnectTestit(token) {
736
- return this.run(token, (principal) => this.broker.disconnect(principal, "testit"));
721
+ return this.disconnectOf(token, "testit");
737
722
  }
738
- /**
739
- * Instances this deployment allows. The connect form picks from this list and
740
- * never takes a hostname, which is what keeps the broker from being pointed at
741
- * an origin the operator did not configure.
742
- */
743
723
  weblateInstances(token) {
744
- return this.run(token, () => this.configuredWeblateInstances);
724
+ return this.endpointsOf(token, this.configuredWeblateInstances);
745
725
  }
746
726
  getWeblate(token) {
747
- return this.run(token, (principal) => this.broker.summary(principal, "weblate"));
727
+ return this.summaryOf(token, "weblate");
748
728
  }
749
729
  async putWeblateCredential(token, input) {
750
- return this.runAsync(token, (principal) => this.broker.connect(principal, "weblate", {
730
+ return this.putCredentialOf(token, "weblate", {
751
731
  token: input.token,
752
732
  options: { instanceId: input.instanceId },
753
- }, { useServiceCredential: input.useServiceCredential }));
733
+ useServiceCredential: input.useServiceCredential,
734
+ });
754
735
  }
755
736
  async testWeblate(token) {
756
- return this.runAsync(token, (principal) => this.broker.validate(principal, "weblate"));
737
+ return this.validateOf(token, "weblate");
757
738
  }
758
739
  patchWeblatePolicy(token, patch) {
759
- return this.run(token, (principal) => this.broker.patchPolicy(principal, "weblate", patch));
740
+ return this.patchPolicyOf(token, "weblate", patch);
760
741
  }
761
742
  disconnectWeblate(token) {
762
- return this.run(token, (principal) => this.broker.disconnect(principal, "weblate"));
743
+ return this.disconnectOf(token, "weblate");
763
744
  }
764
745
  /**
765
746
  * Whether this deployment offers managed service credentials at all, and
@@ -814,6 +795,42 @@ let QaIntegrations = (() => {
814
795
  const profile = registry.find(providerId, portal);
815
796
  return profile?.enabled === true ? { label: profile.label } : null;
816
797
  }
798
+ /**
799
+ * The six calls one provider's connect card makes, and the fields that card
800
+ * spends. What a provider owns is the address list it offers and the fields
801
+ * its form collects; the questions the card asks the broker — what is bound,
802
+ * does the credential still reach the upstream, narrow its policy, let it go —
803
+ * are the same seven times over, and a copy per provider is where the seventh
804
+ * starts answering one of them differently.
805
+ */
806
+ summaryOf(token, provider) {
807
+ return this.run(token, (principal) => this.broker.summary(principal, provider));
808
+ }
809
+ async validateOf(token, provider) {
810
+ return this.runAsync(token, (principal) => this.broker.validate(principal, provider));
811
+ }
812
+ patchPolicyOf(token, provider, patch) {
813
+ return this.run(token, (principal) => this.broker.patchPolicy(principal, provider, patch));
814
+ }
815
+ disconnectOf(token, provider) {
816
+ return this.run(token, (principal) => this.broker.disconnect(principal, provider));
817
+ }
818
+ /**
819
+ * The endpoints this deployment declared for one provider. A connect form
820
+ * picks from this list and never takes a hostname, which is what keeps the
821
+ * broker from being pointed at an origin the operator did not configure.
822
+ * TeamCity answers with the single server or `null`, so the row shape is the
823
+ * caller's.
824
+ */
825
+ endpointsOf(token, endpoints) {
826
+ return this.run(token, () => endpoints);
827
+ }
828
+ /** Spend one connect form's fields on a provider's credential. */
829
+ async putCredentialOf(token, provider, input) {
830
+ return this.runAsync(token, (principal) => this.broker.connect(principal, provider, input.options === undefined
831
+ ? { token: input.token }
832
+ : { token: input.token, options: input.options }, { useServiceCredential: input.useServiceCredential }));
833
+ }
817
834
  requirePrincipal(token) {
818
835
  if (!this.enabled) {
819
836
  throw new IntegrationError("ProviderUnavailable", "QA integrations are disabled");
@@ -843,73 +860,10 @@ let QaIntegrations = (() => {
843
860
  };
844
861
  })();
845
862
  export { QaIntegrations };
846
- export { IntegrationBroker } from "./broker.js";
847
- export { ConfigSchema, resolveConfig, } from "./config.js";
848
- export { MANAGED_SERVICE_CREDENTIALS_DEFAULTS, managedServiceCredentialsSchema, resolveManagedServiceCredentials, } from "./service-credentials/config.js";
849
- export { evaluateServiceOperation, narrowBoundary, SERVICE_CEILING, } from "./service-credentials/policy.js";
850
- export { ServiceCredentialRegistry } from "./service-credentials/registry.js";
851
- export { operationCapabilityServiceState } from "./service-credentials/state.js";
852
- export { profilePolicyRevision } from "./service-credentials/config.js";
853
- export { CREDENTIAL_SOURCES, isCredentialSource, UNCLASSIFIED_OPERATION, } from "./service-credentials/types.js";
854
- export { IntegrationError } from "./errors.js";
855
- export { BITRIX_CAPABILITIES, BITRIX_OPERATIONS, BITRIX24_CAPABILITY_INFO, bitrix24OperationCapability, enabledCapabilities, } from "./providers/bitrix24/catalog.js";
856
- export { BITRIX24_DEFAULTS, bitrix24ConfigSchema, resolveBitrix24Config, } from "./providers/bitrix24/config.js";
857
- export { Bitrix24Provider, parseBitrixWebhook, } from "./providers/bitrix24/index.js";
858
- export { BITRIX_HANDLERS, BITRIX_PROJECTIONS, } from "./providers/bitrix24/operations.js";
859
- export { createBitrix24Tools, BITRIX24_TOOL_NAMES, } from "./providers/bitrix24/tools.js";
860
- export { GitlabProvider, groupAllowed as gitlabGroupAllowed, projectAllowed as gitlabProjectAllowed, } from "./providers/gitlab/index.js";
861
- export { GITLAB_CAPABILITIES, GITLAB_CAPABILITY_INFO, GITLAB_CI_SPLIT_CAPABILITIES, GITLAB_LEGACY_CI_CAPABILITY, GITLAB_OPERATIONS, GITLAB_RESOURCE_KIND, capabilitiesForScopes, gitlabOperationCapability, gitlabOperationMetadata, } from "./providers/gitlab/catalog.js";
862
- export { GITLAB_DEFAULTS, gitlabConfigSchema, resolveGitlabConfig, } from "./providers/gitlab/config.js";
863
- export { createGitlabTools, GITLAB_TOOL_NAMES, } from "./providers/gitlab/tools.js";
864
- export { GitlabTransport, credentialFromPlaintext as gitlabCredentialFromPlaintext, credentialInstance, } from "./providers/gitlab/transport.js";
865
- export { GITLAB_HANDLERS, GITLAB_PROJECTIONS, } from "./providers/gitlab/operations.js";
866
- export { ConfluenceProvider } from "./providers/confluence/index.js";
867
- export { adfToText as confluenceAdfToText, textBudget, } from "./providers/confluence/adf.js";
868
- export { CONFLUENCE_CAPABILITIES, CONFLUENCE_CAPABILITY_INFO, CONFLUENCE_OPERATIONS, confluenceOperationCapability, } from "./providers/confluence/catalog.js";
869
- export { CONFLUENCE_DEFAULTS, confluenceConfigSchema, resolveConfluenceConfig, spaceAllowed, } from "./providers/confluence/config.js";
870
- export { buildCql, cqlLiteral, CONTENT_TYPES, ORDER_BY, } from "./providers/confluence/cql.js";
871
- export { COMMENT_KINDS, CONFLUENCE_HANDLERS, CONFLUENCE_PROJECTIONS, DEFAULT_LIMIT, bodyLimit, commentChildrenPath, commentCollections, commentKind, commentPath, commentReplies, isNumericSpace, modifiedAfterDate, numericId, offsetCursor, pageLimit, plainExcerpt, spaceRef, upstreamCursor, } from "./providers/confluence/operations.js";
872
- export { createConfluenceTools, CONFLUENCE_TOOL_NAMES, } from "./providers/confluence/tools.js";
873
- export { ConfluenceTransport, credentialFromPlaintext as confluenceCredentialFromPlaintext, credentialInstance as confluenceCredentialInstance, } from "./providers/confluence/transport.js";
874
- export { TeamcityProvider, buildTypeAllowed as teamcityBuildTypeAllowed, projectAllowed as teamcityProjectAllowed, } from "./providers/teamcity/index.js";
875
- export { TEAMCITY_CAPABILITIES, TEAMCITY_CAPABILITY_INFO, TEAMCITY_INSTANCE_ID, TEAMCITY_OPERATIONS, TEAMCITY_RESOURCE_KIND, TEAMCITY_STREAM_OPERATIONS, enabledCapabilities as enabledTeamcityCapabilities, teamcityOperationCapability, teamcityOperationMetadata, } from "./providers/teamcity/catalog.js";
876
- export { TEAMCITY_DEFAULTS, DEFAULT_LOG_LINES, resolveTeamCityConfig, teamcityConfigSchema, } from "./providers/teamcity/config.js";
877
- export { artifactBinaryProblem, artifactByteLimit, artifactPath, textArtifact, } from "./providers/teamcity/artifacts.js";
878
- export { LOG_MODES, logLines, logMode, sanitizeLog, selectLogWindow, trimToBytes, } from "./providers/teamcity/logs.js";
879
- export { PRIVATE_CIDRS, canonicalServerUrl, cidrProblem, hostPatternProblem, isIpLiteral, serverUrlProblem, } from "./providers/teamcity/network.js";
880
- export { buildBuildLocator, dimension, joinDimensions, locatorValue, nested, teamCityDate, } from "./providers/teamcity/locators.js";
881
- export { TEAMCITY_HANDLERS, TEAMCITY_LIMITS, TEAMCITY_PROJECTIONS, isoDate, listLimit, } from "./providers/teamcity/operations.js";
882
- export { TeamCityTransport, configuredServer as teamcityConfiguredServer, credentialFromPlaintext as teamcityCredentialFromPlaintext, } from "./providers/teamcity/transport.js";
883
- export { createTeamcityTools, TEAMCITY_TOOL_NAMES, } from "./providers/teamcity/tools.js";
884
- export { JiraProvider } from "./providers/jira/index.js";
885
- export { JIRA_CAPABILITIES, JIRA_CAPABILITY_INFO, JIRA_COMPANION_PATHS, JIRA_OPERATIONS, JIRA_READ_PATHS, enabledCapabilities as enabledJiraCapabilities, jiraOperationCapability, } from "./providers/jira/catalog.js";
886
- export { JIRA_DEFAULTS, SEARCH_PAGE_CAP, jiraConfigSchema, jiraSite, resolveJiraConfig, } from "./providers/jira/config.js";
887
- export { adfToText as jiraAdfToText, bodyText, isAdf, } from "./providers/jira/adf.js";
888
- export { buildJql, commentLimit, commentStart, issueKey as jiraIssueKey, jqlDateValue, jqlLiteral, needsUserLookup, pageToken, projectKey as jiraProjectKey, searchLimit, textClauses, textMatch, } from "./providers/jira/jql.js";
889
- export { ISSUE_INCLUDES, JIRA_HANDLERS, JIRA_PROJECTIONS, SEARCH_FIELDS as JIRA_SEARCH_FIELDS, customFieldValue, issueFields, issueUrl, requestedIncludes, wantsFieldNames, } from "./providers/jira/operations.js";
890
- export { JiraTransport, basicAuthorization, credentialFromPlaintext as jiraCredentialFromPlaintext, credentialSite, } from "./providers/jira/transport.js";
891
- export { createJiraTools, JIRA_TOOL_NAMES } from "./providers/jira/tools.js";
892
- export { TestitProvider } from "./providers/testit/index.js";
893
- export { TESTIT_CAPABILITIES, TESTIT_CAPABILITY_INFO, TESTIT_OPERATIONS, enabledCapabilities as enabledTestitCapabilities, testitOperationCapability, } from "./providers/testit/catalog.js";
894
- export { TESTIT_DEFAULTS, resolveTestitConfig, testitConfigSchema, testitInstance, } from "./providers/testit/config.js";
895
- export { assertReadableSize, attachmentBinaryProblem, attachmentByteLimit, attachmentExtension, attachmentName, } from "./providers/testit/attachments.js";
896
- export { RESULT_OUTCOMES, TESTIT_HANDLERS, TESTIT_LIMITS, TESTIT_PROJECTIONS, TEST_RUN_STATES, WORK_ITEM_ENTITY_TYPES, WORK_ITEM_PRIORITIES, WORK_ITEM_STATES, bounded as testitBounded, capped, contentBlock as testitContentBlock, listLimit as testitListLimit, listOffset as testitListOffset, paged, } from "./providers/testit/operations.js";
897
- export { TestitTransport, credentialFromPlaintext as testitCredentialFromPlaintext, credentialInstance as testitCredentialInstance, } from "./providers/testit/transport.js";
898
- export { createTestitTools, TESTIT_TOOL_NAMES, } from "./providers/testit/tools.js";
899
- export { WeblateProvider } from "./providers/weblate/index.js";
900
- export { WEBLATE_CAPABILITIES, WEBLATE_CAPABILITY_INFO, WEBLATE_OPERATIONS, enabledCapabilities as weblateEnabledCapabilities, weblateOperationCapability, } from "./providers/weblate/catalog.js";
901
- export { WEBLATE_DEFAULTS, resolveWeblateConfig, weblateConfigSchema, weblateInstance, } from "./providers/weblate/config.js";
902
- export { WEBLATE_HANDLERS, WEBLATE_PROJECTIONS, WEBLATE_UNTRUSTED_OPERATIONS, accountFromUsers, componentRef, projectRef as weblateProjectRef, sameOriginUrl, translationRef as weblateTranslationRef, unitState as weblateUnitState, } from "./providers/weblate/operations.js";
903
- export { FAILING_CHECK_CLAUSE, UNIT_STATE_FILTERS, UNIT_TEXT_FIELDS, buildUnitQuery, exactClause as weblateExactClause, quoteQueryValue, stateClause as weblateStateClause, textClause as weblateTextClause, } from "./providers/weblate/query.js";
904
- export { WeblateTransport, credentialFromPlaintext as weblateCredentialFromPlaintext, credentialInstance as weblateCredentialInstance, resultsOf, } from "./providers/weblate/transport.js";
905
- export { createWeblateTools, WEBLATE_TOOL_NAMES, } from "./providers/weblate/tools.js";
906
- export { IntegrationProviderRegistry } from "./providers/registry.js";
907
- export { serviceBoundaryOf, serviceResourceDenied, } from "./providers/shared/service-boundary.js";
908
- export { IntegrationRepository } from "./repository.js";
909
- export { DockerSecretKeyProvider, MemoryKeyProvider, } from "./secrets/key-provider.js";
910
- export { SecretStore } from "./secrets/secret-store.js";
911
- export { createToolKit } from "./tool-kit.js";
912
- export { createIntegrationTools, INTEGRATION_TOOL_NAMES, integrationToolNames, } from "./tools.js";
913
- export { BitrixTransport, credentialFromPlaintext, } from "./providers/bitrix24/transport.js";
863
+ /**
864
+ * The published names of this package are listed once, in `public-api.ts`;
865
+ * re-exported here so the entry module stays the one thing a consumer resolves.
866
+ */
867
+ export * from "./public-api.js";
914
868
  export default QaIntegrations;
915
869
  //# sourceMappingURL=index.js.map