@wirecat/tg-cli 0.123.0 → 0.124.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 (131) hide show
  1. package/contracts/wirecat.json +47 -4
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-GAOG65O2.js → adapter-GEIZVMWU.js} +55 -53
  4. package/dist/bundle/{all-profiles-HLE6PHNI.js → all-profiles-EY4GJFWN.js} +10 -10
  5. package/dist/bundle/{anthropic-FZC4BS7T.js → anthropic-RIANJ7WM.js} +17 -10
  6. package/dist/bundle/{app-server-SHZNMV27.js → app-server-LW7WBFIF.js} +62 -52
  7. package/dist/bundle/{bot-api-LRS2KMDE.js → bot-api-FHIQ66OM.js} +54 -52
  8. package/dist/bundle/{bot-history-IJ7ZZKW5.js → bot-history-O34YZEFH.js} +18 -18
  9. package/dist/bundle/{bun-FACL53HM.js → bun-MJWD4VGV.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-B2MD7RTL.js → bun-sqlite-LCHVO3OB.js} +6 -6
  11. package/dist/bundle/{chunk-3JISIGLP.js → chunk-2GFGZDWS.js} +2 -2
  12. package/dist/bundle/{chunk-EOUUI5FI.js → chunk-2NG4JPP7.js} +4 -4
  13. package/dist/bundle/{chunk-V4722KYX.js → chunk-2YLIVDWJ.js} +2 -2
  14. package/dist/bundle/chunk-3PLMMFP6.js +1068 -0
  15. package/dist/bundle/{chunk-Z5HHBTS5.js → chunk-3VVZFBE2.js} +23 -4
  16. package/dist/bundle/{chunk-XDL4L3OI.js → chunk-42R4YO4L.js} +3609 -1620
  17. package/dist/bundle/{chunk-3S6KZCZ7.js → chunk-4CIVGT4P.js} +57 -28
  18. package/dist/bundle/{chunk-QLXKWAET.js → chunk-4EGB7GSW.js} +87 -19
  19. package/dist/bundle/chunk-54JPEGQA.js +71 -0
  20. package/dist/bundle/chunk-5EL6E6PW.js +13 -0
  21. package/dist/bundle/{chunk-V23X3W2W.js → chunk-7AWJZ6NJ.js} +8 -8
  22. package/dist/bundle/{chunk-UB6J5HRW.js → chunk-A5RWKKBZ.js} +3 -3
  23. package/dist/bundle/{chunk-HJLTWT52.js → chunk-ASEBKZFY.js} +2 -2
  24. package/dist/bundle/{chunk-EISV5YWD.js → chunk-BV3HZYOX.js} +6959 -6230
  25. package/dist/bundle/{chunk-MFN5MSIL.js → chunk-CDSSKK5J.js} +3 -3
  26. package/dist/bundle/{chunk-7EFJHLKW.js → chunk-DFSLHF46.js} +1 -1
  27. package/dist/bundle/{chunk-E2Z4C6CQ.js → chunk-E66JBGZZ.js} +6 -6
  28. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-E6VSARSU.js} +2 -2
  29. package/dist/bundle/{chunk-ZJPXRW65.js → chunk-F3GHTPAO.js} +4 -4
  30. package/dist/bundle/{chunk-SWGGYBCW.js → chunk-GUL6QLNI.js} +40 -21
  31. package/dist/bundle/{chunk-UBFDPLFQ.js → chunk-HEV23NIB.js} +6 -6
  32. package/dist/bundle/{chunk-EABZ2CUG.js → chunk-HSRO77SW.js} +34 -29
  33. package/dist/bundle/{chunk-ZOBRYIUG.js → chunk-I4JUKRW7.js} +2 -2
  34. package/dist/bundle/{chunk-QVMAZVSN.js → chunk-IK6XKMLL.js} +1 -1
  35. package/dist/bundle/{chunk-SNEJK4SN.js → chunk-ISGXVFA4.js} +4 -4
  36. package/dist/bundle/{chunk-KKMNMQMW.js → chunk-IVFUSI7G.js} +2 -2
  37. package/dist/bundle/{chunk-6FK2Z75N.js → chunk-KVJSCJGZ.js} +2 -2
  38. package/dist/bundle/{chunk-NYRAW4M5.js → chunk-LKMZ53GC.js} +4 -7
  39. package/dist/bundle/{chunk-B6G3TNN4.js → chunk-M4W4Y5YR.js} +132 -40
  40. package/dist/bundle/{chunk-BGUYYKS3.js → chunk-N5UM63JW.js} +343 -112
  41. package/dist/bundle/{chunk-OE5JMZSM.js → chunk-NL4COYPY.js} +9 -9
  42. package/dist/bundle/{chunk-3BUQXB7B.js → chunk-NQXVZ5WT.js} +15 -117
  43. package/dist/bundle/{chunk-DEMGDKCX.js → chunk-OH3IZ6GW.js} +2395 -2369
  44. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
  45. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-OK4M4MWI.js} +4 -4
  46. package/dist/bundle/{chunk-OOWE2O5U.js → chunk-OVDB5CQM.js} +1 -1
  47. package/dist/bundle/{chunk-PZQ2MQFX.js → chunk-PI4XXMPG.js} +6 -6
  48. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
  49. package/dist/bundle/{chunk-U5FILNK6.js → chunk-PP4ZBLS4.js} +69 -6
  50. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-PZ6H65D6.js} +4 -4
  51. package/dist/bundle/{chunk-4DCFLHLN.js → chunk-QFV36CAH.js} +4 -4
  52. package/dist/bundle/{chunk-Q74XVJFT.js → chunk-QGCVQRHV.js} +1 -1
  53. package/dist/bundle/{chunk-QLB3BFSN.js → chunk-QK4T3VN7.js} +1 -1
  54. package/dist/bundle/{chunk-5IHYZ6ED.js → chunk-QWAMX6CN.js} +12 -12
  55. package/dist/bundle/{chunk-SCGCDLI7.js → chunk-RBV4M2TC.js} +1 -1
  56. package/dist/bundle/{chunk-6KT5BTWL.js → chunk-RHJHOOUL.js} +341 -184
  57. package/dist/bundle/{chunk-STPYSD6W.js → chunk-SGBH3D5D.js} +3 -3
  58. package/dist/bundle/{chunk-ADI5R2MM.js → chunk-UII3D3HR.js} +51 -51
  59. package/dist/bundle/{chunk-PAHSIORC.js → chunk-UP3J3YXH.js} +6 -6
  60. package/dist/bundle/{chunk-SMFUKHG2.js → chunk-UR62DZ7Q.js} +24 -9
  61. package/dist/bundle/{chunk-ZQ3WGGKK.js → chunk-VAKSXD4F.js} +13 -13
  62. package/dist/bundle/{chunk-WA7YED3Y.js → chunk-VGUWIHXD.js} +1 -1
  63. package/dist/bundle/chunk-VIIIC5LU.js +32 -0
  64. package/dist/bundle/{chunk-3P7HWXDJ.js → chunk-VMWJGUVV.js} +14 -5
  65. package/dist/bundle/{chunk-V4JEZFW5.js → chunk-W4LMTNN2.js} +2 -2
  66. package/dist/bundle/{chunk-ENEMZAIJ.js → chunk-WKOVQ4OU.js} +14 -12
  67. package/dist/bundle/{chunk-T5OO7VDT.js → chunk-WSLIXJET.js} +3798 -3401
  68. package/dist/bundle/{chunk-WSLTW6MI.js → chunk-XDHGM2Z7.js} +3 -3
  69. package/dist/bundle/{chunk-5R5HGV2J.js → chunk-XSGUG5WG.js} +4 -4
  70. package/dist/bundle/{chunk-RDKPKS2P.js → chunk-YQFO7WXQ.js} +2 -2
  71. package/dist/bundle/{chunk-VVRWH5VH.js → chunk-ZL5YG2WK.js} +14 -9
  72. package/dist/bundle/{chunk-FFHX7VKP.js → chunk-ZNICTHSC.js} +1 -1
  73. package/dist/bundle/{chunk-BAB3ALHZ.js → chunk-ZTMV5M3D.js} +27 -25
  74. package/dist/bundle/command-contract-UKOL455D.js +34 -0
  75. package/dist/bundle/{command-server-entry-5LKDRLEX.js → command-server-entry-K52OEKIO.js} +24 -22
  76. package/dist/bundle/{decode-L4DQDHXA.js → decode-OAE25LEJ.js} +5 -5
  77. package/dist/bundle/{dispatch-PQSCFHEX.js → dispatch-6GVTXIZ2.js} +8 -8
  78. package/dist/bundle/{echarts-6LES2JIV.js → echarts-EO4ZGKMN.js} +2 -2
  79. package/dist/bundle/{embed-T5MLKX75.js → embed-TB2AS4AT.js} +6 -6
  80. package/dist/bundle/{embedder-56NMRLC5.js → embedder-YKC42G6L.js} +9 -9
  81. package/dist/bundle/{entry-U5GV6Y46.js → entry-AB6FU7BN.js} +9 -8
  82. package/dist/bundle/{failure-BX5HJAQE.js → failure-CY7ACT6V.js} +2 -2
  83. package/dist/bundle/{first-run-ISQ52V3I.js → first-run-CMQZHDI5.js} +11 -11
  84. package/dist/bundle/first-screen-XZ73W3VE.js +32 -0
  85. package/dist/bundle/{instructions-CJEXDI7E.js → instructions-RM3IB6ID.js} +1 -1
  86. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
  87. package/dist/bundle/{node-QLWTGZW7.js → node-D2PM62TA.js} +2 -2
  88. package/dist/bundle/{node-sqlite-X2C3RR2Q.js → node-sqlite-UK5DE525.js} +7 -7
  89. package/dist/bundle/{oauth-VP3KMHLX.js → oauth-SKRG67A2.js} +7 -7
  90. package/dist/bundle/{open-GLR5EUZS.js → open-XP3SY62D.js} +5 -5
  91. package/dist/bundle/{openai-6CDCJ5LQ.js → openai-Q3U46UPA.js} +21 -17
  92. package/dist/bundle/{process-7FABZ3T2.js → process-YJ4LHMJB.js} +1 -1
  93. package/dist/bundle/{program-KUIAHJDX.js → program-EEPEFKTR.js} +80 -63
  94. package/dist/bundle/{prompt-XPHIZMD2.js → prompt-WYTODP4U.js} +5 -5
  95. package/dist/bundle/{proxy-transport-IIB7ZXIS.js → proxy-transport-HJMQ5QFT.js} +5 -5
  96. package/dist/bundle/{recognize-FVFYI3XX.js → recognize-K2S5QQU2.js} +4 -4
  97. package/dist/bundle/{remote-3AMCG2P4.js → remote-7RSAJ3JC.js} +9 -7
  98. package/dist/bundle/{rerank-XV4E25ML.js → rerank-RJX77BKD.js} +7 -7
  99. package/dist/bundle/{serve-NVSZA4UN.js → serve-3E7NN3VW.js} +14 -14
  100. package/dist/bundle/server-ITHYDPWQ.js +62 -0
  101. package/dist/bundle/{server-MBMPHRJE.js → server-O3KU56A4.js} +36 -35
  102. package/dist/bundle/sqlite-runtime-RCS5WSG5.js +19 -0
  103. package/dist/bundle/{state-JBMB2QUR.js → state-PLWSPSAG.js} +6 -6
  104. package/dist/bundle/store-3FYLH53Z.js +276 -0
  105. package/dist/bundle/{store-T4SCYTY2.js → store-DWMKCXYL.js} +15 -13
  106. package/dist/bundle/store-maintenance-command-3UEKINRB.js +52 -0
  107. package/dist/bundle/tg.js +13 -13
  108. package/dist/commands/account-removal.d.ts.map +1 -1
  109. package/dist/commands/account-removal.js +5 -3
  110. package/dist/commands/account-removal.js.map +1 -1
  111. package/dist/commands/session.d.ts.map +1 -1
  112. package/dist/commands/session.js +21 -3
  113. package/dist/commands/session.js.map +1 -1
  114. package/dist/paths.d.ts +6 -0
  115. package/dist/paths.d.ts.map +1 -1
  116. package/dist/paths.js +23 -2
  117. package/dist/paths.js.map +1 -1
  118. package/dist/program.d.ts +4 -1
  119. package/dist/program.d.ts.map +1 -1
  120. package/dist/program.js +5 -2
  121. package/dist/program.js.map +1 -1
  122. package/dist/version.d.ts +1 -1
  123. package/dist/version.js +1 -1
  124. package/package.json +4 -4
  125. package/dist/bundle/chunk-I7K4OR5Q.js +0 -265
  126. package/dist/bundle/chunk-PZJXQMSZ.js +0 -27
  127. package/dist/bundle/command-contract-HWSWHMO4.js +0 -33
  128. package/dist/bundle/first-screen-7L4AMZDO.js +0 -31
  129. package/dist/bundle/server-MHVGYRQZ.js +0 -61
  130. package/dist/bundle/store-maintenance-command-F7WQMTMP.js +0 -49
  131. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
