@wirecat/zoom-cli 0.81.0 → 0.83.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 +2 -2
- package/contracts/wirecat.json +54 -54
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/bin/main.js +2 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +47 -0
- package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RY2OMSDL.js} +12 -12
- package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
- package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-36VPSF7B.js} +6 -6
- package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-ZVJVUGB7.js} +79 -76
- package/dist/bundle/{bun-2FLR4IV4.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-IOPYIUA7.js} +7 -7
- package/dist/bundle/{chunk-L54I45OX.js → chunk-26TW5RZ6.js} +33 -317
- package/dist/bundle/{chunk-JK24A3RP.js → chunk-2DK5BBFF.js} +3 -3
- package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-2IBKKVVZ.js} +6 -6
- package/dist/bundle/{chunk-WKNYNK7W.js → chunk-2S54TM4N.js} +4 -4
- package/dist/bundle/{chunk-WHXYPLUE.js → chunk-3AQHKXVR.js} +4 -4
- package/dist/bundle/{chunk-YISJJNXT.js → chunk-3CW2C7ZA.js} +3 -3
- package/dist/bundle/{chunk-77TJ3AJH.js → chunk-3KUEZK5Z.js} +3 -3
- package/dist/bundle/{chunk-NQGGTO3B.js → chunk-3PXUQFHX.js} +8 -8
- package/dist/bundle/{chunk-N5ROXGY4.js → chunk-3QN5KDFZ.js} +167 -167
- package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
- package/dist/bundle/{chunk-4BU3LRTB.js → chunk-575JMTDR.js} +19 -18
- package/dist/bundle/{chunk-NM5XMKWO.js → chunk-5B2LV4MS.js} +2 -1
- package/dist/bundle/{chunk-3M436OO2.js → chunk-5WL5RHOO.js} +7 -102
- package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-6C7ESL5N.js} +3 -3
- package/dist/bundle/{chunk-SRUAUMBL.js → chunk-6E4KLYNP.js} +12 -12
- package/dist/bundle/chunk-7JDXR75Q.js +465 -0
- package/dist/bundle/{chunk-L2ERFXB7.js → chunk-AK3H2C65.js} +40 -31
- package/dist/bundle/{chunk-OEQNP56V.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-35FVYRH5.js → chunk-AQLUAQXJ.js} +37 -180
- package/dist/bundle/{chunk-EPASOAEI.js → chunk-ASTLGFTR.js} +284 -184
- package/dist/bundle/{chunk-YNWBRDBX.js → chunk-ATHBB7OU.js} +2 -2
- package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-B2NM65RD.js} +14 -6
- package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-B4KHDXJE.js} +3 -3
- package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-BAFC7WNI.js} +4 -4
- package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
- package/dist/bundle/{chunk-C4BBCSGK.js → chunk-BTLZYRIW.js} +6 -6
- package/dist/bundle/{chunk-T2BHIC37.js → chunk-BZDS2X6Y.js} +65 -65
- package/dist/bundle/{chunk-3UX4VJWD.js → chunk-C7JPYWYQ.js} +3 -4
- package/dist/bundle/{chunk-R4CXFYQN.js → chunk-CDQUW25G.js} +180 -38
- package/dist/bundle/{chunk-YJKXCINQ.js → chunk-CJWGJBHW.js} +274 -60
- package/dist/bundle/{chunk-F2J2FQUB.js → chunk-D7RCUODT.js} +9 -9
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-LGESUPKO.js → chunk-DQJECJUE.js} +25 -90
- package/dist/bundle/{chunk-MA4UJNUI.js → chunk-E4JQ3MCW.js} +12 -12
- package/dist/bundle/{chunk-GW2A2FJH.js → chunk-E4ODYLEK.js} +8 -8
- package/dist/bundle/{chunk-Q26UFIH4.js → chunk-EE45N67Q.js} +16 -3
- package/dist/bundle/{chunk-5SEBLX6B.js → chunk-EEEU4MKK.js} +12 -12
- package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
- package/dist/bundle/{chunk-M7OYEMLI.js → chunk-ETIZGA4P.js} +7 -7
- package/dist/bundle/{chunk-IVZACJ6X.js → chunk-F44QK6CK.js} +4 -4
- package/dist/bundle/{chunk-JKEMW6E4.js → chunk-FH2UFNH6.js} +2 -2
- package/dist/bundle/{chunk-XYQVVW4R.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/chunk-FWACRG4X.js +160 -0
- package/dist/bundle/chunk-G5SZL7G2.js +150 -0
- package/dist/bundle/{chunk-GDRFVBCB.js → chunk-G6CHEFAG.js} +2 -2
- package/dist/bundle/{chunk-2ELGSNX3.js → chunk-GHJD7PE6.js} +170 -170
- package/dist/bundle/{chunk-LECMHK2F.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-H6A4NWYJ.js} +322 -45
- package/dist/bundle/{chunk-D26K6756.js → chunk-HKLRI2LB.js} +6 -6
- package/dist/bundle/{chunk-R6HP2XKD.js → chunk-HMD4FZYY.js} +5 -5
- package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/chunk-HUAHLO6N.js +29 -0
- package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
- package/dist/bundle/{chunk-QFK52FG6.js → chunk-IQZXFWFI.js} +3 -3
- package/dist/bundle/{chunk-GPRJXJC7.js → chunk-ISQ23VKV.js} +22 -1
- package/dist/bundle/{chunk-ZLYICF6A.js → chunk-JEH33ZCD.js} +4 -4
- package/dist/bundle/{chunk-IDUKCXL7.js → chunk-JUNQYWQ2.js} +13 -9
- package/dist/bundle/{chunk-337ALCXQ.js → chunk-JUXMVQWJ.js} +312 -153
- package/dist/bundle/{chunk-5EWYDHBH.js → chunk-KHQDWYCG.js} +2 -2
- package/dist/bundle/{chunk-FMMYBVCH.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/chunk-LBGT6W4R.js +377 -0
- package/dist/bundle/{chunk-UUVWAVKN.js → chunk-LN7HRYTH.js} +3 -3
- package/dist/bundle/{chunk-NS3JWBDR.js → chunk-MEB7HBTM.js} +6 -6
- package/dist/bundle/{chunk-K7CTCDYX.js → chunk-MEEFWYX3.js} +6 -6
- package/dist/bundle/{chunk-BQBC2WIG.js → chunk-MNOAMJ6H.js} +1 -1
- package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-MYHPXJDG.js} +4 -4
- package/dist/bundle/{chunk-7JWVPJIP.js → chunk-NGI37RFW.js} +10 -10
- package/dist/bundle/{chunk-437DLSB3.js → chunk-NZMWD7Y3.js} +17227 -13055
- package/dist/bundle/chunk-O6IECJRM.js +54 -0
- package/dist/bundle/{chunk-LVCCZI5A.js → chunk-OBWL3BUV.js} +39 -39
- package/dist/bundle/{chunk-GCAJW4SR.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/chunk-OGTN2KVG.js +147 -0
- package/dist/bundle/{chunk-B2WBWKYN.js → chunk-OQYZ3W4K.js} +12 -12
- package/dist/bundle/{chunk-IFM4G4MT.js → chunk-P3ZCTYGW.js} +4 -4
- package/dist/bundle/{chunk-VAW7QGJA.js → chunk-PVEBAHFU.js} +3 -3
- package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
- package/dist/bundle/{chunk-D7CDHBDX.js → chunk-R6IA5UQB.js} +1 -1
- package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-RLOH7RDN.js} +7 -7
- package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-RQ4AXSCJ.js} +8 -8
- package/dist/bundle/{chunk-4BXLHSXY.js → chunk-RYGTCRFZ.js} +2 -2
- package/dist/bundle/{chunk-XWKUGAG6.js → chunk-S4PXWIE4.js} +85 -87
- package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-SDZZYZLL.js} +2 -2
- package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-SHQAYUK6.js} +8 -8
- package/dist/bundle/{chunk-YUDVRFXN.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-EEBSKMEA.js → chunk-TDWPOSPR.js} +12 -12
- package/dist/bundle/{chunk-WIX6BFRF.js → chunk-TER3N27H.js} +8 -8
- package/dist/bundle/{chunk-UMPUY77T.js → chunk-TMTNP7QN.js} +10 -10
- package/dist/bundle/{chunk-BZXHJKKI.js → chunk-TO5UEWXR.js} +2 -2
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
- package/dist/bundle/{chunk-RQFRXUI4.js → chunk-UBH7YF3C.js} +200 -112
- package/dist/bundle/{chunk-MBBR7QHI.js → chunk-UEAE3JUU.js} +2641 -1150
- package/dist/bundle/{chunk-2RFWRJFK.js → chunk-UHR363OD.js} +14 -10
- package/dist/bundle/{chunk-RRYHLP3A.js → chunk-UM52A76S.js} +6 -6
- package/dist/bundle/chunk-URP6BTHN.js +624 -0
- package/dist/bundle/{chunk-HHQROAJQ.js → chunk-UWQEAA6S.js} +1 -1
- package/dist/bundle/{chunk-DMJLJVD3.js → chunk-VR7QZGRU.js} +7 -7
- package/dist/bundle/{chunk-QNG27PGH.js → chunk-VRH5PBSL.js} +21 -17
- package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
- package/dist/bundle/{chunk-NX3BLISW.js → chunk-VTYNLTDW.js} +6 -6
- package/dist/bundle/{chunk-HIFPHARA.js → chunk-WY7XG6TE.js} +4 -4
- package/dist/bundle/{chunk-IBYGNUO7.js → chunk-XEOZTA3H.js} +1 -1
- package/dist/bundle/{chunk-4FSH7K6N.js → chunk-XH23ML2V.js} +2 -2
- package/dist/bundle/{chunk-VXD65V67.js → chunk-XYF76A26.js} +2224 -2288
- package/dist/bundle/{chunk-J5EHZBO5.js → chunk-ZDYJAEVB.js} +19 -3
- package/dist/bundle/{chunk-FXZPAGHT.js → chunk-ZJ63HDBT.js} +2 -2
- package/dist/bundle/{chunk-N62P5FY4.js → chunk-ZT4ZPUIO.js} +12 -12
- package/dist/bundle/{cli-WTGAGSXV.js → cli-JK6PQSSN.js} +133 -116
- package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
- package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-DJLGN62J.js} +36 -35
- package/dist/bundle/config-TYYMV3HV.js +118 -0
- package/dist/bundle/{decode-2G7QS5IQ.js → decode-ZZICNNFF.js} +6 -6
- package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
- package/dist/bundle/{dist-WY6R3WH7.js → dist-NQPF25XI.js} +52 -49
- package/dist/bundle/{echarts-YRRVLEX3.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-B5H3OW2O.js → embed-T64EUKUI.js} +7 -7
- package/dist/bundle/{embedder-3O73SP6Y.js → embedder-ZEKISZXI.js} +10 -10
- package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
- package/dist/bundle/first-run-ZFNY4RRH.js +29 -0
- package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
- package/dist/bundle/{folders-4CGFWM6H.js → folders-ROKVKSCT.js} +5 -5
- package/dist/bundle/{instructions-AG7SRWTR.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{main-DOGY6FJP.js → main-GCK3VYAA.js} +27 -37
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
- package/dist/bundle/meeting-model-MVUW7UPQ.js +26 -0
- package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-IF633WGX.js} +8 -8
- package/dist/bundle/{meetings-PVE4C2NF.js → meetings-RY2AAPHV.js} +7 -7
- package/dist/bundle/{node-GJQYN4FT.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-ASAZJNHE.js} +8 -8
- package/dist/bundle/{oauth-AC55C6SG.js → oauth-4U3OCK3W.js} +8 -8
- package/dist/bundle/oauth-AJARLPSY.js +46 -0
- package/dist/bundle/{open-3LGTYP6M.js → open-SEJRY2ZI.js} +6 -6
- package/dist/bundle/openai-FZDSC2AA.js +28 -0
- package/dist/bundle/{output-file-FXMTTLOI.js → output-file-RYIOIXMD.js} +6 -6
- package/dist/bundle/{process-MEKCZMX3.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-E5BSSIGY.js → program-OYLVYA4Z.js} +186 -247
- package/dist/bundle/{prompt-AIA6QSZK.js → prompt-BCRD64F4.js} +6 -6
- package/dist/bundle/public-SVJILCNI.js +206 -0
- package/dist/bundle/{recognize-M57VNTEV.js → recognize-25ITJWGX.js} +5 -5
- package/dist/bundle/{remote-3OTENZ7Z.js → remote-5FBAJX7O.js} +11 -11
- package/dist/bundle/{rerank-P5WHDFDU.js → rerank-2HGWWORY.js} +8 -8
- package/dist/bundle/run-log-7HRF4Y47.js +145 -0
- package/dist/bundle/{serve-BRLC2QVV.js → serve-RL35MSJD.js} +10 -10
- package/dist/bundle/{server-25NF7DMS.js → server-QUSBWACP.js} +71 -68
- package/dist/bundle/server-SCK2SRDK.js +96 -0
- package/dist/bundle/{services-MJE43OGD.js → services-BGRIQNDC.js} +66 -60
- package/dist/bundle/{speech-4AVCWTQH.js → speech-4W3ZMTFK.js} +25 -25
- package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-K3KLRZCV.js} +7 -7
- package/dist/bundle/{state-GNUGVMY7.js → state-GYL4C74G.js} +7 -7
- package/dist/bundle/{store-KBFZVQWF.js → store-27UQMNEO.js} +28 -26
- package/dist/bundle/{store-MHVBFUBB.js → store-NLYH5SQX.js} +64 -46
- package/dist/bundle/store-connection-CZILWRSR.js +112 -0
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
- package/dist/bundle/{streaming-6F7AFEHD.js → streaming-73EKEGPF.js} +7 -7
- package/dist/bundle/surface-CV3C4RV2.js +82 -0
- package/dist/bundle/tokens-PY3S22LY.js +27 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-4F4YY4OI.js} +11 -9
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -12
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +3 -5
- package/dist/program.d.ts.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -1
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +5 -14
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +3 -3
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +0 -45
- package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
- package/dist/bundle/chunk-46EF6P2J.js +0 -72
- package/dist/bundle/chunk-4B335BCJ.js +0 -330
- package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
- package/dist/bundle/chunk-FXCR4DGU.js +0 -37
- package/dist/bundle/chunk-KZ3B6HW5.js +0 -31
- package/dist/bundle/chunk-TI4WJOEX.js +0 -789
- package/dist/bundle/chunk-UPR2S5IE.js +0 -773
- package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
- package/dist/bundle/config-ZOGOKGTU.js +0 -116
- package/dist/bundle/first-run-MPKMDEMA.js +0 -29
- package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
- package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
- package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
- package/dist/bundle/openai-E2MSLVIX.js +0 -28
- package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
- package/dist/bundle/server-EW2RL2EL.js +0 -93
- package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
- package/dist/bundle/surface-DWEWB5RG.js +0 -79
- package/dist/bundle/tokens-BB4MQBLH.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
- /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
|
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
throughWrapper
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VRH5PBSL.js";
|
|
6
6
|
import {
|
|
7
7
|
environmentOf
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ASTLGFTR.js";
|
|
9
9
|
import {
|
|
10
10
|
readOnlyLockOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZJ63HDBT.js";
|
|
12
12
|
import {
|
|
13
13
|
array,
|
|
14
14
|
boolean,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
safeParse,
|
|
19
19
|
strictObject,
|
|
20
20
|
string
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IANKXHSE.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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
30
30
|
import { createHash } from "node:crypto";
|
|
31
31
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
32
32
|
import { createConnection, createServer } from "node:net";
|
|
@@ -247,7 +247,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
247
247
|
}, () => finish({ error: stopped() }));
|
|
248
248
|
}), "relayCommand");
|
|
249
249
|
|
|
250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
250
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
251
251
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
252
252
|
close: /* @__PURE__ */ __name(async () => {
|
|
253
253
|
}, "close"),
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
changesMessenger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ASTLGFTR.js";
|
|
6
6
|
import {
|
|
7
7
|
AUTHORITY_KEY,
|
|
8
8
|
BOT_API_KEY,
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
keyForCommand,
|
|
13
13
|
levelFor,
|
|
14
14
|
readKeysForCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RQ4AXSCJ.js";
|
|
16
16
|
import {
|
|
17
17
|
writes
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ESN3W2MZ.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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
|
|
24
24
|
var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
|
|
25
25
|
const declaredKey = declared?.keyOf(info.path);
|
|
26
26
|
const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3QN5KDFZ.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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { userInfo } from "node:os";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
QUERY_LIMITS,
|
|
5
|
+
queryError
|
|
6
|
+
} from "./chunk-UAWSINMC.js";
|
|
7
|
+
import {
|
|
8
|
+
CliError,
|
|
9
|
+
isCliError
|
|
10
|
+
} from "./chunk-IANKXHSE.js";
|
|
11
|
+
import {
|
|
12
|
+
__name
|
|
13
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
14
|
+
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/addresses.js
|
|
16
|
+
var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
17
|
+
var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
|
|
18
|
+
var ROLE_ADDRESS_WORDS = {
|
|
19
|
+
noReply: ["noreply", "no-reply", "donotreply", "do-not-reply", "mailer-daemon", "bounce", "bounces"],
|
|
20
|
+
shared: [
|
|
21
|
+
"info",
|
|
22
|
+
"hello",
|
|
23
|
+
"hi",
|
|
24
|
+
"contact",
|
|
25
|
+
"contacts",
|
|
26
|
+
"support",
|
|
27
|
+
"help",
|
|
28
|
+
"helpdesk",
|
|
29
|
+
"service",
|
|
30
|
+
"sales",
|
|
31
|
+
"office",
|
|
32
|
+
"admin",
|
|
33
|
+
"team",
|
|
34
|
+
"billing",
|
|
35
|
+
"accounts",
|
|
36
|
+
"accounting",
|
|
37
|
+
"invoices",
|
|
38
|
+
"finance",
|
|
39
|
+
"hr",
|
|
40
|
+
"jobs",
|
|
41
|
+
"careers",
|
|
42
|
+
"press",
|
|
43
|
+
"media",
|
|
44
|
+
"marketing",
|
|
45
|
+
"partners",
|
|
46
|
+
"legal",
|
|
47
|
+
"privacy",
|
|
48
|
+
"security",
|
|
49
|
+
"abuse",
|
|
50
|
+
"postmaster",
|
|
51
|
+
"webmaster",
|
|
52
|
+
"mail",
|
|
53
|
+
"inbox",
|
|
54
|
+
"enquiries",
|
|
55
|
+
"inquiries",
|
|
56
|
+
"booking",
|
|
57
|
+
"reservations",
|
|
58
|
+
"orders",
|
|
59
|
+
"feedback",
|
|
60
|
+
"newsletter",
|
|
61
|
+
"notifications",
|
|
62
|
+
"alerts"
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
var bare = /* @__PURE__ */ __name((word) => word.replace(/[.\-_]/gu, ""), "bare");
|
|
66
|
+
var NO_REPLY = new Set(ROLE_ADDRESS_WORDS.noReply.map(bare));
|
|
67
|
+
var ROLE = new Set([...ROLE_ADDRESS_WORDS.shared, ...ROLE_ADDRESS_WORDS.noReply].map(bare));
|
|
68
|
+
var PART_ONLY = /* @__PURE__ */ new Set(["bounce", "bounces"]);
|
|
69
|
+
var NOTIFY = /* @__PURE__ */ new Set(["notify", "notification", "notifications", "alert", "alerts"]);
|
|
70
|
+
var localPart = /* @__PURE__ */ __name((address) => {
|
|
71
|
+
const local = address.trim().toLowerCase().split("@")[0] ?? "";
|
|
72
|
+
return local.split("+")[0] ?? "";
|
|
73
|
+
}, "localPart");
|
|
74
|
+
var localWord = /* @__PURE__ */ __name((address) => bare(localPart(address)), "localWord");
|
|
75
|
+
var SEPARATORS = /[.\-_]/u;
|
|
76
|
+
var partsOf = /* @__PURE__ */ __name((address) => localPart(address).split(SEPARATORS), "partsOf");
|
|
77
|
+
var NO_REPLY_PARTS = ROLE_ADDRESS_WORDS.noReply.map((word) => `.${word.split(SEPARATORS).join(".")}.`);
|
|
78
|
+
var isNoReplyAddress = /* @__PURE__ */ __name((address) => {
|
|
79
|
+
const word = localWord(address);
|
|
80
|
+
const parts = `.${partsOf(address).join(".")}.`;
|
|
81
|
+
if (NO_REPLY_PARTS.some((one) => parts.includes(one)))
|
|
82
|
+
return true;
|
|
83
|
+
return [...NO_REPLY].some((one) => !PART_ONLY.has(one) && (word.startsWith(one) || word.endsWith(one)));
|
|
84
|
+
}, "isNoReplyAddress");
|
|
85
|
+
var isRoleAddress = /* @__PURE__ */ __name((address) => ROLE.has(localWord(address)) || isNoReplyAddress(address), "isRoleAddress");
|
|
86
|
+
var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
|
|
87
|
+
var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
|
|
88
|
+
var isNotificationAddress = /* @__PURE__ */ __name((address) => partsOf(address).some((part) => NOTIFY.has(part)), "isNotificationAddress");
|
|
89
|
+
|
|
90
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
91
|
+
var QUERY_VERSION = 1;
|
|
92
|
+
var QUERY_LIMITS2 = {
|
|
93
|
+
...QUERY_LIMITS,
|
|
94
|
+
pattern: 1024,
|
|
95
|
+
states: 1e4,
|
|
96
|
+
expansions: 1e4,
|
|
97
|
+
candidates: 5e4,
|
|
98
|
+
bodyBytes: 8388608,
|
|
99
|
+
milliseconds: 2e3,
|
|
100
|
+
work: 1e7
|
|
101
|
+
};
|
|
102
|
+
var SEARCH_QUERY = {
|
|
103
|
+
command: "search",
|
|
104
|
+
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md"
|
|
105
|
+
};
|
|
106
|
+
var MESSAGE_PARSING = { ...SEARCH_QUERY, proximity: true };
|
|
107
|
+
var MOST_WORDS_APART = 50;
|
|
108
|
+
function searchError(reason, span, alternative) {
|
|
109
|
+
queryError(reason, span, alternative, SEARCH_QUERY);
|
|
110
|
+
}
|
|
111
|
+
__name(searchError, "searchError");
|
|
112
|
+
var ANSWER_MS = 1e3;
|
|
113
|
+
var searchTimeLimit = /* @__PURE__ */ __name((deadline, now = Date.now()) => deadline?.explicit ? Math.max(QUERY_LIMITS2.milliseconds, deadline.endsAt - now - ANSWER_MS) : void 0, "searchTimeLimit");
|
|
114
|
+
function outOfTime(limitMs = QUERY_LIMITS2.milliseconds) {
|
|
115
|
+
throw new CliError("timeout", `search stopped at its time limit of ${limitMs / 1e3}s \u2014 the query is valid; add chat: or date: to search less of the store`, { reason: "query.time-limit", budget: "time", limit_ms: limitMs, complete: false });
|
|
116
|
+
}
|
|
117
|
+
__name(outOfTime, "outOfTime");
|
|
118
|
+
var isQueryLimit = /* @__PURE__ */ __name((error) => isCliError(error) && (error.details.reason === "query.too-large" || error.details.reason === "query.time-limit"), "isQueryLimit");
|
|
119
|
+
var SQLITE_TOO_LARGE = /nested too deep|too many terms in compound SELECT|Expression tree is too large|parser stack overflow/;
|
|
120
|
+
var sqliteLimit = /* @__PURE__ */ __name((error) => {
|
|
121
|
+
if (error instanceof Error && SQLITE_TOO_LARGE.test(error.message))
|
|
122
|
+
exhausted("nodes");
|
|
123
|
+
return error;
|
|
124
|
+
}, "sqliteLimit");
|
|
125
|
+
function exhausted(budget) {
|
|
126
|
+
throw new CliError("validation_error", `search exceeded its ${budget} budget \u2014 narrow the chat or date range`, {
|
|
127
|
+
reason: "query.too-large",
|
|
128
|
+
budget,
|
|
129
|
+
complete: false
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
__name(exhausted, "exhausted");
|
|
133
|
+
function tooWideTerm([term], budget) {
|
|
134
|
+
if (term === void 0)
|
|
135
|
+
exhausted(budget);
|
|
136
|
+
const part = term.replace(/[*?]+/gu, " ").trim().split(/\s+/u).sort((a, b) => b.length - a.length)[0] ?? term;
|
|
137
|
+
throw new CliError("validation_error", `search exceeded its ${budget} budget: ${term} is checked word by word, and too many messages hold it \u2014 write *${part}* (any word holding it, read from the index), more of the word, or add chat: or date:`, { reason: "query.too-large", budget, term, complete: false });
|
|
138
|
+
}
|
|
139
|
+
__name(tooWideTerm, "tooWideTerm");
|
|
140
|
+
|
|
141
|
+
export {
|
|
142
|
+
isEmailAddress,
|
|
143
|
+
ROLE_ADDRESS_WORDS,
|
|
144
|
+
isNoReplyAddress,
|
|
145
|
+
isRoleAddress,
|
|
146
|
+
isPersonLikeRoleAddress,
|
|
147
|
+
isNotificationAddress,
|
|
148
|
+
QUERY_VERSION,
|
|
149
|
+
QUERY_LIMITS2 as QUERY_LIMITS,
|
|
150
|
+
SEARCH_QUERY,
|
|
151
|
+
MESSAGE_PARSING,
|
|
152
|
+
MOST_WORDS_APART,
|
|
153
|
+
searchError,
|
|
154
|
+
searchTimeLimit,
|
|
155
|
+
outOfTime,
|
|
156
|
+
isQueryLimit,
|
|
157
|
+
sqliteLimit,
|
|
158
|
+
exhausted,
|
|
159
|
+
tooWideTerm
|
|
160
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError
|
|
5
|
+
} from "./chunk-IANKXHSE.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
|
+
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
|
+
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
|
+
var CLOSED_STATES = ["done", "dismissed"];
|
|
14
|
+
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
15
|
+
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
16
|
+
var isClosedState = /* @__PURE__ */ __name((state) => CLOSED_STATES.includes(state), "isClosedState");
|
|
17
|
+
function closeTask(task, state, by, at, reason) {
|
|
18
|
+
if (isClosedState(task.state))
|
|
19
|
+
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
20
|
+
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
21
|
+
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
22
|
+
}
|
|
23
|
+
__name(closeTask, "closeTask");
|
|
24
|
+
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
26
|
+
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
|
+
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
|
+
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
29
|
+
var priorityLabel = /* @__PURE__ */ __name((score) => score === null ? null : PRIORITY_LABELS[Math.min(3, Math.max(0, Math.floor(score * 4)))], "priorityLabel");
|
|
30
|
+
var priorityBand = /* @__PURE__ */ __name((label) => {
|
|
31
|
+
const at = PRIORITY_LABELS.indexOf(label);
|
|
32
|
+
return { from: at / 4, to: (at + 1) / 4 };
|
|
33
|
+
}, "priorityBand");
|
|
34
|
+
var legacyPriority = /* @__PURE__ */ __name((score) => score === null ? null : score < 0.125 ? 4 : 3 - PRIORITY_LABELS.indexOf(priorityLabel(score)), "legacyPriority");
|
|
35
|
+
var checkedScore = /* @__PURE__ */ __name((score) => {
|
|
36
|
+
if (!Number.isFinite(score) || score < 0 || score > 1)
|
|
37
|
+
throw new CliError("validation_error", "a priority score is 0 to 1");
|
|
38
|
+
return score;
|
|
39
|
+
}, "checkedScore");
|
|
40
|
+
var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
41
|
+
const word = value.trim().toLowerCase();
|
|
42
|
+
if (word === "none")
|
|
43
|
+
return null;
|
|
44
|
+
if (PRIORITY_LABELS.includes(word))
|
|
45
|
+
return MIDDLE[word];
|
|
46
|
+
if (/^[0-4]$/.test(word))
|
|
47
|
+
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
48
|
+
if (/^(0?\.\d+|[01]\.\d*)$/.test(word) && Number(word) <= 1)
|
|
49
|
+
return Number(word);
|
|
50
|
+
throw new CliError("validation_error", `a priority is ${PRIORITY_LABELS.join(", ")}, none, or a score from 0.0 to 1.0 with its decimal point; 0 (urgent) \u2026 4 (low) still work as critical, high, medium, low, low`);
|
|
51
|
+
}, "priorityOf");
|
|
52
|
+
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
53
|
+
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
55
|
+
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
56
|
+
async function find(id) {
|
|
57
|
+
const task = await store.get(id);
|
|
58
|
+
if (!task)
|
|
59
|
+
throw new CliError("not_found", `no task ${id}`);
|
|
60
|
+
return task;
|
|
61
|
+
}
|
|
62
|
+
__name(find, "find");
|
|
63
|
+
return {
|
|
64
|
+
/**
|
|
65
|
+
* A rule never makes a second task from a source it has seen, whatever that task's state, so a
|
|
66
|
+
* dismissed one stays dismissed — nor from a message attached or merged into a task. A person or an agent may
|
|
67
|
+
* add a task of another kind to it. A task a rule opens goes through the host's duplicate check.
|
|
68
|
+
*/
|
|
69
|
+
async add(input) {
|
|
70
|
+
const rule = input.origin === "rule";
|
|
71
|
+
const existing = await store.findBySource(input.account, input.source, rule ? { linked: true } : void 0);
|
|
72
|
+
const same = rule ? existing[0] : existing.find((task2) => task2.kind === input.kind);
|
|
73
|
+
if (same)
|
|
74
|
+
return { task: same, created: false };
|
|
75
|
+
const task = { ...input, id: newId(), state: "open", createdAt: now() };
|
|
76
|
+
await store.insert(task);
|
|
77
|
+
if (!rule || !store.reviewDuplicates)
|
|
78
|
+
return { task, created: true };
|
|
79
|
+
return { task, created: true, review: await store.reviewDuplicates(task.id) };
|
|
80
|
+
},
|
|
81
|
+
async close(id, { as, by, reason }) {
|
|
82
|
+
const task = closeTask(await find(id), as, by, now(), reason);
|
|
83
|
+
await store.update(task);
|
|
84
|
+
return task;
|
|
85
|
+
},
|
|
86
|
+
list: /* @__PURE__ */ __name((filter = {}) => store.list(filter), "list"),
|
|
87
|
+
async stats(filter = {}) {
|
|
88
|
+
const byGroup = /* @__PURE__ */ new Map();
|
|
89
|
+
for (const task of await store.list(filter))
|
|
90
|
+
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
91
|
+
return [...byGroup].map(([group, tasks]) => {
|
|
92
|
+
const open = tasks.filter((task) => !isClosedState(task.state));
|
|
93
|
+
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
94
|
+
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
95
|
+
return {
|
|
96
|
+
group,
|
|
97
|
+
open: open.length,
|
|
98
|
+
...oldestOpenAt ? { oldestOpenAt } : {},
|
|
99
|
+
...closeMs.length > 0 ? { medianCloseMs: median(closeMs) } : {}
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
__name(createTaskService, "createTaskService");
|
|
106
|
+
function median(values) {
|
|
107
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
108
|
+
const middle = Math.floor(sorted.length / 2);
|
|
109
|
+
const upper = sorted[middle] ?? 0;
|
|
110
|
+
return sorted.length % 2 === 1 ? upper : ((sorted[middle - 1] ?? 0) + upper) / 2;
|
|
111
|
+
}
|
|
112
|
+
__name(median, "median");
|
|
113
|
+
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
115
|
+
function matches(task, filter) {
|
|
116
|
+
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);
|
|
117
|
+
}
|
|
118
|
+
__name(matches, "matches");
|
|
119
|
+
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
121
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
122
|
+
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
123
|
+
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
124
|
+
var MEMORY_SCOPES = ["personal", "work"];
|
|
125
|
+
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
126
|
+
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
TASK_KINDS,
|
|
130
|
+
TASK_STATES,
|
|
131
|
+
CLOSED_STATES,
|
|
132
|
+
TASK_ORIGINS,
|
|
133
|
+
TASK_VERDICTS,
|
|
134
|
+
isClosedState,
|
|
135
|
+
PRIORITY_LABELS,
|
|
136
|
+
priorityLabel,
|
|
137
|
+
priorityBand,
|
|
138
|
+
legacyPriority,
|
|
139
|
+
checkedScore,
|
|
140
|
+
priorityOf,
|
|
141
|
+
priorityOption,
|
|
142
|
+
createTaskService,
|
|
143
|
+
matches,
|
|
144
|
+
FACT_STATUSES,
|
|
145
|
+
MEMORY_KINDS,
|
|
146
|
+
MEMORY_STATUSES,
|
|
147
|
+
MEMORY_SCOPES,
|
|
148
|
+
WORK_TASK_TYPES,
|
|
149
|
+
TASK_TYPES
|
|
150
|
+
};
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RLOH7RDN.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@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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")
|