@wirecat/hubspot-cli 0.4.0 → 0.5.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/CHANGELOG.md +16 -0
- package/README.md +2 -2
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-RBQMA24N.js +40 -0
- package/dist/bundle/{all-profiles-JVEE4PXX.js → all-profiles-PGFXLOKN.js} +11 -11
- package/dist/bundle/{anthropic-6HT57GNF.js → anthropic-LPOJ3TYF.js} +5 -5
- package/dist/bundle/{app-server-FOBFF6G6.js → app-server-EYWGCSRY.js} +68 -68
- package/dist/bundle/{bun-GW443QB3.js → bun-ZJOOKIIW.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGIAICDN.js → bun-sqlite-Y6KKH2OW.js} +6 -6
- package/dist/bundle/{chunk-RFGIUCKU.js → chunk-23CLSKY7.js} +3 -3
- package/dist/bundle/{chunk-ETKLP4VE.js → chunk-34HDRZIL.js} +14 -14
- package/dist/bundle/{chunk-PQUZ2YDC.js → chunk-3CHJYWA2.js} +6 -6
- package/dist/bundle/{chunk-7QH5BZUG.js → chunk-4RZ4DUQT.js} +3 -3
- package/dist/bundle/{chunk-NLZADZ4F.js → chunk-5ENY4POG.js} +61 -61
- package/dist/bundle/{chunk-W5X37TBC.js → chunk-5HGS65I3.js} +2 -2
- package/dist/bundle/{chunk-HPRKSL5S.js → chunk-5UPNDUAA.js} +2 -2
- package/dist/bundle/{chunk-LS4S7PAP.js → chunk-5WADRBQG.js} +3 -3
- package/dist/bundle/{chunk-DBPFHJXX.js → chunk-6PWRJGX4.js} +4 -4
- package/dist/bundle/{chunk-Q7DIEU6L.js → chunk-6S422S22.js} +7 -7
- package/dist/bundle/{chunk-E33KM3DB.js → chunk-7Q64D56R.js} +11 -11
- package/dist/bundle/{chunk-HM72O37C.js → chunk-7RIE3DAW.js} +174 -161
- package/dist/bundle/{chunk-LX7QMRRG.js → chunk-A5UTNGI4.js} +13 -13
- package/dist/bundle/{chunk-FWW2CUXH.js → chunk-ABPZOI3C.js} +4 -4
- package/dist/bundle/{chunk-MQACXJLG.js → chunk-AHZQMSXW.js} +10 -10
- package/dist/bundle/{chunk-3BM6KBWP.js → chunk-AIQT2GGK.js} +19 -19
- package/dist/bundle/{chunk-ATGD64VO.js → chunk-AVBKXCEY.js} +8 -8
- package/dist/bundle/{chunk-3SRGN5MQ.js → chunk-BCW7DAVV.js} +2 -2
- package/dist/bundle/{chunk-QNQ4V4UT.js → chunk-BGUGTMTS.js} +8 -8
- package/dist/bundle/{chunk-EU7AVWSX.js → chunk-BH5FEFZB.js} +2 -2
- package/dist/bundle/{chunk-XDDTJYGA.js → chunk-BVK4GUUI.js} +1254 -803
- package/dist/bundle/{chunk-HQYJ66ZX.js → chunk-BW7NPFVC.js} +18 -8
- package/dist/bundle/{chunk-QJHRRJKD.js → chunk-CWCJEAHZ.js} +3 -3
- package/dist/bundle/{chunk-Z3YOKGVZ.js → chunk-DDMBPYHP.js} +2 -2
- package/dist/bundle/{chunk-3MUHCLRY.js → chunk-DEUCWBBH.js} +81 -5
- package/dist/bundle/{chunk-GJSHLF43.js → chunk-DJUUQG6Y.js} +8 -8
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-FOLKK6FW.js → chunk-EPBHJMF6.js} +20 -14
- package/dist/bundle/{chunk-VMF2UIQI.js → chunk-GZJP3KQQ.js} +3 -4
- package/dist/bundle/{chunk-YYYRE4AV.js → chunk-HBFSGL5E.js} +26 -26
- package/dist/bundle/{chunk-NL3RKJR6.js → chunk-HPRGUUHY.js} +1 -1
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-HPSESLOZ.js} +1 -1
- package/dist/bundle/{chunk-WBUVNKHJ.js → chunk-I334AT2H.js} +7 -7
- package/dist/bundle/{chunk-K4DWBOO6.js → chunk-K3WCBNH4.js} +6 -6
- package/dist/bundle/{chunk-XCDRFC6G.js → chunk-K5S7MKBB.js} +17 -17
- package/dist/bundle/{chunk-3LMW7U7F.js → chunk-KAW5VEER.js} +21 -8
- package/dist/bundle/{chunk-3MPMYAII.js → chunk-KC4ILAKO.js} +1 -1
- package/dist/bundle/{chunk-UHHXZKB2.js → chunk-KRTXJMCD.js} +16 -16
- package/dist/bundle/{chunk-5KLNBGPU.js → chunk-KXWRVLSU.js} +1 -1
- package/dist/bundle/{chunk-7OJ43BAH.js → chunk-L4SVHQ7H.js} +7 -7
- package/dist/bundle/{chunk-2BCWK5BF.js → chunk-L6WSFVTD.js} +8 -8
- package/dist/bundle/{chunk-A6PVEUGN.js → chunk-LWS5AO3H.js} +17 -17
- package/dist/bundle/{chunk-OLDIP4CV.js → chunk-LXLXF2OE.js} +3 -3
- package/dist/bundle/{chunk-QV4GDVBN.js → chunk-MENMD5Y5.js} +8 -8
- package/dist/bundle/{chunk-EBJYK7UM.js → chunk-MFWECOO3.js} +77 -62
- package/dist/bundle/{chunk-TAF4PKDS.js → chunk-MGMLSPIY.js} +1 -1
- package/dist/bundle/{chunk-F4ZLRS4B.js → chunk-MKBQFD37.js} +1 -1
- package/dist/bundle/{chunk-QIFCH5DZ.js → chunk-MPNMEWHA.js} +341 -278
- package/dist/bundle/{chunk-XMWMA2N5.js → chunk-MPQ4SPZG.js} +46 -32
- package/dist/bundle/{chunk-V23OHBGM.js → chunk-MW4ROXQ6.js} +3 -3
- package/dist/bundle/{chunk-QODPEZC5.js → chunk-NEDV6RCQ.js} +10 -3
- package/dist/bundle/{chunk-F3HJ2E3P.js → chunk-NEP67GLY.js} +6 -6
- package/dist/bundle/{chunk-5G4L6NQJ.js → chunk-NKIKMG33.js} +35 -35
- package/dist/bundle/{chunk-T3GZKV5A.js → chunk-NLPGUYCG.js} +12 -12
- package/dist/bundle/{chunk-6NUXFVJQ.js → chunk-OCISQFMW.js} +1 -1
- package/dist/bundle/{chunk-PKFLSX5F.js → chunk-ODRF47VS.js} +8 -8
- package/dist/bundle/{chunk-WATDMTDC.js → chunk-OFOA6VJ2.js} +3 -3
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-JWO3PB5Z.js → chunk-POTS24SH.js} +18 -18
- package/dist/bundle/{chunk-5ZVYIA56.js → chunk-PPQRWFJZ.js} +5 -5
- package/dist/bundle/{chunk-DG4RBKIV.js → chunk-QCHW7R7L.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-M25KVDHA.js → chunk-QIHJKE4K.js} +7 -7
- package/dist/bundle/{chunk-WLFYEAZ6.js → chunk-QLFD3MOL.js} +402 -390
- package/dist/bundle/{chunk-N4EIJ53V.js → chunk-QPTHEZZ5.js} +2 -2
- package/dist/bundle/{chunk-PMJCZIV4.js → chunk-R7ZOCDNG.js} +1 -1
- package/dist/bundle/{chunk-AT43MYQL.js → chunk-RJBKDZGV.js} +8 -8
- package/dist/bundle/{chunk-UIWWAT3C.js → chunk-RZS7N3OZ.js} +7 -7
- package/dist/bundle/{chunk-Z4PY5BDP.js → chunk-SBNZYRVZ.js} +4 -4
- package/dist/bundle/{chunk-4OPN3KCN.js → chunk-STTHRJBX.js} +5 -5
- package/dist/bundle/{chunk-VDAYIXV4.js → chunk-V5VMAHDQ.js} +6 -6
- package/dist/bundle/{chunk-JKNUCEII.js → chunk-VCYUYFIV.js} +1 -1
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-5OBVICFK.js → chunk-WDR77HPO.js} +15 -1
- package/dist/bundle/{chunk-6ULR7N3T.js → chunk-WEM4FZPM.js} +2 -2
- package/dist/bundle/{chunk-FK4LEJZM.js → chunk-WQZENAPE.js} +3 -3
- package/dist/bundle/{chunk-X5U7GLHD.js → chunk-WXEN6AXQ.js} +16 -3
- package/dist/bundle/{chunk-IED6MKPU.js → chunk-YJLJZMEA.js} +25 -25
- package/dist/bundle/{chunk-XJVFXHDI.js → chunk-YQBGPBYN.js} +2 -2
- package/dist/bundle/{chunk-BXZRSXBL.js → chunk-YZ5MULJM.js} +3 -3
- package/dist/bundle/{chunk-2Q2XIXDL.js → chunk-Z7FC6VVM.js} +1 -1
- package/dist/bundle/{chunk-5WKJFMC3.js → chunk-ZKPM53YG.js} +4 -4
- package/dist/bundle/{chunk-V2B2OWTC.js → chunk-ZLWQPUPB.js} +2 -2
- package/dist/bundle/{chunk-GOOXUCJW.js → chunk-ZMHD76RE.js} +2 -2
- package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
- package/dist/bundle/{command-server-entry-OJQ55UA2.js → command-server-entry-B7S5AUE6.js} +28 -28
- package/dist/bundle/{decode-CDQDRPRJ.js → decode-7L33C5UJ.js} +5 -5
- package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-BIGHHSXV.js} +8 -8
- package/dist/bundle/{echarts-GJ5JJG2A.js → echarts-CWR3QH55.js} +2 -2
- package/dist/bundle/{embed-BUQXGMKR.js → embed-GXQ3HOQ6.js} +6 -6
- package/dist/bundle/{embedder-FCX6LE4O.js → embedder-47OYXGLS.js} +9 -9
- package/dist/bundle/{failure-I6AAF5R5.js → failure-VMZOU5GZ.js} +2 -2
- package/dist/bundle/{first-run-RPYEXXQK.js → first-run-YVQQOUQG.js} +12 -12
- package/dist/bundle/first-screen-TU3KE2B5.js +40 -0
- package/dist/bundle/hubspot.js +27 -25
- package/dist/bundle/{instructions-LPVTPERS.js → instructions-QFS2MPK3.js} +1 -1
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
- package/dist/bundle/{meeting-model-TRGBEWCY.js → meeting-model-GLF2HVJG.js} +11 -11
- package/dist/bundle/{meeting-semantic-RSF5KNKD.js → meeting-semantic-RG56F4YX.js} +6 -6
- package/dist/bundle/{node-UAT3EIAP.js → node-3TSWTXGI.js} +2 -2
- package/dist/bundle/{node-sqlite-3HKDQNFD.js → node-sqlite-UPQCG7DJ.js} +7 -7
- package/dist/bundle/{oauth-DYW2NSZP.js → oauth-MCVEENW3.js} +7 -7
- package/dist/bundle/{open-KBRXJ5BC.js → open-JMUTKUYJ.js} +5 -5
- package/dist/bundle/{openai-YNCLRTSK.js → openai-HT7YDOK7.js} +15 -15
- package/dist/bundle/{process-63BB7LKP.js → process-7RC6DAGM.js} +1 -1
- package/dist/bundle/{program-VX52OB3O.js → program-3DLBMOEJ.js} +134 -114
- package/dist/bundle/{prompt-TWLJ3M2O.js → prompt-7EROPXPF.js} +5 -5
- package/dist/bundle/{recognize-GQ6DLGE7.js → recognize-B232GXD2.js} +4 -4
- package/dist/bundle/{remote-RKNSF3TT.js → remote-HGV64VRC.js} +9 -9
- package/dist/bundle/{rerank-H4HSGQUJ.js → rerank-5S6TDXHD.js} +7 -7
- package/dist/bundle/{schemas-LDK7O6VW.js → schemas-SB42IXEX.js} +1 -1
- package/dist/bundle/{serve-4ZNIAL7H.js → serve-D2WFCV6Z.js} +9 -9
- package/dist/bundle/{server-4G4QB3QN.js → server-4AXPTJPV.js} +60 -60
- package/dist/bundle/server-FFHVNABP.js +86 -0
- package/dist/bundle/{source-2UCNCCO7.js → source-DF63EC2B.js} +114 -86
- package/dist/bundle/{sqlite-runtime-C2JYC7JF.js → sqlite-runtime-DAFMZNLI.js} +6 -6
- package/dist/bundle/{state-3KDXCXHG.js → state-7OEBDXVV.js} +6 -6
- package/dist/bundle/{store-LXLG5HTS.js → store-2ZWSWF76.js} +24 -24
- package/dist/bundle/{store-J5FQBZYR.js → store-KC6US326.js} +22 -22
- package/dist/bundle/store-Q3ZKD4FJ.js +34 -0
- package/dist/bundle/store-maintenance-command-24A4GBRP.js +73 -0
- package/dist/bundle/surface-SPTM57EP.js +72 -0
- package/dist/bundle/writer-EQQ55HOS.js +86 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -2
- package/dist/config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/agent-NST4YXJR.js +0 -40
- package/dist/bundle/command-contract-LYX2QNIA.js +0 -40
- package/dist/bundle/first-screen-Y4EH3HZS.js +0 -40
- package/dist/bundle/meeting-combined-FEEVVUGC.js +0 -25
- package/dist/bundle/server-3IYIZEEQ.js +0 -86
- package/dist/bundle/store-2MNUHHZC.js +0 -32
- package/dist/bundle/store-maintenance-command-DDB7TR6V.js +0 -73
- package/dist/bundle/surface-ZTZANYKC.js +0 -72
- package/dist/bundle/writer-X7PGBLDH.js +0 -86
|
@@ -5,21 +5,28 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AIQT2GGK.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KAW5VEER.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError,
|
|
14
14
|
singleLine
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PMGAU6AP.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
21
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
22
|
-
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
22
|
+
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
23
|
+
"messages.delete",
|
|
24
|
+
"messages.scheduled.cancel",
|
|
25
|
+
"bot.messages.delete",
|
|
26
|
+
"topics.delete",
|
|
27
|
+
"chats.delete",
|
|
28
|
+
"chats.clear"
|
|
29
|
+
]);
|
|
23
30
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
24
31
|
var DEFAULT_PERMISSIONS = {
|
|
25
32
|
// Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
|
|
@@ -240,6 +247,9 @@ var NAMED_WRITE_KEYS = [
|
|
|
240
247
|
"messages.sync-first",
|
|
241
248
|
"messages.server-search",
|
|
242
249
|
"messages.press",
|
|
250
|
+
"messages.scheduled.cancel",
|
|
251
|
+
"messages.scheduled.edit",
|
|
252
|
+
"messages.scheduled.send",
|
|
243
253
|
"chats.start",
|
|
244
254
|
"chats.app",
|
|
245
255
|
"stats.messages.counters.sync",
|
|
@@ -443,7 +453,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
443
453
|
}
|
|
444
454
|
}, "assertRetentionEvidenceRead");
|
|
445
455
|
|
|
446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
447
457
|
var named = /* @__PURE__ */ __name((work) => {
|
|
448
458
|
try {
|
|
449
459
|
return work();
|
|
@@ -470,7 +480,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
470
480
|
return projectFields(value, fields);
|
|
471
481
|
}), "projectFields");
|
|
472
482
|
|
|
473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
474
484
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
475
485
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
476
486
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -506,7 +516,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
506
516
|
return value;
|
|
507
517
|
}, "atDetail");
|
|
508
518
|
|
|
509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/output.js
|
|
510
520
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
511
521
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
512
522
|
if (other)
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
timezoneOf,
|
|
5
5
|
zonedMoment
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5ENY4POG.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PMGAU6AP.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
15
15
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
|
|
16
16
|
try {
|
|
17
17
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PMGAU6AP.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -2,15 +2,63 @@ 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-5ENY4POG.js";
|
|
6
|
+
import {
|
|
7
|
+
readSharedSection,
|
|
8
|
+
sharedConfigPath,
|
|
9
|
+
writeSharedSection
|
|
10
|
+
} from "./chunk-RZS7N3OZ.js";
|
|
11
|
+
import {
|
|
12
|
+
storePath
|
|
13
|
+
} from "./chunk-WEM4FZPM.js";
|
|
6
14
|
import {
|
|
7
15
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KAW5VEER.js";
|
|
17
|
+
import {
|
|
18
|
+
isoTimestamp,
|
|
19
|
+
picklist,
|
|
20
|
+
pipe,
|
|
21
|
+
safeParse,
|
|
22
|
+
strictObject,
|
|
23
|
+
string
|
|
24
|
+
} from "./chunk-S4UUN6LD.js";
|
|
25
|
+
import {
|
|
26
|
+
CliError
|
|
27
|
+
} from "./chunk-PMGAU6AP.js";
|
|
9
28
|
import {
|
|
10
29
|
__name
|
|
11
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
31
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
|
|
33
|
+
var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
|
|
34
|
+
var SECTION = "chat_sending";
|
|
35
|
+
var Setting = strictObject({
|
|
36
|
+
mode: picklist(CHAT_SENDING_MODES),
|
|
37
|
+
at: pipe(string(), isoTimestamp())
|
|
38
|
+
});
|
|
39
|
+
var CHAT_SENDING_ASK_DETAILS = ["emails", "threads", "tokens", "host", "model", "estimated_cost_usd"];
|
|
40
|
+
var pathOf = /* @__PURE__ */ __name((env) => sharedConfigPath(storePath(env), env), "pathOf");
|
|
41
|
+
var readChatSending = /* @__PURE__ */ __name((env) => {
|
|
42
|
+
const section = readSharedSection(pathOf(env), SECTION);
|
|
43
|
+
if (section === void 0 || section === null)
|
|
44
|
+
return void 0;
|
|
45
|
+
const checked = safeParse(Setting, section);
|
|
46
|
+
return checked.success ? checked.output : { mode: "denied", at: (/* @__PURE__ */ new Date(0)).toISOString() };
|
|
47
|
+
}, "readChatSending");
|
|
48
|
+
var chatSendingMode = /* @__PURE__ */ __name((env) => readChatSending(env)?.mode ?? "ask", "chatSendingMode");
|
|
49
|
+
var writeChatSending = /* @__PURE__ */ __name((env, mode) => writeSharedSection(pathOf(env), SECTION, mode === "ask" ? void 0 : { mode, at: (/* @__PURE__ */ new Date()).toISOString() }), "writeChatSending");
|
|
50
|
+
var STRICTNESS = { allowed: 0, ask: 1, denied: 2 };
|
|
51
|
+
var loosens = /* @__PURE__ */ __name((from, to) => STRICTNESS[to] < STRICTNESS[from], "loosens");
|
|
52
|
+
var chatSendingCommand = /* @__PURE__ */ __name((command, mode) => `${command} models chats set ${mode}`, "chatSendingCommand");
|
|
53
|
+
var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
|
|
54
|
+
const mode = chatSendingMode(env);
|
|
55
|
+
if (mode === "denied")
|
|
56
|
+
throw new CliError("permission_error", `sending chat text to a model outside this computer is denied by the setting \`models chats\`; nothing was sent to ${host}, and --yes does not change that. Use a model on this computer, or ask the owner to run \`${chatSendingCommand(command, "ask")}\` (or \`allowed\`)`, { reason: "chat-sending.denied" });
|
|
57
|
+
return mode === "allowed";
|
|
58
|
+
}, "chatSendingAllowed");
|
|
59
|
+
var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
|
|
60
|
+
|
|
61
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
62
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
63
|
var QUERY = [
|
|
16
64
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -63,7 +111,15 @@ var SIGN_IN = [
|
|
|
63
111
|
"account-remove.folder-outside",
|
|
64
112
|
"configuration_error",
|
|
65
113
|
"the tool named a folder of its own outside the home folder"
|
|
66
|
-
]
|
|
114
|
+
],
|
|
115
|
+
["account-rename.unknown-profile", "not_found", "no profile by this name on this computer"],
|
|
116
|
+
["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
|
|
117
|
+
["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
|
|
118
|
+
["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
|
|
119
|
+
["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
|
|
120
|
+
["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
|
|
121
|
+
["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"],
|
|
122
|
+
["account-rename.config", "configuration_error", "the config file cannot be read"]
|
|
67
123
|
];
|
|
68
124
|
var PROVIDER_API = [
|
|
69
125
|
["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
|
|
@@ -213,6 +269,8 @@ var OTHERS = [
|
|
|
213
269
|
validation("mail.cursor-ahead", "an acknowledge cursor is past the newest stored email"),
|
|
214
270
|
["mail.holder-not-yours", "permission_error", "a run moves only the mark of the holder its schedule names"],
|
|
215
271
|
["mail.no-mark", "not_found", "the holder has no mark in the mailbox yet; its first review starts it"],
|
|
272
|
+
["mail.inbox-agent", "permission_error", "an agent sorts mail itself from review; inbox --offline lists"],
|
|
273
|
+
["mail.inbox-answer-invalid", "invalid_response", "the AI model's answer to inbox is not the JSON it asks for"],
|
|
216
274
|
["mail.reset-owner-only", "permission_error", "only the owner moves a holder's mark back"],
|
|
217
275
|
["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
|
|
218
276
|
["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
|
|
@@ -231,6 +289,13 @@ var OTHERS = [
|
|
|
231
289
|
"confirmation_required",
|
|
232
290
|
"the sync would delete more files than the guard allows; check them with --dry-run and allow them explicitly"
|
|
233
291
|
],
|
|
292
|
+
[
|
|
293
|
+
"mirror.too-many-replacements",
|
|
294
|
+
"confirmation_required",
|
|
295
|
+
"the sync would replace more files than the guard allows; check them with --dry-run and allow them explicitly"
|
|
296
|
+
],
|
|
297
|
+
validation("mirror.no-space", "the sync needs more free space than the local drive has"),
|
|
298
|
+
validation("mirror.bad-exclusion", "the exclusion is not a path pattern inside the mirror"),
|
|
234
299
|
[
|
|
235
300
|
"mirror.version-not-kept",
|
|
236
301
|
"provider_error",
|
|
@@ -721,6 +786,10 @@ var INPUT_FIELD_REASONS = defineReasons([
|
|
|
721
786
|
details: ["fields"]
|
|
722
787
|
}
|
|
723
788
|
]);
|
|
789
|
+
var DETAILED = {
|
|
790
|
+
"vocabulary.consolidation-over-budget": ["table"],
|
|
791
|
+
"chat-sending.ask": CHAT_SENDING_ASK_DETAILS
|
|
792
|
+
};
|
|
724
793
|
var REASONS = defineReasons([
|
|
725
794
|
...QUERY_REASONS,
|
|
726
795
|
...INPUT_FIELD_REASONS,
|
|
@@ -728,7 +797,7 @@ var REASONS = defineReasons([
|
|
|
728
797
|
reason,
|
|
729
798
|
code,
|
|
730
799
|
message,
|
|
731
|
-
details: reason
|
|
800
|
+
details: DETAILED[reason] ?? []
|
|
732
801
|
}))
|
|
733
802
|
]);
|
|
734
803
|
var DETAILS = [
|
|
@@ -823,6 +892,13 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
|
|
|
823
892
|
}, "failureContext");
|
|
824
893
|
|
|
825
894
|
export {
|
|
895
|
+
CHAT_SENDING_MODES,
|
|
896
|
+
readChatSending,
|
|
897
|
+
chatSendingMode,
|
|
898
|
+
writeChatSending,
|
|
899
|
+
loosens,
|
|
900
|
+
chatSendingAllowed,
|
|
901
|
+
chatSendingAskRefusal,
|
|
826
902
|
INPUT_FIELD_REASONS,
|
|
827
903
|
REASONS,
|
|
828
904
|
failureContext
|
|
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BW7NPFVC.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-POTS24SH.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePaths,
|
|
11
11
|
writeSecurely
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AIQT2GGK.js";
|
|
13
13
|
import {
|
|
14
14
|
array,
|
|
15
15
|
getDotPath,
|
|
@@ -32,12 +32,12 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
CliError,
|
|
34
34
|
visibleControls
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PMGAU6AP.js";
|
|
36
36
|
import {
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-ZVVMGPBJ.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
41
41
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
42
42
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
43
43
|
const { text, spans } = formatted;
|
|
@@ -97,11 +97,11 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
97
97
|
};
|
|
98
98
|
}, "visibleFormattedText");
|
|
99
99
|
|
|
100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
101
101
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
102
102
|
var encoder = new TextEncoder();
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
105
105
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
106
106
|
var LINK = /https?:\/\/\S+/i;
|
|
107
107
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -289,7 +289,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
289
289
|
}, "nextPoint");
|
|
290
290
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
291
291
|
|
|
292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
293
293
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
294
294
|
import { join } from "node:path";
|
|
295
295
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PMGAU6AP.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
annotateOption,
|
|
9
9
|
listOf,
|
|
10
10
|
sharedCommand
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7RIE3DAW.js";
|
|
12
12
|
import {
|
|
13
13
|
readMoment
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CWCJEAHZ.js";
|
|
15
15
|
import {
|
|
16
16
|
BACKENDS,
|
|
17
17
|
EVENT_QUERY,
|
|
@@ -51,15 +51,15 @@ import {
|
|
|
51
51
|
validateMeetingHitSearch,
|
|
52
52
|
validateMeetingPassage,
|
|
53
53
|
validateQuery
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-5ENY4POG.js";
|
|
55
55
|
import {
|
|
56
56
|
CliError
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-PMGAU6AP.js";
|
|
58
58
|
import {
|
|
59
59
|
__name
|
|
60
60
|
} from "./chunk-ZVVMGPBJ.js";
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
63
63
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
64
64
|
const found = readMoment(reference, flag, { ...at, now });
|
|
65
65
|
if (found === void 0)
|
|
@@ -88,7 +88,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
88
88
|
};
|
|
89
89
|
}, "dateWindow");
|
|
90
90
|
|
|
91
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
91
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
92
92
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
93
93
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
94
94
|
var minutes = /* @__PURE__ */ __name((text) => {
|
|
@@ -193,7 +193,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
193
193
|
}).description("the invitation text the service writes for a meeting"))).action(async (id, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id, signalled()), untrusted: ["invitation"] } }, command)));
|
|
194
194
|
}, "addMeetingManagementCommands");
|
|
195
195
|
|
|
196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
197
197
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
198
198
|
command.allowUnknownOption();
|
|
199
199
|
const parse = command.parseOptions.bind(command);
|
|
@@ -213,7 +213,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
213
213
|
return command;
|
|
214
214
|
}, "queryWordsAfterOptions");
|
|
215
215
|
|
|
216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
217
217
|
var count = /* @__PURE__ */ __name((value) => {
|
|
218
218
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
219
219
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -255,7 +255,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
255
255
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
256
256
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
257
257
|
|
|
258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
259
259
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
260
260
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
261
261
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -278,7 +278,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
278
278
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
279
279
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
280
280
|
|
|
281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
282
282
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
283
283
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
284
284
|
if (meta.timezone)
|
|
@@ -357,7 +357,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
357
357
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
358
358
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
359
359
|
|
|
360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
361
361
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
362
362
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
363
363
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
@@ -543,7 +543,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
543
543
|
}, "addMeetingCommandsDefinition");
|
|
544
544
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
545
545
|
|
|
546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
547
547
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
548
548
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
549
549
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -556,6 +556,11 @@ var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
|
556
556
|
${fieldsHelp({ ...query, fields: shown }, LIST_QUERY_GUIDE)}`);
|
|
557
557
|
return command;
|
|
558
558
|
}, "withQuery");
|
|
559
|
+
var withWords = /* @__PURE__ */ __name((command, registry, words) => {
|
|
560
|
+
annotate(command, { query: defineQuery(registry), output: { entity: registry.entity } });
|
|
561
|
+
queryWordsAfterOptions(command).argument("[query...]", words);
|
|
562
|
+
return command;
|
|
563
|
+
}, "withWords");
|
|
559
564
|
var unfilteredQuery = /* @__PURE__ */ __name((entity, schema) => ({
|
|
560
565
|
entity,
|
|
561
566
|
backend: "native",
|
|
@@ -662,7 +667,7 @@ var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf(), now) => {
|
|
|
662
667
|
const range = dateRange(term.value, upper, term.operator === "range" ? term.lower_inclusive !== false : true, term.operator === "range" ? term.upper_inclusive !== false : true, zone, term.span, now);
|
|
663
668
|
const until = range.upper === void 0 ? void 0 : range.upper - (range.upper_inclusive ? 0 : 1);
|
|
664
669
|
return {
|
|
665
|
-
...range.lower === void 0 ? {} : { since: range.lower },
|
|
670
|
+
...range.lower === void 0 ? {} : { since: range.lower, from: range.lower_inclusive ? range.lower : range.lower + 1 },
|
|
666
671
|
...until === void 0 ? {} : { until },
|
|
667
672
|
meta: {
|
|
668
673
|
timezone: zone,
|
|
@@ -685,7 +690,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
685
690
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
686
691
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
687
692
|
|
|
688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
689
694
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
690
695
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
691
696
|
if (key in own)
|
|
@@ -716,6 +721,7 @@ export {
|
|
|
716
721
|
LIST_QUERY_GUIDE,
|
|
717
722
|
QUERY_ARGUMENT,
|
|
718
723
|
withQuery,
|
|
724
|
+
withWords,
|
|
719
725
|
unfilteredQuery,
|
|
720
726
|
commandPath,
|
|
721
727
|
listQuery,
|
|
@@ -4,9 +4,9 @@ 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.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
|
-
import { Readable } from "node:stream";
|
|
9
|
+
import { pipeline, Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
11
11
|
var TooLarge = class extends Error {
|
|
12
12
|
static {
|
|
@@ -49,8 +49,7 @@ var send = /* @__PURE__ */ __name(async (response, outgoing) => {
|
|
|
49
49
|
if (!response.body)
|
|
50
50
|
return void outgoing.end();
|
|
51
51
|
const body = Readable.fromWeb(response.body);
|
|
52
|
-
|
|
53
|
-
body.pipe(outgoing);
|
|
52
|
+
pipeline(body, outgoing, () => void 0);
|
|
54
53
|
}, "send");
|
|
55
54
|
var listen = /* @__PURE__ */ __name((handle, { host, port, maxBody = MAX_BODY }) => new Promise((resolve, reject) => {
|
|
56
55
|
const server = createServer((incoming, outgoing) => {
|