@frontmcp/sdk 0.7.1 → 0.7.2
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/common/entries/auth-provider.entry.d.ts +1 -1
- package/common/entries/auth-provider.entry.d.ts.map +1 -1
- package/common/entries/provider.entry.d.ts +4 -4
- package/common/entries/provider.entry.d.ts.map +1 -1
- package/common/interfaces/index.d.ts +1 -1
- package/common/interfaces/index.d.ts.map +1 -1
- package/common/metadata/index.d.ts +2 -1
- package/common/metadata/index.d.ts.map +1 -1
- package/common/records/index.d.ts +2 -1
- package/common/records/index.d.ts.map +1 -1
- package/esm/index.mjs +37 -80
- package/esm/package.json +4 -4
- package/index.js +5 -47
- package/package.json +4 -4
- package/provider/provider.utils.d.ts +1 -1
- package/provider/provider.utils.d.ts.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseEntry } from './base.entry';
|
|
2
|
-
import { AuthProviderRecord } from '../records';
|
|
2
|
+
import type { AuthProviderRecord } from '../records';
|
|
3
3
|
import { AuthProviderInterface } from '../interfaces';
|
|
4
4
|
import { AuthProviderMetadata } from '../metadata';
|
|
5
5
|
export declare abstract class AuthProviderEntry extends BaseEntry<AuthProviderRecord, AuthProviderInterface, AuthProviderMetadata> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-provider.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/auth-provider.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-provider.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/auth-provider.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,8BAAsB,iBAAkB,SAAQ,SAAS,CACvD,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,CACrB;CAAG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseEntry } from './base.entry';
|
|
2
|
-
import { ProviderRecord } from '../records';
|
|
3
|
-
import { ProviderInterface } from '../interfaces';
|
|
4
|
-
import { ProviderMetadata } from '../metadata';
|
|
2
|
+
import type { ProviderRecord } from '../records';
|
|
3
|
+
import type { ProviderInterface } from '../interfaces';
|
|
4
|
+
import type { ProviderMetadata } from '../metadata';
|
|
5
5
|
declare abstract class ProviderEntry extends BaseEntry<ProviderRecord, ProviderInterface, ProviderMetadata> {
|
|
6
6
|
}
|
|
7
|
-
export { ProviderEntry
|
|
7
|
+
export { ProviderEntry };
|
|
8
8
|
//# sourceMappingURL=provider.entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/provider.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/provider.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,uBAAe,aAAc,SAAQ,SAAS,CAAC,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CAAG;AAEtG,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Type, FuncType, PartialStagesType, CtorType, Ctor, Abstract, Reference, Token, ClassType, ValueType, ClassToken, FactoryType, RequiredByKey, } from '@frontmcp/di';
|
|
1
|
+
export type { Type, FuncType, PartialStagesType, CtorType, Ctor, Abstract, Reference, Token, ClassType, ValueType, ClassToken, FactoryType, RequiredByKey, } from '@frontmcp/di';
|
|
2
2
|
export * from './base.interface';
|
|
3
3
|
export * from './execution-context.interface';
|
|
4
4
|
export * from './front-mcp.interface';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAElC,cAAc,YAAY,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { ProviderScope
|
|
1
|
+
export { ProviderScope } from '@frontmcp/di';
|
|
2
|
+
export type { ProviderMetadata } from '@frontmcp/di';
|
|
2
3
|
export * from './front-mcp.metadata';
|
|
3
4
|
export * from './flow.metadata';
|
|
4
5
|
export * from './hook.metadata';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { ProviderKind
|
|
1
|
+
export { ProviderKind } from '@frontmcp/di';
|
|
2
|
+
export type { ProviderRecord, ProviderClassTokenRecord, ProviderClassRecord, ProviderValueRecord, ProviderFactoryRecord, ProviderInjectedRecord, } from '@frontmcp/di';
|
|
2
3
|
export * from './scope.record';
|
|
3
4
|
export * from './flow.record';
|
|
4
5
|
export * from './hook.record';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/records/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/records/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EACV,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAEtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
package/esm/index.mjs
CHANGED
|
@@ -2423,7 +2423,7 @@ var init_agent_metadata = __esm({
|
|
|
2423
2423
|
});
|
|
2424
2424
|
|
|
2425
2425
|
// libs/sdk/src/common/metadata/index.ts
|
|
2426
|
-
import { ProviderScope as ProviderScope2
|
|
2426
|
+
import { ProviderScope as ProviderScope2 } from "@frontmcp/di";
|
|
2427
2427
|
var init_metadata = __esm({
|
|
2428
2428
|
"libs/sdk/src/common/metadata/index.ts"() {
|
|
2429
2429
|
"use strict";
|
|
@@ -4098,7 +4098,7 @@ var init_scope = __esm({
|
|
|
4098
4098
|
// libs/sdk/src/provider/provider.registry.ts
|
|
4099
4099
|
import "reflect-metadata";
|
|
4100
4100
|
import {
|
|
4101
|
-
ProviderScope as
|
|
4101
|
+
ProviderScope as ProviderScope3,
|
|
4102
4102
|
ProviderKind as ProviderKind2,
|
|
4103
4103
|
tokenName as tokenName2,
|
|
4104
4104
|
isClass as isClass3,
|
|
@@ -4162,8 +4162,8 @@ var init_provider_registry = __esm({
|
|
|
4162
4162
|
if (!found) throw new Error(`Cannot resolve token ${tokenName2(token)}: not registered in hierarchy.`);
|
|
4163
4163
|
const { registry, rec } = found;
|
|
4164
4164
|
const sc = registry.getProviderScope(rec);
|
|
4165
|
-
if (sc !==
|
|
4166
|
-
const scName =
|
|
4165
|
+
if (sc !== ProviderScope3.GLOBAL) {
|
|
4166
|
+
const scName = ProviderScope3[sc];
|
|
4167
4167
|
throw new Error(
|
|
4168
4168
|
`Dependency ${tokenName2(token)} is scoped (${scName}) in ${registry.constructor.name}; cannot use as DEFAULT.`
|
|
4169
4169
|
);
|
|
@@ -4202,7 +4202,7 @@ var init_provider_registry = __esm({
|
|
|
4202
4202
|
}
|
|
4203
4203
|
const depRec = isLocal ? this.defs.get(d) : up.rec;
|
|
4204
4204
|
const depScope = isLocal ? this.getProviderScope(depRec) : up.registry.getProviderScope(depRec);
|
|
4205
|
-
if (this.getProviderScope(rec) ===
|
|
4205
|
+
if (this.getProviderScope(rec) === ProviderScope3.GLOBAL && depScope !== ProviderScope3.GLOBAL) {
|
|
4206
4206
|
throw new Error(
|
|
4207
4207
|
`Invalid dependency: DEFAULT-scoped provider ${tokenName2(
|
|
4208
4208
|
token
|
|
@@ -4246,7 +4246,7 @@ var init_provider_registry = __esm({
|
|
|
4246
4246
|
const only = opts?.onlyTokens ? new Set(opts.onlyTokens) : null;
|
|
4247
4247
|
for (const token of this.order) {
|
|
4248
4248
|
const rec = this.defs.get(token);
|
|
4249
|
-
if (this.getProviderScope(rec) !==
|
|
4249
|
+
if (this.getProviderScope(rec) !== ProviderScope3.GLOBAL) continue;
|
|
4250
4250
|
if (only && !only.has(token)) continue;
|
|
4251
4251
|
if (!force && this.instances.has(token)) continue;
|
|
4252
4252
|
if (force && this.instances.has(token)) {
|
|
@@ -4285,15 +4285,15 @@ var init_provider_registry = __esm({
|
|
|
4285
4285
|
*/
|
|
4286
4286
|
normalizeScope(scope) {
|
|
4287
4287
|
switch (scope) {
|
|
4288
|
-
case
|
|
4289
|
-
case
|
|
4290
|
-
return
|
|
4288
|
+
case ProviderScope3.SESSION:
|
|
4289
|
+
case ProviderScope3.REQUEST:
|
|
4290
|
+
return ProviderScope3.CONTEXT;
|
|
4291
4291
|
default:
|
|
4292
4292
|
return scope;
|
|
4293
4293
|
}
|
|
4294
4294
|
}
|
|
4295
4295
|
getProviderScope(rec) {
|
|
4296
|
-
const rawScope = rec.metadata?.scope ??
|
|
4296
|
+
const rawScope = rec.metadata?.scope ?? ProviderScope3.GLOBAL;
|
|
4297
4297
|
return this.normalizeScope(rawScope);
|
|
4298
4298
|
}
|
|
4299
4299
|
getScope() {
|
|
@@ -4318,7 +4318,7 @@ var init_provider_registry = __esm({
|
|
|
4318
4318
|
const rec = this.defs.get(t);
|
|
4319
4319
|
if (rec) {
|
|
4320
4320
|
const sc = this.getProviderScope(rec);
|
|
4321
|
-
if (sc ===
|
|
4321
|
+
if (sc === ProviderScope3.GLOBAL) {
|
|
4322
4322
|
if (!this.instances.has(t)) {
|
|
4323
4323
|
throw new Error(`Dependency ${tokenName2(t)} (DEFAULT scope) is not instantiated`);
|
|
4324
4324
|
}
|
|
@@ -4331,7 +4331,7 @@ var init_provider_registry = __esm({
|
|
|
4331
4331
|
const up = this.lookupDefInHierarchy(t);
|
|
4332
4332
|
if (up) {
|
|
4333
4333
|
const sc = up.registry.getProviderScope(up.rec);
|
|
4334
|
-
if (sc ===
|
|
4334
|
+
if (sc === ProviderScope3.GLOBAL) {
|
|
4335
4335
|
const inst = up.registry.instances.get(t);
|
|
4336
4336
|
if (inst === void 0) {
|
|
4337
4337
|
throw new Error(`Dependency ${tokenName2(t)} (DEFAULT scope) is not instantiated in parent`);
|
|
@@ -4487,7 +4487,7 @@ var init_provider_registry = __esm({
|
|
|
4487
4487
|
const depRec = this.defs.get(d);
|
|
4488
4488
|
if (depRec) {
|
|
4489
4489
|
const sc = this.getProviderScope(depRec);
|
|
4490
|
-
if (sc ===
|
|
4490
|
+
if (sc === ProviderScope3.GLOBAL) {
|
|
4491
4491
|
const v = this.instances.get(d);
|
|
4492
4492
|
if (v === void 0) throw new Error(`${tokenName2(d)} (DEFAULT scope) is not instantiated`);
|
|
4493
4493
|
return v;
|
|
@@ -4499,7 +4499,7 @@ var init_provider_registry = __esm({
|
|
|
4499
4499
|
const up = this.lookupDefInHierarchy(d);
|
|
4500
4500
|
if (up) {
|
|
4501
4501
|
const sc = up.registry.getProviderScope(up.rec);
|
|
4502
|
-
if (sc ===
|
|
4502
|
+
if (sc === ProviderScope3.GLOBAL) {
|
|
4503
4503
|
const v = up.registry.instances.get(d);
|
|
4504
4504
|
if (v === void 0) throw new Error(`${tokenName2(d)} (DEFAULT scope) is not instantiated in parent`);
|
|
4505
4505
|
return v;
|
|
@@ -4513,8 +4513,8 @@ var init_provider_registry = __esm({
|
|
|
4513
4513
|
get(token) {
|
|
4514
4514
|
if (this.instances.has(token)) return this.instances.get(token);
|
|
4515
4515
|
const rec = this.defs.get(token);
|
|
4516
|
-
if (rec && this.getProviderScope(rec) !==
|
|
4517
|
-
const scName =
|
|
4516
|
+
if (rec && this.getProviderScope(rec) !== ProviderScope3.GLOBAL) {
|
|
4517
|
+
const scName = ProviderScope3[this.getProviderScope(rec)];
|
|
4518
4518
|
throw new Error(`Provider ${tokenName2(token)} is scoped (${scName}). Use getScoped(token, key).`);
|
|
4519
4519
|
}
|
|
4520
4520
|
if (this.providers) return this.providers.get(token);
|
|
@@ -4547,7 +4547,7 @@ var init_provider_registry = __esm({
|
|
|
4547
4547
|
if (found) {
|
|
4548
4548
|
const { registry, rec } = found;
|
|
4549
4549
|
const sc = registry.getProviderScope(rec);
|
|
4550
|
-
if (sc !==
|
|
4550
|
+
if (sc !== ProviderScope3.GLOBAL)
|
|
4551
4551
|
throw new Error(`Plugin dependency ${tokenName2(t)} must be DEFAULT-scoped at bootstrap`);
|
|
4552
4552
|
const v = registry.instances.get(t);
|
|
4553
4553
|
if (v === void 0) throw new Error(`Plugin dependency ${tokenName2(t)} (DEFAULT scope) is not instantiated`);
|
|
@@ -4566,8 +4566,8 @@ var init_provider_registry = __esm({
|
|
|
4566
4566
|
if (found) {
|
|
4567
4567
|
const { registry, rec } = found;
|
|
4568
4568
|
const sc = registry.getProviderScope(rec);
|
|
4569
|
-
if (sc !==
|
|
4570
|
-
const scName =
|
|
4569
|
+
if (sc !== ProviderScope3.GLOBAL) {
|
|
4570
|
+
const scName = ProviderScope3[sc];
|
|
4571
4571
|
throw new Error(
|
|
4572
4572
|
`Provider ${tokenName2(cls)} is scoped (${scName}). Use getScoped(token, key) or buildViews(...).`
|
|
4573
4573
|
);
|
|
@@ -4593,8 +4593,8 @@ var init_provider_registry = __esm({
|
|
|
4593
4593
|
}
|
|
4594
4594
|
mergeFromRegistry(providedBy, exported) {
|
|
4595
4595
|
for (const { token, def, instance } of exported) {
|
|
4596
|
-
const scope = def.metadata.scope ??
|
|
4597
|
-
if (scope ===
|
|
4596
|
+
const scope = def.metadata.scope ?? ProviderScope3.GLOBAL;
|
|
4597
|
+
if (scope === ProviderScope3.GLOBAL && instance !== void 0) {
|
|
4598
4598
|
this.instances.set(token, instance);
|
|
4599
4599
|
}
|
|
4600
4600
|
this.defs.set(token, def);
|
|
@@ -4645,7 +4645,7 @@ var init_provider_registry = __esm({
|
|
|
4645
4645
|
}
|
|
4646
4646
|
}
|
|
4647
4647
|
}
|
|
4648
|
-
const globalProviders = normalized.filter((rec) => this.getProviderScope(rec) ===
|
|
4648
|
+
const globalProviders = normalized.filter((rec) => this.getProviderScope(rec) === ProviderScope3.GLOBAL);
|
|
4649
4649
|
return Promise.all(globalProviders.map((rec) => this.initiateOne(rec.provide, rec)));
|
|
4650
4650
|
}
|
|
4651
4651
|
getWithParents(token) {
|
|
@@ -4813,13 +4813,13 @@ var init_provider_registry = __esm({
|
|
|
4813
4813
|
for (const token of this.order) {
|
|
4814
4814
|
const rec = this.defs.get(token);
|
|
4815
4815
|
if (!rec) continue;
|
|
4816
|
-
if (this.getProviderScope(rec) !==
|
|
4816
|
+
if (this.getProviderScope(rec) !== ProviderScope3.CONTEXT) continue;
|
|
4817
4817
|
if (contextStore.has(token)) continue;
|
|
4818
4818
|
await this.buildIntoStoreWithViews(token, rec, contextStore, sessionKey, contextStore, global);
|
|
4819
4819
|
}
|
|
4820
4820
|
for (const [token, rec] of this.defs) {
|
|
4821
4821
|
if (this.order.has(token)) continue;
|
|
4822
|
-
if (this.getProviderScope(rec) !==
|
|
4822
|
+
if (this.getProviderScope(rec) !== ProviderScope3.CONTEXT) continue;
|
|
4823
4823
|
if (contextStore.has(token)) continue;
|
|
4824
4824
|
await this.buildIntoStoreWithViews(token, rec, contextStore, sessionKey, contextStore, global);
|
|
4825
4825
|
}
|
|
@@ -4893,7 +4893,7 @@ var init_provider_registry = __esm({
|
|
|
4893
4893
|
const rec = this.defs.get(token);
|
|
4894
4894
|
if (rec) {
|
|
4895
4895
|
const scope = this.getProviderScope(rec);
|
|
4896
|
-
if (scope ===
|
|
4896
|
+
if (scope === ProviderScope3.GLOBAL) {
|
|
4897
4897
|
throw new Error(`GLOBAL dependency ${tokenName2(token)} is not instantiated`);
|
|
4898
4898
|
} else {
|
|
4899
4899
|
await this.buildIntoStoreWithViews(token, rec, contextStore, scopeKey, contextStore, globalStore);
|
|
@@ -4903,7 +4903,7 @@ var init_provider_registry = __esm({
|
|
|
4903
4903
|
const up = this.lookupDefInHierarchy(token);
|
|
4904
4904
|
if (up) {
|
|
4905
4905
|
const sc = up.registry.getProviderScope(up.rec);
|
|
4906
|
-
if (sc ===
|
|
4906
|
+
if (sc === ProviderScope3.GLOBAL) {
|
|
4907
4907
|
const v = up.registry.instances.get(token);
|
|
4908
4908
|
if (v !== void 0) return v;
|
|
4909
4909
|
throw new Error(`GLOBAL dependency ${tokenName2(token)} is not instantiated in parent`);
|
|
@@ -13529,7 +13529,7 @@ var init_hook_registry = __esm({
|
|
|
13529
13529
|
|
|
13530
13530
|
// libs/sdk/src/agent/agent.scope.ts
|
|
13531
13531
|
import "reflect-metadata";
|
|
13532
|
-
import { ProviderScope as
|
|
13532
|
+
import { ProviderScope as ProviderScope4 } from "@frontmcp/di";
|
|
13533
13533
|
var AgentScope, AgentScopeEntry;
|
|
13534
13534
|
var init_agent_scope = __esm({
|
|
13535
13535
|
"libs/sdk/src/agent/agent.scope.ts"() {
|
|
@@ -13588,7 +13588,7 @@ var init_agent_scope = __esm({
|
|
|
13588
13588
|
[
|
|
13589
13589
|
// Provide the agent scope entry as ScopeEntry for flows
|
|
13590
13590
|
{
|
|
13591
|
-
scope:
|
|
13591
|
+
scope: ProviderScope4.GLOBAL,
|
|
13592
13592
|
name: "ScopeEntry",
|
|
13593
13593
|
provide: ScopeEntry2,
|
|
13594
13594
|
useValue: agentScopeEntry
|
|
@@ -13596,19 +13596,19 @@ var init_agent_scope = __esm({
|
|
|
13596
13596
|
// Also register as Scope so getActiveScope() returns the agent's scope
|
|
13597
13597
|
// instead of falling back to parent scope
|
|
13598
13598
|
{
|
|
13599
|
-
scope:
|
|
13599
|
+
scope: ProviderScope4.GLOBAL,
|
|
13600
13600
|
name: "Scope",
|
|
13601
13601
|
provide: Scope,
|
|
13602
13602
|
useValue: agentScopeEntry
|
|
13603
13603
|
},
|
|
13604
13604
|
{
|
|
13605
|
-
scope:
|
|
13605
|
+
scope: ProviderScope4.GLOBAL,
|
|
13606
13606
|
name: "AgentScope",
|
|
13607
13607
|
provide: _AgentScope,
|
|
13608
13608
|
useValue: this
|
|
13609
13609
|
},
|
|
13610
13610
|
{
|
|
13611
|
-
scope:
|
|
13611
|
+
scope: ProviderScope4.GLOBAL,
|
|
13612
13612
|
name: "FrontMcpLogger",
|
|
13613
13613
|
provide: FrontMcpLogger,
|
|
13614
13614
|
useValue: this.logger
|
|
@@ -26351,7 +26351,7 @@ var init_server_instance = __esm({
|
|
|
26351
26351
|
});
|
|
26352
26352
|
|
|
26353
26353
|
// libs/sdk/src/front-mcp/front-mcp.providers.ts
|
|
26354
|
-
import { ProviderScope as
|
|
26354
|
+
import { ProviderScope as ProviderScope5 } from "@frontmcp/di";
|
|
26355
26355
|
function createMcpGlobalProviders(metadata) {
|
|
26356
26356
|
return [frontMcpConfig.with(metadata), frontMcpServer, FrontMcpContextStorage];
|
|
26357
26357
|
}
|
|
@@ -26367,14 +26367,14 @@ var init_front_mcp_providers = __esm({
|
|
|
26367
26367
|
with: (metadata) => ({
|
|
26368
26368
|
name: "frontmcp:config",
|
|
26369
26369
|
provide: FrontMcpConfig,
|
|
26370
|
-
scope:
|
|
26370
|
+
scope: ProviderScope5.GLOBAL,
|
|
26371
26371
|
useValue: metadata
|
|
26372
26372
|
})
|
|
26373
26373
|
};
|
|
26374
26374
|
DEFAULT_HTTP_OPTIONS = { port: 3e3, entryPath: "/mcp" };
|
|
26375
26375
|
frontMcpServer = AsyncProvider({
|
|
26376
26376
|
name: "frontmcp:server",
|
|
26377
|
-
scope:
|
|
26377
|
+
scope: ProviderScope5.GLOBAL,
|
|
26378
26378
|
provide: FrontMcpServer,
|
|
26379
26379
|
inject: () => [FrontMcpConfig],
|
|
26380
26380
|
useFactory: (config) => {
|
|
@@ -26566,7 +26566,7 @@ var init_instance_logger = __esm({
|
|
|
26566
26566
|
|
|
26567
26567
|
// libs/sdk/src/logger/logger.registry.ts
|
|
26568
26568
|
import "reflect-metadata";
|
|
26569
|
-
import { ProviderScope as
|
|
26569
|
+
import { ProviderScope as ProviderScope6, tokenName as tokenName16 } from "@frontmcp/di";
|
|
26570
26570
|
var LoggerRegistry;
|
|
26571
26571
|
var init_logger_registry = __esm({
|
|
26572
26572
|
"libs/sdk/src/logger/logger.registry.ts"() {
|
|
@@ -26653,7 +26653,7 @@ var init_logger_registry = __esm({
|
|
|
26653
26653
|
metadata: {
|
|
26654
26654
|
id: "frontmcp-logger",
|
|
26655
26655
|
name: "FrontMcpLogger",
|
|
26656
|
-
scope:
|
|
26656
|
+
scope: ProviderScope6.GLOBAL,
|
|
26657
26657
|
description: "Logger instance that transport logs to all registered transporters."
|
|
26658
26658
|
}
|
|
26659
26659
|
});
|
|
@@ -28788,21 +28788,6 @@ var init_internal = __esm({
|
|
|
28788
28788
|
});
|
|
28789
28789
|
|
|
28790
28790
|
// libs/sdk/src/common/interfaces/index.ts
|
|
28791
|
-
import {
|
|
28792
|
-
Type as Type11,
|
|
28793
|
-
FuncType,
|
|
28794
|
-
PartialStagesType,
|
|
28795
|
-
CtorType,
|
|
28796
|
-
Ctor as Ctor3,
|
|
28797
|
-
Abstract,
|
|
28798
|
-
Reference as Reference2,
|
|
28799
|
-
Token as Token29,
|
|
28800
|
-
ClassType,
|
|
28801
|
-
ValueType,
|
|
28802
|
-
ClassToken,
|
|
28803
|
-
FactoryType,
|
|
28804
|
-
RequiredByKey
|
|
28805
|
-
} from "@frontmcp/di";
|
|
28806
28791
|
var init_interfaces = __esm({
|
|
28807
28792
|
"libs/sdk/src/common/interfaces/index.ts"() {
|
|
28808
28793
|
"use strict";
|
|
@@ -29111,15 +29096,7 @@ var init_agent_record = __esm({
|
|
|
29111
29096
|
});
|
|
29112
29097
|
|
|
29113
29098
|
// libs/sdk/src/common/records/index.ts
|
|
29114
|
-
import {
|
|
29115
|
-
ProviderKind as ProviderKind4,
|
|
29116
|
-
ProviderRecord as ProviderRecord3,
|
|
29117
|
-
ProviderClassTokenRecord,
|
|
29118
|
-
ProviderClassRecord,
|
|
29119
|
-
ProviderValueRecord,
|
|
29120
|
-
ProviderFactoryRecord,
|
|
29121
|
-
ProviderInjectedRecord as ProviderInjectedRecord2
|
|
29122
|
-
} from "@frontmcp/di";
|
|
29099
|
+
import { ProviderKind as ProviderKind4 } from "@frontmcp/di";
|
|
29123
29100
|
var init_records = __esm({
|
|
29124
29101
|
"libs/sdk/src/common/records/index.ts"() {
|
|
29125
29102
|
"use strict";
|
|
@@ -29802,7 +29779,6 @@ var ListResourcesHook = FlowHooksOf("resources:list-resources");
|
|
|
29802
29779
|
var ListResourceTemplatesHook = FlowHooksOf("resources:list-resource-templates");
|
|
29803
29780
|
var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
29804
29781
|
export {
|
|
29805
|
-
Abstract,
|
|
29806
29782
|
FrontMcpAdapter as Adapter,
|
|
29807
29783
|
AdapterEntry,
|
|
29808
29784
|
AdapterKind,
|
|
@@ -29841,12 +29817,8 @@ export {
|
|
|
29841
29817
|
CircuitBreaker,
|
|
29842
29818
|
CircuitBreakerManager,
|
|
29843
29819
|
CircuitOpenError,
|
|
29844
|
-
ClassToken,
|
|
29845
|
-
ClassType,
|
|
29846
29820
|
FrontMcpContext as Context,
|
|
29847
29821
|
FrontMcpContextStorage as ContextStorage,
|
|
29848
|
-
Ctor3 as Ctor,
|
|
29849
|
-
CtorType,
|
|
29850
29822
|
DEFAULT_TRANSPORT_CONFIG,
|
|
29851
29823
|
DependencyNotFoundError,
|
|
29852
29824
|
DidHookOf,
|
|
@@ -29855,7 +29827,6 @@ export {
|
|
|
29855
29827
|
ErrorHandler,
|
|
29856
29828
|
ExecutionContextBase,
|
|
29857
29829
|
FRONTMCP_CONTEXT,
|
|
29858
|
-
FactoryType,
|
|
29859
29830
|
FrontMcpFlow as Flow,
|
|
29860
29831
|
FlowBase,
|
|
29861
29832
|
FlowControl,
|
|
@@ -29898,7 +29869,6 @@ export {
|
|
|
29898
29869
|
FrontMcpTokens,
|
|
29899
29870
|
FrontMcpTool,
|
|
29900
29871
|
FrontMcpToolTokens,
|
|
29901
|
-
FuncType,
|
|
29902
29872
|
GenericServerError,
|
|
29903
29873
|
GlobalConfigNotFoundError,
|
|
29904
29874
|
HealthCheckManager,
|
|
@@ -29948,7 +29918,6 @@ export {
|
|
|
29948
29918
|
McpClientService,
|
|
29949
29919
|
McpError,
|
|
29950
29920
|
NO_BODY_STATUSES,
|
|
29951
|
-
PartialStagesType,
|
|
29952
29921
|
FrontMcpPlugin as Plugin,
|
|
29953
29922
|
PluginEntry2 as PluginEntry,
|
|
29954
29923
|
PluginKind,
|
|
@@ -29959,21 +29928,13 @@ export {
|
|
|
29959
29928
|
PromptKind,
|
|
29960
29929
|
PromptNotFoundError,
|
|
29961
29930
|
FrontMcpProvider as Provider,
|
|
29962
|
-
ProviderClassRecord,
|
|
29963
|
-
ProviderClassTokenRecord,
|
|
29964
29931
|
ProviderEntry2 as ProviderEntry,
|
|
29965
|
-
ProviderFactoryRecord,
|
|
29966
|
-
ProviderInjectedRecord2 as ProviderInjectedRecord,
|
|
29967
29932
|
ProviderKind4 as ProviderKind,
|
|
29968
|
-
ProviderMetadata2 as ProviderMetadata,
|
|
29969
|
-
ProviderRecord3 as ProviderRecord,
|
|
29970
29933
|
ProviderScope2 as ProviderScope,
|
|
29971
|
-
ProviderValueRecord,
|
|
29972
29934
|
PublicMcpError,
|
|
29973
29935
|
QuotaExceededError,
|
|
29974
29936
|
REDIRECTS,
|
|
29975
29937
|
RateLimitError,
|
|
29976
|
-
Reference2 as Reference,
|
|
29977
29938
|
RemoteAuthError,
|
|
29978
29939
|
RemoteAuthorizationError,
|
|
29979
29940
|
RemoteCapabilityDiscoveryError,
|
|
@@ -29992,7 +29953,6 @@ export {
|
|
|
29992
29953
|
RemoteTransportError,
|
|
29993
29954
|
RemoteUnsupportedTransportError,
|
|
29994
29955
|
RequestContextNotAvailableError,
|
|
29995
|
-
RequiredByKey,
|
|
29996
29956
|
FrontMcpResource as Resource,
|
|
29997
29957
|
ResourceContext,
|
|
29998
29958
|
ResourceEntry2 as ResourceEntry,
|
|
@@ -30012,7 +29972,6 @@ export {
|
|
|
30012
29972
|
SessionHookStage,
|
|
30013
29973
|
SessionMissingError,
|
|
30014
29974
|
StageHookOf,
|
|
30015
|
-
Token29 as Token,
|
|
30016
29975
|
FrontMcpTool as Tool,
|
|
30017
29976
|
ToolContext2 as ToolContext,
|
|
30018
29977
|
ToolEntry2 as ToolEntry,
|
|
@@ -30021,10 +29980,8 @@ export {
|
|
|
30021
29980
|
ToolHookStage,
|
|
30022
29981
|
ToolKind,
|
|
30023
29982
|
ToolNotFoundError,
|
|
30024
|
-
Type11 as Type,
|
|
30025
29983
|
UnauthorizedError,
|
|
30026
29984
|
UnsupportedClientVersionError,
|
|
30027
|
-
ValueType,
|
|
30028
29985
|
WillHookOf,
|
|
30029
29986
|
frontMcpAgent as agent,
|
|
30030
29987
|
aiPlatformTypeSchema,
|
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "FrontMCP SDK",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@frontmcp/utils": "0.7.
|
|
70
|
-
"@frontmcp/di": "0.7.
|
|
71
|
-
"@frontmcp/uipack": "0.7.
|
|
69
|
+
"@frontmcp/utils": "0.7.2",
|
|
70
|
+
"@frontmcp/di": "0.7.2",
|
|
71
|
+
"@frontmcp/uipack": "0.7.2",
|
|
72
72
|
"@modelcontextprotocol/sdk": "1.25.1",
|
|
73
73
|
"@langchain/core": "^1.1.8",
|
|
74
74
|
"@langchain/openai": "^1.2.0",
|
package/index.js
CHANGED
|
@@ -28794,11 +28794,9 @@ var init_internal = __esm({
|
|
|
28794
28794
|
});
|
|
28795
28795
|
|
|
28796
28796
|
// libs/sdk/src/common/interfaces/index.ts
|
|
28797
|
-
var import_di30;
|
|
28798
28797
|
var init_interfaces = __esm({
|
|
28799
28798
|
"libs/sdk/src/common/interfaces/index.ts"() {
|
|
28800
28799
|
"use strict";
|
|
28801
|
-
import_di30 = require("@frontmcp/di");
|
|
28802
28800
|
init_base_interface();
|
|
28803
28801
|
init_execution_context_interface();
|
|
28804
28802
|
init_front_mcp_interface();
|
|
@@ -28977,11 +28975,11 @@ var init_app_record = __esm({
|
|
|
28977
28975
|
});
|
|
28978
28976
|
|
|
28979
28977
|
// libs/sdk/src/common/records/provider.record.ts
|
|
28980
|
-
var
|
|
28978
|
+
var import_di30;
|
|
28981
28979
|
var init_provider_record = __esm({
|
|
28982
28980
|
"libs/sdk/src/common/records/provider.record.ts"() {
|
|
28983
28981
|
"use strict";
|
|
28984
|
-
|
|
28982
|
+
import_di30 = require("@frontmcp/di");
|
|
28985
28983
|
}
|
|
28986
28984
|
});
|
|
28987
28985
|
|
|
@@ -29103,11 +29101,11 @@ var init_agent_record = __esm({
|
|
|
29103
29101
|
});
|
|
29104
29102
|
|
|
29105
29103
|
// libs/sdk/src/common/records/index.ts
|
|
29106
|
-
var
|
|
29104
|
+
var import_di31;
|
|
29107
29105
|
var init_records = __esm({
|
|
29108
29106
|
"libs/sdk/src/common/records/index.ts"() {
|
|
29109
29107
|
"use strict";
|
|
29110
|
-
|
|
29108
|
+
import_di31 = require("@frontmcp/di");
|
|
29111
29109
|
init_scope_record();
|
|
29112
29110
|
init_flow_record();
|
|
29113
29111
|
init_hook_record();
|
|
@@ -29753,7 +29751,6 @@ var init_common = __esm({
|
|
|
29753
29751
|
// libs/sdk/src/index.ts
|
|
29754
29752
|
var index_exports = {};
|
|
29755
29753
|
__export(index_exports, {
|
|
29756
|
-
Abstract: () => import_di30.Abstract,
|
|
29757
29754
|
Adapter: () => FrontMcpAdapter,
|
|
29758
29755
|
AdapterEntry: () => AdapterEntry,
|
|
29759
29756
|
AdapterKind: () => AdapterKind,
|
|
@@ -29792,12 +29789,8 @@ __export(index_exports, {
|
|
|
29792
29789
|
CircuitBreaker: () => CircuitBreaker,
|
|
29793
29790
|
CircuitBreakerManager: () => CircuitBreakerManager,
|
|
29794
29791
|
CircuitOpenError: () => CircuitOpenError,
|
|
29795
|
-
ClassToken: () => import_di30.ClassToken,
|
|
29796
|
-
ClassType: () => import_di30.ClassType,
|
|
29797
29792
|
Context: () => FrontMcpContext,
|
|
29798
29793
|
ContextStorage: () => FrontMcpContextStorage,
|
|
29799
|
-
Ctor: () => import_di30.Ctor,
|
|
29800
|
-
CtorType: () => import_di30.CtorType,
|
|
29801
29794
|
DEFAULT_TRANSPORT_CONFIG: () => DEFAULT_TRANSPORT_CONFIG,
|
|
29802
29795
|
DependencyNotFoundError: () => DependencyNotFoundError,
|
|
29803
29796
|
DidHookOf: () => DidHookOf,
|
|
@@ -29806,7 +29799,6 @@ __export(index_exports, {
|
|
|
29806
29799
|
ErrorHandler: () => ErrorHandler,
|
|
29807
29800
|
ExecutionContextBase: () => ExecutionContextBase,
|
|
29808
29801
|
FRONTMCP_CONTEXT: () => FRONTMCP_CONTEXT,
|
|
29809
|
-
FactoryType: () => import_di30.FactoryType,
|
|
29810
29802
|
Flow: () => FrontMcpFlow,
|
|
29811
29803
|
FlowBase: () => FlowBase,
|
|
29812
29804
|
FlowControl: () => FlowControl,
|
|
@@ -29849,7 +29841,6 @@ __export(index_exports, {
|
|
|
29849
29841
|
FrontMcpTokens: () => FrontMcpTokens,
|
|
29850
29842
|
FrontMcpTool: () => FrontMcpTool,
|
|
29851
29843
|
FrontMcpToolTokens: () => FrontMcpToolTokens,
|
|
29852
|
-
FuncType: () => import_di30.FuncType,
|
|
29853
29844
|
GenericServerError: () => GenericServerError,
|
|
29854
29845
|
GlobalConfigNotFoundError: () => GlobalConfigNotFoundError,
|
|
29855
29846
|
HealthCheckManager: () => HealthCheckManager,
|
|
@@ -29899,7 +29890,6 @@ __export(index_exports, {
|
|
|
29899
29890
|
McpClientService: () => McpClientService,
|
|
29900
29891
|
McpError: () => McpError,
|
|
29901
29892
|
NO_BODY_STATUSES: () => NO_BODY_STATUSES,
|
|
29902
|
-
PartialStagesType: () => import_di30.PartialStagesType,
|
|
29903
29893
|
Plugin: () => FrontMcpPlugin,
|
|
29904
29894
|
PluginEntry: () => PluginEntry2,
|
|
29905
29895
|
PluginKind: () => PluginKind,
|
|
@@ -29910,21 +29900,13 @@ __export(index_exports, {
|
|
|
29910
29900
|
PromptKind: () => PromptKind,
|
|
29911
29901
|
PromptNotFoundError: () => PromptNotFoundError,
|
|
29912
29902
|
Provider: () => FrontMcpProvider,
|
|
29913
|
-
ProviderClassRecord: () => import_di32.ProviderClassRecord,
|
|
29914
|
-
ProviderClassTokenRecord: () => import_di32.ProviderClassTokenRecord,
|
|
29915
29903
|
ProviderEntry: () => ProviderEntry2,
|
|
29916
|
-
|
|
29917
|
-
ProviderInjectedRecord: () => import_di32.ProviderInjectedRecord,
|
|
29918
|
-
ProviderKind: () => import_di32.ProviderKind,
|
|
29919
|
-
ProviderMetadata: () => import_di3.ProviderMetadata,
|
|
29920
|
-
ProviderRecord: () => import_di32.ProviderRecord,
|
|
29904
|
+
ProviderKind: () => import_di31.ProviderKind,
|
|
29921
29905
|
ProviderScope: () => import_di3.ProviderScope,
|
|
29922
|
-
ProviderValueRecord: () => import_di32.ProviderValueRecord,
|
|
29923
29906
|
PublicMcpError: () => PublicMcpError,
|
|
29924
29907
|
QuotaExceededError: () => QuotaExceededError,
|
|
29925
29908
|
REDIRECTS: () => REDIRECTS,
|
|
29926
29909
|
RateLimitError: () => RateLimitError,
|
|
29927
|
-
Reference: () => import_di30.Reference,
|
|
29928
29910
|
RemoteAuthError: () => RemoteAuthError,
|
|
29929
29911
|
RemoteAuthorizationError: () => RemoteAuthorizationError,
|
|
29930
29912
|
RemoteCapabilityDiscoveryError: () => RemoteCapabilityDiscoveryError,
|
|
@@ -29943,7 +29925,6 @@ __export(index_exports, {
|
|
|
29943
29925
|
RemoteTransportError: () => RemoteTransportError,
|
|
29944
29926
|
RemoteUnsupportedTransportError: () => RemoteUnsupportedTransportError,
|
|
29945
29927
|
RequestContextNotAvailableError: () => RequestContextNotAvailableError,
|
|
29946
|
-
RequiredByKey: () => import_di30.RequiredByKey,
|
|
29947
29928
|
Resource: () => FrontMcpResource,
|
|
29948
29929
|
ResourceContext: () => ResourceContext,
|
|
29949
29930
|
ResourceEntry: () => ResourceEntry2,
|
|
@@ -29963,7 +29944,6 @@ __export(index_exports, {
|
|
|
29963
29944
|
SessionHookStage: () => SessionHookStage,
|
|
29964
29945
|
SessionMissingError: () => SessionMissingError,
|
|
29965
29946
|
StageHookOf: () => StageHookOf,
|
|
29966
|
-
Token: () => import_di30.Token,
|
|
29967
29947
|
Tool: () => FrontMcpTool,
|
|
29968
29948
|
ToolContext: () => ToolContext2,
|
|
29969
29949
|
ToolEntry: () => ToolEntry2,
|
|
@@ -29972,10 +29952,8 @@ __export(index_exports, {
|
|
|
29972
29952
|
ToolHookStage: () => ToolHookStage,
|
|
29973
29953
|
ToolKind: () => ToolKind,
|
|
29974
29954
|
ToolNotFoundError: () => ToolNotFoundError,
|
|
29975
|
-
Type: () => import_di30.Type,
|
|
29976
29955
|
UnauthorizedError: () => UnauthorizedError,
|
|
29977
29956
|
UnsupportedClientVersionError: () => UnsupportedClientVersionError,
|
|
29978
|
-
ValueType: () => import_di30.ValueType,
|
|
29979
29957
|
WillHookOf: () => WillHookOf,
|
|
29980
29958
|
agent: () => frontMcpAgent,
|
|
29981
29959
|
aiPlatformTypeSchema: () => aiPlatformTypeSchema,
|
|
@@ -30165,7 +30143,6 @@ var ListResourceTemplatesHook = FlowHooksOf("resources:list-resource-templates")
|
|
|
30165
30143
|
var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
30166
30144
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30167
30145
|
0 && (module.exports = {
|
|
30168
|
-
Abstract,
|
|
30169
30146
|
Adapter,
|
|
30170
30147
|
AdapterEntry,
|
|
30171
30148
|
AdapterKind,
|
|
@@ -30204,12 +30181,8 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30204
30181
|
CircuitBreaker,
|
|
30205
30182
|
CircuitBreakerManager,
|
|
30206
30183
|
CircuitOpenError,
|
|
30207
|
-
ClassToken,
|
|
30208
|
-
ClassType,
|
|
30209
30184
|
Context,
|
|
30210
30185
|
ContextStorage,
|
|
30211
|
-
Ctor,
|
|
30212
|
-
CtorType,
|
|
30213
30186
|
DEFAULT_TRANSPORT_CONFIG,
|
|
30214
30187
|
DependencyNotFoundError,
|
|
30215
30188
|
DidHookOf,
|
|
@@ -30218,7 +30191,6 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30218
30191
|
ErrorHandler,
|
|
30219
30192
|
ExecutionContextBase,
|
|
30220
30193
|
FRONTMCP_CONTEXT,
|
|
30221
|
-
FactoryType,
|
|
30222
30194
|
Flow,
|
|
30223
30195
|
FlowBase,
|
|
30224
30196
|
FlowControl,
|
|
@@ -30261,7 +30233,6 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30261
30233
|
FrontMcpTokens,
|
|
30262
30234
|
FrontMcpTool,
|
|
30263
30235
|
FrontMcpToolTokens,
|
|
30264
|
-
FuncType,
|
|
30265
30236
|
GenericServerError,
|
|
30266
30237
|
GlobalConfigNotFoundError,
|
|
30267
30238
|
HealthCheckManager,
|
|
@@ -30311,7 +30282,6 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30311
30282
|
McpClientService,
|
|
30312
30283
|
McpError,
|
|
30313
30284
|
NO_BODY_STATUSES,
|
|
30314
|
-
PartialStagesType,
|
|
30315
30285
|
Plugin,
|
|
30316
30286
|
PluginEntry,
|
|
30317
30287
|
PluginKind,
|
|
@@ -30322,21 +30292,13 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30322
30292
|
PromptKind,
|
|
30323
30293
|
PromptNotFoundError,
|
|
30324
30294
|
Provider,
|
|
30325
|
-
ProviderClassRecord,
|
|
30326
|
-
ProviderClassTokenRecord,
|
|
30327
30295
|
ProviderEntry,
|
|
30328
|
-
ProviderFactoryRecord,
|
|
30329
|
-
ProviderInjectedRecord,
|
|
30330
30296
|
ProviderKind,
|
|
30331
|
-
ProviderMetadata,
|
|
30332
|
-
ProviderRecord,
|
|
30333
30297
|
ProviderScope,
|
|
30334
|
-
ProviderValueRecord,
|
|
30335
30298
|
PublicMcpError,
|
|
30336
30299
|
QuotaExceededError,
|
|
30337
30300
|
REDIRECTS,
|
|
30338
30301
|
RateLimitError,
|
|
30339
|
-
Reference,
|
|
30340
30302
|
RemoteAuthError,
|
|
30341
30303
|
RemoteAuthorizationError,
|
|
30342
30304
|
RemoteCapabilityDiscoveryError,
|
|
@@ -30355,7 +30317,6 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30355
30317
|
RemoteTransportError,
|
|
30356
30318
|
RemoteUnsupportedTransportError,
|
|
30357
30319
|
RequestContextNotAvailableError,
|
|
30358
|
-
RequiredByKey,
|
|
30359
30320
|
Resource,
|
|
30360
30321
|
ResourceContext,
|
|
30361
30322
|
ResourceEntry,
|
|
@@ -30375,7 +30336,6 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30375
30336
|
SessionHookStage,
|
|
30376
30337
|
SessionMissingError,
|
|
30377
30338
|
StageHookOf,
|
|
30378
|
-
Token,
|
|
30379
30339
|
Tool,
|
|
30380
30340
|
ToolContext,
|
|
30381
30341
|
ToolEntry,
|
|
@@ -30384,10 +30344,8 @@ var AgentCallHook = FlowHooksOf("agents:call-agent");
|
|
|
30384
30344
|
ToolHookStage,
|
|
30385
30345
|
ToolKind,
|
|
30386
30346
|
ToolNotFoundError,
|
|
30387
|
-
Type,
|
|
30388
30347
|
UnauthorizedError,
|
|
30389
30348
|
UnsupportedClientVersionError,
|
|
30390
|
-
ValueType,
|
|
30391
30349
|
WillHookOf,
|
|
30392
30350
|
agent,
|
|
30393
30351
|
aiPlatformTypeSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "FrontMCP SDK",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@frontmcp/utils": "0.7.
|
|
70
|
-
"@frontmcp/di": "0.7.
|
|
71
|
-
"@frontmcp/uipack": "0.7.
|
|
69
|
+
"@frontmcp/utils": "0.7.2",
|
|
70
|
+
"@frontmcp/di": "0.7.2",
|
|
71
|
+
"@frontmcp/uipack": "0.7.2",
|
|
72
72
|
"@modelcontextprotocol/sdk": "1.25.1",
|
|
73
73
|
"@langchain/core": "^1.1.8",
|
|
74
74
|
"@langchain/openai": "^1.2.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, Token } from '@frontmcp/di';
|
|
2
|
-
import { ProviderMetadata, ProviderRecord, ProviderScope } from '../common';
|
|
2
|
+
import type { ProviderMetadata, ProviderRecord, ProviderScope } from '../common';
|
|
3
3
|
/**
|
|
4
4
|
* Shape for provider input items (used during normalization).
|
|
5
5
|
* Supports both class-based providers and configuration objects.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.utils.d.ts","sourceRoot":"","sources":["../../src/provider/provider.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAiD,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.utils.d.ts","sourceRoot":"","sources":["../../src/provider/provider.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAiD,MAAM,cAAc,CAAC;AAE1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEjF;;;GAGG;AACH,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,SAAS,KAAK,EAAE,CAAC;IAEhC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAkCD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,CAwD3E;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAClB,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,GAAG,YAAY,KAAK,KAAK,EAAE,GACtE,KAAK,EAAE,CAmBT;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,cAAc,EACnB,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,GAAG,WAAW,KAAK,KAAK,EAAE,GACtE,KAAK,EAAE,CAaT"}
|