@yadsh/dsh-qa-integrations 0.9.0 → 0.10.1
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/README.md +32 -21
- package/compatibility.json +7 -3
- package/lib/broker.js +172 -17
- package/lib/broker.js.map +1 -1
- package/lib/client/bitrix24.js +8 -6
- package/lib/client/bitrix24.js.map +1 -1
- package/lib/client/card.js +14 -13
- package/lib/client/card.js.map +1 -1
- package/lib/client/confluence.js +11 -7
- package/lib/client/confluence.js.map +1 -1
- package/lib/client/credential-help-note.js +51 -0
- package/lib/client/credential-help-note.js.map +1 -0
- package/lib/client/gitlab.js +8 -6
- package/lib/client/gitlab.js.map +1 -1
- package/lib/client/index.js +38 -32
- package/lib/client/index.js.map +1 -1
- package/lib/client/integrations.js +31 -18
- package/lib/client/integrations.js.map +1 -1
- package/lib/client/jira.js +10 -8
- package/lib/client/jira.js.map +1 -1
- package/lib/client/operator-card.js +93 -534
- package/lib/client/operator-card.js.map +1 -1
- package/lib/client/operator-controls.js +72 -23
- package/lib/client/operator-controls.js.map +1 -1
- package/lib/client/operator-sections/bitrix24.js +22 -0
- package/lib/client/operator-sections/bitrix24.js.map +1 -0
- package/lib/client/operator-sections/confluence.js +27 -0
- package/lib/client/operator-sections/confluence.js.map +1 -0
- package/lib/client/operator-sections/credential-help.js +15 -0
- package/lib/client/operator-sections/credential-help.js.map +1 -0
- package/lib/client/operator-sections/general.js +8 -0
- package/lib/client/operator-sections/general.js.map +1 -0
- package/lib/client/operator-sections/gitlab.js +41 -0
- package/lib/client/operator-sections/gitlab.js.map +1 -0
- package/lib/client/operator-sections/jira.js +25 -0
- package/lib/client/operator-sections/jira.js.map +1 -0
- package/lib/client/operator-sections/provider-section.js +21 -0
- package/lib/client/operator-sections/provider-section.js.map +1 -0
- package/lib/client/operator-sections/service-profiles.js +178 -0
- package/lib/client/operator-sections/service-profiles.js.map +1 -0
- package/lib/client/operator-sections/shared.js +192 -0
- package/lib/client/operator-sections/shared.js.map +1 -0
- package/lib/client/operator-sections/teamcity.js +42 -0
- package/lib/client/operator-sections/teamcity.js.map +1 -0
- package/lib/client/operator-sections/testit.js +35 -0
- package/lib/client/operator-sections/testit.js.map +1 -0
- package/lib/client/operator-sections/weblate.js +32 -0
- package/lib/client/operator-sections/weblate.js.map +1 -0
- package/lib/client/operator-service-reach.js +98 -0
- package/lib/client/operator-service-reach.js.map +1 -0
- package/lib/client/provider-card.js +32 -19
- package/lib/client/provider-card.js.map +1 -1
- package/lib/client/styles.js +52 -15
- package/lib/client/styles.js.map +1 -1
- package/lib/client/teamcity.js +7 -5
- package/lib/client/teamcity.js.map +1 -1
- package/lib/client/testit.js +8 -6
- package/lib/client/testit.js.map +1 -1
- package/lib/client/weblate.js +8 -6
- package/lib/client/weblate.js.map +1 -1
- package/lib/client.js +2838 -1923
- package/lib/client.js.map +1 -1
- package/lib/config.js +64 -17
- package/lib/config.js.map +1 -1
- package/lib/errors.js +5 -0
- package/lib/errors.js.map +1 -1
- package/lib/index.js +176 -222
- package/lib/index.js.map +1 -1
- package/lib/providers/bitrix24/tools.js +7 -2
- package/lib/providers/bitrix24/tools.js.map +1 -1
- package/lib/providers/bitrix24/transport.js +28 -8
- package/lib/providers/bitrix24/transport.js.map +1 -1
- package/lib/providers/confluence/config.js +14 -55
- package/lib/providers/confluence/config.js.map +1 -1
- package/lib/providers/confluence/tools.js +7 -2
- package/lib/providers/confluence/tools.js.map +1 -1
- package/lib/providers/confluence/transport.js +42 -78
- package/lib/providers/confluence/transport.js.map +1 -1
- package/lib/providers/gitlab/config.js +11 -55
- package/lib/providers/gitlab/config.js.map +1 -1
- package/lib/providers/gitlab/operations.js +3 -3
- package/lib/providers/gitlab/operations.js.map +1 -1
- package/lib/providers/gitlab/tools.js +7 -2
- package/lib/providers/gitlab/tools.js.map +1 -1
- package/lib/providers/gitlab/transport.js +33 -65
- package/lib/providers/gitlab/transport.js.map +1 -1
- package/lib/providers/jira/config.js +18 -58
- package/lib/providers/jira/config.js.map +1 -1
- package/lib/providers/jira/jql.js +105 -1
- package/lib/providers/jira/jql.js.map +1 -1
- package/lib/providers/jira/tools.js +68 -2
- package/lib/providers/jira/tools.js.map +1 -1
- package/lib/providers/jira/transport.js +44 -110
- package/lib/providers/jira/transport.js.map +1 -1
- package/lib/providers/kernel/address.js +90 -0
- package/lib/providers/kernel/address.js.map +1 -0
- package/lib/providers/kernel/errors.js +42 -0
- package/lib/providers/kernel/errors.js.map +1 -0
- package/lib/providers/kernel/read-policy.js +276 -0
- package/lib/providers/kernel/read-policy.js.map +1 -0
- package/lib/providers/kernel/token.js +45 -0
- package/lib/providers/kernel/token.js.map +1 -0
- package/lib/providers/shared/service-boundary.js +31 -3
- package/lib/providers/shared/service-boundary.js.map +1 -1
- package/lib/providers/teamcity/tools.js +8 -3
- package/lib/providers/teamcity/tools.js.map +1 -1
- package/lib/providers/teamcity/transport.js +6 -8
- package/lib/providers/teamcity/transport.js.map +1 -1
- package/lib/providers/testit/config.js +12 -57
- package/lib/providers/testit/config.js.map +1 -1
- package/lib/providers/testit/tools.js +7 -2
- package/lib/providers/testit/tools.js.map +1 -1
- package/lib/providers/testit/transport.js +12 -12
- package/lib/providers/testit/transport.js.map +1 -1
- package/lib/providers/weblate/config.js +12 -55
- package/lib/providers/weblate/config.js.map +1 -1
- package/lib/providers/weblate/tools.js +7 -2
- package/lib/providers/weblate/tools.js.map +1 -1
- package/lib/providers/weblate/transport.js +21 -20
- package/lib/providers/weblate/transport.js.map +1 -1
- package/lib/public-api.js +79 -0
- package/lib/public-api.js.map +1 -0
- package/lib/repository.js +65 -16
- package/lib/repository.js.map +1 -1
- package/lib/service-credentials/policy.js +14 -1
- package/lib/service-credentials/policy.js.map +1 -1
- package/lib/tool-kit.js +34 -7
- package/lib/tool-kit.js.map +1 -1
- package/lib/tools.js +49 -24
- package/lib/tools.js.map +1 -1
- package/lib/typert.host.js +455 -351
- package/lib/typert.remote-client.js +450 -336
- package/lib/types/broker.d.ts +65 -1
- package/lib/types/client/card.d.ts +13 -4
- package/lib/types/client/credential-help-note.d.ts +26 -0
- package/lib/types/client/index.d.ts +15 -7
- package/lib/types/client/integrations.d.ts +5 -4
- package/lib/types/client/operator-card.d.ts +56 -4
- package/lib/types/client/operator-controls.d.ts +31 -0
- package/lib/types/client/operator-sections/bitrix24.d.ts +12 -0
- package/lib/types/client/operator-sections/confluence.d.ts +10 -0
- package/lib/types/client/operator-sections/credential-help.d.ts +17 -0
- package/lib/types/client/operator-sections/general.d.ts +11 -0
- package/lib/types/client/operator-sections/gitlab.d.ts +13 -0
- package/lib/types/client/operator-sections/jira.d.ts +11 -0
- package/lib/types/client/operator-sections/provider-section.d.ts +58 -0
- package/lib/types/client/operator-sections/service-profiles.d.ts +13 -0
- package/lib/types/client/operator-sections/shared.d.ts +123 -0
- package/lib/types/client/operator-sections/teamcity.d.ts +11 -0
- package/lib/types/client/operator-sections/testit.d.ts +10 -0
- package/lib/types/client/operator-sections/weblate.d.ts +10 -0
- package/lib/types/client/operator-service-reach.d.ts +76 -0
- package/lib/types/client/provider-card.d.ts +14 -3
- package/lib/types/client/styles.d.ts +28 -4
- package/lib/types/config.d.ts +49 -2
- package/lib/types/errors.d.ts +24 -0
- package/lib/types/index.d.ts +54 -117
- package/lib/types/providers/bitrix24/tools.d.ts +2 -5
- package/lib/types/providers/confluence/tools.d.ts +2 -6
- package/lib/types/providers/confluence/transport.d.ts +0 -6
- package/lib/types/providers/gitlab/config.d.ts +1 -1
- package/lib/types/providers/gitlab/tools.d.ts +2 -6
- package/lib/types/providers/gitlab/transport.d.ts +3 -5
- package/lib/types/providers/jira/tools.d.ts +2 -6
- package/lib/types/providers/jira/transport.d.ts +2 -11
- package/lib/types/providers/kernel/address.d.ts +57 -0
- package/lib/types/providers/kernel/errors.d.ts +34 -0
- package/lib/types/providers/kernel/read-policy.d.ts +118 -0
- package/lib/types/providers/kernel/token.d.ts +25 -0
- package/lib/types/providers/shared/service-boundary.d.ts +15 -0
- package/lib/types/providers/teamcity/tools.d.ts +2 -6
- package/lib/types/providers/teamcity/transport.d.ts +1 -1
- package/lib/types/providers/testit/tools.d.ts +2 -6
- package/lib/types/providers/testit/transport.d.ts +1 -1
- package/lib/types/providers/weblate/tools.d.ts +2 -6
- package/lib/types/public-api.d.ts +80 -0
- package/lib/types/repository.d.ts +62 -2
- package/lib/types/tool-kit.d.ts +27 -1
- package/lib/types/tools.d.ts +26 -9
- package/lib/types/types.d.ts +17 -3
- package/package.json +25 -23
- package/lib/providers/shared/http.js +0 -168
- package/lib/providers/shared/http.js.map +0 -1
- package/lib/types/providers/shared/http.d.ts +0 -60
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The TeamCity section of the operator card: one server address for the whole
|
|
3
|
+
* stand and the network policy that admits it, so the plain-HTTP exception
|
|
4
|
+
* lives inside `network`, not beside the provider switch.
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactElement } from "react";
|
|
7
|
+
import { type OperatorForm } from "./shared.js";
|
|
8
|
+
export declare function TeamcitySection({ form, }: {
|
|
9
|
+
readonly form: OperatorForm;
|
|
10
|
+
}): ReactElement;
|
|
11
|
+
//# sourceMappingURL=teamcity.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Test IT section of the operator card: the installations the deployment
|
|
3
|
+
* reads and the budgets of one list page or attachment read.
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactElement } from "react";
|
|
6
|
+
import { type OperatorForm } from "./shared.js";
|
|
7
|
+
export declare function TestitSection({ form, }: {
|
|
8
|
+
readonly form: OperatorForm;
|
|
9
|
+
}): ReactElement;
|
|
10
|
+
//# sourceMappingURL=testit.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Weblate section of the operator card: the instances the deployment reads
|
|
3
|
+
* and the budgets of one translated-string page.
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactElement } from "react";
|
|
6
|
+
import { type OperatorForm } from "./shared.js";
|
|
7
|
+
export declare function WeblateSection({ form, }: {
|
|
8
|
+
readonly form: OperatorForm;
|
|
9
|
+
}): ReactElement;
|
|
10
|
+
//# sourceMappingURL=weblate.d.ts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How far the deployment's managed service credential reaches each capability
|
|
3
|
+
* switch of the operator card.
|
|
4
|
+
*
|
|
5
|
+
* A switch answers "does the agent see this area of the integration", and the
|
|
6
|
+
* managed credential honours it only for the areas whose answer is not text a
|
|
7
|
+
* build or another person produced. Those readings stay personal while the
|
|
8
|
+
* switch stays on, which is exactly the gap issue #285 is about: the operator
|
|
9
|
+
* ticks «Логи сборок: чтение», the stand really does grant the capability, and
|
|
10
|
+
* the user on a service token is still refused. Nothing here decides a call —
|
|
11
|
+
* the provider catalogs do — this table only says out loud what they already
|
|
12
|
+
* enforce, so the operator sees it next to the switch instead of in a refusal.
|
|
13
|
+
*
|
|
14
|
+
* The client bundle cannot reach into a provider catalog, so the table is
|
|
15
|
+
* written by hand; `tests/client/operator-service-reach.test.ts` recomputes it from
|
|
16
|
+
* every catalog and fails the moment the two disagree.
|
|
17
|
+
*/
|
|
18
|
+
/** Whether a switch escapes the service credential whole or in part. */
|
|
19
|
+
export type ServiceReach = "whole" | "part";
|
|
20
|
+
/**
|
|
21
|
+
* What the operator card says per reach, in the words the user's own card uses
|
|
22
|
+
* for the same state («Требуется личный аккаунт»). `part` covers a switch whose
|
|
23
|
+
* area mixes service-safe reads with personal ones — TeamCity's artifacts are
|
|
24
|
+
* the plain example, where the listing answers and the file body does not.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SERVICE_REACH_NOTE: Readonly<Record<ServiceReach, string>>;
|
|
27
|
+
/**
|
|
28
|
+
* The switches the managed credential does not reach, per provider settings
|
|
29
|
+
* slice. A provider that reaches everything its switches offer is absent.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SERVICE_REACH: Readonly<{
|
|
32
|
+
bitrix24: Readonly<{
|
|
33
|
+
crmRead: "part";
|
|
34
|
+
chatRead: "whole";
|
|
35
|
+
openlinesRead: "whole";
|
|
36
|
+
userRead: "part";
|
|
37
|
+
calendarRead: "whole";
|
|
38
|
+
diskRead: "whole";
|
|
39
|
+
}>;
|
|
40
|
+
gitlab: Readonly<{
|
|
41
|
+
ciLogsRead: "whole";
|
|
42
|
+
}>;
|
|
43
|
+
jira: Readonly<{
|
|
44
|
+
attachmentsRead: "whole";
|
|
45
|
+
}>;
|
|
46
|
+
teamcity: Readonly<{
|
|
47
|
+
logsRead: "whole";
|
|
48
|
+
artifactsRead: "part";
|
|
49
|
+
}>;
|
|
50
|
+
testit: Readonly<{
|
|
51
|
+
attachmentsRead: "part";
|
|
52
|
+
}>;
|
|
53
|
+
}>;
|
|
54
|
+
/** Providers with at least one switch to annotate. */
|
|
55
|
+
export type ServiceReachProvider = keyof typeof SERVICE_REACH;
|
|
56
|
+
/** Switch names one provider's row addresses. */
|
|
57
|
+
export type ServiceReachFlag<P extends ServiceReachProvider> = keyof (typeof SERVICE_REACH)[P] & string;
|
|
58
|
+
/**
|
|
59
|
+
* The note one capability switch carries, and only while the deployment hands
|
|
60
|
+
* out managed credentials at all: with the slice off nobody can be refused this
|
|
61
|
+
* way, and the note would be noise on a switch that never meets a service token.
|
|
62
|
+
*
|
|
63
|
+
* The switch is a key of that provider's row, not a free string: a name the
|
|
64
|
+
* table does not hold is a compile error here rather than a note that quietly
|
|
65
|
+
* stopped showing.
|
|
66
|
+
*/
|
|
67
|
+
export declare function serviceReachNote<P extends ServiceReachProvider>(provider: P, flag: ServiceReachFlag<P>, serviceSliceEnabled: boolean): string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The same note addressed by a toggle's configuration path — `["teamcity",
|
|
70
|
+
* "logsRead"]` — which is how the card reaches it. The card holds no copy of a
|
|
71
|
+
* flag name to mistype: one annotation point reads the table for every switch it
|
|
72
|
+
* renders, so a row this module gains or loses shows on the card by itself, and
|
|
73
|
+
* `tests/client/operator-card.test.tsx` counts the rendered notes against this table.
|
|
74
|
+
*/
|
|
75
|
+
export declare function serviceReachNoteForPath(path: readonly string[], serviceSliceEnabled: boolean): string | undefined;
|
|
76
|
+
//# sourceMappingURL=operator-service-reach.d.ts.map
|
|
@@ -31,6 +31,11 @@ export interface ProviderCardState<Extra> {
|
|
|
31
31
|
readonly service: {
|
|
32
32
|
readonly label: string;
|
|
33
33
|
} | null;
|
|
34
|
+
/**
|
|
35
|
+
* The zone every test hook of this card is named from, so a provider section
|
|
36
|
+
* labels its own knobs the same way the skeleton labels theirs.
|
|
37
|
+
*/
|
|
38
|
+
readonly testIdZone: string;
|
|
34
39
|
/** Whether the connect form asks for that credential instead of a token. */
|
|
35
40
|
readonly useService: boolean;
|
|
36
41
|
setUseService(value: boolean): void;
|
|
@@ -69,6 +74,11 @@ export interface ProviderCardCalls<Extra> {
|
|
|
69
74
|
setBoundary?(token: string, selection: IntegrationServiceBoundary | null): Promise<RemoteResult<IntegrationSummary>>;
|
|
70
75
|
}
|
|
71
76
|
export interface ProviderCardSpec<Extra> {
|
|
77
|
+
/**
|
|
78
|
+
* The provider key the Host declares. It names the test hooks of this card,
|
|
79
|
+
* so a new provider inherits them instead of naming them again.
|
|
80
|
+
*/
|
|
81
|
+
readonly provider: string;
|
|
72
82
|
readonly title: string;
|
|
73
83
|
/** Portal line while nothing is connected. */
|
|
74
84
|
readonly portalFallback: string;
|
|
@@ -96,9 +106,10 @@ export interface ProviderCardSpec<Extra> {
|
|
|
96
106
|
readonly serviceDefault?: (token: string) => Promise<boolean>;
|
|
97
107
|
}
|
|
98
108
|
/**
|
|
99
|
-
* The managed-credential block of a connect form: one checkbox,
|
|
100
|
-
*
|
|
101
|
-
*
|
|
109
|
+
* The managed-credential block of a connect form: one checkbox, what the mode
|
|
110
|
+
* does and does not give, and — while the mode is on — the action that names
|
|
111
|
+
* the other way to connect. Rendered by the providers a deployment may manage a
|
|
112
|
+
* credential for, using the instance the form selected.
|
|
102
113
|
*/
|
|
103
114
|
export declare function serviceConnectOption<Extra>(state: ProviderCardState<Extra>): ReactNode;
|
|
104
115
|
export declare function createProviderCard<Extra>(spec: ProviderCardSpec<Extra>): ({ token, help }: ProviderCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* The bundle stylesheet.
|
|
3
|
+
*
|
|
4
|
+
* Two kinds of rule live here and both are this plugin's own copy on purpose.
|
|
5
|
+
*
|
|
6
|
+
* The credential-help note's rules are this bundle's copy of the block
|
|
7
|
+
* `@yadsh/dsh-plugin-kit` ships for a card that owns its shell, retargeted ring by
|
|
8
|
+
* ring rather than dropped in as it stands: on the Plugins panel a hard-coded
|
|
9
|
+
* outline loses to the Host's focus.css under pointer modality (specificity 0-3-2
|
|
10
|
+
* against 0-2-0). The block is renamed to `dsh-qa-integrations-help*` for the same
|
|
11
|
+
* reason the rings are retargeted — the kit's `.dsh-credential-help*` selectors are
|
|
12
|
+
* public, so a copy wearing them would inject rules that fight the kit's own sheet
|
|
13
|
+
* for the same elements at equal specificity, settled only by the order two
|
|
14
|
+
* bundles happen to append their `<style>` tags. This is the sheet the note
|
|
15
|
+
* component in credential-help-note.tsx dresses; what the note *says* stays the
|
|
16
|
+
* kit's (`credentialHelpView`), and a test keeps the two renderings equal in
|
|
17
|
+
* content.
|
|
18
|
+
*
|
|
19
|
+
* The card shell is not here at all: on the row and bundle seats the page draws
|
|
20
|
+
* the frame, the title and the expand control, so a shell class or a 12 px radius
|
|
21
|
+
* of ours would be a second card inside the Host's one
|
|
22
|
+
* (AGENTS.md, "Two kinds of card: who owns the chrome").
|
|
23
|
+
*
|
|
24
|
+
* Every ring below is the Host's token pair written out in full, with a fallback
|
|
25
|
+
* on each half — the width as well as the colour, because a var() that resolves
|
|
26
|
+
* to nothing invalidates the whole outline shorthand and the ring disappears
|
|
27
|
+
* instead of degrading. Nothing here raises specificity to win a ring fight; the
|
|
28
|
+
* Host keeps that, and scripts/verify-package.mjs reads these declarations the
|
|
29
|
+
* way the card-contract gate does, so the value stays a literal in one string.
|
|
6
30
|
*/
|
|
7
31
|
export declare const styles: string;
|
|
8
32
|
//# sourceMappingURL=styles.d.ts.map
|
package/lib/types/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Volatile } from "@deepseek-ai/cordis";
|
|
1
2
|
import z from "@deepseek-ai/schemastery";
|
|
2
3
|
import type { CredentialHelpOverride } from "@yadsh/dsh-plugin-kit";
|
|
3
4
|
import { type Bitrix24Flags } from "./providers/bitrix24/config.js";
|
|
@@ -45,6 +46,16 @@ export interface QaIntegrationsConfig {
|
|
|
45
46
|
*/
|
|
46
47
|
readonly managedServiceCredentials?: ManagedServiceCredentialsInput;
|
|
47
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* One read of a live entry's configuration. Every key of {@link
|
|
51
|
+
* QaIntegrationsConfig} is present, and a reference that holds no value reads
|
|
52
|
+
* as `undefined` — the resolvers already treat absence and `undefined` alike,
|
|
53
|
+
* and a snapshot cannot tell them apart because a volatile reference carries
|
|
54
|
+
* only the committed value.
|
|
55
|
+
*/
|
|
56
|
+
export type QaIntegrationsSnapshot = {
|
|
57
|
+
readonly [Key in keyof QaIntegrationsConfig]?: QaIntegrationsConfig[Key] | undefined;
|
|
58
|
+
};
|
|
48
59
|
export interface ResolvedQaIntegrationsConfig {
|
|
49
60
|
readonly enabled: boolean;
|
|
50
61
|
readonly dataPath: string;
|
|
@@ -64,6 +75,42 @@ export interface ResolvedQaIntegrationsConfig {
|
|
|
64
75
|
readonly weblate: WeblateFlags;
|
|
65
76
|
readonly managedServiceCredentials: ManagedServiceCredentialsConfig;
|
|
66
77
|
}
|
|
67
|
-
|
|
68
|
-
|
|
78
|
+
/**
|
|
79
|
+
* The configuration as the running plugin receives it. On a 0.1.7 host a
|
|
80
|
+
* field the operator card edits is a stable reference rather than its value,
|
|
81
|
+
* so the service reads it once per operation and never waits for a remount;
|
|
82
|
+
* `QaIntegrationsConfig` above stays the plain data shape the resolvers and
|
|
83
|
+
* the card work with. Every field is volatile because every knob the
|
|
84
|
+
* resolvers accept is reachable from this card — the boot-path files among
|
|
85
|
+
* them, whose edit the Host accepts and applies on the next restart.
|
|
86
|
+
*/
|
|
87
|
+
export interface LiveQaIntegrationsConfig {
|
|
88
|
+
readonly enabled: Volatile<boolean>;
|
|
89
|
+
readonly dataPath: Volatile<string | undefined>;
|
|
90
|
+
readonly auditRetentionDays: Volatile<number>;
|
|
91
|
+
readonly masterKeyPath: Volatile<string>;
|
|
92
|
+
readonly masterKeyVersion: Volatile<number>;
|
|
93
|
+
readonly timeoutMs: Volatile<number>;
|
|
94
|
+
readonly maxResponseBytes: Volatile<number>;
|
|
95
|
+
readonly allowedPortalSuffixes: Volatile<string[] | undefined>;
|
|
96
|
+
readonly credentialHelp: Volatile<Readonly<Record<string, CredentialHelpOverride>> | undefined>;
|
|
97
|
+
readonly bitrix24: Volatile<Partial<Bitrix24Flags> | undefined>;
|
|
98
|
+
readonly confluence: Volatile<ConfluenceConfigInput | undefined>;
|
|
99
|
+
readonly gitlab: Volatile<Partial<GitlabFlags> | undefined>;
|
|
100
|
+
readonly teamcity: Volatile<TeamCityConfigInput | undefined>;
|
|
101
|
+
readonly jira: Volatile<JiraConfigInput | undefined>;
|
|
102
|
+
readonly testit: Volatile<Partial<TestitFlags> | undefined>;
|
|
103
|
+
readonly weblate: Volatile<Partial<WeblateFlags> | undefined>;
|
|
104
|
+
readonly managedServiceCredentials: Volatile<ManagedServiceCredentialsInput | undefined>;
|
|
105
|
+
}
|
|
106
|
+
export declare const ConfigSchema: z<QaIntegrationsConfig, LiveQaIntegrationsConfig>;
|
|
107
|
+
/**
|
|
108
|
+
* Take the live configuration as one plain value, for a single operation.
|
|
109
|
+
*
|
|
110
|
+
* Each read of a volatile field sees the value committed since the last one,
|
|
111
|
+
* so a caller snapshots once per operation instead of destructuring at mount:
|
|
112
|
+
* a snapshot kept across operations would freeze an operator's edit out.
|
|
113
|
+
*/
|
|
114
|
+
export declare function snapshotConfig(config: LiveQaIntegrationsConfig): QaIntegrationsSnapshot;
|
|
115
|
+
export declare function resolveConfig(input?: QaIntegrationsSnapshot): ResolvedQaIntegrationsConfig;
|
|
69
116
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/types/errors.d.ts
CHANGED
|
@@ -25,9 +25,33 @@ export type IntegrationErrorCode = "IntegrationNotConnected" | "CredentialExpire
|
|
|
25
25
|
* `publicIntegrationError` is what turns them into a client-visible reason.
|
|
26
26
|
*/
|
|
27
27
|
| "ServiceCredentialUnavailable" | "ServiceCredentialDisabled" | "ServiceCredentialInvalid" | "ServiceCredentialUnsafeScope" | "ServiceResourceNotAllowed" | "OperationNotAllowedWithServiceCredential" | "SensitiveReadRequiresPersonalCredential" | "PersonalCredentialRequired";
|
|
28
|
+
/**
|
|
29
|
+
* What a transport spent on the failure it handed back: the deadline one attempt
|
|
30
|
+
* was held to, how many further attempts the deployment allows, and how many
|
|
31
|
+
* attempts the call actually cost.
|
|
32
|
+
*
|
|
33
|
+
* The loop that made the attempts is the only party that knows these three, and
|
|
34
|
+
* the party that reports the failure to the operator — the broker, which knows
|
|
35
|
+
* the provider and the operation — has no view of them. So the loop writes them
|
|
36
|
+
* on the error it gives up with and the report reads them off. Numbers only: a
|
|
37
|
+
* budget names no address, no query, no body and no credential.
|
|
38
|
+
*/
|
|
39
|
+
export interface TransportBudget {
|
|
40
|
+
/** The per-attempt deadline, in milliseconds. */
|
|
41
|
+
readonly timeoutMs: number;
|
|
42
|
+
/** Attempts the deployment allows after the first one. */
|
|
43
|
+
readonly retries: number;
|
|
44
|
+
/** Attempts spent, the first included. */
|
|
45
|
+
readonly attempts: number;
|
|
46
|
+
}
|
|
28
47
|
/** Safe domain error: message and code never include upstream bodies or secrets. */
|
|
29
48
|
export declare class IntegrationError extends Error {
|
|
30
49
|
readonly code: IntegrationErrorCode;
|
|
50
|
+
/**
|
|
51
|
+
* Set by a transport on the failure it refused a call with; absent on every
|
|
52
|
+
* error that never reached one.
|
|
53
|
+
*/
|
|
54
|
+
budget?: TransportBudget;
|
|
31
55
|
constructor(code: IntegrationErrorCode, message: string, options?: ErrorOptions);
|
|
32
56
|
}
|
|
33
57
|
export declare function publicIntegrationError(error: unknown): Error;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import type { Context } from "@deepseek-ai/cordis";
|
|
|
2
2
|
import { TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
|
|
3
3
|
import type { QaSurface } from "@yadsh/dsh-qa-surface";
|
|
4
4
|
import { IntegrationBroker } from "./broker.js";
|
|
5
|
-
import { type
|
|
5
|
+
import { type LiveQaIntegrationsConfig } from "./config.js";
|
|
6
6
|
import type { CredentialSource, IntegrationInstanceSummary, ServiceCredentialHealth, IntegrationProviderId, IntegrationProviderSummary, IntegrationServiceBoundary, IntegrationSummary, PolicyPatch } from "./types.js";
|
|
7
7
|
export declare const name = "dsh-qa-integrations";
|
|
8
8
|
export declare const inject: readonly ["qaSurface", "tools"];
|
|
9
|
-
export declare const Config: import("@deepseek-ai/schemastery").default<QaIntegrationsConfig>;
|
|
9
|
+
export declare const Config: import("@deepseek-ai/schemastery").default<import("./config.js").QaIntegrationsConfig, LiveQaIntegrationsConfig>;
|
|
10
10
|
type IntegrationsContext = Context & {
|
|
11
11
|
readonly qaSurface: QaSurface;
|
|
12
12
|
};
|
|
@@ -18,7 +18,7 @@ declare module "@deepseek-ai/cordis" {
|
|
|
18
18
|
/** Host remote, broker owner, and registration point for read-only tools. */
|
|
19
19
|
export declare class QaIntegrations extends TypertRemoteService {
|
|
20
20
|
static inject: readonly ["qaSurface", "tools"];
|
|
21
|
-
static Config: import("@deepseek-ai/schemastery").default<QaIntegrationsConfig>;
|
|
21
|
+
static Config: import("@deepseek-ai/schemastery").default<import("./config.js").QaIntegrationsConfig, LiveQaIntegrationsConfig>;
|
|
22
22
|
readonly broker: IntegrationBroker;
|
|
23
23
|
private readonly logger;
|
|
24
24
|
private readonly owner;
|
|
@@ -43,13 +43,13 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
43
43
|
/** The Bitrix24 portals this deployment allows, in config order. */
|
|
44
44
|
private configuredBitrix24Portals;
|
|
45
45
|
/**
|
|
46
|
-
* The
|
|
47
|
-
* settings
|
|
48
|
-
*
|
|
46
|
+
* The configuration source is the plugin's own profile entry: on a 0.1.7
|
|
47
|
+
* host the entry id *is* the settings namespace, and a field the operator
|
|
48
|
+
* card may edit is a volatile node in `ConfigSchema` rather than a section
|
|
49
|
+
* installed beside it. A composition without a settings surface keeps the
|
|
50
|
+
* same source, so nothing here depends on the surface being reachable.
|
|
49
51
|
*/
|
|
50
|
-
private readonly
|
|
51
|
-
/** Where the live configuration is read from; the settings namespace swaps this. */
|
|
52
|
-
private configSource;
|
|
52
|
+
private readonly liveConfig;
|
|
53
53
|
/**
|
|
54
54
|
* The connection store and its key live for the whole process: connections
|
|
55
55
|
* and wrapped secrets belong to the boot path, and only derivations of the
|
|
@@ -64,7 +64,7 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
64
64
|
private toolRemovers;
|
|
65
65
|
/** The mounted tool-name list; an unchanged signature never re-registers. */
|
|
66
66
|
private toolsKey;
|
|
67
|
-
constructor(ctx: IntegrationsContext, rawConfig
|
|
67
|
+
constructor(ctx: IntegrationsContext, rawConfig: LiveQaIntegrationsConfig);
|
|
68
68
|
/**
|
|
69
69
|
* Rebuild every configuration-derived surface: the provider registry, the
|
|
70
70
|
* deployment instance lists, the service-credential registry and the tool
|
|
@@ -74,24 +74,29 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
74
74
|
*/
|
|
75
75
|
private applyConfig;
|
|
76
76
|
/**
|
|
77
|
-
* Mount the tools the configuration asks for. The mounted
|
|
78
|
-
* when the plugin
|
|
79
|
-
* edit never churns the Host tool registry.
|
|
77
|
+
* Mount the tools the configuration asks for. The mounted surface changes only
|
|
78
|
+
* when the plugin, its one write capability, or the managed service credential
|
|
79
|
+
* flips, so an unrelated card edit never churns the Host tool registry.
|
|
80
80
|
*/
|
|
81
81
|
private syncTools;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
83
|
+
* Keep the running service in step with the settings namespace this entry
|
|
84
|
+
* owns. There is nothing to install: the namespace *is* the profile entry,
|
|
85
|
+
* and the Host serves whatever `ConfigSchema` marks `.volatile()`. Two things
|
|
86
|
+
* are left to do — decline the generated page the Host would otherwise draw
|
|
87
|
+
* for it, because this plugin ships its own operator card, and re-apply when
|
|
88
|
+
* a committed edit lands on the live references. The read is structural and
|
|
89
|
+
* optional: a Host without a mounted settings provider keeps this plugin
|
|
90
|
+
* fully working.
|
|
88
91
|
*/
|
|
89
|
-
private
|
|
92
|
+
private watchSettings;
|
|
90
93
|
/**
|
|
91
94
|
* Re-resolve the source after a committed settings change and rebuild what
|
|
92
|
-
* derives from it.
|
|
93
|
-
*
|
|
94
|
-
* that
|
|
95
|
+
* derives from it. The Host validates an edit against `ConfigSchema` before
|
|
96
|
+
* it persists, so the resolvers here only refuse what a schema node cannot
|
|
97
|
+
* express — a TeamCity host pattern that matches nothing, an instance list
|
|
98
|
+
* with a duplicate id. Such a value keeps the running state and is logged
|
|
99
|
+
* rather than half-applied.
|
|
95
100
|
*/
|
|
96
101
|
private reapply;
|
|
97
102
|
describe(): {
|
|
@@ -111,11 +116,6 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
111
116
|
testBitrix24(token: string): Promise<IntegrationSummary>;
|
|
112
117
|
patchBitrix24Policy(token: string, patch: PolicyPatch): IntegrationSummary;
|
|
113
118
|
disconnectBitrix24(token: string): boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Instances this deployment allows. The connect form picks from this list and
|
|
116
|
-
* never takes a hostname, which is what keeps the broker from being pointed at
|
|
117
|
-
* an origin the operator did not configure.
|
|
118
|
-
*/
|
|
119
119
|
gitlabInstances(token: string): readonly IntegrationInstanceSummary[];
|
|
120
120
|
getGitlab(token: string): IntegrationSummary;
|
|
121
121
|
putGitlabCredential(token: string, input: {
|
|
@@ -127,11 +127,6 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
127
127
|
testGitlab(token: string): Promise<IntegrationSummary>;
|
|
128
128
|
patchGitlabPolicy(token: string, patch: PolicyPatch): IntegrationSummary;
|
|
129
129
|
disconnectGitlab(token: string): boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Sites this deployment allows. The connect form picks from this list and
|
|
132
|
-
* never takes a hostname, which is what keeps the broker from being pointed
|
|
133
|
-
* at an origin the operator did not configure.
|
|
134
|
-
*/
|
|
135
130
|
confluenceSites(token: string): readonly IntegrationInstanceSummary[];
|
|
136
131
|
getConfluence(token: string): IntegrationSummary;
|
|
137
132
|
/**
|
|
@@ -175,12 +170,6 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
175
170
|
testTeamcity(token: string): Promise<IntegrationSummary>;
|
|
176
171
|
patchTeamcityPolicy(token: string, patch: PolicyPatch): IntegrationSummary;
|
|
177
172
|
disconnectTeamcity(token: string): boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Sites this deployment allows. Like the GitLab instance list, the connect
|
|
180
|
-
* form picks from it and never takes a hostname: the Atlassian site a token is
|
|
181
|
-
* spent against is operator configuration, and the e-mail the form collects
|
|
182
|
-
* next to the token is an identity, not a secret.
|
|
183
|
-
*/
|
|
184
173
|
jiraSites(token: string): readonly IntegrationInstanceSummary[];
|
|
185
174
|
getJira(token: string): IntegrationSummary;
|
|
186
175
|
putJiraCredential(token: string, input: {
|
|
@@ -197,11 +186,6 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
197
186
|
testJira(token: string): Promise<IntegrationSummary>;
|
|
198
187
|
patchJiraPolicy(token: string, patch: PolicyPatch): IntegrationSummary;
|
|
199
188
|
disconnectJira(token: string): boolean;
|
|
200
|
-
/**
|
|
201
|
-
* Installations this deployment allows. Like the GitLab instance list, the
|
|
202
|
-
* connect form picks from it and never takes a hostname: the Test IT address a
|
|
203
|
-
* token is spent against is operator configuration.
|
|
204
|
-
*/
|
|
205
189
|
testitInstances(token: string): readonly IntegrationInstanceSummary[];
|
|
206
190
|
getTestit(token: string): IntegrationSummary;
|
|
207
191
|
putTestitCredential(token: string, input: {
|
|
@@ -213,11 +197,6 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
213
197
|
testTestit(token: string): Promise<IntegrationSummary>;
|
|
214
198
|
patchTestitPolicy(token: string, patch: PolicyPatch): IntegrationSummary;
|
|
215
199
|
disconnectTestit(token: string): boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Instances this deployment allows. The connect form picks from this list and
|
|
218
|
-
* never takes a hostname, which is what keeps the broker from being pointed at
|
|
219
|
-
* an origin the operator did not configure.
|
|
220
|
-
*/
|
|
221
200
|
weblateInstances(token: string): readonly IntegrationInstanceSummary[];
|
|
222
201
|
getWeblate(token: string): IntegrationSummary;
|
|
223
202
|
putWeblateCredential(token: string, input: {
|
|
@@ -266,78 +245,36 @@ export declare class QaIntegrations extends TypertRemoteService {
|
|
|
266
245
|
}): Promise<ServiceCredentialHealth | null>;
|
|
267
246
|
/** The safe alias of the managed credential bound to one instance, if any. */
|
|
268
247
|
private serviceBinding;
|
|
248
|
+
/**
|
|
249
|
+
* The six calls one provider's connect card makes, and the fields that card
|
|
250
|
+
* spends. What a provider owns is the address list it offers and the fields
|
|
251
|
+
* its form collects; the questions the card asks the broker — what is bound,
|
|
252
|
+
* does the credential still reach the upstream, narrow its policy, let it go —
|
|
253
|
+
* are the same seven times over, and a copy per provider is where the seventh
|
|
254
|
+
* starts answering one of them differently.
|
|
255
|
+
*/
|
|
256
|
+
private summaryOf;
|
|
257
|
+
private validateOf;
|
|
258
|
+
private patchPolicyOf;
|
|
259
|
+
private disconnectOf;
|
|
260
|
+
/**
|
|
261
|
+
* The endpoints this deployment declared for one provider. A connect form
|
|
262
|
+
* picks from this list and never takes a hostname, which is what keeps the
|
|
263
|
+
* broker from being pointed at an origin the operator did not configure.
|
|
264
|
+
* TeamCity answers with the single server or `null`, so the row shape is the
|
|
265
|
+
* caller's.
|
|
266
|
+
*/
|
|
267
|
+
private endpointsOf;
|
|
268
|
+
/** Spend one connect form's fields on a provider's credential. */
|
|
269
|
+
private putCredentialOf;
|
|
269
270
|
private requirePrincipal;
|
|
270
271
|
private run;
|
|
271
272
|
private runAsync;
|
|
272
273
|
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
export
|
|
278
|
-
export { operationCapabilityServiceState } from "./service-credentials/state.js";
|
|
279
|
-
export { profilePolicyRevision } from "./service-credentials/config.js";
|
|
280
|
-
export { CREDENTIAL_SOURCES, isCredentialSource, UNCLASSIFIED_OPERATION, type CredentialSource as ManagedCredentialSource, type DataSensitivity, type OperationEffect, type OperationSecurityMetadata, type OperationServiceDecision, type ResolvedCredentialContext, type ResolvedServiceCredential, type SafeExternalIdentity, type ServiceCredentialHealth, type ServiceCredentialProfile, type ServiceCredentialStatus, type ServiceResourceBoundary, } from "./service-credentials/types.js";
|
|
281
|
-
export { IntegrationError } from "./errors.js";
|
|
282
|
-
export { BITRIX_CAPABILITIES, BITRIX_OPERATIONS, BITRIX24_CAPABILITY_INFO, bitrix24OperationCapability, enabledCapabilities, type Bitrix24Capability, type Bitrix24CapabilityDefinition, type BitrixOperationDefinition, } from "./providers/bitrix24/catalog.js";
|
|
283
|
-
export { BITRIX24_DEFAULTS, bitrix24ConfigSchema, resolveBitrix24Config, type Bitrix24Flags, } from "./providers/bitrix24/config.js";
|
|
284
|
-
export { Bitrix24Provider, parseBitrixWebhook, } from "./providers/bitrix24/index.js";
|
|
285
|
-
export { BITRIX_HANDLERS, BITRIX_PROJECTIONS, } from "./providers/bitrix24/operations.js";
|
|
286
|
-
export { createBitrix24Tools, BITRIX24_TOOL_NAMES, } from "./providers/bitrix24/tools.js";
|
|
287
|
-
export { GitlabProvider, groupAllowed as gitlabGroupAllowed, projectAllowed as gitlabProjectAllowed, } from "./providers/gitlab/index.js";
|
|
288
|
-
export { GITLAB_CAPABILITIES, GITLAB_CAPABILITY_INFO, GITLAB_CI_SPLIT_CAPABILITIES, GITLAB_LEGACY_CI_CAPABILITY, GITLAB_OPERATIONS, GITLAB_RESOURCE_KIND, capabilitiesForScopes, gitlabOperationCapability, gitlabOperationMetadata, type GitlabCapability, type GitlabCapabilityDefinition, type GitlabOperationDefinition, } from "./providers/gitlab/catalog.js";
|
|
289
|
-
export { GITLAB_DEFAULTS, gitlabConfigSchema, resolveGitlabConfig, type GitlabConfigInput, type GitlabFlags, type GitlabInstance, } from "./providers/gitlab/config.js";
|
|
290
|
-
export { createGitlabTools, GITLAB_TOOL_NAMES, } from "./providers/gitlab/tools.js";
|
|
291
|
-
export { GitlabTransport, credentialFromPlaintext as gitlabCredentialFromPlaintext, credentialInstance, type GitlabCredential, } from "./providers/gitlab/transport.js";
|
|
292
|
-
export { GITLAB_HANDLERS, GITLAB_PROJECTIONS, } from "./providers/gitlab/operations.js";
|
|
293
|
-
export { ConfluenceProvider } from "./providers/confluence/index.js";
|
|
294
|
-
export { adfToText as confluenceAdfToText, textBudget, } from "./providers/confluence/adf.js";
|
|
295
|
-
export { CONFLUENCE_CAPABILITIES, CONFLUENCE_CAPABILITY_INFO, CONFLUENCE_OPERATIONS, confluenceOperationCapability, type ConfluenceCapability, type ConfluenceCapabilityDefinition, type ConfluenceOperationDefinition, } from "./providers/confluence/catalog.js";
|
|
296
|
-
export { CONFLUENCE_DEFAULTS, confluenceConfigSchema, resolveConfluenceConfig, spaceAllowed, type ConfluenceFlags, type ConfluenceInstance, } from "./providers/confluence/config.js";
|
|
297
|
-
export { buildCql, cqlLiteral, CONTENT_TYPES, ORDER_BY, type ConfluenceOrder, type ConfluenceSearchFilter, } from "./providers/confluence/cql.js";
|
|
298
|
-
export { COMMENT_KINDS, CONFLUENCE_HANDLERS, CONFLUENCE_PROJECTIONS, DEFAULT_LIMIT, bodyLimit, commentChildrenPath, commentCollections, commentKind, commentPath, commentReplies, isNumericSpace, modifiedAfterDate, numericId, offsetCursor, pageLimit, plainExcerpt, spaceRef, upstreamCursor, type ConfluenceCommentKind, type ConfluenceProjection, type ConfluenceProjectionContext, type ConfluenceRequest, } from "./providers/confluence/operations.js";
|
|
299
|
-
export { createConfluenceTools, CONFLUENCE_TOOL_NAMES, } from "./providers/confluence/tools.js";
|
|
300
|
-
export { ConfluenceTransport, credentialFromPlaintext as confluenceCredentialFromPlaintext, credentialInstance as confluenceCredentialInstance, type ConfluenceCredential, } from "./providers/confluence/transport.js";
|
|
301
|
-
export { TeamcityProvider, buildTypeAllowed as teamcityBuildTypeAllowed, projectAllowed as teamcityProjectAllowed, } from "./providers/teamcity/index.js";
|
|
302
|
-
export { TEAMCITY_CAPABILITIES, TEAMCITY_CAPABILITY_INFO, TEAMCITY_INSTANCE_ID, TEAMCITY_OPERATIONS, TEAMCITY_RESOURCE_KIND, TEAMCITY_STREAM_OPERATIONS, enabledCapabilities as enabledTeamcityCapabilities, teamcityOperationCapability, teamcityOperationMetadata, type TeamCityCapability, type TeamCityCapabilityDefinition, type TeamCityOperationDefinition, } from "./providers/teamcity/catalog.js";
|
|
303
|
-
export { TEAMCITY_DEFAULTS, DEFAULT_LOG_LINES, resolveTeamCityConfig, teamcityConfigSchema, type TeamCityConfigInput, type TeamCityFlags, } from "./providers/teamcity/config.js";
|
|
304
|
-
export { artifactBinaryProblem, artifactByteLimit, artifactPath, textArtifact, type ArtifactPath, } from "./providers/teamcity/artifacts.js";
|
|
305
|
-
export { LOG_MODES, logLines, logMode, sanitizeLog, selectLogWindow, trimToBytes, type LogMode, type LogWindow, } from "./providers/teamcity/logs.js";
|
|
306
|
-
export { PRIVATE_CIDRS, canonicalServerUrl, cidrProblem, hostPatternProblem, isIpLiteral, serverUrlProblem, type TeamCityNetworkMode, type TeamCityNetworkPolicy, } from "./providers/teamcity/network.js";
|
|
307
|
-
export { buildBuildLocator, dimension, joinDimensions, locatorValue, nested, teamCityDate, type BuildLocatorInput, } from "./providers/teamcity/locators.js";
|
|
308
|
-
export { TEAMCITY_HANDLERS, TEAMCITY_LIMITS, TEAMCITY_PROJECTIONS, isoDate, listLimit, type TeamCityProjection, type TeamCityRequest, } from "./providers/teamcity/operations.js";
|
|
309
|
-
export { TeamCityTransport, configuredServer as teamcityConfiguredServer, credentialFromPlaintext as teamcityCredentialFromPlaintext, type TeamCityCredential, } from "./providers/teamcity/transport.js";
|
|
310
|
-
export { createTeamcityTools, TEAMCITY_TOOL_NAMES, } from "./providers/teamcity/tools.js";
|
|
311
|
-
export { JiraProvider } from "./providers/jira/index.js";
|
|
312
|
-
export { JIRA_CAPABILITIES, JIRA_CAPABILITY_INFO, JIRA_COMPANION_PATHS, JIRA_OPERATIONS, JIRA_READ_PATHS, enabledCapabilities as enabledJiraCapabilities, jiraOperationCapability, type JiraCapability, type JiraCapabilityDefinition, type JiraOperationDefinition, } from "./providers/jira/catalog.js";
|
|
313
|
-
export { JIRA_DEFAULTS, SEARCH_PAGE_CAP, jiraConfigSchema, jiraSite, resolveJiraConfig, type JiraFlags, type JiraSite, } from "./providers/jira/config.js";
|
|
314
|
-
export { adfToText as jiraAdfToText, bodyText, isAdf, type AdfText, } from "./providers/jira/adf.js";
|
|
315
|
-
export { buildJql, commentLimit, commentStart, issueKey as jiraIssueKey, jqlDateValue, jqlLiteral, needsUserLookup, pageToken, projectKey as jiraProjectKey, searchLimit, textClauses, textMatch, type CustomFieldClause, } from "./providers/jira/jql.js";
|
|
316
|
-
export { ISSUE_INCLUDES, JIRA_HANDLERS, JIRA_PROJECTIONS, SEARCH_FIELDS as JIRA_SEARCH_FIELDS, customFieldValue, issueFields, issueUrl, requestedIncludes, wantsFieldNames, type JiraProjection, } from "./providers/jira/operations.js";
|
|
317
|
-
export { JiraTransport, basicAuthorization, credentialFromPlaintext as jiraCredentialFromPlaintext, credentialSite, type JiraCredential, } from "./providers/jira/transport.js";
|
|
318
|
-
export { createJiraTools, JIRA_TOOL_NAMES } from "./providers/jira/tools.js";
|
|
319
|
-
export { TestitProvider } from "./providers/testit/index.js";
|
|
320
|
-
export { TESTIT_CAPABILITIES, TESTIT_CAPABILITY_INFO, TESTIT_OPERATIONS, enabledCapabilities as enabledTestitCapabilities, testitOperationCapability, type TestitCapability, type TestitCapabilityDefinition, type TestitListKind, type TestitOperationDefinition, } from "./providers/testit/catalog.js";
|
|
321
|
-
export { TESTIT_DEFAULTS, resolveTestitConfig, testitConfigSchema, testitInstance, type TestitFlags, type TestitInstance, } from "./providers/testit/config.js";
|
|
322
|
-
export { assertReadableSize, attachmentBinaryProblem, attachmentByteLimit, attachmentExtension, attachmentName, } from "./providers/testit/attachments.js";
|
|
323
|
-
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, type TestitProjection, type TestitProjectionContext, type TestitRequest, } from "./providers/testit/operations.js";
|
|
324
|
-
export { TestitTransport, credentialFromPlaintext as testitCredentialFromPlaintext, credentialInstance as testitCredentialInstance, type TestitCredential, type TestitPage, } from "./providers/testit/transport.js";
|
|
325
|
-
export { createTestitTools, TESTIT_TOOL_NAMES, } from "./providers/testit/tools.js";
|
|
326
|
-
export { WeblateProvider } from "./providers/weblate/index.js";
|
|
327
|
-
export { WEBLATE_CAPABILITIES, WEBLATE_CAPABILITY_INFO, WEBLATE_OPERATIONS, enabledCapabilities as weblateEnabledCapabilities, weblateOperationCapability, type WeblateCapability, type WeblateCapabilityDefinition, type WeblateOperationDefinition, } from "./providers/weblate/catalog.js";
|
|
328
|
-
export { WEBLATE_DEFAULTS, resolveWeblateConfig, weblateConfigSchema, weblateInstance, type WeblateFlags, type WeblateInstance, } from "./providers/weblate/config.js";
|
|
329
|
-
export { WEBLATE_HANDLERS, WEBLATE_PROJECTIONS, WEBLATE_UNTRUSTED_OPERATIONS, accountFromUsers, componentRef, projectRef as weblateProjectRef, sameOriginUrl, translationRef as weblateTranslationRef, unitState as weblateUnitState, type WeblateProjection, type WeblateProjectionContext, } from "./providers/weblate/operations.js";
|
|
330
|
-
export { FAILING_CHECK_CLAUSE, UNIT_STATE_FILTERS, UNIT_TEXT_FIELDS, buildUnitQuery, exactClause as weblateExactClause, quoteQueryValue, stateClause as weblateStateClause, textClause as weblateTextClause, type UnitStateFilter, type UnitTextField, } from "./providers/weblate/query.js";
|
|
331
|
-
export { WeblateTransport, credentialFromPlaintext as weblateCredentialFromPlaintext, credentialInstance as weblateCredentialInstance, resultsOf, type WeblateCredential, } from "./providers/weblate/transport.js";
|
|
332
|
-
export { createWeblateTools, WEBLATE_TOOL_NAMES, } from "./providers/weblate/tools.js";
|
|
333
|
-
export { IntegrationProviderRegistry } from "./providers/registry.js";
|
|
334
|
-
export { serviceBoundaryOf, serviceResourceDenied, } from "./providers/shared/service-boundary.js";
|
|
335
|
-
export { IntegrationRepository } from "./repository.js";
|
|
336
|
-
export { DockerSecretKeyProvider, MemoryKeyProvider, type KeyProvider, } from "./secrets/key-provider.js";
|
|
337
|
-
export { SecretStore } from "./secrets/secret-store.js";
|
|
338
|
-
export { createToolKit, type ToolKitOptions } from "./tool-kit.js";
|
|
339
|
-
export { createIntegrationTools, INTEGRATION_TOOL_NAMES, integrationToolNames, } from "./tools.js";
|
|
340
|
-
export type * from "./types.js";
|
|
341
|
-
export { BitrixTransport, credentialFromPlaintext, type BitrixCredential, } from "./providers/bitrix24/transport.js";
|
|
274
|
+
/**
|
|
275
|
+
* The published names of this package are listed once, in `public-api.ts`;
|
|
276
|
+
* re-exported here so the entry module stays the one thing a consumer resolves.
|
|
277
|
+
*/
|
|
278
|
+
export * from "./public-api.js";
|
|
342
279
|
export default QaIntegrations;
|
|
343
280
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { ToolDefinition } from "@deepseek-ai/dsh-tools";
|
|
2
|
-
import type
|
|
3
|
-
import type { IntegrationPrincipal } from "../../types.js";
|
|
2
|
+
import { type ProviderToolFactoryOptions } from "../../tool-kit.js";
|
|
4
3
|
export declare const BITRIX24_TOOL_NAMES: readonly ["bitrix_search_crm", "bitrix_get_crm_item", "bitrix_get_crm_fields", "bitrix_get_crm_funnels", "bitrix_get_crm_statuses", "bitrix_get_crm_activities", "bitrix_get_crm_activity", "bitrix_get_crm_timeline", "bitrix_get_crm_stage_history", "bitrix_get_crm_product_rows", "bitrix_find_crm_duplicates", "bitrix_get_crm_requisites", "bitrix_get_call_transcript", "bitrix_get_current_user", "bitrix_search_users", "bitrix_get_departments", "bitrix_get_user_fields", "bitrix_search_chats", "bitrix_get_chat_messages", "bitrix_search_chat_messages", "bitrix_get_recent_chats", "bitrix_search_chat_users", "bitrix_find_chat", "bitrix_get_chat_participants", "bitrix_get_chat_user_data", "bitrix_get_openline_dialog", "bitrix_get_openline_history", "bitrix_search_tasks", "bitrix_get_task", "bitrix_get_task_history", "bitrix_get_task_results", "bitrix_get_task_elapsed_time", "bitrix_get_calendar_events", "bitrix_get_calendar_accessibility", "bitrix_search_files", "bitrix_get_file", "bitrix_get_drives", "bitrix_get_storage_items", "bitrix_get_folder_items"];
|
|
5
4
|
/** The provider's single write tool; mounted only when the operator opts in. */
|
|
6
5
|
export declare const BITRIX24_COMMENT_TOOL_NAME: "bitrix_add_crm_timeline_comment";
|
|
7
|
-
export declare function createBitrix24Tools(options: {
|
|
8
|
-
readonly broker: IntegrationBroker;
|
|
9
|
-
readonly principalForSession: (sessionId: string) => IntegrationPrincipal | undefined;
|
|
6
|
+
export declare function createBitrix24Tools(options: ProviderToolFactoryOptions & {
|
|
10
7
|
/** Mount the timeline-comment write tool; default stays read-only. */
|
|
11
8
|
readonly crmCommentWrite?: boolean;
|
|
12
9
|
}): readonly ToolDefinition[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ToolDefinition } from "@deepseek-ai/dsh-tools";
|
|
2
|
-
import type
|
|
3
|
-
import type { IntegrationPrincipal } from "../../types.js";
|
|
2
|
+
import { type ProviderToolFactoryOptions } from "../../tool-kit.js";
|
|
4
3
|
export declare const CONFLUENCE_TOOL_NAMES: readonly ["confluence_connection_get", "confluence_search", "confluence_get_page", "confluence_get_page_comments", "confluence_get_page_attachments", "confluence_get_page_versions", "confluence_get_space", "confluence_list_spaces"];
|
|
5
4
|
/**
|
|
6
5
|
* Every tool reports what the *connected* Confluence account may read, never a
|
|
@@ -8,8 +7,5 @@ export declare const CONFLUENCE_TOOL_NAMES: readonly ["confluence_connection_get
|
|
|
8
7
|
* QA user who owns the DSH session, and the tool schemas carry no user,
|
|
9
8
|
* credential, e-mail or site selector.
|
|
10
9
|
*/
|
|
11
|
-
export declare function createConfluenceTools(options:
|
|
12
|
-
readonly broker: IntegrationBroker;
|
|
13
|
-
readonly principalForSession: (sessionId: string) => IntegrationPrincipal | undefined;
|
|
14
|
-
}): readonly ToolDefinition[];
|
|
10
|
+
export declare function createConfluenceTools(options: ProviderToolFactoryOptions): readonly ToolDefinition[];
|
|
15
11
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -56,11 +56,5 @@ export declare class ConfluenceTransport {
|
|
|
56
56
|
getJson<T>(instance: ConfluenceInstance, credential: ConfluenceCredential, path: string, query?: ConfluenceQuery): Promise<ConfluenceJsonResponse<T>>;
|
|
57
57
|
private url;
|
|
58
58
|
private request;
|
|
59
|
-
/**
|
|
60
|
-
* Confluence answers a page the account may not see with the same 404 as a
|
|
61
|
-
* page that does not exist, and the provider keeps that ambiguity: the model
|
|
62
|
-
* must not learn from an error whether someone else's page is there.
|
|
63
|
-
*/
|
|
64
|
-
private failure;
|
|
65
59
|
}
|
|
66
60
|
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -56,6 +56,6 @@ export type GitlabConfigInput = Partial<GitlabFlags> & {
|
|
|
56
56
|
*/
|
|
57
57
|
export declare const gitlabConfigSchema: z<GitlabConfigInput>;
|
|
58
58
|
export declare function resolveGitlabConfig(input?: GitlabConfigInput): GitlabFlags;
|
|
59
|
-
/** The configured instance a stored credential names, or
|
|
59
|
+
/** The configured instance a stored credential names, or undefined. */
|
|
60
60
|
export declare function gitlabInstance(flags: GitlabFlags, instanceId: string): GitlabInstance | undefined;
|
|
61
61
|
//# sourceMappingURL=config.d.ts.map
|