@wirecat/attio-cli 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-EIWQ37E3.js +37 -0
- package/dist/bundle/{all-profiles-KCZGH7JK.js → all-profiles-ZM2ULOTA.js} +6 -6
- package/dist/bundle/{anthropic-4HCGQIHA.js → anthropic-CIJQLJ7U.js} +2 -2
- package/dist/bundle/{app-server-VSYG36ER.js → app-server-56GKE6BE.js} +53 -53
- package/dist/bundle/attio.js +2 -2
- package/dist/bundle/{bun-CZK3ZADI.js → bun-3D6UYEKL.js} +2 -2
- package/dist/bundle/{bun-sqlite-CM5FSNH3.js → bun-sqlite-TWXFZF7R.js} +3 -3
- package/dist/bundle/{chunk-32BIODCI.js → chunk-33HYI76J.js} +2 -2
- package/dist/bundle/{chunk-YFAATLLR.js → chunk-46U5WHCF.js} +7 -7
- package/dist/bundle/{chunk-YC3F3RCL.js → chunk-4KLCWI57.js} +2 -2
- package/dist/bundle/{chunk-A3Y5GPG3.js → chunk-4V6ARVEH.js} +152 -151
- package/dist/bundle/{chunk-JLFXUXSQ.js → chunk-6C6RHNUB.js} +4 -4
- package/dist/bundle/{chunk-ISNUT525.js → chunk-6ITXXXQN.js} +2 -2
- package/dist/bundle/{chunk-HYVMLDYF.js → chunk-6ZEG7MR3.js} +1 -1
- package/dist/bundle/{chunk-WPOOZGQ7.js → chunk-7JUZNTYO.js} +9 -9
- package/dist/bundle/{chunk-MWFJX3K6.js → chunk-7PXDDBH7.js} +1 -1
- package/dist/bundle/{chunk-5ZNVTVDU.js → chunk-AXJNIMPZ.js} +1 -1
- package/dist/bundle/{chunk-KYAJ5AVG.js → chunk-BMDM6I5G.js} +4 -4
- package/dist/bundle/{chunk-MSASR6MQ.js → chunk-CQZREDFS.js} +3 -3
- package/dist/bundle/{chunk-RGFBK5DJ.js → chunk-CRK3LRCL.js} +10 -10
- package/dist/bundle/{chunk-EAWMBNAO.js → chunk-CVHEO4HS.js} +882 -541
- package/dist/bundle/{chunk-6WVUBU7T.js → chunk-DBAZ5TBW.js} +5 -5
- package/dist/bundle/{chunk-DJCGJRAD.js → chunk-DYLNV6GY.js} +11 -11
- package/dist/bundle/{chunk-HTQ5HUXV.js → chunk-EPLC6LQP.js} +51 -51
- package/dist/bundle/{chunk-AV7762PN.js → chunk-EPWOY5UJ.js} +1 -1
- package/dist/bundle/{chunk-EGZ6N56Z.js → chunk-EXWFB2XY.js} +1 -1
- package/dist/bundle/{chunk-Y4AOEDGO.js → chunk-GSA2HYGF.js} +6 -6
- package/dist/bundle/{chunk-4E4IGABE.js → chunk-HMORLIGS.js} +1 -1
- package/dist/bundle/{chunk-OKK2CBVW.js → chunk-HNH7EVWO.js} +12 -12
- package/dist/bundle/{chunk-PTTSHIYR.js → chunk-HTTGJI6G.js} +23 -23
- package/dist/bundle/{chunk-23POG3B3.js → chunk-HU6HKKIH.js} +2 -2
- package/dist/bundle/{chunk-ZOVX5VVZ.js → chunk-HXHQBYLN.js} +1 -1
- package/dist/bundle/{chunk-TU4U3YEM.js → chunk-JQ5NTPT5.js} +1 -1
- package/dist/bundle/{chunk-CYF6ECG7.js → chunk-K45K3AJU.js} +1 -1
- package/dist/bundle/{chunk-WHA23FJC.js → chunk-KNJ5W5ZZ.js} +30 -23
- package/dist/bundle/{chunk-FNIYIYDK.js → chunk-KYGX7XUZ.js} +16 -16
- package/dist/bundle/{chunk-CSKKZTWI.js → chunk-LTMLSN6W.js} +11 -11
- package/dist/bundle/{chunk-7XSJ6LTE.js → chunk-M7UG4UBJ.js} +2 -2
- package/dist/bundle/{chunk-52GTOWNB.js → chunk-MH55F2Z2.js} +5 -5
- package/dist/bundle/{chunk-YBCGG6JY.js → chunk-MOTQBDFB.js} +2 -2
- package/dist/bundle/{chunk-N64IK3XS.js → chunk-MVSBV6U7.js} +1 -1
- package/dist/bundle/{chunk-C4DJ4OTP.js → chunk-NJSWOZED.js} +6 -6
- package/dist/bundle/{chunk-AJT4BERP.js → chunk-O3GNIUUI.js} +2 -2
- package/dist/bundle/{chunk-X3PQFXYL.js → chunk-OE3J3P24.js} +2 -2
- package/dist/bundle/{chunk-LTGWE5L6.js → chunk-OI4WM2AM.js} +1 -1
- package/dist/bundle/{chunk-5WZBGDPL.js → chunk-OJ7P7IK5.js} +6 -6
- package/dist/bundle/{chunk-55CDR7VJ.js → chunk-ORMKVY7L.js} +54 -54
- package/dist/bundle/{chunk-WF7TKMZ7.js → chunk-Q5VVEFXR.js} +7 -7
- package/dist/bundle/{chunk-UMJ7OKJD.js → chunk-QA5WIEW5.js} +5 -5
- package/dist/bundle/{chunk-JAUTKJYJ.js → chunk-QD7INIE3.js} +1 -1
- package/dist/bundle/{chunk-NMKAEONQ.js → chunk-QDU4MLUN.js} +5 -5
- package/dist/bundle/{chunk-4BQDHDZA.js → chunk-QWBCCZNQ.js} +2 -2
- package/dist/bundle/{chunk-KK3IESFZ.js → chunk-R5TIPW5A.js} +9 -9
- package/dist/bundle/{chunk-MOUF6JHB.js → chunk-SQOHCWB2.js} +1 -1
- package/dist/bundle/{chunk-2ILCSLXY.js → chunk-T4SPEBOI.js} +7 -7
- package/dist/bundle/{chunk-EO3X3QWY.js → chunk-TBRD6I2W.js} +2 -2
- package/dist/bundle/{chunk-ZGFRTWSW.js → chunk-U6W3NW74.js} +32 -32
- package/dist/bundle/{chunk-UZW73WTM.js → chunk-V6GEPZWY.js} +32 -32
- package/dist/bundle/{chunk-RMOSNURU.js → chunk-VE6L6TDH.js} +2 -2
- package/dist/bundle/{chunk-2SVDLRLQ.js → chunk-VTAZ4LL7.js} +12 -12
- package/dist/bundle/{chunk-CYAWDFBI.js → chunk-WQKMBZRF.js} +4 -4
- package/dist/bundle/{chunk-5R255HLF.js → chunk-WZAQ7U2F.js} +1 -1
- package/dist/bundle/{chunk-U3Y2AC2K.js → chunk-X5TBQOYI.js} +2 -2
- package/dist/bundle/{chunk-TSL3PZAZ.js → chunk-XBMJAFXC.js} +1 -1
- package/dist/bundle/{chunk-NIV4S25C.js → chunk-XJ7LTHXM.js} +421 -351
- package/dist/bundle/{chunk-PO6DVZUY.js → chunk-Y7SRFHYL.js} +2 -2
- package/dist/bundle/{chunk-SQMN3CME.js → chunk-YITSNC3D.js} +3 -3
- package/dist/bundle/{chunk-XSHMRXOW.js → chunk-YSA36HJM.js} +1 -1
- package/dist/bundle/{chunk-4LEB7SUS.js → chunk-ZLCTHTOK.js} +1 -1
- package/dist/bundle/{chunk-YGPZCVBI.js → chunk-ZNQ3NNAB.js} +5 -5
- package/dist/bundle/{command-contract-JZGX4E3W.js → command-contract-SLVMJ557.js} +15 -15
- package/dist/bundle/{command-server-entry-FOFPJGYW.js → command-server-entry-MIZABAB2.js} +21 -21
- package/dist/bundle/{decode-2W6JJN3B.js → decode-3K7AMIIK.js} +2 -2
- package/dist/bundle/{echarts-R4BLGOSP.js → echarts-HQ3M6PY5.js} +2 -2
- package/dist/bundle/{embed-DIFO7RH4.js → embed-MYNNE2KU.js} +3 -3
- package/dist/bundle/{embedder-S5FKW4XZ.js → embedder-MZM52STR.js} +6 -6
- package/dist/bundle/{first-run-RNGP4IWU.js → first-run-FNH4L2MF.js} +6 -6
- package/dist/bundle/first-screen-TJE6JEAN.js +37 -0
- package/dist/bundle/{instructions-F22KNH4O.js → instructions-JCYBL6AU.js} +1 -1
- package/dist/bundle/{meeting-combined-HX3LC5FD.js → meeting-combined-FIPUL6DF.js} +10 -10
- package/dist/bundle/{meeting-model-P34GVZRK.js → meeting-model-36UKUPUK.js} +8 -8
- package/dist/bundle/{meeting-semantic-RC25X3UB.js → meeting-semantic-NX6AQT6U.js} +2 -2
- package/dist/bundle/{node-SF2NI2UT.js → node-US26HP3Q.js} +2 -2
- package/dist/bundle/{node-sqlite-WH3MF6PF.js → node-sqlite-7SJYGLZB.js} +4 -4
- package/dist/bundle/{oauth-EWHT3YJ4.js → oauth-GMDEZTLF.js} +4 -4
- package/dist/bundle/{open-LHEJSQCI.js → open-WJINQYGM.js} +2 -2
- package/dist/bundle/{openai-DDXBF7KV.js → openai-DNLCKN6O.js} +12 -12
- package/dist/bundle/{process-TEQQZ3C5.js → process-2TFFZAX6.js} +1 -1
- package/dist/bundle/{program-EUFRFWAE.js → program-Y3GX3KE4.js} +480 -368
- package/dist/bundle/{prompt-6OEYPNAI.js → prompt-OEPGHWMQ.js} +2 -2
- package/dist/bundle/{recognize-5CRXQMAQ.js → recognize-7C4PENI6.js} +1 -1
- package/dist/bundle/{remote-UZUYKGYQ.js → remote-HNRRZA6M.js} +6 -6
- package/dist/bundle/{rerank-IQ6GPSJ6.js → rerank-JNDOOOIZ.js} +4 -4
- package/dist/bundle/{serve-63YMTENV.js → serve-ATTJW7LZ.js} +6 -6
- package/dist/bundle/server-IMVPAMM6.js +79 -0
- package/dist/bundle/{server-WQUM4JX4.js → server-OHKISLVN.js} +45 -45
- package/dist/bundle/{sqlite-runtime-UO32UZHC.js → sqlite-runtime-TEZ56D53.js} +3 -3
- package/dist/bundle/{state-XSRJFYSU.js → state-SMWKWKIB.js} +3 -3
- package/dist/bundle/{store-A2J7I2NU.js → store-6SKOO4IN.js} +14 -14
- package/dist/bundle/{store-QB5FEGT4.js → store-YCWZZ3LG.js} +16 -16
- package/dist/bundle/store-maintenance-command-I5BNK4RE.js +66 -0
- package/dist/bundle/surface-NXFOGLLG.js +65 -0
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +1 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/attio-cli/SKILL.md +1 -1
- package/dist/bundle/agent-63P427ER.js +0 -37
- package/dist/bundle/first-screen-K6YMX3G5.js +0 -37
- package/dist/bundle/server-LKXXSTXK.js +0 -79
- package/dist/bundle/store-maintenance-command-TOLBEUMR.js +0 -66
- package/dist/bundle/surface-NURI2TAG.js +0 -65
|
@@ -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.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
normalize
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JQ5NTPT5.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-TSHMRHL6.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.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
14
14
|
var LANGUAGES = [
|
|
15
15
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
16
16
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -18,7 +18,7 @@ var LANGUAGES = [
|
|
|
18
18
|
];
|
|
19
19
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
22
22
|
var BaseStemmer = class {
|
|
23
23
|
static {
|
|
24
24
|
__name(this, "BaseStemmer");
|
|
@@ -393,7 +393,7 @@ var BaseStemmer = class {
|
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
397
397
|
var a_0 = [
|
|
398
398
|
["arsen", -1],
|
|
399
399
|
["commun", -1],
|
|
@@ -1094,7 +1094,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1094
1094
|
stemWord = this.stem;
|
|
1095
1095
|
};
|
|
1096
1096
|
|
|
1097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1098
1098
|
var a_02 = [
|
|
1099
1099
|
["\u0432", 1],
|
|
1100
1100
|
["\u0438\u0432", 2, 1],
|
|
@@ -1517,7 +1517,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1517
1517
|
stemWord = this.stem;
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1521
1521
|
var a_03 = [
|
|
1522
1522
|
["", 6],
|
|
1523
1523
|
["\xE1", 1, 1],
|
|
@@ -2193,7 +2193,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2193
2193
|
stemWord = this.stem;
|
|
2194
2194
|
};
|
|
2195
2195
|
|
|
2196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2197
2197
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2198
2198
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2199
2199
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -60,7 +60,7 @@ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
|
|
|
60
60
|
}, "damagedFile");
|
|
61
61
|
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
64
64
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
65
65
|
"authorization",
|
|
66
66
|
"cookie",
|
|
@@ -12,31 +12,31 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HTTGJI6G.js";
|
|
16
16
|
import {
|
|
17
17
|
skillResources
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YSA36HJM.js";
|
|
19
19
|
import {
|
|
20
20
|
StdioServerTransport,
|
|
21
21
|
answeredWire,
|
|
22
22
|
serveStdio
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EPWOY5UJ.js";
|
|
24
24
|
import {
|
|
25
25
|
stdinFieldOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7PXDDBH7.js";
|
|
27
27
|
import {
|
|
28
28
|
connectedFor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DYLNV6GY.js";
|
|
30
30
|
import {
|
|
31
31
|
wholeList
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Q5VVEFXR.js";
|
|
33
33
|
import {
|
|
34
34
|
runCommandForAgent,
|
|
35
35
|
toolsFromCommands
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-R5TIPW5A.js";
|
|
37
37
|
import {
|
|
38
38
|
instructions
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-K45K3AJU.js";
|
|
40
40
|
import {
|
|
41
41
|
BinaryResource,
|
|
42
42
|
Picture,
|
|
@@ -55,35 +55,35 @@ import {
|
|
|
55
55
|
tierOf,
|
|
56
56
|
tool,
|
|
57
57
|
toolKey
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-LTMLSN6W.js";
|
|
59
59
|
import {
|
|
60
60
|
agentJson
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KNJ5W5ZZ.js";
|
|
62
62
|
import {
|
|
63
63
|
guardFor,
|
|
64
64
|
imageSize,
|
|
65
65
|
lackedNeed,
|
|
66
66
|
servicesFor,
|
|
67
67
|
storedDeps
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-XJ7LTHXM.js";
|
|
69
69
|
import {
|
|
70
70
|
callerOf,
|
|
71
71
|
callingAgent
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-Y7SRFHYL.js";
|
|
73
73
|
import {
|
|
74
74
|
capability,
|
|
75
75
|
dateWindow
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-HNH7EVWO.js";
|
|
77
77
|
import {
|
|
78
78
|
McpServer,
|
|
79
79
|
ResourceTemplate
|
|
80
80
|
} from "./chunk-PL5P7UKW.js";
|
|
81
81
|
import {
|
|
82
82
|
mcpHttpMarker
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-WQKMBZRF.js";
|
|
84
84
|
import {
|
|
85
85
|
findCommand
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-OE3J3P24.js";
|
|
87
87
|
import {
|
|
88
88
|
DEFAULT_OUTPUT_BYTES,
|
|
89
89
|
changesAuthorityAt,
|
|
@@ -101,26 +101,26 @@ import {
|
|
|
101
101
|
rootOf2 as rootOf,
|
|
102
102
|
sealed,
|
|
103
103
|
snakeKeys
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-4V6ARVEH.js";
|
|
105
105
|
import {
|
|
106
106
|
withCaller
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-OJ7P7IK5.js";
|
|
108
108
|
import {
|
|
109
109
|
openStore,
|
|
110
110
|
pdfPreviewLimits
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-CVHEO4HS.js";
|
|
112
112
|
import {
|
|
113
113
|
typedCommand
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-V6GEPZWY.js";
|
|
115
115
|
import {
|
|
116
116
|
isCliFailure
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-TBRD6I2W.js";
|
|
118
118
|
import {
|
|
119
119
|
timezoneOf
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-EPLC6LQP.js";
|
|
121
121
|
import {
|
|
122
122
|
warmEmbedders
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-ZNQ3NNAB.js";
|
|
124
124
|
import {
|
|
125
125
|
errorObjectOf,
|
|
126
126
|
mcpErrorResult
|
|
@@ -148,10 +148,10 @@ import {
|
|
|
148
148
|
__name
|
|
149
149
|
} from "./chunk-ZVVMGPBJ.js";
|
|
150
150
|
|
|
151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
152
152
|
import { randomUUID } from "node:crypto";
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
155
155
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
156
156
|
let held;
|
|
157
157
|
return {
|
|
@@ -170,7 +170,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
170
170
|
};
|
|
171
171
|
}, "agentLog");
|
|
172
172
|
|
|
173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
174
174
|
var LISTED = 100;
|
|
175
175
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
176
176
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -208,7 +208,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
208
208
|
});
|
|
209
209
|
}, "registerResources");
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
212
212
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
213
213
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
214
214
|
var MessengerSession = class {
|
|
@@ -283,7 +283,7 @@ var MessengerSession = class {
|
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
287
287
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
288
288
|
const _command = messenger.app.command;
|
|
289
289
|
return {
|
|
@@ -337,7 +337,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
337
337
|
};
|
|
338
338
|
}, "attachmentsTools");
|
|
339
339
|
|
|
340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
341
341
|
var PHOTO_LIMIT = 512 * 1024;
|
|
342
342
|
var IMAGE_TYPES = [
|
|
343
343
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -393,7 +393,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
393
393
|
return new Uint8Array(Buffer.concat(chunks));
|
|
394
394
|
}, "readUpTo");
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
397
397
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
398
398
|
stats_charts: tool({
|
|
399
399
|
title: "A chart from a chat's statistics",
|
|
@@ -430,14 +430,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
430
430
|
})
|
|
431
431
|
}), "statsTools");
|
|
432
432
|
|
|
433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
434
434
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
435
435
|
...messagesPhotoTools(messenger),
|
|
436
436
|
...attachmentsTools(messenger),
|
|
437
437
|
...statsTools(messenger)
|
|
438
438
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
439
439
|
|
|
440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
441
441
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
442
442
|
"streams",
|
|
443
443
|
"stdin",
|
|
@@ -753,7 +753,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
753
753
|
}, "serveOverStdio");
|
|
754
754
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
755
755
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
756
|
-
const { serveOverHttp } = await import("./serve-
|
|
756
|
+
const { serveOverHttp } = await import("./serve-ATTJW7LZ.js");
|
|
757
757
|
const appName = messenger.app.command;
|
|
758
758
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
759
759
|
const listening = await serveOverHttp(build, {
|
|
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TBRD6I2W.js";
|
|
7
7
|
import {
|
|
8
8
|
formatMeetingReference,
|
|
9
9
|
parseMeetingReference
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EPLC6LQP.js";
|
|
11
11
|
import {
|
|
12
12
|
refuseOwnerStoreInTests
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EXWFB2XY.js";
|
|
14
14
|
import {
|
|
15
15
|
createRecordLog,
|
|
16
16
|
resolvePaths,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
__name
|
|
48
48
|
} from "./chunk-ZVVMGPBJ.js";
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
51
51
|
import { randomUUID } from "node:crypto";
|
|
52
52
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
53
53
|
import { userInfo } from "node:os";
|
|
54
54
|
import { join, sep } from "node:path";
|
|
55
55
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
57
57
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
58
58
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
59
59
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -66,7 +66,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
66
66
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
67
67
|
}), "snakeLogger");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
70
70
|
var diagnostic = {
|
|
71
71
|
event: true,
|
|
72
72
|
operation: true,
|
|
@@ -140,7 +140,7 @@ var LOG_ATTRIBUTES = [
|
|
|
140
140
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
141
141
|
].sort();
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
144
144
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
145
145
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
146
146
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -507,7 +507,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
507
507
|
};
|
|
508
508
|
}, "metadataOf");
|
|
509
509
|
|
|
510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
511
511
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
512
512
|
import { randomBytes } from "node:crypto";
|
|
513
513
|
var scopes = new AsyncLocalStorage();
|
|
@@ -560,7 +560,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
560
560
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
561
561
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
562
562
|
|
|
563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
564
564
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
565
565
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
566
566
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -575,7 +575,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
575
575
|
}
|
|
576
576
|
__name(closeTask, "closeTask");
|
|
577
577
|
|
|
578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
579
579
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
580
580
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
581
581
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -604,7 +604,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
604
604
|
}, "priorityOf");
|
|
605
605
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
606
606
|
|
|
607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
608
608
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
609
609
|
async function find(id2) {
|
|
610
610
|
const task = await store.get(id2);
|
|
@@ -664,20 +664,20 @@ function median(values) {
|
|
|
664
664
|
}
|
|
665
665
|
__name(median, "median");
|
|
666
666
|
|
|
667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
668
668
|
function matches(task, filter) {
|
|
669
669
|
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);
|
|
670
670
|
}
|
|
671
671
|
__name(matches, "matches");
|
|
672
672
|
|
|
673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
674
674
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
675
675
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
676
676
|
var ERASED_TEXT = "[source erased]";
|
|
677
677
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
678
678
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
679
679
|
|
|
680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
681
681
|
var text = string();
|
|
682
682
|
var id = pipe(string(), minLength(1));
|
|
683
683
|
var time = isoTime;
|
|
@@ -702,7 +702,7 @@ var author = strictObject({
|
|
|
702
702
|
name: nullable(text)
|
|
703
703
|
});
|
|
704
704
|
|
|
705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
706
706
|
var organization = strictObject({
|
|
707
707
|
id,
|
|
708
708
|
ref: reference,
|
|
@@ -732,7 +732,7 @@ var reminder = strictObject({
|
|
|
732
732
|
receipt: nullable(text)
|
|
733
733
|
});
|
|
734
734
|
|
|
735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
736
736
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
737
737
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
738
738
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -853,7 +853,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
853
853
|
return { previous, cleared };
|
|
854
854
|
}, "recordDeepCheck");
|
|
855
855
|
|
|
856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
857
857
|
var CURRENCY_SCALES = {
|
|
858
858
|
AED: 2,
|
|
859
859
|
AMD: 2,
|
|
@@ -947,7 +947,7 @@ var quantityOf = /* @__PURE__ */ __name((text2) => {
|
|
|
947
947
|
}, "quantityOf");
|
|
948
948
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
949
949
|
|
|
950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
951
951
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
952
952
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
953
953
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -976,7 +976,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
976
976
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
977
977
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
978
978
|
|
|
979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
980
980
|
var CATALOG_KINDS = ["product", "service"];
|
|
981
981
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
982
982
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -1004,7 +1004,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
1004
1004
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
1005
1005
|
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");
|
|
1006
1006
|
|
|
1007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
1008
1008
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
1009
1009
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
1010
1010
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -1012,7 +1012,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
1012
1012
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
1013
1013
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
1014
1014
|
|
|
1015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
1016
1016
|
var SCHEME = "msg:";
|
|
1017
1017
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
1018
1018
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -1033,7 +1033,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
1033
1033
|
return { provider, account, chat, message };
|
|
1034
1034
|
}, "parseLocator");
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
1037
1037
|
var SIMPLE_REFERENCES = [
|
|
1038
1038
|
"note",
|
|
1039
1039
|
"document",
|
|
@@ -1196,7 +1196,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text2) => {
|
|
|
1196
1196
|
return match !== null && byPrefix.has(match[1]);
|
|
1197
1197
|
}, "looksLikeReference");
|
|
1198
1198
|
|
|
1199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
1200
1200
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm", "tracker"];
|
|
1201
1201
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
1202
1202
|
var PROVIDERS = [
|
|
@@ -1388,7 +1388,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
1388
1388
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
1389
1389
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
1390
1390
|
|
|
1391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
1392
1392
|
var DEAL_KINDS = ["deal", "lead"];
|
|
1393
1393
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
1394
1394
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -1398,7 +1398,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
1398
1398
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
1399
1399
|
}, "dealLine");
|
|
1400
1400
|
|
|
1401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
1402
1402
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
1403
1403
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
1404
1404
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -1409,7 +1409,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
1409
1409
|
}, "orderLine");
|
|
1410
1410
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
1411
1411
|
|
|
1412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
1413
1413
|
var ORGANIZATION_ROLES = [
|
|
1414
1414
|
"employee",
|
|
1415
1415
|
"contractor",
|
|
@@ -1512,7 +1512,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
1512
1512
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
1513
1513
|
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
1514
1514
|
|
|
1515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
1516
1516
|
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
1517
1517
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
1518
1518
|
var isCrmUserId = /* @__PURE__ */ __name((id2) => /^\d{1,20}$/.test(id2), "isCrmUserId");
|
|
@@ -1522,7 +1522,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id2) => {
|
|
|
1522
1522
|
}, "normalCrmUserId");
|
|
1523
1523
|
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
1524
1524
|
|
|
1525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
1526
1526
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
1527
1527
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
1528
1528
|
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;
|
|
@@ -1532,7 +1532,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
1532
1532
|
};
|
|
1533
1533
|
}, "sourceOf");
|
|
1534
1534
|
|
|
1535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
1536
1536
|
var LINK_KINDS = [
|
|
1537
1537
|
"links-to",
|
|
1538
1538
|
"blocked-by",
|
|
@@ -1556,7 +1556,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
|
1556
1556
|
var linkKind = /* @__PURE__ */ __name((kind2) => `'${kind2}'`, "linkKind");
|
|
1557
1557
|
var COUNTERPART_ROLE = "counterpart";
|
|
1558
1558
|
|
|
1559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
1560
1560
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
1561
1561
|
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");
|
|
1562
1562
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -1579,7 +1579,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
1579
1579
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
1580
1580
|
}, "sourceOf");
|
|
1581
1581
|
|
|
1582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
1583
1583
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
1584
1584
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
1585
1585
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1813,7 +1813,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind2) =
|
|
|
1813
1813
|
return { accounts: [...chosen.values()], skipped };
|
|
1814
1814
|
}, "fitting");
|
|
1815
1815
|
|
|
1816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1817
1817
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1818
1818
|
|
|
1819
1819
|
export {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EPLC6LQP.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-TSHMRHL6.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.744.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_2f0d3b329244c2cf3a4ca36fb50fc9e0/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
14
14
|
var positive = /* @__PURE__ */ __name((value, name, max) => {
|
|
15
15
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16
16
|
throw new CliError("validation_error", `Invalid ${name}`);
|