@wirecat/cli-memo 0.131.61 → 0.131.63

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 (156) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-WPBMSWJF.js → all-profiles-L6EBORCV.js} +5 -5
  3. package/dist/bundle/{anthropic-FZRVISSX.js → anthropic-42PADP4V.js} +2 -2
  4. package/dist/bundle/{app-server-QGIZPU4R.js → app-server-QBJG7OGQ.js} +35 -35
  5. package/dist/bundle/auto-LGA3VXKQ.js +85 -0
  6. package/dist/bundle/{bun-AO76624P.js → bun-NYSNYHAD.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-HYBE66QU.js → bun-sqlite-B46U7KI7.js} +2 -2
  8. package/dist/bundle/{chunk-233N77WN.js → chunk-2UCLF4AO.js} +273 -272
  9. package/dist/bundle/{chunk-YRHLPKTG.js → chunk-2XVXF4RW.js} +2 -2
  10. package/dist/bundle/{chunk-IZZU4NS6.js → chunk-347UBASY.js} +3 -3
  11. package/dist/bundle/{chunk-RRHSJ7CR.js → chunk-37E74SKW.js} +62 -62
  12. package/dist/bundle/{chunk-7DPHHUSZ.js → chunk-3ZXWLFUG.js} +21 -21
  13. package/dist/bundle/{chunk-6YK3RZZJ.js → chunk-4BKSE3CG.js} +4 -4
  14. package/dist/bundle/{chunk-WFDGEREJ.js → chunk-4GTZSCUE.js} +2 -2
  15. package/dist/bundle/{chunk-OFERGS4J.js → chunk-4SUROBD4.js} +2 -2
  16. package/dist/bundle/{chunk-5ZVWDMDT.js → chunk-5D7BPC33.js} +1 -1
  17. package/dist/bundle/{chunk-CTRVHHBK.js → chunk-5Q534L4I.js} +5 -5
  18. package/dist/bundle/{chunk-RRPUM4RS.js → chunk-6OZ2WI7Y.js} +2 -2
  19. package/dist/bundle/{chunk-B4VCZOLF.js → chunk-724DPWN6.js} +1 -1
  20. package/dist/bundle/{chunk-4WKZ3UIZ.js → chunk-A524HPDV.js} +1 -1
  21. package/dist/bundle/{chunk-2Q55K5HY.js → chunk-ACG5QN77.js} +2 -2
  22. package/dist/bundle/{chunk-WMRR2SNG.js → chunk-B3SERZMP.js} +1 -1
  23. package/dist/bundle/{chunk-XT7EJLA4.js → chunk-BOMHJR2E.js} +4 -4
  24. package/dist/bundle/{chunk-SSX6S3EG.js → chunk-DKO7WEXJ.js} +1 -1
  25. package/dist/bundle/{chunk-YVCNJKDA.js → chunk-E5JQFEIQ.js} +42 -42
  26. package/dist/bundle/{chunk-LIW42UCX.js → chunk-EGI6JHIA.js} +9 -9
  27. package/dist/bundle/{chunk-2UXFM5GE.js → chunk-FC5PK6M6.js} +12 -12
  28. package/dist/bundle/{chunk-HLTGPK6P.js → chunk-FG4Q6T72.js} +4 -4
  29. package/dist/bundle/{chunk-ETYD55QD.js → chunk-FH4P5UQA.js} +3 -3
  30. package/dist/bundle/{chunk-7CKXTTZG.js → chunk-FWRBJAQZ.js} +2 -2
  31. package/dist/bundle/{chunk-F6E7DSJO.js → chunk-GNHDE7FH.js} +1738 -32
  32. package/dist/bundle/{chunk-6NHJ4TTJ.js → chunk-HGNWJJDT.js} +336 -335
  33. package/dist/bundle/{chunk-OQSOQYSQ.js → chunk-HKC7GDJD.js} +4 -4
  34. package/dist/bundle/{chunk-XYFYZP2N.js → chunk-I5L7MLZ6.js} +1 -1
  35. package/dist/bundle/{chunk-KZRBIHQL.js → chunk-K4WCDPDL.js} +5 -5
  36. package/dist/bundle/{chunk-3FPF5DBU.js → chunk-K5VF47E2.js} +5 -5
  37. package/dist/bundle/{chunk-K6FQVROA.js → chunk-LK6D26RK.js} +21 -21
  38. package/dist/bundle/{chunk-6AEQACVV.js → chunk-MWAXS4BX.js} +7 -7
  39. package/dist/bundle/{chunk-D4PK5OXW.js → chunk-NZJUMLTD.js} +1 -1
  40. package/dist/bundle/{chunk-UTUUXAPS.js → chunk-O2NQCWRM.js} +28 -28
  41. package/dist/bundle/{chunk-35OBIX5A.js → chunk-OXBETHGN.js} +8 -8
  42. package/dist/bundle/{chunk-OIHKFGHK.js → chunk-PKUBC2ME.js} +3 -3
  43. package/dist/bundle/{chunk-7ETYPYIN.js → chunk-Q3VEUHC7.js} +12 -12
  44. package/dist/bundle/{chunk-RT476OFI.js → chunk-RGZUDHAQ.js} +7 -7
  45. package/dist/bundle/{chunk-UTSMQ7KI.js → chunk-RLX5SC2X.js} +1 -1
  46. package/dist/bundle/{chunk-PSYZ33UQ.js → chunk-RP6VV35S.js} +1 -1
  47. package/dist/bundle/{chunk-R7ZD7TNI.js → chunk-RSG7BRXI.js} +1 -1
  48. package/dist/bundle/{chunk-37ILRM2G.js → chunk-RTLQHLHG.js} +4 -4
  49. package/dist/bundle/{chunk-4HLYKLGJ.js → chunk-SIBQ34LX.js} +1 -1
  50. package/dist/bundle/{chunk-JAJSTFBB.js → chunk-SIJA2UYC.js} +6 -6
  51. package/dist/bundle/{chunk-MQCBJGXA.js → chunk-SJ55SMBE.js} +9 -9
  52. package/dist/bundle/{chunk-I6LNI45S.js → chunk-SOQGV3ZM.js} +5 -5
  53. package/dist/bundle/{chunk-5SD4CV2D.js → chunk-TBSWOVM3.js} +571 -293
  54. package/dist/bundle/{chunk-STXMSLU6.js → chunk-TKPIS4G2.js} +1 -1
  55. package/dist/bundle/{chunk-XU7UER3B.js → chunk-TSKGEK2S.js} +10 -10
  56. package/dist/bundle/{chunk-2VMZLQ5K.js → chunk-V7TJSYFK.js} +2 -2
  57. package/dist/bundle/{chunk-KGZM5WYK.js → chunk-VTKLHYCZ.js} +4 -4
  58. package/dist/bundle/{chunk-7E46JN6V.js → chunk-VX4HNQLN.js} +2 -2
  59. package/dist/bundle/{chunk-OEPBIWHI.js → chunk-WDWKG7FJ.js} +150 -150
  60. package/dist/bundle/{chunk-OWVHNTY6.js → chunk-WDZOEBTE.js} +6 -6
  61. package/dist/bundle/{chunk-7NKBX7FC.js → chunk-XVREIQ2N.js} +2 -2
  62. package/dist/bundle/chunk-YVJAD5E7.js +268 -0
  63. package/dist/bundle/{chunk-Y264FW55.js → chunk-ZUQXDJ7A.js} +1 -1
  64. package/dist/bundle/{command-contract-4TGN6GSP.js → command-contract-SIXWLKAS.js} +11 -11
  65. package/dist/bundle/{decode-S3PPQHID.js → decode-2Z4GCIGA.js} +2 -2
  66. package/dist/bundle/{echarts-AH6U7X2S.js → echarts-JADCSUD7.js} +2 -2
  67. package/dist/bundle/{embed-4NSZECMB.js → embed-ZLEPINEK.js} +3 -3
  68. package/dist/bundle/{embedder-EGRA7YEY.js → embedder-E3DHPZCK.js} +6 -6
  69. package/dist/bundle/{entry-O3V72WZP.js → entry-SFLEGFSN.js} +4 -4
  70. package/dist/bundle/failure-OGSLUNT6.js +65 -0
  71. package/dist/bundle/{first-run-S7RRDIGX.js → first-run-ZKDGFY6P.js} +5 -5
  72. package/dist/bundle/{first-screen-YKJAQUVE.js → first-screen-IQEU7XF2.js} +12 -12
  73. package/dist/bundle/{instructions-ETUUZKBM.js → instructions-ECXOBMWS.js} +1 -1
  74. package/dist/bundle/{mcp-J3K7RC5W.js → mcp-Y4XMDC5Q.js} +35 -35
  75. package/dist/bundle/memo.js +6 -6
  76. package/dist/bundle/{node-O4XVOEGO.js → node-A6363DJ4.js} +2 -2
  77. package/dist/bundle/{node-sqlite-PC3K43U7.js → node-sqlite-FA2P77PW.js} +3 -3
  78. package/dist/bundle/{oauth-MBJUEG2Z.js → oauth-DBGARGR7.js} +4 -4
  79. package/dist/bundle/{open-5FAYV6JM.js → open-5YYG2VWH.js} +2 -2
  80. package/dist/bundle/{openai-57CRSGLH.js → openai-BPVP7TZ7.js} +7 -7
  81. package/dist/bundle/{process-NAW4COYH.js → process-DGPZRHQA.js} +1 -1
  82. package/dist/bundle/{program-CFJAGFYD.js → program-ZHLCEVWB.js} +618 -290
  83. package/dist/bundle/{prompt-FT2MMVS7.js → prompt-NTAZWPWA.js} +2 -2
  84. package/dist/bundle/{recognize-PEYPOI3Q.js → recognize-OGEP5VD3.js} +1 -1
  85. package/dist/bundle/{remote-FQAXACFW.js → remote-DER2PFH6.js} +4 -4
  86. package/dist/bundle/{rerank-4KEB4X6T.js → rerank-PB5ACFHS.js} +4 -4
  87. package/dist/bundle/{serve-LCTIHO37.js → serve-KNEY4BXK.js} +6 -6
  88. package/dist/bundle/{server-XQLRMM73.js → server-I5BPRS5C.js} +55 -52
  89. package/dist/bundle/server-IQILK5YP.js +61 -0
  90. package/dist/bundle/server-NKI7SVK5.js +48 -0
  91. package/dist/bundle/{state-YF4M4RHC.js → state-JMCWHHZM.js} +3 -3
  92. package/dist/bundle/{store-EQEMYMCC.js → store-6H4FPFTX.js} +9 -9
  93. package/dist/bundle/store-maintenance-command-IFVWSQMJ.js +47 -0
  94. package/dist/bundle/update-YMILPFRY.js +68 -0
  95. package/dist/config-issues.d.ts +4 -1
  96. package/dist/config-issues.d.ts.map +1 -1
  97. package/dist/config-issues.js +6 -2
  98. package/dist/config-issues.js.map +1 -1
  99. package/dist/contract-overrides/search.js +2 -2
  100. package/dist/contract-overrides/search.js.map +1 -1
  101. package/dist/digest/command.d.ts.map +1 -1
  102. package/dist/digest/command.js +11 -7
  103. package/dist/digest/command.js.map +1 -1
  104. package/dist/digest/digest.d.ts +29 -4
  105. package/dist/digest/digest.d.ts.map +1 -1
  106. package/dist/digest/digest.js +124 -39
  107. package/dist/digest/digest.js.map +1 -1
  108. package/dist/digest/sync-health.d.ts +51 -0
  109. package/dist/digest/sync-health.d.ts.map +1 -0
  110. package/dist/digest/sync-health.js +116 -0
  111. package/dist/digest/sync-health.js.map +1 -0
  112. package/dist/digest/tasks.d.ts +38 -0
  113. package/dist/digest/tasks.d.ts.map +1 -0
  114. package/dist/digest/tasks.js +108 -0
  115. package/dist/digest/tasks.js.map +1 -0
  116. package/dist/digest/text.d.ts.map +1 -1
  117. package/dist/digest/text.js +9 -2
  118. package/dist/digest/text.js.map +1 -1
  119. package/dist/knowledge/messenger-sync.d.ts +5 -0
  120. package/dist/knowledge/messenger-sync.d.ts.map +1 -1
  121. package/dist/knowledge/messenger-sync.js +12 -9
  122. package/dist/knowledge/messenger-sync.js.map +1 -1
  123. package/dist/mcp/catalogue.d.ts.map +1 -1
  124. package/dist/mcp/catalogue.js +5 -3
  125. package/dist/mcp/catalogue.js.map +1 -1
  126. package/dist/mcp/granted.d.ts +13 -0
  127. package/dist/mcp/granted.d.ts.map +1 -0
  128. package/dist/mcp/granted.js +19 -0
  129. package/dist/mcp/granted.js.map +1 -0
  130. package/dist/search/command.d.ts.map +1 -1
  131. package/dist/search/command.js +19 -7
  132. package/dist/search/command.js.map +1 -1
  133. package/dist/search/lane-gates.d.ts +33 -0
  134. package/dist/search/lane-gates.d.ts.map +1 -0
  135. package/dist/search/lane-gates.js +65 -0
  136. package/dist/search/lane-gates.js.map +1 -0
  137. package/dist/search/search.d.ts +5 -2
  138. package/dist/search/search.d.ts.map +1 -1
  139. package/dist/search/search.js +24 -2
  140. package/dist/search/search.js.map +1 -1
  141. package/dist/show/command.d.ts +3 -1
  142. package/dist/show/command.d.ts.map +1 -1
  143. package/dist/show/command.js +28 -3
  144. package/dist/show/command.js.map +1 -1
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/package.json +2 -2
  148. package/skills/morning-digest/SKILL.md +24 -10
  149. package/dist/bundle/auto-5VPCO4DD.js +0 -85
  150. package/dist/bundle/chunk-3FDJSMLJ.js +0 -1900
  151. package/dist/bundle/failure-CFGWWTV5.js +0 -65
  152. package/dist/bundle/server-AQTWRRAJ.js +0 -61
  153. package/dist/bundle/server-JIFODLCU.js +0 -48
  154. package/dist/bundle/store-maintenance-command-7IC3LTYY.js +0 -47
  155. package/dist/bundle/update-T237KLFA.js +0 -68
  156. /package/dist/bundle/{chunk-GFNWVGLD.js → chunk-C3XNJQD7.js} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-RRPUM4RS.js";
