@agentdocumentformat/cli 0.7.6 → 0.7.8
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/adf.mjs +3 -3
- package/dist/chunks/{App-U2XSNHUV.mjs → App-7RIIOHJJ.mjs} +5 -3
- package/dist/chunks/{chunk-HPVFJYXR.mjs → chunk-ESP3VNMX.mjs} +1 -1
- package/dist/chunks/{chunk-2WSQ7V6K.mjs → chunk-G6PH7RPW.mjs} +1 -250
- package/dist/chunks/chunk-HSBV6YFU.mjs +8554 -0
- package/dist/chunks/{chunk-3UCKYP7P.mjs → chunk-VN7UH7I5.mjs} +9 -0
- package/dist/chunks/chunk-Y2QA53AN.mjs +259 -0
- package/dist/chunks/{chunk-TPRZQ7Z4.mjs → chunk-ZESQMP66.mjs} +2 -2
- package/dist/chunks/{cli-XORTCRZW.mjs → cli-NMFIAR7Z.mjs} +1 -1
- package/dist/chunks/{commands-XNJMCD5L.mjs → commands-KPJWFRUE.mjs} +3 -1
- package/dist/chunks/{daemon-ZT5J445W.mjs → daemon-YDIK3AAM.mjs} +5398 -6994
- package/dist/chunks/{discord-IWDQJA7A.mjs → discord-DSP4HUWI.mjs} +3 -3
- package/dist/chunks/{email-V4Q4VJON.mjs → email-BRG7KUO2.mjs} +3 -2
- package/dist/chunks/{environment-NX277MQG.mjs → environment-R47X44GM.mjs} +1 -1
- package/dist/chunks/{pipeline-executor-U6IMCCP3.mjs → pipeline-executor-O77NTGLP.mjs} +5 -3
- package/dist/chunks/{slack-3L5QTDZX.mjs → slack-OCNNF4DX.mjs} +3 -3
- package/dist/chunks/{telegram-V4VH4PNE.mjs → telegram-2EFGKIVK.mjs} +22 -22
- package/dist/chunks/{tui-RVRDCIP4.mjs → tui-UQJLK7XI.mjs} +2 -2
- package/dist/chunks/{whatsapp-RDOC54X5.mjs → whatsapp-AJMRQBT7.mjs} +4 -4
- package/package.json +1 -1
- package/dist/chunks/chunk-ZROSGV65.mjs +0 -3112
|
@@ -70295,9 +70295,9 @@ var DiscordAdapter = class {
|
|
|
70295
70295
|
);
|
|
70296
70296
|
continue;
|
|
70297
70297
|
}
|
|
70298
|
-
let buffer = Buffer.from(await response.arrayBuffer()), filename = att.name ?? `attachment_${att.id}`, importPath = `imported/discord/${filename}`, mimeType = att.contentType ?? "application/octet-stream";
|
|
70299
|
-
|
|
70300
|
-
path:
|
|
70298
|
+
let buffer = Buffer.from(await response.arrayBuffer()), filename = att.name ?? `attachment_${att.id}`, importPath = `imported/discord/${filename}`, mimeType = att.contentType ?? "application/octet-stream", savedPath = this.ctx.writeAttachment(importPath, buffer, mimeType) || importPath;
|
|
70299
|
+
attachments.push({
|
|
70300
|
+
path: savedPath,
|
|
70301
70301
|
filename,
|
|
70302
70302
|
mimeType,
|
|
70303
70303
|
size: buffer.length
|
|
@@ -58519,8 +58519,9 @@ var EmailAdapter = class {
|
|
|
58519
58519
|
}
|
|
58520
58520
|
let filename = att.filename || `attachment_${Date.now()}`, importPath = `imported/email_${safeSender}/${filename}`;
|
|
58521
58521
|
try {
|
|
58522
|
-
this.ctx.writeAttachment(importPath, att.content, att.contentType)
|
|
58523
|
-
|
|
58522
|
+
let savedPath = this.ctx.writeAttachment(importPath, att.content, att.contentType) || importPath;
|
|
58523
|
+
attachments.push({
|
|
58524
|
+
path: savedPath,
|
|
58524
58525
|
filename,
|
|
58525
58526
|
mimeType: att.contentType,
|
|
58526
58527
|
size: att.size
|
|
@@ -7,10 +7,12 @@ const __dirname = __adfDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
MAX_SHELL_DEPTH,
|
|
9
9
|
executeNode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZESQMP66.mjs";
|
|
11
11
|
import "./chunk-5W7KES6P.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-ESP3VNMX.mjs";
|
|
13
|
+
import "./chunk-HSBV6YFU.mjs";
|
|
14
|
+
import "./chunk-G6PH7RPW.mjs";
|
|
15
|
+
import "./chunk-3GNIDM53.mjs";
|
|
14
16
|
import "./chunk-CD3ATSXE.mjs";
|
|
15
17
|
import "./chunk-M2RX3S2T.mjs";
|
|
16
18
|
export {
|
|
@@ -7774,9 +7774,9 @@ var SlackAdapter = class {
|
|
|
7774
7774
|
throw new Error(
|
|
7775
7775
|
`got an HTML login page instead of file content \u2014 the bot token may lack the "files:read" OAuth scope ${SCOPE_FIX_HINT}`
|
|
7776
7776
|
);
|
|
7777
|
-
let buffer = Buffer.from(await response.arrayBuffer()), filename = file.name ?? `file_${file.id}`, importPath = `imported/slack/${filename}
|
|
7778
|
-
|
|
7779
|
-
path:
|
|
7777
|
+
let buffer = Buffer.from(await response.arrayBuffer()), filename = file.name ?? `file_${file.id}`, importPath = `imported/slack/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, file.mimetype) || importPath;
|
|
7778
|
+
attachments.push({
|
|
7779
|
+
path: savedPath,
|
|
7780
7780
|
filename,
|
|
7781
7781
|
mimeType: file.mimetype ?? "application/octet-stream",
|
|
7782
7782
|
size: buffer.length
|
|
@@ -7,7 +7,6 @@ const __dirname = __adfDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
convertToOggOpus
|
|
9
9
|
} from "./chunk-BMNZ2VPS.mjs";
|
|
10
|
-
import "./chunk-3GNIDM53.mjs";
|
|
11
10
|
import {
|
|
12
11
|
require_safer
|
|
13
12
|
} from "./chunk-OQN33RGQ.mjs";
|
|
@@ -36,6 +35,7 @@ import {
|
|
|
36
35
|
import "./chunk-NZ7JTHEO.mjs";
|
|
37
36
|
import "./chunk-ZJKXHM4Q.mjs";
|
|
38
37
|
import "./chunk-RIX34QHC.mjs";
|
|
38
|
+
import "./chunk-3GNIDM53.mjs";
|
|
39
39
|
import {
|
|
40
40
|
__commonJS,
|
|
41
41
|
__require,
|
|
@@ -14130,9 +14130,9 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
14130
14130
|
try {
|
|
14131
14131
|
let file = await grammyCtx.api.getFile(photo.file_id);
|
|
14132
14132
|
if (file.file_path) {
|
|
14133
|
-
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = `photo_${photo.file_id}.jpg`, importPath = `imported/telegram/${filename}
|
|
14134
|
-
|
|
14135
|
-
path:
|
|
14133
|
+
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = `photo_${photo.file_id}.jpg`, importPath = `imported/telegram/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, "image/jpeg") || importPath;
|
|
14134
|
+
attachments.push({
|
|
14135
|
+
path: savedPath,
|
|
14136
14136
|
filename,
|
|
14137
14137
|
mimeType: "image/jpeg",
|
|
14138
14138
|
size: buffer.length
|
|
@@ -14148,9 +14148,9 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
14148
14148
|
try {
|
|
14149
14149
|
let file = await grammyCtx.api.getFile(doc.file_id);
|
|
14150
14150
|
if (file.file_path) {
|
|
14151
|
-
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = doc.file_name ?? `doc_${doc.file_id}`, importPath = `imported/telegram/${filename}
|
|
14152
|
-
|
|
14153
|
-
path:
|
|
14151
|
+
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = doc.file_name ?? `doc_${doc.file_id}`, importPath = `imported/telegram/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, doc.mime_type) || importPath;
|
|
14152
|
+
attachments.push({
|
|
14153
|
+
path: savedPath,
|
|
14154
14154
|
filename,
|
|
14155
14155
|
mimeType: doc.mime_type ?? "application/octet-stream",
|
|
14156
14156
|
size: buffer.length
|
|
@@ -14166,9 +14166,9 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
14166
14166
|
try {
|
|
14167
14167
|
let file = await grammyCtx.api.getFile(voice.file_id);
|
|
14168
14168
|
if (file.file_path) {
|
|
14169
|
-
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = `voice_${voice.file_id}.ogg`, importPath = `imported/telegram/${filename}
|
|
14170
|
-
|
|
14171
|
-
path:
|
|
14169
|
+
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = `voice_${voice.file_id}.ogg`, importPath = `imported/telegram/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, voice.mime_type ?? "audio/ogg") || importPath;
|
|
14170
|
+
attachments.push({
|
|
14171
|
+
path: savedPath,
|
|
14172
14172
|
filename,
|
|
14173
14173
|
mimeType: voice.mime_type ?? "audio/ogg",
|
|
14174
14174
|
size: buffer.length
|
|
@@ -14185,9 +14185,9 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
14185
14185
|
try {
|
|
14186
14186
|
let file = await grammyCtx.api.getFile(video.file_id);
|
|
14187
14187
|
if (file.file_path) {
|
|
14188
|
-
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), ext = video.mime_type?.split("/")[1] ?? "mp4", filename = video.file_name ?? `video_${video.file_id}.${ext}`, importPath = `imported/telegram/${filename}
|
|
14189
|
-
|
|
14190
|
-
path:
|
|
14188
|
+
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), ext = video.mime_type?.split("/")[1] ?? "mp4", filename = video.file_name ?? `video_${video.file_id}.${ext}`, importPath = `imported/telegram/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, video.mime_type ?? "video/mp4") || importPath;
|
|
14189
|
+
attachments.push({
|
|
14190
|
+
path: savedPath,
|
|
14191
14191
|
filename,
|
|
14192
14192
|
mimeType: video.mime_type ?? "video/mp4",
|
|
14193
14193
|
size: buffer.length
|
|
@@ -14204,9 +14204,9 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
14204
14204
|
try {
|
|
14205
14205
|
let file = await grammyCtx.api.getFile(vn.file_id);
|
|
14206
14206
|
if (file.file_path) {
|
|
14207
|
-
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = `videonote_${vn.file_id}.mp4`, importPath = `imported/telegram/${filename}
|
|
14208
|
-
|
|
14209
|
-
path:
|
|
14207
|
+
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = `videonote_${vn.file_id}.mp4`, importPath = `imported/telegram/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, "video/mp4") || importPath;
|
|
14208
|
+
attachments.push({
|
|
14209
|
+
path: savedPath,
|
|
14210
14210
|
filename,
|
|
14211
14211
|
mimeType: "video/mp4",
|
|
14212
14212
|
size: buffer.length
|
|
@@ -14223,9 +14223,9 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
14223
14223
|
try {
|
|
14224
14224
|
let file = await grammyCtx.api.getFile(audio.file_id);
|
|
14225
14225
|
if (file.file_path) {
|
|
14226
|
-
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = audio.file_name ?? `audio_${audio.file_id}.${audio.mime_type?.split("/")[1] ?? "mp3"}`, importPath = `imported/telegram/${filename}
|
|
14227
|
-
|
|
14228
|
-
path:
|
|
14226
|
+
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = audio.file_name ?? `audio_${audio.file_id}.${audio.mime_type?.split("/")[1] ?? "mp3"}`, importPath = `imported/telegram/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, audio.mime_type ?? "audio/mpeg") || importPath;
|
|
14227
|
+
attachments.push({
|
|
14228
|
+
path: savedPath,
|
|
14229
14229
|
filename,
|
|
14230
14230
|
mimeType: audio.mime_type ?? "audio/mpeg",
|
|
14231
14231
|
size: buffer.length
|
|
@@ -14242,9 +14242,9 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
14242
14242
|
try {
|
|
14243
14243
|
let file = await grammyCtx.api.getFile(anim.file_id);
|
|
14244
14244
|
if (file.file_path) {
|
|
14245
|
-
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = anim.file_name ?? `animation_${anim.file_id}.mp4`, importPath = `imported/telegram/${filename}
|
|
14246
|
-
|
|
14247
|
-
path:
|
|
14245
|
+
let url = `https://api.telegram.org/file/bot${token}/${file.file_path}`, response = await fetch(url), buffer = Buffer.from(await response.arrayBuffer()), filename = anim.file_name ?? `animation_${anim.file_id}.mp4`, importPath = `imported/telegram/${filename}`, savedPath = this.ctx.writeAttachment(importPath, buffer, anim.mime_type ?? "video/mp4") || importPath;
|
|
14246
|
+
attachments.push({
|
|
14247
|
+
path: savedPath,
|
|
14248
14248
|
filename,
|
|
14249
14249
|
mimeType: anim.mime_type ?? "video/mp4",
|
|
14250
14250
|
size: buffer.length
|
|
@@ -6,7 +6,7 @@ const __filename = __adfFileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __adfDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
DaemonClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VN7UH7I5.mjs";
|
|
10
10
|
import "./chunk-XNPZBLYL.mjs";
|
|
11
11
|
import {
|
|
12
12
|
cjs
|
|
@@ -119,7 +119,7 @@ ${tuiUsage()}
|
|
|
119
119
|
] = await Promise.all([
|
|
120
120
|
import("./react-IUIDQ5LX.mjs"),
|
|
121
121
|
import("./build-QF5W473T.mjs"),
|
|
122
|
-
import("./App-
|
|
122
|
+
import("./App-7RIIOHJJ.mjs"),
|
|
123
123
|
import("./themes-YLXLOIJF.mjs"),
|
|
124
124
|
import("./store-HUVDJPYN.mjs"),
|
|
125
125
|
import("./theme-SFE3JMA2.mjs"),
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
convertToOggOpus
|
|
12
12
|
} from "./chunk-BMNZ2VPS.mjs";
|
|
13
|
-
import "./chunk-3GNIDM53.mjs";
|
|
14
13
|
import {
|
|
15
14
|
require_atomic_sleep,
|
|
16
15
|
require_on_exit_leak_free,
|
|
@@ -39,6 +38,7 @@ import "./chunk-AUYKRQPJ.mjs";
|
|
|
39
38
|
import "./chunk-NZ7JTHEO.mjs";
|
|
40
39
|
import "./chunk-ZJKXHM4Q.mjs";
|
|
41
40
|
import "./chunk-RIX34QHC.mjs";
|
|
41
|
+
import "./chunk-3GNIDM53.mjs";
|
|
42
42
|
import {
|
|
43
43
|
__commonJS,
|
|
44
44
|
__export,
|
|
@@ -85208,9 +85208,9 @@ var WhatsAppAdapter = class {
|
|
|
85208
85208
|
let size = Number(media.size ?? 0);
|
|
85209
85209
|
if (!size || size <= maxAttachmentSize)
|
|
85210
85210
|
try {
|
|
85211
|
-
let buffer = await downloadMediaMessage(msg, "buffer", {}), ext = (media.mime ?? "").split("/")[1]?.split(";")[0] ?? "bin", baseName = content.documentMessage?.fileName ?? `${media.kind}_${msg.key.id}.${ext}`, importPath = `imported/whatsapp/${baseName}
|
|
85212
|
-
|
|
85213
|
-
path:
|
|
85211
|
+
let buffer = await downloadMediaMessage(msg, "buffer", {}), ext = (media.mime ?? "").split("/")[1]?.split(";")[0] ?? "bin", baseName = content.documentMessage?.fileName ?? `${media.kind}_${msg.key.id}.${ext}`, importPath = `imported/whatsapp/${baseName}`, savedPath = this.ctx.writeAttachment(importPath, buffer, media.mime ?? void 0) || importPath;
|
|
85212
|
+
attachments.push({
|
|
85213
|
+
path: savedPath,
|
|
85214
85214
|
filename: baseName,
|
|
85215
85215
|
mimeType: media.mime ?? "application/octet-stream",
|
|
85216
85216
|
size: buffer.length
|
package/package.json
CHANGED