@convertcom/mcp-server 0.0.1-beta.6 → 0.0.1-beta.8
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/build/api-config.d.ts +1 -1
- package/build/api-config.js +10 -16
- package/build/api-config.js.map +1 -1
- package/build/executor.d.ts +1 -3
- package/build/executor.js +235 -51
- package/build/executor.js.map +1 -1
- package/build/index.d.ts +0 -8
- package/build/index.js +99 -45
- package/build/index.js.map +1 -1
- package/build/kb-hybrid.d.ts +20 -0
- package/build/kb-hybrid.js +69 -0
- package/build/kb-hybrid.js.map +1 -0
- package/build/kb-semantic.d.ts +16 -0
- package/build/kb-semantic.js +97 -0
- package/build/kb-semantic.js.map +1 -0
- package/build/namespaced.d.ts +6 -0
- package/build/namespaced.js +421 -51
- package/build/namespaced.js.map +1 -1
- package/build/shared.d.ts +6 -0
- package/build/shared.js +14 -0
- package/build/shared.js.map +1 -0
- package/build/tools.js +527 -816
- package/build/tools.js.map +1 -1
- package/package.json +27 -21
package/build/shared.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const JSON_SCHEMA_DRAFT_2020_12 = 'https://json-schema.org/draft/2020-12/schema';
|
|
2
|
+
/**
|
|
3
|
+
* Extract path parameter names from a URL template like "/accounts/{account_id}/projects/{project_id}".
|
|
4
|
+
*/
|
|
5
|
+
export function pathParamsFromTemplate(pathTemplate) {
|
|
6
|
+
const names = new Set();
|
|
7
|
+
const matches = pathTemplate.matchAll(/\{([^}]+)\}/g);
|
|
8
|
+
for (const match of matches) {
|
|
9
|
+
if (match[1])
|
|
10
|
+
names.add(match[1]);
|
|
11
|
+
}
|
|
12
|
+
return [...names];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,yBAAyB,GAAG,8CAA8C,CAAC;AAExF;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,YAAoB;IACzD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACtD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,KAAK,CAAC,CAAC,CAAC;YAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;AACpB,CAAC"}
|