@@ -1787,7 +1787,7 @@
1787
1787
  "schedule",
1788
1788
  "agent"
1789
1789
  ],
1790
- "summary": "start an agent (claude or codex) with a prompt on a timer; it runs with…",
1790
+ "summary": "start an agent (claude, codex, gemini, cursor, opencode, openclaw, hermes,…",
1791
1791
  "effects": {
1792
1792
  "remote": "none",
1793
1793
  "local": "write"
@@ -1805,6 +1805,19 @@
1805
1805
  },
1806
1806
  "entity": "scheduled_job"
1807
1807
  },
1808
+ {
1809
+ "path": [
1810
+ "schedule",
1811
+ "agents",
1812
+ "list"
1813
+ ],
1814
+ "summary": "the agents a schedule may start, and which are on PATH here",
1815
+ "effects": {
1816
+ "remote": "none",
1817
+ "local": "read"
1818
+ },
1819
+ "entity": "schedule_harness"
1820
+ },
1808
1821
  {
1809
1822
  "path": [
1810
1823
  "schedule",
@@ -2192,7 +2205,7 @@
2192
2205
  "remote": "none",
2193
2206
  "local": "write"
2194
2207
  },
2195
- "permission": "messages"
2208
+ "permission": "store.recover.run"
2196
2209
  },
