@theholocron/holocron-plugin-github 5.0.0-alpha.230 → 5.0.0-alpha.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { GitHubClient, GitHubClientOptions, createGitHubClient } from "@theholocron/github-client";
2
1
  import { Auth, AuthError, Ci, CiRun, CiRunFilter, Environment, Environments, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, PagesConfig, PullRequest, RepoRef, RepoSettings, ResolveTokenInput, Ruleset, SecretScope, Secrets, Source, SourceFile, SourceTeamMember, TeamEntry, TeamEntry as TeamEntry$1, TeamPermission, TrackerDoctorReport, TrackerUser, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess, createFeatureResolver } from "@theholocron/cli";
2
+ import { GitHubClient, GitHubClientOptions, createGitHubClient } from "@theholocron/github-client";
3
3
  //#region src/auth.d.ts
4
4
  declare const resolveReadToken: (input?: ResolveTokenInput) => string;
5
5
  declare const resolveIssuesToken: (input?: ResolveTokenInput) => string;
@@ -250,6 +250,9 @@ declare function ci(ctx: PluginContext): Ci;
250
250
  declare function issues(ctx: PluginContext): Issues;
251
251
  declare function createPlugin(options: GitHubPluginOptions): {
252
252
  name: string;
253
+ probes: {
254
+ connection: import("@theholocron/cli").Probe;
255
+ };
253
256
  capabilities: {
254
257
  source: () => Source;
255
258
  ci: () => Ci;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
+ import { AuthError, ProviderApiError, connectionProbe, createFeatureResolver } from "@theholocron/cli";
2
3
  import { createGitHubClient, createGitHubClient as createGitHubClient$1 } from "@theholocron/github-client";
3
- import { AuthError, ProviderApiError, createFeatureResolver } from "@theholocron/cli";
4
4
  import { mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
5
5
  import { dirname, join } from "node:path";
6
6
  import { findRootSync } from "@theholocron/fs-utils";
@@ -954,6 +954,16 @@ function createPlugin(options) {
954
954
  }
955
955
  return {
956
956
  name: "@theholocron/holocron-plugin-github",
957
+ probes: { connection: connectionProbe({
958
+ provider: "GitHub",
959
+ url: options.baseUrl ?? "https://api.github.com",
960
+ fetch: options.fetch,
961
+ token: () => resolveReadToken(options),
962
+ verify: (token) => verifyToken(token, {
963
+ baseUrl: options.baseUrl,
964
+ fetch: options.fetch
965
+ })
966
+ }) },
957
967
  capabilities: {
958
968
  source: () => source(makeCtx(resolveAdminToken), makeOrgClient(), makeUserSyncClient()),
959
969
  ci: () => ci(makeCtx(resolveReadToken)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-github",
3
- "version": "5.0.0-alpha.230",
3
+ "version": "5.0.0-alpha.232",
4
4
  "description": "Holocron plugin for GitHub. Implements source, ci, secrets, environments, and issues capabilities against the GitHub REST API.",
5
5
  "keywords": [
6
6
  "ci",
@@ -52,13 +52,13 @@
52
52
  "tsx": "4.23.15",
53
53
  "typescript": "^5.9.3",
54
54
  "vitest": "^4.1.11",
55
- "@theholocron/cli": "5.0.0-alpha.230"
55
+ "@theholocron/cli": "5.0.0-alpha.232"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@theholocron/fs-utils": "^1.16.0",
59
59
  "@theholocron/github-client": "^1.51.0",
60
60
  "@theholocron/misc-utils": "^1.16.0",
61
- "@theholocron/cli": "5.0.0-alpha.230"
61
+ "@theholocron/cli": "5.0.0-alpha.232"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22"