@mastra/auth-cloud 1.2.4 → 1.2.5-alpha.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/_types/@internal_auth/dist/_types/@internal_core/dist/base/index.d.ts +1 -1
- package/dist/_types/@internal_auth/dist/_types/@internal_core/dist/index-Biaf3BmX.d.ts +319 -0
- package/dist/_types/@internal_auth/dist/ee/interfaces/permissions.generated.d.ts +220 -220
- package/dist/auth-provider.d.ts.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/index.cjs +89 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +89 -5
- package/dist/index.js.map +1 -1
- package/dist/pkce/error.d.ts.map +1 -1
- package/dist/rbac/rbac-provider.d.ts.map +1 -1
- package/package.json +7 -8
- package/CHANGELOG.md +0 -217
- package/dist/_types/@internal_auth/dist/_types/@internal_core/dist/index-S1lgaKO7.d.ts +0 -218
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-provider.d.ts","sourceRoot":"","sources":["../src/auth-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,cAAc,EACf,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,yBAAyB,CAAC,SAAS,CAAC;IAC1F,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,YAA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EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAElD;IAED;;;;;;OAMG;IACH,YAAY,CAAC,qBAAqB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEvE;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtC;IAED;;;;OAIG;IACH,kBAAkB,IAAI,MAAM,CAE3B;CACF"}
|
package/dist/error.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,uBAAuB,GACvB,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,iBAAiB,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,SAAkB,KAAK,CAAC,EAAE,KAAK,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,uBAAuB,GACvB,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,iBAAiB,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,SAAkB,KAAK,CAAC,EAAE,KAAK,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,YAAY,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAS3E;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,IAAI,SAAS,CAE/B;IAED;;OAEG;IACH,MAAM,CAAC,aAAa,IAAI,SAAS,CAEhC;IAED;;OAEG;IACH,MAAM,CAAC,WAAW,IAAI,SAAS,CAE9B;IAED;;OAEG;IACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAEhE;IAED;;OAEG;IACH,MAAM,CAAC,kBAAkB,IAAI,SAAS,CAErC;IAED;;OAEG;IACH,MAAM,CAAC,cAAc,IAAI,SAAS,CAEjC;IAED;;OAEG;IACH,MAAM,CAAC,cAAc,IAAI,SAAS,CAEjC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAE5C;IAED;;OAEG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAG1D;CACF"}
|
package/dist/index.cjs
CHANGED
|
@@ -694,6 +694,46 @@ function getRequestHeader(request, name) {
|
|
|
694
694
|
}
|
|
695
695
|
//#endregion
|
|
696
696
|
//#region ../../packages/_internal-core/dist/logger/index.js
|
|
697
|
+
/**
|
|
698
|
+
* Export a tracked exception through the adapter sink, mirroring the
|
|
699
|
+
* DualLogger dual-write shape (`errorId`/`domain`/`category`/`details`/`cause`
|
|
700
|
+
* when present on a MastraError-like value). Never throws into the caller.
|
|
701
|
+
*/
|
|
702
|
+
function exportTrackedException(ctx, error, metadata) {
|
|
703
|
+
if (!ctx?.options.export) return;
|
|
704
|
+
try {
|
|
705
|
+
const mastraError = error;
|
|
706
|
+
ctx.getLogSink()?.error(error.message, {
|
|
707
|
+
...mastraError.id !== void 0 ? { errorId: mastraError.id } : {},
|
|
708
|
+
...mastraError.domain !== void 0 ? { domain: mastraError.domain } : {},
|
|
709
|
+
...mastraError.category !== void 0 ? { category: mastraError.category } : {},
|
|
710
|
+
...mastraError.details !== void 0 ? { details: mastraError.details } : {},
|
|
711
|
+
...error.cause instanceof Error ? { cause: error.cause.message } : {},
|
|
712
|
+
...metadata
|
|
713
|
+
});
|
|
714
|
+
} catch {}
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Adapt IMastraLogger's variadic args into the structured `data` payload of
|
|
718
|
+
* an exported log record. Extracts the first plain object as data,
|
|
719
|
+
* serializes an Error arg, and collects remaining primitives under `args`
|
|
720
|
+
* so the derived record preserves all context from the native call.
|
|
721
|
+
*/
|
|
722
|
+
function buildLogRecordData(args) {
|
|
723
|
+
const objectData = args.find((arg) => arg !== null && typeof arg === "object" && !Array.isArray(arg) && !(arg instanceof Error));
|
|
724
|
+
const errorArg = args.find((arg) => arg instanceof Error);
|
|
725
|
+
const extraArgs = args.filter((arg) => arg !== objectData && arg !== errorArg);
|
|
726
|
+
if (!objectData && !errorArg && extraArgs.length === 0) return void 0;
|
|
727
|
+
return {
|
|
728
|
+
...objectData ?? {},
|
|
729
|
+
...errorArg ? { error: {
|
|
730
|
+
name: errorArg.name,
|
|
731
|
+
message: errorArg.message,
|
|
732
|
+
stack: errorArg.stack
|
|
733
|
+
} } : {},
|
|
734
|
+
...extraArgs.length > 0 ? { args: extraArgs } : {}
|
|
735
|
+
};
|
|
736
|
+
}
|
|
697
737
|
const RegisteredLogger = {
|
|
698
738
|
AGENT: "AGENT",
|
|
699
739
|
OBSERVABILITY: "OBSERVABILITY",
|
|
@@ -780,19 +820,56 @@ var MastraLogger = class {
|
|
|
780
820
|
var ConsoleLogger = class ConsoleLogger extends MastraLogger {
|
|
781
821
|
component;
|
|
782
822
|
filter;
|
|
823
|
+
#adapterContext;
|
|
783
824
|
constructor(options = {}) {
|
|
784
825
|
super(options);
|
|
785
826
|
this.component = options.component;
|
|
786
827
|
this.filter = options.filter;
|
|
787
828
|
}
|
|
829
|
+
/**
|
|
830
|
+
* Adapter hook (see `AdaptableLogger`): enables native trace correlation
|
|
831
|
+
* (trace_id/span_id appended to console output) and observability export
|
|
832
|
+
* derived from the same record. Called by Mastra during setup.
|
|
833
|
+
*/
|
|
834
|
+
__attachObservability(ctx) {
|
|
835
|
+
this.#adapterContext = ctx;
|
|
836
|
+
}
|
|
788
837
|
child(componentOrBindings) {
|
|
789
838
|
const component = typeof componentOrBindings === "string" ? componentOrBindings : componentOrBindings?.component ?? this.component;
|
|
790
|
-
|
|
839
|
+
const child = new ConsoleLogger({
|
|
791
840
|
name: this.name,
|
|
792
841
|
level: this.level,
|
|
793
842
|
component,
|
|
794
843
|
filter: this.filter
|
|
795
844
|
});
|
|
845
|
+
if (this.#adapterContext) child.__attachObservability(this.#adapterContext);
|
|
846
|
+
return child;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Native-record correlation: when a span is active, append the trace
|
|
850
|
+
* fields object to the console args so every destination sees them.
|
|
851
|
+
*/
|
|
852
|
+
#correlate(args) {
|
|
853
|
+
const ctx = this.#adapterContext;
|
|
854
|
+
if (!ctx?.options.correlation) return args;
|
|
855
|
+
try {
|
|
856
|
+
const fields = ctx.resolveTraceFields();
|
|
857
|
+
return fields ? [...args, fields] : args;
|
|
858
|
+
} catch {
|
|
859
|
+
return args;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Export the record derived from the same native call to observability.
|
|
864
|
+
* Mirrors DualLogger semantics: export is independent of the console
|
|
865
|
+
* level filter, and never throws into the caller.
|
|
866
|
+
*/
|
|
867
|
+
#export(level, message, args) {
|
|
868
|
+
const ctx = this.#adapterContext;
|
|
869
|
+
if (!ctx?.options.export) return;
|
|
870
|
+
try {
|
|
871
|
+
ctx.getLogSink()?.[level](message, buildLogRecordData(args));
|
|
872
|
+
} catch {}
|
|
796
873
|
}
|
|
797
874
|
shouldLog(level, message, args) {
|
|
798
875
|
if (!this.filter) return true;
|
|
@@ -812,16 +889,23 @@ var ConsoleLogger = class ConsoleLogger extends MastraLogger {
|
|
|
812
889
|
return this.component ? `[${this.component}] ` : "";
|
|
813
890
|
}
|
|
814
891
|
debug(message, ...args) {
|
|
815
|
-
if (this.level === LogLevel.DEBUG && this.shouldLog(LogLevel.DEBUG, message, args)) console.info(`${this.prefix()}${message}`, ...args);
|
|
892
|
+
if (this.level === LogLevel.DEBUG && this.shouldLog(LogLevel.DEBUG, message, args)) console.info(`${this.prefix()}${message}`, ...this.#correlate(args));
|
|
893
|
+
this.#export("debug", message, args);
|
|
816
894
|
}
|
|
817
895
|
info(message, ...args) {
|
|
818
|
-
if ((this.level === LogLevel.INFO || this.level === LogLevel.DEBUG) && this.shouldLog(LogLevel.INFO, message, args)) console.info(`${this.prefix()}${message}`, ...args);
|
|
896
|
+
if ((this.level === LogLevel.INFO || this.level === LogLevel.DEBUG) && this.shouldLog(LogLevel.INFO, message, args)) console.info(`${this.prefix()}${message}`, ...this.#correlate(args));
|
|
897
|
+
this.#export("info", message, args);
|
|
819
898
|
}
|
|
820
899
|
warn(message, ...args) {
|
|
821
|
-
if ((this.level === LogLevel.WARN || this.level === LogLevel.INFO || this.level === LogLevel.DEBUG) && this.shouldLog(LogLevel.WARN, message, args)) console.warn(`${this.prefix()}${message}`, ...args);
|
|
900
|
+
if ((this.level === LogLevel.WARN || this.level === LogLevel.INFO || this.level === LogLevel.DEBUG) && this.shouldLog(LogLevel.WARN, message, args)) console.warn(`${this.prefix()}${message}`, ...this.#correlate(args));
|
|
901
|
+
this.#export("warn", message, args);
|
|
822
902
|
}
|
|
823
903
|
error(message, ...args) {
|
|
824
|
-
if ((this.level === LogLevel.ERROR || this.level === LogLevel.WARN || this.level === LogLevel.INFO || this.level === LogLevel.DEBUG) && this.shouldLog(LogLevel.ERROR, message, args)) console.error(`${this.prefix()}${message}`, ...args);
|
|
904
|
+
if ((this.level === LogLevel.ERROR || this.level === LogLevel.WARN || this.level === LogLevel.INFO || this.level === LogLevel.DEBUG) && this.shouldLog(LogLevel.ERROR, message, args)) console.error(`${this.prefix()}${message}`, ...this.#correlate(args));
|
|
905
|
+
this.#export("error", message, args);
|
|
906
|
+
}
|
|
907
|
+
trackException(error, metadata) {
|
|
908
|
+
exportTrackedException(this.#adapterContext, error, metadata);
|
|
825
909
|
}
|
|
826
910
|
async listLogs(_transportId, _params) {
|
|
827
911
|
return {
|