2197
2210
  {
2198
2211
  "path": [
@@ -2709,6 +2722,19 @@
2709
2722
  "permission": "conversations.embeddings",
2710
2723
  "entity": "image_embedding"
2711
2724
  },
2725
+ {
2726
+ "path": [
2727
+ "images",
2728
+ "read"
2729
+ ],
2730
+ "summary": "have your coding agent read the text of one picture, and keep it for search",
2731
+ "effects": {
2732
+ "remote": "read",
2733
+ "local": "write"
2734
+ },
2735
+ "permission": "images.read",
2736
+ "entity": "attachment_text_change"
2737
+ },
2712
2738
  {
2713
2739
  "path": [
2714
2740
  "images",
@@ -3808,7 +3834,7 @@
3808
3834
  "reports",
3809
3835
  "show"
3810
3836
  ],
3811
- "summary": "what a problem report holds; writes nothing",
3837
+ "summary": "what a report holds and never holds, and where to send it; writes nothing",
3812
3838
  "effects": {
3813
3839
  "remote": "none",
3814
3840
  "local": "none"
@@ -3820,7 +3846,7 @@
3820
3846
  "reports",
3821
3847
  "create"
3822
3848
  ],
3823
- "summary": "write a problem report to a file, and say where to send it",
3849
+ "summary": "the report file written: its path, the run it is about, and where to send it",
3824
3850
  "effects": {
3825
3851
  "remote": "none",
3826
3852
  "local": "write"
@@ -7205,11 +7231,26 @@
7205
7231
  "when",
7206
7232
  "notify",
7207
7233
  "deliver_to",
7234
+ "harness",
7235
+ "reports_cost",
7208
7236
  "spent_today_usd",
7209
7237
  "max_cost_usd",
7210
7238
  "max_cost_per_day_usd"
7211
7239
  ]
7212
7240
  },
7241
+ "schedule_harness": {
7242
+ "fields": [
7243
+ "id",
7244
+ "name",
7245
+ "programs",
7246
+ "reports_cost",
7247
+ "restricted",
7248
+ "restricted_reason",
7249
+ "allowed_with_ack",
7250
+ "installed",
7251
+ "path"
7252
+ ]
7253
+ },
7213
7254
  "job": {
7214
7255
  "fields": [
7215
7256
  "id",
@@ -7295,6 +7336,7 @@
7295
7336
  "source",
7296
7337
  "kind",
7297
7338
  "muted",
7339
+ "participants_count",
7298
7340
  "has",
7299
7341
  "topic",
7300
7342
  "in",
@@ -7337,6 +7379,7 @@
7337
7379
  "source",
7338
7380
  "kind",
7339
7381
  "muted",
7382
+ "participants_count",
7340
7383
  "has",
7341
7384
  "topic",
7342
7385
  "in",
package/dist/bin/tg.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.123.0\n")
12
+ process.stdout.write("0.124.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -28,7 +28,7 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
- const chunks = ["../bundle/adapter-GAOG65O2.js","../bundle/all-profiles-HLE6PHNI.js","../bundle/anthropic-FZC4BS7T.js","../bundle/app-server-SHZNMV27.js","../bundle/bot-api-LRS2KMDE.js","../bundle/bot-history-IJ7ZZKW5.js","../bundle/bun-FACL53HM.js","../bundle/bun-sqlite-B2MD7RTL.js","../bundle/command-contract-HWSWHMO4.js","../bundle/command-server-entry-5LKDRLEX.js","../bundle/decode-L4DQDHXA.js","../bundle/dispatch-PQSCFHEX.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-6LES2JIV.js","../bundle/embed-T5MLKX75.js","../bundle/embedder-56NMRLC5.js","../bundle/entry-U5GV6Y46.js","../bundle/failure-BX5HJAQE.js","../bundle/first-run-ISQ52V3I.js","../bundle/first-screen-7L4AMZDO.js","../bundle/instructions-CJEXDI7E.js","../bundle/mcp-7KQUJNFN.js","../bundle/node-P4E63KXA.js","../bundle/node-QLWTGZW7.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-X2C3RR2Q.js","../bundle/oauth-VP3KMHLX.js","../bundle/open-GLR5EUZS.js","../bundle/openai-6CDCJ5LQ.js","../bundle/process-7FABZ3T2.js","../bundle/program-KUIAHJDX.js","../bundle/prompt-XPHIZMD2.js","../bundle/proxy-transport-IIB7ZXIS.js","../bundle/recognize-FVFYI3XX.js","../bundle/remote-3AMCG2P4.js","../bundle/rerank-XV4E25ML.js","../bundle/serve-NVSZA4UN.js","../bundle/server-MBMPHRJE.js","../bundle/server-MHVGYRQZ.js","../bundle/state-JBMB2QUR.js","../bundle/store-T4SCYTY2.js","../bundle/store-maintenance-command-F7WQMTMP.js"]
31
+ const chunks = ["../bundle/adapter-GEIZVMWU.js","../bundle/all-profiles-EY4GJFWN.js","../bundle/anthropic-RIANJ7WM.js","../bundle/app-server-LW7WBFIF.js","../bundle/bot-api-FHIQ66OM.js","../bundle/bot-history-O34YZEFH.js","../bundle/bun-MJWD4VGV.js","../bundle/bun-sqlite-LCHVO3OB.js","../bundle/command-contract-UKOL455D.js","../bundle/command-server-entry-K52OEKIO.js","../bundle/decode-OAE25LEJ.js","../bundle/dispatch-6GVTXIZ2.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-EO4ZGKMN.js","../bundle/embed-TB2AS4AT.js","../bundle/embedder-YKC42G6L.js","../bundle/entry-AB6FU7BN.js","../bundle/failure-CY7ACT6V.js","../bundle/first-run-CMQZHDI5.js","../bundle/first-screen-XZ73W3VE.js","../bundle/instructions-RM3IB6ID.js","../bundle/mcp-M5YCSWJJ.js","../bundle/node-D2PM62TA.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-UK5DE525.js","../bundle/oauth-SKRG67A2.js","../bundle/open-XP3SY62D.js","../bundle/openai-Q3U46UPA.js","../bundle/process-YJ4LHMJB.js","../bundle/program-EEPEFKTR.js","../bundle/prompt-WYTODP4U.js","../bundle/proxy-transport-HJMQ5QFT.js","../bundle/recognize-K2S5QQU2.js","../bundle/remote-7RSAJ3JC.js","../bundle/rerank-RJX77BKD.js","../bundle/serve-3E7NN3VW.js","../bundle/server-ITHYDPWQ.js","../bundle/server-O3KU56A4.js","../bundle/state-PLWSPSAG.js","../bundle/store-DWMKCXYL.js","../bundle/store-maintenance-command-3UEKINRB.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -35,7 +35,10 @@ import {
35
35
  toUploadParams,
36
36
  videoMime,
37
37
  withCause
38
- } from "./chunk-V4722KYX.js";
38
+ } from "./chunk-2YLIVDWJ.js";
39
+ import {
40
+ proxiedTransport
41
+ } from "./chunk-ASEBKZFY.js";
39
42
  import {
40
43
  ADMIN_RIGHTS,
41
44
  ADMIN_RIGHT_FIELDS,
@@ -43,73 +46,72 @@ import {
43
46
  bareCheck,
44
47
  formatMarkdown,
45
48
  providerRequest
46
- } from "./chunk-EISV5YWD.js";
47
- import "./chunk-WA7YED3Y.js";
48
- import "./chunk-LVGX7VTD.js";
49
- import {
50
- proxiedTransport
51
- } from "./chunk-HJLTWT52.js";
52
- import "./chunk-ZOBRYIUG.js";
53
- import "./chunk-SCGCDLI7.js";
54
- import "./chunk-BAB3ALHZ.js";
55
- import "./chunk-QLXKWAET.js";
56
- import "./chunk-SNEJK4SN.js";
57
- import "./chunk-BGUYYKS3.js";
58
- import "./chunk-EABZ2CUG.js";
49
+ } from "./chunk-BV3HZYOX.js";
50
+ import "./chunk-I4JUKRW7.js";
51
+ import "./chunk-VGUWIHXD.js";
52
+ import "./chunk-PZ6H65D6.js";
53
+ import "./chunk-QWAMX6CN.js";
54
+ import "./chunk-WKOVQ4OU.js";
55
+ import "./chunk-RBV4M2TC.js";
56
+ import "./chunk-ZTMV5M3D.js";
57
+ import "./chunk-4EGB7GSW.js";
58
+ import "./chunk-ISGXVFA4.js";
59
+ import "./chunk-N5UM63JW.js";
60
+ import "./chunk-HSRO77SW.js";
59
61
  import {
60
62
  uploadBlob,
61
63
  validateFormattedText
62
- } from "./chunk-T5OO7VDT.js";
63
- import "./chunk-I7K4OR5Q.js";
64
- import "./chunk-ZQ3WGGKK.js";
65
- import "./chunk-MFN5MSIL.js";
66
- import "./chunk-U5FILNK6.js";
67
- import "./chunk-3BUQXB7B.js";
64
+ } from "./chunk-WSLIXJET.js";
65
+ import "./chunk-VAKSXD4F.js";
66
+ import "./chunk-XSGUG5WG.js";
67
+ import "./chunk-PJGOQSE5.js";
68
+ import "./chunk-CDSSKK5J.js";
69
+ import "./chunk-PP4ZBLS4.js";
70
+ import "./chunk-3PLMMFP6.js";
71
+ import "./chunk-PI4XXMPG.js";
72
+ import "./chunk-NQXVZ5WT.js";
68
73
  import "./chunk-2ABQZVK4.js";
69
- import "./chunk-5IHYZ6ED.js";
70
- import "./chunk-5R5HGV2J.js";
71
- import "./chunk-MCPOZNWG.js";
72
- import "./chunk-ENEMZAIJ.js";
73
- import "./chunk-WSLTW6MI.js";
74
- import "./chunk-V4JEZFW5.js";
74
+ import "./chunk-NL4COYPY.js";
75
+ import "./chunk-5EL6E6PW.js";
76
+ import "./chunk-IK6XKMLL.js";
77
+ import "./chunk-XDHGM2Z7.js";
78
+ import "./chunk-W4LMTNN2.js";
75
79
  import {
76
80
  observedCounters,
77
81
  pickChat
78
- } from "./chunk-XDL4L3OI.js";
79
- import "./chunk-V23X3W2W.js";
80
- import "./chunk-Q74XVJFT.js";
81
- import "./chunk-3P7HWXDJ.js";
82
- import "./chunk-PZQ2MQFX.js";
83
- import "./chunk-RX5CJ55S.js";
82
+ } from "./chunk-42R4YO4L.js";
83
+ import "./chunk-7AWJZ6NJ.js";
84
+ import "./chunk-QGCVQRHV.js";
85
+ import "./chunk-VMWJGUVV.js";
86
+ import "./chunk-OIF4B526.js";
84
87
  import "./chunk-D72URWJE.js";
85
- import "./chunk-OE5JMZSM.js";
86
- import "./chunk-QVMAZVSN.js";
87
- import "./chunk-NYRAW4M5.js";
88
- import "./chunk-UBFDPLFQ.js";
89
- import "./chunk-FFHX7VKP.js";
90
- import "./chunk-ZJPXRW65.js";
91
- import "./chunk-6KT5BTWL.js";
92
- import "./chunk-UB6J5HRW.js";
93
- import "./chunk-QLB3BFSN.js";
94
- import "./chunk-VVRWH5VH.js";
95
- import "./chunk-STPYSD6W.js";
96
- import "./chunk-PZJXQMSZ.js";
88
+ import "./chunk-LKMZ53GC.js";
89
+ import "./chunk-HEV23NIB.js";
90
+ import "./chunk-ZNICTHSC.js";
91
+ import "./chunk-F3GHTPAO.js";
92
+ import "./chunk-RHJHOOUL.js";
93
+ import "./chunk-ZL5YG2WK.js";
94
+ import "./chunk-SGBH3D5D.js";
95
+ import "./chunk-54JPEGQA.js";
96
+ import "./chunk-QK4T3VN7.js";
97
+ import "./chunk-VIIIC5LU.js";
98
+ import "./chunk-A5RWKKBZ.js";
99
+ import "./chunk-2NG4JPP7.js";
97
100
  import {
98
101
  currentAttempt,
99
102
  runEvent
100
- } from "./chunk-DEMGDKCX.js";
101
- import "./chunk-Z5HHBTS5.js";
102
- import "./chunk-PAHSIORC.js";
103
- import "./chunk-EOUUI5FI.js";
104
- import "./chunk-YVNHQFLC.js";
105
- import "./chunk-KKMNMQMW.js";
106
- import "./chunk-3S6KZCZ7.js";
107
- import "./chunk-SMFUKHG2.js";
103
+ } from "./chunk-OH3IZ6GW.js";
104
+ import "./chunk-3VVZFBE2.js";
105
+ import "./chunk-UP3J3YXH.js";
106
+ import "./chunk-HVJJWJYQ.js";
107
+ import "./chunk-IVFUSI7G.js";
108
+ import "./chunk-4CIVGT4P.js";
109
+ import "./chunk-UR62DZ7Q.js";
108
110
  import "./chunk-Y5E2WNWB.js";