10
+ } from "./chunk-6OZ2WI7Y.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,7 +18,7 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-OEPBIWHI.js";
21
+ } from "./chunk-WDWKG7FJ.js";
22
22
  import {
23
23
  writes
24
24
  } from "./chunk-RCGFSWZE.js";
@@ -29,7 +29,7 @@ import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
94
94
  upgrade: "setup"
95
95
  };
96
96
 
97
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
97
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
98
98
  var DESCRIPTION = 90;
99
99
  var COLUMN = 52;
100
100
  var short = /* @__PURE__ */ __name((text) => {
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
133
133
  `;
134
134
  }, "commandsText");
135
135
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
137
137
  var ARGUMENT_KINDS = {
138
138
  chat: "chat",
139
139
  chats: "chat",
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
325
325
  command.addHelpText("after", () => commandHelpText(command));
326
326
  }, "installCommandHelp");
327
327
 
328
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
329
329
  var WIRECAT_TOOLS = [
330
330
  {
331
331
  command: "tg",
@@ -7,12 +7,12 @@ import {
7
7
  agentOf,
8
8
  clientHash,
9
9
  currentCaller
10
- } from "./chunk-JAJSTFBB.js";
10
+ } from "./chunk-SIJA2UYC.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mcp/caller.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mcp/caller.js
16
16
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
17
17
  const client = caller?.agent?.client?.name;
18
18
  if (client && client !== "unknown")
@@ -0,0 +1,268 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ decisionPolicy
5
+ } from "./chunk-GNHDE7FH.js";
6
+ import {
7
+ compactText,
8
+ currentRun,
9
+ itemOf,
10
+ listOf,
11
+ renderAnswer,
12
+ resolveOutput,
13
+ rootOf,
14
+ rowShapeOf,
15
+ rowsOfEntity,
16
+ sealed,
17
+ snakeKeysKeeping
18
+ } from "./chunk-WDWKG7FJ.js";
19
+ import {
20
+ openStore
21
+ } from "./chunk-HGNWJJDT.js";
22
+ import {
23
+ STORE_CLIENT
24
+ } from "./chunk-RSG7BRXI.js";
25
+ import {
26
+ createRenderer
27
+ } from "./chunk-EMNQPMZO.js";
28
+ import {
29
+ COMPACT_FLAG
30
+ } from "./chunk-RCGFSWZE.js";
31
+ import {
32
+ CliError
33
+ } from "./chunk-4ZW6ZJ2V.js";
34
+ import {
35
+ __name
36
+ } from "./chunk-ZVVMGPBJ.js";
37
+
38
+ // dist/output.js
39
+ var snakeKeys = snakeKeysKeeping(["front_matter", "metadata", "headers"]);
40
+ var atDetail = /* @__PURE__ */ __name((value, level) => {
41
+ let picked = "";
42
+ resolveOutput({
43
+ json: true,
44
+ streams: { data: /* @__PURE__ */ __name((chunk) => picked += chunk, "data"), diagnostic: /* @__PURE__ */ __name(() => void 0, "diagnostic"), progress: /* @__PURE__ */ __name(() => void 0, "progress") },
45
+ ...level === void 0 ? {} : { hitDetail: level }
46
+ }).renderer.result(value);
47
+ return JSON.parse(picked);
48
+ }, "atDetail");
49
+
50
+ // dist/rows.js
51
+ var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
52
+ var fact = {
53
+ columns: [
54
+ { field: "ref" },
55
+ { field: "kind" },
56
+ { field: "status" },
57
+ { field: "subject_name" },
58
+ { field: "project_name" },
59
+ { field: ["occurred_at", "created_at"], as: "day" }
60
+ ],
61
+ text: ["text"]
62
+ };
63
+ var ROWS = {
64
+ "search all": {
65
+ columns: [{ field: "ref" }, { field: "kind" }, { field: "timestamp", as: "time" }, { field: "title" }, sender],
66
+ text: ["excerpt"]
67
+ },
68
+ "search notes": {
69
+ columns: [{ field: "ref" }, { field: "updated_at", as: "day" }, { field: ["title", "path"] }],
70
+ text: ["excerpt"]
71
+ },
72
+ "search memories": fact,
73
+ "search people": { columns: [{ field: "ref" }, { field: "name" }] },
74
+ "notes list": {
75
+ columns: [
76
+ { field: "ref" },
77
+ { field: "updated_at", as: "day" },
78
+ { field: "source" },
79
+ { field: ["title", "path"] },
80
+ { field: "via" }
81
+ ],
82
+ text: ["text"]
83
+ },
84
+ "facts list": fact,
85
+ "invoices list": {
86
+ columns: [{ field: "ref" }, { field: "project_name" }, { field: ["issue_date", "created_at"], as: "day" }],
87
+ text: ["title"]
88
+ },
89
+ "payments list": {
90
+ columns: [{ field: "ref" }, { field: "project_name" }, { field: "date", as: "day" }],
91
+ text: ["title"]
92
+ },
93
+ "deals list": {
94
+ columns: [{ field: "ref" }, { field: "project_name" }, { field: "close_date", as: "day" }],
95
+ text: ["summary"]
96
+ },
97
+ "leads list": {
98
+ columns: [{ field: "ref" }, { field: "project_name" }, { field: "created_at", as: "day" }],
99
+ text: ["summary"]
100
+ },
101
+ "memories list": fact,
102
+ "people list": {
103
+ columns: [
104
+ { field: "ref" },
105
+ { field: "name" },
106
+ { field: "owner", tag: "owner" },
107
+ { field: "tasks", as: "count", tag: "tasks" }
108
+ ]
109
+ },
110
+ "organizations list": { columns: [{ field: "ref" }, { field: "name" }, { field: "kind" }] },
111
+ "projects list": { columns: [{ field: "ref" }, { field: "key" }, { field: "name" }, { field: "kind" }] },
112
+ "relationships list": {
113
+ columns: [
114
+ { field: "id" },
115
+ { field: "from" },
116
+ { field: "kind" },
117
+ { field: "to" },
118
+ { field: "role" },
119
+ { field: "purpose" },
120
+ { field: "confirmed", tag: "confirmed" }
121
+ ]
122
+ },
123
+ "tasks list": {
124
+ columns: [
125
+ { field: ["key", "ref", "id"] },
126
+ { field: "state" },
127
+ { field: "kind" },
128
+ { field: "priority_label" },
129
+ { field: "project_key" },
130
+ { field: "due_at", as: "day" },
131
+ { field: "source" }
132
+ ],
133
+ text: ["title", "message.text"]
134
+ },
135
+ "messages show": {
136
+ columns: [
137
+ { field: "ref" },
138
+ { field: ["timestamp", "date"], as: "time" },
139
+ { field: "chat_title" },
140
+ { field: ["from", "sender_is_me", "sender_name"], tag: "me" },
141
+ { field: "subject" },
142
+ { field: "attachments", as: "files" }
143
+ ],
144
+ text: ["text", "excerpt"]
145
+ },
146
+ "projects evidence": {
147
+ columns: [{ field: "project_ref" }],
148
+ sections: { items: "memo_evidence_item", people: "memo_evidence_person", linked_chats: "linked_chat" }
149
+ },
150
+ show: {
151
+ columns: [{ field: "ref" }, { field: "kind" }, { field: "state" }, { field: "title" }, { field: "open.line" }]
152
+ }
153
+ };
154
+ var SECTION_ROWS = {
155
+ memo_evidence_item: {
156
+ columns: [{ field: "ref" }, { field: "context" }, { field: "kind" }, { field: "title" }],
157
+ text: ["text"]
158
+ },
159
+ memo_finance: {
160
+ columns: [
161
+ { field: "direction" },
162
+ { field: "currency" },
163
+ { field: "billed" },
164
+ { field: "paid" },
165
+ { field: "owed" },
166
+ { field: "invoices", as: "count", tag: "invoices" },
167
+ { field: "payments", as: "count", tag: "payments" }
168
+ ]
169
+ },
170
+ memo_deal: {
171
+ columns: [
172
+ { field: "ref" },
173
+ { field: "stage" },
174
+ { field: "amount" },
175
+ { field: "currency" },
176
+ { field: "close_date", as: "day" }
177
+ ],
178
+ text: ["title"]
179
+ },
180
+ memo_evidence_person: {
181
+ columns: [{ field: "person" }, { field: "name" }, { field: "items", as: "count", tag: "items" }]
182
+ }
183
+ };
184
+ var shared = rowsOfEntity();
185
+ var sectionRowOf = /* @__PURE__ */ __name((entity) => SECTION_ROWS[entity] ?? shared(entity), "sectionRowOf");
186
+ var pathOf = /* @__PURE__ */ __name((command) => {
187
+ const words = [];
188
+ for (let at = command; at?.parent; at = at.parent)
189
+ words.unshift(at.name());
190
+ return words.join(" ");
191
+ }, "pathOf");
192
+ var rowOf = /* @__PURE__ */ __name((command) => command && ROWS[pathOf(command)] || rowShapeOf(command), "rowOf");
193
+
194
+ // dist/answer.js
195
+ var itemAnswer = /* @__PURE__ */ __name((value, extra) => itemOf(snakeKeys(value), extra), "itemAnswer");
196
+ var listAnswer = /* @__PURE__ */ __name((command, input) => {
197
+ const body = listOf(command, { ...input, items: snakeKeys(input.items) });
198
+ if (input.cursor !== void 0 || input.page !== void 0)
199
+ return body;
200
+ if (body.page.mode === "page")
201
+ delete body.page.next_page;
202
+ const next = body.next?.filter(({ step }) => step !== "page.next") ?? [];
203
+ if (next.length > 0)
204
+ body.next = next;
205
+ else
206
+ delete body.next;
207
+ return body;
208
+ }, "listAnswer");
209
+ var wholeList = /* @__PURE__ */ __name((command, items) => listAnswer(command, { items, limit: Math.max(1, items.length), has_more: false }), "wholeList");
210
+ var withStore = /* @__PURE__ */ __name(async (env, work) => {
211
+ const store = await openStore({ env, ...STORE_CLIENT, decisions: decisionPolicy(env) });
212
+ try {
213
+ return await work(store);
214
+ } finally {
215
+ await store.close();
216
+ }
217
+ }, "withStore");
218
+ var running = /* @__PURE__ */ new WeakMap();
219
+ var timezone = /* @__PURE__ */ __name(() => Intl.DateTimeFormat().resolvedOptions().timeZone, "timezone");
220
+ var plainText = /* @__PURE__ */ __name((body, command) => {
221
+ const { next: _, ...rest } = body;
222
+ return compactText(rest, rowOf(command), { timezone: timezone() }, sectionRowOf);
223
+ }, "plainText");
224
+ var compactView = /* @__PURE__ */ __name((command, full) => (kept) => {
225
+ const whole = sealed(kept);
226
+ const next = whole.next?.map((step) => step.kind === "command" && step.line ? { ...step, line: `${step.line} ${COMPACT_FLAG}` } : step);
227
+ return compactText(next ? { ...whole, next } : whole, rowOf(command), {
228
+ timezone: timezone(),
229
+ ...full ? { textChars: 0 } : {}
230
+ }, sectionRowOf);
231
+ }, "compactView");
232
+ var trackAnswers = /* @__PURE__ */ __name((program) => {
233
+ currentRun();
234
+ program.option(COMPACT_FLAG, "one line per item for an agent: reference first, text last, paging and next steps as # lines").hook("preAction", (root, leaf) => {
235
+ const { compact, json, brief } = leaf.optsWithGlobals();
236
+ if (compact && (json || brief))
237
+ throw new CliError("validation_error", `${COMPACT_FLAG} and ${json ? "--json" : "--brief"} are two forms \u2014 pick one`);
238
+ running.set(root, leaf);
239
+ });
240
+ }, "trackAnswers");
241
+ var answers = /* @__PURE__ */ __name((program, streams, env) => {
242
+ const print = /* @__PURE__ */ __name((json, body, text, asked) => {
243
+ const format = json ? "json" : "pretty";
244
+ const root = rootOf(program);
245
+ const leaf = running.get(root) ?? root;
246
+ const { compact = asked, full } = leaf.optsWithGlobals();
247
+ const renderer = createRenderer({ format, color: false, streams });
248
+ const drawn = compact === true && !json;
249
+ renderAnswer(leaf, { renderer: drawn ? { ...renderer, note: /* @__PURE__ */ __name(() => void 0, "note") } : renderer, format, streams }, body, drawn ? compactView(leaf, full === true) : () => `${text ?? plainText(body, leaf)}
250
+ `);
251
+ }, "print");
252
+ return {
253
+ print,
254
+ run: /* @__PURE__ */ __name(async (json, work) => print(json, await withStore(env, work)), "run")
255
+ };
256
+ }, "answers");
257
+
258
+ export {
259
+ snakeKeys,
260
+ atDetail,
261
+ itemAnswer,
262
+ listAnswer,
263
+ wholeList,
264
+ withStore,
265
+ plainText,
266
+ trackAnswers,
267
+ answers
268
+ };
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -6,17 +6,17 @@ import {
6
6
  commandPathOf,
7
7
  findCommand,
8
8
  outputOf
9
- } from "./chunk-RRPUM4RS.js";
10
- import "./chunk-OEPBIWHI.js";
11
- import "./chunk-JAJSTFBB.js";
12
- import "./chunk-ETYD55QD.js";
13
- import "./chunk-PSYZ33UQ.js";
14
- import "./chunk-Y264FW55.js";
15
- import "./chunk-RRHSJ7CR.js";
16
- import "./chunk-YRHLPKTG.js";
17
- import "./chunk-OQSOQYSQ.js";
18
- import "./chunk-IZZU4NS6.js";
19
- import "./chunk-D4PK5OXW.js";
9
+ } from "./chunk-6OZ2WI7Y.js";
10
+ import "./chunk-WDWKG7FJ.js";
11
+ import "./chunk-SIJA2UYC.js";
12
+ import "./chunk-FH4P5UQA.js";
13
+ import "./chunk-RP6VV35S.js";
14
+ import "./chunk-ZUQXDJ7A.js";
15
+ import "./chunk-37E74SKW.js";
16
+ import "./chunk-2XVXF4RW.js";
17
+ import "./chunk-HKC7GDJD.js";
18
+ import "./chunk-347UBASY.js";
19
+ import "./chunk-NZJUMLTD.js";
20
20
  import "./chunk-SW6C6WH5.js";
21
21
  import "./chunk-EMNQPMZO.js";
22
22
  import "./chunk-RCGFSWZE.js";
@@ -6,8 +6,8 @@ import {
6
6
  decodeChannels,
7
7
  formatOf,
8
8
  runFfmpeg
9
- } from "./chunk-7CKXTTZG.js";
10
- import "./chunk-OIHKFGHK.js";
9
+ } from "./chunk-FWRBJAQZ.js";
10
+ import "./chunk-PKUBC2ME.js";
11
11
  import "./chunk-EMNQPMZO.js";
12
12
  import "./chunk-RCGFSWZE.js";
13
13
  import "./chunk-Y5E2WNWB.js";
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42402
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42403
42403
  var echartsOption = /* @__PURE__ */ __name((chart) => ({
42404
42404
  animation: false,
42405
42405
  backgroundColor: "#111827",
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
42447
42447
  } : {}
42448
42448
  }), "echartsOption");
42449
42449
 
42450
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42450
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42451
42451
  use([install2, install, install6, install5, install10, install7, install11]);
42452
42452
  var echartsRenderer = {
42453
42453
  render: /* @__PURE__ */ __name(async (chart, size) => {
@@ -13,9 +13,9 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-3FPF5DBU.js";
17
- import "./chunk-IZZU4NS6.js";
18
- import "./chunk-D4PK5OXW.js";
16
+ } from "./chunk-K5VF47E2.js";
17
+ import "./chunk-347UBASY.js";
18
+ import "./chunk-NZJUMLTD.js";
19
19
  import "./chunk-EMNQPMZO.js";
20
20
  import "./chunk-RCGFSWZE.js";
21
21
  import "./chunk-Y5E2WNWB.js";
@@ -4,9 +4,9 @@ import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-3FPF5DBU.js";
8
- import "./chunk-IZZU4NS6.js";
9
- import "./chunk-D4PK5OXW.js";
7
+ } from "./chunk-K5VF47E2.js";
8
+ import "./chunk-347UBASY.js";
9
+ import "./chunk-NZJUMLTD.js";
10
10
  import "./chunk-EMNQPMZO.js";
11
11
  import "./chunk-RCGFSWZE.js";
12
12
  import {
@@ -19,11 +19,11 @@ import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
23
23
  import { readFileSync } from "node:fs";
24
24
  import { join } from "node:path";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
27
27
  var SIZE = 224;
28
28
  var MEAN = [0.48145466, 0.4578275, 0.40821073];
29
29
  var STD = [0.26862954, 0.26130258, 0.27577711];
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
62
62
  return pixels;
63
63
  }, "preprocess");
64
64
 
65
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
66
66
  var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
67
67
  const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
68
68
  const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openBrowser,
5
5
  startCli
6
- } from "./chunk-LIW42UCX.js";
7
- import "./chunk-PSYZ33UQ.js";
8
- import "./chunk-I6LNI45S.js";
9
- import "./chunk-STXMSLU6.js";
6
+ } from "./chunk-EGI6JHIA.js";
7
+ import "./chunk-RP6VV35S.js";
8
+ import "./chunk-SOQGV3ZM.js";
9
+ import "./chunk-TKPIS4G2.js";
10
10
  import "./chunk-EMNQPMZO.js";
11
11
  import "./chunk-RCGFSWZE.js";
12
12
  import "./chunk-Y5E2WNWB.js";
@@ -0,0 +1,65 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ errorObject,
5
+ mcpFailure,
6
+ recognisable,
7
+ reportFailure,
8
+ throwParseFailures
9
+ } from "./chunk-BOMHJR2E.js";
10
+ import "./chunk-TBSWOVM3.js";
11
+ import "./chunk-RLX5SC2X.js";
12
+ import "./chunk-SIBQ34LX.js";
13
+ import "./chunk-LK6D26RK.js";
14
+ import "./chunk-DKO7WEXJ.js";
15
+ import "./chunk-SJ55SMBE.js";
16
+ import "./chunk-E5JQFEIQ.js";
17
+ import "./chunk-3ZXWLFUG.js";
18
+ import "./chunk-2UCLF4AO.js";
19
+ import "./chunk-FC5PK6M6.js";
20
+ import "./chunk-WDZOEBTE.js";
21
+ import "./chunk-HTQTIKWP.js";
22
+ import "./chunk-6OZ2WI7Y.js";
23
+ import "./chunk-WDWKG7FJ.js";
24
+ import "./chunk-SIJA2UYC.js";
25
+ import "./chunk-TSKGEK2S.js";
26
+ import "./chunk-ASWLM74P.js";
27
+ import "./chunk-6G53ZFUT.js";
28
+ import "./chunk-FH4P5UQA.js";
29
+ import "./chunk-EGI6JHIA.js";
30
+ import "./chunk-RP6VV35S.js";
31
+ import "./chunk-RTLQHLHG.js";
32
+ import "./chunk-ACG5QN77.js";
33
+ import "./chunk-ZUQXDJ7A.js";
34
+ import "./chunk-HGNWJJDT.js";
35
+ import "./chunk-37E74SKW.js";
36
+ import "./chunk-2XVXF4RW.js";
37
+ import "./chunk-RGZUDHAQ.js";
38
+ import "./chunk-HKC7GDJD.js";
39
+ import "./chunk-4GTZSCUE.js";
40
+ import "./chunk-724DPWN6.js";
41
+ import "./chunk-4SUROBD4.js";
42
+ import "./chunk-VX4HNQLN.js";
43
+ import "./chunk-K5VF47E2.js";
44
+ import "./chunk-347UBASY.js";
45
+ import "./chunk-NZJUMLTD.js";
46
+ import "./chunk-BPGYTJNB.js";
47
+ import "./chunk-RSG7BRXI.js";
48
+ import "./chunk-IK6KH3RE.js";
49
+ import "./chunk-SW6C6WH5.js";
50
+ import "./chunk-D72URWJE.js";
51
+ import "./chunk-SOQGV3ZM.js";
52
+ import "./chunk-TKPIS4G2.js";
53
+ import "./chunk-EMNQPMZO.js";
54
+ import "./chunk-RCGFSWZE.js";
55
+ import "./chunk-Y5E2WNWB.js";
56
+ import "./chunk-4ZW6ZJ2V.js";
57
+ import "./chunk-5D7BPC33.js";
58
+ import "./chunk-ZVVMGPBJ.js";
59
+ export {
60
+ errorObject,
61
+ mcpFailure,
62
+ recognisable,
63
+ reportFailure,
64
+ throwParseFailures
65
+ };
@@ -5,13 +5,13 @@ import {
5
5
  asksAtStart,
6
6
  setupAtStart,
7
7
  systemLanguage
8
- } from "./chunk-XU7UER3B.js";
8
+ } from "./chunk-TSKGEK2S.js";
9
9
  import "./chunk-ASWLM74P.js";
10
10
  import "./chunk-6G53ZFUT.js";
11
- import "./chunk-ETYD55QD.js";
12
- import "./chunk-RT476OFI.js";
13
- import "./chunk-OQSOQYSQ.js";
14
- import "./chunk-D4PK5OXW.js";
11
+ import "./chunk-FH4P5UQA.js";
12
+ import "./chunk-RGZUDHAQ.js";
13
+ import "./chunk-HKC7GDJD.js";
14
+ import "./chunk-NZJUMLTD.js";
15
15
  import "./chunk-IK6KH3RE.js";
16
16
  import "./chunk-D72URWJE.js";
17
17
  import "./chunk-EMNQPMZO.js";
@@ -4,19 +4,19 @@ import {
4
4
  WIRECAT_TOOLS,
5
5
  firstScreen,
6
6
  installHelp
7
- } from "./chunk-OWVHNTY6.js";
7
+ } from "./chunk-WDZOEBTE.js";
8
8
  import "./chunk-HTQTIKWP.js";
9
- import "./chunk-RRPUM4RS.js";
10
- import "./chunk-OEPBIWHI.js";
11
- import "./chunk-JAJSTFBB.js";
12
- import "./chunk-ETYD55QD.js";
13
- import "./chunk-PSYZ33UQ.js";
14
- import "./chunk-Y264FW55.js";
15
- import "./chunk-RRHSJ7CR.js";
16
- import "./chunk-YRHLPKTG.js";
17
- import "./chunk-OQSOQYSQ.js";
18
- import "./chunk-IZZU4NS6.js";
19
- import "./chunk-D4PK5OXW.js";
9
+ import "./chunk-6OZ2WI7Y.js";
10
+ import "./chunk-WDWKG7FJ.js";
11
+ import "./chunk-SIJA2UYC.js";
12
+ import "./chunk-FH4P5UQA.js";
13
+ import "./chunk-RP6VV35S.js";
14
+ import "./chunk-ZUQXDJ7A.js";
15
+ import "./chunk-37E74SKW.js";
16
+ import "./chunk-2XVXF4RW.js";
17
+ import "./chunk-HKC7GDJD.js";
18
+ import "./chunk-347UBASY.js";
19
+ import "./chunk-NZJUMLTD.js";
20
20
  import "./chunk-SW6C6WH5.js";
21
21
  import "./chunk-EMNQPMZO.js";
22
22
  import "./chunk-RCGFSWZE.js";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  appInstructions,
5
5
  instructions
6
- } from "./chunk-XYFYZP2N.js";
6
+ } from "./chunk-I5L7MLZ6.js";
7
7
  import "./chunk-ZVVMGPBJ.js";
8
8
  export {
9
9
  appInstructions,