@wirecat/zoom-cli 0.74.0 → 0.75.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/contracts/wirecat.json +5 -4
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-SDOAABLC.js → all-profiles-WFLKFKJC.js} +19 -29
- package/dist/bundle/{answer-policy-RHS74QYY.js → answer-policy-XCKC2LLN.js} +57 -57
- package/dist/bundle/{anthropic-HCVY2PIN.js → anthropic-H45W4P22.js} +2 -2
- package/dist/bundle/{app-server-V64VS6KN.js → app-server-I4FPLBIX.js} +49 -64
- package/dist/bundle/{bun-EBQHHLKR.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-PVMXO2JB.js → bun-sqlite-X2YZPHDS.js} +3 -3
- package/dist/bundle/{chunk-OP6HK2QL.js → chunk-2Q4CB4EI.js} +1 -1
- package/dist/bundle/{chunk-P53CLAXD.js → chunk-3U3W6YY5.js} +59 -56
- package/dist/bundle/{chunk-XGEPAJBY.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-TMCXUWTY.js → chunk-3YKAFLXY.js} +1 -1
- package/dist/bundle/{chunk-NKBMLSWK.js → chunk-3YRPDNWK.js} +544 -142
- package/dist/bundle/{chunk-SY4MIIWF.js → chunk-4J5GJJ2I.js} +1 -1
- package/dist/bundle/{chunk-F6PUM6ZK.js → chunk-4XDWV6VJ.js} +16 -16
- package/dist/bundle/{chunk-SPWKGRTO.js → chunk-4YNUQGDP.js} +1 -1
- package/dist/bundle/{chunk-DXZN3DU6.js → chunk-532H3KT3.js} +2 -2
- package/dist/bundle/{chunk-YNI57LTZ.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/{chunk-2PNG76LV.js → chunk-7ZVWV33Z.js} +9 -9
- package/dist/bundle/{chunk-LZ4AVHBS.js → chunk-A3Q3PG54.js} +1 -1
- package/dist/bundle/{chunk-SKDQNYKA.js → chunk-AVCYD4WQ.js} +19 -18
- package/dist/bundle/{chunk-YFLTHGB3.js → chunk-B6Q53CVA.js} +7 -7
- package/dist/bundle/{chunk-RRW54FK6.js → chunk-BY2YPKZZ.js} +10 -10
- package/dist/bundle/{chunk-QLKCKTM4.js → chunk-C5WQ57AB.js} +1 -1
- package/dist/bundle/{chunk-FL2TKSZY.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-IZUOL4Q6.js → chunk-DQBLDZ7M.js} +3 -3
- package/dist/bundle/{chunk-WYV5IITK.js → chunk-DUPFAY35.js} +6 -6
- package/dist/bundle/{chunk-ZYMTS3CI.js → chunk-ELD5AC7Q.js} +2 -2
- package/dist/bundle/{chunk-LUBG5GKK.js → chunk-EOZAJGB4.js} +11 -12
- package/dist/bundle/{chunk-OPUGV7VW.js → chunk-F6RB5FHZ.js} +1 -1
- package/dist/bundle/{chunk-LQR4V5EY.js → chunk-F7K2V6OA.js} +10 -10
- package/dist/bundle/{chunk-6GPBDVQ2.js → chunk-FBYGBR4Q.js} +3 -3
- package/dist/bundle/{chunk-R4J4DLJV.js → chunk-GPVSGZ4R.js} +728 -544
- package/dist/bundle/{chunk-PKM2UKAZ.js → chunk-GU4FVTJV.js} +13 -1
- package/dist/bundle/{chunk-XFT3YIHU.js → chunk-HKPNQL52.js} +3 -3
- package/dist/bundle/{chunk-N7KCNMKL.js → chunk-IDGWBKMH.js} +10 -10
- package/dist/bundle/{chunk-7R4UU65O.js → chunk-IMDTC4MD.js} +34 -20
- package/dist/bundle/{chunk-UW3BB2XW.js → chunk-IO3BQ6JU.js} +22 -22
- package/dist/bundle/{chunk-LHPYSVGP.js → chunk-IW245Q5B.js} +22 -22
- package/dist/bundle/{chunk-DSRG5NRF.js → chunk-JDTZCZ5K.js} +2 -2
- package/dist/bundle/{chunk-GPGIU3OG.js → chunk-JTYWSXJG.js} +7 -7
- package/dist/bundle/{chunk-TKPIDOW5.js → chunk-K5E5MB4C.js} +18 -18
- package/dist/bundle/{chunk-HGUYJUNO.js → chunk-L5UILROP.js} +5 -5
- package/dist/bundle/{chunk-QSWR7VDA.js → chunk-LRCSDAYK.js} +3 -3
- package/dist/bundle/{chunk-HZUUVNWC.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-Y4KWWPIO.js → chunk-MNVT7EJS.js} +2 -2
- package/dist/bundle/{chunk-7W23N2YW.js → chunk-NE4GYKQA.js} +5 -5
- package/dist/bundle/{chunk-5R6EBM5Z.js → chunk-NL6AZ6S2.js} +1 -1
- package/dist/bundle/{chunk-AFUHT7F7.js → chunk-NQLL4KRN.js} +5 -5
- package/dist/bundle/{chunk-5KDBLEUF.js → chunk-NQQVNLO6.js} +10 -10
- package/dist/bundle/{chunk-6EMOZGSN.js → chunk-NU4FSSMN.js} +2 -2
- package/dist/bundle/{chunk-NV2REPY6.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-3ROL6MBJ.js → chunk-P4ZQQLZF.js} +569 -401
- package/dist/bundle/{chunk-R35YGFKQ.js → chunk-P6MQ6FS4.js} +30 -5
- package/dist/bundle/{chunk-4ELLWJT4.js → chunk-PCJRHC5Y.js} +7 -7
- package/dist/bundle/{chunk-I2D4ZZOD.js → chunk-PPM7UTCT.js} +19 -16
- package/dist/bundle/{chunk-APLV37JA.js → chunk-PX4IMYVB.js} +2 -2
- package/dist/bundle/{chunk-TN2YUZBF.js → chunk-QBKKTTA3.js} +155 -149
- package/dist/bundle/{chunk-RQJ2RXFO.js → chunk-QEO3XTIE.js} +35 -25
- package/dist/bundle/{chunk-YM6ZATEK.js → chunk-QXQUANWE.js} +4 -4
- package/dist/bundle/{chunk-XCC7R47Z.js → chunk-RABCFGT3.js} +2 -2
- package/dist/bundle/{chunk-UGLNVUFX.js → chunk-RBYVQE3S.js} +4 -4
- package/dist/bundle/{chunk-RJJ4OYNH.js → chunk-RKI4BGWG.js} +2 -2
- package/dist/bundle/{chunk-LN2LWPN2.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-IS6FUZCP.js → chunk-SR5X7YKB.js} +1 -1
- package/dist/bundle/{chunk-4EZKR6Q4.js → chunk-T25PR26L.js} +5 -5
- package/dist/bundle/{chunk-FY2X6U6O.js → chunk-T4FMXDDV.js} +2 -2
- package/dist/bundle/{chunk-UVWNUY3W.js → chunk-TSHUBGN4.js} +2 -2
- package/dist/bundle/{chunk-BKMC4ETU.js → chunk-V3UK6E5B.js} +4 -4
- package/dist/bundle/{chunk-QAGSAOYS.js → chunk-VLK3X53X.js} +2 -2
- package/dist/bundle/{chunk-PMHMKZEJ.js → chunk-VPSQZ2YR.js} +42 -50
- package/dist/bundle/{chunk-WRRGO246.js → chunk-VUPWDCYV.js} +1 -1
- package/dist/bundle/{chunk-TLNZUPGU.js → chunk-W2AC2RAG.js} +13 -13
- package/dist/bundle/{chunk-BOGGQOVO.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-KBRIMLVN.js → chunk-WUWF4EXZ.js} +6 -6
- package/dist/bundle/{chunk-UXSTXFZQ.js → chunk-XCJGDPMN.js} +383 -367
- package/dist/bundle/{chunk-KYL5FYOW.js → chunk-XUHQ7DVT.js} +1 -1
- package/dist/bundle/{chunk-7NE3LB7A.js → chunk-Y5J5CAG2.js} +1 -1
- package/dist/bundle/{chunk-3TYNBHBK.js → chunk-ZBYKCVSV.js} +1 -1
- package/dist/bundle/{chunk-KCPRTZBZ.js → chunk-ZVVRRMLW.js} +98 -6
- package/dist/bundle/{cli-5ALOQCAC.js → cli-NPRYCWFH.js} +64 -56
- package/dist/bundle/{command-contract-WO5QJVLZ.js → command-contract-OJYRKQHR.js} +17 -17
- package/dist/bundle/{command-server-entry-ICOMIJIH.js → command-server-entry-BV4SUPUI.js} +24 -24
- package/dist/bundle/config-UMEV24OE.js +97 -0
- package/dist/bundle/{decode-7LFOROWF.js → decode-PRMKCHHC.js} +2 -2
- package/dist/bundle/{dist-KJOOYNCP.js → dist-HGLDGKUW.js} +18 -14
- package/dist/bundle/{echarts-EJXBKCJT.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-TOZCKRRO.js → embed-OZN2BIJY.js} +3 -3
- package/dist/bundle/{embedder-QKEKUCS5.js → embedder-RBDHO6Z6.js} +6 -6
- package/dist/bundle/{first-run-S7CQVGK6.js → first-run-HNCD7U3B.js} +6 -6
- package/dist/bundle/first-screen-374BBMO6.js +39 -0
- package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/{main-RL3GC4OX.js → main-FPMCCRIQ.js} +15 -15
- package/dist/bundle/{meetings-JCMLE5AO.js → meetings-WYCVHAIP.js} +17 -1
- package/dist/bundle/{node-L2PVEW3N.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-4YW3W4XI.js → node-sqlite-O4C6IWSM.js} +4 -4
- package/dist/bundle/{oauth-NNHWAT6A.js → oauth-6VXOUXSE.js} +4 -4
- package/dist/bundle/{open-PF2JHJIY.js → open-AMUIWV3Y.js} +2 -2
- package/dist/bundle/{openai-C72ADYMD.js → openai-MEDN6FSK.js} +10 -10
- package/dist/bundle/{process-MNZTQ2DA.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-FOCBZZZS.js → program-CF2NKA2A.js} +70 -69
- package/dist/bundle/{prompt-RBSUKMV7.js → prompt-N3UZE4ZR.js} +2 -2
- package/dist/bundle/{recognize-RM6TQKK3.js → recognize-I5F3K3CZ.js} +1 -1
- package/dist/bundle/{remote-UKHTU3YR.js → remote-CJF5KMMY.js} +6 -6
- package/dist/bundle/{rerank-3LBRVESU.js → rerank-6WLY6MKY.js} +4 -4
- package/dist/bundle/{run-log-UXINNGKA.js → run-log-FKF4ZX4M.js} +55 -55
- package/dist/bundle/{serve-OOZFTW3W.js → serve-FOQJ3WMX.js} +6 -6
- package/dist/bundle/server-BAGY5HEZ.js +74 -0
- package/dist/bundle/{server-YNQPNIJD.js → server-OEEGRSQD.js} +47 -45
- package/dist/bundle/{services-SLEOMN4B.js → services-Q6SFESMS.js} +31 -31
- package/dist/bundle/{speech-FZZ6QVGU.js → speech-PBVEIG4N.js} +12 -12
- package/dist/bundle/{sqlite-runtime-WUR4PWYB.js → sqlite-runtime-IWR65V6I.js} +3 -3
- package/dist/bundle/{state-ET36L4TY.js → state-G54C2N6U.js} +3 -3
- package/dist/bundle/{store-SQB2DOVJ.js → store-7EWMPTTW.js} +16 -16
- package/dist/bundle/{store-DI6OUBXA.js → store-D5OLXIFW.js} +14 -14
- package/dist/bundle/store-connection-34747SCC.js +90 -0
- package/dist/bundle/store-maintenance-command-QBO67F7Z.js +65 -0
- package/dist/bundle/{tokens-SUHRRQ25.js → tokens-J7TFHLEG.js} +4 -4
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-GE4SSHOP.js → zoom-app-SULPMVN4.js} +2 -2
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +2 -2
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IJONJTST.js +0 -76
- package/dist/bundle/config-YQA5TJ7Y.js +0 -97
- package/dist/bundle/first-screen-6GW6FD6S.js +0 -39
- package/dist/bundle/server-DM5ZPFZB.js +0 -75
- package/dist/bundle/store-connection-M6LVRAZ5.js +0 -90
- package/dist/bundle/store-maintenance-command-B66KWG6K.js +0 -65
|
@@ -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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -63,6 +63,8 @@ var PROVIDER_API = [
|
|
|
63
63
|
validation("api.unknown-method", "the provider has no method by this name"),
|
|
64
64
|
["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
|
|
65
65
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
66
|
+
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
67
|
+
["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
|
|
66
68
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
67
69
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
68
70
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"]
|
|
@@ -245,6 +247,16 @@ var OTHERS = [
|
|
|
245
247
|
["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
|
|
246
248
|
["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
|
|
247
249
|
["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
|
|
250
|
+
["meetings.server-offline", "permission_error", "meetings list and show ask the service; --offline was given"],
|
|
251
|
+
["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
|
|
252
|
+
["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
|
|
253
|
+
["meetings.server-refused", "permission_error", "the meetings service refused the request"],
|
|
254
|
+
["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
|
|
255
|
+
[
|
|
256
|
+
"meetings.server-capped",
|
|
257
|
+
"outcome_unknown",
|
|
258
|
+
"the meetings service may hold more matches than the calls and pages one list asks"
|
|
259
|
+
],
|
|
248
260
|
["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
|
|
249
261
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
250
262
|
["busy.unanswered", "provider_error", "the provider gave no busy times for a calendar or person that was asked"],
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L5UILROP.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A3Q3PG54.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-EA2OB75T.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -2,15 +2,15 @@ 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-WUWF4EXZ.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2Q4CB4EI.js";
|
|
9
9
|
import {
|
|
10
10
|
RECORDS_SCHEMA_VERSION,
|
|
11
11
|
RECORD_TYPES,
|
|
12
12
|
pointerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K5E5MB4C.js";
|
|
14
14
|
import {
|
|
15
15
|
indent
|
|
16
16
|
} from "./chunk-HNWDEDMU.js";
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
25
25
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
26
26
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
27
27
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
30
30
|
var MARKERS = [
|
|
31
31
|
["**", "bold"],
|
|
32
32
|
["~~", "strike"],
|
|
@@ -72,7 +72,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
72
72
|
return end;
|
|
73
73
|
}, "closing");
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
76
76
|
var STYLES = [
|
|
77
77
|
["**", "bold"],
|
|
78
78
|
["__", "underline"],
|
|
@@ -232,7 +232,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
232
232
|
return validateFormattedText(result);
|
|
233
233
|
}, "parseMarkdownSpans");
|
|
234
234
|
|
|
235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
236
236
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
237
237
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
238
238
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -247,7 +247,7 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
|
247
247
|
};
|
|
248
248
|
}, "countedPoll");
|
|
249
249
|
|
|
250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/records-table.js
|
|
251
251
|
var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
|
|
252
252
|
var TableError = class extends Error {
|
|
253
253
|
static {
|
|
@@ -2237,7 +2237,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
2237
2237
|
var qrcode_default = qrcode;
|
|
2238
2238
|
var stringToBytes = qrcode.stringToBytes;
|
|
2239
2239
|
|
|
2240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
2241
2241
|
var QUIET_ZONE = 4;
|
|
2242
2242
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
2243
2243
|
var RESET = "\x1B[0m";
|
|
@@ -2284,7 +2284,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
2284
2284
|
return lines.join("\n");
|
|
2285
2285
|
}, "plainQr");
|
|
2286
2286
|
|
|
2287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
2288
2288
|
var MARGIN = 2;
|
|
2289
2289
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
2290
2290
|
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";
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference,
|
|
5
5
|
parseMeetingReference
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3YRPDNWK.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-EA2OB75T.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
18
18
|
var CURRENCY_SCALES = {
|
|
19
19
|
AED: 2,
|
|
20
20
|
AMD: 2,
|
|
@@ -108,7 +108,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
|
108
108
|
}, "quantityOf");
|
|
109
109
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
112
112
|
var DEAL_KINDS = ["deal", "lead"];
|
|
113
113
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
114
114
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -118,7 +118,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
118
118
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
119
119
|
}, "dealLine");
|
|
120
120
|
|
|
121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
122
122
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
123
123
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
124
124
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -147,7 +147,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
147
147
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
148
148
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
151
151
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
152
152
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
153
153
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -158,7 +158,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
158
158
|
}, "orderLine");
|
|
159
159
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
160
160
|
|
|
161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
162
162
|
var ORGANIZATION_ROLES = [
|
|
163
163
|
"employee",
|
|
164
164
|
"contractor",
|
|
@@ -265,7 +265,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
265
265
|
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");
|
|
266
266
|
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");
|
|
267
267
|
|
|
268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
269
269
|
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
270
270
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
271
271
|
var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
|
|
@@ -275,7 +275,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
|
|
|
275
275
|
}, "normalCrmUserId");
|
|
276
276
|
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
277
277
|
|
|
278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
279
279
|
var CATALOG_KINDS = ["product", "service"];
|
|
280
280
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
281
281
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -304,7 +304,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
304
304
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
305
305
|
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");
|
|
306
306
|
|
|
307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
308
308
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
309
309
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
310
310
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -318,21 +318,28 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
318
318
|
return tag;
|
|
319
319
|
}, "normalizeTag");
|
|
320
320
|
|
|
321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
322
322
|
var SCHEME = "msg:";
|
|
323
323
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
324
324
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
325
325
|
var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
326
326
|
const trimmed = reference.trim();
|
|
327
327
|
const parts2 = trimmed.startsWith(SCHEME) ? trimmed.slice(SCHEME.length).split("/") : [];
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const
|
|
328
|
+
const malformed2 = /* @__PURE__ */ __name(() => new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`), "malformed");
|
|
329
|
+
if (parts2.length !== 4 || parts2.some((part) => part === ""))
|
|
330
|
+
throw malformed2();
|
|
331
|
+
const decoded2 = /* @__PURE__ */ __name((part) => {
|
|
332
|
+
try {
|
|
333
|
+
return decodeURIComponent(part);
|
|
334
|
+
} catch {
|
|
335
|
+
throw malformed2();
|
|
336
|
+
}
|
|
337
|
+
}, "decoded");
|
|
338
|
+
const [provider, account, chat, message] = parts2.map(decoded2);
|
|
332
339
|
return { provider, account, chat, message };
|
|
333
340
|
}, "parseLocator");
|
|
334
341
|
|
|
335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
336
343
|
var SIMPLE_REFERENCES = [
|
|
337
344
|
"note",
|
|
338
345
|
"document",
|
|
@@ -360,11 +367,18 @@ var SIMPLE_REFERENCES = [
|
|
|
360
367
|
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
361
368
|
reason: "ref.malformed"
|
|
362
369
|
}), "malformed");
|
|
370
|
+
var decoded = /* @__PURE__ */ __name((part, text, shape) => {
|
|
371
|
+
try {
|
|
372
|
+
return decodeURIComponent(part);
|
|
373
|
+
} catch {
|
|
374
|
+
throw malformed(text, shape);
|
|
375
|
+
}
|
|
376
|
+
}, "decoded");
|
|
363
377
|
var parts = /* @__PURE__ */ __name((rest, count, text, shape) => {
|
|
364
378
|
const split = rest.split("/");
|
|
365
379
|
if (split.length !== count || split.some((part) => part === ""))
|
|
366
380
|
throw malformed(text, shape);
|
|
367
|
-
return split.map(
|
|
381
|
+
return split.map((part) => decoded(part, text, shape));
|
|
368
382
|
}, "parts");
|
|
369
383
|
var encoded = /* @__PURE__ */ __name((...values) => values.map(encodeURIComponent).join("/"), "encoded");
|
|
370
384
|
var folderPath = /* @__PURE__ */ __name((path) => {
|
|
@@ -426,8 +440,8 @@ var REF_KINDS = [
|
|
|
426
440
|
shape: "folder:<id>[/<path>]",
|
|
427
441
|
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
428
442
|
const slash = rest.indexOf("/");
|
|
429
|
-
const id =
|
|
430
|
-
const path = slash < 0 ? null : folderPath(
|
|
443
|
+
const id = decoded(slash < 0 ? rest : rest.slice(0, slash), text, "folder:<id>[/<path>]");
|
|
444
|
+
const path = slash < 0 ? null : folderPath(decoded(rest.slice(slash + 1), text, "folder:<id>[/<path>]"));
|
|
431
445
|
if (!id.trim() || path === "")
|
|
432
446
|
throw malformed(text, "folder:<id>[/<path>]");
|
|
433
447
|
return { type: "folder", id, path };
|
|
@@ -488,7 +502,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
|
488
502
|
return match !== null && byPrefix.has(match[1]);
|
|
489
503
|
}, "looksLikeReference");
|
|
490
504
|
|
|
491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
492
506
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
493
507
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
494
508
|
var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
|
|
@@ -505,7 +519,7 @@ var PROVIDERS = [
|
|
|
505
519
|
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
506
520
|
{ name: "added", kind: "notes", aliases: [] },
|
|
507
521
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
508
|
-
{ name: "google-meet", kind: "meetings", aliases: [], command: "
|
|
522
|
+
{ name: "google-meet", kind: "meetings", aliases: [], command: "gmeet" },
|
|
509
523
|
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
510
524
|
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
511
525
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3YKAFLXY.js";
|
|
7
7
|
import {
|
|
8
8
|
ADDED_PROVIDER,
|
|
9
9
|
INTERNAL_NOTES,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
kindsIn,
|
|
18
18
|
providerNamed,
|
|
19
19
|
providers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IMDTC4MD.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-A3Q3PG54.js";
|
|
24
24
|
import {
|
|
25
25
|
createRecordLog,
|
|
26
26
|
resolvePaths,
|
|
@@ -53,13 +53,13 @@ import {
|
|
|
53
53
|
__name
|
|
54
54
|
} from "./chunk-ZVVMGPBJ.js";
|
|
55
55
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
57
57
|
import { randomUUID } from "node:crypto";
|
|
58
58
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
59
59
|
import { userInfo } from "node:os";
|
|
60
60
|
import { join, sep } from "node:path";
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
63
63
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
64
64
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
65
65
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -72,7 +72,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
72
72
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
73
73
|
}), "snakeLogger");
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
76
76
|
var diagnostic = {
|
|
77
77
|
event: true,
|
|
78
78
|
operation: true,
|
|
@@ -146,7 +146,7 @@ var LOG_ATTRIBUTES = [
|
|
|
146
146
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
147
147
|
].sort();
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
150
150
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
151
151
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
152
152
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -513,7 +513,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
513
513
|
};
|
|
514
514
|
}, "metadataOf");
|
|
515
515
|
|
|
516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
517
517
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
518
518
|
import { randomBytes } from "node:crypto";
|
|
519
519
|
var scopes = new AsyncLocalStorage();
|
|
@@ -566,14 +566,14 @@ var attempts = new AsyncLocalStorage();
|
|
|
566
566
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
567
567
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
568
568
|
|
|
569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
570
570
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
571
571
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
572
572
|
var ERASED_TEXT = "[source erased]";
|
|
573
573
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
574
574
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
575
575
|
|
|
576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
577
577
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
578
578
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
579
579
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -588,7 +588,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
588
588
|
}
|
|
589
589
|
__name(closeTask, "closeTask");
|
|
590
590
|
|
|
591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
592
592
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
593
593
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
594
594
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -617,7 +617,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
617
617
|
}, "priorityOf");
|
|
618
618
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
619
619
|
|
|
620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
621
621
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
622
622
|
async function find(id2) {
|
|
623
623
|
const task = await store.get(id2);
|
|
@@ -677,13 +677,13 @@ function median(values) {
|
|
|
677
677
|
}
|
|
678
678
|
__name(median, "median");
|
|
679
679
|
|
|
680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
681
681
|
function matches(task, filter) {
|
|
682
682
|
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);
|
|
683
683
|
}
|
|
684
684
|
__name(matches, "matches");
|
|
685
685
|
|
|
686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
687
687
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
688
688
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
689
689
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -691,10 +691,10 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
691
691
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
692
692
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
693
693
|
|
|
694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
695
695
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
696
696
|
|
|
697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
698
698
|
var text = string();
|
|
699
699
|
var id = pipe(string(), minLength(1));
|
|
700
700
|
var time = isoTime;
|
|
@@ -719,7 +719,7 @@ var author = strictObject({
|
|
|
719
719
|
name: nullable(text)
|
|
720
720
|
});
|
|
721
721
|
|
|
722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
723
723
|
var organization = strictObject({
|
|
724
724
|
id,
|
|
725
725
|
ref: reference,
|
|
@@ -749,7 +749,7 @@ var reminder = strictObject({
|
|
|
749
749
|
receipt: nullable(text)
|
|
750
750
|
});
|
|
751
751
|
|
|
752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
753
753
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
754
754
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
755
755
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -870,7 +870,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
870
870
|
return { previous, cleared };
|
|
871
871
|
}, "recordDeepCheck");
|
|
872
872
|
|
|
873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
874
874
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
875
875
|
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");
|
|
876
876
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -893,7 +893,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
893
893
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
894
894
|
}, "sourceOf");
|
|
895
895
|
|
|
896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
897
897
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
898
898
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
899
899
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1103,7 +1103,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1103
1103
|
return { accounts: [...chosen.values()], skipped };
|
|
1104
1104
|
}, "fitting");
|
|
1105
1105
|
|
|
1106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
1107
1107
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
1108
1108
|
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
1109
1109
|
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;
|
|
@@ -1113,7 +1113,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
1113
1113
|
};
|
|
1114
1114
|
}, "sourceOf");
|
|
1115
1115
|
|
|
1116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
1117
1117
|
var LINK_KINDS = [
|
|
1118
1118
|
"links-to",
|
|
1119
1119
|
"blocked-by",
|