@wirecat/hubspot-cli 0.3.1 → 0.4.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 +20 -0
- package/README.md +6 -5
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-NST4YXJR.js +40 -0
- package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-JVEE4PXX.js} +11 -11
- package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-6HT57GNF.js} +5 -5
- package/dist/bundle/{app-server-EQZUP4H4.js → app-server-FOBFF6G6.js} +68 -68
- package/dist/bundle/{bun-AJPJ4ZUN.js → bun-GW443QB3.js} +2 -2
- package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-TGIAICDN.js} +6 -6
- package/dist/bundle/{chunk-ARTJLL7W.js → chunk-2BCWK5BF.js} +5 -5
- package/dist/bundle/{chunk-JUKAIXKY.js → chunk-2Q2XIXDL.js} +1 -1
- package/dist/bundle/{chunk-X5S5KUSU.js → chunk-3BM6KBWP.js} +19 -19
- package/dist/bundle/{chunk-J5P5VSRG.js → chunk-3LMW7U7F.js} +8 -8
- package/dist/bundle/{chunk-NNMU2TDU.js → chunk-3MPMYAII.js} +1 -1
- package/dist/bundle/{chunk-WGBVRDY3.js → chunk-3MUHCLRY.js} +25 -3
- package/dist/bundle/{chunk-TIHDBKA7.js → chunk-3SRGN5MQ.js} +2 -2
- package/dist/bundle/{chunk-EMOVVERN.js → chunk-4OPN3KCN.js} +5 -5
- package/dist/bundle/{chunk-6MFP47XC.js → chunk-5G4L6NQJ.js} +35 -35
- package/dist/bundle/{chunk-DQB5JMTY.js → chunk-5KLNBGPU.js} +1 -1
- package/dist/bundle/{chunk-ABXVU5O4.js → chunk-5OBVICFK.js} +8 -1
- package/dist/bundle/{chunk-LKSNISYV.js → chunk-5WKJFMC3.js} +4 -4
- package/dist/bundle/{chunk-B2W3C4N6.js → chunk-5ZVYIA56.js} +5 -5
- package/dist/bundle/{chunk-AF7DANIR.js → chunk-6NUXFVJQ.js} +1 -1
- package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-6ULR7N3T.js} +2 -2
- package/dist/bundle/{chunk-VW5F6FK3.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/{chunk-VQEAZXTV.js → chunk-7OJ43BAH.js} +7 -7
- package/dist/bundle/{chunk-PMP37KLR.js → chunk-7QH5BZUG.js} +3 -3
- package/dist/bundle/{chunk-OJIJVOOA.js → chunk-A6PVEUGN.js} +16 -16
- package/dist/bundle/{chunk-FIVD4HM4.js → chunk-AT43MYQL.js} +8 -8
- package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-ATGD64VO.js} +8 -8
- package/dist/bundle/{chunk-DSRXCLPO.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-3DIXAEGH.js → chunk-BXZRSXBL.js} +3 -3
- package/dist/bundle/{chunk-5K3FGXZH.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-KO4VR5NK.js → chunk-DBPFHJXX.js} +4 -4
- package/dist/bundle/{chunk-GRFICQTZ.js → chunk-DG4RBKIV.js} +1 -1
- package/dist/bundle/{chunk-5AYKCKSE.js → chunk-E33KM3DB.js} +11 -11
- package/dist/bundle/{chunk-5ZV7REBE.js → chunk-EBJYK7UM.js} +63 -60
- package/dist/bundle/{chunk-GZZR5U3K.js → chunk-ETKLP4VE.js} +12 -12
- package/dist/bundle/{chunk-BN22EKQQ.js → chunk-EU7AVWSX.js} +2 -2
- package/dist/bundle/{chunk-PLRUUXK7.js → chunk-F3HJ2E3P.js} +6 -6
- package/dist/bundle/{chunk-B3EH22CO.js → chunk-F4ZLRS4B.js} +1 -1
- package/dist/bundle/{chunk-VNPC274V.js → chunk-FK4LEJZM.js} +3 -3
- package/dist/bundle/{chunk-M763RNWP.js → chunk-FOLKK6FW.js} +13 -13
- package/dist/bundle/{chunk-NTQBS2JL.js → chunk-FWW2CUXH.js} +4 -4
- package/dist/bundle/{chunk-SEELWPRD.js → chunk-GJSHLF43.js} +8 -8
- package/dist/bundle/{chunk-CBCEMFCF.js → chunk-GOOXUCJW.js} +2 -2
- package/dist/bundle/{chunk-BUGROVF3.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-HM72O37C.js} +156 -156
- package/dist/bundle/{chunk-KVXEEKBB.js → chunk-HPRKSL5S.js} +2 -2
- package/dist/bundle/{chunk-3TEFE6YU.js → chunk-HQYJ66ZX.js} +7 -7
- package/dist/bundle/{chunk-3I2FGNWO.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-IBTMK5KD.js → chunk-IED6MKPU.js} +25 -25
- package/dist/bundle/{chunk-LA3YU4K7.js → chunk-JKNUCEII.js} +1 -1
- package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-JWO3PB5Z.js} +18 -18
- package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K4DWBOO6.js} +43 -64
- package/dist/bundle/{chunk-Z6ZQVYIE.js → chunk-LS4S7PAP.js} +3 -3
- package/dist/bundle/{chunk-RVWGFD32.js → chunk-LX7QMRRG.js} +13 -13
- package/dist/bundle/{chunk-WCQW4GYO.js → chunk-M25KVDHA.js} +24 -8
- package/dist/bundle/{chunk-L433IDOX.js → chunk-MQACXJLG.js} +8 -8
- package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-N4EIJ53V.js} +2 -2
- package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-NL3RKJR6.js} +1 -1
- package/dist/bundle/{chunk-LT5KE44Q.js → chunk-NLZADZ4F.js} +61 -61
- package/dist/bundle/{chunk-E4X7JAFC.js → chunk-OLDIP4CV.js} +3 -3
- package/dist/bundle/{chunk-AVUMH42T.js → chunk-PKFLSX5F.js} +8 -8
- package/dist/bundle/{chunk-IXZLMFPO.js → chunk-PMJCZIV4.js} +1 -1
- package/dist/bundle/{chunk-NZGI74GS.js → chunk-PQUZ2YDC.js} +6 -6
- package/dist/bundle/{chunk-LTVYGXWT.js → chunk-Q7DIEU6L.js} +7 -7
- package/dist/bundle/{chunk-E4FAMU2S.js → chunk-QIFCH5DZ.js} +347 -313
- package/dist/bundle/{chunk-WRCKE5ND.js → chunk-QJHRRJKD.js} +3 -3
- package/dist/bundle/{chunk-7UEL65GQ.js → chunk-QNQ4V4UT.js} +8 -8
- package/dist/bundle/{chunk-JP2HJXFO.js → chunk-QODPEZC5.js} +3 -3
- package/dist/bundle/{chunk-ODPU3II6.js → chunk-QV4GDVBN.js} +8 -8
- package/dist/bundle/{chunk-2A64XS22.js → chunk-RFGIUCKU.js} +3 -3
- package/dist/bundle/{chunk-GC6FLHZF.js → chunk-T3GZKV5A.js} +12 -12
- package/dist/bundle/{chunk-HPZRUY6S.js → chunk-TAF4PKDS.js} +1 -1
- package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-UHHXZKB2.js} +16 -16
- package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-UIWWAT3C.js} +7 -7
- package/dist/bundle/{chunk-ITGNDZRR.js → chunk-V23OHBGM.js} +3 -3
- package/dist/bundle/{chunk-U6XA3OOM.js → chunk-V2B2OWTC.js} +2 -2
- package/dist/bundle/{chunk-2NCO4E4T.js → chunk-VDAYIXV4.js} +6 -6
- package/dist/bundle/{chunk-7NZT7Y55.js → chunk-VMF2UIQI.js} +1 -1
- package/dist/bundle/{chunk-XLDQTDF6.js → chunk-W5X37TBC.js} +2 -2
- package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-WATDMTDC.js} +3 -3
- package/dist/bundle/{chunk-Q27QAB4X.js → chunk-WBUVNKHJ.js} +7 -7
- package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-WLFYEAZ6.js} +978 -548
- package/dist/bundle/{chunk-5YNAVVCW.js → chunk-X5U7GLHD.js} +3 -3
- package/dist/bundle/{chunk-JK2SNLU5.js → chunk-XCDRFC6G.js} +17 -17
- package/dist/bundle/{chunk-AWOJYRQW.js → chunk-XDDTJYGA.js} +434 -371
- package/dist/bundle/{chunk-2PRVWEJC.js → chunk-XJVFXHDI.js} +2 -2
- package/dist/bundle/{chunk-2HYGCLKN.js → chunk-XMWMA2N5.js} +77 -38
- package/dist/bundle/{chunk-BHZUPOQY.js → chunk-YYYRE4AV.js} +26 -26
- package/dist/bundle/{chunk-DW23LM47.js → chunk-Z3YOKGVZ.js} +2 -2
- package/dist/bundle/{chunk-A6UFH3QU.js → chunk-Z4PY5BDP.js} +4 -4
- package/dist/bundle/command-contract-LYX2QNIA.js +40 -0
- package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-OJQ55UA2.js} +28 -28
- package/dist/bundle/{decode-6PLXHVHW.js → decode-CDQDRPRJ.js} +5 -5
- package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-JQBAZWCL.js} +8 -8
- package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-GJ5JJG2A.js} +2 -2
- package/dist/bundle/{embed-AWLL4EBF.js → embed-BUQXGMKR.js} +6 -6
- package/dist/bundle/{embedder-MM225YJ6.js → embedder-FCX6LE4O.js} +9 -9
- package/dist/bundle/{failure-MR2XVHFP.js → failure-I6AAF5R5.js} +2 -2
- package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-RPYEXXQK.js} +12 -12
- package/dist/bundle/first-screen-Y4EH3HZS.js +40 -0
- package/dist/bundle/hubspot.js +25 -25
- package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-LPVTPERS.js} +1 -1
- package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-FEEVVUGC.js +25 -0
- package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-TRGBEWCY.js} +11 -11
- package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RSF5KNKD.js} +6 -6
- package/dist/bundle/{node-HGCZGZ4R.js → node-UAT3EIAP.js} +2 -2
- package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-3HKDQNFD.js} +7 -7
- package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-DYW2NSZP.js} +7 -7
- package/dist/bundle/{open-UCDSQUN2.js → open-KBRXJ5BC.js} +5 -5
- package/dist/bundle/{openai-Y4F5ZC7O.js → openai-YNCLRTSK.js} +15 -15
- package/dist/bundle/{process-P7FB7YO7.js → process-63BB7LKP.js} +1 -1
- package/dist/bundle/{program-O2A5L4S4.js → program-VX52OB3O.js} +132 -98
- package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-TWLJ3M2O.js} +5 -5
- package/dist/bundle/{recognize-5NYPTSLT.js → recognize-GQ6DLGE7.js} +4 -4
- package/dist/bundle/{remote-U4LUAHF2.js → remote-RKNSF3TT.js} +9 -9
- package/dist/bundle/{rerank-AJAVKK5L.js → rerank-H4HSGQUJ.js} +7 -7
- package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-LDK7O6VW.js} +1 -1
- package/dist/bundle/{serve-4UJ3R5IP.js → serve-4ZNIAL7H.js} +9 -9
- package/dist/bundle/server-3IYIZEEQ.js +86 -0
- package/dist/bundle/{server-DUKWJUKD.js → server-4G4QB3QN.js} +60 -60
- package/dist/bundle/{source-FCQDXCAD.js → source-2UCNCCO7.js} +79 -79
- package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-C2JYC7JF.js} +6 -6
- package/dist/bundle/{state-COGSYMVH.js → state-3KDXCXHG.js} +6 -6
- package/dist/bundle/store-2MNUHHZC.js +32 -0
- package/dist/bundle/{store-V5UMSWK4.js → store-J5FQBZYR.js} +26 -22
- package/dist/bundle/{store-BJXCSP26.js → store-LXLG5HTS.js} +24 -24
- package/dist/bundle/store-maintenance-command-DDB7TR6V.js +73 -0
- package/dist/bundle/surface-ZTZANYKC.js +72 -0
- package/dist/bundle/writer-X7PGBLDH.js +86 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +56 -8
- package/dist/config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/hubspot-cli/references/api/api-basic.md +34 -6
- package/skills/hubspot-cli/references/api/api-batch.md +19 -9
- package/skills/hubspot-cli/references/api/api-search.md +9 -0
- package/dist/bundle/agent-A7ARC3QB.js +0 -40
- package/dist/bundle/command-contract-R2FGN7CQ.js +0 -40
- package/dist/bundle/first-screen-SCDV7TXT.js +0 -40
- package/dist/bundle/meeting-combined-EL5XZIJ5.js +0 -25
- package/dist/bundle/server-UQVV2PPX.js +0 -86
- package/dist/bundle/store-CHH3G3SL.js +0 -32
- package/dist/bundle/store-maintenance-command-DQUBBWMD.js +0 -73
- package/dist/bundle/surface-IGBQUYE5.js +0 -72
- package/dist/bundle/writer-AQSEPEEN.js +0 -86
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HM6AMYHR.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3BM6KBWP.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3LMW7U7F.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError,
|
|
14
14
|
singleLine
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HM6AMYHR.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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
21
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
22
22
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
23
23
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -443,7 +443,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
443
443
|
}
|
|
444
444
|
}, "assertRetentionEvidenceRead");
|
|
445
445
|
|
|
446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
447
447
|
var named = /* @__PURE__ */ __name((work) => {
|
|
448
448
|
try {
|
|
449
449
|
return work();
|
|
@@ -470,7 +470,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
470
470
|
return projectFields(value, fields);
|
|
471
471
|
}), "projectFields");
|
|
472
472
|
|
|
473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
474
474
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
475
475
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
476
476
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -506,7 +506,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
506
506
|
return value;
|
|
507
507
|
}, "atDetail");
|
|
508
508
|
|
|
509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/output.js
|
|
510
510
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
511
511
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
512
512
|
if (other)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z3YOKGVZ.js";
|
|
7
7
|
import {
|
|
8
8
|
ADDED_PROVIDER,
|
|
9
9
|
INTERNAL_NOTES,
|
|
@@ -17,20 +17,20 @@ import {
|
|
|
17
17
|
kindsIn,
|
|
18
18
|
providerNamed,
|
|
19
19
|
providers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-T3GZKV5A.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6ULR7N3T.js";
|
|
24
24
|
import {
|
|
25
25
|
createRecordLog,
|
|
26
26
|
resolvePaths,
|
|
27
27
|
traceIdOf,
|
|
28
28
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3BM6KBWP.js";
|
|
30
30
|
import {
|
|
31
31
|
isoTime,
|
|
32
32
|
reference
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3LMW7U7F.js";
|
|
34
34
|
import {
|
|
35
35
|
array,
|
|
36
36
|
boolean,
|
|
@@ -51,18 +51,18 @@ import {
|
|
|
51
51
|
} from "./chunk-S4UUN6LD.js";
|
|
52
52
|
import {
|
|
53
53
|
CliError
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-HM6AMYHR.js";
|
|
55
55
|
import {
|
|
56
56
|
__name
|
|
57
57
|
} from "./chunk-ZVVMGPBJ.js";
|
|
58
58
|
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
60
60
|
import { randomUUID } from "node:crypto";
|
|
61
61
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
62
62
|
import { userInfo } from "node:os";
|
|
63
63
|
import { join, sep } from "node:path";
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
66
66
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
67
67
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
68
68
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -75,7 +75,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
75
75
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
76
76
|
}), "snakeLogger");
|
|
77
77
|
|
|
78
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
78
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
79
79
|
var diagnostic = {
|
|
80
80
|
event: true,
|
|
81
81
|
operation: true,
|
|
@@ -149,7 +149,7 @@ var LOG_ATTRIBUTES = [
|
|
|
149
149
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
150
150
|
].sort();
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
153
153
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
154
154
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
155
155
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -516,7 +516,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
516
516
|
};
|
|
517
517
|
}, "metadataOf");
|
|
518
518
|
|
|
519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
520
520
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
521
521
|
import { randomBytes } from "node:crypto";
|
|
522
522
|
var scopes = new AsyncLocalStorage();
|
|
@@ -569,7 +569,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
569
569
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
570
570
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
571
571
|
|
|
572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
573
573
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
574
574
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
575
575
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -584,7 +584,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
584
584
|
}
|
|
585
585
|
__name(closeTask, "closeTask");
|
|
586
586
|
|
|
587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
588
588
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
589
589
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
590
590
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -613,7 +613,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
613
613
|
}, "priorityOf");
|
|
614
614
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
615
615
|
|
|
616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
617
617
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
618
618
|
async function find(id2) {
|
|
619
619
|
const task = await store.get(id2);
|
|
@@ -673,20 +673,20 @@ function median(values) {
|
|
|
673
673
|
}
|
|
674
674
|
__name(median, "median");
|
|
675
675
|
|
|
676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
677
677
|
function matches(task, filter) {
|
|
678
678
|
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
679
|
}
|
|
680
680
|
__name(matches, "matches");
|
|
681
681
|
|
|
682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
683
683
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
684
684
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
685
685
|
var ERASED_TEXT = "[source erased]";
|
|
686
686
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
687
687
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
688
688
|
|
|
689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
690
690
|
var text = string();
|
|
691
691
|
var id = pipe(string(), minLength(1));
|
|
692
692
|
var time = isoTime;
|
|
@@ -711,7 +711,7 @@ var author = strictObject({
|
|
|
711
711
|
name: nullable(text)
|
|
712
712
|
});
|
|
713
713
|
|
|
714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
715
715
|
var organization = strictObject({
|
|
716
716
|
id,
|
|
717
717
|
ref: reference,
|
|
@@ -741,7 +741,7 @@ var reminder = strictObject({
|
|
|
741
741
|
receipt: nullable(text)
|
|
742
742
|
});
|
|
743
743
|
|
|
744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
745
745
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
746
746
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
747
747
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -862,7 +862,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
862
862
|
return { previous, cleared };
|
|
863
863
|
}, "recordDeepCheck");
|
|
864
864
|
|
|
865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
866
866
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
867
867
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
868
868
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -870,7 +870,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
870
870
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
871
871
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
872
872
|
|
|
873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
874
874
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
875
875
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
876
876
|
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 +880,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
880
880
|
};
|
|
881
881
|
}, "sourceOf");
|
|
882
882
|
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
884
884
|
var LINK_KINDS = [
|
|
885
885
|
"links-to",
|
|
886
886
|
"blocked-by",
|
|
@@ -904,7 +904,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
|
904
904
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
905
905
|
var COUNTERPART_ROLE = "counterpart";
|
|
906
906
|
|
|
907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
908
908
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
909
909
|
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
910
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -927,7 +927,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
927
927
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
928
928
|
}, "sourceOf");
|
|
929
929
|
|
|
930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
931
931
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
932
932
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
933
933
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1159,7 +1159,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1159
1159
|
return { accounts: [...chosen.values()], skipped };
|
|
1160
1160
|
}, "fitting");
|
|
1161
1161
|
|
|
1162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1163
1163
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1164
1164
|
|
|
1165
1165
|
export {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
14
14
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
15
15
|
var INTEGER = /^-?\d+$/;
|
|
16
16
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
exhausted,
|
|
6
6
|
searchError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QODPEZC5.js";
|
|
8
8
|
import {
|
|
9
9
|
fold
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5KLNBGPU.js";
|
|
11
11
|
import {
|
|
12
12
|
CATALOG_KINDS,
|
|
13
13
|
CONTRACT_KINDS,
|
|
@@ -26,16 +26,16 @@ import {
|
|
|
26
26
|
parseReference,
|
|
27
27
|
providerLabel,
|
|
28
28
|
providerNamed
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-T3GZKV5A.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError,
|
|
32
32
|
singleLine
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HM6AMYHR.js";
|
|
34
34
|
import {
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/addresses.js
|
|
39
39
|
var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
40
40
|
var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
|
|
41
41
|
var ROLE_ADDRESS_WORDS = {
|
|
@@ -97,7 +97,7 @@ var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
|
|
|
97
97
|
var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
|
|
98
98
|
var isNoReplyAddress = /* @__PURE__ */ __name((address) => NO_REPLY.has(localWord(address)), "isNoReplyAddress");
|
|
99
99
|
|
|
100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
101
101
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
102
102
|
var literal = /* @__PURE__ */ __name((c) => ({
|
|
103
103
|
kind: "char",
|
|
@@ -497,7 +497,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
497
497
|
return out;
|
|
498
498
|
}, "foldRegex");
|
|
499
499
|
|
|
500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
501
501
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
502
502
|
const padded = ` ${term} `;
|
|
503
503
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -506,7 +506,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
506
506
|
return [...pieces];
|
|
507
507
|
}, "trigrams");
|
|
508
508
|
|
|
509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
510
510
|
var TAKES = {
|
|
511
511
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
512
512
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -566,7 +566,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
566
566
|
throw wrongAccount(reference, scope, profiles);
|
|
567
567
|
}, "ensureAccount");
|
|
568
568
|
|
|
569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
570
570
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
571
571
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
572
572
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -637,7 +637,7 @@ ${lines}`, { candidates });
|
|
|
637
637
|
}, "ambiguous");
|
|
638
638
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
639
639
|
|
|
640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/display-names.js
|
|
641
641
|
var QUOTES = [
|
|
642
642
|
['"', '"'],
|
|
643
643
|
["'", "'"],
|
|
@@ -695,7 +695,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
|
|
|
695
695
|
}, "nameKey");
|
|
696
696
|
var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
|
|
697
697
|
|
|
698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
699
699
|
var PHONE_PLANS = [
|
|
700
700
|
{
|
|
701
701
|
country: "us",
|
|
@@ -1075,7 +1075,7 @@ var PHONE_PLANS = [
|
|
|
1075
1075
|
}
|
|
1076
1076
|
];
|
|
1077
1077
|
|
|
1078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
1079
1079
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
1080
1080
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
1081
1081
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -1150,7 +1150,7 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
|
|
|
1150
1150
|
return found ? `+${found[1]}` : void 0;
|
|
1151
1151
|
}, "storedPhone");
|
|
1152
1152
|
|
|
1153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
|
|
1154
1154
|
var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
1155
1155
|
var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
1156
1156
|
var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
@@ -1200,7 +1200,7 @@ var arrayOf = /* @__PURE__ */ __name((item, maxItems, description) => ({
|
|
|
1200
1200
|
}), "arrayOf");
|
|
1201
1201
|
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
1202
1202
|
|
|
1203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/record-types.js
|
|
1204
1204
|
var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
|
|
1205
1205
|
var PARTY = ["person", "organization"];
|
|
1206
1206
|
var ORGANIZATION = ["organization"];
|
|
@@ -1595,7 +1595,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf(type).some(([, role])
|
|
|
1595
1595
|
var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
|
|
1596
1596
|
var article2 = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
|
|
1597
1597
|
|
|
1598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
1599
1599
|
import { createHash } from "node:crypto";
|
|
1600
1600
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
1601
1601
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -1736,7 +1736,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
|
|
|
1736
1736
|
return found;
|
|
1737
1737
|
}, "fieldReferences");
|
|
1738
1738
|
|
|
1739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
1740
1740
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
1741
1741
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
1742
1742
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now) => {
|
|
@@ -1755,7 +1755,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
1755
1755
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
1756
1756
|
}, "counterFreshness");
|
|
1757
1757
|
|
|
1758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
1759
1759
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
1760
1760
|
var AUTHOR_MEASURES = [
|
|
1761
1761
|
"messages",
|
|
@@ -1895,7 +1895,7 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
|
|
|
1895
1895
|
var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
1896
1896
|
var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
|
|
1897
1897
|
|
|
1898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
|
|
1899
1899
|
var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
|
|
1900
1900
|
var ROLE_LABELS = {
|
|
1901
1901
|
organization: {
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DBPFHJXX.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HM6AMYHR.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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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,66 +678,45 @@ 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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
|
-
var
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
name: `onnxruntime-node-${ONNX_RUNTIME_VERSION}.tgz`,
|
|
691
|
-
url: `https://registry.npmjs.org/onnxruntime-node/-/onnxruntime-node-${ONNX_RUNTIME_VERSION}.tgz`,
|
|
692
|
-
sha256: "6e3390d6b783e7be946fad629292799da28d0b42f84856e50d2c1b0383291e75",
|
|
693
|
-
bytes: 113507888
|
|
694
|
-
};
|
|
695
|
-
var NATIVE = {
|
|
696
|
-
"linux-x64": {
|
|
697
|
-
archive: release("onnxruntime-linux-x64-1.30.0.tgz", "a5ed5a3cac51fbb2e90da632ae43d19212faaa20e76484e62bcb7c23ddb3b3fd", 11306877),
|
|
698
|
-
member: "onnxruntime-linux-x64-1.30.0/lib/libonnxruntime.so.1.30.0",
|
|
699
|
-
library: {
|
|
700
|
-
name: "libonnxruntime.so.1",
|
|
701
|
-
sha256: "245a6f8c38127551057a1cd1ffd59f0a186a227ade4f3492dea2494eb565542e",
|
|
702
|
-
bytes: 28985152
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
|
-
"linux-arm64": {
|
|
706
|
-
archive: release("onnxruntime-linux-aarch64-1.30.0.tgz", "e16a27a8ed330bbc698df7330b0cf56e722f354e3bcc92118682c74ef3c3e3da", 10269495),
|
|
707
|
-
member: "onnxruntime-linux-aarch64-1.30.0/lib/libonnxruntime.so.1.30.0",
|
|
708
|
-
library: {
|
|
709
|
-
name: "libonnxruntime.so.1",
|
|
710
|
-
sha256: "64e903a43a041240fd6bcffe0ac6d4fea47ef87bf24b9d097801bd00a9612a4b",
|
|
711
|
-
bytes: 25135496
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
"darwin-arm64": {
|
|
715
|
-
archive: release("onnxruntime-osx-arm64-1.30.0.tgz", "6ebb5062a934537c352937821f9fe9718e7de1a2db1122a93dd363ffd53a7012", 42373116),
|
|
716
|
-
member: "onnxruntime-osx-arm64-1.30.0/lib/libonnxruntime.1.30.0.dylib",
|
|
717
|
-
library: {
|
|
718
|
-
name: "libonnxruntime.1.dylib",
|
|
719
|
-
sha256: "bcc9110f9d638a119de2db7afb3ba9a1da8085f0cb3401e1c48ae1caf450b6fa",
|
|
720
|
-
bytes: 43879424
|
|
721
|
-
}
|
|
722
|
-
},
|
|
723
|
-
"win32-x64": {
|
|
724
|
-
archive: npmTarball,
|
|
725
|
-
member: "package/bin/napi-v6/win32/x64/onnxruntime.dll",
|
|
726
|
-
library: {
|
|
727
|
-
name: "onnxruntime.dll",
|
|
728
|
-
sha256: "508c362f5673483dd3a086379c392795b2e42d10d5e6f3f90ebd7ac21c97af67",
|
|
729
|
-
bytes: 28754232
|
|
730
|
-
}
|
|
683
|
+
var REGISTRY = "https://registry.npmjs.org";
|
|
684
|
+
var wirecat = /* @__PURE__ */ __name((target, sha256, bytes, library) => ({
|
|
685
|
+
archive: {
|
|
686
|
+
name: `onnxruntime-${target}-${ONNX_RUNTIME_VERSION}.tgz`,
|
|
687
|
+
url: `${REGISTRY}/@wirecat/onnxruntime-${target}/-/onnxruntime-${target}-${ONNX_RUNTIME_VERSION}.tgz`,
|
|
688
|
+
sha256,
|
|
689
|
+
bytes
|
|
731
690
|
},
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
}
|
|
691
|
+
member: `package/${library.name}`,
|
|
692
|
+
library
|
|
693
|
+
}), "wirecat");
|
|
694
|
+
var NATIVE = {
|
|
695
|
+
"linux-x64": wirecat("linux-x64", "9c12e88ae495ae04e28802e52c2524a7a9c31aa715a67eeb636c85efcb08e5d9", 11305384, {
|
|
696
|
+
name: "libonnxruntime.so.1",
|
|
697
|
+
sha256: "245a6f8c38127551057a1cd1ffd59f0a186a227ade4f3492dea2494eb565542e",
|
|
698
|
+
bytes: 28985152
|
|
699
|
+
}),
|
|
700
|
+
"linux-arm64": wirecat("linux-arm64", "4ec23a63f0e7f49edb63590f4bc8b0e8526bff5b3a2b19d768112f37dc50d09c", 10386392, {
|
|
701
|
+
name: "libonnxruntime.so.1",
|
|
702
|
+
sha256: "64e903a43a041240fd6bcffe0ac6d4fea47ef87bf24b9d097801bd00a9612a4b",
|
|
703
|
+
bytes: 25135496
|
|
704
|
+
}),
|
|
705
|
+
"darwin-arm64": wirecat("darwin-arm64", "0e543a584a048b301ff96b81af4b001288e048577ce0f0b4a5a9c2df97979615", 12921423, {
|
|
706
|
+
name: "libonnxruntime.1.dylib",
|
|
707
|
+
sha256: "bffaa6ef856dba2c26f09c7c0e7018fd1562625f3485292c7ad28b83748c6879",
|
|
708
|
+
bytes: 43879424
|
|
709
|
+
}),
|
|
710
|
+
"win32-x64": wirecat("win32-x64", "55924c8e4c3f975d131e943712c5fac6e5423fb2b0c356c96230f2ad18dc2792", 10652326, {
|
|
711
|
+
name: "onnxruntime.dll",
|
|
712
|
+
sha256: "508c362f5673483dd3a086379c392795b2e42d10d5e6f3f90ebd7ac21c97af67",
|
|
713
|
+
bytes: 28754232
|
|
714
|
+
}),
|
|
715
|
+
"win32-arm64": wirecat("win32-arm64", "77e43743e580d6641e49b7cdeed57fd11f21a8cf27a186dd33a3db817b3ff7f2", 10778591, {
|
|
716
|
+
name: "onnxruntime.dll",
|
|
717
|
+
sha256: "6c3a2abf5c6aca11c48a0d338a91af309f2266f25ce2e4084e6a87bbcb0fbfd0",
|
|
718
|
+
bytes: 29815136
|
|
719
|
+
})
|
|
741
720
|
};
|
|
742
721
|
var onMusl = /* @__PURE__ */ __name(() => {
|
|
743
722
|
try {
|
|
@@ -771,7 +750,7 @@ var installNativeRuntime = /* @__PURE__ */ __name(async ({ env = process.env, pr
|
|
|
771
750
|
const folder = runtimeFolder(runtime, env);
|
|
772
751
|
if (isInstalled(runtime, folder))
|
|
773
752
|
return folder;
|
|
774
|
-
progress(`ONNX Runtime ${ONNX_RUNTIME_VERSION} for ${runtime.target}: ${megabytes(runtime.archive.bytes)} from
|
|
753
|
+
progress(`ONNX Runtime ${ONNX_RUNTIME_VERSION} for ${runtime.target}: ${megabytes(runtime.archive.bytes)} from npm`);
|
|
775
754
|
const parent = sharedModelsDirectory("runtime", env);
|
|
776
755
|
mkdirSync(parent, { recursive: true, mode: 448 });
|
|
777
756
|
const staging = mkdtempSync(join(parent, ".onnxruntime-"));
|
|
@@ -858,7 +837,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
837
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
838
|
}, "openSession");
|
|
860
839
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
841
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
842
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
843
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
IDENTITY
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Q7DIEU6L.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -15,9 +15,9 @@ var PROVIDER = {
|
|
|
15
15
|
command: IDENTITY.command
|
|
16
16
|
};
|
|
17
17
|
var openHubspotStore = /* @__PURE__ */ __name(async (env, { readOnly = false } = {}) => {
|
|
18
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
18
|
+
const { ensureSqlite } = await import("./sqlite-runtime-C2JYC7JF.js");
|
|
19
19
|
await ensureSqlite();
|
|
20
|
-
const { openStore, storePath } = await import("./store-
|
|
20
|
+
const { openStore, storePath } = await import("./store-LXLG5HTS.js");
|
|
21
21
|
const store = await openStore({
|
|
22
22
|
path: storePath(env),
|
|
23
23
|
env,
|