@gitkraken/core-gitlens 0.51.1 → 0.52.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.
- package/CHANGELOG.md +8 -1
- package/dist/git-cli/providers/config.js +2 -2
- package/dist/git-cli/providers/pausedOperations.js +2 -2
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/staging.js +1 -1
- package/dist/ipc/discovery.js +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.js +6 -6
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +1 -1
- package/dist/plus/integrations/authentication/cloudIntegrationAuthenticationProvider.d.ts +5 -0
- package/dist/plus/integrations/authentication/cloudIntegrationAuthenticationProvider.js +35 -7
- package/dist/plus/integrations/authentication/cloudIntegrationAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +7 -0
- package/dist/plus/integrations/authentication/configuredIntegrationService.js +33 -0
- package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts +5 -2
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js +6 -4
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
- package/dist/plus/integrations/authentication/observedAuthenticationProvider.d.ts +4 -0
- package/dist/plus/integrations/authentication/observedAuthenticationProvider.js +31 -1
- package/dist/plus/integrations/authentication/observedAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +2 -2
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +1 -0
- package/dist/plus/integrations/integrationService.js +34 -3
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/models/publicIntegration.d.ts +1 -0
- package/dist/plus/integrations/models/workItemWrites.d.ts +34 -2
- package/dist/plus/integrations/providers/azure/azure.js +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +4 -3
- package/dist/plus/integrations/providers/azureDevOps.js +6 -6
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOpsServer.d.ts +3 -0
- package/dist/plus/integrations/providers/azureDevOpsServer.js +14 -0
- package/dist/plus/integrations/providers/azureDevOpsServer.js.map +1 -1
- package/dist/plus/integrations/providers/azureWorkItemWriteErrors.d.ts +4 -0
- package/dist/plus/integrations/providers/azureWorkItemWriteErrors.js +34 -2
- package/dist/plus/integrations/providers/azureWorkItemWriteErrors.js.map +1 -1
- package/dist/plus/integrations/providers/azureWorkItemWrites.d.ts +5 -2
- package/dist/plus/integrations/providers/azureWorkItemWrites.js +57 -14
- package/dist/plus/integrations/providers/azureWorkItemWrites.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +1 -0
- package/dist/plus/integrations/providers/providersApi.d.ts +8 -3
- package/dist/plus/integrations/providers/providersApi.js +19 -0
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +1 -0
- package/dist/utils/env/node/exec.js +2 -2
- package/docs/integrations.md +25 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ResourceDescriptor } from "../../../git/models/resourceDescriptor.js";
|
|
2
2
|
import { PullRequest, PullRequestFilter, PullRequestStateFilter } from "../../../git/models/pullRequest.js";
|
|
3
3
|
import { IntegrationIds } from "../constants.js";
|
|
4
|
+
import "../providerFilters.js";
|
|
4
5
|
import { ProviderWarning } from "../results.js";
|
|
5
6
|
import { ProviderSweepTarget, PullRequestSweepOptions } from "../manager.js";
|
|
6
7
|
import { IntegrationResult } from "../models/publicIntegration.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getScopedLogger, maybeStartScopedLogger } from "../../logger.scoped.js";
|
|
2
2
|
import { isWindows } from "./platform.js";
|
|
3
3
|
import { join } from "path";
|
|
4
|
-
import { stat } from "fs/promises";
|
|
5
|
-
import * as process from "process";
|
|
6
4
|
import { execFile, spawn } from "child_process";
|
|
7
5
|
import { access, constants } from "fs";
|
|
6
|
+
import { stat } from "fs/promises";
|
|
7
|
+
import * as process from "process";
|
|
8
8
|
//#region ../utils/src/env/node/exec.ts
|
|
9
9
|
var RunError = class extends Error {
|
|
10
10
|
cmd;
|
package/docs/integrations.md
CHANGED
|
@@ -1047,6 +1047,31 @@ including one produced by the host's fetch, is `rate-limit` and never reported a
|
|
|
1047
1047
|
confirm the result of a dispatched write, it returns `applied: 'maybe'`. Reconcile the provider state before
|
|
1048
1048
|
attempting a new write.
|
|
1049
1049
|
|
|
1050
|
+
### Azure DevOps Server work item writes
|
|
1051
|
+
|
|
1052
|
+
Use the same five work item methods with `providerId: GitSelfManagedHostIntegrationId.AzureDevOpsServer`.
|
|
1053
|
+
Pass the selected Server `connectionId` and its configured `baseUrl`, including the scheme, port and
|
|
1054
|
+
context path. If the connection is configured at the collection itself, retain that path in `baseUrl`.
|
|
1055
|
+
Set `organizationId`, `organizationName` and `collectionUrl` to the collection's ID, name and URL from
|
|
1056
|
+
`listOrgs`. Pass the `projectId` discovered under that collection and, for an existing item, its numeric
|
|
1057
|
+
`workItemId`. Core refuses a `baseUrl` or `collectionUrl` that differs from the connection's own, or that
|
|
1058
|
+
names an Azure DevOps Services host, before sending any request.
|
|
1059
|
+
|
|
1060
|
+
The writer uses the selected Server connection's credential. On the first options or target call, omit
|
|
1061
|
+
`expectedAccountId`. Pin the returned `accountId` for mutations and approvals. That ID identifies the
|
|
1062
|
+
authenticated user in the selected collection. The installation-level ID from `getCurrentAccount` can
|
|
1063
|
+
differ. Successful Server results identify the collection in `organization` and include `organization.url`.
|
|
1064
|
+
|
|
1065
|
+
Core negotiates the instance's Work Item Tracking REST version and requires the capabilities introduced
|
|
1066
|
+
in Azure DevOps Server 2019. It reads fields and workflow transitions from the selected project. Azure
|
|
1067
|
+
enforces the connection's work item scopes, project permissions and process rules at dispatch. An unknown
|
|
1068
|
+
delete capability means Core could not verify the project permission before dispatch.
|
|
1069
|
+
|
|
1070
|
+
Pin the resolved connection, collection, project, account, item and revision across delete confirmation.
|
|
1071
|
+
Core rereads the item and checks the credential before sending one recoverable DELETE. It reports success
|
|
1072
|
+
only when the provider confirms the approved project and the next revision. Use the same
|
|
1073
|
+
`target-changed` and `applied: 'maybe'` handling described above for a changed target or an uncertain result.
|
|
1074
|
+
|
|
1050
1075
|
### Azure DevOps Services pull request writes
|
|
1051
1076
|
|
|
1052
1077
|
The following `IntegrationManager` methods and their types are exported from
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitkraken/core-gitlens",
|
|
3
3
|
"description": "GitLens core — shared Git / AI / GitHub primitives for internal GitKraken consumption",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.52.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "GitKraken",
|