@farming-labs/docs 0.2.118 → 0.2.119
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/{agent-DAjdIdoL.mjs → agent-CYk2DxY7.mjs} +3 -3
- package/dist/{agent-BErhm-eR.mjs → agent-DkAidqtV.mjs} +9 -3
- package/dist/{agent-evals-BHXe_A2m.mjs → agent-evals-BLNLvXbG.mjs} +3 -3
- package/dist/{agent-export-B849tzbg.mjs → agent-export-Cxljt6RP.mjs} +16 -15
- package/dist/agent-skills-bundle.d.mts +1 -1
- package/dist/{agent-skills-progressive-disclosure-1XPV0wCN.mjs → agent-skills-progressive-disclosure-PjPtTYL-.mjs} +1 -1
- package/dist/{agent-skills-server-CJh3EGWC.mjs → agent-skills-server-BC7md56k.mjs} +1 -1
- package/dist/{agent-skills-server-DiXUcYNy.d.mts → agent-skills-server-CTNWr23x.d.mts} +2 -2
- package/dist/agent-skills-vite.d.mts +3 -3
- package/dist/agent-skills-vite.mjs +2 -2
- package/dist/{agents-Dwys0Wr7.mjs → agents-jtn256sz.mjs} +14 -13
- package/dist/{analytics-BvUjK_oC.d.mts → analytics-B8RZiKUt.d.mts} +1 -1
- package/dist/{api-reference-DafuHRtc.mjs → api-reference-By_LokQ-.mjs} +2 -2
- package/dist/{authoring-BqcSw2Ok.mjs → authoring-C2ymvYWl.mjs} +6 -5
- package/dist/{authoring-mcp-BmohXL7E.mjs → authoring-mcp-CiCUQe3o.mjs} +2 -2
- package/dist/browser.d.mts +4 -4
- package/dist/browser.mjs +6 -3
- package/dist/cli/index.mjs +38 -38
- package/dist/client/react.d.mts +1 -1
- package/dist/{cloud-BllEwBht.mjs → cloud-6eKrlmKd.mjs} +3 -3
- package/dist/{cloud-ask-ai-nlKU13he.d.mts → cloud-ask-ai-BOahlsIZ.d.mts} +1 -1
- package/dist/{codeblocks-Cbo7uzxr.mjs → codeblocks-CHpgAwY-.mjs} +2 -2
- package/dist/{content-change-hydration-Cr07LmBu.d.mts → content-change-hydration-CvHJadhE.d.mts} +3 -3
- package/dist/{dev-QxIXdG0G.mjs → dev-Bnn-NUNa.mjs} +2 -2
- package/dist/docs-cloud-server.d.mts +2 -2
- package/dist/docs-cloud-server.mjs +1 -1
- package/dist/{doctor-Cysov9LX.mjs → doctor-CUMgbglt.mjs} +21 -20
- package/dist/{downgrade-Cx3FnovE.mjs → downgrade-CHMta85e.mjs} +2 -2
- package/dist/{feedback-Dfgt_WD5.mjs → feedback-DL4T5oIO.mjs} +1 -1
- package/dist/{feedback-evals-DI_JNN5M.mjs → feedback-evals-DMilg9pY.mjs} +1 -1
- package/dist/{golden-evaluations-BqdWUUE7.mjs → golden-evaluations-CLUViycJ.mjs} +2 -2
- package/dist/index.d.mts +9 -44
- package/dist/index.mjs +11 -12
- package/dist/{init-CW922o9v.mjs → init-K0LmXDZ5.mjs} +3 -3
- package/dist/{mcp-CqtJYU0Y.mjs → mcp-Bvha6_mG.mjs} +15 -14
- package/dist/mcp.d.mts +3 -3
- package/dist/mcp.mjs +5 -5
- package/dist/{openapi-diff-Cf1dguBv.mjs → openapi-diff-BOESBfnP.mjs} +5 -5
- package/dist/{openapi-mcp-gbEUXMkc.mjs → openapi-mcp-BIOTLiA7.mjs} +3 -315
- package/dist/{openapi-sdk-G7RtjWc5.mjs → openapi-sdk-DJutz2AC.mjs} +5 -5
- package/dist/{openapi-source-1ubEyHMO.mjs → openapi-source-CiX3hwFp.mjs} +1 -1
- package/dist/{package-version-CiVXOONu.mjs → package-version-HJhYeq4M.mjs} +1 -1
- package/dist/{prompt-references-C1nDPYdm.mjs → prompt-references-DMgbu_dz.mjs} +3 -3
- package/dist/{propose-B_yerUFm.mjs → propose-JmUv_BTt.mjs} +1 -1
- package/dist/{retrieval-digest-ueYW3S6P.d.mts → retrieval-digest-DLAQsQmx.d.mts} +1 -1
- package/dist/{review-Df62iFE4.mjs → review-C6EmbV0l.mjs} +12 -11
- package/dist/{robots-CRIXPOiX.mjs → robots-BYJAVeI6.mjs} +2 -2
- package/dist/{robots-vdQ4tLzZ.mjs → robots-DteZB8vl.mjs} +5 -5
- package/dist/runtime.d.mts +3 -3
- package/dist/runtime.mjs +7 -6
- package/dist/{search-Cso57KVB.mjs → search-DKcdZgGx.mjs} +16 -15
- package/dist/server.d.mts +8 -8
- package/dist/server.mjs +14 -13
- package/dist/sidebar-C2LKcU7n.d.mts +63 -0
- package/dist/sidebar-CFHBj29f.mjs +421 -0
- package/dist/{sitemap-Du2wWBmo.mjs → sitemap-CBQoERNz.mjs} +14 -13
- package/dist/{sitemap-BEUEeKbt.d.mts → sitemap-DafdOrxK.d.mts} +2 -2
- package/dist/{sitemap-server-DNsVKCnP.d.mts → sitemap-server-C9r22_06.d.mts} +2 -2
- package/dist/{sitemap-server-CClBRp7_.mjs → sitemap-server-Lg3YhUx4.mjs} +1 -1
- package/dist/{skills-BC0GTdUM.mjs → skills-a90P31sJ.mjs} +14 -13
- package/dist/{standards-discovery-C3AB6qNv.d.mts → standards-discovery-1fiUVDAo.d.mts} +1 -1
- package/dist/{types-Ba9Dd_fe.d.mts → types-BncG8J3g.d.mts} +1 -1
- package/dist/{upgrade-CXIQlLWx.mjs → upgrade-DlQMOFV1.mjs} +2 -2
- package/package.json +2 -2
- package/dist/audience-exposure-P69ZKRec.mjs +0 -8
- package/dist/sidebar-CAncgoWu.d.mts +0 -15
- package/dist/sidebar-mI70dH_0.mjs +0 -73
- /package/dist/{agent-feedback-evaluations-UhAdMoIY.mjs → agent-feedback-evaluations-CcMGlgsO.mjs} +0 -0
- /package/dist/{agent-feedback-loop-DpZ9ZdFB.mjs → agent-feedback-loop-CcZL_sb1.mjs} +0 -0
- /package/dist/{agent-maintenance-CZLly8It.mjs → agent-maintenance-CuZ7iAKq.mjs} +0 -0
- /package/dist/{audience-exposure-PMCEve-s.d.mts → audience-exposure-DBrFWULA.d.mts} +0 -0
- /package/dist/{cloud-ask-ai-Bq_njfjh.mjs → cloud-ask-ai-BqKhjpS5.mjs} +0 -0
- /package/dist/{code-blocks-BE3sEayp.mjs → code-blocks-GYdvS3BH.mjs} +0 -0
- /package/dist/{config-DDuQ4Qma.mjs → config-BZnKAj_Y.mjs} +0 -0
- /package/dist/{errors-CBmy95z2.mjs → errors-BtnVLhNF.mjs} +0 -0
- /package/dist/{i18n-DKGg_G0f.mjs → i18n-B1gJ9EW0.mjs} +0 -0
- /package/dist/{metadata-DoUinS1I.mjs → metadata-BOHn0Y5K.mjs} +0 -0
- /package/dist/{openapi-BkQGpZEg.mjs → openapi-CfCzX_a1.mjs} +0 -0
- /package/dist/{openapi-mcp-node-DiqMH9Ao.mjs → openapi-mcp-node-C4jUpZG6.mjs} +0 -0
- /package/dist/{openapi-operations-CsXLUD3Z.mjs → openapi-operations-DFpaqOqA.mjs} +0 -0
- /package/dist/{prompt-utils-Dj8-I3Jw.mjs → prompt-utils-B5g-bv7o.mjs} +0 -0
- /package/dist/{standards-discovery-BQQ3CAzz.mjs → standards-discovery-sSEojU80.mjs} +0 -0
- /package/dist/{templates-2nnlhcmo.mjs → templates-BuQ8YsGv.mjs} +0 -0
- /package/dist/{utils-8H7dkC8w.mjs → utils-C7KDrPpA.mjs} +0 -0
package/dist/mcp.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./http-body-DkAPk6D5.mjs";
|
|
2
2
|
import { C as filterDocsPagesByAccess, S as upsertPageAgentContractMarkdown, _ as hasStructuredPageAgentContract, o as findDocsMarkdownSection, s as parseDocsMarkdownSections, v as normalizePageAgentFrontmatter, y as renderPageAgentContractMarkdown } from "./markdown-sections-9Oxr33b-.mjs";
|
|
3
3
|
import { a as emitDocsAnalyticsEvent, i as emitDocsAgentTraceEvent, n as createDocsAgentTraceContext, r as createDocsAgentTraceId } from "./analytics-p8Vhhu2P.mjs";
|
|
4
|
-
import { $n as
|
|
4
|
+
import { $n as isDocsMcpResourcePath, An as agentVersionConstraintMatches, Bn as normalizeDocsRelated, Dn as resolveDocsAudienceMdxContent, E as DOCS_MARKDOWN_SECTION_INDEX_FORMAT, Et as validateDocsAgentFeedbackPayload, Gt as DocsContentChangesRequestError, In as DocsPaginationCursorError, Jt as isDocsContentChangeGeneration, Kt as createDocsContentChangeFeed, Mn as normalizeAgentFramework, Nn as normalizeAgentLocale, P as buildDocsMarkdownSectionIndex, Pn as normalizeAgentScopeValues, Rn as paginateDocsItems, Tt as toDocsMarkdownUrl, Vn as renderDocsRelatedMarkdownLines, Xn as isDocsMcpOAuthScopeToken, Xt as resolveDocsContentChangesConfig, Zn as isDocsMcpProtectedResourceMetadataPath, cr as normalizeDocsOkfTrustMetadataInput, er as normalizeDocsMcpAuthorizationServerUrls, fn as normalizeDocsSearchFilters, jn as agentVersionConstraintsOverlap, lr as resolveDocsOkfConfig, mn as performDocsSearchWithMetadata, nr as resolveDocsMcpProtectedResourceMetadataLocation, pn as performDocsSearch, rn as buildDocsSearchFacets, rr as resolveDocsMcpResourceLocation, sr as buildDocsOkfBundle, tr as normalizeDocsMcpEndpointPath, ut as resolveDocsAgentFeedbackConfig, xn as resolveLocalDocsMcpSearchConfig } from "./agent-DkAidqtV.mjs";
|
|
5
5
|
import { r as isDocsRetrievalCanonicalUrl } from "./retrieval-digest-CT-eIEcp.mjs";
|
|
6
|
-
import "./standards-discovery-
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as validateDocsOpenApiMcpUrl } from "./openapi-mcp-node-
|
|
6
|
+
import "./standards-discovery-sSEojU80.mjs";
|
|
7
|
+
import { a as emitDocsTelemetryAgentSurfaceEvent, l as emitDocsTelemetryProjectEvent, n as resolvePageSidebarFolderIndexBehavior, s as emitDocsTelemetryMcpToolEvent } from "./sidebar-CFHBj29f.mjs";
|
|
8
|
+
import { a as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, c as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, g as stripGeneratedAgentProvenance, i as resolveDocsOpenApiMcpOperations, l as hydrateDocsContentChanges, n as readDocsOpenApiMcpResponse, o as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, r as resolveDocsOpenApiMcpBaseUrl, s as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, t as acquireDocsOpenApiMcpBudget } from "./openapi-mcp-BIOTLiA7.mjs";
|
|
9
|
+
import { t as validateDocsOpenApiMcpUrl } from "./openapi-mcp-node-C4jUpZG6.mjs";
|
|
10
10
|
import matter from "gray-matter";
|
|
11
11
|
import fs from "node:fs";
|
|
12
12
|
import path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./http-body-DkAPk6D5.mjs";
|
|
2
2
|
import "./markdown-sections-9Oxr33b-.mjs";
|
|
3
|
-
import "./agent-
|
|
4
|
-
import "./standards-discovery-
|
|
5
|
-
import { n as buildNormalizedOpenApiModel } from "./openapi-operations-
|
|
6
|
-
import "./api-reference-
|
|
7
|
-
import { n as loadOpenApiCliSource, t as displayOpenApiCliSource } from "./openapi-source-
|
|
3
|
+
import "./agent-DkAidqtV.mjs";
|
|
4
|
+
import "./standards-discovery-sSEojU80.mjs";
|
|
5
|
+
import { n as buildNormalizedOpenApiModel } from "./openapi-operations-DFpaqOqA.mjs";
|
|
6
|
+
import "./api-reference-By_LokQ-.mjs";
|
|
7
|
+
import { n as loadOpenApiCliSource, t as displayOpenApiCliSource } from "./openapi-source-CiX3hwFp.mjs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import pc from "picocolors";
|
|
10
10
|
|
|
@@ -1,321 +1,9 @@
|
|
|
1
1
|
import { s as parseDocsMarkdownSections } from "./markdown-sections-9Oxr33b-.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { In as DocsPaginationCursorError, Ln as createDocsPaginationCursor, tn as buildDocsRetrievalDigestProjection, zn as resolveDocsPaginationOffset } from "./agent-DkAidqtV.mjs";
|
|
3
3
|
import { n as digestDocsRetrievalContent } from "./retrieval-digest-CT-eIEcp.mjs";
|
|
4
|
-
import { n as buildNormalizedOpenApiModel } from "./openapi-operations-
|
|
4
|
+
import { n as buildNormalizedOpenApiModel } from "./openapi-operations-DFpaqOqA.mjs";
|
|
5
5
|
import matter from "gray-matter";
|
|
6
6
|
|
|
7
|
-
//#region src/telemetry.ts
|
|
8
|
-
const DOCS_PACKAGE_NAME = "@farming-labs/docs";
|
|
9
|
-
const DOCS_PACKAGE_VERSION = "0.2.25";
|
|
10
|
-
const DEFAULT_DOCS_TELEMETRY_ENDPOINT = "https://docs.farming-labs.dev/api/telemetry/events";
|
|
11
|
-
const PROJECT_TELEMETRY_CACHE_TTL_MS = 1440 * 60 * 1e3;
|
|
12
|
-
const PROJECT_TELEMETRY_CACHE_MAX_KEYS = 256;
|
|
13
|
-
function getRuntimeEnv() {
|
|
14
|
-
if (typeof process === "undefined" || !process.env) return;
|
|
15
|
-
return process.env;
|
|
16
|
-
}
|
|
17
|
-
function readRuntimeEnv(name) {
|
|
18
|
-
const value = getRuntimeEnv()?.[name]?.trim();
|
|
19
|
-
return value ? value : void 0;
|
|
20
|
-
}
|
|
21
|
-
function isTruthyEnv(value) {
|
|
22
|
-
return /^(1|true|yes|on)$/i.test(value ?? "");
|
|
23
|
-
}
|
|
24
|
-
function isFalsyEnv(value) {
|
|
25
|
-
return /^(0|false|no|off)$/i.test(value ?? "");
|
|
26
|
-
}
|
|
27
|
-
function isBrowserRuntime() {
|
|
28
|
-
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
29
|
-
}
|
|
30
|
-
function isProductionTelemetryRuntime() {
|
|
31
|
-
if (isBrowserRuntime()) return false;
|
|
32
|
-
const env = getRuntimeEnv();
|
|
33
|
-
if (!env) return true;
|
|
34
|
-
if (env.NODE_ENV === "test") return false;
|
|
35
|
-
if (env.VERCEL_ENV === "production") return true;
|
|
36
|
-
if (env.CONTEXT === "production" && isTruthyEnv(env.NETLIFY)) return true;
|
|
37
|
-
if (isTruthyEnv(env.CF_PAGES)) return true;
|
|
38
|
-
if (env.RENDER_SERVICE_ID || env.FLY_APP_NAME || env.RAILWAY_ENVIRONMENT) return true;
|
|
39
|
-
return env.NODE_ENV === "production";
|
|
40
|
-
}
|
|
41
|
-
function resolveDocsTelemetryConfig(telemetry) {
|
|
42
|
-
const envToggle = readRuntimeEnv("DOCS_TELEMETRY");
|
|
43
|
-
const envDisabled = readRuntimeEnv("DOCS_TELEMETRY_DISABLED");
|
|
44
|
-
if (isFalsyEnv(envToggle) || isTruthyEnv(envDisabled) || telemetry === false) return { enabled: false };
|
|
45
|
-
const objectConfig = telemetry && typeof telemetry === "object" ? telemetry : void 0;
|
|
46
|
-
if (objectConfig?.enabled === false) return { enabled: false };
|
|
47
|
-
return {
|
|
48
|
-
enabled: telemetry === true || objectConfig?.enabled === true || isTruthyEnv(envToggle) || isProductionTelemetryRuntime(),
|
|
49
|
-
endpoint: objectConfig?.endpoint?.trim() || readRuntimeEnv("DOCS_TELEMETRY_ENDPOINT") || DEFAULT_DOCS_TELEMETRY_ENDPOINT
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function readRequestOrigin(request) {
|
|
53
|
-
if (!request?.url) return void 0;
|
|
54
|
-
try {
|
|
55
|
-
return new URL(request.url).origin;
|
|
56
|
-
} catch {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/** Normalize an HTTP(S) telemetry site value to its origin. */
|
|
61
|
-
function normalizeDocsTelemetryOrigin(candidate) {
|
|
62
|
-
if (typeof candidate !== "string") return void 0;
|
|
63
|
-
const trimmed = candidate.trim();
|
|
64
|
-
if (!trimmed) return void 0;
|
|
65
|
-
try {
|
|
66
|
-
const hasScheme = /^[a-z][a-z\d+.-]*:(?!\d)/i.test(trimmed);
|
|
67
|
-
const url = new URL(hasScheme ? trimmed : `https://${trimmed}`);
|
|
68
|
-
if (url.protocol !== "http:" && url.protocol !== "https:") return void 0;
|
|
69
|
-
return url.origin;
|
|
70
|
-
} catch {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
/** Return whether a telemetry origin points at a local development server. */
|
|
75
|
-
function isLocalDocsTelemetryOrigin(candidate) {
|
|
76
|
-
const origin = normalizeDocsTelemetryOrigin(candidate);
|
|
77
|
-
if (!origin) return false;
|
|
78
|
-
const hostname = new URL(origin).hostname.toLowerCase().replace(/^\[|\]$/g, "").replace(/\.+$/, "");
|
|
79
|
-
if ([
|
|
80
|
-
"localhost",
|
|
81
|
-
"localhost.localdomain",
|
|
82
|
-
"localhost6",
|
|
83
|
-
"localhost6.localdomain6",
|
|
84
|
-
"ip6-localhost",
|
|
85
|
-
"ip6-loopback"
|
|
86
|
-
].includes(hostname) || hostname.endsWith(".localhost")) return true;
|
|
87
|
-
if (hostname === "::" || hostname === "::1") return true;
|
|
88
|
-
const ipv4 = hostname.split(".").map((part) => Number(part));
|
|
89
|
-
if (ipv4.length === 4 && ipv4.every((part) => Number.isInteger(part) && part >= 0 && part <= 255)) return ipv4[0] === 127 || ipv4.every((part) => part === 0);
|
|
90
|
-
return /^::ffff:7f[0-9a-f]{2}:/.test(hostname) || hostname === "::ffff:0:0";
|
|
91
|
-
}
|
|
92
|
-
function isBlockedDocsTelemetryOrigin(candidate) {
|
|
93
|
-
if (candidate === void 0) return false;
|
|
94
|
-
return !normalizeDocsTelemetryOrigin(candidate) || isLocalDocsTelemetryOrigin(candidate);
|
|
95
|
-
}
|
|
96
|
-
function readDeploymentOrigin() {
|
|
97
|
-
const candidates = [
|
|
98
|
-
readRuntimeEnv("DOCS_SITE_URL"),
|
|
99
|
-
readRuntimeEnv("NEXT_PUBLIC_BASE_URL"),
|
|
100
|
-
readRuntimeEnv("NEXT_PUBLIC_SITE_URL"),
|
|
101
|
-
readRuntimeEnv("SITE_URL"),
|
|
102
|
-
readRuntimeEnv("URL"),
|
|
103
|
-
readRuntimeEnv("CF_PAGES_URL"),
|
|
104
|
-
readRuntimeEnv("VERCEL_PROJECT_PRODUCTION_URL"),
|
|
105
|
-
readRuntimeEnv("VERCEL_URL"),
|
|
106
|
-
readRuntimeEnv("DEPLOY_PRIME_URL")
|
|
107
|
-
];
|
|
108
|
-
for (const candidate of candidates) {
|
|
109
|
-
const origin = normalizeDocsTelemetryOrigin(candidate);
|
|
110
|
-
if (origin) return origin;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function detectDeployment() {
|
|
114
|
-
const env = getRuntimeEnv();
|
|
115
|
-
if (!env) return void 0;
|
|
116
|
-
if (env.VERCEL || env.VERCEL_ENV) return {
|
|
117
|
-
provider: "vercel",
|
|
118
|
-
environment: env.VERCEL_ENV,
|
|
119
|
-
id: env.VERCEL_DEPLOYMENT_ID ?? env.VERCEL_GIT_COMMIT_SHA,
|
|
120
|
-
region: env.VERCEL_REGION
|
|
121
|
-
};
|
|
122
|
-
if (env.NETLIFY) return {
|
|
123
|
-
provider: "netlify",
|
|
124
|
-
environment: env.CONTEXT,
|
|
125
|
-
id: env.DEPLOY_ID ?? env.COMMIT_REF
|
|
126
|
-
};
|
|
127
|
-
if (env.CF_PAGES) return {
|
|
128
|
-
provider: "cloudflare-pages",
|
|
129
|
-
environment: env.CF_PAGES_BRANCH,
|
|
130
|
-
id: env.CF_PAGES_COMMIT_SHA
|
|
131
|
-
};
|
|
132
|
-
if (env.RENDER_SERVICE_ID) return {
|
|
133
|
-
provider: "render",
|
|
134
|
-
environment: env.RENDER_ENV,
|
|
135
|
-
id: env.RENDER_SERVICE_ID
|
|
136
|
-
};
|
|
137
|
-
if (env.FLY_APP_NAME) return {
|
|
138
|
-
provider: "fly",
|
|
139
|
-
environment: env.FLY_APP_NAME,
|
|
140
|
-
id: env.FLY_ALLOC_ID,
|
|
141
|
-
region: env.FLY_REGION
|
|
142
|
-
};
|
|
143
|
-
if (env.RAILWAY_ENVIRONMENT) return {
|
|
144
|
-
provider: "railway",
|
|
145
|
-
environment: env.RAILWAY_ENVIRONMENT,
|
|
146
|
-
id: env.RAILWAY_DEPLOYMENT_ID
|
|
147
|
-
};
|
|
148
|
-
return env.NODE_ENV === "production" ? { environment: "production" } : void 0;
|
|
149
|
-
}
|
|
150
|
-
function detectRuntime() {
|
|
151
|
-
if (typeof process !== "undefined" && process.versions?.node) return {
|
|
152
|
-
name: "node",
|
|
153
|
-
version: process.versions.node
|
|
154
|
-
};
|
|
155
|
-
if (typeof navigator !== "undefined" && navigator.userAgent) return { name: "web-standard" };
|
|
156
|
-
}
|
|
157
|
-
function isObjectConfigEnabled(value, defaultEnabled) {
|
|
158
|
-
if (value === false) return false;
|
|
159
|
-
if (value === true) return true;
|
|
160
|
-
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
161
|
-
const enabled = value.enabled;
|
|
162
|
-
return enabled === false ? false : defaultEnabled || enabled === true;
|
|
163
|
-
}
|
|
164
|
-
return defaultEnabled;
|
|
165
|
-
}
|
|
166
|
-
function hasObjectConfig(value) {
|
|
167
|
-
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
168
|
-
}
|
|
169
|
-
function getDocsTelemetryFeatures(config) {
|
|
170
|
-
const pageActions = config.pageActions;
|
|
171
|
-
const feedback = config.feedback;
|
|
172
|
-
return {
|
|
173
|
-
search: isObjectConfigEnabled(config.search, true),
|
|
174
|
-
contentChanges: resolveDocsContentChangesConfig(config.agent?.contentChanges, { staticExport: config.staticExport === true }).enabled,
|
|
175
|
-
ai: isObjectConfigEnabled(config.ai, false),
|
|
176
|
-
mcp: isObjectConfigEnabled(config.mcp, true),
|
|
177
|
-
llmsTxt: isObjectConfigEnabled(config.llmsTxt, true),
|
|
178
|
-
pageActions: hasObjectConfig(pageActions),
|
|
179
|
-
feedback: feedback === true || hasObjectConfig(feedback) && feedback.enabled !== false,
|
|
180
|
-
agentFeedback: feedback !== false && !(hasObjectConfig(feedback) && feedback.agent === false) && !(hasObjectConfig(feedback) && hasObjectConfig(feedback.agent) && feedback.agent.enabled === false),
|
|
181
|
-
sitemap: isObjectConfigEnabled(config.sitemap, true),
|
|
182
|
-
robots: isObjectConfigEnabled(config.robots, true),
|
|
183
|
-
apiReference: isObjectConfigEnabled(config.apiReference, false),
|
|
184
|
-
staticExport: config.staticExport === true,
|
|
185
|
-
changelog: isObjectConfigEnabled(config.changelog, false),
|
|
186
|
-
cloud: typeof config.cloud !== "undefined" && isObjectConfigEnabled(config.cloud, true),
|
|
187
|
-
review: isObjectConfigEnabled(config.review, true),
|
|
188
|
-
codeBlocksValidate: hasObjectConfig(config.codeBlocks) && Boolean(config.codeBlocks.validate)
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
function createDocsTelemetryEvent(config, input, context = {}) {
|
|
192
|
-
const telemetryConfig = config.telemetry && typeof config.telemetry === "object" ? config.telemetry : void 0;
|
|
193
|
-
const siteOriginCandidates = [
|
|
194
|
-
context.siteOrigin,
|
|
195
|
-
input.site?.origin,
|
|
196
|
-
telemetryConfig?.siteOrigin,
|
|
197
|
-
readRequestOrigin(context.request),
|
|
198
|
-
readDeploymentOrigin()
|
|
199
|
-
];
|
|
200
|
-
if (siteOriginCandidates.some(isBlockedDocsTelemetryOrigin)) return void 0;
|
|
201
|
-
const siteOrigin = siteOriginCandidates.map(normalizeDocsTelemetryOrigin).find((origin) => Boolean(origin));
|
|
202
|
-
const deployment = input.deployment ?? detectDeployment();
|
|
203
|
-
const properties = context.properties || input.properties ? {
|
|
204
|
-
...input.properties,
|
|
205
|
-
...context.properties
|
|
206
|
-
} : void 0;
|
|
207
|
-
return {
|
|
208
|
-
...input,
|
|
209
|
-
timestamp: input.timestamp ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
210
|
-
package: {
|
|
211
|
-
name: DOCS_PACKAGE_NAME,
|
|
212
|
-
version: DOCS_PACKAGE_VERSION,
|
|
213
|
-
...input.package
|
|
214
|
-
},
|
|
215
|
-
framework: input.framework ?? context.framework,
|
|
216
|
-
runtime: input.runtime ?? detectRuntime(),
|
|
217
|
-
site: siteOrigin ? { origin: siteOrigin } : input.site,
|
|
218
|
-
deployment,
|
|
219
|
-
features: input.features ?? getDocsTelemetryFeatures(config),
|
|
220
|
-
properties
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
function projectEventKey(event) {
|
|
224
|
-
return [
|
|
225
|
-
event.package.name,
|
|
226
|
-
event.package.version,
|
|
227
|
-
event.framework ?? "",
|
|
228
|
-
event.site?.origin ?? "",
|
|
229
|
-
event.deployment?.provider ?? "",
|
|
230
|
-
event.deployment?.environment ?? "",
|
|
231
|
-
event.deployment?.id ?? ""
|
|
232
|
-
].join("|");
|
|
233
|
-
}
|
|
234
|
-
function getSentProjectKeys() {
|
|
235
|
-
const globalValue = globalThis;
|
|
236
|
-
globalValue.__farmingLabsDocsTelemetryProjectKeys__ ??= /* @__PURE__ */ new Map();
|
|
237
|
-
return globalValue.__farmingLabsDocsTelemetryProjectKeys__;
|
|
238
|
-
}
|
|
239
|
-
function pruneSentProjectKeys(sent, now) {
|
|
240
|
-
for (const [key, expiresAt] of sent) if (expiresAt <= now) sent.delete(key);
|
|
241
|
-
while (sent.size >= PROJECT_TELEMETRY_CACHE_MAX_KEYS) {
|
|
242
|
-
const oldestKey = sent.keys().next().value;
|
|
243
|
-
if (!oldestKey) return;
|
|
244
|
-
sent.delete(oldestKey);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
async function emitDocsTelemetryEvent(telemetry, event) {
|
|
248
|
-
const resolved = resolveDocsTelemetryConfig(telemetry);
|
|
249
|
-
const eventSiteOrigin = event.site?.origin;
|
|
250
|
-
const normalizedSiteOrigin = normalizeDocsTelemetryOrigin(eventSiteOrigin);
|
|
251
|
-
if (!resolved.enabled || !resolved.endpoint || typeof fetch !== "function" || eventSiteOrigin !== void 0 && (!normalizedSiteOrigin || isLocalDocsTelemetryOrigin(eventSiteOrigin))) return;
|
|
252
|
-
const eventToSend = normalizedSiteOrigin ? {
|
|
253
|
-
...event,
|
|
254
|
-
site: { origin: normalizedSiteOrigin }
|
|
255
|
-
} : event;
|
|
256
|
-
try {
|
|
257
|
-
const ingestKey = readRuntimeEnv("DOCS_TELEMETRY_INGEST_KEY");
|
|
258
|
-
const headers = { "content-type": "application/json" };
|
|
259
|
-
if (ingestKey) headers["x-docs-telemetry-key"] = ingestKey;
|
|
260
|
-
await fetch(resolved.endpoint, {
|
|
261
|
-
method: "POST",
|
|
262
|
-
headers,
|
|
263
|
-
body: JSON.stringify({ event: eventToSend }),
|
|
264
|
-
keepalive: true
|
|
265
|
-
});
|
|
266
|
-
} catch {}
|
|
267
|
-
}
|
|
268
|
-
function emitDocsTelemetryProjectEvent(config, context = {}) {
|
|
269
|
-
const event = createDocsTelemetryEvent(config, { type: "project_detected" }, context);
|
|
270
|
-
if (!event) return;
|
|
271
|
-
const key = projectEventKey(event);
|
|
272
|
-
const sent = getSentProjectKeys();
|
|
273
|
-
const now = Date.now();
|
|
274
|
-
const expiresAt = sent.get(key);
|
|
275
|
-
if (expiresAt && expiresAt > now) return;
|
|
276
|
-
if (typeof expiresAt === "number") sent.delete(key);
|
|
277
|
-
pruneSentProjectKeys(sent, now);
|
|
278
|
-
sent.set(key, now + PROJECT_TELEMETRY_CACHE_TTL_MS);
|
|
279
|
-
emitDocsTelemetryEvent(config.telemetry, event);
|
|
280
|
-
}
|
|
281
|
-
function emitDocsTelemetryAgentSurfaceEvent(config, context) {
|
|
282
|
-
const event = createDocsTelemetryEvent(config, {
|
|
283
|
-
type: context.surface === "mcp" ? "mcp_request" : "agent_surface_used",
|
|
284
|
-
properties: { surface: context.surface }
|
|
285
|
-
}, context);
|
|
286
|
-
if (!event) return;
|
|
287
|
-
emitDocsTelemetryEvent(config.telemetry, event);
|
|
288
|
-
}
|
|
289
|
-
function emitDocsTelemetryMcpToolEvent(config, context) {
|
|
290
|
-
const event = createDocsTelemetryEvent(config, {
|
|
291
|
-
type: "mcp_tool_used",
|
|
292
|
-
properties: {
|
|
293
|
-
tool: context.tool,
|
|
294
|
-
locale: context.locale,
|
|
295
|
-
resultCount: context.resultCount
|
|
296
|
-
}
|
|
297
|
-
}, context);
|
|
298
|
-
if (!event) return;
|
|
299
|
-
emitDocsTelemetryEvent(config.telemetry, event);
|
|
300
|
-
}
|
|
301
|
-
function inferDocsTelemetryAgentSurface(request, options) {
|
|
302
|
-
const url = new URL(request.url);
|
|
303
|
-
const method = request.method.toUpperCase();
|
|
304
|
-
const feedbackRequest = resolveDocsAgentFeedbackRequest(url, resolveDocsAgentFeedbackConfig(options.feedback));
|
|
305
|
-
if ((method === "GET" || method === "HEAD") && isDocsAgentDiscoveryRequest(url)) return "agent_spec";
|
|
306
|
-
if ((method === "GET" || method === "HEAD") && feedbackRequest?.kind === "schema") return "agent_feedback_schema";
|
|
307
|
-
if (method === "POST" && feedbackRequest?.kind === "submit") return "agent_feedback_submit";
|
|
308
|
-
if (method === "GET" || method === "HEAD") {
|
|
309
|
-
if (isDocsContentChangesRequest(url)) return "content_changes";
|
|
310
|
-
if (isDocsAgentsRequest(url) || resolveDocsAgentsFormat(url) === "agents") return "agents";
|
|
311
|
-
if (isDocsSkillRequest(url) || resolveDocsSkillFormat(url) === "skill") return "skill";
|
|
312
|
-
if (resolveDocsMarkdownRequest(options.entry, url, request)) return "markdown";
|
|
313
|
-
if (resolveDocsLlmsTxtRequest(url, options.llmsTxt, options.entry)) return "llms";
|
|
314
|
-
}
|
|
315
|
-
if (method === "POST") return "ask_ai";
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
//#endregion
|
|
319
7
|
//#region src/agent-provenance.ts
|
|
320
8
|
const GENERATED_AGENT_PROVENANCE_MARKER = "@farming-labs/docs:generated";
|
|
321
9
|
const GENERATED_AGENT_PROVENANCE_VERSION = 1;
|
|
@@ -735,4 +423,4 @@ function resolveDocsOpenApiMcpBaseUrl(document, config) {
|
|
|
735
423
|
}
|
|
736
424
|
|
|
737
425
|
//#endregion
|
|
738
|
-
export {
|
|
426
|
+
export { DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET as a, MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET as c, GENERATED_AGENT_PROVENANCE_VERSION as d, hashGeneratedAgentContent as f, stripGeneratedAgentProvenance as g, serializeGeneratedAgentDocument as h, resolveDocsOpenApiMcpOperations as i, hydrateDocsContentChanges as l, parseGeneratedAgentDocument as m, readDocsOpenApiMcpResponse as n, DOCS_CONTENT_CHANGE_HYDRATION_FORMAT as o, normalizeGeneratedAgentContent as p, resolveDocsOpenApiMcpBaseUrl as r, MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET as s, acquireDocsOpenApiMcpBudget as t, GENERATED_AGENT_PROVENANCE_MARKER as u };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./http-body-DkAPk6D5.mjs";
|
|
2
2
|
import "./markdown-sections-9Oxr33b-.mjs";
|
|
3
|
-
import "./agent-
|
|
4
|
-
import "./standards-discovery-
|
|
5
|
-
import { n as buildNormalizedOpenApiModel } from "./openapi-operations-
|
|
6
|
-
import "./api-reference-
|
|
7
|
-
import { n as loadOpenApiCliSource, t as displayOpenApiCliSource } from "./openapi-source-
|
|
3
|
+
import "./agent-DkAidqtV.mjs";
|
|
4
|
+
import "./standards-discovery-sSEojU80.mjs";
|
|
5
|
+
import { n as buildNormalizedOpenApiModel } from "./openapi-operations-DFpaqOqA.mjs";
|
|
6
|
+
import "./api-reference-By_LokQ-.mjs";
|
|
7
|
+
import { n as loadOpenApiCliSource, t as displayOpenApiCliSource } from "./openapi-source-CiX3hwFp.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import pc from "picocolors";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as loadApiReferenceOpenApiDocumentAsync } from "./api-reference-
|
|
1
|
+
import { d as loadApiReferenceOpenApiDocumentAsync } from "./api-reference-By_LokQ-.mjs";
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as detectPackageManagerFromProject, l as formatPackageManagerDetection, t as detectFramework, u as installCommand } from "./utils-
|
|
1
|
+
import { i as detectPackageManagerFromProject, l as formatPackageManagerDetection, t as detectFramework, u as installCommand } from "./utils-C7KDrPpA.mjs";
|
|
2
2
|
import pc from "picocolors";
|
|
3
3
|
import * as p from "@clack/prompts";
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { At as DEFAULT_SITEMAP_MD_ROUTE,
|
|
2
|
-
import { C as DOCS_AGENT_MANIFEST_SCHEMA_MEDIA_TYPE, S as DOCS_AGENT_MANIFEST_FORMAT, T as DOCS_AGENT_MANIFEST_VERSION, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, n as API_CATALOG_MEDIA_TYPE, r as API_CATALOG_PROFILE_URI, t as AGENT_SKILLS_DISCOVERY_SCHEMA_URI, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE, w as DOCS_AGENT_MANIFEST_SCHEMA_URI } from "./standards-discovery-
|
|
1
|
+
import { At as DEFAULT_SITEMAP_MD_ROUTE, Gn as DEFAULT_MCP_WELL_KNOWN_ROUTE, Mt as DEFAULT_SITEMAP_XML_ROUTE, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, f as DEFAULT_DOCS_CONFIG_ROUTE, h as DEFAULT_LLMS_FULL_TXT_ROUTE, i as DEFAULT_AGENT_FEEDBACK_ROUTE, m as DEFAULT_DOCS_DIAGNOSTICS_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_LLMS_TXT_ROUTE, x as DEFAULT_SKILL_MD_ROUTE } from "./agent-DkAidqtV.mjs";
|
|
2
|
+
import { C as DOCS_AGENT_MANIFEST_SCHEMA_MEDIA_TYPE, S as DOCS_AGENT_MANIFEST_FORMAT, T as DOCS_AGENT_MANIFEST_VERSION, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, n as API_CATALOG_MEDIA_TYPE, r as API_CATALOG_PROFILE_URI, t as AGENT_SKILLS_DISCOVERY_SCHEMA_URI, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE, w as DOCS_AGENT_MANIFEST_SCHEMA_URI } from "./standards-discovery-sSEojU80.mjs";
|
|
3
3
|
import { isDocsAgentSkillName, validateDocsAgentSkillFrontmatter } from "./agent-skills-spec.mjs";
|
|
4
|
-
import { n as DEFAULT_ROBOTS_TXT_ROUTE } from "./robots-
|
|
4
|
+
import { n as DEFAULT_ROBOTS_TXT_ROUTE } from "./robots-BYJAVeI6.mjs";
|
|
5
5
|
import matter from "gray-matter";
|
|
6
6
|
|
|
7
7
|
//#region src/define-docs.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as analyzeDocsAgentMaintenanceSignals, r as parseDocsAgentMaintenanceSignals } from "./agent-maintenance-
|
|
1
|
+
import { n as analyzeDocsAgentMaintenanceSignals, r as parseDocsAgentMaintenanceSignals } from "./agent-maintenance-CuZ7iAKq.mjs";
|
|
2
2
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import pc from "picocolors";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as DocsAgentEvaluationAnswerProvider, G as DocsAgentEvaluationSurface, Hr as OpenDocsTarget, It as DocsCodeBlocksPlannerProvider, Jn as DocsSearchConfig, Q as DocsAgentGoldenCoverageApplicability, Y as DocsAgentFeedbackData, ct as DocsAgentGoldenTaskFilters, et as DocsAgentGoldenExpectedExample, ot as DocsAgentGoldenTask, rt as DocsAgentGoldenQueryVariant, st as DocsAgentGoldenTaskExpectation, zr as OpenDocsProvider, zt as DocsCodeBlocksValidateConfig } from "./types-
|
|
1
|
+
import { B as DocsAgentEvaluationAnswerProvider, G as DocsAgentEvaluationSurface, Hr as OpenDocsTarget, It as DocsCodeBlocksPlannerProvider, Jn as DocsSearchConfig, Q as DocsAgentGoldenCoverageApplicability, Y as DocsAgentFeedbackData, ct as DocsAgentGoldenTaskFilters, et as DocsAgentGoldenExpectedExample, ot as DocsAgentGoldenTask, rt as DocsAgentGoldenQueryVariant, st as DocsAgentGoldenTaskExpectation, zr as OpenDocsProvider, zt as DocsCodeBlocksValidateConfig } from "./types-BncG8J3g.mjs";
|
|
2
2
|
import { DocsMcpPage } from "./mcp.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-feedback-loop.d.ts
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import "./http-body-DkAPk6D5.mjs";
|
|
2
2
|
import { _ as hasStructuredPageAgentContract, f as PAGE_AGENT_CONTRACT_FIELDS, g as getPageAgentFrontmatterIssues, v as normalizePageAgentFrontmatter } from "./markdown-sections-9Oxr33b-.mjs";
|
|
3
|
-
import { A as buildDocsAgentDiscoverySpec,
|
|
4
|
-
import { I as resolveDocsDiscoveryApiRoute, _ as DEFAULT_API_CATALOG_FORMAT, d as DEFAULT_AGENT_SKILLS_ROUTE_PATTERN, h as DEFAULT_AGENT_SKILL_FORMAT, l as DEFAULT_AGENT_SKILLS_INDEX_FORMAT, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE } from "./standards-discovery-
|
|
5
|
-
import "./
|
|
6
|
-
import { a as resolveDocsMetadataBaseUrl } from "./metadata-
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
3
|
+
import { A as buildDocsAgentDiscoverySpec, M as buildDocsConfigMap, T as DOCS_CONFIG_MAP_TOP_LEVEL_KEYS, hn as resolveAskAISearchRequestConfig, qn as getDocsMcpProtectedResourceMetadataRoutes, wn as findDocsAudienceMdxIssues } from "./agent-DkAidqtV.mjs";
|
|
4
|
+
import { I as resolveDocsDiscoveryApiRoute, _ as DEFAULT_API_CATALOG_FORMAT, d as DEFAULT_AGENT_SKILLS_ROUTE_PATTERN, h as DEFAULT_AGENT_SKILL_FORMAT, l as DEFAULT_AGENT_SKILLS_INDEX_FORMAT, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE } from "./standards-discovery-sSEojU80.mjs";
|
|
5
|
+
import "./sidebar-CFHBj29f.mjs";
|
|
6
|
+
import { a as resolveDocsMetadataBaseUrl } from "./metadata-BOHn0Y5K.mjs";
|
|
7
|
+
import "./openapi-mcp-BIOTLiA7.mjs";
|
|
8
|
+
import "./agent-skills-server-BC7md56k.mjs";
|
|
9
|
+
import { c as resolveDocsReviewConfig, o as ensureDocsReviewWorkflow, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-BLNLvXbG.mjs";
|
|
9
10
|
import { createFilesystemDocsMcpSource, getDocsConfigSchema, resolveDocsMcpConfig } from "./mcp.mjs";
|
|
10
|
-
import "./code-blocks-
|
|
11
|
-
import { _ as resolveDocsContentDir, g as resolveDocsConfigPath, h as readTopLevelStringProperty, s as loadDocsConfigModuleResultWithProjectEnv } from "./config-
|
|
12
|
-
import { t as detectFramework } from "./utils-
|
|
13
|
-
import { a as extractAgentBlocks, i as createAgentUsefulnessPagesFromMcp, n as analyzeAgentSurfaceDrift, r as analyzeAgentUsefulness, t as resolveGoldenEvaluationInput } from "./golden-evaluations-
|
|
14
|
-
import { t as analyzeConfiguredAgentSkillsProgressiveDisclosure } from "./agent-skills-progressive-disclosure-
|
|
11
|
+
import "./code-blocks-GYdvS3BH.mjs";
|
|
12
|
+
import { _ as resolveDocsContentDir, g as resolveDocsConfigPath, h as readTopLevelStringProperty, s as loadDocsConfigModuleResultWithProjectEnv } from "./config-BZnKAj_Y.mjs";
|
|
13
|
+
import { t as detectFramework } from "./utils-C7KDrPpA.mjs";
|
|
14
|
+
import { a as extractAgentBlocks, i as createAgentUsefulnessPagesFromMcp, n as analyzeAgentSurfaceDrift, r as analyzeAgentUsefulness, t as resolveGoldenEvaluationInput } from "./golden-evaluations-CLUViycJ.mjs";
|
|
15
|
+
import { t as analyzeConfiguredAgentSkillsProgressiveDisclosure } from "./agent-skills-progressive-disclosure-PjPtTYL-.mjs";
|
|
15
16
|
import matter from "gray-matter";
|
|
16
17
|
import { existsSync, lstatSync, readFileSync, readdirSync } from "node:fs";
|
|
17
18
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as DEFAULT_A2A_AGENT_CARD_ROUTE, b as DEFAULT_LEGACY_SKILLS_INDEX_ROUTE, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE, x as DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX } from "./standards-discovery-
|
|
1
|
+
import { Gn as DEFAULT_MCP_WELL_KNOWN_ROUTE, Rt as resolveDocsSitemapConfig, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, Un as DEFAULT_MCP_PUBLIC_ROUTE, a as DEFAULT_AGENT_MD_ROUTE, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, g as DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, h as DEFAULT_LLMS_FULL_TXT_ROUTE, l as DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, o as DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, tt as normalizeDocsPathSegment, v as DEFAULT_LLMS_TXT_ROUTE, x as DEFAULT_SKILL_MD_ROUTE, y as DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE } from "./agent-DkAidqtV.mjs";
|
|
2
|
+
import { a as DEFAULT_A2A_AGENT_CARD_ROUTE, b as DEFAULT_LEGACY_SKILLS_INDEX_ROUTE, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE, x as DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX } from "./standards-discovery-sSEojU80.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/robots.ts
|
|
5
5
|
const DEFAULT_ROBOTS_TXT_ROUTE = "/robots.txt";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./http-body-DkAPk6D5.mjs";
|
|
2
2
|
import "./markdown-sections-9Oxr33b-.mjs";
|
|
3
|
-
import "./agent-
|
|
4
|
-
import "./standards-discovery-
|
|
5
|
-
import { c as renderDocsRobotsGeneratedBlock, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, r as DOCS_ROBOTS_GENERATED_BLOCK_END, u as resolveDocsRobotsConfig } from "./robots-
|
|
6
|
-
import { a as loadDocsConfigModule, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, m as readTopLevelBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-
|
|
7
|
-
import { t as detectFramework } from "./utils-
|
|
3
|
+
import "./agent-DkAidqtV.mjs";
|
|
4
|
+
import "./standards-discovery-sSEojU80.mjs";
|
|
5
|
+
import { c as renderDocsRobotsGeneratedBlock, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, r as DOCS_ROBOTS_GENERATED_BLOCK_END, u as resolveDocsRobotsConfig } from "./robots-BYJAVeI6.mjs";
|
|
6
|
+
import { a as loadDocsConfigModule, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, m as readTopLevelBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-BZnKAj_Y.mjs";
|
|
7
|
+
import { t as detectFramework } from "./utils-C7KDrPpA.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import pc from "picocolors";
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as resolveConfiguredAgentSkills } from "./agent-skills-server-
|
|
2
|
-
import "./content-change-hydration-
|
|
1
|
+
import { n as resolveConfiguredAgentSkills } from "./agent-skills-server-CTNWr23x.mjs";
|
|
2
|
+
import "./content-change-hydration-CvHJadhE.mjs";
|
|
3
3
|
import { DocsMcpPage, createDocsMcpHttpHandler, createFilesystemDocsMcpSource, resolveDocsMcpConfig } from "./mcp.mjs";
|
|
4
|
-
import { C as resolveApiReferenceRenderer, S as resolveApiReferenceOpenApiDiscovery, T as resolveApiReferenceVersionFromPathname, _ as buildApiReferencePageTitle, g as buildApiReferenceOperationPagesAsync, h as buildApiReferenceOpenApiDocumentAsync, p as buildApiReferenceHtmlDocumentAsync, t as readDocsSitemapManifest, v as buildApiReferenceScalarCss, w as resolveApiReferenceVersion, x as resolveApiReferenceConfig, y as createApiReferenceOperationMarkdownResponse } from "./sitemap-server-
|
|
4
|
+
import { C as resolveApiReferenceRenderer, S as resolveApiReferenceOpenApiDiscovery, T as resolveApiReferenceVersionFromPathname, _ as buildApiReferencePageTitle, g as buildApiReferenceOperationPagesAsync, h as buildApiReferenceOpenApiDocumentAsync, p as buildApiReferenceHtmlDocumentAsync, t as readDocsSitemapManifest, v as buildApiReferenceScalarCss, w as resolveApiReferenceVersion, x as resolveApiReferenceConfig, y as createApiReferenceOperationMarkdownResponse } from "./sitemap-server-C9r22_06.mjs";
|
|
5
5
|
export { type DocsMcpPage, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocumentAsync, buildApiReferenceOperationPagesAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, createApiReferenceOperationMarkdownResponse, createDocsMcpHttpHandler, createFilesystemDocsMcpSource, readDocsSitemapManifest, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveApiReferenceVersion, resolveApiReferenceVersionFromPathname, resolveConfiguredAgentSkills, resolveDocsMcpConfig };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "./http-body-DkAPk6D5.mjs";
|
|
2
2
|
import "./markdown-sections-9Oxr33b-.mjs";
|
|
3
|
-
import "./agent-
|
|
4
|
-
import "./standards-discovery-
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import { r as
|
|
3
|
+
import "./agent-DkAidqtV.mjs";
|
|
4
|
+
import "./standards-discovery-sSEojU80.mjs";
|
|
5
|
+
import "./sidebar-CFHBj29f.mjs";
|
|
6
|
+
import "./openapi-mcp-BIOTLiA7.mjs";
|
|
7
|
+
import { a as buildApiReferenceOpenApiDocumentAsync, c as buildApiReferenceScalarCss, f as resolveApiReferenceConfig, g as resolveApiReferenceVersionFromPathname, h as resolveApiReferenceVersion, l as createApiReferenceOperationMarkdownResponse, m as resolveApiReferenceRenderer, o as buildApiReferenceOperationPagesAsync, p as resolveApiReferenceOpenApiDiscovery, r as buildApiReferenceHtmlDocumentAsync, s as buildApiReferencePageTitle } from "./api-reference-By_LokQ-.mjs";
|
|
8
|
+
import { r as resolveConfiguredAgentSkills } from "./agent-skills-server-BC7md56k.mjs";
|
|
8
9
|
import { createDocsMcpHttpHandler, createFilesystemDocsMcpSource, resolveDocsMcpConfig } from "./mcp.mjs";
|
|
9
|
-
import { t as readDocsSitemapManifest } from "./sitemap-server-
|
|
10
|
+
import { t as readDocsSitemapManifest } from "./sitemap-server-Lg3YhUx4.mjs";
|
|
10
11
|
|
|
11
12
|
export { buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocumentAsync, buildApiReferenceOperationPagesAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, createApiReferenceOperationMarkdownResponse, createDocsMcpHttpHandler, createFilesystemDocsMcpSource, readDocsSitemapManifest, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveApiReferenceVersion, resolveApiReferenceVersionFromPathname, resolveConfiguredAgentSkills, resolveDocsMcpConfig };
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import "./http-body-DkAPk6D5.mjs";
|
|
2
2
|
import "./markdown-sections-9Oxr33b-.mjs";
|
|
3
|
-
import { cn as createTypesenseSearchAdapter, in as createAlgoliaSearchAdapter, nn as buildDocsSearchDocuments } from "./agent-
|
|
4
|
-
import "./standards-discovery-
|
|
5
|
-
import "./
|
|
6
|
-
import { t as resolveDocsI18n } from "./i18n-
|
|
7
|
-
import { a as resolveDocsMetadataBaseUrl } from "./metadata-
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
10
|
-
import "./
|
|
11
|
-
import "./agent-
|
|
3
|
+
import { cn as createTypesenseSearchAdapter, in as createAlgoliaSearchAdapter, nn as buildDocsSearchDocuments } from "./agent-DkAidqtV.mjs";
|
|
4
|
+
import "./standards-discovery-sSEojU80.mjs";
|
|
5
|
+
import "./sidebar-CFHBj29f.mjs";
|
|
6
|
+
import { t as resolveDocsI18n } from "./i18n-B1gJ9EW0.mjs";
|
|
7
|
+
import { a as resolveDocsMetadataBaseUrl } from "./metadata-BOHn0Y5K.mjs";
|
|
8
|
+
import "./openapi-mcp-BIOTLiA7.mjs";
|
|
9
|
+
import "./prompt-utils-B5g-bv7o.mjs";
|
|
10
|
+
import { o as buildApiReferenceOperationPagesAsync } from "./api-reference-By_LokQ-.mjs";
|
|
11
|
+
import "./agent-skills-server-BC7md56k.mjs";
|
|
12
|
+
import "./agent-evals-BLNLvXbG.mjs";
|
|
12
13
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
13
|
-
import "./authoring-mcp-
|
|
14
|
-
import "./cloud-ask-ai-
|
|
15
|
-
import "./code-blocks-
|
|
16
|
-
import "./sitemap-server-
|
|
14
|
+
import "./authoring-mcp-CiCUQe3o.mjs";
|
|
15
|
+
import "./cloud-ask-ai-BqKhjpS5.mjs";
|
|
16
|
+
import "./code-blocks-GYdvS3BH.mjs";
|
|
17
|
+
import "./sitemap-server-Lg3YhUx4.mjs";
|
|
17
18
|
import "./server.mjs";
|
|
18
|
-
import { _ as resolveDocsContentDir, c as loadProjectEnv, g as resolveDocsConfigPath, h as readTopLevelStringProperty, s as loadDocsConfigModuleResultWithProjectEnv } from "./config-
|
|
19
|
-
import { t as detectFramework } from "./utils-
|
|
19
|
+
import { _ as resolveDocsContentDir, c as loadProjectEnv, g as resolveDocsConfigPath, h as readTopLevelStringProperty, s as loadDocsConfigModuleResultWithProjectEnv } from "./config-BZnKAj_Y.mjs";
|
|
20
|
+
import { t as detectFramework } from "./utils-C7KDrPpA.mjs";
|
|
20
21
|
import { readFileSync } from "node:fs";
|
|
21
22
|
import path from "node:path";
|
|
22
23
|
import pc from "picocolors";
|