@wirecat/tg-cli 0.101.0 → 0.102.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 +1 -1
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +14 -17
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-A3VD4Y6Z.js → adapter-M2HRSFFL.js} +90 -28
- package/dist/bundle/{all-profiles-UPVNHXB2.js → all-profiles-GOD2QNTK.js} +29 -8
- package/dist/bundle/{anthropic-IRKNWPIB.js → anthropic-LKU7RWMA.js} +3 -3
- package/dist/bundle/{bot-api-UNTQG2M5.js → bot-api-X3MPFVPL.js} +42 -46
- package/dist/bundle/{bot-history-V4RTY5K7.js → bot-history-OUMVVG22.js} +10 -10
- package/dist/bundle/{bun-2JZPG2NL.js → bun-LIZ6MKFS.js} +2 -2
- package/dist/bundle/{bun-sqlite-TZHKM225.js → bun-sqlite-2IFQYQ44.js} +2 -2
- package/dist/bundle/{chunk-VA5YEJS3.js → chunk-264DAFJV.js} +4 -4
- package/dist/bundle/{chunk-ZV24I2UJ.js → chunk-2SUTCDGO.js} +1 -1
- package/dist/bundle/{chunk-BX6HH4F6.js → chunk-334UBWOB.js} +10 -10
- package/dist/bundle/{chunk-2DGOFLDA.js → chunk-4PDEQL6T.js} +1 -1
- package/dist/bundle/chunk-4QB4WDLT.js +922 -0
- package/dist/bundle/{chunk-MLLJ74LM.js → chunk-5D6OJREA.js} +1 -1
- package/dist/bundle/{chunk-RF54YDBB.js → chunk-5DFGJPT6.js} +4 -4
- package/dist/bundle/{chunk-TGREFJVA.js → chunk-5VSR5ENL.js} +7 -7
- package/dist/bundle/{chunk-VCGL2ETF.js → chunk-AUOXTGTU.js} +1 -1
- package/dist/bundle/{chunk-X4Y2ROJI.js → chunk-BBC546ZA.js} +91 -2
- package/dist/bundle/{chunk-QOWSVDPZ.js → chunk-BQYTIYGB.js} +106 -95
- package/dist/bundle/{chunk-XCKD54TN.js → chunk-CLWYQNSC.js} +5 -5
- package/dist/bundle/{chunk-7CBUCTB6.js → chunk-CRZPQQHE.js} +27 -33
- package/dist/bundle/chunk-DE7LFMY2.js +440 -0
- package/dist/bundle/{chunk-ODSVNH3H.js → chunk-ENE5CSVY.js} +2373 -1266
- package/dist/bundle/{chunk-G2US6LJB.js → chunk-ERQDBK5I.js} +1 -1
- package/dist/bundle/{chunk-W2336E7Y.js → chunk-F2TG3BA2.js} +4 -4
- package/dist/bundle/{chunk-DYNSP6FW.js → chunk-FBWOQMPE.js} +1442 -769
- package/dist/bundle/{chunk-5TPT2S2Z.js → chunk-FOUE7XLK.js} +1 -1
- package/dist/bundle/{chunk-RVCS7Q3A.js → chunk-GSKFAE3I.js} +1287 -512
- package/dist/bundle/{chunk-6IPY2QRG.js → chunk-HLAZ65AW.js} +1 -1
- package/dist/bundle/{chunk-A5JSTZZZ.js → chunk-JFSVXMN6.js} +2 -2
- package/dist/bundle/{chunk-N5UFBWDM.js → chunk-M5UH5CF3.js} +5 -7
- package/dist/bundle/{chunk-F7TDFWXY.js → chunk-MGG7JSNO.js} +2 -2
- package/dist/bundle/{chunk-H6OXALTJ.js → chunk-OCWARAFE.js} +1 -1
- package/dist/bundle/{chunk-S7ZNLLY5.js → chunk-OHBHHBYL.js} +2 -2
- package/dist/bundle/{chunk-5GKXETRP.js → chunk-PSH7K6TL.js} +610 -51
- package/dist/bundle/{chunk-VYDTI254.js → chunk-Q2NYEX4A.js} +53 -34
- package/dist/bundle/{chunk-G3ZRY436.js → chunk-QEPZUFPL.js} +46 -46
- package/dist/bundle/{chunk-BXQS5RCE.js → chunk-QL7CQ6VZ.js} +253 -78
- package/dist/bundle/{chunk-NC5WS7OP.js → chunk-SRU3OF4R.js} +1 -1
- package/dist/bundle/{chunk-PUBS2F5J.js → chunk-TV5DGHBT.js} +242 -242
- package/dist/bundle/{chunk-ZEOCU24Z.js → chunk-TXBUDJ3P.js} +1 -1
- package/dist/bundle/{chunk-ACGTFLEB.js → chunk-U4RRZUNP.js} +8 -8
- package/dist/bundle/{chunk-LPB2MDUW.js → chunk-UK3GAN7Q.js} +6 -6
- package/dist/bundle/{chunk-UN6CKIBN.js → chunk-UR6ASUSG.js} +8 -5
- package/dist/bundle/{chunk-U46UNBMT.js → chunk-V52SBQYF.js} +236 -13
- package/dist/bundle/{chunk-S2JSZWEC.js → chunk-VUJ34PEQ.js} +9 -9
- package/dist/bundle/{chunk-QYVVRQTN.js → chunk-W5EB4JLV.js} +2 -2
- package/dist/bundle/{chunk-3KHKYYCR.js → chunk-WMOEOVWZ.js} +1 -0
- package/dist/bundle/{chunk-VRSN7VLO.js → chunk-WVEHUKCZ.js} +1 -1
- package/dist/bundle/{chunk-64DK7S4F.js → chunk-XXTJUZMB.js} +1 -1
- package/dist/bundle/{chunk-54R2GDQ3.js → chunk-Y4XSWI22.js} +3 -3
- package/dist/bundle/{chunk-4ZS73HTJ.js → chunk-YHB57PFN.js} +1 -1
- package/dist/bundle/{chunk-G77QOTXE.js → chunk-ZRNRQFTF.js} +1 -1
- package/dist/bundle/{command-contract-TKDI7E56.js → command-contract-A6VZN3ZR.js} +11 -11
- package/dist/bundle/{echarts-QZ6PR3VC.js → echarts-27W2CIBD.js} +2 -2
- package/dist/bundle/{embed-UBXCXSRD.js → embed-FGJ273X2.js} +2 -2
- package/dist/bundle/{embedder-B4ZTKC23.js → embedder-7ELL3CQ3.js} +5 -5
- package/dist/bundle/{entry-BTUTHO5M.js → entry-SEE5YWIX.js} +3 -3
- package/dist/bundle/{first-run-UC4HRIFV.js → first-run-BD7FEC3W.js} +5 -5
- package/dist/bundle/{first-screen-SMCX6YKY.js → first-screen-ASZV6LSA.js} +12 -12
- package/dist/bundle/{identity-QSDEGDH7.js → identity-QR4F42T6.js} +1 -1
- package/dist/bundle/{instructions-BBGLZKO3.js → instructions-L74K64PV.js} +1 -1
- package/dist/bundle/{node-LZZX22VR.js → node-RSL3HANO.js} +2 -2
- package/dist/bundle/{node-sqlite-BPGT6T5U.js → node-sqlite-7R3PYQGJ.js} +2 -2
- package/dist/bundle/{oauth-XNE2KPKJ.js → oauth-4ESGXF6U.js} +5 -5
- package/dist/bundle/{open-SXGYZLB5.js → open-DFYEUGTA.js} +1 -1
- package/dist/bundle/{process-GPUXC4PG.js → process-RMV3AKLB.js} +1 -1
- package/dist/bundle/{program-NEXEAL7T.js → program-PIUYQHBF.js} +54 -59
- package/dist/bundle/{prompt-SORGLEYI.js → prompt-H7GYQQLL.js} +2 -2
- package/dist/bundle/{recognize-UJBXORVD.js → recognize-3GMOLZF4.js} +3 -3
- package/dist/bundle/{remote-W72AR7KH.js → remote-IRWTCI2B.js} +3 -3
- package/dist/bundle/{rerank-3Y2VZM3J.js → rerank-W3OSXXBN.js} +3 -3
- package/dist/bundle/{serve-VDZIVOPR.js → serve-ZCPO44NO.js} +7 -7
- package/dist/bundle/{server-ZFHN4GUF.js → server-FXU4QFRB.js} +35 -32
- package/dist/bundle/{server-BERXP4GW.js → server-YWL4HDOP.js} +68 -59
- package/dist/bundle/{state-DGR4EE3E.js → state-MJPTDIB5.js} +3 -3
- package/dist/bundle/{store-MRCFSCZD.js → store-6VNQG56O.js} +7 -7
- package/dist/bundle/store-maintenance-command-62TQTMER.js +43 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +52 -3
- package/dist/telegram/sending.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-22PQUX72.js +0 -190
- package/dist/bundle/chunk-CJ6IYCYP.js +0 -583
- package/dist/bundle/chunk-NKJJJAIJ.js +0 -237
- package/dist/bundle/chunk-NMGO6LW6.js +0 -1950
- package/dist/bundle/chunk-OILBDLWL.js +0 -724
- package/dist/bundle/chunk-OPBTNQ35.js +0 -1007
- package/dist/bundle/store-maintenance-command-DCMZDMYS.js +0 -46
|
@@ -5,49 +5,52 @@ import {
|
|
|
5
5
|
UNTRUSTED_NEUTRAL,
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
|
-
commandAvailability
|
|
9
|
-
} from "./chunk-U46UNBMT.js";
|
|
10
|
-
import {
|
|
8
|
+
commandAvailability,
|
|
11
9
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V52SBQYF.js";
|
|
11
|
+
import {
|
|
12
|
+
callerOf
|
|
13
|
+
} from "./chunk-BBC546ZA.js";
|
|
13
14
|
import {
|
|
14
15
|
lentConnection,
|
|
15
16
|
onlineDeps,
|
|
16
17
|
refuseLacking,
|
|
17
18
|
servicesFor,
|
|
18
19
|
storeModeDeps
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FBWOQMPE.js";
|
|
20
21
|
import {
|
|
21
22
|
ENTITIES
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BQYTIYGB.js";
|
|
23
24
|
import {
|
|
24
25
|
DEFAULT_OUTPUT_BYTES,
|
|
25
26
|
LOCAL_WRITE,
|
|
26
27
|
REMOTE_WRITE,
|
|
27
28
|
answerSchema,
|
|
29
|
+
authorityAllowed,
|
|
30
|
+
botApiAllowed,
|
|
28
31
|
changesMessenger,
|
|
29
32
|
flatten,
|
|
33
|
+
inRun,
|
|
30
34
|
judgedAnswer,
|
|
31
35
|
judgedEffects,
|
|
36
|
+
keyForCommand,
|
|
37
|
+
levelFor,
|
|
32
38
|
listOf,
|
|
33
|
-
|
|
39
|
+
newRunId,
|
|
40
|
+
readKeysForCommand,
|
|
34
41
|
refuseStoreChange,
|
|
35
|
-
runContextOf,
|
|
36
42
|
sealed,
|
|
37
43
|
startRecording
|
|
38
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GSKFAE3I.js";
|
|
39
45
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
newRunId,
|
|
46
|
-
readKeysForCommand
|
|
47
|
-
} from "./chunk-OPBTNQ35.js";
|
|
46
|
+
currentCaller,
|
|
47
|
+
keepsSuccess,
|
|
48
|
+
runContextOf,
|
|
49
|
+
withCaller
|
|
50
|
+
} from "./chunk-DE7LFMY2.js";
|
|
48
51
|
import {
|
|
49
52
|
MAX_BUFFERED_INPUT
|
|
50
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HLAZ65AW.js";
|
|
51
54
|
import {
|
|
52
55
|
captureStreams,
|
|
53
56
|
errorObjectOf,
|
|
@@ -96,7 +99,7 @@ import {
|
|
|
96
99
|
__name
|
|
97
100
|
} from "./chunk-AFV74GK3.js";
|
|
98
101
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
100
103
|
import { Readable } from "node:stream";
|
|
101
104
|
|
|
102
105
|
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
@@ -2714,7 +2717,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2714
2717
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2715
2718
|
});
|
|
2716
2719
|
|
|
2717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2718
2721
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2719
2722
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2720
2723
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2900,7 +2903,8 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2900
2903
|
}, "failure"),
|
|
2901
2904
|
...ctx.overrides?.length ? { overrides: ctx.overrides } : {},
|
|
2902
2905
|
authority: levels !== void 0 && authorityAllowed(levels),
|
|
2903
|
-
botApi: levels !== void 0 && botApiAllowed(levels)
|
|
2906
|
+
botApi: levels !== void 0 && botApiAllowed(levels),
|
|
2907
|
+
...ctx.caller ?? currentCaller() ? { caller: ctx.caller ?? currentCaller() } : {}
|
|
2904
2908
|
},
|
|
2905
2909
|
// Opened only when the command asks: a read the store answers never connects.
|
|
2906
2910
|
...lend ? {
|
|
@@ -2925,7 +2929,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2925
2929
|
}
|
|
2926
2930
|
}, "runCommandForAgent");
|
|
2927
2931
|
|
|
2928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2929
2933
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2930
2934
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2931
2935
|
var message = pipe(
|
|
@@ -2990,16 +2994,22 @@ var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
|
2990
2994
|
const command = `mcp ${commandOf(key2, definition)}`;
|
|
2991
2995
|
const traceId = traceIdOf(ctx?.mcpReq?._meta?.traceparent);
|
|
2992
2996
|
const app = registration.messenger?.app;
|
|
2993
|
-
const
|
|
2997
|
+
const caller = registration.callers ? callerOf(ctx, key2, registration.callers) : currentCaller();
|
|
2998
|
+
const env = registration.defaults.env ?? process.env;
|
|
2999
|
+
const settings = registration.defaults.settings;
|
|
3000
|
+
const recording = key2 !== "runs_search" && settings.keepFailedRuns !== false && app?.appName ? startRecording({
|
|
2994
3001
|
app,
|
|
2995
3002
|
command,
|
|
2996
|
-
...
|
|
2997
|
-
env
|
|
2998
|
-
record: false,
|
|
3003
|
+
...settings.profile === void 0 ? {} : { profile: settings.profile },
|
|
3004
|
+
env,
|
|
3005
|
+
record: keepsSuccess({ record: settings.record ?? true, fromFlag: false, env, caller }),
|
|
2999
3006
|
keepFailed: true,
|
|
3000
3007
|
trace: false,
|
|
3001
3008
|
format: "json",
|
|
3002
|
-
context: runContextOf({ bin: app.command, command, env
|
|
3009
|
+
context: runContextOf({ bin: app.command, command, env, caller }),
|
|
3010
|
+
...settings.keepRunsForDays === void 0 ? {} : { keepDays: settings.keepRunsForDays },
|
|
3011
|
+
...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
|
|
3012
|
+
...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
|
|
3003
3013
|
...traceId === void 0 ? {} : { traceId }
|
|
3004
3014
|
}) : void 0;
|
|
3005
3015
|
const profile = registration.defaults.settings.profile;
|
|
@@ -3008,16 +3018,18 @@ var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
|
3008
3018
|
command,
|
|
3009
3019
|
startedAt,
|
|
3010
3020
|
...profile === void 0 ? {} : { profile },
|
|
3011
|
-
...traceId === void 0 ? {} : { traceId }
|
|
3021
|
+
...traceId === void 0 ? {} : { traceId },
|
|
3022
|
+
...recording ? { events: recording.events } : {}
|
|
3012
3023
|
};
|
|
3013
|
-
const
|
|
3024
|
+
const work = /* @__PURE__ */ __name(() => inRun(scope, () => {
|
|
3014
3025
|
const input = inputOf(definition, syncAllowedFor(key2, registration.defaults));
|
|
3015
3026
|
const parsed = safeParse(input, args);
|
|
3016
3027
|
return parsed.success ? run(key2, definition, parsed.output, ctx) : failed(new CliError("validation_error", `${commandOf(key2, definition)}: ${summarize(parsed.issues)}`, {
|
|
3017
3028
|
arguments: toJsonSchema(input)
|
|
3018
3029
|
}), app?.errors);
|
|
3019
|
-
});
|
|
3020
|
-
|
|
3030
|
+
}), "work");
|
|
3031
|
+
const result = await (caller ? withCaller(caller, work) : work());
|
|
3032
|
+
if (recording) {
|
|
3021
3033
|
if (result.isError) {
|
|
3022
3034
|
const error = result.structuredContent?.error;
|
|
3023
3035
|
const code = error?.code && errorCodes.includes(error.code) ? error.code : void 0;
|
|
@@ -3176,7 +3188,8 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3176
3188
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3177
3189
|
}, "failed");
|
|
3178
3190
|
|
|
3179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3192
|
+
import { randomUUID } from "node:crypto";
|
|
3180
3193
|
var MATCHES = 8;
|
|
3181
3194
|
var ANSWER = answerSchema();
|
|
3182
3195
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
@@ -3248,6 +3261,11 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3248
3261
|
});
|
|
3249
3262
|
return answered(list);
|
|
3250
3263
|
});
|
|
3264
|
+
const callers = {
|
|
3265
|
+
env: process.env,
|
|
3266
|
+
client: /* @__PURE__ */ __name(() => server.server.getClientVersion(), "client"),
|
|
3267
|
+
connectionId: randomUUID()
|
|
3268
|
+
};
|
|
3251
3269
|
const runner = /* @__PURE__ */ __name((writing) => async ({ command: asked, arguments: given }, ctx) => {
|
|
3252
3270
|
try {
|
|
3253
3271
|
const command = byNormal.get(normal(asked));
|
|
@@ -3260,14 +3278,15 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3260
3278
|
if (one.writes !== writing)
|
|
3261
3279
|
throw new CliError("validation_error", `"${command}" ${writing ? "only reads" : "writes"}: call it with ${prefix}_${writing ? "read" : "write"}`);
|
|
3262
3280
|
const args = writing ? agentArguments(given ?? {}) : given ?? {};
|
|
3281
|
+
const caller = currentCaller() ?? callerOf(ctx, command.replace(/[ -]/g, "_"), callers);
|
|
3263
3282
|
if (one.checked)
|
|
3264
|
-
return runnableOnly(await one.run(args, ctx), (named) => byNormal.has(normal(named)));
|
|
3283
|
+
return runnableOnly(await withCaller(caller, () => one.run(args, ctx)), (named) => byNormal.has(normal(named)));
|
|
3265
3284
|
const parsed = safeParse(strictObject(one.input.entries), args);
|
|
3266
3285
|
if (!parsed.success)
|
|
3267
3286
|
throw new CliError("validation_error", `${command}: ${summarize(parsed.issues)}`, {
|
|
3268
3287
|
arguments: toJsonSchema(one.input)
|
|
3269
3288
|
});
|
|
3270
|
-
return runnableOnly(await one.run(parsed.output, ctx), (named) => byNormal.has(normal(named)));
|
|
3289
|
+
return runnableOnly(await withCaller(caller, () => one.run(parsed.output, ctx)), (named) => byNormal.has(normal(named)));
|
|
3271
3290
|
} catch (error) {
|
|
3272
3291
|
return failed(error, errors);
|
|
3273
3292
|
}
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-AFV74GK3.js";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
45
45
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
46
46
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
47
47
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -839,7 +839,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
|
839
839
|
].join("\n");
|
|
840
840
|
}, "fieldsHelp");
|
|
841
841
|
|
|
842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
843
843
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
844
844
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
845
845
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -876,7 +876,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
876
876
|
}, "parseMeetingReference");
|
|
877
877
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
878
878
|
|
|
879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
880
880
|
var text = string();
|
|
881
881
|
var count = pipe(number(), integer(), minValue(0));
|
|
882
882
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -941,7 +941,7 @@ var MEETING_QUERY = {
|
|
|
941
941
|
})
|
|
942
942
|
};
|
|
943
943
|
|
|
944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
945
945
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
946
946
|
const parsed = urlOf(url);
|
|
947
947
|
if (!parsed)
|
|
@@ -975,7 +975,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
975
975
|
}
|
|
976
976
|
}, "urlOf");
|
|
977
977
|
|
|
978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
979
979
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
980
980
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
981
981
|
var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
|
|
@@ -1008,7 +1008,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1008
1008
|
return kept;
|
|
1009
1009
|
}, "entryMetadata");
|
|
1010
1010
|
|
|
1011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1012
1012
|
import { createHash } from "node:crypto";
|
|
1013
1013
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1014
1014
|
reference: cue2.reference,
|
|
@@ -1022,7 +1022,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1022
1022
|
text: cue2.text
|
|
1023
1023
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1024
1024
|
|
|
1025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1026
1026
|
var text2 = string();
|
|
1027
1027
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1028
1028
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1249,7 +1249,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1249
1249
|
};
|
|
1250
1250
|
}, "meetingHitsList");
|
|
1251
1251
|
|
|
1252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1253
1253
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1254
1254
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1255
1255
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1273,7 +1273,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1273
1273
|
};
|
|
1274
1274
|
}, "validateMeetingParticipantSearch");
|
|
1275
1275
|
|
|
1276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1277
1277
|
var MeetingError = class extends CliError {
|
|
1278
1278
|
static {
|
|
1279
1279
|
__name(this, "MeetingError");
|
|
@@ -1401,7 +1401,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1401
1401
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1402
1402
|
}, "meetingSummaryAnswer");
|
|
1403
1403
|
|
|
1404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1405
1405
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1406
1406
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1407
1407
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1497,10 +1497,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1497
1497
|
};
|
|
1498
1498
|
}, "exportMeeting");
|
|
1499
1499
|
|
|
1500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1501
1501
|
import { createHash as createHash2 } from "node:crypto";
|
|
1502
1502
|
|
|
1503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1504
1504
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1505
1505
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1506
1506
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1511,7 +1511,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1511
1511
|
return new Date(value).toISOString();
|
|
1512
1512
|
}, "meetingTimestamp");
|
|
1513
1513
|
|
|
1514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1515
1515
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1516
1516
|
if (typeof value !== "string" || !value.trim())
|
|
1517
1517
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1562,10 +1562,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1562
1562
|
return Object.freeze(result);
|
|
1563
1563
|
}, "validateMeetingChange");
|
|
1564
1564
|
|
|
1565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1566
1566
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1567
1567
|
|
|
1568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1569
1569
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1570
1570
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1571
1571
|
throw new CliError("validation_error", message);
|
|
@@ -1666,7 +1666,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1666
1666
|
}, "validateFindings");
|
|
1667
1667
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1668
1668
|
|
|
1669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1670
1670
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1671
1671
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1672
1672
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1677,7 +1677,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1677
1677
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1678
1678
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1679
1679
|
|
|
1680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1681
1681
|
var text4 = string();
|
|
1682
1682
|
var identifier = pipe(text4, minLength(1));
|
|
1683
1683
|
var nullableText = nullable(text4);
|
|
@@ -1803,7 +1803,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1803
1803
|
meeting_embedding: embedding
|
|
1804
1804
|
};
|
|
1805
1805
|
|
|
1806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1807
1807
|
var EVENT_QUERY = defineQuery({
|
|
1808
1808
|
entity: "event",
|
|
1809
1809
|
backend: "sql",
|
|
@@ -1819,7 +1819,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1819
1819
|
]
|
|
1820
1820
|
});
|
|
1821
1821
|
|
|
1822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1823
1823
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1824
1824
|
const current = await store.meeting(details.meeting.id);
|
|
1825
1825
|
if (!current)
|
|
@@ -1862,7 +1862,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1862
1862
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1863
1863
|
}, "linkEvent");
|
|
1864
1864
|
|
|
1865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1866
1866
|
var context = {
|
|
1867
1867
|
command: "search meetings",
|
|
1868
1868
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1925,7 +1925,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1925
1925
|
});
|
|
1926
1926
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1927
1927
|
|
|
1928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1929
1929
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1930
1930
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1931
1931
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1962,7 +1962,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1962
1962
|
return time;
|
|
1963
1963
|
}, "timestamp");
|
|
1964
1964
|
|
|
1965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1966
1966
|
var TranscriptTextError = class extends Error {
|
|
1967
1967
|
static {
|
|
1968
1968
|
__name(this, "TranscriptTextError");
|
|
@@ -2017,7 +2017,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2017
2017
|
return { header, lines };
|
|
2018
2018
|
}, "parseTranscriptText");
|
|
2019
2019
|
|
|
2020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2021
2021
|
var VttError = class extends Error {
|
|
2022
2022
|
static {
|
|
2023
2023
|
__name(this, "VttError");
|
|
@@ -2069,7 +2069,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2069
2069
|
return cues;
|
|
2070
2070
|
}, "parseVtt");
|
|
2071
2071
|
|
|
2072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2073
2073
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2074
2074
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2075
2075
|
for (const file of files) {
|
|
@@ -2102,10 +2102,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2102
2102
|
return report;
|
|
2103
2103
|
}, "importFiles");
|
|
2104
2104
|
|
|
2105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2106
2106
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2107
2107
|
|
|
2108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2109
2109
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2110
2110
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2111
2111
|
if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
|
|
@@ -2118,7 +2118,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2118
2118
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2119
2119
|
}, "validateMeetingPassage");
|
|
2120
2120
|
|
|
2121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2122
2122
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2123
2123
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2124
2124
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2143,7 +2143,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2143
2143
|
return { ...input, limit, maxReadBytes };
|
|
2144
2144
|
}, "validateMeetingPreparationContext");
|
|
2145
2145
|
|
|
2146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2147
2147
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2148
2148
|
var id = pipe(string(), minLength(1));
|
|
2149
2149
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2264,7 +2264,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2264
2264
|
};
|
|
2265
2265
|
}, "meetingProjectEvidenceAnswer");
|
|
2266
2266
|
|
|
2267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2268
2268
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2269
2269
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2270
2270
|
if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
|
|
@@ -2284,7 +2284,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2284
2284
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2285
2285
|
}, "validateMeetingHitSearch");
|
|
2286
2286
|
|
|
2287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2288
2288
|
var ids = {
|
|
2289
2289
|
meeting_id: "meetingId",
|
|
2290
2290
|
identity_id: "participantIdentityId",
|
|
@@ -2375,7 +2375,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2375
2375
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2376
2376
|
}, "prepareMeetingProjectEvidence");
|
|
2377
2377
|
|
|
2378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2379
2379
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2380
2380
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2381
2381
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2383,7 +2383,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2383
2383
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2384
2384
|
}, "readMeetingProjectEvidence");
|
|
2385
2385
|
|
|
2386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2387
2387
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2388
2388
|
const { identityExternalId, ...fields2 } = p;
|
|
2389
2389
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2522,7 +2522,7 @@ unlinked`, format)],
|
|
|
2522
2522
|
return report;
|
|
2523
2523
|
}, "pull");
|
|
2524
2524
|
|
|
2525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2526
2526
|
var text5 = string();
|
|
2527
2527
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2528
2528
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2687,10 +2687,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2687
2687
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2688
2688
|
}), "eventItem");
|
|
2689
2689
|
|
|
2690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2691
2691
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2692
2692
|
|
|
2693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2694
2694
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2695
2695
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2696
2696
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2720,14 +2720,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2720
2720
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2721
2721
|
}, "validateMeetingRelatedHistory");
|
|
2722
2722
|
|
|
2723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2724
2724
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2725
2725
|
|
|
2726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2727
2727
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2728
2728
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2729
2729
|
|
|
2730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2731
2731
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2732
2732
|
input.signal?.throwIfAborted();
|
|
2733
2733
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2748,10 +2748,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2748
2748
|
return { ...input, limit, maxReadBytes };
|
|
2749
2749
|
}, "validateMeetingSeriesHistory");
|
|
2750
2750
|
|
|
2751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2752
2752
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2753
2753
|
|
|
2754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2755
2755
|
function invalid3(field, response = false) {
|
|
2756
2756
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2757
2757
|
}
|
|
@@ -2780,7 +2780,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2780
2780
|
cursorDetails(value);
|
|
2781
2781
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2782
2782
|
|
|
2783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2784
2784
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2785
2785
|
const zone = timeZone ?? "UTC";
|
|
2786
2786
|
try {
|
|
@@ -2859,7 +2859,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2859
2859
|
};
|
|
2860
2860
|
}, "aggregateMeetingStats");
|
|
2861
2861
|
|
|
2862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2863
2863
|
var LINK_KINDS = [
|
|
2864
2864
|
"links-to",
|
|
2865
2865
|
"blocked-by",
|
|
@@ -2880,7 +2880,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
2880
2880
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2881
2881
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2882
2882
|
|
|
2883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2884
2884
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2885
2885
|
var TASK_STATES = ["open", "done", "dismissed"];
|
|
2886
2886
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
@@ -2893,13 +2893,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
__name(closeTask, "closeTask");
|
|
2895
2895
|
|
|
2896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2897
2897
|
function matches2(task, filter) {
|
|
2898
2898
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
2899
2899
|
}
|
|
2900
2900
|
__name(matches2, "matches");
|
|
2901
2901
|
|
|
2902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2903
2903
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2904
2904
|
async function find(id3) {
|
|
2905
2905
|
const task = await store.get(id3);
|
|
@@ -2959,7 +2959,7 @@ function median(values) {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
__name(median, "median");
|
|
2961
2961
|
|
|
2962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2963
2963
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2964
2964
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
|
|
2965
2965
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|