@wirecat/tg-cli 0.129.0 → 0.131.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.
Files changed (112) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-2XFPXBTA.js → adapter-TA637IRT.js} +51 -51
  3. package/dist/bundle/{all-profiles-GXFPZLYU.js → all-profiles-7M3GBCB6.js} +5 -5
  4. package/dist/bundle/{anthropic-FHS5XNK5.js → anthropic-P3THLZWO.js} +2 -2
  5. package/dist/bundle/{app-server-IZMFSFP2.js → app-server-OE5EAXIY.js} +45 -45
  6. package/dist/bundle/{bot-api-LQP75V5I.js → bot-api-WYR2C4A5.js} +52 -52
  7. package/dist/bundle/{bot-history-EJQOD4AQ.js → bot-history-PKJTHU7L.js} +16 -16
  8. package/dist/bundle/{bun-GBAZFRCV.js → bun-XMZJDDEA.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-JB4BX6X7.js → bun-sqlite-F5RWCB2N.js} +3 -3
  10. package/dist/bundle/{chunk-XXW6PFAX.js → chunk-2OXR2MRV.js} +1 -1
  11. package/dist/bundle/{chunk-HHUK3XO5.js → chunk-2TOJQQKS.js} +1 -1
  12. package/dist/bundle/{chunk-TGRB4SSZ.js → chunk-2U6XE4HI.js} +4 -4
  13. package/dist/bundle/{chunk-6M3FAHPS.js → chunk-34PRGA7E.js} +2 -2
  14. package/dist/bundle/{chunk-4BJAQNJ5.js → chunk-43KSYUZU.js} +5 -5
  15. package/dist/bundle/{chunk-66UG67CE.js → chunk-5AJ5RLJW.js} +10 -10
  16. package/dist/bundle/{chunk-7F3LOHRB.js → chunk-5N7TJ6TJ.js} +154 -151
  17. package/dist/bundle/{chunk-QJDHRBXL.js → chunk-5ZIT6JXP.js} +6 -6
  18. package/dist/bundle/{chunk-RZPMFVWM.js → chunk-6BPM3LNR.js} +5 -5
  19. package/dist/bundle/{chunk-EUL7HMUL.js → chunk-6O5AD3GA.js} +1 -1
  20. package/dist/bundle/{chunk-PWQKGFS2.js → chunk-6TJTQ4I4.js} +28 -28
  21. package/dist/bundle/{chunk-KY3JLXW2.js → chunk-76UAXRDY.js} +2 -2
  22. package/dist/bundle/{chunk-OJMDKWWL.js → chunk-AEIDEIVB.js} +355 -321
  23. package/dist/bundle/{chunk-M327UNS6.js → chunk-AJQ6JFLY.js} +5 -5
  24. package/dist/bundle/{chunk-VTJ3AOTT.js → chunk-BFERGEBI.js} +16 -16
  25. package/dist/bundle/{chunk-OOQVHMCS.js → chunk-BXW6FGLD.js} +11 -11
  26. package/dist/bundle/{chunk-MVFSWKTM.js → chunk-EXMJDHBM.js} +10 -10
  27. package/dist/bundle/{chunk-S5UTBEV3.js → chunk-EZBMLKBK.js} +35 -34
  28. package/dist/bundle/{chunk-NRCY3WBC.js → chunk-GNIROVSK.js} +1 -1
  29. package/dist/bundle/{chunk-C4ALE7CH.js → chunk-H655CMXJ.js} +1 -1
  30. package/dist/bundle/{chunk-OKTRB4ZQ.js → chunk-ITYDJIRC.js} +1 -1
  31. package/dist/bundle/{chunk-QDEP2QOA.js → chunk-IULSIKEM.js} +2 -2
  32. package/dist/bundle/{chunk-FH4YIBBH.js → chunk-J2QQZVEN.js} +2 -2
  33. package/dist/bundle/{chunk-OWVQMK7G.js → chunk-JDLNI7BU.js} +518 -382
  34. package/dist/bundle/{chunk-B5RGPZDZ.js → chunk-JF4AJNCE.js} +5 -5
  35. package/dist/bundle/{chunk-2LPODKIF.js → chunk-JSE4OBYI.js} +16 -114
  36. package/dist/bundle/{chunk-SZB5WRMI.js → chunk-L2SMUTJY.js} +1 -1
  37. package/dist/bundle/{chunk-RAFK5KXU.js → chunk-LDSTUBLY.js} +7 -7
  38. package/dist/bundle/{chunk-XHX5D5VE.js → chunk-LEPDRO3O.js} +147 -62
  39. package/dist/bundle/{chunk-IV6SIKVH.js → chunk-LJO6MMQG.js} +3 -3
  40. package/dist/bundle/{chunk-LQPZDDDP.js → chunk-LTP4BYHJ.js} +5 -5
  41. package/dist/bundle/{chunk-QBNEWEJC.js → chunk-LWSOCKOD.js} +2 -2
  42. package/dist/bundle/{chunk-F6CV4KUN.js → chunk-MYC3M4BY.js} +2 -2
  43. package/dist/bundle/{chunk-I5PILOTU.js → chunk-NOZZHEMD.js} +1 -1
  44. package/dist/bundle/{chunk-ZRQQOGAZ.js → chunk-NTORQXAS.js} +3 -3
  45. package/dist/bundle/{chunk-LPT5T6PU.js → chunk-NXNSEFGR.js} +22 -22
  46. package/dist/bundle/{chunk-3XMUP55N.js → chunk-O73DZURO.js} +9 -9
  47. package/dist/bundle/{chunk-2JZJPVBH.js → chunk-O7X6RM5R.js} +4 -4
  48. package/dist/bundle/{chunk-FIO5NMK3.js → chunk-OOSX7K7G.js} +6 -6
  49. package/dist/bundle/{chunk-IRWSZJYL.js → chunk-OPG54IFH.js} +51 -51
  50. package/dist/bundle/{chunk-O2ULG7OO.js → chunk-OX5EAUKF.js} +2 -2
  51. package/dist/bundle/{chunk-RPWYTOLI.js → chunk-P6KGEZIS.js} +1 -1
  52. package/dist/bundle/{chunk-QFVIHBLD.js → chunk-PD4RREQB.js} +1 -1
  53. package/dist/bundle/{chunk-IBSHQWIJ.js → chunk-PHGH5N4C.js} +1 -1
  54. package/dist/bundle/{chunk-EB2JE722.js → chunk-QGFUUJPL.js} +1 -1
  55. package/dist/bundle/{chunk-GYCKRIRK.js → chunk-S2IET7WM.js} +2 -2
  56. package/dist/bundle/{chunk-BMSS3PCY.js → chunk-SLT2PBFP.js} +13 -13
  57. package/dist/bundle/{chunk-CKJ73EF3.js → chunk-SQ2JLZFK.js} +1 -1
  58. package/dist/bundle/{chunk-GSHTLLCJ.js → chunk-SS5H2XAT.js} +2 -2
  59. package/dist/bundle/{chunk-VSPSHBAC.js → chunk-TT6OHNV2.js} +1 -1
  60. package/dist/bundle/{chunk-P4FZJO5F.js → chunk-UGYC2FV5.js} +1 -1
  61. package/dist/bundle/{chunk-6JBRQ6PM.js → chunk-UUNQV4YL.js} +48 -13
  62. package/dist/bundle/{chunk-X5H5NERR.js → chunk-VNJZXV7E.js} +4 -4
  63. package/dist/bundle/{chunk-MS6YEIG5.js → chunk-VVUUP5NF.js} +12 -12
  64. package/dist/bundle/{chunk-QJLCEOAP.js → chunk-WG6UZJ3E.js} +1 -1
  65. package/dist/bundle/{chunk-GGGBPWUS.js → chunk-WUIKJJ5A.js} +7 -7
  66. package/dist/bundle/{chunk-3KZG63EH.js → chunk-XC2YJDDK.js} +2 -2
  67. package/dist/bundle/{chunk-SYZXOEHY.js → chunk-YJ4BPNWI.js} +3 -3
  68. package/dist/bundle/{chunk-G2SMVYBU.js → chunk-YZTMQE62.js} +1 -1
  69. package/dist/bundle/{chunk-VXWDQDRU.js → chunk-Z2TCTTPJ.js} +497 -410
  70. package/dist/bundle/command-contract-DAQYQF6R.js +37 -0
  71. package/dist/bundle/{command-server-entry-YR6ONDWO.js → command-server-entry-6FH3RXJ2.js} +23 -23
  72. package/dist/bundle/{decode-VUKGWFSW.js → decode-UBRT2QDP.js} +2 -2
  73. package/dist/bundle/{echarts-GOV5M733.js → echarts-PG45GQLR.js} +2 -2
  74. package/dist/bundle/{embed-2IVIYNAJ.js → embed-BUQDSZ57.js} +3 -3
  75. package/dist/bundle/{embedder-2HU7JYZK.js → embedder-TXA3EV7O.js} +6 -6
  76. package/dist/bundle/{entry-CSTCXYI5.js → entry-JWIEF57D.js} +6 -6
  77. package/dist/bundle/{first-run-3IZGXZT5.js → first-run-5VTHKMK5.js} +6 -6
  78. package/dist/bundle/first-screen-PTHIZ5ZF.js +35 -0
  79. package/dist/bundle/{instructions-YSXV6FAC.js → instructions-ZMEPWTFO.js} +1 -1
  80. package/dist/bundle/{meeting-combined-X4E3LSIJ.js → meeting-combined-DU3RJR6X.js} +10 -10
  81. package/dist/bundle/{meeting-model-FQBDHGRU.js → meeting-model-5FVNZCTL.js} +8 -8
  82. package/dist/bundle/{meeting-semantic-ONNEOJX5.js → meeting-semantic-HUMYFMO7.js} +2 -2
  83. package/dist/bundle/{node-FMQWCZRS.js → node-N4DQQJKK.js} +2 -2
  84. package/dist/bundle/{node-sqlite-YN5OKOC6.js → node-sqlite-MG4KFXYY.js} +4 -4
  85. package/dist/bundle/{oauth-EW7PTZVT.js → oauth-NKDSXEH6.js} +4 -4
  86. package/dist/bundle/{open-Q2RDY344.js → open-DV2YUU2M.js} +2 -2
  87. package/dist/bundle/{openai-STON6G3O.js → openai-FEKMZOUJ.js} +12 -12
  88. package/dist/bundle/{process-OQUC2TW3.js → process-QZS3TE6A.js} +1 -1
  89. package/dist/bundle/{program-7JJHTZ25.js → program-FNDGXEVS.js} +56 -56
  90. package/dist/bundle/{prompt-WHVF7UTW.js → prompt-C7RSBNH5.js} +2 -2
  91. package/dist/bundle/{recognize-YDQWMXNI.js → recognize-5BL763FS.js} +1 -1
  92. package/dist/bundle/{remote-477LQHP6.js → remote-CXAKRC7X.js} +6 -6
  93. package/dist/bundle/{rerank-4YPB26FG.js → rerank-XAEXY5A4.js} +4 -4
  94. package/dist/bundle/{serve-FXJNUOTS.js → serve-JLZGFTZH.js} +6 -6
  95. package/dist/bundle/{server-2S6HFBGR.js → server-GF3TV2U7.js} +37 -37
  96. package/dist/bundle/server-GLPEWUYT.js +69 -0
  97. package/dist/bundle/{sqlite-runtime-RXYNJYMC.js → sqlite-runtime-3OVQ7OTM.js} +3 -3
  98. package/dist/bundle/{state-I2GGYGRL.js → state-FGJKQKC2.js} +3 -3
  99. package/dist/bundle/{store-VQXIB6KV.js → store-2J5VJZQY.js} +13 -13
  100. package/dist/bundle/{store-KX3AAQZH.js → store-WYLMNAAQ.js} +15 -15
  101. package/dist/bundle/store-maintenance-command-QN6QH6RA.js +60 -0
  102. package/dist/bundle/tg.js +3 -3
  103. package/dist/program.js +1 -1
  104. package/dist/program.js.map +1 -1
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +2 -2
  108. package/skills/tg-cli/SKILL.md +15 -6
  109. package/dist/bundle/command-contract-G752BLKA.js +0 -37
  110. package/dist/bundle/first-screen-7QSNCZIK.js +0 -35
  111. package/dist/bundle/server-UOSUTZNE.js +0 -69
  112. package/dist/bundle/store-maintenance-command-LW2MMDLY.js +0 -60
