@wirecat/hubspot-cli 0.6.0 → 0.8.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 +36 -0
- package/contracts/wirecat.json +2 -1
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-NMSIVLX7.js +41 -0
- package/dist/bundle/{all-profiles-HFVXPMF6.js → all-profiles-EMBBR5CW.js} +11 -11
- package/dist/bundle/{anthropic-VE6WR6IN.js → anthropic-AS2MTXO3.js} +5 -5
- package/dist/bundle/{app-server-GZ4DCQK7.js → app-server-WZWKHDLK.js} +70 -68
- package/dist/bundle/{bun-2DHMKD34.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-T5XTYL7L.js → bun-sqlite-NBAY7FR2.js} +6 -6
- package/dist/bundle/{chunk-AKSWXRIU.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-UCGZRZJA.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-3YTTWJKL.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-J4FXBF44.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-J76CMNWQ.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-X2QRCFGJ.js → chunk-4NLZXDXP.js} +4 -4
- package/dist/bundle/{chunk-2K5BAY32.js → chunk-5JKTVAXX.js} +19 -19
- package/dist/bundle/{chunk-PR7ZDMGF.js → chunk-5XYI75HH.js} +3 -3
- package/dist/bundle/{chunk-EB53G4HO.js → chunk-6TD3DCWC.js} +2 -2
- package/dist/bundle/{chunk-K4Y2ZWOO.js → chunk-7SV76BVS.js} +3 -3
- package/dist/bundle/{chunk-PDVMYIBP.js → chunk-7T5BFWZI.js} +14450 -12008
- package/dist/bundle/{chunk-5WDNG4QE.js → chunk-7Z53MLQP.js} +7 -7
- package/dist/bundle/{chunk-RLK2EGQD.js → chunk-AINKLKDN.js} +29 -16
- package/dist/bundle/{chunk-E27NRLJZ.js → chunk-BGWQIFAS.js} +38 -24
- package/dist/bundle/{chunk-MSQGZHKM.js → chunk-CVAHCGE6.js} +27 -26
- package/dist/bundle/{chunk-6DABKZYH.js → chunk-D7NSIQBI.js} +125 -64
- package/dist/bundle/{chunk-THGAVPRA.js → chunk-D7OZWLJU.js} +11 -11
- package/dist/bundle/{chunk-TCSVW7BA.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-WASBOYI2.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-QK5HQUHB.js → chunk-EVUMQKV7.js} +3 -3
- package/dist/bundle/{chunk-5O5WYSSO.js → chunk-FRF32QVB.js} +711 -633
- package/dist/bundle/{chunk-H4W2OO35.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-I75ON7VM.js → chunk-GIMHJ7HA.js} +8 -8
- package/dist/bundle/{chunk-5NIIXJV3.js → chunk-GXDD4QWH.js} +2 -2
- package/dist/bundle/{chunk-ZERQSELP.js → chunk-H6AH45GE.js} +198 -164
- package/dist/bundle/{chunk-DIKUPU3T.js → chunk-HZ3C4WXD.js} +3 -3
- package/dist/bundle/{chunk-TXO4CJW3.js → chunk-IA77VHME.js} +13 -9
- package/dist/bundle/{chunk-LTU4BQ4S.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-3HS7JTPI.js → chunk-IGNMDKP7.js} +14 -14
- package/dist/bundle/{chunk-G6LDK6DJ.js → chunk-IPKCM55K.js} +7 -7
- package/dist/bundle/{chunk-2I2KBCS6.js → chunk-JBZYHRUN.js} +5 -5
- package/dist/bundle/{chunk-M3LRSN6J.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-HZIGGAC7.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-T4MZJMEJ.js → chunk-JPONKBEQ.js} +23 -23
- package/dist/bundle/{chunk-5ILCAAY4.js → chunk-K5QWV6IX.js} +35 -35
- package/dist/bundle/{chunk-LHY5XGIR.js → chunk-KNL7CKF6.js} +179 -108
- package/dist/bundle/{chunk-JFLKTYH5.js → chunk-KVTNYRDO.js} +6 -6
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-CU76ZACK.js → chunk-L45WN3AR.js} +3 -3
- package/dist/bundle/{chunk-2VUIJ5XB.js → chunk-L72WUJAS.js} +2 -2
- package/dist/bundle/{chunk-GWXTVO43.js → chunk-LCUWAH4L.js} +7 -7
- package/dist/bundle/{chunk-4UEYVM46.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-CTN4DW2F.js → chunk-LM3W7YOM.js} +4 -4
- package/dist/bundle/{chunk-3TLNO3VM.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-EJZIEBAR.js → chunk-LZPSIYRC.js} +8 -8
- package/dist/bundle/{chunk-KDW7B7AR.js → chunk-MYXUJCJD.js} +5 -5
- package/dist/bundle/{chunk-PZ3QJDTD.js → chunk-NA2B6PYR.js} +5 -5
- package/dist/bundle/{chunk-TT75CEYZ.js → chunk-NB7EOAUZ.js} +1 -1
- package/dist/bundle/{chunk-XRFYVVFU.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-VR2CJFVL.js → chunk-NQVMPJAQ.js} +8 -8
- package/dist/bundle/{chunk-J2SCELII.js → chunk-NVR6M4TF.js} +16 -16
- package/dist/bundle/{chunk-GR4HZBWO.js → chunk-O4AUYEGC.js} +2 -2
- package/dist/bundle/{chunk-TRLV5NWZ.js → chunk-OGVSGXPI.js} +640 -506
- package/dist/bundle/{chunk-3W5R3XAH.js → chunk-OUYXUGUX.js} +8 -8
- package/dist/bundle/chunk-P657KN5N.js +122 -0
- package/dist/bundle/{chunk-GHXTNKX2.js → chunk-P7G5HFY3.js} +2 -2
- package/dist/bundle/{chunk-BU5CEMUH.js → chunk-PFYPJUWX.js} +19 -15
- package/dist/bundle/{chunk-Q6AC7WLD.js → chunk-PLPBEWD4.js} +3 -3
- package/dist/bundle/{chunk-HYDXA624.js → chunk-PMQ7GP6X.js} +6 -6
- package/dist/bundle/{chunk-JDCFHZNU.js → chunk-Q32ZDGS2.js} +8 -8
- package/dist/bundle/{chunk-TAPQZYXY.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-WE4JSHIG.js → chunk-QLYSNL47.js} +6 -6
- package/dist/bundle/{chunk-H5HBZCEJ.js → chunk-QPPOIWPY.js} +8 -8
- package/dist/bundle/{chunk-GEJI27GN.js → chunk-R2C5WDQV.js} +6 -6
- package/dist/bundle/{chunk-UVGJL753.js → chunk-RQORQN2V.js} +61 -61
- package/dist/bundle/{chunk-YIH2A2PQ.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-MJ24YFXZ.js → chunk-TTF5DP4V.js} +7 -7
- package/dist/bundle/{chunk-745FMNI5.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-3WG4MTQI.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-ID4GJFE7.js → chunk-U5CFLBNX.js} +8 -8
- package/dist/bundle/{chunk-ZKTYTOF4.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-RLNPTES2.js → chunk-V57E7PJQ.js} +4 -4
- package/dist/bundle/{chunk-67YPTVGP.js → chunk-V7IF2K3P.js} +3 -3
- package/dist/bundle/{chunk-NQOQG7L3.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-KKMOKSS5.js → chunk-VNMEE4ZZ.js} +3 -3
- package/dist/bundle/{chunk-UZ2CL435.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-R26OEZOL.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/chunk-XIKSGUMQ.js +1293 -0
- package/dist/bundle/{chunk-YDG5FIQB.js → chunk-XK5BAPHF.js} +7 -7
- package/dist/bundle/{chunk-QH47G73D.js → chunk-XQGN2D44.js} +3 -3
- package/dist/bundle/{chunk-5VTKBGPW.js → chunk-YKSH7BY2.js} +121 -36
- package/dist/bundle/{chunk-BM5F2ZNI.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-5IPB5WLB.js → chunk-ZJEENQRH.js} +12 -12
- package/dist/bundle/{chunk-24HPBWKZ.js → chunk-ZZOCAZSZ.js} +3 -3
- package/dist/bundle/command-contract-BGTXROZA.js +40 -0
- package/dist/bundle/{command-server-entry-H6IAJNOF.js → command-server-entry-PDLRF2RV.js} +28 -28
- package/dist/bundle/{decode-TR2EC46M.js → decode-26M7XE2B.js} +5 -5
- package/dist/bundle/{dispatch-B2EP6DDT.js → dispatch-2FTOHA5D.js} +8 -8
- package/dist/bundle/{echarts-7OP7I5B2.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-FLGS4LN7.js → embed-XJLEAWXE.js} +6 -6
- package/dist/bundle/{embedder-JIXQXCP3.js → embedder-OEL6PXEH.js} +9 -9
- package/dist/bundle/{failure-AOACEURF.js → failure-OHIXWTR6.js} +2 -2
- package/dist/bundle/{first-run-XJ2NWIK2.js → first-run-J2T4IKK4.js} +12 -12
- package/dist/bundle/first-screen-Q5KYFT3R.js +41 -0
- package/dist/bundle/hubspot.js +27 -27
- package/dist/bundle/{instructions-PYCYV6QE.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-ZNULRPZ4.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5H6VGK6O.js +25 -0
- package/dist/bundle/{meeting-model-2PA5WJY5.js → meeting-model-USLGH5SE.js} +11 -11
- package/dist/bundle/{meeting-semantic-5IH63QFV.js → meeting-semantic-Q6XYFYUD.js} +6 -6
- package/dist/bundle/{node-6GTNIVBM.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-FBCEHPNT.js → node-sqlite-2SWWGW6H.js} +7 -7
- package/dist/bundle/{oauth-BFP4SCL5.js → oauth-V5LGTXF2.js} +7 -7
- package/dist/bundle/{open-MLU4MHGO.js → open-25EKOTZA.js} +5 -5
- package/dist/bundle/{openai-R7WJI6SO.js → openai-CH37GSZS.js} +15 -15
- package/dist/bundle/{process-NMNQLJHZ.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-Z735HPFG.js → program-G4OZFVUI.js} +212 -117
- package/dist/bundle/{prompt-A6RM55Q4.js → prompt-2VSPX5S7.js} +5 -5
- package/dist/bundle/public-WB7IWBMR.js +196 -0
- package/dist/bundle/{recognize-ORRDV45M.js → recognize-NA5XUFKK.js} +4 -4
- package/dist/bundle/{remote-UF3WSC4X.js → remote-NRJOX6XW.js} +9 -9
- package/dist/bundle/{rerank-ZSJORUGH.js → rerank-NG3XMFCV.js} +7 -7
- package/dist/bundle/{schemas-EXBNVPMI.js → schemas-SKF4MZBJ.js} +1 -1
- package/dist/bundle/{serve-4KBJ6SIA.js → serve-MR67OBED.js} +9 -9
- package/dist/bundle/server-LFNGSVUQ.js +88 -0
- package/dist/bundle/{server-IFK4S6LJ.js → server-NZPHVRS6.js} +62 -60
- package/dist/bundle/{source-PBCQAG4C.js → source-P2KVDTJ5.js} +75 -73
- package/dist/bundle/{sqlite-runtime-XPDUWOPG.js → sqlite-runtime-V5U6F5EB.js} +6 -6
- package/dist/bundle/{state-4M26H7NL.js → state-L4MWAATO.js} +6 -6
- package/dist/bundle/store-ARASPKTV.js +34 -0
- package/dist/bundle/{store-ICTY3RIF.js → store-JFIZLDKO.js} +22 -22
- package/dist/bundle/{store-3W4ZOOIB.js → store-SUHY3G2X.js} +27 -24
- package/dist/bundle/store-maintenance-command-L2FXCEGU.js +75 -0
- package/dist/bundle/surface-NQK7CQ33.js +74 -0
- package/dist/bundle/writer-TYTMOXXA.js +88 -0
- package/dist/config.d.ts +5 -38
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/crm/records.d.ts.map +1 -1
- package/dist/crm/records.js +3 -0
- package/dist/crm/records.js.map +1 -1
- package/dist/crm/source.js +1 -1
- package/dist/crm/source.js.map +1 -1
- package/dist/generated/definitions.d.ts +1 -1
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/manifest.d.ts +1 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/hubspot-cli/SKILL.md +10 -3
- package/dist/bundle/agent-XB35QVOK.js +0 -40
- package/dist/bundle/chunk-HX2BE7DO.js +0 -40
- package/dist/bundle/chunk-V7N2K5OT.js +0 -1269
- package/dist/bundle/command-contract-5FXCYQUS.js +0 -40
- package/dist/bundle/first-screen-U73G5CMM.js +0 -40
- package/dist/bundle/meeting-combined-IHTM5H5B.js +0 -25
- package/dist/bundle/server-MNUAZWTN.js +0 -86
- package/dist/bundle/store-CDY2PW6J.js +0 -34
- package/dist/bundle/store-maintenance-command-Y7TC3I43.js +0 -73
- package/dist/bundle/surface-4LNDJZD2.js +0 -72
- package/dist/bundle/writer-WGHWQTC2.js +0 -86
|
@@ -1,1269 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
isCliFailure,
|
|
5
|
-
isStoreDamage
|
|
6
|
-
} from "./chunk-HZIGGAC7.js";
|
|
7
|
-
import {
|
|
8
|
-
ADDED_PROVIDER,
|
|
9
|
-
INTERNAL_NOTES,
|
|
10
|
-
UNKNOWN_PROVIDER,
|
|
11
|
-
alsoListedByKey,
|
|
12
|
-
holdsKindOf,
|
|
13
|
-
isDocumentAccountProvider,
|
|
14
|
-
isFolderProvider,
|
|
15
|
-
isKind,
|
|
16
|
-
kindIn,
|
|
17
|
-
kindOf,
|
|
18
|
-
kindsIn,
|
|
19
|
-
providerNamed,
|
|
20
|
-
providers
|
|
21
|
-
} from "./chunk-RLK2EGQD.js";
|
|
22
|
-
import {
|
|
23
|
-
refuseOwnerStoreInTests
|
|
24
|
-
} from "./chunk-2VUIJ5XB.js";
|
|
25
|
-
import {
|
|
26
|
-
createRecordLog,
|
|
27
|
-
resolvePaths,
|
|
28
|
-
traceIdOf,
|
|
29
|
-
writeSecurely
|
|
30
|
-
} from "./chunk-2K5BAY32.js";
|
|
31
|
-
import {
|
|
32
|
-
isoTime,
|
|
33
|
-
reference
|
|
34
|
-
} from "./chunk-H5HBZCEJ.js";
|
|
35
|
-
import {
|
|
36
|
-
array,
|
|
37
|
-
boolean,
|
|
38
|
-
description,
|
|
39
|
-
integer,
|
|
40
|
-
maxLength,
|
|
41
|
-
minLength,
|
|
42
|
-
minValue,
|
|
43
|
-
nullable,
|
|
44
|
-
number,
|
|
45
|
-
optional,
|
|
46
|
-
picklist,
|
|
47
|
-
pipe,
|
|
48
|
-
record,
|
|
49
|
-
strictObject,
|
|
50
|
-
string,
|
|
51
|
-
unknown
|
|
52
|
-
} from "./chunk-S4UUN6LD.js";
|
|
53
|
-
import {
|
|
54
|
-
CliError
|
|
55
|
-
} from "./chunk-AP3CWDRK.js";
|
|
56
|
-
import {
|
|
57
|
-
__name
|
|
58
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
59
|
-
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
61
|
-
import { randomUUID } from "node:crypto";
|
|
62
|
-
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
63
|
-
import { userInfo } from "node:os";
|
|
64
|
-
import { join, sep } from "node:path";
|
|
65
|
-
|
|
66
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
67
|
-
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
68
|
-
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
69
|
-
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
70
|
-
var logAttributes = /* @__PURE__ */ __name((event) => renamed(event, snake), "logAttributes");
|
|
71
|
-
var fromLogAttributes = /* @__PURE__ */ __name((attributes) => renamed(attributes, camel), "fromLogAttributes");
|
|
72
|
-
var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
73
|
-
debug: /* @__PURE__ */ __name((event, message) => logger.debug(logAttributes(event), message), "debug"),
|
|
74
|
-
info: /* @__PURE__ */ __name((event, message) => logger.info(logAttributes(event), message), "info"),
|
|
75
|
-
warn: /* @__PURE__ */ __name((event, message) => logger.warn(logAttributes(event), message), "warn"),
|
|
76
|
-
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
77
|
-
}), "snakeLogger");
|
|
78
|
-
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
80
|
-
var diagnostic = {
|
|
81
|
-
event: true,
|
|
82
|
-
operation: true,
|
|
83
|
-
opcode: true,
|
|
84
|
-
seq: true,
|
|
85
|
-
status: true,
|
|
86
|
-
method: true,
|
|
87
|
-
endpointTemplate: true,
|
|
88
|
-
bytes: true,
|
|
89
|
-
ids: true,
|
|
90
|
-
counts: true,
|
|
91
|
-
durationMs: true,
|
|
92
|
-
outcome: true,
|
|
93
|
-
errorCode: true,
|
|
94
|
-
providerError: true,
|
|
95
|
-
level: true,
|
|
96
|
-
transport: true,
|
|
97
|
-
attempt: true,
|
|
98
|
-
waitMs: true,
|
|
99
|
-
code: true,
|
|
100
|
-
detail: true,
|
|
101
|
-
reason: true,
|
|
102
|
-
ageMs: true,
|
|
103
|
-
kind: true,
|
|
104
|
-
table: true,
|
|
105
|
-
op: true,
|
|
106
|
-
n: true
|
|
107
|
-
};
|
|
108
|
-
var send = {
|
|
109
|
-
profile: true,
|
|
110
|
-
chatId: true,
|
|
111
|
-
outcome: true,
|
|
112
|
-
kind: true,
|
|
113
|
-
action: true,
|
|
114
|
-
people: true,
|
|
115
|
-
messageId: true,
|
|
116
|
-
key: true,
|
|
117
|
-
count: true,
|
|
118
|
-
forEveryone: true,
|
|
119
|
-
sendId: true,
|
|
120
|
-
operationId: true,
|
|
121
|
-
parentOperationId: true,
|
|
122
|
-
replyTo: true,
|
|
123
|
-
threadId: true,
|
|
124
|
-
sendAs: true,
|
|
125
|
-
resultChatId: true,
|
|
126
|
-
length: true,
|
|
127
|
-
attachments: true,
|
|
128
|
-
scheduledFor: true,
|
|
129
|
-
notify: true,
|
|
130
|
-
origin: true,
|
|
131
|
-
reservation: true,
|
|
132
|
-
errorCode: true
|
|
133
|
-
};
|
|
134
|
-
var background = [
|
|
135
|
-
"job",
|
|
136
|
-
"pid",
|
|
137
|
-
"schedule",
|
|
138
|
-
"exitCode",
|
|
139
|
-
"tool",
|
|
140
|
-
"tier",
|
|
141
|
-
"actorType",
|
|
142
|
-
"actorId",
|
|
143
|
-
"agent",
|
|
144
|
-
"targetType",
|
|
145
|
-
"targetId"
|
|
146
|
-
];
|
|
147
|
-
var crash = ["errorClass", "frames"];
|
|
148
|
-
var dropped = ["dropped"];
|
|
149
|
-
var LOG_ATTRIBUTES = [
|
|
150
|
-
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
151
|
-
].sort();
|
|
152
|
-
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
154
|
-
var KEEP_RUNS_FOR_DAYS = 30;
|
|
155
|
-
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
156
|
-
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
157
|
-
var RUNS_SIZE_LIMIT_MB = 200;
|
|
158
|
-
var runsDirFor = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "runs"), "runsDirFor");
|
|
159
|
-
var startRun = /* @__PURE__ */ __name((options) => {
|
|
160
|
-
const now = options.now ?? (() => /* @__PURE__ */ new Date());
|
|
161
|
-
const startedAt = options.startedAt ?? now();
|
|
162
|
-
const id2 = options.runId ?? newRunId(startedAt, options.command);
|
|
163
|
-
const dir = join(options.runsDir, day(startedAt), id2);
|
|
164
|
-
pruneRuns(options.runsDir, {
|
|
165
|
-
keepDays: options.keepDays ?? KEEP_RUNS_FOR_DAYS,
|
|
166
|
-
keepSuccessDays: options.keepSuccessDays ?? KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
167
|
-
keepStoreDays: options.keepStoreDays ?? KEEP_STORE_RUNS_FOR_DAYS,
|
|
168
|
-
maxBytes: options.maxBytes ?? RUNS_SIZE_LIMIT_MB * 1024 * 1024,
|
|
169
|
-
now: startedAt
|
|
170
|
-
});
|
|
171
|
-
refuseRealStateInTests(dir);
|
|
172
|
-
const metadata = {
|
|
173
|
-
runId: id2,
|
|
174
|
-
command: options.command,
|
|
175
|
-
...options.profile === void 0 ? {} : { profile: options.profile },
|
|
176
|
-
startedAt: startedAt.toISOString(),
|
|
177
|
-
status: "running",
|
|
178
|
-
cliVersion: options.cliVersion,
|
|
179
|
-
runtime: runtime(),
|
|
180
|
-
platform: process.platform,
|
|
181
|
-
arch: process.arch,
|
|
182
|
-
...options.traceId === void 0 ? {} : { traceId: options.traceId },
|
|
183
|
-
...options.context
|
|
184
|
-
};
|
|
185
|
-
let file;
|
|
186
|
-
const opened = /* @__PURE__ */ __name(() => {
|
|
187
|
-
if (file)
|
|
188
|
-
return file;
|
|
189
|
-
mkdirSync(dir, { recursive: true, mode: 448 });
|
|
190
|
-
const events = join(dir, "events.jsonl");
|
|
191
|
-
writeFileSync(events, "", { flag: "a", mode: 384 });
|
|
192
|
-
file = snakeLogger(createRecordLog({
|
|
193
|
-
to: events,
|
|
194
|
-
runId: id2,
|
|
195
|
-
command: options.command,
|
|
196
|
-
resource: { service: options.service, version: options.cliVersion },
|
|
197
|
-
allow: LOG_ATTRIBUTES,
|
|
198
|
-
...options.traceId === void 0 ? {} : { traceId: options.traceId },
|
|
199
|
-
...options.onError === void 0 ? {} : { onError: options.onError }
|
|
200
|
-
}));
|
|
201
|
-
writeRunFile(dir, metadata);
|
|
202
|
-
return file;
|
|
203
|
-
}, "opened");
|
|
204
|
-
if (!options.lazy)
|
|
205
|
-
opened();
|
|
206
|
-
let finished = false;
|
|
207
|
-
const operations = /* @__PURE__ */ new Set();
|
|
208
|
-
const codes = /* @__PURE__ */ new Set();
|
|
209
|
-
const tables = /* @__PURE__ */ new Set();
|
|
210
|
-
const noted = /* @__PURE__ */ __name((level) => (event, message) => {
|
|
211
|
-
const { operation, errorCode, error_code, code, kind, table } = event;
|
|
212
|
-
if (typeof operation === "string")
|
|
213
|
-
operations.add(operation);
|
|
214
|
-
if (kind === "store" && typeof table === "string")
|
|
215
|
-
tables.add(table);
|
|
216
|
-
for (const value of [errorCode, error_code, code])
|
|
217
|
-
if (typeof value === "string")
|
|
218
|
-
codes.add(value);
|
|
219
|
-
if (finished)
|
|
220
|
-
return;
|
|
221
|
-
opened()[level](event, message);
|
|
222
|
-
}, "noted");
|
|
223
|
-
const logger = { debug: noted("debug"), info: noted("info"), warn: noted("warn"), error: noted("error") };
|
|
224
|
-
return {
|
|
225
|
-
id: id2,
|
|
226
|
-
dir,
|
|
227
|
-
logger,
|
|
228
|
-
finish: /* @__PURE__ */ __name(async (status, extra = {}) => {
|
|
229
|
-
if (finished)
|
|
230
|
-
return;
|
|
231
|
-
finished = true;
|
|
232
|
-
const completedAt = now();
|
|
233
|
-
const final = {
|
|
234
|
-
...metadata,
|
|
235
|
-
...extra,
|
|
236
|
-
status,
|
|
237
|
-
completedAt: completedAt.toISOString(),
|
|
238
|
-
durationMs: completedAt.getTime() - startedAt.getTime(),
|
|
239
|
-
operations: [...operations].sort(),
|
|
240
|
-
codes: [...codes].sort(),
|
|
241
|
-
...tables.size > 0 ? { tables: [...tables].sort() } : {}
|
|
242
|
-
};
|
|
243
|
-
if (file || status !== "success") {
|
|
244
|
-
opened();
|
|
245
|
-
writeRunFile(dir, final);
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
try {
|
|
249
|
-
mkdirSync(join(dir, ".."), { recursive: true, mode: 448 });
|
|
250
|
-
appendIndex(join(dir, ".."), runFileOf(final));
|
|
251
|
-
} catch (error) {
|
|
252
|
-
options.onError?.(error);
|
|
253
|
-
}
|
|
254
|
-
}, "finish")
|
|
255
|
-
};
|
|
256
|
-
}, "startRun");
|
|
257
|
-
var refuseRealStateInTests = /* @__PURE__ */ __name((dir, env = process.env) => {
|
|
258
|
-
if (env.VITEST === void 0)
|
|
259
|
-
return;
|
|
260
|
-
let home;
|
|
261
|
-
try {
|
|
262
|
-
home = userInfo().homedir;
|
|
263
|
-
} catch {
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
if (dir.startsWith(join(home, ".local", "share") + sep))
|
|
267
|
-
throw new Error(`a test opened a run in the real data folder: ${dir}`);
|
|
268
|
-
}, "refuseRealStateInTests");
|
|
269
|
-
var runtime = /* @__PURE__ */ __name(() => {
|
|
270
|
-
const bun = process.versions.bun;
|
|
271
|
-
return bun ? `bun ${bun}` : `node ${process.versions.node}`;
|
|
272
|
-
}, "runtime");
|
|
273
|
-
var newRunId = /* @__PURE__ */ __name((startedAt, command) => {
|
|
274
|
-
const stamp = startedAt.toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
|
|
275
|
-
const slug = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
|
|
276
|
-
return `${stamp}-${slug}-${randomUUID().slice(0, 6)}`;
|
|
277
|
-
}, "newRunId");
|
|
278
|
-
var INDEX = "index.jsonl";
|
|
279
|
-
var appendIndex = /* @__PURE__ */ __name((dayDir, written) => {
|
|
280
|
-
appendFileSync(join(dayDir, INDEX), `${JSON.stringify(written)}
|
|
281
|
-
`, { mode: 384 });
|
|
282
|
-
}, "appendIndex");
|
|
283
|
-
var writeRunFile = /* @__PURE__ */ __name((dir, metadata) => {
|
|
284
|
-
const written = runFileOf(metadata);
|
|
285
|
-
writeSecurely(join(dir, "run.json"), `${JSON.stringify(written, null, 2)}
|
|
286
|
-
`, 384);
|
|
287
|
-
try {
|
|
288
|
-
appendIndex(join(dir, ".."), written);
|
|
289
|
-
} catch {
|
|
290
|
-
}
|
|
291
|
-
}, "writeRunFile");
|
|
292
|
-
var matchesListFilter = /* @__PURE__ */ __name((run, filter) => (filter.runId === void 0 || run.runId === filter.runId) && (filter.command === void 0 || run.command === filter.command) && (filter.profile === void 0 || run.profile === filter.profile) && (filter.status === void 0 || run.status === filter.status) && (filter.errorCode === void 0 || run.errorCode === filter.errorCode), "matchesListFilter");
|
|
293
|
-
var listRuns = /* @__PURE__ */ __name((runsDir, { since, atLeast = Number.POSITIVE_INFINITY, filter = {} } = {}) => {
|
|
294
|
-
const first = since === void 0 ? void 0 : day(new Date(since));
|
|
295
|
-
const runs = [];
|
|
296
|
-
for (const date of days(runsDir).sort().reverse()) {
|
|
297
|
-
if (first !== void 0 && date < first || runs.length >= atLeast)
|
|
298
|
-
break;
|
|
299
|
-
for (const metadata of runsOfDay(join(runsDir, date))) {
|
|
300
|
-
if (matchesListFilter(metadata, filter))
|
|
301
|
-
runs.push(metadata);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
return runs;
|
|
305
|
-
}, "listRuns");
|
|
306
|
-
var indexedRuns = /* @__PURE__ */ __name((dayDir) => {
|
|
307
|
-
const latest = /* @__PURE__ */ new Map();
|
|
308
|
-
let raw = "";
|
|
309
|
-
try {
|
|
310
|
-
raw = readFileSync(join(dayDir, INDEX), "utf8");
|
|
311
|
-
} catch {
|
|
312
|
-
}
|
|
313
|
-
for (const line of raw.split("\n")) {
|
|
314
|
-
if (line.trim() === "")
|
|
315
|
-
continue;
|
|
316
|
-
try {
|
|
317
|
-
const metadata = metadataOf(JSON.parse(line));
|
|
318
|
-
if (typeof metadata.runId === "string")
|
|
319
|
-
latest.set(metadata.runId, metadata);
|
|
320
|
-
} catch {
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return latest;
|
|
324
|
-
}, "indexedRuns");
|
|
325
|
-
var runsOfDay = /* @__PURE__ */ __name((dayDir) => {
|
|
326
|
-
const latest = indexedRuns(dayDir);
|
|
327
|
-
for (const entry of safeReaddir(dayDir)) {
|
|
328
|
-
if (entry === INDEX || entry.startsWith(".") || latest.has(entry))
|
|
329
|
-
continue;
|
|
330
|
-
const metadata = readRun(join(dayDir, entry));
|
|
331
|
-
if (metadata)
|
|
332
|
-
latest.set(metadata.runId, metadata);
|
|
333
|
-
}
|
|
334
|
-
return [...latest.values()].sort((a, b) => a.runId < b.runId ? 1 : a.runId > b.runId ? -1 : 0);
|
|
335
|
-
}, "runsOfDay");
|
|
336
|
-
var findRun = /* @__PURE__ */ __name((runsDir, id2) => {
|
|
337
|
-
const stamped = /^(\d{4})(\d{2})(\d{2})T/.exec(id2);
|
|
338
|
-
const likely = stamped ? [`${stamped[1]}-${stamped[2]}-${stamped[3]}`] : [];
|
|
339
|
-
const dates = [.../* @__PURE__ */ new Set([...likely, ...days(runsDir)])];
|
|
340
|
-
for (const date of dates) {
|
|
341
|
-
const dir = join(runsDir, date, id2);
|
|
342
|
-
const metadata = readRun(dir);
|
|
343
|
-
if (metadata)
|
|
344
|
-
return { dir, metadata };
|
|
345
|
-
}
|
|
346
|
-
for (const date of dates) {
|
|
347
|
-
const metadata = indexedRuns(join(runsDir, date)).get(id2);
|
|
348
|
-
if (metadata)
|
|
349
|
-
return { dir: join(runsDir, date, id2), metadata };
|
|
350
|
-
}
|
|
351
|
-
return void 0;
|
|
352
|
-
}, "findRun");
|
|
353
|
-
var readEvents = /* @__PURE__ */ __name((dir) => {
|
|
354
|
-
let raw;
|
|
355
|
-
try {
|
|
356
|
-
raw = readFileSync(join(dir, "events.jsonl"), "utf8");
|
|
357
|
-
} catch {
|
|
358
|
-
return [];
|
|
359
|
-
}
|
|
360
|
-
const events = [];
|
|
361
|
-
for (const line of raw.split("\n")) {
|
|
362
|
-
if (line.trim() === "")
|
|
363
|
-
continue;
|
|
364
|
-
try {
|
|
365
|
-
const parsed = JSON.parse(line);
|
|
366
|
-
if (parsed !== null && typeof parsed === "object")
|
|
367
|
-
events.push(eventOf(parsed));
|
|
368
|
-
} catch {
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
return events;
|
|
372
|
-
}, "readEvents");
|
|
373
|
-
var eventOf = /* @__PURE__ */ __name((line) => {
|
|
374
|
-
const { attributes, time: time2, severity: severity2 } = line;
|
|
375
|
-
if (attributes === null || typeof attributes !== "object")
|
|
376
|
-
return logAttributes(line);
|
|
377
|
-
return { time: time2, severity: severity2, ...logAttributes(attributes) };
|
|
378
|
-
}, "eventOf");
|
|
379
|
-
var pruneRuns = /* @__PURE__ */ __name((runsDir, { keepDays, keepSuccessDays = keepDays, keepStoreDays = KEEP_STORE_RUNS_FOR_DAYS, maxBytes, now }) => {
|
|
380
|
-
const cutoff = day(new Date(now.getTime() - keepDays * DAY_MS));
|
|
381
|
-
const before = /* @__PURE__ */ __name((days2) => day(new Date(now.getTime() - Math.min(days2, keepDays) * DAY_MS)), "before");
|
|
382
|
-
const successCutoff = before(keepSuccessDays);
|
|
383
|
-
const storeCutoff = before(keepStoreDays);
|
|
384
|
-
const keptFor = /* @__PURE__ */ __name((metadata) => metadata.keptBecauseStore ? keepStoreDays : metadata.operations?.includes(STORE_WRITE) ? Math.max(keepSuccessDays, keepStoreDays) : keepSuccessDays, "keptFor");
|
|
385
|
-
let removed = 0;
|
|
386
|
-
for (const date of days(runsDir)) {
|
|
387
|
-
if (date >= cutoff) {
|
|
388
|
-
if (date < storeCutoff)
|
|
389
|
-
dropSuccesses(join(runsDir, date), STORE_RUNS_DROPPED, (metadata) => keptFor(metadata) <= keepStoreDays);
|
|
390
|
-
if (date < successCutoff)
|
|
391
|
-
dropSuccesses(join(runsDir, date), SUCCESSES_DROPPED, (metadata) => keptFor(metadata) <= keepSuccessDays);
|
|
392
|
-
continue;
|
|
393
|
-
}
|
|
394
|
-
try {
|
|
395
|
-
rmSync(join(runsDir, date), { recursive: true, force: true });
|
|
396
|
-
removed += 1;
|
|
397
|
-
} catch {
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
if (maxBytes !== void 0)
|
|
401
|
-
removed += fitSize(runsDir, maxBytes, now);
|
|
402
|
-
return removed;
|
|
403
|
-
}, "pruneRuns");
|
|
404
|
-
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
405
|
-
var STORE_WRITE = "store.write";
|
|
406
|
-
var SUCCESSES_DROPPED = ".successes-dropped";
|
|
407
|
-
var STORE_RUNS_DROPPED = ".store-runs-dropped";
|
|
408
|
-
var SIZE_CHECKED = ".size-checked";
|
|
409
|
-
var dropSuccesses = /* @__PURE__ */ __name((dayDir, marker = SUCCESSES_DROPPED, drops = () => true) => {
|
|
410
|
-
const done = join(dayDir, marker);
|
|
411
|
-
try {
|
|
412
|
-
statSync(done);
|
|
413
|
-
return;
|
|
414
|
-
} catch {
|
|
415
|
-
}
|
|
416
|
-
const dropped2 = /* @__PURE__ */ __name((metadata) => metadata?.status === "success" && drops(metadata), "dropped");
|
|
417
|
-
try {
|
|
418
|
-
const kept = [];
|
|
419
|
-
for (const [id2, metadata] of indexedRuns(dayDir)) {
|
|
420
|
-
if (dropped2(metadata))
|
|
421
|
-
rmSync(join(dayDir, id2), { recursive: true, force: true });
|
|
422
|
-
else
|
|
423
|
-
kept.push(JSON.stringify(runFileOf(metadata)));
|
|
424
|
-
}
|
|
425
|
-
for (const entry of safeReaddir(dayDir)) {
|
|
426
|
-
if (entry === INDEX || entry.startsWith("."))
|
|
427
|
-
continue;
|
|
428
|
-
if (dropped2(readRun(join(dayDir, entry))))
|
|
429
|
-
rmSync(join(dayDir, entry), { recursive: true, force: true });
|
|
430
|
-
}
|
|
431
|
-
writeSecurely(join(dayDir, INDEX), kept.map((line) => `${line}
|
|
432
|
-
`).join(""), 384);
|
|
433
|
-
writeFileSync(done, "", { mode: 384 });
|
|
434
|
-
} catch {
|
|
435
|
-
}
|
|
436
|
-
}, "dropSuccesses");
|
|
437
|
-
var sizeOf = /* @__PURE__ */ __name((path) => {
|
|
438
|
-
let total = 0;
|
|
439
|
-
for (const entry of safeReaddir(path)) {
|
|
440
|
-
const full = join(path, entry);
|
|
441
|
-
try {
|
|
442
|
-
const stat = statSync(full);
|
|
443
|
-
total += stat.isDirectory() ? sizeOf(full) : stat.size;
|
|
444
|
-
} catch {
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
return total;
|
|
448
|
-
}, "sizeOf");
|
|
449
|
-
var fitSize = /* @__PURE__ */ __name((runsDir, maxBytes, now) => {
|
|
450
|
-
const stamp = join(runsDir, SIZE_CHECKED);
|
|
451
|
-
const today = day(now);
|
|
452
|
-
try {
|
|
453
|
-
if (readFileSync(stamp, "utf8").trim() === today)
|
|
454
|
-
return 0;
|
|
455
|
-
} catch {
|
|
456
|
-
}
|
|
457
|
-
const dates = days(runsDir).sort();
|
|
458
|
-
const sizes = new Map(dates.map((date) => [date, sizeOf(join(runsDir, date))]));
|
|
459
|
-
let total = [...sizes.values()].reduce((sum, size) => sum + size, 0);
|
|
460
|
-
let removed = 0;
|
|
461
|
-
for (const date of dates) {
|
|
462
|
-
if (total <= maxBytes || date === today)
|
|
463
|
-
break;
|
|
464
|
-
dropSuccesses(join(runsDir, date));
|
|
465
|
-
const after = sizeOf(join(runsDir, date));
|
|
466
|
-
total -= (sizes.get(date) ?? 0) - after;
|
|
467
|
-
sizes.set(date, after);
|
|
468
|
-
}
|
|
469
|
-
for (const date of dates) {
|
|
470
|
-
if (total <= maxBytes || date === today)
|
|
471
|
-
break;
|
|
472
|
-
try {
|
|
473
|
-
rmSync(join(runsDir, date), { recursive: true, force: true });
|
|
474
|
-
total -= sizes.get(date) ?? 0;
|
|
475
|
-
removed += 1;
|
|
476
|
-
} catch {
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
try {
|
|
480
|
-
mkdirSync(runsDir, { recursive: true, mode: 448 });
|
|
481
|
-
writeFileSync(stamp, today, { mode: 384 });
|
|
482
|
-
} catch {
|
|
483
|
-
}
|
|
484
|
-
return removed;
|
|
485
|
-
}, "fitSize");
|
|
486
|
-
var day = /* @__PURE__ */ __name((date) => date.toISOString().slice(0, 10), "day");
|
|
487
|
-
var days = /* @__PURE__ */ __name((runsDir) => safeReaddir(runsDir).filter((entry) => /^\d{4}-\d{2}-\d{2}$/.test(entry)), "days");
|
|
488
|
-
var readRun = /* @__PURE__ */ __name((dir) => {
|
|
489
|
-
try {
|
|
490
|
-
return metadataOf(JSON.parse(readFileSync(join(dir, "run.json"), "utf8")));
|
|
491
|
-
} catch {
|
|
492
|
-
return void 0;
|
|
493
|
-
}
|
|
494
|
-
}, "readRun");
|
|
495
|
-
var safeReaddir = /* @__PURE__ */ __name((dir) => {
|
|
496
|
-
try {
|
|
497
|
-
return readdirSync(dir);
|
|
498
|
-
} catch {
|
|
499
|
-
return [];
|
|
500
|
-
}
|
|
501
|
-
}, "safeReaddir");
|
|
502
|
-
var runFileOf = /* @__PURE__ */ __name(({ partial, ...metadata }) => ({
|
|
503
|
-
...logAttributes(metadata),
|
|
504
|
-
...partial ? { partial: { ...logAttributes(partial), failures: partial.failures.map((failure) => logAttributes(failure)) } } : {}
|
|
505
|
-
}), "runFileOf");
|
|
506
|
-
var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
507
|
-
const { partial, ...metadata } = fromLogAttributes(parsed);
|
|
508
|
-
if (partial === null || typeof partial !== "object")
|
|
509
|
-
return metadata;
|
|
510
|
-
const { failures, ...rest } = fromLogAttributes(partial);
|
|
511
|
-
return {
|
|
512
|
-
...metadata,
|
|
513
|
-
partial: {
|
|
514
|
-
...rest,
|
|
515
|
-
failures: Array.isArray(failures) ? failures.map((failure) => fromLogAttributes(failure)) : []
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
}, "metadataOf");
|
|
519
|
-
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
521
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
522
|
-
import { randomBytes } from "node:crypto";
|
|
523
|
-
var scopes = new AsyncLocalStorage();
|
|
524
|
-
var processScope;
|
|
525
|
-
var ownProcesses = new AsyncLocalStorage();
|
|
526
|
-
var asOwnProcess = /* @__PURE__ */ __name((body) => ownProcesses.run({}, body), "asOwnProcess");
|
|
527
|
-
var currentRun = /* @__PURE__ */ __name(() => {
|
|
528
|
-
const scope = scopes.getStore();
|
|
529
|
-
if (scope)
|
|
530
|
-
return scope;
|
|
531
|
-
const own = ownProcesses.getStore();
|
|
532
|
-
const fresh = /* @__PURE__ */ __name(() => ({
|
|
533
|
-
runId: newRunId(/* @__PURE__ */ new Date(), "process"),
|
|
534
|
-
command: "",
|
|
535
|
-
startedAt: Date.now(),
|
|
536
|
-
...traceOf(process.env)
|
|
537
|
-
}), "fresh");
|
|
538
|
-
if (own) {
|
|
539
|
-
own.scope ??= fresh();
|
|
540
|
-
return own.scope;
|
|
541
|
-
}
|
|
542
|
-
processScope ??= fresh();
|
|
543
|
-
return processScope;
|
|
544
|
-
}, "currentRun");
|
|
545
|
-
var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
|
|
546
|
-
var runEvent = /* @__PURE__ */ __name((event) => scopes.getStore()?.events?.(event), "runEvent");
|
|
547
|
-
var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
|
|
548
|
-
var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
|
|
549
|
-
const own = ownProcesses.getStore();
|
|
550
|
-
if (own)
|
|
551
|
-
own.scope = scope;
|
|
552
|
-
else
|
|
553
|
-
processScope = scope;
|
|
554
|
-
}, "useAsProcessRun");
|
|
555
|
-
var processRun = /* @__PURE__ */ __name(() => {
|
|
556
|
-
const own = ownProcesses.getStore();
|
|
557
|
-
return own ? own.scope : processScope;
|
|
558
|
-
}, "processRun");
|
|
559
|
-
var enclosingTraceId = /* @__PURE__ */ __name(() => scopes.getStore()?.traceId, "enclosingTraceId");
|
|
560
|
-
var traceOf = /* @__PURE__ */ __name((env) => {
|
|
561
|
-
const traceId = traceIdOf(env.TRACEPARENT);
|
|
562
|
-
return traceId === void 0 ? {} : { traceId };
|
|
563
|
-
}, "traceOf");
|
|
564
|
-
var childTrace = /* @__PURE__ */ __name(() => {
|
|
565
|
-
const hex = /* @__PURE__ */ __name((bytes) => randomBytes(bytes).toString("hex"), "hex");
|
|
566
|
-
const traceId = hex(16);
|
|
567
|
-
return { traceId, traceparent: `00-${traceId}-${hex(8)}-01` };
|
|
568
|
-
}, "childTrace");
|
|
569
|
-
var attempts = new AsyncLocalStorage();
|
|
570
|
-
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
571
|
-
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
572
|
-
|
|
573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
574
|
-
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
575
|
-
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
576
|
-
var CLOSED_STATES = ["done", "dismissed"];
|
|
577
|
-
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
578
|
-
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
579
|
-
var isClosedState = /* @__PURE__ */ __name((state) => CLOSED_STATES.includes(state), "isClosedState");
|
|
580
|
-
function closeTask(task, state, by, at, reason) {
|
|
581
|
-
if (isClosedState(task.state))
|
|
582
|
-
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
583
|
-
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
584
|
-
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
585
|
-
}
|
|
586
|
-
__name(closeTask, "closeTask");
|
|
587
|
-
|
|
588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
589
|
-
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
590
|
-
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
591
|
-
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
592
|
-
var priorityLabel = /* @__PURE__ */ __name((score) => score === null ? null : PRIORITY_LABELS[Math.min(3, Math.max(0, Math.floor(score * 4)))], "priorityLabel");
|
|
593
|
-
var priorityBand = /* @__PURE__ */ __name((label) => {
|
|
594
|
-
const at = PRIORITY_LABELS.indexOf(label);
|
|
595
|
-
return { from: at / 4, to: (at + 1) / 4 };
|
|
596
|
-
}, "priorityBand");
|
|
597
|
-
var legacyPriority = /* @__PURE__ */ __name((score) => score === null ? null : score < 0.125 ? 4 : 3 - PRIORITY_LABELS.indexOf(priorityLabel(score)), "legacyPriority");
|
|
598
|
-
var checkedScore = /* @__PURE__ */ __name((score) => {
|
|
599
|
-
if (!Number.isFinite(score) || score < 0 || score > 1)
|
|
600
|
-
throw new CliError("validation_error", "a priority score is 0 to 1");
|
|
601
|
-
return score;
|
|
602
|
-
}, "checkedScore");
|
|
603
|
-
var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
604
|
-
const word = value.trim().toLowerCase();
|
|
605
|
-
if (word === "none")
|
|
606
|
-
return null;
|
|
607
|
-
if (PRIORITY_LABELS.includes(word))
|
|
608
|
-
return MIDDLE[word];
|
|
609
|
-
if (/^[0-4]$/.test(word))
|
|
610
|
-
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
611
|
-
if (/^(0?\.\d+|[01]\.\d*)$/.test(word) && Number(word) <= 1)
|
|
612
|
-
return Number(word);
|
|
613
|
-
throw new CliError("validation_error", `a priority is ${PRIORITY_LABELS.join(", ")}, none, or a score from 0.0 to 1.0 with its decimal point; 0 (urgent) \u2026 4 (low) still work as critical, high, medium, low, low`);
|
|
614
|
-
}, "priorityOf");
|
|
615
|
-
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
616
|
-
|
|
617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
618
|
-
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
619
|
-
async function find(id2) {
|
|
620
|
-
const task = await store.get(id2);
|
|
621
|
-
if (!task)
|
|
622
|
-
throw new CliError("not_found", `no task ${id2}`);
|
|
623
|
-
return task;
|
|
624
|
-
}
|
|
625
|
-
__name(find, "find");
|
|
626
|
-
return {
|
|
627
|
-
/**
|
|
628
|
-
* A rule never makes a second task from a source it has seen, whatever that task's state, so a
|
|
629
|
-
* dismissed one stays dismissed — nor from a message attached or merged into a task. A person or an agent may
|
|
630
|
-
* add a task of another kind to it. A task a rule opens goes through the host's duplicate check.
|
|
631
|
-
*/
|
|
632
|
-
async add(input) {
|
|
633
|
-
const rule = input.origin === "rule";
|
|
634
|
-
const existing = await store.findBySource(input.account, input.source, rule ? { linked: true } : void 0);
|
|
635
|
-
const same = rule ? existing[0] : existing.find((task2) => task2.kind === input.kind);
|
|
636
|
-
if (same)
|
|
637
|
-
return { task: same, created: false };
|
|
638
|
-
const task = { ...input, id: newId(), state: "open", createdAt: now() };
|
|
639
|
-
await store.insert(task);
|
|
640
|
-
if (!rule || !store.reviewDuplicates)
|
|
641
|
-
return { task, created: true };
|
|
642
|
-
return { task, created: true, review: await store.reviewDuplicates(task.id) };
|
|
643
|
-
},
|
|
644
|
-
async close(id2, { as, by, reason }) {
|
|
645
|
-
const task = closeTask(await find(id2), as, by, now(), reason);
|
|
646
|
-
await store.update(task);
|
|
647
|
-
return task;
|
|
648
|
-
},
|
|
649
|
-
list: /* @__PURE__ */ __name((filter = {}) => store.list(filter), "list"),
|
|
650
|
-
async stats(filter = {}) {
|
|
651
|
-
const byGroup = /* @__PURE__ */ new Map();
|
|
652
|
-
for (const task of await store.list(filter))
|
|
653
|
-
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
654
|
-
return [...byGroup].map(([group, tasks]) => {
|
|
655
|
-
const open = tasks.filter((task) => !isClosedState(task.state));
|
|
656
|
-
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
657
|
-
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
658
|
-
return {
|
|
659
|
-
group,
|
|
660
|
-
open: open.length,
|
|
661
|
-
...oldestOpenAt ? { oldestOpenAt } : {},
|
|
662
|
-
...closeMs.length > 0 ? { medianCloseMs: median(closeMs) } : {}
|
|
663
|
-
};
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
__name(createTaskService, "createTaskService");
|
|
669
|
-
function median(values) {
|
|
670
|
-
const sorted = [...values].sort((a, b) => a - b);
|
|
671
|
-
const middle = Math.floor(sorted.length / 2);
|
|
672
|
-
const upper = sorted[middle] ?? 0;
|
|
673
|
-
return sorted.length % 2 === 1 ? upper : ((sorted[middle - 1] ?? 0) + upper) / 2;
|
|
674
|
-
}
|
|
675
|
-
__name(median, "median");
|
|
676
|
-
|
|
677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
678
|
-
function matches(task, filter) {
|
|
679
|
-
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);
|
|
680
|
-
}
|
|
681
|
-
__name(matches, "matches");
|
|
682
|
-
|
|
683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
684
|
-
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
685
|
-
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
686
|
-
var ERASED_TEXT = "[source erased]";
|
|
687
|
-
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
688
|
-
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
689
|
-
|
|
690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
691
|
-
var text = string();
|
|
692
|
-
var id = pipe(string(), minLength(1));
|
|
693
|
-
var time = isoTime;
|
|
694
|
-
var typedTime = pipe(string(), minLength(1), maxLength(64), description("an ISO 8601 date or time, in the computer's zone without one; or 30m, 2h, 7d ago"));
|
|
695
|
-
var count = pipe(number(), integer(), minValue(0));
|
|
696
|
-
var untrusted = optional(array(text));
|
|
697
|
-
var providerMetadata = optional(record(string(), unknown()));
|
|
698
|
-
var evidenceSource = strictObject({
|
|
699
|
-
ref: nullable(reference),
|
|
700
|
-
kind: text,
|
|
701
|
-
title: nullable(text),
|
|
702
|
-
sender: nullable(text),
|
|
703
|
-
at: nullable(time),
|
|
704
|
-
excerpt: nullable(text),
|
|
705
|
-
tool: nullable(text),
|
|
706
|
-
missing: boolean()
|
|
707
|
-
});
|
|
708
|
-
var sourceReview = nullable(strictObject({ id, cause: picklist(SOURCE_REVIEW_CAUSES) }));
|
|
709
|
-
var author = strictObject({
|
|
710
|
-
type: picklist(["person", "bot"]),
|
|
711
|
-
id,
|
|
712
|
-
name: nullable(text)
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
716
|
-
var organization = strictObject({
|
|
717
|
-
id,
|
|
718
|
-
ref: reference,
|
|
719
|
-
kind: picklist(["company", "team", "family", "community"]),
|
|
720
|
-
name: text,
|
|
721
|
-
scope: picklist(["personal", "work"]),
|
|
722
|
-
created_at: time
|
|
723
|
-
});
|
|
724
|
-
var project = strictObject({
|
|
725
|
-
id,
|
|
726
|
-
ref: reference,
|
|
727
|
-
key: text,
|
|
728
|
-
name: text,
|
|
729
|
-
kind: picklist(["project", "inbox"]),
|
|
730
|
-
type: picklist(["work", "client", "personal", "oss", "other"]),
|
|
731
|
-
organization_id: nullable(id),
|
|
732
|
-
scope: picklist(["personal", "work"]),
|
|
733
|
-
created_at: time
|
|
734
|
-
});
|
|
735
|
-
var reminder = strictObject({
|
|
736
|
-
id,
|
|
737
|
-
task: text,
|
|
738
|
-
due_at: time,
|
|
739
|
-
timezone: text,
|
|
740
|
-
state: picklist(["pending", "leased", "delivered", "cancelled"]),
|
|
741
|
-
revision: number(),
|
|
742
|
-
receipt: nullable(text)
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
746
|
-
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
747
|
-
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
748
|
-
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
749
|
-
var journalMarkPath = /* @__PURE__ */ __name((store) => `${store}.journal.json`, "journalMarkPath");
|
|
750
|
-
var inodeOf = /* @__PURE__ */ __name((store) => statSync2(store, { throwIfNoEntry: false })?.ino, "inodeOf");
|
|
751
|
-
var readJson = /* @__PURE__ */ __name((path) => {
|
|
752
|
-
try {
|
|
753
|
-
return JSON.parse(readFileSync2(path, "utf8"));
|
|
754
|
-
} catch (error) {
|
|
755
|
-
if (error.code === "ENOENT")
|
|
756
|
-
return null;
|
|
757
|
-
throw error;
|
|
758
|
-
}
|
|
759
|
-
}, "readJson");
|
|
760
|
-
var ownerStoreInTests = /* @__PURE__ */ __name((store) => {
|
|
761
|
-
try {
|
|
762
|
-
refuseOwnerStoreInTests(store);
|
|
763
|
-
return false;
|
|
764
|
-
} catch {
|
|
765
|
-
return true;
|
|
766
|
-
}
|
|
767
|
-
}, "ownerStoreInTests");
|
|
768
|
-
var sqliteFailure = /* @__PURE__ */ __name((error) => isCliFailure(error) && error.details?.reason === "store.damaged" ? error.cause : error, "sqliteFailure");
|
|
769
|
-
var markStoreDamaged = /* @__PURE__ */ __name((error, { store, command, version, runId, now = Date.now }) => {
|
|
770
|
-
const failure = sqliteFailure(error);
|
|
771
|
-
if (!isStoreDamage(failure) || ownerStoreInTests(store))
|
|
772
|
-
return false;
|
|
773
|
-
const inode = inodeOf(store);
|
|
774
|
-
if (inode === void 0)
|
|
775
|
-
return false;
|
|
776
|
-
const mark = {
|
|
777
|
-
at: new Date(now()).toISOString(),
|
|
778
|
-
command,
|
|
779
|
-
...version ? { cli_version: version } : {},
|
|
780
|
-
...runId ? { run_id: runId } : {},
|
|
781
|
-
error: failure.message.slice(0, 500),
|
|
782
|
-
inode
|
|
783
|
-
};
|
|
784
|
-
try {
|
|
785
|
-
writeFileSync2(damageMarkPath(store), `${JSON.stringify(mark, null, 2)}
|
|
786
|
-
`, { flag: "wx", mode: 384 });
|
|
787
|
-
return true;
|
|
788
|
-
} catch {
|
|
789
|
-
return false;
|
|
790
|
-
}
|
|
791
|
-
}, "markStoreDamaged");
|
|
792
|
-
var readDamageMark = /* @__PURE__ */ __name((store) => {
|
|
793
|
-
const path = damageMarkPath(store);
|
|
794
|
-
let mark;
|
|
795
|
-
try {
|
|
796
|
-
mark = readJson(path);
|
|
797
|
-
} catch {
|
|
798
|
-
return { at: "unknown", command: "unknown", error: `${path} cannot be read`, inode: inodeOf(store) ?? 0 };
|
|
799
|
-
}
|
|
800
|
-
if (mark === null)
|
|
801
|
-
return null;
|
|
802
|
-
if (mark.inode !== inodeOf(store)) {
|
|
803
|
-
clearDamageMark(store);
|
|
804
|
-
return null;
|
|
805
|
-
}
|
|
806
|
-
return mark;
|
|
807
|
-
}, "readDamageMark");
|
|
808
|
-
var clearDamageMark = /* @__PURE__ */ __name((store) => rmSync2(damageMarkPath(store), { force: true }), "clearDamageMark");
|
|
809
|
-
var refuseDamagedStore = /* @__PURE__ */ __name((store, cli) => {
|
|
810
|
-
const mark = readDamageMark(store);
|
|
811
|
-
if (!mark)
|
|
812
|
-
return;
|
|
813
|
-
throw new CliError("configuration_error", `the store was found damaged at ${mark.at} by \`${mark.command}\` (${mark.error}), so nothing writes to it until it is recovered; \`${cli ?? "<cli>"} store recover\` says what is damaged and what to do`, { reason: "store.damaged" });
|
|
814
|
-
}, "refuseDamagedStore");
|
|
815
|
-
var markJournalLost = /* @__PURE__ */ __name((store, { seen, command, now = Date.now }) => {
|
|
816
|
-
if (ownerStoreInTests(store))
|
|
817
|
-
return;
|
|
818
|
-
const mark = { at: new Date(now()).toISOString(), command, seen };
|
|
819
|
-
try {
|
|
820
|
-
writeFileSync2(journalMarkPath(store), `${JSON.stringify(mark, null, 2)}
|
|
821
|
-
`, { flag: "wx", mode: 384 });
|
|
822
|
-
} catch {
|
|
823
|
-
}
|
|
824
|
-
}, "markJournalLost");
|
|
825
|
-
var readJournalMark = /* @__PURE__ */ __name((store) => {
|
|
826
|
-
try {
|
|
827
|
-
return readJson(journalMarkPath(store));
|
|
828
|
-
} catch {
|
|
829
|
-
return null;
|
|
830
|
-
}
|
|
831
|
-
}, "readJournalMark");
|
|
832
|
-
var readHealthMark = /* @__PURE__ */ __name((store) => {
|
|
833
|
-
try {
|
|
834
|
-
return readJson(healthMarkPath(store));
|
|
835
|
-
} catch {
|
|
836
|
-
return null;
|
|
837
|
-
}
|
|
838
|
-
}, "readHealthMark");
|
|
839
|
-
var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, schema, now = Date.now }) => {
|
|
840
|
-
const previous = readHealthMark(store);
|
|
841
|
-
if (ownerStoreInTests(store))
|
|
842
|
-
return { previous, cleared: null };
|
|
843
|
-
const checkedAt = new Date(now()).toISOString();
|
|
844
|
-
const mark = {
|
|
845
|
-
checked_at: checkedAt,
|
|
846
|
-
ok: health.ok,
|
|
847
|
-
problems: health.problems ?? 0,
|
|
848
|
-
schema,
|
|
849
|
-
cli,
|
|
850
|
-
...version ? { cli_version: version } : {},
|
|
851
|
-
last_ok_at: health.ok ? checkedAt : previous?.last_ok_at ?? null
|
|
852
|
-
};
|
|
853
|
-
const cleared = health.ok ? readDamageMark(store) : null;
|
|
854
|
-
try {
|
|
855
|
-
writeFileSync2(healthMarkPath(store), `${JSON.stringify(mark, null, 2)}
|
|
856
|
-
`, { mode: 384 });
|
|
857
|
-
} catch {
|
|
858
|
-
}
|
|
859
|
-
if (cleared)
|
|
860
|
-
clearDamageMark(store);
|
|
861
|
-
if (health.ok)
|
|
862
|
-
rmSync2(journalMarkPath(store), { force: true });
|
|
863
|
-
return { previous, cleared };
|
|
864
|
-
}, "recordDeepCheck");
|
|
865
|
-
|
|
866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
867
|
-
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
868
|
-
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
869
|
-
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
870
|
-
var MEMORY_SCOPES = ["personal", "work"];
|
|
871
|
-
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
872
|
-
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
873
|
-
|
|
874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
875
|
-
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
876
|
-
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
877
|
-
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;
|
|
878
|
-
return {
|
|
879
|
-
...typeof reporter === "string" ? { account: reporter } : {},
|
|
880
|
-
...typeof metadata.derived === "string" ? { derived: metadata.derived } : {}
|
|
881
|
-
};
|
|
882
|
-
}, "sourceOf");
|
|
883
|
-
|
|
884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
885
|
-
var LINK_KINDS = [
|
|
886
|
-
"links-to",
|
|
887
|
-
"blocked-by",
|
|
888
|
-
"follow-up-of",
|
|
889
|
-
"about",
|
|
890
|
-
"member-of",
|
|
891
|
-
"labelled",
|
|
892
|
-
"answered-by",
|
|
893
|
-
"evidence",
|
|
894
|
-
"created-from",
|
|
895
|
-
"duplicate-of",
|
|
896
|
-
"related-to",
|
|
897
|
-
"reports-to",
|
|
898
|
-
"customer-of",
|
|
899
|
-
"partner-of",
|
|
900
|
-
"assigned-to",
|
|
901
|
-
"attached"
|
|
902
|
-
];
|
|
903
|
-
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
904
|
-
var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
905
|
-
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
906
|
-
var COUNTERPART_ROLE = "counterpart";
|
|
907
|
-
|
|
908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
909
|
-
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
910
|
-
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");
|
|
911
|
-
var fail = /* @__PURE__ */ __name((message) => {
|
|
912
|
-
throw new CliError("validation_error", message);
|
|
913
|
-
}, "fail");
|
|
914
|
-
var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
915
|
-
const sources = [...providers2, "personal", "bots", "all"];
|
|
916
|
-
const source = value.toLowerCase();
|
|
917
|
-
if (sources.includes(source))
|
|
918
|
-
return source;
|
|
919
|
-
if (source === "mail")
|
|
920
|
-
return "email";
|
|
921
|
-
if (source === "messages")
|
|
922
|
-
return source;
|
|
923
|
-
if (isKind(source))
|
|
924
|
-
fail(`${name}${source} names ${source}, which a message search does not read \u2014 search ${source === "meetings" || source === "events" ? `all --source ${source}` : "notes"} does`);
|
|
925
|
-
const named = providerNamed(source);
|
|
926
|
-
if (named && providers2.includes(named.name))
|
|
927
|
-
return named.name;
|
|
928
|
-
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
929
|
-
}, "sourceOf");
|
|
930
|
-
|
|
931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
932
|
-
var ACCOUNT_GROUPS = "accountGroups";
|
|
933
|
-
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
934
|
-
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
935
|
-
var fail2 = /* @__PURE__ */ __name((message) => {
|
|
936
|
-
throw new CliError("validation_error", message);
|
|
937
|
-
}, "fail");
|
|
938
|
-
var isAccountList = /* @__PURE__ */ __name((value) => value.includes(",") || value.includes(":"), "isAccountList");
|
|
939
|
-
var itemsOf = /* @__PURE__ */ __name((value) => {
|
|
940
|
-
const items = value.split(",").map((item) => item.trim());
|
|
941
|
-
if (items.some((item) => item === ""))
|
|
942
|
-
fail2(`"${value}" has an empty entry \u2014 separate accounts with one comma`);
|
|
943
|
-
return items;
|
|
944
|
-
}, "itemsOf");
|
|
945
|
-
var isGroupName = /* @__PURE__ */ __name((name) => GROUP_NAME.test(name), "isGroupName");
|
|
946
|
-
var groupName = /* @__PURE__ */ __name((name) => isGroupName(name) ? name : fail2(`a group name is letters, digits, - and _ \u2014 not "${name}"`), "groupName");
|
|
947
|
-
var groupMembers = /* @__PURE__ */ __name((value) => itemsOf(value).map((item) => item.toLowerCase().startsWith("group:") ? fail2(`a group lists accounts, not other groups \u2014 "${item}"`) : item.includes(":") && item.split(":")[1] === "" ? fail2(`"${item}" names no account after the colon`) : item), "groupMembers");
|
|
948
|
-
var describe = /* @__PURE__ */ __name((accounts) => accounts.map(({ provider, account, name }) => `${provider}:${account}${name ? ` (${name})` : ""}`).join(", "), "describe");
|
|
949
|
-
var listedHolds = /* @__PURE__ */ __name((account, kind) => (account.kinds ?? (account.kind === void 0 ? [] : [account.kind])).includes(kind), "listedHolds");
|
|
950
|
-
var kindHere = /* @__PURE__ */ __name((provider, running) => provider === running.provider ? kindOf(provider) : kindIn(provider), "kindHere");
|
|
951
|
-
var listedKinds = /* @__PURE__ */ __name((provider) => kindsIn(provider).filter((kind) => kind !== "documents" || !isDocumentAccountProvider(provider)), "listedKinds");
|
|
952
|
-
var kindsOfHere = /* @__PURE__ */ __name((provider, running) => {
|
|
953
|
-
const kinds = listedKinds(provider);
|
|
954
|
-
return { kind: kindHere(provider, running), ...kinds.length > 1 ? { kinds } : {} };
|
|
955
|
-
}, "kindsOfHere");
|
|
956
|
-
var heldOf = /* @__PURE__ */ __name((stored, running) => [
|
|
957
|
-
...stored.filter(({ provider }) => kindIn(provider) !== "notes" && (!isDocumentAccountProvider(provider) || alsoListedByKey(provider))).map(({ provider, account, name }) => ({ provider, account, name, ...kindsOfHere(provider, running) })),
|
|
958
|
-
{ provider: "notes", account: INTERNAL_NOTES, name: null, kind: "notes" },
|
|
959
|
-
...stored.filter(({ provider }) => isFolderProvider(provider)).map(({ id: id2, name, provider, account }) => ({
|
|
960
|
-
provider: "notes",
|
|
961
|
-
account: String(id2),
|
|
962
|
-
name,
|
|
963
|
-
kind: "notes",
|
|
964
|
-
stored: { provider, account }
|
|
965
|
-
})),
|
|
966
|
-
...stored.filter(({ provider }) => isDocumentAccountProvider(provider) || provider === ADDED_PROVIDER).map(({ id: id2, provider, account, name }) => ({
|
|
967
|
-
provider: "notes",
|
|
968
|
-
account: String(id2),
|
|
969
|
-
name,
|
|
970
|
-
kind: "notes",
|
|
971
|
-
stored: { provider, account }
|
|
972
|
-
}))
|
|
973
|
-
], "heldOf");
|
|
974
|
-
var storedAs = /* @__PURE__ */ __name((held, key) => held.filter(({ stored }) => stored?.provider === key.provider && (key.account === "" || stored.account === key.account)), "storedAs");
|
|
975
|
-
var registry = /* @__PURE__ */ __name(() => providers().map(({ name, aliases }) => aliases.length ? `${name} (${aliases.join(", ")})` : name).join(", "), "registry");
|
|
976
|
-
var providerOf = /* @__PURE__ */ __name((prefix, held, { running, profiles }) => {
|
|
977
|
-
const wanted = prefix.toLowerCase();
|
|
978
|
-
if (wanted === running.command?.toLowerCase())
|
|
979
|
-
return running.provider;
|
|
980
|
-
const providers2 = [...new Set(held.map(({ provider }) => provider))];
|
|
981
|
-
if (providers2.includes(wanted) || isDocumentAccountProvider(wanted))
|
|
982
|
-
return wanted;
|
|
983
|
-
const named = providerNamed(wanted);
|
|
984
|
-
if (named)
|
|
985
|
-
return named.name;
|
|
986
|
-
const recorded = Object.values(profiles[wanted] ?? {})[0];
|
|
987
|
-
if (recorded)
|
|
988
|
-
return recorded.provider;
|
|
989
|
-
return fail2(`${prefix} is not a provider \u2014 they are ${registry()}; the store holds ${providers2.join(", ")}`);
|
|
990
|
-
}, "providerOf");
|
|
991
|
-
var profilesOf = /* @__PURE__ */ __name((provider, profiles) => Object.values(profiles).flatMap((named) => Object.entries(named).filter(([, key]) => key.provider === provider)), "profilesOf");
|
|
992
|
-
var accountOf = /* @__PURE__ */ __name((prefix, ref, held, context) => {
|
|
993
|
-
const provider = providerOf(prefix, held, context);
|
|
994
|
-
if (isDocumentAccountProvider(provider) && !alsoListedByKey(provider) && !context.profiles[prefix.toLowerCase()]?.[ref]) {
|
|
995
|
-
const stored = storedAs(held, { provider, account: ref })[0];
|
|
996
|
-
if (stored)
|
|
997
|
-
return stored;
|
|
998
|
-
}
|
|
999
|
-
const folder = isFolderProvider(provider);
|
|
1000
|
-
const ofProvider = folder ? storedAs(held, { provider, account: "" }) : held.filter((one) => one.provider === provider);
|
|
1001
|
-
const byId = ofProvider.find(({ account, stored }) => account === ref || account === ref.toLowerCase() || folder && stored?.account === ref.toUpperCase());
|
|
1002
|
-
if (byId)
|
|
1003
|
-
return byId;
|
|
1004
|
-
const keyed = /* @__PURE__ */ __name((key) => ofProvider.find(({ account }) => account === key.account) ?? {
|
|
1005
|
-
...key,
|
|
1006
|
-
name: null,
|
|
1007
|
-
...kindsOfHere(key.provider, context.running)
|
|
1008
|
-
}, "keyed");
|
|
1009
|
-
const recorded = context.profiles[prefix.toLowerCase()]?.[ref];
|
|
1010
|
-
if (recorded && isFolderProvider(recorded.provider)) {
|
|
1011
|
-
const folder2 = held.find((one) => one.provider === "notes" && one.name === recorded.account);
|
|
1012
|
-
if (folder2)
|
|
1013
|
-
return folder2;
|
|
1014
|
-
return fail2(`no stored folder for ${prefix}:${ref}; sync that profile first`);
|
|
1015
|
-
}
|
|
1016
|
-
if (recorded && isDocumentAccountProvider(recorded.provider)) {
|
|
1017
|
-
const account = storedAs(held, recorded)[0];
|
|
1018
|
-
if (account)
|
|
1019
|
-
return account;
|
|
1020
|
-
return fail2(`no stored documents for ${prefix}:${ref}; sync that profile first`);
|
|
1021
|
-
}
|
|
1022
|
-
if (recorded)
|
|
1023
|
-
return keyed(recorded);
|
|
1024
|
-
const byProfile = [
|
|
1025
|
-
...new Map(profilesOf(provider, context.profiles).filter(([name]) => name === ref).map(([, key]) => [key.account, key])).values()
|
|
1026
|
-
];
|
|
1027
|
-
if (byProfile.length === 1)
|
|
1028
|
-
return keyed(byProfile[0]);
|
|
1029
|
-
const byName = ofProvider.filter(({ name }) => name?.toLowerCase() === ref.toLowerCase());
|
|
1030
|
-
if (byName.length === 1)
|
|
1031
|
-
return byName[0];
|
|
1032
|
-
if (byName.length > 1 || byProfile.length > 1)
|
|
1033
|
-
fail2(`${provider}:${ref} names more than one account \u2014 use the id: ${describe(ofProvider)}`);
|
|
1034
|
-
const names = profilesOf(provider, context.profiles).map(([name]) => name);
|
|
1035
|
-
return fail2(`no ${provider} account "${ref}" \u2014 the store holds ${describe(ofProvider) || "none"}` + (names.length ? `; profiles: ${[...new Set(names)].join(", ")}` : ""));
|
|
1036
|
-
}, "accountOf");
|
|
1037
|
-
var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
|
|
1038
|
-
const wanted = word.toLowerCase();
|
|
1039
|
-
if (wanted === "all")
|
|
1040
|
-
return [...held];
|
|
1041
|
-
if (wanted === "personal" || wanted === "bots")
|
|
1042
|
-
return held.filter((one) => listedHolds(one, "messages") && isBotProvider(one.provider) === (wanted === "bots"));
|
|
1043
|
-
if (wanted === "documents")
|
|
1044
|
-
return held.filter((one) => listedHolds(one, "documents") || isDocumentAccount(one));
|
|
1045
|
-
if (isKind(wanted))
|
|
1046
|
-
return held.filter((one) => listedHolds(one, wanted));
|
|
1047
|
-
const recorded = context.profiles[wanted];
|
|
1048
|
-
if (recorded && Object.values(recorded).every((key) => isFolderProvider(key.provider) || isDocumentAccountProvider(key.provider)))
|
|
1049
|
-
return Object.keys(recorded).map((profile) => accountOf(word, profile, held, context));
|
|
1050
|
-
const provider = providerOf(word, held, context);
|
|
1051
|
-
if (isDocumentAccountProvider(provider) || isFolderProvider(provider))
|
|
1052
|
-
return [...held.filter((one) => one.provider === provider), ...storedAs(held, { provider, account: "" })];
|
|
1053
|
-
return held.filter((one) => one.provider === provider);
|
|
1054
|
-
}, "accountsOfWord");
|
|
1055
|
-
var isDocumentAccount = /* @__PURE__ */ __name(({ stored }) => stored !== void 0 && isDocumentAccountProvider(stored.provider), "isDocumentAccount");
|
|
1056
|
-
var choices = /* @__PURE__ */ __name((held) => {
|
|
1057
|
-
const kinds = held.flatMap((one) => one.kinds ?? (one.kind ? [one.kind] : []));
|
|
1058
|
-
const messengers = held.filter((one) => listedHolds(one, "messages"));
|
|
1059
|
-
const providers2 = held.flatMap(({ stored, provider }) => stored?.provider === ADDED_PROVIDER ? [] : [stored?.provider ?? provider]);
|
|
1060
|
-
return [
|
|
1061
|
-
.../* @__PURE__ */ new Set([
|
|
1062
|
-
"all",
|
|
1063
|
-
...messengers.some((one) => !isBotProvider(one.provider)) ? ["personal"] : [],
|
|
1064
|
-
...messengers.some((one) => isBotProvider(one.provider)) ? ["bots"] : [],
|
|
1065
|
-
...kinds,
|
|
1066
|
-
...held.some(isDocumentAccount) ? ["documents"] : [],
|
|
1067
|
-
...providers2
|
|
1068
|
-
])
|
|
1069
|
-
].join(", ");
|
|
1070
|
-
}, "choices");
|
|
1071
|
-
var keyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "keyOf");
|
|
1072
|
-
var sourceOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "sourceOf");
|
|
1073
|
-
var sameAs = /* @__PURE__ */ __name((key) => (one) => one.provider === key.provider && one.account === key.account, "sameAs");
|
|
1074
|
-
var entriesOfList = /* @__PURE__ */ __name((value, context) => {
|
|
1075
|
-
const held = heldOf(context.held, context.running);
|
|
1076
|
-
const entries = [];
|
|
1077
|
-
const entry = /* @__PURE__ */ __name((item, group) => {
|
|
1078
|
-
const colon = item.indexOf(":");
|
|
1079
|
-
if (colon === -1) {
|
|
1080
|
-
try {
|
|
1081
|
-
const accounts = accountsOfWord(item, held, context);
|
|
1082
|
-
entries.push({ entry: item, accounts, ...accounts.length === 0 && !group ? { holds: choices(held) } : {} });
|
|
1083
|
-
} catch (error) {
|
|
1084
|
-
if (!group || !(error instanceof CliError))
|
|
1085
|
-
throw error;
|
|
1086
|
-
fail2(`"${item}" in group ${group}: ${error.message}`);
|
|
1087
|
-
}
|
|
1088
|
-
return;
|
|
1089
|
-
}
|
|
1090
|
-
const prefix = item.slice(0, colon);
|
|
1091
|
-
const ref = item.slice(colon + 1).trim();
|
|
1092
|
-
if (ref === "")
|
|
1093
|
-
fail2(`"${item}" names no account after the colon`);
|
|
1094
|
-
if (prefix.toLowerCase() === "group") {
|
|
1095
|
-
if (group)
|
|
1096
|
-
fail2(`group ${group} lists another group \u2014 a group lists accounts`);
|
|
1097
|
-
const members = context.groups[ref];
|
|
1098
|
-
if (!members) {
|
|
1099
|
-
const known = Object.keys(context.groups);
|
|
1100
|
-
fail2(`no account group "${ref}" \u2014 ${known.length ? `there are ${known.join(", ")}` : "none saved yet"}; \`config set ${ACCOUNT_GROUPS_SETTING}.${ref} <accounts>\` saves one`);
|
|
1101
|
-
}
|
|
1102
|
-
for (const member of members)
|
|
1103
|
-
entry(member, ref);
|
|
1104
|
-
return;
|
|
1105
|
-
}
|
|
1106
|
-
entries.push({ entry: item, accounts: [accountOf(prefix, ref, held, context)] });
|
|
1107
|
-
}, "entry");
|
|
1108
|
-
for (const item of itemsOf(value))
|
|
1109
|
-
entry(item);
|
|
1110
|
-
const { only } = context;
|
|
1111
|
-
return entries.map(({ entry: entry2, accounts, holds }) => ({
|
|
1112
|
-
entry: entry2,
|
|
1113
|
-
...holds === void 0 ? {} : { holds },
|
|
1114
|
-
accounts: accounts.filter((one) => only === void 0 || only.has(keyOf(one))).map(({ provider, account, kind, kinds }) => ({
|
|
1115
|
-
provider,
|
|
1116
|
-
account,
|
|
1117
|
-
kind,
|
|
1118
|
-
...kinds === void 0 ? {} : { kinds }
|
|
1119
|
-
}))
|
|
1120
|
-
}));
|
|
1121
|
-
}, "entriesOfList");
|
|
1122
|
-
var accountsOfList = /* @__PURE__ */ __name((value, context) => {
|
|
1123
|
-
const chosen = /* @__PURE__ */ new Map();
|
|
1124
|
-
for (const { accounts } of entriesOfList(value, context))
|
|
1125
|
-
for (const one of accounts)
|
|
1126
|
-
if (!chosen.has(keyOf(one)))
|
|
1127
|
-
chosen.set(keyOf(one), one);
|
|
1128
|
-
return [...chosen.values()];
|
|
1129
|
-
}, "accountsOfList");
|
|
1130
|
-
var READS = {
|
|
1131
|
-
messages: "messenger messages \u2014 search messages reads them",
|
|
1132
|
-
mail: "a mailbox \u2014 memo search mail reads it",
|
|
1133
|
-
notes: "notes \u2014 search notes reads them",
|
|
1134
|
-
documents: "documents \u2014 search notes reads them",
|
|
1135
|
-
meetings: "meetings \u2014 search all reads them",
|
|
1136
|
-
events: "calendar events \u2014 no search reads them yet",
|
|
1137
|
-
crm: "CRM deals and leads \u2014 search all reads them",
|
|
1138
|
-
tracker: "a tracker's issues, projects and comments \u2014 search all reads them"
|
|
1139
|
-
};
|
|
1140
|
-
var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) => READS[kind], alsoFits = () => false) => {
|
|
1141
|
-
const chosen = /* @__PURE__ */ new Map();
|
|
1142
|
-
const skipped = [];
|
|
1143
|
-
for (const { entry, accounts } of entries) {
|
|
1144
|
-
const fits = accounts.filter((one) => kinds.some((kind) => listedHolds(one, kind)) || alsoFits(one));
|
|
1145
|
-
for (const { provider, account } of fits)
|
|
1146
|
-
if (!chosen.has(keyOf({ provider, account })))
|
|
1147
|
-
chosen.set(keyOf({ provider, account }), { provider, account });
|
|
1148
|
-
const known = accounts.filter(({ kind }) => kind !== void 0);
|
|
1149
|
-
const unknown2 = accounts.filter((one) => one.kind === void 0 && !alsoFits(one));
|
|
1150
|
-
if (known.length)
|
|
1151
|
-
for (const { provider, account } of unknown2)
|
|
1152
|
-
skipped.push({ source: `${provider}:${account}`, code: "not_found", reason: UNKNOWN_PROVIDER });
|
|
1153
|
-
if (fits.length)
|
|
1154
|
-
continue;
|
|
1155
|
-
const other = known[0];
|
|
1156
|
-
skipped.push(other?.kind ? { source: entry, code: "validation_error", reason: reasonOf(other.kind) } : unknown2.length ? { source: entry, code: "not_found", reason: UNKNOWN_PROVIDER } : { source: entry, code: "not_found", reason: "no account in the store" });
|
|
1157
|
-
}
|
|
1158
|
-
if (chosen.size === 0) {
|
|
1159
|
-
const words = entries.length === 1 ? entries[0]?.holds : void 0;
|
|
1160
|
-
fail2(`--source names nothing ${what} reads: ${skipped.map(({ source, reason }) => `${source} (${reason})`).join(", ")}` + (words === void 0 ? "" : ` \u2014 the store holds ${words}`));
|
|
1161
|
-
}
|
|
1162
|
-
return { accounts: [...chosen.values()], skipped };
|
|
1163
|
-
}, "fitting");
|
|
1164
|
-
|
|
1165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1166
|
-
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1167
|
-
|
|
1168
|
-
export {
|
|
1169
|
-
logAttributes,
|
|
1170
|
-
fromLogAttributes,
|
|
1171
|
-
snakeLogger,
|
|
1172
|
-
LOG_ATTRIBUTES,
|
|
1173
|
-
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
1174
|
-
KEEP_STORE_RUNS_FOR_DAYS,
|
|
1175
|
-
RUNS_SIZE_LIMIT_MB,
|
|
1176
|
-
runsDirFor,
|
|
1177
|
-
startRun,
|
|
1178
|
-
runtime,
|
|
1179
|
-
newRunId,
|
|
1180
|
-
listRuns,
|
|
1181
|
-
findRun,
|
|
1182
|
-
readEvents,
|
|
1183
|
-
asOwnProcess,
|
|
1184
|
-
currentRun,
|
|
1185
|
-
inRun,
|
|
1186
|
-
runEvent,
|
|
1187
|
-
typedCommand,
|
|
1188
|
-
useAsProcessRun,
|
|
1189
|
-
processRun,
|
|
1190
|
-
enclosingTraceId,
|
|
1191
|
-
traceOf,
|
|
1192
|
-
childTrace,
|
|
1193
|
-
withAttempt,
|
|
1194
|
-
currentAttempt,
|
|
1195
|
-
CATEGORIES,
|
|
1196
|
-
TASK_KINDS,
|
|
1197
|
-
TASK_STATES,
|
|
1198
|
-
CLOSED_STATES,
|
|
1199
|
-
TASK_ORIGINS,
|
|
1200
|
-
TASK_VERDICTS,
|
|
1201
|
-
isClosedState,
|
|
1202
|
-
PRIORITY_LABELS,
|
|
1203
|
-
priorityLabel,
|
|
1204
|
-
priorityBand,
|
|
1205
|
-
legacyPriority,
|
|
1206
|
-
checkedScore,
|
|
1207
|
-
priorityOf,
|
|
1208
|
-
priorityOption,
|
|
1209
|
-
createTaskService,
|
|
1210
|
-
matches,
|
|
1211
|
-
SOURCE_REVIEW_KIND,
|
|
1212
|
-
SOURCE_REVIEW_CAUSES,
|
|
1213
|
-
ERASED_TEXT,
|
|
1214
|
-
severity,
|
|
1215
|
-
graver,
|
|
1216
|
-
text,
|
|
1217
|
-
id,
|
|
1218
|
-
time,
|
|
1219
|
-
typedTime,
|
|
1220
|
-
count,
|
|
1221
|
-
untrusted,
|
|
1222
|
-
providerMetadata,
|
|
1223
|
-
evidenceSource,
|
|
1224
|
-
sourceReview,
|
|
1225
|
-
author,
|
|
1226
|
-
organization,
|
|
1227
|
-
project,
|
|
1228
|
-
reminder,
|
|
1229
|
-
damageMarkPath,
|
|
1230
|
-
healthMarkPath,
|
|
1231
|
-
journalMarkPath,
|
|
1232
|
-
markStoreDamaged,
|
|
1233
|
-
readDamageMark,
|
|
1234
|
-
clearDamageMark,
|
|
1235
|
-
refuseDamagedStore,
|
|
1236
|
-
markJournalLost,
|
|
1237
|
-
readJournalMark,
|
|
1238
|
-
readHealthMark,
|
|
1239
|
-
recordDeepCheck,
|
|
1240
|
-
isBotProvider,
|
|
1241
|
-
inSource,
|
|
1242
|
-
sourceOf2 as sourceOf,
|
|
1243
|
-
REPORTER_SQL,
|
|
1244
|
-
sourceOf as sourceOf2,
|
|
1245
|
-
LINK_KINDS,
|
|
1246
|
-
LINK_ORIGINS,
|
|
1247
|
-
LINK_SOURCES,
|
|
1248
|
-
linkKind,
|
|
1249
|
-
COUNTERPART_ROLE,
|
|
1250
|
-
FACT_STATUSES,
|
|
1251
|
-
MEMORY_KINDS,
|
|
1252
|
-
MEMORY_STATUSES,
|
|
1253
|
-
MEMORY_SCOPES,
|
|
1254
|
-
WORK_TASK_TYPES,
|
|
1255
|
-
TASK_TYPES,
|
|
1256
|
-
ACCOUNT_GROUPS,
|
|
1257
|
-
ACCOUNT_GROUPS_SETTING,
|
|
1258
|
-
isAccountList,
|
|
1259
|
-
isGroupName,
|
|
1260
|
-
groupName,
|
|
1261
|
-
groupMembers,
|
|
1262
|
-
listedHolds,
|
|
1263
|
-
keyOf,
|
|
1264
|
-
sourceOf3,
|
|
1265
|
-
sameAs,
|
|
1266
|
-
entriesOfList,
|
|
1267
|
-
accountsOfList,
|
|
1268
|
-
fitting
|
|
1269
|
-
};
|