@robinmordasiewicz/f5xc-api-mcp 2.0.5-2601050335 → 2.0.13-2601051957
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/CHANGELOG.md +25 -14
- package/README.md +9 -5
- package/dist/generator/domain-metadata.d.ts +162 -3
- package/dist/generator/domain-metadata.d.ts.map +1 -1
- package/dist/generator/domain-metadata.js +263 -20
- package/dist/generator/domain-metadata.js.map +1 -1
- package/dist/generator/naming/acronyms.d.ts +9 -2
- package/dist/generator/naming/acronyms.d.ts.map +1 -1
- package/dist/generator/naming/acronyms.js +35 -129
- package/dist/generator/naming/acronyms.js.map +1 -1
- package/dist/generator/naming/index.d.ts +1 -1
- package/dist/generator/naming/index.d.ts.map +1 -1
- package/dist/generator/naming/index.js +1 -1
- package/dist/generator/naming/index.js.map +1 -1
- package/dist/prompts/error-resolution.d.ts +7 -24
- package/dist/prompts/error-resolution.d.ts.map +1 -1
- package/dist/prompts/error-resolution.js +94 -296
- package/dist/prompts/error-resolution.js.map +1 -1
- package/dist/prompts/index.d.ts +2 -2
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +3 -3
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/workflows.d.ts +8 -16
- package/dist/prompts/workflows.d.ts.map +1 -1
- package/dist/prompts/workflows.js +100 -306
- package/dist/prompts/workflows.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +9 -7
- package/dist/server.js.map +1 -1
- package/dist/tools/discovery/best-practices.d.ts +1 -0
- package/dist/tools/discovery/best-practices.d.ts.map +1 -1
- package/dist/tools/discovery/best-practices.js +135 -226
- package/dist/tools/discovery/best-practices.js.map +1 -1
- package/dist/tools/discovery/cost-estimator.d.ts.map +1 -1
- package/dist/tools/discovery/cost-estimator.js +16 -4
- package/dist/tools/discovery/cost-estimator.js.map +1 -1
- package/dist/tools/generated/dependency-graph.json +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/dist/version.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/specs/domains/admin_console_and_ui.json +90 -26
- package/specs/domains/ai_services.json +149 -22
- package/specs/domains/api.json +598 -179
- package/specs/domains/authentication.json +198 -46
- package/specs/domains/bigip.json +326 -98
- package/specs/domains/billing_and_usage.json +289 -64
- package/specs/domains/blindfold.json +384 -110
- package/specs/domains/bot_and_threat_defense.json +256 -66
- package/specs/domains/cdn.json +477 -181
- package/specs/domains/ce_management.json +398 -118
- package/specs/domains/certificates.json +253 -78
- package/specs/domains/cloud_infrastructure.json +412 -115
- package/specs/domains/container_services.json +260 -95
- package/specs/domains/data_and_privacy_security.json +210 -68
- package/specs/domains/data_intelligence.json +225 -63
- package/specs/domains/ddos.json +690 -156
- package/specs/domains/dns.json +614 -149
- package/specs/domains/managed_kubernetes.json +317 -89
- package/specs/domains/marketplace.json +427 -104
- package/specs/domains/network.json +950 -231
- package/specs/domains/network_security.json +749 -188
- package/specs/domains/nginx_one.json +211 -63
- package/specs/domains/object_storage.json +126 -13
- package/specs/domains/observability.json +622 -103
- package/specs/domains/rate_limiting.json +208 -53
- package/specs/domains/secops_and_incident_response.json +122 -37
- package/specs/domains/service_mesh.json +484 -123
- package/specs/domains/shape.json +2359 -314
- package/specs/domains/sites.json +1572 -390
- package/specs/domains/statistics.json +892 -226
- package/specs/domains/support.json +544 -109
- package/specs/domains/telemetry_and_insights.json +312 -73
- package/specs/domains/tenant_and_identity.json +1881 -273
- package/specs/domains/threat_campaign.json +124 -67
- package/specs/domains/users.json +225 -72
- package/specs/domains/virtual.json +1157 -245
- package/specs/domains/vpm_and_node_management.json +59 -2
- package/specs/domains/waf.json +565 -140
- package/specs/index.json +1758 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acronyms.d.ts","sourceRoot":"","sources":["../../../src/generator/naming/acronyms.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"acronyms.d.ts","sourceRoot":"","sources":["../../../src/generator/naming/acronyms.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA0BH;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,SAAS,MAAM,EAAE,CAGxD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG/C;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG/D;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQhD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQhD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAejD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}
|
|
@@ -3,137 +3,34 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles consistent capitalization of technical acronyms in API
|
|
5
5
|
* documentation, tool names, and descriptions.
|
|
6
|
+
*
|
|
7
|
+
* Acronyms are sourced from upstream x-f5xc-acronyms extension (v2.0.10+)
|
|
8
|
+
*/
|
|
9
|
+
import { getAcronyms } from "../domain-metadata.js";
|
|
10
|
+
/**
|
|
11
|
+
* Cached acronym map for case-insensitive lookup
|
|
12
|
+
* Built lazily from upstream x-f5xc-acronyms data
|
|
6
13
|
*/
|
|
14
|
+
let acronymMap = null;
|
|
7
15
|
/**
|
|
8
|
-
*
|
|
16
|
+
* Build the acronym map from upstream data
|
|
9
17
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"IPv4",
|
|
19
|
-
"IPv6",
|
|
20
|
-
"BGP",
|
|
21
|
-
"OSPF",
|
|
22
|
-
"VLAN",
|
|
23
|
-
"VPN",
|
|
24
|
-
"CIDR",
|
|
25
|
-
"NAT",
|
|
26
|
-
"SNAT",
|
|
27
|
-
"DNAT",
|
|
28
|
-
"MAC",
|
|
29
|
-
"ARP",
|
|
30
|
-
"NIC",
|
|
31
|
-
"MTU",
|
|
32
|
-
"QoS",
|
|
33
|
-
"MPLS",
|
|
34
|
-
"GRE",
|
|
35
|
-
"VXLAN",
|
|
36
|
-
"IPsec",
|
|
37
|
-
"SSL",
|
|
38
|
-
"TLS",
|
|
39
|
-
"SNI",
|
|
40
|
-
// Security
|
|
41
|
-
"WAF",
|
|
42
|
-
"DDoS",
|
|
43
|
-
"XSS",
|
|
44
|
-
"CSRF",
|
|
45
|
-
"SQLi",
|
|
46
|
-
"OWASP",
|
|
47
|
-
"CVE",
|
|
48
|
-
"JWT",
|
|
49
|
-
"OAuth",
|
|
50
|
-
"SAML",
|
|
51
|
-
"LDAP",
|
|
52
|
-
"AD",
|
|
53
|
-
"ACL",
|
|
54
|
-
"RBAC",
|
|
55
|
-
"MFA",
|
|
56
|
-
"SSO",
|
|
57
|
-
"PKI",
|
|
58
|
-
// Load Balancing
|
|
59
|
-
"LB",
|
|
60
|
-
"SLB",
|
|
61
|
-
"GLB",
|
|
62
|
-
"GSLB",
|
|
63
|
-
"ADC",
|
|
64
|
-
// Cloud & Infrastructure
|
|
65
|
-
"AWS",
|
|
66
|
-
"GCP",
|
|
67
|
-
"Azure",
|
|
68
|
-
"VPC",
|
|
69
|
-
"VNet",
|
|
70
|
-
"EC2",
|
|
71
|
-
"EKS",
|
|
72
|
-
"AKS",
|
|
73
|
-
"GKE",
|
|
74
|
-
"VM",
|
|
75
|
-
"K8s",
|
|
76
|
-
"API",
|
|
77
|
-
"REST",
|
|
78
|
-
"gRPC",
|
|
79
|
-
"SDK",
|
|
80
|
-
"CLI",
|
|
81
|
-
"CDN",
|
|
82
|
-
"SaaS",
|
|
83
|
-
"PaaS",
|
|
84
|
-
"IaaS",
|
|
85
|
-
// F5 Specific
|
|
86
|
-
"XC",
|
|
87
|
-
"F5",
|
|
88
|
-
"BIG-IP",
|
|
89
|
-
"NGINX",
|
|
90
|
-
"RE",
|
|
91
|
-
"CE",
|
|
92
|
-
"POP",
|
|
93
|
-
// Standards & Formats
|
|
94
|
-
"JSON",
|
|
95
|
-
"XML",
|
|
96
|
-
"YAML",
|
|
97
|
-
"CSV",
|
|
98
|
-
"HTML",
|
|
99
|
-
"CSS",
|
|
100
|
-
"URL",
|
|
101
|
-
"URI",
|
|
102
|
-
"UUID",
|
|
103
|
-
"RFC",
|
|
104
|
-
"ISO",
|
|
105
|
-
"UTC",
|
|
106
|
-
"TTL",
|
|
107
|
-
// Protocols
|
|
108
|
-
"SMTP",
|
|
109
|
-
"IMAP",
|
|
110
|
-
"POP3",
|
|
111
|
-
"FTP",
|
|
112
|
-
"SFTP",
|
|
113
|
-
"SSH",
|
|
114
|
-
"RDP",
|
|
115
|
-
"SNMP",
|
|
116
|
-
"NTP",
|
|
117
|
-
"RADIUS",
|
|
118
|
-
"TACACS",
|
|
119
|
-
// Other
|
|
120
|
-
"CPU",
|
|
121
|
-
"GPU",
|
|
122
|
-
"RAM",
|
|
123
|
-
"SSD",
|
|
124
|
-
"HDD",
|
|
125
|
-
"IOPS",
|
|
126
|
-
"IO",
|
|
127
|
-
"ID",
|
|
128
|
-
"IDs",
|
|
129
|
-
"ASN",
|
|
130
|
-
"CRD",
|
|
131
|
-
"CRDs",
|
|
132
|
-
];
|
|
18
|
+
function buildAcronymMap() {
|
|
19
|
+
if (acronymMap) {
|
|
20
|
+
return acronymMap;
|
|
21
|
+
}
|
|
22
|
+
const acronyms = getAcronyms();
|
|
23
|
+
acronymMap = new Map(acronyms.map((entry) => [entry.acronym.toLowerCase(), entry.acronym]));
|
|
24
|
+
return acronymMap;
|
|
25
|
+
}
|
|
133
26
|
/**
|
|
134
|
-
*
|
|
27
|
+
* Get all technical acronyms as a simple string array
|
|
28
|
+
* Sourced from upstream x-f5xc-acronyms extension
|
|
135
29
|
*/
|
|
136
|
-
|
|
30
|
+
export function getTechnicalAcronyms() {
|
|
31
|
+
const acronyms = getAcronyms();
|
|
32
|
+
return Object.freeze(acronyms.map((entry) => entry.acronym));
|
|
33
|
+
}
|
|
137
34
|
/**
|
|
138
35
|
* Check if a word is a known acronym
|
|
139
36
|
*
|
|
@@ -141,7 +38,8 @@ const ACRONYM_MAP = new Map(TECHNICAL_ACRONYMS.map((acronym) => [acronym.toLower
|
|
|
141
38
|
* @returns True if the word is a known acronym
|
|
142
39
|
*/
|
|
143
40
|
export function isAcronym(word) {
|
|
144
|
-
|
|
41
|
+
const map = buildAcronymMap();
|
|
42
|
+
return map.has(word.toLowerCase());
|
|
145
43
|
}
|
|
146
44
|
/**
|
|
147
45
|
* Get the canonical form of an acronym
|
|
@@ -150,7 +48,8 @@ export function isAcronym(word) {
|
|
|
150
48
|
* @returns Canonical acronym form or null if not an acronym
|
|
151
49
|
*/
|
|
152
50
|
export function getCanonicalAcronym(word) {
|
|
153
|
-
|
|
51
|
+
const map = buildAcronymMap();
|
|
52
|
+
return map.get(word.toLowerCase()) ?? null;
|
|
154
53
|
}
|
|
155
54
|
/**
|
|
156
55
|
* Convert a string to kebab-case with normalized acronyms
|
|
@@ -195,11 +94,12 @@ export function toSnakeCase(text) {
|
|
|
195
94
|
* @returns PascalCase string
|
|
196
95
|
*/
|
|
197
96
|
export function toPascalCase(text) {
|
|
97
|
+
const map = buildAcronymMap();
|
|
198
98
|
return text
|
|
199
99
|
.trim()
|
|
200
100
|
.split(/[\s_-]+/)
|
|
201
101
|
.map((word) => {
|
|
202
|
-
const acronym =
|
|
102
|
+
const acronym = map.get(word.toLowerCase());
|
|
203
103
|
if (acronym) {
|
|
204
104
|
// Keep acronyms as-is for PascalCase
|
|
205
105
|
return acronym;
|
|
@@ -221,4 +121,10 @@ export function toCamelCase(text) {
|
|
|
221
121
|
const pascal = toPascalCase(text);
|
|
222
122
|
return pascal.charAt(0).toLowerCase() + pascal.slice(1);
|
|
223
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Clear the acronym cache (useful for testing)
|
|
126
|
+
*/
|
|
127
|
+
export function clearAcronymCache() {
|
|
128
|
+
acronymMap = null;
|
|
129
|
+
}
|
|
224
130
|
//# sourceMappingURL=acronyms.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acronyms.js","sourceRoot":"","sources":["../../../src/generator/naming/acronyms.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"acronyms.js","sourceRoot":"","sources":["../../../src/generator/naming/acronyms.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Pre-enriched specs from robinmordasiewicz/f5xc-api-enriched already have
|
|
5
5
|
* naming transformations applied, so legacy transform functions have been removed.
|
|
6
6
|
*/
|
|
7
|
-
export {
|
|
7
|
+
export { getTechnicalAcronyms, isAcronym, getCanonicalAcronym, toKebabCase, toSnakeCase, toPascalCase, toCamelCase, clearAcronymCache, } from "./acronyms.js";
|
|
8
8
|
export { generateToolName, extractResourceFromPath, methodToOperation, } from "./volterra-mapping.js";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generator/naming/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generator/naming/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC"}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Pre-enriched specs from robinmordasiewicz/f5xc-api-enriched already have
|
|
5
5
|
* naming transformations applied, so legacy transform functions have been removed.
|
|
6
6
|
*/
|
|
7
|
-
export {
|
|
7
|
+
export { getTechnicalAcronyms, isAcronym, getCanonicalAcronym, toKebabCase, toSnakeCase, toPascalCase, toCamelCase, clearAcronymCache, } from "./acronyms.js";
|
|
8
8
|
export { generateToolName, extractResourceFromPath, methodToOperation, } from "./volterra-mapping.js";
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generator/naming/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generator/naming/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC"}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Error Resolution Prompts (Phase B)
|
|
3
3
|
*
|
|
4
4
|
* Provides guided diagnosis and resolution workflows for common
|
|
5
|
-
* F5XC API errors.
|
|
6
|
-
* systematically with framework-specific guidance.
|
|
5
|
+
* F5XC API errors. Prompts are now sourced from upstream x-f5xc-error-resolution (v2.0.8+).
|
|
7
6
|
*/
|
|
8
7
|
/**
|
|
9
8
|
* Error resolution prompt definition
|
|
@@ -32,29 +31,9 @@ export interface ErrorPromptArgument {
|
|
|
32
31
|
required: boolean;
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
34
|
+
* Get all error prompts (dynamically generated from upstream)
|
|
36
35
|
*/
|
|
37
|
-
export declare
|
|
38
|
-
/**
|
|
39
|
-
* 403 Forbidden - Authorization Issues
|
|
40
|
-
*/
|
|
41
|
-
export declare const error403Prompt: ErrorPrompt;
|
|
42
|
-
/**
|
|
43
|
-
* 404 Not Found - Resource Issues
|
|
44
|
-
*/
|
|
45
|
-
export declare const error404Prompt: ErrorPrompt;
|
|
46
|
-
/**
|
|
47
|
-
* 409 Conflict - Resource Conflict Issues
|
|
48
|
-
*/
|
|
49
|
-
export declare const error409Prompt: ErrorPrompt;
|
|
50
|
-
/**
|
|
51
|
-
* 500 Internal Server Error - Server Issues
|
|
52
|
-
*/
|
|
53
|
-
export declare const error500Prompt: ErrorPrompt;
|
|
54
|
-
/**
|
|
55
|
-
* All error resolution prompts
|
|
56
|
-
*/
|
|
57
|
-
export declare const ERROR_PROMPTS: ErrorPrompt[];
|
|
36
|
+
export declare function getErrorPrompts(): ErrorPrompt[];
|
|
58
37
|
/**
|
|
59
38
|
* Get error prompt by HTTP status code
|
|
60
39
|
*/
|
|
@@ -67,4 +46,8 @@ export declare function getErrorPromptByName(name: string): ErrorPrompt | undefi
|
|
|
67
46
|
* Process error prompt template with arguments
|
|
68
47
|
*/
|
|
69
48
|
export declare function processErrorTemplate(prompt: ErrorPrompt, args: Record<string, string>): string;
|
|
49
|
+
/**
|
|
50
|
+
* Clear cached error prompts (useful for testing)
|
|
51
|
+
*/
|
|
52
|
+
export declare function clearErrorCache(): void;
|
|
70
53
|
//# sourceMappingURL=error-resolution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-resolution.d.ts","sourceRoot":"","sources":["../../src/prompts/error-resolution.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"error-resolution.d.ts","sourceRoot":"","sources":["../../src/prompts/error-resolution.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,sBAAsB;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAkHD;;GAEG;AACH,wBAAgB,eAAe,IAAI,WAAW,EAAE,CAE/C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CASpE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAG1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAS9F;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAEtC"}
|