@wirecat/drive-cli 0.72.0 → 0.73.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/README.md +4 -0
- package/contracts/wirecat.json +82 -18
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/agent-ZOHMLVWI.js +46 -0
- package/dist/bundle/{all-profiles-GXGDVNQJ.js → all-profiles-HGQGKCKQ.js} +14 -14
- package/dist/bundle/{anthropic-H5C4GQHC.js → anthropic-2L5DN3HF.js} +8 -8
- package/dist/bundle/{app-server-EQ3UK4C7.js → app-server-TRSOKYYF.js} +79 -79
- package/dist/bundle/{bun-DTJVSRY3.js → bun-AFA5HULK.js} +2 -2
- package/dist/bundle/{bun-sqlite-JIFY7MAE.js → bun-sqlite-5MW2BWV4.js} +9 -9
- package/dist/bundle/{chunk-FRCJHGZM.js → chunk-2G24DYSZ.js} +2 -2
- package/dist/bundle/{chunk-FUDUXIVG.js → chunk-2MCMUZCE.js} +1 -1
- package/dist/bundle/{chunk-COJTCEZP.js → chunk-2NAMKBBV.js} +31 -23
- package/dist/bundle/{chunk-CIFE4KPX.js → chunk-2WAGRBQT.js} +50 -47
- package/dist/bundle/{chunk-ZKWT6HXT.js → chunk-33RQ3YVC.js} +1 -1
- package/dist/bundle/{chunk-E3VWZC3K.js → chunk-36256UTA.js} +12 -12
- package/dist/bundle/{chunk-KP2XMCNT.js → chunk-4FTGSEBR.js} +6 -6
- package/dist/bundle/{chunk-MUFF2YTH.js → chunk-4KOMZRN6.js} +2 -2
- package/dist/bundle/{chunk-J4NUHSM7.js → chunk-4LLO4USI.js} +1 -1
- package/dist/bundle/{chunk-CWPYDT73.js → chunk-4VTAPSZE.js} +4 -4
- package/dist/bundle/{chunk-OLDQLEPA.js → chunk-4ZP3IK5I.js} +6 -6
- package/dist/bundle/{chunk-M2ZWYVWO.js → chunk-5CYWWYIG.js} +6 -1
- package/dist/bundle/{chunk-AA4LKC6W.js → chunk-5EZCDENA.js} +78 -35
- package/dist/bundle/{chunk-GWCDOYSC.js → chunk-5R2VPXVT.js} +1 -1
- package/dist/bundle/{chunk-KF3ZBQJV.js → chunk-5SQHQRNO.js} +4 -4
- package/dist/bundle/{chunk-77OBW43F.js → chunk-6AVHD6WB.js} +6 -6
- package/dist/bundle/{chunk-K652FYCO.js → chunk-6EC3LAVC.js} +2 -2
- package/dist/bundle/{chunk-ST35FIUG.js → chunk-6HZKX65K.js} +3 -3
- package/dist/bundle/{chunk-VAR3MJU6.js → chunk-6TGZCOYR.js} +3 -3
- package/dist/bundle/{chunk-D4JNCXS7.js → chunk-6V5556NF.js} +7 -7
- package/dist/bundle/{chunk-BM6V7456.js → chunk-6WZLP4CI.js} +5 -5
- package/dist/bundle/{chunk-ML2QIWX2.js → chunk-77SAHCDZ.js} +4 -4
- package/dist/bundle/{chunk-NNGA4QDR.js → chunk-AGATODLO.js} +12 -12
- package/dist/bundle/{chunk-OLCU7Q2B.js → chunk-B6YBN6VK.js} +1 -1
- package/dist/bundle/{chunk-TTPWKTVR.js → chunk-BAG4KIN5.js} +1 -1
- package/dist/bundle/{chunk-U7VEJ3CW.js → chunk-BAHWXDWN.js} +29 -190
- package/dist/bundle/{chunk-4HPXWYTE.js → chunk-BFESDJPU.js} +1 -1
- package/dist/bundle/{chunk-QSLOACDT.js → chunk-BOHC2GPY.js} +36 -36
- package/dist/bundle/{chunk-BO6EDBYJ.js → chunk-BY5D2LXE.js} +3 -3
- package/dist/bundle/{chunk-FBEZSA76.js → chunk-CMB6URN7.js} +5 -5
- package/dist/bundle/{chunk-4JS32SRX.js → chunk-CY2MNN3I.js} +5 -5
- package/dist/bundle/{chunk-PRYMT3OG.js → chunk-DAYHLKTM.js} +2 -2
- package/dist/bundle/{chunk-YWOLQEDV.js → chunk-DOUFW7RK.js} +3 -3
- package/dist/bundle/{chunk-CKB4XZZJ.js → chunk-DZG5SAO6.js} +14 -14
- package/dist/bundle/{chunk-FTG5QBSD.js → chunk-E3UFICXC.js} +35 -31
- package/dist/bundle/{chunk-QDUIVMEW.js → chunk-EBGI3Z6U.js} +1 -1
- package/dist/bundle/{chunk-ZJKXSMXK.js → chunk-EQGVNLUN.js} +42 -42
- package/dist/bundle/{chunk-WMG3H2VK.js → chunk-F5XMZDR5.js} +2 -2
- package/dist/bundle/{chunk-6ZW2ZJYC.js → chunk-FITKBN46.js} +2 -2
- package/dist/bundle/{chunk-ZFDSJ5YJ.js → chunk-FRQBKAPV.js} +6 -6
- package/dist/bundle/{chunk-DHMNCOQI.js → chunk-GW7L2G4I.js} +57 -57
- package/dist/bundle/{chunk-FIZOPJYY.js → chunk-HGXFOXSA.js} +1 -1
- package/dist/bundle/{chunk-N24YSLED.js → chunk-HYJEBBFK.js} +1892 -588
- package/dist/bundle/{chunk-SQHDSIFL.js → chunk-I2KGZ6XQ.js} +6 -6
- package/dist/bundle/{chunk-XZ7MO6EU.js → chunk-I3DZHZHM.js} +7 -7
- package/dist/bundle/{chunk-ZFUZEFU6.js → chunk-I3MLLVPE.js} +3 -3
- package/dist/bundle/{chunk-5BNMWSU2.js → chunk-IDJKYHVG.js} +2246 -2047
- package/dist/bundle/{chunk-SPNPJ3FZ.js → chunk-IEGU6GG7.js} +1 -1
- package/dist/bundle/{chunk-ZPUY3COZ.js → chunk-IKW3PRNG.js} +13 -13
- package/dist/bundle/{chunk-R57QUYBG.js → chunk-J3I4WOBI.js} +3 -3
- package/dist/bundle/{chunk-DCPWZIOV.js → chunk-JA37PJL4.js} +11 -11
- package/dist/bundle/{chunk-OAONP6KI.js → chunk-JJGKHGBX.js} +8 -8
- package/dist/bundle/{chunk-UIQ35CA5.js → chunk-JWNM6FCC.js} +1 -1
- package/dist/bundle/{chunk-R32DHS6J.js → chunk-JZYNXTMH.js} +51 -15
- package/dist/bundle/{chunk-QKBPCX7Y.js → chunk-K34B37AP.js} +1 -1
- package/dist/bundle/{chunk-HAGXTGJC.js → chunk-KERX3BQL.js} +4 -4
- package/dist/bundle/{chunk-QUZFDU4K.js → chunk-KV232TIK.js} +4 -4
- package/dist/bundle/{chunk-RSPBVKOC.js → chunk-KXETGAU4.js} +8 -8
- package/dist/bundle/{chunk-VPQSI5IU.js → chunk-L5ZZ6RLL.js} +2 -2
- package/dist/bundle/{chunk-OPIPG6AP.js → chunk-LGRZNEMA.js} +8 -8
- package/dist/bundle/{chunk-X5BGAZC5.js → chunk-M3VJTLFM.js} +6 -6
- package/dist/bundle/{chunk-5H747A76.js → chunk-MTH76YSQ.js} +500 -1428
- package/dist/bundle/{chunk-75DAHQOV.js → chunk-NA4HEM4Z.js} +3 -3
- package/dist/bundle/{chunk-5KWCO56H.js → chunk-OCZWU2H4.js} +2 -2
- package/dist/bundle/{chunk-GUMKKRE6.js → chunk-OHKAL25R.js} +63 -63
- package/dist/bundle/{chunk-O7CZZ36M.js → chunk-P2FOF6RR.js} +3 -3
- package/dist/bundle/{chunk-OHR6IZNH.js → chunk-PMYTDTT4.js} +8 -1
- package/dist/bundle/{chunk-XQZEMRCU.js → chunk-PQSCABAC.js} +10 -10
- package/dist/bundle/{chunk-GU6ICH53.js → chunk-PSFACXOC.js} +2 -2
- package/dist/bundle/{chunk-NBMGDRP4.js → chunk-PSWVHX53.js} +1 -1
- package/dist/bundle/{chunk-KFZCHJRT.js → chunk-Q2L3W7PS.js} +2 -2
- package/dist/bundle/{chunk-VQPT3Y7W.js → chunk-QMDVQ4AN.js} +12 -12
- package/dist/bundle/{chunk-GXGSC622.js → chunk-QZXFWDTX.js} +6 -6
- package/dist/bundle/{chunk-R64OSDOD.js → chunk-R2GLRHNK.js} +5 -5
- package/dist/bundle/{chunk-FNAYSZWK.js → chunk-R6K36FZ7.js} +23 -23
- package/dist/bundle/{chunk-7EFM6AW3.js → chunk-RHS3OBO5.js} +4 -4
- package/dist/bundle/{chunk-UJY26HW4.js → chunk-RNLLWYPV.js} +1 -1
- package/dist/bundle/{chunk-6CCO3JCM.js → chunk-RX6D64YA.js} +20 -20
- package/dist/bundle/{chunk-FBQJN74J.js → chunk-S7EQIYNF.js} +1 -1
- package/dist/bundle/{chunk-DWRUOLBF.js → chunk-SIC2CGYE.js} +4 -4
- package/dist/bundle/{chunk-55FH6IEL.js → chunk-SNY4WYPH.js} +5 -5
- package/dist/bundle/{chunk-A3S7QM5L.js → chunk-SQODI3DH.js} +2 -2
- package/dist/bundle/{chunk-EVG3AA5M.js → chunk-SRRNRQSQ.js} +2 -2
- package/dist/bundle/{chunk-IVGVVSPW.js → chunk-SYQKLEP3.js} +4 -4
- package/dist/bundle/{chunk-5U3NCE5R.js → chunk-TAQUEQ5B.js} +8 -8
- package/dist/bundle/{chunk-GIEZYBRC.js → chunk-TPIGO4JJ.js} +1 -1
- package/dist/bundle/{chunk-DOQMH4DC.js → chunk-U5SB2WDG.js} +12 -10
- package/dist/bundle/{chunk-KWDZ3KVH.js → chunk-UDP7EQNY.js} +4 -4
- package/dist/bundle/{chunk-4IUNYYYL.js → chunk-UZAOKKGK.js} +753 -494
- package/dist/bundle/{chunk-K6ZWNTXY.js → chunk-V5GIK53Z.js} +17 -17
- package/dist/bundle/{chunk-2Q325BBD.js → chunk-VENGEFU4.js} +8 -8
- package/dist/bundle/{chunk-N4GTCPML.js → chunk-VHPNTMJJ.js} +1 -1
- package/dist/bundle/{chunk-UWG3PRY7.js → chunk-VM3IERRK.js} +7 -7
- package/dist/bundle/{chunk-KLPFDFLI.js → chunk-VQ7K2EAW.js} +9 -9
- package/dist/bundle/{chunk-3FRQ6V4T.js → chunk-VQC4GYIQ.js} +3 -3
- package/dist/bundle/{chunk-XC6TRWLZ.js → chunk-VZTDELYM.js} +3 -3
- package/dist/bundle/{chunk-ASTKHB6B.js → chunk-W3OKRT6L.js} +179 -135
- package/dist/bundle/{chunk-KX4C32WD.js → chunk-WB46DJSK.js} +2 -2
- package/dist/bundle/{chunk-BPA3R4KN.js → chunk-WITO2RZO.js} +1 -1
- package/dist/bundle/{chunk-OESP4PHB.js → chunk-WJ7E6TPR.js} +17 -17
- package/dist/bundle/{chunk-YAIOEPKU.js → chunk-WUVNBZWC.js} +191 -160
- package/dist/bundle/{chunk-47L262VI.js → chunk-ZDYWRT3X.js} +7 -7
- package/dist/bundle/{chunk-IMAWQC5K.js → chunk-ZQMURHTL.js} +6 -6
- package/dist/bundle/{cli-2P5FW2RL.js → cli-A7MMBLGR.js} +107 -107
- package/dist/bundle/command-contract-WCGIIXYM.js +45 -0
- package/dist/bundle/{command-server-entry-KP2UDGLA.js → command-server-entry-557ZCX63.js} +35 -35
- package/dist/bundle/{decode-K2JZ5D6V.js → decode-3IPZIY2P.js} +8 -8
- package/dist/bundle/{dispatch-KOQZA74A.js → dispatch-UWS7A35Q.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-URO3QGCG.js → echarts-JLCV6NKC.js} +2 -2
- package/dist/bundle/{embed-JLIPWTNN.js → embed-Q6H3QSMC.js} +9 -9
- package/dist/bundle/{embedder-LUTDO3HS.js → embedder-536EI65E.js} +12 -12
- package/dist/bundle/entry-3PKJTP5E.js +25 -0
- package/dist/bundle/{failure-GJMQLM7O.js → failure-W3VT5D3H.js} +4 -4
- package/dist/bundle/first-run-XTLP6VXF.js +31 -0
- package/dist/bundle/first-screen-3GQGULPE.js +45 -0
- package/dist/bundle/google-MEPVU4EP.js +46 -0
- package/dist/bundle/{google-api-RFXKRLL4.js → google-api-SY25TRXJ.js} +85 -85
- package/dist/bundle/grants-77W5MSWQ.js +133 -0
- package/dist/bundle/{identity-FXPB5EMT.js → identity-ZBMVHXUY.js} +6 -6
- package/dist/bundle/{instructions-IROIUVZI.js → instructions-XQOWVU6J.js} +1 -1
- package/dist/bundle/{login-WIY5VQU7.js → login-LXXYFMD3.js} +91 -91
- package/dist/bundle/{mcp-NJIOKW3E.js → mcp-VNOYBWW2.js} +2 -2
- package/dist/bundle/meeting-combined-NWWZCYN4.js +28 -0
- package/dist/bundle/meeting-model-K7UQ7TO5.js +29 -0
- package/dist/bundle/{meeting-semantic-62QNQMOM.js → meeting-semantic-Z7FAOSLQ.js} +10 -10
- package/dist/bundle/{node-IACCI2CW.js → node-MPZ3SVB4.js} +2 -2
- package/dist/bundle/{node-sqlite-WYIRC7C7.js → node-sqlite-VL5BMY34.js} +10 -10
- package/dist/bundle/notes-search-MF7QKFQD.js +74 -0
- package/dist/bundle/oauth-EYJXUTXZ.js +22 -0
- package/dist/bundle/{open-H32B6BCT.js → open-SERV3YXC.js} +8 -8
- package/dist/bundle/{openai-VHMPJJUG.js → openai-HUXETQVC.js} +20 -20
- package/dist/bundle/{process-RNHPF5OK.js → process-RFIII6TW.js} +1 -1
- package/dist/bundle/{program-GYMJ3DDH.js → program-VQ6IKDBJ.js} +353 -131
- package/dist/bundle/{prompt-TOG2CRCE.js → prompt-LCD5ZR7Q.js} +8 -8
- package/dist/bundle/{reasons-TLFQ45YX.js → reasons-GDQIXGWT.js} +5 -5
- package/dist/bundle/{recognize-GYGY45EY.js → recognize-GWKRFWHF.js} +7 -7
- package/dist/bundle/{remote-6XN2QLI5.js → remote-XM2CRZJY.js} +13 -13
- package/dist/bundle/{rerank-HJO3O4TW.js → rerank-HR5J35V6.js} +10 -10
- package/dist/bundle/{serve-XPCNLHCR.js → serve-PP3XR3GA.js} +12 -12
- package/dist/bundle/{server-WPT3NC5B.js → server-DD3DE536.js} +71 -71
- package/dist/bundle/server-NB4RGNYM.js +97 -0
- package/dist/bundle/{services-253KKKVU.js → services-4Y7R425J.js} +62 -58
- package/dist/bundle/{sqlite-runtime-EZASGJXW.js → sqlite-runtime-CVYBPVKO.js} +9 -9
- package/dist/bundle/{start-UHI35JFL.js → start-2KFZDMWM.js} +7 -7
- package/dist/bundle/{state-KJTSPFGK.js → state-AUXW4REW.js} +9 -9
- package/dist/bundle/{store-62J2H2A3.js → store-B7X6UN75.js} +28 -28
- package/dist/bundle/{store-G5B7T7M7.js → store-RADARFIH.js} +26 -26
- package/dist/bundle/store-maintenance-command-UTZWPNUF.js +85 -0
- package/dist/bundle/surface-4MUNDC3D.js +83 -0
- package/dist/bundle/tokens-AIKNGAOI.js +133 -0
- package/dist/commands/file-edit.d.ts +18 -0
- package/dist/commands/file-edit.d.ts.map +1 -0
- package/dist/commands/file-edit.js +39 -0
- package/dist/commands/file-edit.js.map +1 -0
- package/dist/commands/remote.d.ts +4 -0
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +59 -17
- package/dist/commands/remote.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -1
- package/dist/config.js.map +1 -1
- package/dist/drive-files.d.ts +26 -0
- package/dist/drive-files.d.ts.map +1 -0
- package/dist/drive-files.js +127 -0
- package/dist/drive-files.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +52 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/upload.d.ts +3 -1
- package/dist/upload.d.ts.map +1 -1
- package/dist/upload.js +5 -4
- package/dist/upload.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/drive-cli/SKILL.md +4 -0
- 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
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I3DZHZHM.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -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.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
|
|
8
8
|
var COMMAND_SERVER_ARGV = ["commands", "--serve"];
|
|
9
9
|
var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
|
|
10
10
|
|
|
@@ -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-B6YBN6VK.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.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
11
11
|
var COMMAND_NEEDS = {
|
|
12
12
|
"account update": ["updateProfile", "change the profile"],
|
|
13
13
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -2,28 +2,28 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PSWVHX53.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureSqlite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2G24DYSZ.js";
|
|
9
9
|
import {
|
|
10
10
|
envName,
|
|
11
11
|
readOnlyLockOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OCZWU2H4.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SNY4WYPH.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B6YBN6VK.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-557ZCX63.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-LCD5ZR7Q.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-XTLP6VXF.js"),
|
|
152
|
+
import("./command-contract-WCGIIXYM.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -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-B6YBN6VK.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.132.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.132.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.132.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.132.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.132.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([
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
installFiles,
|
|
9
9
|
megabytes,
|
|
10
10
|
sharedModelsDirectory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5SQHQRNO.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B6YBN6VK.js";
|
|
15
15
|
import {
|
|
16
16
|
importFrom
|
|
17
17
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
23
23
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
24
24
|
import { availableParallelism } from "node:os";
|
|
25
25
|
import { basename, join as join2 } from "node:path";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
28
28
|
import { createHash } from "node:crypto";
|
|
29
29
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
30
30
|
import { join } from "node:path";
|
|
@@ -186,7 +186,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
186
186
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
187
187
|
}, "openSession");
|
|
188
188
|
|
|
189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
190
190
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
191
191
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
192
192
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FITKBN46.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F5XMZDR5.js";
|
|
10
10
|
import {
|
|
11
11
|
array,
|
|
12
12
|
boolean,
|
|
@@ -26,22 +26,22 @@ import {
|
|
|
26
26
|
strictObject,
|
|
27
27
|
string,
|
|
28
28
|
unknown
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QZXFWDTX.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-B6YBN6VK.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
38
38
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
39
39
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
40
40
|
var ERASED_TEXT = "[source erased]";
|
|
41
41
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
42
42
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
45
45
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
46
46
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
47
47
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -56,7 +56,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
56
56
|
}
|
|
57
57
|
__name(closeTask, "closeTask");
|
|
58
58
|
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
60
60
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
61
61
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
62
62
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -85,7 +85,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
85
85
|
}, "priorityOf");
|
|
86
86
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
87
87
|
|
|
88
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
88
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
89
89
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
90
90
|
async function find(id2) {
|
|
91
91
|
const task = await store.get(id2);
|
|
@@ -145,13 +145,13 @@ function median(values) {
|
|
|
145
145
|
}
|
|
146
146
|
__name(median, "median");
|
|
147
147
|
|
|
148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
149
149
|
function matches(task, filter) {
|
|
150
150
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
151
151
|
}
|
|
152
152
|
__name(matches, "matches");
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
155
155
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
156
156
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
157
157
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -159,10 +159,10 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
159
159
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
160
160
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
161
161
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
163
163
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
164
164
|
|
|
165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
166
166
|
var text = string();
|
|
167
167
|
var id = pipe(string(), minLength(1));
|
|
168
168
|
var time = isoTime;
|
|
@@ -187,7 +187,7 @@ var author = strictObject({
|
|
|
187
187
|
name: nullable(text)
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
191
191
|
var organization = strictObject({
|
|
192
192
|
id,
|
|
193
193
|
ref: reference,
|
|
@@ -217,7 +217,7 @@ var reminder = strictObject({
|
|
|
217
217
|
receipt: nullable(text)
|
|
218
218
|
});
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
221
221
|
var CURRENCY_SCALES = {
|
|
222
222
|
AED: 2,
|
|
223
223
|
AMD: 2,
|
|
@@ -311,7 +311,7 @@ var quantityOf = /* @__PURE__ */ __name((text2) => {
|
|
|
311
311
|
}, "quantityOf");
|
|
312
312
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
313
313
|
|
|
314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
315
315
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
316
316
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
317
317
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -340,7 +340,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
340
340
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
341
341
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
342
342
|
|
|
343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
344
344
|
var CATALOG_KINDS = ["product", "service"];
|
|
345
345
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
346
346
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -368,7 +368,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
368
368
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
369
369
|
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
370
370
|
|
|
371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
372
372
|
import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
373
373
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
374
374
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -489,7 +489,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
489
489
|
return { previous, cleared };
|
|
490
490
|
}, "recordDeepCheck");
|
|
491
491
|
|
|
492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
493
493
|
var DEAL_KINDS = ["deal", "lead"];
|
|
494
494
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
495
495
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -499,7 +499,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
499
499
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
500
500
|
}, "dealLine");
|
|
501
501
|
|
|
502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
503
503
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
504
504
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
505
505
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -510,7 +510,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
510
510
|
}, "orderLine");
|
|
511
511
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
512
512
|
|
|
513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
514
514
|
var ORGANIZATION_ROLES = [
|
|
515
515
|
"employee",
|
|
516
516
|
"contractor",
|
|
@@ -613,7 +613,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
613
613
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
614
614
|
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
615
615
|
|
|
616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
617
617
|
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
618
618
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
619
619
|
var isCrmUserId = /* @__PURE__ */ __name((id2) => /^\d{1,20}$/.test(id2), "isCrmUserId");
|
|
@@ -623,7 +623,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id2) => {
|
|
|
623
623
|
}, "normalCrmUserId");
|
|
624
624
|
var isItemKind = /* @__PURE__ */ __name((kind) => kind === "deal" || kind === "lead", "isItemKind");
|
|
625
625
|
|
|
626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
627
627
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
628
628
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
629
629
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -633,7 +633,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
633
633
|
};
|
|
634
634
|
}, "sourceOf");
|
|
635
635
|
|
|
636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
637
637
|
var LINK_KINDS = [
|
|
638
638
|
"links-to",
|
|
639
639
|
"blocked-by",
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KXETGAU4.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F5XMZDR5.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B6YBN6VK.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -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.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorObjectOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SNY4WYPH.js";
|
|
6
6
|
import {
|
|
7
7
|
visibleControls
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2MCMUZCE.js";
|
|
9
9
|
import {
|
|
10
10
|
LOG_ATTRIBUTE_KEYS,
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SRRNRQSQ.js";
|
|
13
13
|
import {
|
|
14
14
|
getDotPath,
|
|
15
15
|
object,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
safeParse,
|
|
18
18
|
string,
|
|
19
19
|
unknown
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QZXFWDTX.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-B6YBN6VK.js";
|
|
24
24
|
import {
|
|
25
25
|
__commonJS,
|
|
26
26
|
__name,
|
|
@@ -1893,7 +1893,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
|
|
1896
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1896
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
1897
1897
|
import { createRequire } from "node:module";
|
|
1898
1898
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
1899
1899
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -1919,7 +1919,7 @@ var systemKeyring = {
|
|
|
1919
1919
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
1920
1920
|
};
|
|
1921
1921
|
|
|
1922
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1922
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1923
1923
|
import { realpathSync } from "node:fs";
|
|
1924
1924
|
import { homedir, userInfo } from "node:os";
|
|
1925
1925
|
import { join, posix, win32 } from "node:path";
|
|
@@ -1993,11 +1993,11 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1993
1993
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1994
1994
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1995
1995
|
|
|
1996
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1996
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
1997
1997
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
1998
1998
|
import { join as join3, resolve } from "node:path";
|
|
1999
1999
|
|
|
2000
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2000
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2001
2001
|
import { randomBytes } from "node:crypto";
|
|
2002
2002
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2003
2003
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2041,7 +2041,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2041
2041
|
`, 384);
|
|
2042
2042
|
}, "saveConfigFile");
|
|
2043
2043
|
|
|
2044
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2044
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2045
2045
|
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2046
2046
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2047
2047
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
@@ -2186,7 +2186,7 @@ var Credentials = class {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
};
|
|
2188
2188
|
|
|
2189
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2189
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2190
2190
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2191
2191
|
if (signal?.aborted)
|
|
2192
2192
|
return Promise.reject(signal.reason);
|
|
@@ -2214,7 +2214,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2214
2214
|
});
|
|
2215
2215
|
}, "waitForDrain");
|
|
2216
2216
|
|
|
2217
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2217
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2218
2218
|
var processStreams = {
|
|
2219
2219
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2220
2220
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2243,7 +2243,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2243
2243
|
};
|
|
2244
2244
|
}, "captureStreams");
|
|
2245
2245
|
|
|
2246
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2246
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2247
2247
|
var DEFAULT_RETRY = {
|
|
2248
2248
|
retries: 1,
|
|
2249
2249
|
baseDelayMs: 250,
|
|
@@ -2255,7 +2255,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2255
2255
|
return Math.round(random() * ceiling);
|
|
2256
2256
|
}, "backoffMs");
|
|
2257
2257
|
|
|
2258
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2258
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
2259
2259
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2260
2260
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2261
2261
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2320,7 +2320,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2320
2320
|
return project(value, fields);
|
|
2321
2321
|
}, "projectFields");
|
|
2322
2322
|
|
|
2323
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2323
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2324
2324
|
var BATCH_LIMITS = Object.freeze({
|
|
2325
2325
|
requests: 32,
|
|
2326
2326
|
input_bytes: 262144,
|
|
@@ -2447,7 +2447,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2447
2447
|
};
|
|
2448
2448
|
}, "runBatch");
|
|
2449
2449
|
|
|
2450
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2450
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2451
2451
|
import { fileURLToPath } from "node:url";
|
|
2452
2452
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2453
2453
|
var baseConstantsSchema = object({});
|
|
@@ -2502,7 +2502,7 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
|
2502
2502
|
return deepFreeze(result.output);
|
|
2503
2503
|
}, "loadConstants");
|
|
2504
2504
|
|
|
2505
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2505
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2506
2506
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2507
2507
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2508
2508
|
if (signal?.aborted) {
|
|
@@ -2517,7 +2517,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2517
2517
|
}), "realSleep");
|
|
2518
2518
|
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2519
2519
|
|
|
2520
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2520
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2521
2521
|
import { appendFileSync } from "node:fs";
|
|
2522
2522
|
var REDACTED_FIELDS = [
|
|
2523
2523
|
"authorization",
|
|
@@ -2612,7 +2612,7 @@ var silent = {
|
|
|
2612
2612
|
}, "error")
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2615
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2616
2616
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2617
2617
|
import { styleText } from "node:util";
|
|
2618
2618
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2687,7 +2687,7 @@ var BORDERLESS = {
|
|
|
2687
2687
|
middle: ""
|
|
2688
2688
|
};
|
|
2689
2689
|
|
|
2690
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2690
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2691
2691
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2692
2692
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2693
2693
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|