109
111
  import {
110
112
  CliError,
111
113
  isCliError
112
- } from "./chunk-VUBZFMGP.js";
114
+ } from "./chunk-E6VSARSU.js";
113
115
  import {
114
116
  __name
115
117
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,29 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-OOWE2O5U.js";
5
+ } from "./chunk-OVDB5CQM.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  StdioServerTransport,
10
10
  callerOf,
11
11
  serveStdio
12
- } from "./chunk-3JISIGLP.js";
12
+ } from "./chunk-2GFGZDWS.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-VVRWH5VH.js";
17
- import "./chunk-Z5HHBTS5.js";
18
- import "./chunk-YVNHQFLC.js";
19
- import "./chunk-3S6KZCZ7.js";
20
- import "./chunk-SMFUKHG2.js";
16
+ import "./chunk-ZL5YG2WK.js";
17
+ import "./chunk-3VVZFBE2.js";
18
+ import "./chunk-HVJJWJYQ.js";
19
+ import "./chunk-4CIVGT4P.js";
20
+ import "./chunk-UR62DZ7Q.js";
21
21
  import "./chunk-Y5E2WNWB.js";
22
- import "./chunk-VUBZFMGP.js";
22
+ import "./chunk-E6VSARSU.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
28
28
  import { spawn } from "node:child_process";
