@wirecat/drive-cli 0.72.0 → 0.72.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/bin/drive.js +2 -2
- package/dist/bundle/agent-GOCD4ZW2.js +46 -0
- package/dist/bundle/{all-profiles-GXGDVNQJ.js → all-profiles-PZVP3G73.js} +14 -14
- package/dist/bundle/{anthropic-H5C4GQHC.js → anthropic-PUOTKSYV.js} +8 -8
- package/dist/bundle/{app-server-EQ3UK4C7.js → app-server-MKDCXRZM.js} +79 -79
- package/dist/bundle/{bun-DTJVSRY3.js → bun-NS5YLOQT.js} +2 -2
- package/dist/bundle/{bun-sqlite-JIFY7MAE.js → bun-sqlite-KSKWRLLO.js} +9 -9
- package/dist/bundle/{chunk-KF3ZBQJV.js → chunk-2CG3LUQS.js} +4 -4
- package/dist/bundle/{chunk-4HPXWYTE.js → chunk-2TVHFJKV.js} +1 -1
- package/dist/bundle/{chunk-ASTKHB6B.js → chunk-35GROSBS.js} +41 -41
- package/dist/bundle/{chunk-UWG3PRY7.js → chunk-3CH7I452.js} +7 -7
- package/dist/bundle/{chunk-OAONP6KI.js → chunk-3QBRS3JT.js} +8 -8
- package/dist/bundle/{chunk-2Q325BBD.js → chunk-3T7JIHSO.js} +8 -8
- package/dist/bundle/{chunk-77OBW43F.js → chunk-3VIEGRBA.js} +6 -6
- package/dist/bundle/{chunk-CIFE4KPX.js → chunk-3YCUYFTD.js} +45 -45
- package/dist/bundle/{chunk-6CCO3JCM.js → chunk-3ZGWJYSG.js} +20 -20
- package/dist/bundle/{chunk-BPA3R4KN.js → chunk-43PCMVTZ.js} +1 -1
- package/dist/bundle/{chunk-XQZEMRCU.js → chunk-4DK55MLP.js} +10 -10
- package/dist/bundle/{chunk-DOQMH4DC.js → chunk-4P6D6CUS.js} +12 -10
- package/dist/bundle/{chunk-E3VWZC3K.js → chunk-54O5NJRC.js} +12 -12
- package/dist/bundle/{chunk-5KWCO56H.js → chunk-5BHP4FVM.js} +2 -2
- package/dist/bundle/{chunk-GUMKKRE6.js → chunk-6JU4KLAZ.js} +63 -63
- package/dist/bundle/{chunk-ZFDSJ5YJ.js → chunk-6KND2DYT.js} +6 -6
- package/dist/bundle/{chunk-UIQ35CA5.js → chunk-7YPZPJTB.js} +1 -1
- package/dist/bundle/{chunk-GU6ICH53.js → chunk-A5XNUMW7.js} +2 -2
- package/dist/bundle/{chunk-TTPWKTVR.js → chunk-AG34MPVN.js} +1 -1
- package/dist/bundle/{chunk-KLPFDFLI.js → chunk-B5V2U7IS.js} +9 -9
- package/dist/bundle/{chunk-DCPWZIOV.js → chunk-B6JC5RS3.js} +11 -11
- package/dist/bundle/{chunk-O7CZZ36M.js → chunk-BDZXGDGI.js} +3 -3
- package/dist/bundle/{chunk-NBMGDRP4.js → chunk-BMTMGMGE.js} +1 -1
- package/dist/bundle/{chunk-OPIPG6AP.js → chunk-CP2TZXAG.js} +8 -8
- package/dist/bundle/{chunk-ZJKXSMXK.js → chunk-DOEP4EPW.js} +42 -42
- package/dist/bundle/{chunk-4IUNYYYL.js → chunk-E2TMWONO.js} +395 -395
- package/dist/bundle/{chunk-N4GTCPML.js → chunk-E5EYJU5R.js} +1 -1
- package/dist/bundle/{chunk-SPNPJ3FZ.js → chunk-EXHTGQR2.js} +1 -1
- package/dist/bundle/{chunk-AA4LKC6W.js → chunk-FJQO5OHR.js} +47 -30
- package/dist/bundle/{chunk-COJTCEZP.js → chunk-FKP4T7A4.js} +15 -15
- package/dist/bundle/{chunk-NNGA4QDR.js → chunk-FTL3WXZB.js} +12 -12
- package/dist/bundle/{chunk-KWDZ3KVH.js → chunk-G2CH4FRW.js} +4 -4
- package/dist/bundle/{chunk-PRYMT3OG.js → chunk-G2KKMQRN.js} +2 -2
- package/dist/bundle/{chunk-FBEZSA76.js → chunk-G7SKXAVZ.js} +5 -5
- package/dist/bundle/{chunk-GIEZYBRC.js → chunk-GFI3UUIU.js} +1 -1
- package/dist/bundle/{chunk-VQPT3Y7W.js → chunk-GTROGY74.js} +12 -12
- package/dist/bundle/{chunk-R64OSDOD.js → chunk-GYAPDUF5.js} +5 -5
- package/dist/bundle/{chunk-RSPBVKOC.js → chunk-HCMEU7AF.js} +8 -8
- package/dist/bundle/{chunk-CWPYDT73.js → chunk-HDGJ7IDE.js} +4 -4
- package/dist/bundle/{chunk-WMG3H2VK.js → chunk-HMN26CVU.js} +2 -2
- package/dist/bundle/{chunk-4JS32SRX.js → chunk-HOICQNJX.js} +5 -5
- package/dist/bundle/{chunk-J4NUHSM7.js → chunk-HPS2YGSZ.js} +1 -1
- package/dist/bundle/{chunk-ZFUZEFU6.js → chunk-HSASPXRW.js} +3 -3
- package/dist/bundle/{chunk-EVG3AA5M.js → chunk-IABPGOMT.js} +2 -2
- package/dist/bundle/{chunk-OLCU7Q2B.js → chunk-IBQZT2YD.js} +1 -1
- package/dist/bundle/{chunk-DHMNCOQI.js → chunk-IE3R46YN.js} +57 -57
- package/dist/bundle/{chunk-QUZFDU4K.js → chunk-IE6O7463.js} +4 -4
- package/dist/bundle/{chunk-R32DHS6J.js → chunk-IPBYU43F.js} +19 -14
- package/dist/bundle/{chunk-3FRQ6V4T.js → chunk-IS7STZEB.js} +3 -3
- package/dist/bundle/{chunk-VPQSI5IU.js → chunk-IV77ZFF4.js} +2 -2
- package/dist/bundle/{chunk-5H747A76.js → chunk-JDGF3YYS.js} +445 -1387
- package/dist/bundle/{chunk-FRCJHGZM.js → chunk-JHAACT4I.js} +2 -2
- package/dist/bundle/{chunk-YAIOEPKU.js → chunk-JRED7BNX.js} +160 -160
- package/dist/bundle/{chunk-K652FYCO.js → chunk-JSYUB4SM.js} +2 -2
- package/dist/bundle/{chunk-YWOLQEDV.js → chunk-JVM75M4H.js} +3 -3
- package/dist/bundle/{chunk-IMAWQC5K.js → chunk-JZ65CQWK.js} +6 -6
- package/dist/bundle/{chunk-KX4C32WD.js → chunk-KBR7OC5S.js} +2 -2
- package/dist/bundle/{chunk-OHR6IZNH.js → chunk-KI6OOW6D.js} +8 -1
- package/dist/bundle/{chunk-SQHDSIFL.js → chunk-KOI5G7NM.js} +6 -6
- package/dist/bundle/{chunk-QKBPCX7Y.js → chunk-KPBUJQKT.js} +1 -1
- package/dist/bundle/{chunk-M2ZWYVWO.js → chunk-KVBGIZ2C.js} +1 -1
- package/dist/bundle/{chunk-UJY26HW4.js → chunk-LKUWH6KU.js} +1 -1
- package/dist/bundle/{chunk-QDUIVMEW.js → chunk-MA6U4XH2.js} +1 -1
- package/dist/bundle/{chunk-U7VEJ3CW.js → chunk-MA7ETVTZ.js} +29 -190
- package/dist/bundle/{chunk-FUDUXIVG.js → chunk-MDJUYCHT.js} +1 -1
- package/dist/bundle/{chunk-FIZOPJYY.js → chunk-MGC2BAD2.js} +1 -1
- package/dist/bundle/{chunk-GXGSC622.js → chunk-OBDPKDGB.js} +6 -6
- package/dist/bundle/{chunk-OESP4PHB.js → chunk-ODTBJGWQ.js} +17 -17
- package/dist/bundle/{chunk-KFZCHJRT.js → chunk-PB6ACIME.js} +2 -2
- package/dist/bundle/{chunk-XZ7MO6EU.js → chunk-PMAV3RNP.js} +7 -7
- package/dist/bundle/{chunk-FNAYSZWK.js → chunk-PSY67L73.js} +23 -23
- package/dist/bundle/{chunk-5BNMWSU2.js → chunk-PUVQOZ2N.js} +30 -30
- package/dist/bundle/{chunk-OLDQLEPA.js → chunk-QB7K6PIP.js} +6 -6
- package/dist/bundle/{chunk-HAGXTGJC.js → chunk-QK7GKFKB.js} +4 -4
- package/dist/bundle/{chunk-X5BGAZC5.js → chunk-QMUWHKP5.js} +6 -6
- package/dist/bundle/{chunk-ZPUY3COZ.js → chunk-QURQ2OU2.js} +13 -13
- package/dist/bundle/{chunk-BM6V7456.js → chunk-R3EDZWXF.js} +5 -5
- package/dist/bundle/{chunk-GWCDOYSC.js → chunk-RM4DO2WZ.js} +1 -1
- package/dist/bundle/{chunk-CKB4XZZJ.js → chunk-S27UKJVL.js} +14 -14
- package/dist/bundle/{chunk-ZKWT6HXT.js → chunk-S3SLDYTU.js} +1 -1
- package/dist/bundle/{chunk-7EFM6AW3.js → chunk-SAEBHENE.js} +4 -4
- package/dist/bundle/{chunk-K6ZWNTXY.js → chunk-SM7Z2BQF.js} +17 -17
- package/dist/bundle/{chunk-QSLOACDT.js → chunk-SODB63MR.js} +36 -36
- package/dist/bundle/{chunk-N24YSLED.js → chunk-SSFGSY77.js} +1707 -575
- package/dist/bundle/{chunk-D4JNCXS7.js → chunk-SUQT4KI2.js} +7 -7
- package/dist/bundle/{chunk-ST35FIUG.js → chunk-SWQDKO6D.js} +3 -3
- package/dist/bundle/{chunk-55FH6IEL.js → chunk-T3OK6AYZ.js} +5 -5
- package/dist/bundle/{chunk-IVGVVSPW.js → chunk-TFIAD57H.js} +4 -4
- package/dist/bundle/{chunk-A3S7QM5L.js → chunk-TUL6MCTY.js} +2 -2
- package/dist/bundle/{chunk-DWRUOLBF.js → chunk-UL5HSHFU.js} +4 -4
- package/dist/bundle/{chunk-ML2QIWX2.js → chunk-UT64BBEP.js} +4 -4
- package/dist/bundle/{chunk-6ZW2ZJYC.js → chunk-VBIZD5V5.js} +2 -2
- package/dist/bundle/{chunk-BO6EDBYJ.js → chunk-VHTELRUA.js} +3 -3
- package/dist/bundle/{chunk-47L262VI.js → chunk-VOQICE3G.js} +7 -7
- package/dist/bundle/{chunk-5U3NCE5R.js → chunk-WDJRUNQN.js} +8 -8
- package/dist/bundle/{chunk-XC6TRWLZ.js → chunk-X5CXANSA.js} +3 -3
- package/dist/bundle/{chunk-FTG5QBSD.js → chunk-X6HPQKAI.js} +31 -31
- package/dist/bundle/{chunk-75DAHQOV.js → chunk-XKWQDQ4B.js} +3 -3
- package/dist/bundle/{chunk-R57QUYBG.js → chunk-XZEVHUKI.js} +3 -3
- package/dist/bundle/{chunk-VAR3MJU6.js → chunk-YE7DJB3F.js} +3 -3
- package/dist/bundle/{chunk-FBQJN74J.js → chunk-YJVQ5GST.js} +1 -1
- package/dist/bundle/{chunk-MUFF2YTH.js → chunk-YRCGFSRR.js} +2 -2
- package/dist/bundle/{chunk-KP2XMCNT.js → chunk-ZNFXKFGF.js} +6 -6
- package/dist/bundle/{cli-2P5FW2RL.js → cli-KXRWXGTS.js} +107 -107
- package/dist/bundle/command-contract-BGNT7MTQ.js +45 -0
- package/dist/bundle/{command-server-entry-KP2UDGLA.js → command-server-entry-7FZX74T6.js} +35 -35
- package/dist/bundle/{decode-K2JZ5D6V.js → decode-SZ6W34U3.js} +8 -8
- package/dist/bundle/{dispatch-KOQZA74A.js → dispatch-4KNSZ3PI.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-URO3QGCG.js → echarts-ISH62J4E.js} +2 -2
- package/dist/bundle/{embed-JLIPWTNN.js → embed-6ODGTZPK.js} +9 -9
- package/dist/bundle/{embedder-LUTDO3HS.js → embedder-6FY67FTQ.js} +12 -12
- package/dist/bundle/entry-2SA6ZX7E.js +25 -0
- package/dist/bundle/{failure-GJMQLM7O.js → failure-V3ILKUTX.js} +4 -4
- package/dist/bundle/first-run-ZNKPPD6M.js +31 -0
- package/dist/bundle/first-screen-WF6GYLPN.js +45 -0
- package/dist/bundle/google-QCADNPCQ.js +46 -0
- package/dist/bundle/{google-api-RFXKRLL4.js → google-api-ZTI3NKZX.js} +85 -85
- package/dist/bundle/grants-BPN5AGDK.js +133 -0
- package/dist/bundle/{identity-FXPB5EMT.js → identity-YX4IPGOO.js} +6 -6
- package/dist/bundle/{instructions-IROIUVZI.js → instructions-G5ZGHVFB.js} +1 -1
- package/dist/bundle/{login-WIY5VQU7.js → login-CVX5VJX6.js} +91 -91
- package/dist/bundle/{mcp-NJIOKW3E.js → mcp-MQ2L5IIM.js} +2 -2
- package/dist/bundle/meeting-combined-HKZJMJ6Q.js +28 -0
- package/dist/bundle/meeting-model-DSE4GRVE.js +29 -0
- package/dist/bundle/{meeting-semantic-62QNQMOM.js → meeting-semantic-OHG2QN2G.js} +10 -10
- package/dist/bundle/{node-IACCI2CW.js → node-NLJINXVQ.js} +2 -2
- package/dist/bundle/{node-sqlite-WYIRC7C7.js → node-sqlite-KDFQDYVZ.js} +10 -10
- package/dist/bundle/notes-search-3VBVSQ3R.js +70 -0
- package/dist/bundle/oauth-M3E62ZHC.js +22 -0
- package/dist/bundle/{open-H32B6BCT.js → open-WVRUVBIZ.js} +8 -8
- package/dist/bundle/{openai-VHMPJJUG.js → openai-JJWOSJMV.js} +20 -20
- package/dist/bundle/{process-RNHPF5OK.js → process-LPVAYRO7.js} +1 -1
- package/dist/bundle/{program-GYMJ3DDH.js → program-ZJRIP25J.js} +108 -108
- package/dist/bundle/{prompt-TOG2CRCE.js → prompt-XCDHTEAO.js} +8 -8
- package/dist/bundle/{reasons-TLFQ45YX.js → reasons-REEEQDAZ.js} +5 -5
- package/dist/bundle/{recognize-GYGY45EY.js → recognize-OZLFDJAT.js} +7 -7
- package/dist/bundle/{remote-6XN2QLI5.js → remote-MDPYVCZB.js} +13 -13
- package/dist/bundle/{rerank-HJO3O4TW.js → rerank-FLZWJNHA.js} +10 -10
- package/dist/bundle/{serve-XPCNLHCR.js → serve-5UV5VLRV.js} +12 -12
- package/dist/bundle/{server-WPT3NC5B.js → server-53A2X2MK.js} +71 -71
- package/dist/bundle/server-5GMURMDE.js +97 -0
- package/dist/bundle/{services-253KKKVU.js → services-XSMH7BXB.js} +58 -58
- package/dist/bundle/{sqlite-runtime-EZASGJXW.js → sqlite-runtime-E3L7ENFU.js} +9 -9
- package/dist/bundle/{start-UHI35JFL.js → start-4S2VNR4J.js} +7 -7
- package/dist/bundle/{state-KJTSPFGK.js → state-TQI4JSH7.js} +9 -9
- package/dist/bundle/{store-G5B7T7M7.js → store-GS7PU6PJ.js} +26 -26
- package/dist/bundle/{store-62J2H2A3.js → store-VYJPL7MW.js} +28 -28
- package/dist/bundle/store-maintenance-command-JJVYUZMG.js +85 -0
- package/dist/bundle/surface-JC4XVMZR.js +83 -0
- package/dist/bundle/tokens-KJQ5EAPW.js +133 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-23OB2NZP.js +0 -46
- package/dist/bundle/command-contract-BMQT2G5X.js +0 -45
- package/dist/bundle/entry-AVF6LMG7.js +0 -25
- package/dist/bundle/first-run-VYTIEUDA.js +0 -31
- package/dist/bundle/first-screen-QVZPF7KL.js +0 -45
- package/dist/bundle/google-VX7IPACN.js +0 -46
- package/dist/bundle/grants-4XWJFVD6.js +0 -133
- package/dist/bundle/meeting-combined-JUNV35GM.js +0 -28
- package/dist/bundle/meeting-model-XY4UNWWK.js +0 -29
- package/dist/bundle/notes-search-DEDUJKSN.js +0 -70
- package/dist/bundle/oauth-HXBXF4VI.js +0 -22
- package/dist/bundle/server-UBJZ66XE.js +0 -97
- package/dist/bundle/store-maintenance-command-C6T4YLVF.js +0 -85
- package/dist/bundle/surface-3OT64BHS.js +0 -83
- package/dist/bundle/tokens-EHYO6D2X.js +0 -133
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ACCESS_SECONDS,
|
|
5
5
|
REFRESH_SECONDS,
|
|
6
6
|
readStored
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TFIAD57H.js";
|
|
8
8
|
import {
|
|
9
9
|
OAuthError,
|
|
10
10
|
OAuthErrorCode
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MGC2BAD2.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3ZGWJYSG.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
filesPresent,
|
|
5
5
|
sharedModelsDirectory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2CG3LUQS.js";
|
|
7
7
|
import {
|
|
8
8
|
readSharedSection,
|
|
9
9
|
sharedConfigPath,
|
|
10
10
|
writeSharedSection
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HCMEU7AF.js";
|
|
12
12
|
import {
|
|
13
13
|
storePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HMN26CVU.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
check,
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
string,
|
|
33
33
|
trim,
|
|
34
34
|
url
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-OBDPKDGB.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IBQZT2YD.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
44
44
|
import { existsSync } from "node:fs";
|
|
45
45
|
import { join } from "node:path";
|
|
46
46
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IBQZT2YD.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/ports/wirecat-tools.js
|
|
5
5
|
var WIRECAT_TOOLS = [
|
|
6
6
|
{
|
|
7
7
|
command: "tg",
|
|
@@ -74,6 +74,13 @@ var WIRECAT_TOOLS = [
|
|
|
74
74
|
package: "@wirecat/amo-cli",
|
|
75
75
|
does: "amoCRM and Kommo: deals, contacts and companies, searchable with your other WireCat data"
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
command: "attio",
|
|
79
|
+
appName: "attio-cli",
|
|
80
|
+
envPrefix: "WCATTIO",
|
|
81
|
+
package: "@wirecat/attio-cli",
|
|
82
|
+
does: "Attio CRM: deals, people and companies, searchable with your other WireCat data"
|
|
83
|
+
},
|
|
77
84
|
{
|
|
78
85
|
command: "pbx",
|
|
79
86
|
appName: "asterisk-cli",
|
|
@@ -5,31 +5,31 @@ import {
|
|
|
5
5
|
isNewer,
|
|
6
6
|
readNoticeState,
|
|
7
7
|
writeUpdateState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G2CH4FRW.js";
|
|
9
9
|
import {
|
|
10
10
|
executableEnvironment,
|
|
11
11
|
executableOnPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2TVHFJKV.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
15
15
|
Option,
|
|
16
16
|
annotate
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JRED7BNX.js";
|
|
18
18
|
import {
|
|
19
19
|
require_cross_spawn
|
|
20
20
|
} from "./chunk-D72URWJE.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerHomeInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3ZGWJYSG.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IBQZT2YD.js";
|
|
27
27
|
import {
|
|
28
28
|
__name,
|
|
29
29
|
__toESM
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/skill/index.js
|
|
33
33
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
34
34
|
import { homedir } from "node:os";
|
|
35
35
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -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.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
8
8
|
import { basename, extname } from "node:path";
|
|
9
9
|
var MOST_NAME_BYTES = 200;
|
|
10
10
|
var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
servingProfiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JVM75M4H.js";
|
|
6
6
|
import {
|
|
7
7
|
refuseLacking
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PB6ACIME.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_PACE,
|
|
11
11
|
FloodMemory,
|
|
@@ -17,211 +17,61 @@ import {
|
|
|
17
17
|
holdEnd,
|
|
18
18
|
pacePathFor,
|
|
19
19
|
recipientsPathFor,
|
|
20
|
+
refuseUnknownPermissionKeys,
|
|
20
21
|
servicesFor,
|
|
22
|
+
terminalAsker,
|
|
21
23
|
waitForTurn
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SSFGSY77.js";
|
|
23
25
|
import {
|
|
24
26
|
OFFLINE,
|
|
25
27
|
chatIdIn,
|
|
26
28
|
profilesOnAccount
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3YCUYFTD.js";
|
|
28
30
|
import {
|
|
29
31
|
capability,
|
|
30
32
|
throughWrapper
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-G2KKMQRN.js";
|
|
32
34
|
import {
|
|
33
|
-
AUTHORITY_KEY,
|
|
34
35
|
CEILING_KEY,
|
|
35
|
-
DEFAULT_PERMISSIONS,
|
|
36
|
-
KEYED_UNDER_HOUSEKEEPING,
|
|
37
|
-
WRITE_KEYS,
|
|
38
36
|
asFirstWord,
|
|
39
37
|
baseContext,
|
|
40
38
|
environmentOf,
|
|
41
39
|
fetchesUnder,
|
|
42
|
-
issueMessage,
|
|
43
|
-
keyForCommand,
|
|
44
40
|
levelFor,
|
|
45
41
|
limitBatch,
|
|
46
|
-
permissionIssues,
|
|
47
|
-
publicIssue,
|
|
48
42
|
readKeysForCommand,
|
|
49
43
|
recalledAccount,
|
|
50
44
|
rememberAccount,
|
|
51
|
-
rootOf2 as rootOf
|
|
52
|
-
|
|
53
|
-
} from "./chunk-YAIOEPKU.js";
|
|
45
|
+
rootOf2 as rootOf
|
|
46
|
+
} from "./chunk-JRED7BNX.js";
|
|
54
47
|
import {
|
|
55
48
|
providerErrorKey
|
|
56
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-PMAV3RNP.js";
|
|
57
50
|
import {
|
|
58
51
|
codeOf,
|
|
59
52
|
currentOperation
|
|
60
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QK7GKFKB.js";
|
|
61
54
|
import {
|
|
62
55
|
openStore
|
|
63
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-E2TMWONO.js";
|
|
64
57
|
import {
|
|
65
58
|
chatReferenceOf,
|
|
66
59
|
ensureAccount,
|
|
67
60
|
foldName,
|
|
68
61
|
isId,
|
|
69
62
|
pickPerson
|
|
70
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-B6JC5RS3.js";
|
|
71
64
|
import {
|
|
72
65
|
isCliFailure
|
|
73
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VBIZD5V5.js";
|
|
74
67
|
import {
|
|
75
68
|
CliError
|
|
76
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-IBQZT2YD.js";
|
|
77
70
|
import {
|
|
78
71
|
__name
|
|
79
72
|
} from "./chunk-ZVVMGPBJ.js";
|
|
80
73
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
82
|
-
import { openSync } from "node:fs";
|
|
83
|
-
import { createInterface } from "node:readline";
|
|
84
|
-
import { ReadStream } from "node:tty";
|
|
85
|
-
var fromTerminal = /* @__PURE__ */ __name(async (question) => {
|
|
86
|
-
if (!process.stdin.isTTY || !process.stderr.isTTY)
|
|
87
|
-
return null;
|
|
88
|
-
let input;
|
|
89
|
-
try {
|
|
90
|
-
input = new ReadStream(openSync("/dev/tty", "r"));
|
|
91
|
-
} catch {
|
|
92
|
-
return null;
|
|
93
|
-
}
|
|
94
|
-
const reader = createInterface({ input, output: process.stderr, terminal: true });
|
|
95
|
-
try {
|
|
96
|
-
return await new Promise((resolve, reject) => {
|
|
97
|
-
const cancel = /* @__PURE__ */ __name(() => reject(new CliError("cancelled", "cancelled \u2014 nothing was done")), "cancel");
|
|
98
|
-
reader.once("SIGINT", cancel);
|
|
99
|
-
reader.once("close", cancel);
|
|
100
|
-
reader.question(question, resolve);
|
|
101
|
-
});
|
|
102
|
-
} finally {
|
|
103
|
-
reader.close();
|
|
104
|
-
input.destroy();
|
|
105
|
-
}
|
|
106
|
-
}, "fromTerminal");
|
|
107
|
-
var what = /* @__PURE__ */ __name((key, { chatId, count, personIds, forEveryone }) => [
|
|
108
|
-
key,
|
|
109
|
-
forEveryone ? "for everyone" : void 0,
|
|
110
|
-
count !== void 0 ? `${count} ${count === 1 ? "item" : "items"}` : void 0,
|
|
111
|
-
personIds?.length ? `${personIds.length} ${personIds.length === 1 ? "person" : "people"}` : void 0,
|
|
112
|
-
chatId !== null ? `in chat ${chatId}` : void 0
|
|
113
|
-
].filter(Boolean).join(", "), "what");
|
|
114
|
-
var answerOf = /* @__PURE__ */ __name(async (command, question) => {
|
|
115
|
-
const given = command.optsWithGlobals();
|
|
116
|
-
if (given.json === true || given.jsonl === true)
|
|
117
|
-
return null;
|
|
118
|
-
return (environmentOf(command).answer ?? fromTerminal)(question);
|
|
119
|
-
}, "answerOf");
|
|
120
|
-
var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) => {
|
|
121
|
-
if (environmentOf(command).agent)
|
|
122
|
-
return;
|
|
123
|
-
const flag = skipFlagFor(key);
|
|
124
|
-
const given = command.optsWithGlobals();
|
|
125
|
-
if (flag === "--yes" ? given.yes === true : given.allowDangerous === true)
|
|
126
|
-
return;
|
|
127
|
-
const machine = given.json === true || given.jsonl === true;
|
|
128
|
-
const answer = machine ? null : await (environmentOf(command).answer ?? fromTerminal)(`${what(key, request)} \u2014 go ahead? [y/N] `);
|
|
129
|
-
if (answer === null) {
|
|
130
|
-
throw new CliError("confirmation_required", `${key} asks before it acts (its permission level is ask), and nobody is at a terminal to answer \u2014 add ${flag} to go ahead`, { permission: key });
|
|
131
|
-
}
|
|
132
|
-
if (!/^\s*y(es)?\s*$/i.test(answer))
|
|
133
|
-
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
134
|
-
}, "terminalAsker");
|
|
135
|
-
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
137
|
-
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
138
|
-
"help",
|
|
139
|
-
"guide",
|
|
140
|
-
"config",
|
|
141
|
-
"session",
|
|
142
|
-
"doctor",
|
|
143
|
-
"commands",
|
|
144
|
-
"complete",
|
|
145
|
-
"upgrade",
|
|
146
|
-
"skill",
|
|
147
|
-
"mcp",
|
|
148
|
-
"runs"
|
|
149
|
-
]);
|
|
150
|
-
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
|
|
151
|
-
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
152
|
-
keyOf,
|
|
153
|
-
extra: [AUTHORITY_KEY, ...extra],
|
|
154
|
-
defaults: { ...DEFAULT_PERMISSIONS, ...defaults },
|
|
155
|
-
...alsoChecks ? { alsoChecks } : {}
|
|
156
|
-
}), "commandPermissions");
|
|
157
|
-
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
158
|
-
const words = [];
|
|
159
|
-
for (let at = command; at?.parent; at = at.parent)
|
|
160
|
-
words.unshift(at.name());
|
|
161
|
-
return words;
|
|
162
|
-
}, "pathOf");
|
|
163
|
-
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
164
|
-
let at = command;
|
|
165
|
-
while (at.parent)
|
|
166
|
-
at = at.parent;
|
|
167
|
-
return at;
|
|
168
|
-
}, "rootOf");
|
|
169
|
-
var everyCommand = /* @__PURE__ */ __name((command) => [command, ...command.commands.flatMap(everyCommand)], "everyCommand");
|
|
170
|
-
var knownPermissionKeys = /* @__PURE__ */ __name((command, keyOf = (one) => keyForCommand(pathOf(one)), extra = []) => {
|
|
171
|
-
const known = /* @__PURE__ */ new Set();
|
|
172
|
-
const add = /* @__PURE__ */ __name((key) => {
|
|
173
|
-
for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1))
|
|
174
|
-
known.add(parts.join("."));
|
|
175
|
-
}, "add");
|
|
176
|
-
if (typeof keyOf !== "function") {
|
|
177
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
178
|
-
const key = keyOf.keyOf(pathOf(one));
|
|
179
|
-
if (key)
|
|
180
|
-
add(key);
|
|
181
|
-
}
|
|
182
|
-
for (const key of [...keyOf.extra, ...extra])
|
|
183
|
-
add(key);
|
|
184
|
-
return known;
|
|
185
|
-
}
|
|
186
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
187
|
-
const own = keyOf(one);
|
|
188
|
-
const key = own === void 0 ? keyForCommand(pathOf(one)) : own;
|
|
189
|
-
if (key)
|
|
190
|
-
add(key);
|
|
191
|
-
}
|
|
192
|
-
for (const key of [...WRITE_KEYS, ...extra])
|
|
193
|
-
add(key);
|
|
194
|
-
return known;
|
|
195
|
-
}, "knownPermissionKeys");
|
|
196
|
-
var RENAMED = /* @__PURE__ */ new WeakMap();
|
|
197
|
-
var markRenamedPermissionKeys = /* @__PURE__ */ __name((command, renamed) => {
|
|
198
|
-
if (renamed.size > 0)
|
|
199
|
-
RENAMED.set(command, renamed);
|
|
200
|
-
}, "markRenamedPermissionKeys");
|
|
201
|
-
var renamedPermissionKeys = /* @__PURE__ */ __name((command) => new Map(everyCommand(rootOf2(command)).flatMap((one) => [...RENAMED.get(one) ?? []])), "renamedPermissionKeys");
|
|
202
|
-
var knownBeside = /* @__PURE__ */ __name((key, known) => {
|
|
203
|
-
const parent = key.split(".").slice(0, -1).join(".");
|
|
204
|
-
const depth = parent === "" ? 1 : parent.split(".").length + 1;
|
|
205
|
-
return [...known].filter((one) => one.split(".").length === depth && (parent === "" || one.startsWith(`${parent}.`))).sort();
|
|
206
|
-
}, "knownBeside");
|
|
207
|
-
var unknownPermissionKeys = /* @__PURE__ */ __name((levels, known) => Object.keys(levels).filter((key) => key !== CEILING_KEY && !known.has(key)), "unknownPermissionKeys");
|
|
208
|
-
var unknownPermissionIssues = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
209
|
-
const saved = settings.savedPermissions ?? Object.keys(settings.permissions).filter((key) => key !== CEILING_KEY && settings.permissionSources[key] !== "flag").map((key) => ({ key, at: ["profiles", settings.profile, "permissions", key] }));
|
|
210
|
-
return permissionIssues(saved, knownPermissionKeys(command, keyOf), { file: settings.configPath, tool }, renamedPermissionKeys(command)).map(publicIssue);
|
|
211
|
-
}, "unknownPermissionIssues");
|
|
212
|
-
var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
213
|
-
const issues = unknownPermissionIssues(command, settings, tool, keyOf);
|
|
214
|
-
if (issues.length > 0)
|
|
215
|
-
throw new CliError("configuration_error", issueMessage(issues), { permission: issues[0]?.key });
|
|
216
|
-
const flagged = Object.keys(settings.permissions).filter((key2) => settings.permissionSources[key2] === "flag");
|
|
217
|
-
const [key] = unknownPermissionKeys(Object.fromEntries(flagged.map((one) => [one, true])), knownPermissionKeys(command, keyOf));
|
|
218
|
-
if (key === void 0)
|
|
219
|
-
return;
|
|
220
|
-
const now = renamedPermissionKeys(command).get(key);
|
|
221
|
-
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
222
|
-
}, "refuseUnknownPermissionKeys");
|
|
223
|
-
|
|
224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
225
75
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
226
76
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
227
77
|
let warned = false;
|
|
@@ -797,15 +647,15 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
797
647
|
}
|
|
798
648
|
}, "keep");
|
|
799
649
|
|
|
800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
801
651
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
802
652
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
803
653
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
804
654
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
805
655
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
806
|
-
const kept = /* @__PURE__ */ __name(async (operation,
|
|
656
|
+
const kept = /* @__PURE__ */ __name(async (operation, what) => {
|
|
807
657
|
try {
|
|
808
|
-
await
|
|
658
|
+
await what();
|
|
809
659
|
} catch (error) {
|
|
810
660
|
warn(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
811
661
|
event: "warning",
|
|
@@ -894,7 +744,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
894
744
|
});
|
|
895
745
|
}, "flooded");
|
|
896
746
|
|
|
897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
898
748
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
899
749
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
900
750
|
const write = currentOperation();
|
|
@@ -993,7 +843,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
993
843
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
994
844
|
}, "byPart");
|
|
995
845
|
|
|
996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
997
847
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
998
848
|
let opened;
|
|
999
849
|
return {
|
|
@@ -1087,7 +937,7 @@ var settled = /* @__PURE__ */ __name(async (pending, ms) => {
|
|
|
1087
937
|
clearTimeout(timer);
|
|
1088
938
|
}
|
|
1089
939
|
}, "settled");
|
|
1090
|
-
var listened = /* @__PURE__ */ __name(({ run, operation, what
|
|
940
|
+
var listened = /* @__PURE__ */ __name(({ run, operation, what }, events, warn, waitMs) => {
|
|
1091
941
|
const abort = new AbortController();
|
|
1092
942
|
let closing = false;
|
|
1093
943
|
const ended = Promise.resolve().then(() => run(abort.signal)).catch((error) => {
|
|
@@ -1095,11 +945,11 @@ var listened = /* @__PURE__ */ __name(({ run, operation, what: what2 }, events,
|
|
|
1095
945
|
return;
|
|
1096
946
|
const warning = { event: "warning", code: "listen_failed", operation };
|
|
1097
947
|
events(warning);
|
|
1098
|
-
warn(`${
|
|
948
|
+
warn(`${what} arriving during this command are not saved: ${error instanceof Error ? error.message : String(error)}`, warning);
|
|
1099
949
|
});
|
|
1100
950
|
return {
|
|
1101
951
|
operation,
|
|
1102
|
-
what
|
|
952
|
+
what,
|
|
1103
953
|
closing: /* @__PURE__ */ __name(() => {
|
|
1104
954
|
closing = true;
|
|
1105
955
|
}, "closing"),
|
|
@@ -1190,10 +1040,10 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
|
|
|
1190
1040
|
events(warning);
|
|
1191
1041
|
warn(text, warning);
|
|
1192
1042
|
}, "warned");
|
|
1193
|
-
passives.forEach(({ operation, what
|
|
1043
|
+
passives.forEach(({ operation, what }, at) => {
|
|
1194
1044
|
if (ended[at])
|
|
1195
1045
|
return;
|
|
1196
|
-
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${
|
|
1046
|
+
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${what} at exit`);
|
|
1197
1047
|
});
|
|
1198
1048
|
await settled(/* @__PURE__ */ new Set([...pending, ...announcing]), closeWaitMs);
|
|
1199
1049
|
closing.abort();
|
|
@@ -1252,14 +1102,14 @@ var warnUnserved = /* @__PURE__ */ __name(async (messenger, profile, { env, rend
|
|
|
1252
1102
|
const newest = (await store.chats.chatStats(account)).map((one) => one.newestAt).reduce((latest, at) => at !== null && (latest === null || at > latest) ? at : latest, null);
|
|
1253
1103
|
renderer.warn(`no \`${messenger.app.command} ${profile} serve\` keeps profile "${profile}" up to date \u2014 ` + (newest === null ? "the local store holds no messages yet" : `the newest stored message is from ${newest}`));
|
|
1254
1104
|
}, "warnUnserved");
|
|
1255
|
-
var
|
|
1105
|
+
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
1256
1106
|
const words = [];
|
|
1257
1107
|
for (let at = command; at?.parent; at = at.parent)
|
|
1258
1108
|
words.unshift(at.name());
|
|
1259
1109
|
return words;
|
|
1260
1110
|
}, "pathOf");
|
|
1261
1111
|
var refuseDenied = /* @__PURE__ */ __name((command, settings) => {
|
|
1262
|
-
for (const key of readKeysForCommand(
|
|
1112
|
+
for (const key of readKeysForCommand(pathOf(command))) {
|
|
1263
1113
|
const { level, key: named } = levelFor(settings.permissions, key);
|
|
1264
1114
|
if (level !== "deny")
|
|
1265
1115
|
continue;
|
|
@@ -1282,7 +1132,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1282
1132
|
const base = baseContext(command, (flags, options) => messenger.resolveSettings(flags, { ...options, ...resolving }));
|
|
1283
1133
|
const { profile } = base.settings;
|
|
1284
1134
|
refuseDenied(command, base.settings);
|
|
1285
|
-
refuseLacking(messenger,
|
|
1135
|
+
refuseLacking(messenger, pathOf(command));
|
|
1286
1136
|
refuseUnknownPermissionKeys(command, base.settings, app.command, messenger.permissionKey);
|
|
1287
1137
|
const warn = /* @__PURE__ */ __name((text, warning) => base.renderer.warn(text, warning), "warn");
|
|
1288
1138
|
const accountFor = /* @__PURE__ */ __name(() => {
|
|
@@ -1394,17 +1244,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1394
1244
|
}, "messengerContext");
|
|
1395
1245
|
|
|
1396
1246
|
export {
|
|
1397
|
-
answerOf,
|
|
1398
|
-
terminalAsker,
|
|
1399
|
-
commandPathKey,
|
|
1400
|
-
commandPermissions,
|
|
1401
|
-
knownPermissionKeys,
|
|
1402
|
-
markRenamedPermissionKeys,
|
|
1403
|
-
renamedPermissionKeys,
|
|
1404
|
-
knownBeside,
|
|
1405
|
-
unknownPermissionKeys,
|
|
1406
|
-
unknownPermissionIssues,
|
|
1407
|
-
refuseUnknownPermissionKeys,
|
|
1408
1247
|
stored,
|
|
1409
1248
|
fill,
|
|
1410
1249
|
connectFor,
|
|
@@ -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.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
8
8
|
var CONTROL = (
|
|
9
9
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
10
10
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IBQZT2YD.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1358,7 +1358,7 @@ function unwrap(schema) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
__name(unwrap, "unwrap");
|
|
1360
1360
|
|
|
1361
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1361
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1362
1362
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1363
1363
|
var effectsSchema = strictObject({
|
|
1364
1364
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1995,7 +1995,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1997
1997
|
|
|
1998
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1998
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1999
1999
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
2000
2000
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
2001
2001
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -2037,7 +2037,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
2037
2037
|
return String(value);
|
|
2038
2038
|
}), "fill");
|
|
2039
2039
|
|
|
2040
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2040
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
2041
2041
|
var MAX_NEXT_STEPS = 2;
|
|
2042
2042
|
var COMPACT_FLAG = "--compact";
|
|
2043
2043
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2182,7 +2182,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2182
2182
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2183
2183
|
].join("\n"), "jsonlOf");
|
|
2184
2184
|
|
|
2185
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2185
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2186
2186
|
var CRASH_CODE = "internal_error";
|
|
2187
2187
|
var CRASH_REASON = "command.crashed";
|
|
2188
2188
|
var errorObjectSchema = strictObject({
|
|
@@ -2281,7 +2281,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2281
2281
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2282
2282
|
]);
|
|
2283
2283
|
|
|
2284
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2284
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2285
2285
|
var SAME_COMMAND = "*";
|
|
2286
2286
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2287
2287
|
var stepSchema = union([
|