@vivix-labs/studio-chat-mcp 0.1.18 → 0.1.19
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/server.js +5 -4
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -29429,7 +29429,7 @@ data:
|
|
|
29429
29429
|
// package.json
|
|
29430
29430
|
var package_default = {
|
|
29431
29431
|
name: "@vivix-labs/studio-chat-mcp",
|
|
29432
|
-
version: "0.1.
|
|
29432
|
+
version: "0.1.19",
|
|
29433
29433
|
type: "module",
|
|
29434
29434
|
engines: {
|
|
29435
29435
|
node: ">=22.12.0"
|
|
@@ -38437,11 +38437,12 @@ function declaredAction(chat, source, action, context) {
|
|
|
38437
38437
|
import { constants } from "node:fs";
|
|
38438
38438
|
import { open as open2 } from "node:fs/promises";
|
|
38439
38439
|
import { extname, isAbsolute } from "node:path";
|
|
38440
|
+
var finiteNonNegativeInteger = external_exports.number().finite().nonnegative().refine(Number.isInteger, "Expected a non-negative integer.");
|
|
38440
38441
|
var snapshot = external_exports.object({
|
|
38441
38442
|
sizeBytes: external_exports.number().int().positive().max(2147483648),
|
|
38442
38443
|
mtimeMs: external_exports.number().finite(),
|
|
38443
|
-
inode:
|
|
38444
|
-
device:
|
|
38444
|
+
inode: finiteNonNegativeInteger,
|
|
38445
|
+
device: finiteNonNegativeInteger
|
|
38445
38446
|
}).strict();
|
|
38446
38447
|
var localMediaInput = external_exports.object({
|
|
38447
38448
|
path: external_exports.string().min(1).max(32768).refine(
|
|
@@ -38473,7 +38474,7 @@ async function readLocalMedia(raw) {
|
|
|
38473
38474
|
const input2 = localMediaInput.parse(raw);
|
|
38474
38475
|
const mimeType = mimeTypes[extname(input2.path).toLowerCase()];
|
|
38475
38476
|
if (!mimeType) throw Error("Choose a supported local image, audio or video file.");
|
|
38476
|
-
const file2 = await open2(input2.path, constants.O_RDONLY | constants.O_NONBLOCK);
|
|
38477
|
+
const file2 = await open2(input2.path, constants.O_RDONLY | (constants.O_NONBLOCK ?? 0));
|
|
38477
38478
|
try {
|
|
38478
38479
|
const before = await file2.stat();
|
|
38479
38480
|
if (!before.isFile() || before.size === 0 || before.size > 2147483648)
|