29
29
  import { randomUUID } from "node:crypto";
30
30
  var PROTOCOL = "2025-06-18";
@@ -258,7 +258,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
258
258
  }, "serveAllProfilesOverStdio");
259
259
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
260
260
  const { build, close } = allProfilesServer(options);
261
- const { serveOverHttp } = await import("./serve-NVSZA4UN.js");
261
+ const { serveOverHttp } = await import("./serve-3E7NN3VW.js");
262
262
  const listening = await serveOverHttp(build, {
263
263
  ...http,
264
264
  appName: options.command,
@@ -1,14 +1,15 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
+ EmptyAnswer,
4
5
  checkedOptions,
5
6
  messagesFor,
6
7
  systemFor
7
- } from "./chunk-3P7HWXDJ.js";
8
+ } from "./chunk-VMWJGUVV.js";
8
9
  import {
9
10
  Anthropic
10
11
  } from "./chunk-ADLS6FVG.js";
11
- import "./chunk-3S6KZCZ7.js";
12
+ import "./chunk-4CIVGT4P.js";
12
13
  import {
13
14
  array,
14
15
  literal,
@@ -18,14 +19,14 @@ import {
18
19
  strictObject,
19
20
  string,
20
21
  unknown
21
- } from "./chunk-SMFUKHG2.js";
22
+ } from "./chunk-UR62DZ7Q.js";
22
23
  import "./chunk-Y5E2WNWB.js";