@@ -0,0 +1,60 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ addStoreMaintenanceCommands,
5
+ buildStems,
6
+ storeMaintenanceCommands,
7
+ storeSummary
8
+ } from "./chunk-OPG54IFH.js";
9
+ import "./chunk-JSE4OBYI.js";
10
+ import "./chunk-JDLNI7BU.js";
11
+ import "./chunk-VVUUP5NF.js";
12
+ import "./chunk-O73DZURO.js";
13
+ import "./chunk-2ABQZVK4.js";
14
+ import "./chunk-PS7ZS5HD.js";
15
+ import "./chunk-GA3URWIF.js";
16
+ import "./chunk-OX5EAUKF.js";
17
+ import "./chunk-BFERGEBI.js";
18
+ import "./chunk-LTP4BYHJ.js";
19
+ import "./chunk-LDSTUBLY.js";
20
+ import "./chunk-6BPM3LNR.js";
21
+ import "./chunk-XC2YJDDK.js";
22
+ import "./chunk-34PRGA7E.js";
23
+ import "./chunk-YZTMQE62.js";
24
+ import "./chunk-Z2TCTTPJ.js";
25
+ import "./chunk-OOSX7K7G.js";
26
+ import "./chunk-WUIKJJ5A.js";
27
+ import "./chunk-2OXR2MRV.js";
28
+ import "./chunk-SQ2JLZFK.js";
29
+ import "./chunk-J2QQZVEN.js";
30
+ import "./chunk-66PL7P4C.js";
31
+ import "./chunk-D72URWJE.js";
32
+ import "./chunk-AJQ6JFLY.js";
33
+ import "./chunk-H655CMXJ.js";
34
+ import "./chunk-5N7TJ6TJ.js";
35
+ import "./chunk-5ZIT6JXP.js";
36
+ import "./chunk-IULSIKEM.js";
37
+ import "./chunk-GNIROVSK.js";
38
+ import "./chunk-PD4RREQB.js";
39
+ import "./chunk-S2IET7WM.js";
40
+ import "./chunk-O7X6RM5R.js";
41
+ import "./chunk-P6KGEZIS.js";
42
+ import "./chunk-LJO6MMQG.js";
43
+ import "./chunk-EZBMLKBK.js";
44
+ import "./chunk-LWSOCKOD.js";
45
+ import "./chunk-PHGH5N4C.js";
46
+ import "./chunk-JF4AJNCE.js";
47
+ import "./chunk-LEPDRO3O.js";
48
+ import "./chunk-ZI3YTXSF.js";
49
+ import "./chunk-TT6OHNV2.js";
50
+ import "./chunk-HT6OFANN.js";
51
+ import "./chunk-AUNNJDVD.js";
52
+ import "./chunk-Y5E2WNWB.js";
53
+ import "./chunk-F6MLJ3V5.js";
54
+ import "./chunk-ZVVMGPBJ.js";
55
+ export {
56
+ addStoreMaintenanceCommands,
57
+ buildStems,
58
+ storeMaintenanceCommands,
59
+ storeSummary
60
+ };
package/dist/bundle/tg.js CHANGED
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  TG
6
- } from "./chunk-P4FZJO5F.js";
6
+ } from "./chunk-UGYC2FV5.js";
7
7
  import {
8
8
  installerOf
9
9
  } from "./chunk-66PL7P4C.js";
