@clauderecallhq/cli 0.12.1 → 0.61.2

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 (220) hide show
  1. package/LICENSE +37 -17
  2. package/README.md +316 -106
  3. package/dist/cli.js +1641 -361
  4. package/dist/daemon/entrypoint.js +1872 -54
  5. package/dist/mcp-server.js +930 -0
  6. package/dist/share/fonts/Inter-Bold.woff +0 -0
  7. package/dist/share/fonts/Inter-Regular.woff +0 -0
  8. package/dist/share/fonts/JetBrainsMono-Regular.woff +0 -0
  9. package/dist/web/assets/_brand-Bw9uSB4O.js +1 -0
  10. package/dist/web/assets/captureNode-9CVj9vYC.js +2 -0
  11. package/dist/web/assets/card-a-minimal-ujNERzX7.js +1 -0
  12. package/dist/web/assets/card-b-terminal-DpJ_tVpg.js +1 -0
  13. package/dist/web/assets/card-c-gradient-CZXVGuNd.js +1 -0
  14. package/dist/web/assets/card-d-dashboard-CHKD-PnB.js +1 -0
  15. package/dist/web/assets/dist-CWaokT35.js +56 -0
  16. package/dist/web/assets/index-B-HrjaDy.css +1 -0
  17. package/dist/web/assets/index-BZYcD76T.js +633 -0
  18. package/dist/web/assets/jetbrains-mono-latin-700-normal-D3wTyLJW.woff +0 -0
  19. package/dist/web/assets/patterns-BPeZb9N0.js +1 -0
  20. package/dist/web/assets/stats-BSwqSiFU.js +1 -0
  21. package/dist/web/assets/thread-D2AXyhOx.js +1 -0
  22. package/dist/web/index.html +8 -2
  23. package/package.json +57 -16
  24. package/scripts/postinstall.mjs +38 -0
  25. package/dist/cli.js.map +0 -1
  26. package/dist/commands/activate.js +0 -69
  27. package/dist/commands/activate.js.map +0 -1
  28. package/dist/commands/audit-secrets.js +0 -103
  29. package/dist/commands/audit-secrets.js.map +0 -1
  30. package/dist/commands/blame.js +0 -35
  31. package/dist/commands/blame.js.map +0 -1
  32. package/dist/commands/config-verification.js +0 -18
  33. package/dist/commands/config-verification.js.map +0 -1
  34. package/dist/commands/context.js +0 -144
  35. package/dist/commands/context.js.map +0 -1
  36. package/dist/commands/correlate.js +0 -70
  37. package/dist/commands/correlate.js.map +0 -1
  38. package/dist/commands/digest.js +0 -78
  39. package/dist/commands/digest.js.map +0 -1
  40. package/dist/commands/health.js +0 -62
  41. package/dist/commands/health.js.map +0 -1
  42. package/dist/commands/index.js +0 -247
  43. package/dist/commands/index.js.map +0 -1
  44. package/dist/commands/install-extension.js +0 -138
  45. package/dist/commands/install-extension.js.map +0 -1
  46. package/dist/commands/installs.js +0 -128
  47. package/dist/commands/installs.js.map +0 -1
  48. package/dist/commands/license.js +0 -39
  49. package/dist/commands/license.js.map +0 -1
  50. package/dist/commands/list.js +0 -47
  51. package/dist/commands/list.js.map +0 -1
  52. package/dist/commands/mcp.js +0 -29
  53. package/dist/commands/mcp.js.map +0 -1
  54. package/dist/commands/open.js +0 -28
  55. package/dist/commands/open.js.map +0 -1
  56. package/dist/commands/paste.js +0 -154
  57. package/dist/commands/paste.js.map +0 -1
  58. package/dist/commands/projects.js +0 -36
  59. package/dist/commands/projects.js.map +0 -1
  60. package/dist/commands/search.js +0 -67
  61. package/dist/commands/search.js.map +0 -1
  62. package/dist/commands/semantic.js +0 -173
  63. package/dist/commands/semantic.js.map +0 -1
  64. package/dist/commands/show.js +0 -121
  65. package/dist/commands/show.js.map +0 -1
  66. package/dist/commands/start.js +0 -47
  67. package/dist/commands/start.js.map +0 -1
  68. package/dist/commands/stats.js +0 -133
  69. package/dist/commands/stats.js.map +0 -1
  70. package/dist/commands/status.js +0 -45
  71. package/dist/commands/status.js.map +0 -1
  72. package/dist/commands/stop.js +0 -29
  73. package/dist/commands/stop.js.map +0 -1
  74. package/dist/commands/thread.js +0 -396
  75. package/dist/commands/thread.js.map +0 -1
  76. package/dist/context/formatter.js +0 -103
  77. package/dist/context/formatter.js.map +0 -1
  78. package/dist/daemon/auto-tag-config.js +0 -103
  79. package/dist/daemon/auto-tag-config.js.map +0 -1
  80. package/dist/daemon/auto-tag-config.test.js +0 -72
  81. package/dist/daemon/auto-tag-config.test.js.map +0 -1
  82. package/dist/daemon/auto-title-config.js +0 -70
  83. package/dist/daemon/auto-title-config.js.map +0 -1
  84. package/dist/daemon/bulk-title-jobs.js +0 -170
  85. package/dist/daemon/bulk-title-jobs.js.map +0 -1
  86. package/dist/daemon/correlator.js +0 -320
  87. package/dist/daemon/correlator.js.map +0 -1
  88. package/dist/daemon/discover.js +0 -316
  89. package/dist/daemon/discover.js.map +0 -1
  90. package/dist/daemon/editor-detection.js +0 -186
  91. package/dist/daemon/editor-detection.js.map +0 -1
  92. package/dist/daemon/entrypoint.js.map +0 -1
  93. package/dist/daemon/git-correlator.js +0 -256
  94. package/dist/daemon/git-correlator.js.map +0 -1
  95. package/dist/daemon/mcp-installer.js +0 -108
  96. package/dist/daemon/mcp-installer.js.map +0 -1
  97. package/dist/daemon/onboarding-state.js +0 -140
  98. package/dist/daemon/onboarding-state.js.map +0 -1
  99. package/dist/daemon/pidfile.js +0 -57
  100. package/dist/daemon/pidfile.js.map +0 -1
  101. package/dist/daemon/ports.js +0 -48
  102. package/dist/daemon/ports.js.map +0 -1
  103. package/dist/daemon/scanProgressRegistry.js +0 -62
  104. package/dist/daemon/scanProgressRegistry.js.map +0 -1
  105. package/dist/daemon/server.js +0 -2010
  106. package/dist/daemon/server.js.map +0 -1
  107. package/dist/daemon/tag-scanner/anthropic-client.js +0 -40
  108. package/dist/daemon/tag-scanner/anthropic-client.js.map +0 -1
  109. package/dist/daemon/tag-scanner/autopilot.js +0 -131
  110. package/dist/daemon/tag-scanner/autopilot.js.map +0 -1
  111. package/dist/daemon/tag-scanner/claude-cli-driver.js +0 -250
  112. package/dist/daemon/tag-scanner/claude-cli-driver.js.map +0 -1
  113. package/dist/daemon/tag-scanner/orchestrator.js +0 -88
  114. package/dist/daemon/tag-scanner/orchestrator.js.map +0 -1
  115. package/dist/daemon/tag-scanner/prompt.js +0 -46
  116. package/dist/daemon/tag-scanner/prompt.js.map +0 -1
  117. package/dist/daemon/tag-scanner/prompt.test.js +0 -48
  118. package/dist/daemon/tag-scanner/prompt.test.js.map +0 -1
  119. package/dist/daemon/tag-scanner/scan-state.js +0 -49
  120. package/dist/daemon/tag-scanner/scan-state.js.map +0 -1
  121. package/dist/daemon/tag-scanner/session-fetcher.js +0 -82
  122. package/dist/daemon/tag-scanner/session-fetcher.js.map +0 -1
  123. package/dist/daemon/tag-scanner/session-fetcher.test.js +0 -34
  124. package/dist/daemon/tag-scanner/session-fetcher.test.js.map +0 -1
  125. package/dist/daemon/tag-scanner/validator.js +0 -50
  126. package/dist/daemon/tag-scanner/validator.js.map +0 -1
  127. package/dist/daemon/tag-scanner/validator.test.js +0 -41
  128. package/dist/daemon/tag-scanner/validator.test.js.map +0 -1
  129. package/dist/daemon/terminal-registry.js +0 -443
  130. package/dist/daemon/terminal-registry.js.map +0 -1
  131. package/dist/daemon/ui.js +0 -64
  132. package/dist/daemon/ui.js.map +0 -1
  133. package/dist/daemon/watcher.js +0 -256
  134. package/dist/daemon/watcher.js.map +0 -1
  135. package/dist/db/client.js +0 -22
  136. package/dist/db/client.js.map +0 -1
  137. package/dist/db/schema.js +0 -496
  138. package/dist/db/schema.js.map +0 -1
  139. package/dist/license/api-base.js +0 -13
  140. package/dist/license/api-base.js.map +0 -1
  141. package/dist/license/manager.js +0 -43
  142. package/dist/license/manager.js.map +0 -1
  143. package/dist/license/public-key.js +0 -19
  144. package/dist/license/public-key.js.map +0 -1
  145. package/dist/license/storage.js +0 -27
  146. package/dist/license/storage.js.map +0 -1
  147. package/dist/license/verify.js +0 -23
  148. package/dist/license/verify.js.map +0 -1
  149. package/dist/mcp/audit.js +0 -126
  150. package/dist/mcp/audit.js.map +0 -1
  151. package/dist/mcp/prompts.js +0 -180
  152. package/dist/mcp/prompts.js.map +0 -1
  153. package/dist/mcp/server.js +0 -502
  154. package/dist/mcp/server.js.map +0 -1
  155. package/dist/mcp/thread-tools.js +0 -363
  156. package/dist/mcp/thread-tools.js.map +0 -1
  157. package/dist/mcp/write-tools.js +0 -239
  158. package/dist/mcp/write-tools.js.map +0 -1
  159. package/dist/parser/jsonl.js +0 -150
  160. package/dist/parser/jsonl.js.map +0 -1
  161. package/dist/semantic/chunker.js +0 -47
  162. package/dist/semantic/chunker.js.map +0 -1
  163. package/dist/semantic/config.js +0 -74
  164. package/dist/semantic/config.js.map +0 -1
  165. package/dist/semantic/embedder.js +0 -54
  166. package/dist/semantic/embedder.js.map +0 -1
  167. package/dist/semantic/fusion.js +0 -38
  168. package/dist/semantic/fusion.js.map +0 -1
  169. package/dist/semantic/model-download.js +0 -69
  170. package/dist/semantic/model-download.js.map +0 -1
  171. package/dist/semantic/pipeline.js +0 -375
  172. package/dist/semantic/pipeline.js.map +0 -1
  173. package/dist/semantic/query.js +0 -42
  174. package/dist/semantic/query.js.map +0 -1
  175. package/dist/semantic/worker.js +0 -78
  176. package/dist/semantic/worker.js.map +0 -1
  177. package/dist/stats/backfill.js +0 -151
  178. package/dist/stats/backfill.js.map +0 -1
  179. package/dist/stats/health.js +0 -102
  180. package/dist/stats/health.js.map +0 -1
  181. package/dist/stats/query.js +0 -385
  182. package/dist/stats/query.js.map +0 -1
  183. package/dist/utils/aliases.js +0 -107
  184. package/dist/utils/aliases.js.map +0 -1
  185. package/dist/utils/autoCollections.js +0 -635
  186. package/dist/utils/autoCollections.js.map +0 -1
  187. package/dist/utils/autoTitle.js +0 -348
  188. package/dist/utils/autoTitle.js.map +0 -1
  189. package/dist/utils/collections.js +0 -446
  190. package/dist/utils/collections.js.map +0 -1
  191. package/dist/utils/format.js +0 -46
  192. package/dist/utils/format.js.map +0 -1
  193. package/dist/utils/notes.js +0 -270
  194. package/dist/utils/notes.js.map +0 -1
  195. package/dist/utils/paths.js +0 -50
  196. package/dist/utils/paths.js.map +0 -1
  197. package/dist/utils/pricing.js +0 -257
  198. package/dist/utils/pricing.js.map +0 -1
  199. package/dist/utils/secret-scanner.js +0 -166
  200. package/dist/utils/secret-scanner.js.map +0 -1
  201. package/dist/utils/sessionLabel.js +0 -64
  202. package/dist/utils/sessionLabel.js.map +0 -1
  203. package/dist/utils/tags.js +0 -97
  204. package/dist/utils/tags.js.map +0 -1
  205. package/dist/utils/thread-context.js +0 -129
  206. package/dist/utils/thread-context.js.map +0 -1
  207. package/dist/utils/threadFilter.js +0 -18
  208. package/dist/utils/threadFilter.js.map +0 -1
  209. package/dist/utils/threads-titler.js +0 -298
  210. package/dist/utils/threads-titler.js.map +0 -1
  211. package/dist/utils/threads.js +0 -383
  212. package/dist/utils/threads.js.map +0 -1
  213. package/dist/utils/usage.js +0 -76
  214. package/dist/utils/usage.js.map +0 -1
  215. package/dist/verification/compute.js +0 -88
  216. package/dist/verification/compute.js.map +0 -1
  217. package/dist/verification/config.js +0 -34
  218. package/dist/verification/config.js.map +0 -1
  219. package/dist/web/assets/index-CIr6J4Fw.js +0 -1201
  220. package/dist/web/assets/index-Ctc8g9Jw.css +0 -1
