@lobehub/cli 0.0.1-canary.9 → 0.0.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/README.md +55 -0
- package/dist/buffer-crc32-BlUV1nEz.js +342 -0
- package/dist/doc-CR0Zm5t8.js +4144 -0
- package/dist/docx-73xqMWN6.js +33097 -0
- package/dist/excel-3NB56vnT.js +23451 -0
- package/dist/index.js +30320 -6995
- package/dist/node-BbXtxEF5.js +48 -0
- package/dist/pdf-B5Ukgxfs.js +108386 -0
- package/dist/pptx-DwZ8X2Hk.js +9929 -0
- package/dist/text-LU5pflEU.js +59 -0
- package/man/man1/lh.1 +166 -0
- package/man/man1/lobe.1 +1 -0
- package/man/man1/lobehub.1 +1 -0
- package/package.json +27 -21
- package/dist/chunk-LMMQX4CK.js +0 -49
- package/dist/chunk-OHUXGRBO.js +0 -66
- package/dist/chunk-SIPW4ILE.js +0 -374
- package/dist/doc-GP5GLKH3.js +0 -4361
- package/dist/docx-WBQXROXK.js +0 -31061
- package/dist/excel-7OIQJBE4.js +0 -26983
- package/dist/pdf-DR5MENXH.js +0 -94752
- package/dist/pptx-TR7ZMKBG.js +0 -10784
- package/dist/text-6IT6PEWE.js +0 -60
package/dist/chunk-SIPW4ILE.js
DELETED
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
__commonJS,
|
|
4
|
-
__require
|
|
5
|
-
} from "./chunk-LMMQX4CK.js";
|
|
6
|
-
|
|
7
|
-
// ../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js
|
|
8
|
-
var require_buffer_crc32 = __commonJS({
|
|
9
|
-
"../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js"(exports, module) {
|
|
10
|
-
"use strict";
|
|
11
|
-
var Buffer = __require("buffer").Buffer;
|
|
12
|
-
var CRC_TABLE = [
|
|
13
|
-
0,
|
|
14
|
-
1996959894,
|
|
15
|
-
3993919788,
|
|
16
|
-
2567524794,
|
|
17
|
-
124634137,
|
|
18
|
-
1886057615,
|
|
19
|
-
3915621685,
|
|
20
|
-
2657392035,
|
|
21
|
-
249268274,
|
|
22
|
-
2044508324,
|
|
23
|
-
3772115230,
|
|
24
|
-
2547177864,
|
|
25
|
-
162941995,
|
|
26
|
-
2125561021,
|
|
27
|
-
3887607047,
|
|
28
|
-
2428444049,
|
|
29
|
-
498536548,
|
|
30
|
-
1789927666,
|
|
31
|
-
4089016648,
|
|
32
|
-
2227061214,
|
|
33
|
-
450548861,
|
|
34
|
-
1843258603,
|
|
35
|
-
4107580753,
|
|
36
|
-
2211677639,
|
|
37
|
-
325883990,
|
|
38
|
-
1684777152,
|
|
39
|
-
4251122042,
|
|
40
|
-
2321926636,
|
|
41
|
-
335633487,
|
|
42
|
-
1661365465,
|
|
43
|
-
4195302755,
|
|
44
|
-
2366115317,
|
|
45
|
-
997073096,
|
|
46
|
-
1281953886,
|
|
47
|
-
3579855332,
|
|
48
|
-
2724688242,
|
|
49
|
-
1006888145,
|
|
50
|
-
1258607687,
|
|
51
|
-
3524101629,
|
|
52
|
-
2768942443,
|
|
53
|
-
901097722,
|
|
54
|
-
1119000684,
|
|
55
|
-
3686517206,
|
|
56
|
-
2898065728,
|
|
57
|
-
853044451,
|
|
58
|
-
1172266101,
|
|
59
|
-
3705015759,
|
|
60
|
-
2882616665,
|
|
61
|
-
651767980,
|
|
62
|
-
1373503546,
|
|
63
|
-
3369554304,
|
|
64
|
-
3218104598,
|
|
65
|
-
565507253,
|
|
66
|
-
1454621731,
|
|
67
|
-
3485111705,
|
|
68
|
-
3099436303,
|
|
69
|
-
671266974,
|
|
70
|
-
1594198024,
|
|
71
|
-
3322730930,
|
|
72
|
-
2970347812,
|
|
73
|
-
795835527,
|
|
74
|
-
1483230225,
|
|
75
|
-
3244367275,
|
|
76
|
-
3060149565,
|
|
77
|
-
1994146192,
|
|
78
|
-
31158534,
|
|
79
|
-
2563907772,
|
|
80
|
-
4023717930,
|
|
81
|
-
1907459465,
|
|
82
|
-
112637215,
|
|
83
|
-
2680153253,
|
|
84
|
-
3904427059,
|
|
85
|
-
2013776290,
|
|
86
|
-
251722036,
|
|
87
|
-
2517215374,
|
|
88
|
-
3775830040,
|
|
89
|
-
2137656763,
|
|
90
|
-
141376813,
|
|
91
|
-
2439277719,
|
|
92
|
-
3865271297,
|
|
93
|
-
1802195444,
|
|
94
|
-
476864866,
|
|
95
|
-
2238001368,
|
|
96
|
-
4066508878,
|
|
97
|
-
1812370925,
|
|
98
|
-
453092731,
|
|
99
|
-
2181625025,
|
|
100
|
-
4111451223,
|
|
101
|
-
1706088902,
|
|
102
|
-
314042704,
|
|
103
|
-
2344532202,
|
|
104
|
-
4240017532,
|
|
105
|
-
1658658271,
|
|
106
|
-
366619977,
|
|
107
|
-
2362670323,
|
|
108
|
-
4224994405,
|
|
109
|
-
1303535960,
|
|
110
|
-
984961486,
|
|
111
|
-
2747007092,
|
|
112
|
-
3569037538,
|
|
113
|
-
1256170817,
|
|
114
|
-
1037604311,
|
|
115
|
-
2765210733,
|
|
116
|
-
3554079995,
|
|
117
|
-
1131014506,
|
|
118
|
-
879679996,
|
|
119
|
-
2909243462,
|
|
120
|
-
3663771856,
|
|
121
|
-
1141124467,
|
|
122
|
-
855842277,
|
|
123
|
-
2852801631,
|
|
124
|
-
3708648649,
|
|
125
|
-
1342533948,
|
|
126
|
-
654459306,
|
|
127
|
-
3188396048,
|
|
128
|
-
3373015174,
|
|
129
|
-
1466479909,
|
|
130
|
-
544179635,
|
|
131
|
-
3110523913,
|
|
132
|
-
3462522015,
|
|
133
|
-
1591671054,
|
|
134
|
-
702138776,
|
|
135
|
-
2966460450,
|
|
136
|
-
3352799412,
|
|
137
|
-
1504918807,
|
|
138
|
-
783551873,
|
|
139
|
-
3082640443,
|
|
140
|
-
3233442989,
|
|
141
|
-
3988292384,
|
|
142
|
-
2596254646,
|
|
143
|
-
62317068,
|
|
144
|
-
1957810842,
|
|
145
|
-
3939845945,
|
|
146
|
-
2647816111,
|
|
147
|
-
81470997,
|
|
148
|
-
1943803523,
|
|
149
|
-
3814918930,
|
|
150
|
-
2489596804,
|
|
151
|
-
225274430,
|
|
152
|
-
2053790376,
|
|
153
|
-
3826175755,
|
|
154
|
-
2466906013,
|
|
155
|
-
167816743,
|
|
156
|
-
2097651377,
|
|
157
|
-
4027552580,
|
|
158
|
-
2265490386,
|
|
159
|
-
503444072,
|
|
160
|
-
1762050814,
|
|
161
|
-
4150417245,
|
|
162
|
-
2154129355,
|
|
163
|
-
426522225,
|
|
164
|
-
1852507879,
|
|
165
|
-
4275313526,
|
|
166
|
-
2312317920,
|
|
167
|
-
282753626,
|
|
168
|
-
1742555852,
|
|
169
|
-
4189708143,
|
|
170
|
-
2394877945,
|
|
171
|
-
397917763,
|
|
172
|
-
1622183637,
|
|
173
|
-
3604390888,
|
|
174
|
-
2714866558,
|
|
175
|
-
953729732,
|
|
176
|
-
1340076626,
|
|
177
|
-
3518719985,
|
|
178
|
-
2797360999,
|
|
179
|
-
1068828381,
|
|
180
|
-
1219638859,
|
|
181
|
-
3624741850,
|
|
182
|
-
2936675148,
|
|
183
|
-
906185462,
|
|
184
|
-
1090812512,
|
|
185
|
-
3747672003,
|
|
186
|
-
2825379669,
|
|
187
|
-
829329135,
|
|
188
|
-
1181335161,
|
|
189
|
-
3412177804,
|
|
190
|
-
3160834842,
|
|
191
|
-
628085408,
|
|
192
|
-
1382605366,
|
|
193
|
-
3423369109,
|
|
194
|
-
3138078467,
|
|
195
|
-
570562233,
|
|
196
|
-
1426400815,
|
|
197
|
-
3317316542,
|
|
198
|
-
2998733608,
|
|
199
|
-
733239954,
|
|
200
|
-
1555261956,
|
|
201
|
-
3268935591,
|
|
202
|
-
3050360625,
|
|
203
|
-
752459403,
|
|
204
|
-
1541320221,
|
|
205
|
-
2607071920,
|
|
206
|
-
3965973030,
|
|
207
|
-
1969922972,
|
|
208
|
-
40735498,
|
|
209
|
-
2617837225,
|
|
210
|
-
3943577151,
|
|
211
|
-
1913087877,
|
|
212
|
-
83908371,
|
|
213
|
-
2512341634,
|
|
214
|
-
3803740692,
|
|
215
|
-
2075208622,
|
|
216
|
-
213261112,
|
|
217
|
-
2463272603,
|
|
218
|
-
3855990285,
|
|
219
|
-
2094854071,
|
|
220
|
-
198958881,
|
|
221
|
-
2262029012,
|
|
222
|
-
4057260610,
|
|
223
|
-
1759359992,
|
|
224
|
-
534414190,
|
|
225
|
-
2176718541,
|
|
226
|
-
4139329115,
|
|
227
|
-
1873836001,
|
|
228
|
-
414664567,
|
|
229
|
-
2282248934,
|
|
230
|
-
4279200368,
|
|
231
|
-
1711684554,
|
|
232
|
-
285281116,
|
|
233
|
-
2405801727,
|
|
234
|
-
4167216745,
|
|
235
|
-
1634467795,
|
|
236
|
-
376229701,
|
|
237
|
-
2685067896,
|
|
238
|
-
3608007406,
|
|
239
|
-
1308918612,
|
|
240
|
-
956543938,
|
|
241
|
-
2808555105,
|
|
242
|
-
3495958263,
|
|
243
|
-
1231636301,
|
|
244
|
-
1047427035,
|
|
245
|
-
2932959818,
|
|
246
|
-
3654703836,
|
|
247
|
-
1088359270,
|
|
248
|
-
936918e3,
|
|
249
|
-
2847714899,
|
|
250
|
-
3736837829,
|
|
251
|
-
1202900863,
|
|
252
|
-
817233897,
|
|
253
|
-
3183342108,
|
|
254
|
-
3401237130,
|
|
255
|
-
1404277552,
|
|
256
|
-
615818150,
|
|
257
|
-
3134207493,
|
|
258
|
-
3453421203,
|
|
259
|
-
1423857449,
|
|
260
|
-
601450431,
|
|
261
|
-
3009837614,
|
|
262
|
-
3294710456,
|
|
263
|
-
1567103746,
|
|
264
|
-
711928724,
|
|
265
|
-
3020668471,
|
|
266
|
-
3272380065,
|
|
267
|
-
1510334235,
|
|
268
|
-
755167117
|
|
269
|
-
];
|
|
270
|
-
if (typeof Int32Array !== "undefined") {
|
|
271
|
-
CRC_TABLE = new Int32Array(CRC_TABLE);
|
|
272
|
-
}
|
|
273
|
-
function ensureBuffer(input) {
|
|
274
|
-
if (Buffer.isBuffer(input)) {
|
|
275
|
-
return input;
|
|
276
|
-
}
|
|
277
|
-
var hasNewBufferAPI = typeof Buffer.alloc === "function" && typeof Buffer.from === "function";
|
|
278
|
-
if (typeof input === "number") {
|
|
279
|
-
return hasNewBufferAPI ? Buffer.alloc(input) : new Buffer(input);
|
|
280
|
-
} else if (typeof input === "string") {
|
|
281
|
-
return hasNewBufferAPI ? Buffer.from(input) : new Buffer(input);
|
|
282
|
-
} else {
|
|
283
|
-
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
function bufferizeInt(num) {
|
|
287
|
-
var tmp = ensureBuffer(4);
|
|
288
|
-
tmp.writeInt32BE(num, 0);
|
|
289
|
-
return tmp;
|
|
290
|
-
}
|
|
291
|
-
function _crc32(buf, previous) {
|
|
292
|
-
buf = ensureBuffer(buf);
|
|
293
|
-
if (Buffer.isBuffer(previous)) {
|
|
294
|
-
previous = previous.readUInt32BE(0);
|
|
295
|
-
}
|
|
296
|
-
var crc = ~~previous ^ -1;
|
|
297
|
-
for (var n = 0; n < buf.length; n++) {
|
|
298
|
-
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
299
|
-
}
|
|
300
|
-
return crc ^ -1;
|
|
301
|
-
}
|
|
302
|
-
function crc32() {
|
|
303
|
-
return bufferizeInt(_crc32.apply(null, arguments));
|
|
304
|
-
}
|
|
305
|
-
crc32.signed = function() {
|
|
306
|
-
return _crc32.apply(null, arguments);
|
|
307
|
-
};
|
|
308
|
-
crc32.unsigned = function() {
|
|
309
|
-
return _crc32.apply(null, arguments) >>> 0;
|
|
310
|
-
};
|
|
311
|
-
module.exports = crc32;
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
// ../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js
|
|
316
|
-
var require_pend = __commonJS({
|
|
317
|
-
"../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js"(exports, module) {
|
|
318
|
-
"use strict";
|
|
319
|
-
module.exports = Pend;
|
|
320
|
-
function Pend() {
|
|
321
|
-
this.pending = 0;
|
|
322
|
-
this.max = Infinity;
|
|
323
|
-
this.listeners = [];
|
|
324
|
-
this.waiting = [];
|
|
325
|
-
this.error = null;
|
|
326
|
-
}
|
|
327
|
-
Pend.prototype.go = function(fn) {
|
|
328
|
-
if (this.pending < this.max) {
|
|
329
|
-
pendGo(this, fn);
|
|
330
|
-
} else {
|
|
331
|
-
this.waiting.push(fn);
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
Pend.prototype.wait = function(cb) {
|
|
335
|
-
if (this.pending === 0) {
|
|
336
|
-
cb(this.error);
|
|
337
|
-
} else {
|
|
338
|
-
this.listeners.push(cb);
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
Pend.prototype.hold = function() {
|
|
342
|
-
return pendHold(this);
|
|
343
|
-
};
|
|
344
|
-
function pendHold(self) {
|
|
345
|
-
self.pending += 1;
|
|
346
|
-
var called = false;
|
|
347
|
-
return onCb;
|
|
348
|
-
function onCb(err) {
|
|
349
|
-
if (called) throw new Error("callback called twice");
|
|
350
|
-
called = true;
|
|
351
|
-
self.error = self.error || err;
|
|
352
|
-
self.pending -= 1;
|
|
353
|
-
if (self.waiting.length > 0 && self.pending < self.max) {
|
|
354
|
-
pendGo(self, self.waiting.shift());
|
|
355
|
-
} else if (self.pending === 0) {
|
|
356
|
-
var listeners = self.listeners;
|
|
357
|
-
self.listeners = [];
|
|
358
|
-
listeners.forEach(cbListener);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
function cbListener(listener) {
|
|
362
|
-
listener(self.error);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function pendGo(self, fn) {
|
|
366
|
-
fn(pendHold(self));
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
});
|
|
370
|
-
|
|
371
|
-
export {
|
|
372
|
-
require_pend,
|
|
373
|
-
require_buffer_crc32
|
|
374
|
-
};
|