@hawkeyexl/manni 4.2.0 → 4.3.1

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 (43) hide show
  1. package/README.md +2 -2
  2. package/dist/batch-A5HZKYIW.js +18 -0
  3. package/dist/batch-A5HZKYIW.js.map +1 -0
  4. package/dist/calibrate-S5K6QHUY.js +13 -0
  5. package/dist/calibrate-S5K6QHUY.js.map +1 -0
  6. package/dist/capture-OZEZDABQ.js +15 -0
  7. package/dist/capture-OZEZDABQ.js.map +1 -0
  8. package/dist/chunk-3R23C5DT.js +120 -0
  9. package/dist/chunk-3R23C5DT.js.map +1 -0
  10. package/dist/chunk-5HNHEUD5.js +174 -0
  11. package/dist/chunk-5HNHEUD5.js.map +1 -0
  12. package/dist/chunk-CFDUZRM2.js +1941 -0
  13. package/dist/chunk-CFDUZRM2.js.map +1 -0
  14. package/dist/chunk-G5CM2VGQ.js +297 -0
  15. package/dist/chunk-G5CM2VGQ.js.map +1 -0
  16. package/dist/chunk-HAPTXWU2.js +379 -0
  17. package/dist/chunk-HAPTXWU2.js.map +1 -0
  18. package/dist/chunk-IOYXPBCL.js +37 -0
  19. package/dist/chunk-IOYXPBCL.js.map +1 -0
  20. package/dist/chunk-KJR7OVDX.js +4447 -0
  21. package/dist/chunk-KJR7OVDX.js.map +1 -0
  22. package/dist/chunk-KTSJ2ZHA.js +40 -0
  23. package/dist/chunk-KTSJ2ZHA.js.map +1 -0
  24. package/dist/{chunk-BNHQWIAE.js → chunk-UBMMXS2Y.js} +2 -2
  25. package/dist/{chunk-UYDRDFYF.js → chunk-V4KUVE47.js} +1943 -909
  26. package/dist/chunk-V4KUVE47.js.map +1 -0
  27. package/dist/{chunk-TH565O2N.js → chunk-ZQBTK3DO.js} +898 -278
  28. package/dist/chunk-ZQBTK3DO.js.map +1 -0
  29. package/dist/cli.js +437 -47
  30. package/dist/cli.js.map +1 -1
  31. package/dist/docmeta.js +3 -2
  32. package/dist/docmeta.js.map +1 -1
  33. package/dist/index.d.ts +3873 -795
  34. package/dist/index.js +292 -4
  35. package/dist/index.js.map +1 -1
  36. package/dist/picker-6HRMETE7.js +12 -0
  37. package/dist/picker-6HRMETE7.js.map +1 -0
  38. package/package.json +3 -1
  39. package/plugin/tracevals/.claude-plugin/plugin.json +9 -0
  40. package/plugin/tracevals/hooks/hooks.json +17 -0
  41. package/dist/chunk-TH565O2N.js.map +0 -1
  42. package/dist/chunk-UYDRDFYF.js.map +0 -1
  43. /package/dist/{chunk-BNHQWIAE.js.map → chunk-UBMMXS2Y.js.map} +0 -0
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ TracevalsError,
4
+ discoverTraces
5
+ } from "./chunk-3R23C5DT.js";
6
+
7
+ // src/tracevals/trace/picker.ts
8
+ async function inquirerPrompt(params) {
9
+ const { select } = await import("@inquirer/prompts");
10
+ return select(params);
11
+ }
12
+ function choiceFor(listing) {
13
+ const when = new Date(listing.mtimeMs).toISOString().slice(0, 16).replace("T", " ");
14
+ return {
15
+ name: `${when} ${listing.firstPrompt ?? "(no prompt)"}`,
16
+ value: listing.file,
17
+ description: `${listing.project ?? "unknown project"} \xB7 ${listing.sessionId ?? "?"}`
18
+ };
19
+ }
20
+ async function pickTrace(options = {}, prompt = inquirerPrompt) {
21
+ let listings = await discoverTraces({ limit: 25, ...options });
22
+ if (listings.length === 0 && !options.allProjects) {
23
+ listings = await discoverTraces({ limit: 25, ...options, allProjects: true });
24
+ }
25
+ if (listings.length === 0) {
26
+ throw new TracevalsError(
27
+ "no traces found in the session store; pass a trace file instead"
28
+ );
29
+ }
30
+ return prompt({
31
+ message: "Pick a trace to evaluate",
32
+ choices: listings.map(choiceFor)
33
+ });
34
+ }
35
+
36
+ export {
37
+ choiceFor,
38
+ pickTrace
39
+ };
40
+ //# sourceMappingURL=chunk-KTSJ2ZHA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tracevals/trace/picker.ts"],"sourcesContent":["/**\n * Interactive trace picker (TTY only). The prompt function is injectable so\n * tests never touch a real terminal.\n */\nimport { TracevalsError } from \"../types.js\";\nimport {\n discoverTraces,\n type DiscoverOptions,\n type TraceListing,\n} from \"./discover.js\";\n\nexport interface PickerChoice {\n name: string;\n value: string;\n description?: string;\n}\n\nexport type PromptFn = (params: {\n message: string;\n choices: PickerChoice[];\n}) => Promise<string>;\n\nasync function inquirerPrompt(params: {\n message: string;\n choices: PickerChoice[];\n}): Promise<string> {\n const { select } = await import(\"@inquirer/prompts\");\n return select<string>(params);\n}\n\nexport function choiceFor(listing: TraceListing): PickerChoice {\n const when = new Date(listing.mtimeMs)\n .toISOString()\n .slice(0, 16)\n .replace(\"T\", \" \");\n return {\n name: `${when} ${listing.firstPrompt ?? \"(no prompt)\"}`,\n value: listing.file,\n description: `${listing.project ?? \"unknown project\"} · ${listing.sessionId ?? \"?\"}`,\n };\n}\n\nexport async function pickTrace(\n options: DiscoverOptions = {},\n prompt: PromptFn = inquirerPrompt,\n): Promise<string> {\n let listings = await discoverTraces({ limit: 25, ...options });\n if (listings.length === 0 && !options.allProjects) {\n // Nothing for this project — offer everything rather than a dead end.\n listings = await discoverTraces({ limit: 25, ...options, allProjects: true });\n }\n if (listings.length === 0) {\n throw new TracevalsError(\n \"no traces found in the session store; pass a trace file instead\",\n );\n }\n return prompt({\n message: \"Pick a trace to evaluate\",\n choices: listings.map(choiceFor),\n });\n}\n"],"mappings":";;;;;;;AAsBA,eAAe,eAAe,QAGV;AAClB,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,mBAAmB;AACnD,SAAO,OAAe,MAAM;AAC9B;AAEO,SAAS,UAAU,SAAqC;AAC7D,QAAM,OAAO,IAAI,KAAK,QAAQ,OAAO,EAClC,YAAY,EACZ,MAAM,GAAG,EAAE,EACX,QAAQ,KAAK,GAAG;AACnB,SAAO;AAAA,IACL,MAAM,GAAG,IAAI,KAAK,QAAQ,eAAe,aAAa;AAAA,IACtD,OAAO,QAAQ;AAAA,IACf,aAAa,GAAG,QAAQ,WAAW,iBAAiB,SAAM,QAAQ,aAAa,GAAG;AAAA,EACpF;AACF;AAEA,eAAsB,UACpB,UAA2B,CAAC,GAC5B,SAAmB,gBACF;AACjB,MAAI,WAAW,MAAM,eAAe,EAAE,OAAO,IAAI,GAAG,QAAQ,CAAC;AAC7D,MAAI,SAAS,WAAW,KAAK,CAAC,QAAQ,aAAa;AAEjD,eAAW,MAAM,eAAe,EAAE,OAAO,IAAI,GAAG,SAAS,aAAa,KAAK,CAAC;AAAA,EAC9E;AACA,MAAI,SAAS,WAAW,GAAG;AACzB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO,OAAO;AAAA,IACZ,SAAS;AAAA,IACT,SAAS,SAAS,IAAI,SAAS;AAAA,EACjC,CAAC;AACH;","names":[]}
@@ -70,7 +70,7 @@ import {
70
70
  terminalConfirm,
71
71
  toJsonText,
72
72
  warn
73
- } from "./chunk-TH565O2N.js";
73
+ } from "./chunk-ZQBTK3DO.js";
74
74
 
75
75
  // src/meta/cli.ts
76
76
  import { existsSync } from "node:fs";
@@ -1502,4 +1502,4 @@ function buildProgram() {
1502
1502
  export {
1503
1503
  buildProgram
1504
1504
  };
1505
- //# sourceMappingURL=chunk-BNHQWIAE.js.map
1505
+ //# sourceMappingURL=chunk-UBMMXS2Y.js.map