@wirecat/cli-memo 0.131.54 → 0.131.56

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 (127) hide show
  1. package/dist/author.d.ts +2 -0
  2. package/dist/author.d.ts.map +1 -1
  3. package/dist/author.js +3 -1
  4. package/dist/author.js.map +1 -1
  5. package/dist/bin/memo.js +2 -2
  6. package/dist/bundle/{all-profiles-PJR2VHDP.js → all-profiles-XWRUFNP2.js} +7 -7
  7. package/dist/bundle/{anthropic-ZUDIWREK.js → anthropic-266QJJGV.js} +5 -5
  8. package/dist/bundle/{app-server-EYNQ4L2V.js → app-server-CS3FQXPR.js} +38 -38
  9. package/dist/bundle/auto-XHUADK6H.js +86 -0
  10. package/dist/bundle/{bun-W2ZP6I6Z.js → bun-22MM6T54.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-T2CTJ6AR.js → bun-sqlite-V73FFF2C.js} +4 -4
  12. package/dist/bundle/{chunk-K236JZLF.js → chunk-2BVVXH5V.js} +6 -6
  13. package/dist/bundle/{chunk-MGDBKE7E.js → chunk-2CF2R7SA.js} +7 -7
  14. package/dist/bundle/{chunk-VQTU4ILC.js → chunk-2LPPNYOZ.js} +1 -1
  15. package/dist/bundle/{chunk-T5WGWLY2.js → chunk-2Q3O33AD.js} +11 -11
  16. package/dist/bundle/{chunk-6NJ5OI2S.js → chunk-3BWYMNWP.js} +1 -1
  17. package/dist/bundle/{chunk-2NVP4FZH.js → chunk-3N7LEJRT.js} +2 -2
  18. package/dist/bundle/{chunk-4335SGVD.js → chunk-4XKHXETB.js} +7007 -2683
  19. package/dist/bundle/{chunk-7ZO2LAFF.js → chunk-5FYDQEM7.js} +5 -5
  20. package/dist/bundle/{chunk-KK2ATSEC.js → chunk-5LFQPARU.js} +7 -7
  21. package/dist/bundle/{chunk-DIFRVXKQ.js → chunk-62DGJ757.js} +1124 -435
  22. package/dist/bundle/{chunk-IVDBHH3N.js → chunk-6FABO4WB.js} +1 -1
  23. package/dist/bundle/{chunk-OSPAMIIY.js → chunk-72ZEEKOJ.js} +3 -3
  24. package/dist/bundle/{chunk-MZMJALJT.js → chunk-ASWLM74P.js} +2 -2
  25. package/dist/bundle/{chunk-5UM2OEOR.js → chunk-ATEHG5O6.js} +2 -2
  26. package/dist/bundle/{chunk-JBQP2M7J.js → chunk-BLCYVRW3.js} +8 -8
  27. package/dist/bundle/{chunk-ZRBXOHNH.js → chunk-CKNH2HT6.js} +2 -2
  28. package/dist/bundle/{chunk-PSJB456T.js → chunk-CQPMBTB6.js} +1 -1
  29. package/dist/bundle/{chunk-O7CBAY6J.js → chunk-DQWHLOKG.js} +4 -4
  30. package/dist/bundle/{chunk-MU4MPJCU.js → chunk-DUBGCFRO.js} +3 -3
  31. package/dist/bundle/{chunk-WLKDS65F.js → chunk-EMNQPMZO.js} +1 -1
  32. package/dist/bundle/{chunk-LCE5LBZC.js → chunk-EQQIUVLP.js} +4 -4
  33. package/dist/bundle/{chunk-4VQ7FPNW.js → chunk-EUE76Q4D.js} +3 -3
  34. package/dist/bundle/{chunk-JGY2PJ3N.js → chunk-F5DOQOCK.js} +12 -12
  35. package/dist/bundle/{chunk-DDD3CXHR.js → chunk-FCWUSKUI.js} +31 -24
  36. package/dist/bundle/{chunk-OKERVM3M.js → chunk-FG7ZGEZ6.js} +4 -4
  37. package/dist/bundle/{chunk-26QKDK5P.js → chunk-FU3XDL34.js} +5 -5
  38. package/dist/bundle/{chunk-KTVYCPJW.js → chunk-HVHUHYNF.js} +1 -1
  39. package/dist/bundle/{chunk-WYZDNDQ5.js → chunk-IF3RIN4C.js} +734 -491
  40. package/dist/bundle/{chunk-P3MKPY7D.js → chunk-IFUB2B2A.js} +74 -15
  41. package/dist/bundle/{chunk-JI4LJ563.js → chunk-IX5KCS2V.js} +7 -7
  42. package/dist/bundle/{chunk-P5UTNYA7.js → chunk-IY7GB2SJ.js} +2 -2
  43. package/dist/bundle/{chunk-YHHR7NQ3.js → chunk-KKBA3FAY.js} +33 -33
  44. package/dist/bundle/{chunk-HIF4YBD7.js → chunk-KO24NP3R.js} +5 -5
  45. package/dist/bundle/{chunk-MV5W4FLV.js → chunk-N2TGYTKE.js} +1 -1
  46. package/dist/bundle/{chunk-UBZN4EWJ.js → chunk-NDCURVJS.js} +5 -5
  47. package/dist/bundle/{chunk-VPCNLTME.js → chunk-NEWKSMXP.js} +2 -2
  48. package/dist/bundle/{chunk-AYY5CYJJ.js → chunk-ONJNZ2RJ.js} +1 -1
  49. package/dist/bundle/{chunk-RSBROHX4.js → chunk-OROO3KYQ.js} +2 -2
  50. package/dist/bundle/{chunk-PHP3T567.js → chunk-PBVG3KJR.js} +3 -3
  51. package/dist/bundle/{chunk-BEO6VJ2E.js → chunk-PWUR2XTO.js} +106 -96
  52. package/dist/bundle/{chunk-B5VQSSL2.js → chunk-QWZPIELU.js} +14 -14
  53. package/dist/bundle/{chunk-64JCY7XJ.js → chunk-RCGFSWZE.js} +44 -0
  54. package/dist/bundle/{chunk-BC7N6IQ6.js → chunk-RJWL3NEL.js} +1 -1
  55. package/dist/bundle/{chunk-GESLAB4N.js → chunk-RTROEIYE.js} +2 -2
  56. package/dist/bundle/{chunk-JB43Q2QL.js → chunk-RYDNM3K2.js} +1 -1
  57. package/dist/bundle/{chunk-AF2ZDP3M.js → chunk-TB4IRRAC.js} +1 -1
  58. package/dist/bundle/{chunk-ME5RFKKD.js → chunk-UCTUYZER.js} +5 -5
  59. package/dist/bundle/{chunk-CADGAURO.js → chunk-USZH2ELR.js} +29 -29
  60. package/dist/bundle/{chunk-SR3ZNX24.js → chunk-V4BKQWDS.js} +132 -114
  61. package/dist/bundle/{chunk-RX6JTLKD.js → chunk-VEDOHZEU.js} +7 -7
  62. package/dist/bundle/{chunk-VXZ7FWKU.js → chunk-VQKSJO45.js} +3 -3
  63. package/dist/bundle/{chunk-FUINFNUC.js → chunk-XEQPZBIH.js} +1 -1
  64. package/dist/bundle/{chunk-MFVZXEQN.js → chunk-XIS7K5HT.js} +22 -22
  65. package/dist/bundle/{chunk-643B3X4D.js → chunk-XLYMVYMU.js} +2 -2
  66. package/dist/bundle/{chunk-IRFHHNSX.js → chunk-XN5POYJL.js} +319 -182
  67. package/dist/bundle/{chunk-3MWNNJII.js → chunk-Y6PP45D4.js} +9 -9
  68. package/dist/bundle/{chunk-34GJQ4ZR.js → chunk-YTAQKOAW.js} +1 -1
  69. package/dist/bundle/{chunk-VBYV6XQI.js → chunk-Z6RSOFHK.js} +2 -2
  70. package/dist/bundle/{chunk-OQVLH2BS.js → chunk-ZA6ZKUGT.js} +5 -5
  71. package/dist/bundle/{chunk-ZTM4UUCP.js → chunk-ZGSAA2H5.js} +10 -10
  72. package/dist/bundle/{command-contract-EWPKHGAZ.js → command-contract-RST6OGMR.js} +13 -13
  73. package/dist/bundle/{decode-UWT3Y66W.js → decode-JHVAOF3N.js} +4 -4
  74. package/dist/bundle/{dispatch-W4ZVXTJT.js → dispatch-CRYB6Q2V.js} +1 -1
  75. package/dist/bundle/{echarts-7VGTR45R.js → echarts-KCOXA225.js} +2 -2
  76. package/dist/bundle/{embed-CM2QSTNK.js → embed-4NYYOVNS.js} +5 -5
  77. package/dist/bundle/{embedder-CDCAMVV7.js → embedder-SHPWEDIQ.js} +8 -8
  78. package/dist/bundle/{entry-WHEWBNJL.js → entry-4WKYFX5K.js} +6 -6
  79. package/dist/bundle/failure-BBE2DUGO.js +66 -0
  80. package/dist/bundle/{failure-GQHAQVGH.js → failure-ZMQJF3RO.js} +1 -1
  81. package/dist/bundle/{first-run-ZBIQO5RZ.js → first-run-2JHWQLHM.js} +8 -8
  82. package/dist/bundle/first-screen-AVSHZ6KK.js +30 -0
  83. package/dist/bundle/{instructions-LYKSTUGQ.js → instructions-ER3ONEOR.js} +1 -1
  84. package/dist/bundle/mcp-VBBKPKEG.js +90 -0
  85. package/dist/bundle/memo.js +9 -9
  86. package/dist/bundle/{node-LFRTSZBZ.js → node-DBZKVPDA.js} +2 -2
  87. package/dist/bundle/{node-sqlite-Y47T5FTT.js → node-sqlite-UZVU7EXS.js} +5 -5
  88. package/dist/bundle/{oauth-YM5C6VS3.js → oauth-VEFHKRWG.js} +6 -6
  89. package/dist/bundle/{open-WPA4DW5G.js → open-XNRAMLOK.js} +4 -4
  90. package/dist/bundle/{openai-RCPT23DA.js → openai-4XIX5RN2.js} +9 -9
  91. package/dist/bundle/{process-P2X2KFMR.js → process-EIGF77RB.js} +1 -1
  92. package/dist/bundle/{program-AJPT7C4I.js → program-RWAKY3P6.js} +87 -62
  93. package/dist/bundle/{prompt-65WPTVYC.js → prompt-V7RFTWTA.js} +4 -4
  94. package/dist/bundle/{recognize-MEFMK7HT.js → recognize-7PWWI67V.js} +3 -3
  95. package/dist/bundle/{remote-4XIR3ZYK.js → remote-NOKKQ2U5.js} +6 -6
  96. package/dist/bundle/{rerank-YRLAXFFL.js → rerank-X7UWX2ZF.js} +6 -6
  97. package/dist/bundle/{serve-6SPZH6CY.js → serve-Z6YCLXXP.js} +8 -8
  98. package/dist/bundle/server-GWH7J45V.js +48 -0
  99. package/dist/bundle/{server-ISFSZGGI.js → server-PIJV3LG4.js} +54 -54
  100. package/dist/bundle/server-WDE4WIHG.js +61 -0
  101. package/dist/bundle/{state-G34NVZ7F.js → state-K5D3BMKT.js} +5 -5
  102. package/dist/bundle/{store-6U4SYK4Q.js → store-6SZBCSUF.js} +21 -11
  103. package/dist/bundle/store-maintenance-command-Q2ABF4CG.js +48 -0
  104. package/dist/bundle/update-EKDVFRAG.js +69 -0
  105. package/dist/examples.d.ts.map +1 -1
  106. package/dist/examples.js +4 -0
  107. package/dist/examples.js.map +1 -1
  108. package/dist/mcp/catalogue.js +1 -1
  109. package/dist/mcp/catalogue.js.map +1 -1
  110. package/dist/notes/command.d.ts.map +1 -1
  111. package/dist/notes/command.js +18 -2
  112. package/dist/notes/command.js.map +1 -1
  113. package/dist/search/answers.d.ts.map +1 -1
  114. package/dist/search/answers.js +8 -0
  115. package/dist/search/answers.js.map +1 -1
  116. package/dist/version.d.ts +1 -1
  117. package/dist/version.js +1 -1
  118. package/package.json +2 -2
  119. package/dist/bundle/auto-3IGKVB3G.js +0 -86
  120. package/dist/bundle/failure-LGDSH47N.js +0 -66
  121. package/dist/bundle/first-screen-CUAY5N6E.js +0 -30
  122. package/dist/bundle/mcp-I72UY3QP.js +0 -90
  123. package/dist/bundle/server-FB75UHSF.js +0 -48
  124. package/dist/bundle/server-IELXA6S2.js +0 -61
  125. package/dist/bundle/store-maintenance-command-ONVPBZLT.js +0 -48
  126. package/dist/bundle/update-SAJHFRB2.js +0 -69
  127. /package/dist/bundle/{chunk-2H36DXV7.js → chunk-SO2HNIPX.js} +0 -0
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-P3MKPY7D.js";
10
+ } from "./chunk-IFUB2B2A.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-GESLAB4N.js";
13
+ } from "./chunk-RTROEIYE.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-WYZDNDQ5.js";
21
+ } from "./chunk-IF3RIN4C.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -42,26 +42,26 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-IRFHHNSX.js";
45
+ } from "./chunk-XN5POYJL.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-MGDBKE7E.js";
51
+ } from "./chunk-2CF2R7SA.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-SR3ZNX24.js";
54
+ } from "./chunk-V4BKQWDS.js";
55
55
  import {
56
56
  storeDamaged
57
- } from "./chunk-P5UTNYA7.js";
57
+ } from "./chunk-IY7GB2SJ.js";
58
58
  import {
59
59
  MAX_BUFFERED_INPUT
60
- } from "./chunk-PSJB456T.js";
60
+ } from "./chunk-CQPMBTB6.js";
61
61
  import {
62
62
  captureStreams,
63
63
  traceIdOf
64
- } from "./chunk-WLKDS65F.js";
64
+ } from "./chunk-EMNQPMZO.js";
65
65
  import {
66
66
  COMPACT_FLAG,
67
67
  SNAKE_CASE,
@@ -100,7 +100,7 @@ import {
100
100
  unknown,
101
101
  word,
102
102
  writes
103
- } from "./chunk-64JCY7XJ.js";
103
+ } from "./chunk-RCGFSWZE.js";
104
104
  import {
105
105
  CliError,
106
106
  errorCodes
@@ -109,7 +109,7 @@ import {
109
109
  __name
110
110
  } from "./chunk-ZVVMGPBJ.js";
111
111
 
112
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/agent.js
112
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
113
  import { Readable } from "node:stream";
114
114
 
115
115
  // node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
@@ -3106,7 +3106,7 @@ var VOCABULARY = defineVocabulary({
3106
3106
  ]
3107
3107
  });