23
- import "./chunk-VUBZFMGP.js";
24
+ import "./chunk-E6VSARSU.js";
24
25
  import {
25
26
  __name
26
27
  } from "./chunk-ZVVMGPBJ.js";
27
28
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/models/anthropic.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/models/anthropic.js
29
30
  var options = strictObject({
30
31
  stop_sequences: optional(array(string())),
31
32
  thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
@@ -57,10 +58,13 @@ var anthropic = {
57
58
  ...request.images === void 0 ? [] : [
58
59
  {
59
60
  role: "user",
60
- content: request.images.map((image) => ({
61
- type: "image",
62
- source: { type: "base64", media_type: image.mimeType, data: image.data }
63
- }))
61
+ content: [
62
+ { type: "text", text: request.prompt },
63
+ ...request.images.map((image) => ({
64
+ type: "image",
65
+ source: { type: "base64", media_type: image.mimeType, data: image.data }
66
+ }))
67
+ ]
64
68
  }
65
69
  ]
66
70
  ],
@@ -68,8 +72,11 @@ var anthropic = {
68
72
  }).finalMessage();
69
73
  if (response.stop_reason !== "end_turn")
70
74
  throw new Error("incomplete response");
75
+ const text = response.content.filter((block) => block.type === "text").map((block) => block.text).join("");
76
+ if (text.trim() === "")
77
+ throw new EmptyAnswer();
71
78
  return {
72
- text: response.content.filter((block) => block.type === "text").map((block) => block.text).join(""),
79
+ text,
73
80
  usage: {
74
81
  input: response.usage.input_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0),
75
82
  output: response.usage.output_tokens
@@ -3,57 +3,57 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-ADI5R2MM.js";
6
+ } from "./chunk-UII3D3HR.js";
7
+ import {
8
+ mcpUrlOf
9
+ } from "./chunk-ZTMV5M3D.js";
10
+ import {
11
+ answeredWire
12
+ } from "./chunk-OVDB5CQM.js";
7
13
  import {
8
14
  answered,
9
15
  failed,
10
16
  registerCommands,
11
17
  runCommandForAgent,
12
18
  toolsFromCommands
13
- } from "./chunk-B6G3TNN4.js";
14
- import {
15
- mcpUrlOf
16
- } from "./chunk-BAB3ALHZ.js";
19
+ } from "./chunk-M4W4Y5YR.js";
17
20
  import {
18
21
  agentJson,
19
22
  skillResource
20
- } from "./chunk-QLXKWAET.js";
21
- import {
22
- appInstructions
23
- } from "./chunk-7EFJHLKW.js";
24
- import {
25
- mcpHttpMarker
26
- } from "./chunk-SNEJK4SN.js";
27
- import {
28
- answeredWire
29
- } from "./chunk-OOWE2O5U.js";
23
+ } from "./chunk-4EGB7GSW.js";
30
24
  import {
31
25
  StdioServerTransport,
32
26
  serveStdio
33
- } from "./chunk-3JISIGLP.js";
27
+ } from "./chunk-2GFGZDWS.js";
28
+ import {
29
+ appInstructions
30
+ } from "./chunk-DFSLHF46.js";
34
31
  import {
35
32
  McpServer
36
33
  } from "./chunk-5D4AEUVA.js";
