@wirecat/bitrix24-cli 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +130 -0
- package/README.md +84 -9
- package/dist/api-keys.d.ts +36 -9
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +139 -19
- package/dist/api-keys.js.map +1 -1
- package/dist/bin/b24.js +2 -2
- package/dist/bitrix/errors.js +1 -1
- package/dist/bitrix/errors.js.map +1 -1
- package/dist/bitrix/methods.d.ts.map +1 -1
- package/dist/bitrix/methods.js +7 -3
- package/dist/bitrix/methods.js.map +1 -1
- package/dist/bitrix/transport.d.ts +4 -7
- package/dist/bitrix/transport.d.ts.map +1 -1
- package/dist/bitrix/transport.js +29 -19
- package/dist/bitrix/transport.js.map +1 -1
- package/dist/body.d.ts +14 -0
- package/dist/body.d.ts.map +1 -0
- package/dist/body.js +44 -0
- package/dist/body.js.map +1 -0
- package/dist/bundle/{chunk-QIPTIUMJ.js → all-profiles-CANIDIDS.js} +12 -7
- package/dist/bundle/{anthropic-RHRAVHC2.js → anthropic-JUJB4DCF.js} +5 -5
- package/dist/bundle/{app-server-QIT6S7AZ.js → app-server-3V5Z4PTK.js} +68 -54
- package/dist/bundle/b24.js +18 -12
- package/dist/bundle/{bun-H6RSODZ3.js → bun-LKMV5TY7.js} +2 -2
- package/dist/bundle/{bun-sqlite-BO4LTQHX.js → bun-sqlite-S56EF74S.js} +3 -3
- package/dist/bundle/{chunk-D5S6QV6R.js → chunk-2I4KWS3H.js} +6 -6
- package/dist/bundle/chunk-36PO5NWY.js +147 -0
- package/dist/bundle/{chunk-ZIAQPTUS.js → chunk-42F7Q7V6.js} +3 -3
- package/dist/bundle/{chunk-6WY72XVQ.js → chunk-4D3K6GZW.js} +18 -4
- package/dist/bundle/chunk-5D4MJQ6X.js +22 -0
- package/dist/bundle/chunk-5JOPERVF.js +84 -0
- package/dist/bundle/chunk-6A4UPWDC.js +15 -0
- package/dist/bundle/{chunk-P33NDCDI.js → chunk-6MGWIZG4.js} +1 -1
- package/dist/bundle/{chunk-ZDQQCXFG.js → chunk-6YJTNZ7U.js} +13 -13
- package/dist/bundle/{chunk-MBDK4YXG.js → chunk-7FBFJ6B4.js} +4 -2
- package/dist/bundle/chunk-7VCMOTQP.js +55 -0
- package/dist/bundle/{chunk-P364PLIK.js → chunk-A5IMMGYU.js} +36 -34
- package/dist/bundle/{chunk-45AKJVKV.js → chunk-ASEHTBNK.js} +1 -1
- package/dist/bundle/{chunk-HGL63O5V.js → chunk-B6LPJYPQ.js} +2 -2
- package/dist/bundle/{chunk-LSPIOT6Z.js → chunk-BHEE2K6C.js} +7 -7
- package/dist/bundle/chunk-BYZQBE63.js +971 -0
- package/dist/bundle/{program-H3TGGRQ6.js → chunk-COKGNTDQ.js} +15761 -16685
- package/dist/bundle/{chunk-XJXONOB5.js → chunk-DVFYRQGE.js} +1 -1
- package/dist/bundle/{chunk-FLUEXJ4X.js → chunk-DVSIBZ3G.js} +1 -1
- package/dist/bundle/chunk-EJEIXC6Y.js +273 -0
- package/dist/bundle/chunk-EYTGCM44.js +130 -0
- package/dist/bundle/{chunk-IRV2PCQ2.js → chunk-EYYOKT23.js} +26 -26
- package/dist/bundle/{chunk-PH5FZX6E.js → chunk-FCWPIWSR.js} +2 -2
- package/dist/bundle/{chunk-YZ5LHE5Q.js → chunk-FSWRMQWX.js} +2 -2
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/chunk-G5MW6RCM.js +723 -0
- package/dist/bundle/{chunk-VEWWAGTD.js → chunk-GLTKRLFT.js} +8 -8
- package/dist/bundle/chunk-GUUZQ7NE.js +581 -0
- package/dist/bundle/{chunk-QSNROIJL.js → chunk-H6RIPOOI.js} +42 -9
- package/dist/bundle/{chunk-H2ADPPSH.js → chunk-HGFNC4CR.js} +1819 -597
- package/dist/bundle/{chunk-7GRZAKBB.js → chunk-IERYD2N2.js} +6 -6
- package/dist/bundle/{chunk-N6FLBXZS.js → chunk-IGCLMEMB.js} +3 -3
- package/dist/bundle/{chunk-U5ACMCAQ.js → chunk-J7WCSZ2Q.js} +411 -919
- package/dist/bundle/{chunk-W5YAO5G5.js → chunk-JZYHQ4HB.js} +9 -4
- package/dist/bundle/{chunk-EVYSBZ3I.js → chunk-K4QM3X5F.js} +4 -4
- package/dist/bundle/{chunk-DTXERR44.js → chunk-KFSMY7SZ.js} +2 -2
- package/dist/bundle/{chunk-LRGYKOCP.js → chunk-KPEDH5T4.js} +1 -1
- package/dist/bundle/{chunk-XRFJWHY5.js → chunk-KUY7LII2.js} +4 -4
- package/dist/bundle/{chunk-QC53QBNC.js → chunk-LFXDHLFR.js} +3 -3
- package/dist/bundle/{chunk-CNNEA2M4.js → chunk-LGLT4JB6.js} +3 -3
- package/dist/bundle/{chunk-QGMDQ2PM.js → chunk-LM4OOBAW.js} +3 -3
- package/dist/bundle/chunk-M74BSKMA.js +234 -0
- package/dist/bundle/{chunk-2KCZ7BKW.js → chunk-MMMT6ORT.js} +11 -11
- package/dist/bundle/{chunk-WII44RXN.js → chunk-NGYD6QTE.js} +2 -2
- package/dist/bundle/{chunk-FOTREPNS.js → chunk-NO6QOPVT.js} +10 -19
- package/dist/bundle/chunk-O6XC7DZI.js +804 -0
- package/dist/bundle/chunk-OE3NFB53.js +64 -0
- package/dist/bundle/{chunk-XD4FRDSL.js → chunk-OUMFNB34.js} +13 -149
- package/dist/bundle/{chunk-ZGZT5S6B.js → chunk-P2RQTNVJ.js} +806 -850
- package/dist/bundle/{chunk-RRJNNPR4.js → chunk-PBIBGIZ7.js} +1 -1
- package/dist/bundle/{chunk-EXOOKUEA.js → chunk-Q6VQHTRW.js} +2 -2
- package/dist/bundle/{chunk-TE3FR6MI.js → chunk-QHBCNVUG.js} +5 -5
- package/dist/bundle/{chunk-SGRYYE4X.js → chunk-QNOXAQ6Y.js} +4 -4
- package/dist/bundle/{chunk-QQXH2OPB.js → chunk-R5F2O5GX.js} +15 -272
- package/dist/bundle/{chunk-SFRNX2TI.js → chunk-R5PBSKJL.js} +1 -1
- package/dist/bundle/{chunk-OTD2ZRXD.js → chunk-RS2BARUU.js} +4 -4
- package/dist/bundle/chunk-TG3DSPT5.js +14 -0
- package/dist/bundle/{chunk-BCF7P4FZ.js → chunk-U22JMKUO.js} +6 -125
- package/dist/bundle/chunk-U66Q5TVK.js +106 -0
- package/dist/bundle/{chunk-QMPN6WKD.js → chunk-UCHMQWON.js} +211 -89
- package/dist/bundle/{chunk-POC3V3AO.js → chunk-VMJS7FJZ.js} +526 -467
- package/dist/bundle/{chunk-FZL7F5NR.js → chunk-VMVAQHDC.js} +77 -615
- package/dist/bundle/{chunk-K3UIB6ZF.js → chunk-WWMCJFMT.js} +2 -2
- package/dist/bundle/{chunk-CXL33BFL.js → chunk-XTA5TN3H.js} +1 -1
- package/dist/bundle/{chunk-WTPMJYMD.js → chunk-XUHHBEA7.js} +652 -131
- package/dist/bundle/{chunk-WKRQ44EH.js → chunk-YDZHO4LT.js} +13 -13
- package/dist/bundle/{chunk-2SNUMZ7S.js → chunk-ZKINZFIT.js} +6 -6
- package/dist/bundle/{chunk-HAXNUIGQ.js → chunk-ZSQXSIFQ.js} +89 -39
- package/dist/bundle/{chunk-YYO7D2MO.js → chunk-ZZEHDIEG.js} +58 -54
- package/dist/bundle/command-contract-OQV6H7SR.js +36 -0
- package/dist/bundle/{decode-5ZPLTYV6.js → decode-QSTBX4MG.js} +3 -3
- package/dist/bundle/{echarts-J6LAPIX7.js → echarts-JZELFH2N.js} +2 -2
- package/dist/bundle/{embed-YG5LDHME.js → embed-4RIW2LVH.js} +4 -4
- package/dist/bundle/{embedder-7FNUA5OZ.js → embedder-SW7DTWSL.js} +7 -7
- package/dist/bundle/{first-run-JPZNWIJN.js → first-run-7AISOSOM.js} +8 -8
- package/dist/bundle/first-screen-NMHNFZ2B.js +34 -0
- package/dist/bundle/{instructions-AXWTQHMR.js → instructions-BZE5YUGG.js} +1 -1
- package/dist/bundle/{mcp-7F46P6AM.js → mcp-SDWHDJTY.js} +2 -2
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-CWKAIOEM.js → node-LTKZIO4U.js} +2 -2
- package/dist/bundle/{node-sqlite-LSEKVRDA.js → node-sqlite-HQ5PN2RH.js} +4 -4
- package/dist/bundle/{oauth-THYNLRLD.js → oauth-UH6FOZQL.js} +5 -5
- package/dist/bundle/{open-E47QYKFC.js → open-TSUP3XGL.js} +3 -3
- package/dist/bundle/{openai-EWSGC3BC.js → openai-GVEE52E3.js} +14 -14
- package/dist/bundle/{process-WKTEA3WE.js → process-AGXY76ZE.js} +1 -1
- package/dist/bundle/program-BI4A4HFJ.js +2247 -0
- package/dist/bundle/{prompt-CAQ7QR3U.js → prompt-NRSUY7FA.js} +3 -3
- package/dist/bundle/{recognize-6KGHNZC3.js → recognize-NPDPQ6PJ.js} +2 -2
- package/dist/bundle/{remote-3UO2WDC3.js → remote-HFASMVLB.js} +5 -5
- package/dist/bundle/{rerank-2JVDPZBX.js → rerank-TL6Z6F7K.js} +5 -5
- package/dist/bundle/{chunk-VL6SPMZV.js → serve-VB4DHDZQ.js} +8 -6
- package/dist/bundle/server-T5EDRPJI.js +68 -0
- package/dist/bundle/{chunk-ZEW4P6AH.js → server-Z6MW6C37.js} +50 -14
- package/dist/bundle/source-4IGO5J7E.js +237 -0
- package/dist/bundle/sqlite-runtime-YS4POY3W.js +17 -0
- package/dist/bundle/{state-7NH5G4XJ.js → state-ISZVVZGR.js} +4 -4
- package/dist/bundle/store-IZJBAKJV.js +58 -0
- package/dist/bundle/{store-7O4JQD2Z.js → store-L76MSQC3.js} +17 -12
- package/dist/bundle/store-PBTIB7BD.js +207 -0
- package/dist/bundle/store-maintenance-command-YFKII7TF.js +58 -0
- package/dist/bundle/writer-3O5EYMFE.js +214 -0
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +81 -30
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/crm-shared.d.ts +4 -0
- package/dist/commands/crm-shared.d.ts.map +1 -0
- package/dist/commands/crm-shared.js +94 -0
- package/dist/commands/crm-shared.js.map +1 -0
- package/dist/commands/crm-writes.d.ts +0 -1
- package/dist/commands/crm-writes.d.ts.map +1 -1
- package/dist/commands/crm-writes.js +43 -88
- package/dist/commands/crm-writes.js.map +1 -1
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +30 -48
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +1 -0
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/write.d.ts +6 -6
- package/dist/commands/write.d.ts.map +1 -1
- package/dist/commands/write.js +11 -18
- package/dist/commands/write.js.map +1 -1
- package/dist/config.d.ts +0 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -8
- package/dist/config.js.map +1 -1
- package/dist/crm/capabilities.d.ts +7 -0
- package/dist/crm/capabilities.d.ts.map +1 -0
- package/dist/crm/capabilities.js +7 -0
- package/dist/crm/capabilities.js.map +1 -0
- package/dist/crm/conditions.d.ts +1 -1
- package/dist/crm/conditions.d.ts.map +1 -1
- package/dist/crm/conditions.js +4 -6
- package/dist/crm/conditions.js.map +1 -1
- package/dist/crm/custom-query.d.ts +19 -0
- package/dist/crm/custom-query.d.ts.map +1 -0
- package/dist/crm/custom-query.js +79 -0
- package/dist/crm/custom-query.js.map +1 -0
- package/dist/crm/deal.d.ts +4 -27
- package/dist/crm/deal.d.ts.map +1 -1
- package/dist/crm/deal.js +15 -48
- package/dist/crm/deal.js.map +1 -1
- package/dist/crm/fields.d.ts +20 -0
- package/dist/crm/fields.d.ts.map +1 -0
- package/dist/crm/fields.js +78 -0
- package/dist/crm/fields.js.map +1 -0
- package/dist/crm/items.d.ts +7 -1
- package/dist/crm/items.d.ts.map +1 -1
- package/dist/crm/items.js +21 -18
- package/dist/crm/items.js.map +1 -1
- package/dist/crm/lead.d.ts +5 -36
- package/dist/crm/lead.d.ts.map +1 -1
- package/dist/crm/lead.js +15 -61
- package/dist/crm/lead.js.map +1 -1
- package/dist/crm/organization.d.ts +1 -0
- package/dist/crm/organization.d.ts.map +1 -1
- package/dist/crm/person.d.ts +1 -0
- package/dist/crm/person.d.ts.map +1 -1
- package/dist/crm/pipelines.d.ts +5 -0
- package/dist/crm/pipelines.d.ts.map +1 -0
- package/dist/crm/pipelines.js +54 -0
- package/dist/crm/pipelines.js.map +1 -0
- package/dist/crm/product.d.ts.map +1 -1
- package/dist/crm/product.js +2 -2
- package/dist/crm/product.js.map +1 -1
- package/dist/crm/rest3-fields.d.ts +3 -0
- package/dist/crm/rest3-fields.d.ts.map +1 -0
- package/dist/crm/rest3-fields.js +38 -0
- package/dist/crm/rest3-fields.js.map +1 -0
- package/dist/crm/source.d.ts +15 -0
- package/dist/crm/source.d.ts.map +1 -0
- package/dist/crm/source.js +122 -0
- package/dist/crm/source.js.map +1 -0
- package/dist/crm/user.d.ts.map +1 -1
- package/dist/crm/user.js +2 -2
- package/dist/crm/user.js.map +1 -1
- package/dist/crm/values.d.ts +26 -5
- package/dist/crm/values.d.ts.map +1 -1
- package/dist/crm/values.js +40 -5
- package/dist/crm/values.js.map +1 -1
- package/dist/crm/writer.d.ts +9 -0
- package/dist/crm/writer.d.ts.map +1 -0
- package/dist/crm/writer.js +119 -0
- package/dist/crm/writer.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +53 -5
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -1
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts +15 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +33 -0
- package/dist/store.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -6
- package/skills/bitrix24-cli/SKILL.md +16 -10
- package/dist/bundle/all-profiles-QJ444GSX.js +0 -24
- package/dist/bundle/chunk-XNHSPHUN.js +0 -48
- package/dist/bundle/command-contract-OKQOE6G4.js +0 -30
- package/dist/bundle/first-screen-VQM4MTS7.js +0 -28
- package/dist/bundle/mcp-5RSWNTHS.js +0 -160
- package/dist/bundle/mcp-J5R5A65I.js +0 -87
- package/dist/bundle/serve-ES7AG5IK.js +0 -19
- package/dist/bundle/server-5LE5LNUQ.js +0 -45
- package/dist/bundle/server-BU4VBM6S.js +0 -58
- package/dist/bundle/store-maintenance-command-UDVGEY2D.js +0 -47
- package/dist/commands/doctor.d.ts +0 -77
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -74
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -3
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -97
- package/dist/commands/mcp.js.map +0 -1
- package/dist/crm/pipeline.d.ts +0 -17
- package/dist/crm/pipeline.d.ts.map +0 -1
- package/dist/crm/pipeline.js +0 -42
- package/dist/crm/pipeline.js.map +0 -1
- package/dist/crm/stage.d.ts +0 -20
- package/dist/crm/stage.d.ts.map +0 -1
- package/dist/crm/stage.js +0 -65
- package/dist/crm/stage.js.map +0 -1
- package/dist/mcp.d.ts +0 -29
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -99
- package/dist/mcp.js.map +0 -1
- /package/dist/bundle/{chunk-4PDYYS5K.js → chunk-ZQ3GWKDQ.js} +0 -0
|
@@ -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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -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-EYYOKT23.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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/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();
|
|
@@ -2,21 +2,21 @@ 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-KFSMY7SZ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
resolvePaths,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EYYOKT23.js";
|
|
11
11
|
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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
16
16
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
17
17
|
import { dirname, join, resolve } from "node:path";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
20
20
|
var DEFAULT_TASK_CATEGORIES = [
|
|
21
21
|
{
|
|
22
22
|
name: "taxes",
|
|
@@ -771,7 +771,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
771
771
|
}
|
|
772
772
|
}, "storedTaskCategories");
|
|
773
773
|
|
|
774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
775
775
|
var SECTION = "task_categories";
|
|
776
776
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
777
777
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KFSMY7SZ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EYYOKT23.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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -4,25 +4,26 @@ import {
|
|
|
4
4
|
formatMeetingReference,
|
|
5
5
|
moneyLabel,
|
|
6
6
|
parseMeetingReference
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P2RQTNVJ.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
singleLine
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EYYOKT23.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
17
|
+
var DEAL_KINDS = ["deal", "lead"];
|
|
17
18
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
19
|
+
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
18
20
|
var DEAL_ROLES = ["owner", "contact", "decision-maker"];
|
|
19
21
|
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
20
22
|
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
21
|
-
|
|
22
|
-
return `${deal.title} \xB7 ${deal.stage}${money}${notes ? ` (${notes})` : ""}`;
|
|
23
|
+
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
23
24
|
}, "dealLine");
|
|
24
25
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
26
27
|
var SCHEME = "msg:";
|
|
27
28
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
28
29
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -36,7 +37,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
36
37
|
return { provider, account, chat, message };
|
|
37
38
|
}, "parseLocator");
|
|
38
39
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
40
41
|
var SIMPLE_REFERENCES = [
|
|
41
42
|
"note",
|
|
42
43
|
"document",
|
|
@@ -52,6 +53,8 @@ var SIMPLE_REFERENCES = [
|
|
|
52
53
|
"payment",
|
|
53
54
|
"order",
|
|
54
55
|
"deal",
|
|
56
|
+
"lead",
|
|
57
|
+
"pipeline",
|
|
55
58
|
"entity"
|
|
56
59
|
];
|
|
57
60
|
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
@@ -185,8 +188,8 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
|
185
188
|
return match !== null && byPrefix.has(match[1]);
|
|
186
189
|
}, "looksLikeReference");
|
|
187
190
|
|
|
188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
189
|
-
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
192
|
+
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
190
193
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
191
194
|
var PROVIDERS = [
|
|
192
195
|
{ name: "telegram", kind: "messages", aliases: ["tg"], command: "tg", opens: MESSENGER_OPENS },
|
|
@@ -301,260 +304,10 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
301
304
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
302
305
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
303
306
|
|
|
304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
305
|
-
import { createHash } from "node:crypto";
|
|
306
|
-
var RECORDS_SCHEMA_VERSION = 1;
|
|
307
|
-
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
308
|
-
var WORD2 = "^[a-z0-9][a-z0-9_-]{0,62}$";
|
|
309
|
-
var TYPE = "^(invoice|payment|person|organization|project|custom:[a-z0-9][a-z0-9_-]{0,62})$";
|
|
310
|
-
var MAX_ID = 512;
|
|
311
|
-
var MAX_RELATIONS = 100;
|
|
312
|
-
var DECIMAL = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
313
|
-
var RECORDS_ENVELOPE_SCHEMA = {
|
|
314
|
-
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
315
|
-
title: "WireCat records envelope, version 1",
|
|
316
|
-
description: "Records one source sends to the store. JSONL is the same model: the first line holds schema_version and source, each further line one record.",
|
|
317
|
-
type: "object",
|
|
318
|
-
required: ["schema_version", "source", "records"],
|
|
319
|
-
additionalProperties: false,
|
|
320
|
-
properties: {
|
|
321
|
-
schema_version: { const: RECORDS_SCHEMA_VERSION },
|
|
322
|
-
source: { $ref: "#/$defs/source" },
|
|
323
|
-
records: { type: "array", items: { $ref: "#/$defs/record" } }
|
|
324
|
-
},
|
|
325
|
-
$defs: {
|
|
326
|
-
source: {
|
|
327
|
-
type: "object",
|
|
328
|
-
required: ["provider", "account", "batch_id"],
|
|
329
|
-
additionalProperties: false,
|
|
330
|
-
properties: {
|
|
331
|
-
provider: { type: "string", pattern: WORD2, description: "The system the records come from" },
|
|
332
|
-
account: { type: "string", minLength: 1, maxLength: MAX_ID, description: "The account in that system" },
|
|
333
|
-
batch_id: { type: "string", minLength: 1, maxLength: MAX_ID, description: "This import, for the receipt" }
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
record: {
|
|
337
|
-
type: "object",
|
|
338
|
-
required: ["key", "type", "external_id", "operation"],
|
|
339
|
-
additionalProperties: false,
|
|
340
|
-
properties: {
|
|
341
|
-
key: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
342
|
-
type: { type: "string", pattern: TYPE },
|
|
343
|
-
external_id: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
344
|
-
operation: { enum: [...RECORD_OPERATIONS] },
|
|
345
|
-
fields: {
|
|
346
|
-
type: "object",
|
|
347
|
-
description: "What the source says, as data: never secrets, never instructions"
|
|
348
|
-
},
|
|
349
|
-
revision: { type: "integer", minimum: 0, maximum: Number.MAX_SAFE_INTEGER },
|
|
350
|
-
relations: { type: "array", maxItems: MAX_RELATIONS, items: { $ref: "#/$defs/relation" } }
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
relation: {
|
|
354
|
-
type: "object",
|
|
355
|
-
required: ["role", "type", "external_id"],
|
|
356
|
-
additionalProperties: false,
|
|
357
|
-
properties: {
|
|
358
|
-
role: { type: "string", pattern: WORD2 },
|
|
359
|
-
type: { type: "string", pattern: TYPE },
|
|
360
|
-
external_id: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
361
|
-
amount: {
|
|
362
|
-
type: "string",
|
|
363
|
-
pattern: DECIMAL,
|
|
364
|
-
description: "A settles relation's share of the payment, a decimal in its currency"
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
var wordPattern = new RegExp(WORD2);
|
|
371
|
-
var typePattern = new RegExp(TYPE);
|
|
372
|
-
var decimalPattern = new RegExp(DECIMAL);
|
|
373
|
-
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
374
|
-
var escapePointer = /* @__PURE__ */ __name((segment) => String(segment).replaceAll("~", "~0").replaceAll("/", "~1"), "escapePointer");
|
|
375
|
-
var pointerOf = /* @__PURE__ */ __name((...segments) => segments.map((s) => `/${escapePointer(s)}`).join(""), "pointerOf");
|
|
376
|
-
var canonical = /* @__PURE__ */ __name((value) => {
|
|
377
|
-
if (Array.isArray(value))
|
|
378
|
-
return value.map(canonical);
|
|
379
|
-
if (!isObject(value))
|
|
380
|
-
return value;
|
|
381
|
-
return Object.fromEntries(Object.keys(value).sort().map((key) => [key, canonical(value[key])]));
|
|
382
|
-
}, "canonical");
|
|
383
|
-
var recordFingerprint = /* @__PURE__ */ __name((fields, relations) => createHash("sha256").update(JSON.stringify(canonical({
|
|
384
|
-
fields,
|
|
385
|
-
relations: relations.map((relation) => [
|
|
386
|
-
relation.role,
|
|
387
|
-
relation.type,
|
|
388
|
-
relation.external_id,
|
|
389
|
-
...relation.amount === void 0 ? [] : [relation.amount]
|
|
390
|
-
]).sort((a, b) => a.join("\0").localeCompare(b.join("\0")))
|
|
391
|
-
}))).digest("hex"), "recordFingerprint");
|
|
392
|
-
|
|
393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
394
|
-
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
395
|
-
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
396
|
-
var counterObservationTime = /* @__PURE__ */ __name((observation, now) => {
|
|
397
|
-
const at = Date.parse(observation.observedAt);
|
|
398
|
-
if (!validCounter(observation.value) || !Number.isSafeInteger(at) || at < 0 || at > now || !["remote_fetch", "remote_update"].includes(observation.source))
|
|
399
|
-
throw new CliError("validation_error", "counter observation needs a valid value, source and nonfuture observation time");
|
|
400
|
-
if (observation.reactions && (!validCounter(observation.reactions.total) || observation.reactions.total !== observation.value))
|
|
401
|
-
throw new CliError("validation_error", "reaction observation payload and total disagree");
|
|
402
|
-
return at;
|
|
403
|
-
}, "counterObservationTime");
|
|
404
|
-
var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
405
|
-
if (!states.length || states.every((one) => one.freshness === "unknown"))
|
|
406
|
-
return "unknown";
|
|
407
|
-
if (states.some((one) => one.freshness === "unknown"))
|
|
408
|
-
return "partial";
|
|
409
|
-
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
410
|
-
}, "counterFreshness");
|
|
411
|
-
|
|
412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.586.0_@wirecat+cli-base@0.79.0_commander@15.0.0_esbuild@0.28.2_type_bdecddef0ae5a50ae90cab8b9e35c13b/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
413
|
-
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
414
|
-
var AUTHOR_MEASURES = [
|
|
415
|
-
"messages",
|
|
416
|
-
"words",
|
|
417
|
-
"reactions",
|
|
418
|
-
"replies",
|
|
419
|
-
"answers",
|
|
420
|
-
"answer-time",
|
|
421
|
-
"threads",
|
|
422
|
-
"active-days"
|
|
423
|
-
];
|
|
424
|
-
var CONTEXT = /* @__PURE__ */ new Set([
|
|
425
|
-
"replies",
|
|
426
|
-
"replies-from-others",
|
|
427
|
-
"replies-from-others-per-message",
|
|
428
|
-
"thread-size",
|
|
429
|
-
"threads",
|
|
430
|
-
"answers",
|
|
431
|
-
"answer-time"
|
|
432
|
-
]);
|
|
433
|
-
var needsRankingContext = /* @__PURE__ */ __name((options) => options.components.some((name) => CONTEXT.has(name)), "needsRankingContext");
|
|
434
|
-
var presets = {
|
|
435
|
-
helpful: { answers: 0.5, "replies-from-others": 0.25, reactions: 0.25 },
|
|
436
|
-
active: { "active-days": 0.6, messages: 0.4 },
|
|
437
|
-
engaging: { "reactions-per-message": 0.5, "replies-from-others-per-message": 0.5 }
|
|
438
|
-
};
|
|
439
|
-
function invalid2(message) {
|
|
440
|
-
throw new CliError("validation_error", message, { reason: "ranking.invalid" });
|
|
441
|
-
}
|
|
442
|
-
__name(invalid2, "invalid");
|
|
443
|
-
var rankingOptions = /* @__PURE__ */ __name((target, input) => {
|
|
444
|
-
const measures = target === "messages" ? MESSAGE_MEASURES : AUTHOR_MEASURES;
|
|
445
|
-
const { measure, score, weights: given, minMessages } = input;
|
|
446
|
-
const messageKind = input.messageKind ?? "all";
|
|
447
|
-
if (!["all", "posts", "comments"].includes(messageKind))
|
|
448
|
-
invalid2("message_kind takes all, posts or comments");
|
|
449
|
-
if (target === "messages" && minMessages !== void 0)
|
|
450
|
-
invalid2("min_messages applies to stats contacts top");
|
|
451
|
-
if (minMessages !== void 0 && (!Number.isSafeInteger(minMessages) || minMessages < 1))
|
|
452
|
-
invalid2("min_messages takes a positive integer");
|
|
453
|
-
if (measure !== void 0 && !measures.includes(measure))
|
|
454
|
-
invalid2(`--measure takes ${measures.join(", ")}`);
|
|
455
|
-
if (measure !== void 0 && (score !== void 0 || given !== void 0))
|
|
456
|
-
invalid2("--measure cannot be combined with --score or --weights");
|
|
457
|
-
if (score !== void 0 && !["helpful", "active", "engaging"].includes(score))
|
|
458
|
-
invalid2("--score takes helpful, active or engaging");
|
|
459
|
-
if (target === "messages" && score !== void 0 && score !== "engaging")
|
|
460
|
-
invalid2("helpful and active scores apply to authors only");
|
|
461
|
-
const scoring = score !== void 0 || given !== void 0;
|
|
462
|
-
const preset = score;
|
|
463
|
-
let weights = null;
|
|
464
|
-
if (scoring) {
|
|
465
|
-
let raw = given !== void 0 ? given : target === "messages" ? { reactions: 0.5, "replies-from-others": 0.5 } : presets[preset];
|
|
466
|
-
if (typeof raw === "string") {
|
|
467
|
-
try {
|
|
468
|
-
raw = JSON.parse(raw);
|
|
469
|
-
} catch {
|
|
470
|
-
invalid2("--weights takes a JSON object of component weights");
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
if (!raw || typeof raw !== "object" || Array.isArray(raw))
|
|
474
|
-
invalid2("--weights takes a JSON object of component weights");
|
|
475
|
-
const allowed = target === "messages" ? [...MESSAGE_MEASURES, "replies-from-others"] : [
|
|
476
|
-
...AUTHOR_MEASURES.filter((name) => name !== "answer-time"),
|
|
477
|
-
"replies-from-others",
|
|
478
|
-
"reactions-per-message",
|
|
479
|
-
"replies-from-others-per-message"
|
|
480
|
-
];
|
|
481
|
-
const entries = Object.entries(raw);
|
|
482
|
-
for (const [name, weight] of entries) {
|
|
483
|
-
if (!allowed.includes(name))
|
|
484
|
-
invalid2(`unknown ${target} score component: ${name}`);
|
|
485
|
-
if (typeof weight !== "number" || !Number.isFinite(weight) || weight < 0)
|
|
486
|
-
invalid2(`weight for ${name} must be a finite nonnegative number`);
|
|
487
|
-
}
|
|
488
|
-
if (!entries.some(([, weight]) => weight > 0))
|
|
489
|
-
invalid2("--weights needs at least one positive weight");
|
|
490
|
-
weights = Object.fromEntries(entries);
|
|
491
|
-
}
|
|
492
|
-
const selected = measure ?? (target === "messages" ? "reactions" : "messages");
|
|
493
|
-
return {
|
|
494
|
-
target,
|
|
495
|
-
messageKind,
|
|
496
|
-
minMessages: minMessages ?? (target === "contacts" && score === "engaging" ? 5 : 1),
|
|
497
|
-
measure: scoring ? "score" : selected,
|
|
498
|
-
order: !scoring && selected === "answer-time" ? "ascending" : "descending",
|
|
499
|
-
weights,
|
|
500
|
-
preset: scoring ? preset ?? "custom" : null,
|
|
501
|
-
components: weights === null ? [selected] : Object.entries(weights).filter(([, weight]) => weight > 0).map(([name]) => name)
|
|
502
|
-
};
|
|
503
|
-
}, "rankingOptions");
|
|
504
|
-
var rankingScore = /* @__PURE__ */ __name((raw, maxima, weights) => {
|
|
505
|
-
const entries = Object.entries(weights).filter(([, weight]) => weight > 0);
|
|
506
|
-
const scale = Math.max(...entries.map(([, weight]) => weight));
|
|
507
|
-
const denominator = entries.reduce((sum2, [, weight]) => sum2 + weight / scale, 0);
|
|
508
|
-
if (!Number.isFinite(scale) || scale <= 0 || !Number.isFinite(denominator) || denominator <= 0)
|
|
509
|
-
return null;
|
|
510
|
-
const normalized = {};
|
|
511
|
-
const contributions = {};
|
|
512
|
-
let sum = 0;
|
|
513
|
-
for (const [name, weight] of entries) {
|
|
514
|
-
const value = raw[name];
|
|
515
|
-
const maximum = maxima[name];
|
|
516
|
-
if (value == null || !Number.isFinite(value) || value < 0 || maximum === void 0 || !Number.isFinite(maximum) || maximum < value)
|
|
517
|
-
return null;
|
|
518
|
-
const part = maximum === 0 ? 0 : value / maximum;
|
|
519
|
-
normalized[name] = part;
|
|
520
|
-
contributions[name] = 100 * part * (weight / scale) / denominator;
|
|
521
|
-
sum += contributions[name];
|
|
522
|
-
}
|
|
523
|
-
return { score: Math.min(100, sum), normalized, contributions };
|
|
524
|
-
}, "rankingScore");
|
|
525
|
-
var RANKING_TOKENIZER_VERSION = 1;
|
|
526
|
-
var withoutUrls = /* @__PURE__ */ __name((text) => text.replace(/\S+/gu, (token) => {
|
|
527
|
-
for (let offset = 0; ; ) {
|
|
528
|
-
const marker = token.indexOf("://", offset);
|
|
529
|
-
if (marker < 0)
|
|
530
|
-
break;
|
|
531
|
-
let start = marker;
|
|
532
|
-
while (start > 0 && /[a-z0-9+.-]/iu.test(token[start - 1]))
|
|
533
|
-
start--;
|
|
534
|
-
if (/^[a-z][a-z0-9+.-]*$/iu.test(token.slice(start, marker)) && (start === 0 || !/\w/u.test(token[start - 1])))
|
|
535
|
-
return token.slice(0, start);
|
|
536
|
-
offset = marker + 3;
|
|
537
|
-
}
|
|
538
|
-
const folded = token.toLowerCase();
|
|
539
|
-
for (let offset = 0; ; ) {
|
|
540
|
-
const start = folded.indexOf("www.", offset);
|
|
541
|
-
if (start < 0)
|
|
542
|
-
break;
|
|
543
|
-
if (start === 0 || !/\w/u.test(token[start - 1]))
|
|
544
|
-
return token.slice(0, start);
|
|
545
|
-
offset = start + 4;
|
|
546
|
-
}
|
|
547
|
-
return token;
|
|
548
|
-
}), "withoutUrls");
|
|
549
|
-
var rankingWords = /* @__PURE__ */ __name((text) => withoutUrls(text).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
550
|
-
var rankingQuestion = /* @__PURE__ */ __name((text) => withoutUrls(text).includes("?"), "rankingQuestion");
|
|
551
|
-
|
|
552
307
|
export {
|
|
553
|
-
|
|
554
|
-
validCounter,
|
|
555
|
-
counterObservationTime,
|
|
556
|
-
counterFreshness,
|
|
308
|
+
DEAL_KINDS,
|
|
557
309
|
DEAL_STATUSES,
|
|
310
|
+
STAGE_OUTCOMES,
|
|
558
311
|
DEAL_ROLES,
|
|
559
312
|
dealLine,
|
|
560
313
|
formatLocator,
|
|
@@ -580,15 +333,5 @@ export {
|
|
|
580
333
|
isKind,
|
|
581
334
|
providerNamed,
|
|
582
335
|
kindIn,
|
|
583
|
-
kindOf
|
|
584
|
-
MESSAGE_MEASURES,
|
|
585
|
-
AUTHOR_MEASURES,
|
|
586
|
-
needsRankingContext,
|
|
587
|
-
rankingOptions,
|
|
588
|
-
rankingScore,
|
|
589
|
-
RANKING_TOKENIZER_VERSION,
|
|
590
|
-
rankingWords,
|
|
591
|
-
rankingQuestion,
|
|
592
|
-
pointerOf,
|
|
593
|
-
recordFingerprint
|
|
336
|
+
kindOf
|
|
594
337
|
};
|
|
@@ -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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IGCLMEMB.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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/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.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/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");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.601.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4fddd50439ae4e4f952967ea26554e7b/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
8
|
+
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
9
|
+
var isItemKind = /* @__PURE__ */ __name((kind) => kind === "deal" || kind === "lead", "isItemKind");
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
CRM_KINDS,
|
|
13
|
+
isItemKind
|
|
14
|
+
};
|