@usecontextlayer/ctxb 0.5.14 → 0.5.16
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/cli.mjs +45 -5
- package/dist/cli.mjs.map +1 -1
- package/package.json +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0ff62d08-5ee0-585a-85be-14077f78f70b")}catch(e){}}();
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
6
6
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -4456,7 +4456,7 @@ function normalizedKey(event) {
|
|
|
4456
4456
|
|
|
4457
4457
|
//#endregion
|
|
4458
4458
|
//#region package.json
|
|
4459
|
-
var version = "0.5.
|
|
4459
|
+
var version = "0.5.16";
|
|
4460
4460
|
|
|
4461
4461
|
//#endregion
|
|
4462
4462
|
//#region sentry.ts
|
|
@@ -12037,7 +12037,7 @@ let logging;
|
|
|
12037
12037
|
})(logging || (logging = {}));
|
|
12038
12038
|
|
|
12039
12039
|
//#endregion
|
|
12040
|
-
//#region ../shared/dist/
|
|
12040
|
+
//#region ../shared/dist/ctx-token-provider.mjs
|
|
12041
12041
|
function ctxAuthHeaders(tokenProvider) {
|
|
12042
12042
|
if (!tokenProvider) return {};
|
|
12043
12043
|
return { headers: { Authorization: async () => `Bearer ${await tokenProvider()}` } };
|
|
@@ -12252,11 +12252,15 @@ const pluginAuthSchema = discriminatedUnion("type", [
|
|
|
12252
12252
|
pluginAuthClientCredentialsSchema,
|
|
12253
12253
|
pluginOAuthSchema
|
|
12254
12254
|
]).meta({ title: "PluginAuth" });
|
|
12255
|
+
const pluginMcpEnabledToolSchema = strictObject({ autoAllow: boolean$1().optional() });
|
|
12256
|
+
const pluginMcpEnabledToolsSchema = record$1(string$1().min(1), pluginMcpEnabledToolSchema).refine((tools) => Object.keys(tools).length > 0, { message: "enabledTools must declare at least one tool" }).meta({ title: "PluginMcpEnabledTools" });
|
|
12255
12257
|
const pluginMcpHttpServerSchema = strictObject({
|
|
12258
|
+
enabledTools: pluginMcpEnabledToolsSchema,
|
|
12256
12259
|
type: literal("http"),
|
|
12257
12260
|
url: url()
|
|
12258
12261
|
}).meta({ title: "PluginMcpHttpServer" });
|
|
12259
12262
|
const pluginMcpModuleServerSchema = strictObject({
|
|
12263
|
+
enabledTools: pluginMcpEnabledToolsSchema,
|
|
12260
12264
|
module: string$1().trim().min(1),
|
|
12261
12265
|
type: literal("module")
|
|
12262
12266
|
}).meta({ title: "PluginMcpModuleServer" });
|
|
@@ -12361,7 +12365,28 @@ const pluginRegistry = [
|
|
|
12361
12365
|
plugin_id: "linear"
|
|
12362
12366
|
},
|
|
12363
12367
|
{
|
|
12364
|
-
auth: {
|
|
12368
|
+
auth: {
|
|
12369
|
+
provider_id: "microsoft",
|
|
12370
|
+
scopes: ["Calendars.ReadWrite"],
|
|
12371
|
+
type: "oauth"
|
|
12372
|
+
},
|
|
12373
|
+
mcpServers: { microsoft_calendar: {
|
|
12374
|
+
enabledTools: {
|
|
12375
|
+
"accept-calendar-event": {},
|
|
12376
|
+
"cancel-calendar-event": {},
|
|
12377
|
+
"create-calendar-event": {},
|
|
12378
|
+
"decline-calendar-event": {},
|
|
12379
|
+
"delete-calendar-event": {},
|
|
12380
|
+
"get-calendar-event": { autoAllow: true },
|
|
12381
|
+
"get-calendar-view": { autoAllow: true },
|
|
12382
|
+
"list-calendar-events": { autoAllow: true },
|
|
12383
|
+
"list-calendars": { autoAllow: true },
|
|
12384
|
+
"tentatively-accept-calendar-event": {},
|
|
12385
|
+
"update-calendar-event": {}
|
|
12386
|
+
},
|
|
12387
|
+
type: "http",
|
|
12388
|
+
url: "https://mcp-microsoft-365.usecontextlayer.com/mcp"
|
|
12389
|
+
} },
|
|
12365
12390
|
mode: "dagster",
|
|
12366
12391
|
plugin_id: "microsoft_calendar"
|
|
12367
12392
|
},
|
|
@@ -12372,6 +12397,17 @@ const pluginRegistry = [
|
|
|
12372
12397
|
type: "oauth"
|
|
12373
12398
|
},
|
|
12374
12399
|
mcpServers: { microsoft_mail: {
|
|
12400
|
+
enabledTools: {
|
|
12401
|
+
"create-draft-email": {},
|
|
12402
|
+
"create-reply-draft": {},
|
|
12403
|
+
"get-mail-message": { autoAllow: true },
|
|
12404
|
+
"list-mail-folder-messages": { autoAllow: true },
|
|
12405
|
+
"list-mail-folders": { autoAllow: true },
|
|
12406
|
+
"list-mail-messages": { autoAllow: true },
|
|
12407
|
+
"reply-mail-message": {},
|
|
12408
|
+
"send-draft-message": {},
|
|
12409
|
+
"send-mail": {}
|
|
12410
|
+
},
|
|
12375
12411
|
type: "http",
|
|
12376
12412
|
url: "https://mcp-microsoft-365.usecontextlayer.com/mcp"
|
|
12377
12413
|
} },
|
|
@@ -12385,6 +12421,10 @@ const pluginRegistry = [
|
|
|
12385
12421
|
type: "oauth"
|
|
12386
12422
|
},
|
|
12387
12423
|
mcpServers: { microsoft_planner_premium: {
|
|
12424
|
+
enabledTools: {
|
|
12425
|
+
submit_operation_set: {},
|
|
12426
|
+
wait_for_operation_set: { autoAllow: true }
|
|
12427
|
+
},
|
|
12388
12428
|
module: "@usecontextlayer/mcp-microsoft-planner-premium",
|
|
12389
12429
|
type: "module"
|
|
12390
12430
|
} },
|
|
@@ -28603,4 +28643,4 @@ runCli().catch((error) => {
|
|
|
28603
28643
|
//#endregion
|
|
28604
28644
|
export { createProgram, runCli };
|
|
28605
28645
|
//# sourceMappingURL=cli.mjs.map
|
|
28606
|
-
//# debugId=
|
|
28646
|
+
//# debugId=0ff62d08-5ee0-585a-85be-14077f78f70b
|