37
- import "./chunk-EABZ2CUG.js";
38
- import "./chunk-T5OO7VDT.js";
39
- import "./chunk-I7K4OR5Q.js";
40
- import "./chunk-ZQ3WGGKK.js";
41
- import "./chunk-MFN5MSIL.js";
42
- import "./chunk-U5FILNK6.js";
43
- import "./chunk-5R5HGV2J.js";
44
- import "./chunk-MCPOZNWG.js";
45
- import "./chunk-V4JEZFW5.js";
46
- import "./chunk-XDL4L3OI.js";
47
- import "./chunk-V23X3W2W.js";
48
- import "./chunk-Q74XVJFT.js";
49
- import "./chunk-3P7HWXDJ.js";
50
- import "./chunk-PZQ2MQFX.js";
51
- import "./chunk-RX5CJ55S.js";
34
+ import {
35
+ mcpHttpMarker
36
+ } from "./chunk-ISGXVFA4.js";
37
+ import "./chunk-HSRO77SW.js";
38
+ import "./chunk-WSLIXJET.js";
39
+ import "./chunk-VAKSXD4F.js";
40
+ import "./chunk-XSGUG5WG.js";
41
+ import "./chunk-PJGOQSE5.js";
42
+ import "./chunk-CDSSKK5J.js";
43
+ import "./chunk-PP4ZBLS4.js";
44
+ import "./chunk-3PLMMFP6.js";
45
+ import "./chunk-PI4XXMPG.js";
46
+ import "./chunk-IK6XKMLL.js";
47
+ import "./chunk-W4LMTNN2.js";
48
+ import "./chunk-42R4YO4L.js";
49
+ import "./chunk-7AWJZ6NJ.js";
50
+ import "./chunk-QGCVQRHV.js";
51
+ import "./chunk-VMWJGUVV.js";
52
+ import "./chunk-OIF4B526.js";
52
53
  import "./chunk-D72URWJE.js";
