@wirecat/hubspot-cli 0.4.0 → 0.6.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 +44 -0
- package/README.md +75 -54
- package/contracts/wirecat.json +39 -13
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-XB35QVOK.js +40 -0
- package/dist/bundle/{all-profiles-JVEE4PXX.js → all-profiles-HFVXPMF6.js} +11 -11
- package/dist/bundle/{anthropic-6HT57GNF.js → anthropic-VE6WR6IN.js} +5 -5
- package/dist/bundle/{app-server-FOBFF6G6.js → app-server-GZ4DCQK7.js} +68 -68
- package/dist/bundle/{bun-GW443QB3.js → bun-2DHMKD34.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGIAICDN.js → bun-sqlite-T5XTYL7L.js} +6 -6
- package/dist/bundle/{chunk-FK4LEJZM.js → chunk-24HPBWKZ.js} +63 -4
- package/dist/bundle/{chunk-4OPN3KCN.js → chunk-2I2KBCS6.js} +5 -5
- package/dist/bundle/{chunk-3BM6KBWP.js → chunk-2K5BAY32.js} +19 -19
- package/dist/bundle/{chunk-6ULR7N3T.js → chunk-2VUIJ5XB.js} +2 -2
- package/dist/bundle/{chunk-UHHXZKB2.js → chunk-3HS7JTPI.js} +27 -177
- package/dist/bundle/{chunk-3SRGN5MQ.js → chunk-3TLNO3VM.js} +2 -2
- package/dist/bundle/{chunk-ATGD64VO.js → chunk-3W5R3XAH.js} +8 -8
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/{chunk-NL3RKJR6.js → chunk-3YTTWJKL.js} +1 -1
- package/dist/bundle/{chunk-5WKJFMC3.js → chunk-4UEYVM46.js} +4 -4
- package/dist/bundle/{chunk-5G4L6NQJ.js → chunk-5ILCAAY4.js} +35 -35
- package/dist/bundle/{chunk-ETKLP4VE.js → chunk-5IPB5WLB.js} +14 -14
- package/dist/bundle/{chunk-N4EIJ53V.js → chunk-5NIIXJV3.js} +2 -2
- package/dist/bundle/{chunk-QIFCH5DZ.js → chunk-5O5WYSSO.js} +1967 -654
- package/dist/bundle/{chunk-XMWMA2N5.js → chunk-5VTKBGPW.js} +90 -33
- package/dist/bundle/{chunk-M25KVDHA.js → chunk-5WDNG4QE.js} +7 -7
- package/dist/bundle/{chunk-WATDMTDC.js → chunk-67YPTVGP.js} +3 -3
- package/dist/bundle/{chunk-3MUHCLRY.js → chunk-6DABKZYH.js} +143 -8
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-5KLNBGPU.js → chunk-AKSWXRIU.js} +1 -1
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-HPRKSL5S.js → chunk-BM5F2ZNI.js} +2 -2
- package/dist/bundle/{chunk-FOLKK6FW.js → chunk-BU5CEMUH.js} +20 -14
- package/dist/bundle/{chunk-DBPFHJXX.js → chunk-CTN4DW2F.js} +4 -4
- package/dist/bundle/{chunk-QJHRRJKD.js → chunk-CU76ZACK.js} +3 -3
- package/dist/bundle/{chunk-7QH5BZUG.js → chunk-DIKUPU3T.js} +3 -3
- package/dist/bundle/{chunk-JWO3PB5Z.js → chunk-E27NRLJZ.js} +18 -18
- package/dist/bundle/{chunk-EU7AVWSX.js → chunk-EB53G4HO.js} +2 -2
- package/dist/bundle/{chunk-GJSHLF43.js → chunk-EJZIEBAR.js} +8 -8
- package/dist/bundle/{chunk-HQYJ66ZX.js → chunk-G6LDK6DJ.js} +18 -8
- package/dist/bundle/{chunk-VDAYIXV4.js → chunk-GEJI27GN.js} +6 -6
- package/dist/bundle/{chunk-XJVFXHDI.js → chunk-GHXTNKX2.js} +2 -2
- package/dist/bundle/{chunk-W5X37TBC.js → chunk-GR4HZBWO.js} +2 -2
- package/dist/bundle/{chunk-WBUVNKHJ.js → chunk-GWXTVO43.js} +7 -7
- package/dist/bundle/{chunk-2Q2XIXDL.js → chunk-H4W2OO35.js} +1 -1
- package/dist/bundle/{chunk-3LMW7U7F.js → chunk-H5HBZCEJ.js} +21 -8
- package/dist/bundle/{chunk-JKNUCEII.js → chunk-HX2BE7DO.js} +1 -1
- package/dist/bundle/{chunk-PQUZ2YDC.js → chunk-HYDXA624.js} +6 -6
- package/dist/bundle/{chunk-Z3YOKGVZ.js → chunk-HZIGGAC7.js} +2 -2
- package/dist/bundle/{chunk-AT43MYQL.js → chunk-I75ON7VM.js} +8 -8
- package/dist/bundle/{chunk-PKFLSX5F.js → chunk-ID4GJFE7.js} +8 -8
- package/dist/bundle/{chunk-A6PVEUGN.js → chunk-J2SCELII.js} +17 -17
- package/dist/bundle/{chunk-PMJCZIV4.js → chunk-J4FXBF44.js} +1 -1
- package/dist/bundle/{chunk-DG4RBKIV.js → chunk-J76CMNWQ.js} +1 -1
- package/dist/bundle/{chunk-MQACXJLG.js → chunk-JDCFHZNU.js} +10 -10
- package/dist/bundle/{chunk-K4DWBOO6.js → chunk-JFLKTYH5.js} +6 -6
- package/dist/bundle/{chunk-LS4S7PAP.js → chunk-K4Y2ZWOO.js} +3 -3
- package/dist/bundle/{chunk-5ZVYIA56.js → chunk-KDW7B7AR.js} +5 -5
- package/dist/bundle/{chunk-BXZRSXBL.js → chunk-KKMOKSS5.js} +3 -3
- package/dist/bundle/{chunk-EBJYK7UM.js → chunk-LHY5XGIR.js} +78 -63
- package/dist/bundle/{chunk-V23OHBGM.js → chunk-LTU4BQ4S.js} +3 -3
- package/dist/bundle/{chunk-LX7QMRRG.js → chunk-M3LRSN6J.js} +13 -13
- package/dist/bundle/{chunk-UIWWAT3C.js → chunk-MJ24YFXZ.js} +7 -7
- package/dist/bundle/{chunk-YYYRE4AV.js → chunk-MSQGZHKM.js} +32 -28
- package/dist/bundle/{chunk-6NUXFVJQ.js → chunk-NQOQG7L3.js} +1 -1
- package/dist/bundle/{chunk-WLFYEAZ6.js → chunk-PDVMYIBP.js} +1516 -745
- package/dist/bundle/{chunk-QODPEZC5.js → chunk-PR7ZDMGF.js} +10 -3
- package/dist/bundle/{chunk-2BCWK5BF.js → chunk-PZ3QJDTD.js} +8 -8
- package/dist/bundle/{chunk-OLDIP4CV.js → chunk-Q6AC7WLD.js} +3 -3
- package/dist/bundle/{chunk-X5U7GLHD.js → chunk-QH47G73D.js} +16 -3
- package/dist/bundle/{chunk-RFGIUCKU.js → chunk-QK5HQUHB.js} +3 -3
- package/dist/bundle/{chunk-3MPMYAII.js → chunk-R26OEZOL.js} +1 -1
- package/dist/bundle/{chunk-T3GZKV5A.js → chunk-RLK2EGQD.js} +21 -15
- package/dist/bundle/{chunk-Z4PY5BDP.js → chunk-RLNPTES2.js} +4 -4
- package/dist/bundle/{chunk-XCDRFC6G.js → chunk-T4MZJMEJ.js} +17 -17
- package/dist/bundle/{chunk-TAF4PKDS.js → chunk-TAPQZYXY.js} +1 -1
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-E33KM3DB.js → chunk-THGAVPRA.js} +11 -11
- package/dist/bundle/{chunk-XDDTJYGA.js → chunk-TRLV5NWZ.js} +2477 -2140
- package/dist/bundle/{chunk-5OBVICFK.js → chunk-TT75CEYZ.js} +22 -1
- package/dist/bundle/{chunk-7OJ43BAH.js → chunk-TXO4CJW3.js} +7 -7
- package/dist/bundle/{chunk-F4ZLRS4B.js → chunk-UCGZRZJA.js} +1 -1
- package/dist/bundle/{chunk-NLZADZ4F.js → chunk-UVGJL753.js} +61 -61
- package/dist/bundle/{chunk-VMF2UIQI.js → chunk-UZ2CL435.js} +3 -4
- package/dist/bundle/{chunk-IED6MKPU.js → chunk-V7N2K5OT.js} +33 -30
- package/dist/bundle/{chunk-QV4GDVBN.js → chunk-VR2CJFVL.js} +8 -8
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-F3HJ2E3P.js → chunk-WE4JSHIG.js} +6 -6
- package/dist/bundle/{chunk-FWW2CUXH.js → chunk-X2QRCFGJ.js} +4 -4
- package/dist/bundle/{chunk-V2B2OWTC.js → chunk-XRFYVVFU.js} +2 -2
- package/dist/bundle/{chunk-Q7DIEU6L.js → chunk-YDG5FIQB.js} +7 -9
- package/dist/bundle/{chunk-GOOXUCJW.js → chunk-YIH2A2PQ.js} +2 -2
- package/dist/bundle/{chunk-HM72O37C.js → chunk-ZERQSELP.js} +207 -163
- package/dist/bundle/{chunk-QNQ4V4UT.js → chunk-ZKTYTOF4.js} +8 -8
- package/dist/bundle/command-contract-5FXCYQUS.js +40 -0
- package/dist/bundle/{command-server-entry-OJQ55UA2.js → command-server-entry-H6IAJNOF.js} +28 -28
- package/dist/bundle/{decode-CDQDRPRJ.js → decode-TR2EC46M.js} +5 -5
- package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-B2EP6DDT.js} +8 -8
- package/dist/bundle/{echarts-GJ5JJG2A.js → echarts-7OP7I5B2.js} +2 -2
- package/dist/bundle/{embed-BUQXGMKR.js → embed-FLGS4LN7.js} +6 -6
- package/dist/bundle/{embedder-FCX6LE4O.js → embedder-JIXQXCP3.js} +9 -9
- package/dist/bundle/{failure-I6AAF5R5.js → failure-AOACEURF.js} +2 -2
- package/dist/bundle/{first-run-RPYEXXQK.js → first-run-XJ2NWIK2.js} +12 -12
- package/dist/bundle/first-screen-U73G5CMM.js +40 -0
- package/dist/bundle/hubspot.js +27 -25
- package/dist/bundle/{instructions-LPVTPERS.js → instructions-PYCYV6QE.js} +1 -1
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-IHTM5H5B.js +25 -0
- package/dist/bundle/{meeting-model-TRGBEWCY.js → meeting-model-2PA5WJY5.js} +11 -11
- package/dist/bundle/{meeting-semantic-RSF5KNKD.js → meeting-semantic-5IH63QFV.js} +6 -6
- package/dist/bundle/{node-UAT3EIAP.js → node-6GTNIVBM.js} +2 -2
- package/dist/bundle/{node-sqlite-3HKDQNFD.js → node-sqlite-FBCEHPNT.js} +7 -7
- package/dist/bundle/{oauth-DYW2NSZP.js → oauth-BFP4SCL5.js} +7 -7
- package/dist/bundle/{open-KBRXJ5BC.js → open-MLU4MHGO.js} +5 -5
- package/dist/bundle/{openai-YNCLRTSK.js → openai-R7WJI6SO.js} +15 -15
- package/dist/bundle/{process-63BB7LKP.js → process-NMNQLJHZ.js} +1 -1
- package/dist/bundle/{program-VX52OB3O.js → program-Z735HPFG.js} +517 -343
- package/dist/bundle/{prompt-TWLJ3M2O.js → prompt-A6RM55Q4.js} +5 -5
- package/dist/bundle/{recognize-GQ6DLGE7.js → recognize-ORRDV45M.js} +4 -4
- package/dist/bundle/{remote-RKNSF3TT.js → remote-UF3WSC4X.js} +9 -9
- package/dist/bundle/{rerank-H4HSGQUJ.js → rerank-ZSJORUGH.js} +7 -7
- package/dist/bundle/{schemas-LDK7O6VW.js → schemas-EXBNVPMI.js} +1 -1
- package/dist/bundle/{serve-4ZNIAL7H.js → serve-4KBJ6SIA.js} +9 -9
- package/dist/bundle/{server-4G4QB3QN.js → server-IFK4S6LJ.js} +60 -60
- package/dist/bundle/server-MNUAZWTN.js +86 -0
- package/dist/bundle/source-PBCQAG4C.js +426 -0
- package/dist/bundle/{sqlite-runtime-C2JYC7JF.js → sqlite-runtime-XPDUWOPG.js} +6 -6
- package/dist/bundle/{state-3KDXCXHG.js → state-4M26H7NL.js} +6 -6
- package/dist/bundle/{store-LXLG5HTS.js → store-3W4ZOOIB.js} +28 -24
- package/dist/bundle/store-CDY2PW6J.js +34 -0
- package/dist/bundle/{store-J5FQBZYR.js → store-ICTY3RIF.js} +22 -22
- package/dist/bundle/store-maintenance-command-Y7TC3I43.js +73 -0
- package/dist/bundle/surface-4LNDJZD2.js +72 -0
- package/dist/bundle/writer-WGHWQTC2.js +86 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +31 -78
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -3
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +4 -31
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +19 -12
- package/dist/config.js.map +1 -1
- package/dist/crm/activities.d.ts +6 -1
- package/dist/crm/activities.d.ts.map +1 -1
- package/dist/crm/activities.js +36 -0
- package/dist/crm/activities.js.map +1 -1
- package/dist/crm/writer.d.ts +1 -1
- package/dist/crm/writer.d.ts.map +1 -1
- package/dist/crm/writer.js +69 -1
- package/dist/crm/writer.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/hubspot-cli/SKILL.md +10 -5
- package/skills/hubspot-cli/references/api/api-basic.md +2 -2
- package/skills/hubspot-cli/references/api/api-batch.md +2 -2
- 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/source-2UCNCCO7.js +0 -917
- 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
|
@@ -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.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/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) => {
|
|
@@ -3,11 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HZIGGAC7.js";
|
|
7
7
|
import {
|
|
8
8
|
ADDED_PROVIDER,
|
|
9
9
|
INTERNAL_NOTES,
|
|
10
10
|
UNKNOWN_PROVIDER,
|
|
11
|
+
alsoListedByKey,
|
|
11
12
|
holdsKindOf,
|
|
12
13
|
isDocumentAccountProvider,
|
|
13
14
|
isFolderProvider,
|
|
@@ -17,20 +18,20 @@ import {
|
|
|
17
18
|
kindsIn,
|
|
18
19
|
providerNamed,
|
|
19
20
|
providers
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RLK2EGQD.js";
|
|
21
22
|
import {
|
|
22
23
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2VUIJ5XB.js";
|
|
24
25
|
import {
|
|
25
26
|
createRecordLog,
|
|
26
27
|
resolvePaths,
|
|
27
28
|
traceIdOf,
|
|
28
29
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2K5BAY32.js";
|
|
30
31
|
import {
|
|
31
32
|
isoTime,
|
|
32
33
|
reference
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-H5HBZCEJ.js";
|
|
34
35
|
import {
|
|
35
36
|
array,
|
|
36
37
|
boolean,
|
|
@@ -51,18 +52,18 @@ import {
|
|
|
51
52
|
} from "./chunk-S4UUN6LD.js";
|
|
52
53
|
import {
|
|
53
54
|
CliError
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AP3CWDRK.js";
|
|
55
56
|
import {
|
|
56
57
|
__name
|
|
57
58
|
} from "./chunk-ZVVMGPBJ.js";
|
|
58
59
|
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
60
61
|
import { randomUUID } from "node:crypto";
|
|
61
62
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
62
63
|
import { userInfo } from "node:os";
|
|
63
64
|
import { join, sep } from "node:path";
|
|
64
65
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
66
67
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
67
68
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
68
69
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -75,7 +76,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
75
76
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
76
77
|
}), "snakeLogger");
|
|
77
78
|
|
|
78
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
79
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
79
80
|
var diagnostic = {
|
|
80
81
|
event: true,
|
|
81
82
|
operation: true,
|
|
@@ -149,7 +150,7 @@ var LOG_ATTRIBUTES = [
|
|
|
149
150
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
150
151
|
].sort();
|
|
151
152
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
153
154
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
154
155
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
155
156
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -516,7 +517,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
516
517
|
};
|
|
517
518
|
}, "metadataOf");
|
|
518
519
|
|
|
519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
520
521
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
521
522
|
import { randomBytes } from "node:crypto";
|
|
522
523
|
var scopes = new AsyncLocalStorage();
|
|
@@ -569,7 +570,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
569
570
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
570
571
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
571
572
|
|
|
572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
573
574
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
574
575
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
575
576
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -584,7 +585,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
584
585
|
}
|
|
585
586
|
__name(closeTask, "closeTask");
|
|
586
587
|
|
|
587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
588
589
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
589
590
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
590
591
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -613,7 +614,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
613
614
|
}, "priorityOf");
|
|
614
615
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
615
616
|
|
|
616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
617
618
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
618
619
|
async function find(id2) {
|
|
619
620
|
const task = await store.get(id2);
|
|
@@ -673,20 +674,20 @@ function median(values) {
|
|
|
673
674
|
}
|
|
674
675
|
__name(median, "median");
|
|
675
676
|
|
|
676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
677
678
|
function matches(task, filter) {
|
|
678
679
|
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);
|
|
679
680
|
}
|
|
680
681
|
__name(matches, "matches");
|
|
681
682
|
|
|
682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
683
684
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
684
685
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
685
686
|
var ERASED_TEXT = "[source erased]";
|
|
686
687
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
687
688
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
688
689
|
|
|
689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
690
691
|
var text = string();
|
|
691
692
|
var id = pipe(string(), minLength(1));
|
|
692
693
|
var time = isoTime;
|
|
@@ -711,7 +712,7 @@ var author = strictObject({
|
|
|
711
712
|
name: nullable(text)
|
|
712
713
|
});
|
|
713
714
|
|
|
714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
715
716
|
var organization = strictObject({
|
|
716
717
|
id,
|
|
717
718
|
ref: reference,
|
|
@@ -741,7 +742,7 @@ var reminder = strictObject({
|
|
|
741
742
|
receipt: nullable(text)
|
|
742
743
|
});
|
|
743
744
|
|
|
744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
745
746
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
746
747
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
747
748
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -862,7 +863,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
862
863
|
return { previous, cleared };
|
|
863
864
|
}, "recordDeepCheck");
|
|
864
865
|
|
|
865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
866
867
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
867
868
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
868
869
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -870,7 +871,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
870
871
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
871
872
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
872
873
|
|
|
873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
874
875
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
875
876
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
876
877
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -880,7 +881,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
880
881
|
};
|
|
881
882
|
}, "sourceOf");
|
|
882
883
|
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
884
885
|
var LINK_KINDS = [
|
|
885
886
|
"links-to",
|
|
886
887
|
"blocked-by",
|
|
@@ -904,7 +905,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
|
904
905
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
905
906
|
var COUNTERPART_ROLE = "counterpart";
|
|
906
907
|
|
|
907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
908
909
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
909
910
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
910
911
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -927,7 +928,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
927
928
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
928
929
|
}, "sourceOf");
|
|
929
930
|
|
|
930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
931
932
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
932
933
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
933
934
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -947,12 +948,13 @@ var groupMembers = /* @__PURE__ */ __name((value) => itemsOf(value).map((item) =
|
|
|
947
948
|
var describe = /* @__PURE__ */ __name((accounts) => accounts.map(({ provider, account, name }) => `${provider}:${account}${name ? ` (${name})` : ""}`).join(", "), "describe");
|
|
948
949
|
var listedHolds = /* @__PURE__ */ __name((account, kind) => (account.kinds ?? (account.kind === void 0 ? [] : [account.kind])).includes(kind), "listedHolds");
|
|
949
950
|
var kindHere = /* @__PURE__ */ __name((provider, running) => provider === running.provider ? kindOf(provider) : kindIn(provider), "kindHere");
|
|
951
|
+
var listedKinds = /* @__PURE__ */ __name((provider) => kindsIn(provider).filter((kind) => kind !== "documents" || !isDocumentAccountProvider(provider)), "listedKinds");
|
|
950
952
|
var kindsOfHere = /* @__PURE__ */ __name((provider, running) => {
|
|
951
|
-
const kinds =
|
|
953
|
+
const kinds = listedKinds(provider);
|
|
952
954
|
return { kind: kindHere(provider, running), ...kinds.length > 1 ? { kinds } : {} };
|
|
953
955
|
}, "kindsOfHere");
|
|
954
956
|
var heldOf = /* @__PURE__ */ __name((stored, running) => [
|
|
955
|
-
...stored.filter(({ provider }) => kindIn(provider) !== "notes" && !isDocumentAccountProvider(provider)).map(({ provider, account, name }) => ({ provider, account, name, ...kindsOfHere(provider, running) })),
|
|
957
|
+
...stored.filter(({ provider }) => kindIn(provider) !== "notes" && (!isDocumentAccountProvider(provider) || alsoListedByKey(provider))).map(({ provider, account, name }) => ({ provider, account, name, ...kindsOfHere(provider, running) })),
|
|
956
958
|
{ provider: "notes", account: INTERNAL_NOTES, name: null, kind: "notes" },
|
|
957
959
|
...stored.filter(({ provider }) => isFolderProvider(provider)).map(({ id: id2, name, provider, account }) => ({
|
|
958
960
|
provider: "notes",
|
|
@@ -989,7 +991,7 @@ var providerOf = /* @__PURE__ */ __name((prefix, held, { running, profiles }) =>
|
|
|
989
991
|
var profilesOf = /* @__PURE__ */ __name((provider, profiles) => Object.values(profiles).flatMap((named) => Object.entries(named).filter(([, key]) => key.provider === provider)), "profilesOf");
|
|
990
992
|
var accountOf = /* @__PURE__ */ __name((prefix, ref, held, context) => {
|
|
991
993
|
const provider = providerOf(prefix, held, context);
|
|
992
|
-
if (isDocumentAccountProvider(provider) && !context.profiles[prefix.toLowerCase()]?.[ref]) {
|
|
994
|
+
if (isDocumentAccountProvider(provider) && !alsoListedByKey(provider) && !context.profiles[prefix.toLowerCase()]?.[ref]) {
|
|
993
995
|
const stored = storedAs(held, { provider, account: ref })[0];
|
|
994
996
|
if (stored)
|
|
995
997
|
return stored;
|
|
@@ -1047,7 +1049,7 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
|
|
|
1047
1049
|
return Object.keys(recorded).map((profile) => accountOf(word, profile, held, context));
|
|
1048
1050
|
const provider = providerOf(word, held, context);
|
|
1049
1051
|
if (isDocumentAccountProvider(provider) || isFolderProvider(provider))
|
|
1050
|
-
return storedAs(held, { provider, account: "" });
|
|
1052
|
+
return [...held.filter((one) => one.provider === provider), ...storedAs(held, { provider, account: "" })];
|
|
1051
1053
|
return held.filter((one) => one.provider === provider);
|
|
1052
1054
|
}, "accountsOfWord");
|
|
1053
1055
|
var isDocumentAccount = /* @__PURE__ */ __name(({ stored }) => stored !== void 0 && isDocumentAccountProvider(stored.provider), "isDocumentAccount");
|
|
@@ -1132,7 +1134,8 @@ var READS = {
|
|
|
1132
1134
|
documents: "documents \u2014 search notes reads them",
|
|
1133
1135
|
meetings: "meetings \u2014 search all reads them",
|
|
1134
1136
|
events: "calendar events \u2014 no search reads them yet",
|
|
1135
|
-
crm: "CRM deals and leads \u2014 search all reads them"
|
|
1137
|
+
crm: "CRM deals and leads \u2014 search all reads them",
|
|
1138
|
+
tracker: "a tracker's issues, projects and comments \u2014 search all reads them"
|
|
1136
1139
|
};
|
|
1137
1140
|
var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) => READS[kind], alsoFits = () => false) => {
|
|
1138
1141
|
const chosen = /* @__PURE__ */ new Map();
|
|
@@ -1159,7 +1162,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1159
1162
|
return { accounts: [...chosen.values()], skipped };
|
|
1160
1163
|
}, "fitting");
|
|
1161
1164
|
|
|
1162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1163
1166
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1164
1167
|
|
|
1165
1168
|
export {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5O5WYSSO.js";
|
|
6
6
|
import {
|
|
7
7
|
LIST_QUERY_GUIDE,
|
|
8
8
|
nativeTerms
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BU5CEMUH.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_CONFIG,
|
|
12
12
|
environmentOf,
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
snakeKeys,
|
|
18
18
|
withAgentLevels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZERQSELP.js";
|
|
20
20
|
import {
|
|
21
21
|
formatReference
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RLK2EGQD.js";
|
|
23
23
|
import {
|
|
24
24
|
queryError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UVGJL753.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AP3CWDRK.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
34
34
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
35
35
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
36
36
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -57,7 +57,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
57
57
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
58
58
|
}, "pagingOf");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
61
61
|
var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
|
|
62
62
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
63
63
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -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-AP3CWDRK.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.127.0_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.127.0_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.127.0_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;
|
|
@@ -5,31 +5,31 @@ import {
|
|
|
5
5
|
isNewer,
|
|
6
6
|
readNoticeState,
|
|
7
7
|
writeUpdateState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DIKUPU3T.js";
|
|
9
9
|
import {
|
|
10
10
|
executableEnvironment,
|
|
11
11
|
executableOnPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3WG4MTQI.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
15
15
|
Option,
|
|
16
16
|
annotate
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZERQSELP.js";
|
|
18
18
|
import {
|
|
19
19
|
require_cross_spawn
|
|
20
20
|
} from "./chunk-D72URWJE.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerHomeInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2K5BAY32.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AP3CWDRK.js";
|
|
27
27
|
import {
|
|
28
28
|
__name,
|
|
29
29
|
__toESM
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/skill/index.js
|
|
33
33
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
34
34
|
import { homedir } from "node:os";
|
|
35
35
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -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-ZERQSELP.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-G6LDK6DJ.js";
|
|
16
16
|
import {
|
|
17
17
|
writes
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-H5HBZCEJ.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/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);
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AP3CWDRK.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.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6DABKZYH.js";
|
|
6
6
|
import {
|
|
7
7
|
RECORD_TYPES
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E27NRLJZ.js";
|
|
9
9
|
import {
|
|
10
10
|
parseReference
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RLK2EGQD.js";
|
|
12
12
|
import {
|
|
13
13
|
defineReasons
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H5HBZCEJ.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/links.js
|
|
20
20
|
var LINK_VERSION = "v1";
|
|
21
21
|
var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
|
|
22
22
|
var APP_PREFIX = "wirecat://open";
|
|
@@ -137,7 +137,7 @@ var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG,
|
|
|
137
137
|
return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
|
|
138
138
|
}, "linkFor");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/records-table.js
|
|
141
141
|
var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
|
|
142
142
|
|
|
143
143
|
// node_modules/.pnpm/qrcode-generator@2.0.4/node_modules/qrcode-generator/dist/qrcode.mjs
|
|
@@ -1776,7 +1776,6 @@ var stringToBytes = qrcode.stringToBytes;
|
|
|
1776
1776
|
// dist/reasons.js
|
|
1777
1777
|
var CORE = new Set(REASONS.map((one) => one.reason));
|
|
1778
1778
|
var OWN = [
|
|
1779
|
-
["session.duplicate", "conflict", "another profile here already signs in to this HubSpot account"],
|
|
1780
1779
|
["account.id-missing", "configuration_error", "WCHUBSPOT_TOKEN needs WCHUBSPOT_ACCOUNT, the HubSpot account's id"],
|
|
1781
1780
|
["account.id-malformed", "configuration_error", "WCHUBSPOT_ACCOUNT must be the HubSpot account's id, digits only"],
|
|
1782
1781
|
[
|
|
@@ -1785,7 +1784,6 @@ var OWN = [
|
|
|
1785
1784
|
"a WCHUBSPOT_TOKEN profile uses the local copy only after an online run checked it"
|
|
1786
1785
|
],
|
|
1787
1786
|
["account.mismatch", "configuration_error", "WCHUBSPOT_ACCOUNT names another account than the token's own"],
|
|
1788
|
-
["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
|
|
1789
1787
|
["session.expired", "authentication_error", "HubSpot refused the key: it was revoked, expired or mistyped"],
|
|
1790
1788
|
["hubspot.scope-missing", "permission_error", "the HubSpot key lacks a scope this command needs"],
|
|
1791
1789
|
["hubspot.access-denied", "permission_error", "the HubSpot key may not read this"],
|
|
@@ -1803,7 +1801,7 @@ var REASONS2 = defineReasons(OWN.filter(([reason]) => !CORE.has(reason)).map(([r
|
|
|
1803
1801
|
var DETAILS2 = ["account", "profile", "profiles", "status", "scope"];
|
|
1804
1802
|
|
|
1805
1803
|
// dist/version.js
|
|
1806
|
-
var VERSION = "0.
|
|
1804
|
+
var VERSION = "0.6.0";
|
|
1807
1805
|
|
|
1808
1806
|
// dist/identity.js
|
|
1809
1807
|
var PACKAGE = "@wirecat/hubspot-cli";
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
singleLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AP3CWDRK.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.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
12
12
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
13
13
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
14
14
|
var tagOf = /* @__PURE__ */ __name((value) => {
|