@lobehub/cli 0.0.107 → 0.0.109
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/acceptance-report.html +267 -275
- package/dist/index.js +175 -114
- package/man/man1/lh.1 +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9790,6 +9790,7 @@ var init_fetch = __esmMin((() => {
|
|
|
9790
9790
|
ShareTopicLimitExceeded: "ShareTopicLimitExceeded",
|
|
9791
9791
|
ShareSpendLimitExceeded: "ShareSpendLimitExceeded",
|
|
9792
9792
|
ShareHeterogeneousAgentUnsupported: "ShareHeterogeneousAgentUnsupported",
|
|
9793
|
+
ShareHeteroDeviceUnavailable: "ShareHeteroDeviceUnavailable",
|
|
9793
9794
|
AgentShareProviderNotSupported: "AgentShareProviderNotSupported",
|
|
9794
9795
|
SupervisorDecisionFailed: "SupervisorDecisionFailed",
|
|
9795
9796
|
AgentConcurrencyLimitExceeded: "AgentConcurrencyLimitExceeded",
|
|
@@ -31869,6 +31870,70 @@ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /
|
|
|
31869
31870
|
//#region node_modules/.pnpm/mime@4.1.2/node_modules/mime/dist/src/index.js
|
|
31870
31871
|
var src_default = new Mime(types$1, types$2)._freeze();
|
|
31871
31872
|
|
|
31873
|
+
//#endregion
|
|
31874
|
+
//#region ../../packages/utils/src/detectUtf16.ts
|
|
31875
|
+
var HEURISTIC_SAMPLE_BYTES, HEURISTIC_THRESHOLD, detectUtf16NoBom;
|
|
31876
|
+
var init_detectUtf16 = __esmMin((() => {
|
|
31877
|
+
HEURISTIC_SAMPLE_BYTES = 512;
|
|
31878
|
+
HEURISTIC_THRESHOLD = .3;
|
|
31879
|
+
detectUtf16NoBom = (buffer) => {
|
|
31880
|
+
const sample = buffer.subarray(0, Math.min(HEURISTIC_SAMPLE_BYTES, buffer.length));
|
|
31881
|
+
if (sample.length < 4 || sample.length % 2 !== 0) return null;
|
|
31882
|
+
let leAsciiPairs = 0;
|
|
31883
|
+
let beAsciiPairs = 0;
|
|
31884
|
+
const totalPairs = sample.length / 2;
|
|
31885
|
+
for (let i = 0; i < sample.length; i += 2) {
|
|
31886
|
+
const lo = sample[i];
|
|
31887
|
+
const hi = sample[i + 1];
|
|
31888
|
+
if (hi === 0 && lo !== 0) leAsciiPairs++;
|
|
31889
|
+
else if (lo === 0 && hi !== 0) beAsciiPairs++;
|
|
31890
|
+
}
|
|
31891
|
+
if (leAsciiPairs > beAsciiPairs && leAsciiPairs / totalPairs >= HEURISTIC_THRESHOLD) return "utf-16le";
|
|
31892
|
+
if (beAsciiPairs > leAsciiPairs && beAsciiPairs / totalPairs >= HEURISTIC_THRESHOLD) return "utf-16be";
|
|
31893
|
+
return null;
|
|
31894
|
+
};
|
|
31895
|
+
}));
|
|
31896
|
+
|
|
31897
|
+
//#endregion
|
|
31898
|
+
//#region ../../packages/utils/src/isBinaryContent.ts
|
|
31899
|
+
var NON_PRINTABLE_THRESHOLD, hasUtf8Bom, hasUtf16Bom, sniffBinaryBuffer, REPLACEMENT_CHAR, checkPrintableRatio;
|
|
31900
|
+
var init_isBinaryContent = __esmMin((() => {
|
|
31901
|
+
init_detectUtf16();
|
|
31902
|
+
NON_PRINTABLE_THRESHOLD = .3;
|
|
31903
|
+
hasUtf8Bom = (buf) => buf.length >= 3 && buf[0] === 239 && buf[1] === 187 && buf[2] === 191;
|
|
31904
|
+
hasUtf16Bom = (buf) => buf.length >= 2 && (buf[0] === 255 && buf[1] === 254 || buf[0] === 254 && buf[1] === 255);
|
|
31905
|
+
sniffBinaryBuffer = (buffer) => {
|
|
31906
|
+
if (buffer.length === 0) return { isBinary: false };
|
|
31907
|
+
if (hasUtf8Bom(buffer) || hasUtf16Bom(buffer)) return { isBinary: false };
|
|
31908
|
+
const utf16Variant = detectUtf16NoBom(buffer);
|
|
31909
|
+
if (utf16Variant) return checkPrintableRatio(new TextDecoder(utf16Variant, { fatal: false }).decode(buffer), buffer.length);
|
|
31910
|
+
if (buffer.includes(0)) return {
|
|
31911
|
+
isBinary: true,
|
|
31912
|
+
reason: "contains null byte"
|
|
31913
|
+
};
|
|
31914
|
+
return checkPrintableRatio(new TextDecoder("utf-8", { fatal: false }).decode(buffer), buffer.length);
|
|
31915
|
+
};
|
|
31916
|
+
REPLACEMENT_CHAR = "�";
|
|
31917
|
+
checkPrintableRatio = (text, sampledBytes) => {
|
|
31918
|
+
if (text.length === 0) return { isBinary: false };
|
|
31919
|
+
let suspect = 0;
|
|
31920
|
+
for (const ch of text) {
|
|
31921
|
+
if (ch === REPLACEMENT_CHAR) {
|
|
31922
|
+
suspect++;
|
|
31923
|
+
continue;
|
|
31924
|
+
}
|
|
31925
|
+
const code = ch.codePointAt(0);
|
|
31926
|
+
if (code < 32 && code !== 9 && code !== 10 && code !== 13) suspect++;
|
|
31927
|
+
}
|
|
31928
|
+
const ratio = suspect / text.length;
|
|
31929
|
+
if (ratio > NON_PRINTABLE_THRESHOLD) return {
|
|
31930
|
+
isBinary: true,
|
|
31931
|
+
reason: `${(ratio * 100).toFixed(1)}% non-printable chars in first ${sampledBytes} bytes`
|
|
31932
|
+
};
|
|
31933
|
+
return { isBinary: false };
|
|
31934
|
+
};
|
|
31935
|
+
}));
|
|
31936
|
+
|
|
31872
31937
|
//#endregion
|
|
31873
31938
|
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/Errors.js
|
|
31874
31939
|
var defaultMessages, EndOfStreamError, AbortError$1;
|
|
@@ -37228,6 +37293,7 @@ var init_file_type = __esmMin((() => {
|
|
|
37228
37293
|
|
|
37229
37294
|
//#endregion
|
|
37230
37295
|
//#region ../../packages/utils/src/mimeType.ts
|
|
37296
|
+
init_isBinaryContent();
|
|
37231
37297
|
const CUSTOM_MIME_TYPES = {
|
|
37232
37298
|
".clj": "text/x-clojure",
|
|
37233
37299
|
".ex": "text/x-elixir",
|
|
@@ -37253,7 +37319,8 @@ const TEXT_FALLBACK_MIME = "text/plain; charset=utf-8";
|
|
|
37253
37319
|
const BINARY_FALLBACK_MIME = "application/octet-stream";
|
|
37254
37320
|
const TEXT_MIME_PATTERN = /^(?:text\/|application\/(?:ecmascript|graphql|javascript|json|toml|xhtml\+xml|xml|yaml))/;
|
|
37255
37321
|
const SVG_MIME = "image/svg+xml";
|
|
37256
|
-
const
|
|
37322
|
+
const DEFAULT_CHARSET = "utf-8";
|
|
37323
|
+
const withCharset = (mimeType, charset = DEFAULT_CHARSET) => TEXT_MIME_PATTERN.test(mimeType) && !mimeType.includes("charset=") ? `${mimeType}; charset=${charset}` : mimeType;
|
|
37257
37324
|
const getExtension = (filePath) => {
|
|
37258
37325
|
const fileName = filePath.replace(/^.*[/\\]/s, "");
|
|
37259
37326
|
const dotIndex = fileName.lastIndexOf(".");
|
|
@@ -37268,6 +37335,32 @@ const looksBinary = (buffer) => {
|
|
|
37268
37335
|
return false;
|
|
37269
37336
|
};
|
|
37270
37337
|
/**
|
|
37338
|
+
* Detect UTF-16 text marked by a byte order mark.
|
|
37339
|
+
*
|
|
37340
|
+
* The UTF-16LE BOM (0xFF 0xFE) is also a valid MPEG audio frame sync, so
|
|
37341
|
+
* file-type reports Windows PowerShell 5.1 output (`Tee-Object`, `Out-File`)
|
|
37342
|
+
* as audio/mpeg. The BOM alone is not proof: a real MPEG-1 Layer I frame can
|
|
37343
|
+
* start with the same bytes. Decode the bytes after the BOM strictly and
|
|
37344
|
+
* require them to read as text: compressed audio contains unpaired surrogates,
|
|
37345
|
+
* and a lenient decode would turn them into "printable" characters. `stream`
|
|
37346
|
+
* keeps a surrogate pair split by the sample boundary from failing the decode.
|
|
37347
|
+
*/
|
|
37348
|
+
const detectUtf16BomText = (buffer) => {
|
|
37349
|
+
if (buffer.byteLength < 2) return null;
|
|
37350
|
+
let charset;
|
|
37351
|
+
if (buffer[0] === 255 && buffer[1] === 254) charset = "utf-16le";
|
|
37352
|
+
else if (buffer[0] === 254 && buffer[1] === 255) charset = "utf-16be";
|
|
37353
|
+
else return null;
|
|
37354
|
+
const sample = buffer.subarray(2, Math.min(buffer.byteLength, SNIFF_BYTES$1));
|
|
37355
|
+
let text;
|
|
37356
|
+
try {
|
|
37357
|
+
text = new TextDecoder(charset, { fatal: true }).decode(sample, { stream: true });
|
|
37358
|
+
} catch {
|
|
37359
|
+
return null;
|
|
37360
|
+
}
|
|
37361
|
+
return sniffBinaryBuffer(new TextEncoder().encode(text)).isBinary ? null : charset;
|
|
37362
|
+
};
|
|
37363
|
+
/**
|
|
37271
37364
|
* Sync extension-only lookup. Falls back to `application/octet-stream` for
|
|
37272
37365
|
* unknown extensions. Use this when a file buffer isn't available (URL input,
|
|
37273
37366
|
* TRPC payload, filename-only records).
|
|
@@ -37283,6 +37376,9 @@ const getMimeType = (filePath) => {
|
|
|
37283
37376
|
* Trust magic bytes first, then fall back to the extension, and let a text
|
|
37284
37377
|
* sniff overrule mime-db when the two disagree.
|
|
37285
37378
|
*
|
|
37379
|
+
* 0. UTF-16 BOM text → text mime with the matching charset, before the
|
|
37380
|
+
* magic-byte check (the UTF-16LE BOM looks like an MPEG audio frame).
|
|
37381
|
+
* Keeps a text extension mime, otherwise falls back to text/plain.
|
|
37286
37382
|
* 1. `fileTypeFromBuffer()` — magic-byte detection. Authoritative when it
|
|
37287
37383
|
* matches: real MPEG-TS media wins here regardless of extension. The one
|
|
37288
37384
|
* exception is a generic `application/xml` match, which yields to the
|
|
@@ -37297,9 +37393,14 @@ const getMimeType = (filePath) => {
|
|
|
37297
37393
|
* 3. No extension mapping → sniff-based fallback.
|
|
37298
37394
|
*/
|
|
37299
37395
|
const resolveMimeType = async (filePath, buffer) => {
|
|
37396
|
+
const fromExtension = lookupExtensionMime(filePath);
|
|
37397
|
+
const utf16Charset = detectUtf16BomText(buffer);
|
|
37398
|
+
if (utf16Charset) {
|
|
37399
|
+
if (fromExtension === SVG_MIME) return SVG_MIME;
|
|
37400
|
+
return fromExtension && TEXT_MIME_PATTERN.test(fromExtension) ? withCharset(fromExtension, utf16Charset) : `text/plain; charset=${utf16Charset}`;
|
|
37401
|
+
}
|
|
37300
37402
|
const { fileTypeFromBuffer } = await Promise.resolve().then(() => (init_file_type(), file_type_exports));
|
|
37301
37403
|
const detected = await fileTypeFromBuffer(buffer);
|
|
37302
|
-
const fromExtension = lookupExtensionMime(filePath);
|
|
37303
37404
|
if (detected?.mime) {
|
|
37304
37405
|
if (detected.mime === "application/xml" && fromExtension === SVG_MIME) return SVG_MIME;
|
|
37305
37406
|
return detected.mime;
|
|
@@ -74164,7 +74265,8 @@ const spawnCliAgent = async (options, command, cwd, inputPlan, childEnv, codexJw
|
|
|
74164
74265
|
if (!live.isOpen) return false;
|
|
74165
74266
|
const plan = await buildAgentInput("claude-code", prompt, options.inputOptions);
|
|
74166
74267
|
return live.send(plan.stdin, sendOptions?.uuid);
|
|
74167
|
-
}
|
|
74268
|
+
},
|
|
74269
|
+
supportsSteerImageAttachments: true
|
|
74168
74270
|
},
|
|
74169
74271
|
kill: (signal = "SIGINT") => {
|
|
74170
74272
|
killedByUs = true;
|
|
@@ -89700,70 +89802,6 @@ var init_fileParseBudget = __esmMin((() => {
|
|
|
89700
89802
|
isFileParseBudgetError = (error) => error instanceof FileParseBudgetError || error instanceof Error && error.name === "FileParseBudgetError";
|
|
89701
89803
|
}));
|
|
89702
89804
|
|
|
89703
|
-
//#endregion
|
|
89704
|
-
//#region ../../packages/utils/src/detectUtf16.ts
|
|
89705
|
-
var HEURISTIC_SAMPLE_BYTES, HEURISTIC_THRESHOLD, detectUtf16NoBom;
|
|
89706
|
-
var init_detectUtf16 = __esmMin((() => {
|
|
89707
|
-
HEURISTIC_SAMPLE_BYTES = 512;
|
|
89708
|
-
HEURISTIC_THRESHOLD = .3;
|
|
89709
|
-
detectUtf16NoBom = (buffer) => {
|
|
89710
|
-
const sample = buffer.subarray(0, Math.min(HEURISTIC_SAMPLE_BYTES, buffer.length));
|
|
89711
|
-
if (sample.length < 4 || sample.length % 2 !== 0) return null;
|
|
89712
|
-
let leAsciiPairs = 0;
|
|
89713
|
-
let beAsciiPairs = 0;
|
|
89714
|
-
const totalPairs = sample.length / 2;
|
|
89715
|
-
for (let i = 0; i < sample.length; i += 2) {
|
|
89716
|
-
const lo = sample[i];
|
|
89717
|
-
const hi = sample[i + 1];
|
|
89718
|
-
if (hi === 0 && lo !== 0) leAsciiPairs++;
|
|
89719
|
-
else if (lo === 0 && hi !== 0) beAsciiPairs++;
|
|
89720
|
-
}
|
|
89721
|
-
if (leAsciiPairs > beAsciiPairs && leAsciiPairs / totalPairs >= HEURISTIC_THRESHOLD) return "utf-16le";
|
|
89722
|
-
if (beAsciiPairs > leAsciiPairs && beAsciiPairs / totalPairs >= HEURISTIC_THRESHOLD) return "utf-16be";
|
|
89723
|
-
return null;
|
|
89724
|
-
};
|
|
89725
|
-
}));
|
|
89726
|
-
|
|
89727
|
-
//#endregion
|
|
89728
|
-
//#region ../../packages/utils/src/isBinaryContent.ts
|
|
89729
|
-
var NON_PRINTABLE_THRESHOLD, hasUtf8Bom, hasUtf16Bom, sniffBinaryBuffer, REPLACEMENT_CHAR, checkPrintableRatio;
|
|
89730
|
-
var init_isBinaryContent = __esmMin((() => {
|
|
89731
|
-
init_detectUtf16();
|
|
89732
|
-
NON_PRINTABLE_THRESHOLD = .3;
|
|
89733
|
-
hasUtf8Bom = (buf) => buf.length >= 3 && buf[0] === 239 && buf[1] === 187 && buf[2] === 191;
|
|
89734
|
-
hasUtf16Bom = (buf) => buf.length >= 2 && (buf[0] === 255 && buf[1] === 254 || buf[0] === 254 && buf[1] === 255);
|
|
89735
|
-
sniffBinaryBuffer = (buffer) => {
|
|
89736
|
-
if (buffer.length === 0) return { isBinary: false };
|
|
89737
|
-
if (hasUtf8Bom(buffer) || hasUtf16Bom(buffer)) return { isBinary: false };
|
|
89738
|
-
const utf16Variant = detectUtf16NoBom(buffer);
|
|
89739
|
-
if (utf16Variant) return checkPrintableRatio(new TextDecoder(utf16Variant, { fatal: false }).decode(buffer), buffer.length);
|
|
89740
|
-
if (buffer.includes(0)) return {
|
|
89741
|
-
isBinary: true,
|
|
89742
|
-
reason: "contains null byte"
|
|
89743
|
-
};
|
|
89744
|
-
return checkPrintableRatio(new TextDecoder("utf-8", { fatal: false }).decode(buffer), buffer.length);
|
|
89745
|
-
};
|
|
89746
|
-
REPLACEMENT_CHAR = "�";
|
|
89747
|
-
checkPrintableRatio = (text, sampledBytes) => {
|
|
89748
|
-
if (text.length === 0) return { isBinary: false };
|
|
89749
|
-
let suspect = 0;
|
|
89750
|
-
for (const ch of text) {
|
|
89751
|
-
if (ch === REPLACEMENT_CHAR) {
|
|
89752
|
-
suspect++;
|
|
89753
|
-
continue;
|
|
89754
|
-
}
|
|
89755
|
-
const code = ch.codePointAt(0);
|
|
89756
|
-
if (code < 32 && code !== 9 && code !== 10 && code !== 13) suspect++;
|
|
89757
|
-
}
|
|
89758
|
-
const ratio = suspect / text.length;
|
|
89759
|
-
if (ratio > NON_PRINTABLE_THRESHOLD) return {
|
|
89760
|
-
isBinary: true,
|
|
89761
|
-
reason: `${(ratio * 100).toFixed(1)}% non-printable chars in first ${sampledBytes} bytes`
|
|
89762
|
-
};
|
|
89763
|
-
return { isBinary: false };
|
|
89764
|
-
};
|
|
89765
|
-
}));
|
|
89766
|
-
|
|
89767
89805
|
//#endregion
|
|
89768
89806
|
//#region ../../packages/file-loaders/src/loaders/ipynb/index.ts
|
|
89769
89807
|
var ipynb_exports = /* @__PURE__ */ __exportAll$2({
|
|
@@ -579273,7 +579311,7 @@ var WebStandardStreamableHTTPServerTransport = class {
|
|
|
579273
579311
|
};
|
|
579274
579312
|
|
|
579275
579313
|
//#endregion
|
|
579276
|
-
//#region node_modules/.pnpm/@hono+node-server@2.1.
|
|
579314
|
+
//#region node_modules/.pnpm/@hono+node-server@2.1.9_hono@4.13.19/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs
|
|
579277
579315
|
const X_ALREADY_SENT = "x-hono-already-sent";
|
|
579278
579316
|
|
|
579279
579317
|
//#endregion
|
|
@@ -579302,7 +579340,7 @@ const defineWebSocketHelper = (handler) => {
|
|
|
579302
579340
|
};
|
|
579303
579341
|
|
|
579304
579342
|
//#endregion
|
|
579305
|
-
//#region node_modules/.pnpm/@hono+node-server@2.1.
|
|
579343
|
+
//#region node_modules/.pnpm/@hono+node-server@2.1.9_hono@4.13.19/node_modules/@hono/node-server/dist/index.mjs
|
|
579306
579344
|
var RequestError = class extends Error {
|
|
579307
579345
|
constructor(message, options) {
|
|
579308
579346
|
super(message, options);
|
|
@@ -579489,7 +579527,11 @@ const toRequestError = (e) => {
|
|
|
579489
579527
|
return new RequestError(e.message, { cause: e });
|
|
579490
579528
|
};
|
|
579491
579529
|
const GlobalRequest = global.Request;
|
|
579492
|
-
var Request$1 = class extends GlobalRequest {
|
|
579530
|
+
var Request$1 = class Request$1 extends GlobalRequest {
|
|
579531
|
+
static [Symbol.hasInstance](instance) {
|
|
579532
|
+
if (this === Request$1) return instance instanceof GlobalRequest || Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
579533
|
+
return Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
579534
|
+
}
|
|
579493
579535
|
constructor(input, options) {
|
|
579494
579536
|
if (typeof input === "object" && getRequestCache in input) {
|
|
579495
579537
|
const hasReplacementBody = options !== void 0 && "body" in options && options.body != null;
|
|
@@ -579528,8 +579570,8 @@ const readBodyBufferedBeforeDisconnect = (incoming, chunks) => {
|
|
|
579528
579570
|
else if (incomingWithRecovery[bodyBufferedLengthBeforeDisconnectKey] !== void 0 && incoming.readableLength !== incomingWithRecovery[bodyBufferedLengthBeforeDisconnectKey]) result = newBodyUnusableError();
|
|
579529
579571
|
else {
|
|
579530
579572
|
const bodyChunks = chunks ?? [];
|
|
579531
|
-
|
|
579532
|
-
|
|
579573
|
+
let chunk;
|
|
579574
|
+
while ((chunk = incoming.read()) !== null) bodyChunks.push(toBufferChunk(chunk, incoming.readableEncoding));
|
|
579533
579575
|
const buffer = bodyChunks.length === 1 ? bodyChunks[0] : Buffer.concat(bodyChunks);
|
|
579534
579576
|
result = buffer;
|
|
579535
579577
|
const contentLength = incoming.headers["content-length"];
|
|
@@ -579866,6 +579908,9 @@ Object.defineProperty(requestPrototype, "blob", { value: function() {
|
|
|
579866
579908
|
return new Response(buf, type ? { headers: { "content-type": type } } : void 0).blob();
|
|
579867
579909
|
});
|
|
579868
579910
|
} });
|
|
579911
|
+
Object.defineProperty(requestPrototype, "bytes", { value: function() {
|
|
579912
|
+
return this.arrayBuffer().then((buf) => new Uint8Array(buf));
|
|
579913
|
+
} });
|
|
579869
579914
|
Object.defineProperty(requestPrototype, "json", { value: function() {
|
|
579870
579915
|
if (this[bodyConsumedDirectlyKey]) return rejectBodyUnusable();
|
|
579871
579916
|
return this.text().then(JSON.parse);
|
|
@@ -579920,6 +579965,10 @@ const GlobalResponse = global.Response;
|
|
|
579920
579965
|
var Response$1 = class Response$1 {
|
|
579921
579966
|
#body;
|
|
579922
579967
|
#init;
|
|
579968
|
+
static [Symbol.hasInstance](instance) {
|
|
579969
|
+
if (this === Response$1) return instance instanceof GlobalResponse || Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
579970
|
+
return Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
579971
|
+
}
|
|
579923
579972
|
[getResponseCache]() {
|
|
579924
579973
|
const cache = this[cacheKey];
|
|
579925
579974
|
const liveHeaders = cache && cache[2] instanceof Headers ? cache[2] : void 0;
|
|
@@ -579940,7 +579989,7 @@ var Response$1 = class Response$1 {
|
|
|
579940
579989
|
this[getResponseCache]();
|
|
579941
579990
|
return;
|
|
579942
579991
|
}
|
|
579943
|
-
this.#init = init
|
|
579992
|
+
this.#init = #init in init ? init.#init : init;
|
|
579944
579993
|
headers = new Headers(init.headers);
|
|
579945
579994
|
} else this.#init = init;
|
|
579946
579995
|
if (body == null || typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) this[cacheKey] = [
|
|
@@ -579981,6 +580030,7 @@ var Response$1 = class Response$1 {
|
|
|
579981
580030
|
[
|
|
579982
580031
|
"arrayBuffer",
|
|
579983
580032
|
"blob",
|
|
580033
|
+
"bytes",
|
|
579984
580034
|
"clone",
|
|
579985
580035
|
"formData",
|
|
579986
580036
|
"json",
|
|
@@ -585082,7 +585132,7 @@ function registerMessageCommand(program) {
|
|
|
585082
585132
|
}
|
|
585083
585133
|
|
|
585084
585134
|
//#endregion
|
|
585085
|
-
//#region node_modules/.pnpm/ignore@7.0.
|
|
585135
|
+
//#region node_modules/.pnpm/ignore@7.0.16/node_modules/ignore/index.js
|
|
585086
585136
|
var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
585087
585137
|
function makeArray(subject) {
|
|
585088
585138
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -585093,7 +585143,6 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585093
585143
|
const ESCAPE = "\\";
|
|
585094
585144
|
const REGEX_LITERAL_SPECIAL = /[.*+?()[\]{}^$|\\/]/;
|
|
585095
585145
|
const BOM = "";
|
|
585096
|
-
const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
|
|
585097
585146
|
const REGEX_ANCHORED_GLOBSTAR = /^\/\*{2,}$/;
|
|
585098
585147
|
const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
|
|
585099
585148
|
const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
@@ -585148,11 +585197,9 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585148
585197
|
const char = pattern[index];
|
|
585149
585198
|
if (char === UNDEFINED) return null;
|
|
585150
585199
|
if (char === ESCAPE) {
|
|
585151
|
-
const escaped = pattern[index
|
|
585152
|
-
if (escaped === UNDEFINED) return null;
|
|
585200
|
+
const escaped = pattern[++index];
|
|
585153
585201
|
body += escapeMember(escaped);
|
|
585154
585202
|
prev = escaped;
|
|
585155
|
-
index++;
|
|
585156
585203
|
} else if (char === "-" && prev && index + 1 < length && pattern[index + 1] !== "]") {
|
|
585157
585204
|
index++;
|
|
585158
585205
|
let to = pattern[index];
|
|
@@ -585202,7 +585249,7 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585202
585249
|
const char = pattern[index];
|
|
585203
585250
|
if (char === ESCAPE) {
|
|
585204
585251
|
const escaped = pattern[index + 1];
|
|
585205
|
-
if (escaped ===
|
|
585252
|
+
if (escaped === SLASH && index + 2 === length) out += hold(NEVER_MATCH);
|
|
585206
585253
|
else if (escaped === "*" || escaped === "[" || escaped === SPACE) out += pattern.slice(index, index + 2);
|
|
585207
585254
|
else out += hold(REGEX_LITERAL_SPECIAL.test(escaped) ? ESCAPE + escaped : isReserved(escaped) ? `[${escaped}]` : escaped);
|
|
585208
585255
|
index += 2;
|
|
@@ -585230,6 +585277,7 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585230
585277
|
};
|
|
585231
585278
|
const DIRECT = null;
|
|
585232
585279
|
const REGEX_INNER_SLASH = /\/(?!$)/;
|
|
585280
|
+
const WILDCARD = "[^\\/]*";
|
|
585233
585281
|
const REPLACERS = [
|
|
585234
585282
|
[
|
|
585235
585283
|
/(\\+)( ?)/g,
|
|
@@ -585259,11 +585307,11 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585259
585307
|
],
|
|
585260
585308
|
[
|
|
585261
585309
|
/^\^*(?:\\\*\\\*\\\/)+/,
|
|
585262
|
-
() => "
|
|
585310
|
+
() => "(?:^|\\/)",
|
|
585263
585311
|
"*"
|
|
585264
585312
|
],
|
|
585265
585313
|
[DIRECT, (source, pattern) => {
|
|
585266
|
-
if (!source || source[0] === "^") return source;
|
|
585314
|
+
if (!source || source[0] === "^" || source[0] === "(") return source;
|
|
585267
585315
|
return (!REGEX_INNER_SLASH.test(pattern) ? "(?:^|\\/)" : "^") + source;
|
|
585268
585316
|
}],
|
|
585269
585317
|
[
|
|
@@ -585272,10 +585320,8 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585272
585320
|
"*"
|
|
585273
585321
|
],
|
|
585274
585322
|
[
|
|
585275
|
-
/(^|[^\\]
|
|
585276
|
-
(_, p1
|
|
585277
|
-
return p1 + p2.replace(/\\\*/g, "[^\\/]*");
|
|
585278
|
-
},
|
|
585323
|
+
/(^|[^\\])(?:\\\*)+(?!$)/g,
|
|
585324
|
+
(_, p1) => p1 + WILDCARD,
|
|
585279
585325
|
"*"
|
|
585280
585326
|
],
|
|
585281
585327
|
[
|
|
@@ -585312,8 +585358,7 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585312
585358
|
return `${p1 ? `${p1}[^/]+` : "[^/]*"}(?=$|\\/$)`;
|
|
585313
585359
|
};
|
|
585314
585360
|
const REGEX_REPLACE_TRAILING_DOUBLESTAR = /\uE001$/;
|
|
585315
|
-
const replaceTrailingDoublestar = () => "
|
|
585316
|
-
const WILDCARD = "[^\\/]*";
|
|
585361
|
+
const replaceTrailingDoublestar = () => "[\\s\\S]";
|
|
585317
585362
|
const separatorAfter = (run, at) => {
|
|
585318
585363
|
let separator = EMPTY;
|
|
585319
585364
|
for (let index = at + 1; index < run.length && !run[index].wildcard; index++) separator += run[index].single;
|
|
@@ -585401,7 +585446,7 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585401
585446
|
if (body[body.length - 1] === SLASH) prefix = makeRegexPrefix(body.slice(0, -1));
|
|
585402
585447
|
const head = prefix.slice(0, -1);
|
|
585403
585448
|
const last = prefix[prefix.length - 1];
|
|
585404
|
-
return last === TRAILING_WILDCARD ? `${head}$` : last === TRAILING_DOUBLESTAR ?
|
|
585449
|
+
return last === TRAILING_WILDCARD ? `${head}$` : last === TRAILING_DOUBLESTAR ? head : NEVER_MATCH;
|
|
585405
585450
|
};
|
|
585406
585451
|
const matchesBasename = (body) => {
|
|
585407
585452
|
const index = body.indexOf(SLASH);
|
|
@@ -585423,8 +585468,8 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585423
585468
|
return cut < 0 ? EMPTY : path.slice(0, cut + 1);
|
|
585424
585469
|
};
|
|
585425
585470
|
const isString = (subject) => typeof subject === "string";
|
|
585426
|
-
const checkPattern = (pattern) => pattern && isString(pattern)
|
|
585427
|
-
const splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF).filter(Boolean);
|
|
585471
|
+
const checkPattern = (pattern) => pattern && isString(pattern);
|
|
585472
|
+
const splitPattern = (pattern) => (pattern[pattern.length - 1] === "\r" ? pattern.slice(0, -1) : pattern).split(REGEX_SPLITALL_CRLF).filter(Boolean);
|
|
585428
585473
|
var IgnoreRule = class {
|
|
585429
585474
|
constructor(pattern, mark, body, ignoreCase, negative, prefix) {
|
|
585430
585475
|
this.pattern = pattern;
|
|
@@ -585453,19 +585498,28 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585453
585498
|
return define(this, key, regex);
|
|
585454
585499
|
}
|
|
585455
585500
|
};
|
|
585456
|
-
const
|
|
585457
|
-
|
|
585458
|
-
|
|
585459
|
-
|
|
585460
|
-
|
|
585461
|
-
|
|
585462
|
-
|
|
585501
|
+
const hasTrailingBackslash = (str) => {
|
|
585502
|
+
let count = 0;
|
|
585503
|
+
while (str[str.length - count - 1] === ESCAPE) count++;
|
|
585504
|
+
return count % 2 === 1;
|
|
585505
|
+
};
|
|
585506
|
+
const trimEnd = (body, stripLineEnd) => {
|
|
585507
|
+
let lineEnd = body.length;
|
|
585508
|
+
let end;
|
|
585509
|
+
for (;;) {
|
|
585510
|
+
if (stripLineEnd && body[lineEnd - 1] === "\r") lineEnd--;
|
|
585511
|
+
end = lineEnd;
|
|
585512
|
+
while (body[end - 1] === SPACE) end--;
|
|
585513
|
+
if (!stripLineEnd || body[end - 1] !== "\n") break;
|
|
585514
|
+
lineEnd = end - 1;
|
|
585515
|
+
}
|
|
585516
|
+
if (end === lineEnd) return body.slice(0, lineEnd);
|
|
585463
585517
|
let backslashes = 0;
|
|
585464
|
-
while (
|
|
585518
|
+
while (body[end - backslashes - 1] === ESCAPE) backslashes++;
|
|
585465
585519
|
return backslashes % 2 ? body.slice(0, end - 1) + SPACE : body.slice(0, end);
|
|
585466
585520
|
};
|
|
585467
|
-
const createRule = (
|
|
585468
|
-
let body = pattern[0] === BOM ? pattern.slice(1) : pattern;
|
|
585521
|
+
const createRule = (pattern, mark, ignoreCase, stripLineEnd, stripBOM) => {
|
|
585522
|
+
let body = stripBOM && pattern[0] === BOM ? pattern.slice(1) : pattern;
|
|
585469
585523
|
if (body[0] === "#") return;
|
|
585470
585524
|
let negative = false;
|
|
585471
585525
|
if (body[0] === "!") {
|
|
@@ -585473,8 +585527,8 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585473
585527
|
body = body.slice(1);
|
|
585474
585528
|
}
|
|
585475
585529
|
const last = body[body.length - 1];
|
|
585476
|
-
if (last === SPACE || last === "\r" || last === "\n") body = trimEnd(body);
|
|
585477
|
-
if (!body) return;
|
|
585530
|
+
if (last === SPACE || stripLineEnd && (last === "\r" || last === "\n")) body = trimEnd(body, stripLineEnd);
|
|
585531
|
+
if (!body || hasTrailingBackslash(body)) return;
|
|
585478
585532
|
body = body.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
585479
585533
|
const regexPrefix = makeRegexPrefix(body);
|
|
585480
585534
|
return new IgnoreRule(pattern, mark, body, ignoreCase, negative, regexPrefix);
|
|
@@ -585485,15 +585539,16 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585485
585539
|
this._rules = [];
|
|
585486
585540
|
this._basenameCount = 0;
|
|
585487
585541
|
}
|
|
585488
|
-
_add(pattern) {
|
|
585542
|
+
_add(pattern, index) {
|
|
585489
585543
|
if (pattern && pattern[KEY_IGNORE]) {
|
|
585490
585544
|
this._rules = this._rules.concat(pattern._rules._rules);
|
|
585491
585545
|
this._basenameCount += pattern._rules._basenameCount;
|
|
585492
585546
|
this._added = true;
|
|
585493
585547
|
return;
|
|
585494
585548
|
}
|
|
585495
|
-
|
|
585496
|
-
const
|
|
585549
|
+
const isStr = isString(pattern);
|
|
585550
|
+
const raw = isStr ? pattern : pattern.pattern;
|
|
585551
|
+
const rule = checkPattern(raw) && createRule(raw, isStr ? UNDEFINED : pattern.mark, this._ignoreCase, !this._split, this._stripBOM && !index);
|
|
585497
585552
|
if (rule) {
|
|
585498
585553
|
this._added = true;
|
|
585499
585554
|
this._rules.push(rule);
|
|
@@ -585502,7 +585557,9 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585502
585557
|
}
|
|
585503
585558
|
add(pattern) {
|
|
585504
585559
|
this._added = false;
|
|
585505
|
-
|
|
585560
|
+
this._split = isString(pattern);
|
|
585561
|
+
this._stripBOM = !this._split || pattern[0] === BOM;
|
|
585562
|
+
makeArray(this._split ? splitPattern(pattern) : pattern).forEach(this._add, this);
|
|
585506
585563
|
if (this._added) this._literalRules = UNDEFINED;
|
|
585507
585564
|
return this._added;
|
|
585508
585565
|
}
|
|
@@ -585572,6 +585629,7 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585572
585629
|
checkPath.isNotRelative = isNotRelative;
|
|
585573
585630
|
/* istanbul ignore next */
|
|
585574
585631
|
checkPath.convert = (p) => p;
|
|
585632
|
+
const convertPath = (target) => isString(target) && checkPath.convert(target);
|
|
585575
585633
|
var Ignore = class {
|
|
585576
585634
|
constructor({ ignorecase = true, ignoreCase = ignorecase, allowRelativePaths = false } = {}) {
|
|
585577
585635
|
define(this, KEY_IGNORE, true);
|
|
@@ -585590,13 +585648,16 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585590
585648
|
addPattern(pattern) {
|
|
585591
585649
|
return this.add(pattern);
|
|
585592
585650
|
}
|
|
585593
|
-
_test(originalPath, cache) {
|
|
585594
|
-
const path = originalPath && checkPath.convert(originalPath);
|
|
585651
|
+
_test(originalPath, cache, path) {
|
|
585595
585652
|
checkPath(path, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
|
|
585596
|
-
return this._t(path, cache)
|
|
585653
|
+
return path ? this._t(path, cache) : {
|
|
585654
|
+
ignored: false,
|
|
585655
|
+
unignored: false
|
|
585656
|
+
};
|
|
585597
585657
|
}
|
|
585598
|
-
checkIgnore(
|
|
585599
|
-
|
|
585658
|
+
checkIgnore(target) {
|
|
585659
|
+
const path = convertPath(target);
|
|
585660
|
+
if (!path || path.charCodeAt(path.length - 1) !== SLASH_CODE) return this._test(target, this._testCache, path);
|
|
585600
585661
|
const dir = this._t(path, this._testCache);
|
|
585601
585662
|
if (dir.ignored) return dir;
|
|
585602
585663
|
const literal = this._rules.testLiteral(path);
|
|
@@ -585609,7 +585670,7 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585609
585670
|
return cache[path] = parent && parent.ignored ? parent : this._rules.test(path, MODE_IGNORE);
|
|
585610
585671
|
}
|
|
585611
585672
|
ignores(path) {
|
|
585612
|
-
return this._test(path, this._ignoreCache).ignored;
|
|
585673
|
+
return this._test(path, this._ignoreCache, convertPath(path)).ignored;
|
|
585613
585674
|
}
|
|
585614
585675
|
createFilter() {
|
|
585615
585676
|
return (path) => !this.ignores(path);
|
|
@@ -585618,11 +585679,11 @@ var require_ignore = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
|
|
|
585618
585679
|
return makeArray(paths).filter(this.createFilter());
|
|
585619
585680
|
}
|
|
585620
585681
|
test(path) {
|
|
585621
|
-
return this._test(path, this._testCache);
|
|
585682
|
+
return this._test(path, this._testCache, convertPath(path));
|
|
585622
585683
|
}
|
|
585623
585684
|
};
|
|
585624
585685
|
const factory = (options) => new Ignore(options);
|
|
585625
|
-
const isPathValid = (path) => checkPath(
|
|
585686
|
+
const isPathValid = (path) => checkPath(convertPath(path), path, RETURN_FALSE);
|
|
585626
585687
|
/* istanbul ignore next */
|
|
585627
585688
|
const setupWindows = () => {
|
|
585628
585689
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
package/man/man1/lh.1
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" Code generated by `npm run man:generate`; DO NOT EDIT.
|
|
2
2
|
.\" Manual command details come from the Commander command tree.
|
|
3
|
-
.TH LH 1 "" "@lobehub/cli 0.0.
|
|
3
|
+
.TH LH 1 "" "@lobehub/cli 0.0.109" "User Commands"
|
|
4
4
|
.SH NAME
|
|
5
5
|
lh \- LobeHub CLI \- manage and connect to LobeHub services
|
|
6
6
|
.SH SYNOPSIS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.109",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/lobehub/lobehub",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"access": "public",
|
|
84
84
|
"registry": "https://registry.npmjs.org"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "3bc9577537c7dc56833e8abd39fbd88532b37ea3"
|
|
87
87
|
}
|