53
- import "./chunk-QVMAZVSN.js";
54
- import "./chunk-UBFDPLFQ.js";
55
- import "./chunk-FFHX7VKP.js";
56
- import "./chunk-ZJPXRW65.js";
54
+ import "./chunk-HEV23NIB.js";
55
+ import "./chunk-ZNICTHSC.js";
56
+ import "./chunk-F3GHTPAO.js";
57
57
  import {
58
58
  DEFAULT_OUTPUT_BYTES,
59
59
  changesAuthorityAt,
@@ -62,34 +62,42 @@ import {
62
62
  judgedTargets,
63
63
  readsOverMcpAt,
64
64
  rootOf2 as rootOf
65
- } from "./chunk-6KT5BTWL.js";
66
- import "./chunk-UB6J5HRW.js";
67
- import "./chunk-QLB3BFSN.js";
68
- import "./chunk-VVRWH5VH.js";
69
- import "./chunk-STPYSD6W.js";
65
+ } from "./chunk-RHJHOOUL.js";
66
+ import "./chunk-ZL5YG2WK.js";
67
+ import "./chunk-SGBH3D5D.js";
70
68
  import {
71
69
  readOnlyLockOf
72
- } from "./chunk-PZJXQMSZ.js";
73
- import "./chunk-DEMGDKCX.js";
74
- import "./chunk-Z5HHBTS5.js";
75
- import "./chunk-PAHSIORC.js";
76
- import "./chunk-EOUUI5FI.js";
77
- import "./chunk-YVNHQFLC.js";
78
- import "./chunk-KKMNMQMW.js";
79
- import "./chunk-3S6KZCZ7.js";
70
+ } from "./chunk-54JPEGQA.js";
71
+ import "./chunk-QK4T3VN7.js";
72
+ import "./chunk-VIIIC5LU.js";
73
+ import "./chunk-A5RWKKBZ.js";
74
+ import "./chunk-2NG4JPP7.js";
75
+ import "./chunk-OH3IZ6GW.js";
76
+ import "./chunk-3VVZFBE2.js";
77
+ import "./chunk-UP3J3YXH.js";
78
+ import "./chunk-HVJJWJYQ.js";
79
+ import "./chunk-IVFUSI7G.js";
80
+ import "./chunk-4CIVGT4P.js";
80
81
  import {
81
82
  mcpErrorResult
82
- } from "./chunk-SMFUKHG2.js";
83
+ } from "./chunk-UR62DZ7Q.js";
83
84
  import "./chunk-Y5E2WNWB.js";
84
85
  import {
85
86
  CliError
86
- } from "./chunk-VUBZFMGP.js";
87
+ } from "./chunk-E6VSARSU.js";
87
88
  import {
88
89
  __name
89
90
  } from "./chunk-ZVVMGPBJ.js";
90
91
 
91
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
92
+ // node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
92
93
  var EXCLUDED = [["mcp"]];
94
+ var aliasesOf = /* @__PURE__ */ __name((root, path) => {
95
+ let at = root;
96
+ for (const name of path)
97
+ at = at?.commands.find((child) => child.name() === name);
98
+ const aliases = at?.aliases() ?? [];
99
+ return aliases.length > 0 ? { aliases } : {};
100
+ }, "aliasesOf");
93
101
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
94
102
  const { app } = options;
95
103
  const root = rootOf(command);
@@ -126,6 +134,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
126
134
  {
127
135
  title: one.title,
128
136
  description: one.description,
137
+ ...one.keywords ? { keywords: one.keywords } : {},
138
+ ...aliasesOf(root, one.path),
129
139
  writes: one.writes,
130
140
  availability: availability(one),
131
141
  input: one.input,
@@ -206,7 +216,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
206
216
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
207
217
  const { app } = options;
208
218
  const { build } = createAppServer(command, context, options);
209
- const { serveOverHttp } = await import("./serve-NVSZA4UN.js");
219
+ const { serveOverHttp } = await import("./serve-3E7NN3VW.js");
210
220
  const listening = await serveOverHttp(build, {
211
221
  ...http,
212
222
  appName: app.command,