3108
3108
 
3109
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3109
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3110
3110
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3111
3111
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3112
3112
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3329,7 +3329,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3329
3329
  }
3330
3330
  }, "runCommandForAgent");
3331
3331
 
3332
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3332
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3333
3333
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3334
3334
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3335
3335
  var message = pipe(
@@ -3588,7 +3588,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3588
3588
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3589
3589
  }, "failed");
3590
3590
 
3591
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3591
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3592
3592
  import { randomUUID } from "node:crypto";
3593
3593
  var MATCHES = 8;
3594
3594
  var ANSWER = answerSchema();
@@ -389,6 +389,23 @@ function safeInteger(message$1) {
389
389
  }
390
390
  __name(safeInteger, "safeInteger");
391
391
  // @__NO_SIDE_EFFECTS__
392
+ function startsWith(requirement, message$1) {
393
+ return {
394
+ kind: "validation",
395
+ type: "starts_with",
396
+ reference: startsWith,
397
+ async: false,
398
+ expects: `"${requirement}"`,
399
+ requirement,
400
+ message: message$1,
401
+ "~run"(dataset, config$1) {
402
+ if (dataset.typed && !dataset.value.startsWith(this.requirement)) _addIssue(this, "start", dataset, config$1, { received: `"${dataset.value.slice(0, this.requirement.length)}"` });
403
+ return dataset;
404
+ }
405
+ };
406
+ }
407
+ __name(startsWith, "startsWith");
408
+ // @__NO_SIDE_EFFECTS__
392
409
  function transform(operation) {
393
410
  return {
394
411
  kind: "transformation",
@@ -417,6 +434,31 @@ function trim() {
417
434
  };
418
435
  }
419
436
  __name(trim, "trim");
437
+ // @__NO_SIDE_EFFECTS__
438
+ function url(message$1) {
439
+ return {
440
+ kind: "validation",
441
+ type: "url",
442
+ reference: url,
443
+ async: false,
444
+ expects: null,
445
+ requirement(input) {
446
+ try {
447
+ if (URL.canParse) return URL.canParse(input);
448
+ new URL(input);
449
+ return true;
450
+ } catch {
451
+ return false;
452
+ }
453
+ },
454
+ message: message$1,
455
+ "~run"(dataset, config$1) {
456
+ if (dataset.typed && !this.requirement(dataset.value)) _addIssue(this, "URL", dataset, config$1);
457
+ return dataset;
458
+ }
459
+ };
460
+ }
461
+ __name(url, "url");
420
462
  var ABORT_EARLY_CONFIG = { abortEarly: true };
421
463
  // @__NO_SIDE_EFFECTS__
422
464
  function getFallback(schema, dataset, config$1) {
@@ -2375,8 +2417,10 @@ export {
2375
2417
  nonEmpty,
2376
2418
  regex,
2377
2419
  safeInteger,
2420
+ startsWith,
2378
2421
  transform,
2379
2422
  trim,
2423
+ url,
2380
2424
  forward,
2381
2425
  array,
2382
2426
  boolean,
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/http/public-url.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/http/public-url.js
11
11
  var EXAMPLE = "--public-url https://<name>.ts.net";
12
12
  var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
13
13
  if (!given)
@@ -7,12 +7,12 @@ import {
7
7
  agentOf,
8
8
  clientHash,
9
9
  currentCaller
10
- } from "./chunk-MGDBKE7E.js";
10
+ } from "./chunk-2CF2R7SA.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/caller.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/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")
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -4,7 +4,7 @@ import {
4
4
  inspectConfig,
5
5
  loadConfig,
6
6
  memoPermissionKeys
7
- } from "./chunk-YHHR7NQ3.js";
7
+ } from "./chunk-KKBA3FAY.js";
8
8
  import {
9
9
  CEILING_KEY,
10
10
  changesAuthority,
@@ -13,17 +13,17 @@ import {
13
13
  layerPermissions,
14
14
  levelFor,
15
15
  metaOf
16
- } from "./chunk-IRFHHNSX.js";
16
+ } from "./chunk-XN5POYJL.js";
17
17
  import {
18
18
  setupPermissionCeiling
19
- } from "./chunk-4VQ7FPNW.js";
19
+ } from "./chunk-EUE76Q4D.js";
20
20
  import {
21
21
  readOnlyLockOf,
22
22
  readOnlyRefusal
23
- } from "./chunk-6NJ5OI2S.js";
23
+ } from "./chunk-3BWYMNWP.js";
24
24
  import {
25
25
  APP
26
- } from "./chunk-ZRBXOHNH.js";
26
+ } from "./chunk-CKNH2HT6.js";
27
27
  import {
28
28
  CliError
29
29
  } from "./chunk-4ZW6ZJ2V.js";
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-B5VQSSL2.js";
23
+ } from "./chunk-QWZPIELU.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -33,24 +33,24 @@ import {
33
33
  registerPrompts,
