@mastra/auth-workos 0.10.0 → 0.10.1-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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs +35 -12
- package/dist/index.js +35 -12
- package/package.json +7 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/auth-workos@0.10.0 build /home/runner/work/mastra/mastra/auth/workos
|
|
2
|
+
> @mastra/auth-workos@0.10.1-alpha.0 build /home/runner/work/mastra/mastra/auth/workos
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.
|
|
7
|
+
[34mCLI[39m tsup v8.5.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 8093ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/auth/workos/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/auth/workos/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 9966ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[32mESM[39m [1mdist/
|
|
20
|
+
[32mESM[39m [1mdist/getMachineId-bsd-IPBZSYCM.js [22m[32m564.00 B[39m
|
|
21
21
|
[32mESM[39m [1mdist/getMachineId-darwin-UJH25LDA.js [22m[32m770.00 B[39m
|
|
22
22
|
[32mESM[39m [1mdist/getMachineId-linux-YF3RLZNP.js [22m[32m440.00 B[39m
|
|
23
|
-
[32mESM[39m [1mdist/getMachineId-bsd-IPBZSYCM.js [22m[32m564.00 B[39m
|
|
24
|
-
[32mESM[39m [1mdist/getMachineId-win-PKATJI4A.js [22m[32m738.00 B[39m
|
|
25
23
|
[32mESM[39m [1mdist/chunk-N62AETLJ.js [22m[32m334.00 B[39m
|
|
26
24
|
[32mESM[39m [1mdist/getMachineId-unsupported-UOUTBEEW.js [22m[32m382.00 B[39m
|
|
25
|
+
[32mESM[39m [1mdist/getMachineId-win-PKATJI4A.js [22m[32m738.00 B[39m
|
|
26
|
+
[32mESM[39m [1mdist/index.js [22m[32m12.40 KB[39m
|
|
27
27
|
[32mESM[39m [1mdist/chunk-JLXWUSDO.js [22m[32m32.51 KB[39m
|
|
28
|
-
[32mESM[39m ⚡️ Build success in
|
|
29
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
30
|
-
[32mCJS[39m ⚡️ Build success in
|
|
28
|
+
[32mESM[39m ⚡️ Build success in 1844ms
|
|
29
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m54.34 KB[39m
|
|
30
|
+
[32mCJS[39m ⚡️ Build success in 1846ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
1
|
# @mastra/auth-workos
|
|
2
|
+
|
|
3
|
+
## 0.10.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 63f6b7d: dependencies updates:
|
|
8
|
+
- Updated dependency [`@workos-inc/node@^7.54.0` ↗︎](https://www.npmjs.com/package/@workos-inc/node/v/7.54.0) (from `^7.50.1`, in `dependencies`)
|
|
9
|
+
- @mastra/auth@0.1.0
|
package/dist/index.cjs
CHANGED
|
@@ -1174,7 +1174,7 @@ var init_esm = __esm({
|
|
|
1174
1174
|
}
|
|
1175
1175
|
});
|
|
1176
1176
|
|
|
1177
|
-
// ../../packages/core/dist/chunk-
|
|
1177
|
+
// ../../packages/core/dist/chunk-6PQRSQZF.js
|
|
1178
1178
|
init_esm();
|
|
1179
1179
|
function hasActiveTelemetry(tracerName = "default-tracer") {
|
|
1180
1180
|
try {
|
|
@@ -1306,7 +1306,7 @@ function InstrumentClass(options) {
|
|
|
1306
1306
|
};
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
|
-
// ../../packages/core/dist/chunk-
|
|
1309
|
+
// ../../packages/core/dist/chunk-5YDTZN2X.js
|
|
1310
1310
|
var RegisteredLogger = {
|
|
1311
1311
|
LLM: "LLM"};
|
|
1312
1312
|
var LogLevel = {
|
|
@@ -1326,17 +1326,40 @@ var MastraLogger = class {
|
|
|
1326
1326
|
getTransports() {
|
|
1327
1327
|
return this.transports;
|
|
1328
1328
|
}
|
|
1329
|
-
|
|
1329
|
+
trackException(_error) {
|
|
1330
|
+
}
|
|
1331
|
+
async getLogs(transportId, params) {
|
|
1330
1332
|
if (!transportId || !this.transports.has(transportId)) {
|
|
1331
|
-
return [];
|
|
1333
|
+
return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
|
|
1332
1334
|
}
|
|
1333
|
-
return this.transports.get(transportId).getLogs() ??
|
|
1335
|
+
return this.transports.get(transportId).getLogs(params) ?? {
|
|
1336
|
+
logs: [],
|
|
1337
|
+
total: 0,
|
|
1338
|
+
page: params?.page ?? 1,
|
|
1339
|
+
perPage: params?.perPage ?? 100,
|
|
1340
|
+
hasMore: false
|
|
1341
|
+
};
|
|
1334
1342
|
}
|
|
1335
|
-
async getLogsByRunId({
|
|
1343
|
+
async getLogsByRunId({
|
|
1344
|
+
transportId,
|
|
1345
|
+
runId,
|
|
1346
|
+
fromDate,
|
|
1347
|
+
toDate,
|
|
1348
|
+
logLevel,
|
|
1349
|
+
filters,
|
|
1350
|
+
page,
|
|
1351
|
+
perPage
|
|
1352
|
+
}) {
|
|
1336
1353
|
if (!transportId || !this.transports.has(transportId) || !runId) {
|
|
1337
|
-
return [];
|
|
1354
|
+
return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
|
|
1338
1355
|
}
|
|
1339
|
-
return this.transports.get(transportId).getLogsByRunId({ runId }) ??
|
|
1356
|
+
return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
|
|
1357
|
+
logs: [],
|
|
1358
|
+
total: 0,
|
|
1359
|
+
page: page ?? 1,
|
|
1360
|
+
perPage: perPage ?? 100,
|
|
1361
|
+
hasMore: false
|
|
1362
|
+
};
|
|
1340
1363
|
}
|
|
1341
1364
|
};
|
|
1342
1365
|
var ConsoleLogger = class extends MastraLogger {
|
|
@@ -1363,15 +1386,15 @@ var ConsoleLogger = class extends MastraLogger {
|
|
|
1363
1386
|
console.error(message, ...args);
|
|
1364
1387
|
}
|
|
1365
1388
|
}
|
|
1366
|
-
async getLogs(_transportId) {
|
|
1367
|
-
return [];
|
|
1389
|
+
async getLogs(_transportId, _params) {
|
|
1390
|
+
return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
|
|
1368
1391
|
}
|
|
1369
1392
|
async getLogsByRunId(_args) {
|
|
1370
|
-
return [];
|
|
1393
|
+
return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
|
|
1371
1394
|
}
|
|
1372
1395
|
};
|
|
1373
1396
|
|
|
1374
|
-
// ../../packages/core/dist/chunk-
|
|
1397
|
+
// ../../packages/core/dist/chunk-5IEKR756.js
|
|
1375
1398
|
var MastraBase = class {
|
|
1376
1399
|
component = RegisteredLogger.LLM;
|
|
1377
1400
|
logger;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SpanKind, trace, context, propagation, SpanStatusCode } from './chunk-J
|
|
|
2
2
|
import { verifyJwks } from '@mastra/auth';
|
|
3
3
|
import { WorkOS } from '@workos-inc/node';
|
|
4
4
|
|
|
5
|
-
// ../../packages/core/dist/chunk-
|
|
5
|
+
// ../../packages/core/dist/chunk-6PQRSQZF.js
|
|
6
6
|
function hasActiveTelemetry(tracerName = "default-tracer") {
|
|
7
7
|
try {
|
|
8
8
|
return !!trace.getTracer(tracerName);
|
|
@@ -133,7 +133,7 @@ function InstrumentClass(options) {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// ../../packages/core/dist/chunk-
|
|
136
|
+
// ../../packages/core/dist/chunk-5YDTZN2X.js
|
|
137
137
|
var RegisteredLogger = {
|
|
138
138
|
LLM: "LLM"};
|
|
139
139
|
var LogLevel = {
|
|
@@ -153,17 +153,40 @@ var MastraLogger = class {
|
|
|
153
153
|
getTransports() {
|
|
154
154
|
return this.transports;
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
trackException(_error) {
|
|
157
|
+
}
|
|
158
|
+
async getLogs(transportId, params) {
|
|
157
159
|
if (!transportId || !this.transports.has(transportId)) {
|
|
158
|
-
return [];
|
|
160
|
+
return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
|
|
159
161
|
}
|
|
160
|
-
return this.transports.get(transportId).getLogs() ??
|
|
162
|
+
return this.transports.get(transportId).getLogs(params) ?? {
|
|
163
|
+
logs: [],
|
|
164
|
+
total: 0,
|
|
165
|
+
page: params?.page ?? 1,
|
|
166
|
+
perPage: params?.perPage ?? 100,
|
|
167
|
+
hasMore: false
|
|
168
|
+
};
|
|
161
169
|
}
|
|
162
|
-
async getLogsByRunId({
|
|
170
|
+
async getLogsByRunId({
|
|
171
|
+
transportId,
|
|
172
|
+
runId,
|
|
173
|
+
fromDate,
|
|
174
|
+
toDate,
|
|
175
|
+
logLevel,
|
|
176
|
+
filters,
|
|
177
|
+
page,
|
|
178
|
+
perPage
|
|
179
|
+
}) {
|
|
163
180
|
if (!transportId || !this.transports.has(transportId) || !runId) {
|
|
164
|
-
return [];
|
|
181
|
+
return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
|
|
165
182
|
}
|
|
166
|
-
return this.transports.get(transportId).getLogsByRunId({ runId }) ??
|
|
183
|
+
return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
|
|
184
|
+
logs: [],
|
|
185
|
+
total: 0,
|
|
186
|
+
page: page ?? 1,
|
|
187
|
+
perPage: perPage ?? 100,
|
|
188
|
+
hasMore: false
|
|
189
|
+
};
|
|
167
190
|
}
|
|
168
191
|
};
|
|
169
192
|
var ConsoleLogger = class extends MastraLogger {
|
|
@@ -190,15 +213,15 @@ var ConsoleLogger = class extends MastraLogger {
|
|
|
190
213
|
console.error(message, ...args);
|
|
191
214
|
}
|
|
192
215
|
}
|
|
193
|
-
async getLogs(_transportId) {
|
|
194
|
-
return [];
|
|
216
|
+
async getLogs(_transportId, _params) {
|
|
217
|
+
return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
|
|
195
218
|
}
|
|
196
219
|
async getLogsByRunId(_args) {
|
|
197
|
-
return [];
|
|
220
|
+
return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
|
|
198
221
|
}
|
|
199
222
|
};
|
|
200
223
|
|
|
201
|
-
// ../../packages/core/dist/chunk-
|
|
224
|
+
// ../../packages/core/dist/chunk-5IEKR756.js
|
|
202
225
|
var MastraBase = class {
|
|
203
226
|
component = RegisteredLogger.LLM;
|
|
204
227
|
logger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/auth-workos",
|
|
3
|
-
"version": "0.10.0",
|
|
3
|
+
"version": "0.10.1-alpha.0",
|
|
4
4
|
"description": "Mastra WorkOS Auth integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Elastic-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@workos-inc/node": "^7.
|
|
23
|
+
"@workos-inc/node": "^7.54.0",
|
|
24
24
|
"@mastra/auth": "0.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"eslint": "^9.
|
|
29
|
-
"tsup": "^8.
|
|
27
|
+
"@types/node": "^20.19.0",
|
|
28
|
+
"eslint": "^9.28.0",
|
|
29
|
+
"tsup": "^8.5.0",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"vitest": "^2.1.9",
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
32
|
+
"@internal/lint": "0.0.12",
|
|
33
|
+
"@mastra/core": "0.10.6-alpha.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake",
|