Binary file
@@ -0,0 +1 @@
1
+ var e=`#f97316`;function t(t,n){return{type:`svg`,props:{width:t,height:t,viewBox:`0 0 64 64`,style:{display:`flex`},children:[{type:`line`,props:{x1:14,y1:16,x2:46,y2:16,stroke:n,strokeWidth:3,strokeLinecap:`round`}},{type:`line`,props:{x1:14,y1:24,x2:38,y2:24,stroke:n,strokeWidth:3,strokeLinecap:`round`}},{type:`line`,props:{x1:10,y1:32,x2:54,y2:32,stroke:e,strokeWidth:5,strokeLinecap:`round`}},{type:`line`,props:{x1:14,y1:40,x2:42,y2:40,stroke:n,strokeWidth:3,strokeLinecap:`round`}},{type:`line`,props:{x1:14,y1:48,x2:36,y2:48,stroke:n,strokeWidth:3,strokeLinecap:`round`}}]}}}function n(e,n){return{type:`div`,props:{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`},children:[{type:`div`,props:{style:{display:`flex`,alignItems:`center`,gap:`18px`},children:[t(72,e.markStroke),{type:`span`,props:{style:{fontSize:`36px`,fontWeight:700,color:e.wordmarkFg,letterSpacing:`-0.01em`},children:`Claude Recall`}}]}},{type:`span`,props:{style:{fontSize:`17px`,color:e.wordmarkFg,opacity:.6,textTransform:`uppercase`,letterSpacing:`0.18em`,fontWeight:600},children:n}}]}}}function r(e){return{type:`div`,props:{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`},children:[{type:`div`,props:{style:{display:`flex`,alignItems:`center`,gap:`14px`},children:[t(52,e.markStroke),{type:`span`,props:{style:{fontSize:`24px`,fontWeight:700,color:e.wordmarkFg},children:`clauderecall.com`}}]}},{type:`span`,props:{style:{fontSize:`20px`,color:e.wordmarkFg,opacity:.7,fontWeight:500},children:`local memory for Claude Code`}}]}}}function i(e){return e>=1e9?`${(e/1e9).toFixed(2).replace(/\.?0+$/,``)}B`:e>=1e6?`${(e/1e6).toFixed(2).replace(/\.?0+$/,``)}M`:e>=1e3?`${(e/1e3).toFixed(1).replace(/\.0$/,``)}k`:String(e)}function a(e){return e.toLocaleString(`en-US`)}function o(e){return e<1e3?String(e):`${i(e)} (${a(e)})`}function s(e){return new Date(e).toLocaleDateString(`en-US`,{month:`long`,day:`numeric`,year:`numeric`})}export{o as a,s as i,n,i as o,r,e as t};
@@ -0,0 +1,2 @@
1
+ function e(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement(`base`),i=n.createElement(`a`);return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}var t=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function n(e){let t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}var r=null;function i(e={}){return r||(e.includeStyleProperties?(r=e.includeStyleProperties,r):(r=n(window.getComputedStyle(document.documentElement)),r))}function a(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace(`px`,``)):0}function o(e){let t=a(e,`border-left-width`),n=a(e,`border-right-width`);return e.clientWidth+t+n}function s(e){let t=a(e,`border-top-width`),n=a(e,`border-bottom-width`);return e.clientHeight+t+n}function c(e,t={}){return{width:t.width||o(e),height:t.height||s(e)}}function l(){let e,t;try{t=process}catch{}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var u=16384;function ee(e){(e.width>u||e.height>u)&&(e.width>u&&e.height>u?e.width>e.height?(e.height*=u/e.width,e.width=u):(e.width*=u/e.height,e.height=u):e.width>u?(e.height*=u/e.width,e.width=u):(e.width*=u/e.height,e.height=u))}function d(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin=`anonymous`,r.decoding=`async`,r.src=e})}async function f(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function te(e,t,n){let r=`http://www.w3.org/2000/svg`,i=document.createElementNS(r,`svg`),a=document.createElementNS(r,`foreignObject`);return i.setAttribute(`width`,`${t}`),i.setAttribute(`height`,`${n}`),i.setAttribute(`viewBox`,`0 0 ${t} ${n}`),a.setAttribute(`width`,`100%`),a.setAttribute(`height`,`100%`),a.setAttribute(`x`,`0`),a.setAttribute(`y`,`0`),a.setAttribute(`externalResourcesRequired`,`true`),i.appendChild(a),a.appendChild(e),f(i)}var p=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||p(n,t)};function m(e){let t=e.getPropertyValue(`content`);return`${e.cssText} content: '${t.replace(/'|"/g,``)}';`}function ne(e,t){return i(t).map(t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?` !important`:``};`).join(` `)}function re(e,t,n,r){let i=`.${e}:${t}`,a=n.cssText?m(n):ne(n,r);return document.createTextNode(`${i}{${a}}`)}function h(e,n,r,i){let a=window.getComputedStyle(e,r),o=a.getPropertyValue(`content`);if(o===``||o===`none`)return;let s=t();try{n.className=`${n.className} ${s}`}catch{return}let c=document.createElement(`style`);c.appendChild(re(s,r,a,i)),n.appendChild(c)}function ie(e,t,n){h(e,t,`:before`,n),h(e,t,`:after`,n)}var g=`application/font-woff`,_=`image/jpeg`,v={woff:g,woff2:g,ttf:`application/font-truetype`,eot:`application/vnd.ms-fontobject`,png:`image/png`,jpg:_,jpeg:_,gif:`image/gif`,tiff:`image/tiff`,svg:`image/svg+xml`,webp:`image/webp`};function y(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:``}function b(e){return v[y(e).toLowerCase()]||``}function x(e){return e.split(/,/)[1]}function S(e){return e.search(/^(data:)/)!==-1}function C(e,t){return`data:${t};base64,${e}`}async function w(e,t,n){let r=await fetch(e,t);if(r.status===404)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let a=new FileReader;a.onerror=t,a.onloadend=()=>{try{e(n({res:r,result:a.result}))}catch(e){t(e)}},a.readAsDataURL(i)})}var T={};function ae(e,t,n){let r=e.replace(/\?.*/,``);return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,``)),t?`[${t}]${r}`:r}async function E(e,t,n){let r=ae(e,t,n.includeQueryParams);if(T[r]!=null)return T[r];n.cacheBust&&(e+=(/\?/.test(e)?`&`:`?`)+new Date().getTime());let i;try{i=C(await w(e,n.fetchRequestInit,({res:e,result:n})=>(t||=e.headers.get(`Content-Type`)||``,x(n))),t)}catch(t){i=n.imagePlaceholder||``;let r=`Failed to fetch resource: ${e}`;t&&(r=typeof t==`string`?t:t.message),r&&console.warn(r)}return T[r]=i,i}async function oe(e){let t=e.toDataURL();return t===`data:,`?e.cloneNode(!1):d(t)}async function se(e,t){if(e.currentSrc){let t=document.createElement(`canvas`),n=t.getContext(`2d`);return t.width=e.clientWidth,t.height=e.clientHeight,n?.drawImage(e,0,0,t.width,t.height),d(t.toDataURL())}let n=e.poster;return d(await E(n,b(n),t))}async function ce(e,t){try{if(e?.contentDocument?.body)return await I(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function D(e,t){return p(e,HTMLCanvasElement)?oe(e):p(e,HTMLVideoElement)?se(e,t):p(e,HTMLIFrameElement)?ce(e,t):e.cloneNode(k(e))}var O=e=>e.tagName!=null&&e.tagName.toUpperCase()===`SLOT`,k=e=>e.tagName!=null&&e.tagName.toUpperCase()===`SVG`;async function A(e,t,r){if(k(t))return t;let i=[];return i=O(e)&&e.assignedNodes?n(e.assignedNodes()):p(e,HTMLIFrameElement)&&e.contentDocument?.body?n(e.contentDocument.body.childNodes):n((e.shadowRoot??e).childNodes),i.length===0||p(e,HTMLVideoElement)||await i.reduce((e,n)=>e.then(()=>I(n,r)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}function j(e,t,n){let r=t.style;if(!r)return;let a=window.getComputedStyle(e);a.cssText?(r.cssText=a.cssText,r.transformOrigin=a.transformOrigin):i(n).forEach(n=>{let i=a.getPropertyValue(n);n===`font-size`&&i.endsWith(`px`)&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),p(e,HTMLIFrameElement)&&n===`display`&&i===`inline`&&(i=`block`),n===`d`&&t.getAttribute(`d`)&&(i=`path(${t.getAttribute(`d`)})`),r.setProperty(n,i,a.getPropertyPriority(n))})}function M(e,t){p(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),p(e,HTMLInputElement)&&t.setAttribute(`value`,e.value)}function N(e,t){if(p(e,HTMLSelectElement)){let n=t,r=Array.from(n.children).find(t=>e.value===t.getAttribute(`value`));r&&r.setAttribute(`selected`,``)}}function P(e,t,n){return p(t,Element)&&(j(e,t,n),ie(e,t,n),M(e,t),N(e,t)),t}async function F(e,t){let n=e.querySelectorAll?e.querySelectorAll(`use`):[];if(n.length===0)return e;let r={};for(let i=0;i<n.length;i++){let a=n[i].getAttribute(`xlink:href`);if(a){let n=e.querySelector(a),i=document.querySelector(a);!n&&i&&!r[a]&&(r[a]=await I(i,t,!0))}}let i=Object.values(r);if(i.length){let t=`http://www.w3.org/1999/xhtml`,n=document.createElementNS(t,`svg`);n.setAttribute(`xmlns`,t),n.style.position=`absolute`,n.style.width=`0`,n.style.height=`0`,n.style.overflow=`hidden`,n.style.display=`none`;let r=document.createElementNS(t,`defs`);n.appendChild(r);for(let e=0;e<i.length;e++)r.appendChild(i[e]);e.appendChild(n)}return e}async function I(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(e=>D(e,t)).then(n=>A(e,n,t)).then(n=>P(e,n,t)).then(e=>F(e,t))}var L=/url\((['"]?)([^'"]+?)\1\)/g,R=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,z=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function B(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,`\\$1`);return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,`g`)}function V(e){let t=[];return e.replace(L,(e,n,r)=>(t.push(r),e)),t.filter(e=>!S(e))}async function H(t,n,r,i,a){try{let o=r?e(n,r):n,s=b(n),c;return c=a?C(await a(o),s):await E(o,s,i),t.replace(B(n),`$1${c}$3`)}catch{}return t}function U(e,{preferredFontFormat:t}){return t?e.replace(z,e=>{for(;;){let[n,,r]=R.exec(e)||[];if(!r)return``;if(r===t)return`src: ${n};`}}):e}function W(e){return e.search(L)!==-1}async function G(e,t,n){if(!W(e))return e;let r=U(e,n);return V(r).reduce((e,r)=>e.then(e=>H(e,r,t,n)),Promise.resolve(r))}async function K(e,t,n){let r=t.style?.getPropertyValue(e);if(r){let i=await G(r,null,n);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function le(e,t){await K(`background`,e,t)||await K(`background-image`,e,t),await K(`mask`,e,t)||await K(`-webkit-mask`,e,t)||await K(`mask-image`,e,t)||await K(`-webkit-mask-image`,e,t)}async function ue(e,t){let n=p(e,HTMLImageElement);if(!(n&&!S(e.src))&&!(p(e,SVGImageElement)&&!S(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await E(r,b(r),t);await new Promise((r,a)=>{e.onload=r,e.onerror=t.onImageErrorHandler?(...e)=>{try{r(t.onImageErrorHandler(...e))}catch(e){a(e)}}:a;let o=e;o.decode&&=r,o.loading===`lazy`&&(o.loading=`eager`),n?(e.srcset=``,e.src=i):e.href.baseVal=i})}async function de(e,t){let r=n(e.childNodes).map(e=>q(e,t));await Promise.all(r).then(()=>e)}async function q(e,t){p(e,Element)&&(await le(e,t),await ue(e,t),await de(e,t))}function fe(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;return r!=null&&Object.keys(r).forEach(e=>{n[e]=r[e]}),e}var J={};async function Y(e){let t=J[e];return t??(t={url:e,cssText:await(await fetch(e)).text()},J[e]=t,t)}async function X(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,`$1`);return a.startsWith(`https://`)||(a=new URL(a,e.url).href),w(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))});return Promise.all(i).then(()=>n)}function Z(e){if(e==null)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,``),r=RegExp(`((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})`,`gi`);for(;;){let e=r.exec(n);if(e===null)break;t.push(e[0])}n=n.replace(r,``);let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=RegExp(`((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})`,`gi`);for(;;){let e=i.exec(n);if(e===null){if(e=a.exec(n),e===null)break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(e[0])}return t}async function pe(e,t){let r=[],i=[];return e.forEach(r=>{if(`cssRules`in r)try{n(r.cssRules||[]).forEach((e,n)=>{if(e.type===CSSRule.IMPORT_RULE){let a=n+1,o=e.href,s=Y(o).then(e=>X(e,t)).then(e=>Z(e).forEach(e=>{try{r.insertRule(e,e.startsWith(`@import`)?a+=1:r.cssRules.length)}catch(t){console.error(`Error inserting rule from remote css`,{rule:e,error:t})}})).catch(e=>{console.error(`Error loading remote css`,e.toString())});i.push(s)}})}catch(n){let a=e.find(e=>e.href==null)||document.styleSheets[0];r.href!=null&&i.push(Y(r.href).then(e=>X(e,t)).then(e=>Z(e).forEach(e=>{a.insertRule(e,a.cssRules.length)})).catch(e=>{console.error(`Error loading remote stylesheet`,e)})),console.error(`Error inlining remote css file`,n)}}),Promise.all(i).then(()=>(e.forEach(e=>{if(`cssRules`in e)try{n(e.cssRules||[]).forEach(e=>{r.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),r))}function me(e){return e.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>W(e.style.getPropertyValue(`src`)))}async function he(e,t){if(e.ownerDocument==null)throw Error(`Provided element is not within a Document`);return me(await pe(n(e.ownerDocument.styleSheets),t))}function Q(e){return e.trim().replace(/["']/g,``)}function ge(e){let t=new Set;function n(e){(e.style.fontFamily||getComputedStyle(e).fontFamily).split(`,`).forEach(e=>{t.add(Q(e))}),Array.from(e.children).forEach(e=>{e instanceof HTMLElement&&n(e)})}return n(e),t}async function $(e,t){let n=await he(e,t),r=ge(e);return(await Promise.all(n.filter(e=>r.has(Q(e.style.fontFamily))).map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return G(e.cssText,n,t)}))).join(`
2
+ `)}async function _e(e,t){let n=t.fontEmbedCSS==null?t.skipFonts?null:await $(e,t):t.fontEmbedCSS;if(n){let t=document.createElement(`style`),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function ve(e,t={}){let{width:n,height:r}=c(e,t),i=await I(e,t,!0);return await _e(i,t),await q(i,t),fe(i,t),await te(i,n,r)}async function ye(e,t={}){let{width:n,height:r}=c(e,t),i=await d(await ve(e,t)),a=document.createElement(`canvas`),o=a.getContext(`2d`),s=t.pixelRatio||l(),u=t.canvasWidth||n,f=t.canvasHeight||r;return a.width=u*s,a.height=f*s,t.skipAutoScale||ee(a),a.style.width=`${u}`,a.style.height=`${f}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(i,0,0,a.width,a.height),a}async function be(e,t={}){return(await ye(e,t)).toDataURL()}async function xe(e,t={}){return be(e,{backgroundColor:t.backgroundColor??`#0b0c0f`,pixelRatio:t.pixelRatio??2,width:t.width,height:t.height,canvasWidth:t.canvasWidth,canvasHeight:t.canvasHeight,cacheBust:!0,filter:e=>!(e.classList&&e.classList.contains(`share-capture-exclude`))})}export{xe as captureNodeAsDataUrl};
@@ -0,0 +1 @@
1
+ import{a as e,i as t,n,r,t as i}from"./_brand-Bw9uSB4O.js";var a=`#1a1b1e`,o=`#e7e9ee`,s=`#8b9098`,c=`#2a2c33`,l={markStroke:o,wordmarkFg:o};function u(e,t){return{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`4px`},children:[{type:`span`,props:{style:{fontSize:`34px`,fontWeight:700,color:o,fontFamily:`JetBrains Mono`},children:e}},{type:`span`,props:{style:{fontSize:`14px`,color:s,textTransform:`uppercase`,letterSpacing:`0.16em`},children:t}}]}}}function d(d){let f=[t(d.sessionDate)];d.durationLabel&&f.push(d.durationLabel);let p=f.join(` · `),m=d.costDollars??`$—`,h=typeof d.cachedTokens==`number`&&d.cachedTokens>=1e5?`+ ${e(d.cachedTokens)} cached`:null,g=[n(l,`session receipt`),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`8px`},children:[{type:`div`,props:{style:{fontSize:`44px`,fontWeight:700,color:o,lineHeight:1.15,wordBreak:`break-word`},children:d.sessionTitle}},{type:`div`,props:{style:{fontSize:`20px`,color:s},children:p}}]}},{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`32px 0`},children:[{type:`span`,props:{style:{fontSize:`180px`,fontWeight:700,color:i,fontFamily:`JetBrains Mono`,lineHeight:1,letterSpacing:`-0.04em`},children:m}},{type:`span`,props:{style:{marginTop:`16px`,fontSize:`16px`,color:s,textTransform:`uppercase`,letterSpacing:`0.24em`,fontWeight:600},children:`session cost`}}]}},{type:`div`,props:{style:{display:`flex`,width:`100%`,height:`1px`,backgroundColor:c}}},{type:`div`,props:{style:{display:`flex`,justifyContent:`space-between`,gap:`24px`},children:[u(String(d.messageCount),`msgs`),u(String(d.filesReferenced),`files`),u(String(d.toolCallCount),`tools`),u(d.model??`—`,`model`)]}}];return h&&g.push({type:`div`,props:{style:{fontSize:`14px`,color:s,fontFamily:`JetBrains Mono`,opacity:.7},children:h}}),d.verdict&&g.push({type:`div`,props:{style:{display:`flex`,fontSize:`24px`,fontStyle:`italic`,color:o,borderLeft:`3px solid ${i}`,paddingLeft:`20px`,marginTop:`8px`},children:`"${d.verdict}"`}}),g.push({type:`div`,props:{style:{display:`flex`,flex:1}}}),g.push(r(l)),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,backgroundColor:a,padding:`64px 72px`,fontFamily:`Inter`,gap:`28px`},children:g}}}export{d as render};
@@ -0,0 +1 @@
1
+ import{a as e,i as t,n,r}from"./_brand-Bw9uSB4O.js";var i=`#0d0d0f`,a=`#e1e7ee`,o=`#6b7480`,s=`#1f2229`,c=`#7ee787`,l={markStroke:a,wordmarkFg:a};function u(e,t){return{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`4px`},children:[{type:`span`,props:{style:{fontSize:`34px`,fontWeight:700,color:a,fontFamily:`JetBrains Mono`},children:e}},{type:`span`,props:{style:{fontSize:`14px`,color:o,fontFamily:`JetBrains Mono`,textTransform:`lowercase`},children:`// ${t}`}}]}}}function d(d){let f=[t(d.sessionDate),d.durationLabel].filter(Boolean).join(` · `),p=d.costDollars??`$—`,m=typeof d.cachedTokens==`number`&&d.cachedTokens>=1e5?`# ${e(d.cachedTokens)} tokens cache-replayed (free)`:null,h=[n(l,`recall.cli/share`),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`6px`},children:[{type:`div`,props:{style:{fontSize:`18px`,color:c,fontFamily:`JetBrains Mono`},children:`$ recall share --session`}},{type:`div`,props:{style:{fontSize:`40px`,fontWeight:700,color:a,lineHeight:1.15,wordBreak:`break-word`,fontFamily:`JetBrains Mono`},children:d.sessionTitle}},{type:`div`,props:{style:{fontSize:`18px`,color:o,fontFamily:`JetBrains Mono`},children:f}}]}},{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,padding:`12px 0`},children:[{type:`span`,props:{style:{fontSize:`20px`,color:o,fontFamily:`JetBrains Mono`},children:`> total_cost:`}},{type:`span`,props:{style:{fontSize:`180px`,fontWeight:700,color:c,fontFamily:`JetBrains Mono`,lineHeight:1,letterSpacing:`-0.04em`},children:p}}]}},{type:`div`,props:{style:{display:`flex`,width:`100%`,height:`1px`,backgroundColor:s}}},{type:`div`,props:{style:{display:`flex`,justifyContent:`space-between`,gap:`24px`},children:[u(String(d.messageCount),`msgs`),u(String(d.filesReferenced),`files`),u(String(d.toolCallCount),`tools`),u(d.model??`—`,`model`)]}}];return m&&h.push({type:`div`,props:{style:{fontSize:`14px`,color:o,fontFamily:`JetBrains Mono`,opacity:.7},children:m}}),d.verdict&&h.push({type:`div`,props:{style:{display:`flex`,fontSize:`22px`,color:a,fontFamily:`JetBrains Mono`,borderLeft:`3px solid ${c}`,paddingLeft:`20px`,marginTop:`8px`},children:`// ${d.verdict}`}}),h.push({type:`div`,props:{style:{display:`flex`,flex:1}}}),h.push(r(l)),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,backgroundColor:i,padding:`64px 72px`,fontFamily:`Inter`,gap:`28px`},children:h}}}export{d as render};
@@ -0,0 +1 @@
1
+ import{a as e,i as t,n,r}from"./_brand-Bw9uSB4O.js";var i=`#ffffff`,a=`rgba(255,255,255,0.7)`,o=`rgba(255,255,255,0.18)`,s={markStroke:i,wordmarkFg:i};function c(e,t){return{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`4px`},children:[{type:`span`,props:{style:{fontSize:`34px`,fontWeight:700,color:i,fontFamily:`JetBrains Mono`},children:e}},{type:`span`,props:{style:{fontSize:`14px`,color:a,textTransform:`uppercase`,letterSpacing:`0.16em`,fontWeight:600},children:t}}]}}}function l(l){let u=[t(l.sessionDate),l.durationLabel].filter(Boolean).join(` · `),d=l.costDollars??`$—`,f=typeof l.cachedTokens==`number`&&l.cachedTokens>=1e5?`+ ${e(l.cachedTokens)} cached`:null,p=[n(s,`session receipt`),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`8px`},children:[{type:`div`,props:{style:{fontSize:`44px`,fontWeight:700,color:i,lineHeight:1.15,wordBreak:`break-word`},children:l.sessionTitle}},{type:`div`,props:{style:{fontSize:`20px`,color:a},children:u}}]}},{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`32px 0`},children:[{type:`span`,props:{style:{fontSize:`180px`,fontWeight:700,color:i,fontFamily:`JetBrains Mono`,lineHeight:1,letterSpacing:`-0.04em`},children:d}},{type:`span`,props:{style:{marginTop:`16px`,fontSize:`16px`,color:a,textTransform:`uppercase`,letterSpacing:`0.24em`,fontWeight:600},children:`session cost`}}]}},{type:`div`,props:{style:{display:`flex`,width:`100%`,height:`1px`,backgroundColor:o}}},{type:`div`,props:{style:{display:`flex`,justifyContent:`space-between`,gap:`24px`},children:[c(String(l.messageCount),`msgs`),c(String(l.filesReferenced),`files`),c(String(l.toolCallCount),`tools`),c(l.model??`—`,`model`)]}}];return f&&p.push({type:`div`,props:{style:{fontSize:`14px`,color:a,fontFamily:`JetBrains Mono`,opacity:.85},children:f}}),l.verdict&&p.push({type:`div`,props:{style:{display:`flex`,fontSize:`24px`,fontStyle:`italic`,color:i,borderLeft:`3px solid ${i}`,paddingLeft:`20px`,marginTop:`8px`},children:`"${l.verdict}"`}}),p.push({type:`div`,props:{style:{display:`flex`,flex:1}}}),p.push(r(s)),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,backgroundImage:`linear-gradient(135deg, #b1370f 0%, #f97316 55%, #fbbf24 100%)`,padding:`64px 72px`,fontFamily:`Inter`,gap:`28px`},children:p}}}export{l as render};
@@ -0,0 +1 @@
1
+ import{a as e,i as t,n,r,t as i}from"./_brand-Bw9uSB4O.js";var a=`#f6f7f9`,o=`#0a0a0a`,s=`#5a6068`,c=`#e3e6eb`,l=`#dde1e7`,u={markStroke:o,wordmarkFg:o};function d(e,t){return{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`4px`},children:[{type:`span`,props:{style:{fontSize:`34px`,fontWeight:800,color:o,fontFamily:`JetBrains Mono`},children:e}},{type:`span`,props:{style:{fontSize:`14px`,color:s,textTransform:`uppercase`,letterSpacing:`0.16em`,fontWeight:600},children:t}}]}}}function f(e){let t=e.reduce((e,t)=>e+t.value,0)||1;return{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`8px`},children:[{type:`div`,props:{style:{display:`flex`,width:`100%`,height:`10px`,borderRadius:`5px`,backgroundColor:l,overflow:`hidden`},children:e.map(e=>({type:`div`,props:{style:{display:`flex`,width:`${e.value/t*100}%`,height:`100%`,backgroundColor:e.color}}}))}},{type:`div`,props:{style:{display:`flex`,justifyContent:`space-between`,fontSize:`12px`,color:s,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.14em`},children:e.map(e=>({type:`span`,props:{style:{display:`flex`},children:`${e.label} · ${e.value}`}}))}}]}}}function p(l){let p=[t(l.sessionDate),l.durationLabel].filter(Boolean).join(` · `),m=l.costDollars??`$—`,h=typeof l.cachedTokens==`number`&&l.cachedTokens>=1e5?`+ ${e(l.cachedTokens)} cached`:null,g=[n(u,`session receipt`),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,gap:`8px`},children:[{type:`div`,props:{style:{fontSize:`40px`,fontWeight:700,color:o,lineHeight:1.15,wordBreak:`break-word`},children:l.sessionTitle}},{type:`div`,props:{style:{fontSize:`18px`,color:s},children:p}}]}},{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,padding:`8px 0`},children:[{type:`span`,props:{style:{fontSize:`14px`,color:s,textTransform:`uppercase`,letterSpacing:`0.24em`,fontWeight:700},children:`session cost`}},{type:`span`,props:{style:{fontSize:`180px`,fontWeight:800,color:o,fontFamily:`JetBrains Mono`,lineHeight:1,letterSpacing:`-0.04em`},children:m}}]}},{type:`div`,props:{style:{display:`flex`,width:`100%`,height:`1px`,backgroundColor:c}}},{type:`div`,props:{style:{display:`flex`,justifyContent:`space-between`,gap:`24px`},children:[d(String(l.messageCount),`msgs`),d(String(l.filesReferenced),`files`),d(String(l.toolCallCount),`tools`),d(l.model??`—`,`model`)]}},f([{value:l.messageCount,color:i,label:`msgs`},{value:l.filesReferenced,color:`#0a0a0a`,label:`files`},{value:l.toolCallCount,color:`#5a6068`,label:`tools`}])];return h&&g.push({type:`div`,props:{style:{fontSize:`14px`,color:s,fontFamily:`JetBrains Mono`,opacity:.85},children:h}}),l.verdict&&g.push({type:`div`,props:{style:{display:`flex`,fontSize:`22px`,fontStyle:`italic`,color:o,borderLeft:`3px solid ${i}`,paddingLeft:`20px`,marginTop:`8px`},children:`"${l.verdict}"`}}),g.push({type:`div`,props:{style:{display:`flex`,flex:1}}}),g.push(r(u)),{type:`div`,props:{style:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,backgroundColor:a,padding:`64px 72px`,fontFamily:`Inter`,gap:`24px`},children:g}}}export{p as render};