@babamba2/abap-mcp-adt-powerup 4.6.0 → 4.7.0
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/handlers/common/high/handleActivateObjects.d.ts +81 -0
- package/dist/handlers/common/high/handleActivateObjects.d.ts.map +1 -0
- package/dist/handlers/common/high/handleActivateObjects.js +123 -0
- package/dist/handlers/common/high/handleActivateObjects.js.map +1 -0
- package/dist/handlers/common/low/handleActivateObject.d.ts.map +1 -1
- package/dist/handlers/common/low/handleActivateObject.js +30 -27
- package/dist/handlers/common/low/handleActivateObject.js.map +1 -1
- package/dist/handlers/gui_status/high/handlePatchGuiStatus.d.ts +57 -0
- package/dist/handlers/gui_status/high/handlePatchGuiStatus.d.ts.map +1 -0
- package/dist/handlers/gui_status/high/handlePatchGuiStatus.js +216 -0
- package/dist/handlers/gui_status/high/handlePatchGuiStatus.js.map +1 -0
- package/dist/handlers/gui_status/high/handleUpdateGuiStatus.d.ts +11 -3
- package/dist/handlers/gui_status/high/handleUpdateGuiStatus.d.ts.map +1 -1
- package/dist/handlers/gui_status/high/handleUpdateGuiStatus.js +39 -6
- package/dist/handlers/gui_status/high/handleUpdateGuiStatus.js.map +1 -1
- package/dist/handlers/include/high/handleCreateInclude.d.ts +13 -1
- package/dist/handlers/include/high/handleCreateInclude.d.ts.map +1 -1
- package/dist/handlers/include/high/handleCreateInclude.js +127 -29
- package/dist/handlers/include/high/handleCreateInclude.js.map +1 -1
- package/dist/handlers/system/readonly/handleRuntimeGetDumpById.d.ts +8 -1
- package/dist/handlers/system/readonly/handleRuntimeGetDumpById.d.ts.map +1 -1
- package/dist/handlers/system/readonly/handleRuntimeGetDumpById.js +72 -8
- package/dist/handlers/system/readonly/handleRuntimeGetDumpById.js.map +1 -1
- package/dist/handlers/system/readonly/handleRuntimeGetGatewayErrorLog.d.ts +48 -0
- package/dist/handlers/system/readonly/handleRuntimeGetGatewayErrorLog.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleRuntimeGetGatewayErrorLog.js +81 -0
- package/dist/handlers/system/readonly/handleRuntimeGetGatewayErrorLog.js.map +1 -0
- package/dist/handlers/system/readonly/handleRuntimeListFeeds.d.ts +50 -0
- package/dist/handlers/system/readonly/handleRuntimeListFeeds.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleRuntimeListFeeds.js +104 -0
- package/dist/handlers/system/readonly/handleRuntimeListFeeds.js.map +1 -0
- package/dist/handlers/system/readonly/handleRuntimeListSystemMessages.d.ts +43 -0
- package/dist/handlers/system/readonly/handleRuntimeListSystemMessages.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleRuntimeListSystemMessages.js +61 -0
- package/dist/handlers/system/readonly/handleRuntimeListSystemMessages.js.map +1 -0
- package/dist/handlers/system/readonly/runtimeFeedsHelper.d.ts +165 -0
- package/dist/handlers/system/readonly/runtimeFeedsHelper.d.ts.map +1 -0
- package/dist/handlers/system/readonly/runtimeFeedsHelper.js +399 -0
- package/dist/handlers/system/readonly/runtimeFeedsHelper.js.map +1 -0
- package/dist/handlers/text_element/high/handleReadTextElementsBulk.d.ts +41 -0
- package/dist/handlers/text_element/high/handleReadTextElementsBulk.d.ts.map +1 -0
- package/dist/handlers/text_element/high/handleReadTextElementsBulk.js +104 -0
- package/dist/handlers/text_element/high/handleReadTextElementsBulk.js.map +1 -0
- package/dist/handlers/text_element/high/handleWriteTextElementsBulk.d.ts +87 -0
- package/dist/handlers/text_element/high/handleWriteTextElementsBulk.d.ts.map +1 -0
- package/dist/handlers/text_element/high/handleWriteTextElementsBulk.js +210 -0
- package/dist/handlers/text_element/high/handleWriteTextElementsBulk.js.map +1 -0
- package/dist/lib/cuaSchema.d.ts +113 -0
- package/dist/lib/cuaSchema.d.ts.map +1 -0
- package/dist/lib/cuaSchema.js +208 -0
- package/dist/lib/cuaSchema.js.map +1 -0
- package/dist/lib/gatewayRfc.d.ts +1 -1
- package/dist/lib/gatewayRfc.d.ts.map +1 -1
- package/dist/lib/gatewayRfc.js.map +1 -1
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.d.ts.map +1 -1
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.js +20 -0
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.js.map +1 -1
- package/dist/lib/handlers/groups/SystemHandlersGroup.d.ts.map +1 -1
- package/dist/lib/handlers/groups/SystemHandlersGroup.js +15 -0
- package/dist/lib/handlers/groups/SystemHandlersGroup.js.map +1 -1
- package/dist/lib/localGroupActivation.d.ts +88 -0
- package/dist/lib/localGroupActivation.d.ts.map +1 -0
- package/dist/lib/localGroupActivation.js +271 -0
- package/dist/lib/localGroupActivation.js.map +1 -0
- package/dist/lib/nativeRfc.d.ts +1 -1
- package/dist/lib/nativeRfc.d.ts.map +1 -1
- package/dist/lib/nativeRfc.js.map +1 -1
- package/dist/lib/odataRfc.d.ts +1 -1
- package/dist/lib/odataRfc.d.ts.map +1 -1
- package/dist/lib/odataRfc.js.map +1 -1
- package/dist/lib/resolveAdtUri.d.ts +35 -0
- package/dist/lib/resolveAdtUri.d.ts.map +1 -0
- package/dist/lib/resolveAdtUri.js +121 -0
- package/dist/lib/resolveAdtUri.js.map +1 -0
- package/dist/lib/soapRfc.d.ts +5 -2
- package/dist/lib/soapRfc.d.ts.map +1 -1
- package/dist/lib/soapRfc.js +4 -1
- package/dist/lib/soapRfc.js.map +1 -1
- package/dist/lib/textElementsSource.d.ts +81 -0
- package/dist/lib/textElementsSource.d.ts.map +1 -0
- package/dist/lib/textElementsSource.js +184 -0
- package/dist/lib/textElementsSource.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime feeds helper — Atom XML parsers, feed URLs, query builder.
|
|
3
|
+
*
|
|
4
|
+
* Ported from fr0ster/mcp-abap-adt's FeedRepository (v5 adt-clients) so that
|
|
5
|
+
* powerup can expose fr0ster's feed tools (RuntimeListSystemMessages,
|
|
6
|
+
* RuntimeGetGatewayErrorLog, RuntimeListFeeds) while still pinned to
|
|
7
|
+
* @mcp-abap-adt/adt-clients ^3.10.2, where getFeeds() returns a raw Axios
|
|
8
|
+
* response instead of the IFeedRepository facade.
|
|
9
|
+
*
|
|
10
|
+
* Covers three ADT feeds:
|
|
11
|
+
* - /sap/bc/adt/runtime/dumps
|
|
12
|
+
* - /sap/bc/adt/runtime/systemmessages
|
|
13
|
+
* - /sap/bc/adt/gw/errorlog
|
|
14
|
+
*/
|
|
15
|
+
import type { IAbapConnection } from '@mcp-abap-adt/interfaces';
|
|
16
|
+
export declare const FEED_URLS: {
|
|
17
|
+
readonly dumps: "/sap/bc/adt/runtime/dumps";
|
|
18
|
+
readonly systemMessages: "/sap/bc/adt/runtime/systemmessages";
|
|
19
|
+
readonly gatewayErrors: "/sap/bc/adt/gw/errorlog";
|
|
20
|
+
};
|
|
21
|
+
export interface IFeedQueryOptions {
|
|
22
|
+
user?: string;
|
|
23
|
+
maxResults?: number;
|
|
24
|
+
from?: string;
|
|
25
|
+
to?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IFeedDescriptor {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
url: string;
|
|
31
|
+
category?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IFeedVariant {
|
|
34
|
+
id: string;
|
|
35
|
+
title: string;
|
|
36
|
+
url: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IFeedEntry {
|
|
39
|
+
id: string;
|
|
40
|
+
title: string;
|
|
41
|
+
updated: string;
|
|
42
|
+
link: string;
|
|
43
|
+
content: string;
|
|
44
|
+
author?: string;
|
|
45
|
+
category?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ISystemMessageEntry {
|
|
48
|
+
id: string;
|
|
49
|
+
title: string;
|
|
50
|
+
text: string;
|
|
51
|
+
severity: string;
|
|
52
|
+
validFrom: string;
|
|
53
|
+
validTo: string;
|
|
54
|
+
createdBy: string;
|
|
55
|
+
}
|
|
56
|
+
export interface IGatewayErrorEntry {
|
|
57
|
+
type: string;
|
|
58
|
+
shortText: string;
|
|
59
|
+
transactionId: string;
|
|
60
|
+
package: string;
|
|
61
|
+
applicationComponent: string;
|
|
62
|
+
dateTime: string;
|
|
63
|
+
username: string;
|
|
64
|
+
client: string;
|
|
65
|
+
requestKind: string;
|
|
66
|
+
link?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Enriched ST22 runtime-dump feed entry — fields sourced from atom:category,
|
|
70
|
+
* atom:author, atom:published, atom:link[rel=self] and the embedded HTML
|
|
71
|
+
* summary (Short Text / Runtime Error / Exception / Program / App Component /
|
|
72
|
+
* Date/Time / User / Client / Host).
|
|
73
|
+
*/
|
|
74
|
+
export interface IDumpFeedEntry {
|
|
75
|
+
id: string;
|
|
76
|
+
dumpId: string;
|
|
77
|
+
detailUrl: string;
|
|
78
|
+
published: string;
|
|
79
|
+
updated: string;
|
|
80
|
+
shortText: string;
|
|
81
|
+
runtimeError: string;
|
|
82
|
+
exception: string;
|
|
83
|
+
program: string;
|
|
84
|
+
applicationComponent: string;
|
|
85
|
+
dateTime: string;
|
|
86
|
+
user: string;
|
|
87
|
+
client: string;
|
|
88
|
+
host: string;
|
|
89
|
+
}
|
|
90
|
+
export interface ICallStackEntry {
|
|
91
|
+
number: number | string;
|
|
92
|
+
event: string;
|
|
93
|
+
program: string;
|
|
94
|
+
name: string;
|
|
95
|
+
line: number | string;
|
|
96
|
+
}
|
|
97
|
+
export interface ISourceCodeLine {
|
|
98
|
+
number: number | string;
|
|
99
|
+
content: string;
|
|
100
|
+
isError: boolean;
|
|
101
|
+
}
|
|
102
|
+
export interface IGatewayException {
|
|
103
|
+
type: string;
|
|
104
|
+
text: string;
|
|
105
|
+
raiseLocation: string;
|
|
106
|
+
}
|
|
107
|
+
export interface IGatewayErrorDetail {
|
|
108
|
+
type: string;
|
|
109
|
+
shortText: string;
|
|
110
|
+
transactionId: string;
|
|
111
|
+
package: string;
|
|
112
|
+
applicationComponent: string;
|
|
113
|
+
dateTime: string;
|
|
114
|
+
username: string;
|
|
115
|
+
client: string;
|
|
116
|
+
requestKind: string;
|
|
117
|
+
serviceInfo: {
|
|
118
|
+
namespace: string;
|
|
119
|
+
serviceName: string;
|
|
120
|
+
serviceVersion: string;
|
|
121
|
+
groupId: string;
|
|
122
|
+
serviceRepository: string;
|
|
123
|
+
destination: string;
|
|
124
|
+
};
|
|
125
|
+
errorContext: {
|
|
126
|
+
errorInfo: string;
|
|
127
|
+
resolution: Record<string, unknown>;
|
|
128
|
+
exceptions: IGatewayException[];
|
|
129
|
+
};
|
|
130
|
+
sourceCode: {
|
|
131
|
+
lines: ISourceCodeLine[];
|
|
132
|
+
errorLine: number | string;
|
|
133
|
+
};
|
|
134
|
+
callStack: ICallStackEntry[];
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Parse the `<b>Label</b></td><td>value</td>` tables embedded inside ADT feed
|
|
138
|
+
* `<atom:summary type="html">` content. Returns a Map keyed by normalized
|
|
139
|
+
* lowercase label ("short text", "runtime error", ...). Strips inner tags and
|
|
140
|
+
* trims whitespace.
|
|
141
|
+
*/
|
|
142
|
+
export declare function parseHtmlSummaryTable(summaryHtml: string): Map<string, string>;
|
|
143
|
+
/**
|
|
144
|
+
* Build query string for feed URLs.
|
|
145
|
+
* userAttribute differs per feed: 'user' for dumps/systemMessages, 'username'
|
|
146
|
+
* for gateway errors.
|
|
147
|
+
*/
|
|
148
|
+
export declare function buildFeedQueryParams(options?: IFeedQueryOptions, userAttribute?: string): string;
|
|
149
|
+
/**
|
|
150
|
+
* Fetch a feed URL with optional query params. Accept header set to Atom XML.
|
|
151
|
+
*/
|
|
152
|
+
export declare function fetchFeed(connection: IAbapConnection, feedUrl: string, options?: IFeedQueryOptions, userAttribute?: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
153
|
+
export declare function parseAtomFeed(xml: string): IFeedEntry[];
|
|
154
|
+
export declare function parseFeedDescriptors(xml: string): IFeedDescriptor[];
|
|
155
|
+
export declare function parseFeedVariants(xml: string): IFeedVariant[];
|
|
156
|
+
export declare function parseSystemMessages(xml: string): ISystemMessageEntry[];
|
|
157
|
+
export declare function parseGatewayErrors(xml: string): IGatewayErrorEntry[];
|
|
158
|
+
/**
|
|
159
|
+
* Enriched parser for ST22 `/sap/bc/adt/runtime/dumps` Atom feed. Extracts
|
|
160
|
+
* program, user, exception, host, etc. directly from the feed's embedded
|
|
161
|
+
* HTML summary so callers don't need a per-dump detail fetch.
|
|
162
|
+
*/
|
|
163
|
+
export declare function parseRuntimeDumpFeed(xml: string): IDumpFeedEntry[];
|
|
164
|
+
export declare function parseGatewayErrorDetail(xml: string): IGatewayErrorDetail;
|
|
165
|
+
//# sourceMappingURL=runtimeFeedsHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeFeedsHelper.d.ts","sourceRoot":"","sources":["../../../../src/handlers/system/readonly/runtimeFeedsHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAIhE,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AAEX,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE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M,CAAC;KAC5B,CAAC;IACF,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B;AAoED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,GAClB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA4BrB;AAcD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,CAAC,EAAE,iBAAiB,EAC3B,aAAa,GAAE,MAAe,GAC7B,MAAM,CAgBR;AAED;;GAEG;AACH,wBAAsB,SAAS,CAC7B,UAAU,EAAE,eAAe,EAC3B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,iBAAiB,EAC3B,aAAa,CAAC,EAAE,MAAM,wDAcvB;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,EAAE,CAavD;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,EAAE,CAUnE;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,CAS7D;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAoBtE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAoDpE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,EAAE,CAuDlE;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAmFxE"}
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Runtime feeds helper — Atom XML parsers, feed URLs, query builder.
|
|
4
|
+
*
|
|
5
|
+
* Ported from fr0ster/mcp-abap-adt's FeedRepository (v5 adt-clients) so that
|
|
6
|
+
* powerup can expose fr0ster's feed tools (RuntimeListSystemMessages,
|
|
7
|
+
* RuntimeGetGatewayErrorLog, RuntimeListFeeds) while still pinned to
|
|
8
|
+
* @mcp-abap-adt/adt-clients ^3.10.2, where getFeeds() returns a raw Axios
|
|
9
|
+
* response instead of the IFeedRepository facade.
|
|
10
|
+
*
|
|
11
|
+
* Covers three ADT feeds:
|
|
12
|
+
* - /sap/bc/adt/runtime/dumps
|
|
13
|
+
* - /sap/bc/adt/runtime/systemmessages
|
|
14
|
+
* - /sap/bc/adt/gw/errorlog
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.FEED_URLS = void 0;
|
|
18
|
+
exports.parseHtmlSummaryTable = parseHtmlSummaryTable;
|
|
19
|
+
exports.buildFeedQueryParams = buildFeedQueryParams;
|
|
20
|
+
exports.fetchFeed = fetchFeed;
|
|
21
|
+
exports.parseAtomFeed = parseAtomFeed;
|
|
22
|
+
exports.parseFeedDescriptors = parseFeedDescriptors;
|
|
23
|
+
exports.parseFeedVariants = parseFeedVariants;
|
|
24
|
+
exports.parseSystemMessages = parseSystemMessages;
|
|
25
|
+
exports.parseGatewayErrors = parseGatewayErrors;
|
|
26
|
+
exports.parseRuntimeDumpFeed = parseRuntimeDumpFeed;
|
|
27
|
+
exports.parseGatewayErrorDetail = parseGatewayErrorDetail;
|
|
28
|
+
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
29
|
+
const utils_1 = require("../../../lib/utils");
|
|
30
|
+
exports.FEED_URLS = {
|
|
31
|
+
dumps: '/sap/bc/adt/runtime/dumps',
|
|
32
|
+
systemMessages: '/sap/bc/adt/runtime/systemmessages',
|
|
33
|
+
gatewayErrors: '/sap/bc/adt/gw/errorlog',
|
|
34
|
+
};
|
|
35
|
+
const xmlParser = new fast_xml_parser_1.XMLParser({
|
|
36
|
+
ignoreAttributes: false,
|
|
37
|
+
attributeNamePrefix: '@_',
|
|
38
|
+
removeNSPrefix: true,
|
|
39
|
+
processEntities: false,
|
|
40
|
+
});
|
|
41
|
+
function extractText(value) {
|
|
42
|
+
if (value === undefined || value === null)
|
|
43
|
+
return '';
|
|
44
|
+
if (typeof value === 'object') {
|
|
45
|
+
const rec = value;
|
|
46
|
+
if (typeof rec['#text'] === 'string')
|
|
47
|
+
return rec['#text'];
|
|
48
|
+
if (typeof rec['#text'] === 'number')
|
|
49
|
+
return String(rec['#text']);
|
|
50
|
+
return '';
|
|
51
|
+
}
|
|
52
|
+
return String(value);
|
|
53
|
+
}
|
|
54
|
+
function extractCategoryTerm(entry) {
|
|
55
|
+
const cat = entry?.category;
|
|
56
|
+
if (!cat)
|
|
57
|
+
return undefined;
|
|
58
|
+
if (typeof cat === 'object')
|
|
59
|
+
return cat['@_term'];
|
|
60
|
+
return String(cat);
|
|
61
|
+
}
|
|
62
|
+
function toArray(v) {
|
|
63
|
+
if (v === undefined || v === null)
|
|
64
|
+
return [];
|
|
65
|
+
return Array.isArray(v) ? v : [v];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Decode HTML entities commonly found in ADT feed `<atom:summary type="html">`
|
|
69
|
+
* payloads (nbsp, lt, gt, amp, quot, ndash, mdash, numeric refs).
|
|
70
|
+
*/
|
|
71
|
+
function decodeHtmlEntitiesOnce(input) {
|
|
72
|
+
return input
|
|
73
|
+
.replace(/&/g, '&')
|
|
74
|
+
.replace(/ /g, ' ')
|
|
75
|
+
.replace(/</g, '<')
|
|
76
|
+
.replace(/>/g, '>')
|
|
77
|
+
.replace(/"/g, '"')
|
|
78
|
+
.replace(/'/g, "'")
|
|
79
|
+
.replace(/–/g, '–')
|
|
80
|
+
.replace(/—/g, '—')
|
|
81
|
+
.replace(/&#(\d+);/g, (_m, code) => String.fromCharCode(Number(code)))
|
|
82
|
+
.replace(/&#x([\da-fA-F]+);/g, (_m, code) => String.fromCharCode(parseInt(code, 16)));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* ADT feeds frequently double-encode HTML (e.g. `&nbsp;`) because the
|
|
86
|
+
* `<atom:summary>` body is already escaped for XML. Run the decoder until
|
|
87
|
+
* the string is stable so both layers unwind.
|
|
88
|
+
*/
|
|
89
|
+
function decodeHtmlEntities(input) {
|
|
90
|
+
if (!input)
|
|
91
|
+
return '';
|
|
92
|
+
let prev = input;
|
|
93
|
+
for (let i = 0; i < 3; i += 1) {
|
|
94
|
+
const next = decodeHtmlEntitiesOnce(prev);
|
|
95
|
+
if (next === prev)
|
|
96
|
+
return next;
|
|
97
|
+
prev = next;
|
|
98
|
+
}
|
|
99
|
+
return prev;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Parse the `<b>Label</b></td><td>value</td>` tables embedded inside ADT feed
|
|
103
|
+
* `<atom:summary type="html">` content. Returns a Map keyed by normalized
|
|
104
|
+
* lowercase label ("short text", "runtime error", ...). Strips inner tags and
|
|
105
|
+
* trims whitespace.
|
|
106
|
+
*/
|
|
107
|
+
function parseHtmlSummaryTable(summaryHtml) {
|
|
108
|
+
const map = new Map();
|
|
109
|
+
if (!summaryHtml)
|
|
110
|
+
return map;
|
|
111
|
+
// The helper accepts either already-decoded HTML or escaped-inside-XML HTML.
|
|
112
|
+
// If we see `<b>`, decode once.
|
|
113
|
+
const decoded = summaryHtml.includes('<')
|
|
114
|
+
? decodeHtmlEntities(summaryHtml)
|
|
115
|
+
: summaryHtml;
|
|
116
|
+
const rowRegex = /<b[^>]*>\s*([^<]+?)\s*<\/b>\s*<\/td>\s*<td[^>]*>\s*([\s\S]*?)\s*<\/td>/gi;
|
|
117
|
+
let m = rowRegex.exec(decoded);
|
|
118
|
+
while (m) {
|
|
119
|
+
const label = m[1]
|
|
120
|
+
.replace(/\u00a0/g, ' ')
|
|
121
|
+
.replace(/\s+/g, ' ')
|
|
122
|
+
.trim()
|
|
123
|
+
.toLowerCase();
|
|
124
|
+
const rawValue = m[2]
|
|
125
|
+
.replace(/<[^>]+>/g, '')
|
|
126
|
+
.replace(/\u00a0/g, ' ')
|
|
127
|
+
.replace(/\s+/g, ' ')
|
|
128
|
+
.trim();
|
|
129
|
+
if (label && !map.has(label)) {
|
|
130
|
+
map.set(label, rawValue);
|
|
131
|
+
}
|
|
132
|
+
m = rowRegex.exec(decoded);
|
|
133
|
+
}
|
|
134
|
+
return map;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Convert Gateway `atom:id` prefix ("FrontendError", "BackendError", ...) to
|
|
138
|
+
* the human-readable label used throughout SAP UIs ("Frontend Error", ...).
|
|
139
|
+
*/
|
|
140
|
+
function prettyTypeFromIdPrefix(prefix) {
|
|
141
|
+
if (!prefix)
|
|
142
|
+
return '';
|
|
143
|
+
return prefix
|
|
144
|
+
.replace(/([a-z])([A-Z])/g, '$1 $2')
|
|
145
|
+
.replace(/\s+/g, ' ')
|
|
146
|
+
.trim();
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Build query string for feed URLs.
|
|
150
|
+
* userAttribute differs per feed: 'user' for dumps/systemMessages, 'username'
|
|
151
|
+
* for gateway errors.
|
|
152
|
+
*/
|
|
153
|
+
function buildFeedQueryParams(options, userAttribute = 'user') {
|
|
154
|
+
if (!options)
|
|
155
|
+
return '';
|
|
156
|
+
const params = new URLSearchParams();
|
|
157
|
+
if (options.user) {
|
|
158
|
+
params.set('$query', `and ( equals ( ${userAttribute} , ${options.user.trim()} ) )`);
|
|
159
|
+
}
|
|
160
|
+
if (options.maxResults) {
|
|
161
|
+
params.set('$top', String(options.maxResults));
|
|
162
|
+
}
|
|
163
|
+
if (options.from)
|
|
164
|
+
params.set('from', options.from);
|
|
165
|
+
if (options.to)
|
|
166
|
+
params.set('to', options.to);
|
|
167
|
+
const query = params.toString();
|
|
168
|
+
return query ? `?${query}` : '';
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Fetch a feed URL with optional query params. Accept header set to Atom XML.
|
|
172
|
+
*/
|
|
173
|
+
async function fetchFeed(connection, feedUrl, options, userAttribute) {
|
|
174
|
+
const url = `${feedUrl}${buildFeedQueryParams(options, userAttribute)}`;
|
|
175
|
+
return (0, utils_1.makeAdtRequestWithTimeout)(connection, url, 'GET', 'default', undefined, undefined, {
|
|
176
|
+
Accept: 'application/atom+xml;type=feed',
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function parseAtomFeed(xml) {
|
|
180
|
+
const parsed = xmlParser.parse(xml);
|
|
181
|
+
const feed = parsed?.feed;
|
|
182
|
+
if (!feed?.entry)
|
|
183
|
+
return [];
|
|
184
|
+
return toArray(feed.entry).map((entry) => ({
|
|
185
|
+
id: entry.id ?? '',
|
|
186
|
+
title: extractText(entry.title),
|
|
187
|
+
updated: entry.updated ?? '',
|
|
188
|
+
link: entry.link?.['@_href'] ?? '',
|
|
189
|
+
content: extractText(entry.content),
|
|
190
|
+
author: entry.author?.name,
|
|
191
|
+
category: extractCategoryTerm(entry),
|
|
192
|
+
}));
|
|
193
|
+
}
|
|
194
|
+
function parseFeedDescriptors(xml) {
|
|
195
|
+
const parsed = xmlParser.parse(xml);
|
|
196
|
+
const feed = parsed?.feed;
|
|
197
|
+
if (!feed?.entry)
|
|
198
|
+
return [];
|
|
199
|
+
return toArray(feed.entry).map((entry) => ({
|
|
200
|
+
id: entry.id ?? '',
|
|
201
|
+
title: extractText(entry.title),
|
|
202
|
+
url: entry.link?.['@_href'] ?? '',
|
|
203
|
+
category: extractCategoryTerm(entry),
|
|
204
|
+
}));
|
|
205
|
+
}
|
|
206
|
+
function parseFeedVariants(xml) {
|
|
207
|
+
const parsed = xmlParser.parse(xml);
|
|
208
|
+
const feed = parsed?.feed;
|
|
209
|
+
if (!feed?.entry)
|
|
210
|
+
return [];
|
|
211
|
+
return toArray(feed.entry).map((entry) => ({
|
|
212
|
+
id: entry.id ?? '',
|
|
213
|
+
title: extractText(entry.title),
|
|
214
|
+
url: entry.link?.['@_href'] ?? '',
|
|
215
|
+
}));
|
|
216
|
+
}
|
|
217
|
+
function parseSystemMessages(xml) {
|
|
218
|
+
const parsed = xmlParser.parse(xml);
|
|
219
|
+
const feed = parsed?.feed;
|
|
220
|
+
if (!feed?.entry)
|
|
221
|
+
return [];
|
|
222
|
+
return toArray(feed.entry).map((entry) => ({
|
|
223
|
+
id: entry.id ?? '',
|
|
224
|
+
title: extractText(entry.title),
|
|
225
|
+
text: extractText(entry.content),
|
|
226
|
+
severity: String(entry.severity ??
|
|
227
|
+
entry['sm:severity'] ??
|
|
228
|
+
entry.category?.['@_term'] ??
|
|
229
|
+
''),
|
|
230
|
+
validFrom: String(entry.validFrom ?? entry['sm:validFrom'] ?? entry.updated ?? ''),
|
|
231
|
+
validTo: String(entry.validTo ?? entry['sm:validTo'] ?? ''),
|
|
232
|
+
createdBy: entry.author?.name ?? '',
|
|
233
|
+
}));
|
|
234
|
+
}
|
|
235
|
+
function parseGatewayErrors(xml) {
|
|
236
|
+
const parsed = xmlParser.parse(xml);
|
|
237
|
+
const feed = parsed?.feed;
|
|
238
|
+
if (!feed?.entry)
|
|
239
|
+
return [];
|
|
240
|
+
return toArray(feed.entry).map((entry) => {
|
|
241
|
+
// atom:id carries the entry type as a prefix, e.g.
|
|
242
|
+
// "FrontendError/020000DD4A3B..." → "Frontend Error".
|
|
243
|
+
const rawId = typeof entry.id === 'string' ? entry.id : '';
|
|
244
|
+
const slashIdx = rawId.indexOf('/');
|
|
245
|
+
const idPrefix = slashIdx > 0 ? rawId.slice(0, slashIdx) : '';
|
|
246
|
+
// Fallback: some feeds still use <atom:category term="...">.
|
|
247
|
+
const type = prettyTypeFromIdPrefix(idPrefix) || extractCategoryTerm(entry) || '';
|
|
248
|
+
// Everything else lives inside the embedded HTML summary table.
|
|
249
|
+
const summaryHtml = typeof entry.summary === 'object'
|
|
250
|
+
? extractText(entry.summary)
|
|
251
|
+
: String(entry.summary ?? '');
|
|
252
|
+
const table = parseHtmlSummaryTable(summaryHtml);
|
|
253
|
+
// Transaction ID cell contains extra "(Replay in GW Client)" link — strip
|
|
254
|
+
// everything from the first whitespace onward to isolate the GUID.
|
|
255
|
+
const rawTxId = table.get('transaction id') ?? '';
|
|
256
|
+
const transactionId = rawTxId.split(/\s+/)[0] ?? '';
|
|
257
|
+
// The title cell for GW entries is redundant; prefer the short-text row.
|
|
258
|
+
const shortText = table.get('short text') ?? extractText(entry.title) ?? '';
|
|
259
|
+
// Compose a fetchable detail URL. GW entries often lack <atom:link>, so
|
|
260
|
+
// synthesize /sap/bc/adt/gw/errorlog/{Pretty Type}/{GUID} from atom:id.
|
|
261
|
+
const hrefFromLink = entry.link?.['@_href'];
|
|
262
|
+
const guid = slashIdx > 0 ? rawId.slice(slashIdx + 1) : '';
|
|
263
|
+
const synthesizedLink = type && guid
|
|
264
|
+
? `/sap/bc/adt/gw/errorlog/${encodeURIComponent(type)}/${guid}`
|
|
265
|
+
: '';
|
|
266
|
+
const link = hrefFromLink || synthesizedLink;
|
|
267
|
+
return {
|
|
268
|
+
type,
|
|
269
|
+
shortText,
|
|
270
|
+
transactionId,
|
|
271
|
+
package: table.get('package') ?? '',
|
|
272
|
+
applicationComponent: table.get('application component') ?? '',
|
|
273
|
+
dateTime: entry.updated ?? '',
|
|
274
|
+
username: entry.author?.name ?? '',
|
|
275
|
+
client: table.get('client') ?? '',
|
|
276
|
+
requestKind: table.get('request kind') ?? '',
|
|
277
|
+
link,
|
|
278
|
+
};
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Enriched parser for ST22 `/sap/bc/adt/runtime/dumps` Atom feed. Extracts
|
|
283
|
+
* program, user, exception, host, etc. directly from the feed's embedded
|
|
284
|
+
* HTML summary so callers don't need a per-dump detail fetch.
|
|
285
|
+
*/
|
|
286
|
+
function parseRuntimeDumpFeed(xml) {
|
|
287
|
+
const parsed = xmlParser.parse(xml);
|
|
288
|
+
const feed = parsed?.feed;
|
|
289
|
+
if (!feed?.entry)
|
|
290
|
+
return [];
|
|
291
|
+
return toArray(feed.entry).map((entry) => {
|
|
292
|
+
const id = typeof entry.id === 'string' ? entry.id : '';
|
|
293
|
+
// Dump ID is the last path segment of atom:id.
|
|
294
|
+
const dumpId = id.split('/').pop() ?? '';
|
|
295
|
+
// Entries typically carry two category terms — first is the runtime
|
|
296
|
+
// error code (e.g. COMPUTE_INT_PLUS_OVERFLOW), second is the program.
|
|
297
|
+
let runtimeError = '';
|
|
298
|
+
let programFromCategory = '';
|
|
299
|
+
const cats = toArray(entry.category);
|
|
300
|
+
if (cats.length > 0) {
|
|
301
|
+
runtimeError = cats[0]?.['@_term'] ?? '';
|
|
302
|
+
}
|
|
303
|
+
if (cats.length > 1) {
|
|
304
|
+
programFromCategory = cats[1]?.['@_term'] ?? '';
|
|
305
|
+
}
|
|
306
|
+
// atom:link with rel=self carries the canonical dump-detail URL.
|
|
307
|
+
const selfLink = toArray(entry.link).find((l) => l?.['@_rel'] === 'self');
|
|
308
|
+
const detailUrl = selfLink?.['@_href'] ?? '';
|
|
309
|
+
// Parse the rich HTML summary for human-facing fields.
|
|
310
|
+
const summaryHtml = typeof entry.summary === 'object'
|
|
311
|
+
? extractText(entry.summary)
|
|
312
|
+
: String(entry.summary ?? '');
|
|
313
|
+
const table = parseHtmlSummaryTable(summaryHtml);
|
|
314
|
+
return {
|
|
315
|
+
id,
|
|
316
|
+
dumpId,
|
|
317
|
+
detailUrl,
|
|
318
|
+
published: entry.published ?? '',
|
|
319
|
+
updated: entry.updated ?? '',
|
|
320
|
+
shortText: table.get('short text') ?? '',
|
|
321
|
+
// Prefer the HTML row, but empty-string cells fall through to the
|
|
322
|
+
// category term so category info is not lost when a row exists but is
|
|
323
|
+
// blank.
|
|
324
|
+
runtimeError: table.get('runtime error') || runtimeError,
|
|
325
|
+
exception: table.get('exception') ?? '',
|
|
326
|
+
program: table.get('program') || programFromCategory,
|
|
327
|
+
applicationComponent: table.get('application component') ?? '',
|
|
328
|
+
dateTime: table.get('date/time') ?? '',
|
|
329
|
+
user: table.get('user') || entry.author?.name || '',
|
|
330
|
+
client: table.get('client') ?? '',
|
|
331
|
+
host: table.get('host') ?? '',
|
|
332
|
+
};
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
function parseGatewayErrorDetail(xml) {
|
|
336
|
+
const parsed = xmlParser.parse(xml);
|
|
337
|
+
const root = parsed?.['errorlog:errorEntry'] ?? parsed?.['errorEntry'] ?? parsed ?? {};
|
|
338
|
+
const callStackRaw = root['errorlog:callStack']?.['errorlog:entry'] ??
|
|
339
|
+
root.callStack?.entry ??
|
|
340
|
+
[];
|
|
341
|
+
const callStack = toArray(callStackRaw).map((e, idx) => ({
|
|
342
|
+
number: e['@_number'] ?? idx,
|
|
343
|
+
event: e['@_event'] ?? '',
|
|
344
|
+
program: e['@_program'] ?? '',
|
|
345
|
+
name: e['@_name'] ?? '',
|
|
346
|
+
line: e['@_line'] ?? 0,
|
|
347
|
+
}));
|
|
348
|
+
const linesRaw = root['errorlog:sourceCode']?.['errorlog:line'] ??
|
|
349
|
+
root.sourceCode?.line ??
|
|
350
|
+
[];
|
|
351
|
+
const sourceLines = toArray(linesRaw).map((l, idx) => ({
|
|
352
|
+
number: l?.['@_number'] ?? idx,
|
|
353
|
+
content: extractText(l),
|
|
354
|
+
isError: l?.['@_isError'] === 'true' || l?.['@_isError'] === true,
|
|
355
|
+
}));
|
|
356
|
+
const exceptionsRaw = root['errorlog:errorContext']?.['errorlog:exceptions']?.['errorlog:exception'] ??
|
|
357
|
+
root.errorContext?.exceptions?.exception ??
|
|
358
|
+
[];
|
|
359
|
+
const exceptions = toArray(exceptionsRaw).map((ex) => ({
|
|
360
|
+
type: ex?.['@_type'] ?? '',
|
|
361
|
+
text: extractText(ex),
|
|
362
|
+
raiseLocation: ex?.['@_raiseLocation'] ?? '',
|
|
363
|
+
}));
|
|
364
|
+
const serviceInfo = root['errorlog:serviceInfo'] ?? root.serviceInfo ?? {};
|
|
365
|
+
return {
|
|
366
|
+
type: root['@_type'] ?? '',
|
|
367
|
+
shortText: root['errorlog:shortText'] ?? root.shortText ?? '',
|
|
368
|
+
transactionId: root['errorlog:transactionId'] ?? root.transactionId ?? '',
|
|
369
|
+
package: root['errorlog:package'] ?? root.package ?? '',
|
|
370
|
+
applicationComponent: root['errorlog:applicationComponent'] ?? root.applicationComponent ?? '',
|
|
371
|
+
dateTime: root['errorlog:dateTime'] ?? root.dateTime ?? '',
|
|
372
|
+
username: root['errorlog:username'] ?? root.username ?? '',
|
|
373
|
+
client: root['errorlog:client'] ?? root.client ?? '',
|
|
374
|
+
requestKind: root['errorlog:requestKind'] ?? root.requestKind ?? '',
|
|
375
|
+
serviceInfo: {
|
|
376
|
+
namespace: serviceInfo['@_namespace'] ?? '',
|
|
377
|
+
serviceName: serviceInfo['@_serviceName'] ?? '',
|
|
378
|
+
serviceVersion: serviceInfo['@_serviceVersion'] ?? '',
|
|
379
|
+
groupId: serviceInfo['@_groupId'] ?? '',
|
|
380
|
+
serviceRepository: serviceInfo['@_serviceRepository'] ?? '',
|
|
381
|
+
destination: serviceInfo['@_destination'] ?? '',
|
|
382
|
+
},
|
|
383
|
+
errorContext: {
|
|
384
|
+
errorInfo: root['errorlog:errorContext']?.['errorlog:errorInfo'] ??
|
|
385
|
+
root.errorContext?.errorInfo ??
|
|
386
|
+
'',
|
|
387
|
+
resolution: {},
|
|
388
|
+
exceptions,
|
|
389
|
+
},
|
|
390
|
+
sourceCode: {
|
|
391
|
+
lines: sourceLines,
|
|
392
|
+
errorLine: root['errorlog:sourceCode']?.['@_errorLine'] ??
|
|
393
|
+
root.sourceCode?.['@_errorLine'] ??
|
|
394
|
+
0,
|
|
395
|
+
},
|
|
396
|
+
callStack,
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
//# sourceMappingURL=runtimeFeedsHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeFeedsHelper.js","sourceRoot":"","sources":["../../../../src/handlers/system/readonly/runtimeFeedsHelper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAkNH,sDA8BC;AAmBD,oDAmBC;AAKD,8BAkBC;AAED,sCAaC;AAED,oDAUC;AAED,8CASC;AAED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,IAAI,IAAI,CAAC,QAAQ,IAAI,EAAE;QAC1D,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC,MAAM,IAAI,EAAE;QACpD,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,IAAI,CAAC,WAAW,IAAI,EAAE;QACnE,WAAW,EAAE;YACX,SAAS,EAAE,WAAW,CAAC,aAAa,CAAC,IAAI,EAAE;YAC3C,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,IAAI,EAAE;YAC/C,cAAc,EAAE,WAAW,CAAC,kBAAkB,CAAC,IAAI,EAAE;YACrD,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC,IAAI,EAAE;YACvC,iBAAiB,EAAE,WAAW,CAAC,qBAAqB,CAAC,IAAI,EAAE;YAC3D,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,IAAI,EAAE;SAChD;QACD,YAAY,EAAE;YACZ,SAAS,EACP,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,oBAAoB,CAAC;gBACrD,IAAI,CAAC,YAAY,EAAE,SAAS;gBAC5B,EAAE;YACJ,UAAU,EAAE,EAAE;YACd,UAAU;SACX;QACD,UAAU,EAAE;YACV,KAAK,EAAE,WAAW;YAClB,SAAS,EACP,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC,aAAa,CAAC;gBAC5C,IAAI,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC;gBAChC,CAAC;SACJ;QACD,SAAS;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ReadTextElementsBulk — return every text element of a program in ONE call.
|
|
3
|
+
*
|
|
4
|
+
* Matches WriteTextElementsBulk semantics: we read the whole TPOOL via the
|
|
5
|
+
* `ZMCP_ADT_TEXTPOOL` RFC (single SAP round-trip) and partition the rows
|
|
6
|
+
* by ID (R / I / S / H). The native /textelements subsource endpoints
|
|
7
|
+
* exist but only surface the editor-view of I/S/H and don't expose R at
|
|
8
|
+
* all, so using TPOOL RFC directly keeps this tool aligned with the
|
|
9
|
+
* WriteTextElementsBulk storage path and exposes every type uniformly.
|
|
10
|
+
*
|
|
11
|
+
* Existing single-row GetTextElement stays row-by-row for callers that
|
|
12
|
+
* want one entry.
|
|
13
|
+
*/
|
|
14
|
+
import type { HandlerContext } from '../../../lib/handlers/interfaces';
|
|
15
|
+
export declare const TOOL_DEFINITION: {
|
|
16
|
+
readonly name: "ReadTextElementsBulk";
|
|
17
|
+
readonly available_in: readonly ["onprem", "legacy"];
|
|
18
|
+
readonly description: "Read every text element (R/I/S/H) of a program in ONE call via the TPOOL RFC. Partitions rows by type and returns structured arrays. Use this instead of calling GetTextElement per row.";
|
|
19
|
+
readonly inputSchema: {
|
|
20
|
+
readonly type: "object";
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly program_name: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly description: "Program name.";
|
|
25
|
+
};
|
|
26
|
+
readonly language: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly description: "1-char language. Defaults to SAP logon language.";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly required: readonly ["program_name"];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare function handleReadTextElementsBulk(context: HandlerContext, params: any): Promise<{
|
|
35
|
+
isError: boolean;
|
|
36
|
+
content: {
|
|
37
|
+
type: string;
|
|
38
|
+
text: any;
|
|
39
|
+
}[];
|
|
40
|
+
}>;
|
|
41
|
+
//# sourceMappingURL=handleReadTextElementsBulk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleReadTextElementsBulk.d.ts","sourceRoot":"","sources":["../../../../src/handlers/text_element/high/handleReadTextElementsBulk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AASvE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAgBlB,CAAC;AAcX,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,GAAG;;;;;;GAgFZ"}
|