@@ -183,12 +183,12 @@ var wcat = await wcatStart({
183
183
  if (wcat.code !== void 0) {
184
184
  process.exitCode = wcat.code;
185
185
  } else {
186
- const { startCli } = await import("./entry-CSTCXYI5.js");
186
+ const { startCli } = await import("./entry-JWIEF57D.js");
187
187
  await startCli({
188
188
  app: TG,
189
189
  sqlite: true,
190
190
  // A static import would load the whole program, and its SQLite, before ensureSqlite could swap it.
191
- run: /* @__PURE__ */ __name(async ({ args }) => (await import("./program-7JJHTZ25.js")).run(args), "run"),
191
+ run: /* @__PURE__ */ __name(async ({ args }) => (await import("./program-FNDGXEVS.js")).run(args), "run"),
192
192
  fail: /* @__PURE__ */ __name((error, { tty }) => {
193
193
  const object = errorObjectOf(error);
194
194
  process.stderr.write(`${renderError(object, { cli: TG.command, interactive: tty })}
package/dist/program.js CHANGED
@@ -35,11 +35,11 @@ export const definition = {
35
35
  { command: "review 'date>1d'", does: "what changed in every chat since yesterday" },
36
36
  { command: "tasks agenda", does: "tasks due, replies you owe, replies you wait for" },
37
37
  { command: "inbox --transcribe", does: "unread in every chat, voice as text; marks nothing read by default" },
38
+ { command: 'search conversations "<question>"', does: "ask in your own words: who said, advised or sent what" },
38
39
  { command: "search all invoice", does: "messages and notes, from the local store and Telegram's server" },
39
40
  { command: "attachments extract", does: "text of PDFs and documents, ready for search" },
40
41
  { command: "schedule agent …", does: "an agent on a timer; it runs read-only and can never send" },
41
42
  { command: "mcp serve --permission …", does: "your account in any agent, with messages.send=deny" },
42
- { command: "TG_READ_ONLY=1 tg …", does: "a run that can read and sync but never send, edit or delete" },
43
43
  ],
44
44
  },
45
45
  configure: (program) => {
@@ -1 +1 @@
1
- {"version":3,"file":"program.js","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,eAAe,EACf,eAAe,EACf,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,SAAS,EACT,cAAc,EACd,UAAU,EACV,eAAe,EACf,eAAe,EACf,eAAe,EACf,aAAa,EACb,sBAAsB,EAEtB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,GAAG,IAAI,MAAM,EACb,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAAU,CAA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 -1,2 +1,2 @@
1
- export declare const VERSION = "0.129.0";
1
+ export declare const VERSION = "0.131.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.129.0";
1
+ export const VERSION = "0.131.0";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/tg-cli",
3
- "version": "0.129.0",
3
+ "version": "0.131.0",
4
4
  "description": "A local command line interface for a personal Telegram account, built for agents and scripts",
5
5
  "mcpName": "dev.wirecat/tg-cli",
6
6
  "license": "Apache-2.0",
@@ -73,7 +73,7 @@
73
73
  "dependencies": {
74
74
  "@mtcute/node": "0.32.7",
75
75
  "@wirecat/cli-base": "0.101.0",
76
- "@wirecat/cli-core": "0.665.0",
76
+ "@wirecat/cli-core": "0.672.0",
77
77
  "commander": "15.0.0",
78
78
  "undici": "8.12.3",
79
79
  "valibot": "1.5.0"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: tg-cli
3
3
  description: >-
4
- Set up Telegram and read or send messages in the owner's personal account through tg. Use when asked to install or connect Telegram, find a chat or person, read a conversation, or send a message.
4
+ Answer questions from the owner's Telegram history, and read or send messages in their personal account, through tg. Use for any question their chats could answer, even when it does not say Telegram: who said, advised or sent what, a past message, link, file, price or decision. Also to set up Telegram, find a chat or person, read a conversation or send a message. For a question, start with tg <profile> search conversations "<the question>".
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -174,13 +174,21 @@ summary; news digests remain separate future work. Permission: `messages.evidenc
174
174
  deduplication contract applies to the same chat, topic, content and `--operation-id`.
175
175
  Never automatically repeat an unknown write based only on its error code.
176
176
 
177
- 5. **Start a search with `tg personal search messages`**: the messages kept on this machine plus Telegram's own
177
+ 5. **A question in the owner's own words starts with `tg personal search conversations '<question>'`** (who said,
178
+ advised or sent what; a sentence, unsure wording, a name that may be misspelled, no chat named): it searches by
179
+ meaning and words; `conversations status` shows which chats have vectors. Then `tg personal search messages
180
+ '<question>' --discover`, then key words. Pass the question as the owner wrote it; do not cut it to one word first.
181
+ Never filter the results yourself (`grep -v`, `jq select`) by chat or sender: a hit in a chat you did not expect is
182
+ often the answer. When the owner says "I advised / I wrote", add `from:me`. A search that stops at its time limit
183
+ answers `query.time-limit`: run it again with `--timeout 60s` before trying other words.
184
+ **For known words, use `tg personal search messages`**: the messages kept on this machine plus Telegram's own
178
185
  search. Add `--backend archive` when the owner wants nothing to leave the machine. **Use `tg personal search all`
179
186
  only when the owner asks to include their notes or imported Drive documents**: it adds both to the messages, in one
180
187
  answer, each hit typed (`message`, `note`, `document`). Imported Drive documents retain their Google link and edit time; `--source drive:<profile>` selects a registered Drive profile. `tg personal chats documents list CHAT_ID` shows documents linked in stored messages. Mail is memo's (`memo search mail`). Narrow with `tg personal search messages`, `search notes`,
181
188
  `search conversations` (by meaning) or `search topics`; every search lives under `tg personal search`.
182
- For a natural question or uncertain wording, use `tg personal search messages '<question>' --discover`
183
- or MCP `discover: true`. It searches the local archive without model downloads, keeps hard filters
189
+ One chat is `chat:<chat>` in the query, dates are `date>=2026-10-01` or `date:7d` in the query (`--since-time` for
190
+ `search conversations`), and the messages around a hit are `tg personal messages context <hit ref>`.
191
+ For `--discover` (MCP `discover: true`): it searches the local archive without model downloads, keeps hard filters
184
192
  and includes eligible direct replies. Inspect missing terms, parent links and the messages;
185
193
  the first result and its score do not establish an answer. Explicit syntax remains strict.
186
194
  **Without `--discover`, `tg personal search messages` also asks Telegram's search** (`--backend both`; `archive`
@@ -261,7 +269,8 @@ summary; news digests remain separate future work. Permission: `messages.evidenc
261
269
  22. **Nothing relevant: search again in other words before saying it is not there.** A search finds the words
262
270
  it is given, and a paraphrase misses. Try the words the answer itself would contain (a document's title, the
263
271
  term the sender would use), one or two key words instead of a sentence, a synonym, the other language; for a
264
- question, `--discover`. After two or three tries, say what you searched for.
272
+ question, `search conversations` and `--discover` first (trap 5). After two or three tries, say what you searched
273
+ for.
265
274
 
266
275
  ## The usual path
267
276
 
@@ -337,7 +346,7 @@ tg personal search messages "invoice march" --backend archive --json # this mac
337
346
  tg personal search all "invoice march" --json # only when the owner asks: adds their notes and Drive documents
338
347
  tg personal conversations links rebuild --chat -1001234567890 --json # the threads inside a group, from what was kept; then list | show
339
348
  tg skill show link-conversations # only when the owner asks you to untangle a chat's threads yourself
340
- tg personal search conversations "<question>" --json # by meaning, after the owner ran tg personal conversations embed --chat <chat>
349
+ tg personal search conversations "<question>" --json # by meaning and words: the first search for a question in the owner's words
341
350
  tg personal watch --jsonl # new messages as {"type":"item","data"} lines, then a {"type":"end"} line
342
351
  ```
343
352
 
@@ -1,37 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- SCHEMA_DIALECT,
5
- commandContract,
6
- commandPathOf,
7
- findCommand,
8
- outputOf
9
- } from "./chunk-KY3JLXW2.js";
10
- import "./chunk-7F3LOHRB.js";
11
- import "./chunk-QJDHRBXL.js";
12
- import "./chunk-QDEP2QOA.js";
13
- import "./chunk-NRCY3WBC.js";
14
- import "./chunk-QFVIHBLD.js";
15
- import "./chunk-GYCKRIRK.js";
16
- import "./chunk-2JZJPVBH.js";
17
- import "./chunk-RPWYTOLI.js";
18
- import "./chunk-IV6SIKVH.js";
19
- import "./chunk-S5UTBEV3.js";
20
- import "./chunk-QBNEWEJC.js";
21
- import "./chunk-IBSHQWIJ.js";
22
- import "./chunk-B5RGPZDZ.js";
23
- import "./chunk-XHX5D5VE.js";
24
- import "./chunk-ZI3YTXSF.js";
25
- import "./chunk-VSPSHBAC.js";
26
- import "./chunk-HT6OFANN.js";
27
- import "./chunk-AUNNJDVD.js";
28
- import "./chunk-Y5E2WNWB.js";
29
- import "./chunk-F6MLJ3V5.js";
30
- import "./chunk-ZVVMGPBJ.js";
31
- export {
32
- SCHEMA_DIALECT,
33
- commandContract,
34
- commandPathOf,
35
- findCommand,
36
- outputOf
37
- };
@@ -1,35 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- WIRECAT_TOOLS,
5
- firstScreen,
6
- installHelp
7
- } from "./chunk-X5H5NERR.js";
8
- import "./chunk-2ABQZVK4.js";
9
- import "./chunk-KY3JLXW2.js";
10
- import "./chunk-7F3LOHRB.js";
11
- import "./chunk-QJDHRBXL.js";
12
- import "./chunk-QDEP2QOA.js";
13
- import "./chunk-NRCY3WBC.js";
14
- import "./chunk-QFVIHBLD.js";
15
- import "./chunk-GYCKRIRK.js";
16
- import "./chunk-2JZJPVBH.js";
17
- import "./chunk-RPWYTOLI.js";
18
- import "./chunk-IV6SIKVH.js";
19
- import "./chunk-S5UTBEV3.js";
20
- import "./chunk-QBNEWEJC.js";
21
- import "./chunk-IBSHQWIJ.js";
22
- import "./chunk-B5RGPZDZ.js";
23
- import "./chunk-XHX5D5VE.js";
24
- import "./chunk-ZI3YTXSF.js";
25
- import "./chunk-VSPSHBAC.js";
26
- import "./chunk-HT6OFANN.js";
27
- import "./chunk-AUNNJDVD.js";
28
- import "./chunk-Y5E2WNWB.js";
29
- import "./chunk-F6MLJ3V5.js";
30
- import "./chunk-ZVVMGPBJ.js";
31
- export {
32
- WIRECAT_TOOLS,
33
- firstScreen,
34
- installHelp
35
- };
@@ -1,69 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- PER_RUN,
5
- createServer,
6
- envelope,
7
- serveOverHttpUntilStopped,
8
- serveOverStdio
9
- } from "./chunk-PWQKGFS2.js";
10
- import "./chunk-LPT5T6PU.js";
11
- import "./chunk-BMSS3PCY.js";
12
- import "./chunk-6JBRQ6PM.js";
13
- import "./chunk-SYZXOEHY.js";
14
- import "./chunk-5D4AEUVA.js";
15
- import "./chunk-2LPODKIF.js";
16
- import "./chunk-OWVQMK7G.js";
17
- import "./chunk-MS6YEIG5.js";
18
- import "./chunk-3XMUP55N.js";
19
- import "./chunk-PS7ZS5HD.js";
20
- import "./chunk-GA3URWIF.js";
21
- import "./chunk-TGRB4SSZ.js";
22
- import "./chunk-O2ULG7OO.js";
23
- import "./chunk-QJLCEOAP.js";
24
- import "./chunk-VTJ3AOTT.js";
25
- import "./chunk-LQPZDDDP.js";
26
- import "./chunk-RAFK5KXU.js";
27
- import "./chunk-RZPMFVWM.js";
28
- import "./chunk-3KZG63EH.js";
29
- import "./chunk-I5PILOTU.js";
30
- import "./chunk-G2SMVYBU.js";
31
- import "./chunk-VXWDQDRU.js";
32
- import "./chunk-FIO5NMK3.js";
33
- import "./chunk-GGGBPWUS.js";
34
- import "./chunk-XXW6PFAX.js";
35
- import "./chunk-CKJ73EF3.js";
36
- import "./chunk-FH4YIBBH.js";
37
- import "./chunk-66PL7P4C.js";
38
- import "./chunk-D72URWJE.js";
39
- import "./chunk-M327UNS6.js";
40
- import "./chunk-C4ALE7CH.js";
41
- import "./chunk-KY3JLXW2.js";
42
- import "./chunk-7F3LOHRB.js";
43
- import "./chunk-QJDHRBXL.js";
44
- import "./chunk-QDEP2QOA.js";
45
- import "./chunk-NRCY3WBC.js";
46
- import "./chunk-QFVIHBLD.js";
47
- import "./chunk-GYCKRIRK.js";
48
- import "./chunk-2JZJPVBH.js";
49
- import "./chunk-RPWYTOLI.js";
50
- import "./chunk-IV6SIKVH.js";
51
- import "./chunk-S5UTBEV3.js";
52
- import "./chunk-QBNEWEJC.js";
53
- import "./chunk-IBSHQWIJ.js";
54
- import "./chunk-B5RGPZDZ.js";
55
- import "./chunk-XHX5D5VE.js";
56
- import "./chunk-ZI3YTXSF.js";
57
- import "./chunk-VSPSHBAC.js";
58
- import "./chunk-HT6OFANN.js";
59
- import "./chunk-AUNNJDVD.js";
60
- import "./chunk-Y5E2WNWB.js";
61
- import "./chunk-F6MLJ3V5.js";
62
- import "./chunk-ZVVMGPBJ.js";
63
- export {
64
- PER_RUN,
65
- createServer,
66
- envelope,
67
- serveOverHttpUntilStopped,
68
- serveOverStdio
69
- };
@@ -1,60 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- addStoreMaintenanceCommands,
5
- buildStems,
6
- storeMaintenanceCommands,
7
- storeSummary
8
- } from "./chunk-IRWSZJYL.js";
9
- import "./chunk-2LPODKIF.js";
10
- import "./chunk-OWVQMK7G.js";
11
- import "./chunk-MS6YEIG5.js";
12
- import "./chunk-3XMUP55N.js";
13
- import "./chunk-2ABQZVK4.js";
14
- import "./chunk-PS7ZS5HD.js";
15
- import "./chunk-GA3URWIF.js";
16
- import "./chunk-O2ULG7OO.js";
17
- import "./chunk-VTJ3AOTT.js";
18
- import "./chunk-LQPZDDDP.js";
19
- import "./chunk-RAFK5KXU.js";
20
- import "./chunk-RZPMFVWM.js";
21
- import "./chunk-3KZG63EH.js";
22
- import "./chunk-6M3FAHPS.js";
23
- import "./chunk-G2SMVYBU.js";
24
- import "./chunk-VXWDQDRU.js";
25
- import "./chunk-FIO5NMK3.js";
26
- import "./chunk-GGGBPWUS.js";
27
- import "./chunk-XXW6PFAX.js";
28
- import "./chunk-CKJ73EF3.js";
29
- import "./chunk-FH4YIBBH.js";
30
- import "./chunk-66PL7P4C.js";
31
- import "./chunk-D72URWJE.js";
32
- import "./chunk-M327UNS6.js";
33
- import "./chunk-C4ALE7CH.js";
34
- import "./chunk-7F3LOHRB.js";
35
- import "./chunk-QJDHRBXL.js";
36
- import "./chunk-QDEP2QOA.js";
37
- import "./chunk-NRCY3WBC.js";
38
- import "./chunk-QFVIHBLD.js";
39
- import "./chunk-GYCKRIRK.js";
40
- import "./chunk-2JZJPVBH.js";
41
- import "./chunk-RPWYTOLI.js";
42
- import "./chunk-IV6SIKVH.js";
43
- import "./chunk-S5UTBEV3.js";
44
- import "./chunk-QBNEWEJC.js";
45
- import "./chunk-IBSHQWIJ.js";
46
- import "./chunk-B5RGPZDZ.js";
47
- import "./chunk-XHX5D5VE.js";
48
- import "./chunk-ZI3YTXSF.js";
49
- import "./chunk-VSPSHBAC.js";
50
- import "./chunk-HT6OFANN.js";
51
- import "./chunk-AUNNJDVD.js";
52
- import "./chunk-Y5E2WNWB.js";
53
- import "./chunk-F6MLJ3V5.js";
54
- import "./chunk-ZVVMGPBJ.js";
55
- export {
56
- addStoreMaintenanceCommands,
57
- buildStems,
58
- storeMaintenanceCommands,
59
- storeSummary
60
- };