34
34
  stdinFieldOf,
35
35
  syncsFirst
36
- } from "./chunk-DDD3CXHR.js";
36
+ } from "./chunk-FCWUSKUI.js";
37
37
  import {
38
38
  mcpUrlOf
39
- } from "./chunk-BC7N6IQ6.js";
39
+ } from "./chunk-RJWL3NEL.js";
40
40
  import {
41
41
  agentJson,
42
42
  skillResource
43
- } from "./chunk-P3MKPY7D.js";
43
+ } from "./chunk-IFUB2B2A.js";
44
44
  import {
45
45
  instructions
46
- } from "./chunk-AF2ZDP3M.js";
46
+ } from "./chunk-TB4IRRAC.js";
47
47
  import {
48
48
  answeredWire
49
- } from "./chunk-IVDBHH3N.js";
49
+ } from "./chunk-6FABO4WB.js";
50
50
  import {
51
51
  callerOf,
52
52
  callingAgent
53
- } from "./chunk-GESLAB4N.js";
53
+ } from "./chunk-RTROEIYE.js";
54
54
  import {
55
55
  StdioServerTransport,
56
56
  serveStdio
@@ -62,7 +62,7 @@ import {
62
62
  import {
63
63
  connectedFor,
64
64
  guardFor
65
- } from "./chunk-MFVZXEQN.js";
65
+ } from "./chunk-XIS7K5HT.js";
66
66
  import {
67
67
  capability,
68
68
  dateWindow,
@@ -71,10 +71,10 @@ import {
71
71
  servicesFor,
72
72
  storedDeps,
73
73
  wholeList
74
- } from "./chunk-WYZDNDQ5.js";
74
+ } from "./chunk-IF3RIN4C.js";
75
75
  import {
76
76
  findCommand
77
- } from "./chunk-VXZ7FWKU.js";
77
+ } from "./chunk-VQKSJO45.js";
78
78
  import {
79
79
  DEFAULT_OUTPUT_BYTES,
80
80
  changesAuthorityAt,
@@ -90,29 +90,29 @@ import {
90
90
  sealed,
91
91
  snakeKeys,
92
92
  typedCommand
93
- } from "./chunk-IRFHHNSX.js";
93
+ } from "./chunk-XN5POYJL.js";
94
94
  import {
95
95
  withCaller
96
- } from "./chunk-MGDBKE7E.js";
96
+ } from "./chunk-2CF2R7SA.js";
97
97
  import {
98
98
  readOnlyLockOf
99
- } from "./chunk-6NJ5OI2S.js";
99
+ } from "./chunk-3BWYMNWP.js";
100
100
  import {
101
101
  mcpHttpMarker
102
- } from "./chunk-OKERVM3M.js";
102
+ } from "./chunk-FG7ZGEZ6.js";
103
103
  import {
104
104
  openStore,
105
105
  pdfPreviewLimits
106
- } from "./chunk-4335SGVD.js";
106
+ } from "./chunk-4XKHXETB.js";
107
107
  import {
108
108
  timezoneOf
109
- } from "./chunk-SR3ZNX24.js";
109
+ } from "./chunk-V4BKQWDS.js";
110
110
  import {
111
111
  isCliFailure
112
- } from "./chunk-P5UTNYA7.js";
112
+ } from "./chunk-IY7GB2SJ.js";
113
113
  import {
114
114
  warmEmbedders
115
- } from "./chunk-26QKDK5P.js";
115
+ } from "./chunk-FU3XDL34.js";
116
116
  import {
117
117
  description,
118
118
  integer,
@@ -128,7 +128,7 @@ import {
128
128
  regex,
129
129
  strictObject,
130
130
  string
131
- } from "./chunk-64JCY7XJ.js";
131
+ } from "./chunk-RCGFSWZE.js";
132
132
  import {
133
133
  CliError,
134
134
  visibleControls
@@ -137,10 +137,10 @@ import {
137
137
  __name
138
138
  } from "./chunk-ZVVMGPBJ.js";
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/server.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/server.js
141
141
  import { randomUUID } from "node:crypto";
142
142
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
144
144
  var agentLog = /* @__PURE__ */ __name((open) => {
145
145
  let held;
146
146
  return {
@@ -159,7 +159,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
159
159
  };
160
160
  }, "agentLog");
161
161
 
162
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/resources.js
162
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/resources.js
163
163
  var LISTED = 100;
164
164
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
165
165
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -197,7 +197,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
197
197
  });
