@meridiona/meridian-darwin-arm64 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/bin/meridian +0 -0
- package/package.json +1 -1
- package/scripts/meridian-cli.sh +82 -31
- package/services/pyproject.toml +1 -1
- package/ui/.next/static/chunks/{0dl.w-ip2ly5_.js → 07x783u_o.xx7.js} +1 -1
- package/ui/.next/static/chunks/{0t0n-_np5foyi.js → 0oybxc0s9-8jn.js} +1 -1
- package/ui/ui/.next/BUILD_ID +1 -1
- package/ui/ui/.next/build-manifest.json +3 -3
- package/ui/ui/.next/prerender-manifest.json +3 -3
- package/ui/ui/.next/server/app/_global-error.html +1 -1
- package/ui/ui/.next/server/app/_global-error.rsc +1 -1
- package/ui/ui/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_not-found.html +1 -1
- package/ui/ui/.next/server/app/_not-found.rsc +1 -1
- package/ui/ui/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/ui/ui/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/ui/ui/.next/server/app/index.html +1 -1
- package/ui/ui/.next/server/app/index.rsc +2 -2
- package/ui/ui/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/ui/ui/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/ui/ui/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/ui/ui/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/ui/ui/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/ui/ui/.next/server/app/page/react-loadable-manifest.json +1 -1
- package/ui/ui/.next/server/app/page_client-reference-manifest.js +1 -1
- package/ui/ui/.next/server/app/settings.html +1 -1
- package/ui/ui/.next/server/app/settings.rsc +1 -1
- package/ui/ui/.next/server/app/settings.segments/_full.segment.rsc +1 -1
- package/ui/ui/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/ui/ui/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/ui/ui/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/ui/ui/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
- package/ui/ui/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/ui/ui/.next/server/middleware-build-manifest.js +3 -3
- package/ui/ui/.next/server/pages/404.html +1 -1
- package/ui/ui/.next/server/pages/500.html +1 -1
- package/ui/ui/.next/server/server-reference-manifest.js +1 -1
- package/ui/ui/.next/server/server-reference-manifest.json +1 -1
- package/ui/ui/package.json +1 -1
- /package/ui/.next/static/{ssYyfKouyOGsUj1971PsB → fgwN26YOmxupyk7wZVBR0}/_buildManifest.js +0 -0
- /package/ui/.next/static/{ssYyfKouyOGsUj1971PsB → fgwN26YOmxupyk7wZVBR0}/_clientMiddlewareManifest.js +0 -0
- /package/ui/.next/static/{ssYyfKouyOGsUj1971PsB → fgwN26YOmxupyk7wZVBR0}/_ssgManifest.js +0 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
1
|
+
1.4.1
|
package/bin/meridian
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meridiona/meridian-darwin-arm64",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Prebuilt Meridian app for macOS arm64 (daemon binary + dashboard + Python services). Installed via @meridiona/meridian.",
|
|
5
5
|
"homepage": "https://github.com/Meridiona/meridian",
|
|
6
6
|
"repository": {
|
package/scripts/meridian-cli.sh
CHANGED
|
@@ -56,13 +56,12 @@ EOF
|
|
|
56
56
|
cat <<'EOF'
|
|
57
57
|
|
|
58
58
|
Dev (source checkout — builds from this repo, MLX stays loaded):
|
|
59
|
-
dev
|
|
60
|
-
dev
|
|
61
|
-
dev
|
|
62
|
-
dev ui-watch Next.js hot-reload dev server (foreground) ← main UI loop
|
|
59
|
+
dev Backing services up (bg) + UI dev server in foreground (hot reload)
|
|
60
|
+
dev ui UI dev server only — hot reload, foreground (Ctrl-C to stop)
|
|
61
|
+
dev daemon Rebuild Rust + restart the daemon (bg) ← backend loop (2nd terminal)
|
|
63
62
|
dev mlx Restart only the MLX server (reloads the model)
|
|
64
63
|
dev screenpipe Restart only screenpipe
|
|
65
|
-
dev build
|
|
64
|
+
dev build Production build of daemon + UI (verify the shipped build; no run)
|
|
66
65
|
EOF
|
|
67
66
|
fi
|
|
68
67
|
}
|
|
@@ -389,13 +388,26 @@ cmd_daemon_passthrough() {
|
|
|
389
388
|
# ~/.meridian/app) has no source, so these are hidden/disabled there.
|
|
390
389
|
_is_source_checkout() { [[ -f "${REPO_ROOT}/Cargo.toml" ]]; }
|
|
391
390
|
|
|
392
|
-
#
|
|
393
|
-
|
|
391
|
+
# Bring a service up-to-date: ensure it's loaded (enable + bootstrap), then
|
|
392
|
+
# (re)start it so a fresh build is picked up. Works whether it was stopped,
|
|
393
|
+
# booted out, or already running — the same sequence cmd_start uses.
|
|
394
|
+
_dev_up() {
|
|
394
395
|
local label="$1"
|
|
395
|
-
|
|
396
|
-
|
|
396
|
+
local plist="${LAUNCH_AGENTS}/${label}.plist"
|
|
397
|
+
if [[ ! -f "$plist" ]]; then
|
|
398
|
+
warn "${label} not installed — run ./install.sh"
|
|
399
|
+
return 0
|
|
400
|
+
fi
|
|
401
|
+
set +e
|
|
402
|
+
launchctl enable "${GUI_TARGET}/${label}" 2>/dev/null
|
|
403
|
+
launchctl bootstrap "${GUI_TARGET}" "$plist" 2>/dev/null
|
|
404
|
+
launchctl kickstart -k "${GUI_TARGET}/${label}" 2>/dev/null
|
|
405
|
+
local rc=$?
|
|
406
|
+
set -e
|
|
407
|
+
if [[ $rc -eq 0 ]]; then
|
|
408
|
+
ok "(re)started ${label}"
|
|
397
409
|
else
|
|
398
|
-
warn "${label}
|
|
410
|
+
warn "${label} failed to start — check: meridian logs ${label#com.meridiona.}"
|
|
399
411
|
fi
|
|
400
412
|
}
|
|
401
413
|
|
|
@@ -405,20 +417,59 @@ _dev_ensure() {
|
|
|
405
417
|
local label="$1"
|
|
406
418
|
if launchctl print "${GUI_TARGET}/${label}" >/dev/null 2>&1; then
|
|
407
419
|
ok "${label} already up (left as-is)"
|
|
408
|
-
elif [[ -f "${LAUNCH_AGENTS}/${label}.plist" ]]; then
|
|
409
|
-
set +e
|
|
410
|
-
launchctl enable "${GUI_TARGET}/${label}" 2>/dev/null
|
|
411
|
-
launchctl bootstrap "${GUI_TARGET}" "${LAUNCH_AGENTS}/${label}.plist" 2>/dev/null
|
|
412
|
-
set -e
|
|
413
|
-
info "started ${label}"
|
|
414
420
|
else
|
|
415
|
-
|
|
421
|
+
_dev_up "$label"
|
|
416
422
|
fi
|
|
417
423
|
}
|
|
418
424
|
|
|
425
|
+
# The daemon hard-exits if the MLX server isn't reachable, so wait for /health
|
|
426
|
+
# before (re)starting it. Returns immediately if MLX is already serving.
|
|
427
|
+
_dev_wait_mlx() {
|
|
428
|
+
local port="${MLX_SERVER_PORT:-7823}" w=0
|
|
429
|
+
info "waiting for MLX server (port ${port}) to answer…"
|
|
430
|
+
until curl -sf "http://127.0.0.1:${port}/health" >/dev/null 2>&1; do
|
|
431
|
+
sleep 2; w=$((w+2))
|
|
432
|
+
if [[ $w -ge 120 ]]; then
|
|
433
|
+
warn "MLX not ready after 120s — daemon will retry on its own (KeepAlive)"
|
|
434
|
+
return 0
|
|
435
|
+
fi
|
|
436
|
+
done
|
|
437
|
+
ok "MLX ready (${w}s)"
|
|
438
|
+
}
|
|
439
|
+
|
|
419
440
|
_dev_build_daemon() { info "building daemon (cargo --release)…"; ( cd "${REPO_ROOT}" && cargo build --release ); }
|
|
420
441
|
_dev_build_ui() { info "building UI (npm run build)…"; ( cd "${REPO_ROOT}/ui" && npm run build ); }
|
|
421
442
|
|
|
443
|
+
# Stop the launchd (production) dashboard so `next dev` can bind its port.
|
|
444
|
+
# Disable too, so KeepAlive doesn't race to relaunch the prod server.
|
|
445
|
+
_dev_stop_prod_ui() {
|
|
446
|
+
if launchctl print "${GUI_TARGET}/${LABEL_UI}" >/dev/null 2>&1; then
|
|
447
|
+
set +e
|
|
448
|
+
launchctl disable "${GUI_TARGET}/${LABEL_UI}" 2>/dev/null
|
|
449
|
+
launchctl bootout "${GUI_TARGET}/${LABEL_UI}" 2>/dev/null
|
|
450
|
+
set -e
|
|
451
|
+
info "stopped launchd dashboard (freeing the port for the dev server)"
|
|
452
|
+
fi
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
# Run the Next.js dev server in the FOREGROUND (hot reload). Replaces this shell
|
|
456
|
+
# (exec), so Ctrl-C stops just the UI server — backing services keep running.
|
|
457
|
+
# Re-enable the prod dashboard later with `meridian start`.
|
|
458
|
+
_dev_ui_server() {
|
|
459
|
+
local port="${MERIDIAN_UI_PORT:-3939}"
|
|
460
|
+
_dev_stop_prod_ui
|
|
461
|
+
echo
|
|
462
|
+
info "UI dev server (hot reload) → http://localhost:${port} · Ctrl-C to stop"
|
|
463
|
+
info "edit-and-save reflects instantly; backing services keep running in the background"
|
|
464
|
+
echo
|
|
465
|
+
cd "${REPO_ROOT}/ui" || { err "ui/ not found at ${REPO_ROOT}/ui"; exit 1; }
|
|
466
|
+
if [[ -x ./node_modules/.bin/next ]]; then
|
|
467
|
+
exec ./node_modules/.bin/next dev --turbopack -p "${port}"
|
|
468
|
+
else
|
|
469
|
+
warn "next not found — run 'cd ui && npm install' first"; exec npm run dev
|
|
470
|
+
fi
|
|
471
|
+
}
|
|
472
|
+
|
|
422
473
|
cmd_dev() {
|
|
423
474
|
if ! _is_source_checkout; then
|
|
424
475
|
err "'meridian dev' needs a source checkout (no Cargo.toml at ${REPO_ROOT})."
|
|
@@ -428,24 +479,24 @@ cmd_dev() {
|
|
|
428
479
|
local target="${1:-all}"
|
|
429
480
|
case "$target" in
|
|
430
481
|
all)
|
|
431
|
-
#
|
|
432
|
-
#
|
|
433
|
-
|
|
482
|
+
# Dev session: backing services in the background (start screenpipe/
|
|
483
|
+
# MLX only if down — don't reload a live model — rebuild & restart the
|
|
484
|
+
# daemon), then the UI dev server in the FOREGROUND (hot reload). Wait
|
|
485
|
+
# for MLX before the daemon (it hard-exits if MLX is unreachable).
|
|
486
|
+
_dev_build_daemon
|
|
434
487
|
_dev_ensure "${LABEL_SCREENPIPE}"
|
|
435
488
|
_dev_ensure "${LABEL_MLX}"
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
cmd_status
|
|
489
|
+
_dev_wait_mlx
|
|
490
|
+
_dev_up "${LABEL_DAEMON}"
|
|
491
|
+
_dev_ui_server # foreground (exec) — runs until Ctrl-C
|
|
440
492
|
;;
|
|
441
|
-
|
|
442
|
-
daemon) _dev_build_daemon;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
screenpipe) _dev_kick "${LABEL_SCREENPIPE}" ;;
|
|
493
|
+
ui) _dev_ui_server ;; # UI dev server only (foreground, hot reload)
|
|
494
|
+
daemon) _dev_build_daemon; _dev_wait_mlx; _dev_up "${LABEL_DAEMON}" ;;
|
|
495
|
+
mlx) _dev_up "${LABEL_MLX}" ;; # python — restart reloads the model
|
|
496
|
+
screenpipe) _dev_up "${LABEL_SCREENPIPE}" ;;
|
|
497
|
+
build) _dev_build_daemon; _dev_build_ui; ok "built production bundles (no run)" ;;
|
|
447
498
|
*) err "unknown dev target: ${target}";
|
|
448
|
-
echo " targets: all |
|
|
499
|
+
echo " targets: all | ui | daemon | mlx | screenpipe | build"; exit 1 ;;
|
|
449
500
|
esac
|
|
450
501
|
}
|
|
451
502
|
|
package/services/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "meridian-agents"
|
|
7
|
-
version = "1.4.
|
|
7
|
+
version = "1.4.1"
|
|
8
8
|
description = "Meridian agents — hermes task linking and Jira progress updates for meridian.db"
|
|
9
9
|
requires-python = ">=3.11"
|
|
10
10
|
authors = [{ name = "Meridiona" }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29987,e=>{"use strict";var t=e.i(80663),n=e.i(56916);let s={Antigravity:{mono:"Aᴳ",color:"#7C3AED"},"Google Chrome":{mono:"Ch",color:"#3B82F6"},Terminal:{mono:">_",color:"#111827"},DBeaver:{mono:"DB",color:"#1D4ED8"},Claude:{mono:"Cl",color:"#D97757"},Slack:{mono:"Sl",color:"#E01E5A"},Zoom:{mono:"Zm",color:"#2D8CFF"},Linear:{mono:"Li",color:"#5E6AD2"},Figma:{mono:"Fg",color:"#A259FF"},Notion:{mono:"No",color:"#111111"},Spotify:{mono:"Sp",color:"#1DB954"},Mail:{mono:"Ma",color:"#0EA5E9"},Safari:{mono:"Sf",color:"#006FE5"},Xcode:{mono:"Xc",color:"#1171A3"},iTerm2:{mono:">_",color:"#2A2A2A"}},r={todo:{label:"Todo",dot:"var(--ink-4)"},in_progress:{label:"In progress",dot:"var(--accent)"},in_review:{label:"In review",dot:"#8B5CF6"},done:{label:"Done",dot:"var(--success)"}};e.s(["AppGlyph",0,function({app:e,size:n=24,withName:r=!1}){let a=function(e){if(!e)return{mono:"??",color:"#6B6A67"};if(s[e])return s[e];let t=e.trim().replace(/[^A-Za-z0-9]/g,"").slice(0,2).toUpperCase()||"??",n=0;for(let t=0;t<e.length;t++)n=31*n+e.charCodeAt(t)&65535;let r=n%360;return{mono:t,color:`hsl(${r}, 55%, 42%)`}}(e);return(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"inline-flex items-center justify-center rounded-md font-mono shrink-0",style:{width:n,height:n,background:a.color+"1A",color:a.color,fontSize:Math.max(9,.42*n),fontWeight:600,letterSpacing:"-0.02em"},"aria-label":e??void 0,children:a.mono}),r&&(0,t.jsx)("span",{className:"text-sm",style:{color:"var(--ink)"},children:e})]})},"CATS",0,{coding:{label:"Coding",short:"Code"},code_review:{label:"Code review",short:"Review"},meeting:{label:"Meeting",short:"Meet"},communication:{label:"Comms",short:"Comms"},design:{label:"Design",short:"Design"},documentation:{label:"Docs",short:"Docs"},planning:{label:"Planning",short:"Plan"},deployment_devops:{label:"DevOps",short:"DevOps"},research:{label:"Research",short:"Res"},idle_personal:{label:"Idle",short:"Idle"}},"Card",0,function({children:e,className:n="",as:s="div",style:r,...a}){return(0,t.jsx)(s,{...a,className:`rounded-xl border ${n}`,style:{background:"var(--surface)",borderColor:"var(--rule)",...r},children:e})},"CatDot",0,function({cat:e,size:n=6}){return(0,t.jsx)("span",{className:`inline-block rounded-full cat-${e} shrink-0`,style:{width:n,height:n},"aria-hidden":!0})},"ConfidenceRing",0,function({value:e,size:n=14}){let s=n/2-1.5,r=2*Math.PI*s,a=r*Math.max(0,Math.min(1,e));return(0,t.jsxs)("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-label":`${Math.round(100*e)}% confidence`,children:[(0,t.jsx)("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:"var(--rule-2)",strokeWidth:"1.5"}),(0,t.jsx)("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:e>.8?"var(--success)":e>.5?"var(--accent)":"var(--warn)",strokeWidth:"1.5",strokeLinecap:"round",strokeDasharray:`${a} ${r}`,transform:`rotate(-90 ${n/2} ${n/2})`})]})},"LiveDot",0,function({size:e=8}){return(0,t.jsxs)("span",{className:"inline-flex items-center justify-center relative",style:{width:e,height:e},children:[(0,t.jsx)("span",{className:"absolute inline-block rounded-full live-dot",style:{width:e,height:e,background:"var(--live)"}}),(0,t.jsx)("span",{className:"inline-block rounded-full",style:{width:Math.max(3,e-4),height:Math.max(3,e-4),background:"var(--live)"}})]})},"SectionHead",0,function({kicker:e,title:n,right:s}){return(0,t.jsxs)("div",{className:"flex items-end justify-between mb-3",children:[(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-[0.16em] mb-1.5",style:{color:"var(--ink-3)"},children:e}),(0,t.jsx)("h2",{className:"text-[15px] font-medium",style:{color:"var(--ink)"},children:n})]}),s]})},"SegBar",0,function({segments:e,height:n=4}){let s=e.reduce((e,t)=>e+t.value,0)||1;return(0,t.jsx)("span",{className:"inline-flex w-full overflow-hidden rounded-full",style:{height:n,background:"var(--rule)"},children:e.map((e,n)=>(0,t.jsx)("span",{className:e.cat?`cat-${e.cat}`:"",style:{width:`${e.value/s*100}%`,background:e.color??void 0}},n))})},"StatusPill",0,function({status:e}){let n=r[e]??r.todo;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[11px]",style:{color:"var(--ink-2)"},children:[(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:n.dot}}),n.label]})},"TaskKey",0,function({keyId:e,big:n=!1}){return e?(0,t.jsx)("span",{className:`font-mono tracking-tight ${n?"text-[12px]":"text-[11px]"} px-1.5 py-px rounded-[4px] tnum`,style:{color:"var(--ink)",background:"var(--tint)",borderBottom:"1px solid var(--rule-2)"},children:e}):null},"fmtClock",0,function(e){if("number"==typeof e){let t=Math.floor(e),n=Math.round((e-t)*60);return`${(t+11)%12+1}:${String(n).padStart(2,"0")} ${t>=12?"PM":"AM"}`}let t=new Date(e),n=t.getHours(),s=t.getMinutes();return`${(n+11)%12+1}:${String(s).padStart(2,"0")} ${n>=12?"PM":"AM"}`},"fmtDur",0,function(e){if(e<60)return`${e}s`;let t=Math.floor(e/60);if(t<60)return`${t}m`;let n=Math.floor(t/60),s=t%60;return s>0?`${n}h ${s}m`:`${n}h`},"fmtDurDecimal",0,function(e){if(e<60)return"0:"+String(e).padStart(2,"0");let t=Math.floor(e/60);if(t<60)return"0:"+String(t).padStart(2,"0");let n=Math.floor(t/60);return`${n}:${String(t%60).padStart(2,"0")}`},"useTick",0,function(e=1){let[t,s]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let t=setInterval(()=>s(e=>e+1),1e3*e);return()=>clearInterval(t)},[e]),t}])},953,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let s=e.r(45158);function r({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},79372,(e,t,n)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return s}})},70492,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return i}});let s=e.r(80663),r=e.r(44939),a=e.r(32316),l=e.r(79372),o=e.r(54389);function i({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;n.push(...e)}}if(0===n.length)return null;let c=(0,o.getAssetTokenQuery)();return(0,s.jsx)(s.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,r.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},7395,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return c}});let s=e.r(80663),r=e.r(56916),a=e.r(953),l=e.r(70492);function o(e){return{default:e&&"default"in e?e.default:e}}let i={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},c=function(e){let t={...i,...e},n=(0,r.lazy)(()=>t.loader().then(o)),c=t.loading;function d(e){let o=c?(0,s.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,i=!t.ssr||!!t.loading,d=i?r.Suspense:r.Fragment,u=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(n,{...e})]}):(0,s.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(n,{...e})});return(0,s.jsx)(d,{...i?{fallback:o}:{},children:u})}return d.displayName="LoadableComponent",d}},2831,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}});let s=e.r(46921)._(e.r(7395));function r(e,t){let n={};"function"==typeof e&&(n.loader=e);let r={...n,...t};return(0,s.default)({...r,modules:r.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},82010,e=>{"use strict";var t=e.i(80663),n=e.i(56916),s=e.i(2831),r=e.i(29987);function a({info:e,onClick:n}){let s=(0,r.useTick)(1),l=e.elapsed_s+s;return(0,t.jsxs)("button",{onClick:n,className:"m-3 p-3 rounded-lg text-left transition-colors",style:{background:"var(--surface)",border:"1px solid var(--rule)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.LiveDot,{size:8}),(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-[0.16em]",style:{color:"var(--ink-3)"},children:"Now"}),(0,t.jsx)("span",{className:"ml-auto font-mono tnum text-[11px]",style:{color:"var(--ink-2)"},children:(0,r.fmtDurDecimal)(l)})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,t.jsx)(r.AppGlyph,{app:e.app_name,size:18}),(0,t.jsx)("span",{className:"text-[12px] truncate",style:{color:"var(--ink)"},children:e.app_name})]})]})}function l({view:e,onNavigate:s,onOpenCmd:r,queueCount:o}){let[i,c]=(0,n.useState)(null);return(0,n.useEffect)(()=>{function e(){fetch("/api/active").then(e=>e.json()).then(e=>c(e)).catch(()=>{})}e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]),(0,t.jsxs)("aside",{className:"w-[240px] shrink-0 sticky top-0 self-start h-screen flex flex-col rule-r",style:{borderRightColor:"var(--rule)",background:"var(--paper)"},children:[(0,t.jsxs)("div",{className:"px-6 py-7",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"inline-block w-2.5 h-2.5 rounded-full live-dot",style:{background:"var(--accent)"}}),(0,t.jsx)("span",{className:"font-serif italic text-[22px] leading-none tracking-tight",style:{color:"var(--ink)"},children:"meridian"})]}),(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-[0.2em] mt-2",style:{color:"var(--ink-3)"},children:"local · v0.3"})]}),(0,t.jsxs)("nav",{className:"flex-1 px-3",children:[[{id:"today",label:"Today",kbd:"1"},{id:"tasks",label:"Tasks",kbd:"2"},{id:"queue",label:"Queue",kbd:"3",badge:o||void 0},{id:"worklogs",label:"Worklogs",kbd:"4"},{id:"sessions",label:"Sessions",kbd:"5"},{id:"week",label:"Week",kbd:"6"}].map(n=>{let r=e===n.id;return(0,t.jsxs)("button",{onClick:()=>s(n.id),className:"w-full flex items-center gap-3 px-3 py-2 rounded-md text-left transition-colors mb-px",style:{background:r?"var(--surface-2)":"transparent",color:r?"var(--ink)":"var(--ink-2)"},children:[(0,t.jsx)("span",{className:"text-[13px] flex-1",children:n.label}),null!=n.badge&&(0,t.jsx)("span",{className:"text-[10px] font-mono tnum px-1.5 py-0.5 rounded",style:{background:"var(--accent)",color:"var(--paper)"},children:n.badge}),(0,t.jsx)("span",{className:"kbd",children:n.kbd})]},n.id)}),(0,t.jsxs)("button",{onClick:r,className:"w-full flex items-center gap-3 px-3 py-2 rounded-md text-left mt-4",style:{color:"var(--ink-3)"},children:[(0,t.jsx)("span",{className:"text-[13px] flex-1",children:"Quick switch"}),(0,t.jsx)("span",{className:"kbd",children:"⌘"}),(0,t.jsx)("span",{className:"kbd",children:"K"})]})]}),(0,t.jsx)("div",{className:"px-3 pb-4",children:(0,t.jsxs)("button",{onClick:()=>s("settings"),className:"w-full flex items-center gap-3 px-3 py-2 rounded-md text-left transition-colors",style:{background:"settings"===e?"var(--surface-2)":"transparent",color:"settings"===e?"var(--ink)":"var(--ink-3)"},children:[(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"2.5"}),(0,t.jsx)("path",{d:"M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3.05 3.05l1.06 1.06M11.89 11.89l1.06 1.06M3.05 12.95l1.06-1.06M11.89 4.11l1.06-1.06"})]}),(0,t.jsx)("span",{className:"text-[13px]",children:"Settings"}),(0,t.jsx)("span",{className:"kbd ml-auto",children:"7"})]})}),i&&(0,t.jsx)(a,{info:i,onClick:()=>s("today")})]})}function o({onClose:e,onNavigate:s}){let[a,l]=(0,n.useState)(""),i=(0,n.useRef)(null);(0,n.useEffect)(()=>{i.current?.focus()},[]);let c=[{kind:"view",label:"Go to Today",v:"today"},{kind:"view",label:"Go to Tasks",v:"tasks"},{kind:"view",label:"Go to Review queue",v:"queue"},{kind:"view",label:"Go to Worklogs",v:"worklogs"},{kind:"view",label:"Go to Sessions",v:"sessions"},{kind:"view",label:"Go to Week",v:"week"}].filter(e=>!a||e.label.toLowerCase().includes(a.toLowerCase())).slice(0,8);return(0,t.jsx)("div",{onClick:e,className:"fixed inset-0 z-50 flex items-start justify-center pt-[18vh]",style:{background:"rgba(15,15,15,0.45)",backdropFilter:"blur(4px)"},children:(0,t.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"w-[560px] max-w-[92vw] rounded-xl overflow-hidden rise",style:{background:"var(--surface)",border:"1px solid var(--rule-2)",boxShadow:"0 24px 80px rgba(0,0,0,0.18)"},children:[(0,t.jsx)("input",{ref:i,value:a,onChange:e=>l(e.target.value),onKeyDown:t=>{"Escape"===t.key&&e(),"Enter"===t.key&&c[0]&&s(c[0].v,c[0].key)},placeholder:"Jump to view or task…",className:"w-full px-5 py-4 text-[14px] font-sans",style:{background:"transparent",color:"var(--ink)",border:"none",outline:"none",borderBottom:"1px solid var(--rule)"}}),(0,t.jsxs)("div",{className:"max-h-[40vh] overflow-y-auto nice-scroll",children:[0===c.length&&(0,t.jsx)("p",{className:"p-6 text-center text-[12px]",style:{color:"var(--ink-3)"},children:"No matches."}),c.map((e,n)=>(0,t.jsxs)("button",{onClick:()=>s(e.v,e.key),className:"w-full text-left px-5 py-2.5 flex items-center gap-3 transition-colors hover:opacity-80",style:{background:0===n?"var(--surface-2)":"transparent"},children:["task"===e.kind&&(0,t.jsx)(r.TaskKey,{keyId:e.key}),(0,t.jsx)("span",{className:"text-[13px]",style:{color:"var(--ink)"},children:e.label}),"task"===e.kind&&e.status&&(0,t.jsx)("span",{className:"ml-auto",children:(0,t.jsx)(r.StatusPill,{status:e.status})})]},n))]}),(0,t.jsxs)("div",{className:"px-5 py-2.5 rule-t flex items-center justify-between text-[10px]",style:{borderTopColor:"var(--rule)",color:"var(--ink-4)"},children:[(0,t.jsx)("span",{children:"Local search · no network"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"kbd",children:"↵"})," open · ",(0,t.jsx)("span",{className:"kbd",children:"esc"})," close"]})]})]})})}var i=e.i(38297);function c(){let{dark:e,setDark:s,accent:r,setAccent:a,density:l,setDensity:o,tone:c,setTone:d}=(0,i.useTheme)(),[u,x]=(0,n.useState)(!1),p=(0,n.useRef)(null),m=(0,n.useRef)({x:16,y:16});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>x(e=>!e),className:"fixed right-4 bottom-4 z-40 w-9 h-9 rounded-full flex items-center justify-center text-[13px]",style:{background:"var(--surface)",border:"1px solid var(--rule-2)",color:"var(--ink-3)",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},"aria-label":"Open theme settings",children:"◐"}),u&&(0,t.jsxs)("div",{ref:p,className:"fixed z-50 w-[280px] rounded-[14px] overflow-hidden flex flex-col",style:{right:m.current.x,bottom:m.current.y,background:e?"rgba(20,20,19,0.92)":"rgba(250,249,247,0.92)",border:`.5px solid ${e?"rgba(255,255,255,0.08)":"rgba(255,255,255,0.6)"}`,backdropFilter:"blur(24px) saturate(160%)",boxShadow:"0 12px 40px rgba(0,0,0,0.18)",color:e?"#F4F1EB":"#29261b"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 cursor-move select-none",onMouseDown:function(e){let t=p.current;if(!t)return;let n=t.getBoundingClientRect(),s=e.clientX,r=e.clientY,a=window.innerWidth-n.right,l=window.innerHeight-n.bottom,o=e=>{m.current={x:a-(e.clientX-s),y:l-(e.clientY-r)},function(){let e=p.current;if(!e)return;let t=e.offsetWidth,n=e.offsetHeight,s=Math.max(16,window.innerWidth-t-16),r=Math.max(16,window.innerHeight-n-16);m.current={x:Math.min(s,Math.max(16,m.current.x)),y:Math.min(r,Math.max(16,m.current.y))},e.style.right=m.current.x+"px",e.style.bottom=m.current.y+"px"}()},i=()=>{window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",i)};window.addEventListener("mousemove",o),window.addEventListener("mouseup",i)},style:{borderBottom:`1px solid ${e?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)"}`},children:[(0,t.jsx)("span",{className:"text-[12px] font-semibold tracking-[0.01em]",children:"Settings"}),(0,t.jsx)("button",{onClick:()=>x(!1),onMouseDown:e=>e.stopPropagation(),className:"w-[22px] h-[22px] flex items-center justify-center rounded-md text-[13px]",style:{color:e?"rgba(244,241,235,0.5)":"rgba(41,38,27,0.5)",background:"transparent"},children:"✕"})]}),(0,t.jsxs)("div",{className:"p-4 space-y-4",children:[(0,t.jsx)("p",{className:"text-[10px] font-semibold tracking-[0.06em] uppercase",style:{color:e?"rgba(244,241,235,0.4)":"rgba(41,38,27,0.4)"},children:"Appearance"}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Dark mode"}),(0,t.jsx)("button",{onClick:()=>s(!e),role:"switch","aria-checked":e,className:"relative w-8 h-[18px] rounded-full border-0 p-0 transition-colors",style:{background:e?"#34c759":"rgba(0,0,0,0.15)"},children:(0,t.jsx)("span",{className:"absolute top-[2px] w-[14px] h-[14px] rounded-full transition-transform",style:{left:2,background:"#fff",boxShadow:"0 1px 2px rgba(0,0,0,0.25)",transform:e?"translateX(14px)":"translateX(0)"}})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Accent color"}),(0,t.jsx)("div",{className:"flex gap-1.5",children:i.ACCENT_PRESETS.map(e=>{let n;return(0,t.jsx)("button",{onClick:()=>a(e),className:"flex-1 h-[46px] rounded-md transition-transform",style:{background:e,boxShadow:r===e?"0 0 0 1.5px rgba(0,0,0,0.85), 0 2px 6px rgba(0,0,0,0.15)":"0 0 0 .5px rgba(0,0,0,0.12)"},"aria-label":`Accent ${e}`,children:r===e&&(0,t.jsx)("svg",{viewBox:"0 0 14 14",className:"mx-auto",width:13,height:13,children:(0,t.jsx)("path",{d:"M3 7.2 5.8 10 11 4.2",fill:"none",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",stroke:Number.isNaN(n=parseInt(e.replace("#","").padEnd(6,"0").slice(0,6),16))||299*(n>>16&255)+587*(n>>8&255)+114*(255&n)>148e3?"rgba(0,0,0,.78)":"#fff"})})},e)})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Density"}),(0,t.jsx)("div",{className:"flex rounded-lg overflow-hidden",style:{background:"rgba(0,0,0,0.06)",padding:2,gap:0},children:["compact","regular","comfy"].map(n=>(0,t.jsx)("button",{onClick:()=>o(n),className:"flex-1 py-1 text-[11px] font-medium rounded-md transition-colors capitalize",style:{background:l===n?e?"rgba(255,255,255,0.1)":"rgba(255,255,255,0.9)":"transparent",boxShadow:l===n?"0 1px 2px rgba(0,0,0,0.12)":"none"},children:n},n))})]}),(0,t.jsx)("p",{className:"text-[10px] font-semibold tracking-[0.06em] uppercase pt-2",style:{color:e?"rgba(244,241,235,0.4)":"rgba(41,38,27,0.4)"},children:"Narrative"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Story tone"}),(0,t.jsx)("div",{className:"flex rounded-lg overflow-hidden",style:{background:"rgba(0,0,0,0.06)",padding:2},children:["terse","detailed"].map(n=>(0,t.jsx)("button",{onClick:()=>d(n),className:"flex-1 py-1 text-[11px] font-medium rounded-md transition-colors capitalize",style:{background:c===n?e?"rgba(255,255,255,0.1)":"rgba(255,255,255,0.9)":"transparent",boxShadow:c===n?"0 1px 2px rgba(0,0,0,0.12)":"none"},children:n},n))})]})]})]})]})}let d=(0,s.default)(()=>e.A(82582),{loadableGenerated:{modules:[65906]},ssr:!1}),u=(0,s.default)(()=>e.A(44993),{loadableGenerated:{modules:[63017]},ssr:!1}),x=(0,s.default)(()=>e.A(70744),{loadableGenerated:{modules:[20710]},ssr:!1}),p=(0,s.default)(()=>e.A(31857),{loadableGenerated:{modules:[75042]},ssr:!1}),m=(0,s.default)(()=>e.A(29519),{loadableGenerated:{modules:[37653]},ssr:!1}),f=(0,s.default)(()=>e.A(16457),{loadableGenerated:{modules:[27246]},ssr:!1}),h=(0,s.default)(()=>e.A(58835),{loadableGenerated:{modules:[49661]},ssr:!1});e.s(["default",0,function(){let[e,s]=(0,n.useState)("today"),[r,a]=(0,n.useState)(null),[i,b]=(0,n.useState)(!1),[g,k]=(0,n.useState)(0),v=(0,n.useCallback)((e,t)=>{s(e),a(t??null),window.scrollTo({top:0,behavior:"instant"})},[]);(0,n.useEffect)(()=>{fetch("/api/queue-review").then(e=>e.json()).then(e=>k(e.items?.length??0)).catch(()=>{})},[]),(0,n.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()){e.preventDefault(),b(e=>!e);return}if("Escape"===e.key)return void b(!1);if(i||e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target;"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&("1"===e.key?v("today"):"2"===e.key?v("tasks"):"3"===e.key?v("queue"):"4"===e.key?v("worklogs"):"5"===e.key?v("sessions"):"6"===e.key?v("week"):"7"===e.key&&v("settings"))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[i,v]);let y=new Date().toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"});return(0,t.jsxs)("div",{className:"min-h-screen flex",style:{background:"var(--paper)"},children:[(0,t.jsx)(l,{view:e,onNavigate:v,onOpenCmd:()=>b(!0),queueCount:g}),(0,t.jsx)("main",{className:"flex-1 min-w-0","data-screen-label":e,children:(0,t.jsxs)("div",{className:"max-w-[1080px] mx-auto px-10 py-14",children:["today"===e&&(0,t.jsx)(d,{onNavigate:(e,t)=>v(e,t)}),"tasks"===e&&(0,t.jsx)(u,{focusKey:r}),"queue"===e&&(0,t.jsx)(x,{}),"worklogs"===e&&(0,t.jsx)(p,{}),"sessions"===e&&(0,t.jsx)(m,{}),"week"===e&&(0,t.jsx)(f,{}),"settings"===e&&(0,t.jsx)(h,{}),(0,t.jsxs)("footer",{className:"mt-24 pt-8 rule-t flex items-center justify-between text-[11px]",style:{borderTopColor:"var(--rule)",color:"var(--ink-4)"},children:[(0,t.jsxs)("span",{children:["Meridian · local · ",y]}),(0,t.jsxs)("span",{className:"font-mono tnum",children:[(0,t.jsx)("span",{className:"kbd",children:"⌘"})," ",(0,t.jsx)("span",{className:"kbd",children:"K"})," to jump · ",(0,t.jsx)("span",{className:"kbd",children:"1"}),"–",(0,t.jsx)("span",{className:"kbd",children:"7"})," to switch view"]})]})]})}),i&&(0,t.jsx)(o,{onClose:()=>b(!1),onNavigate:(e,t)=>{v(e,t),b(!1)}}),(0,t.jsx)(c,{})]})}],82010)},82582,e=>{e.v(t=>Promise.all(["static/chunks/0t0n-_np5foyi.js"].map(t=>e.l(t))).then(()=>t(65906)))},44993,e=>{e.v(t=>Promise.all(["static/chunks/0ihy5u7wenwg0.js"].map(t=>e.l(t))).then(()=>t(63017)))},70744,e=>{e.v(t=>Promise.all(["static/chunks/0baqm_s2-t13s.js"].map(t=>e.l(t))).then(()=>t(20710)))},31857,e=>{e.v(t=>Promise.all(["static/chunks/0z1g1xyfa206c.js"].map(t=>e.l(t))).then(()=>t(75042)))},29519,e=>{e.v(t=>Promise.all(["static/chunks/0ifolh1b1knby.js"].map(t=>e.l(t))).then(()=>t(37653)))},16457,e=>{e.v(t=>Promise.all(["static/chunks/0s.zkfto8hpca.js"].map(t=>e.l(t))).then(()=>t(27246)))},58835,e=>{e.v(t=>Promise.all(["static/chunks/0034g-77v57su.js","static/chunks/0_g6ngacmh2ur.js"].map(t=>e.l(t))).then(()=>t(49661)))}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29987,e=>{"use strict";var t=e.i(80663),n=e.i(56916);let s={Antigravity:{mono:"Aᴳ",color:"#7C3AED"},"Google Chrome":{mono:"Ch",color:"#3B82F6"},Terminal:{mono:">_",color:"#111827"},DBeaver:{mono:"DB",color:"#1D4ED8"},Claude:{mono:"Cl",color:"#D97757"},Slack:{mono:"Sl",color:"#E01E5A"},Zoom:{mono:"Zm",color:"#2D8CFF"},Linear:{mono:"Li",color:"#5E6AD2"},Figma:{mono:"Fg",color:"#A259FF"},Notion:{mono:"No",color:"#111111"},Spotify:{mono:"Sp",color:"#1DB954"},Mail:{mono:"Ma",color:"#0EA5E9"},Safari:{mono:"Sf",color:"#006FE5"},Xcode:{mono:"Xc",color:"#1171A3"},iTerm2:{mono:">_",color:"#2A2A2A"}},r={todo:{label:"Todo",dot:"var(--ink-4)"},in_progress:{label:"In progress",dot:"var(--accent)"},in_review:{label:"In review",dot:"#8B5CF6"},done:{label:"Done",dot:"var(--success)"}};e.s(["AppGlyph",0,function({app:e,size:n=24,withName:r=!1}){let a=function(e){if(!e)return{mono:"??",color:"#6B6A67"};if(s[e])return s[e];let t=e.trim().replace(/[^A-Za-z0-9]/g,"").slice(0,2).toUpperCase()||"??",n=0;for(let t=0;t<e.length;t++)n=31*n+e.charCodeAt(t)&65535;let r=n%360;return{mono:t,color:`hsl(${r}, 55%, 42%)`}}(e);return(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"inline-flex items-center justify-center rounded-md font-mono shrink-0",style:{width:n,height:n,background:a.color+"1A",color:a.color,fontSize:Math.max(9,.42*n),fontWeight:600,letterSpacing:"-0.02em"},"aria-label":e??void 0,children:a.mono}),r&&(0,t.jsx)("span",{className:"text-sm",style:{color:"var(--ink)"},children:e})]})},"CATS",0,{coding:{label:"Coding",short:"Code"},code_review:{label:"Code review",short:"Review"},meeting:{label:"Meeting",short:"Meet"},communication:{label:"Comms",short:"Comms"},design:{label:"Design",short:"Design"},documentation:{label:"Docs",short:"Docs"},planning:{label:"Planning",short:"Plan"},deployment_devops:{label:"DevOps",short:"DevOps"},research:{label:"Research",short:"Res"},idle_personal:{label:"Idle",short:"Idle"}},"Card",0,function({children:e,className:n="",as:s="div",style:r,...a}){return(0,t.jsx)(s,{...a,className:`rounded-xl border ${n}`,style:{background:"var(--surface)",borderColor:"var(--rule)",...r},children:e})},"CatDot",0,function({cat:e,size:n=6}){return(0,t.jsx)("span",{className:`inline-block rounded-full cat-${e} shrink-0`,style:{width:n,height:n},"aria-hidden":!0})},"ConfidenceRing",0,function({value:e,size:n=14}){let s=n/2-1.5,r=2*Math.PI*s,a=r*Math.max(0,Math.min(1,e));return(0,t.jsxs)("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-label":`${Math.round(100*e)}% confidence`,children:[(0,t.jsx)("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:"var(--rule-2)",strokeWidth:"1.5"}),(0,t.jsx)("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:e>.8?"var(--success)":e>.5?"var(--accent)":"var(--warn)",strokeWidth:"1.5",strokeLinecap:"round",strokeDasharray:`${a} ${r}`,transform:`rotate(-90 ${n/2} ${n/2})`})]})},"LiveDot",0,function({size:e=8}){return(0,t.jsxs)("span",{className:"inline-flex items-center justify-center relative",style:{width:e,height:e},children:[(0,t.jsx)("span",{className:"absolute inline-block rounded-full live-dot",style:{width:e,height:e,background:"var(--live)"}}),(0,t.jsx)("span",{className:"inline-block rounded-full",style:{width:Math.max(3,e-4),height:Math.max(3,e-4),background:"var(--live)"}})]})},"SectionHead",0,function({kicker:e,title:n,right:s}){return(0,t.jsxs)("div",{className:"flex items-end justify-between mb-3",children:[(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-[0.16em] mb-1.5",style:{color:"var(--ink-3)"},children:e}),(0,t.jsx)("h2",{className:"text-[15px] font-medium",style:{color:"var(--ink)"},children:n})]}),s]})},"SegBar",0,function({segments:e,height:n=4}){let s=e.reduce((e,t)=>e+t.value,0)||1;return(0,t.jsx)("span",{className:"inline-flex w-full overflow-hidden rounded-full",style:{height:n,background:"var(--rule)"},children:e.map((e,n)=>(0,t.jsx)("span",{className:e.cat?`cat-${e.cat}`:"",style:{width:`${e.value/s*100}%`,background:e.color??void 0}},n))})},"StatusPill",0,function({status:e}){let n=r[e]??r.todo;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[11px]",style:{color:"var(--ink-2)"},children:[(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:n.dot}}),n.label]})},"TaskKey",0,function({keyId:e,big:n=!1}){return e?(0,t.jsx)("span",{className:`font-mono tracking-tight ${n?"text-[12px]":"text-[11px]"} px-1.5 py-px rounded-[4px] tnum`,style:{color:"var(--ink)",background:"var(--tint)",borderBottom:"1px solid var(--rule-2)"},children:e}):null},"fmtClock",0,function(e){if("number"==typeof e){let t=Math.floor(e),n=Math.round((e-t)*60);return`${(t+11)%12+1}:${String(n).padStart(2,"0")} ${t>=12?"PM":"AM"}`}let t=new Date(e),n=t.getHours(),s=t.getMinutes();return`${(n+11)%12+1}:${String(s).padStart(2,"0")} ${n>=12?"PM":"AM"}`},"fmtDur",0,function(e){if(e<60)return`${e}s`;let t=Math.floor(e/60);if(t<60)return`${t}m`;let n=Math.floor(t/60),s=t%60;return s>0?`${n}h ${s}m`:`${n}h`},"fmtDurDecimal",0,function(e){if(e<60)return"0:"+String(e).padStart(2,"0");let t=Math.floor(e/60);if(t<60)return"0:"+String(t).padStart(2,"0");let n=Math.floor(t/60);return`${n}:${String(t%60).padStart(2,"0")}`},"useTick",0,function(e=1){let[t,s]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let t=setInterval(()=>s(e=>e+1),1e3*e);return()=>clearInterval(t)},[e]),t}])},953,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let s=e.r(45158);function r({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},79372,(e,t,n)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return s}})},70492,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return i}});let s=e.r(80663),r=e.r(44939),a=e.r(32316),l=e.r(79372),o=e.r(54389);function i({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;n.push(...e)}}if(0===n.length)return null;let c=(0,o.getAssetTokenQuery)();return(0,s.jsx)(s.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,r.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},7395,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return c}});let s=e.r(80663),r=e.r(56916),a=e.r(953),l=e.r(70492);function o(e){return{default:e&&"default"in e?e.default:e}}let i={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},c=function(e){let t={...i,...e},n=(0,r.lazy)(()=>t.loader().then(o)),c=t.loading;function d(e){let o=c?(0,s.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,i=!t.ssr||!!t.loading,d=i?r.Suspense:r.Fragment,u=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(n,{...e})]}):(0,s.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(n,{...e})});return(0,s.jsx)(d,{...i?{fallback:o}:{},children:u})}return d.displayName="LoadableComponent",d}},2831,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}});let s=e.r(46921)._(e.r(7395));function r(e,t){let n={};"function"==typeof e&&(n.loader=e);let r={...n,...t};return(0,s.default)({...r,modules:r.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},82010,e=>{"use strict";var t=e.i(80663),n=e.i(56916),s=e.i(2831),r=e.i(29987);function a({info:e,onClick:n}){let s=(0,r.useTick)(1),l=e.elapsed_s+s;return(0,t.jsxs)("button",{onClick:n,className:"m-3 p-3 rounded-lg text-left transition-colors",style:{background:"var(--surface)",border:"1px solid var(--rule)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.LiveDot,{size:8}),(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-[0.16em]",style:{color:"var(--ink-3)"},children:"Now"}),(0,t.jsx)("span",{className:"ml-auto font-mono tnum text-[11px]",style:{color:"var(--ink-2)"},children:(0,r.fmtDurDecimal)(l)})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,t.jsx)(r.AppGlyph,{app:e.app_name,size:18}),(0,t.jsx)("span",{className:"text-[12px] truncate",style:{color:"var(--ink)"},children:e.app_name})]})]})}function l({view:e,onNavigate:s,onOpenCmd:r,queueCount:o}){let[i,c]=(0,n.useState)(null);return(0,n.useEffect)(()=>{function e(){fetch("/api/active").then(e=>e.json()).then(e=>c(e)).catch(()=>{})}e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]),(0,t.jsxs)("aside",{className:"w-[240px] shrink-0 sticky top-0 self-start h-screen flex flex-col rule-r",style:{borderRightColor:"var(--rule)",background:"var(--paper)"},children:[(0,t.jsxs)("div",{className:"px-6 py-7",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"inline-block w-2.5 h-2.5 rounded-full live-dot",style:{background:"var(--accent)"}}),(0,t.jsx)("span",{className:"font-serif italic text-[22px] leading-none tracking-tight",style:{color:"var(--ink)"},children:"meridian"})]}),(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-[0.2em] mt-2",style:{color:"var(--ink-3)"},children:"local · v0.3"})]}),(0,t.jsxs)("nav",{className:"flex-1 px-3",children:[[{id:"today",label:"Today",kbd:"1"},{id:"tasks",label:"Tasks",kbd:"2"},{id:"queue",label:"Queue",kbd:"3",badge:o||void 0},{id:"worklogs",label:"Worklogs",kbd:"4"},{id:"sessions",label:"Sessions",kbd:"5"},{id:"week",label:"Week",kbd:"6"}].map(n=>{let r=e===n.id;return(0,t.jsxs)("button",{onClick:()=>s(n.id),className:"w-full flex items-center gap-3 px-3 py-2 rounded-md text-left transition-colors mb-px",style:{background:r?"var(--surface-2)":"transparent",color:r?"var(--ink)":"var(--ink-2)"},children:[(0,t.jsx)("span",{className:"text-[13px] flex-1",children:n.label}),null!=n.badge&&(0,t.jsx)("span",{className:"text-[10px] font-mono tnum px-1.5 py-0.5 rounded",style:{background:"var(--accent)",color:"var(--paper)"},children:n.badge}),(0,t.jsx)("span",{className:"kbd",children:n.kbd})]},n.id)}),(0,t.jsxs)("button",{onClick:r,className:"w-full flex items-center gap-3 px-3 py-2 rounded-md text-left mt-4",style:{color:"var(--ink-3)"},children:[(0,t.jsx)("span",{className:"text-[13px] flex-1",children:"Quick switch"}),(0,t.jsx)("span",{className:"kbd",children:"⌘"}),(0,t.jsx)("span",{className:"kbd",children:"K"})]})]}),(0,t.jsx)("div",{className:"px-3 pb-4",children:(0,t.jsxs)("button",{onClick:()=>s("settings"),className:"w-full flex items-center gap-3 px-3 py-2 rounded-md text-left transition-colors",style:{background:"settings"===e?"var(--surface-2)":"transparent",color:"settings"===e?"var(--ink)":"var(--ink-3)"},children:[(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"2.5"}),(0,t.jsx)("path",{d:"M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3.05 3.05l1.06 1.06M11.89 11.89l1.06 1.06M3.05 12.95l1.06-1.06M11.89 4.11l1.06-1.06"})]}),(0,t.jsx)("span",{className:"text-[13px]",children:"Settings"}),(0,t.jsx)("span",{className:"kbd ml-auto",children:"7"})]})}),i&&(0,t.jsx)(a,{info:i,onClick:()=>s("today")})]})}function o({onClose:e,onNavigate:s}){let[a,l]=(0,n.useState)(""),i=(0,n.useRef)(null);(0,n.useEffect)(()=>{i.current?.focus()},[]);let c=[{kind:"view",label:"Go to Today",v:"today"},{kind:"view",label:"Go to Tasks",v:"tasks"},{kind:"view",label:"Go to Review queue",v:"queue"},{kind:"view",label:"Go to Worklogs",v:"worklogs"},{kind:"view",label:"Go to Sessions",v:"sessions"},{kind:"view",label:"Go to Week",v:"week"}].filter(e=>!a||e.label.toLowerCase().includes(a.toLowerCase())).slice(0,8);return(0,t.jsx)("div",{onClick:e,className:"fixed inset-0 z-50 flex items-start justify-center pt-[18vh]",style:{background:"rgba(15,15,15,0.45)",backdropFilter:"blur(4px)"},children:(0,t.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"w-[560px] max-w-[92vw] rounded-xl overflow-hidden rise",style:{background:"var(--surface)",border:"1px solid var(--rule-2)",boxShadow:"0 24px 80px rgba(0,0,0,0.18)"},children:[(0,t.jsx)("input",{ref:i,value:a,onChange:e=>l(e.target.value),onKeyDown:t=>{"Escape"===t.key&&e(),"Enter"===t.key&&c[0]&&s(c[0].v,c[0].key)},placeholder:"Jump to view or task…",className:"w-full px-5 py-4 text-[14px] font-sans",style:{background:"transparent",color:"var(--ink)",border:"none",outline:"none",borderBottom:"1px solid var(--rule)"}}),(0,t.jsxs)("div",{className:"max-h-[40vh] overflow-y-auto nice-scroll",children:[0===c.length&&(0,t.jsx)("p",{className:"p-6 text-center text-[12px]",style:{color:"var(--ink-3)"},children:"No matches."}),c.map((e,n)=>(0,t.jsxs)("button",{onClick:()=>s(e.v,e.key),className:"w-full text-left px-5 py-2.5 flex items-center gap-3 transition-colors hover:opacity-80",style:{background:0===n?"var(--surface-2)":"transparent"},children:["task"===e.kind&&(0,t.jsx)(r.TaskKey,{keyId:e.key}),(0,t.jsx)("span",{className:"text-[13px]",style:{color:"var(--ink)"},children:e.label}),"task"===e.kind&&e.status&&(0,t.jsx)("span",{className:"ml-auto",children:(0,t.jsx)(r.StatusPill,{status:e.status})})]},n))]}),(0,t.jsxs)("div",{className:"px-5 py-2.5 rule-t flex items-center justify-between text-[10px]",style:{borderTopColor:"var(--rule)",color:"var(--ink-4)"},children:[(0,t.jsx)("span",{children:"Local search · no network"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"kbd",children:"↵"})," open · ",(0,t.jsx)("span",{className:"kbd",children:"esc"})," close"]})]})]})})}var i=e.i(38297);function c(){let{dark:e,setDark:s,accent:r,setAccent:a,density:l,setDensity:o,tone:c,setTone:d}=(0,i.useTheme)(),[u,x]=(0,n.useState)(!1),p=(0,n.useRef)(null),m=(0,n.useRef)({x:16,y:16});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>x(e=>!e),className:"fixed right-4 bottom-4 z-40 w-9 h-9 rounded-full flex items-center justify-center text-[13px]",style:{background:"var(--surface)",border:"1px solid var(--rule-2)",color:"var(--ink-3)",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},"aria-label":"Open theme settings",children:"◐"}),u&&(0,t.jsxs)("div",{ref:p,className:"fixed z-50 w-[280px] rounded-[14px] overflow-hidden flex flex-col",style:{right:m.current.x,bottom:m.current.y,background:e?"rgba(20,20,19,0.92)":"rgba(250,249,247,0.92)",border:`.5px solid ${e?"rgba(255,255,255,0.08)":"rgba(255,255,255,0.6)"}`,backdropFilter:"blur(24px) saturate(160%)",boxShadow:"0 12px 40px rgba(0,0,0,0.18)",color:e?"#F4F1EB":"#29261b"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 cursor-move select-none",onMouseDown:function(e){let t=p.current;if(!t)return;let n=t.getBoundingClientRect(),s=e.clientX,r=e.clientY,a=window.innerWidth-n.right,l=window.innerHeight-n.bottom,o=e=>{m.current={x:a-(e.clientX-s),y:l-(e.clientY-r)},function(){let e=p.current;if(!e)return;let t=e.offsetWidth,n=e.offsetHeight,s=Math.max(16,window.innerWidth-t-16),r=Math.max(16,window.innerHeight-n-16);m.current={x:Math.min(s,Math.max(16,m.current.x)),y:Math.min(r,Math.max(16,m.current.y))},e.style.right=m.current.x+"px",e.style.bottom=m.current.y+"px"}()},i=()=>{window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",i)};window.addEventListener("mousemove",o),window.addEventListener("mouseup",i)},style:{borderBottom:`1px solid ${e?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)"}`},children:[(0,t.jsx)("span",{className:"text-[12px] font-semibold tracking-[0.01em]",children:"Settings"}),(0,t.jsx)("button",{onClick:()=>x(!1),onMouseDown:e=>e.stopPropagation(),className:"w-[22px] h-[22px] flex items-center justify-center rounded-md text-[13px]",style:{color:e?"rgba(244,241,235,0.5)":"rgba(41,38,27,0.5)",background:"transparent"},children:"✕"})]}),(0,t.jsxs)("div",{className:"p-4 space-y-4",children:[(0,t.jsx)("p",{className:"text-[10px] font-semibold tracking-[0.06em] uppercase",style:{color:e?"rgba(244,241,235,0.4)":"rgba(41,38,27,0.4)"},children:"Appearance"}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Dark mode"}),(0,t.jsx)("button",{onClick:()=>s(!e),role:"switch","aria-checked":e,className:"relative w-8 h-[18px] rounded-full border-0 p-0 transition-colors",style:{background:e?"#34c759":"rgba(0,0,0,0.15)"},children:(0,t.jsx)("span",{className:"absolute top-[2px] w-[14px] h-[14px] rounded-full transition-transform",style:{left:2,background:"#fff",boxShadow:"0 1px 2px rgba(0,0,0,0.25)",transform:e?"translateX(14px)":"translateX(0)"}})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Accent color"}),(0,t.jsx)("div",{className:"flex gap-1.5",children:i.ACCENT_PRESETS.map(e=>{let n;return(0,t.jsx)("button",{onClick:()=>a(e),className:"flex-1 h-[46px] rounded-md transition-transform",style:{background:e,boxShadow:r===e?"0 0 0 1.5px rgba(0,0,0,0.85), 0 2px 6px rgba(0,0,0,0.15)":"0 0 0 .5px rgba(0,0,0,0.12)"},"aria-label":`Accent ${e}`,children:r===e&&(0,t.jsx)("svg",{viewBox:"0 0 14 14",className:"mx-auto",width:13,height:13,children:(0,t.jsx)("path",{d:"M3 7.2 5.8 10 11 4.2",fill:"none",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",stroke:Number.isNaN(n=parseInt(e.replace("#","").padEnd(6,"0").slice(0,6),16))||299*(n>>16&255)+587*(n>>8&255)+114*(255&n)>148e3?"rgba(0,0,0,.78)":"#fff"})})},e)})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Density"}),(0,t.jsx)("div",{className:"flex rounded-lg overflow-hidden",style:{background:"rgba(0,0,0,0.06)",padding:2,gap:0},children:["compact","regular","comfy"].map(n=>(0,t.jsx)("button",{onClick:()=>o(n),className:"flex-1 py-1 text-[11px] font-medium rounded-md transition-colors capitalize",style:{background:l===n?e?"rgba(255,255,255,0.1)":"rgba(255,255,255,0.9)":"transparent",boxShadow:l===n?"0 1px 2px rgba(0,0,0,0.12)":"none"},children:n},n))})]}),(0,t.jsx)("p",{className:"text-[10px] font-semibold tracking-[0.06em] uppercase pt-2",style:{color:e?"rgba(244,241,235,0.4)":"rgba(41,38,27,0.4)"},children:"Narrative"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[11.5px]",children:"Story tone"}),(0,t.jsx)("div",{className:"flex rounded-lg overflow-hidden",style:{background:"rgba(0,0,0,0.06)",padding:2},children:["terse","detailed"].map(n=>(0,t.jsx)("button",{onClick:()=>d(n),className:"flex-1 py-1 text-[11px] font-medium rounded-md transition-colors capitalize",style:{background:c===n?e?"rgba(255,255,255,0.1)":"rgba(255,255,255,0.9)":"transparent",boxShadow:c===n?"0 1px 2px rgba(0,0,0,0.12)":"none"},children:n},n))})]})]})]})]})}let d=(0,s.default)(()=>e.A(82582),{loadableGenerated:{modules:[65906]},ssr:!1}),u=(0,s.default)(()=>e.A(44993),{loadableGenerated:{modules:[63017]},ssr:!1}),x=(0,s.default)(()=>e.A(70744),{loadableGenerated:{modules:[20710]},ssr:!1}),p=(0,s.default)(()=>e.A(31857),{loadableGenerated:{modules:[75042]},ssr:!1}),m=(0,s.default)(()=>e.A(29519),{loadableGenerated:{modules:[37653]},ssr:!1}),f=(0,s.default)(()=>e.A(16457),{loadableGenerated:{modules:[27246]},ssr:!1}),h=(0,s.default)(()=>e.A(58835),{loadableGenerated:{modules:[49661]},ssr:!1});e.s(["default",0,function(){let[e,s]=(0,n.useState)("today"),[r,a]=(0,n.useState)(null),[i,b]=(0,n.useState)(!1),[g,k]=(0,n.useState)(0),v=(0,n.useCallback)((e,t)=>{s(e),a(t??null),window.scrollTo({top:0,behavior:"instant"})},[]);(0,n.useEffect)(()=>{fetch("/api/queue-review").then(e=>e.json()).then(e=>k(e.items?.length??0)).catch(()=>{})},[]),(0,n.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()){e.preventDefault(),b(e=>!e);return}if("Escape"===e.key)return void b(!1);if(i||e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target;"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&("1"===e.key?v("today"):"2"===e.key?v("tasks"):"3"===e.key?v("queue"):"4"===e.key?v("worklogs"):"5"===e.key?v("sessions"):"6"===e.key?v("week"):"7"===e.key&&v("settings"))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[i,v]);let y=new Date().toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"});return(0,t.jsxs)("div",{className:"min-h-screen flex",style:{background:"var(--paper)"},children:[(0,t.jsx)(l,{view:e,onNavigate:v,onOpenCmd:()=>b(!0),queueCount:g}),(0,t.jsx)("main",{className:"flex-1 min-w-0","data-screen-label":e,children:(0,t.jsxs)("div",{className:"max-w-[1080px] mx-auto px-10 py-14",children:["today"===e&&(0,t.jsx)(d,{onNavigate:(e,t)=>v(e,t)}),"tasks"===e&&(0,t.jsx)(u,{focusKey:r}),"queue"===e&&(0,t.jsx)(x,{}),"worklogs"===e&&(0,t.jsx)(p,{}),"sessions"===e&&(0,t.jsx)(m,{}),"week"===e&&(0,t.jsx)(f,{}),"settings"===e&&(0,t.jsx)(h,{}),(0,t.jsxs)("footer",{className:"mt-24 pt-8 rule-t flex items-center justify-between text-[11px]",style:{borderTopColor:"var(--rule)",color:"var(--ink-4)"},children:[(0,t.jsxs)("span",{children:["Meridian · local · ",y]}),(0,t.jsxs)("span",{className:"font-mono tnum",children:[(0,t.jsx)("span",{className:"kbd",children:"⌘"})," ",(0,t.jsx)("span",{className:"kbd",children:"K"})," to jump · ",(0,t.jsx)("span",{className:"kbd",children:"1"}),"–",(0,t.jsx)("span",{className:"kbd",children:"7"})," to switch view"]})]})]})}),i&&(0,t.jsx)(o,{onClose:()=>b(!1),onNavigate:(e,t)=>{v(e,t),b(!1)}}),(0,t.jsx)(c,{})]})}],82010)},82582,e=>{e.v(t=>Promise.all(["static/chunks/0oybxc0s9-8jn.js"].map(t=>e.l(t))).then(()=>t(65906)))},44993,e=>{e.v(t=>Promise.all(["static/chunks/0ihy5u7wenwg0.js"].map(t=>e.l(t))).then(()=>t(63017)))},70744,e=>{e.v(t=>Promise.all(["static/chunks/0baqm_s2-t13s.js"].map(t=>e.l(t))).then(()=>t(20710)))},31857,e=>{e.v(t=>Promise.all(["static/chunks/0z1g1xyfa206c.js"].map(t=>e.l(t))).then(()=>t(75042)))},29519,e=>{e.v(t=>Promise.all(["static/chunks/0ifolh1b1knby.js"].map(t=>e.l(t))).then(()=>t(37653)))},16457,e=>{e.v(t=>Promise.all(["static/chunks/0s.zkfto8hpca.js"].map(t=>e.l(t))).then(()=>t(27246)))},58835,e=>{e.v(t=>Promise.all(["static/chunks/0034g-77v57su.js","static/chunks/0_g6ngacmh2ur.js"].map(t=>e.l(t))).then(()=>t(49661)))}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17303,e=>{"use strict";var s=e.i(56916);let t=e=>{let s=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,s,t)=>t?t.toUpperCase():s.toLowerCase());return s.charAt(0).toUpperCase()+s.slice(1)},a=(...e)=>e.filter((e,s,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===s).join(" ").trim();var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let r=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:i="",children:c,iconNode:o,...d},u)=>(0,s.createElement)("svg",{ref:u,...n,width:t,height:t,stroke:e,strokeWidth:l?24*Number(r)/Number(t):r,className:a("lucide",i),...!c&&!(e=>{for(let s in e)if(s.startsWith("aria-")||"role"===s||"title"===s)return!0})(d)&&{"aria-hidden":"true"},...d},[...o.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(c)?c:[c]]));e.s(["default",0,(e,n)=>{let l=(0,s.forwardRef)(({className:l,...i},c)=>(0,s.createElement)(r,{ref:c,iconNode:n,className:a(`lucide-${t(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...i}));return l.displayName=t(e),l}],17303)},99963,e=>{"use strict";var s=e.i(80663);let t=(0,e.i(17303).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function a(){for(var e,s,t=0,a="",n=arguments.length;t<n;t++)(e=arguments[t])&&(s=function e(s){var t,a,n="";if("string"==typeof s||"number"==typeof s)n+=s;else if("object"==typeof s)if(Array.isArray(s)){var r=s.length;for(t=0;t<r;t++)s[t]&&(a=e(s[t]))&&(n&&(n+=" "),n+=a)}else for(a in s)s[a]&&(n&&(n+=" "),n+=a);return n}(e))&&(a&&(a+=" "),a+=s);return a}var n=e.i(89562);function r({taskKey:e,taskTitle:t,sessionType:n,routing:l,confidence:i,method:c}){let o=function(e){if(!e)return[];switch(e){case"prefilter_trivial":return[{label:"Hermes · pre-filter",deciding:!0}];case"llm_standalone":case"agent_tiebreak":return[{label:"Hermes · classification",deciding:!0}];default:return[{label:e,deciding:!0}]}}(c),d="number"==typeof i&&i>0?`${Math.round(100*i)}%`:null,u=e?d?`${e} \xb7 ${d}`:e:"overhead"===n?"overhead":"queue"===l?d?`queued \xb7 ${d}`:"queued":d?`no match \xb7 ${d}`:"no match";return(0,s.jsxs)("div",{className:"space-y-2 min-w-[200px]",children:[o.length>0?(0,s.jsx)("div",{className:"space-y-1",children:o.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,s.jsx)("span",{className:a("font-mono text-[10px] uppercase tracking-widest shrink-0",e.deciding?"text-[#4B4A47]":"text-[#C8C6C1]"),children:e.label}),(0,s.jsx)("span",{className:a("text-[10px] font-mono",e.deciding?"text-[#141414] font-medium":"text-[#C8C6C1]"),children:e.deciding?u:"→ escalated"})]},t))}):(0,s.jsx)("p",{className:"text-[11px] text-[#9B9A97]",children:"no classification data"}),e&&t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"border-t border-[#F0EFEC]"}),(0,s.jsx)("p",{className:"text-[11px] text-[#6B6A67] leading-snug max-w-[220px]",children:t})]}),l&&"auto"!==l&&(0,s.jsxs)("p",{className:"text-[10px] text-[#C8C6C1]",children:["routing: ",(0,s.jsx)("span",{className:"font-mono",children:l})]})]})}function l({children:e,...t}){return(0,s.jsxs)(n.Root,{children:[(0,s.jsx)(n.Trigger,{asChild:!0,children:e}),(0,s.jsx)(n.Portal,{children:(0,s.jsxs)(n.Content,{side:"top",align:"center",sideOffset:5,className:"z-50 rounded-lg border border-[#E8E6E1] bg-white px-3 py-2.5 shadow-md",children:[(0,s.jsx)(r,{...t}),(0,s.jsx)(n.Arrow,{className:"fill-white"})]})})]})}e.s(["default",0,function({taskKey:e,sessionType:n,routing:r,confidence:i,method:c,taskTitle:o,taskUrl:d,size:u="xs"}){if(!n)return null;let x="xs"===u?"text-[10px] px-1.5 py-0.5":"text-xs px-2 py-0.5",p={taskKey:e,taskTitle:o??null,sessionType:n,routing:r,confidence:i,method:c};if("overhead"===n)return(0,s.jsx)(l,{...p,children:(0,s.jsx)("span",{className:a("inline-flex items-center rounded-full font-medium cursor-default","bg-[#F0EFEC] text-[#9B9A97]",x),children:"overhead"})});if("task"===n&&"auto"===r&&e){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"font-mono",children:e}),d&&(0,s.jsx)(t,{className:"w-2.5 h-2.5 opacity-60"})]}),r=d?(0,s.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:a("inline-flex items-center gap-1 rounded-full font-medium hover:brightness-95 transition","bg-[#EBF0FB] text-[#3D5BB0] border border-[#D8E0F4]",x),onClick:e=>e.stopPropagation(),children:n}):(0,s.jsx)("span",{className:a("inline-flex items-center gap-1 rounded-full font-medium cursor-default","bg-[#EBF0FB] text-[#3D5BB0] border border-[#D8E0F4]",x),children:n});return(0,s.jsx)(l,{...p,children:r})}return"task"===n&&"queue"===r?(0,s.jsx)(l,{...p,children:(0,s.jsxs)("span",{className:a("inline-flex items-center gap-1 rounded-full font-medium cursor-default","bg-[#FEF9EC] text-[#92400E] border border-[#FDE68A]",x),children:[(0,s.jsx)("span",{className:"font-mono",children:e??"queued"}),(0,s.jsx)("span",{className:"opacity-60",children:"?"})]})}):"task"===n&&"skip"===r?(0,s.jsx)(l,{...p,children:(0,s.jsx)("span",{className:a("inline-flex items-center rounded-full font-medium cursor-default","bg-[#F8F7F4] text-[#C8C6C1] border border-[#F0EFEC]",x),children:(0,s.jsx)("span",{className:"font-mono",children:"∅"})})}):null}],99963)},72868,e=>{"use strict";var s=e.i(80663),t=e.i(56916),a=e.i(29987),n=e.i(99963);let r={coding:"#3B6FE0",code_review:"#7C3AED",meeting:"#D97706",communication:"#059669",design:"#DB2777",documentation:"#0891B2",planning:"#C4822A",deployment_devops:"#DC2626",research:"#4F46E5",idle_personal:"#78716C"};function l({data:e}){let n=e=>new Date(e).getHours()+new Date(e).getMinutes()/60,i=(0,t.useMemo)(()=>{let s={};e.sessions.forEach(e=>{s[e.cat]=(s[e.cat]||0)+e.dur}),e.active&&(s[e.active.cat]=(s[e.active.cat]||0)+e.active.elapsed_s);let t=Object.values(s).reduce((e,s)=>e+s,0)||1;return Object.entries(s).map(([e,s])=>({cat:e,seconds:s,percentage:s/t*100,label:a.CATS[e]?.label||e})).sort((e,s)=>s.seconds-e.seconds)},[e]),c=(0,t.useMemo)(()=>{let s=[...e.sessions.map(e=>({kind:"session",startH:n(e.started_at),dur:e.dur})),...e.active?[{kind:"session",startH:n(e.active.started_at),dur:e.active.elapsed_s}]:[],...e.gaps.map(e=>({kind:"gap",startH:n(e.started_at),dur:e.dur}))].sort((e,s)=>e.startH-s.startH),t=0,a=0;return s.forEach(e=>{"gap"===e.kind&&e.dur>300?(t=Math.max(t,a),a=0):"session"===e.kind&&(a+=e.dur)}),Math.max(t,a)},[e]),o=(0,t.useMemo)(()=>{let e=0;return i.map(s=>{let t=e,a=s.percentage/100*360,n=t+a,r=(t-90)*Math.PI/180,l=(n-90)*Math.PI/180,i=+(a>180),c=`M ${100+85*Math.cos(r)} ${100+85*Math.sin(r)} A 85 85 0 ${i} 1 ${100+85*Math.cos(l)} ${100+85*Math.sin(l)} L ${100+58*Math.cos(l)} ${100+58*Math.sin(l)} A 58 58 0 ${i} 0 ${100+58*Math.cos(r)} ${100+58*Math.sin(r)} Z`;return e=n,{...s,path:c}})},[i]),[d,u]=(0,t.useState)(null);return(0,s.jsx)(a.Card,{className:"p-6",children:(0,s.jsxs)("div",{className:"flex items-center gap-8",children:[(0,s.jsx)("div",{className:"flex-1 flex justify-center",children:(0,s.jsxs)("div",{className:"relative",style:{width:200,height:200},children:[(0,s.jsx)("svg",{width:"200",height:"200",viewBox:"0 0 200 200",children:o.map(e=>(0,s.jsx)("path",{d:e.path,className:`cat-${e.cat}`,opacity:d===e.cat?1:null===d?.95:.35,style:{cursor:"pointer",transition:"opacity 0.2s ease, transform 0.15s ease",transformOrigin:"100px 100px",transform:d===e.cat?"scale(1.05)":"scale(1)"},onMouseEnter:()=>u(e.cat),onMouseLeave:()=>u(null)},e.cat))}),(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[(0,s.jsx)("p",{className:"font-mono tnum text-[28px] leading-none",style:{color:"var(--ink)"},children:(0,a.fmtDur)(e.focus_s)}),(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-wide mt-1",style:{color:"var(--ink-3)"},children:"active"})]})]})}),(0,s.jsxs)("div",{className:"flex-1 space-y-4",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3 pb-4 rule-b",style:{borderBottomColor:"var(--rule)"},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-wide mb-1",style:{color:"var(--ink-3)"},children:"Longest block"}),(0,s.jsx)("p",{className:"font-mono tnum text-[20px] leading-none",style:{color:"var(--success)"},children:(0,a.fmtDur)(c)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-wide mb-1",style:{color:"var(--ink-3)"},children:"Idle time"}),(0,s.jsx)("p",{className:"font-mono tnum text-[20px] leading-none",style:{color:"var(--ink-3)"},children:(0,a.fmtDur)(e.idle_s)})]})]}),(0,s.jsx)("div",{className:"space-y-0.5",children:i.map(e=>{let t=d===e.cat;return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 py-1.5 px-2 rounded-md transition-all cursor-pointer",style:{background:t?"var(--tint)":"transparent",borderLeft:`3px solid ${t?r[e.cat]??"var(--accent)":"transparent"}`,opacity:t||null===d?1:.45,paddingLeft:t?"6px":"8px"},onMouseEnter:()=>u(e.cat),onMouseLeave:()=>u(null),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[(0,s.jsx)(a.CatDot,{cat:e.cat,size:9}),(0,s.jsx)("span",{className:"text-[12px] truncate font-medium",style:{color:t?"var(--ink)":"var(--ink-2)"},children:e.label})]}),(0,s.jsxs)("span",{className:"text-[12px] font-mono tnum font-semibold",style:{color:t?"var(--ink)":"var(--ink-3)"},children:[e.percentage.toFixed(0),"%"]})]},e.cat)})})]})]})})}let i="var(--ink)",c="var(--rule-2)",o="#3B6FE0",d=e=>new Date(e).getTime();function u({data:e}){let[n,r]=(0,t.useState)(null),l=(0,t.useMemo)(()=>{let s=e.presence_segments.map(e=>({startMs:d(e.started_at),endMs:d(e.ended_at),kind:"active",label:"Active"})),t=e.gaps.filter(e=>"user_idle"===e.kind).map(e=>({startMs:d(e.started_at),endMs:d(e.ended_at),kind:"idle",label:"Idle"})),a=e.agent_segments.map(e=>({startMs:d(e.started_at),endMs:d(e.ended_at),kind:"agent",label:"Claude / Codex"})),n=[...s,...t,...a].filter(e=>Number.isFinite(e.startMs)&&e.endMs>e.startMs);if(0===n.length)return null;let r=36e5*Math.floor(Math.min(...n.map(e=>e.startMs))/36e5),l=36e5*Math.ceil(Math.max(...n.map(e=>e.endMs))/36e5),i=Math.max(36e5,l-r),c=[];for(let e=r;e<=l;e+=36e5)c.push({left:(e-r)/i*100,label:new Date(e).getHours().toString().padStart(2,"0")});return{active:s,idle:t,agent:a,ticks:c,pos:e=>({left:(e.startMs-r)/i*100,width:Math.max(.4,(e.endMs-e.startMs)/i*100)})}},[e]);if(!l)return null;let x=(e,t,a,i,c=!1)=>{let{left:o,width:d}=l.pos(e);return(0,s.jsx)("div",{onMouseEnter:()=>r(e),onMouseLeave:()=>r(s=>s===e?null:s),className:"absolute cursor-pointer transition-opacity",style:{left:`${o}%`,width:`${d}%`,top:t,height:a,background:i,borderRadius:c?3:2,opacity:n&&n!==e?.4:1}},`${e.kind}-${e.startMs}`)};return(0,s.jsxs)("div",{className:"select-none",children:[(0,s.jsx)("div",{className:"h-6 mb-1 flex items-end",children:(()=>{if(!n)return null;let e=e=>new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return(0,s.jsxs)("div",{className:"text-[11px] font-mono tnum px-2 py-1 rounded-md inline-flex gap-2 items-center",style:{background:"var(--ink)",color:"var(--paper)"},children:[(0,s.jsx)("span",{style:{opacity:.7},children:n.label}),(0,s.jsxs)("span",{children:[e(n.startMs),"–",e(n.endMs)]}),(0,s.jsxs)("span",{style:{opacity:.7},children:["· ",(0,a.fmtDur)(Math.round((n.endMs-n.startMs)/1e3))]})]})})()}),(0,s.jsxs)("div",{className:"relative",style:{height:54},children:[l.ticks.map((e,t)=>(0,s.jsx)("div",{className:"absolute top-0",style:{left:`${e.left}%`,height:40,width:1,background:"var(--rule)"}},`g${t}`)),l.idle.map(e=>x(e,6,18,c)),l.active.map(e=>x(e,6,18,i)),l.agent.map(e=>x(e,27,11,o,!0)),l.ticks.map((e,t)=>(0,s.jsx)("div",{className:"absolute font-mono text-[9px]",style:{left:`${e.left}%`,top:42,color:"var(--ink-4)",transform:"translateX(-50%)"},children:e.label},`l${t}`))]}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px]",style:{color:"var(--ink-3)"},children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)("i",{style:{width:10,height:10,background:i,borderRadius:2,display:"inline-block"}})," Active"]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)("i",{style:{width:10,height:10,background:c,borderRadius:2,display:"inline-block"}})," Idle"]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)("i",{style:{width:10,height:6,background:o,borderRadius:2,display:"inline-block"}})," Claude / Codex"]}),(0,s.jsx)("span",{style:{color:"var(--ink-4)"},children:"· agent under an idle stretch = autonomous"})]})]})}let x=(e,s)=>s>0?Math.round(e/s*100):0;function p({label:e,value:t,hint:a}){return(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-4 py-2",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("span",{className:"text-[13px]",style:{color:"var(--ink)"},children:e}),a&&(0,s.jsx)("span",{className:"text-[11px] ml-2",style:{color:"var(--ink-3)"},children:a})]}),(0,s.jsx)("span",{className:"font-mono tnum text-[14px] whitespace-nowrap",style:{color:"var(--ink)"},children:t})]})}function m(e){let{focus_s:n,idle_s:r,agent_s:l,supervised_s:i,autonomous_s:c,switch_count:o}=e,[d,u]=(0,t.useState)(null),m=[{key:"focus",label:"Focus",value:(0,a.fmtDur)(n),note:"active"},{key:"ai",label:"AI-assisted",value:`${x(i,n)}%`,note:"of focus"},{key:"switches",label:"Switches",value:String(o),note:"context switches"}];return(0,s.jsxs)("div",{className:"rule-t rule-b",style:{borderColor:"var(--rule)"},children:[(0,s.jsx)("div",{className:"grid grid-cols-3",children:m.map((e,t)=>{let a=d===e.key;return(0,s.jsxs)("button",{onClick:()=>u(a?null:e.key),className:`text-left py-4 px-5 transition-colors ${t>0?"rule-l":""}`,style:{borderColor:"var(--rule)",background:a?"var(--tint)":"transparent"},"aria-expanded":a,children:[(0,s.jsxs)("p",{className:"text-[10px] uppercase tracking-[0.16em] mb-2 flex items-center gap-1.5",style:{color:"var(--ink-3)"},children:[e.label,(0,s.jsx)("span",{className:"text-[9px]",style:{color:"var(--ink-4)",transform:a?"rotate(180deg)":"none",transition:"transform 0.15s"},children:"▾"})]}),(0,s.jsx)("p",{className:"font-mono tnum text-[20px] leading-none",style:{color:"var(--ink)"},children:e.value}),(0,s.jsx)("p",{className:"text-[11px] mt-1.5",style:{color:"var(--ink-3)"},children:e.note})]},e.key)})}),d&&(0,s.jsx)("div",{className:"px-5 py-3 rule-t",style:{borderTopColor:"var(--rule)",background:"var(--surface)"},children:(0,s.jsx)("div",{className:"max-w-md",children:(e=>{switch(e){case"focus":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{label:"Active",value:(0,a.fmtDur)(n),hint:"you, at the keyboard"}),(0,s.jsx)(p,{label:"Idle / away",value:(0,a.fmtDur)(r),hint:"no input detected"}),(0,s.jsx)(p,{label:"AI-assisted",value:`${(0,a.fmtDur)(i)} \xb7 ${x(i,n)}%`,hint:"of your active time"})]});case"ai":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{label:"Supervised",value:(0,a.fmtDur)(i),hint:"agent ran while you were active"}),(0,s.jsx)(p,{label:"Autonomous",value:(0,a.fmtDur)(c),hint:"agent ran while you were away"}),(0,s.jsx)(p,{label:"Agent total",value:(0,a.fmtDur)(l),hint:"engaged Claude / Codex time"})]});case"switches":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{label:"Context switches",value:String(o),hint:"foreground app changes over 15s"}),(0,s.jsx)("p",{className:"text-[12px] leading-relaxed pt-1",style:{color:"var(--ink-3)"},children:"Lower is deeper. Brief sub-15s window flicker is filtered out so this reflects real context shifts, not capture noise."})]})}})(d)})})]})}function h({active:e,taskKey:t}){let n=(0,a.useTick)(1),r=e.elapsed_s+n,l=Math.max(1,Math.floor(r/30));return(0,s.jsxs)(a.Card,{className:"overflow-hidden rise",style:{borderColor:"var(--rule-2)"},children:[(0,s.jsx)("div",{className:"h-[3px] w-full",style:{background:"var(--rule)"},children:(0,s.jsx)("div",{className:"h-full blink",style:{width:"32%",background:"var(--live)"}})}),(0,s.jsxs)("div",{className:"p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)(a.LiveDot,{size:8}),(0,s.jsxs)("span",{className:"text-[10px] uppercase tracking-[0.2em]",style:{color:"var(--ink-3)"},children:["Live · captured ",l," frame",1===l?"":"s"," ago"]}),(0,s.jsxs)("span",{className:"ml-auto text-[11px]",style:{color:"var(--ink-3)"},children:[(0,s.jsx)("span",{className:"font-mono tnum",children:(0,a.fmtClock)(e.started_at)})," → now"]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-5",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-3 flex-wrap",children:[(0,s.jsx)("p",{className:"font-serif text-[28px] leading-none italic",style:{color:"var(--ink)"},children:"You're on"}),t&&(0,s.jsx)(a.TaskKey,{keyId:t,big:!0}),(0,s.jsx)("span",{className:"font-serif text-[28px] leading-none italic truncate",style:{color:"var(--ink)"},children:"idle_personal"!==e.cat?a.CATS[e.cat]?.label?.toLowerCase()??e.cat:"an uncategorized session"})]}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-x-5 gap-y-2 text-[13px]",style:{color:"var(--ink-2)"},children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,s.jsx)(a.AppGlyph,{app:e.app,size:20}),(0,s.jsx)("span",{style:{color:"var(--ink)"},children:e.app})]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)(a.CatDot,{cat:e.cat}),(0,s.jsx)("span",{children:a.CATS[e.cat]?.label??e.cat})]})]}),e.explain&&(0,s.jsxs)("p",{className:"mt-4 text-[12px] leading-relaxed",style:{color:"var(--ink-3)"},children:[(0,s.jsx)("span",{style:{color:"var(--ink-2)"},children:"Why this task"}),(0,s.jsx)("span",{className:"mx-2",style:{color:"var(--ink-4)"},children:"·"}),e.explain]})]}),(0,s.jsxs)("div",{className:"text-right shrink-0 pl-4 rule-l",style:{borderLeftColor:"var(--rule)"},children:[(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-[0.2em]",style:{color:"var(--ink-3)"},children:"elapsed"}),(0,s.jsx)("p",{className:"font-mono tnum text-[40px] leading-none mt-2",style:{color:"var(--ink)"},children:(0,a.fmtDurDecimal)(r)}),(0,s.jsxs)("div",{className:"mt-3 flex items-center justify-end gap-1.5",children:[(0,s.jsx)(a.ConfidenceRing,{value:e.confidence,size:14}),(0,s.jsxs)("span",{className:"text-[11px] font-mono tnum",style:{color:"var(--ink-3)"},children:[Math.round(100*e.confidence),"%"]})]})]})]}),e.titles.length>0&&(0,s.jsx)("div",{className:"mt-5 flex flex-wrap gap-1.5",children:e.titles.slice(0,5).map(e=>(0,s.jsx)("span",{className:"text-[11px] font-mono px-2 py-1 rounded-md tnum",style:{background:"var(--surface-2)",color:"var(--ink-2)",border:"1px solid var(--rule)"},children:e},e))}),(0,s.jsxs)("div",{className:"mt-5 pt-4 rule-t flex items-center justify-between gap-3",style:{borderTopColor:"var(--rule)"},children:[(0,s.jsx)("p",{className:"text-[12px]",style:{color:"var(--ink-2)"},children:"Log this session to Jira when it closes?"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{className:"text-[12px] px-3 py-1.5 rounded-md",style:{color:"var(--ink-3)"},children:"Skip"}),(0,s.jsx)("button",{className:"text-[12px] px-3 py-1.5 rounded-md font-medium",style:{color:"var(--paper)",background:"var(--ink)"},children:t?`Log to ${t} →`:"Assign task →"})]})]})]})]})}function f({bucket:e}){let[r,l]=(0,t.useState)(!1),i=(0,t.useMemo)(()=>{let s={};return e.sessions.forEach(e=>{s[e.cat]=(s[e.cat]??0)+e.dur}),Object.entries(s).map(([e,s])=>({cat:e,value:s}))},[e.sessions]),c=e.day_total_s>0?(e.total_s/e.day_total_s*100).toFixed(0):"0";return(0,s.jsxs)("div",{style:{background:"var(--surface)"},children:[(0,s.jsxs)("button",{onClick:()=>l(e=>!e),className:"w-full text-left grid grid-cols-[auto_1fr_200px_auto] items-center gap-5 px-5 py-4 transition-colors",style:{background:r?"var(--surface-2)":"var(--surface)"},children:[(0,s.jsx)("span",{className:"font-mono tnum text-[12px] w-[72px]",style:{color:"var(--ink-2)"},children:e.isOverhead||e.isQueue?(0,s.jsx)("span",{style:{color:"var(--ink-3)"},children:e.isOverhead?"overhead":"needs review"}):(0,s.jsx)(a.TaskKey,{keyId:e.key})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[14px] truncate",style:{color:"var(--ink)"},children:e.title}),(0,s.jsxs)("p",{className:"text-[11px] mt-1.5",style:{color:"var(--ink-3)"},children:[e.sessions.length," session",1===e.sessions.length?"":"s",i.length>0&&` \xb7 ${i.slice(0,3).map(e=>a.CATS[e.cat]?.short??e.cat).join(" + ")}`]})]}),(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(a.SegBar,{segments:i.length?i:[{value:1,color:"var(--rule-2)"}],height:3})}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsx)("p",{className:"font-mono tnum text-[18px] leading-none",style:{color:"var(--ink)"},children:(0,a.fmtDur)(e.total_s)}),(0,s.jsxs)("p",{className:"text-[11px] mt-1.5",style:{color:"var(--ink-3)"},children:[c,"% of day"]})]})]}),r&&(0,s.jsx)("div",{className:"px-5 pb-4 pt-1 rule-t",style:{borderTopColor:"var(--rule)"},children:(0,s.jsx)("div",{className:"grid grid-cols-1 gap-px",style:{background:"var(--rule)"},children:e.sessions.map(e=>(0,s.jsxs)("div",{className:"grid grid-cols-[auto_1fr_auto_auto] items-center gap-4 py-2.5 px-3",style:{background:"var(--surface)"},children:[(0,s.jsx)(a.AppGlyph,{app:e.app,size:20}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[13px] truncate",style:{color:"var(--ink)"},children:e.titles[0]||"—"}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,s.jsx)("span",{className:"font-mono tnum text-[11px]",style:{color:"var(--ink-3)"},children:(0,a.fmtClock)(e.started_at)}),(0,s.jsx)(a.CatDot,{cat:e.cat}),(0,s.jsx)("span",{className:"text-[11px]",style:{color:"var(--ink-3)"},children:a.CATS[e.cat]?.short??e.cat})]})]}),(0,s.jsx)(n.default,{taskKey:e.task_key,sessionType:e.session_type,routing:e.routing,confidence:e.link_confidence,method:e.link_method,size:"xs"}),(0,s.jsx)("span",{className:"font-mono tnum text-[12px]",style:{color:"var(--ink-2)"},children:(0,a.fmtDur)(e.dur)})]},e.id))})})]})}function v({session:e}){return(0,s.jsxs)("div",{className:"grid grid-cols-[auto_1fr_auto_auto] items-center gap-5 px-5 py-4 rule-t",style:{borderTopColor:"var(--rule)"},children:[(0,s.jsx)(a.AppGlyph,{app:e.app,size:24}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[13px] truncate",style:{color:"var(--ink)"},children:e.titles[0]||e.app}),(0,s.jsxs)("p",{className:"text-[11px] mt-1",style:{color:"var(--ink-3)"},children:[(0,s.jsx)("span",{className:"font-mono tnum",children:(0,a.fmtClock)(e.started_at)}),e.candidates&&e.candidates.length>0&&(0,s.jsx)("span",{className:"ml-2 text-[11px]",style:{color:"var(--accent)"},children:"· needs review"})]})]}),(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:e.candidates?.map(e=>(0,s.jsx)(a.TaskKey,{keyId:e},e))}),(0,s.jsx)("span",{className:"font-mono tnum text-[12px]",style:{color:"var(--ink-2)"},children:(0,a.fmtDur)(e.dur)})]})}e.s(["default",0,function({onNavigate:e}){let n,r,[i,c]=(0,t.useState)(null);if((0,t.useEffect)(()=>{fetch("/api/today").then(e=>e.json()).then(c).catch(()=>{});let e=setInterval(()=>fetch("/api/today").then(e=>e.json()).then(c).catch(()=>{}),3e4);return()=>clearInterval(e)},[]),!i)return(0,s.jsxs)("div",{className:"space-y-12",children:[(0,s.jsx)("header",{className:"rise",children:(0,s.jsx)("h1",{className:"font-serif leading-[0.95] tracking-tight",style:{color:"var(--ink)"},children:"Today"})}),(0,s.jsx)("p",{className:"text-[13px]",style:{color:"var(--ink-3)"},children:"Loading…"})]});let o=i.focus_s,d=new Map;function x(e,s){d.has(e)||d.set(e,{key:e,title:"",sessions:[],total_s:0,cats:new Set,day_total_s:o,isOverhead:!1,isQueue:!1});let t=d.get(e);t.sessions.push(s),t.total_s+=s.dur,t.cats.add(s.cat)}i.sessions.forEach(e=>{let s={id:e.id,app:e.app,started_at:e.started_at,dur:e.dur,cat:e.cat,titles:e.titles,task_key:e.task_key,session_type:e.session_type,link_method:e.link_method,link_confidence:e.link_confidence,routing:e.routing};e.task_key?x(e.task_key,s):"queue"===e.routing?x("_queue",s):x("_overhead",s)}),i.active&&x("_active",{id:"active",app:i.active.app,started_at:i.active.started_at,dur:i.active.elapsed_s,cat:i.active.cat,titles:i.active.titles,task_key:null,session_type:null,link_method:null,link_confidence:null,routing:null});let p=Array.from(d.values()).map(e=>({...e,isOverhead:"_overhead"===e.key,isQueue:"_queue"===e.key,title:"_overhead"===e.key?"Overhead — comms, mail, planning":"_queue"===e.key?"Sessions waiting to be assigned":"_active"===e.key?"Current session":e.key,day_total_s:o})).sort((e,s)=>{let t=e=>"_queue"===e?9:"_overhead"===e?8:"_active"===e?-1:0;return t(e.key)-t(s.key)||s.total_s-e.total_s}),g=i.sessions.filter(e=>"queue"===e.routing).length,y=new Date().toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"});return(0,s.jsxs)("div",{className:"space-y-12",children:[(0,s.jsxs)("header",{className:"rise",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between mb-1",children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-[0.2em]",style:{color:"var(--ink-3)"},children:y}),i.active&&(0,s.jsxs)("p",{className:"text-[11px]",style:{color:"var(--ink-3)"},children:["Last capture ",(0,s.jsx)("span",{className:"font-mono tnum",children:(0,a.fmtClock)(i.active.started_at)})]})]}),(0,s.jsx)("h1",{className:"font-serif text-[88px] leading-[0.95] tracking-tight",style:{color:"var(--ink)"},children:"Today"})]}),(n=function(e){let{focus_s:s,supervised_s:t,autonomous_s:n,switch_count:r,active:l}=e;if(s<300&&!l)return null;let i=s>0?Math.round(t/s*100):0,c=`${(0,a.fmtDur)(s)} focused`;i>=5&&(c+=`, ${i}% of it alongside Claude`);let o=[];n>=600&&o.push(`plus ${(0,a.fmtDur)(n)} of autonomous agent work while you were away`);let d=s/60;return d>60&&r>d/4&&o.push(`a fragmented day — ${r} context switches`),o.length?`${c} — ${o.join("; ")}.`:`${c}.`}(i),r=function(e){let{sessions:s,active:t}=e;if(0===s.length&&!t)return null;let n=new Map;s.forEach(e=>{let s=e.task_key;if(!s)return;n.has(s)||n.set(s,{dur:0,cats:[]});let t=n.get(s);t.dur+=e.dur,t.cats.includes(e.cat)||t.cats.push(e.cat)});let r=s.filter(e=>!e.task_key&&"queue"!==e.routing).reduce((e,s)=>e+s.dur,0),l=Array.from(n.entries()).sort((e,s)=>s[1].dur-e[1].dur).slice(0,3);if(0===l.length&&r<600&&!t)return null;let i=[];if(l.forEach(([e,s],t)=>{let n=(0,a.fmtDur)(s.dur);if(0===t){var r,l;let t;i.push(`${(r=s.cats,l=s.dur,"coding"===(t=r[0])?l>3600?"Deep on":"Coding on":"code_review"===t?"Reviewing":"design"===t?"Designing":"documentation"===t?"Docs for":"planning"===t?"Planning":"meeting"===t?"Meetings around":"communication"===t?"Comms on":"research"===t?"Researching":"deployment_devops"===t?"Deploying":"Working on")} ${e} for ${n}`)}else i.push(`${n} on ${e}`)}),r>900&&i.push(`${(0,a.fmtDur)(r)} of overhead`),t){let e=a.CATS[t.cat]?.label?.toLowerCase()??t.cat;i.push(l.length>0?`currently in ${e}`:`started ${e} at ${(0,a.fmtClock)(t.started_at)}`)}return i.length>0?i.join(", ")+".":null}(i),n||i.sessions.length>0||i.active?(0,s.jsxs)("section",{className:"rise space-y-5",children:[n&&(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-[0.18em] mb-3",style:{color:"var(--ink-3)"},children:"Today at a glance"}),(0,s.jsx)("p",{className:"font-serif text-[32px] leading-[1.15]",style:{color:"var(--ink)",textWrap:"pretty"},children:n})]}),(i.sessions.length>0||i.active)&&(0,s.jsx)(a.Card,{className:"p-6",children:(0,s.jsx)(u,{data:i})}),r&&(0,s.jsx)("p",{className:"text-[14px] leading-relaxed",style:{color:"var(--ink-2)",textWrap:"pretty"},children:r})]}):null),i.active&&(0,s.jsx)(h,{active:i.active,taskKey:i.sessions.filter(e=>e.task_key).at(-1)?.task_key}),(0,s.jsx)(m,{focus_s:i.focus_s,idle_s:i.idle_s,agent_s:i.agent_s,supervised_s:i.supervised_s,autonomous_s:i.autonomous_s,switch_count:i.switch_count}),p.length>0&&(0,s.jsxs)("section",{children:[(0,s.jsx)(a.SectionHead,{kicker:"By task",title:"Where your time went",right:(0,s.jsx)("button",{onClick:()=>e?.("tasks"),className:"text-[12px]",style:{color:"var(--ink-3)"},children:"Open Tasks →"})}),(0,s.jsx)("div",{className:"space-y-px rule rounded-xl overflow-hidden border",style:{borderColor:"var(--rule)"},children:p.map(e=>(0,s.jsx)(f,{bucket:e},e.key))})]}),(i.sessions.length>0||i.active)&&(0,s.jsxs)("section",{children:[(0,s.jsx)(a.SectionHead,{kicker:"Shape of the day",title:"Activity patterns & insights"}),(0,s.jsx)(l,{data:i})]}),g>0&&(0,s.jsxs)("section",{children:[(0,s.jsx)(a.SectionHead,{kicker:"Needs review",title:(0,s.jsxs)(s.Fragment,{children:["Unassigned sessions ",(0,s.jsx)("span",{className:"ml-2 font-mono tnum text-[15px]",style:{color:"var(--accent)"},children:g})]}),right:(0,s.jsx)("button",{onClick:()=>e?.("queue"),className:"text-[12px]",style:{color:"var(--ink-3)"},children:"Review queue →"})}),(0,s.jsx)(a.Card,{children:i.sessions.filter(e=>"queue"===e.routing).slice(0,3).map(e=>(0,s.jsx)(v,{session:{...e,candidates:e.task_key?[e.task_key]:[]}},e.id))})]}),0===i.session_count&&!i.active&&(0,s.jsxs)("div",{className:"rounded-xl border py-16 text-center",style:{borderColor:"var(--rule)",background:"var(--surface)"},children:[(0,s.jsx)("p",{className:"text-[13px]",style:{color:"var(--ink-3)"},children:"No activity captured today"}),(0,s.jsx)("p",{className:"text-[11px] mt-1",style:{color:"var(--ink-4)"},children:"Start meridian to begin tracking"})]})]})}],72868)},65906,e=>{e.n(e.i(72868))}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17303,e=>{"use strict";var s=e.i(56916);let t=e=>{let s=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,s,t)=>t?t.toUpperCase():s.toLowerCase());return s.charAt(0).toUpperCase()+s.slice(1)},a=(...e)=>e.filter((e,s,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===s).join(" ").trim();var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let r=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:i="",children:c,iconNode:o,...d},u)=>(0,s.createElement)("svg",{ref:u,...n,width:t,height:t,stroke:e,strokeWidth:l?24*Number(r)/Number(t):r,className:a("lucide",i),...!c&&!(e=>{for(let s in e)if(s.startsWith("aria-")||"role"===s||"title"===s)return!0})(d)&&{"aria-hidden":"true"},...d},[...o.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(c)?c:[c]]));e.s(["default",0,(e,n)=>{let l=(0,s.forwardRef)(({className:l,...i},c)=>(0,s.createElement)(r,{ref:c,iconNode:n,className:a(`lucide-${t(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...i}));return l.displayName=t(e),l}],17303)},99963,e=>{"use strict";var s=e.i(80663);let t=(0,e.i(17303).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function a(){for(var e,s,t=0,a="",n=arguments.length;t<n;t++)(e=arguments[t])&&(s=function e(s){var t,a,n="";if("string"==typeof s||"number"==typeof s)n+=s;else if("object"==typeof s)if(Array.isArray(s)){var r=s.length;for(t=0;t<r;t++)s[t]&&(a=e(s[t]))&&(n&&(n+=" "),n+=a)}else for(a in s)s[a]&&(n&&(n+=" "),n+=a);return n}(e))&&(a&&(a+=" "),a+=s);return a}var n=e.i(89562);function r({taskKey:e,taskTitle:t,sessionType:n,routing:l,confidence:i,method:c}){let o=function(e){if(!e)return[];switch(e){case"prefilter_trivial":return[{label:"Hermes · pre-filter",deciding:!0}];case"llm_standalone":case"agent_tiebreak":return[{label:"Hermes · classification",deciding:!0}];default:return[{label:e,deciding:!0}]}}(c),d="number"==typeof i&&i>0?`${Math.round(100*i)}%`:null,u=e?d?`${e} \xb7 ${d}`:e:"overhead"===n?"overhead":"queue"===l?d?`queued \xb7 ${d}`:"queued":d?`no match \xb7 ${d}`:"no match";return(0,s.jsxs)("div",{className:"space-y-2 min-w-[200px]",children:[o.length>0?(0,s.jsx)("div",{className:"space-y-1",children:o.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,s.jsx)("span",{className:a("font-mono text-[10px] uppercase tracking-widest shrink-0",e.deciding?"text-[#4B4A47]":"text-[#C8C6C1]"),children:e.label}),(0,s.jsx)("span",{className:a("text-[10px] font-mono",e.deciding?"text-[#141414] font-medium":"text-[#C8C6C1]"),children:e.deciding?u:"→ escalated"})]},t))}):(0,s.jsx)("p",{className:"text-[11px] text-[#9B9A97]",children:"no classification data"}),e&&t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"border-t border-[#F0EFEC]"}),(0,s.jsx)("p",{className:"text-[11px] text-[#6B6A67] leading-snug max-w-[220px]",children:t})]}),l&&"auto"!==l&&(0,s.jsxs)("p",{className:"text-[10px] text-[#C8C6C1]",children:["routing: ",(0,s.jsx)("span",{className:"font-mono",children:l})]})]})}function l({children:e,...t}){return(0,s.jsxs)(n.Root,{children:[(0,s.jsx)(n.Trigger,{asChild:!0,children:e}),(0,s.jsx)(n.Portal,{children:(0,s.jsxs)(n.Content,{side:"top",align:"center",sideOffset:5,className:"z-50 rounded-lg border border-[#E8E6E1] bg-white px-3 py-2.5 shadow-md",children:[(0,s.jsx)(r,{...t}),(0,s.jsx)(n.Arrow,{className:"fill-white"})]})})]})}e.s(["default",0,function({taskKey:e,sessionType:n,routing:r,confidence:i,method:c,taskTitle:o,taskUrl:d,size:u="xs"}){if(!n)return null;let x="xs"===u?"text-[10px] px-1.5 py-0.5":"text-xs px-2 py-0.5",p={taskKey:e,taskTitle:o??null,sessionType:n,routing:r,confidence:i,method:c};if("overhead"===n)return(0,s.jsx)(l,{...p,children:(0,s.jsx)("span",{className:a("inline-flex items-center rounded-full font-medium cursor-default","bg-[#F0EFEC] text-[#9B9A97]",x),children:"overhead"})});if("task"===n&&"auto"===r&&e){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"font-mono",children:e}),d&&(0,s.jsx)(t,{className:"w-2.5 h-2.5 opacity-60"})]}),r=d?(0,s.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:a("inline-flex items-center gap-1 rounded-full font-medium hover:brightness-95 transition","bg-[#EBF0FB] text-[#3D5BB0] border border-[#D8E0F4]",x),onClick:e=>e.stopPropagation(),children:n}):(0,s.jsx)("span",{className:a("inline-flex items-center gap-1 rounded-full font-medium cursor-default","bg-[#EBF0FB] text-[#3D5BB0] border border-[#D8E0F4]",x),children:n});return(0,s.jsx)(l,{...p,children:r})}return"task"===n&&"queue"===r?(0,s.jsx)(l,{...p,children:(0,s.jsxs)("span",{className:a("inline-flex items-center gap-1 rounded-full font-medium cursor-default","bg-[#FEF9EC] text-[#92400E] border border-[#FDE68A]",x),children:[(0,s.jsx)("span",{className:"font-mono",children:e??"queued"}),(0,s.jsx)("span",{className:"opacity-60",children:"?"})]})}):"task"===n&&"skip"===r?(0,s.jsx)(l,{...p,children:(0,s.jsx)("span",{className:a("inline-flex items-center rounded-full font-medium cursor-default","bg-[#F8F7F4] text-[#C8C6C1] border border-[#F0EFEC]",x),children:(0,s.jsx)("span",{className:"font-mono",children:"∅"})})}):null}],99963)},72868,e=>{"use strict";var s=e.i(80663),t=e.i(56916),a=e.i(29987),n=e.i(99963);let r={coding:"#3B6FE0",code_review:"#7C3AED",meeting:"#D97706",communication:"#059669",design:"#DB2777",documentation:"#0891B2",planning:"#C4822A",deployment_devops:"#DC2626",research:"#4F46E5",idle_personal:"#78716C"};function l({data:e}){let n=e=>new Date(e).getHours()+new Date(e).getMinutes()/60,i=(0,t.useMemo)(()=>{let s={};e.sessions.forEach(e=>{s[e.cat]=(s[e.cat]||0)+e.dur}),e.active&&(s[e.active.cat]=(s[e.active.cat]||0)+e.active.elapsed_s);let t=Object.values(s).reduce((e,s)=>e+s,0)||1;return Object.entries(s).map(([e,s])=>({cat:e,seconds:s,percentage:s/t*100,label:a.CATS[e]?.label||e})).sort((e,s)=>s.seconds-e.seconds)},[e]),c=(0,t.useMemo)(()=>{let s=[...e.sessions.map(e=>({kind:"session",startH:n(e.started_at),dur:e.dur})),...e.active?[{kind:"session",startH:n(e.active.started_at),dur:e.active.elapsed_s}]:[],...e.gaps.map(e=>({kind:"gap",startH:n(e.started_at),dur:e.dur}))].sort((e,s)=>e.startH-s.startH),t=0,a=0;return s.forEach(e=>{"gap"===e.kind&&e.dur>300?(t=Math.max(t,a),a=0):"session"===e.kind&&(a+=e.dur)}),Math.max(t,a)},[e]),o=(0,t.useMemo)(()=>{let e=0;return i.map(s=>{let t=e,a=s.percentage/100*360,n=t+a,r=(t-90)*Math.PI/180,l=(n-90)*Math.PI/180,i=+(a>180),c=`M ${100+85*Math.cos(r)} ${100+85*Math.sin(r)} A 85 85 0 ${i} 1 ${100+85*Math.cos(l)} ${100+85*Math.sin(l)} L ${100+58*Math.cos(l)} ${100+58*Math.sin(l)} A 58 58 0 ${i} 0 ${100+58*Math.cos(r)} ${100+58*Math.sin(r)} Z`;return e=n,{...s,path:c}})},[i]),[d,u]=(0,t.useState)(null);return(0,s.jsx)(a.Card,{className:"p-6",children:(0,s.jsxs)("div",{className:"flex items-center gap-8",children:[(0,s.jsx)("div",{className:"flex-1 flex justify-center",children:(0,s.jsxs)("div",{className:"relative",style:{width:200,height:200},children:[(0,s.jsx)("svg",{width:"200",height:"200",viewBox:"0 0 200 200",children:o.map(e=>(0,s.jsx)("path",{d:e.path,className:`cat-${e.cat}`,opacity:d===e.cat?1:null===d?.95:.35,style:{cursor:"pointer",transition:"opacity 0.2s ease, transform 0.15s ease",transformOrigin:"100px 100px",transform:d===e.cat?"scale(1.05)":"scale(1)"},onMouseEnter:()=>u(e.cat),onMouseLeave:()=>u(null)},e.cat))}),(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[(0,s.jsx)("p",{className:"font-mono tnum text-[28px] leading-none",style:{color:"var(--ink)"},children:(0,a.fmtDur)(e.focus_s)}),(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-wide mt-1",style:{color:"var(--ink-3)"},children:"active"})]})]})}),(0,s.jsxs)("div",{className:"flex-1 space-y-4",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3 pb-4 rule-b",style:{borderBottomColor:"var(--rule)"},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-wide mb-1",style:{color:"var(--ink-3)"},children:"Longest block"}),(0,s.jsx)("p",{className:"font-mono tnum text-[20px] leading-none",style:{color:"var(--success)"},children:(0,a.fmtDur)(c)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-wide mb-1",style:{color:"var(--ink-3)"},children:"Idle time"}),(0,s.jsx)("p",{className:"font-mono tnum text-[20px] leading-none",style:{color:"var(--ink-3)"},children:(0,a.fmtDur)(e.idle_s)})]})]}),(0,s.jsx)("div",{className:"space-y-0.5",children:i.map(e=>{let t=d===e.cat;return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 py-1.5 px-2 rounded-md transition-all cursor-pointer",style:{background:t?"var(--tint)":"transparent",borderLeft:`3px solid ${t?r[e.cat]??"var(--accent)":"transparent"}`,opacity:t||null===d?1:.45,paddingLeft:t?"6px":"8px"},onMouseEnter:()=>u(e.cat),onMouseLeave:()=>u(null),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[(0,s.jsx)(a.CatDot,{cat:e.cat,size:9}),(0,s.jsx)("span",{className:"text-[12px] truncate font-medium",style:{color:t?"var(--ink)":"var(--ink-2)"},children:e.label})]}),(0,s.jsxs)("span",{className:"text-[12px] font-mono tnum font-semibold",style:{color:t?"var(--ink)":"var(--ink-3)"},children:[e.percentage.toFixed(0),"%"]})]},e.cat)})})]})]})})}let i="var(--ink)",c="var(--rule-2)",o="#3B6FE0",d=e=>new Date(e).getTime();function u({data:e}){let[n,r]=(0,t.useState)(null),l=(0,t.useMemo)(()=>{let s=e.presence_segments.map(e=>({startMs:d(e.started_at),endMs:d(e.ended_at),kind:"active",label:"Active"})),t=e.gaps.filter(e=>"user_idle"===e.kind).map(e=>({startMs:d(e.started_at),endMs:d(e.ended_at),kind:"idle",label:"Idle"})),a=e.agent_segments.map(e=>({startMs:d(e.started_at),endMs:d(e.ended_at),kind:"agent",label:"Claude / Codex"})),n=[...s,...t,...a].filter(e=>Number.isFinite(e.startMs)&&e.endMs>e.startMs);if(0===n.length)return null;let r=36e5*Math.floor(Math.min(...n.map(e=>e.startMs))/36e5),l=36e5*Math.ceil(Math.max(...n.map(e=>e.endMs))/36e5),i=Math.max(36e5,l-r),c=[];for(let e=r;e<=l;e+=36e5)c.push({left:(e-r)/i*100,label:new Date(e).getHours().toString().padStart(2,"0")});return{active:s,idle:t,agent:a,ticks:c,pos:e=>({left:(e.startMs-r)/i*100,width:Math.max(.4,(e.endMs-e.startMs)/i*100)})}},[e]);if(!l)return null;let x=(e,t,a,i,c=!1)=>{let{left:o,width:d}=l.pos(e);return(0,s.jsx)("div",{onMouseEnter:()=>r(e),onMouseLeave:()=>r(s=>s===e?null:s),className:"absolute cursor-pointer transition-opacity",style:{left:`${o}%`,width:`${d}%`,top:t,height:a,background:i,borderRadius:c?3:2,opacity:n&&n!==e?.4:1}},`${e.kind}-${e.startMs}`)};return(0,s.jsxs)("div",{className:"select-none",children:[(0,s.jsx)("div",{className:"h-6 mb-1 flex items-end",children:(()=>{if(!n)return null;let e=e=>new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return(0,s.jsxs)("div",{className:"text-[11px] font-mono tnum px-2 py-1 rounded-md inline-flex gap-2 items-center",style:{background:"var(--ink)",color:"var(--paper)"},children:[(0,s.jsx)("span",{style:{opacity:.7},children:n.label}),(0,s.jsxs)("span",{children:[e(n.startMs),"–",e(n.endMs)]}),(0,s.jsxs)("span",{style:{opacity:.7},children:["· ",(0,a.fmtDur)(Math.round((n.endMs-n.startMs)/1e3))]})]})})()}),(0,s.jsxs)("div",{className:"relative",style:{height:54},children:[l.ticks.map((e,t)=>(0,s.jsx)("div",{className:"absolute top-0",style:{left:`${e.left}%`,height:40,width:1,background:"var(--rule)"}},`g${t}`)),l.idle.map(e=>x(e,6,18,c)),l.active.map(e=>x(e,6,18,i)),l.agent.map(e=>x(e,27,11,o,!0)),l.ticks.map((e,t)=>(0,s.jsx)("div",{className:"absolute font-mono text-[9px]",style:{left:`${e.left}%`,top:42,color:"var(--ink-4)",transform:"translateX(-50%)"},children:e.label},`l${t}`))]}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px]",style:{color:"var(--ink-3)"},children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)("i",{style:{width:10,height:10,background:i,borderRadius:2,display:"inline-block"}})," Active"]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)("i",{style:{width:10,height:10,background:c,borderRadius:2,display:"inline-block"}})," Idle"]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)("i",{style:{width:10,height:6,background:o,borderRadius:2,display:"inline-block"}})," Claude / Codex"]}),(0,s.jsx)("span",{style:{color:"var(--ink-4)"},children:"· agent under an idle stretch = autonomous"})]})]})}let x=(e,s)=>s>0?Math.round(e/s*100):0;function p({label:e,value:t,hint:a}){return(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-4 py-2",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("span",{className:"text-[13px]",style:{color:"var(--ink)"},children:e}),a&&(0,s.jsx)("span",{className:"text-[11px] ml-2",style:{color:"var(--ink-3)"},children:a})]}),(0,s.jsx)("span",{className:"font-mono tnum text-[14px] whitespace-nowrap",style:{color:"var(--ink)"},children:t})]})}function m(e){let{focus_s:n,idle_s:r,agent_s:l,supervised_s:i,autonomous_s:c,switch_count:o}=e,[d,u]=(0,t.useState)(null),m=[{key:"focus",label:"Focus",value:(0,a.fmtDur)(n),note:"active"},{key:"ai",label:"AI-assisted",value:`${x(i,n)}%`,note:"of focus"},{key:"switches",label:"Switches",value:String(o),note:"context switches"}];return(0,s.jsxs)("div",{className:"rule-t rule-b",style:{borderColor:"var(--rule)"},children:[(0,s.jsx)("div",{className:"grid grid-cols-3",children:m.map((e,t)=>{let a=d===e.key;return(0,s.jsxs)("button",{onClick:()=>u(a?null:e.key),className:`text-left py-4 px-5 transition-colors ${t>0?"rule-l":""}`,style:{borderColor:"var(--rule)",background:a?"var(--tint)":"transparent"},"aria-expanded":a,children:[(0,s.jsxs)("p",{className:"text-[10px] uppercase tracking-[0.16em] mb-2 flex items-center gap-1.5",style:{color:"var(--ink-3)"},children:[e.label,(0,s.jsx)("span",{className:"text-[9px]",style:{color:"var(--ink-4)",transform:a?"rotate(180deg)":"none",transition:"transform 0.15s"},children:"▾"})]}),(0,s.jsx)("p",{className:"font-mono tnum text-[20px] leading-none",style:{color:"var(--ink)"},children:e.value}),(0,s.jsx)("p",{className:"text-[11px] mt-1.5",style:{color:"var(--ink-3)"},children:e.note})]},e.key)})}),d&&(0,s.jsx)("div",{className:"px-5 py-3 rule-t",style:{borderTopColor:"var(--rule)",background:"var(--surface)"},children:(0,s.jsx)("div",{className:"max-w-md",children:(e=>{switch(e){case"focus":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{label:"Active",value:(0,a.fmtDur)(n),hint:"you, at the keyboard"}),(0,s.jsx)(p,{label:"Idle / away",value:(0,a.fmtDur)(r),hint:"no input detected"}),(0,s.jsx)(p,{label:"AI-assisted",value:`${(0,a.fmtDur)(i)} \xb7 ${x(i,n)}%`,hint:"of your active time"})]});case"ai":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{label:"Supervised",value:(0,a.fmtDur)(i),hint:"agent ran while you were active"}),(0,s.jsx)(p,{label:"Autonomous",value:(0,a.fmtDur)(c),hint:"agent ran while you were away"}),(0,s.jsx)(p,{label:"Agent total",value:(0,a.fmtDur)(l),hint:"engaged Claude / Codex time"})]});case"switches":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{label:"Context switches",value:String(o),hint:"foreground app changes over 15s"}),(0,s.jsx)("p",{className:"text-[12px] leading-relaxed pt-1",style:{color:"var(--ink-3)"},children:"Lower is deeper. Brief sub-15s window flicker is filtered out so this reflects real context shifts, not capture noise."})]})}})(d)})})]})}function h({active:e,taskKey:t}){let n=(0,a.useTick)(1),r=e.elapsed_s+n,l=Math.max(1,Math.floor(r/30));return(0,s.jsxs)(a.Card,{className:"overflow-hidden rise",style:{borderColor:"var(--rule-2)"},children:[(0,s.jsx)("div",{className:"h-[3px] w-full",style:{background:"var(--rule)"},children:(0,s.jsx)("div",{className:"h-full blink",style:{width:"32%",background:"var(--live)"}})}),(0,s.jsxs)("div",{className:"p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)(a.LiveDot,{size:8}),(0,s.jsxs)("span",{className:"text-[10px] uppercase tracking-[0.2em]",style:{color:"var(--ink-3)"},children:["Live · captured ",l," frame",1===l?"":"s"," ago"]}),(0,s.jsxs)("span",{className:"ml-auto text-[11px]",style:{color:"var(--ink-3)"},children:[(0,s.jsx)("span",{className:"font-mono tnum",children:(0,a.fmtClock)(e.started_at)})," → now"]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-5",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-3 flex-wrap",children:[(0,s.jsx)("p",{className:"font-serif text-[28px] leading-none italic",style:{color:"var(--ink)"},children:"You're on"}),t&&(0,s.jsx)(a.TaskKey,{keyId:t,big:!0}),(0,s.jsx)("span",{className:"font-serif text-[28px] leading-none italic truncate",style:{color:"var(--ink)"},children:"idle_personal"!==e.cat?a.CATS[e.cat]?.label?.toLowerCase()??e.cat:"an uncategorized session"})]}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-x-5 gap-y-2 text-[13px]",style:{color:"var(--ink-2)"},children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,s.jsx)(a.AppGlyph,{app:e.app,size:20}),(0,s.jsx)("span",{style:{color:"var(--ink)"},children:e.app})]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)(a.CatDot,{cat:e.cat}),(0,s.jsx)("span",{children:a.CATS[e.cat]?.label??e.cat})]})]}),e.explain&&(0,s.jsxs)("p",{className:"mt-4 text-[12px] leading-relaxed",style:{color:"var(--ink-3)"},children:[(0,s.jsx)("span",{style:{color:"var(--ink-2)"},children:"Why this task"}),(0,s.jsx)("span",{className:"mx-2",style:{color:"var(--ink-4)"},children:"·"}),e.explain]})]}),(0,s.jsxs)("div",{className:"text-right shrink-0 pl-4 rule-l",style:{borderLeftColor:"var(--rule)"},children:[(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-[0.2em]",style:{color:"var(--ink-3)"},children:"elapsed"}),(0,s.jsx)("p",{className:"font-mono tnum text-[40px] leading-none mt-2",style:{color:"var(--ink)"},children:(0,a.fmtDurDecimal)(r)}),(0,s.jsxs)("div",{className:"mt-3 flex items-center justify-end gap-1.5",children:[(0,s.jsx)(a.ConfidenceRing,{value:e.confidence,size:14}),(0,s.jsxs)("span",{className:"text-[11px] font-mono tnum",style:{color:"var(--ink-3)"},children:[Math.round(100*e.confidence),"%"]})]})]})]}),e.titles.length>0&&(0,s.jsx)("div",{className:"mt-5 flex flex-wrap gap-1.5",children:e.titles.slice(0,5).map(e=>(0,s.jsx)("span",{className:"text-[11px] font-mono px-2 py-1 rounded-md tnum",style:{background:"var(--surface-2)",color:"var(--ink-2)",border:"1px solid var(--rule)"},children:e},e))}),(0,s.jsxs)("div",{className:"mt-5 pt-4 rule-t flex items-center justify-between gap-3",style:{borderTopColor:"var(--rule)"},children:[(0,s.jsx)("p",{className:"text-[12px]",style:{color:"var(--ink-2)"},children:"Log this session to Jira when it closes?"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{className:"text-[12px] px-3 py-1.5 rounded-md",style:{color:"var(--ink-3)"},children:"Skip"}),(0,s.jsx)("button",{className:"text-[12px] px-3 py-1.5 rounded-md font-medium",style:{color:"var(--paper)",background:"var(--ink)"},children:t?`Log to ${t} →`:"Assign task →"})]})]})]})]})}function f({bucket:e}){let[r,l]=(0,t.useState)(!1),i=(0,t.useMemo)(()=>{let s={};return e.sessions.forEach(e=>{s[e.cat]=(s[e.cat]??0)+e.dur}),Object.entries(s).map(([e,s])=>({cat:e,value:s}))},[e.sessions]),c=e.day_total_s>0?(e.total_s/e.day_total_s*100).toFixed(0):"0";return(0,s.jsxs)("div",{style:{background:"var(--surface)"},children:[(0,s.jsxs)("button",{onClick:()=>l(e=>!e),className:"w-full text-left grid grid-cols-[auto_1fr_200px_auto] items-center gap-5 px-5 py-4 transition-colors",style:{background:r?"var(--surface-2)":"var(--surface)"},children:[(0,s.jsx)("span",{className:"font-mono tnum text-[12px] w-[72px]",style:{color:"var(--ink-2)"},children:e.isOverhead||e.isUntracked||e.isQueue?(0,s.jsx)("span",{style:{color:"var(--ink-3)"},children:e.isOverhead?"overhead":e.isUntracked?"untracked":"needs review"}):(0,s.jsx)(a.TaskKey,{keyId:e.key})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[14px] truncate",style:{color:"var(--ink)"},children:e.title}),(0,s.jsxs)("p",{className:"text-[11px] mt-1.5",style:{color:"var(--ink-3)"},children:[e.sessions.length," session",1===e.sessions.length?"":"s",i.length>0&&` \xb7 ${i.slice(0,3).map(e=>a.CATS[e.cat]?.short??e.cat).join(" + ")}`]})]}),(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(a.SegBar,{segments:i.length?i:[{value:1,color:"var(--rule-2)"}],height:3})}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsx)("p",{className:"font-mono tnum text-[18px] leading-none",style:{color:"var(--ink)"},children:(0,a.fmtDur)(e.total_s)}),(0,s.jsxs)("p",{className:"text-[11px] mt-1.5",style:{color:"var(--ink-3)"},children:[c,"% of day"]})]})]}),r&&(0,s.jsx)("div",{className:"px-5 pb-4 pt-1 rule-t",style:{borderTopColor:"var(--rule)"},children:(0,s.jsx)("div",{className:"grid grid-cols-1 gap-px",style:{background:"var(--rule)"},children:e.sessions.map(e=>(0,s.jsxs)("div",{className:"grid grid-cols-[auto_1fr_auto_auto] items-center gap-4 py-2.5 px-3",style:{background:"var(--surface)"},children:[(0,s.jsx)(a.AppGlyph,{app:e.app,size:20}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[13px] truncate",style:{color:"var(--ink)"},children:e.titles[0]||"—"}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,s.jsx)("span",{className:"font-mono tnum text-[11px]",style:{color:"var(--ink-3)"},children:(0,a.fmtClock)(e.started_at)}),(0,s.jsx)(a.CatDot,{cat:e.cat}),(0,s.jsx)("span",{className:"text-[11px]",style:{color:"var(--ink-3)"},children:a.CATS[e.cat]?.short??e.cat})]})]}),(0,s.jsx)(n.default,{taskKey:e.task_key,sessionType:e.session_type,routing:e.routing,confidence:e.link_confidence,method:e.link_method,size:"xs"}),(0,s.jsx)("span",{className:"font-mono tnum text-[12px]",style:{color:"var(--ink-2)"},children:(0,a.fmtDur)(e.dur)})]},e.id))})})]})}function v({session:e}){return(0,s.jsxs)("div",{className:"grid grid-cols-[auto_1fr_auto_auto] items-center gap-5 px-5 py-4 rule-t",style:{borderTopColor:"var(--rule)"},children:[(0,s.jsx)(a.AppGlyph,{app:e.app,size:24}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[13px] truncate",style:{color:"var(--ink)"},children:e.titles[0]||e.app}),(0,s.jsxs)("p",{className:"text-[11px] mt-1",style:{color:"var(--ink-3)"},children:[(0,s.jsx)("span",{className:"font-mono tnum",children:(0,a.fmtClock)(e.started_at)}),e.candidates&&e.candidates.length>0&&(0,s.jsx)("span",{className:"ml-2 text-[11px]",style:{color:"var(--accent)"},children:"· needs review"})]})]}),(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:e.candidates?.map(e=>(0,s.jsx)(a.TaskKey,{keyId:e},e))}),(0,s.jsx)("span",{className:"font-mono tnum text-[12px]",style:{color:"var(--ink-2)"},children:(0,a.fmtDur)(e.dur)})]})}e.s(["default",0,function({onNavigate:e}){let n,r,[i,c]=(0,t.useState)(null);if((0,t.useEffect)(()=>{fetch("/api/today").then(e=>e.json()).then(c).catch(()=>{});let e=setInterval(()=>fetch("/api/today").then(e=>e.json()).then(c).catch(()=>{}),3e4);return()=>clearInterval(e)},[]),!i)return(0,s.jsxs)("div",{className:"space-y-12",children:[(0,s.jsx)("header",{className:"rise",children:(0,s.jsx)("h1",{className:"font-serif leading-[0.95] tracking-tight",style:{color:"var(--ink)"},children:"Today"})}),(0,s.jsx)("p",{className:"text-[13px]",style:{color:"var(--ink-3)"},children:"Loading…"})]});let o=i.focus_s,d=new Map;function x(e,s){d.has(e)||d.set(e,{key:e,title:"",sessions:[],total_s:0,cats:new Set,day_total_s:o,isOverhead:!1,isUntracked:!1,isQueue:!1});let t=d.get(e);t.sessions.push(s),t.total_s+=s.dur,t.cats.add(s.cat)}i.sessions.forEach(e=>{let s={id:e.id,app:e.app,started_at:e.started_at,dur:e.dur,cat:e.cat,titles:e.titles,task_key:e.task_key,session_type:e.session_type,link_method:e.link_method,link_confidence:e.link_confidence,routing:e.routing};e.task_key?x(e.task_key,s):"queue"===e.routing?x("_queue",s):"overhead"===e.session_type?x("_overhead",s):x("_untracked",s)}),i.active&&x("_active",{id:"active",app:i.active.app,started_at:i.active.started_at,dur:i.active.elapsed_s,cat:i.active.cat,titles:i.active.titles,task_key:null,session_type:null,link_method:null,link_confidence:null,routing:null});let p=Array.from(d.values()).map(e=>({...e,isOverhead:"_overhead"===e.key,isUntracked:"_untracked"===e.key,isQueue:"_queue"===e.key,title:"_overhead"===e.key?"Overhead — comms, mail, planning":"_untracked"===e.key?"Untracked — personal, idle, unclassified":"_queue"===e.key?"Sessions waiting to be assigned":"_active"===e.key?"Current session":e.key,day_total_s:o})).sort((e,s)=>{let t=e=>"_queue"===e?10:"_untracked"===e?9:"_overhead"===e?8:"_active"===e?-1:0;return t(e.key)-t(s.key)||s.total_s-e.total_s}),g=i.sessions.filter(e=>"queue"===e.routing).length,y=new Date().toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"});return(0,s.jsxs)("div",{className:"space-y-12",children:[(0,s.jsxs)("header",{className:"rise",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between mb-1",children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-[0.2em]",style:{color:"var(--ink-3)"},children:y}),i.active&&(0,s.jsxs)("p",{className:"text-[11px]",style:{color:"var(--ink-3)"},children:["Last capture ",(0,s.jsx)("span",{className:"font-mono tnum",children:(0,a.fmtClock)(i.active.started_at)})]})]}),(0,s.jsx)("h1",{className:"font-serif text-[88px] leading-[0.95] tracking-tight",style:{color:"var(--ink)"},children:"Today"})]}),(n=function(e){let{focus_s:s,supervised_s:t,autonomous_s:n,switch_count:r,active:l}=e;if(s<300&&!l)return null;let i=s>0?Math.round(t/s*100):0,c=`${(0,a.fmtDur)(s)} focused`;i>=5&&(c+=`, ${i}% of it alongside Claude`);let o=[];n>=600&&o.push(`plus ${(0,a.fmtDur)(n)} of autonomous agent work while you were away`);let d=s/60;return d>60&&r>d/4&&o.push(`a fragmented day — ${r} context switches`),o.length?`${c} — ${o.join("; ")}.`:`${c}.`}(i),r=function(e){let{sessions:s,active:t}=e;if(0===s.length&&!t)return null;let n=new Map;s.forEach(e=>{let s=e.task_key;if(!s)return;n.has(s)||n.set(s,{dur:0,cats:[]});let t=n.get(s);t.dur+=e.dur,t.cats.includes(e.cat)||t.cats.push(e.cat)});let r=e=>!e.task_key&&"queue"!==e.routing,l=s.filter(e=>r(e)&&"overhead"===e.session_type).reduce((e,s)=>e+s.dur,0),i=s.filter(e=>r(e)&&"overhead"!==e.session_type).reduce((e,s)=>e+s.dur,0),c=Array.from(n.entries()).sort((e,s)=>s[1].dur-e[1].dur).slice(0,3);if(0===c.length&&l+i<600&&!t)return null;let o=[];if(c.forEach(([e,s],t)=>{let n=(0,a.fmtDur)(s.dur);if(0===t){var r,l;let t;o.push(`${(r=s.cats,l=s.dur,"coding"===(t=r[0])?l>3600?"Deep on":"Coding on":"code_review"===t?"Reviewing":"design"===t?"Designing":"documentation"===t?"Docs for":"planning"===t?"Planning":"meeting"===t?"Meetings around":"communication"===t?"Comms on":"research"===t?"Researching":"deployment_devops"===t?"Deploying":"Working on")} ${e} for ${n}`)}else o.push(`${n} on ${e}`)}),l>900&&o.push(`${(0,a.fmtDur)(l)} of overhead`),i>900&&o.push(`${(0,a.fmtDur)(i)} untracked`),t){let e=a.CATS[t.cat]?.label?.toLowerCase()??t.cat;o.push(c.length>0?`currently in ${e}`:`started ${e} at ${(0,a.fmtClock)(t.started_at)}`)}return o.length>0?o.join(", ")+".":null}(i),n||i.sessions.length>0||i.active?(0,s.jsxs)("section",{className:"rise space-y-5",children:[n&&(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-[0.18em] mb-3",style:{color:"var(--ink-3)"},children:"Today at a glance"}),(0,s.jsx)("p",{className:"font-serif text-[32px] leading-[1.15]",style:{color:"var(--ink)",textWrap:"pretty"},children:n})]}),(i.sessions.length>0||i.active)&&(0,s.jsx)(a.Card,{className:"p-6",children:(0,s.jsx)(u,{data:i})}),r&&(0,s.jsx)("p",{className:"text-[14px] leading-relaxed",style:{color:"var(--ink-2)",textWrap:"pretty"},children:r})]}):null),i.active&&(0,s.jsx)(h,{active:i.active,taskKey:i.sessions.filter(e=>e.task_key).at(-1)?.task_key}),(0,s.jsx)(m,{focus_s:i.focus_s,idle_s:i.idle_s,agent_s:i.agent_s,supervised_s:i.supervised_s,autonomous_s:i.autonomous_s,switch_count:i.switch_count}),p.length>0&&(0,s.jsxs)("section",{children:[(0,s.jsx)(a.SectionHead,{kicker:"By task",title:"Where your time went",right:(0,s.jsx)("button",{onClick:()=>e?.("tasks"),className:"text-[12px]",style:{color:"var(--ink-3)"},children:"Open Tasks →"})}),(0,s.jsx)("div",{className:"space-y-px rule rounded-xl overflow-hidden border",style:{borderColor:"var(--rule)"},children:p.map(e=>(0,s.jsx)(f,{bucket:e},e.key))})]}),(i.sessions.length>0||i.active)&&(0,s.jsxs)("section",{children:[(0,s.jsx)(a.SectionHead,{kicker:"Shape of the day",title:"Activity patterns & insights"}),(0,s.jsx)(l,{data:i})]}),g>0&&(0,s.jsxs)("section",{children:[(0,s.jsx)(a.SectionHead,{kicker:"Needs review",title:(0,s.jsxs)(s.Fragment,{children:["Unassigned sessions ",(0,s.jsx)("span",{className:"ml-2 font-mono tnum text-[15px]",style:{color:"var(--accent)"},children:g})]}),right:(0,s.jsx)("button",{onClick:()=>e?.("queue"),className:"text-[12px]",style:{color:"var(--ink-3)"},children:"Review queue →"})}),(0,s.jsx)(a.Card,{children:i.sessions.filter(e=>"queue"===e.routing).slice(0,3).map(e=>(0,s.jsx)(v,{session:{...e,candidates:e.task_key?[e.task_key]:[]}},e.id))})]}),0===i.session_count&&!i.active&&(0,s.jsxs)("div",{className:"rounded-xl border py-16 text-center",style:{borderColor:"var(--rule)",background:"var(--surface)"},children:[(0,s.jsx)("p",{className:"text-[13px]",style:{color:"var(--ink-3)"},children:"No activity captured today"}),(0,s.jsx)("p",{className:"text-[11px] mt-1",style:{color:"var(--ink-4)"},children:"Start meridian to begin tracking"})]})]})}],72868)},65906,e=>{e.n(e.i(72868))}]);
|
package/ui/ui/.next/BUILD_ID
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fgwN26YOmxupyk7wZVBR0
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/fgwN26YOmxupyk7wZVBR0/_buildManifest.js",
|
|
11
|
+
"static/fgwN26YOmxupyk7wZVBR0/_ssgManifest.js",
|
|
12
|
+
"static/fgwN26YOmxupyk7wZVBR0/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0dot4ieb6jn6a.js",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"dynamicRoutes": {},
|
|
103
103
|
"notFoundRoutes": [],
|
|
104
104
|
"preview": {
|
|
105
|
-
"previewModeId": "
|
|
106
|
-
"previewModeSigningKey": "
|
|
107
|
-
"previewModeEncryptionKey": "
|
|
105
|
+
"previewModeId": "33a20f23bb0a1f5aa37796e6d6f09850",
|
|
106
|
+
"previewModeSigningKey": "293b97ef801c05f77cb28825f54b743367df6691182820be4a1de871118fb1f8",
|
|
107
|
+
"previewModeEncryptionKey": "e924d9a8233be33dd5da085c02a33f9b25432176a065343d7a86546d0c7e230b"
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0dot4ieb6jn6a.js"/><script src="/_next/static/chunks/07w.nc21rbgvr.js" async=""></script><script src="/_next/static/chunks/0k6e32~luaz90.js" async=""></script><script src="/_next/static/chunks/turbopack-07spa5_ifkkbo.js" async=""></script><script src="/_next/static/chunks/0jgj_x4bo_4cp.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0dot4ieb6jn6a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[15838,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"default\"]\n3:I[7840,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"default\"]\n4:I[22556,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[22556,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"ViewportBoundary\"]\na:I[22556,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"MetadataBoundary\"]\nc:I[32435,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0dot4ieb6jn6a.js"/><script src="/_next/static/chunks/07w.nc21rbgvr.js" async=""></script><script src="/_next/static/chunks/0k6e32~luaz90.js" async=""></script><script src="/_next/static/chunks/turbopack-07spa5_ifkkbo.js" async=""></script><script src="/_next/static/chunks/0jgj_x4bo_4cp.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0dot4ieb6jn6a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[15838,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"default\"]\n3:I[7840,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"default\"]\n4:I[22556,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[22556,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"ViewportBoundary\"]\na:I[22556,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"MetadataBoundary\"]\nc:I[32435,[\"/_next/static/chunks/0jgj_x4bo_4cp.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"fgwN26YOmxupyk7wZVBR0\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
|