agent-replay 0.1.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 (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +113 -0
  3. package/bin/agent-replay.js +20 -0
  4. package/build/client/_app/immutable/assets/0.D9-tUsfl.css +1 -0
  5. package/build/client/_app/immutable/assets/0.D9-tUsfl.css.br +0 -0
  6. package/build/client/_app/immutable/assets/0.D9-tUsfl.css.gz +0 -0
  7. package/build/client/_app/immutable/assets/2.Ch4de4ty.css +1 -0
  8. package/build/client/_app/immutable/assets/2.Ch4de4ty.css.br +0 -0
  9. package/build/client/_app/immutable/assets/2.Ch4de4ty.css.gz +0 -0
  10. package/build/client/_app/immutable/assets/3.BP1aEJ1A.css +1 -0
  11. package/build/client/_app/immutable/assets/3.BP1aEJ1A.css.br +0 -0
  12. package/build/client/_app/immutable/assets/3.BP1aEJ1A.css.gz +0 -0
  13. package/build/client/_app/immutable/chunks/8LyLqy0e.js +1 -0
  14. package/build/client/_app/immutable/chunks/8LyLqy0e.js.br +3 -0
  15. package/build/client/_app/immutable/chunks/8LyLqy0e.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/BmaMsIzI.js +3 -0
  17. package/build/client/_app/immutable/chunks/BmaMsIzI.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BmaMsIzI.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/BoUXsunA.js +1 -0
  20. package/build/client/_app/immutable/chunks/BoUXsunA.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BoUXsunA.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/CCa20sJM.js +1 -0
  23. package/build/client/_app/immutable/chunks/CCa20sJM.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/CCa20sJM.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/CP-o74wi.js +2 -0
  26. package/build/client/_app/immutable/chunks/CP-o74wi.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CP-o74wi.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/CZWwZlGk.js +1 -0
  29. package/build/client/_app/immutable/chunks/CZWwZlGk.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CZWwZlGk.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/D6SnDtAs.js +1 -0
  32. package/build/client/_app/immutable/chunks/D6SnDtAs.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/D6SnDtAs.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/DApgqo7x.js +1 -0
  35. package/build/client/_app/immutable/chunks/DApgqo7x.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/DApgqo7x.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/DCcb0kkP.js +1 -0
  38. package/build/client/_app/immutable/chunks/DCcb0kkP.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/DCcb0kkP.js.gz +0 -0
  40. package/build/client/_app/immutable/entry/app.CelDjTDX.js +2 -0
  41. package/build/client/_app/immutable/entry/app.CelDjTDX.js.br +0 -0
  42. package/build/client/_app/immutable/entry/app.CelDjTDX.js.gz +0 -0
  43. package/build/client/_app/immutable/entry/start.Bo8U6P_2.js +1 -0
  44. package/build/client/_app/immutable/entry/start.Bo8U6P_2.js.br +2 -0
  45. package/build/client/_app/immutable/entry/start.Bo8U6P_2.js.gz +0 -0
  46. package/build/client/_app/immutable/nodes/0.DdgnJbSm.js +1 -0
  47. package/build/client/_app/immutable/nodes/0.DdgnJbSm.js.br +0 -0
  48. package/build/client/_app/immutable/nodes/0.DdgnJbSm.js.gz +0 -0
  49. package/build/client/_app/immutable/nodes/1.DUCL1Cc_.js +1 -0
  50. package/build/client/_app/immutable/nodes/1.DUCL1Cc_.js.br +0 -0
  51. package/build/client/_app/immutable/nodes/1.DUCL1Cc_.js.gz +0 -0
  52. package/build/client/_app/immutable/nodes/2.FNRc_Nvw.js +1 -0
  53. package/build/client/_app/immutable/nodes/2.FNRc_Nvw.js.br +0 -0
  54. package/build/client/_app/immutable/nodes/2.FNRc_Nvw.js.gz +0 -0
  55. package/build/client/_app/immutable/nodes/3.CaEmUkA2.js +29 -0
  56. package/build/client/_app/immutable/nodes/3.CaEmUkA2.js.br +0 -0
  57. package/build/client/_app/immutable/nodes/3.CaEmUkA2.js.gz +0 -0
  58. package/build/client/_app/version.json +1 -0
  59. package/build/client/_app/version.json.br +0 -0
  60. package/build/client/_app/version.json.gz +0 -0
  61. package/build/client/favicon.svg +13 -0
  62. package/build/client/favicon.svg.br +0 -0
  63. package/build/client/favicon.svg.gz +0 -0
  64. package/build/client/robots.txt +3 -0
  65. package/build/client/screenshot.png +0 -0
  66. package/build/env.js +94 -0
  67. package/build/handler.js +1494 -0
  68. package/build/index.js +345 -0
  69. package/build/server/chunks/0-CkGitm9W.js +9 -0
  70. package/build/server/chunks/0-CkGitm9W.js.map +1 -0
  71. package/build/server/chunks/1-BU8Hl3FY.js +9 -0
  72. package/build/server/chunks/1-BU8Hl3FY.js.map +1 -0
  73. package/build/server/chunks/2-DenZJmTh.js +27 -0
  74. package/build/server/chunks/2-DenZJmTh.js.map +1 -0
  75. package/build/server/chunks/3-Df2VKXDy.js +73 -0
  76. package/build/server/chunks/3-Df2VKXDy.js.map +1 -0
  77. package/build/server/chunks/_layout.svelte-BK7oCPlN.js +26 -0
  78. package/build/server/chunks/_layout.svelte-BK7oCPlN.js.map +1 -0
  79. package/build/server/chunks/_page.svelte-BMqbzglq.js +178 -0
  80. package/build/server/chunks/_page.svelte-BMqbzglq.js.map +1 -0
  81. package/build/server/chunks/_page.svelte-C2kNC2pi.js +504 -0
  82. package/build/server/chunks/_page.svelte-C2kNC2pi.js.map +1 -0
  83. package/build/server/chunks/context-JUYyv6NC.js +74 -0
  84. package/build/server/chunks/context-JUYyv6NC.js.map +1 -0
  85. package/build/server/chunks/error.svelte-Epasb48G.js +46 -0
  86. package/build/server/chunks/error.svelte-Epasb48G.js.map +1 -0
  87. package/build/server/chunks/escaping-CqgfEcN3.js +19 -0
  88. package/build/server/chunks/escaping-CqgfEcN3.js.map +1 -0
  89. package/build/server/chunks/exports-CURVw3-F.js +303 -0
  90. package/build/server/chunks/exports-CURVw3-F.js.map +1 -0
  91. package/build/server/chunks/format-dOzJq-yD.js +59 -0
  92. package/build/server/chunks/format-dOzJq-yD.js.map +1 -0
  93. package/build/server/chunks/index-C0L7m6Jv.js +1497 -0
  94. package/build/server/chunks/index-C0L7m6Jv.js.map +1 -0
  95. package/build/server/chunks/index-CoD1IJuy.js +190 -0
  96. package/build/server/chunks/index-CoD1IJuy.js.map +1 -0
  97. package/build/server/chunks/index2-f44F-4KW.js +614 -0
  98. package/build/server/chunks/index2-f44F-4KW.js.map +1 -0
  99. package/build/server/chunks/shared-server-DaWdgxVh.js +11 -0
  100. package/build/server/chunks/shared-server-DaWdgxVh.js.map +1 -0
  101. package/build/server/index.js +8152 -0
  102. package/build/server/index.js.map +1 -0
  103. package/build/server/manifest.js +54 -0
  104. package/build/server/manifest.js.map +1 -0
  105. package/build/shims.js +32 -0
  106. package/package.json +71 -0
  107. package/static/favicon.svg +13 -0
  108. package/static/robots.txt +3 -0
  109. package/static/screenshot.png +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-C2kNC2pi.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/sessions/_sessionId_/_page.svelte.js"],"sourcesContent":["import { x as attr_class, y as stringify, z as ensure_array_like, w as attr, G as bind_props, J as attr_style, F as head } from \"../../../../chunks/index.js\";\nimport { t as truncate, s as shortModel, a as formatDurationBetween, b as formatNumber, c as formatCostWithPlan } from \"../../../../chunks/format.js\";\nimport { e as escape_html } from \"../../../../chunks/escaping.js\";\nimport \"clsx\";\nimport { createPatch } from \"diff\";\nimport { i as isIncludedPlan, P as PLAN_LABELS, g as getPlan } from \"../../../../chunks/plan.svelte.js\";\nfunction EventCard($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { event, selected = false } = $$props;\n const toolColors = {\n Bash: \"border-green-500/50 bg-green-500/5\",\n Read: \"border-blue-500/50 bg-blue-500/5\",\n Write: \"border-amber-500/50 bg-amber-500/5\",\n Edit: \"border-amber-500/50 bg-amber-500/5\",\n Glob: \"border-purple-500/50 bg-purple-500/5\",\n Grep: \"border-purple-500/50 bg-purple-500/5\",\n Task: \"border-cyan-500/50 bg-cyan-500/5\",\n WebFetch: \"border-indigo-500/50 bg-indigo-500/5\",\n WebSearch: \"border-indigo-500/50 bg-indigo-500/5\"\n };\n const dotColors = {\n Bash: \"bg-green-500\",\n Read: \"bg-blue-500\",\n Write: \"bg-amber-500\",\n Edit: \"bg-amber-500\",\n Glob: \"bg-purple-500\",\n Grep: \"bg-purple-500\",\n Task: \"bg-cyan-500\",\n WebFetch: \"bg-indigo-500\",\n WebSearch: \"bg-indigo-500\"\n };\n const pulseColors = {\n Bash: \"text-green-500\",\n Read: \"text-blue-500\",\n Write: \"text-amber-500\",\n Edit: \"text-amber-500\",\n Glob: \"text-purple-500\",\n Grep: \"text-purple-500\",\n Task: \"text-cyan-500\",\n WebFetch: \"text-indigo-500\",\n WebSearch: \"text-indigo-500\"\n };\n function getSummary(event2) {\n const d = event2.data;\n switch (d.eventType) {\n case \"user_message\":\n return truncate(d.text, 80);\n case \"assistant_text\":\n return truncate(d.text, 80);\n case \"thinking\":\n return truncate(d.thinking, 60);\n case \"tool_call\": {\n const input = d.input;\n if (d.toolName === \"Bash\") return truncate(String(input.command || \"\"), 60);\n if (d.toolName === \"Read\") return truncate(String(input.file_path || \"\"), 60);\n if (d.toolName === \"Edit\") return truncate(String(input.file_path || \"\"), 60);\n if (d.toolName === \"Write\") return truncate(String(input.file_path || \"\"), 60);\n if (d.toolName === \"Glob\") return truncate(String(input.pattern || \"\"), 60);\n if (d.toolName === \"Grep\") return truncate(String(input.pattern || \"\"), 60);\n if (d.toolName === \"Task\") return truncate(String(input.description || \"\"), 60);\n return d.toolName;\n }\n case \"system\":\n return d.subtype;\n case \"compact_boundary\":\n return \"Context compacted\";\n default:\n return \"\";\n }\n }\n function getLabel(event2) {\n const d = event2.data;\n switch (d.eventType) {\n case \"user_message\":\n return \"User\";\n case \"assistant_text\":\n return \"Claude\";\n case \"thinking\":\n return \"Thinking\";\n case \"tool_call\":\n return d.toolName;\n case \"system\":\n return \"System\";\n case \"compact_boundary\":\n return \"Compact\";\n default:\n return \"\";\n }\n }\n function getDotColor(event2) {\n const d = event2.data;\n if (d.eventType === \"user_message\") return \"bg-sky-500\";\n if (d.eventType === \"assistant_text\") return \"bg-surface-400\";\n if (d.eventType === \"thinking\") return \"bg-yellow-500\";\n if (d.eventType === \"tool_call\") return dotColors[d.toolName] || \"bg-surface-500\";\n if (d.eventType === \"system\") return \"bg-surface-600\";\n if (d.eventType === \"compact_boundary\") return \"bg-orange-500\";\n return \"bg-surface-600\";\n }\n function getPulseColor(event2) {\n const d = event2.data;\n if (d.eventType === \"user_message\") return \"text-sky-500\";\n if (d.eventType === \"assistant_text\") return \"text-surface-400\";\n if (d.eventType === \"thinking\") return \"text-yellow-500\";\n if (d.eventType === \"tool_call\") return pulseColors[d.toolName] || \"text-surface-500\";\n if (d.eventType === \"compact_boundary\") return \"text-orange-500\";\n return \"text-surface-600\";\n }\n function getBorderColor(event2) {\n const d = event2.data;\n if (d.eventType === \"user_message\") return \"border-sky-500/50 bg-sky-500/5\";\n if (d.eventType === \"assistant_text\") return \"border-surface-600 bg-surface-800/50\";\n if (d.eventType === \"thinking\") return \"border-yellow-500/30 bg-yellow-500/5\";\n if (d.eventType === \"tool_call\") return toolColors[d.toolName] || \"border-surface-600 bg-surface-800/50\";\n if (d.eventType === \"compact_boundary\") return \"border-orange-500/30 bg-orange-500/5\";\n return \"border-surface-700 bg-surface-800/50\";\n }\n function hasError(event2) {\n return event2.data.eventType === \"tool_call\" && !!event2.data.result?.isError;\n }\n $$renderer2.push(`<button class=\"w-full text-left relative pl-6 group\"><div${attr_class(`absolute left-0 top-3 w-3 h-3 rounded-full ${stringify(getDotColor(event))} ring-2 ring-surface-950 z-10 ${stringify(selected ? \"scale-125\" : \"group-hover:scale-110\")} transition-transform`, \"svelte-1z0u85a\")}></div> `);\n if (selected) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div${attr_class(`absolute left-0 top-3 w-3 h-3 rounded-full z-[9] ${stringify(getPulseColor(event))} animate-pulse-ring`, \"svelte-1z0u85a\")}></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> <div${attr_class(\n `ml-2 px-3 py-2 rounded-md border transition-all text-sm ${stringify(getBorderColor(event))} ${stringify(selected ? \"ring-1 ring-surface-500 !bg-surface-800\" : \"hover:bg-surface-800/80\")} ${stringify(hasError(event) ? \"!border-red-500/50\" : \"\")}`,\n \"svelte-1z0u85a\"\n )}><div class=\"flex items-center gap-2 mb-0.5\"><span class=\"text-xs font-medium text-surface-400\">${escape_html(getLabel(event))}</span> `);\n if (hasError(event)) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"text-xs text-red-400\">error</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div> <div class=\"text-surface-300 text-xs leading-relaxed truncate\">${escape_html(getSummary(event))}</div></div></button>`);\n });\n}\nfunction Timeline($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { events, selectedIndex = 0, onselect } = $$props;\n function scrollToEvent(index) {\n return;\n }\n $$renderer2.push(`<div class=\"relative\"><div class=\"absolute left-[5px] top-0 bottom-0 w-px bg-surface-800\"></div> <div class=\"space-y-1\"><!--[-->`);\n const each_array = ensure_array_like(events);\n for (let i = 0, $$length = each_array.length; i < $$length; i++) {\n let event = each_array[i];\n $$renderer2.push(`<div${attr(\"data-event-index\", i)}>`);\n EventCard($$renderer2, {\n event,\n selected: i === selectedIndex\n });\n $$renderer2.push(`<!----></div>`);\n }\n $$renderer2.push(`<!--]--></div></div>`);\n bind_props($$props, { scrollToEvent });\n });\n}\nfunction DiffView($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { filePath, oldString, newString } = $$props;\n let patch = createPatch(filePath, oldString, newString, \"\", \"\", { context: 3 });\n let lines = (() => {\n const result = [];\n for (const line of patch.split(\"\\n\")) {\n if (line.startsWith(\"@@\")) {\n result.push({ type: \"header\", content: line });\n } else if (line.startsWith(\"+\") && !line.startsWith(\"+++\")) {\n result.push({ type: \"add\", content: line.slice(1) });\n } else if (line.startsWith(\"-\") && !line.startsWith(\"---\")) {\n result.push({ type: \"remove\", content: line.slice(1) });\n } else if (line.startsWith(\" \")) {\n result.push({ type: \"context\", content: line.slice(1) });\n }\n }\n return result;\n })();\n $$renderer2.push(`<div class=\"rounded-md border border-surface-800 overflow-hidden\"><div class=\"bg-surface-900 px-3 py-1.5 border-b border-surface-800 flex items-center gap-2\"><span class=\"text-amber-400 text-xs\">${escape_html(filePath)}</span></div> <div class=\"overflow-x-auto text-xs font-mono\"><!--[-->`);\n const each_array = ensure_array_like(lines);\n for (let i = 0, $$length = each_array.length; i < $$length; i++) {\n let line = each_array[i];\n $$renderer2.push(`<div${attr_class(`px-3 py-0.5 whitespace-pre ${stringify(line.type === \"add\" ? \"bg-green-500/10 text-green-300\" : \"\")} ${stringify(line.type === \"remove\" ? \"bg-red-500/10 text-red-300\" : \"\")} ${stringify(line.type === \"context\" ? \"text-surface-400\" : \"\")} ${stringify(line.type === \"header\" ? \"bg-surface-800 text-purple-400 py-1\" : \"\")}`)}>`);\n if (line.type === \"add\") {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`+`);\n } else if (line.type === \"remove\") {\n $$renderer2.push(\"<!--[1-->\");\n $$renderer2.push(`-`);\n } else if (line.type === \"context\") {\n $$renderer2.push(\"<!--[2-->\");\n $$renderer2.push(` `);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]-->${escape_html(line.content)}</div>`);\n }\n $$renderer2.push(`<!--]--></div></div>`);\n });\n}\nfunction BashOutput($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { command, description, output, isError } = $$props;\n $$renderer2.push(`<div class=\"rounded-md border border-surface-800 overflow-hidden\"><div class=\"bg-surface-900 px-3 py-1.5 border-b border-surface-800 flex items-center gap-2\"><div class=\"flex gap-1\"><div class=\"w-2.5 h-2.5 rounded-full bg-red-500/60\"></div> <div class=\"w-2.5 h-2.5 rounded-full bg-yellow-500/60\"></div> <div class=\"w-2.5 h-2.5 rounded-full bg-green-500/60\"></div></div> `);\n if (description) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"text-surface-500 text-xs ml-1\">${escape_html(description)}</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div> <div class=\"bg-surface-950 px-3 py-2 font-mono text-xs\"><span class=\"text-green-400\">$</span> <span class=\"text-surface-200 ml-2 whitespace-pre-wrap\">${escape_html(command)}</span></div> `);\n if (output) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<button class=\"w-full text-left px-3 py-1 bg-surface-900/50 text-surface-500 text-xs hover:text-surface-400 border-t border-surface-800\">${escape_html(\"▾\")} Output (${escape_html(output.split(\"\\n\").length)} lines)</button> `);\n {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div${attr_class(`bg-surface-950 px-3 py-2 font-mono text-xs max-h-96 overflow-y-auto ${stringify(isError ? \"text-red-300\" : \"text-surface-400\")}`)}><pre class=\"whitespace-pre-wrap\">${escape_html(output)}</pre></div>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n });\n}\nfunction CodeBlock($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { content, maxHeight = \"24rem\" } = $$props;\n let lines = content.split(\"\\n\");\n $$renderer2.push(`<div class=\"rounded-md border border-surface-800 overflow-hidden\"><div class=\"overflow-x-auto font-mono text-xs\"${attr_style(`max-height: ${stringify(maxHeight)}; overflow-y: auto;`)}><table class=\"w-full\"><tbody><!--[-->`);\n const each_array = ensure_array_like(lines);\n for (let i = 0, $$length = each_array.length; i < $$length; i++) {\n let line = each_array[i];\n $$renderer2.push(`<tr class=\"hover:bg-surface-800/30\"><td class=\"text-surface-600 text-right px-2 py-0 select-none w-1 whitespace-nowrap border-r border-surface-800\">${escape_html(i + 1)}</td><td class=\"text-surface-300 px-3 py-0 whitespace-pre\">${escape_html(line)}</td></tr>`);\n }\n $$renderer2.push(`<!--]--></tbody></table></div></div>`);\n });\n}\nfunction DetailPanel($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { event } = $$props;\n if (!event) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"flex items-center justify-center h-full text-surface-600 text-sm\">Select an event to view details</div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<div class=\"h-full overflow-y-auto p-4 space-y-4\">`);\n if (event.data.eventType === \"user_message\") {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div><h3 class=\"text-xs font-medium text-sky-400 mb-3 uppercase tracking-wider\">User Message</h3> <div class=\"text-surface-200 text-sm whitespace-pre-wrap leading-relaxed\">${escape_html(event.data.text)}</div></div>`);\n } else if (event.data.eventType === \"assistant_text\") {\n $$renderer2.push(\"<!--[1-->\");\n $$renderer2.push(`<div><h3 class=\"text-xs font-medium text-surface-400 mb-3 uppercase tracking-wider\">Claude</h3> <div class=\"text-surface-200 text-sm whitespace-pre-wrap leading-relaxed\">${escape_html(event.data.text)}</div></div>`);\n } else if (event.data.eventType === \"thinking\") {\n $$renderer2.push(\"<!--[2-->\");\n $$renderer2.push(`<div><h3 class=\"text-xs font-medium text-yellow-400 mb-3 uppercase tracking-wider\">Thinking</h3> <div class=\"text-surface-400 text-sm whitespace-pre-wrap leading-relaxed italic\">${escape_html(event.data.thinking)}</div></div>`);\n } else if (event.data.eventType === \"tool_call\") {\n $$renderer2.push(\"<!--[3-->\");\n const tc = event.data;\n $$renderer2.push(`<div><h3 class=\"text-xs font-medium text-surface-400 mb-3 uppercase tracking-wider\">${escape_html(tc.toolName)} `);\n if (tc.result?.isError) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"text-red-400 ml-2\">Error</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></h3> `);\n if (tc.toolName === \"Edit\") {\n $$renderer2.push(\"<!--[-->\");\n DiffView($$renderer2, {\n filePath: String(tc.input.file_path || \"\"),\n oldString: String(tc.input.old_string || \"\"),\n newString: String(tc.input.new_string || \"\")\n });\n } else if (tc.toolName === \"Bash\") {\n $$renderer2.push(\"<!--[1-->\");\n BashOutput($$renderer2, {\n command: String(tc.input.command || \"\"),\n description: String(tc.input.description || \"\"),\n output: tc.result?.content || \"\",\n isError: tc.result?.isError || false\n });\n } else if (tc.toolName === \"Read\") {\n $$renderer2.push(\"<!--[2-->\");\n $$renderer2.push(`<div class=\"mb-2\"><span class=\"text-blue-400 text-xs\">${escape_html(tc.input.file_path)}</span> `);\n if (tc.input.offset) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"text-surface-500 text-xs ml-2\">from line ${escape_html(tc.input.offset)}</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div> `);\n if (tc.result?.isError) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"rounded-md border border-red-500/30 bg-red-500/5 px-3 py-2\"><p class=\"text-red-400 text-xs font-medium mb-1\">Tool returned an error during this session</p> <pre class=\"text-red-300/80 text-xs whitespace-pre-wrap\">${escape_html(tc.result.content)}</pre></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n CodeBlock($$renderer2, { content: tc.result?.content || \"No content\" });\n }\n $$renderer2.push(`<!--]-->`);\n } else if (tc.toolName === \"Write\") {\n $$renderer2.push(\"<!--[3-->\");\n $$renderer2.push(`<div class=\"mb-2\"><span class=\"text-amber-400 text-xs\">${escape_html(tc.input.file_path)}</span></div> `);\n CodeBlock($$renderer2, { content: String(tc.input.content || \"\") });\n $$renderer2.push(`<!---->`);\n } else if (tc.toolName === \"Glob\") {\n $$renderer2.push(\"<!--[4-->\");\n $$renderer2.push(`<div class=\"mb-2\"><span class=\"text-purple-400 text-xs\">Pattern: ${escape_html(tc.input.pattern)}</span> `);\n if (tc.input.path) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"text-surface-500 text-xs ml-2\">in ${escape_html(tc.input.path)}</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div> `);\n CodeBlock($$renderer2, { content: tc.result?.content || \"No results\" });\n $$renderer2.push(`<!---->`);\n } else if (tc.toolName === \"Grep\") {\n $$renderer2.push(\"<!--[5-->\");\n $$renderer2.push(`<div class=\"mb-2\"><span class=\"text-purple-400 text-xs\">/${escape_html(tc.input.pattern)}/</span> `);\n if (tc.input.path) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"text-surface-500 text-xs ml-2\">in ${escape_html(tc.input.path)}</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div> `);\n CodeBlock($$renderer2, { content: tc.result?.content || \"No results\" });\n $$renderer2.push(`<!---->`);\n } else if (tc.toolName === \"Task\") {\n $$renderer2.push(\"<!--[6-->\");\n $$renderer2.push(`<div class=\"space-y-2\"><div class=\"text-surface-300 text-sm\"><span class=\"text-cyan-400\">Description:</span> ${escape_html(tc.input.description || \"\")}</div> `);\n if (tc.input.prompt) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"text-surface-400 text-xs whitespace-pre-wrap bg-surface-900 rounded p-3 border border-surface-800\">${escape_html(tc.input.prompt)}</div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n if (tc.result) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"mt-3\"><span class=\"text-xs text-surface-500\">Result:</span> `);\n CodeBlock($$renderer2, { content: tc.result.content });\n $$renderer2.push(`<!----></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<div class=\"space-y-3\"><div class=\"text-xs text-surface-500\">Input</div> <pre class=\"text-xs text-surface-300 bg-surface-900 rounded p-3 border border-surface-800 overflow-x-auto\">${escape_html(JSON.stringify(tc.input, null, 2))}</pre> `);\n if (tc.result?.isError) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"text-xs text-surface-500\">Result</div> <div class=\"rounded-md border border-red-500/30 bg-red-500/5 px-3 py-2\"><p class=\"text-red-400 text-xs font-medium mb-1\">Tool returned an error during this session</p> <pre class=\"text-red-300/80 text-xs whitespace-pre-wrap\">${escape_html(tc.result.content)}</pre></div>`);\n } else if (tc.result) {\n $$renderer2.push(\"<!--[1-->\");\n $$renderer2.push(`<div class=\"text-xs text-surface-500\">Result</div> `);\n CodeBlock($$renderer2, { content: tc.result.content });\n $$renderer2.push(`<!---->`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n }\n $$renderer2.push(`<!--]--></div>`);\n } else if (event.data.eventType === \"system\") {\n $$renderer2.push(\"<!--[4-->\");\n $$renderer2.push(`<div><h3 class=\"text-xs font-medium text-surface-500 mb-3 uppercase tracking-wider\">System</h3> <p class=\"text-surface-400 text-sm\">${escape_html(event.data.subtype)}</p> `);\n if (event.data.durationMs) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<p class=\"text-surface-500 text-xs mt-1\">Duration: ${escape_html((event.data.durationMs / 1e3).toFixed(1))}s</p>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n } else if (event.data.eventType === \"compact_boundary\") {\n $$renderer2.push(\"<!--[5-->\");\n $$renderer2.push(`<div class=\"text-center py-8\"><div class=\"text-orange-400 text-sm font-medium\">Context Compacted</div> <p class=\"text-surface-500 text-xs mt-2\">The conversation was summarized to fit the context window</p></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nfunction PlaybackControls($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n currentIndex = 0,\n totalEvents = 0,\n isPlaying = false,\n speed = 1,\n onspeedchange\n } = $$props;\n const speeds = [1, 2, 4, 8];\n let progress = totalEvents > 1 ? currentIndex / (totalEvents - 1) * 100 : 0;\n $$renderer2.push(`<div class=\"playback-controls flex items-center gap-3\"><button${attr(\"disabled\", currentIndex <= 0, true)} class=\"text-surface-400 hover:text-surface-200 disabled:text-surface-700 disabled:cursor-not-allowed transition-colors p-1 min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-0 flex items-center justify-center\" title=\"Previous (Left Arrow)\">◀</button> <button class=\"text-surface-200 hover:text-white transition-colors p-1 text-lg min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-0 flex items-center justify-center\" title=\"Play/Pause (Space)\">`);\n if (isPlaying) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`❚❚`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`▶`);\n }\n $$renderer2.push(`<!--]--></button> <button${attr(\"disabled\", currentIndex >= totalEvents - 1, true)} class=\"text-surface-400 hover:text-surface-200 disabled:text-surface-700 disabled:cursor-not-allowed transition-colors p-1 min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-0 flex items-center justify-center\" title=\"Next (Right Arrow)\">▶</button> <button class=\"flex-1 h-1.5 bg-surface-800 rounded-full relative cursor-pointer group\" aria-label=\"Seek to position\"><div class=\"absolute inset-y-0 left-0 bg-surface-500 group-hover:bg-surface-400 rounded-full transition-all\"${attr_style(`width: ${stringify(progress)}%`)}></div> <div class=\"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-surface-300 rounded-full opacity-0 group-hover:opacity-100 transition-opacity\"${attr_style(`left: ${stringify(progress)}%`)}></div></button> <span class=\"counter text-surface-500 text-xs tabular-nums min-w-[4rem] text-right svelte-167mial\"><span class=\"counter-full svelte-167mial\">${escape_html(currentIndex + 1)} / ${escape_html(totalEvents)}</span> <span class=\"counter-short hidden svelte-167mial\">${escape_html(currentIndex + 1)}/${escape_html(totalEvents)}</span></span> <div class=\"speed-buttons flex items-center gap-1 svelte-167mial\"><!--[-->`);\n const each_array = ensure_array_like(speeds);\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let s = each_array[$$index];\n $$renderer2.push(`<button${attr_class(`text-xs px-1.5 py-0.5 rounded transition-colors ${stringify(speed === s ? \"bg-surface-700 text-surface-200\" : \"text-surface-500 hover:text-surface-300\")}`)}>${escape_html(s)}x</button>`);\n }\n $$renderer2.push(`<!--]--></div> <div class=\"speed-select hidden svelte-167mial\">`);\n $$renderer2.select(\n {\n value: speed,\n onchange: (e) => onspeedchange(Number(e.target.value)),\n class: \"bg-surface-800 border border-surface-700 rounded text-xs text-surface-300 px-1.5 py-1 min-h-[44px]\"\n },\n ($$renderer3) => {\n $$renderer3.push(`<!--[-->`);\n const each_array_1 = ensure_array_like(speeds);\n for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n let s = each_array_1[$$index_1];\n $$renderer3.option({ value: s }, ($$renderer4) => {\n $$renderer4.push(`${escape_html(s)}x`);\n });\n }\n $$renderer3.push(`<!--]-->`);\n }\n );\n $$renderer2.push(`</div></div>`);\n });\n}\nfunction StatsBar($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { summary } = $$props;\n function getModelColor(model) {\n if (model.includes(\"opus\")) return \"text-purple-300\";\n if (model.includes(\"sonnet\")) return \"text-blue-300\";\n if (model.includes(\"haiku\")) return \"text-green-300\";\n return \"text-surface-200\";\n }\n $$renderer2.push(`<div class=\"stats-bar-container\" style=\"container-type: inline-size;\"><div class=\"stats-bar flex items-center gap-4 text-xs text-surface-400 flex-wrap svelte-1cc6v80\"><div class=\"flex items-center gap-1.5\"><span class=\"text-surface-500\">Model</span> <span${attr_class(getModelColor(summary.model), \"svelte-1cc6v80\")}>${escape_html(shortModel(summary.model))}</span></div> <span class=\"stats-sep text-surface-700 svelte-1cc6v80\">|</span> <div class=\"flex items-center gap-1.5\"><span class=\"text-surface-500\">Duration</span> <span class=\"text-surface-200\">${escape_html(formatDurationBetween(summary.startedAt, summary.lastActiveAt))}</span></div> <span class=\"stats-sep text-surface-700 svelte-1cc6v80\">|</span> <div class=\"flex items-center gap-1.5\"><span class=\"text-surface-500\">Tools</span> <span class=\"text-cyan-300\">${escape_html(summary.toolCallCount)}</span></div> <span class=\"stats-sep text-surface-700 svelte-1cc6v80\">|</span> <div class=\"flex items-center gap-1.5\"><span class=\"text-surface-500\">Tokens</span> <span><span class=\"text-amber-300\">${escape_html(formatNumber(summary.inputTokens))} in</span> / <span class=\"text-blue-300\">${escape_html(formatNumber(summary.outputTokens))} out</span></span></div> <span class=\"stats-sep text-surface-700 svelte-1cc6v80\">|</span> <div class=\"flex items-center gap-1.5\"${attr(\"title\", isIncludedPlan() ? `Estimated API cost — included in your ${PLAN_LABELS[getPlan()]} subscription` : \"Estimated API cost\")}><span class=\"text-surface-500\">Cost</span> <span${attr_class(isIncludedPlan() ? \"text-surface-500\" : \"text-emerald-300\")}>${escape_html(formatCostWithPlan(summary.estimatedCost, isIncludedPlan()))}</span> `);\n if (isIncludedPlan()) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"text-[10px] text-surface-600\">included</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div></div></div>`);\n });\n}\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { data } = $$props;\n let selectedIndex = 0;\n let isPlaying = false;\n let speed = 1;\n let mobileTab = \"timeline\";\n let selectedEvent = data.timeline.events[selectedIndex] || null;\n function goTo(index) {\n if (index < 0 || index >= data.timeline.events.length) return;\n selectedIndex = index;\n mobileTab = \"details\";\n }\n function setSpeed(s) {\n speed = s;\n }\n head(\"y8uck8\", $$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>${escape_html(data.timeline.summary.slug || data.timeline.summary.sessionId.slice(0, 8))} — Agent Replay</title>`);\n });\n });\n $$renderer2.push(`<div class=\"h-[calc(100vh-3.5rem-2px)] flex flex-col\"><div class=\"border-b border-surface-800 bg-surface-900/50 px-3 sm:px-4 py-2 space-y-2\"><div class=\"flex items-center gap-3\"><a href=\"/\" class=\"text-surface-500 hover:text-blue-400 transition-colors text-xs\">← Sessions</a> <span class=\"text-surface-700\">|</span> <h1 class=\"text-surface-100 text-sm font-medium truncate\">${escape_html(data.timeline.summary.slug || data.timeline.summary.sessionId.slice(0, 8))}</h1> <span class=\"text-surface-600 text-xs truncate hidden sm:inline\">${escape_html(data.timeline.summary.project)}</span></div> `);\n StatsBar($$renderer2, { summary: data.timeline.summary });\n $$renderer2.push(`<!----> `);\n PlaybackControls($$renderer2, {\n currentIndex: selectedIndex,\n totalEvents: data.timeline.events.length,\n isPlaying,\n speed,\n onspeedchange: setSpeed\n });\n $$renderer2.push(`<!----></div> <div class=\"mobile-tabs flex border-b border-surface-800 lg:hidden\"><button${attr_class(`flex-1 px-4 py-2.5 text-xs font-medium transition-colors ${stringify(mobileTab === \"timeline\" ? \"text-surface-100 border-b-2 border-blue-500\" : \"text-surface-500 hover:text-surface-300\")}`)}>Timeline</button> <button${attr_class(`flex-1 px-4 py-2.5 text-xs font-medium transition-colors ${stringify(mobileTab === \"details\" ? \"text-surface-100 border-b-2 border-blue-500\" : \"text-surface-500 hover:text-surface-300\")}`)}>Details</button></div> <div class=\"desktop-layout flex-1 hidden lg:flex overflow-hidden\"><div class=\"w-[400px] xl:w-[400px] lg:w-[280px] min-w-[240px] border-r border-surface-800 overflow-y-auto p-3\">`);\n Timeline($$renderer2, { events: data.timeline.events, selectedIndex, onselect: goTo });\n $$renderer2.push(`<!----></div> <div class=\"flex-1 overflow-hidden\">`);\n DetailPanel($$renderer2, { event: selectedEvent });\n $$renderer2.push(`<!----></div></div> <div class=\"mobile-layout flex-1 lg:hidden overflow-hidden\">`);\n if (mobileTab === \"timeline\") {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"h-full overflow-y-auto p-3\">`);\n Timeline($$renderer2, { events: data.timeline.events, selectedIndex, onselect: goTo });\n $$renderer2.push(`<!----></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<div class=\"h-full overflow-hidden flex flex-col\"><button class=\"px-3 py-2 text-xs text-surface-500 hover:text-blue-400 transition-colors text-left sm:hidden\">← Back to timeline</button> <div class=\"flex-1 overflow-hidden\">`);\n DetailPanel($$renderer2, { event: selectedEvent });\n $$renderer2.push(`<!----></div></div>`);\n }\n $$renderer2.push(`<!--]--></div></div>`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;AAMA,SAAS,SAAS,CAAC,UAAU,EAAE,OAAO,EAAE;AACxC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,KAAK,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,OAAO;AAC7C,IAAI,MAAM,UAAU,GAAG;AACvB,MAAM,IAAI,EAAE,oCAAoC;AAChD,MAAM,IAAI,EAAE,kCAAkC;AAC9C,MAAM,KAAK,EAAE,oCAAoC;AACjD,MAAM,IAAI,EAAE,oCAAoC;AAChD,MAAM,IAAI,EAAE,sCAAsC;AAClD,MAAM,IAAI,EAAE,sCAAsC;AAClD,MAAM,IAAI,EAAE,kCAAkC;AAC9C,MAAM,QAAQ,EAAE,sCAAsC;AACtD,MAAM,SAAS,EAAE;AAC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gFAAgF,CAAC,CAAC;AACxG,IAAI,IAAI,SAAS,KAAK,UAAU,EAAE;AAClC,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AAClC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,wCAAwC,CAAC,CAAC;AAClE,MAAM,QAAQ,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC5F,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AACvC,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,+NAA+N,CAAC,CAAC;AACzP,MAAM,WAAW,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;AACxD,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC,CAAC;AAC7C,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAC5C,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -0,0 +1,74 @@
1
+ var is_array = Array.isArray;
2
+ var index_of = Array.prototype.indexOf;
3
+ var includes = Array.prototype.includes;
4
+ var array_from = Array.from;
5
+ var define_property = Object.defineProperty;
6
+ var get_descriptor = Object.getOwnPropertyDescriptor;
7
+ var object_prototype = Object.prototype;
8
+ var array_prototype = Array.prototype;
9
+ var get_prototype_of = Object.getPrototypeOf;
10
+ var is_extensible = Object.isExtensible;
11
+ const noop = () => {
12
+ };
13
+ function run_all(arr) {
14
+ for (var i = 0; i < arr.length; i++) {
15
+ arr[i]();
16
+ }
17
+ }
18
+ function deferred() {
19
+ var resolve;
20
+ var reject;
21
+ var promise = new Promise((res, rej) => {
22
+ resolve = res;
23
+ reject = rej;
24
+ });
25
+ return { promise, resolve, reject };
26
+ }
27
+ function lifecycle_outside_component(name) {
28
+ {
29
+ throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
30
+ }
31
+ }
32
+ var ssr_context = null;
33
+ function set_ssr_context(v) {
34
+ ssr_context = v;
35
+ }
36
+ function getContext(key) {
37
+ const context_map = get_or_init_context_map();
38
+ const result = (
39
+ /** @type {T} */
40
+ context_map.get(key)
41
+ );
42
+ return result;
43
+ }
44
+ function setContext(key, context) {
45
+ get_or_init_context_map().set(key, context);
46
+ return context;
47
+ }
48
+ function get_or_init_context_map(name) {
49
+ if (ssr_context === null) {
50
+ lifecycle_outside_component();
51
+ }
52
+ return ssr_context.c ??= new Map(get_parent_context(ssr_context) || void 0);
53
+ }
54
+ function push(fn) {
55
+ ssr_context = { p: ssr_context, c: null, r: null };
56
+ }
57
+ function pop() {
58
+ ssr_context = /** @type {SSRContext} */
59
+ ssr_context.p;
60
+ }
61
+ function get_parent_context(ssr_context2) {
62
+ let parent = ssr_context2.p;
63
+ while (parent !== null) {
64
+ const context_map = parent.c;
65
+ if (context_map !== null) {
66
+ return context_map;
67
+ }
68
+ parent = parent.p;
69
+ }
70
+ return null;
71
+ }
72
+
73
+ export { array_prototype as a, array_from as b, get_prototype_of as c, define_property as d, is_array as e, deferred as f, get_descriptor as g, includes as h, is_extensible as i, index_of as j, getContext as k, set_ssr_context as l, ssr_context as m, noop as n, object_prototype as o, push as p, pop as q, run_all as r, setContext as s };
74
+ //# sourceMappingURL=context-JUYyv6NC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-JUYyv6NC.js","sources":["../../../.svelte-kit/adapter-node/chunks/context.js"],"sourcesContent":["var is_array = Array.isArray;\nvar index_of = Array.prototype.indexOf;\nvar includes = Array.prototype.includes;\nvar array_from = Array.from;\nvar define_property = Object.defineProperty;\nvar get_descriptor = Object.getOwnPropertyDescriptor;\nvar object_prototype = Object.prototype;\nvar array_prototype = Array.prototype;\nvar get_prototype_of = Object.getPrototypeOf;\nvar is_extensible = Object.isExtensible;\nconst noop = () => {\n};\nfunction run_all(arr) {\n for (var i = 0; i < arr.length; i++) {\n arr[i]();\n }\n}\nfunction deferred() {\n var resolve;\n var reject;\n var promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n return { promise, resolve, reject };\n}\nfunction lifecycle_outside_component(name) {\n {\n throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);\n }\n}\nvar ssr_context = null;\nfunction set_ssr_context(v) {\n ssr_context = v;\n}\nfunction getContext(key) {\n const context_map = get_or_init_context_map();\n const result = (\n /** @type {T} */\n context_map.get(key)\n );\n return result;\n}\nfunction setContext(key, context) {\n get_or_init_context_map().set(key, context);\n return context;\n}\nfunction get_or_init_context_map(name) {\n if (ssr_context === null) {\n lifecycle_outside_component();\n }\n return ssr_context.c ??= new Map(get_parent_context(ssr_context) || void 0);\n}\nfunction push(fn) {\n ssr_context = { p: ssr_context, c: null, r: null };\n}\nfunction pop() {\n ssr_context = /** @type {SSRContext} */\n ssr_context.p;\n}\nfunction get_parent_context(ssr_context2) {\n let parent = ssr_context2.p;\n while (parent !== null) {\n const context_map = parent.c;\n if (context_map !== null) {\n return context_map;\n }\n parent = parent.p;\n }\n return null;\n}\nexport {\n array_prototype as a,\n get_prototype_of as b,\n is_array as c,\n deferred as d,\n is_extensible as e,\n index_of as f,\n get_descriptor as g,\n define_property as h,\n includes as i,\n array_from as j,\n getContext as k,\n set_ssr_context as l,\n ssr_context as m,\n noop as n,\n object_prototype as o,\n push as p,\n pop as q,\n run_all as r,\n setContext as s\n};\n"],"names":[],"mappings":"AAAG,IAAC,QAAQ,GAAG,KAAK,CAAC;AAClB,IAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC;AAC5B,IAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC;AAC5B,IAAC,UAAU,GAAG,KAAK,CAAC;AACpB,IAAC,eAAe,GAAG,MAAM,CAAC;AAC1B,IAAC,cAAc,GAAG,MAAM,CAAC;AACzB,IAAC,g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;AACA,SAAS,uBAAuB,CAAC,IAAI,EAAE;AACvC,EAAE,IAAI,WAAW,KAAK,IAAI,EAAE;AAC5B,IAAI,2BAA2B,EAAE;AACjC,EAAE;AACF,EAAE,OAAO,WAAW,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,kBAAkB,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC;AAC7E;AACA,SAAS,IAAI,CAAC,EAAE,EAAE;AAClB,EAAE,WAAW,GAAG,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE;AACpD;AACA,SAAS,GAAG,GAAG;AACf,EAAE,WAAW;AACb,EAAE,WAAW,CAAC,CAAC;AACf;AACA,SAAS,kBAAkB,CAAC,YAAY,EAAE;AAC1C,EAAE,IAAI,MAAM,GAAG,YAAY,CAAC,CAAC;AAC7B,EAAE,OAAO,MAAM,KAAK,IAAI,EAAE;AAC1B,IAAI,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC;AAChC,IAAI,IAAI,WAAW,KAAK,IAAI,EAAE;AAC9B,MAAM,OAAO,WAAW;AACxB,IAAI;AACJ,IAAI,MAAM,GAAG,MAAM,CAAC,CAAC;AACrB,EAAE;AACF,EAAE,OAAO,IAAI;AACb;;;;"}
@@ -0,0 +1,46 @@
1
+ import { e as escape_html } from './escaping-CqgfEcN3.js';
2
+ import { k as getContext, n as noop } from './context-JUYyv6NC.js';
3
+ import { l as writable } from './exports-CURVw3-F.js';
4
+
5
+ function create_updated_store() {
6
+ const { set, subscribe } = writable(false);
7
+ {
8
+ return {
9
+ subscribe,
10
+ // eslint-disable-next-line @typescript-eslint/require-await
11
+ check: async () => false
12
+ };
13
+ }
14
+ }
15
+ const is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
16
+ if (is_legacy) {
17
+ ({
18
+ url: new URL("https://example.com")
19
+ });
20
+ }
21
+ const stores = {
22
+ updated: /* @__PURE__ */ create_updated_store()
23
+ };
24
+ ({
25
+ check: stores.updated.check
26
+ });
27
+ function context() {
28
+ return getContext("__request__");
29
+ }
30
+ const page$1 = {
31
+ get error() {
32
+ return context().page.error;
33
+ },
34
+ get status() {
35
+ return context().page.status;
36
+ }
37
+ };
38
+ const page = page$1;
39
+ function Error$1($$renderer, $$props) {
40
+ $$renderer.component(($$renderer2) => {
41
+ $$renderer2.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);
42
+ });
43
+ }
44
+
45
+ export { Error$1 as default };
46
+ //# sourceMappingURL=error.svelte-Epasb48G.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.svelte-Epasb48G.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import { e as escape_html } from \"../../chunks/escaping.js\";\nimport \"clsx\";\nimport { n as noop, k as getContext } from \"../../chunks/context.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"@sveltejs/kit/internal\";\nimport { w as writable } from \"../../chunks/exports.js\";\nimport \"../../chunks/utils.js\";\nfunction create_updated_store() {\n const { set, subscribe } = writable(false);\n {\n return {\n subscribe,\n // eslint-disable-next-line @typescript-eslint/require-await\n check: async () => false\n };\n }\n}\nconst is_legacy = noop.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop.toString());\nif (is_legacy) {\n ({\n data: {},\n form: null,\n error: null,\n params: {},\n route: { id: null },\n state: {},\n status: -1,\n url: new URL(\"https://example.com\")\n });\n}\nconst stores = {\n updated: /* @__PURE__ */ create_updated_store()\n};\n({\n check: stores.updated.check\n});\nfunction context() {\n return getContext(\"__request__\");\n}\nconst page$1 = {\n get error() {\n return context().page.error;\n },\n get status() {\n return context().page.status;\n }\n};\nconst page = page$1;\nfunction Error$1($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n $$renderer2.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n });\n}\nexport {\n Error$1 as default\n};\n"],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AACvG,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -0,0 +1,19 @@
1
+ const ATTR_REGEX = /[&"<]/g;
2
+ const CONTENT_REGEX = /[&<]/g;
3
+ function escape_html(value, is_attr) {
4
+ const str = String(value ?? "");
5
+ const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
6
+ pattern.lastIndex = 0;
7
+ let escaped = "";
8
+ let last = 0;
9
+ while (pattern.test(str)) {
10
+ const i = pattern.lastIndex - 1;
11
+ const ch = str[i];
12
+ escaped += str.substring(last, i) + (ch === "&" ? "&amp;" : ch === '"' ? "&quot;" : "&lt;");
13
+ last = i + 1;
14
+ }
15
+ return escaped + str.substring(last);
16
+ }
17
+
18
+ export { escape_html as e };
19
+ //# sourceMappingURL=escaping-CqgfEcN3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escaping-CqgfEcN3.js","sources":["../../../.svelte-kit/adapter-node/chunks/escaping.js"],"sourcesContent":["const ATTR_REGEX = /[&\"<]/g;\nconst CONTENT_REGEX = /[&<]/g;\nfunction escape_html(value, is_attr) {\n const str = String(value ?? \"\");\n const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;\n pattern.lastIndex = 0;\n let escaped = \"\";\n let last = 0;\n while (pattern.test(str)) {\n const i = pattern.lastIndex - 1;\n const ch = str[i];\n escaped += str.substring(last, i) + (ch === \"&\" ? \"&amp;\" : ch === '\"' ? \"&quot;\" : \"&lt;\");\n last = i + 1;\n }\n return escaped + str.substring(last);\n}\nexport {\n escape_html as e\n};\n"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,QAAQ;AAC3B,MAAM,aAAa,GAAG,OAAO;AAC7B,SAAS,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE;AACrC,EAAE,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;AACjC,EAAE,MAAM,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa;AACtD,EAAE,OAAO,CAAC,SAAS,GAAG,CAAC;AACvB,EAAE,IAAI,OAAO,GAAG,EAAE;AAClB,EAAE,IAAI,IAAI,GAAG,CAAC;AACd,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;AAC5B,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,GAAG,CAAC;AACnC,IAAI,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AACrB,IAAI,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,GAAG,GAAG,OAAO,GAAG,EAAE,KAAK,GAAG,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC/F,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC;AAChB,EAAE;AACF,EAAE,OAAO,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC;AACtC;;;;"}
@@ -0,0 +1,303 @@
1
+ import { n as noop } from './context-JUYyv6NC.js';
2
+
3
+ // eslint-disable-next-line n/prefer-global/process
4
+ const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
5
+
6
+ /** @import { RequestEvent } from '@sveltejs/kit' */
7
+ /** @import { RequestStore } from 'types' */
8
+ /** @import { AsyncLocalStorage } from 'node:async_hooks' */
9
+
10
+
11
+ /** @type {RequestStore | null} */
12
+ let sync_store = null;
13
+
14
+ /** @type {AsyncLocalStorage<RequestStore | null> | null} */
15
+ let als;
16
+
17
+ import('node:async_hooks')
18
+ .then((hooks) => (als = new hooks.AsyncLocalStorage()))
19
+ .catch(() => {
20
+ // can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.
21
+ // this isn't behind `supports` because it's basically just StackBlitz (i.e.
22
+ // in-browser usage) that doesn't support it AFAICT
23
+ });
24
+
25
+ /**
26
+ * @template T
27
+ * @param {RequestStore | null} store
28
+ * @param {() => T} fn
29
+ */
30
+ function with_request_store(store, fn) {
31
+ try {
32
+ sync_store = store;
33
+ return als ? als.run(store, fn) : fn();
34
+ } finally {
35
+ // Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`
36
+ // and handle only one request at a time in `src/runtime/server/index.js`.
37
+ if (!IN_WEBCONTAINER) {
38
+ sync_store = null;
39
+ }
40
+ }
41
+ }
42
+
43
+ const text_encoder = new TextEncoder();
44
+ const text_decoder = new TextDecoder();
45
+ function get_relative_path(from, to) {
46
+ const from_parts = from.split(/[/\\]/);
47
+ const to_parts = to.split(/[/\\]/);
48
+ from_parts.pop();
49
+ while (from_parts[0] === to_parts[0]) {
50
+ from_parts.shift();
51
+ to_parts.shift();
52
+ }
53
+ let i = from_parts.length;
54
+ while (i--) from_parts[i] = "..";
55
+ return from_parts.concat(to_parts).join("/");
56
+ }
57
+ function base64_encode(bytes) {
58
+ if (globalThis.Buffer) {
59
+ return globalThis.Buffer.from(bytes).toString("base64");
60
+ }
61
+ let binary = "";
62
+ for (let i = 0; i < bytes.length; i++) {
63
+ binary += String.fromCharCode(bytes[i]);
64
+ }
65
+ return btoa(binary);
66
+ }
67
+ function base64_decode(encoded) {
68
+ if (globalThis.Buffer) {
69
+ const buffer = globalThis.Buffer.from(encoded, "base64");
70
+ return new Uint8Array(buffer);
71
+ }
72
+ const binary = atob(encoded);
73
+ const bytes = new Uint8Array(binary.length);
74
+ for (let i = 0; i < binary.length; i++) {
75
+ bytes[i] = binary.charCodeAt(i);
76
+ }
77
+ return bytes;
78
+ }
79
+
80
+ function equals(value) {
81
+ return value === this.v;
82
+ }
83
+ function safe_not_equal(a, b) {
84
+ return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
85
+ }
86
+ function safe_equals(value) {
87
+ return !safe_not_equal(value, this.v);
88
+ }
89
+
90
+ const internal = new URL("sveltekit-internal://");
91
+ function resolve(base, path) {
92
+ if (path[0] === "/" && path[1] === "/") return path;
93
+ let url = new URL(base, internal);
94
+ url = new URL(path, url);
95
+ return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
96
+ }
97
+ function normalize_path(path, trailing_slash) {
98
+ if (path === "/" || trailing_slash === "ignore") return path;
99
+ if (trailing_slash === "never") {
100
+ return path.endsWith("/") ? path.slice(0, -1) : path;
101
+ } else if (trailing_slash === "always" && !path.endsWith("/")) {
102
+ return path + "/";
103
+ }
104
+ return path;
105
+ }
106
+ function decode_pathname(pathname) {
107
+ return pathname.split("%25").map(decodeURI).join("%25");
108
+ }
109
+ function decode_params(params) {
110
+ for (const key in params) {
111
+ params[key] = decodeURIComponent(params[key]);
112
+ }
113
+ return params;
114
+ }
115
+ function make_trackable(url, callback, search_params_callback, allow_hash = false) {
116
+ const tracked = new URL(url);
117
+ Object.defineProperty(tracked, "searchParams", {
118
+ value: new Proxy(tracked.searchParams, {
119
+ get(obj, key) {
120
+ if (key === "get" || key === "getAll" || key === "has") {
121
+ return (param, ...rest) => {
122
+ search_params_callback(param);
123
+ return obj[key](param, ...rest);
124
+ };
125
+ }
126
+ callback();
127
+ const value = Reflect.get(obj, key);
128
+ return typeof value === "function" ? value.bind(obj) : value;
129
+ }
130
+ }),
131
+ enumerable: true,
132
+ configurable: true
133
+ });
134
+ const tracked_url_properties = ["href", "pathname", "search", "toString", "toJSON"];
135
+ if (allow_hash) tracked_url_properties.push("hash");
136
+ for (const property of tracked_url_properties) {
137
+ Object.defineProperty(tracked, property, {
138
+ get() {
139
+ callback();
140
+ return url[property];
141
+ },
142
+ enumerable: true,
143
+ configurable: true
144
+ });
145
+ }
146
+ {
147
+ tracked[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
148
+ return inspect(url, opts);
149
+ };
150
+ tracked.searchParams[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
151
+ return inspect(url.searchParams, opts);
152
+ };
153
+ }
154
+ if (!allow_hash) {
155
+ disable_hash(tracked);
156
+ }
157
+ return tracked;
158
+ }
159
+ function disable_hash(url) {
160
+ allow_nodejs_console_log(url);
161
+ Object.defineProperty(url, "hash", {
162
+ get() {
163
+ throw new Error(
164
+ "Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead"
165
+ );
166
+ }
167
+ });
168
+ }
169
+ function disable_search(url) {
170
+ allow_nodejs_console_log(url);
171
+ for (const property of ["search", "searchParams"]) {
172
+ Object.defineProperty(url, property, {
173
+ get() {
174
+ throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
175
+ }
176
+ });
177
+ }
178
+ }
179
+ function allow_nodejs_console_log(url) {
180
+ {
181
+ url[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
182
+ return inspect(new URL(url), opts);
183
+ };
184
+ }
185
+ }
186
+ const subscriber_queue = [];
187
+ function readable(value, start) {
188
+ return {
189
+ subscribe: writable(value, start).subscribe
190
+ };
191
+ }
192
+ function writable(value, start = noop) {
193
+ let stop = null;
194
+ const subscribers = /* @__PURE__ */ new Set();
195
+ function set(new_value) {
196
+ if (safe_not_equal(value, new_value)) {
197
+ value = new_value;
198
+ if (stop) {
199
+ const run_queue = !subscriber_queue.length;
200
+ for (const subscriber of subscribers) {
201
+ subscriber[1]();
202
+ subscriber_queue.push(subscriber, value);
203
+ }
204
+ if (run_queue) {
205
+ for (let i = 0; i < subscriber_queue.length; i += 2) {
206
+ subscriber_queue[i][0](subscriber_queue[i + 1]);
207
+ }
208
+ subscriber_queue.length = 0;
209
+ }
210
+ }
211
+ }
212
+ }
213
+ function update(fn) {
214
+ set(fn(
215
+ /** @type {T} */
216
+ value
217
+ ));
218
+ }
219
+ function subscribe(run, invalidate = noop) {
220
+ const subscriber = [run, invalidate];
221
+ subscribers.add(subscriber);
222
+ if (subscribers.size === 1) {
223
+ stop = start(set, update) || noop;
224
+ }
225
+ run(
226
+ /** @type {T} */
227
+ value
228
+ );
229
+ return () => {
230
+ subscribers.delete(subscriber);
231
+ if (subscribers.size === 0 && stop) {
232
+ stop();
233
+ stop = null;
234
+ }
235
+ };
236
+ }
237
+ return { set, update, subscribe };
238
+ }
239
+ function validator(expected) {
240
+ function validate(module, file) {
241
+ if (!module) return;
242
+ for (const key in module) {
243
+ if (key[0] === "_" || expected.has(key)) continue;
244
+ const values = [...expected.values()];
245
+ const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
246
+ throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
247
+ }
248
+ }
249
+ return validate;
250
+ }
251
+ function hint_for_supported_files(key, ext = ".js") {
252
+ const supported_files = [];
253
+ if (valid_layout_exports.has(key)) {
254
+ supported_files.push(`+layout${ext}`);
255
+ }
256
+ if (valid_page_exports.has(key)) {
257
+ supported_files.push(`+page${ext}`);
258
+ }
259
+ if (valid_layout_server_exports.has(key)) {
260
+ supported_files.push(`+layout.server${ext}`);
261
+ }
262
+ if (valid_page_server_exports.has(key)) {
263
+ supported_files.push(`+page.server${ext}`);
264
+ }
265
+ if (valid_server_exports.has(key)) {
266
+ supported_files.push(`+server${ext}`);
267
+ }
268
+ if (supported_files.length > 0) {
269
+ return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
270
+ }
271
+ }
272
+ const valid_layout_exports = /* @__PURE__ */ new Set([
273
+ "load",
274
+ "prerender",
275
+ "csr",
276
+ "ssr",
277
+ "trailingSlash",
278
+ "config"
279
+ ]);
280
+ const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
281
+ const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
282
+ const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]);
283
+ const valid_server_exports = /* @__PURE__ */ new Set([
284
+ "GET",
285
+ "POST",
286
+ "PATCH",
287
+ "PUT",
288
+ "DELETE",
289
+ "OPTIONS",
290
+ "HEAD",
291
+ "fallback",
292
+ "prerender",
293
+ "trailingSlash",
294
+ "config",
295
+ "entries"
296
+ ]);
297
+ const validate_layout_exports = validator(valid_layout_exports);
298
+ const validate_page_exports = validator(valid_page_exports);
299
+ const validate_layout_server_exports = validator(valid_layout_server_exports);
300
+ const validate_page_server_exports = validator(valid_page_server_exports);
301
+
302
+ export { decode_params as a, base64_decode as b, disable_search as c, decode_pathname as d, equals as e, validate_layout_exports as f, validate_page_server_exports as g, validate_page_exports as h, text_encoder as i, get_relative_path as j, base64_encode as k, writable as l, make_trackable as m, normalize_path as n, readable as o, resolve as r, safe_equals as s, text_decoder as t, validate_layout_server_exports as v, with_request_store as w };
303
+ //# sourceMappingURL=exports-CURVw3-F.js.map