@wirecat/hubspot-cli 0.6.0 → 0.7.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 +22 -0
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-JXICB6TB.js +40 -0
- package/dist/bundle/{all-profiles-HFVXPMF6.js → all-profiles-GVEX5MXB.js} +7 -7
- package/dist/bundle/{anthropic-VE6WR6IN.js → anthropic-GK6VBQUD.js} +2 -2
- package/dist/bundle/{app-server-GZ4DCQK7.js → app-server-JRROE463.js} +60 -60
- package/dist/bundle/{bun-2DHMKD34.js → bun-B7XTFPUF.js} +2 -2
- package/dist/bundle/{bun-sqlite-T5XTYL7L.js → bun-sqlite-QSNZ2YP4.js} +3 -3
- package/dist/bundle/{chunk-6DABKZYH.js → chunk-2FLLS5IL.js} +34 -20
- package/dist/bundle/{chunk-UVGJL753.js → chunk-2HSYAKWO.js} +51 -51
- package/dist/bundle/{chunk-PDVMYIBP.js → chunk-2IRBXFIU.js} +1166 -599
- package/dist/bundle/{chunk-YIH2A2PQ.js → chunk-2PCVKD27.js} +1 -1
- package/dist/bundle/{chunk-VR2CJFVL.js → chunk-2V5KOOJV.js} +7 -7
- package/dist/bundle/{chunk-5O5WYSSO.js → chunk-4F62XXF6.js} +495 -375
- package/dist/bundle/{chunk-67YPTVGP.js → chunk-4HZQ5UIY.js} +2 -2
- package/dist/bundle/{chunk-5WDNG4QE.js → chunk-4LHNA6LJ.js} +1 -1
- package/dist/bundle/{chunk-THGAVPRA.js → chunk-52NC5E42.js} +10 -10
- package/dist/bundle/{chunk-XRFYVVFU.js → chunk-5AVU5SF6.js} +1 -1
- package/dist/bundle/{chunk-UCGZRZJA.js → chunk-5EJ3C3JG.js} +1 -1
- package/dist/bundle/{chunk-3W5R3XAH.js → chunk-5ISQ4KJM.js} +6 -6
- package/dist/bundle/{chunk-CU76ZACK.js → chunk-5MFZYHPO.js} +2 -2
- package/dist/bundle/{chunk-K4Y2ZWOO.js → chunk-63YWTFZF.js} +3 -3
- package/dist/bundle/{chunk-GWXTVO43.js → chunk-6EHX762H.js} +6 -6
- package/dist/bundle/{chunk-YDG5FIQB.js → chunk-6IHXKMY6.js} +6 -6
- package/dist/bundle/{chunk-J76CMNWQ.js → chunk-6WKK4UZP.js} +1 -1
- package/dist/bundle/{chunk-CTN4DW2F.js → chunk-A7KGBXBT.js} +3 -3
- package/dist/bundle/{chunk-3YTTWJKL.js → chunk-ALOPYWYY.js} +1 -1
- package/dist/bundle/{chunk-Q6AC7WLD.js → chunk-B3JVNOTB.js} +2 -2
- package/dist/bundle/{chunk-5NIIXJV3.js → chunk-BQPAIGAF.js} +2 -2
- package/dist/bundle/{chunk-HZIGGAC7.js → chunk-BRBBZDMZ.js} +1 -1
- package/dist/bundle/{chunk-E27NRLJZ.js → chunk-BXXU4EXK.js} +17 -17
- package/dist/bundle/{chunk-5IPB5WLB.js → chunk-BY3NKT34.js} +10 -10
- package/dist/bundle/{chunk-HYDXA624.js → chunk-CBTWKTWN.js} +5 -5
- package/dist/bundle/{chunk-MJ24YFXZ.js → chunk-CEHBT7QX.js} +5 -5
- package/dist/bundle/{chunk-RLK2EGQD.js → chunk-DBHJIFDS.js} +28 -15
- package/dist/bundle/{chunk-EJZIEBAR.js → chunk-DIHVN5IC.js} +6 -6
- package/dist/bundle/{chunk-2VUIJ5XB.js → chunk-DMYLQX2O.js} +1 -1
- package/dist/bundle/{chunk-J2SCELII.js → chunk-DWWZAQ4N.js} +13 -13
- package/dist/bundle/{chunk-WE4JSHIG.js → chunk-GD5JTKLS.js} +1 -1
- package/dist/bundle/{chunk-R26OEZOL.js → chunk-GHBJBDTW.js} +1 -1
- package/dist/bundle/{chunk-3HS7JTPI.js → chunk-GYH2AXPO.js} +13 -13
- package/dist/bundle/{chunk-JFLKTYH5.js → chunk-GZD6BYO7.js} +5 -5
- package/dist/bundle/{chunk-AKSWXRIU.js → chunk-I5WHQH5K.js} +1 -1
- package/dist/bundle/{chunk-J4FXBF44.js → chunk-INT5JXGP.js} +1 -1
- package/dist/bundle/{chunk-KKMOKSS5.js → chunk-IRFFXKKK.js} +2 -2
- package/dist/bundle/{chunk-RLNPTES2.js → chunk-J5HHB27S.js} +4 -4
- package/dist/bundle/{chunk-GEJI27GN.js → chunk-JEUYZCWF.js} +5 -5
- package/dist/bundle/{chunk-EB53G4HO.js → chunk-JQUS4KFV.js} +2 -2
- package/dist/bundle/{chunk-GR4HZBWO.js → chunk-KGLMYQXM.js} +1 -1
- package/dist/bundle/{chunk-JDCFHZNU.js → chunk-L3DUZVBP.js} +7 -7
- package/dist/bundle/{chunk-I75ON7VM.js → chunk-LGGBKAVQ.js} +7 -7
- package/dist/bundle/{chunk-ID4GJFE7.js → chunk-LJ52BS6C.js} +6 -6
- package/dist/bundle/{chunk-ZERQSELP.js → chunk-M3JDGRXM.js} +184 -157
- package/dist/bundle/{chunk-3TLNO3VM.js → chunk-MR2BNER3.js} +1 -1
- package/dist/bundle/{chunk-NQOQG7L3.js → chunk-NUPAXK4Z.js} +1 -1
- package/dist/bundle/{chunk-LTU4BQ4S.js → chunk-OX37ZK27.js} +2 -2
- package/dist/bundle/{chunk-LHY5XGIR.js → chunk-P7N3TZLH.js} +56 -56
- package/dist/bundle/{chunk-PZ3QJDTD.js → chunk-QAQK2WXJ.js} +4 -4
- package/dist/bundle/{chunk-BU5CEMUH.js → chunk-QY7EOB66.js} +12 -12
- package/dist/bundle/{chunk-MSQGZHKM.js → chunk-RE55EPBX.js} +25 -24
- package/dist/bundle/{chunk-X2QRCFGJ.js → chunk-SBORPDIQ.js} +3 -3
- package/dist/bundle/{chunk-GHXTNKX2.js → chunk-SFFV2F3Y.js} +2 -2
- package/dist/bundle/{chunk-24HPBWKZ.js → chunk-SMEEFN65.js} +2 -2
- package/dist/bundle/{chunk-UZ2CL435.js → chunk-SVRCPPNI.js} +1 -1
- package/dist/bundle/{chunk-G6LDK6DJ.js → chunk-SZZVNPTI.js} +4 -4
- package/dist/bundle/{chunk-TXO4CJW3.js → chunk-TXCINEH6.js} +5 -5
- package/dist/bundle/{chunk-ZKTYTOF4.js → chunk-UMXA357W.js} +7 -7
- package/dist/bundle/{chunk-KDW7B7AR.js → chunk-VJQLJQHT.js} +4 -4
- package/dist/bundle/{chunk-H4W2OO35.js → chunk-WSTF2MWW.js} +1 -1
- package/dist/bundle/{chunk-TRLV5NWZ.js → chunk-WSUS3MUK.js} +478 -385
- package/dist/bundle/{chunk-M3LRSN6J.js → chunk-WWIYZN67.js} +12 -12
- package/dist/bundle/{chunk-2I2KBCS6.js → chunk-XL3NAXZY.js} +3 -3
- package/dist/bundle/{chunk-QK5HQUHB.js → chunk-XWYYFAML.js} +2 -2
- package/dist/bundle/{chunk-5VTKBGPW.js → chunk-XZLOQNS7.js} +10 -10
- package/dist/bundle/{chunk-TAPQZYXY.js → chunk-YDTFPDAJ.js} +1 -1
- package/dist/bundle/{chunk-4UEYVM46.js → chunk-YFHCKAGU.js} +3 -3
- package/dist/bundle/{chunk-TT75CEYZ.js → chunk-YGZ37OEN.js} +1 -1
- package/dist/bundle/{chunk-V7N2K5OT.js → chunk-YOVIH4QI.js} +22 -22
- package/dist/bundle/{chunk-PR7ZDMGF.js → chunk-YVMLFHWS.js} +2 -2
- package/dist/bundle/{chunk-T4MZJMEJ.js → chunk-ZH76HQDA.js} +16 -16
- package/dist/bundle/{chunk-QH47G73D.js → chunk-ZNNGK73C.js} +2 -2
- package/dist/bundle/{chunk-5ILCAAY4.js → chunk-ZNRZJIRM.js} +33 -33
- package/dist/bundle/{chunk-BM5F2ZNI.js → chunk-ZS6T2PYQ.js} +1 -1
- package/dist/bundle/command-contract-7EWUA6E6.js +40 -0
- package/dist/bundle/{command-server-entry-H6IAJNOF.js → command-server-entry-BFXXPNJO.js} +24 -24
- package/dist/bundle/{decode-TR2EC46M.js → decode-5M7R44BR.js} +2 -2
- package/dist/bundle/{echarts-7OP7I5B2.js → echarts-7MBFY6SZ.js} +2 -2
- package/dist/bundle/{embed-FLGS4LN7.js → embed-Y4GYNHRX.js} +3 -3
- package/dist/bundle/{embedder-JIXQXCP3.js → embedder-FI4T4LQB.js} +6 -6
- package/dist/bundle/{first-run-XJ2NWIK2.js → first-run-YY66AKKG.js} +6 -6
- package/dist/bundle/first-screen-U7Z63VXE.js +40 -0
- package/dist/bundle/hubspot.js +17 -17
- package/dist/bundle/{instructions-PYCYV6QE.js → instructions-SM7TKV6L.js} +1 -1
- package/dist/bundle/{meeting-combined-IHTM5H5B.js → meeting-combined-B444C4NF.js} +11 -11
- package/dist/bundle/{meeting-model-2PA5WJY5.js → meeting-model-DKLMBQXX.js} +8 -8
- package/dist/bundle/{meeting-semantic-5IH63QFV.js → meeting-semantic-C5T6UDVB.js} +2 -2
- package/dist/bundle/{node-6GTNIVBM.js → node-OS6OQF3F.js} +2 -2
- package/dist/bundle/{node-sqlite-FBCEHPNT.js → node-sqlite-2XTWZ4HL.js} +4 -4
- package/dist/bundle/{oauth-BFP4SCL5.js → oauth-BSSJ66FC.js} +4 -4
- package/dist/bundle/{open-MLU4MHGO.js → open-UZ3TKWDY.js} +2 -2
- package/dist/bundle/{openai-R7WJI6SO.js → openai-POVKFBTC.js} +12 -12
- package/dist/bundle/{process-NMNQLJHZ.js → process-A7ZJGQ6G.js} +1 -1
- package/dist/bundle/{program-Z735HPFG.js → program-Q3JFUVC6.js} +193 -102
- package/dist/bundle/{prompt-A6RM55Q4.js → prompt-TYOYTRJM.js} +2 -2
- package/dist/bundle/{recognize-ORRDV45M.js → recognize-GGFRONZT.js} +1 -1
- package/dist/bundle/{remote-UF3WSC4X.js → remote-K4SLWHMI.js} +6 -6
- package/dist/bundle/{rerank-ZSJORUGH.js → rerank-2QTKDUBV.js} +4 -4
- package/dist/bundle/{serve-4KBJ6SIA.js → serve-FG2G2X6Y.js} +6 -6
- package/dist/bundle/{server-IFK4S6LJ.js → server-KRDHBT5Q.js} +52 -52
- package/dist/bundle/server-VFKK6OS4.js +86 -0
- package/dist/bundle/{source-PBCQAG4C.js → source-XP2JNUVU.js} +64 -64
- package/dist/bundle/{sqlite-runtime-XPDUWOPG.js → sqlite-runtime-TWV7KFLA.js} +3 -3
- package/dist/bundle/{state-4M26H7NL.js → state-EFX5ZQED.js} +3 -3
- package/dist/bundle/store-LON2XRIS.js +34 -0
- package/dist/bundle/{store-3W4ZOOIB.js → store-MNQ6YQIS.js} +20 -20
- package/dist/bundle/{store-ICTY3RIF.js → store-QPVH5VPJ.js} +18 -18
- package/dist/bundle/store-maintenance-command-YEMPRNJX.js +73 -0
- package/dist/bundle/surface-UJRMT6QT.js +72 -0
- package/dist/bundle/writer-NOSHE7ZI.js +86 -0
- package/dist/crm/records.d.ts.map +1 -1
- package/dist/crm/records.js +3 -0
- package/dist/crm/records.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/hubspot-cli/SKILL.md +10 -3
- package/dist/bundle/agent-XB35QVOK.js +0 -40
- package/dist/bundle/command-contract-5FXCYQUS.js +0 -40
- package/dist/bundle/first-screen-U73G5CMM.js +0 -40
- package/dist/bundle/server-MNUAZWTN.js +0 -86
- package/dist/bundle/store-CDY2PW6J.js +0 -34
- package/dist/bundle/store-maintenance-command-Y7TC3I43.js +0 -73
- package/dist/bundle/surface-4LNDJZD2.js +0 -72
- package/dist/bundle/writer-WGHWQTC2.js +0 -86
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WSTF2MWW.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-AP3CWDRK.js";
|
|
@@ -10,7 +10,7 @@ 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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-QSNZ2YP4.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-2XTWZ4HL.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DMYLQX2O.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { dirname, join, resolve } from "node:path";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
23
23
|
var REPAIR_WORDS = {
|
|
24
24
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
25
25
|
comment: "a comment, which JSON does not allow",
|
|
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
303
303
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
304
304
|
}, "explainBrokenJson");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
307
307
|
var DEFAULT_TASK_CATEGORIES = [
|
|
308
308
|
{
|
|
309
309
|
name: "taxes",
|
|
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}, "storedTaskCategories");
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1062
1062
|
var SECTION = "task_categories";
|
|
1063
1063
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1064
1064
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference,
|
|
5
5
|
parseMeetingReference
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2HSYAKWO.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
singleLine
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
16
16
|
var CURRENCY_SCALES = {
|
|
17
17
|
AED: 2,
|
|
18
18
|
AMD: 2,
|
|
@@ -106,7 +106,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
|
106
106
|
}, "quantityOf");
|
|
107
107
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
108
108
|
|
|
109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
110
110
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
111
111
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
112
112
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -135,7 +135,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
135
135
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
136
136
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
137
137
|
|
|
138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
139
139
|
var CATALOG_KINDS = ["product", "service"];
|
|
140
140
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
141
141
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -163,7 +163,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
163
163
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
164
164
|
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
167
167
|
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
168
168
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
169
169
|
var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
|
|
@@ -173,7 +173,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
|
|
|
173
173
|
}, "normalCrmUserId");
|
|
174
174
|
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
175
175
|
|
|
176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
177
177
|
var DEAL_KINDS = ["deal", "lead"];
|
|
178
178
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
179
179
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -183,7 +183,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
183
183
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
184
184
|
}, "dealLine");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
187
187
|
var SCHEME = "msg:";
|
|
188
188
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
189
189
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -204,7 +204,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
204
204
|
return { provider, account, chat, message };
|
|
205
205
|
}, "parseLocator");
|
|
206
206
|
|
|
207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
208
208
|
var SIMPLE_REFERENCES = [
|
|
209
209
|
"note",
|
|
210
210
|
"document",
|
|
@@ -367,7 +367,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
|
367
367
|
return match !== null && byPrefix.has(match[1]);
|
|
368
368
|
}, "looksLikeReference");
|
|
369
369
|
|
|
370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
371
371
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm", "tracker"];
|
|
372
372
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
373
373
|
var PROVIDERS = [
|
|
@@ -388,7 +388,14 @@ var PROVIDERS = [
|
|
|
388
388
|
{ name: "google-drive", kind: "documents", aliases: [] },
|
|
389
389
|
// Seeded: linear-cli registers no entry, and without one its accounts would count as a messenger's. One sign-in holds
|
|
390
390
|
// the issues and the documents, so the account is a tracker's and a documents account at once.
|
|
391
|
-
{
|
|
391
|
+
{
|
|
392
|
+
name: "linear",
|
|
393
|
+
kind: "tracker",
|
|
394
|
+
kinds: ["tracker", "documents"],
|
|
395
|
+
aliases: [],
|
|
396
|
+
command: "linear",
|
|
397
|
+
globalItemIds: true
|
|
398
|
+
},
|
|
392
399
|
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
393
400
|
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
394
401
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
@@ -443,7 +450,7 @@ var opensOf = /* @__PURE__ */ __name((value, named) => {
|
|
|
443
450
|
var providerEntryOf = /* @__PURE__ */ __name((value) => {
|
|
444
451
|
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
445
452
|
return invalid("a provider entry is an object");
|
|
446
|
-
const { name, kind: kind2, kinds, aliases = [], command, opens, imported } = value;
|
|
453
|
+
const { name, kind: kind2, kinds, aliases = [], command, opens, imported, globalItemIds } = value;
|
|
447
454
|
const named = wordOf(name, "a provider's name");
|
|
448
455
|
const isKindWord = /* @__PURE__ */ __name((one) => typeof one === "string" && KINDS.includes(one), "isKindWord");
|
|
449
456
|
const given = kinds === void 0 ? [kind2] : Array.isArray(kinds) && kinds.length > 0 ? kinds : [void 0];
|
|
@@ -457,6 +464,8 @@ var providerEntryOf = /* @__PURE__ */ __name((value) => {
|
|
|
457
464
|
invalid(`provider ${named}'s aliases are a list`);
|
|
458
465
|
if (imported !== void 0 && typeof imported !== "boolean")
|
|
459
466
|
invalid(`provider ${named}'s imported is true or false`);
|
|
467
|
+
if (globalItemIds !== void 0 && typeof globalItemIds !== "boolean")
|
|
468
|
+
invalid(`provider ${named}'s globalItemIds is true or false`);
|
|
460
469
|
return {
|
|
461
470
|
name: named,
|
|
462
471
|
kind: list[0],
|
|
@@ -464,7 +473,8 @@ var providerEntryOf = /* @__PURE__ */ __name((value) => {
|
|
|
464
473
|
...imported === true ? { imported: true } : {},
|
|
465
474
|
aliases: [...new Set(aliases.map((alias) => wordOf(alias, `an alias of ${named}`)))],
|
|
466
475
|
...command === void 0 ? {} : { command: wordOf(command, `the command of ${named}`) },
|
|
467
|
-
...opens === void 0 ? {} : { opens: opensOf(opens, named) }
|
|
476
|
+
...opens === void 0 ? {} : { opens: opensOf(opens, named) },
|
|
477
|
+
...globalItemIds === true ? { globalItemIds: true } : {}
|
|
468
478
|
};
|
|
469
479
|
}, "providerEntryOf");
|
|
470
480
|
var kindsOfEntry = /* @__PURE__ */ __name((entry) => entry.kinds ?? [entry.kind], "kindsOfEntry");
|
|
@@ -485,7 +495,8 @@ var joined = /* @__PURE__ */ __name((known, entry) => {
|
|
|
485
495
|
...kinds.length > 1 ? { kinds } : {},
|
|
486
496
|
aliases: [.../* @__PURE__ */ new Set([...same.aliases, ...entry.aliases])],
|
|
487
497
|
...entry.command ? { command: entry.command } : {},
|
|
488
|
-
...entry.opens ? { opens: { ...same.opens, ...entry.opens } } : {}
|
|
498
|
+
...entry.opens ? { opens: { ...same.opens, ...entry.opens } } : {},
|
|
499
|
+
...entry.globalItemIds ? { globalItemIds: true } : {}
|
|
489
500
|
} : entry;
|
|
490
501
|
const others = known.filter((one) => one !== same);
|
|
491
502
|
for (const word of wordsOf(merged)) {
|
|
@@ -541,13 +552,14 @@ var importedOf = /* @__PURE__ */ __name((entry, held) => {
|
|
|
541
552
|
invalid(`provider ${entry.name} was registered without imported: an entry cannot make it import-only later`);
|
|
542
553
|
return held.imported === true;
|
|
543
554
|
}, "importedOf");
|
|
555
|
+
var hasGlobalItemIds = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.globalItemIds === true, "hasGlobalItemIds");
|
|
544
556
|
var isImportedProvider = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.imported === true, "isImportedProvider");
|
|
545
557
|
var alsoListedByKey = /* @__PURE__ */ __name((provider) => isDocumentAccountProvider(provider) && kindsIn(provider).some((kind2) => kind2 !== "documents"), "alsoListedByKey");
|
|
546
558
|
var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).includes(kind2), "holdsKind");
|
|
547
559
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
548
560
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
549
561
|
|
|
550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
551
563
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
552
564
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
553
565
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -558,7 +570,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
558
570
|
}, "orderLine");
|
|
559
571
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
560
572
|
|
|
561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
562
574
|
var ORGANIZATION_ROLES = [
|
|
563
575
|
"employee",
|
|
564
576
|
"contractor",
|
|
@@ -738,6 +750,7 @@ export {
|
|
|
738
750
|
kindIn,
|
|
739
751
|
kindsIn,
|
|
740
752
|
importedOf,
|
|
753
|
+
hasGlobalItemIds,
|
|
741
754
|
isImportedProvider,
|
|
742
755
|
alsoListedByKey,
|
|
743
756
|
holdsKind,
|
|
@@ -2,10 +2,10 @@ 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-SZZVNPTI.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BXXU4EXK.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePaths,
|
|
11
11
|
writeSecurely
|
|
@@ -37,7 +37,7 @@ 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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/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"];
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { userInfo } from "node:os";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
UNTRUSTED_NEUTRAL,
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LJ52BS6C.js";
|
|
9
9
|
import {
|
|
10
10
|
onlineDeps,
|
|
11
11
|
refuseLacking,
|
|
12
12
|
servicesFor,
|
|
13
13
|
storeModeDeps
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4F62XXF6.js";
|
|
15
15
|
import {
|
|
16
16
|
callerOf
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BQPAIGAF.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_OUTPUT_BYTES,
|
|
20
20
|
ENTITIES,
|
|
@@ -27,32 +27,32 @@ import {
|
|
|
27
27
|
refuseStoreChange,
|
|
28
28
|
sealed,
|
|
29
29
|
startRecording
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-M3JDGRXM.js";
|
|
31
31
|
import {
|
|
32
32
|
currentCaller,
|
|
33
33
|
keepsSuccess,
|
|
34
34
|
runContextOf,
|
|
35
35
|
withCaller
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LGGBKAVQ.js";
|
|
37
37
|
import {
|
|
38
38
|
inRun,
|
|
39
39
|
newRunId
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YOVIH4QI.js";
|
|
41
41
|
import {
|
|
42
42
|
storeDamaged
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BRBBZDMZ.js";
|
|
44
44
|
import {
|
|
45
45
|
failureContext
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2FLLS5IL.js";
|
|
47
47
|
import {
|
|
48
48
|
fetchesAt,
|
|
49
49
|
keyForCommand,
|
|
50
50
|
levelFor,
|
|
51
51
|
readKeysForCommand
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-SZZVNPTI.js";
|
|
53
53
|
import {
|
|
54
54
|
MAX_BUFFERED_INPUT
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ZS6T2PYQ.js";
|
|
56
56
|
import {
|
|
57
57
|
traceIdOf
|
|
58
58
|
} from "./chunk-2K5BAY32.js";
|
|
@@ -93,10 +93,10 @@ import {
|
|
|
93
93
|
__name
|
|
94
94
|
} from "./chunk-ZVVMGPBJ.js";
|
|
95
95
|
|
|
96
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
96
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
97
97
|
import { randomUUID } from "node:crypto";
|
|
98
98
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
99
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
100
100
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
101
101
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
102
102
|
var message = pipe(
|
|
@@ -355,7 +355,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
355
355
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
356
356
|
}, "failed");
|
|
357
357
|
|
|
358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
359
359
|
var MATCHES = 8;
|
|
360
360
|
var ANSWER = answerSchema();
|
|
361
361
|
var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
servicesFor,
|
|
20
20
|
terminalAsker,
|
|
21
21
|
waitForTurn
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4F62XXF6.js";
|
|
23
23
|
import {
|
|
24
24
|
capability,
|
|
25
25
|
throughWrapper
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QY7EOB66.js";
|
|
27
27
|
import {
|
|
28
28
|
servingProfiles
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZNNGK73C.js";
|
|
30
30
|
import {
|
|
31
31
|
asFirstWord,
|
|
32
32
|
baseContext,
|
|
@@ -37,29 +37,29 @@ import {
|
|
|
37
37
|
recalledAccount,
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-M3JDGRXM.js";
|
|
41
41
|
import {
|
|
42
42
|
providerErrorKey
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LGGBKAVQ.js";
|
|
44
44
|
import {
|
|
45
45
|
openStore
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2IRBXFIU.js";
|
|
47
47
|
import {
|
|
48
48
|
isCliFailure
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BRBBZDMZ.js";
|
|
50
50
|
import {
|
|
51
51
|
CEILING_KEY,
|
|
52
52
|
fetchesUnder,
|
|
53
53
|
levelFor,
|
|
54
54
|
readKeysForCommand
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-SZZVNPTI.js";
|
|
56
56
|
import {
|
|
57
57
|
chatReferenceOf,
|
|
58
58
|
ensureAccount,
|
|
59
59
|
foldName,
|
|
60
60
|
isId,
|
|
61
61
|
pickPerson
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BXXU4EXK.js";
|
|
63
63
|
import {
|
|
64
64
|
CliError
|
|
65
65
|
} from "./chunk-AP3CWDRK.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
__name
|
|
68
68
|
} from "./chunk-ZVVMGPBJ.js";
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
71
71
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
72
72
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
73
73
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -164,7 +164,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
164
164
|
});
|
|
165
165
|
}, "flooded");
|
|
166
166
|
|
|
167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
168
168
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
169
169
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
170
170
|
const write = currentOperation();
|
|
@@ -263,7 +263,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
263
263
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
264
264
|
}, "byPart");
|
|
265
265
|
|
|
266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
267
267
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
268
268
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
269
269
|
let warned = false;
|
|
@@ -839,7 +839,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
839
839
|
}
|
|
840
840
|
}, "keep");
|
|
841
841
|
|
|
842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
843
843
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
844
844
|
let opened;
|
|
845
845
|
return {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A7KGBXBT.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ 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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var REGISTRY = "https://registry.npmjs.org";
|
|
684
684
|
var wirecat = /* @__PURE__ */ __name((target, sha256, bytes, library) => ({
|
|
@@ -837,7 +837,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
837
837
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
838
838
|
}, "openSession");
|
|
839
839
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
841
841
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
842
842
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
843
843
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
8
8
|
var NORMALIZER_VERSION = 1;
|
|
9
9
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
10
10
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YOVIH4QI.js";
|
|
9
9
|
import {
|
|
10
10
|
reference
|
|
11
11
|
} from "./chunk-H5HBZCEJ.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
unknown
|
|
21
21
|
} from "./chunk-S4UUN6LD.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
24
24
|
var link = {
|
|
25
25
|
target_text: nullable(text),
|
|
26
26
|
kind: text,
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZNNGK73C.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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|