@wirecat/tg-cli 0.116.0 → 0.117.0
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/bin/tg.js +2 -2
- package/dist/bot/transport.d.ts +1 -1
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +42 -30
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-6CLMTQOV.js → adapter-VNQ72MBK.js} +70 -61
- package/dist/bundle/{all-profiles-R2UZMH24.js → all-profiles-3W2UQTCK.js} +10 -10
- package/dist/bundle/{anthropic-QKIPHV2Z.js → anthropic-DFUW2KTG.js} +6 -6
- package/dist/bundle/{app-server-AZB2MFK6.js → app-server-5XJIMLHB.js} +49 -46
- package/dist/bundle/{bot-api-2IM243J4.js → bot-api-HRRBF3W6.js} +49 -49
- package/dist/bundle/{bot-history-G6CRVCL2.js → bot-history-GBH5XE4N.js} +18 -18
- package/dist/bundle/{bun-JDKPISPX.js → bun-ZMOYGG6F.js} +2 -2
- package/dist/bundle/{bun-sqlite-X5PY5IQT.js → bun-sqlite-6FZFMA7K.js} +5 -5
- package/dist/bundle/{chunk-577MFPCP.js → chunk-2452HCIV.js} +3 -3
- package/dist/bundle/{chunk-H72UEHNG.js → chunk-2XLKZL6K.js} +34 -28
- package/dist/bundle/{chunk-RSDIPQXP.js → chunk-3GRX7WP6.js} +2 -2
- package/dist/bundle/{chunk-PPLFOIYX.js → chunk-3MQOLYAN.js} +4 -4
- package/dist/bundle/{chunk-JFTCOV37.js → chunk-3RJYLN5V.js} +73 -21
- package/dist/bundle/{chunk-BGMV66FC.js → chunk-4JDGN6OD.js} +1 -1
- package/dist/bundle/{chunk-MQ7MCVZV.js → chunk-56Q5JV3Z.js} +2 -2
- package/dist/bundle/{chunk-4IQZRW4O.js → chunk-66FZBLRJ.js} +13 -13
- package/dist/bundle/{chunk-QHBVGKC3.js → chunk-6GFUL4OU.js} +206 -81
- package/dist/bundle/{chunk-5FCONCJO.js → chunk-6HRN7BW6.js} +1 -1
- package/dist/bundle/{chunk-I6JF43YP.js → chunk-7NBUT62O.js} +3 -3
- package/dist/bundle/{chunk-VQPLHOVQ.js → chunk-7Y3RUEVY.js} +6 -6
- package/dist/bundle/chunk-AG6HWPQP.js +64 -0
- package/dist/bundle/{chunk-HK6SIIGG.js → chunk-AUBRELCM.js} +3 -3
- package/dist/bundle/{chunk-4D5AUWAY.js → chunk-B2YPB5AE.js} +43 -25
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-BXTDAGM4.js} +2 -2
- package/dist/bundle/{chunk-QGL2UGML.js → chunk-C6TUVV7E.js} +466 -224
- package/dist/bundle/{chunk-42GK3XRS.js → chunk-EA2PGDER.js} +2 -2
- package/dist/bundle/{chunk-N6TIFJHW.js → chunk-EL6I4WTB.js} +1 -1
- package/dist/bundle/{chunk-76CX2YPT.js → chunk-EPCFXKTX.js} +8 -8
- package/dist/bundle/{chunk-Y6VWGJ4Q.js → chunk-EZTYJ43A.js} +4 -2
- package/dist/bundle/{chunk-T7CDLV33.js → chunk-F6KBVIJP.js} +4 -4
- package/dist/bundle/{chunk-PXMHBTK3.js → chunk-FAHHERJ7.js} +4 -4
- package/dist/bundle/{chunk-DP5LRU7K.js → chunk-FEKXHILZ.js} +1 -1
- package/dist/bundle/chunk-G7B5UIE7.js +182 -0
- package/dist/bundle/{chunk-YLRTLZF6.js → chunk-GFHNQBD2.js} +1 -1
- package/dist/bundle/{chunk-SD5PUYKF.js → chunk-HORGORHK.js} +12 -12
- package/dist/bundle/{chunk-N42VUNTO.js → chunk-HWYSRB64.js} +2 -2
- package/dist/bundle/{chunk-5VFPUOJO.js → chunk-HZZGOLGP.js} +11 -11
- package/dist/bundle/{chunk-B4UOCWM4.js → chunk-JWIUK3SK.js} +2 -2
- package/dist/bundle/{chunk-NL3PAFAE.js → chunk-KVTLT4V7.js} +6 -6
- package/dist/bundle/{chunk-KA6EGOJY.js → chunk-L5WNE4WS.js} +2 -2
- package/dist/bundle/{chunk-PPSUA3IZ.js → chunk-M7V5XRM6.js} +3 -3
- package/dist/bundle/{chunk-XQUTJITP.js → chunk-MLHKQDUN.js} +647 -129
- package/dist/bundle/{chunk-RSNGMNU5.js → chunk-MP7M6FFU.js} +6 -6
- package/dist/bundle/{chunk-5ZIBAYIZ.js → chunk-NUCDEOFC.js} +2 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-QAKL3GXB.js → chunk-PTIB7NEE.js} +1 -1
- package/dist/bundle/{chunk-TZVL4U7U.js → chunk-Q7O4CQDO.js} +4 -2
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-R52RMHWF.js → chunk-RDH2QBUE.js} +3 -3
- package/dist/bundle/{chunk-NUYRMU56.js → chunk-RDSLSV4M.js} +2 -2
- package/dist/bundle/{chunk-UCSFO5GW.js → chunk-SQXB5ZUZ.js} +3 -3
- package/dist/bundle/{chunk-K62YATVD.js → chunk-TFBHDIGY.js} +4 -4
- package/dist/bundle/{chunk-IR4S7POE.js → chunk-TG6ZYL4B.js} +8 -8
- package/dist/bundle/{chunk-FDI4GOIP.js → chunk-UGPZCNYC.js} +329 -291
- package/dist/bundle/{chunk-GV7ZJ33M.js → chunk-UYK5AXSW.js} +4 -4
- package/dist/bundle/{chunk-HUOXUI2M.js → chunk-V2T7NYNU.js} +55 -46
- package/dist/bundle/{chunk-HBUJNNZD.js → chunk-V47NPSSV.js} +28 -28
- package/dist/bundle/{chunk-YYKJN6H5.js → chunk-VMCQGZIA.js} +1390 -690
- package/dist/bundle/{chunk-LXH3SKY3.js → chunk-VRDVXXXD.js} +8 -8
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-LFKEKSI5.js → chunk-X3CD475M.js} +470 -234
- package/dist/bundle/{chunk-SKZ2E3WC.js → chunk-XW5C4TI7.js} +1 -1
- package/dist/bundle/{chunk-OX6EWGSG.js → chunk-YHZFGUAP.js} +19 -19
- package/dist/bundle/{chunk-HLNYJPAB.js → chunk-YIXXH74F.js} +2 -2
- package/dist/bundle/{chunk-LSKGCJWD.js → chunk-Z4QKLHJW.js} +13617 -1795
- package/dist/bundle/{chunk-JJMQA272.js → chunk-ZPILMEFY.js} +9 -9
- package/dist/bundle/command-contract-KMMHARMR.js +33 -0
- package/dist/bundle/{decode-W6YPTGJA.js → decode-YMSOY2AY.js} +5 -5
- package/dist/bundle/{dispatch-H7EFNBEH.js → dispatch-OP27MWX5.js} +8 -8
- package/dist/bundle/{echarts-YAWDIC5D.js → echarts-7XS55TQY.js} +2 -2
- package/dist/bundle/{embed-EN4UTLV5.js → embed-QTOE7NN3.js} +6 -6
- package/dist/bundle/{embedder-HEKHRL7E.js → embedder-KBBRYSNH.js} +9 -9
- package/dist/bundle/{entry-2KB6MTCG.js → entry-HGEUYYMX.js} +7 -7
- package/dist/bundle/{failure-3DU3HLBQ.js → failure-4JUQFXJT.js} +2 -2
- package/dist/bundle/{first-run-LBG26WWO.js → first-run-CSGMEJXY.js} +11 -11
- package/dist/bundle/first-screen-K2PBNJNE.js +31 -0
- package/dist/bundle/{instructions-HA62QNPR.js → instructions-S6ZXCTFH.js} +1 -1
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{node-MZ2VWSQQ.js → node-LCIUWXXG.js} +2 -2
- package/dist/bundle/{node-sqlite-KNNS6DCM.js → node-sqlite-HL4WY4N2.js} +6 -6
- package/dist/bundle/{oauth-KWUABBSQ.js → oauth-U4KIMDKG.js} +7 -7
- package/dist/bundle/{open-JXMCYCIV.js → open-EH7OS7M7.js} +5 -5
- package/dist/bundle/{openai-HL3IR4VT.js → openai-W5TB3NA5.js} +14 -14
- package/dist/bundle/{process-K2FICLWY.js → process-3CVLTCTA.js} +1 -1
- package/dist/bundle/{program-IFOMT4JS.js → program-LOIZTK2P.js} +51 -51
- package/dist/bundle/{prompt-HVD3Q77P.js → prompt-IDNH7N3W.js} +5 -5
- package/dist/bundle/{proxy-transport-PA5SGMRY.js → proxy-transport-4DPZB2W2.js} +5 -5
- package/dist/bundle/{recognize-HHLVETKI.js → recognize-G5EWYXIF.js} +4 -4
- package/dist/bundle/{remote-HUAKXJCS.js → remote-4XTBZVZD.js} +7 -7
- package/dist/bundle/{rerank-NWFIV7OF.js → rerank-OWSTDLZN.js} +7 -7
- package/dist/bundle/{serve-ANUKAJJN.js → serve-YCPSEWP3.js} +9 -9
- package/dist/bundle/server-KELKX6S3.js +60 -0
- package/dist/bundle/{server-7Q7WAOHO.js → server-ODG4A2KK.js} +35 -35
- package/dist/bundle/{state-Y2AJ5XTP.js → state-OL2235G5.js} +6 -6
- package/dist/bundle/{store-S3IG5KWL.js → store-5AACYNDM.js} +15 -13
- package/dist/bundle/store-maintenance-command-3J7WZYVN.js +50 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/telegram/account.d.ts.map +1 -1
- package/dist/telegram/account.js +4 -1
- package/dist/telegram/account.js.map +1 -1
- package/dist/telegram/errors.d.ts.map +1 -1
- package/dist/telegram/errors.js +2 -1
- package/dist/telegram/errors.js.map +1 -1
- package/dist/telegram/feature.d.ts +4 -1
- package/dist/telegram/feature.d.ts.map +1 -1
- package/dist/telegram/feature.js +5 -2
- package/dist/telegram/feature.js.map +1 -1
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +24 -10
- package/dist/telegram/sending.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-K2RYCCTP.js +0 -48
- package/dist/bundle/chunk-ZDIAPICE.js +0 -132
- package/dist/bundle/command-contract-DPXM4SZT.js +0 -33
- package/dist/bundle/first-screen-TGTSLUI6.js +0 -31
- package/dist/bundle/server-HCQS4YDQ.js +0 -60
- package/dist/bundle/store-maintenance-command-V2WC4G6J.js +0 -50
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -13,45 +13,45 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VMCQGZIA.js";
|
|
17
17
|
import {
|
|
18
18
|
parseProxy,
|
|
19
19
|
proxyAddress,
|
|
20
20
|
proxyError,
|
|
21
21
|
proxyLabel,
|
|
22
22
|
proxySetting
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JWIUK3SK.js";
|
|
24
24
|
import {
|
|
25
25
|
messengerContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-V2T7NYNU.js";
|
|
27
27
|
import {
|
|
28
28
|
uploadBlob
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UGPZCNYC.js";
|
|
30
30
|
import {
|
|
31
31
|
asFirstWord,
|
|
32
32
|
currentAttempt,
|
|
33
33
|
environmentOf,
|
|
34
34
|
fromFile,
|
|
35
35
|
settingsFor
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-X3CD475M.js";
|
|
37
37
|
import {
|
|
38
38
|
TG
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YIXXH74F.js";
|
|
40
40
|
import {
|
|
41
41
|
Credentials,
|
|
42
42
|
pathsAreOverridden,
|
|
43
43
|
resolvePaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YHZFGUAP.js";
|
|
45
45
|
import {
|
|
46
46
|
optional
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-EPCFXKTX.js";
|
|
48
48
|
import {
|
|
49
49
|
importFrom
|
|
50
50
|
} from "./chunk-Y5E2WNWB.js";
|
|
51
51
|
import {
|
|
52
52
|
CliError,
|
|
53
53
|
isCliError
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-BXTDAGM4.js";
|
|
55
55
|
import {
|
|
56
56
|
__name
|
|
57
57
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -181,7 +181,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
|
|
|
181
181
|
throw new CliError(temporary ? "provider_unavailable" : "authentication_error", loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``, temporary ? { reason: "credentials.unreachable" } : {});
|
|
182
182
|
}
|
|
183
183
|
const options = { credentials: resolved, sessionPath, ...connecting };
|
|
184
|
-
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-
|
|
184
|
+
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-VNQ72MBK.js")).TelegramAdapter.open({
|
|
185
185
|
...options,
|
|
186
186
|
...proxyOption(proxy()),
|
|
187
187
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -770,11 +770,12 @@ var TelegramBotTransport = class {
|
|
|
770
770
|
try {
|
|
771
771
|
answer = apiPlainJson(parseApiJson(text));
|
|
772
772
|
} catch {
|
|
773
|
-
|
|
774
|
-
throw new CliError("invalid_response", `Telegram answered ${method} with something that is not JSON`, {
|
|
773
|
+
const failure = response.status >= 500 ? this.#refused(method, refusalOf(method, {}, response.status), reads) : new CliError("invalid_response", `Telegram answered ${method} with something that is not JSON`, {
|
|
775
774
|
operation: method,
|
|
776
775
|
status: response.status
|
|
777
776
|
});
|
|
777
|
+
end({ ...answered, errorCode: failure.code });
|
|
778
|
+
throw failure;
|
|
778
779
|
}
|
|
779
780
|
if (answer.ok === true) {
|
|
780
781
|
end(answered);
|
|
@@ -787,20 +788,26 @@ var TelegramBotTransport = class {
|
|
|
787
788
|
answer.description = answer.description.split(secret).join("[redacted]");
|
|
788
789
|
answer.description = answer.description.replace(/\b\d+:[A-Za-z0-9_-]{20,}\b/g, "[redacted]");
|
|
789
790
|
}
|
|
790
|
-
const refusal = refusalOf(method, answer, response.status);
|
|
791
|
+
const refusal = this.#refused(method, refusalOf(method, answer, response.status), reads);
|
|
791
792
|
end({ ...answered, errorCode: refusal.code });
|
|
792
793
|
throw refusal;
|
|
793
794
|
}
|
|
795
|
+
/** A server failure may come after a write was made; only a refusal says it was not (WC-LIFE-9). */
|
|
796
|
+
#refused(method, refusal, reads) {
|
|
797
|
+
if (reads || refusal.code !== "provider_unavailable")
|
|
798
|
+
return refusal;
|
|
799
|
+
return new CliError("outcome_unknown", `Telegram failed on ${method}; it may or may not have carried it out \u2014 check before repeating it`, { ...refusal.details, retryable: false });
|
|
800
|
+
}
|
|
794
801
|
#unanswered(method, error, reads, timeoutMs) {
|
|
795
802
|
if (isCliError(error) && error.details.proxy !== void 0)
|
|
796
803
|
return error;
|
|
797
|
-
const timedOut = error?.name === "TimeoutError";
|
|
798
|
-
if (this.#signal?.aborted && this.#signal.reason?.name !== "TimeoutError") {
|
|
799
|
-
return new CliError("cancelled", `${method} was cancelled`, { operation: method });
|
|
800
|
-
}
|
|
801
804
|
if (!reads) {
|
|
802
805
|
return new CliError("outcome_unknown", `${method} got no answer; Telegram may or may not have carried it out \u2014 check before repeating it`, { operation: method, retryable: false });
|
|
803
806
|
}
|
|
807
|
+
if (this.#signal?.aborted && this.#signal.reason?.name !== "TimeoutError") {
|
|
808
|
+
return new CliError("cancelled", `${method} was cancelled`, { operation: method });
|
|
809
|
+
}
|
|
810
|
+
const timedOut = error?.name === "TimeoutError";
|
|
804
811
|
return new CliError(timedOut ? "timeout" : "network_error", timedOut ? `${method} got no answer within ${timeoutMs} ms` : `${method} could not reach Telegram`, { operation: method, retryable: true });
|
|
805
812
|
}
|
|
806
813
|
};
|
|
@@ -815,11 +822,10 @@ var multipart = /* @__PURE__ */ __name((params, files) => {
|
|
|
815
822
|
return form;
|
|
816
823
|
}, "multipart");
|
|
817
824
|
var refusalOf = /* @__PURE__ */ __name((method, answer, status) => {
|
|
818
|
-
const said = answer.description ?? `HTTP ${status}`;
|
|
819
825
|
const details = { operation: method, status };
|
|
820
826
|
const retryAfter = answer.parameters?.retry_after;
|
|
821
827
|
if (retryAfter !== void 0) {
|
|
822
|
-
return new CliError("rate_limited", `Telegram asks to wait ${retryAfter} s before ${method}
|
|
828
|
+
return new CliError("rate_limited", `Telegram asks to wait ${retryAfter} s before ${method}`, {
|
|
823
829
|
...details,
|
|
824
830
|
retry_after_ms: retryAfter * 1e3,
|
|
825
831
|
retryable: true
|
|
@@ -827,11 +833,23 @@ var refusalOf = /* @__PURE__ */ __name((method, answer, status) => {
|
|
|
827
833
|
}
|
|
828
834
|
const migrated = answer.parameters?.migrate_to_chat_id;
|
|
829
835
|
if (migrated !== void 0) {
|
|
830
|
-
return new CliError("not_found", `this group became a supergroup with id ${migrated} \u2014 use that id from now on
|
|
836
|
+
return new CliError("not_found", `this group became a supergroup with id ${migrated} \u2014 use that id from now on`, {
|
|
837
|
+
...details,
|
|
838
|
+
migrated_chat_id: String(migrated)
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
const refused = answer.error_code ?? status;
|
|
842
|
+
if (refused === 401 || refused === 404)
|
|
843
|
+
return new CliError("authentication_error", "Telegram did not accept this bot token", details);
|
|
844
|
+
if (refused === 403) {
|
|
845
|
+
return new CliError("permission_error", `Telegram does not let this bot ${method} there \u2014 it may be blocked, not in the chat, or without the right`, details);
|
|
846
|
+
}
|
|
847
|
+
if (refused >= 500)
|
|
848
|
+
return new CliError("provider_unavailable", `Telegram failed on ${method} (${refused})`, details);
|
|
849
|
+
if (refused === 400) {
|
|
850
|
+
return new CliError("validation_error", `Telegram refused ${method} (400): a chat, message or value in it is wrong, or the bot cannot see it`, details);
|
|
831
851
|
}
|
|
832
|
-
|
|
833
|
-
const message = code === "authentication_error" ? `Telegram did not accept this bot token (${said})` : `${method}: ${said}`;
|
|
834
|
-
return new CliError(code, message, details);
|
|
852
|
+
return new CliError("provider_error", `Telegram refused ${method} (${refused})`, details);
|
|
835
853
|
}, "refusalOf");
|
|
836
854
|
|
|
837
855
|
// dist/commands/bot.js
|
|
@@ -878,7 +896,7 @@ var TELEGRAM_BOT = {
|
|
|
878
896
|
const botId = token.split(":", 1)[0] ?? "";
|
|
879
897
|
if (!/^\d+$/.test(botId))
|
|
880
898
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
881
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
899
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-GBH5XE4N.js")).openBotHistory)({
|
|
882
900
|
credentials,
|
|
883
901
|
sessionPath: botSessionFile(profile, botId, env),
|
|
884
902
|
token,
|
|
@@ -898,7 +916,7 @@ var TELEGRAM_BOT = {
|
|
|
898
916
|
return void 0;
|
|
899
917
|
let personal;
|
|
900
918
|
try {
|
|
901
|
-
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-
|
|
919
|
+
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-VNQ72MBK.js")).TelegramAdapter.open({
|
|
902
920
|
credentials,
|
|
903
921
|
sessionPath: personalPath,
|
|
904
922
|
checks: words,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -39,7 +39,7 @@ var CliError = class extends Error {
|
|
|
39
39
|
};
|
|
40
40
|
var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
43
43
|
var CONTROL = (
|
|
44
44
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
45
45
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|