@wirecat/drive-cli 0.66.0 → 0.68.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/contracts/wirecat.json +29 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WCQLIHUG.js → all-profiles-BU6XUFUP.js} +14 -14
- package/dist/bundle/{anthropic-5RJMB6O7.js → anthropic-ZP5B7S2Z.js} +8 -8
- package/dist/bundle/{app-server-3RGYXPKG.js → app-server-EB4DH6T7.js} +60 -56
- package/dist/bundle/{bun-L34VEKGG.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-H6IAXQXI.js → bun-sqlite-6VPR2SVC.js} +9 -9
- package/dist/bundle/{chunk-HPKE2GDP.js → chunk-2UHQVRH2.js} +18 -18
- package/dist/bundle/{chunk-2AF77WMH.js → chunk-2VYEGKQ3.js} +1 -1
- package/dist/bundle/{chunk-TAHISPDE.js → chunk-43NEDPXB.js} +39 -35
- package/dist/bundle/{chunk-OT7SQQJK.js → chunk-5G2BY4B6.js} +17 -17
- package/dist/bundle/{chunk-NYZS2LKF.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-5XLU4NN6.js → chunk-5W65QTYS.js} +4 -4
- package/dist/bundle/{chunk-YTIPTHEE.js → chunk-6HFZZ2PW.js} +2 -2
- package/dist/bundle/{chunk-GY4DAJSK.js → chunk-6QR7NKMG.js} +35 -6
- package/dist/bundle/{chunk-BIJW6AYA.js → chunk-6WAC2LOS.js} +3698 -3594
- package/dist/bundle/{chunk-VR3YKXHL.js → chunk-74NCZKRW.js} +33 -20
- package/dist/bundle/{chunk-5HVJK3ZJ.js → chunk-7A77GYCE.js} +4 -4
- package/dist/bundle/{chunk-7ZGJRVBH.js → chunk-7BXVI7XF.js} +4 -4
- package/dist/bundle/{chunk-UNTIVT47.js → chunk-7JKECODO.js} +1 -1
- package/dist/bundle/{chunk-FKKPVPZR.js → chunk-7TNQZKRD.js} +57 -57
- package/dist/bundle/{chunk-3SDJIMZB.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-QJ57PV55.js → chunk-AXYG2DDY.js} +136 -90
- package/dist/bundle/{chunk-T3ULDA7C.js → chunk-BXHFJTU5.js} +3 -3
- package/dist/bundle/{chunk-HPSHQVJU.js → chunk-CK2SQ2CE.js} +28 -22
- package/dist/bundle/{chunk-KRG5X5PH.js → chunk-CMWFYZ45.js} +2 -2
- package/dist/bundle/{chunk-3QFUDXMQ.js → chunk-CRIEW4FP.js} +3 -2
- package/dist/bundle/{chunk-V2WXTILT.js → chunk-CVAJMRRD.js} +6 -6
- package/dist/bundle/{chunk-JCHF7LZT.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-FHBTQPA3.js → chunk-DIZBJLPM.js} +41 -37
- package/dist/bundle/{chunk-VUUPFDRU.js → chunk-DU23ET2O.js} +113 -39
- package/dist/bundle/{chunk-IRNDYNQX.js → chunk-DYLYH7VE.js} +4 -4
- package/dist/bundle/{chunk-IIHZTV6V.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-AP4MX247.js → chunk-EEE4H2PA.js} +12 -12
- package/dist/bundle/{chunk-UAKX6DP4.js → chunk-EOC7RHJ2.js} +5 -5
- package/dist/bundle/{chunk-HHRJPLFO.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-KOY5HUBY.js → chunk-F7KAMSXA.js} +4 -4
- package/dist/bundle/{chunk-D4MIMH2N.js → chunk-FAMXUI2X.js} +5 -5
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-XVZNFA2P.js → chunk-GTLXBAJV.js} +309 -278
- package/dist/bundle/{chunk-JQXK3M5M.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-NK4GVFJH.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-MZWXTJ4O.js → chunk-IVOG6T6P.js} +3 -3
- package/dist/bundle/{chunk-PKM55ZRR.js → chunk-J5LXL435.js} +20 -20
- package/dist/bundle/{chunk-G4TNKBDX.js → chunk-JMZQBRRZ.js} +7 -7
- package/dist/bundle/{chunk-VQKNKJYL.js → chunk-JRFKCYMW.js} +6 -6
- package/dist/bundle/{chunk-XLGDNI4S.js → chunk-JZ3MT7IE.js} +5 -40
- package/dist/bundle/{chunk-UG3GHFGY.js → chunk-KPKIHJIT.js} +6 -8
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-5PLINHEY.js → chunk-MLSXHTUB.js} +153 -149
- package/dist/bundle/{chunk-Y5U4HIZS.js → chunk-MOKEB656.js} +2 -2
- package/dist/bundle/{chunk-6X3KUFRQ.js → chunk-MW46BLWH.js} +20 -20
- package/dist/bundle/{chunk-I5R5CMQR.js → chunk-MWCPKUU4.js} +5 -5
- package/dist/bundle/{chunk-6UJCCOZC.js → chunk-NV75QPML.js} +4 -4
- package/dist/bundle/{chunk-OZOQLAWK.js → chunk-O7T3WGCV.js} +6 -6
- package/dist/bundle/{chunk-H7XL6WTW.js → chunk-PGPHEC2X.js} +2 -2
- package/dist/bundle/{chunk-UQPW42HF.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-ALE67WRR.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-HQBLJLYH.js → chunk-PWIEOATY.js} +8 -8
- package/dist/bundle/{chunk-WYTYHUFH.js → chunk-Q6BD6RUH.js} +43 -43
- package/dist/bundle/{chunk-BQXSE645.js → chunk-QKY24RWV.js} +12 -12
- package/dist/bundle/{chunk-2S3E2HVV.js → chunk-QRSPFCRY.js} +17 -17
- package/dist/bundle/{chunk-3NYH756U.js → chunk-QTRYJZL7.js} +11 -6
- package/dist/bundle/{chunk-QF7VL4C3.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-ULXEW6FT.js → chunk-QWGEOQHA.js} +1 -1
- package/dist/bundle/{chunk-JLCR24UM.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-M7543RUJ.js → chunk-RT5NT62B.js} +220 -15
- package/dist/bundle/{chunk-SZ6JFOL4.js → chunk-SOS4U2RF.js} +62 -41
- package/dist/bundle/{chunk-PUMDOCAF.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-COGWKO2T.js → chunk-U52QE4QV.js} +3 -3
- package/dist/bundle/{chunk-LVAPSAHF.js → chunk-UFPRP7MG.js} +8 -8
- package/dist/bundle/{chunk-5VDVGDOC.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-7LT2G5BC.js → chunk-ULNN3LCY.js} +29 -27
- package/dist/bundle/{chunk-GVA3KTCD.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-4UHBJSMI.js → chunk-UUQJVKPB.js} +516 -458
- package/dist/bundle/{chunk-O53WLYX3.js → chunk-UYBLNGZ2.js} +2 -2
- package/dist/bundle/{chunk-D7KOAPG6.js → chunk-WCNTDETD.js} +2 -2
- package/dist/bundle/{chunk-JHMEETXI.js → chunk-WGX4DZPW.js} +2 -2
- package/dist/bundle/{chunk-P7HQFII6.js → chunk-WUFZGPXX.js} +7 -7
- package/dist/bundle/{chunk-5K54RZBK.js → chunk-Y2QVNVHK.js} +1 -1
- package/dist/bundle/{chunk-7EP4AU6A.js → chunk-YUGTJBV3.js} +3 -3
- package/dist/bundle/{chunk-QSELSDWE.js → chunk-YYIWPH53.js} +13 -13
- package/dist/bundle/{chunk-E2F2XIX6.js → chunk-Z5BMYI2V.js} +8 -8
- package/dist/bundle/{chunk-TYLEICTX.js → chunk-ZAIE3G5I.js} +3 -3
- package/dist/bundle/{chunk-SOOU5WO6.js → chunk-ZSVMZH5O.js} +2 -2
- package/dist/bundle/{chunk-FA2TNA5X.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{cli-KW6QQVS5.js → cli-L7P36YUH.js} +61 -61
- package/dist/bundle/command-contract-EYFGMKIG.js +41 -0
- package/dist/bundle/{command-server-entry-OC4E4DED.js → command-server-entry-H3VGPOLJ.js} +31 -31
- package/dist/bundle/{decode-AH5ZLLDK.js → decode-JEU6JWCV.js} +8 -8
- package/dist/bundle/{dispatch-CDWZZ54Q.js → dispatch-WBEOHZDV.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-VC7MTXWY.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-EPSQY6QG.js → embed-WUKOASQG.js} +9 -9
- package/dist/bundle/{embedder-TK4U4TJR.js → embedder-UBRAXRDZ.js} +12 -12
- package/dist/bundle/entry-C4NUQFTF.js +25 -0
- package/dist/bundle/{failure-WSVZOPFE.js → failure-X6PSLVSO.js} +4 -4
- package/dist/bundle/first-run-PKHBS7B4.js +30 -0
- package/dist/bundle/first-screen-QOVOM4BF.js +39 -0
- package/dist/bundle/google-XXHSMTVK.js +45 -0
- package/dist/bundle/{google-api-AV4X2JH3.js → google-api-SQQ4BSNR.js} +63 -63
- package/dist/bundle/grants-2U4JVT6O.js +111 -0
- package/dist/bundle/{identity-CGHHF7AK.js → identity-SRL6RSU2.js} +6 -6
- package/dist/bundle/{instructions-24PHDBBE.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{login-XHFESAFM.js → login-N243GGEE.js} +69 -69
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-GIDULTV5.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-LINBOAWK.js → node-sqlite-SZQCCMV2.js} +10 -10
- package/dist/bundle/oauth-CMAFXX6A.js +22 -0
- package/dist/bundle/{open-RYFKPNCJ.js → open-RVTPKDA3.js} +8 -8
- package/dist/bundle/{openai-Q7YYUHJF.js → openai-6NN63BMH.js} +19 -19
- package/dist/bundle/{process-VPIZTIJR.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-IUXFRBZA.js → program-B4QBJYB5.js} +187 -228
- package/dist/bundle/{prompt-LF4KX3XL.js → prompt-HGP2DSRW.js} +8 -8
- package/dist/bundle/{reasons-JPYOU5GV.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-KEWTJXFH.js → recognize-26SHB7HI.js} +7 -7
- package/dist/bundle/{remote-HGGLB76S.js → remote-Z4PWHZ5N.js} +13 -13
- package/dist/bundle/{rerank-TDUKETFT.js → rerank-QHJZJK3Q.js} +10 -10
- package/dist/bundle/{serve-XFYMKW5W.js → serve-MYJW5IEM.js} +12 -12
- package/dist/bundle/server-HBZPIHDX.js +74 -0
- package/dist/bundle/{server-PXIPSGFP.js → server-XFW3V7CR.js} +49 -47
- package/dist/bundle/{services-2BOCGMJU.js → services-IQG2RVTO.js} +36 -36
- package/dist/bundle/{sqlite-runtime-R7M5XUMW.js → sqlite-runtime-X4GB5PBV.js} +9 -9
- package/dist/bundle/{start-YRLT4MQZ.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-NZ7WRJWH.js → state-ATQK2X3W.js} +9 -9
- package/dist/bundle/{store-ICDGPSEN.js → store-MEHEUOJH.js} +19 -19
- package/dist/bundle/{store-7LCVDO7G.js → store-QUBUPK6F.js} +21 -21
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
- package/dist/bundle/tokens-A2GP4F34.js +111 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/search.js +4 -4
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +2 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/transcripts.d.ts +4 -0
- package/dist/commands/transcripts.d.ts.map +1 -0
- package/dist/commands/transcripts.js +42 -0
- package/dist/commands/transcripts.js.map +1 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +14 -1
- package/dist/config.js.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +31 -28
- package/dist/google.js.map +1 -1
- package/dist/list-queries.d.ts +10 -0
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +12 -1
- package/dist/list-queries.js.map +1 -1
- package/dist/model.d.ts +4 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -2
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -2
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +2 -0
- package/dist/state.js.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -1
- package/dist/sync.js.map +1 -1
- package/dist/transcripts.d.ts +21 -0
- package/dist/transcripts.d.ts.map +1 -0
- package/dist/transcripts.js +48 -0
- package/dist/transcripts.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-CE543JBN.js +0 -41
- package/dist/bundle/entry-3VN23M7M.js +0 -25
- package/dist/bundle/first-run-7ZYJ7EB3.js +0 -30
- package/dist/bundle/first-screen-CZDH7QY3.js +0 -39
- package/dist/bundle/google-OBZMWA7J.js +0 -45
- package/dist/bundle/grants-WTRLN4ZI.js +0 -111
- package/dist/bundle/oauth-JHUX3KE3.js +0 -22
- package/dist/bundle/server-BDEV3CZJ.js +0 -74
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +0 -65
- package/dist/bundle/tokens-FGTBE7VW.js +0 -111
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -8,45 +8,45 @@ import {
|
|
|
8
8
|
range,
|
|
9
9
|
systemFor,
|
|
10
10
|
validateImages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F7KAMSXA.js";
|
|
12
12
|
import {
|
|
13
13
|
refuseOffComputer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O7T3WGCV.js";
|
|
15
15
|
import {
|
|
16
16
|
Unzip,
|
|
17
17
|
UnzipInflate
|
|
18
18
|
} from "./chunk-5DPV7X27.js";
|
|
19
19
|
import {
|
|
20
20
|
envName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MOKEB656.js";
|
|
22
22
|
import {
|
|
23
23
|
PLAIN_HTTP_REFUSED,
|
|
24
24
|
endpoint,
|
|
25
25
|
endpointFetch,
|
|
26
26
|
modelAddressAllowed,
|
|
27
27
|
onThisComputer
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6QR7NKMG.js";
|
|
29
29
|
import {
|
|
30
30
|
MAX_FILE_BYTES,
|
|
31
31
|
MAX_TEXT_CHARS,
|
|
32
32
|
attachmentMaxBytes
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BXHFJTU5.js";
|
|
34
34
|
import {
|
|
35
35
|
isCliFailure
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
37
37
|
import {
|
|
38
38
|
readSharedSection,
|
|
39
39
|
sharedConfigPath,
|
|
40
40
|
writeSharedSection
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PWIEOATY.js";
|
|
42
42
|
import {
|
|
43
43
|
storePath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CRIEW4FP.js";
|
|
45
45
|
import {
|
|
46
46
|
Credentials,
|
|
47
47
|
pathsAreOverridden,
|
|
48
48
|
resolvePaths
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-MW46BLWH.js";
|
|
50
50
|
import {
|
|
51
51
|
importFrom,
|
|
52
52
|
resolveFrom
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
strictObject,
|
|
65
65
|
string,
|
|
66
66
|
union
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JRFKCYMW.js";
|
|
68
68
|
import {
|
|
69
69
|
CliError,
|
|
70
70
|
isCliError
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-EA2OB75T.js";
|
|
72
72
|
import {
|
|
73
73
|
__commonJS,
|
|
74
74
|
__name,
|
|
@@ -16684,20 +16684,20 @@ var require_lib3 = __commonJS({
|
|
|
16684
16684
|
}
|
|
16685
16685
|
});
|
|
16686
16686
|
|
|
16687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
16688
16688
|
import { extname as extname2 } from "node:path";
|
|
16689
16689
|
|
|
16690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
16691
16691
|
import { readFileSync } from "node:fs";
|
|
16692
16692
|
import { dirname, extname, join } from "node:path";
|
|
16693
16693
|
import { fileURLToPath } from "node:url";
|
|
16694
16694
|
|
|
16695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
16696
16696
|
import { setImmediate as tick } from "node:timers/promises";
|
|
16697
16697
|
import { crc32 } from "node:zlib";
|
|
16698
16698
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
16699
16699
|
|
|
16700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
16701
16701
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
16702
16702
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
16703
16703
|
var SAMPLE = 65536;
|
|
@@ -16799,7 +16799,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes) => {
|
|
|
16799
16799
|
return result.text;
|
|
16800
16800
|
}, "decodeXml");
|
|
16801
16801
|
|
|
16802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
16803
16803
|
var MAX_PART = 10 * 1024 * 1024;
|
|
16804
16804
|
var MAX_ENTRIES = 1e3;
|
|
16805
16805
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -17014,7 +17014,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
17014
17014
|
return found;
|
|
17015
17015
|
}, "elements");
|
|
17016
17016
|
|
|
17017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
17018
17018
|
var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
|
|
17019
17019
|
var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
|
|
17020
17020
|
var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
|
|
@@ -17072,7 +17072,7 @@ var derived = /* @__PURE__ */ __name((bytes, extractor, read) => {
|
|
|
17072
17072
|
}
|
|
17073
17073
|
}, "derived");
|
|
17074
17074
|
|
|
17075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
17076
17076
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
17077
17077
|
var image = {
|
|
17078
17078
|
id: "image",
|
|
@@ -17081,7 +17081,7 @@ var image = {
|
|
|
17081
17081
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
17082
17082
|
};
|
|
17083
17083
|
|
|
17084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
17085
17085
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
17086
17086
|
var doc = {
|
|
17087
17087
|
id: "doc",
|
|
@@ -17093,7 +17093,7 @@ var doc = {
|
|
|
17093
17093
|
}), "read")
|
|
17094
17094
|
};
|
|
17095
17095
|
|
|
17096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
17097
17097
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
17098
17098
|
var docx = {
|
|
17099
17099
|
id: "docx",
|
|
@@ -17106,7 +17106,7 @@ var docx = {
|
|
|
17106
17106
|
}), "read")
|
|
17107
17107
|
};
|
|
17108
17108
|
|
|
17109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17110
17110
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
17111
17111
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
17112
17112
|
"fonttbl",
|
|
@@ -17282,7 +17282,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
17282
17282
|
}, "htmlText");
|
|
17283
17283
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
17284
17284
|
|
|
17285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
17286
17286
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
17287
17287
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
17288
17288
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -17338,7 +17338,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
|
|
|
17338
17338
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
|
|
17339
17339
|
}, "markdownSections");
|
|
17340
17340
|
|
|
17341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
17342
17342
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
17343
17343
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
17344
17344
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -17409,10 +17409,10 @@ var html = {
|
|
|
17409
17409
|
}, "read")
|
|
17410
17410
|
};
|
|
17411
17411
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17413
17413
|
import { posix } from "node:path";
|
|
17414
17414
|
|
|
17415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
17416
17416
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
17417
17417
|
let name = "";
|
|
17418
17418
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -17467,7 +17467,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
17467
17467
|
return { text: parts.join("").trim(), truncated: false };
|
|
17468
17468
|
}, "sheetText");
|
|
17469
17469
|
|
|
17470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17471
17471
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
17472
17472
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
17473
17473
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -17882,7 +17882,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
|
|
|
17882
17882
|
}
|
|
17883
17883
|
}, "readDocument");
|
|
17884
17884
|
|
|
17885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
17886
17886
|
var office = {
|
|
17887
17887
|
id: "office",
|
|
17888
17888
|
version: documentExtractor("odt"),
|
|
@@ -17893,7 +17893,7 @@ var office = {
|
|
|
17893
17893
|
}, "read")
|
|
17894
17894
|
};
|
|
17895
17895
|
|
|
17896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
17897
17897
|
var pdf = {
|
|
17898
17898
|
id: "pdf",
|
|
17899
17899
|
version: "unpdf",
|
|
@@ -17960,7 +17960,7 @@ var pdf = {
|
|
|
17960
17960
|
}), "read")
|
|
17961
17961
|
};
|
|
17962
17962
|
|
|
17963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
17964
17964
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
17965
17965
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
17966
17966
|
var readPlain = /* @__PURE__ */ __name((bytes) => {
|
|
@@ -17980,7 +17980,7 @@ var plain = {
|
|
|
17980
17980
|
read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
|
|
17981
17981
|
};
|
|
17982
17982
|
|
|
17983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
17984
17984
|
var rtf = {
|
|
17985
17985
|
id: "rtf",
|
|
17986
17986
|
version: "v1",
|
|
@@ -17988,10 +17988,10 @@ var rtf = {
|
|
|
17988
17988
|
read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
|
|
17989
17989
|
};
|
|
17990
17990
|
|
|
17991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
17992
17992
|
import { basename } from "node:path";
|
|
17993
17993
|
|
|
17994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
17995
17995
|
var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
|
|
17996
17996
|
const cells = [];
|
|
17997
17997
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -18029,7 +18029,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
|
|
|
18029
18029
|
return { cells, truncated };
|
|
18030
18030
|
}, "delimitedSpans");
|
|
18031
18031
|
|
|
18032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
18033
18033
|
var DELIMITED = {
|
|
18034
18034
|
".csv": ",",
|
|
18035
18035
|
".tsv": " ",
|
|
@@ -18068,7 +18068,7 @@ var sheets = {
|
|
|
18068
18068
|
}, "read")
|
|
18069
18069
|
};
|
|
18070
18070
|
|
|
18071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
18072
18072
|
var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
|
|
18073
18073
|
var HEAD_BYTES = 1024;
|
|
18074
18074
|
var readers = [...BUILT_INS];
|
|
@@ -18078,7 +18078,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
|
|
|
18078
18078
|
return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
|
|
18079
18079
|
}, "readWithRegistry");
|
|
18080
18080
|
|
|
18081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
18082
18082
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
18083
18083
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
|
|
18084
18084
|
var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
|
|
@@ -18116,7 +18116,7 @@ var engineStates = /* @__PURE__ */ __name((resolve = (name) => resolveFrom(new U
|
|
|
18116
18116
|
}
|
|
18117
18117
|
})), "engineStates");
|
|
18118
18118
|
|
|
18119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18120
18120
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18121
18121
|
const controller = new AbortController();
|
|
18122
18122
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18132,7 +18132,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
18132
18132
|
}
|
|
18133
18133
|
}, "withTimeLimit");
|
|
18134
18134
|
|
|
18135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
18136
18136
|
var options = strictObject({
|
|
18137
18137
|
temperature: range(0, 2),
|
|
18138
18138
|
top_p: range(0, 1),
|
|
@@ -18199,7 +18199,7 @@ var openai = {
|
|
|
18199
18199
|
}), "complete")
|
|
18200
18200
|
};
|
|
18201
18201
|
|
|
18202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
18203
18203
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
18204
18204
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
18205
18205
|
if (deps.signal?.aborted)
|
|
@@ -18214,7 +18214,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18214
18214
|
if (!adapter && target2.provider === "openai")
|
|
18215
18215
|
adapter = openai;
|
|
18216
18216
|
if (!adapter && target2.provider === "anthropic")
|
|
18217
|
-
adapter = (await import("./anthropic-
|
|
18217
|
+
adapter = (await import("./anthropic-ZP5B7S2Z.js")).anthropic;
|
|
18218
18218
|
if (!adapter)
|
|
18219
18219
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
18220
18220
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -18274,7 +18274,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18274
18274
|
}, "complete")
|
|
18275
18275
|
}), "modelGateway");
|
|
18276
18276
|
|
|
18277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
18278
18278
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
18279
18279
|
const host = new URL(baseUrl).host;
|
|
18280
18280
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -18307,7 +18307,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
18307
18307
|
};
|
|
18308
18308
|
}, "embeddingKeys");
|
|
18309
18309
|
|
|
18310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18311
18311
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18312
18312
|
...error,
|
|
18313
18313
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
@@ -19354,7 +19354,7 @@ function imageSize(input) {
|
|
|
19354
19354
|
}
|
|
19355
19355
|
__name(imageSize, "imageSize");
|
|
19356
19356
|
|
|
19357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
19358
19358
|
var MAX_PAGES = 20;
|
|
19359
19359
|
var MAX_PIXELS = 2e7;
|
|
19360
19360
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -19514,7 +19514,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes, pipeline, load, signal) => {
|
|
|
19514
19514
|
}
|
|
19515
19515
|
}, "ocrPdf");
|
|
19516
19516
|
|
|
19517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
19518
19518
|
import { spawn } from "node:child_process";
|
|
19519
19519
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "node:fs";
|
|
19520
19520
|
import { tmpdir } from "node:os";
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D4MVEOU2.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KPKIHJIT.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UFPRP7MG.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PWIEOATY.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M4OP5ASJ.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CRIEW4FP.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-MEHEUOJH.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-RVTPKDA3.js"),
|
|
117
|
+
import("./store-maintenance-command-33ULVDWY.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-QOVOM4BF.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-HGP2DSRW.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -23,28 +23,28 @@ import {
|
|
|
23
23
|
tagMemberIds,
|
|
24
24
|
thingOf,
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6WAC2LOS.js";
|
|
27
27
|
import {
|
|
28
28
|
fold
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UFPRP7MG.js";
|
|
30
30
|
import {
|
|
31
31
|
ADDED_PROVIDER,
|
|
32
32
|
filesAccountSql,
|
|
33
33
|
folderProviderOf,
|
|
34
34
|
folderProviderSql,
|
|
35
35
|
isDocumentAccountProvider
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-AXYG2DDY.js";
|
|
37
37
|
import {
|
|
38
38
|
damagedFile
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
40
40
|
import {
|
|
41
41
|
CliError
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EA2OB75T.js";
|
|
43
43
|
import {
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
48
48
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
49
49
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
50
50
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
147
147
|
};
|
|
148
148
|
}, "storeDamageReport");
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
151
151
|
import { realpathSync, statSync } from "node:fs";
|
|
152
152
|
import { resolve } from "node:path";
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
155
155
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
156
156
|
const creatable = /* @__PURE__ */ new Set();
|
|
157
157
|
let people = 0, identities = 0;
|
|
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
214
214
|
}
|
|
215
215
|
}, "copyPeople");
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
218
218
|
import { createHash } from "node:crypto";
|
|
219
219
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
222
222
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
223
223
|
const colon = collection.indexOf(":");
|
|
224
224
|
const provider = collection.slice(0, colon);
|
|
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
262
262
|
};
|
|
263
263
|
}, "currentCollection");
|
|
264
264
|
|
|
265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
266
266
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
267
267
|
const mappings = /* @__PURE__ */ new Map();
|
|
268
268
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
429
429
|
};
|
|
430
430
|
}, "planTransfer");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
433
433
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
434
434
|
var MAX_ENTITIES = 1e3;
|
|
435
435
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
591
591
|
};
|
|
592
592
|
}), "transferSnapshot");
|
|
593
593
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
595
595
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
596
596
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
597
597
|
return provider ?? null;
|
|
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
763
763
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
764
764
|
}, "remapEntity");
|
|
765
765
|
|
|
766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
767
767
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
768
768
|
for (const value of [options.source, options.destination, options.collection])
|
|
769
769
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
|
|
|
865
865
|
}
|
|
866
866
|
}, "applyWith");
|
|
867
867
|
|
|
868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
869
869
|
import { existsSync, statSync as statSync2 } from "node:fs";
|
|
870
870
|
var JSON_COLUMNS = {
|
|
871
871
|
accounts: ["settings"],
|
|
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
1007
1007
|
}
|
|
1008
1008
|
}, "storeHealth");
|
|
1009
1009
|
|
|
1010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
1011
1011
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
1012
1012
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1013
1013
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -1033,7 +1033,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
1033
1033
|
});
|
|
1034
1034
|
}, "previewProjectAnnotationSnapshot");
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
1037
1037
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
1038
1038
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1039
1039
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
commandPathOf,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EOC7RHJ2.js";
|
|
10
10
|
import {
|
|
11
11
|
Command,
|
|
12
12
|
Help,
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
environmentOf,
|
|
18
18
|
metaOf,
|
|
19
19
|
takesProfile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MLSXHTUB.js";
|
|
21
21
|
import {
|
|
22
22
|
writes
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JRFKCYMW.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EA2OB75T.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
32
32
|
var ARGUMENT_KINDS = {
|
|
33
33
|
chat: "chat",
|
|
34
34
|
chats: "chat",
|
|
@@ -250,7 +250,7 @@ var exampleReport = /* @__PURE__ */ __name((program) => {
|
|
|
250
250
|
return { written, generated, text };
|
|
251
251
|
}, "exampleReport");
|
|
252
252
|
|
|
253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
254
254
|
var WIRECAT_TOOLS = [
|
|
255
255
|
{
|
|
256
256
|
command: "tg",
|
|
@@ -297,6 +297,11 @@ var WIRECAT_TOOLS = [
|
|
|
297
297
|
command: "b24",
|
|
298
298
|
package: "@wirecat/bitrix24-cli",
|
|
299
299
|
does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
command: "pbx",
|
|
303
|
+
package: "@wirecat/asterisk-cli",
|
|
304
|
+
does: "Asterisk PBX calls and recordings, searchable with your other WireCat data"
|
|
300
305
|
}
|
|
301
306
|
];
|
|
302
307
|
var WIDTH = 100;
|
|
@@ -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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|