@wirecat/tg-cli 0.115.0 → 0.117.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/bot/transport.d.ts +11 -9
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +58 -32
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-ODK7R4LY.js → adapter-VNQ72MBK.js} +98 -63
- package/dist/bundle/{all-profiles-AQYM65BS.js → all-profiles-3W2UQTCK.js} +10 -9
- package/dist/bundle/{anthropic-VBDSVNIM.js → anthropic-DFUW2KTG.js} +6 -6
- package/dist/bundle/{app-server-YOIHLBNS.js → app-server-5XJIMLHB.js} +49 -45
- package/dist/bundle/{bot-api-TRYLGQKK.js → bot-api-HRRBF3W6.js} +50 -49
- package/dist/bundle/{bot-history-7DTJLBBJ.js → bot-history-GBH5XE4N.js} +18 -17
- package/dist/bundle/{bun-XIMM6EHD.js → bun-ZMOYGG6F.js} +2 -2
- package/dist/bundle/{bun-sqlite-6B3BL5IV.js → bun-sqlite-6FZFMA7K.js} +5 -5
- package/dist/bundle/{chunk-DIABP7ZP.js → chunk-2452HCIV.js} +3 -3
- package/dist/bundle/{chunk-WMG4IGEB.js → chunk-2XLKZL6K.js} +77 -38
- package/dist/bundle/chunk-3GRX7WP6.js +35 -0
- package/dist/bundle/{chunk-WINKEV4F.js → chunk-3MQOLYAN.js} +4 -4
- package/dist/bundle/{chunk-KDOBY524.js → chunk-3RJYLN5V.js} +133 -27
- package/dist/bundle/{chunk-Y3AQHPAJ.js → chunk-4JDGN6OD.js} +1 -1
- package/dist/bundle/{chunk-JZXQZW2D.js → chunk-56Q5JV3Z.js} +2 -2
- package/dist/bundle/{chunk-XIYRHIBK.js → chunk-66FZBLRJ.js} +13 -13
- package/dist/bundle/{chunk-OUX3QMYI.js → chunk-6GFUL4OU.js} +228 -84
- package/dist/bundle/{chunk-O7CBGHI7.js → chunk-6HRN7BW6.js} +1 -1
- package/dist/bundle/{chunk-TQYMLXDS.js → chunk-7NBUT62O.js} +3 -3
- package/dist/bundle/{chunk-A4BQGSKI.js → chunk-7Y3RUEVY.js} +6 -6
- package/dist/bundle/chunk-AG6HWPQP.js +64 -0
- package/dist/bundle/{chunk-GCFU6WBE.js → chunk-AUBRELCM.js} +3 -3
- package/dist/bundle/{chunk-PEKTB3FQ.js → chunk-B2YPB5AE.js} +56 -27
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-BXTDAGM4.js} +3 -2
- package/dist/bundle/{chunk-QK6VLKG5.js → chunk-C6TUVV7E.js} +674 -316
- package/dist/bundle/{chunk-XY7IGVVS.js → chunk-EA2PGDER.js} +2 -2
- package/dist/bundle/{chunk-KIZT2MI6.js → chunk-EL6I4WTB.js} +1 -1
- package/dist/bundle/{chunk-77M3IAVU.js → chunk-EPCFXKTX.js} +27 -8
- package/dist/bundle/{chunk-L4CMCC3V.js → chunk-EZTYJ43A.js} +4 -2
- package/dist/bundle/{chunk-PEJHI7QO.js → chunk-F6KBVIJP.js} +4 -4
- package/dist/bundle/{chunk-UY7GJRGY.js → chunk-FAHHERJ7.js} +4 -4
- package/dist/bundle/{chunk-WOQGUIXE.js → chunk-FEKXHILZ.js} +1 -1
- package/dist/bundle/chunk-G7B5UIE7.js +182 -0
- package/dist/bundle/{chunk-RFRI2HFT.js → chunk-GFHNQBD2.js} +1 -1
- package/dist/bundle/{chunk-TMATSEP5.js → chunk-HORGORHK.js} +12 -12
- package/dist/bundle/{chunk-2TC76TLJ.js → chunk-HWYSRB64.js} +2 -2
- package/dist/bundle/{chunk-GX4DMI4H.js → chunk-HZZGOLGP.js} +15 -12
- package/dist/bundle/{chunk-MUZ4KYGY.js → chunk-JWIUK3SK.js} +2 -2
- package/dist/bundle/{chunk-WDNNN3J4.js → chunk-KVTLT4V7.js} +6 -6
- package/dist/bundle/{chunk-UBQ3LOF6.js → chunk-L5WNE4WS.js} +2 -2
- package/dist/bundle/{chunk-OMP6ALBT.js → chunk-M7V5XRM6.js} +3 -3
- package/dist/bundle/{chunk-LUIPXRKN.js → chunk-MLHKQDUN.js} +647 -129
- package/dist/bundle/{chunk-VQCWVZWG.js → chunk-MP7M6FFU.js} +6 -6
- package/dist/bundle/{chunk-5ROWSRK7.js → chunk-NUCDEOFC.js} +2 -2
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-VVKEWWSO.js → chunk-PTIB7NEE.js} +1 -1
- package/dist/bundle/{chunk-D4E345BC.js → chunk-Q7O4CQDO.js} +4 -2
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-BEQPZA3S.js → chunk-RDH2QBUE.js} +3 -3
- package/dist/bundle/{chunk-AVWPMJ6E.js → chunk-RDSLSV4M.js} +2 -2
- package/dist/bundle/{chunk-YCUQKFGD.js → chunk-SQXB5ZUZ.js} +3 -3
- package/dist/bundle/{chunk-RHUNMU4Q.js → chunk-TFBHDIGY.js} +4 -4
- package/dist/bundle/{chunk-OSP335AJ.js → chunk-TG6ZYL4B.js} +8 -8
- package/dist/bundle/{chunk-IUDIRZVU.js → chunk-UGPZCNYC.js} +991 -536
- package/dist/bundle/{chunk-AICS3TSF.js → chunk-UYK5AXSW.js} +4 -4
- package/dist/bundle/{chunk-PZAEI4NM.js → chunk-V2T7NYNU.js} +55 -46
- package/dist/bundle/{chunk-HZKWB6WS.js → chunk-V47NPSSV.js} +28 -28
- package/dist/bundle/{chunk-U67TSAAO.js → chunk-VMCQGZIA.js} +1893 -840
- package/dist/bundle/{chunk-CNO3R4O4.js → chunk-VRDVXXXD.js} +8 -8
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-M7B5IMH3.js → chunk-X3CD475M.js} +1336 -366
- package/dist/bundle/chunk-XW5C4TI7.js +91 -0
- package/dist/bundle/{chunk-NTW5ZE47.js → chunk-YHZFGUAP.js} +39 -33
- package/dist/bundle/{chunk-BIEBJLYO.js → chunk-YIXXH74F.js} +2 -2
- package/dist/bundle/{chunk-BPPRR7TV.js → chunk-Z4QKLHJW.js} +15587 -1637
- package/dist/bundle/{chunk-POKTQZOM.js → chunk-ZPILMEFY.js} +12 -89
- package/dist/bundle/command-contract-KMMHARMR.js +33 -0
- package/dist/bundle/{decode-2GATBZGH.js → decode-YMSOY2AY.js} +5 -5
- package/dist/bundle/{dispatch-MJMW7WDH.js → dispatch-OP27MWX5.js} +8 -8
- package/dist/bundle/{echarts-GKEZEAL7.js → echarts-7XS55TQY.js} +2 -2
- package/dist/bundle/{embed-TBQPLA4Y.js → embed-QTOE7NN3.js} +6 -6
- package/dist/bundle/{embedder-B5DTNCRO.js → embedder-KBBRYSNH.js} +9 -9
- package/dist/bundle/{entry-A6DEW2TD.js → entry-HGEUYYMX.js} +7 -7
- package/dist/bundle/{failure-TLF3SISS.js → failure-4JUQFXJT.js} +2 -2
- package/dist/bundle/{first-run-3N5AABEY.js → first-run-CSGMEJXY.js} +11 -11
- package/dist/bundle/first-screen-K2PBNJNE.js +31 -0
- package/dist/bundle/{instructions-P5E34PQR.js → instructions-S6ZXCTFH.js} +1 -1
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{node-GKPRXS5Y.js → node-LCIUWXXG.js} +2 -2
- package/dist/bundle/{node-sqlite-GIDPALK3.js → node-sqlite-HL4WY4N2.js} +6 -6
- package/dist/bundle/{oauth-C57W4IMD.js → oauth-U4KIMDKG.js} +7 -7
- package/dist/bundle/{open-E6Q4WRPU.js → open-EH7OS7M7.js} +5 -5
- package/dist/bundle/{openai-5WMXY2KP.js → openai-W5TB3NA5.js} +14 -14
- package/dist/bundle/{process-U2P5Z6UF.js → process-3CVLTCTA.js} +1 -1
- package/dist/bundle/{program-FEUDU6GF.js → program-LOIZTK2P.js} +58 -50
- package/dist/bundle/{prompt-4NGAZGHE.js → prompt-IDNH7N3W.js} +5 -5
- package/dist/bundle/{proxy-transport-MGCJ7JAW.js → proxy-transport-4DPZB2W2.js} +5 -5
- package/dist/bundle/{recognize-EUHRBA7V.js → recognize-G5EWYXIF.js} +4 -4
- package/dist/bundle/{remote-3JHLB2FV.js → remote-4XTBZVZD.js} +7 -7
- package/dist/bundle/{rerank-ZZ45SZPC.js → rerank-OWSTDLZN.js} +7 -7
- package/dist/bundle/{serve-XOGX5FC5.js → serve-YCPSEWP3.js} +9 -9
- package/dist/bundle/server-KELKX6S3.js +60 -0
- package/dist/bundle/{server-I6O72XP5.js → server-ODG4A2KK.js} +35 -34
- package/dist/bundle/{state-BIUYTGH6.js → state-OL2235G5.js} +6 -6
- package/dist/bundle/{store-FOJFYOMR.js → store-5AACYNDM.js} +17 -12
- package/dist/bundle/store-maintenance-command-3J7WZYVN.js +50 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +7 -0
- package/dist/commands/session.js.map +1 -1
- package/dist/telegram/account.d.ts.map +1 -1
- package/dist/telegram/account.js +4 -1
- package/dist/telegram/account.js.map +1 -1
- package/dist/telegram/errors.d.ts.map +1 -1
- package/dist/telegram/errors.js +2 -1
- package/dist/telegram/errors.js.map +1 -1
- package/dist/telegram/feature.d.ts +4 -1
- package/dist/telegram/feature.d.ts.map +1 -1
- package/dist/telegram/feature.js +5 -2
- package/dist/telegram/feature.js.map +1 -1
- package/dist/telegram/login.d.ts +2 -0
- package/dist/telegram/login.d.ts.map +1 -1
- package/dist/telegram/login.js +31 -2
- package/dist/telegram/login.js.map +1 -1
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +24 -10
- package/dist/telegram/sending.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-63YKD7YA.js +0 -18
- package/dist/bundle/chunk-GWDMKEDY.js +0 -48
- package/dist/bundle/chunk-WMRFAK5B.js +0 -132
- package/dist/bundle/command-contract-YF4KGFXC.js +0 -32
- package/dist/bundle/first-screen-HANARM67.js +0 -30
- package/dist/bundle/server-DRE5MJ76.js +0 -59
- package/dist/bundle/store-maintenance-command-YKV2C34N.js +0 -49
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3RJYLN5V.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EA2PGDER.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UGPZCNYC.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -42,23 +42,23 @@ import {
|
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording,
|
|
44
44
|
traceOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-X3CD475M.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZPILMEFY.js";
|
|
52
52
|
import {
|
|
53
53
|
queryDescription
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-C6TUVV7E.js";
|
|
55
55
|
import {
|
|
56
56
|
MAX_BUFFERED_INPUT
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-RDSLSV4M.js";
|
|
58
58
|
import {
|
|
59
59
|
captureStreams,
|
|
60
60
|
traceIdOf
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-YHZFGUAP.js";
|
|
62
62
|
import {
|
|
63
63
|
COMPACT_FLAG,
|
|
64
64
|
SNAKE_CASE,
|
|
@@ -97,19 +97,19 @@ import {
|
|
|
97
97
|
unknown,
|
|
98
98
|
word,
|
|
99
99
|
writes
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-EPCFXKTX.js";
|
|
101
101
|
import {
|
|
102
102
|
CliError,
|
|
103
103
|
errorCodes
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-BXTDAGM4.js";
|
|
105
105
|
import {
|
|
106
106
|
__name
|
|
107
107
|
} from "./chunk-ZVVMGPBJ.js";
|
|
108
108
|
|
|
109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
110
110
|
import { Readable } from "node:stream";
|
|
111
111
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
113
113
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
114
114
|
var lintRuleSchema = strictObject({
|
|
115
115
|
id: word,
|
|
@@ -227,16 +227,17 @@ var LINT_RULES = defineLintRules([
|
|
|
227
227
|
}
|
|
228
228
|
]);
|
|
229
229
|
var baselineSchema = array(text);
|
|
230
|
-
var
|
|
230
|
+
var overrideSchema = strictObject({
|
|
231
231
|
rule: word,
|
|
232
232
|
target: text,
|
|
233
233
|
reason: pipe(text, minLength(10, "say why, in a sentence")),
|
|
234
234
|
/** A GitHub handle or a team, `@octocat`. */
|
|
235
235
|
owner: pipe(string(), regex(/^@[\w.-]+(\/[\w.-]+)?$/, "a GitHub handle or team, such as @octocat")),
|
|
236
236
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
237
|
-
})
|
|
237
|
+
});
|
|
238
|
+
var overridesSchema = array(overrideSchema);
|
|
238
239
|
|
|
239
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
240
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
240
241
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
241
242
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
242
243
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -332,6 +333,14 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
332
333
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
|
|
333
334
|
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
334
335
|
differences: []
|
|
336
|
+
},
|
|
337
|
+
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call recordings, not
|
|
338
|
+
// zoom-cli's: both are compared on the root commands every CLI shares, the way gcal and mail are on theirs.
|
|
339
|
+
{
|
|
340
|
+
name: "shared-roots",
|
|
341
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
342
|
+
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
343
|
+
differences: MEMO_HAS_NO_PROFILES
|
|
335
344
|
}
|
|
336
345
|
]);
|
|
337
346
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -345,7 +354,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
345
354
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
346
355
|
]);
|
|
347
356
|
|
|
348
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
349
358
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
350
359
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
351
360
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -361,7 +370,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
361
370
|
}
|
|
362
371
|
]);
|
|
363
372
|
|
|
364
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
373
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
365
374
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
366
375
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
367
376
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -383,7 +392,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
383
392
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
384
393
|
]);
|
|
385
394
|
|
|
386
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
395
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
387
396
|
var CALENDAR_FLAGS = [
|
|
388
397
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
389
398
|
{
|
|
@@ -457,7 +466,47 @@ var CALENDAR_FLAGS = [
|
|
|
457
466
|
}
|
|
458
467
|
];
|
|
459
468
|
|
|
460
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
469
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
470
|
+
var CRM_FLAGS = [
|
|
471
|
+
{
|
|
472
|
+
name: "--pipeline",
|
|
473
|
+
value: "<pipeline>",
|
|
474
|
+
role: "value",
|
|
475
|
+
type: "string",
|
|
476
|
+
meaning: "a CRM pipeline: pipeline:<id>, or a name only one pipeline has"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
name: "--stage",
|
|
480
|
+
value: "<stage>",
|
|
481
|
+
role: "value",
|
|
482
|
+
type: "string",
|
|
483
|
+
meaning: "a stage of the record's pipeline, by the CRM's id or its name"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "--amount",
|
|
487
|
+
value: "<decimal>",
|
|
488
|
+
role: "value",
|
|
489
|
+
type: "string",
|
|
490
|
+
meaning: "a sum of money as a decimal, such as 1500.50, in --currency"
|
|
491
|
+
},
|
|
492
|
+
{ name: "--currency", value: "<code>", role: "value", type: "string", meaning: "an ISO 4217 code, such as EUR" },
|
|
493
|
+
{
|
|
494
|
+
name: "--close-date",
|
|
495
|
+
value: "<date>",
|
|
496
|
+
role: "value",
|
|
497
|
+
type: "time",
|
|
498
|
+
meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: "--owner",
|
|
502
|
+
value: "<user>",
|
|
503
|
+
role: "value",
|
|
504
|
+
type: "id",
|
|
505
|
+
meaning: "the CRM user a record is assigned to, by the CRM's id"
|
|
506
|
+
}
|
|
507
|
+
];
|
|
508
|
+
|
|
509
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
461
510
|
var HOW_FLAGS = [
|
|
462
511
|
{
|
|
463
512
|
name: "--limit",
|
|
@@ -782,6 +831,7 @@ var HOW_FLAGS = [
|
|
|
782
831
|
meaning: "tell the people it concerns about it: the chat's members, or an event's attendees"
|
|
783
832
|
},
|
|
784
833
|
{ name: "--no-notify", role: "mode", type: "switch", meaning: "tell nobody about it" },
|
|
834
|
+
{ name: "--open-new", role: "mode", type: "switch", meaning: "a read again for tasks also opens new tasks" },
|
|
785
835
|
{ name: "--offline", role: "mode", type: "switch", meaning: "answer from what was recorded and never connect" },
|
|
786
836
|
{
|
|
787
837
|
name: "--operation-id",
|
|
@@ -1451,7 +1501,7 @@ var HOW_FLAGS = [
|
|
|
1451
1501
|
}
|
|
1452
1502
|
];
|
|
1453
1503
|
|
|
1454
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1504
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1455
1505
|
var MAIL_FLAGS = [
|
|
1456
1506
|
{
|
|
1457
1507
|
name: "--cc",
|
|
@@ -1472,10 +1522,103 @@ var MAIL_FLAGS = [
|
|
|
1472
1522
|
role: "value",
|
|
1473
1523
|
type: "switch",
|
|
1474
1524
|
meaning: "with --reply-to, an e-mail reply also goes to everyone the message went to"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
name: "--trimmed",
|
|
1528
|
+
role: "output",
|
|
1529
|
+
type: "switch",
|
|
1530
|
+
meaning: "each e-mail's own text, without the quoted earlier mail and the signature; refused with --full"
|
|
1531
|
+
}
|
|
1532
|
+
];
|
|
1533
|
+
|
|
1534
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1535
|
+
var PRIVACY_FLAGS = [
|
|
1536
|
+
{
|
|
1537
|
+
name: "--about-text",
|
|
1538
|
+
value: "<who>",
|
|
1539
|
+
role: "value",
|
|
1540
|
+
type: "choice",
|
|
1541
|
+
meaning: "who sees the about text: everyone, contacts or nobody"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
name: "--calls",
|
|
1545
|
+
value: "<who>",
|
|
1546
|
+
role: "value",
|
|
1547
|
+
type: "choice",
|
|
1548
|
+
meaning: "whose calls ring: everyone, contacts or nobody"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
name: "--chat-invites",
|
|
1552
|
+
value: "<who>",
|
|
1553
|
+
role: "value",
|
|
1554
|
+
type: "choice",
|
|
1555
|
+
meaning: "who may add the account to groups and channels: everyone, contacts or nobody"
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
name: "--find-by-phone",
|
|
1559
|
+
value: "<who>",
|
|
1560
|
+
role: "value",
|
|
1561
|
+
type: "choice",
|
|
1562
|
+
meaning: "who finds the account by its number: everyone, contacts or nobody"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
name: "--hide-online",
|
|
1566
|
+
value: "<on|off>",
|
|
1567
|
+
role: "value",
|
|
1568
|
+
type: "choice",
|
|
1569
|
+
meaning: "hide online status and last seen"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
name: "--last-seen",
|
|
1573
|
+
value: "<who>",
|
|
1574
|
+
role: "value",
|
|
1575
|
+
type: "choice",
|
|
1576
|
+
meaning: "who sees when the account was last online: everyone, contacts or nobody"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
name: "--phone-number",
|
|
1580
|
+
value: "<who>",
|
|
1581
|
+
role: "value",
|
|
1582
|
+
type: "choice",
|
|
1583
|
+
meaning: "who sees the number: everyone, contacts or nobody"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
name: "--profile-photo",
|
|
1587
|
+
value: "<who>",
|
|
1588
|
+
role: "value",
|
|
1589
|
+
type: "choice",
|
|
1590
|
+
meaning: "who sees the profile photo: everyone, contacts or nobody"
|
|
1591
|
+
},
|
|
1592
|
+
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1593
|
+
];
|
|
1594
|
+
|
|
1595
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1596
|
+
var SCHEDULE_FLAGS = [
|
|
1597
|
+
{
|
|
1598
|
+
name: "--notify-on",
|
|
1599
|
+
value: "<when>",
|
|
1600
|
+
role: "value",
|
|
1601
|
+
type: "choice",
|
|
1602
|
+
meaning: "when a scheduled run tells the owner: always, failures or never"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
name: "--deliver-to",
|
|
1606
|
+
value: "<route>",
|
|
1607
|
+
role: "value",
|
|
1608
|
+
type: "string",
|
|
1609
|
+
meaning: "where a scheduled run's result also goes, by the owner's own CLI: telegram-bot:<profile>/<chat> or email:<profile>/<address>; repeat it for more. Not --to, which names who a message is for"
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
name: "--max-cost-per-day",
|
|
1613
|
+
value: "<usd>",
|
|
1614
|
+
role: "budget",
|
|
1615
|
+
type: "number",
|
|
1616
|
+
meaning: "start no run for the rest of the day once the day's runs cost this much; 0 for no cap",
|
|
1617
|
+
unit: "US dollars"
|
|
1475
1618
|
}
|
|
1476
1619
|
];
|
|
1477
1620
|
|
|
1478
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1621
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1479
1622
|
var WHAT_FLAGS = [
|
|
1480
1623
|
{
|
|
1481
1624
|
name: "--analysis-provider",
|
|
@@ -1898,6 +2041,20 @@ var WHAT_FLAGS = [
|
|
|
1898
2041
|
meaning: "look again from this day, for what arrived late"
|
|
1899
2042
|
},
|
|
1900
2043
|
{ name: "--run", value: "<id>", role: "target", type: "id", meaning: "the run it is about" },
|
|
2044
|
+
{
|
|
2045
|
+
name: "--who",
|
|
2046
|
+
value: "<side>",
|
|
2047
|
+
role: "target",
|
|
2048
|
+
type: "choice",
|
|
2049
|
+
meaning: "whose replies are measured: me (the owner's) or others (the other side's)"
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
name: "--write",
|
|
2053
|
+
value: "<id>",
|
|
2054
|
+
role: "target",
|
|
2055
|
+
type: "id",
|
|
2056
|
+
meaning: "one write of a run, by the operation_id its answer listed: undo or act on that write alone"
|
|
2057
|
+
},
|
|
1901
2058
|
{
|
|
1902
2059
|
name: "--target",
|
|
1903
2060
|
value: "<ref>",
|
|
@@ -2100,63 +2257,6 @@ var WHAT_FLAGS = [
|
|
|
2100
2257
|
type: "path",
|
|
2101
2258
|
meaning: "an Ogg Opus file sent as a voice message"
|
|
2102
2259
|
},
|
|
2103
|
-
{
|
|
2104
|
-
name: "--about-text",
|
|
2105
|
-
value: "<who>",
|
|
2106
|
-
role: "value",
|
|
2107
|
-
type: "choice",
|
|
2108
|
-
meaning: "who sees the about text: everyone, contacts or nobody"
|
|
2109
|
-
},
|
|
2110
|
-
{
|
|
2111
|
-
name: "--calls",
|
|
2112
|
-
value: "<who>",
|
|
2113
|
-
role: "value",
|
|
2114
|
-
type: "choice",
|
|
2115
|
-
meaning: "whose calls ring: everyone, contacts or nobody"
|
|
2116
|
-
},
|
|
2117
|
-
{
|
|
2118
|
-
name: "--chat-invites",
|
|
2119
|
-
value: "<who>",
|
|
2120
|
-
role: "value",
|
|
2121
|
-
type: "choice",
|
|
2122
|
-
meaning: "who may add the account to groups and channels: everyone, contacts or nobody"
|
|
2123
|
-
},
|
|
2124
|
-
{
|
|
2125
|
-
name: "--find-by-phone",
|
|
2126
|
-
value: "<who>",
|
|
2127
|
-
role: "value",
|
|
2128
|
-
type: "choice",
|
|
2129
|
-
meaning: "who finds the account by its number: everyone, contacts or nobody"
|
|
2130
|
-
},
|
|
2131
|
-
{
|
|
2132
|
-
name: "--hide-online",
|
|
2133
|
-
value: "<on|off>",
|
|
2134
|
-
role: "value",
|
|
2135
|
-
type: "choice",
|
|
2136
|
-
meaning: "hide online status and last seen"
|
|
2137
|
-
},
|
|
2138
|
-
{
|
|
2139
|
-
name: "--last-seen",
|
|
2140
|
-
value: "<who>",
|
|
2141
|
-
role: "value",
|
|
2142
|
-
type: "choice",
|
|
2143
|
-
meaning: "who sees when the account was last online: everyone, contacts or nobody"
|
|
2144
|
-
},
|
|
2145
|
-
{
|
|
2146
|
-
name: "--phone-number",
|
|
2147
|
-
value: "<who>",
|
|
2148
|
-
role: "value",
|
|
2149
|
-
type: "choice",
|
|
2150
|
-
meaning: "who sees the number: everyone, contacts or nobody"
|
|
2151
|
-
},
|
|
2152
|
-
{
|
|
2153
|
-
name: "--profile-photo",
|
|
2154
|
-
value: "<who>",
|
|
2155
|
-
role: "value",
|
|
2156
|
-
type: "choice",
|
|
2157
|
-
meaning: "who sees the profile photo: everyone, contacts or nobody"
|
|
2158
|
-
},
|
|
2159
|
-
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" },
|
|
2160
2260
|
{
|
|
2161
2261
|
name: "--until",
|
|
2162
2262
|
value: "<time>",
|
|
@@ -2259,6 +2359,13 @@ var WHAT_FLAGS = [
|
|
|
2259
2359
|
type: "id",
|
|
2260
2360
|
meaning: "never show this chat in it; repeat it for more"
|
|
2261
2361
|
},
|
|
2362
|
+
{
|
|
2363
|
+
name: "--field",
|
|
2364
|
+
value: "<key=value>",
|
|
2365
|
+
role: "value",
|
|
2366
|
+
type: "string",
|
|
2367
|
+
meaning: "set one named field on a write, as key=value; repeat it for more"
|
|
2368
|
+
},
|
|
2262
2369
|
{
|
|
2263
2370
|
name: "--file",
|
|
2264
2371
|
value: "<file>",
|
|
@@ -2473,7 +2580,7 @@ var WHAT_FLAGS = [
|
|
|
2473
2580
|
}
|
|
2474
2581
|
];
|
|
2475
2582
|
|
|
2476
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2583
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2477
2584
|
var FLAG_TYPES = [
|
|
2478
2585
|
"switch",
|
|
2479
2586
|
"count",
|
|
@@ -2614,6 +2721,7 @@ var verbs = [
|
|
|
2614
2721
|
// Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
|
|
2615
2722
|
["link", "record that two identities are one person"],
|
|
2616
2723
|
["unlink", "undo a link"],
|
|
2724
|
+
["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
|
|
2617
2725
|
["lookup", "ask the messenger who is behind a phone number"],
|
|
2618
2726
|
[
|
|
2619
2727
|
"inspect",
|
|
@@ -2657,6 +2765,10 @@ var verbs = [
|
|
|
2657
2765
|
["move", "move a thing to another place in the source: a file to a folder, an event to a calendar"],
|
|
2658
2766
|
["copy", "copy a file in the source"],
|
|
2659
2767
|
["run", "run a saved job once, now, as its timer would"],
|
|
2768
|
+
["exec", "what a timer itself starts: one saved schedule, from its file; a person uses run"],
|
|
2769
|
+
// schedule's creators are named for what the timer starts; the owner kept these names over `create --kind`.
|
|
2770
|
+
["agent", "save a timer that starts an agent with a prompt, read-only; a verb under schedule, never a resource"],
|
|
2771
|
+
["command", "save a timer that runs one of this tool's own commands; a verb under schedule"],
|
|
2660
2772
|
["claim", "take a thing for a while so no other agent works it at once; the claim lapses by itself"],
|
|
2661
2773
|
["release", "give back what claim took, before it lapses"],
|
|
2662
2774
|
["merge", "fold a duplicate into the thing that stays; nothing is deleted"],
|
|
@@ -2710,6 +2822,20 @@ var collections = [
|
|
|
2710
2822
|
"derived records attached to a selected entity, with explicit coverage of included and omitted facets"
|
|
2711
2823
|
],
|
|
2712
2824
|
["organizations", "companies, teams, families or communities"],
|
|
2825
|
+
[
|
|
2826
|
+
"records",
|
|
2827
|
+
"documents of the owner's business, such as an invoice or a receipt, kept with the things they are about"
|
|
2828
|
+
],
|
|
2829
|
+
["invoices", "bills the owner sends or receives, with their amounts and due dates"],
|
|
2830
|
+
["orders", "what a customer asked for and the owner owes or delivers"],
|
|
2831
|
+
["payments", "money that moved in or out, each one matched to the invoices it settles"],
|
|
2832
|
+
["deals", "sales the owner works on, each at a stage of a pipeline, with an amount and an outcome"],
|
|
2833
|
+
["leads", "possible customers not yet qualified into a deal"],
|
|
2834
|
+
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2835
|
+
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2836
|
+
["products", "goods and services the owner sells, with their prices"],
|
|
2837
|
+
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2838
|
+
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2713
2839
|
[
|
|
2714
2840
|
"identities",
|
|
2715
2841
|
"ways to reach a person or an organization: an account in one messenger or mailbox, an e-mail address, a phone"
|
|
@@ -2727,6 +2853,10 @@ var collections = [
|
|
|
2727
2853
|
["recordings", "the files a provider recorded of a meeting"],
|
|
2728
2854
|
["jobs", "work this tool runs in the background or on a timer"],
|
|
2729
2855
|
["actions", "what an agent proposes to do; the owner confirms or rejects each"],
|
|
2856
|
+
[
|
|
2857
|
+
"findings",
|
|
2858
|
+
"what an agent read in stored mail, staged in batches with citations; nothing is recorded until the owner confirms. What it proposes to do is actions"
|
|
2859
|
+
],
|
|
2730
2860
|
["agents", "the agents whose actions are recorded in the shared store"],
|
|
2731
2861
|
["reminders", "scheduled notices about stored work, claimed and acknowledged with delivery receipts"],
|
|
2732
2862
|
["key-documents", "selected source documents that a project keeps as its starting references"],
|
|
@@ -2768,7 +2898,11 @@ var singulars = [
|
|
|
2768
2898
|
["api", "the source's own API, one command per operation"],
|
|
2769
2899
|
["privacy", "who may find, see, call or add the account"],
|
|
2770
2900
|
["metadata", "a profile's cached source attributes"],
|
|
2771
|
-
["auth", "the credentials a bot profile uses: its token and the secrets beside it"]
|
|
2901
|
+
["auth", "the credentials a bot profile uses: its token and the secrets beside it"],
|
|
2902
|
+
[
|
|
2903
|
+
"schedule",
|
|
2904
|
+
"a profile's timers the owner saved, each running a command of this tool or an agent; the tool's own background work is jobs"
|
|
2905
|
+
]
|
|
2772
2906
|
];
|
|
2773
2907
|
var views = [
|
|
2774
2908
|
["tree", "the parent and child hierarchy of stored sources"],
|
|
@@ -2796,6 +2930,7 @@ var views = [
|
|
|
2796
2930
|
["newcomers", "members observed joining during the selected time window"],
|
|
2797
2931
|
["retention", "whether members of a selected cohort remain or return over time"],
|
|
2798
2932
|
["responses", "observed replies between participants and the time taken to answer"],
|
|
2933
|
+
["waiting", "chats whose newest message waits on the owner's reply"],
|
|
2799
2934
|
["discussion", "source posts compared by known views and observed discussion replies"],
|
|
2800
2935
|
["unanswered", "questions without an observed qualifying answer"],
|
|
2801
2936
|
["me", "the account a profile's token belongs to"],
|
|
@@ -2810,6 +2945,7 @@ var roots = [
|
|
|
2810
2945
|
["serve", "the long-running process"],
|
|
2811
2946
|
["setup", "the guided first run: log in or link the account, then install the agent skill"],
|
|
2812
2947
|
["doctor", "check this machine's setup"],
|
|
2948
|
+
["recover", "repair a damaged store: what it would do, then its run subcommand does it"],
|
|
2813
2949
|
["upgrade", "install a newer version of this tool"],
|
|
2814
2950
|
["commands", "the command tree as data"],
|
|
2815
2951
|
["guide", "scenarios: the commands for a common task, in order, and why each"],
|
|
@@ -2831,10 +2967,18 @@ var VOCABULARY = defineVocabulary({
|
|
|
2831
2967
|
],
|
|
2832
2968
|
views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2833
2969
|
roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2834
|
-
flags: [
|
|
2970
|
+
flags: [
|
|
2971
|
+
...HOW_FLAGS,
|
|
2972
|
+
...WHAT_FLAGS,
|
|
2973
|
+
...PRIVACY_FLAGS,
|
|
2974
|
+
...CALENDAR_FLAGS,
|
|
2975
|
+
...MAIL_FLAGS,
|
|
2976
|
+
...CRM_FLAGS,
|
|
2977
|
+
...SCHEDULE_FLAGS
|
|
2978
|
+
]
|
|
2835
2979
|
});
|
|
2836
2980
|
|
|
2837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2838
2982
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2839
2983
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2840
2984
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3057,7 +3201,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3057
3201
|
}
|
|
3058
3202
|
}, "runCommandForAgent");
|
|
3059
3203
|
|
|
3060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3061
3205
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3062
3206
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3063
3207
|
var message = pipe(
|
|
@@ -3316,7 +3460,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3316
3460
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3317
3461
|
}, "failed");
|
|
3318
3462
|
|
|
3319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3320
3464
|
import { randomUUID } from "node:crypto";
|
|
3321
3465
|
var MATCHES = 8;
|
|
3322
3466
|
var ANSWER = answerSchema();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
pipe,
|
|
11
11
|
safeParse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EPCFXKTX.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BXTDAGM4.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3GRX7WP6.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YHZFGUAP.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BXTDAGM4.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
count,
|
|
5
|
+
id,
|
|
6
|
+
text,
|
|
7
|
+
time
|
|
8
|
+
} from "./chunk-C6TUVV7E.js";
|
|
9
|
+
import {
|
|
10
|
+
array,
|
|
11
|
+
nullable,
|
|
12
|
+
optional,
|
|
13
|
+
picklist,
|
|
14
|
+
record,
|
|
15
|
+
reference,
|
|
16
|
+
strictObject,
|
|
17
|
+
string,
|
|
18
|
+
unknown
|
|
19
|
+
} from "./chunk-EPCFXKTX.js";
|
|
20
|
+
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
|
+
var link = {
|
|
23
|
+
target_text: nullable(text),
|
|
24
|
+
kind: text,
|
|
25
|
+
anchor: nullable(text)
|
|
26
|
+
};
|
|
27
|
+
var note = strictObject({
|
|
28
|
+
ref: reference,
|
|
29
|
+
kind: optional(picklist(["note", "document"])),
|
|
30
|
+
provider: optional(text),
|
|
31
|
+
account: optional(text),
|
|
32
|
+
url: optional(text),
|
|
33
|
+
id,
|
|
34
|
+
source: picklist(["file", "internal"]),
|
|
35
|
+
folder_id: nullable(id),
|
|
36
|
+
path: nullable(text),
|
|
37
|
+
title: nullable(text),
|
|
38
|
+
text,
|
|
39
|
+
/** Raises on every edit; `notes edit --revision` takes it, so an edit made meanwhile is refused, not lost. */
|
|
40
|
+
revision: count,
|
|
41
|
+
/** A file's front matter as parsed, keys as the file writes them; null for a note without it. */
|
|
42
|
+
front_matter: nullable(record(string(), unknown())),
|
|
43
|
+
/** The hash of a file's bytes when last imported; null for a note written here. */
|
|
44
|
+
content_hash: nullable(text),
|
|
45
|
+
/** The file the note was exported to, where that is known; null otherwise. */
|
|
46
|
+
export_path: nullable(text),
|
|
47
|
+
created_at: time,
|
|
48
|
+
/** When the store's copy last changed. */
|
|
49
|
+
updated_at: time,
|
|
50
|
+
deleted_at: optional(nullable(time)),
|
|
51
|
+
tags: optional(array(text)),
|
|
52
|
+
/** The first line holding a word of a search. */
|
|
53
|
+
excerpt: optional(text),
|
|
54
|
+
/** Which halves of a search found it. */
|
|
55
|
+
found_by: optional(array(picklist(["title", "words", "meaning"]))),
|
|
56
|
+
/** What the note links to; `to` is null while the name written matches nothing stored. */
|
|
57
|
+
links: optional(array(strictObject({ to: nullable(reference), ...link }))),
|
|
58
|
+
/** The notes and messages that link to it. */
|
|
59
|
+
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
note
|
|
64
|
+
};
|