pipebrain-mcp 0.37.1 → 0.37.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/dist/main.js +62 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -15049,6 +15049,13 @@ var instructionScopeSchema = external_exports.enum([
|
|
|
15049
15049
|
"work.bug",
|
|
15050
15050
|
"work.feedback"
|
|
15051
15051
|
]);
|
|
15052
|
+
var notificationEventKindSchema = external_exports.enum([
|
|
15053
|
+
"question_asked",
|
|
15054
|
+
"work_at_verify",
|
|
15055
|
+
"feedback_received",
|
|
15056
|
+
"chat_message"
|
|
15057
|
+
]);
|
|
15058
|
+
var NOTIFICATION_EVENT_KINDS = notificationEventKindSchema.options;
|
|
15052
15059
|
|
|
15053
15060
|
// ../../libs/domain/dist/primitives.js
|
|
15054
15061
|
var uuidSchema = external_exports.uuid();
|
|
@@ -15740,6 +15747,23 @@ var orgInstructionSchema = external_exports.object({
|
|
|
15740
15747
|
updatedAt: external_exports.iso.datetime({ offset: true }),
|
|
15741
15748
|
deletedAt: external_exports.iso.datetime({ offset: true }).nullable()
|
|
15742
15749
|
});
|
|
15750
|
+
var pushSubscriptionSchema = external_exports.object({
|
|
15751
|
+
id: uuidSchema,
|
|
15752
|
+
orgId: uuidSchema,
|
|
15753
|
+
userId: uuidSchema,
|
|
15754
|
+
endpoint: external_exports.string().min(1),
|
|
15755
|
+
p256dh: external_exports.string().min(1),
|
|
15756
|
+
auth: external_exports.string().min(1),
|
|
15757
|
+
userAgent: external_exports.string().nullable(),
|
|
15758
|
+
lastUsedAt: external_exports.iso.datetime({ offset: true }).nullable(),
|
|
15759
|
+
createdAt: external_exports.iso.datetime({ offset: true }),
|
|
15760
|
+
updatedAt: external_exports.iso.datetime({ offset: true }),
|
|
15761
|
+
deletedAt: external_exports.iso.datetime({ offset: true }).nullable()
|
|
15762
|
+
});
|
|
15763
|
+
var notificationPreferenceSchema = external_exports.object({
|
|
15764
|
+
eventKind: external_exports.string().min(1),
|
|
15765
|
+
enabled: external_exports.boolean()
|
|
15766
|
+
});
|
|
15743
15767
|
|
|
15744
15768
|
// ../../libs/domain/dist/inputs.js
|
|
15745
15769
|
var int4Schema = positiveIntSchema.max(2147483647, {
|
|
@@ -16235,6 +16259,43 @@ var setOrgInstructionInputSchema = external_exports.strictObject({
|
|
|
16235
16259
|
var deleteOrgInstructionInputSchema = external_exports.strictObject({
|
|
16236
16260
|
scope: instructionScopeSchema
|
|
16237
16261
|
});
|
|
16262
|
+
var IPV4_LITERAL_RE = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
|
|
16263
|
+
var REFUSED_IPV4_RE = /^(?:0|10|100\.(?:6[4-9]|[7-9]\d|1[01]\d|12[0-7])|127|169\.254|172\.(?:1[6-9]|2\d|3[01])|192\.0\.0|192\.168|198\.1[89]|22[4-9]|23\d)\.|^255\.255\.255\.255$/;
|
|
16264
|
+
function normalisedHost(hostname3) {
|
|
16265
|
+
const lowered = hostname3.toLowerCase();
|
|
16266
|
+
return lowered.endsWith(".") ? lowered.slice(0, -1) : lowered;
|
|
16267
|
+
}
|
|
16268
|
+
function isSendablePushEndpoint(raw) {
|
|
16269
|
+
let url2;
|
|
16270
|
+
try {
|
|
16271
|
+
url2 = new URL(raw);
|
|
16272
|
+
} catch {
|
|
16273
|
+
return false;
|
|
16274
|
+
}
|
|
16275
|
+
if (url2.protocol !== "https:")
|
|
16276
|
+
return false;
|
|
16277
|
+
const host = normalisedHost(url2.hostname);
|
|
16278
|
+
if (host === "localhost" || host.endsWith(".localhost"))
|
|
16279
|
+
return false;
|
|
16280
|
+
if (host.includes(":"))
|
|
16281
|
+
return false;
|
|
16282
|
+
if (IPV4_LITERAL_RE.test(host))
|
|
16283
|
+
return !REFUSED_IPV4_RE.test(host);
|
|
16284
|
+
return true;
|
|
16285
|
+
}
|
|
16286
|
+
var PUSH_ENDPOINT_MESSAGE = "endpoint must be the https:// URL a browser push subscription carries \u2014 a public push service address, never a loopback, private, or link-local one";
|
|
16287
|
+
var registerPushDeviceInputSchema = external_exports.strictObject({
|
|
16288
|
+
endpoint: external_exports.url({ message: PUSH_ENDPOINT_MESSAGE }).refine(isSendablePushEndpoint, { message: PUSH_ENDPOINT_MESSAGE }),
|
|
16289
|
+
p256dh: external_exports.string().min(1, { message: "p256dh is required" }),
|
|
16290
|
+
auth: external_exports.string().min(1, { message: "auth is required" }),
|
|
16291
|
+
userAgent: external_exports.string().min(1).max(500).optional()
|
|
16292
|
+
});
|
|
16293
|
+
var setNotificationPreferencesInputSchema = external_exports.strictObject({
|
|
16294
|
+
preferences: external_exports.array(external_exports.strictObject({
|
|
16295
|
+
eventKind: notificationEventKindSchema,
|
|
16296
|
+
enabled: external_exports.boolean()
|
|
16297
|
+
})).min(1, { message: "at least one preference is required" })
|
|
16298
|
+
});
|
|
16238
16299
|
|
|
16239
16300
|
// ../../libs/agent-shared/dist/token-shape.js
|
|
16240
16301
|
function isAcceptedTokenShape(value) {
|
|
@@ -17833,7 +17894,7 @@ function loadMcpConfig() {
|
|
|
17833
17894
|
}
|
|
17834
17895
|
|
|
17835
17896
|
// src/version.ts
|
|
17836
|
-
var VERSION = "0.37.
|
|
17897
|
+
var VERSION = "0.37.2";
|
|
17837
17898
|
|
|
17838
17899
|
// src/main.ts
|
|
17839
17900
|
var config2 = loadMcpConfig();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pipebrain-mcp",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.2",
|
|
4
4
|
"description": "Pipebrain MCP server for Claude Code and Claude Desktop — issues, requirements, content, assets, and metadata-only secrets over the Pipebrain API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|