@wirecat/mail-cli 0.23.0 → 0.23.1
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 +19 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-CI32WFEV.js → all-profiles-FJHJCGRU.js} +7 -7
- package/dist/bundle/{anthropic-ICSOMJIN.js → anthropic-AFL7NKVZ.js} +2 -2
- package/dist/bundle/{app-server-3F4ZB7DH.js → app-server-WKCBJMHI.js} +41 -41
- package/dist/bundle/{bun-7AHNFZMZ.js → bun-HQATAQJQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-UIWRS4HI.js → bun-sqlite-4ECAV7OU.js} +2 -2
- package/dist/bundle/{chunk-D6WTKSRA.js → chunk-2HXHAFRP.js} +2 -2
- package/dist/bundle/{chunk-XP5FBDIG.js → chunk-34743C4C.js} +1 -1
- package/dist/bundle/{chunk-SETCGPFG.js → chunk-3OZKDC6Y.js} +7 -6
- package/dist/bundle/{chunk-ETIUB2DF.js → chunk-3UFD76IR.js} +4 -4
- package/dist/bundle/{chunk-UA4BOLIY.js → chunk-4IFX4HV2.js} +4 -4
- package/dist/bundle/{chunk-7SIWMF77.js → chunk-4IWJARFA.js} +1 -1
- package/dist/bundle/{chunk-WQRX4RQS.js → chunk-4YJJQNNJ.js} +3 -3
- package/dist/bundle/{chunk-5Y2WRUYP.js → chunk-5UKBUI4I.js} +1 -1
- package/dist/bundle/{chunk-7OVVX4F4.js → chunk-76RTQYJQ.js} +1 -1
- package/dist/bundle/{chunk-TEL2OMS5.js → chunk-7YRKUEYE.js} +70 -49
- package/dist/bundle/{chunk-I3YNNSGB.js → chunk-AGNAT7CM.js} +1 -1
- package/dist/bundle/{chunk-4YTX5YAU.js → chunk-B6QMMRIM.js} +175 -151
- package/dist/bundle/{chunk-5J4WNTTM.js → chunk-BVJQBAGL.js} +9 -9
- package/dist/bundle/{chunk-NEDYKKJJ.js → chunk-CBWA2T3N.js} +2 -2
- package/dist/bundle/{chunk-R4RAWEMV.js → chunk-CCYHBNRL.js} +14 -14
- package/dist/bundle/{chunk-ZYHBMDNU.js → chunk-CUOCDJFI.js} +7 -7
- package/dist/bundle/{chunk-HN6PB7F5.js → chunk-CYQVWITQ.js} +16 -16
- package/dist/bundle/{chunk-SCH3NC5X.js → chunk-E7ZVKQHG.js} +2 -2
- package/dist/bundle/{chunk-B4MWHI2V.js → chunk-EXPR6QAX.js} +25 -11
- package/dist/bundle/{chunk-5AQ4S4TZ.js → chunk-FWFNUJQD.js} +17 -17
- package/dist/bundle/{chunk-UTLJQG6Q.js → chunk-GJNFNC76.js} +7 -7
- package/dist/bundle/{chunk-S2U5BXWS.js → chunk-HOKGIYUO.js} +22 -2
- package/dist/bundle/{chunk-HGV7DSSA.js → chunk-KKGX7JMX.js} +2 -2
- package/dist/bundle/{chunk-7DFWXIY5.js → chunk-LQDMUMA2.js} +222 -222
- package/dist/bundle/{chunk-FIZWQTUC.js → chunk-M7RGG3UU.js} +2 -2
- package/dist/bundle/{chunk-HRIYU2HJ.js → chunk-MBKNL5TX.js} +433 -94
- package/dist/bundle/{chunk-5Z7LZAVP.js → chunk-MUDHCYN4.js} +5 -5
- package/dist/bundle/{chunk-KNRONMVG.js → chunk-NKBAZ4VC.js} +1 -1
- package/dist/bundle/{chunk-JDKC7EXM.js → chunk-NMGF3UOZ.js} +27 -27
- package/dist/bundle/{chunk-FVKZ55I2.js → chunk-NOA6E6MM.js} +1652 -1216
- package/dist/bundle/{chunk-7ZDH2XEY.js → chunk-OJCUSHZG.js} +3 -3
- package/dist/bundle/{chunk-JO4BJYVE.js → chunk-OU5CWCG2.js} +1 -1
- package/dist/bundle/{chunk-NKDYHAHP.js → chunk-PMIKRELC.js} +2 -2
- package/dist/bundle/{chunk-XV3M3NAN.js → chunk-QR7JZM3D.js} +1 -1
- package/dist/bundle/{chunk-KJQZXCNK.js → chunk-QUKD5SO2.js} +3 -3
- package/dist/bundle/{chunk-AFPETMXZ.js → chunk-QV3M2MHG.js} +8 -8
- package/dist/bundle/{chunk-6FSLEARF.js → chunk-R554W7ZO.js} +1 -1
- package/dist/bundle/{chunk-2BAO4T4Z.js → chunk-R5MYOLQP.js} +12 -12
- package/dist/bundle/{chunk-ELGEHZK2.js → chunk-ROKTS7WM.js} +1 -1
- package/dist/bundle/{chunk-5QQOUYNA.js → chunk-S5OTP7XS.js} +2 -2
- package/dist/bundle/{chunk-B6GITVDX.js → chunk-SBGXKM4U.js} +4 -4
- package/dist/bundle/{chunk-5AS5N7V5.js → chunk-SNTLN2QT.js} +1 -1
- package/dist/bundle/{chunk-FHCOGR7S.js → chunk-SR3ADLGX.js} +2 -2
- package/dist/bundle/{chunk-SGMENSI6.js → chunk-UMXVQIGD.js} +24 -14
- package/dist/bundle/{chunk-4PNIZUEC.js → chunk-V3TDQUXD.js} +23 -23
- package/dist/bundle/{chunk-BT7UUI6E.js → chunk-V7CFZ773.js} +2 -2
- package/dist/bundle/{chunk-4TKQIXND.js → chunk-VAMCRP47.js} +1 -1
- package/dist/bundle/{chunk-AHRHP2H2.js → chunk-VFKX5UMJ.js} +5 -5
- package/dist/bundle/{chunk-CNYQ3TTZ.js → chunk-VYHIX3OP.js} +22 -22
- package/dist/bundle/{chunk-OMW37FXK.js → chunk-VYIIX6VN.js} +1 -1
- package/dist/bundle/{chunk-RIAZTS6C.js → chunk-WN4HP7IZ.js} +10 -10
- package/dist/bundle/{chunk-IMIY7HQB.js → chunk-ZXIPJF3Y.js} +1 -1
- package/dist/bundle/{command-contract-UIRWJVEY.js → command-contract-IIHBNF7J.js} +14 -14
- package/dist/bundle/{decode-BJXABRAN.js → decode-QXKTMOTH.js} +2 -2
- package/dist/bundle/{dist-LLEA6R4V.js → dist-5FX36DAW.js} +18 -10
- package/dist/bundle/{echarts-YPTKBOZV.js → echarts-HHUM43TU.js} +2 -2
- package/dist/bundle/{embed-DMROTI5M.js → embed-SRZSDZVI.js} +3 -3
- package/dist/bundle/{embedder-DWMHXCHJ.js → embedder-WZIZCWLX.js} +6 -6
- package/dist/bundle/{first-run-FQOEF2IO.js → first-run-6DVWZ3JQ.js} +5 -5
- package/dist/bundle/first-screen-SRZ7NYHZ.js +33 -0
- package/dist/bundle/{instructions-OGKMROLD.js → instructions-UWONE6UT.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-HIKYE546.js → node-HLAOYJDB.js} +2 -2
- package/dist/bundle/{node-sqlite-3GJAG7VO.js → node-sqlite-RO66I7W6.js} +3 -3
- package/dist/bundle/{oauth-H3DB6IHI.js → oauth-VNLB2TET.js} +4 -4
- package/dist/bundle/{open-DJ2PRG74.js → open-QQSG343L.js} +2 -2
- package/dist/bundle/{openai-MDBRYB55.js → openai-JTFC7OGF.js} +10 -10
- package/dist/bundle/{process-4LBD72JH.js → process-3CZAXR6P.js} +1 -1
- package/dist/bundle/{program-F6WK6RX4.js → program-XTOS4RAM.js} +1504 -817
- package/dist/bundle/{prompt-UNPUG6SO.js → prompt-HGQ6GPYL.js} +2 -2
- package/dist/bundle/{recognize-DMIO4PDB.js → recognize-2SHMNEIZ.js} +1 -1
- package/dist/bundle/{remote-24HJA72D.js → remote-GBQC3433.js} +4 -4
- package/dist/bundle/{rerank-PTNCHHIU.js → rerank-FQHQXFNR.js} +4 -4
- package/dist/bundle/{serve-T6JHM2YD.js → serve-THU67QUZ.js} +6 -6
- package/dist/bundle/{server-BWEYRUR3.js → server-LOT3CLYX.js} +33 -33
- package/dist/bundle/server-VKMUX7ZT.js +65 -0
- package/dist/bundle/{sqlite-runtime-ZJ4EH5ZM.js → sqlite-runtime-NOOUMBC4.js} +3 -3
- package/dist/bundle/{state-KSN4OFYW.js → state-KSKZCV2U.js} +3 -3
- package/dist/bundle/{store-OIEZJEA7.js → store-BAKSHTKF.js} +18 -12
- package/dist/bundle/{store-GVBW2ZFK.js → store-OHNZOQ7U.js} +20 -16
- package/dist/bundle/store-maintenance-command-ROQHJVEA.js +54 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +29 -7
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/sync.d.ts +0 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +8 -2
- package/dist/commands/sync.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/first-screen-B6LF5464.js +0 -33
- package/dist/bundle/server-VUQNR5ZD.js +0 -65
- package/dist/bundle/store-maintenance-command-KJ54HLUQ.js +0 -54
|
@@ -10,10 +10,10 @@ 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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VFKX5UMJ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-DALBYUPC.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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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) {
|
|
@@ -2,7 +2,7 @@ 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-5UKBUI4I.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-DALBYUPC.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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SBGXKM4U.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY,
|
|
8
8
|
looksLikeReference,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
providerLabel,
|
|
11
11
|
providerNamed,
|
|
12
12
|
typedPhone
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FWFNUJQD.js";
|
|
14
14
|
import {
|
|
15
15
|
resolvePaths,
|
|
16
16
|
writeSecurely
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
__name
|
|
44
44
|
} from "./chunk-ZVVMGPBJ.js";
|
|
45
45
|
|
|
46
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
47
47
|
var TAKES = {
|
|
48
48
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
49
49
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -103,7 +103,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
103
103
|
throw wrongAccount(reference, scope, profiles);
|
|
104
104
|
}, "ensureAccount");
|
|
105
105
|
|
|
106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
107
107
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
108
108
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
109
109
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -148,7 +148,7 @@ ${lines}`, { candidates });
|
|
|
148
148
|
}, "ambiguous");
|
|
149
149
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
150
150
|
|
|
151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
152
152
|
import { createHash } from "node:crypto";
|
|
153
153
|
var MAX_ID = 512;
|
|
154
154
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -385,7 +385,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
|
|
|
385
385
|
};
|
|
386
386
|
}, "envelopeOfVcard");
|
|
387
387
|
|
|
388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
389
389
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
390
390
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
391
391
|
const { text, spans } = formatted;
|
|
@@ -445,7 +445,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
445
445
|
};
|
|
446
446
|
}, "visibleFormattedText");
|
|
447
447
|
|
|
448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
449
449
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
450
450
|
var LINK = /https?:\/\/\S+/i;
|
|
451
451
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -633,7 +633,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
633
633
|
}, "nextPoint");
|
|
634
634
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
635
635
|
|
|
636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
637
637
|
import { existsSync, readFileSync } from "node:fs";
|
|
638
638
|
import { join } from "node:path";
|
|
639
639
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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 ?? {};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZXIPJF3Y.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-DALBYUPC.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -17,7 +17,7 @@ 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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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");
|
|
@@ -417,7 +417,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
417
417
|
}
|
|
418
418
|
}, "assertRetentionEvidenceRead");
|
|
419
419
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
421
421
|
var named = /* @__PURE__ */ __name((work) => {
|
|
422
422
|
try {
|
|
423
423
|
return work();
|
|
@@ -444,7 +444,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
444
444
|
return projectFields(value, fields);
|
|
445
445
|
}), "projectFields");
|
|
446
446
|
|
|
447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
448
448
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
449
449
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
450
450
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -480,7 +480,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
480
480
|
return value;
|
|
481
481
|
}, "atDetail");
|
|
482
482
|
|
|
483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/output.js
|
|
484
484
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
485
485
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
486
486
|
if (other)
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3UFD76IR.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-DALBYUPC.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateFormattedText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QV3M2MHG.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZXIPJF3Y.js";
|
|
9
9
|
import {
|
|
10
10
|
parseReference
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FWFNUJQD.js";
|
|
12
12
|
import {
|
|
13
13
|
indent
|
|
14
14
|
} from "./chunk-LLYVBO3R.js";
|
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
23
23
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
24
24
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
25
25
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/links.js
|
|
28
28
|
var LINK_VERSION = "v1";
|
|
29
29
|
var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
|
|
30
30
|
var APP_PREFIX = "wirecat://open";
|
|
31
31
|
var MAX_PATH = 512;
|
|
32
32
|
var MAX_SEGMENTS = 6;
|
|
33
|
-
var TASK_FILTERS = ["overdue", "today", "tomorrow"];
|
|
33
|
+
var TASK_FILTERS = ["overdue", "today", "tomorrow", "undated"];
|
|
34
34
|
var DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
35
35
|
var DATE_TIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;
|
|
36
36
|
var isMoment = /* @__PURE__ */ __name((text, pattern) => pattern.test(text) && !Number.isNaN(Date.parse(text)), "isMoment");
|
|
@@ -41,7 +41,9 @@ var partsOf = /* @__PURE__ */ __name((target) => {
|
|
|
41
41
|
case "chat":
|
|
42
42
|
return ["chat", target.provider, target.account, target.chat];
|
|
43
43
|
case "task":
|
|
44
|
-
|
|
44
|
+
case "person":
|
|
45
|
+
case "project":
|
|
46
|
+
return [target.type, target.id];
|
|
45
47
|
case "tasks":
|
|
46
48
|
return target.filter === "new" ? ["tasks", "new", target.since] : ["tasks", target.filter];
|
|
47
49
|
case "proposal":
|
|
@@ -62,7 +64,9 @@ var targetOfParts = /* @__PURE__ */ __name((parts) => {
|
|
|
62
64
|
case "chat":
|
|
63
65
|
return rest.length === 3 ? { type: "chat", provider: a, account: b, chat: c } : null;
|
|
64
66
|
case "task":
|
|
65
|
-
|
|
67
|
+
case "person":
|
|
68
|
+
case "project":
|
|
69
|
+
return rest.length === 1 ? { type: kind, id: a } : null;
|
|
66
70
|
case "tasks":
|
|
67
71
|
if (rest.length === 1 && TASK_FILTERS.includes(a))
|
|
68
72
|
return { type: "tasks", filter: a };
|
|
@@ -99,7 +103,12 @@ var parseLink = /* @__PURE__ */ __name((text) => {
|
|
|
99
103
|
return targetOfPath(rest);
|
|
100
104
|
}, "parseLink");
|
|
101
105
|
var LINK_ONLY = /* @__PURE__ */ new Set(["tasks", "proposal", "digest", "sync"]);
|
|
102
|
-
var FROM_REFERENCE = /* @__PURE__ */ new Set(["message", "chat", "task"]);
|
|
106
|
+
var FROM_REFERENCE = /* @__PURE__ */ new Set(["message", "chat", "task", "person", "project"]);
|
|
107
|
+
var ENTITY_KINDS = /* @__PURE__ */ new Set(["person", "project"]);
|
|
108
|
+
var refsForLink = /* @__PURE__ */ __name((refs) => [
|
|
109
|
+
...refs.filter((ref) => !ENTITY_KINDS.has(ref.slice(0, ref.indexOf(":")))),
|
|
110
|
+
...refs.filter((ref) => ENTITY_KINDS.has(ref.slice(0, ref.indexOf(":"))))
|
|
111
|
+
], "refsForLink");
|
|
103
112
|
var linkTargetOf = /* @__PURE__ */ __name((ref) => {
|
|
104
113
|
const text = ref.trim();
|
|
105
114
|
const colon = text.indexOf(":");
|
|
@@ -132,7 +141,7 @@ var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG,
|
|
|
132
141
|
return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
|
|
133
142
|
}, "linkFor");
|
|
134
143
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
136
145
|
var MARKERS = [
|
|
137
146
|
["**", "bold"],
|
|
138
147
|
["~~", "strike"],
|
|
@@ -178,7 +187,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
178
187
|
return end;
|
|
179
188
|
}, "closing");
|
|
180
189
|
|
|
181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
182
191
|
var STYLES = [
|
|
183
192
|
["**", "bold"],
|
|
184
193
|
["__", "underline"],
|
|
@@ -338,7 +347,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
338
347
|
return validateFormattedText(result);
|
|
339
348
|
}, "parseMarkdownSpans");
|
|
340
349
|
|
|
341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
342
351
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
343
352
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
344
353
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -1987,7 +1996,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1987
1996
|
var qrcode_default = qrcode;
|
|
1988
1997
|
var stringToBytes = qrcode.stringToBytes;
|
|
1989
1998
|
|
|
1990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
1991
2000
|
var QUIET_ZONE = 4;
|
|
1992
2001
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
1993
2002
|
var RESET = "\x1B[0m";
|
|
@@ -2034,7 +2043,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
2034
2043
|
return lines.join("\n");
|
|
2035
2044
|
}, "plainQr");
|
|
2036
2045
|
|
|
2037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
2038
2047
|
var MARGIN = 2;
|
|
2039
2048
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
2040
2049
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|
|
@@ -2074,6 +2083,7 @@ export {
|
|
|
2074
2083
|
DEFAULT_LINK_CONFIG,
|
|
2075
2084
|
formatLink,
|
|
2076
2085
|
parseLink,
|
|
2086
|
+
refsForLink,
|
|
2077
2087
|
linkTargetOf,
|
|
2078
2088
|
linkConfigOf,
|
|
2079
2089
|
linkFor,
|