@theholocron/holocron-plugin-fern 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
@@ -86,6 +86,9 @@ type FernPluginOptions = FernWikiOptions;
86
86
  declare function wiki(opts: FernPluginOptions): Wiki;
87
87
  declare function createPlugin(options?: FernPluginOptions): {
88
88
  name: string;
89
+ probes: {
90
+ connection: import("@theholocron/cli").Probe;
91
+ };
89
92
  capabilities: {
90
93
  wiki: () => Wiki;
91
94
  };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
+ import { AuthError, connectionProbe, createResolveToken } from "@theholocron/cli";
1
2
  import { mkdir, readFile, writeFile } from "node:fs/promises";
2
3
  import { join } from "node:path";
3
4
  import { stringifyJson } from "@theholocron/json-utils";
4
- import { AuthError, createResolveToken } from "@theholocron/cli";
5
5
  //#region src/auth.ts
6
6
  const resolveToken = createResolveToken({
7
7
  envName: "HOLOCRON_FERN_TOKEN",
@@ -179,6 +179,14 @@ function wiki(opts) {
179
179
  function createPlugin(options = {}) {
180
180
  return {
181
181
  name: "@theholocron/holocron-plugin-fern",
182
+ probes: { connection: connectionProbe({
183
+ provider: "Fern",
184
+ token: () => resolveToken({}),
185
+ verify: async () => ({
186
+ ok: true,
187
+ subject: "a token is set (Fern cannot check it from here)"
188
+ })
189
+ }) },
182
190
  capabilities: { wiki: () => wiki(options) }
183
191
  };
184
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-fern",
3
- "version": "5.0.0-alpha.230",
3
+ "version": "5.0.0-alpha.232",
4
4
  "description": "Holocron plugin for Fern. Implements the wiki capability for engineering knowledge publishing.",
5
5
  "keywords": [
6
6
  "fern",
@@ -47,10 +47,10 @@
47
47
  "tsx": "4.23.15",
48
48
  "typescript": "^5.9.3",
49
49
  "vitest": "^4.1.11",
50
- "@theholocron/cli": "5.0.0-alpha.230"
50
+ "@theholocron/cli": "5.0.0-alpha.232"
51
51
  },
52
52
  "peerDependencies": {
53
- "@theholocron/cli": "5.0.0-alpha.230"
53
+ "@theholocron/cli": "5.0.0-alpha.232"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=22"