@wirecat/zoom-cli 0.63.0 → 0.65.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 +3 -0
- package/dist/answer-entities.d.ts +13 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +5 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answers.d.ts +8 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +2 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/bin/zm.js +6 -2
- package/dist/bundle/{all-profiles-CGGNBINU.js → all-profiles-SKMLZJSY.js} +8 -8
- package/dist/bundle/answer-policy-BHDNSJWX.js +96 -0
- package/dist/bundle/{anthropic-KVWPIHFG.js → anthropic-TVHK7CY2.js} +4 -4
- package/dist/bundle/{app-server-NKKFBTQN.js → app-server-44ASFH47.js} +53 -52
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-O4WHGL2F.js} +2 -2
- package/dist/bundle/{bun-sqlite-FWNCLOAR.js → bun-sqlite-NS32GMM4.js} +3 -3
- package/dist/bundle/{chunk-M6FCCVYZ.js → chunk-24F7JBLY.js} +72 -4
- package/dist/bundle/{chunk-4OQVRDTG.js → chunk-25IDWPEN.js} +166 -96
- package/dist/bundle/{chunk-QLQ7VVLK.js → chunk-266WOOB3.js} +4 -4
- package/dist/bundle/{chunk-ECXRRW7J.js → chunk-2H5SXK7K.js} +57 -27
- package/dist/bundle/{chunk-YI6ZNDPC.js → chunk-37PHGASE.js} +2 -2
- package/dist/bundle/{chunk-URJZK4GX.js → chunk-3CZIWGZ6.js} +1 -1
- package/dist/bundle/{chunk-6URISMGR.js → chunk-5NGOP4EZ.js} +125 -35
- package/dist/bundle/{chunk-IOUPXUFH.js → chunk-6CS7ETBK.js} +4496 -386
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-7SQJCKR6.js} +1 -1
- package/dist/bundle/{chunk-EG7HC4EC.js → chunk-A6OA2EH2.js} +2 -2
- package/dist/bundle/{chunk-QUWMFBMS.js → chunk-AMMD6YCJ.js} +49 -11
- package/dist/bundle/chunk-BLT3LR3U.js +34 -0
- package/dist/bundle/{chunk-MI3JK6MW.js → chunk-BNXH73OU.js} +10 -10
- package/dist/bundle/{chunk-GOESXUJQ.js → chunk-BWRBALXG.js} +3 -3
- package/dist/bundle/{chunk-6SPWQCJF.js → chunk-C6BG57FA.js} +11 -11
- package/dist/bundle/{chunk-CXPHUOJR.js → chunk-CNEE6TPE.js} +26 -13
- package/dist/bundle/{chunk-RWG44LQD.js → chunk-CVCRQW3A.js} +35 -35
- package/dist/bundle/{chunk-FAOLCUKV.js → chunk-DNCKH7CO.js} +17 -17
- package/dist/bundle/{chunk-LTE6WH22.js → chunk-DYJXAY7Q.js} +26 -25
- package/dist/bundle/{chunk-IOCS5FXW.js → chunk-EA63UGWE.js} +2 -2
- package/dist/bundle/{chunk-5LMQTEU5.js → chunk-ERPRAYA7.js} +5 -5
- package/dist/bundle/{chunk-KMQUZ4YM.js → chunk-FYJL276J.js} +3 -3
- package/dist/bundle/{chunk-AMIIU3UZ.js → chunk-FYM27FCG.js} +32 -9
- package/dist/bundle/{chunk-NQCFUYC2.js → chunk-GBZF4IIP.js} +10 -9
- package/dist/bundle/{chunk-DIXC56OU.js → chunk-GEX4V5TM.js} +4 -4
- package/dist/bundle/{chunk-4OTXE6CF.js → chunk-GMTXCFI7.js} +683 -504
- package/dist/bundle/{chunk-TILW3EJY.js → chunk-GXCNCMUY.js} +2865 -924
- package/dist/bundle/{chunk-YJN4XYNA.js → chunk-H7762LDA.js} +2 -2
- package/dist/bundle/{chunk-JDJDVYGS.js → chunk-IPTI3Y2E.js} +6 -41
- package/dist/bundle/{chunk-SB47UAW2.js → chunk-JF7ZEUXU.js} +34 -26
- package/dist/bundle/{chunk-7AY3ADNV.js → chunk-K6ATTKQR.js} +13 -6
- package/dist/bundle/{chunk-6SK5SHCR.js → chunk-KYLS5QGC.js} +2 -2
- package/dist/bundle/{chunk-YF2PT5KA.js → chunk-KZE3G4ZT.js} +38 -36
- package/dist/bundle/{chunk-MIUPH3WA.js → chunk-LOL6JYYN.js} +211 -106
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-LPUFOWL3.js} +1 -1
- package/dist/bundle/{chunk-5NLFQ644.js → chunk-M6IDHQ7N.js} +6739 -4659
- package/dist/bundle/{chunk-M2WQWF3I.js → chunk-MH7AWCB4.js} +179 -50
- package/dist/bundle/{chunk-VFJ3MOIR.js → chunk-MIB5X2XW.js} +3 -3
- package/dist/bundle/{chunk-SLBMXXOW.js → chunk-MPKKIL3U.js} +15 -12
- package/dist/bundle/{chunk-BJPFWPKH.js → chunk-MRWIXUYT.js} +2 -2
- package/dist/bundle/{chunk-BNTAQADF.js → chunk-MZ6U6HNJ.js} +12 -3
- package/dist/bundle/{chunk-6R3GMSLR.js → chunk-NJSIHMAE.js} +2 -2
- package/dist/bundle/{chunk-5MYLM6SU.js → chunk-NNNEVWFF.js} +108 -41
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-NO24PJNW.js} +1 -1
- package/dist/bundle/{chunk-HIZQYFY3.js → chunk-OXUHTKO2.js} +8 -2
- package/dist/bundle/{chunk-3YBDRVOG.js → chunk-PV3UDPCI.js} +82 -6
- package/dist/bundle/{chunk-IK2OSV5C.js → chunk-QI7BZS2G.js} +8 -13
- package/dist/bundle/{chunk-2NAM2XQG.js → chunk-QLCYAQ66.js} +2 -2
- package/dist/bundle/{chunk-RUJBN7ZP.js → chunk-R5BAF5XE.js} +1 -1
- package/dist/bundle/{chunk-IR73ZZY6.js → chunk-RZLNHNSS.js} +8 -8
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-S4GDDO5S.js} +1 -1
- package/dist/bundle/{chunk-YFIUXE25.js → chunk-SQWRZZOQ.js} +3 -3
- package/dist/bundle/{chunk-EJFSS65P.js → chunk-T3KICUOK.js} +6 -6
- package/dist/bundle/{chunk-UD4FKICZ.js → chunk-TC7PD3LH.js} +4 -4
- package/dist/bundle/{chunk-YBMOFCY5.js → chunk-TUIEDVI6.js} +2 -2
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-U3ZUT557.js} +1 -1
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-U4RVOSX3.js} +1 -1
- package/dist/bundle/{chunk-BPMKLWHV.js → chunk-U5ASRBBF.js} +6 -4
- package/dist/bundle/{chunk-7CNRZSAV.js → chunk-UKU6MYUI.js} +4 -4
- package/dist/bundle/{chunk-72S5TXFN.js → chunk-UMHJZWZU.js} +9 -9
- package/dist/bundle/{chunk-TZE6WXID.js → chunk-UPJXN2CO.js} +10651 -9814
- package/dist/bundle/{chunk-NVC4VQ2B.js → chunk-VH4F2EK4.js} +1 -1
- package/dist/bundle/{chunk-SPJJCD2A.js → chunk-VJTGYBJJ.js} +18 -13
- package/dist/bundle/{chunk-MLNC5N7H.js → chunk-VW2SW7ME.js} +3 -3
- package/dist/bundle/{chunk-Q4ZE2LXE.js → chunk-WLSF3GCC.js} +2 -2
- package/dist/bundle/{chunk-N3KQ7XND.js → chunk-XJQB47IL.js} +4 -4
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-Y3EIK4XW.js} +1 -1
- package/dist/bundle/{chunk-7LQLJ7LW.js → chunk-Z5424QL6.js} +2 -2
- package/dist/bundle/{chunk-LXYC75D3.js → chunk-ZFNM3FNI.js} +199 -141
- package/dist/bundle/{chunk-D6FTCPXA.js → chunk-ZH743WNV.js} +41 -12
- package/dist/bundle/{chunk-XAXXEZZ5.js → chunk-ZOGYTDHG.js} +2 -2
- package/dist/bundle/{chunk-SEH7DBAM.js → chunk-ZREFYKUB.js} +7 -7
- package/dist/bundle/{chunk-2DPMYUWQ.js → chunk-ZXGRK44F.js} +14 -13
- package/dist/bundle/{cli-AHPIESAC.js → cli-FDO6CP6R.js} +124 -60
- package/dist/bundle/command-contract-O4FDXM4U.js +37 -0
- package/dist/bundle/config-UBHKZG3J.js +78 -0
- package/dist/bundle/{decode-ZU7WLMMV.js → decode-7SZI3TGZ.js} +3 -3
- package/dist/bundle/{dist-LTS7VI3S.js → dist-5GWUXW27.js} +18 -14
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-FMACRZQC.js} +2 -2
- package/dist/bundle/{embed-VWWOW7PP.js → embed-24YSXHLP.js} +4 -4
- package/dist/bundle/{embedder-T5GJC7M2.js → embedder-MEXN2TFB.js} +7 -7
- package/dist/bundle/{first-run-PX3SHPUU.js → first-run-OCVEJH63.js} +8 -8
- package/dist/bundle/first-screen-KJIU25MH.js +35 -0
- package/dist/bundle/{folders-VXMDFC2D.js → folders-DBAAMU26.js} +2 -2
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-E5FXYCWF.js} +1 -1
- package/dist/bundle/{main-APVJXUJE.js → main-EIUCXXDW.js} +17 -16
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-FUSDPAOL.js} +2 -2
- package/dist/bundle/{meetings-GHYNIOHG.js → meetings-JDTRGXZJ.js} +16 -6
- package/dist/bundle/{node-GFOH6FKP.js → node-4SNKUPXT.js} +2 -2
- package/dist/bundle/{node-sqlite-QXKSPHTP.js → node-sqlite-O4BAODFR.js} +9 -3
- package/dist/bundle/{oauth-A6I2OMDD.js → oauth-3YLHXGUW.js} +5 -5
- package/dist/bundle/{open-TQKCU447.js → open-QGRMSNM2.js} +3 -2
- package/dist/bundle/{openai-XE3BJXOI.js → openai-7PSCSTH7.js} +9 -9
- package/dist/bundle/{output-file-FQNFCUKE.js → output-file-J26UQKRA.js} +3 -3
- package/dist/bundle/{process-XVDX4SPD.js → process-HQZOTT6U.js} +1 -1
- package/dist/bundle/{program-QRKEXYDG.js → program-47DT7SHE.js} +75 -75
- package/dist/bundle/{prompt-ISYG5RWM.js → prompt-IUD7HCDC.js} +3 -3
- package/dist/bundle/{recognize-KENPECLZ.js → recognize-DMJJHHXF.js} +2 -2
- package/dist/bundle/{remote-ZP5XTDCC.js → remote-5WFSOVVB.js} +5 -5
- package/dist/bundle/{rerank-SG653RHT.js → rerank-UKQ65ECH.js} +5 -5
- package/dist/bundle/{run-log-HYKGQ42E.js → run-log-UGYL6NW2.js} +53 -53
- package/dist/bundle/{serve-6UJCZD7Z.js → serve-WAOSED3I.js} +9 -8
- package/dist/bundle/server-HAXN772R.js +66 -0
- package/dist/bundle/{server-ZAYEDPFR.js → server-NWZFNXC5.js} +42 -42
- package/dist/bundle/{services-KMH7XZPY.js → services-VPANRE72.js} +101 -28
- package/dist/bundle/{speech-LINBLG5E.js → speech-O6UNUDRW.js} +11 -11
- package/dist/bundle/{state-4RKZNHE7.js → state-BNE7I65A.js} +4 -4
- package/dist/bundle/{store-253N7NUC.js → store-4IIVSCJ4.js} +56 -19
- package/dist/bundle/{store-JTBHRQZK.js → store-QQH4FJXJ.js} +16 -13
- package/dist/bundle/store-connection-PPEQK2K3.js +76 -0
- package/dist/bundle/store-maintenance-command-JZXCT6NY.js +56 -0
- package/dist/bundle/{streaming-YW64OKKQ.js → streaming-S4EZB6P2.js} +4 -4
- package/dist/bundle/{tokens-DPBC2P3I.js → tokens-VCXIH7WZ.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +1 -0
- package/dist/local-transcription.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-V2KDPLDO.js +0 -96
- package/dist/bundle/chunk-2T7MUSDB.js +0 -3605
- package/dist/bundle/command-contract-HVLI3OKU.js +0 -38
- package/dist/bundle/config-3SFEGYZO.js +0 -78
- package/dist/bundle/first-screen-RAPEZG57.js +0 -36
- package/dist/bundle/server-AXE37E6Q.js +0 -66
- package/dist/bundle/store-connection-ID2ETC7F.js +0 -76
- package/dist/bundle/store-maintenance-command-XRNECVDU.js +0 -55
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZH743WNV.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -38,9 +38,12 @@ var SIGN_IN = [
|
|
|
38
38
|
["oauth.failed", "authentication_error", "the provider returned no offline refresh token"],
|
|
39
39
|
["oauth.revoke-failed", "outcome_unknown", "the provider did not confirm the revoke"],
|
|
40
40
|
["oauth.invalid", "authentication_error", "the saved sign-in cannot be read"],
|
|
41
|
-
["oauth.not-saved", "configuration_error", "the sign-in cannot be saved or read where it is kept"]
|
|
41
|
+
["oauth.not-saved", "configuration_error", "the sign-in cannot be saved or read where it is kept"],
|
|
42
|
+
["sign-in.client-file-open", "configuration_error", "other users of this computer can read the client file"],
|
|
43
|
+
["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"]
|
|
42
44
|
];
|
|
43
45
|
var OTHERS = [
|
|
46
|
+
["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
|
|
44
47
|
["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
|
|
45
48
|
[
|
|
46
49
|
"contract.unacknowledged-override",
|
|
@@ -58,6 +61,7 @@ var OTHERS = [
|
|
|
58
61
|
validation("extraction.text-too-long", "the text is too long for memory extraction"),
|
|
59
62
|
validation("file.locked", "another process holds the file's lock"),
|
|
60
63
|
["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
|
|
64
|
+
["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
|
|
61
65
|
["mirror.partial", "provider_error", "some mirrored files were not synced"],
|
|
62
66
|
["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
|
|
63
67
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
@@ -67,18 +71,62 @@ var OTHERS = [
|
|
|
67
71
|
["sync.partial", "provider_error", "some calendars did not sync; the next sync retries them"],
|
|
68
72
|
validation("event.conflict", "the event changed at the provider since the last sync; sync and try again"),
|
|
69
73
|
validation("event.notify-required", "the event has other attendees; say whether to notify them"),
|
|
74
|
+
validation("remind.window", "--due-within is outside 1m to 1d"),
|
|
75
|
+
validation("remind.running", "another events remind is running; this run did nothing"),
|
|
76
|
+
[
|
|
77
|
+
"remind.hook-failed",
|
|
78
|
+
"configuration_error",
|
|
79
|
+
"the reminder program failed for some events; the next run retries them"
|
|
80
|
+
],
|
|
81
|
+
["sync.failed", "provider_error", "the sync failed; the answer comes from what the store already holds"],
|
|
70
82
|
validation("event.repeat-invalid", "the repeat rule is outside the RFC 5545 subset the calendars take"),
|
|
71
83
|
validation("event.repeat-kind", "the series' rule holds a date or a time of the kind the event is leaving"),
|
|
72
84
|
validation("event.repeat-split", "the series cannot be split at this occurrence, or was split there already"),
|
|
73
85
|
validation("event.repeat-count", "a COUNT series is split only with a rule for its new part"),
|
|
74
86
|
validation("event.unmovable", "the provider keeps this kind of event on its calendar"),
|
|
87
|
+
validation("event.text-with-fields", "--text takes the whole event from its line, so no field option goes with it"),
|
|
88
|
+
validation("calendar.ambiguous", "two or more calendars have this name; name one by its id"),
|
|
89
|
+
validation("export.too-many", "the query finds more events than one export writes"),
|
|
90
|
+
validation("ics.not-icalendar", "the file is not iCalendar"),
|
|
91
|
+
validation("ics.no-events", "the file holds no event that can be imported"),
|
|
92
|
+
validation("ics.too-many", "the file holds more events than one import sends"),
|
|
93
|
+
validation("ics.too-large", "the file is larger than one import reads"),
|
|
75
94
|
["calendar.read-only", "permission_error", "the calendar takes no new events from this account"],
|
|
95
|
+
validation("feed.address-invalid", "a feed address is an http, https or webcal URL with no user or password in it"),
|
|
96
|
+
validation("feed.duplicate", "this profile follows a feed at this address already"),
|
|
97
|
+
validation("feed.not-a-feed", "the calendar is not a feed this profile follows"),
|
|
98
|
+
validation("feed.too-large", "the feed is larger than one sync reads"),
|
|
99
|
+
validation("feed.redirect-refused", "the feed sent the request on to an address that is not https"),
|
|
100
|
+
["feed.no-address", "configuration_error", "the feed's address is no longer kept on this computer"],
|
|
101
|
+
["feed.refused", "provider_error", "the feed's server refused the request"],
|
|
102
|
+
["feed.gone", "not_found", "the feed's server has no feed at this address any more"],
|
|
103
|
+
["feed.timeout", "timeout", "the feed's server did not answer in time"],
|
|
104
|
+
["feed.unreachable", "network_error", "the feed's server could not be reached"],
|
|
105
|
+
validation("busy.feed", "a feed calendar has no busy times to ask; read its events with events list"),
|
|
106
|
+
["calendar.unsynced", "not_found", "the calendar account has no synced calendar in the store"],
|
|
107
|
+
["calendar.sync-incomplete", "not_found", "a synced calendar's sync never finished or is mid-round"],
|
|
108
|
+
["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
|
|
109
|
+
["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
|
|
110
|
+
["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
|
|
111
|
+
["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
|
|
76
112
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
77
113
|
validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
|
|
78
114
|
["search.offline", "permission_error", "search --backend server asks the provider; --offline was given"],
|
|
79
115
|
validation("search.no-calendars", "no calendar of this profile syncs yet, so the provider has nothing to search"),
|
|
80
116
|
validation("search.server-options", "search --backend server takes neither --exact, --cursor nor --newest"),
|
|
81
117
|
validation("search.one-backend", "search answers from one backend at a time: archive or server"),
|
|
118
|
+
["search.server-not-allowed", "permission_error", "the profile does not allow messages.server-search"],
|
|
119
|
+
validation("search.server-no-criteria", "the query has nothing the server can search, so only the store is read"),
|
|
120
|
+
["search.server-unsupported", "provider_error", "this source's server cannot search"],
|
|
121
|
+
["search.server-rate-limited", "rate_limited", "the server refused a search as too many requests"],
|
|
122
|
+
["search.server-failed", "provider_unavailable", "the server did not answer a search"],
|
|
123
|
+
["search.server-timeout", "timeout", "the server did not answer within --server-time"],
|
|
124
|
+
["search.server-capped", "outcome_unknown", "the server found more than one search reads, or a branch was not sent"],
|
|
125
|
+
[
|
|
126
|
+
"search.server-partial",
|
|
127
|
+
"outcome_unknown",
|
|
128
|
+
"a message the server found was stored without its attachments; the next sync reads it whole"
|
|
129
|
+
],
|
|
82
130
|
validation("store.refused", "the local store refused the document text"),
|
|
83
131
|
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
84
132
|
[
|
|
@@ -108,12 +156,26 @@ var OTHERS = [
|
|
|
108
156
|
],
|
|
109
157
|
validation("name.invalid", "the name is not valid"),
|
|
110
158
|
validation("output.choose-fields", "at a terminal, --json names the fields it prints"),
|
|
159
|
+
validation("output.conflict", "two output switches ask for different output"),
|
|
111
160
|
validation("output.one-object", "a report is one JSON object; --jsonl streams lists only"),
|
|
112
161
|
validation("output.unknown-field", "the answer has no field by that name"),
|
|
113
162
|
validation("name.taken", "the name is already used"),
|
|
114
163
|
validation("period.ambiguous", "the period can be read more than one way"),
|
|
115
164
|
validation("proposal.wrong-state", "the proposal is not in a state that allows this"),
|
|
165
|
+
validation("proposal.reason-required", "an agent deciding for the owner gives a reason"),
|
|
166
|
+
validation("proposal.decider-required", "a decision names who decides: the owner or an agent with a reason"),
|
|
167
|
+
validation("proposal.ids", "the proposal ids cannot be read"),
|
|
168
|
+
["proposal.own", "permission_error", "an agent never decides its own proposal"],
|
|
169
|
+
["proposal.owner-only", "permission_error", "only the owner decides this proposal"],
|
|
170
|
+
["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
|
|
171
|
+
["proposal.unknown-kind", "not_found", "no registered proposal kind holds this id"],
|
|
172
|
+
validation("relationship.exists", "a confirmed relationship already links them"),
|
|
116
173
|
validation("ranking.invalid", "the ranking is not valid"),
|
|
174
|
+
validation("ref.malformed", "the reference has a known kind but not its shape"),
|
|
175
|
+
validation("ref.unknown-kind", "the text names no kind of reference"),
|
|
176
|
+
validation("ref.wrong-kind", "the reference names another kind of thing than the argument takes"),
|
|
177
|
+
validation("ref.wrong-provider", "the reference belongs to another messenger; open it with that CLI"),
|
|
178
|
+
validation("ref.wrong-account", "the reference belongs to another account than this profile's"),
|
|
117
179
|
validation("selection.changed", "the stored selection changed meanwhile"),
|
|
118
180
|
validation("selection.invalid", "the selection is not valid"),
|
|
119
181
|
validation("search.kind", "the saved search belongs to another kind of search: messages or meetings"),
|
|
@@ -130,7 +192,11 @@ var OTHERS = [
|
|
|
130
192
|
validation("task.category-unknown", "the category is not in the task category list"),
|
|
131
193
|
validation("task.claimed", "someone else holds the task"),
|
|
132
194
|
validation("task.closed", "the task is already closed"),
|
|
195
|
+
["task.stale", "configuration_error", "the task changed since it was read; read it again"],
|
|
196
|
+
validation("task.column", "the task beside which it moves is in another column than the status asked for"),
|
|
133
197
|
validation("task.dependency-cycle", "the task would depend on itself"),
|
|
198
|
+
validation("task.has-subtasks", "the task has subtasks; move or detach them before it moves to another project"),
|
|
199
|
+
validation("task.is-subtask", "a subtask moves to another project only when it is detached from its parent in the same write"),
|
|
134
200
|
validation("task.duplicate-candidates", "open tasks may be the same job: attach to one, or add it as new"),
|
|
135
201
|
validation("task.certainty-required", "an agent closes a task with its certainty, 0 to 1"),
|
|
136
202
|
["task.pair-decided", "permission_error", "the owner already decided the pair; an agent does not change it"],
|
|
@@ -202,7 +268,9 @@ var DETAILS = [
|
|
|
202
268
|
"operation_ids",
|
|
203
269
|
"text_limit",
|
|
204
270
|
"store_refused_in",
|
|
271
|
+
"subtasks",
|
|
205
272
|
"partial_output",
|
|
273
|
+
"parent",
|
|
206
274
|
"path",
|
|
207
275
|
"permission",
|
|
208
276
|
"person_ids",
|
|
@@ -5,19 +5,20 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CVCRQW3A.js";
|
|
9
9
|
import {
|
|
10
10
|
filesPresent,
|
|
11
11
|
sharedModelsDirectory
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U5ASRBBF.js";
|
|
13
13
|
import {
|
|
14
|
+
PRIORITY_LABELS,
|
|
14
15
|
TASK_ORIGINS,
|
|
15
16
|
TASK_STATES,
|
|
16
17
|
TASK_TYPES
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AMMD6YCJ.js";
|
|
18
19
|
import {
|
|
19
20
|
TAG_TYPES
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TUIEDVI6.js";
|
|
21
22
|
import {
|
|
22
23
|
CliError,
|
|
23
24
|
array,
|
|
@@ -33,18 +34,18 @@ import {
|
|
|
33
34
|
strictObject,
|
|
34
35
|
traceIdOf,
|
|
35
36
|
writeSecurely
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
37
38
|
import {
|
|
38
39
|
__name
|
|
39
40
|
} from "./chunk-ZVVMGPBJ.js";
|
|
40
41
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
42
43
|
import { randomUUID } from "node:crypto";
|
|
43
44
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
44
45
|
import { userInfo } from "node:os";
|
|
45
46
|
import { join, sep } from "node:path";
|
|
46
47
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
48
49
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
49
50
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
50
51
|
var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -57,7 +58,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
57
58
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
58
59
|
}), "snakeLogger");
|
|
59
60
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
61
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
61
62
|
var diagnostic = {
|
|
62
63
|
event: true,
|
|
63
64
|
operation: true,
|
|
@@ -127,7 +128,7 @@ var LOG_ATTRIBUTES = [
|
|
|
127
128
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
128
129
|
].sort();
|
|
129
130
|
|
|
130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
131
132
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
132
133
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
133
134
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -480,7 +481,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
480
481
|
};
|
|
481
482
|
}, "metadataOf");
|
|
482
483
|
|
|
483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
484
485
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
485
486
|
import { randomBytes } from "node:crypto";
|
|
486
487
|
var scopes = new AsyncLocalStorage();
|
|
@@ -518,7 +519,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
518
519
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
519
520
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
520
521
|
|
|
521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
522
523
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
523
524
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
524
525
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -532,7 +533,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
532
533
|
return ms;
|
|
533
534
|
}, "parseDuration");
|
|
534
535
|
|
|
535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
536
537
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
537
538
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
538
539
|
messageId: message.id,
|
|
@@ -638,7 +639,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
|
|
|
638
639
|
}, "guardedWrite");
|
|
639
640
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
640
641
|
|
|
641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
642
643
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
643
644
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
644
645
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -797,61 +798,54 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
797
798
|
var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
|
|
798
799
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
799
800
|
|
|
800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
801
|
-
|
|
802
|
-
var
|
|
803
|
-
var
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
throw new CliError("validation_error", `no image model ${id2} \u2014 one of: ${IMAGE_MODELS.map((model) => model.id).join(", ")}`);
|
|
847
|
-
}
|
|
848
|
-
return found;
|
|
849
|
-
}, "imageModel");
|
|
850
|
-
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
851
|
-
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
852
|
-
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
802
|
+
var HISTORY_MAX_DAYS = 1095;
|
|
803
|
+
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
804
|
+
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
805
|
+
var historyWindow = /* @__PURE__ */ __name((shape, limits, now) => {
|
|
806
|
+
const group = shape !== void 0 && shape.kind !== "dialog" && shape.kind !== "saved";
|
|
807
|
+
if (group && (shape.participantsCount ?? 0) > limits.groupMembersMax)
|
|
808
|
+
return { skip: "group_too_large", members: shape.participantsCount ?? 0 };
|
|
809
|
+
const days2 = group ? limits.groupDays : limits.dialogDays;
|
|
810
|
+
return { keepFrom: now - Math.min(days2, HISTORY_MAX_DAYS) * DAY_MS2 };
|
|
811
|
+
}, "historyWindow");
|
|
812
|
+
var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now = Date.now()) => {
|
|
813
|
+
const skipped = /* @__PURE__ */ new Map();
|
|
814
|
+
if (!batch.messages?.length)
|
|
815
|
+
return { batch, skipped };
|
|
816
|
+
const named = new Map((batch.chats ?? []).map((chat) => [chat.id, chat]));
|
|
817
|
+
const windows = /* @__PURE__ */ new Map();
|
|
818
|
+
const windowOf = /* @__PURE__ */ __name((chatId) => {
|
|
819
|
+
if (!windows.has(chatId)) {
|
|
820
|
+
const chat = named.get(chatId);
|
|
821
|
+
const shape = chat ? { kind: chat.kind, participantsCount: chat.participantsCount ?? null } : shapes(chatId);
|
|
822
|
+
windows.set(chatId, included(chatId) ? void 0 : historyWindow(shape, limits, now));
|
|
823
|
+
}
|
|
824
|
+
return windows.get(chatId);
|
|
825
|
+
}, "windowOf");
|
|
826
|
+
const messages = batch.messages.filter((message) => {
|
|
827
|
+
const window = windowOf(message.chatId);
|
|
828
|
+
if (window === void 0)
|
|
829
|
+
return true;
|
|
830
|
+
const at = Date.parse(message.timestamp);
|
|
831
|
+
if ("keepFrom" in window && !(at < window.keepFrom))
|
|
832
|
+
return true;
|
|
833
|
+
const reason = "skip" in window ? window.skip : "older_than_window";
|
|
834
|
+
const held = skipped.get(message.chatId);
|
|
835
|
+
const iso = new Date(at).toISOString();
|
|
836
|
+
skipped.set(message.chatId, {
|
|
837
|
+
reason,
|
|
838
|
+
messages: (held?.messages ?? 0) + 1,
|
|
839
|
+
oldestAt: held && held.oldestAt < iso ? held.oldestAt : iso,
|
|
840
|
+
newestAt: held && held.newestAt > iso ? held.newestAt : iso,
|
|
841
|
+
..."skip" in window ? { members: window.members } : { keptFrom: new Date(window.keepFrom).toISOString() }
|
|
842
|
+
});
|
|
843
|
+
return false;
|
|
844
|
+
});
|
|
845
|
+
return { batch: { ...batch, messages }, skipped };
|
|
846
|
+
}, "limitBatch");
|
|
853
847
|
|
|
854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
855
849
|
var closeSuggestion = strictObject({
|
|
856
850
|
as: picklist(["done", "dismissed"]),
|
|
857
851
|
/** The agent's name. */
|
|
@@ -872,12 +866,28 @@ var task = strictObject({
|
|
|
872
866
|
state: picklist(TASK_STATES),
|
|
873
867
|
origin: optional(picklist(TASK_ORIGINS)),
|
|
874
868
|
project: optional(nullable(text)),
|
|
869
|
+
/** The project's key and name, as `tasks counts` names it. */
|
|
870
|
+
project_key: optional(nullable(text)),
|
|
871
|
+
project_name: optional(nullable(text)),
|
|
872
|
+
/** Who added it: the owner, or an agent by its bot name. */
|
|
873
|
+
created_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() }))),
|
|
875
874
|
account: optional(text),
|
|
876
875
|
/** The chat it came from, as a `chat:` reference. */
|
|
877
876
|
chat: optional(nullable(reference)),
|
|
878
877
|
/** The message it came from. */
|
|
879
878
|
source_message: optional(nullable(reference)),
|
|
879
|
+
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
880
880
|
priority: optional(nullable(number())),
|
|
881
|
+
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
882
|
+
/** The agent working on it, apart from its assignees and its claim. */
|
|
883
|
+
agent: optional(nullable(text)),
|
|
884
|
+
/** Give it back with `--revision` to refuse a write made on a stale copy. */
|
|
885
|
+
revision: optional(number()),
|
|
886
|
+
assignments: optional(array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) }))),
|
|
887
|
+
/** Open work whose blocked-by tasks are all done. */
|
|
888
|
+
ready: optional(boolean()),
|
|
889
|
+
/** The blocked-by tasks not done yet: open (any open state), dismissed, or unavailable. */
|
|
890
|
+
blocked_by: optional(array(strictObject({ task: reference, state: picklist(["open", "dismissed", "unavailable"]) }))),
|
|
881
891
|
parent: optional(nullable(reference)),
|
|
882
892
|
due_at: optional(nullable(time)),
|
|
883
893
|
closed_at: optional(nullable(time)),
|
|
@@ -893,7 +903,7 @@ var task = strictObject({
|
|
|
893
903
|
updated_at: optional(time)
|
|
894
904
|
});
|
|
895
905
|
|
|
896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
897
907
|
var agendaChat = strictObject({
|
|
898
908
|
chat: reference,
|
|
899
909
|
title: nullable(text),
|
|
@@ -963,22 +973,7 @@ var agenda = strictObject({
|
|
|
963
973
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
964
974
|
});
|
|
965
975
|
|
|
966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
967
|
-
var conversation = strictObject({
|
|
968
|
-
id,
|
|
969
|
-
chat: reference,
|
|
970
|
-
/** The message it starts with. */
|
|
971
|
-
first_message: reference,
|
|
972
|
-
started_at: time,
|
|
973
|
-
ended_at: time,
|
|
974
|
-
messages_count: count,
|
|
975
|
-
/** How many people wrote in it. */
|
|
976
|
-
senders_count: count,
|
|
977
|
-
built_at: time,
|
|
978
|
-
rules_version: count
|
|
979
|
-
});
|
|
980
|
-
|
|
981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
982
977
|
var attachment = strictObject({
|
|
983
978
|
/** The message it came with, as a locator; absent inside that message. */
|
|
984
979
|
message: optional(reference),
|
|
@@ -1014,8 +1009,24 @@ var attachment = strictObject({
|
|
|
1014
1009
|
url: optional(text)
|
|
1015
1010
|
}))))
|
|
1016
1011
|
});
|
|
1012
|
+
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
1017
1013
|
|
|
1018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
1015
|
+
var conversation = strictObject({
|
|
1016
|
+
id,
|
|
1017
|
+
chat: reference,
|
|
1018
|
+
/** The message it starts with. */
|
|
1019
|
+
first_message: reference,
|
|
1020
|
+
started_at: time,
|
|
1021
|
+
ended_at: time,
|
|
1022
|
+
messages_count: count,
|
|
1023
|
+
/** How many people wrote in it. */
|
|
1024
|
+
senders_count: count,
|
|
1025
|
+
built_at: time,
|
|
1026
|
+
rules_version: count
|
|
1027
|
+
});
|
|
1028
|
+
|
|
1029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
1019
1030
|
var tagging = strictObject({
|
|
1020
1031
|
tag: text,
|
|
1021
1032
|
type: picklist(TAG_TYPES),
|
|
@@ -1028,7 +1039,61 @@ var tagging = strictObject({
|
|
|
1028
1039
|
created_at: time
|
|
1029
1040
|
});
|
|
1030
1041
|
|
|
1031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
1043
|
+
import { join as join2 } from "node:path";
|
|
1044
|
+
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
1045
|
+
var IMAGE_MODELS = [
|
|
1046
|
+
{
|
|
1047
|
+
id: "clip-b32",
|
|
1048
|
+
title: "CLIP ViT-B/32, 8-bit",
|
|
1049
|
+
languages: "English only: translate a query before searching",
|
|
1050
|
+
licence: "MIT",
|
|
1051
|
+
dims: 512,
|
|
1052
|
+
key: "local:clip-b32:512",
|
|
1053
|
+
maxTokens: 77,
|
|
1054
|
+
vision: "onnx/vision_model_quantized.onnx",
|
|
1055
|
+
text: "onnx/text_model_quantized.onnx",
|
|
1056
|
+
files: [
|
|
1057
|
+
{
|
|
1058
|
+
name: "onnx/vision_model_quantized.onnx",
|
|
1059
|
+
url: clip("onnx/vision_model_quantized.onnx"),
|
|
1060
|
+
sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
|
|
1061
|
+
bytes: 89117001
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
name: "onnx/text_model_quantized.onnx",
|
|
1065
|
+
url: clip("onnx/text_model_quantized.onnx"),
|
|
1066
|
+
sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
|
|
1067
|
+
bytes: 64504507
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
name: "tokenizer.json",
|
|
1071
|
+
url: clip("tokenizer.json"),
|
|
1072
|
+
sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
|
|
1073
|
+
bytes: 2224119
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
name: "tokenizer_config.json",
|
|
1077
|
+
url: clip("tokenizer_config.json"),
|
|
1078
|
+
sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
|
|
1079
|
+
bytes: 775
|
|
1080
|
+
}
|
|
1081
|
+
]
|
|
1082
|
+
}
|
|
1083
|
+
];
|
|
1084
|
+
var DEFAULT_IMAGE_MODEL = "clip-b32";
|
|
1085
|
+
var imageModel = /* @__PURE__ */ __name((id2) => {
|
|
1086
|
+
const found = IMAGE_MODELS.find((model) => model.id === id2);
|
|
1087
|
+
if (!found) {
|
|
1088
|
+
throw new CliError("validation_error", `no image model ${id2} \u2014 one of: ${IMAGE_MODELS.map((model) => model.id).join(", ")}`);
|
|
1089
|
+
}
|
|
1090
|
+
return found;
|
|
1091
|
+
}, "imageModel");
|
|
1092
|
+
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
1093
|
+
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
1094
|
+
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
1095
|
+
|
|
1096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
1032
1097
|
var WEIGHTS = {
|
|
1033
1098
|
bot: 3,
|
|
1034
1099
|
scam: 3,
|
|
@@ -1095,19 +1160,24 @@ export {
|
|
|
1095
1160
|
rerankModel,
|
|
1096
1161
|
vectorModelKey,
|
|
1097
1162
|
meaningFloor,
|
|
1163
|
+
HISTORY_MAX_DAYS,
|
|
1164
|
+
DEFAULT_HISTORY_LIMITS,
|
|
1165
|
+
historyWindow,
|
|
1166
|
+
limitBatch,
|
|
1167
|
+
closeSuggestion,
|
|
1168
|
+
task,
|
|
1169
|
+
agenda,
|
|
1170
|
+
attachment,
|
|
1171
|
+
hitFile,
|
|
1172
|
+
WEIGHTS,
|
|
1173
|
+
LINK,
|
|
1174
|
+
oddName,
|
|
1175
|
+
conversation,
|
|
1176
|
+
tagging,
|
|
1098
1177
|
IMAGE_MODELS,
|
|
1099
1178
|
DEFAULT_IMAGE_MODEL,
|
|
1100
1179
|
imageModel,
|
|
1101
1180
|
imageModelsDirectory,
|
|
1102
1181
|
placedImage,
|
|
1103
|
-
isImageModelInstalled
|
|
1104
|
-
WEIGHTS,
|
|
1105
|
-
LINK,
|
|
1106
|
-
oddName,
|
|
1107
|
-
closeSuggestion,
|
|
1108
|
-
task,
|
|
1109
|
-
agenda,
|
|
1110
|
-
conversation,
|
|
1111
|
-
attachment,
|
|
1112
|
-
tagging
|
|
1182
|
+
isImageModelInstalled
|
|
1113
1183
|
};
|
|
@@ -2,7 +2,7 @@ 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-JF7ZEUXU.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|