@theholocron/holocron-plugin-fern 5.0.0-alpha.246 → 5.0.0-alpha.247
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 +7 -13
- package/dist/index.mjs +3 -6
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AuthError, DnsRecordRequest, ResolveTokenInput, Wiki, WikiProvisionOpts, WikiProxyConfig } from "@theholocron/cli";
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region src/capabilities/wiki.d.ts
|
|
6
|
-
declare const FERN_VERSION = "5.114.1";
|
|
2
|
+
export declare const resolveToken: (input?: ResolveTokenInput) => string;
|
|
3
|
+
export declare const FERN_VERSION = "5.114.1";
|
|
7
4
|
interface FernWikiOptions extends ResolveTokenInput {
|
|
8
5
|
/** Absolute path to the working repo root. Injected by the loader from RuntimeContext. */
|
|
9
6
|
repoRoot?: string;
|
|
@@ -48,7 +45,7 @@ interface FernWikiOptions extends ResolveTokenInput {
|
|
|
48
45
|
*/
|
|
49
46
|
icon?: string;
|
|
50
47
|
}
|
|
51
|
-
declare class FernWiki implements Wiki {
|
|
48
|
+
export declare class FernWiki implements Wiki {
|
|
52
49
|
private readonly opts;
|
|
53
50
|
readonly key: "wiki";
|
|
54
51
|
readonly providerName = "fern";
|
|
@@ -80,11 +77,9 @@ declare class FernWiki implements Wiki {
|
|
|
80
77
|
}>;
|
|
81
78
|
dnsRecord(): DnsRecordRequest | null;
|
|
82
79
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
declare function wiki(opts: FernPluginOptions): Wiki;
|
|
87
|
-
declare function createPlugin(options?: FernPluginOptions): {
|
|
80
|
+
export type FernPluginOptions = FernWikiOptions;
|
|
81
|
+
export declare function wiki(opts: FernPluginOptions): Wiki;
|
|
82
|
+
export declare function createPlugin(options?: FernPluginOptions): {
|
|
88
83
|
name: string;
|
|
89
84
|
probes: {
|
|
90
85
|
connection: import("@theholocron/cli").Probe;
|
|
@@ -93,5 +88,4 @@ declare function createPlugin(options?: FernPluginOptions): {
|
|
|
93
88
|
wiki: () => Wiki;
|
|
94
89
|
};
|
|
95
90
|
};
|
|
96
|
-
|
|
97
|
-
export { AuthError, FERN_VERSION, FernPluginOptions, FernWiki, type FernWikiOptions, type ResolveTokenInput, createPlugin, resolveToken, wiki };
|
|
91
|
+
export { AuthError, type FernWikiOptions, type ResolveTokenInput };
|
package/dist/index.mjs
CHANGED
|
@@ -2,15 +2,14 @@ import { AuthError, connectionProbe, createResolveToken } from "@theholocron/cli
|
|
|
2
2
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { stringifyJson } from "@theholocron/json-utils";
|
|
5
|
-
|
|
5
|
+
// src/auth.ts
|
|
6
6
|
const resolveToken = createResolveToken({
|
|
7
7
|
envName: "HOLOCRON_FERN_TOKEN",
|
|
8
8
|
vendorEnvName: "FERN_TOKEN",
|
|
9
9
|
keyringService: "fern",
|
|
10
10
|
errorMessage: "no Fern token found. Set HOLOCRON_FERN_TOKEN / FERN_TOKEN, or run: holocron auth set fern <token>"
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
//#region src/capabilities/wiki.ts
|
|
12
|
+
// src/capabilities/wiki.ts
|
|
14
13
|
const FERN_VERSION = "5.114.1";
|
|
15
14
|
var FernWiki = class {
|
|
16
15
|
opts;
|
|
@@ -171,8 +170,7 @@ function updateInstancesBlock(content, instanceUrl, customDomain, multiSource, r
|
|
|
171
170
|
if (match[0] === newBlock) return content;
|
|
172
171
|
return content.replace(blockRe, newBlock);
|
|
173
172
|
}
|
|
174
|
-
|
|
175
|
-
//#region src/index.ts
|
|
173
|
+
// src/index.ts
|
|
176
174
|
function wiki(opts) {
|
|
177
175
|
return new FernWiki(opts);
|
|
178
176
|
}
|
|
@@ -190,5 +188,4 @@ function createPlugin(options = {}) {
|
|
|
190
188
|
capabilities: { wiki: () => wiki(options) }
|
|
191
189
|
};
|
|
192
190
|
}
|
|
193
|
-
//#endregion
|
|
194
191
|
export { AuthError, FERN_VERSION, FernWiki, createPlugin, resolveToken, wiki };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-fern",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.247",
|
|
4
4
|
"description": "Holocron plugin for Fern. Implements the wiki capability for engineering knowledge publishing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fern",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"@theholocron/tsdown-config": "^8.8.2",
|
|
39
39
|
"@theholocron/vitest-config": "^8.8.2",
|
|
40
40
|
"@types/node": "^26",
|
|
41
|
-
"@vitest/coverage-v8": "^
|
|
41
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
42
42
|
"@vitest/eslint-plugin": "^1.6.27",
|
|
43
43
|
"eslint": "^10.8.1",
|
|
44
44
|
"eslint-plugin-n": "^18.3.0",
|
|
45
45
|
"globals": "^17.11.0",
|
|
46
|
-
"tsdown": "^0.
|
|
46
|
+
"tsdown": "^0.23.3",
|
|
47
47
|
"tsx": "4.23.15",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
|
-
"vitest": "^
|
|
50
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
49
|
+
"vitest": "^5.0.5",
|
|
50
|
+
"@theholocron/cli": "5.0.0-alpha.247"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
53
|
+
"@theholocron/cli": "5.0.0-alpha.247"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=22"
|