@frontmcp/sdk 1.10.9-rc.3 → 1.10.9-rc.5
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/auth/auth-ui/auth-ui.render.d.ts.map +1 -1
- package/browser/auth/auth-ui/auth-ui.render.mjs +1 -4
- package/browser/builtin/config/providers/config-loader.mjs +1 -1
- package/browser/direct/direct-client.mjs +3 -6
- package/browser/esm-loader/semver.utils.mjs +9 -7
- package/browser/index.cjs +567 -537
- package/browser/remote-mcp/mcp-client.service.mjs +1 -5
- package/browser/skill/sep-2640/sep-2640.builders.mjs +1 -1
- package/browser/skill/skill-md-parser.mjs +1 -1
- package/browser/third-party/js-yaml.mjs +6 -0
- package/browser/third-party/semver.mjs +17 -0
- package/browser/third-party/uipack-render.mjs +6 -0
- package/browser/transport/adapters/transport.sse.adapter.mjs +17 -5
- package/browser/transport/in-memory-server.mjs +7 -15
- package/browser/transport/transport.registry.mjs +4 -1
- package/browser/transport/web-standard-mcp.mjs +1 -15
- package/builtin/config/providers/config-loader.d.ts.map +1 -1
- package/esm/index.mjs +17 -17
- package/esm-loader/semver.utils.d.ts.map +1 -1
- package/index.js +17 -17
- package/package.json +25 -10
- package/remote-mcp/mcp-client.service.d.ts.map +1 -1
- package/remote-mcp/mcp-client.types.d.ts +2 -1
- package/remote-mcp/mcp-client.types.d.ts.map +1 -1
- package/third-party/js-yaml.d.ts +2 -0
- package/third-party/js-yaml.d.ts.map +1 -0
- package/third-party/js-yaml.js +1 -0
- package/third-party/lazy-js-yaml.d.ts +2 -0
- package/third-party/lazy-js-yaml.d.ts.map +1 -0
- package/third-party/lazy-js-yaml.js +1 -0
- package/third-party/lazy-semver.d.ts +2 -0
- package/third-party/lazy-semver.d.ts.map +1 -0
- package/third-party/lazy-semver.js +1 -0
- package/third-party/lazy-uipack-render.d.ts +2 -0
- package/third-party/lazy-uipack-render.d.ts.map +1 -0
- package/third-party/lazy-uipack-render.js +1 -0
- package/third-party/semver.d.ts +8 -0
- package/third-party/semver.d.ts.map +1 -0
- package/third-party/semver.js +1 -0
- package/third-party/uipack-render.d.ts +2 -0
- package/third-party/uipack-render.d.ts.map +1 -0
- package/third-party/uipack-render.js +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts +2 -1
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +1 -1
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/index.d.ts +1 -1
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/web-standard-mcp.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-ui.render.d.ts","sourceRoot":"","sources":["../../../src/auth/auth-ui/auth-ui.render.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth-ui.render.d.ts","sourceRoot":"","sources":["../../../src/auth/auth-ui/auth-ui.render.ts"],"names":[],"mappings":"AA4CA,OAAO,EAAwB,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC5G,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAIxD;AAKD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAYnE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,WAAW,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAgBrE;AAED,gGAAgG;AAChG,eAAO,MAAM,WAAW,QAAc,CAAC;AAEvC;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,GAAE,MAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQnF;AAED,kFAAkF;AAClF,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAE9D;AAiBD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE;IACvC,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,SAAS,CAwChE"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// libs/sdk/src/auth/auth-ui/auth-ui.render.ts
|
|
2
|
-
import {
|
|
3
|
-
createResolverWithOverrides,
|
|
4
|
-
renderComponent
|
|
5
|
-
} from "@frontmcp/uipack";
|
|
2
|
+
import { createResolverWithOverrides, renderComponent } from "../../third-party/uipack-render.mjs";
|
|
6
3
|
import { AUTH_FLOW_GLOBAL_KEY, AUTH_MOUNT_ID } from "./auth-ui.contract.mjs";
|
|
7
4
|
function authUiExtraPath(fullPath) {
|
|
8
5
|
return `${fullPath.replace(/\/+$/, "")}/oauth/ui/extra`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// libs/sdk/src/builtin/config/providers/config-loader.ts
|
|
2
|
-
import * as yaml from "js-yaml";
|
|
3
2
|
import { fileExists, getCwd, pathResolve, readFile } from "@frontmcp/utils";
|
|
3
|
+
import * as yaml from "../../../third-party/js-yaml.mjs";
|
|
4
4
|
import { ConfigValidationError } from "./config.service.mjs";
|
|
5
5
|
import {
|
|
6
6
|
canReadConfigFiles,
|
|
@@ -10,8 +10,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
10
10
|
|
|
11
11
|
// libs/sdk/src/direct/direct-client.ts
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ElicitRequestSchema,
|
|
14
|
+
ResourceUpdatedNotificationSchema
|
|
14
15
|
} from "@frontmcp/protocol";
|
|
16
|
+
import { Client } from "@frontmcp/protocol/client";
|
|
15
17
|
import { fileExists, pathResolve, randomUUID } from "@frontmcp/utils";
|
|
16
18
|
import { listAllPages } from "../common/utils/list-all-pages.utils.mjs";
|
|
17
19
|
import { ELICITATION_META_KEY } from "../elicitation/elicitation-meta.mjs";
|
|
@@ -21,7 +23,6 @@ import {
|
|
|
21
23
|
SkillsLoadResultSchema,
|
|
22
24
|
SkillsSearchResultSchema
|
|
23
25
|
} from "../transport/mcp-handlers/skills-mcp.types.mjs";
|
|
24
|
-
import { importWithRequireFallback } from "../utils/dynamic-import.utils.mjs";
|
|
25
26
|
import {
|
|
26
27
|
detectPlatform,
|
|
27
28
|
formatResultForPlatform,
|
|
@@ -128,10 +129,6 @@ var DirectClientImpl = class _DirectClientImpl {
|
|
|
128
129
|
*/
|
|
129
130
|
async setupNotificationHandlers(mcpClient) {
|
|
130
131
|
try {
|
|
131
|
-
const { ResourceUpdatedNotificationSchema, ElicitRequestSchema } = await importWithRequireFallback(
|
|
132
|
-
() => import("@frontmcp/protocol"),
|
|
133
|
-
() => __require("@frontmcp/protocol")
|
|
134
|
-
);
|
|
135
132
|
if (typeof mcpClient.setNotificationHandler === "function") {
|
|
136
133
|
mcpClient.setNotificationHandler(
|
|
137
134
|
ResourceUpdatedNotificationSchema,
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// libs/sdk/src/esm-loader/semver.utils.ts
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import {
|
|
3
|
+
compare as semverCompare,
|
|
4
|
+
gt as semverGt,
|
|
5
|
+
maxSatisfying as semverMaxSatisfying,
|
|
6
|
+
rcompare as semverRcompare,
|
|
7
|
+
satisfies as semverSatisfies,
|
|
8
|
+
valid as semverValid,
|
|
9
|
+
validRange as semverValidRange
|
|
10
|
+
} from "../third-party/semver.mjs";
|
|
9
11
|
function isDistTag(range) {
|
|
10
12
|
return /^[a-zA-Z][a-zA-Z0-9]*$/.test(range) && semverValidRange(range) === null;
|
|
11
13
|
}
|