@http-forge/core 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +224 -224
- package/dist/index.mjs +237 -237
- package/dist/runtime/mcp-collection-utils.d.ts +29 -1
- package/package.json +1 -1
|
@@ -11,10 +11,38 @@ export interface FlatRequest {
|
|
|
11
11
|
request: CollectionRequestItem;
|
|
12
12
|
folderPath: string;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Encode a single folder name segment so that '/' within the name is
|
|
16
|
+
* unambiguous from the '/' path separator used in folderPath strings.
|
|
17
|
+
* Only '/' is encoded; all other characters are left as-is.
|
|
18
|
+
*/
|
|
19
|
+
export declare function encodeFolderName(name: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Decode a single folder name segment back to its display form.
|
|
22
|
+
*/
|
|
23
|
+
export declare function decodeFolderName(name: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Convert an internal folderPath (segments joined by '/', with '/' inside
|
|
26
|
+
* names encoded as '%2F') to a human-readable display string.
|
|
27
|
+
* E.g. "agl-page-composition/TRAY%2FEPG/AVS5-5303 - TRAY%2FEPG"
|
|
28
|
+
* → "agl-page-composition / TRAY/EPG / AVS5-5303 - TRAY/EPG"
|
|
29
|
+
*/
|
|
30
|
+
export declare function decodeFolderPath(folderPath: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Convert a user-supplied folder input to an internal folderPath.
|
|
33
|
+
* Accepts both the display form ("A / B/C / D" with ' / ' separators)
|
|
34
|
+
* and the raw form ("A/B/C"). In the raw form, each slash that matches a
|
|
35
|
+
* known separator boundary is kept; slashes within a segment are encoded.
|
|
36
|
+
* The simplest reliable approach: if ' / ' is present, treat it as the
|
|
37
|
+
* separator; otherwise encode all '/' as '%2F' (treating the whole input
|
|
38
|
+
* as a single folder name or leaf to match by inclusion).
|
|
39
|
+
*/
|
|
40
|
+
export declare function normalizeFolderInput(input: string): string;
|
|
14
41
|
/** Flatten all requests in a collection into a list with their folder paths. */
|
|
15
42
|
export declare function flattenRequests(collection: Collection, items?: CollectionItem[], folderPath?: string): FlatRequest[];
|
|
16
|
-
/** Enumerate every folder path in a collection along with its recursive request count. */
|
|
43
|
+
/** Enumerate every folder path in a collection along with its id and recursive request count. */
|
|
17
44
|
export declare function enumerateFolders(collection: Collection, items?: CollectionItem[], prefix?: string): Array<{
|
|
45
|
+
folderId: string;
|
|
18
46
|
folderPath: string;
|
|
19
47
|
requestCount: number;
|
|
20
48
|
}>;
|
package/package.json
CHANGED