@kubbisec/ai-linux-arm64 0.1.24 → 0.1.25
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/bin/kubbisec +0 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-chat-system-prompt.js +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/cli-reference-index.d.ts +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/cli-reference-index.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/cli-reference-index.js +4 -4
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.js +4 -4
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.js.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.d.ts +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.js +8 -9
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.js.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mental-map.d.ts +2 -2
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mental-map.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mental-map.js +4 -4
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.d.ts +15 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.js +75 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.d.ts +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.js +5 -1
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.js.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/index.d.ts +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/index.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/index.js +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/index.js.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.js +68 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.js +115 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.d.ts +12 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.js +86 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.js +33 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.js +23 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.js +19 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.d.ts +11 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.js +148 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.d.ts +2 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.js +36 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.d.ts +49 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.js +600 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.d.ts +2 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.js +5 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.js.map +1 -1
- package/bundled/node_modules/@kubbisec/shared/package.json +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ASPM_DOC_FILES = void 0;
|
|
4
|
+
exports.loadAspmDocsBundleFromDisk = loadAspmDocsBundleFromDisk;
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const promises_1 = require("node:fs/promises");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
|
+
const monorepo_root_js_1 = require("./monorepo-root.js");
|
|
9
|
+
/** Markdown under apps/web private docs — overview first. */
|
|
10
|
+
exports.ASPM_DOC_FILES = [
|
|
11
|
+
"aspm-quickstart.md",
|
|
12
|
+
"aspm-login.md",
|
|
13
|
+
"aspm-scan.md",
|
|
14
|
+
"aspm-upload.md",
|
|
15
|
+
"aspm-parse.md",
|
|
16
|
+
"aspm-cicd.md",
|
|
17
|
+
"aspm-commands.md",
|
|
18
|
+
"aspm-gate.md",
|
|
19
|
+
"aspm-coverage.md",
|
|
20
|
+
"aspm-api-keys.md",
|
|
21
|
+
"aspm-scanner-trivy.md",
|
|
22
|
+
"aspm-scanner-gitleaks.md",
|
|
23
|
+
"aspm-scanner-syft.md",
|
|
24
|
+
"aspm-scanner-osv.md",
|
|
25
|
+
"aspm-scanner-semgrep.md",
|
|
26
|
+
"aspm-scanner-sonar.md",
|
|
27
|
+
"aspm-scanner-nmap.md",
|
|
28
|
+
"aspm-scanner-skipfish.md",
|
|
29
|
+
"aspm-multiple-scanners.md",
|
|
30
|
+
"aspm-troubleshooting.md",
|
|
31
|
+
];
|
|
32
|
+
/** Operational CLI docs under docs/aspm/ (not in web content tree). */
|
|
33
|
+
const ASPM_CLI_DOC_FILES = ["getting-started.md", "docker-cli.md"];
|
|
34
|
+
function listAspmCliDocDirCandidates() {
|
|
35
|
+
const out = [];
|
|
36
|
+
const add = (p) => {
|
|
37
|
+
if (!out.includes(p))
|
|
38
|
+
out.push(p);
|
|
39
|
+
};
|
|
40
|
+
const envDir = process.env.ASPM_CLI_DOCS_DIR?.trim();
|
|
41
|
+
if (envDir)
|
|
42
|
+
add(envDir);
|
|
43
|
+
const root = (0, monorepo_root_js_1.monorepoRootFromSharedModule)();
|
|
44
|
+
add((0, node_path_1.join)(root, "docs", "aspm"));
|
|
45
|
+
const cwd = process.cwd();
|
|
46
|
+
add((0, node_path_1.join)(cwd, "docs", "aspm"));
|
|
47
|
+
add((0, node_path_1.join)(cwd, "..", "docs", "aspm"));
|
|
48
|
+
add((0, node_path_1.join)(cwd, "..", "..", "docs", "aspm"));
|
|
49
|
+
return out;
|
|
50
|
+
}
|
|
51
|
+
function listAspmDocDirCandidates() {
|
|
52
|
+
const out = [];
|
|
53
|
+
const add = (p) => {
|
|
54
|
+
if (!out.includes(p))
|
|
55
|
+
out.push(p);
|
|
56
|
+
};
|
|
57
|
+
const envDir = process.env.ASPM_DOCS_DIR?.trim();
|
|
58
|
+
if (envDir)
|
|
59
|
+
add(envDir);
|
|
60
|
+
const mcpSynced = process.env.MCP_DOCS_CONTENT_ROOT?.trim();
|
|
61
|
+
if (mcpSynced)
|
|
62
|
+
add((0, node_path_1.join)(mcpSynced, "aspm"));
|
|
63
|
+
const root = (0, monorepo_root_js_1.monorepoRootFromSharedModule)();
|
|
64
|
+
add((0, node_path_1.join)(root, "apps", "mcp", "src", "resources", "content", "aspm"));
|
|
65
|
+
add((0, node_path_1.join)(root, "apps", "mcp", "dist", "resources", "content", "aspm"));
|
|
66
|
+
add((0, node_path_1.join)(root, "apps", "web", "src", "pages", "private", "docs", "content", "aspm"));
|
|
67
|
+
const cwd = process.cwd();
|
|
68
|
+
add((0, node_path_1.join)(cwd, "apps", "web", "src", "pages", "private", "docs", "content", "aspm"));
|
|
69
|
+
add((0, node_path_1.join)(cwd, "src", "resources", "content", "aspm"));
|
|
70
|
+
add((0, node_path_1.join)(cwd, "resources", "content", "aspm"));
|
|
71
|
+
add((0, node_path_1.join)(cwd, "..", "apps", "web", "src", "pages", "private", "docs", "content", "aspm"));
|
|
72
|
+
add((0, node_path_1.join)(cwd, "..", "..", "apps", "web", "src", "pages", "private", "docs", "content", "aspm"));
|
|
73
|
+
return out;
|
|
74
|
+
}
|
|
75
|
+
async function loadAspmDocsBundleFromDisk() {
|
|
76
|
+
const candidates = listAspmDocDirCandidates();
|
|
77
|
+
for (const dir of candidates) {
|
|
78
|
+
if (!(0, node_fs_1.existsSync)(dir))
|
|
79
|
+
continue;
|
|
80
|
+
const chunks = [];
|
|
81
|
+
for (const file of exports.ASPM_DOC_FILES) {
|
|
82
|
+
const fp = (0, node_path_1.join)(dir, file);
|
|
83
|
+
if (!(0, node_fs_1.existsSync)(fp))
|
|
84
|
+
continue;
|
|
85
|
+
const text = await (0, promises_1.readFile)(fp, "utf8");
|
|
86
|
+
chunks.push(`## aspm/${file}\n\n${text.trim()}\n`);
|
|
87
|
+
}
|
|
88
|
+
if (chunks.length > 0) {
|
|
89
|
+
const cliCandidates = listAspmCliDocDirCandidates();
|
|
90
|
+
for (const cliDir of cliCandidates) {
|
|
91
|
+
if (!(0, node_fs_1.existsSync)(cliDir))
|
|
92
|
+
continue;
|
|
93
|
+
for (const file of ASPM_CLI_DOC_FILES) {
|
|
94
|
+
const fp = (0, node_path_1.join)(cliDir, file);
|
|
95
|
+
if (!(0, node_fs_1.existsSync)(fp))
|
|
96
|
+
continue;
|
|
97
|
+
const text = await (0, promises_1.readFile)(fp, "utf8");
|
|
98
|
+
chunks.push(`## docs/aspm/${file}\n\n${text.trim()}\n`);
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
bundle: chunks.join("\n---\n\n"),
|
|
104
|
+
sourceDir: dir,
|
|
105
|
+
triedPaths: [...candidates, ...cliCandidates],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
bundle: "",
|
|
111
|
+
sourceDir: null,
|
|
112
|
+
triedPaths: [...candidates, ...listAspmCliDocDirCandidates()],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=aspm-docs-bundle.loader.js.map
|
package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aspm-docs-bundle.loader.js","sourceRoot":"","sources":["../../src/product-docs/aspm-docs-bundle.loader.ts"],"names":[],"mappings":";;;AA+EA,gEAuCC;AAtHD,qCAAqC;AACrC,+CAA4C;AAC5C,yCAAiC;AACjC,yDAAkE;AAElE,6DAA6D;AAChD,QAAA,cAAc,GAAG;IAC5B,oBAAoB;IACpB,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,0BAA0B;IAC1B,sBAAsB;IACtB,qBAAqB;IACrB,yBAAyB;IACzB,uBAAuB;IACvB,sBAAsB;IACtB,0BAA0B;IAC1B,2BAA2B;IAC3B,yBAAyB;CACjB,CAAC;AAEX,uEAAuE;AACvE,MAAM,kBAAkB,GAAG,CAAC,oBAAoB,EAAE,eAAe,CAAU,CAAC;AAE5E,SAA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MAAM,IAAI,GAAG,MAAM,IAAA,mBAAQ,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC;oBACxC,MAAM,CAAC,IAAI,CAAC,gBAAgB,IAAI,OAAO,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC1D,CAAC;gBACD,MAAM;YACR,CAAC;YACD,OAAO;gBACL,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;gBAChC,SAAS,EAAE,GAAG;gBACd,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,GAAG,aAAa,CAAC;aAC9C,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO;QACL,MAAM,EAAE,EAAE;QACV,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,GAAG,2BAA2B,EAAE,CAAC;KAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ParsedDocSection = {
|
|
2
|
+
id: string;
|
|
3
|
+
heading: string;
|
|
4
|
+
content: string;
|
|
5
|
+
};
|
|
6
|
+
/** Extract section id from a bundle chunk heading line. */
|
|
7
|
+
export declare function sectionIdFromHeading(headingLine: string): string | null;
|
|
8
|
+
export declare function parseDocBundle(bundle: string): ParsedDocSection[];
|
|
9
|
+
export declare function listDocSectionIds(bundle: string): string[];
|
|
10
|
+
export declare function pickDocSection(bundle: string, section: string): string | null;
|
|
11
|
+
export declare function buildDocSectionIndex(title: string, sectionIds: string[], toolName: string): string;
|
|
12
|
+
//# sourceMappingURL=doc-bundle-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doc-bundle-utils.d.ts","sourceRoot":"","sources":["../../src/product-docs/doc-bundle-utils.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,2DAA2D;AAC3D,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAiCvE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAuBjE;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAE1D;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAW7E;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAAE,EACpB,QAAQ,EAAE,MAAM,GACf,MAAM,CAWR"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sectionIdFromHeading = sectionIdFromHeading;
|
|
4
|
+
exports.parseDocBundle = parseDocBundle;
|
|
5
|
+
exports.listDocSectionIds = listDocSectionIds;
|
|
6
|
+
exports.pickDocSection = pickDocSection;
|
|
7
|
+
exports.buildDocSectionIndex = buildDocSectionIndex;
|
|
8
|
+
const BUNDLE_SEPARATOR = "\n---\n\n";
|
|
9
|
+
/** Extract section id from a bundle chunk heading line. */
|
|
10
|
+
function sectionIdFromHeading(headingLine) {
|
|
11
|
+
const trimmed = headingLine.trim();
|
|
12
|
+
if (!trimmed.startsWith("## ")) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
const heading = trimmed.slice(3).trim();
|
|
16
|
+
const nausMatch = /^naus\/([a-z0-9-]+)$/iu.exec(heading);
|
|
17
|
+
if (nausMatch) {
|
|
18
|
+
return nausMatch[1] ?? null;
|
|
19
|
+
}
|
|
20
|
+
const aspmMatch = /^aspm\/(.+\.md)$/iu.exec(heading);
|
|
21
|
+
if (aspmMatch?.[1]) {
|
|
22
|
+
return aspmMatch[1].replace(/\.md$/u, "");
|
|
23
|
+
}
|
|
24
|
+
const aspmCliMatch = /^docs\/aspm\/(.+\.md)$/iu.exec(heading);
|
|
25
|
+
if (aspmCliMatch?.[1]) {
|
|
26
|
+
return aspmCliMatch[1].replace(/\.md$/u, "");
|
|
27
|
+
}
|
|
28
|
+
const aiMatch = /^ai\/(.+\.md)$/iu.exec(heading);
|
|
29
|
+
if (aiMatch?.[1]) {
|
|
30
|
+
return aiMatch[1].replace(/\.md$/u, "");
|
|
31
|
+
}
|
|
32
|
+
const legacyNausMatch = /^docs\/naus\/(.+\.md)$/iu.exec(heading);
|
|
33
|
+
if (legacyNausMatch?.[1]) {
|
|
34
|
+
return legacyNausMatch[1].replace(/\.md$/u, "");
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
function parseDocBundle(bundle) {
|
|
39
|
+
if (!bundle.trim()) {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
const sections = [];
|
|
43
|
+
for (const chunk of bundle.split(BUNDLE_SEPARATOR)) {
|
|
44
|
+
const trimmed = chunk.trim();
|
|
45
|
+
if (!trimmed)
|
|
46
|
+
continue;
|
|
47
|
+
const newline = trimmed.indexOf("\n");
|
|
48
|
+
const headingLine = newline === -1 ? trimmed : trimmed.slice(0, newline);
|
|
49
|
+
const id = sectionIdFromHeading(headingLine);
|
|
50
|
+
if (!id)
|
|
51
|
+
continue;
|
|
52
|
+
sections.push({
|
|
53
|
+
id,
|
|
54
|
+
heading: headingLine.trim(),
|
|
55
|
+
content: trimmed,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return sections;
|
|
59
|
+
}
|
|
60
|
+
function listDocSectionIds(bundle) {
|
|
61
|
+
return parseDocBundle(bundle).map((s) => s.id);
|
|
62
|
+
}
|
|
63
|
+
function pickDocSection(bundle, section) {
|
|
64
|
+
const normalized = section.trim().toLowerCase();
|
|
65
|
+
if (!normalized)
|
|
66
|
+
return null;
|
|
67
|
+
for (const parsed of parseDocBundle(bundle)) {
|
|
68
|
+
if (parsed.id.toLowerCase() === normalized) {
|
|
69
|
+
return parsed.content;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
function buildDocSectionIndex(title, sectionIds, toolName) {
|
|
75
|
+
const sorted = [...sectionIds].sort((a, b) => a.localeCompare(b));
|
|
76
|
+
const lines = [
|
|
77
|
+
`# ${title}`,
|
|
78
|
+
"",
|
|
79
|
+
"Call this tool with `section` to load one document. Available sections:",
|
|
80
|
+
"",
|
|
81
|
+
...sorted.map((id) => `- \`${id}\` — \`${toolName}({ section: "${id}" })\``),
|
|
82
|
+
"",
|
|
83
|
+
];
|
|
84
|
+
return lines.join("\n");
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=doc-bundle-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doc-bundle-utils.js","sourceRoot":"","sources":["../../src/product-docs/doc-bundle-utils.ts"],"names":[],"mappings":";;AASA,oDAiCC;AAED,wCAuBC;AAED,8CAEC;AAED,wCAWC;AAED,oDAeC;AArGD,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAQrC,2DAA2D;AAC3D,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IACnC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAExC,MAAM,SAAS,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzD,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IAC9B,CAAC;IAED,MAAM,SAAS,GAAG,oBAAoB,CAAC,IAA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MAAM,KAAK,GAAG;QACZ,KAAK,KAAK,EAAE;QACZ,EAAE;QACF,yEAAyE;QACzE,EAAE;QACF,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,UAAU,QAAQ,gBAAgB,EAAE,QAAQ,CAAC;QAC5E,EAAE;KACH,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { loadAiDocsBundleFromDisk } from "./ai-docs-bundle.loader.js";
|
|
2
|
+
export { ASPM_DOC_FILES, loadAspmDocsBundleFromDisk } from "./aspm-docs-bundle.loader.js";
|
|
3
|
+
export { buildDocSectionIndex, listDocSectionIds, type ParsedDocSection, parseDocBundle, pickDocSection, sectionIdFromHeading, } from "./doc-bundle-utils.js";
|
|
4
|
+
export { KUBBISEC_MCP_ACTION_TOOLS, KUBBISEC_MCP_TOOLS, } from "./mcp-tools-catalog.js";
|
|
5
|
+
export { loadNausPipelineDocsBundleFromDisk, NAUS_WEB_DOC_IDS, } from "./naus-pipeline-docs-bundle.loader.js";
|
|
6
|
+
export { NAUS_SCHEMA_OVERVIEW } from "./naus-schema-overview.js";
|
|
7
|
+
export { buildSecurityScannerPlaybookPayload, buildSecurityScannersCatalogPayload, isSecurityScannerId, listPlaybookNausKindAspmSnippets, PLAYBOOK_ASPM_MATRIX_EXAMPLE, type PlaybookTopic, parseSecurityScannerPlaybookArgs, SCANNER_META, type ScannerPlatform, type ScannerPlaybookEntry, SECURITY_SCANNER_IDS, type SecurityScannerId, wrapPlaybookSnippetAsPipelineYaml, } from "./security-scanner-playbooks.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product-docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,KAAK,gBAAgB,EACrB,cAAc,EACd,cAAc,EACd,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kCAAkC,EAClC,gBAAgB,GACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,mCAAmC,EACnC,mCAAmC,EACnC,mBAAmB,EACnB,gCAAgC,EAChC,4BAA4B,EAC5B,KAAK,aAAa,EAClB,gCAAgC,EAChC,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,iCAAiC,GAClC,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wrapPlaybookSnippetAsPipelineYaml = exports.SECURITY_SCANNER_IDS = exports.SCANNER_META = exports.parseSecurityScannerPlaybookArgs = exports.PLAYBOOK_ASPM_MATRIX_EXAMPLE = exports.listPlaybookNausKindAspmSnippets = exports.isSecurityScannerId = exports.buildSecurityScannersCatalogPayload = exports.buildSecurityScannerPlaybookPayload = exports.NAUS_SCHEMA_OVERVIEW = exports.NAUS_WEB_DOC_IDS = exports.loadNausPipelineDocsBundleFromDisk = exports.KUBBISEC_MCP_TOOLS = exports.KUBBISEC_MCP_ACTION_TOOLS = exports.sectionIdFromHeading = exports.pickDocSection = exports.parseDocBundle = exports.listDocSectionIds = exports.buildDocSectionIndex = exports.loadAspmDocsBundleFromDisk = exports.ASPM_DOC_FILES = exports.loadAiDocsBundleFromDisk = void 0;
|
|
4
|
+
var ai_docs_bundle_loader_js_1 = require("./ai-docs-bundle.loader.js");
|
|
5
|
+
Object.defineProperty(exports, "loadAiDocsBundleFromDisk", { enumerable: true, get: function () { return ai_docs_bundle_loader_js_1.loadAiDocsBundleFromDisk; } });
|
|
6
|
+
var aspm_docs_bundle_loader_js_1 = require("./aspm-docs-bundle.loader.js");
|
|
7
|
+
Object.defineProperty(exports, "ASPM_DOC_FILES", { enumerable: true, get: function () { return aspm_docs_bundle_loader_js_1.ASPM_DOC_FILES; } });
|
|
8
|
+
Object.defineProperty(exports, "loadAspmDocsBundleFromDisk", { enumerable: true, get: function () { return aspm_docs_bundle_loader_js_1.loadAspmDocsBundleFromDisk; } });
|
|
9
|
+
var doc_bundle_utils_js_1 = require("./doc-bundle-utils.js");
|
|
10
|
+
Object.defineProperty(exports, "buildDocSectionIndex", { enumerable: true, get: function () { return doc_bundle_utils_js_1.buildDocSectionIndex; } });
|
|
11
|
+
Object.defineProperty(exports, "listDocSectionIds", { enumerable: true, get: function () { return doc_bundle_utils_js_1.listDocSectionIds; } });
|
|
12
|
+
Object.defineProperty(exports, "parseDocBundle", { enumerable: true, get: function () { return doc_bundle_utils_js_1.parseDocBundle; } });
|
|
13
|
+
Object.defineProperty(exports, "pickDocSection", { enumerable: true, get: function () { return doc_bundle_utils_js_1.pickDocSection; } });
|
|
14
|
+
Object.defineProperty(exports, "sectionIdFromHeading", { enumerable: true, get: function () { return doc_bundle_utils_js_1.sectionIdFromHeading; } });
|
|
15
|
+
var mcp_tools_catalog_js_1 = require("./mcp-tools-catalog.js");
|
|
16
|
+
Object.defineProperty(exports, "KUBBISEC_MCP_ACTION_TOOLS", { enumerable: true, get: function () { return mcp_tools_catalog_js_1.KUBBISEC_MCP_ACTION_TOOLS; } });
|
|
17
|
+
Object.defineProperty(exports, "KUBBISEC_MCP_TOOLS", { enumerable: true, get: function () { return mcp_tools_catalog_js_1.KUBBISEC_MCP_TOOLS; } });
|
|
18
|
+
var naus_pipeline_docs_bundle_loader_js_1 = require("./naus-pipeline-docs-bundle.loader.js");
|
|
19
|
+
Object.defineProperty(exports, "loadNausPipelineDocsBundleFromDisk", { enumerable: true, get: function () { return naus_pipeline_docs_bundle_loader_js_1.loadNausPipelineDocsBundleFromDisk; } });
|
|
20
|
+
Object.defineProperty(exports, "NAUS_WEB_DOC_IDS", { enumerable: true, get: function () { return naus_pipeline_docs_bundle_loader_js_1.NAUS_WEB_DOC_IDS; } });
|
|
21
|
+
var naus_schema_overview_js_1 = require("./naus-schema-overview.js");
|
|
22
|
+
Object.defineProperty(exports, "NAUS_SCHEMA_OVERVIEW", { enumerable: true, get: function () { return naus_schema_overview_js_1.NAUS_SCHEMA_OVERVIEW; } });
|
|
23
|
+
var security_scanner_playbooks_js_1 = require("./security-scanner-playbooks.js");
|
|
24
|
+
Object.defineProperty(exports, "buildSecurityScannerPlaybookPayload", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.buildSecurityScannerPlaybookPayload; } });
|
|
25
|
+
Object.defineProperty(exports, "buildSecurityScannersCatalogPayload", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.buildSecurityScannersCatalogPayload; } });
|
|
26
|
+
Object.defineProperty(exports, "isSecurityScannerId", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.isSecurityScannerId; } });
|
|
27
|
+
Object.defineProperty(exports, "listPlaybookNausKindAspmSnippets", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.listPlaybookNausKindAspmSnippets; } });
|
|
28
|
+
Object.defineProperty(exports, "PLAYBOOK_ASPM_MATRIX_EXAMPLE", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.PLAYBOOK_ASPM_MATRIX_EXAMPLE; } });
|
|
29
|
+
Object.defineProperty(exports, "parseSecurityScannerPlaybookArgs", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.parseSecurityScannerPlaybookArgs; } });
|
|
30
|
+
Object.defineProperty(exports, "SCANNER_META", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.SCANNER_META; } });
|
|
31
|
+
Object.defineProperty(exports, "SECURITY_SCANNER_IDS", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.SECURITY_SCANNER_IDS; } });
|
|
32
|
+
Object.defineProperty(exports, "wrapPlaybookSnippetAsPipelineYaml", { enumerable: true, get: function () { return security_scanner_playbooks_js_1.wrapPlaybookSnippetAsPipelineYaml; } });
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product-docs/index.ts"],"names":[],"mappings":";;;AAAA,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,2EAA0F;AAAjF,4HAAA,cAAc,OAAA;AAAE,wIAAA,0BAA0B,OAAA;AACnD,6DAO+B;AAN7B,2HAAA,oBAAoB,OAAA;AACpB,wHAAA,iBAAiB,OAAA;AAEjB,qHAAA,cAAc,OAAA;AACd,qHAAA,cAAc,OAAA;AACd,2HAAA,oBAAoB,OAAA;AAEtB,+DAGgC;AAF9B,iIAAA,yBAAyB,OAAA;AACzB,0HAAA,kBAAkB,OAAA;AAEpB,6FAG+C;AAF7C,yJAAA,kCAAkC,OAAA;AAClC,uIAAA,gBAAgB,OAAA;AAElB,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,iFAcyC;AAbvC,oJAAA,mCAAmC,OAAA;AACnC,oJAAA,mCAAmC,OAAA;AACnC,oIAAA,mBAAmB,OAAA;AACnB,iJAAA,gCAAgC,OAAA;AAChC,6IAAA,4BAA4B,OAAA;AAE5B,iJAAA,gCAAgC,OAAA;AAChC,6HAAA,YAAY,OAAA;AAGZ,qIAAA,oBAAoB,OAAA;AAEpB,kJAAA,iCAAiC,OAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Action tools exposed by @kubbisec/mcp (no documentation tools). */
|
|
2
|
+
export declare const KUBBISEC_MCP_ACTION_TOOLS: readonly ["resolve_project_by_repository", "list_project_by_repository_candidates", "list_vulnerabilities", "get_vulnerability", "trigger_kubbisec_scan", "get_kubbisec_scan_status", "list_kubbisec_scan_tasks", "cancel_kubbisec_scan_task", "generate_remediation_plan", "generate_issue_draft_for_vulnerability", "start_ai_remediation_run", "get_ai_remediation_run_status", "get_ai_remediation_run_logs", "validate_naus_pipeline_yaml", "list_pipeline_generation_jobs"];
|
|
3
|
+
export declare const KUBBISEC_MCP_TOOLS: readonly ["resolve_project_by_repository", "list_project_by_repository_candidates", "list_vulnerabilities", "get_vulnerability", "trigger_kubbisec_scan", "get_kubbisec_scan_status", "list_kubbisec_scan_tasks", "cancel_kubbisec_scan_task", "generate_remediation_plan", "generate_issue_draft_for_vulnerability", "start_ai_remediation_run", "get_ai_remediation_run_status", "get_ai_remediation_run_logs", "validate_naus_pipeline_yaml", "list_pipeline_generation_jobs"];
|
|
4
|
+
//# sourceMappingURL=mcp-tools-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-tools-catalog.d.ts","sourceRoot":"","sources":["../../src/product-docs/mcp-tools-catalog.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,eAAO,MAAM,yBAAyB,mdAgB5B,CAAC;AAEX,eAAO,MAAM,kBAAkB,mdAA0C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KUBBISEC_MCP_TOOLS = exports.KUBBISEC_MCP_ACTION_TOOLS = void 0;
|
|
4
|
+
/** Action tools exposed by @kubbisec/mcp (no documentation tools). */
|
|
5
|
+
exports.KUBBISEC_MCP_ACTION_TOOLS = [
|
|
6
|
+
"resolve_project_by_repository",
|
|
7
|
+
"list_project_by_repository_candidates",
|
|
8
|
+
"list_vulnerabilities",
|
|
9
|
+
"get_vulnerability",
|
|
10
|
+
"trigger_kubbisec_scan",
|
|
11
|
+
"get_kubbisec_scan_status",
|
|
12
|
+
"list_kubbisec_scan_tasks",
|
|
13
|
+
"cancel_kubbisec_scan_task",
|
|
14
|
+
"generate_remediation_plan",
|
|
15
|
+
"generate_issue_draft_for_vulnerability",
|
|
16
|
+
"start_ai_remediation_run",
|
|
17
|
+
"get_ai_remediation_run_status",
|
|
18
|
+
"get_ai_remediation_run_logs",
|
|
19
|
+
"validate_naus_pipeline_yaml",
|
|
20
|
+
"list_pipeline_generation_jobs",
|
|
21
|
+
];
|
|
22
|
+
exports.KUBBISEC_MCP_TOOLS = [...exports.KUBBISEC_MCP_ACTION_TOOLS];
|
|
23
|
+
//# sourceMappingURL=mcp-tools-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-tools-catalog.js","sourceRoot":"","sources":["../../src/product-docs/mcp-tools-catalog.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACzD,QAAA,yBAAyB,GAAG;IACvC,+BAA+B;IAC/B,uCAAuC;IACvC,sBAAsB;IACtB,mBAAmB;IACnB,uBAAuB;IACvB,0BAA0B;IAC1B,0BAA0B;IAC1B,2BAA2B;IAC3B,2BAA2B;IAC3B,wCAAwC;IACxC,0BAA0B;IAC1B,+BAA+B;IAC/B,6BAA6B;IAC7B,6BAA6B;IAC7B,+BAA+B;CACvB,CAAC;AAEE,QAAA,kBAAkB,GAAG,CAAC,GAAG,iCAAyB,CAAU,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Repo root when running from compiled `packages/shared/dist/product-docs/`. */
|
|
2
|
+
export declare function monorepoRootFromSharedModule(): string;
|
|
3
|
+
export declare function firstExistingDir(candidates: string[]): string | null;
|
|
4
|
+
//# sourceMappingURL=monorepo-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monorepo-root.d.ts","sourceRoot":"","sources":["../../src/product-docs/monorepo-root.ts"],"names":[],"mappings":"AAGA,iFAAiF;AACjF,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAOpE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.monorepoRootFromSharedModule = monorepoRootFromSharedModule;
|
|
4
|
+
exports.firstExistingDir = firstExistingDir;
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
/** Repo root when running from compiled `packages/shared/dist/product-docs/`. */
|
|
8
|
+
function monorepoRootFromSharedModule() {
|
|
9
|
+
return (0, node_path_1.join)(__dirname, "..", "..", "..", "..");
|
|
10
|
+
}
|
|
11
|
+
function firstExistingDir(candidates) {
|
|
12
|
+
for (const dir of candidates) {
|
|
13
|
+
if ((0, node_fs_1.existsSync)(dir)) {
|
|
14
|
+
return dir;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=monorepo-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monorepo-root.js","sourceRoot":"","sources":["../../src/product-docs/monorepo-root.ts"],"names":[],"mappings":";;AAIA,oEAEC;AAED,4CAOC;AAfD,qCAAqC;AACrC,yCAAiC;AAEjC,iFAAiF;AACjF,SAAgB,4BAA4B;IAC1C,OAAO,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,gBAAgB,CAAC,UAAoB;IACnD,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,IAAI,IAAA,oBAAU,EAAC,GAAG,CAAC,EAAE,CAAC;YACpB,OAAO,GAAG,CAAC;QACb,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Web internal docs. Order matters for readability. */
|
|
2
|
+
export declare const NAUS_WEB_DOC_IDS: readonly ["naus-quickstart", "naus-commands", "naus-runners", "naus-security", "naus-pipeline-overview", "naus-pipeline-only", "naus-pipeline-run", "naus-pipeline-depends", "naus-pipeline-anchors", "naus-pipeline-variables", "naus-pipeline-volumes", "naus-pipeline-script", "naus-pipeline-repository", "naus-pipeline-image", "naus-pipeline-docker-preset", "naus-pipeline-examples", "naus-aspm-integration", "naus-aspm-preset", "naus-aspm-matrix", "naus-aspm-gate"];
|
|
3
|
+
/**
|
|
4
|
+
* Reads NAUS markdown: web content/naus, legacy docs/naus extras, @kubbisec/naus-validation README.
|
|
5
|
+
*/
|
|
6
|
+
export declare function loadNausPipelineDocsBundleFromDisk(): Promise<{
|
|
7
|
+
bundle: string;
|
|
8
|
+
sourceDir: string | null;
|
|
9
|
+
triedPaths: string[];
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=naus-pipeline-docs-bundle.loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naus-pipeline-docs-bundle.loader.d.ts","sourceRoot":"","sources":["../../src/product-docs/naus-pipeline-docs-bundle.loader.ts"],"names":[],"mappings":"AAKA,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,kdAqBnB,CAAC;AA2EX;;GAEG;AACH,wBAAsB,kCAAkC,IAAI,OAAO,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC,CA8CD"}
|
package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NAUS_WEB_DOC_IDS = void 0;
|
|
4
|
+
exports.loadNausPipelineDocsBundleFromDisk = loadNausPipelineDocsBundleFromDisk;
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const promises_1 = require("node:fs/promises");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
|
+
const monorepo_root_js_1 = require("./monorepo-root.js");
|
|
9
|
+
/** Web internal docs. Order matters for readability. */
|
|
10
|
+
exports.NAUS_WEB_DOC_IDS = [
|
|
11
|
+
"naus-quickstart",
|
|
12
|
+
"naus-commands",
|
|
13
|
+
"naus-runners",
|
|
14
|
+
"naus-security",
|
|
15
|
+
"naus-pipeline-overview",
|
|
16
|
+
"naus-pipeline-only",
|
|
17
|
+
"naus-pipeline-run",
|
|
18
|
+
"naus-pipeline-depends",
|
|
19
|
+
"naus-pipeline-anchors",
|
|
20
|
+
"naus-pipeline-variables",
|
|
21
|
+
"naus-pipeline-volumes",
|
|
22
|
+
"naus-pipeline-script",
|
|
23
|
+
"naus-pipeline-repository",
|
|
24
|
+
"naus-pipeline-image",
|
|
25
|
+
"naus-pipeline-docker-preset",
|
|
26
|
+
"naus-pipeline-examples",
|
|
27
|
+
"naus-aspm-integration",
|
|
28
|
+
"naus-aspm-preset",
|
|
29
|
+
"naus-aspm-matrix",
|
|
30
|
+
"naus-aspm-gate",
|
|
31
|
+
];
|
|
32
|
+
/** Extra markdown only under docs/naus/ (not duplicated in web tree). */
|
|
33
|
+
const NAUS_LEGACY_DOC_FILES = [
|
|
34
|
+
"README.md",
|
|
35
|
+
"pipeline-reference.md",
|
|
36
|
+
"runner-management.md",
|
|
37
|
+
"troubleshooting.md",
|
|
38
|
+
];
|
|
39
|
+
function listWebNausDirCandidates() {
|
|
40
|
+
const out = [];
|
|
41
|
+
const add = (p) => {
|
|
42
|
+
if (!out.includes(p))
|
|
43
|
+
out.push(p);
|
|
44
|
+
};
|
|
45
|
+
const envDir = process.env.NAUS_WEB_DOCS_DIR?.trim();
|
|
46
|
+
if (envDir)
|
|
47
|
+
add(envDir);
|
|
48
|
+
const mcpSynced = process.env.MCP_DOCS_CONTENT_ROOT?.trim();
|
|
49
|
+
if (mcpSynced)
|
|
50
|
+
add((0, node_path_1.join)(mcpSynced, "naus"));
|
|
51
|
+
const root = (0, monorepo_root_js_1.monorepoRootFromSharedModule)();
|
|
52
|
+
add((0, node_path_1.join)(root, "apps", "mcp", "src", "resources", "content", "naus"));
|
|
53
|
+
add((0, node_path_1.join)(root, "apps", "mcp", "dist", "resources", "content", "naus"));
|
|
54
|
+
add((0, node_path_1.join)(root, "apps", "web", "src", "pages", "private", "docs", "content", "naus"));
|
|
55
|
+
const cwd = process.cwd();
|
|
56
|
+
add((0, node_path_1.join)(cwd, "apps", "web", "src", "pages", "private", "docs", "content", "naus"));
|
|
57
|
+
add((0, node_path_1.join)(cwd, "src", "resources", "content", "naus"));
|
|
58
|
+
add((0, node_path_1.join)(cwd, "resources", "content", "naus"));
|
|
59
|
+
add((0, node_path_1.join)(cwd, "..", "apps", "web", "src", "pages", "private", "docs", "content", "naus"));
|
|
60
|
+
add((0, node_path_1.join)(cwd, "..", "..", "apps", "web", "src", "pages", "private", "docs", "content", "naus"));
|
|
61
|
+
return out;
|
|
62
|
+
}
|
|
63
|
+
function listLegacyNausDirCandidates() {
|
|
64
|
+
const out = [];
|
|
65
|
+
const add = (p) => {
|
|
66
|
+
if (!out.includes(p))
|
|
67
|
+
out.push(p);
|
|
68
|
+
};
|
|
69
|
+
const envDir = process.env.NAUS_PIPELINE_DOCS_DIR?.trim();
|
|
70
|
+
if (envDir)
|
|
71
|
+
add(envDir);
|
|
72
|
+
const root = (0, monorepo_root_js_1.monorepoRootFromSharedModule)();
|
|
73
|
+
add((0, node_path_1.join)(root, "docs", "naus"));
|
|
74
|
+
const cwd = process.cwd();
|
|
75
|
+
add((0, node_path_1.join)(cwd, "docs", "naus"));
|
|
76
|
+
add((0, node_path_1.join)(cwd, "..", "docs", "naus"));
|
|
77
|
+
add((0, node_path_1.join)(cwd, "..", "..", "docs", "naus"));
|
|
78
|
+
return out;
|
|
79
|
+
}
|
|
80
|
+
function listValidationReadmeCandidates() {
|
|
81
|
+
const root = (0, monorepo_root_js_1.monorepoRootFromSharedModule)();
|
|
82
|
+
const cwd = process.cwd();
|
|
83
|
+
return [
|
|
84
|
+
(0, node_path_1.join)(root, "packages", "naus", "validation", "README.md"),
|
|
85
|
+
(0, node_path_1.join)(root, "packages", "naus-validation", "README.md"),
|
|
86
|
+
(0, node_path_1.join)(cwd, "packages", "naus", "validation", "README.md"),
|
|
87
|
+
(0, node_path_1.join)(cwd, "packages", "naus-validation", "README.md"),
|
|
88
|
+
(0, node_path_1.join)(cwd, "..", "packages", "naus", "validation", "README.md"),
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
async function readChunkIfExists(filePath, heading) {
|
|
92
|
+
if (!(0, node_fs_1.existsSync)(filePath))
|
|
93
|
+
return null;
|
|
94
|
+
const text = await (0, promises_1.readFile)(filePath, "utf8");
|
|
95
|
+
return `${heading}\n\n${text.trim()}\n`;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Reads NAUS markdown: web content/naus, legacy docs/naus extras, @kubbisec/naus-validation README.
|
|
99
|
+
*/
|
|
100
|
+
async function loadNausPipelineDocsBundleFromDisk() {
|
|
101
|
+
const webCandidates = listWebNausDirCandidates();
|
|
102
|
+
const legacyCandidates = listLegacyNausDirCandidates();
|
|
103
|
+
const triedPaths = [...webCandidates, ...legacyCandidates, ...listValidationReadmeCandidates()];
|
|
104
|
+
const chunks = [];
|
|
105
|
+
let sourceDir = null;
|
|
106
|
+
for (const dir of webCandidates) {
|
|
107
|
+
if (!(0, node_fs_1.existsSync)(dir))
|
|
108
|
+
continue;
|
|
109
|
+
const webChunks = [];
|
|
110
|
+
for (const id of exports.NAUS_WEB_DOC_IDS) {
|
|
111
|
+
const fp = (0, node_path_1.join)(dir, `${id}.md`);
|
|
112
|
+
const chunk = await readChunkIfExists(fp, `## naus/${id}`);
|
|
113
|
+
if (chunk)
|
|
114
|
+
webChunks.push(chunk);
|
|
115
|
+
}
|
|
116
|
+
if (webChunks.length > 0) {
|
|
117
|
+
chunks.push(...webChunks);
|
|
118
|
+
sourceDir = dir;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
for (const dir of legacyCandidates) {
|
|
123
|
+
if (!(0, node_fs_1.existsSync)(dir))
|
|
124
|
+
continue;
|
|
125
|
+
for (const file of NAUS_LEGACY_DOC_FILES) {
|
|
126
|
+
const fp = (0, node_path_1.join)(dir, file);
|
|
127
|
+
const chunk = await readChunkIfExists(fp, `## docs/naus/${file}`);
|
|
128
|
+
if (chunk)
|
|
129
|
+
chunks.push(chunk);
|
|
130
|
+
}
|
|
131
|
+
if (!sourceDir && chunks.length > 0)
|
|
132
|
+
sourceDir = dir;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
for (const fp of listValidationReadmeCandidates()) {
|
|
136
|
+
const chunk = await readChunkIfExists(fp, "## naus/validation");
|
|
137
|
+
if (chunk) {
|
|
138
|
+
chunks.push(chunk);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
bundle: chunks.length > 0 ? chunks.join("\n---\n\n") : "",
|
|
144
|
+
sourceDir,
|
|
145
|
+
triedPaths,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=naus-pipeline-docs-bundle.loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naus-pipeline-docs-bundle.loader.js","sourceRoot":"","sources":["../../src/product-docs/naus-pipeline-docs-bundle.loader.ts"],"names":[],"mappings":";;;AAyGA,gFAkDC;AA3JD,qCAAqC;AACrC,+CAA4C;AAC5C,yCAAiC;AACjC,yDAAkE;AAElE,wDAAwD;AAC3C,QAAA,gBAAgB,GAAG;IAC9B,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,eAAe;IACf,wBAAwB;IACxB,oBAAoB;IAC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AAE,SAAS;QAC/B,KAAK,MAAM,IAAI,IAAI,qBAAqB,EAAE,CAAC;YACzC,MAAM,EAAE,GAAG,IAAA,gBAAI,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAC3B,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,IAAI,EAAE,CAAC,CAAC;YAClE,IAAI,KAAK;gBAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QACD,IAAI,CAAC,SAAS,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC;YAAE,SAAS,GAAG,GAAG,CAAC;QACrD,MAAM;IACR,CAAC;IAED,KAAK,MAAM,EAAE,IAAI,8BAA8B,EAAE,EAAE,CAAC;QAClD,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,EAAE,EAAE,oBAAoB,CAAC,CAAC;QAChE,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO;QACL,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;QACzD,SAAS;QACT,UAAU;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const NAUS_SCHEMA_OVERVIEW = "NAUS pipeline YAML (cheat sheet \u2014 authoritative prose: naus_pipeline_docs, docs/naus/pipeline-reference.md):\n\nTOP-LEVEL (not GitHub Actions):\n- Required: run: (array of single-key job objects OR map job_id \u2192 config)\n- Optional: name, description, local, stages[], variables (map or KEY=value list), volumes[], repository, only[]\n- NEVER use top-level jobs:, env: (use variables:), needs:, commands:, steps:, or scanner:\n\nCONTAINER JOB (default kind: container):\n- image: + script: [string, ...] (required for container)\n- depends_on: [job_ids] (not needs:)\n- display_name, stage, variables|environment (one only), artifacts.paths[], only[], privileged\n\nASPM JOBS (declarative \u2014 no manual trivy/aspm CLI in script):\n- kind: aspm + tool: (trivy|gitleaks|syft|osv|semgrep|sonar|nmap|skipfish) + mode: scan|upload|scan-and-upload\n- kind: aspm_matrix + parallel: [{ tool: ... }, ...] + matrix_strategy: chain|fanout\n- kind: aspm_gate + rules: { vulnerabilities, coverage, risk_score, ... }\n- kind: aspm_preset + preset: kubbisec/default-security\n- kind: docker \u2014 build/registry preset (registry.server, tags; optional aspm.tool + aspm.gate.rules)\n\nMINIMAL EXAMPLE:\nname: ci\nrun:\n - build:\n image: node:20-alpine\n script: [npm ci, npm run build --if-present]\n - security:\n kind: aspm\n tool: trivy\n mode: scan-and-upload\n depends_on: [build]\n\nAlways call validate_naus_pipeline_yaml before persisting. privileged: true needs kbsc.ci.privileged.run.";
|
|
2
|
+
//# sourceMappingURL=naus-schema-overview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naus-schema-overview.d.ts","sourceRoot":"","sources":["../../src/product-docs/naus-schema-overview.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,y/CA+ByE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NAUS_SCHEMA_OVERVIEW = void 0;
|
|
4
|
+
exports.NAUS_SCHEMA_OVERVIEW = `NAUS pipeline YAML (cheat sheet — authoritative prose: naus_pipeline_docs, docs/naus/pipeline-reference.md):
|
|
5
|
+
|
|
6
|
+
TOP-LEVEL (not GitHub Actions):
|
|
7
|
+
- Required: run: (array of single-key job objects OR map job_id → config)
|
|
8
|
+
- Optional: name, description, local, stages[], variables (map or KEY=value list), volumes[], repository, only[]
|
|
9
|
+
- NEVER use top-level jobs:, env: (use variables:), needs:, commands:, steps:, or scanner:
|
|
10
|
+
|
|
11
|
+
CONTAINER JOB (default kind: container):
|
|
12
|
+
- image: + script: [string, ...] (required for container)
|
|
13
|
+
- depends_on: [job_ids] (not needs:)
|
|
14
|
+
- display_name, stage, variables|environment (one only), artifacts.paths[], only[], privileged
|
|
15
|
+
|
|
16
|
+
ASPM JOBS (declarative — no manual trivy/aspm CLI in script):
|
|
17
|
+
- kind: aspm + tool: (trivy|gitleaks|syft|osv|semgrep|sonar|nmap|skipfish) + mode: scan|upload|scan-and-upload
|
|
18
|
+
- kind: aspm_matrix + parallel: [{ tool: ... }, ...] + matrix_strategy: chain|fanout
|
|
19
|
+
- kind: aspm_gate + rules: { vulnerabilities, coverage, risk_score, ... }
|
|
20
|
+
- kind: aspm_preset + preset: kubbisec/default-security
|
|
21
|
+
- kind: docker — build/registry preset (registry.server, tags; optional aspm.tool + aspm.gate.rules)
|
|
22
|
+
|
|
23
|
+
MINIMAL EXAMPLE:
|
|
24
|
+
name: ci
|
|
25
|
+
run:
|
|
26
|
+
- build:
|
|
27
|
+
image: node:20-alpine
|
|
28
|
+
script: [npm ci, npm run build --if-present]
|
|
29
|
+
- security:
|
|
30
|
+
kind: aspm
|
|
31
|
+
tool: trivy
|
|
32
|
+
mode: scan-and-upload
|
|
33
|
+
depends_on: [build]
|
|
34
|
+
|
|
35
|
+
Always call validate_naus_pipeline_yaml before persisting. privileged: true needs kbsc.ci.privileged.run.`;
|
|
36
|
+
//# sourceMappingURL=naus-schema-overview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naus-schema-overview.js","sourceRoot":"","sources":["../../src/product-docs/naus-schema-overview.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0GA+BsE,CAAC"}
|