@ancha-labs/cli 0.4.8 → 0.4.9

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.
@@ -428,7 +428,6 @@ main{margin:10px 10px 10px 240px;padding:24px 28px 36px;min-height:calc(100vh -
428
428
  .metric-grid .metric-series .metric span{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}
429
429
  .metric-grid .metric-series .chart{height:auto;margin-top:4px}
430
430
  .metric-grid .metric-series .chart text{font-size:20px}
431
- .tool-limits{margin:0;padding-left:18px;font-size:12.5px;line-height:1.55;color:#5e5d59}
432
431
  .file-text{margin:6px 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#faf9f5;font-size:13px}
433
432
  .file-text p{margin:0}
434
433
  @media(max-width:1100px){.tool-page{grid-template-columns:minmax(0,1fr)}.tool-aside{position:static}}
@@ -514,3 +513,247 @@ body.navigating main{opacity:.55;transition:opacity .15s .25s;cursor:progress}
514
513
  @media (max-width:560px){.view-banner{flex-direction:column;align-items:flex-start}}
515
514
  /* A world's starting data before any run (SPEC-027) */
516
515
  .world-data-note{margin:-12px 0 20px;color:var(--muted);font-size:13px}.world-data-tabs{display:flex;flex-wrap:wrap;gap:4px 22px}.world-data-tabs a{gap:8px;align-items:center}.world-data-logo{display:inline-flex;width:16px;height:16px}.world-data-logo svg,.world-data-logo img{width:16px;height:16px}.folder-scenes{margin-top:36px}.folder-scenes .world-catalog-item p{overflow-wrap:anywhere;font-size:12px}.ww-world-actions .button-link{color:var(--ink)}
516
+
517
+ /* A run title can be one long id: it wraps instead of widening the page. Skipped checks are neither pass nor fail. */
518
+ .aw-header h1,.ww-header h1,.page-head h1{overflow-wrap:anywhere}
519
+ .aw-checks li.skipped .aw-check-mark{color:var(--neutral)}
520
+ .aw-check-tag{margin-left:8px;padding:1px 6px;border-radius:4px;background:var(--raised);color:var(--muted);font-size:11px;font-weight:500}
521
+ /* SPEC-046: Tools, a tool, Agents, Settings, Help */
522
+ .catalog-head h1{font-size:27px;line-height:1.25}.catalog-head .page-meta{font-size:12.5px}
523
+ .tools-catalog{min-width:0}.tools-search{display:block;max-width:460px;margin:0 0 12px}.tools-search input,.endpoint-search input{height:36px;min-height:0;border:1px solid var(--input-line);border-radius:8px;background:var(--surface);font-size:13px;padding:0 12px}
524
+ .tool-categories{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.tool-categories button{display:inline-flex;gap:6px;align-items:center;min-height:28px;padding:3px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:12px;color:var(--muted)}.tool-categories button span{font-variant-numeric:tabular-nums;color:var(--faint)}.tool-categories button[aria-pressed=true]{background:#EFECE3;border-color:#CCC7B9;color:var(--ink);font-weight:600}.tools-result-count{margin:0 0 10px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
525
+ .tools-catalog .tools-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}.tools-catalog .tool-card{min-width:0;padding:11px 12px;gap:5px;border-radius:12px;transition:border-color .15s ease,box-shadow .15s ease}.tools-catalog .tool-card:hover{transform:none}.tools-catalog .tool-card-head{gap:9px;min-width:0}.tools-catalog .catalog-brand{width:28px;height:28px;flex:none}.tools-catalog .tool-card-head strong{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tools-catalog .tool-card-foot{display:flex;justify-content:flex-start;gap:7px;margin:0;padding:0;border:0;overflow:hidden;white-space:nowrap;font-size:11.5px;line-height:18px;font-variant-numeric:tabular-nums}.tools-catalog .tool-card-foot span{flex:none}.tools-catalog .tool-card-foot span+span:before{content:'·';margin-right:7px;color:var(--faint)}.tools-catalog .tool-card-foot span:last-child{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.tools-catalog .tool-card p{font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
526
+ .catalog-scroll{min-width:0;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);overscroll-behavior-x:contain}.catalog-scroll:focus-visible{outline:2px solid #D97757;outline-offset:2px}.catalog-table{width:100%;margin:0;border-collapse:collapse;font-size:13px;table-layout:fixed}.catalog-table th{height:34px;text-transform:none;letter-spacing:0;padding:6px 12px;color:var(--muted);font-size:12px;font-weight:500;text-align:left;background:var(--surface);border-bottom:1px solid var(--line);white-space:nowrap}.catalog-table td{height:44px;padding:6px 12px;border-bottom:1px solid var(--row-line);vertical-align:middle;color:var(--secondary)}.catalog-table tbody tr:last-child td{border-bottom:0}.catalog-table tbody tr:hover td{background:#FCFBF8}.catalog-table code{padding:0;border:0;background:none;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--secondary)}.catalog-copy{display:flex;gap:5px;align-items:center;min-width:0}.catalog-cut{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.catalog-copy>.catalog-cut{flex:1}.catalog-table .num{text-align:right;font-variant-numeric:tabular-nums}
527
+ .tool-page{grid-template-columns:minmax(0,1fr) minmax(340px,400px);gap:24px}.tool-aside{min-width:0;position:static;gap:16px}.tool-aside-section{background:var(--surface);padding:14px;min-width:0}.tool-main-title,.tool-aside-section h2{font-family:Fraunces,Georgia,serif;font-size:19px;font-weight:500}.tool-aside-section>.catalog-scroll{border-radius:8px}.endpoint-search{display:block;margin:0 0 10px}.endpoint-scroll{max-height:564px}.endpoint-table{min-width:360px}.endpoint-table th{position:sticky;top:0;z-index:1}.endpoint-table th:first-child{width:76px}.endpoint-table td{height:44px}.endpoint-table td:last-child code{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.endpoint-table .method-pill{display:inline-block;padding:1px 5px;border:1px solid var(--line);border-radius:4px;background:var(--raised);font-size:11px}.connect-table{min-width:360px}.connect-table th:first-child{width:70%}.connect-table code{overflow-wrap:anywhere;font-size:11.5px}.tool-aside-section .hint{margin:10px 0 0;overflow-wrap:anywhere}
528
+ .agents-table{min-width:800px}.agents-table th:first-child{width:24%}.agents-table th:nth-child(2){width:30%}.agents-table td{height:56px}.catalog-agent-name{display:block;color:var(--ink);font-size:13.5px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.catalog-agent-name:hover{color:#BF5F3E}.agent-ref code{font-size:11.5px;color:var(--faint)}.agent-ref .c-copy{height:20px}.agents-scroll+.c-state{margin-top:16px}
529
+ .settings-page{max-width:900px;border:0;padding:0}.settings-page h2,.help-reference h2{font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:500;letter-spacing:0}.settings-page .c-facts{grid-template-columns:minmax(0,1fr);gap:0;background:var(--surface)}.settings-page .c-facts>div{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;min-height:48px;padding:8px 16px}.settings-page .c-facts dt{font-size:12px}.settings-page .c-fact-value{margin-top:0;font-size:13px;font-weight:400}.settings-page .c-fact-value.mono{font-weight:400}.settings-page .c-copy{vertical-align:middle;margin-left:6px}.settings-page>p{font-size:12.5px;line-height:1.6;margin-top:14px;overflow-wrap:anywhere}
530
+ .help-focus{max-width:none;padding:20px 22px;background:var(--raised);border:1px solid var(--line);border-radius:12px}.help-focus h2{font:500 21px/1.3 Fraunces,Georgia,serif;margin:0 0 8px;letter-spacing:0}.help-focus p{max-width:none;margin:0 0 14px;font-size:13px}.help-focus .actions{display:flex;flex-wrap:wrap;gap:8px}.help-reference{max-width:none;margin-top:24px}.help-table{min-width:860px}.help-table th:first-child{width:55%}.help-table .help-job th{height:32px;background:var(--frame);font-weight:600;color:var(--ink);border-top:1px solid var(--line)}.help-table .catalog-copy{justify-content:space-between}.help-table td{height:44px}.help-table td:last-child{font-size:12.5px}.help-reference>p{margin:14px 0 0;font-size:12px}
531
+ @media(max-width:1100px){.tool-page{grid-template-columns:minmax(0,1fr)}.tool-aside{position:static}}
532
+ @media(max-width:760px){.catalog-head h1{font-size:25px}.tools-search{max-width:none}.tools-search input,.endpoint-search input{height:44px}.tool-categories button{min-height:36px}.tools-catalog .tools-grid{grid-template-columns:minmax(0,1fr)}.tools-catalog .tool-card{padding:12px}.settings-page .c-facts>div{grid-template-columns:minmax(0,1fr);gap:3px;padding:10px 14px}.help-focus{padding:16px}.help-focus .actions{align-items:stretch}.help-focus .actions>*{min-height:44px}.help-table{min-width:860px}}
533
+ /* SPEC-046: the console's shared pieces (ui.ts): one status language, tags, facts, copyable commands, states */
534
+ :root{--secondary:#3D3D3A;--faint:#6B6A64;--row-line:#EFEDE6;--input-line:#DDD9CD;--pass-text:#2F7A4D;--fail-text:#B23A32;--invalid:#C99A3B;--invalid-text:#8A5A12;--running:#A9532F}
535
+ .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
536
+ .num{text-align:right}
537
+ .c-glyph{flex:none}
538
+ .c-status{display:inline-flex;align-items:center;gap:7px;font-weight:600;font-size:12.5px;white-space:nowrap}
539
+ .c-passed{color:var(--pass-text)}.c-failed,.c-error{color:var(--fail-text)}.c-invalid{color:var(--invalid-text)}.c-running{color:var(--running)}.c-queued,.c-skipped,.c-stopped,.c-ungraded{color:var(--faint)}
540
+ .c-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 7px;border-radius:999px;font-weight:600;font-size:13px;white-space:nowrap}
541
+ .c-pill.c-passed{background:#E9F3EC;color:#24643F}.c-pill.c-failed,.c-pill.c-error{background:#FBEDEB;color:#9E2F28}.c-pill.c-invalid{background:#FBF1E1;color:#7A4E0E}.c-pill.c-running{background:#F6E7DF;color:#9A4A2F}.c-pill.c-queued,.c-pill.c-skipped,.c-pill.c-stopped,.c-pill.c-ungraded{background:var(--raised);color:var(--muted)}
542
+ .c-tag{display:inline-block;font-size:12px;font-weight:500;line-height:1.5;padding:1px 8px;border-radius:999px;border:1px solid transparent;white-space:nowrap}
543
+ .c-tag.c-tone-fail{background:#FBEDEB;color:#9E2F28;border-color:#F1C9C4}.c-tag.c-tone-pass{background:#E9F3EC;color:#24643F;border-color:#C8E0CF}.c-tag.c-tone-warn{background:#FBF1E1;color:#7A4E0E;border-color:#EED9B0}.c-tag.c-tone-neutral{background:var(--raised);color:var(--muted)}
544
+ .c-note{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
545
+ .c-note.c-tone-pass,strong.c-tone-pass{color:var(--pass-text)}.c-note.c-tone-fail,strong.c-tone-fail{color:var(--fail-text)}.c-note.c-tone-warn{color:var(--invalid-text)}
546
+ button.c-copy{width:28px;height:28px;min-height:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);display:inline-grid;place-items:center;flex:none}
547
+ button.c-copy:hover{background:var(--raised);color:var(--ink)}button.c-copy[data-copied]{color:var(--pass-text)}
548
+ .c-command{display:inline-flex;align-items:center;gap:4px;padding:3px 3px 3px 12px;border:1px solid var(--line);border-radius:8px;background:var(--frame);min-width:0;max-width:100%}
549
+ .c-command code{font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--secondary);overflow-wrap:anywhere;background:none;padding:0;border:0}
550
+ .c-facts{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));border:1px solid var(--line);border-radius:10px;overflow:hidden}
551
+ .c-facts>div{padding:10px 16px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 -1px -1px 0;min-width:0}
552
+ .c-facts dt{font-size:11.5px;color:var(--muted)}.c-facts dd{margin:0;min-width:0}.c-facts .c-fact-value{margin-top:2px;font-weight:600;overflow-wrap:anywhere}.c-facts .c-fact-value.mono{font:600 12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.c-fact-sub{font-size:12px;color:var(--muted)}
553
+ .c-strip{display:inline-flex;gap:1px;align-items:center;flex:none}.c-seg{display:block;width:12px;height:14px;border-radius:2px;background:var(--line)}.c-strip.dense .c-seg{width:3px}
554
+ .c-seg.passed{background:var(--pass)}.c-seg.failed{background:var(--fail)}.c-seg.invalid{background:var(--invalid)}.c-seg.running{background:#E8A98F}.c-seg.queued{background:var(--line)}.c-seg.skipped,.c-seg.done{background:#CFCBBE}
555
+ .c-state{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:620px;margin:8px 0}
556
+ .c-state strong{font-size:15px;font-weight:600}.c-state p{margin:0;color:var(--secondary)}.c-state p code{font-size:12px}
557
+ .c-skeleton{display:flex;flex-direction:column;gap:24px;padding:22px 10px}.c-skeleton>div{display:flex;gap:16px;align-items:center}.c-skeleton i{display:block;height:10px;border-radius:3px;background:var(--row-line)}.c-skeleton i:first-child{width:72px}.c-skeleton i:nth-child(2){flex:1}.c-skeleton i:last-child{width:56px}
558
+ .c-segmented{display:inline-flex;padding:2px;background:var(--raised);border-radius:8px}.c-segmented a{padding:5px 11px;border-radius:6px;font-size:12.5px;color:var(--muted);white-space:nowrap}.c-segmented a:hover{color:var(--ink)}.c-segmented a[aria-current]{background:var(--surface);box-shadow:0 1px 2px rgba(20,20,19,.08);font-weight:600;color:var(--ink)}
559
+ .c-search{position:relative;flex:1 1 280px;display:flex;align-items:center;color:var(--muted);margin:0}.c-search svg{position:absolute;left:11px;pointer-events:none}.c-search input{width:100%;height:36px;padding:0 12px 0 34px;border:1px solid var(--input-line);border-radius:8px;background:var(--surface);font-size:13px;color:var(--ink)}
560
+ .c-select{display:inline-flex;align-items:center;gap:4px;height:36px;margin:0;padding:0 2px 0 12px;border:1px solid var(--input-line);border-radius:8px;background:var(--surface);font-size:13px}.c-select>span{color:var(--muted)}.c-select select{border:0;background-color:transparent;height:32px;min-height:0;padding:0 24px 0 4px;font-size:13px;color:var(--ink);box-shadow:none}
561
+ /* SPEC-046: Runs, a strip of numbers over the runs shown, then one row per run */
562
+ .runs-head{align-items:center}.runs-head .actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;max-width:none}
563
+ .rs-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.5fr);border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:0 0 18px}
564
+ .rs-cell{padding:14px 18px;display:flex;flex-direction:column;gap:2px;border-right:1px solid var(--line);min-width:0}.rs-cell:last-child{border-right:0}
565
+ .rs-cell>span{font-size:12px;color:var(--muted)}.rs-cell>strong{font-size:22px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}.rs-cell>small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
566
+ .rs-days{gap:6px;padding:12px 18px 10px}.rs-days-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;color:var(--muted)}
567
+ .rs-legend{display:flex;align-items:center;gap:4px;font-size:11.5px;white-space:nowrap}.rs-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-left:6px}
568
+ .rs-legend i.passed{background:var(--pass)}.rs-legend i.failed{background:var(--fail)}.rs-legend i.other{background:#CFCBBE}
569
+ .rs-chart{display:block;width:100%;height:56px}.rs-chart .passed{fill:var(--pass)}.rs-chart .failed{fill:var(--fail)}.rs-chart .other{fill:#CFCBBE}.rs-chart .axis{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
570
+ .rs-labels{display:flex;justify-content:space-between;gap:6px;font-size:11px;color:var(--muted)}.rs-labels span{white-space:nowrap}.rs-labels.even span{flex:1 1 0;text-align:center}
571
+ .runs-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
572
+ .rt-scroll{overflow-x:auto;margin:0 -8px}.rt{min-width:1040px;padding:0 8px;font-variant-numeric:tabular-nums}
573
+ .rt-head,.rt-row{display:grid;grid-template-columns:104px minmax(0,1fr) 150px 168px 112px 140px 104px;gap:16px;align-items:center}
574
+ .rt-head{height:34px;padding:0 10px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
575
+ a.rt-row{min-height:56px;padding:7px 10px;border-bottom:1px solid var(--row-line);color:var(--ink);text-decoration:none}a.rt-row:hover{background:#FCFBF8}
576
+ .rt-test,.rt-agent,.rt-passed,.rt-started{display:flex;flex-direction:column;min-width:0;gap:1px}
577
+ .rt-title{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
578
+ .rt-ref{font:11.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
579
+ .rt-agent-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
580
+ .rt-attempts{display:flex;align-items:center;gap:8px;min-width:0}
581
+ .rt-passed,.rt-started{align-items:flex-end;text-align:right}.rt-passed strong{font-size:14px;font-weight:600}.rt-started time{white-space:nowrap}
582
+ .rt-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:12px}
583
+ @media(max-width:1100px){.rs-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.rs-days{grid-column:1/-1;border-top:1px solid var(--line)}.rs-cell:nth-child(4){border-right:0}}
584
+ @media(max-width:760px){
585
+ .runs-head{flex-direction:row;align-items:flex-start}.runs-head .c-command{display:none}
586
+ .rs-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-cell{padding:10px 14px}.rs-cell>small{display:none}.rs-cell>strong{font-size:19px}.rs-cell:nth-child(2n){border-right:0}.rs-cell:nth-child(-n+2){border-bottom:1px solid var(--line)}.rs-legend{display:none}
587
+ .c-search{flex-basis:100%}.runs-filters .c-select{flex:1 1 0;min-width:0;padding-left:10px}.runs-filters .c-select select{width:100%;min-width:0}
588
+ .rt-scroll{overflow:visible;margin:0}.rt{min-width:0;padding:0}.rt-head{display:none}
589
+ a.rt-row{grid-template-columns:18px minmax(0,1fr) auto;grid-template-areas:"result test passed" "result agent started" "result attempts prod";gap:3px 10px;padding:12px 2px;align-items:start}
590
+ .rt-result{grid-area:result;padding-top:2px}.rt-result .c-status>span{display:none}
591
+ .rt-test{grid-area:test}.rt-ref{display:none}.rt-agent{grid-area:agent;flex-direction:row;gap:6px;align-items:baseline}.rt-agent-name{font-weight:400;font-size:12px;color:var(--muted)}
592
+ .rt-attempts{grid-area:attempts}.rt-attempts .c-note,.rt-passed .c-note,.rt-prod>.c-note{display:none}.rt-prod{grid-area:prod;justify-self:end}.rt-passed{grid-area:passed}.rt-started{grid-area:started}.rt-started .c-note{display:none}
593
+ }
594
+ /* SPEC-046: a run's page. Verdict first, its facts, the tests and attempts on the left, one attempt's evidence on the right. */
595
+ .c-seg.error{background:var(--fail)}.c-seg.stopped,.c-seg.ungraded{background:#B8B5AA}
596
+ .rd{display:flex;flex-direction:column;gap:20px;min-width:0}
597
+ .rd-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
598
+ .rd-crumbs{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px;color:var(--muted)}.rd-crumbs a{color:var(--muted)}.rd-crumbs a:hover{color:var(--ink)}
599
+ .rd-crumbs code{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);background:none;padding:0;overflow-wrap:anywhere}
600
+ .rd-top-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}.rd-top-actions .aw-actions{display:flex;gap:8px}
601
+ .rd-head{display:flex;flex-direction:column;gap:10px;max-width:980px;min-width:0}
602
+ .rd-kicker{font-size:12.5px;color:var(--muted)}.rd-kicker code{font-size:12px;color:var(--secondary);background:none;padding:0}
603
+ .rd-head h1{margin:0;font:500 27px/1.25 Fraunces,Georgia,serif;overflow-wrap:anywhere}
604
+ .rd-request summary{cursor:pointer;font-size:12.5px;color:var(--muted)}.rd-request p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;color:var(--secondary)}
605
+ .rd-verdict{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.rd-rate{font-size:14px;font-weight:600}
606
+ .rd-verdict .c-tag{font-size:12.5px;background:#fff}.rd-verdict .c-note{font-size:13px;white-space:normal}
607
+ .rd-reason{margin:0;font-size:14px;color:var(--secondary);max-width:860px;overflow-wrap:anywhere}.rd-reason code{font-size:12.5px;margin-right:4px}
608
+ .c-facts .c-fact-sub{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
609
+ .rd-body{display:flex;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0}
610
+ .rd-rail{flex:1 1 240px;max-width:100%;box-sizing:border-box;background:#FCFBF8;border-right:1px solid var(--line);padding:14px 12px;display:flex;flex-direction:column;gap:14px;min-width:0}
611
+ .rd-rail section{display:flex;flex-direction:column;gap:4px;min-width:0}.rd-rail nav{display:flex;flex-direction:column;gap:4px}
612
+ .rd-rail-title{margin:0 0 2px;padding:0 6px;font:400 12px/1.5 var(--sans,inherit);color:var(--muted)}
613
+ .rd-test{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:8px;color:var(--ink);text-decoration:none;min-width:0}.rd-test:hover{background:#F6F4EE}.rd-test.selected{background:#F3F1EA}
614
+ .rd-test-title{display:flex;gap:7px;align-items:flex-start;font-weight:500;line-height:1.35;min-width:0}.rd-test-title>span{overflow-wrap:anywhere}.rd-test-title .c-glyph{margin-top:1px}
615
+ .rd-test-meta{padding-left:23px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.rd-test-meta code{font:11.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);background:none;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
616
+ .rd-test-meta .num{font-size:12px;color:var(--muted);margin-left:auto;white-space:nowrap}.rd-request{border:0;margin:0;overflow:visible}
617
+ .rd-attempt{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;border:1px solid transparent;color:var(--ink);text-decoration:none}.rd-attempt:hover{background:#F6F4EE}
618
+ .rd-attempt>span:nth-of-type(1){flex:1}.rd-attempt.selected{background:#fff;border-color:var(--input-line);font-weight:600}.rd-attempt-time{font-size:12px;color:var(--muted);font-weight:400}
619
+ .rd-main{flex:999 1 560px;min-width:0;padding:16px 24px 24px;display:flex;flex-direction:column;gap:18px}
620
+ .rd-attempt-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.rd-attempt-head>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
621
+ .rd-attempt-head h2{margin:0;font:500 21px/1.3 Fraunces,Georgia,serif}.rd-attempt-meta{font-size:12.5px;color:var(--muted)}
622
+ .rd-tabs.aw-tabs{padding:0;gap:2px;border-bottom:1px solid var(--line)}.rd-tabs.aw-tabs a{padding:8px 12px;min-height:0;color:var(--muted);margin-bottom:-1px}
623
+ .rd-tabs.aw-tabs a.active,.rd-tabs.aw-tabs a[aria-current=page]{color:var(--ink);border-bottom-color:var(--ink);font-weight:600}
624
+ .rd-main .aw-evidence-body{padding:0;display:flex;flex-direction:column;gap:22px}
625
+ .rd-section{display:flex;flex-direction:column;gap:8px;min-width:0}.rd-section-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
626
+ .rd-section-head h3{margin:0;font-size:14px;font-weight:600}.rd-section-head>span{font-size:12.5px;color:var(--muted)}.rd-section-head code{font-size:12px}
627
+ .rd-checks{border-top:0}.rd-check{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;padding:12px 4px;border-bottom:1px solid var(--row-line)}.rd-checks .rd-section-head+.rd-check{border-top:1px solid var(--line)}
628
+ .rd-check .c-glyph{margin-top:1px}.rd-check.passed .c-glyph{color:var(--pass)}.rd-check.failed .c-glyph,.rd-check.error .c-glyph{color:var(--fail)}.rd-check.skipped .c-glyph{color:var(--neutral,#87867F)}
629
+ .rd-check-body{display:flex;flex-direction:column;gap:4px;min-width:0}.rd-check-body p{margin:0;color:var(--secondary);overflow-wrap:anywhere}
630
+ .rd-check-name{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.rd-check-name code{font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace;background:none;padding:0;overflow-wrap:anywhere}
631
+ .rd-check-name .c-tag{border-radius:5px;font-size:11.5px;padding:0 7px}.rd-check-name .c-tag.c-tone-neutral{background:var(--raised)}.rd-check-name .c-tag.c-tone-fail{background:#fff;border-color:var(--ink);color:var(--ink)}
632
+ .rd-check-links{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12.5px;font-weight:500;white-space:nowrap}.rd-whole{color:var(--muted);font-weight:400}
633
+ .rd-calls-scroll{overflow-x:auto;overscroll-behavior-x:contain}.rd-calls{min-width:760px}
634
+ .rd-calls-head,.rd-call>summary{display:grid;grid-template-columns:24px 150px minmax(0,.8fr) minmax(0,1.4fr) 84px 60px;gap:12px;align-items:center}
635
+ .rd-calls-head{padding:0 8px 6px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.rd-calls-head>span:last-child{text-align:right}
636
+ .rd-call{border:0;border-bottom:1px solid var(--row-line);border-radius:0;margin:0;overflow:visible;background:none}.rd-call>summary{padding:10px 8px;cursor:pointer;list-style:none;margin:0;border:0;border-radius:0;background:none;font-size:13px;line-height:1.5;font-weight:400;color:var(--ink);min-height:0}.rd-call>summary::-webkit-details-marker{display:none}.rd-call>summary:hover{background:#FCFBF8}
637
+ .rd-call>summary>.num{color:var(--muted)}.rd-call-name{display:flex;flex-direction:column;gap:2px;min-width:0}.rd-call-name code{font:600 12.5px ui-monospace,SFMono-Regular,Menlo,monospace;background:none;padding:0;overflow-wrap:anywhere}
638
+ .rd-call-name code{color:var(--ink)}.rd-fails{font-size:11.5px;color:var(--fail-text)}
639
+ .rd-call-args{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
640
+ .rd-call-answer{color:var(--secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rd-call-source{font-size:12px;color:var(--muted)}.rd-call-at{text-align:right;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}
641
+ .rd-code{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--pass-text);margin-right:6px}.rd-code.bad{color:var(--fail-text)}
642
+ .rd-call.failing{background:#FDF5F3;border-bottom-color:#F1C9C4}.rd-call.failing>summary>.num{color:var(--fail-text);font-weight:600}.rd-call.failing>summary:hover{background:#FBEFEC}
643
+ .rd-call-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 8px 12px 44px;align-items:start}
644
+ .rd-call-body>div{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}.rd-call.failing .rd-call-body>div{border-color:#EBDAD5}
645
+ .rd-call-body h4{margin:0;padding:6px 12px;border-bottom:1px solid var(--row-line);font-size:12px;font-weight:400;color:var(--muted)}.rd-call-body h4 code{font-size:11.5px;background:none;padding:0}
646
+ .rd-fields{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:3px 12px;margin:0;padding:10px 12px;font-size:12.5px;max-height:360px;overflow:auto}
647
+ .rd-fields dt{font:11.5px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted)}.rd-fields dd{margin:0;overflow-wrap:anywhere;line-height:1.6}
648
+ .rd-call-body p{margin:0;padding:10px 12px}.rd-text{white-space:pre-wrap;overflow-wrap:anywhere}.rd-text.bad{color:var(--fail-text)}
649
+ .rd-table{border:1px solid var(--line);border-radius:10px;overflow:hidden}
650
+ .rd-table-head,.rd-table-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 140px 110px;gap:8px;padding:9px 14px;align-items:center}
651
+ .rd-table-head{background:#FCFBF8;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);padding:8px 14px}.rd-table-row{border-bottom:1px solid var(--row-line)}.rd-table-row:last-child{border-bottom:0}
652
+ .rd-table-row code{font-size:12px;background:none;padding:0;overflow-wrap:anywhere}
653
+ .rd-log{margin:0;max-height:560px;overflow:auto;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#FCFBF8;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
654
+ @media(max-width:760px){.rd-rail{border-right:0;border-bottom:1px solid var(--line)}.rd-main{padding:14px 14px 18px}.rd-head h1{font-size:23px}.rd-call-body{grid-template-columns:minmax(0,1fr);padding-left:8px}
655
+ .rd-table-head,.rd-table-row{grid-template-columns:minmax(0,1fr) 84px 84px}.rd-table-head>span:nth-child(3),.rd-table-row>span:nth-child(3){display:none}.rd-top .c-command{display:none}}
656
+
657
+ /* SPEC-046: Worlds, a world, its starting data */
658
+ #worlds-page,.world-data-page,.ww-workspace{min-width:0;font-size:13px}
659
+ main:has(>#worlds-page)>.page-head h1,.world-data-page h1,.ww-header h1{font:500 28px/1.2 Fraunces,Georgia,serif}
660
+ main:has(>#worlds-page)>.page-head{margin-bottom:18px}
661
+ .worlds-scroll{width:100%;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
662
+ .worlds-table{width:100%;min-width:740px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums}
663
+ .worlds-table th{height:34px;padding:0 14px;background:var(--surface);border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:400;text-transform:none;letter-spacing:0;vertical-align:middle;white-space:nowrap}
664
+ .worlds-table td{height:56px;padding:6px 14px;border-bottom:1px solid var(--row-line);vertical-align:middle;overflow:hidden}
665
+ .worlds-table tr:last-child td{border-bottom:0}.worlds-table tbody tr:hover{background:#FCFBF8}
666
+ .worlds-table th:first-child{width:32%}.worlds-table th:nth-child(2){width:30%}.worlds-table th:nth-child(3){width:10%}.worlds-table th:nth-child(4){width:10%}.worlds-table th:last-child{width:18%}
667
+ .worlds-no-tasks th:first-child{width:35%}.worlds-no-tasks th:nth-child(2){width:35%}.worlds-no-tasks th:nth-child(3){width:10%}.worlds-no-tasks th:last-child{width:20%}
668
+ .worlds-table .num{text-align:right;white-space:nowrap}.worlds-table time{font-size:12.5px;color:var(--muted)}
669
+ .worlds-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:13.5px;font-weight:500}
670
+ .worlds-table .num a{color:var(--ink)}.worlds-name:hover,.worlds-table .num a:hover{color:#9A4A2F;text-decoration:underline}
671
+ .worlds-id{display:flex;gap:5px;align-items:center;min-width:0;height:20px;color:var(--faint);font-size:11.5px}
672
+ .worlds-id code,.worlds-path{font:11.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:none;padding:0;border:0;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
673
+ .worlds-id .c-copy{width:20px;height:20px}.worlds-id>span{white-space:nowrap}.worlds-path{display:block;max-width:100%;color:var(--secondary)}
674
+ .world-tool-icons{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:nowrap;margin:0;max-width:100%}
675
+ .world-tool-icons .world-tool-name{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:116px;width:auto;height:auto;border:0;background:none;padding:0;border-radius:0;font-size:12px;color:var(--secondary)}
676
+ .world-tool-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world-tool-name .catalog-brand,.world-tool-name svg{width:16px;height:16px;flex:none}
677
+ .world-tool-icons .world-tool-more{display:inline-flex;flex:none;width:auto;height:auto;padding:1px 5px;border:1px solid var(--line);border-radius:5px;background:var(--raised);font-size:11.5px;color:var(--muted)}
678
+ .folder-scenes{margin-top:28px}.folder-scenes h2{font:500 21px/1.3 Fraunces,Georgia,serif;margin:0}.folder-scenes .section-title{margin-bottom:12px}.folder-scenes .section-title p{font-size:12.5px;margin:4px 0 0}
679
+ .scenes-table{min-width:720px}.scenes-table th:first-child{width:36%}.scenes-table th:nth-child(2){width:30%}.scenes-table th:last-child{width:34%}.scenes-table td{height:48px}
680
+ .worlds-loading .c-skeleton{gap:0;padding:0 14px}.worlds-loading .c-skeleton>div{height:56px;border-bottom:1px solid var(--row-line)}
681
+ .world-data-page .page-head{margin-bottom:10px}.world-data-note{margin:0 0 16px;font-size:12.5px;color:var(--muted)}
682
+ .world-data-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px 20px;max-width:100%;margin-bottom:18px}
683
+ .world-data-tabs a{display:inline-flex;flex:none;align-items:center;gap:7px;padding:9px 2px;font-size:13px;white-space:nowrap}
684
+ .records-surface{min-width:0;max-width:100%}.records-surface .tool-title{margin-bottom:14px}.records-surface .tool-title h2{font:500 21px/1.3 Fraunces,Georgia,serif}
685
+ .records-surface .records-collections{display:flex;flex-wrap:nowrap;gap:2px;padding:3px;margin:0 0 16px;background:var(--raised);border:0;border-radius:8px;overflow-x:auto;max-width:100%}
686
+ .records-collections a{display:inline-flex;flex:none;align-items:center;gap:7px;border:0;border-radius:6px;padding:5px 10px;font-size:12.5px;color:var(--muted);white-space:nowrap}
687
+ .records-collections a.active{background:var(--surface);box-shadow:0 1px 2px rgba(20,20,19,.08);font-weight:600;color:var(--ink)}
688
+ .records-count{font-size:11.5px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--faint)}
689
+ .records-surface .tool-section-title{margin:0 0 10px;align-items:baseline}.records-surface .tool-section-title h3{margin:0;font:500 18px/1.3 Fraunces,Georgia,serif}.records-surface .tool-section-title>.muted{font-size:12px}
690
+ .records-grid{max-width:100%;max-height:480px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;margin:0}
691
+ .records-grid table{width:100%;min-width:540px;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:13px;font-variant-numeric:tabular-nums}
692
+ .records-grid .records-frozen-head{position:sticky;top:0;z-index:2}
693
+ .records-grid th{height:34px;padding:6px 12px;background:var(--raised);border-bottom:1px solid var(--line);font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;color:var(--muted);white-space:nowrap}
694
+ .records-grid th code{font:11.5px ui-monospace,SFMono-Regular,Menlo,monospace;background:none;padding:0}
695
+ .records-grid td{height:40px;padding:5px 12px;vertical-align:middle;border-bottom:1px solid var(--row-line);max-width:320px;overflow:hidden;white-space:nowrap}
696
+ .records-grid tr:last-child td{border-bottom:0}.records-grid tbody tr:hover{background:#FCFBF8}
697
+ .records-grid td.mono{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:normal}
698
+ .records-cell{display:flex;align-items:center;gap:5px;min-width:0;max-width:320px}.records-value{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:280px}
699
+ .records-grid .num .records-cell{justify-content:flex-end}.records-grid .num{text-align:right}.records-cell .c-copy{width:22px;height:22px}
700
+ .records-surface .messages{margin:12px 0}.records-surface .message{padding:12px 0;border-color:var(--row-line)}.records-surface .message strong{font-size:13px}.records-surface .avatar{background:var(--raised);color:var(--secondary)}
701
+ .ww-workspace h2,.world-editor-page h2{font:500 21px/1.3 Fraunces,Georgia,serif}.ww-header{gap:16px;margin-bottom:18px;flex-wrap:wrap}.ww-identity{flex:1 1 240px;min-width:0}.ww-identity .worlds-id{margin-top:6px}
702
+ .ww-world-actions{gap:8px;min-width:0;max-width:100%}.ww-world-actions button,.ww-world-actions .button-link,.ww-configure button,.ww-history button,.world-editor-page button{border-radius:8px;font-size:13px}
703
+ .ww-agent-select{font-size:12.5px;max-width:100%}.ww-agent-select select{min-height:36px;max-width:200px;border-radius:8px;border-color:var(--input-line);font-size:13px}
704
+ .ww-latest{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 10px}.ww-latest>span,.ww-latest time{font-size:12px;color:var(--muted)}
705
+ .ww-summary-link{display:block;color:inherit}.ww-summary-link .run-summary{margin:0 0 18px}.ww-summary-link .rs-stat{padding:12px 16px;min-width:0}.ww-summary-link .rs-stat strong{font-size:22px}.ww-summary-link:hover .rs-stats{border-color:#B0AEA5}
706
+ .ww-summary-link .rs-stat.invalid>strong{color:var(--invalid-text)}
707
+ .ww-summary-link .run-progress{margin-top:8px}.ww-workspace>.ww-section-heading{margin:20px 0 12px}.ww-section-heading h2{font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:500}
708
+ .ww-tasks-scroll{border-radius:10px}.ww-task-table{min-width:800px;border:0;border-radius:0;overflow:visible}
709
+ .ww-task-table .ww-table-head,.ww-task-table .ww-task-row{display:grid;grid-template-columns:minmax(0,1fr) 190px 180px 70px 20px;gap:16px;padding:7px 14px;align-items:center}
710
+ .ww-task-table .ww-table-head{height:34px;padding-top:0;padding-bottom:0;background:var(--surface);font-size:12px}
711
+ .ww-task-table .ww-task-row{min-height:56px;position:relative;border-color:var(--row-line)}
712
+ .ww-task-table .ww-task-identity{grid-column:auto;padding:0}.ww-task-table .ww-task-name{grid-column:auto;font-size:13px;color:var(--ink);min-width:0}.ww-task-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
713
+ .ww-task-table .ww-task-prompt{margin:1px 0 0;font-size:12px}.ww-task-table .ww-rate{grid-column:auto;grid-row:auto;display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
714
+ .ww-task-table .ww-rate strong{font-size:13px}.ww-task-table .ww-rate>span,.ww-task-table .ww-result-link>span:not(.c-status){font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}
715
+ .ww-result-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 6px;max-width:100%;position:relative;z-index:1}.ww-result-link>span:not(.c-status){grid-column:1/-1}.ww-task-table .ww-result-link>.c-status{display:inline-flex;font-size:12.5px}.ww-task-table .ww-attempt-marks{grid-column:auto;grid-row:auto;display:flex;flex-wrap:nowrap;overflow:auto;gap:4px;padding:3px 0}
716
+ .ww-task-table .ww-task-time{grid-column:auto;grid-row:auto;text-align:right;font-size:12.5px}.ww-task-table .ww-row-inspect{position:static;width:20px;height:28px}
717
+ .ww-task-table .ww-attempt-mark::before{display:none}.ww-attempt-mark .c-glyph{width:15px;height:15px}
718
+ .ww-history{margin-top:24px}.ww-history-table{min-width:640px}.ww-history-table th:first-child{width:19%}.ww-history-table th:nth-child(2){width:45%}.ww-history-table th:nth-child(3){width:16%}.ww-history-table th:last-child{width:20%}
719
+ .ww-configure{padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:18px 0 0}.ww-configure>.ww-section-heading{margin-top:0}.ww-configure h3{font-size:14px;font-weight:500}.ww-form label,.ww-form input,.ww-form select,.ww-form textarea{font-size:13px}.ww-form input,.ww-form select,.ww-form textarea{border-color:var(--input-line);border-radius:8px;min-width:0;max-width:100%}
720
+ .ww-configure .ww-task-editor{padding:16px 0;margin:0}.ww-checks-field{margin-top:16px}.ww-footer{padding-top:16px;margin-top:16px}.ww-tool-list{gap:6px;margin:10px 0 16px}.ww-tool-list a{font-size:12px;padding:5px 8px;border-radius:7px}
721
+ .world-editor-page{max-width:940px;border:1px solid var(--line);border-radius:12px;padding:20px;background:var(--surface)}.world-editor-page>label{max-width:460px;font-size:13px}.world-editor-page input[name=name]{font-size:13px;border:1px solid var(--input-line);border-radius:8px}.world-editor-page h2{margin:20px 0 12px}
722
+ .world-editor-page .world-tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:18px}.world-editor-page .world-tool{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;gap:8px;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12.5px;margin:0;min-width:0}.world-editor-page .world-tool.selected{border-color:var(--accent);background:#FCF3EE}.world-editor-page .world-tool input{position:static;width:14px;height:14px;min-height:0;margin:0;accent-color:var(--accent);flex:none}.world-editor-page .world-tool .catalog-brand{width:18px;height:18px;flex:none}.world-editor-page .world-tool>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
723
+ @media(max-width:650px){
724
+ .worlds-table{min-width:740px}.world-data-page h1,.ww-header h1{font-size:27px}.world-data-tabs{gap:16px}.world-data-page .page-head{gap:8px}.world-data-page .page-meta{overflow-wrap:anywhere}
725
+ .ww-header{flex-direction:column;align-items:stretch;gap:12px}.ww-identity{flex-basis:auto}.ww-world-actions{justify-content:flex-start}.ww-agent-select{flex:1 1 100%;justify-content:space-between}.ww-agent-select select{flex:1;max-width:none;min-width:0}.ww-world-actions .button-link,.ww-world-actions button{min-height:36px}
726
+ .ww-summary-link .rs-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ww-summary-link .rs-stat{padding:10px 12px}.ww-summary-link .rs-stat small{overflow-wrap:anywhere;white-space:normal}
727
+ .ww-workspace>.ww-section-heading{align-items:center}.ww-configure{padding:16px 12px}.ww-configure .form-grid{grid-template-columns:minmax(0,1fr)}.ww-footer label{width:100%;max-width:none}.ww-task-options label{max-width:calc(50% - 8px)}
728
+ .world-editor-page{padding:16px 12px}.world-editor-page .world-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.world-editor-page .world-tool{padding:8px;gap:6px}.records-grid{max-height:400px}.records-grid td{max-width:240px}.records-value{max-width:210px}
729
+ }
730
+
731
+ /* SPEC-046: an agent's page */
732
+ .agent-flow-page{min-width:0;max-width:100%}
733
+ .agent-page{min-width:0;max-width:100%;font-size:13px;color:var(--ink)}
734
+ .agent-flow-page>.page-head,.agent-page .page-head{align-items:flex-start;margin-bottom:16px;gap:16px}.agent-flow-page>.page-head h1,.agent-page .page-head h1{font:500 28px/1.25 Fraunces,Georgia,serif;overflow-wrap:anywhere}
735
+ .agent-page .page-head>.actions{flex:none;max-width:100%;gap:8px}.agent-page button,.agent-page .button-link{font-size:13px;border-radius:8px}
736
+ .agent-page>.c-facts{margin-bottom:24px;border-radius:12px;background:var(--surface);grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
737
+ .agent-page .c-facts dt{font-size:12px}.agent-page .c-fact-value{font-size:13px;font-weight:400}.agent-page .c-fact-value.mono{font-size:12px;font-weight:400}.agent-page .c-fact-value .c-copy{width:24px;height:24px}.agent-page .c-fact-value .catalog-copy{height:24px}
738
+ .agent-page h2{font:500 21px/1.3 Fraunces,Georgia,serif}.agent-page .section-title{margin:0 0 12px;gap:12px;align-items:baseline}.agent-page .section-title h2{margin:0}.agent-page .section-title>a{font-size:12.5px;flex:none}
739
+ .agent-page a:hover{color:#9A4A2F}.agent-page a.primary:hover{color:#fff}
740
+ .agent-tasks-table{min-width:680px}.agent-tasks-table th:first-child{width:58%}.agent-tasks-table th:nth-child(2){width:80px}.agent-tasks-table th:last-child{width:auto}
741
+ .agent-tasks-table td{height:48px}.agent-task-config{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;min-width:0}.agent-task-config>.catalog-cut{flex:1 1 120px;min-width:0;color:var(--secondary)}.agent-tasks-table .num{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.agent-tasks-table .actions{gap:12px;flex-wrap:nowrap;justify-content:flex-end;white-space:nowrap}
742
+ .agent-tasks-table td:first-child a{font-weight:500;color:var(--ink)}.agent-tasks-table td:first-child a:hover{color:#9A4A2F}
743
+ .agent-tasks-table .agent-world-group th{height:36px;background:var(--raised);font-weight:500;border-top:1px solid var(--line)}.agent-world-group a{color:var(--secondary)}.agent-tasks-table tbody:first-of-type .agent-world-group th{border-top:0}
744
+ .agent-tasks-table tbody tr:last-child td{border-bottom:1px solid var(--row-line)}.agent-tasks-table tbody:last-child tr:last-child td,.agent-tasks-table tbody:last-child .agent-task-last{border-bottom:0}
745
+ .agent-page .agent-recent{margin-top:24px;min-width:0}.agent-page .rt-scroll{max-width:100%}
746
+ .agent-page .c-state{border-radius:12px;font-size:13px}.agent-page .c-state p{overflow-wrap:anywhere}.agent-page .connect-progress{max-width:none;flex-direction:row;align-items:center;margin:0 0 20px;padding:14px 16px;background:var(--surface);border-color:var(--line)}.agent-page .connect-progress>div{min-width:0;flex:1}.agent-page .connect-progress p{margin:4px 0 0;font-size:12.5px}.agent-page .connect-progress>button{flex:none;margin-left:auto}
747
+ .agent-page .c-state-error{border-color:#F1C9C4}.agent-page .agent-saved-test>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 16px}.agent-page .test-context{font-size:12.5px;margin:0}.agent-page .test-context a{color:#BF5F3E}
748
+ .agent-test-tasks{min-width:420px}.agent-test-tasks th:first-child{width:auto}.agent-test-tasks th:last-child{width:90px}
749
+ .agent-page .agent-settings{max-width:900px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;margin:0}
750
+ .agent-page .agent-settings label{font-size:12.5px;color:var(--muted);font-weight:400;margin-bottom:14px}.agent-page .agent-settings input,.agent-page .agent-settings select{height:36px;min-height:36px;margin-top:5px;padding:6px 10px;border:1px solid var(--input-line);border-radius:8px;font-size:13px;color:var(--ink);background:var(--surface);width:100%;min-width:0;max-width:100%}
751
+ .agent-page .agent-settings .hint{font-size:12px;margin:0 0 14px}.agent-page .agent-settings .form-inset{padding:16px 0 0;margin:16px 0;border:0;border-top:1px solid var(--row-line);border-radius:0}.agent-page .agent-settings legend{font-size:13px;color:var(--ink);padding:0 8px 0 0}.agent-page .agent-settings>.actions{border-top:1px solid var(--row-line);padding-top:16px;margin-top:16px;gap:8px}
752
+ .agent-page .agent-settings .folder-field{border-bottom:1px solid var(--row-line);padding-bottom:16px;margin-bottom:16px}.agent-page .folder-field label{margin-bottom:0}.agent-page .folder-input{align-items:center;gap:8px}.agent-page .folder-input input{margin:5px 0 0}.agent-page .folder-input button{flex:none;white-space:nowrap}.agent-page .agent-footer{font-size:12.5px;border-color:var(--row-line)}
753
+ .agent-page .c-skeleton{gap:0;padding:0 14px}.agent-page .c-skeleton>div{height:56px;border-bottom:1px solid var(--row-line)}
754
+ @media(max-width:760px){
755
+ .agent-tasks-table{min-width:600px}.agent-tasks-table th:first-child{width:250px}
756
+ .agent-flow-page>.page-head h1,.agent-page .page-head h1{font-size:27px}.agent-page .page-head{flex-wrap:wrap}.agent-page .page-head>.actions{justify-content:flex-start}.agent-page>.c-facts{grid-template-columns:minmax(0,1fr);margin-bottom:20px}.agent-page .c-facts>div{padding:10px 14px}
757
+ .agent-page .agent-settings{padding:16px 12px}.agent-page .agent-settings .form-grid{grid-template-columns:minmax(0,1fr)}.agent-page .folder-input{flex-wrap:wrap}.agent-page .folder-input input{flex:1 1 100%}.agent-page .agent-settings>.actions{flex-wrap:wrap}
758
+ .agent-page .rt-result .c-status>span{display:inline}.agent-page a.rt-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"result passed" "test test" "agent started" "attempts prod";gap:4px 10px;padding:12px 2px}.agent-page .rt-result{padding:0}.agent-page .rt-prod .c-tag{font-size:11.5px}
759
+ }
package/lib/worker.mjs CHANGED
@@ -39389,7 +39389,7 @@ var require_public_api = __commonJS({
39389
39389
  return docs2;
39390
39390
  return Object.assign([], { empty: true }, composer$1.streamInfo());
39391
39391
  }
39392
- function parseDocument3(source, options4 = {}) {
39392
+ function parseDocument4(source, options4 = {}) {
39393
39393
  const { lineCounter: lineCounter2, prettyErrors } = parseOptions2(options4);
39394
39394
  const parser$1 = new parser.Parser(lineCounter2?.addNewLine);
39395
39395
  const composer$1 = new composer.Composer(options4);
@@ -39415,7 +39415,7 @@ var require_public_api = __commonJS({
39415
39415
  } else if (options4 === void 0 && reviver && typeof reviver === "object") {
39416
39416
  options4 = reviver;
39417
39417
  }
39418
- const doc = parseDocument3(src, options4);
39418
+ const doc = parseDocument4(src, options4);
39419
39419
  if (!doc)
39420
39420
  return null;
39421
39421
  doc.warnings.forEach((warning) => log2.warn(doc.options.logLevel, warning));
@@ -39451,7 +39451,7 @@ var require_public_api = __commonJS({
39451
39451
  }
39452
39452
  exports.parse = parse14;
39453
39453
  exports.parseAllDocuments = parseAllDocuments;
39454
- exports.parseDocument = parseDocument3;
39454
+ exports.parseDocument = parseDocument4;
39455
39455
  exports.stringify = stringify3;
39456
39456
  }
39457
39457
  });
@@ -54125,6 +54125,10 @@ var init_env = __esm({
54125
54125
  this.clock.onChange = path6 === void 0 ? void 0 : () => this.#writeClock();
54126
54126
  this.#writeClock();
54127
54127
  }
54128
+ /** Signed request freshness follows the receiving app's clock. */
54129
+ deliveryNowMs(realNow = Date.now) {
54130
+ return this.#clockFile === void 0 ? realNow() : Math.floor(this.clock.nowMs());
54131
+ }
54128
54132
  #writeClock() {
54129
54133
  const path6 = this.#clockFile;
54130
54134
  if (path6 === void 0) return;
@@ -141070,7 +141074,7 @@ var init_store4 = __esm({
141070
141074
 
141071
141075
  // packages/server/src/twins/carrier-portal/pdf.ts
141072
141076
  function encodeText(text24) {
141073
- return [...text24].map((c) => {
141077
+ return [...text24.normalize("NFC")].map((c) => {
141074
141078
  const code2 = c.codePointAt(0);
141075
141079
  if (code2 >= 32 && code2 <= 126 || code2 >= 160 && code2 <= 255) return c;
141076
141080
  if (winAnsi.has(c)) return String.fromCharCode(winAnsi.get(c));
@@ -151489,7 +151493,7 @@ var init_delivery = __esm({
151489
151493
  try {
151490
151494
  const target4 = this.#options.targets[service];
151491
151495
  const call2 = service === "app" ? appCall(event3, target4) : void 0;
151492
- const delivered = call2?.delivered ?? materializeEvent(event3, this.#info, (this.#options.realNow ?? Date.now)(), target4);
151496
+ const delivered = call2?.delivered ?? materializeEvent(event3, this.#info, this.#env.deliveryNowMs(this.#options.realNow), target4);
151493
151497
  delivered.headers["x-ancha-env-id"] = this.#env.id;
151494
151498
  delivered.headers["x-ancha-session-id"] = this.#session.id;
151495
151499
  response5 = await postEvent(call2?.url ?? target4, delivered, {
@@ -155715,7 +155719,7 @@ async function readFeed(env, options4) {
155715
155719
  const excludedServices = options4.excludedServices?.();
155716
155720
  const deliveredEvents = events3.filter((event3) => !excludedServices?.has(event3.service));
155717
155721
  const batch3 = {
155718
- events: deliveredEvents.map((event3) => materializeEvent(event3, options4.info, (options4.realNow ?? Date.now)())),
155722
+ events: deliveredEvents.map((event3) => materializeEvent(event3, options4.info, env.deliveryNowMs(options4.realNow))),
155719
155723
  cursor: events3.at(-1)?.cursor ?? after
155720
155724
  };
155721
155725
  if (deliveredEvents.length > 0) {
@@ -155856,7 +155860,7 @@ var init_sessions = __esm({
155856
155860
  const socket = options4.slackTransport === "socket" && env.twins.some((t) => t.name === "slack") ? new SocketDelivery(env, session2, this.#manager, slackSocketCodec(env.ctxFor("slack"))) : void 0;
155857
155861
  this.#records.set(env, { session: session2, options: structuredClone(options4), signal: env.signal, delivery, socket, busy: 0 });
155858
155862
  env.openPreparedBootstrap({ setupCalls: options4.setupCalls === true });
155859
- if (options4.clockFile !== void 0) env.setClockFile(options4.clockFile);
155863
+ env.setClockFile(options4.clockFile);
155860
155864
  return { ...session2 };
155861
155865
  });
155862
155866
  }
@@ -155894,7 +155898,7 @@ var init_sessions = __esm({
155894
155898
  type: "url_verification",
155895
155899
  tSim: env.clock.now().toISOString(),
155896
155900
  body: body6,
155897
- headers: { "content-type": "application/json", ...slackHeaders(secret, body6, Math.floor(Date.now() / 1e3)), "x-ancha-env-id": env.id, "x-ancha-session-id": session2.id }
155901
+ headers: { "content-type": "application/json", ...slackHeaders(secret, body6, Math.floor(env.deliveryNowMs() / 1e3)), "x-ancha-env-id": env.id, "x-ancha-session-id": session2.id }
155898
155902
  }, { signal });
155899
155903
  let matches9 = response5.body === challenge;
155900
155904
  if (!matches9) {
@@ -184517,7 +184521,7 @@ function summarizeScene(sceneId, trials, requestedTrials = trials.length) {
184517
184521
  trialsDetail: trials.map((t) => ({ trial: t.trial, passed: outcomeOf2(t) === "passed", valid: trialValid(t), ...outcomeOf2(t) === "skipped" ? { outcome: "skipped" } : t.outcome ? { outcome: t.outcome } : {}, ...t.checks.some((c) => c.status === "skipped") && { skippedJudges: t.checks.filter((c) => c.status === "skipped").length }, exit: t.exit, ...t.originalExit !== void 0 && { originalExit: t.originalExit }, exitCode: t.exitCode, realMs: t.realMs, ...t.simMs !== void 0 && { simMs: t.simMs }, ...t.playOut !== void 0 && { playOut: t.playOut }, ...t.sessionId !== void 0 && { sessionId: t.sessionId }, dir: t.dir }))
184518
184522
  };
184519
184523
  }
184520
- function summarize(run4, agent, minPassRate) {
184524
+ function summarize(run4, agent, minPassRate, options4 = {}) {
184521
184525
  const scenes = [...run4.results].map(([sceneId, value4]) => ({ ...summarizeScene(sceneId, value4.trials, value4.requestedTrials), ...value4.case && { scenarioId: value4.scene.id, case: value4.case } }));
184522
184526
  return {
184523
184527
  verdictVersion: VERDICT_VERSION,
@@ -184528,11 +184532,18 @@ function summarize(run4, agent, minPassRate) {
184528
184532
  minPassRate,
184529
184533
  verdict: scenes.every((s2) => s2.invalidTrials === 0 && meetsPassRate(s2.counts, minPassRate)) ? "pass" : "fail",
184530
184534
  scenes,
184535
+ ...options4.strict && { strict: { simulatedAnswers: [...run4.results].flatMap(([sceneId, { trials }]) => trials.filter((t) => trialValid(t) && (t.answers?.simulated ?? 0) > 0).map((t) => ({ sceneId, trial: t.trial, checks: t.checks.filter((c) => c.status !== "skipped" && c.error === void 0).map((c) => c.id) }))) } },
184531
184536
  ...[...run4.results.values()].some((value4) => value4.case) && { caseFingerprints: Object.fromEntries([...run4.results].flatMap(([id14, value4]) => value4.case ? [[id14, value4.case.fingerprint]] : [])) },
184532
184537
  sceneFingerprints: Object.fromEntries([...run4.results].map(([id14, { scene: scene2, records: records3 }]) => [id14, sceneFingerprint(records3 === void 0 ? scene2 : { scene: scene2, records: records3 })])),
184533
184538
  ...run4.agentEnvironment !== void 0 && { agentEnvironment: run4.agentEnvironment }
184534
184539
  };
184535
184540
  }
184541
+ function hasStrictViolation(summary) {
184542
+ return summary.scenes.some((scene2) => scene2.coverageGaps.length > 0 || (scene2.answers?.simulatedIn ?? 0) > 0);
184543
+ }
184544
+ function strictSummaryLines(summary) {
184545
+ return (summary.strict?.simulatedAnswers ?? []).map((item2) => `--strict: ${item2.sceneId} trial ${item2.trial} used simulated tool answers; checks: ${item2.checks.join(", ") || "none evaluated"}`);
184546
+ }
184536
184547
  function withheldNamedBy(issue6, environment2) {
184537
184548
  const text24 = issue6.logTail.join("\n");
184538
184549
  return (environment2?.withheldInLogs ?? []).filter((name5) => /^[A-Z][A-Z0-9_]{3,}$/.test(name5) && new RegExp(`(?<![A-Za-z0-9_])${name5}(?![A-Za-z0-9_])`).test(text24));
@@ -184628,8 +184639,10 @@ function renderSummaryText(s2, opts = {}) {
184628
184639
  }
184629
184640
  }
184630
184641
  lines.push("");
184642
+ lines.push(...strictSummaryLines(s2));
184631
184643
  if (s2.comparison !== void 0) lines.push(...comparisonLines(s2.comparison));
184632
- lines.push(`${s2.pytest && !s2.pytest.graded && !s2.pytest.invalid ? s2.pytest.outcome + " (ungraded)" : s2.verdict} (minimum pass rate ${pct(s2.minPassRate)}%) run ${s2.runId}`);
184644
+ const noneGraded = s2.scenes.length > 0 && s2.scenes.every((scene2) => scene2.trials > 0 && (scene2.invalidTrials ?? 0) >= scene2.trials);
184645
+ lines.push(`${s2.pytest && !s2.pytest.graded && !s2.pytest.invalid ? s2.pytest.outcome + " (ungraded)" : noneGraded ? "invalid (no trials graded)" : s2.verdict} (minimum pass rate ${pct(s2.minPassRate)}%) run ${s2.runId}`);
184633
184646
  const next2 = nextAfterRun(s2, opts);
184634
184647
  if (next2.length > 0) lines.push(`next: ${next2.join(", then ")}`);
184635
184648
  return lines.join("\n").replaceAll(PATTERN_NOTE, "") + (lines.some((line2) => line2.includes(PATTERN_NOTE)) ? `
@@ -187164,6 +187177,7 @@ var init_run_store = __esm({
187164
187177
  "use strict";
187165
187178
  init_src();
187166
187179
  init_report2();
187180
+ init_jobs_contract();
187167
187181
  }
187168
187182
  });
187169
187183
 
@@ -204868,6 +204882,7 @@ init_config();
204868
204882
 
204869
204883
  // packages/cli/src/hosted-run.ts
204870
204884
  init_src();
204885
+ init_report2();
204871
204886
 
204872
204887
  // packages/cli/src/cloud-bundle.ts
204873
204888
  init_src();
@@ -204880,6 +204895,7 @@ init_jobs_contract();
204880
204895
  // backend/src/cloud/dependencies.ts
204881
204896
  import { execFile as execFile4 } from "node:child_process";
204882
204897
  import { promisify as promisify4 } from "node:util";
204898
+ var import_yaml4 = __toESM(require_dist(), 1);
204883
204899
  init_src();
204884
204900
  init_source();
204885
204901
  init_run();
@@ -204890,6 +204906,7 @@ var exec3 = promisify4(execFile4);
204890
204906
  var MIB2 = 1024 * 1024;
204891
204907
 
204892
204908
  // packages/cli/src/cloud-bundle.ts
204909
+ init_run_store();
204893
204910
  init_config();
204894
204911
  init_report2();
204895
204912
  init_agent_env();
@@ -205032,7 +205049,7 @@ async function interruptible(ctx, fn) {
205032
205049
  external2?.removeEventListener("abort", stop);
205033
205050
  }
205034
205051
  }
205035
- function emitFinished(ctx, summary, out, upload4, uploadHint, reproduction = []) {
205052
+ function emitFinished(ctx, summary, out, upload4, uploadHint, reproduction = summary.reproduction ?? []) {
205036
205053
  if (ctx.out.json) ctx.out.event({ event: "run_finished", summary, next: nextAfterRun(summary, { out: nonDefaultOut(ctx.io.cwd, out) }), ...upload4 !== void 0 && { upload: upload4 }, ...reproduction.length > 0 && { reproduction } });
205037
205054
  else ctx.out.result(summary, () => `
205038
205055
  ${renderSummaryText(summary, { out: nonDefaultOut(ctx.io.cwd, out) })}${reproduction.length > 0 ? `
@@ -205047,7 +205064,10 @@ async function uploadFinished(ctx, input4, runId) {
205047
205064
  return await uploadRun(ctx, input4.upload.workspace, { runId, runDir: join19(input4.outDir, runId), ...input4.agent.passEnv !== void 0 && { passEnv: input4.agent.passEnv }, ...input4.agent.inheritEnv && { inheritEnv: true } });
205048
205065
  } catch (error64) {
205049
205066
  const json33 = toErrorJson(error64);
205050
- if (input4.upload.required) ctx.exitCode = Math.max(ctx.exitCode, exitCodeFor(json33.code));
205067
+ if (input4.upload.required) {
205068
+ const code2 = exitCodeFor(json33.code), precedence = [0, 1, 4, 2, 3];
205069
+ if (precedence.indexOf(code2) > precedence.indexOf(ctx.exitCode)) ctx.exitCode = code2;
205070
+ }
205051
205071
  if (!ctx.out.json) ctx.out.info(`${input4.upload.required ? "error" : "warning"}: the run finished, but its upload failed: ${json33.message}${json33.hint !== void 0 ? `
205052
205072
  hint: ${json33.hint}` : ""}`);
205053
205073
  return { error: json33, ...input4.upload.required && { required: true } };
@@ -205083,23 +205103,24 @@ async function executePreparedRun(ctx, input4, initial, ready3) {
205083
205103
  ctx.out.event(shown);
205084
205104
  }
205085
205105
  });
205086
- const result = { ...summarize(run4, input4.agent.mode === "endpoint" ? input4.agent.url : input4.agent.command, input4.minPassRate), ...where2 };
205106
+ const result = { ...summarize(run4, input4.agent.mode === "endpoint" ? input4.agent.url : input4.agent.command, input4.minPassRate, { strict: input4.strict }), ...where2 };
205087
205107
  if (input4.baseline !== void 0) {
205088
205108
  result.comparison = compareSummaries(result, input4.baseline);
205089
205109
  if (result.comparison.regressed) result.verdict = "fail";
205090
205110
  }
205111
+ result.exitCode = result.scenes.some((scene2) => (scene2.invalidTrials ?? 0) > 0) ? EXIT_INFRASTRUCTURE : input4.strict && hasStrictViolation(result) ? EXIT_STRICT_GAP : result.verdict === "pass" ? 0 : EXIT_CHECKS_FAILED;
205112
+ result.reproduction = input4.cloudAttempt ? [] : await reproductionOf(result, input4.scenePaths, ctx.io.cwd, run4.dir, input4.scenes);
205091
205113
  await writeSummary(run4, result);
205092
205114
  return result;
205093
205115
  } finally {
205094
205116
  await backend.close();
205095
205117
  }
205096
205118
  });
205097
- const gaps2 = summary.scenes.some((scene2) => scene2.coverageGaps.length > 0);
205098
- ctx.exitCode = summary.scenes.some((scene2) => (scene2.invalidTrials ?? 0) > 0) ? EXIT_INFRASTRUCTURE : input4.strict && gaps2 ? EXIT_STRICT_GAP : summary.verdict === "pass" ? 0 : EXIT_CHECKS_FAILED;
205119
+ ctx.exitCode = summary.exitCode;
205099
205120
  const upload4 = await uploadFinished(ctx, input4, summary.runId);
205100
205121
  await writer.finish({ state: "finished", exitCode: ctx.exitCode, ...upload4 !== void 0 && { upload: keptUpload(upload4, summary.runId) } });
205101
- if (ctx.exitCode === EXIT_STRICT_GAP) ctx.out.info("--strict: the agent hit an endpoint Ancha does not implement (see coverage gaps)");
205102
- emitFinished(ctx, summary, input4.out, upload4, input4.uploadHint, input4.cloudAttempt ? [] : await reproductionOf(summary, input4.scenePaths, ctx.io.cwd, join19(resolve11(ctx.io.cwd, input4.out ?? DEFAULT_RUNS_DIR), summary.runId), input4.scenes));
205122
+ if (input4.strict && summary.scenes.some((scene2) => scene2.coverageGaps.length > 0)) ctx.out.info("--strict: endpoint coverage errors are recorded in the summary");
205123
+ emitFinished(ctx, summary, input4.out, upload4, input4.uploadHint);
205103
205124
  } catch (error64) {
205104
205125
  const code2 = toErrorJson(error64).code;
205105
205126
  const interrupted2 = error64 instanceof AnchaError && error64.code === "USAGE" && error64.message === "run interrupted";
@@ -116862,6 +116862,10 @@ var Environment = class _Environment {
116862
116862
  this.clock.onChange = path4 === void 0 ? void 0 : () => this.#writeClock();
116863
116863
  this.#writeClock();
116864
116864
  }
116865
+ /** Signed request freshness follows the receiving app's clock. */
116866
+ deliveryNowMs(realNow = Date.now) {
116867
+ return this.#clockFile === void 0 ? realNow() : Math.floor(this.clock.nowMs());
116868
+ }
116865
116869
  #writeClock() {
116866
116870
  const path4 = this.#clockFile;
116867
116871
  if (path4 === void 0) return;
@@ -156855,7 +156859,7 @@ var checks = {
156855
156859
  // packages/server/src/twins/carrier-portal/pdf.ts
156856
156860
  var winAnsi = new Map([..."\u20AC\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\u017D\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\u017E\u0178"].map((c, i) => [c, [128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 142, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 158, 159][i]]));
156857
156861
  function encodeText(text23) {
156858
- return [...text23].map((c) => {
156862
+ return [...text23.normalize("NFC")].map((c) => {
156859
156863
  const code2 = c.codePointAt(0);
156860
156864
  if (code2 >= 32 && code2 <= 126 || code2 >= 160 && code2 <= 255) return c;
156861
156865
  if (winAnsi.has(c)) return String.fromCharCode(winAnsi.get(c));
@@ -166940,7 +166944,7 @@ var EndpointDelivery = class {
166940
166944
  try {
166941
166945
  const target4 = this.#options.targets[service];
166942
166946
  const call2 = service === "app" ? appCall(event3, target4) : void 0;
166943
- const delivered = call2?.delivered ?? materializeEvent(event3, this.#info, (this.#options.realNow ?? Date.now)(), target4);
166947
+ const delivered = call2?.delivered ?? materializeEvent(event3, this.#info, this.#env.deliveryNowMs(this.#options.realNow), target4);
166944
166948
  delivered.headers["x-ancha-env-id"] = this.#env.id;
166945
166949
  delivered.headers["x-ancha-session-id"] = this.#session.id;
166946
166950
  response5 = await postEvent(call2?.url ?? target4, delivered, {
@@ -167474,7 +167478,7 @@ async function readFeed(env, options3) {
167474
167478
  const excludedServices = options3.excludedServices?.();
167475
167479
  const deliveredEvents = events3.filter((event3) => !excludedServices?.has(event3.service));
167476
167480
  const batch3 = {
167477
- events: deliveredEvents.map((event3) => materializeEvent(event3, options3.info, (options3.realNow ?? Date.now)())),
167481
+ events: deliveredEvents.map((event3) => materializeEvent(event3, options3.info, env.deliveryNowMs(options3.realNow))),
167478
167482
  cursor: events3.at(-1)?.cursor ?? after
167479
167483
  };
167480
167484
  if (deliveredEvents.length > 0) {
@@ -167583,7 +167587,7 @@ var TrialSessions = class {
167583
167587
  const socket = options3.slackTransport === "socket" && env.twins.some((t) => t.name === "slack") ? new SocketDelivery(env, session2, this.#manager, slackSocketCodec(env.ctxFor("slack"))) : void 0;
167584
167588
  this.#records.set(env, { session: session2, options: structuredClone(options3), signal: env.signal, delivery, socket, busy: 0 });
167585
167589
  env.openPreparedBootstrap({ setupCalls: options3.setupCalls === true });
167586
- if (options3.clockFile !== void 0) env.setClockFile(options3.clockFile);
167590
+ env.setClockFile(options3.clockFile);
167587
167591
  return { ...session2 };
167588
167592
  });
167589
167593
  }
@@ -167621,7 +167625,7 @@ var TrialSessions = class {
167621
167625
  type: "url_verification",
167622
167626
  tSim: env.clock.now().toISOString(),
167623
167627
  body: body6,
167624
- headers: { "content-type": "application/json", ...slackHeaders(secret, body6, Math.floor(Date.now() / 1e3)), "x-ancha-env-id": env.id, "x-ancha-session-id": session2.id }
167628
+ headers: { "content-type": "application/json", ...slackHeaders(secret, body6, Math.floor(env.deliveryNowMs() / 1e3)), "x-ancha-env-id": env.id, "x-ancha-session-id": session2.id }
167625
167629
  }, { signal });
167626
167630
  let matches9 = response5.body === challenge;
167627
167631
  if (!matches9) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancha-labs/cli",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "type": "module",
5
5
  "description": "Simulation playgrounds for agents: run your agent against stateful replicas of Slack, GitHub, Datadog and more, each attempt on a fresh cloud machine in your app.ancha.io workspace, or on your computer.",
6
6
  "bugs": {