@wirecat/tg-cli 0.117.0 → 0.118.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-VNQ72MBK.js → adapter-4YNP6VCO.js} +39 -39
- package/dist/bundle/{all-profiles-3W2UQTCK.js → all-profiles-MIQDYAGO.js} +6 -6
- package/dist/bundle/{anthropic-DFUW2KTG.js → anthropic-NTASPJYE.js} +3 -3
- package/dist/bundle/{app-server-5XJIMLHB.js → app-server-UJZBJ2SK.js} +36 -36
- package/dist/bundle/{bot-api-HRRBF3W6.js → bot-api-JZAD4L3N.js} +40 -40
- package/dist/bundle/{bot-history-GBH5XE4N.js → bot-history-OUDHH3NU.js} +12 -12
- package/dist/bundle/{bun-ZMOYGG6F.js → bun-EC4HDIRD.js} +2 -2
- package/dist/bundle/{bun-sqlite-6FZFMA7K.js → bun-sqlite-A4HJR6KO.js} +2 -2
- package/dist/bundle/{chunk-HORGORHK.js → chunk-2KQHUBTV.js} +10 -10
- package/dist/bundle/{chunk-6GFUL4OU.js → chunk-2NA5KVP6.js} +15 -12
- package/dist/bundle/{chunk-C6TUVV7E.js → chunk-4BV4UMBB.js} +470 -209
- package/dist/bundle/{chunk-EZTYJ43A.js → chunk-57LKX6N2.js} +1 -1
- package/dist/bundle/{chunk-4JDGN6OD.js → chunk-5IIU7X4S.js} +1 -1
- package/dist/bundle/{chunk-2XLKZL6K.js → chunk-5LDWBEWU.js} +42 -26
- package/dist/bundle/{chunk-MLHKQDUN.js → chunk-5QYU7B27.js} +268 -153
- package/dist/bundle/{chunk-AG6HWPQP.js → chunk-65XV5PPI.js} +2 -2
- package/dist/bundle/{chunk-RDSLSV4M.js → chunk-6AXUEJGL.js} +1 -1
- package/dist/bundle/{chunk-HWYSRB64.js → chunk-6RI4TEIC.js} +2 -2
- package/dist/bundle/{chunk-7Y3RUEVY.js → chunk-6ZMTEUVU.js} +4 -4
- package/dist/bundle/{chunk-56Q5JV3Z.js → chunk-76EKXFX2.js} +1 -1
- package/dist/bundle/{chunk-TFBHDIGY.js → chunk-BNEP5EOV.js} +17 -3
- package/dist/bundle/{chunk-V47NPSSV.js → chunk-CEY43D3A.js} +29 -27
- package/dist/bundle/{chunk-G7B5UIE7.js → chunk-DKFC5ZZ3.js} +37 -11
- package/dist/bundle/{chunk-UGPZCNYC.js → chunk-DSZJREEO.js} +353 -286
- package/dist/bundle/{chunk-L5WNE4WS.js → chunk-EPXVRJAX.js} +1 -1
- package/dist/bundle/{chunk-66FZBLRJ.js → chunk-EQJ6NLF5.js} +12 -12
- package/dist/bundle/{chunk-B2YPB5AE.js → chunk-FHMK6OK4.js} +8 -8
- package/dist/bundle/{chunk-3GRX7WP6.js → chunk-G3RT2EQI.js} +1 -1
- package/dist/bundle/{chunk-TG6ZYL4B.js → chunk-GI4MTNA2.js} +7 -7
- package/dist/bundle/{chunk-AUBRELCM.js → chunk-GIM37COQ.js} +2 -2
- package/dist/bundle/{chunk-SQXB5ZUZ.js → chunk-GLRRCKP6.js} +2 -2
- package/dist/bundle/{chunk-VMCQGZIA.js → chunk-GXCJ47SJ.js} +381 -292
- package/dist/bundle/{chunk-UYK5AXSW.js → chunk-H6S3C3MH.js} +2 -2
- package/dist/bundle/{chunk-VRDVXXXD.js → chunk-HJNRIK5X.js} +6 -6
- package/dist/bundle/{chunk-HZZGOLGP.js → chunk-I4TI5HDJ.js} +9 -9
- package/dist/bundle/{chunk-MP7M6FFU.js → chunk-JLJKGKU2.js} +5 -5
- package/dist/bundle/{chunk-F6KBVIJP.js → chunk-JPVFYMSQ.js} +21 -13
- package/dist/bundle/{chunk-Z4QKLHJW.js → chunk-JWPSVS6C.js} +8692 -3312
- package/dist/bundle/{chunk-ZPILMEFY.js → chunk-JZETEZHC.js} +7 -20
- package/dist/bundle/{chunk-EA2PGDER.js → chunk-KEDHX6XG.js} +2 -2
- package/dist/bundle/{chunk-PTIB7NEE.js → chunk-MBH7IKLT.js} +1 -1
- package/dist/bundle/{chunk-YIXXH74F.js → chunk-MZNOASAW.js} +1 -1
- package/dist/bundle/{chunk-GFHNQBD2.js → chunk-NKFTZVQU.js} +1 -1
- package/dist/bundle/{chunk-2452HCIV.js → chunk-NMT2VGEI.js} +2 -2
- package/dist/bundle/{chunk-KVTLT4V7.js → chunk-OTQDJUES.js} +5 -5
- package/dist/bundle/{chunk-Q7O4CQDO.js → chunk-PB252TT3.js} +1 -1
- package/dist/bundle/{chunk-V2T7NYNU.js → chunk-PO74BDER.js} +23 -21
- package/dist/bundle/{chunk-X3CD475M.js → chunk-PW3HFIJA.js} +203 -155
- package/dist/bundle/{chunk-6HRN7BW6.js → chunk-PWCQC56A.js} +1 -1
- package/dist/bundle/{chunk-3RJYLN5V.js → chunk-RG2E7ZQZ.js} +117 -14
- package/dist/bundle/{chunk-RDH2QBUE.js → chunk-TMTEWOQS.js} +1 -1
- package/dist/bundle/{chunk-7NBUT62O.js → chunk-TSTEZNSX.js} +1 -1
- package/dist/bundle/{chunk-XW5C4TI7.js → chunk-Y64SI2RO.js} +47 -1
- package/dist/bundle/{chunk-FEKXHILZ.js → chunk-YEOSV6JC.js} +1 -1
- package/dist/bundle/{chunk-EL6I4WTB.js → chunk-YPRUWRKE.js} +1 -1
- package/dist/bundle/{chunk-M7V5XRM6.js → chunk-ZMUC3UQO.js} +2 -2
- package/dist/bundle/{chunk-FAHHERJ7.js → chunk-ZXXTJF4Z.js} +4 -4
- package/dist/bundle/{command-contract-KMMHARMR.js → command-contract-7GZ6HAA6.js} +12 -12
- package/dist/bundle/{decode-YMSOY2AY.js → decode-NMNPLKNR.js} +2 -2
- package/dist/bundle/{echarts-7XS55TQY.js → echarts-S46LEIPS.js} +2 -2
- package/dist/bundle/{embed-QTOE7NN3.js → embed-I5ZYHGYC.js} +3 -3
- package/dist/bundle/{embedder-KBBRYSNH.js → embedder-LTJI67N2.js} +6 -6
- package/dist/bundle/{entry-HGEUYYMX.js → entry-O6BUPXF7.js} +4 -4
- package/dist/bundle/{first-run-CSGMEJXY.js → first-run-PMZNCDGD.js} +5 -5
- package/dist/bundle/{first-screen-K2PBNJNE.js → first-screen-BGML5DSO.js} +13 -13
- package/dist/bundle/{instructions-S6ZXCTFH.js → instructions-AUEGY3VO.js} +1 -1
- package/dist/bundle/{node-LCIUWXXG.js → node-XRA7RBCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-HL4WY4N2.js → node-sqlite-DEZO6LRS.js} +3 -3
- package/dist/bundle/{oauth-U4KIMDKG.js → oauth-DAVC7WCD.js} +4 -4
- package/dist/bundle/{open-EH7OS7M7.js → open-DE2YO4T7.js} +2 -2
- package/dist/bundle/{openai-W5TB3NA5.js → openai-5BKGAULH.js} +10 -10
- package/dist/bundle/{process-3CVLTCTA.js → process-4ZHPNUIQ.js} +1 -1
- package/dist/bundle/{program-LOIZTK2P.js → program-EGTKSNB4.js} +42 -42
- package/dist/bundle/{prompt-IDNH7N3W.js → prompt-HWCWHHPE.js} +2 -2
- package/dist/bundle/{recognize-G5EWYXIF.js → recognize-NG6RXNGF.js} +1 -1
- package/dist/bundle/{remote-4XTBZVZD.js → remote-ZKXIIGYH.js} +4 -4
- package/dist/bundle/{rerank-OWSTDLZN.js → rerank-TX5QFURV.js} +4 -4
- package/dist/bundle/{serve-YCPSEWP3.js → serve-XAS6DECW.js} +6 -6
- package/dist/bundle/{server-ODG4A2KK.js → server-CNPIWBYU.js} +28 -28
- package/dist/bundle/server-FRTKLHZF.js +60 -0
- package/dist/bundle/{state-OL2235G5.js → state-3HTUETTS.js} +3 -3
- package/dist/bundle/{store-5AACYNDM.js → store-B5VZWJHN.js} +17 -9
- package/dist/bundle/store-maintenance-command-VG3CLELA.js +50 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-KELKX6S3.js +0 -60
- package/dist/bundle/store-maintenance-command-3J7WZYVN.js +0 -50
|
@@ -2,30 +2,30 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
note
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-65XV5PPI.js";
|
|
6
6
|
import {
|
|
7
7
|
currentCaller,
|
|
8
8
|
endpointTemplate,
|
|
9
9
|
errorDetailOf,
|
|
10
10
|
framesOf,
|
|
11
|
-
isCliFailure,
|
|
12
11
|
keepsSuccess,
|
|
13
12
|
providerErrorKey,
|
|
14
13
|
renderEvent,
|
|
15
14
|
runContextOf
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JZETEZHC.js";
|
|
17
16
|
import {
|
|
18
17
|
permissionCeiling
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZMUC3UQO.js";
|
|
20
19
|
import {
|
|
21
20
|
envName,
|
|
22
21
|
readOnlyLockOf,
|
|
23
22
|
readOnlyRefusal
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PB252TT3.js";
|
|
25
24
|
import {
|
|
26
25
|
carries
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YPRUWRKE.js";
|
|
28
27
|
import {
|
|
28
|
+
DEAL_ROLES,
|
|
29
29
|
FACT_STATUSES,
|
|
30
30
|
FACT_TYPES,
|
|
31
31
|
FIELD_TYPES,
|
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
PRIORITY_LABELS,
|
|
43
43
|
QUERY_BACKENDS,
|
|
44
44
|
RELATION_KINDS,
|
|
45
|
+
STANDINGS,
|
|
45
46
|
TAG_TYPES,
|
|
46
47
|
TASK_KINDS,
|
|
47
48
|
TASK_ORIGINS,
|
|
@@ -55,6 +56,7 @@ import {
|
|
|
55
56
|
event,
|
|
56
57
|
evidenceSource,
|
|
57
58
|
id,
|
|
59
|
+
markStoreDamaged,
|
|
58
60
|
meeting,
|
|
59
61
|
meetingCounts,
|
|
60
62
|
meetingDetails,
|
|
@@ -75,17 +77,21 @@ import {
|
|
|
75
77
|
text,
|
|
76
78
|
time,
|
|
77
79
|
untrusted
|
|
78
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-4BV4UMBB.js";
|
|
81
|
+
import {
|
|
82
|
+
isCliFailure,
|
|
83
|
+
storeDamaged
|
|
84
|
+
} from "./chunk-Y64SI2RO.js";
|
|
79
85
|
import {
|
|
80
86
|
sharedConfigPath
|
|
81
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-6ZMTEUVU.js";
|
|
82
88
|
import {
|
|
83
89
|
filesPresent,
|
|
84
90
|
sharedModelsDirectory
|
|
85
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-JPVFYMSQ.js";
|
|
86
92
|
import {
|
|
87
93
|
storePath
|
|
88
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-G3RT2EQI.js";
|
|
89
95
|
import {
|
|
90
96
|
configFilePath,
|
|
91
97
|
createRecordLog,
|
|
@@ -3956,7 +3962,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3956
3962
|
}
|
|
3957
3963
|
}, "refuseJoinedPath");
|
|
3958
3964
|
|
|
3959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3960
3966
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3961
3967
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3962
3968
|
messageId: message2.id,
|
|
@@ -4062,7 +4068,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4062
4068
|
}, "guardedWrite");
|
|
4063
4069
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4064
4070
|
|
|
4065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4066
4072
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4067
4073
|
try {
|
|
4068
4074
|
return work();
|
|
@@ -4089,7 +4095,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4089
4095
|
return projectFields(value, fields);
|
|
4090
4096
|
}), "projectFields");
|
|
4091
4097
|
|
|
4092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4093
4099
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4094
4100
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4095
4101
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4272,7 +4278,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4272
4278
|
}
|
|
4273
4279
|
}, "withAbort");
|
|
4274
4280
|
|
|
4275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4276
4282
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4277
4283
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4278
4284
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4668,7 +4674,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4668
4674
|
}
|
|
4669
4675
|
}, "assertRetentionEvidenceRead");
|
|
4670
4676
|
|
|
4671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4672
4678
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4673
4679
|
import { join } from "node:path";
|
|
4674
4680
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -4757,7 +4763,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
4757
4763
|
return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
4758
4764
|
}, "registryProfiles");
|
|
4759
4765
|
|
|
4760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4761
4767
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
4762
4768
|
import { join as join2 } from "node:path";
|
|
4763
4769
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4779,7 +4785,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4779
4785
|
}, "profilesWithAccounts");
|
|
4780
4786
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4781
4787
|
|
|
4782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4783
4789
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4784
4790
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4785
4791
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4815,7 +4821,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4815
4821
|
return value;
|
|
4816
4822
|
}, "atDetail");
|
|
4817
4823
|
|
|
4818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/output.js
|
|
4819
4825
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4820
4826
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4821
4827
|
if (other)
|
|
@@ -4879,7 +4885,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4879
4885
|
}, "warn")
|
|
4880
4886
|
}), "silence");
|
|
4881
4887
|
|
|
4882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4883
4889
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4884
4890
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4885
4891
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4913,7 +4919,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4913
4919
|
cache: "cache.answered"
|
|
4914
4920
|
};
|
|
4915
4921
|
|
|
4916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4917
4923
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4918
4924
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4919
4925
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4926,13 +4932,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4926
4932
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4927
4933
|
}), "snakeLogger");
|
|
4928
4934
|
|
|
4929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4930
4936
|
import { randomUUID } from "node:crypto";
|
|
4931
4937
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync3, readFileSync as readFileSync3, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4932
4938
|
import { userInfo } from "node:os";
|
|
4933
4939
|
import { join as join3, sep } from "node:path";
|
|
4934
4940
|
|
|
4935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4936
4942
|
var diagnostic = {
|
|
4937
4943
|
event: true,
|
|
4938
4944
|
operation: true,
|
|
@@ -5002,7 +5008,7 @@ var LOG_ATTRIBUTES = [
|
|
|
5002
5008
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
5003
5009
|
].sort();
|
|
5004
5010
|
|
|
5005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
5006
5012
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
5007
5013
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
5008
5014
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5355,7 +5361,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5355
5361
|
};
|
|
5356
5362
|
}, "metadataOf");
|
|
5357
5363
|
|
|
5358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5359
5365
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5360
5366
|
import { randomBytes } from "node:crypto";
|
|
5361
5367
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5393,7 +5399,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5393
5399
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5394
5400
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5395
5401
|
|
|
5396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5397
5403
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5398
5404
|
const recording = startRecording(options);
|
|
5399
5405
|
try {
|
|
@@ -5484,7 +5490,14 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
5484
5490
|
...partial2 ? { partial: partial2 } : {}
|
|
5485
5491
|
});
|
|
5486
5492
|
}, "succeed"),
|
|
5487
|
-
fail: /* @__PURE__ */ __name(async (
|
|
5493
|
+
fail: /* @__PURE__ */ __name(async (thrown) => {
|
|
5494
|
+
const error = storeDamaged(thrown);
|
|
5495
|
+
markStoreDamaged(thrown, {
|
|
5496
|
+
store: storePath(options.env),
|
|
5497
|
+
command: `${options.app.command} ${options.command}`,
|
|
5498
|
+
version: options.app.version,
|
|
5499
|
+
runId
|
|
5500
|
+
});
|
|
5488
5501
|
const failed = run ?? (held ? keep(open({ startedAt })) : void 0);
|
|
5489
5502
|
if (failed) {
|
|
5490
5503
|
if (!isCliFailure(error))
|
|
@@ -5499,8 +5512,8 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
5499
5512
|
...run ? {} : { keptBecauseFailed: true }
|
|
5500
5513
|
});
|
|
5501
5514
|
}
|
|
5502
|
-
if (typeof
|
|
5503
|
-
settled.add(
|
|
5515
|
+
if (typeof thrown === "object" && thrown !== null)
|
|
5516
|
+
settled.add(thrown);
|
|
5504
5517
|
}, "fail")
|
|
5505
5518
|
};
|
|
5506
5519
|
}, "startRecording");
|
|
@@ -5578,7 +5591,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5578
5591
|
return void 0;
|
|
5579
5592
|
}, "partialOutcome");
|
|
5580
5593
|
|
|
5581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5582
5595
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5583
5596
|
if (ms2 === void 0)
|
|
5584
5597
|
return body();
|
|
@@ -5604,7 +5617,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5604
5617
|
}
|
|
5605
5618
|
}, "withDeadline");
|
|
5606
5619
|
|
|
5607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5608
5621
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5609
5622
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5610
5623
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5673,10 +5686,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5673
5686
|
return void 0;
|
|
5674
5687
|
}, "sampleCommand");
|
|
5675
5688
|
|
|
5676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5677
5690
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5678
5691
|
|
|
5679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5680
5693
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5681
5694
|
try {
|
|
5682
5695
|
const url2 = new URL(value);
|
|
@@ -5686,7 +5699,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5686
5699
|
}
|
|
5687
5700
|
}, "endpoint");
|
|
5688
5701
|
|
|
5689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5690
5703
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5691
5704
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5692
5705
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5755,7 +5768,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5755
5768
|
};
|
|
5756
5769
|
}, "modelTarget");
|
|
5757
5770
|
|
|
5758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5759
5772
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5760
5773
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5761
5774
|
var AI_FIELDS = {
|
|
@@ -5799,7 +5812,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5799
5812
|
};
|
|
5800
5813
|
}, "resolveAISettings");
|
|
5801
5814
|
|
|
5802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5803
5816
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5804
5817
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5805
5818
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5813,7 +5826,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5813
5826
|
return ms2;
|
|
5814
5827
|
}, "parseDuration");
|
|
5815
5828
|
|
|
5816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5817
5830
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5818
5831
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5819
5832
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5972,7 +5985,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5972
5985
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5973
5986
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5974
5987
|
|
|
5975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5976
5989
|
var HISTORY_MAX_DAYS = 1095;
|
|
5977
5990
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5978
5991
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -6019,10 +6032,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
6019
6032
|
return { batch: { ...batch, messages }, skipped };
|
|
6020
6033
|
}, "limitBatch");
|
|
6021
6034
|
|
|
6022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6023
6036
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
6024
6037
|
|
|
6025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
6026
6039
|
var REPAIR_WORDS = {
|
|
6027
6040
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
6028
6041
|
comment: "a comment, which JSON does not allow",
|
|
@@ -6263,7 +6276,7 @@ ${parts.join(",\n")}
|
|
|
6263
6276
|
${indent}${close}`;
|
|
6264
6277
|
}, "serialise");
|
|
6265
6278
|
|
|
6266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6267
6280
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6268
6281
|
var SECTIONS = ["personal", "bot"];
|
|
6269
6282
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6557,7 +6570,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6557
6570
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6558
6571
|
}, "readConfigFile");
|
|
6559
6572
|
|
|
6560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6561
6574
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6562
6575
|
import { dirname, join as join4 } from "node:path";
|
|
6563
6576
|
var DEFAULT_CONFIG = {
|
|
@@ -6586,7 +6599,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6586
6599
|
}
|
|
6587
6600
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6588
6601
|
|
|
6589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6590
6603
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6591
6604
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6592
6605
|
const path2 = key.split(".");
|
|
@@ -6608,7 +6621,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6608
6621
|
return { config, added };
|
|
6609
6622
|
}, "withSettingDefaults");
|
|
6610
6623
|
|
|
6611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6612
6625
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6613
6626
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6614
6627
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -7118,7 +7131,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7118
7131
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7119
7132
|
}, "given");
|
|
7120
7133
|
|
|
7121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
7122
7135
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
7123
7136
|
const slot = environmentOf(command).exit;
|
|
7124
7137
|
if (slot)
|
|
@@ -7226,6 +7239,13 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
7226
7239
|
}, "track")
|
|
7227
7240
|
};
|
|
7228
7241
|
}, "baseContext");
|
|
7242
|
+
var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
7243
|
+
const { resolveSettings } = environmentOf(command);
|
|
7244
|
+
if (!resolveSettings)
|
|
7245
|
+
return body(() => {
|
|
7246
|
+
});
|
|
7247
|
+
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
7248
|
+
}, "inCommandRun");
|
|
7229
7249
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
7230
7250
|
const words = [];
|
|
7231
7251
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
@@ -7233,7 +7253,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7233
7253
|
return words.join(" ");
|
|
7234
7254
|
}, "commandPath");
|
|
7235
7255
|
|
|
7236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7237
7257
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7238
7258
|
var FETCH = { remote: "read", local: "write" };
|
|
7239
7259
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7296,6 +7316,14 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
|
|
|
7296
7316
|
return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
|
|
7297
7317
|
}, "fetchesOnly");
|
|
7298
7318
|
var FILE_OPTION = /* @__PURE__ */ new WeakMap();
|
|
7319
|
+
var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
|
|
7320
|
+
const flag2 = command.options.find((one) => one.attributeName() === option);
|
|
7321
|
+
if (!flag2 || optionMetaOf(flag2).mcp !== false)
|
|
7322
|
+
throw new Error(`${command.name()}: writesFileOnlyWith needs --${option} added first, as an owner-only option`);
|
|
7323
|
+
FILE_OPTION.set(command, option);
|
|
7324
|
+
return command;
|
|
7325
|
+
}, "writesFileOnlyWith");
|
|
7326
|
+
var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
|
|
7299
7327
|
var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
7300
7328
|
const option = FILE_OPTION.get(command);
|
|
7301
7329
|
return option === void 0 || command.opts()[option] !== void 0;
|
|
@@ -7357,7 +7385,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7357
7385
|
throw readOnlyRefusal(lock, what);
|
|
7358
7386
|
}, "refuseUnderReadOnly");
|
|
7359
7387
|
|
|
7360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7361
7389
|
var account = strictObject({
|
|
7362
7390
|
provider: text,
|
|
7363
7391
|
id,
|
|
@@ -7367,7 +7395,7 @@ var account = strictObject({
|
|
|
7367
7395
|
scope: optional(picklist(["personal", "work"]))
|
|
7368
7396
|
});
|
|
7369
7397
|
|
|
7370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7371
7399
|
var accountSession = strictObject({
|
|
7372
7400
|
current: boolean(),
|
|
7373
7401
|
client: nullable(text),
|
|
@@ -7377,7 +7405,7 @@ var accountSession = strictObject({
|
|
|
7377
7405
|
created_at: optional(nullable(time))
|
|
7378
7406
|
});
|
|
7379
7407
|
|
|
7380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7381
7409
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7382
7410
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7383
7411
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7395,7 +7423,7 @@ var accountPrivacy = strictObject({
|
|
|
7395
7423
|
});
|
|
7396
7424
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7397
7425
|
|
|
7398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7399
7427
|
var accountProfile = strictObject({
|
|
7400
7428
|
profile: id,
|
|
7401
7429
|
current: boolean(),
|
|
@@ -7407,7 +7435,7 @@ var accountProfile = strictObject({
|
|
|
7407
7435
|
bot: optional(literal(true))
|
|
7408
7436
|
});
|
|
7409
7437
|
|
|
7410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7411
7439
|
var milliseconds = pipe(number(), minValue(0));
|
|
7412
7440
|
var counterReading = strictObject({
|
|
7413
7441
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7419,7 +7447,7 @@ var counterReading = strictObject({
|
|
|
7419
7447
|
});
|
|
7420
7448
|
var selection = record(string(), unknown());
|
|
7421
7449
|
|
|
7422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7423
7451
|
var adminRow = strictObject({
|
|
7424
7452
|
ref: reference,
|
|
7425
7453
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7472,7 +7500,7 @@ var adminReport = strictObject({
|
|
|
7472
7500
|
rows: array(adminRow)
|
|
7473
7501
|
});
|
|
7474
7502
|
|
|
7475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7476
7504
|
var closeSuggestion = strictObject({
|
|
7477
7505
|
as: picklist(["done", "dismissed"]),
|
|
7478
7506
|
/** The agent's name. */
|
|
@@ -7534,7 +7562,7 @@ var task = strictObject({
|
|
|
7534
7562
|
updated_at: optional(time)
|
|
7535
7563
|
});
|
|
7536
7564
|
|
|
7537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7538
7566
|
var agendaChat = strictObject({
|
|
7539
7567
|
chat: reference,
|
|
7540
7568
|
title: nullable(text),
|
|
@@ -7604,11 +7632,11 @@ var agenda = strictObject({
|
|
|
7604
7632
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7605
7633
|
});
|
|
7606
7634
|
|
|
7607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7608
7636
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7609
7637
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7610
7638
|
|
|
7611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7612
7640
|
var attachment = strictObject({
|
|
7613
7641
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7614
7642
|
message: optional(reference),
|
|
@@ -7646,7 +7674,7 @@ var attachment = strictObject({
|
|
|
7646
7674
|
});
|
|
7647
7675
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7648
7676
|
|
|
7649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7650
7678
|
var actionableError = objectWithRest({
|
|
7651
7679
|
code: text,
|
|
7652
7680
|
message: text,
|
|
@@ -7663,7 +7691,7 @@ var batchResult = strictObject({
|
|
|
7663
7691
|
max_error_percent: count
|
|
7664
7692
|
});
|
|
7665
7693
|
|
|
7666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7667
7695
|
var extractionItem = strictObject({
|
|
7668
7696
|
ref: reference,
|
|
7669
7697
|
attachment: count,
|
|
@@ -7696,7 +7724,7 @@ var extractionReport = strictObject({
|
|
|
7696
7724
|
cursor: optional(text)
|
|
7697
7725
|
});
|
|
7698
7726
|
|
|
7699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7700
7728
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7701
7729
|
var attachmentBytes = strictObject({
|
|
7702
7730
|
ref: reference,
|
|
@@ -7724,7 +7752,7 @@ var attachmentTextChange = strictObject({
|
|
|
7724
7752
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7725
7753
|
});
|
|
7726
7754
|
|
|
7727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7728
7756
|
var chart = strictObject({
|
|
7729
7757
|
version: literal(1),
|
|
7730
7758
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7739,7 +7767,7 @@ var chart = strictObject({
|
|
|
7739
7767
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7740
7768
|
});
|
|
7741
7769
|
|
|
7742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7743
7771
|
var member = strictObject({
|
|
7744
7772
|
id,
|
|
7745
7773
|
name: nullable(text),
|
|
@@ -7762,7 +7790,7 @@ var member = strictObject({
|
|
|
7762
7790
|
check: optional(record(string(), unknown()))
|
|
7763
7791
|
});
|
|
7764
7792
|
|
|
7765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7766
7794
|
var setting = optional(nullable(boolean()));
|
|
7767
7795
|
var chat = strictObject({
|
|
7768
7796
|
ref: reference,
|
|
@@ -7803,7 +7831,7 @@ var chat = strictObject({
|
|
|
7803
7831
|
members: optional(array(member))
|
|
7804
7832
|
});
|
|
7805
7833
|
|
|
7806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7807
7835
|
var named2 = strictObject({
|
|
7808
7836
|
id,
|
|
7809
7837
|
title: nullable(text),
|
|
@@ -7826,7 +7854,7 @@ var folder = strictObject({
|
|
|
7826
7854
|
excluded_chats: optional(array(named2))
|
|
7827
7855
|
});
|
|
7828
7856
|
|
|
7829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7830
7858
|
var inviteLink = strictObject({
|
|
7831
7859
|
link: text,
|
|
7832
7860
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7842,7 +7870,7 @@ var inviteLink = strictObject({
|
|
|
7842
7870
|
joined_count: optional(count)
|
|
7843
7871
|
});
|
|
7844
7872
|
|
|
7845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7846
7874
|
var operated = { operation_id: id, chat_id: id };
|
|
7847
7875
|
var group = strictObject({
|
|
7848
7876
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7922,7 +7950,7 @@ var chatFolderOrder = strictObject({
|
|
|
7922
7950
|
folders: array(strictObject({ id, title: text }))
|
|
7923
7951
|
});
|
|
7924
7952
|
|
|
7925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7926
7954
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7927
7955
|
var chatRemoval = strictObject(operated2);
|
|
7928
7956
|
var chatMuting = strictObject({
|
|
@@ -7933,7 +7961,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7933
7961
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7934
7962
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7935
7963
|
|
|
7936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7937
7965
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7938
7966
|
var chatEvent = strictObject({
|
|
7939
7967
|
chat_id: id,
|
|
@@ -7950,7 +7978,7 @@ var chatEvent = strictObject({
|
|
|
7950
7978
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7951
7979
|
});
|
|
7952
7980
|
|
|
7953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7954
7982
|
var chatMetadata = strictObject({
|
|
7955
7983
|
chat_id: id,
|
|
7956
7984
|
title: nullable(text),
|
|
@@ -7965,7 +7993,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7965
7993
|
has_more: boolean()
|
|
7966
7994
|
});
|
|
7967
7995
|
|
|
7968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7969
7997
|
var action = picklist(["report", "delete", "remove"]);
|
|
7970
7998
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7971
7999
|
var chatRules = strictObject({
|
|
@@ -8002,7 +8030,7 @@ var chatModeration = strictObject({
|
|
|
8002
8030
|
}))
|
|
8003
8031
|
});
|
|
8004
8032
|
|
|
8005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
8006
8034
|
var optionalCount = optional(count);
|
|
8007
8035
|
var minutes = nullable(number());
|
|
8008
8036
|
var chatStats = strictObject({
|
|
@@ -8076,7 +8104,7 @@ var taskStats = strictObject({
|
|
|
8076
8104
|
}))
|
|
8077
8105
|
});
|
|
8078
8106
|
|
|
8079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8080
8108
|
var memberCount = strictObject({
|
|
8081
8109
|
day: pipe(text, isoDate()),
|
|
8082
8110
|
participants: nullable(count),
|
|
@@ -8099,7 +8127,7 @@ var chatTracking = strictObject({
|
|
|
8099
8127
|
tracked: boolean()
|
|
8100
8128
|
});
|
|
8101
8129
|
|
|
8102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8103
8131
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8104
8132
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8105
8133
|
var profileFields = {
|
|
@@ -8137,7 +8165,7 @@ var profileFields = {
|
|
|
8137
8165
|
}))
|
|
8138
8166
|
};
|
|
8139
8167
|
|
|
8140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8141
8169
|
var contact = strictObject({
|
|
8142
8170
|
ref: reference,
|
|
8143
8171
|
id,
|
|
@@ -8168,7 +8196,7 @@ var contact = strictObject({
|
|
|
8168
8196
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8169
8197
|
});
|
|
8170
8198
|
|
|
8171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
8172
8200
|
var WEIGHTS = {
|
|
8173
8201
|
bot: 3,
|
|
8174
8202
|
scam: 3,
|
|
@@ -8193,7 +8221,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
8193
8221
|
var DIGITS = /\d{5,}/;
|
|
8194
8222
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
8195
8223
|
|
|
8196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
8197
8225
|
var linkedIdentity = strictObject({
|
|
8198
8226
|
provider: text,
|
|
8199
8227
|
id,
|
|
@@ -8201,6 +8229,7 @@ var linkedIdentity = strictObject({
|
|
|
8201
8229
|
username: nullable(text),
|
|
8202
8230
|
is_bot: nullable(boolean()),
|
|
8203
8231
|
accounts: array(id),
|
|
8232
|
+
seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
|
|
8204
8233
|
method: text,
|
|
8205
8234
|
linked_by: text,
|
|
8206
8235
|
linked_at: time
|
|
@@ -8234,7 +8263,7 @@ var contactCheck = strictObject({
|
|
|
8234
8263
|
checked_at: time
|
|
8235
8264
|
});
|
|
8236
8265
|
|
|
8237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
8238
8267
|
var quoted = strictObject({
|
|
8239
8268
|
id,
|
|
8240
8269
|
sender_id: nullable(id),
|
|
@@ -8353,7 +8382,7 @@ var message = strictObject({
|
|
|
8353
8382
|
provider_metadata: providerMetadata
|
|
8354
8383
|
});
|
|
8355
8384
|
|
|
8356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8357
8386
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8358
8387
|
var contextMessage = strictObject({
|
|
8359
8388
|
locator: reference,
|
|
@@ -8387,6 +8416,8 @@ var contextEvent = strictObject({
|
|
|
8387
8416
|
});
|
|
8388
8417
|
var context = strictObject({
|
|
8389
8418
|
person: contextPerson,
|
|
8419
|
+
/** The accounts read: only those of the scopes the caller may read. */
|
|
8420
|
+
accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
|
|
8390
8421
|
shared: array(sharedChat),
|
|
8391
8422
|
last: strictObject({
|
|
8392
8423
|
from_them: nullable(contextMessage),
|
|
@@ -8551,7 +8582,7 @@ var contactPreparation = strictObject({
|
|
|
8551
8582
|
})
|
|
8552
8583
|
});
|
|
8553
8584
|
|
|
8554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8555
8586
|
var contactNote = strictObject({
|
|
8556
8587
|
id,
|
|
8557
8588
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8563,13 +8594,13 @@ var contactNote = strictObject({
|
|
|
8563
8594
|
updated_at: time
|
|
8564
8595
|
});
|
|
8565
8596
|
|
|
8566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8567
8598
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8568
8599
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8569
8600
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8570
8601
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8571
8602
|
|
|
8572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8573
8604
|
var conversation = strictObject({
|
|
8574
8605
|
id,
|
|
8575
8606
|
chat: reference,
|
|
@@ -8584,7 +8615,7 @@ var conversation = strictObject({
|
|
|
8584
8615
|
rules_version: count
|
|
8585
8616
|
});
|
|
8586
8617
|
|
|
8587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8588
8619
|
var conversationBuild = strictObject({
|
|
8589
8620
|
chat: id,
|
|
8590
8621
|
messages: count,
|
|
@@ -8609,7 +8640,7 @@ var catchUpPreparation = strictObject({
|
|
|
8609
8640
|
prepared: optional(conversationPreparation)
|
|
8610
8641
|
});
|
|
8611
8642
|
|
|
8612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8613
8644
|
var conversationDetails = union([
|
|
8614
8645
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8615
8646
|
message
|
|
@@ -8699,7 +8730,7 @@ var conversationHit = strictObject({
|
|
|
8699
8730
|
stale: boolean()
|
|
8700
8731
|
});
|
|
8701
8732
|
|
|
8702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8703
8734
|
var counters = strictObject({
|
|
8704
8735
|
cutoff: time,
|
|
8705
8736
|
max_age_ms: milliseconds,
|
|
@@ -8729,7 +8760,7 @@ var counterRefresh = strictObject({
|
|
|
8729
8760
|
complete: optional(boolean())
|
|
8730
8761
|
});
|
|
8731
8762
|
|
|
8732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8733
8764
|
var nullableText = nullable(text);
|
|
8734
8765
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8735
8766
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -8766,7 +8797,7 @@ var deal = strictObject({
|
|
|
8766
8797
|
value: unknown(),
|
|
8767
8798
|
option_id: optional(union([string(), array(string())]))
|
|
8768
8799
|
})),
|
|
8769
|
-
people: array(strictObject({ ...party.entries, role: picklist(
|
|
8800
|
+
people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
|
|
8770
8801
|
author: strictObject({
|
|
8771
8802
|
type: picklist(["person", "bot"]),
|
|
8772
8803
|
id,
|
|
@@ -8793,7 +8824,10 @@ var pipelineStage = strictObject({
|
|
|
8793
8824
|
open: count,
|
|
8794
8825
|
/** With a funnel: rows that got this far, and the share of them that reached the next stage. */
|
|
8795
8826
|
reached: optional(count),
|
|
8796
|
-
conversion: optional(nullable(number()))
|
|
8827
|
+
conversion: optional(nullable(number())),
|
|
8828
|
+
/** With a funnel: rows standing in it now, and their sum per currency, never converted. */
|
|
8829
|
+
items: optional(count),
|
|
8830
|
+
amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
|
|
8797
8831
|
});
|
|
8798
8832
|
var pipeline = strictObject({
|
|
8799
8833
|
id,
|
|
@@ -8816,7 +8850,7 @@ var stage = strictObject({
|
|
|
8816
8850
|
untrusted
|
|
8817
8851
|
});
|
|
8818
8852
|
|
|
8819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8820
8854
|
var document = strictObject({
|
|
8821
8855
|
ref: reference,
|
|
8822
8856
|
id,
|
|
@@ -8831,7 +8865,7 @@ var document = strictObject({
|
|
|
8831
8865
|
owners: optional(array(text))
|
|
8832
8866
|
});
|
|
8833
8867
|
|
|
8834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8835
8869
|
var documentLink = strictObject({
|
|
8836
8870
|
ref: reference,
|
|
8837
8871
|
url: text,
|
|
@@ -8842,7 +8876,7 @@ var documentLink = strictObject({
|
|
|
8842
8876
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8843
8877
|
});
|
|
8844
8878
|
|
|
8845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8846
8880
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8847
8881
|
var contribution = strictObject({
|
|
8848
8882
|
message: evidenceMessage,
|
|
@@ -8872,7 +8906,7 @@ var retentionStay = strictObject({
|
|
|
8872
8906
|
});
|
|
8873
8907
|
var evidence = union([contribution, retentionStay]);
|
|
8874
8908
|
|
|
8875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8876
8910
|
var fact = strictObject({
|
|
8877
8911
|
ref: reference,
|
|
8878
8912
|
id,
|
|
@@ -8902,7 +8936,7 @@ var fact = strictObject({
|
|
|
8902
8936
|
updated_at: time
|
|
8903
8937
|
});
|
|
8904
8938
|
|
|
8905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8906
8940
|
var hit = strictObject({
|
|
8907
8941
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8908
8942
|
ref: reference,
|
|
@@ -8940,7 +8974,7 @@ var hit = strictObject({
|
|
|
8940
8974
|
untrusted
|
|
8941
8975
|
});
|
|
8942
8976
|
|
|
8943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8944
8978
|
var identity = strictObject({
|
|
8945
8979
|
ref: reference,
|
|
8946
8980
|
provider: text,
|
|
@@ -8953,7 +8987,7 @@ var identity = strictObject({
|
|
|
8953
8987
|
person: optional(nullable(reference))
|
|
8954
8988
|
});
|
|
8955
8989
|
|
|
8956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8957
8991
|
var imageEmbedding = strictObject({
|
|
8958
8992
|
model: text,
|
|
8959
8993
|
embedded: count,
|
|
@@ -8962,13 +8996,13 @@ var imageEmbedding = strictObject({
|
|
|
8962
8996
|
more: boolean()
|
|
8963
8997
|
});
|
|
8964
8998
|
|
|
8965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8966
9000
|
import { spawn } from "node:child_process";
|
|
8967
9001
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8968
9002
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8969
9003
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8970
9004
|
|
|
8971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8972
9006
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8973
9007
|
const total = input.total ?? null;
|
|
8974
9008
|
const updated = input.updatedAt ?? null;
|
|
@@ -8984,7 +9018,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8984
9018
|
};
|
|
8985
9019
|
}, "progressOf");
|
|
8986
9020
|
|
|
8987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8988
9022
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8989
9023
|
const run = currentRun();
|
|
8990
9024
|
const trace = traceId ?? run.traceId;
|
|
@@ -8998,7 +9032,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8998
9032
|
}));
|
|
8999
9033
|
}, "recordLogFor");
|
|
9000
9034
|
|
|
9001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
9002
9036
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
9003
9037
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
9004
9038
|
const out = openSync(log, "a", 384);
|
|
@@ -9153,7 +9187,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
9153
9187
|
return { job: id6, pid, chat: input.chat, log };
|
|
9154
9188
|
}, "startArchiveJob");
|
|
9155
9189
|
|
|
9156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
9157
9191
|
var problem = strictObject({ code: text, message: text });
|
|
9158
9192
|
var job = strictObject({
|
|
9159
9193
|
id,
|
|
@@ -9176,7 +9210,7 @@ var job = strictObject({
|
|
|
9176
9210
|
error: optional(problem)
|
|
9177
9211
|
});
|
|
9178
9212
|
|
|
9179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
9180
9214
|
var joinRequest = strictObject({
|
|
9181
9215
|
person_id: id,
|
|
9182
9216
|
name: nullable(text),
|
|
@@ -9187,7 +9221,7 @@ var joinRequest = strictObject({
|
|
|
9187
9221
|
about: optional(text)
|
|
9188
9222
|
});
|
|
9189
9223
|
|
|
9190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
9191
9225
|
var botProfile = strictObject({
|
|
9192
9226
|
name: text,
|
|
9193
9227
|
token: text,
|
|
@@ -9280,7 +9314,7 @@ var stickerInventory = strictObject({
|
|
|
9280
9314
|
url: optional(nullable(text))
|
|
9281
9315
|
});
|
|
9282
9316
|
|
|
9283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
9284
9318
|
var pollVote = strictObject({
|
|
9285
9319
|
person_id: id,
|
|
9286
9320
|
name: nullable(text),
|
|
@@ -9290,7 +9324,7 @@ var pollVote = strictObject({
|
|
|
9290
9324
|
voted_at: time
|
|
9291
9325
|
});
|
|
9292
9326
|
|
|
9293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
9294
9328
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
9295
9329
|
var observation = strictObject({
|
|
9296
9330
|
value: pipe(number(), minValue(0)),
|
|
@@ -9332,7 +9366,7 @@ var serveSummary = strictObject({
|
|
|
9332
9366
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9333
9367
|
});
|
|
9334
9368
|
|
|
9335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9336
9370
|
var mailCounts = strictObject({
|
|
9337
9371
|
by: picklist(["day", "week", "sender"]),
|
|
9338
9372
|
received: count,
|
|
@@ -9347,7 +9381,7 @@ var mailCounts = strictObject({
|
|
|
9347
9381
|
}))
|
|
9348
9382
|
});
|
|
9349
9383
|
|
|
9350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9351
9385
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9352
9386
|
var base = { id, evidence: array(evidence2) };
|
|
9353
9387
|
var finding = variant("kind", [
|
|
@@ -9491,7 +9525,7 @@ var mailFindings = strictObject({
|
|
|
9491
9525
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9492
9526
|
});
|
|
9493
9527
|
|
|
9494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9495
9529
|
var mediaArchive = strictObject({
|
|
9496
9530
|
directory: text,
|
|
9497
9531
|
chats: count,
|
|
@@ -9523,7 +9557,7 @@ var mediaArchiveTimer = union([
|
|
|
9523
9557
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9524
9558
|
]);
|
|
9525
9559
|
|
|
9526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9527
9561
|
var preparationId = pipe(string(), minLength(1));
|
|
9528
9562
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9529
9563
|
var preparationTime = nullable(isoTime);
|
|
@@ -9615,7 +9649,7 @@ var preparationMeeting = strictObject({
|
|
|
9615
9649
|
updated_at: isoTime
|
|
9616
9650
|
});
|
|
9617
9651
|
|
|
9618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9619
9653
|
var meetingEvidence = preparationEvidence;
|
|
9620
9654
|
var meetingPersonContext = strictObject({
|
|
9621
9655
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9637,7 +9671,7 @@ var meetingPersonContext = strictObject({
|
|
|
9637
9671
|
})
|
|
9638
9672
|
});
|
|
9639
9673
|
|
|
9640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9641
9675
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9642
9676
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9643
9677
|
var finding2 = variant("kind", [
|
|
@@ -9675,7 +9709,7 @@ var meetingFindings = strictObject({
|
|
|
9675
9709
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9676
9710
|
});
|
|
9677
9711
|
|
|
9678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9679
9713
|
var communicationCoverage = strictObject({
|
|
9680
9714
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9681
9715
|
query: string(),
|
|
@@ -9720,7 +9754,7 @@ var preparationCommunications = strictObject({
|
|
|
9720
9754
|
}))
|
|
9721
9755
|
});
|
|
9722
9756
|
|
|
9723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9724
9758
|
var meetingPreparation = strictObject({
|
|
9725
9759
|
communications: optional(preparationCommunications),
|
|
9726
9760
|
schema_version: literal(1),
|
|
@@ -9833,7 +9867,7 @@ var meetingPreparation = strictObject({
|
|
|
9833
9867
|
})
|
|
9834
9868
|
});
|
|
9835
9869
|
|
|
9836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9837
9871
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9838
9872
|
var id3 = pipe(string(), minLength(1));
|
|
9839
9873
|
var text3 = string();
|
|
@@ -9897,7 +9931,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9897
9931
|
})
|
|
9898
9932
|
});
|
|
9899
9933
|
|
|
9900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9901
9935
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9902
9936
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9903
9937
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9927,7 +9961,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9927
9961
|
})
|
|
9928
9962
|
});
|
|
9929
9963
|
|
|
9930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9931
9965
|
var text4 = string();
|
|
9932
9966
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9933
9967
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9944,7 +9978,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9944
9978
|
persistence: literal("proposal-only")
|
|
9945
9979
|
});
|
|
9946
9980
|
|
|
9947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9948
9982
|
var memory = strictObject({
|
|
9949
9983
|
ref: reference,
|
|
9950
9984
|
id,
|
|
@@ -9971,7 +10005,7 @@ var memory = strictObject({
|
|
|
9971
10005
|
updated_at: time
|
|
9972
10006
|
});
|
|
9973
10007
|
|
|
9974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9975
10009
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9976
10010
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9977
10011
|
var mention = strictObject({
|
|
@@ -10014,13 +10048,13 @@ var mentionRebuild = strictObject({
|
|
|
10014
10048
|
mentions: count
|
|
10015
10049
|
});
|
|
10016
10050
|
|
|
10017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
10018
10052
|
var operated3 = { operation_id: id, chat_id: id };
|
|
10019
10053
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
10020
10054
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
10021
10055
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
10022
10056
|
|
|
10023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
10024
10058
|
var messageTranscript = strictObject({
|
|
10025
10059
|
message_id: id,
|
|
10026
10060
|
text,
|
|
@@ -10078,7 +10112,7 @@ var evidencePacket = strictObject({
|
|
|
10078
10112
|
}))
|
|
10079
10113
|
});
|
|
10080
10114
|
|
|
10081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
10082
10116
|
var messageThread = strictObject({
|
|
10083
10117
|
ref: reference,
|
|
10084
10118
|
chat: id,
|
|
@@ -10095,7 +10129,7 @@ var messageThread = strictObject({
|
|
|
10095
10129
|
});
|
|
10096
10130
|
var messageContext = union([message, messageThread]);
|
|
10097
10131
|
|
|
10098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
10099
10133
|
var messageCounts = strictObject({
|
|
10100
10134
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
10101
10135
|
total: count,
|
|
@@ -10108,7 +10142,7 @@ var messageCounts = strictObject({
|
|
|
10108
10142
|
}))
|
|
10109
10143
|
});
|
|
10110
10144
|
|
|
10111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
10112
10146
|
var messageLink = strictObject({
|
|
10113
10147
|
ref: reference,
|
|
10114
10148
|
url: nullable(text),
|
|
@@ -10125,7 +10159,7 @@ var messageLink = strictObject({
|
|
|
10125
10159
|
})))
|
|
10126
10160
|
});
|
|
10127
10161
|
|
|
10128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
10129
10163
|
var savedMessageFile = strictObject({
|
|
10130
10164
|
kind: text,
|
|
10131
10165
|
path: text,
|
|
@@ -10212,7 +10246,7 @@ var messageSyncAll = strictObject({
|
|
|
10212
10246
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
10213
10247
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
10214
10248
|
|
|
10215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
10216
10250
|
var messageWrite = strictObject({
|
|
10217
10251
|
operation_id: id,
|
|
10218
10252
|
message,
|
|
@@ -10227,7 +10261,7 @@ var draftWrite = strictObject({
|
|
|
10227
10261
|
});
|
|
10228
10262
|
var messageSend = union([messageWrite, draftWrite]);
|
|
10229
10263
|
|
|
10230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
10231
10265
|
var model2 = strictObject({
|
|
10232
10266
|
id,
|
|
10233
10267
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -10244,7 +10278,7 @@ var model2 = strictObject({
|
|
|
10244
10278
|
path: text
|
|
10245
10279
|
});
|
|
10246
10280
|
|
|
10247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
10248
10282
|
var source = picklist(["environment", "keyring", "file"]);
|
|
10249
10283
|
var modelKey = strictObject({
|
|
10250
10284
|
provider: text,
|
|
@@ -10254,7 +10288,7 @@ var modelKey = strictObject({
|
|
|
10254
10288
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
10255
10289
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
10256
10290
|
|
|
10257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10258
10292
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10259
10293
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10260
10294
|
var graph = strictObject({
|
|
@@ -10288,14 +10322,14 @@ var officialStats = strictObject({
|
|
|
10288
10322
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10289
10323
|
});
|
|
10290
10324
|
|
|
10291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10292
10326
|
var person2 = strictObject({
|
|
10293
10327
|
ref: reference,
|
|
10294
10328
|
name: nullable(text),
|
|
10295
10329
|
identities: optional(array(identity))
|
|
10296
10330
|
});
|
|
10297
10331
|
|
|
10298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10299
10333
|
var poll = strictObject({
|
|
10300
10334
|
chat_id: id,
|
|
10301
10335
|
message_id: id,
|
|
@@ -10311,11 +10345,11 @@ var poll = strictObject({
|
|
|
10311
10345
|
});
|
|
10312
10346
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10313
10347
|
|
|
10314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10315
10349
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10316
10350
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10317
10351
|
|
|
10318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10319
10353
|
var figures = record(string(), number());
|
|
10320
10354
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10321
10355
|
var rankingRow = strictObject({
|
|
@@ -10362,7 +10396,7 @@ var ranking = strictObject({
|
|
|
10362
10396
|
rows: array(rankingRow)
|
|
10363
10397
|
});
|
|
10364
10398
|
|
|
10365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10366
10400
|
var reaction = strictObject({
|
|
10367
10401
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10368
10402
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10370,7 +10404,7 @@ var reaction = strictObject({
|
|
|
10370
10404
|
reacted_at: time
|
|
10371
10405
|
});
|
|
10372
10406
|
|
|
10373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10374
10408
|
var reactionChange = strictObject({
|
|
10375
10409
|
operation_id: id,
|
|
10376
10410
|
chat_id: id,
|
|
@@ -10378,7 +10412,7 @@ var reactionChange = strictObject({
|
|
|
10378
10412
|
reaction: nullable(text)
|
|
10379
10413
|
});
|
|
10380
10414
|
|
|
10381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10382
10416
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10383
10417
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10384
10418
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10389,7 +10423,7 @@ var recipientChange = strictObject({
|
|
|
10389
10423
|
...partial(recipientOff).entries
|
|
10390
10424
|
});
|
|
10391
10425
|
|
|
10392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10393
10427
|
var events = array(record(string(), unknown()));
|
|
10394
10428
|
var recordedRun = strictObject({
|
|
10395
10429
|
run_id: id,
|
|
@@ -10461,7 +10495,7 @@ var runHit = strictObject({
|
|
|
10461
10495
|
});
|
|
10462
10496
|
var runLocation = strictObject({ path: text });
|
|
10463
10497
|
|
|
10464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10465
10499
|
var relationship = strictObject({
|
|
10466
10500
|
id,
|
|
10467
10501
|
from: reference,
|
|
@@ -10475,10 +10509,16 @@ var relationship = strictObject({
|
|
|
10475
10509
|
confirmed: boolean(),
|
|
10476
10510
|
provenance: nullable(text),
|
|
10477
10511
|
confidence_category: picklist(["owner-confirmed", "weak"]),
|
|
10512
|
+
/** `reported`: a CRM account says so and nobody confirmed it; `ended`: it no longer holds. */
|
|
10513
|
+
standing: picklist(STANDINGS),
|
|
10514
|
+
/** A job title beside it, never its role. */
|
|
10515
|
+
position: nullable(text),
|
|
10516
|
+
starts_at: nullable(time),
|
|
10517
|
+
ends_at: nullable(time),
|
|
10478
10518
|
created_at: time
|
|
10479
10519
|
});
|
|
10480
10520
|
|
|
10481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10482
10522
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10483
10523
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10484
10524
|
var responseTimes = strictObject({
|
|
@@ -10495,7 +10535,7 @@ var waitingChats = strictObject({
|
|
|
10495
10535
|
by_kind: strictObject({ private: count, group: count })
|
|
10496
10536
|
});
|
|
10497
10537
|
|
|
10498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10499
10539
|
var retentionCohort = strictObject({
|
|
10500
10540
|
/** The first day of the joining day or week. */
|
|
10501
10541
|
cohort: text,
|
|
@@ -10543,7 +10583,7 @@ var retention = strictObject({
|
|
|
10543
10583
|
rows: array(retentionCohort)
|
|
10544
10584
|
});
|
|
10545
10585
|
|
|
10546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10547
10587
|
var savedSearch = strictObject({
|
|
10548
10588
|
id,
|
|
10549
10589
|
/** `null` for a run in the history. */
|
|
@@ -10560,7 +10600,7 @@ var savedSearch = strictObject({
|
|
|
10560
10600
|
});
|
|
10561
10601
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10562
10602
|
|
|
10563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10564
10604
|
var sendAttempt = strictObject({
|
|
10565
10605
|
at: time,
|
|
10566
10606
|
profile: text,
|
|
@@ -10588,7 +10628,7 @@ var sendAttempt = strictObject({
|
|
|
10588
10628
|
error_code: optional(text)
|
|
10589
10629
|
});
|
|
10590
10630
|
|
|
10591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10592
10632
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10593
10633
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10594
10634
|
var infoSchema = strictObject({
|
|
@@ -10809,7 +10849,7 @@ var storeRepair = union([
|
|
|
10809
10849
|
]);
|
|
10810
10850
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10811
10851
|
|
|
10812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10813
10853
|
var range = strictObject({ from: number(), to: number() });
|
|
10814
10854
|
var storeChatStatus = strictObject({
|
|
10815
10855
|
chat_id: id,
|
|
@@ -10907,7 +10947,7 @@ var storeJobRetry = union([
|
|
|
10907
10947
|
]);
|
|
10908
10948
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10909
10949
|
|
|
10910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10911
10951
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10912
10952
|
var storeTable = strictObject({
|
|
10913
10953
|
name: text,
|
|
@@ -10916,7 +10956,7 @@ var storeTable = strictObject({
|
|
|
10916
10956
|
bytes: optional(nullable(count))
|
|
10917
10957
|
});
|
|
10918
10958
|
|
|
10919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10920
10960
|
var tagTarget = variant("type", [
|
|
10921
10961
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10922
10962
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10947,7 +10987,7 @@ var automaticTags = strictObject({
|
|
|
10947
10987
|
dry_run: boolean()
|
|
10948
10988
|
});
|
|
10949
10989
|
|
|
10950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10951
10991
|
var tagging = strictObject({
|
|
10952
10992
|
tag: text,
|
|
10953
10993
|
type: picklist(TAG_TYPES),
|
|
@@ -10960,7 +11000,7 @@ var tagging = strictObject({
|
|
|
10960
11000
|
created_at: time
|
|
10961
11001
|
});
|
|
10962
11002
|
|
|
10963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10964
11004
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10965
11005
|
var taskPair = strictObject({
|
|
10966
11006
|
task: nullable(side),
|
|
@@ -10983,7 +11023,7 @@ var taskPair = strictObject({
|
|
|
10983
11023
|
created_at: time
|
|
10984
11024
|
});
|
|
10985
11025
|
|
|
10986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10987
11027
|
var nullableTime = nullable(time);
|
|
10988
11028
|
var link = strictObject({
|
|
10989
11029
|
id,
|
|
@@ -11157,7 +11197,7 @@ var taskReview = strictObject({
|
|
|
11157
11197
|
untrusted
|
|
11158
11198
|
});
|
|
11159
11199
|
|
|
11160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
11161
11201
|
var topic = strictObject({
|
|
11162
11202
|
id,
|
|
11163
11203
|
title: text,
|
|
@@ -11171,7 +11211,7 @@ var topic = strictObject({
|
|
|
11171
11211
|
untrusted
|
|
11172
11212
|
});
|
|
11173
11213
|
|
|
11174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
11175
11215
|
var ENTITIES = {
|
|
11176
11216
|
sync_progress: progress,
|
|
11177
11217
|
deal,
|
|
@@ -11457,7 +11497,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11457
11497
|
return [name, definition];
|
|
11458
11498
|
})), "entityDefinitions");
|
|
11459
11499
|
|
|
11460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11461
11501
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11462
11502
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11463
11503
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11491,7 +11531,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11491
11531
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11492
11532
|
}, "answerRow");
|
|
11493
11533
|
|
|
11494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11495
11535
|
import { join as join6 } from "node:path";
|
|
11496
11536
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11497
11537
|
var IMAGE_MODELS = [
|
|
@@ -11545,7 +11585,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11545
11585
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11546
11586
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11547
11587
|
|
|
11548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11549
11589
|
var STEPS2 = defineSteps([
|
|
11550
11590
|
...STEPS,
|
|
11551
11591
|
{
|
|
@@ -11759,6 +11799,12 @@ var STEPS2 = defineSteps([
|
|
|
11759
11799
|
],
|
|
11760
11800
|
why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
|
|
11761
11801
|
},
|
|
11802
|
+
{
|
|
11803
|
+
id: "store.recover",
|
|
11804
|
+
command: "store recover",
|
|
11805
|
+
args: [],
|
|
11806
|
+
why: "the store file is damaged; this says what is lost and the commands that recover it"
|
|
11807
|
+
},
|
|
11762
11808
|
{
|
|
11763
11809
|
id: "search.meetings",
|
|
11764
11810
|
command: "*",
|
|
@@ -11797,7 +11843,7 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
|
|
|
11797
11843
|
nextStep(IMAGE_MODELS.some((one) => one.id === model3) ? "models.download-image" : "models.download", {
|
|
11798
11844
|
args: { model: model3 }
|
|
11799
11845
|
})
|
|
11800
|
-
] : [];
|
|
11846
|
+
] : error.reason === "store.damaged" ? [nextStep("store.recover", {})] : [];
|
|
11801
11847
|
return runnable(root, [...error.next ?? [], ...own]);
|
|
11802
11848
|
}, "failureSteps");
|
|
11803
11849
|
var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
|
|
@@ -11826,7 +11872,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11826
11872
|
].join(" ");
|
|
11827
11873
|
}, "stepLine");
|
|
11828
11874
|
|
|
11829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11830
11876
|
var where = [{ field: "ref" }];
|
|
11831
11877
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11832
11878
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11918,7 +11964,7 @@ var STATUS_ROWS = {
|
|
|
11918
11964
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11919
11965
|
};
|
|
11920
11966
|
|
|
11921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11922
11968
|
var TEXT_CHARS = 400;
|
|
11923
11969
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11924
11970
|
var messageRow = {
|
|
@@ -12284,7 +12330,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12284
12330
|
return lines.concat(footerOf(body)).join("\n");
|
|
12285
12331
|
}, "compactText");
|
|
12286
12332
|
|
|
12287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12288
12334
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12289
12335
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12290
12336
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12342,7 +12388,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12342
12388
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12343
12389
|
}, "largeAnswerSteps");
|
|
12344
12390
|
|
|
12345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12346
12392
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12347
12393
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12348
12394
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12356,7 +12402,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12356
12402
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12357
12403
|
}, "strip");
|
|
12358
12404
|
|
|
12359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12360
12406
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12361
12407
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12362
12408
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12626,6 +12672,7 @@ export {
|
|
|
12626
12672
|
secretInputOf,
|
|
12627
12673
|
outputFor,
|
|
12628
12674
|
baseContext,
|
|
12675
|
+
inCommandRun,
|
|
12629
12676
|
REMOTE_READ,
|
|
12630
12677
|
FETCH,
|
|
12631
12678
|
REMOTE_WRITE,
|
|
@@ -12641,6 +12688,7 @@ export {
|
|
|
12641
12688
|
destroysNothing,
|
|
12642
12689
|
admittedUnderLock,
|
|
12643
12690
|
changesStore,
|
|
12691
|
+
writesNewFileOnlyWith,
|
|
12644
12692
|
readsOverMcpAt,
|
|
12645
12693
|
isStoreChange,
|
|
12646
12694
|
previewFlag,
|