jefrichat-mcp 0.49.0 → 0.49.1
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/http.js +14 -1
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/http.js
CHANGED
|
@@ -63168,10 +63168,23 @@ ${fp}`);
|
|
|
63168
63168
|
}
|
|
63169
63169
|
const cmd = `curl -s --no-clobber --create-dirs -o ${shPathArg(`${DOWNLOAD_DIR_SH}/${out}`)} -H "Authorization: Bearer $JEFRI_TOKEN" ${shq(`${hub}/api/files/${match.id}`)}`;
|
|
63170
63170
|
const web2 = hub.replace("acp-hub.", "acp-web.").replace(":4000", ":4321");
|
|
63171
|
+
let directLink = "";
|
|
63172
|
+
try {
|
|
63173
|
+
const lr = await fetch(`${hub}/api/files/${match.id}/link`, {
|
|
63174
|
+
method: "POST",
|
|
63175
|
+
headers: { authorization: `Bearer ${c.token}` }
|
|
63176
|
+
});
|
|
63177
|
+
if (lr.ok) {
|
|
63178
|
+
const body = await lr.json();
|
|
63179
|
+
if (body?.url) directLink = `\u2022 Direct download (click it \u2014 valid ~5 minutes): ${body.url}
|
|
63180
|
+
`;
|
|
63181
|
+
}
|
|
63182
|
+
} catch {
|
|
63183
|
+
}
|
|
63171
63184
|
return ok3(
|
|
63172
63185
|
`\u{1F4CE} ${match.fileName} (${fmime2}) is a binary/large file \u2014 I can't show it inline.
|
|
63173
63186
|
|
|
63174
|
-
|
|
63187
|
+
` + directLink + `\u2022 Web app (the file renders in the chat): ${web2}
|
|
63175
63188
|
\u2022 Terminal: ${cmd}
|
|
63176
63189
|
(set your token first: export JEFRI_TOKEN=\u2026 from the app's Connect dialog \u2014 it isn't printed here on purpose.)`
|
|
63177
63190
|
);
|
package/dist/index.js
CHANGED
|
@@ -41631,10 +41631,23 @@ ${fp}`);
|
|
|
41631
41631
|
}
|
|
41632
41632
|
const cmd = `curl -s --no-clobber --create-dirs -o ${shPathArg(`${DOWNLOAD_DIR_SH}/${out}`)} -H "Authorization: Bearer $JEFRI_TOKEN" ${shq(`${hub}/api/files/${match.id}`)}`;
|
|
41633
41633
|
const web2 = hub.replace("acp-hub.", "acp-web.").replace(":4000", ":4321");
|
|
41634
|
+
let directLink = "";
|
|
41635
|
+
try {
|
|
41636
|
+
const lr = await fetch(`${hub}/api/files/${match.id}/link`, {
|
|
41637
|
+
method: "POST",
|
|
41638
|
+
headers: { authorization: `Bearer ${c2.token}` }
|
|
41639
|
+
});
|
|
41640
|
+
if (lr.ok) {
|
|
41641
|
+
const body = await lr.json();
|
|
41642
|
+
if (body?.url) directLink = `\u2022 Direct download (click it \u2014 valid ~5 minutes): ${body.url}
|
|
41643
|
+
`;
|
|
41644
|
+
}
|
|
41645
|
+
} catch {
|
|
41646
|
+
}
|
|
41634
41647
|
return ok3(
|
|
41635
41648
|
`\u{1F4CE} ${match.fileName} (${fmime2}) is a binary/large file \u2014 I can't show it inline.
|
|
41636
41649
|
|
|
41637
|
-
|
|
41650
|
+
` + directLink + `\u2022 Web app (the file renders in the chat): ${web2}
|
|
41638
41651
|
\u2022 Terminal: ${cmd}
|
|
41639
41652
|
(set your token first: export JEFRI_TOKEN=\u2026 from the app's Connect dialog \u2014 it isn't printed here on purpose.)`
|
|
41640
41653
|
);
|
package/package.json
CHANGED