198
198
  }, "registerResources");
199
199
 
200
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/session.js
200
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/session.js
201
201
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
202
202
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
203
203
  var MessengerSession = class {
@@ -272,7 +272,7 @@ var MessengerSession = class {
272
272
  }
273
273
  };
274
274
 
275
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
275
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
276
276
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
277
277
  const _command = messenger.app.command;
278
278
  return {
@@ -326,7 +326,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
326
326
  };
327
327
  }, "attachmentsTools");
328
328
 
329
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
329
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
330
330
  var PHOTO_LIMIT = 512 * 1024;
331
331
  var IMAGE_TYPES = [
332
332
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -380,7 +380,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
380
380
  return new Uint8Array(Buffer.concat(chunks));
381
381
  }, "readUpTo");
382
382
 
383
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
383
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
384
384
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
385
385
  stats_charts: tool({
386
386
  title: "A chart from a chat's statistics",
@@ -417,14 +417,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
417
417
  })
418
418
  }), "statsTools");
419
419
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/tools.js
420
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/tools.js
421
421
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
422
422
  ...messagesPhotoTools(messenger),
423
423
  ...attachmentsTools(messenger),
424
424
  ...statsTools(messenger)
425
425
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
426
426
 
427
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mcp/server.js
427
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/mcp/server.js
428
428
  var PER_RUN = /* @__PURE__ */ new Set([
429
429
  "streams",
430
430
  "stdin",
@@ -748,7 +748,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
748
748
  }, "serveOverStdio");
749
749
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
750
750
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
751
- const { serveOverHttp } = await import("./serve-6SPZH6CY.js");
751
+ const { serveOverHttp } = await import("./serve-Z6YCLXXP.js");
752
752
  const appName = messenger.app.command;
753
753
  const appEnvPrefix = messenger.app.envPrefix;
754
754
  const listening = await serveOverHttp(build, {