@simplexai/localmodels-linux-arm64 0.1.0-dev.62 → 0.1.0-dev.64
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/bootstrap.identity +1 -1
- package/bootstrap.sha256 +112 -103
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/app.py +15 -2
- package/modules/localmodels/bifrost_checks.py +19 -13
- package/modules/localmodels/bifrost_clients.py +38 -36
- package/modules/localmodels/bifrost_config.py +19 -6
- package/modules/localmodels/bifrost_log.py +3 -3
- package/modules/localmodels/bifrost_models.py +9 -8
- package/modules/localmodels/bifrost_pi.py +27 -72
- package/modules/localmodels/catalog.json +85 -58
- package/modules/localmodels/catalog.py +26 -4
- package/modules/localmodels/catalog_recipes.py +37 -1
- package/modules/localmodels/context_policy.py +6 -1
- package/modules/localmodels/custom_hub.py +10 -1
- package/modules/localmodels/custom_hub_http.py +14 -3
- package/modules/localmodels/debug_mode.py +85 -103
- package/modules/localmodels/deploy.py +41 -6
- package/modules/localmodels/download-mirrors.json +126 -6
- package/modules/localmodels/draft_spec.py +122 -0
- package/modules/localmodels/engine_adapters/__init__.py +4 -0
- package/modules/localmodels/engine_adapters/auxiliary.py +27 -0
- package/modules/localmodels/engine_adapters/base.py +40 -0
- package/modules/localmodels/engine_adapters/strata_poly.py +57 -0
- package/modules/localmodels/engine_adapters/suite_plan.py +394 -0
- package/modules/localmodels/engines-prism-b12178-03ec600.json +7 -7
- package/modules/localmodels/gateway.py +56 -55
- package/modules/localmodels/gateway_bifrost.py +70 -83
- package/modules/localmodels/gateway_clients.py +33 -116
- package/modules/localmodels/gateway_home.py +5 -5
- package/modules/localmodels/gateway_keys.py +8 -6
- package/modules/localmodels/gateway_probe.py +4 -4
- package/modules/localmodels/gateway_server.py +4 -4
- package/modules/localmodels/gateway_speed.py +2 -2
- package/modules/localmodels/harness.py +185 -401
- package/modules/localmodels/harness_core.py +409 -0
- package/modules/localmodels/harness_gateway.py +75 -73
- package/modules/localmodels/harness_probe.py +19 -216
- package/modules/localmodels/install.py +15 -0
- package/modules/localmodels/library_convert.py +2 -8
- package/modules/localmodels/library_custom.py +51 -16
- package/modules/localmodels/library_elastic.py +3 -119
- package/modules/localmodels/library_gateway.py +59 -176
- package/modules/localmodels/library_jobs.py +1 -2
- package/modules/localmodels/library_model.py +23 -0
- package/modules/localmodels/library_poly.py +3 -2
- package/modules/localmodels/library_pricing.py +124 -15
- package/modules/localmodels/library_serve.py +9 -9
- package/modules/localmodels/library_smoke.py +33 -21
- package/modules/localmodels/library_status.py +330 -2
- package/modules/localmodels/llm_rank.py +14 -5
- package/modules/localmodels/magpie_setup.py +5 -4
- package/modules/localmodels/magpie_windows.py +1 -1
- package/modules/localmodels/memcalc_cli.py +2 -2
- package/modules/localmodels/pi_profile.py +384 -0
- package/modules/localmodels/planning/__init__.py +3 -0
- package/modules/localmodels/{memcalc_load.py → planning/memcalc_load.py} +1 -1
- package/modules/localmodels/{sizecalc.py → planning/sizecalc.py} +1 -1
- package/modules/localmodels/process_identity.py +3 -3
- package/modules/localmodels/runtime_cli.py +32 -46
- package/modules/localmodels/runtime_pi.py +1 -1
- package/modules/localmodels/service_deployment.py +2 -1
- package/modules/localmodels/sizecalc_cli.py +10 -2
- package/modules/localmodels/source_byok.py +9 -16
- package/modules/localmodels/speech_worker_sensevoice.py +30 -0
- package/modules/localmodels/stack.py +2 -4
- package/modules/localmodels/stack_arena.py +2 -2
- package/modules/localmodels/stack_auto.py +1 -1
- package/modules/localmodels/stack_aux_gpu.py +4 -2
- package/modules/localmodels/stack_binding.py +9 -7
- package/modules/localmodels/stack_card.py +2 -2
- package/modules/localmodels/stack_cleanup.py +3 -2
- package/modules/localmodels/stack_clients.py +137 -21
- package/modules/localmodels/stack_compose.py +9 -1
- package/modules/localmodels/stack_doctor.py +6 -3
- package/modules/localmodels/stack_hardware.py +18 -0
- package/modules/localmodels/stack_ledger.py +2 -1
- package/modules/localmodels/stack_lifecycle.py +3 -2
- package/modules/localmodels/stack_mcp.py +1 -1
- package/modules/localmodels/stack_memory.py +3 -3
- package/modules/localmodels/stack_remove.py +2 -1
- package/modules/localmodels/stack_run.py +16 -0
- package/modules/localmodels/stack_suite.py +4 -3
- package/modules/localmodels/stack_try.py +2 -1
- package/modules/localmodels/stack_up.py +15 -30
- package/modules/localmodels/stack_verify.py +2 -2
- package/modules/localmodels/stack_view_events.py +2 -2
- package/modules/localmodels/stack_view_llm.py +12 -7
- package/modules/localmodels/stack_warm.py +6 -3
- package/modules/localmodels/stack_whatif.py +1 -1
- package/modules/localmodels/suite.py +6 -334
- package/modules/localmodels/tui_views.py +17 -2
- package/modules/localmodels/web/index.html +595 -226
- package/modules/localmodels/web/sizecalc/app.js +34 -40
- package/modules/localmodels/web/sizecalc/calc.js +3 -3
- package/modules/localmodels/web/sizecalc/page.html +4 -3
- package/modules/localmodels/web/view/fleet.html +18 -3
- package/modules/localmodels/web/view/fleet.js +135 -14
- package/modules/localmodels/web/view/i18n.js +4 -0
- package/modules/localmodels/web/view/index.html +16 -0
- package/modules/localmodels/web/view/nav.js +49 -0
- package/modules/localmodels/web/view/theme.js +1 -1
- package/modules/localmodels/web/view/view.css +51 -15
- package/modules/localmodels/web/view/view.js +22 -4
- package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/RECORD +109 -100
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/localmodels/{memcalc.py → planning/memcalc.py} +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -187,8 +187,8 @@ main { min-width: 0; padding: 0 22px 60px; }
|
|
|
187
187
|
.crumb b { color: var(--fg); }
|
|
188
188
|
.top .grow { flex: 1; }
|
|
189
189
|
.icon-btn {
|
|
190
|
-
display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px;
|
|
191
|
-
background: none; color: var(--muted); cursor: pointer;
|
|
190
|
+
display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 0; border-radius: 7px;
|
|
191
|
+
background: none; color: var(--muted); text-decoration: none; cursor: pointer;
|
|
192
192
|
}
|
|
193
193
|
.icon-btn:hover { background: var(--pill); color: var(--fg); }
|
|
194
194
|
.icon-btn svg { width: 16px; height: 16px; }
|
|
@@ -213,6 +213,8 @@ main { min-width: 0; padding: 0 22px 60px; }
|
|
|
213
213
|
.tag.estimate { background: var(--accent-soft); color: var(--accent); }
|
|
214
214
|
.tag.measured { background: color-mix(in srgb, var(--c-kv) 14%, transparent); color: color-mix(in srgb, var(--c-kv) var(--text-tint), var(--fg)); }
|
|
215
215
|
.tag.demo { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
|
|
216
|
+
.tag.warn { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
|
|
217
|
+
.tag.bad { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
|
|
216
218
|
.tag.none { background: var(--pill); color: var(--muted); }
|
|
217
219
|
|
|
218
220
|
/* ---------------------------------------------------------------- the flow (routing) graph */
|
|
@@ -607,13 +609,17 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
607
609
|
.start .copy.done { color: var(--ok); }
|
|
608
610
|
.start .why { color: var(--fg-2); font-size: 12.5px; }
|
|
609
611
|
@media (max-width: 760px) {
|
|
612
|
+
.card > header { flex-wrap: wrap; row-gap: 2px; }
|
|
613
|
+
.dev { height: auto; min-height: 30px; padding: 6px 10px; flex-wrap: wrap; row-gap: 3px; white-space: normal; }
|
|
614
|
+
.dev .mono { flex: 1 1 140px; white-space: normal; overflow-wrap: anywhere; }
|
|
610
615
|
.start li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 4px; }
|
|
611
616
|
.start .why { grid-column: 2; }
|
|
612
617
|
/* A phone stacks the flow top to bottom: clients in a row, the gateway, then the devices;
|
|
613
|
-
drawWires reads the layout, so the wires and fliers follow it. */
|
|
618
|
+
drawWires reads the layout, so the wires and fliers follow it along the left gutter. */
|
|
614
619
|
.flow { grid-template-columns: minmax(0, 1fr); row-gap: 28px; column-gap: 0; }
|
|
615
620
|
.srcs { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
|
|
616
621
|
.hub { justify-self: center; min-width: 150px; }
|
|
622
|
+
.dsts { padding-left: 16px; }
|
|
617
623
|
.dsts .row { margin-left: 0; grid-template-columns: 10px auto minmax(0, 1fr); row-gap: 3px; }
|
|
618
624
|
.dsts .row .st { grid-column: 2 / -1; white-space: normal; }
|
|
619
625
|
.dsts .dev { min-width: 0; }
|
|
@@ -701,8 +707,8 @@ body.embed .concepts.one { grid-template-columns: minmax(0, 1fr); }
|
|
|
701
707
|
.embed-open:hover { color: var(--accent); }
|
|
702
708
|
|
|
703
709
|
/* ---------------------------------------------------------------- notifications and snapshots */
|
|
704
|
-
#notify[aria-pressed="true"] { color: var(--accent); }
|
|
705
|
-
#notify[aria-pressed="true"] svg path:first-child { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
|
|
710
|
+
#notify[aria-pressed="true"], #fleet-notify[aria-pressed="true"] { color: var(--accent); }
|
|
711
|
+
#notify[aria-pressed="true"] svg path:first-child, #fleet-notify[aria-pressed="true"] svg path:first-child { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
|
|
706
712
|
.snap { position: relative; }
|
|
707
713
|
.snap .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 12; display: grid; min-width: 210px; padding: 5px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow), 0 0 0 0.5px var(--line); animation: menuin 0.14s ease-out; }
|
|
708
714
|
.snap .menu button { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--fg); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
|
|
@@ -734,6 +740,7 @@ body.resizing .tree .tile, body.lite .tree .tile { transition: none; }
|
|
|
734
740
|
@keyframes breathe { 50% { opacity: calc(var(--load) * 0.4); } }
|
|
735
741
|
body.lite .gpu.hot::before { animation: none; }
|
|
736
742
|
.dev .load { margin-left: auto; padding: 0 7px; border-radius: 6px; font: 11px/18px var(--code); font-variant-numeric: tabular-nums; color: var(--fg-2); background: linear-gradient(90deg, color-mix(in srgb, var(--c-llm) 22%, transparent) calc(var(--load) * 100%), var(--pill) 0); white-space: nowrap; transition: background 0.6s; }
|
|
743
|
+
@media (max-width: 760px) { .dev .load { margin-left: 0; max-width: 100%; white-space: normal; line-height: 1.45; padding: 2px 7px; } }
|
|
737
744
|
|
|
738
745
|
/* ---------------------------------------------------------------- the LLM's live slots */
|
|
739
746
|
.slots { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card-2); }
|
|
@@ -770,17 +777,21 @@ body.lite .gpu.hot::before { animation: none; }
|
|
|
770
777
|
/* ---------------------------------------------------------------- view hub (fleet.js) */
|
|
771
778
|
body.fleet { display: block; }
|
|
772
779
|
body.fleet main { max-width: 1180px; margin: 0 auto; }
|
|
780
|
+
body.fleet .crumb { display: inline-flex; align-items: center; gap: 6px; }
|
|
781
|
+
.crumb-mark { width: 18px; height: 18px; color: var(--accent); flex: none; }
|
|
782
|
+
.fleet-updated { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
|
|
773
783
|
body.fleet #fleet-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
|
|
774
784
|
body.fleet #fleet-sum:empty { display: none; }
|
|
775
785
|
.fleet-switch {
|
|
776
786
|
flex: 0 1 auto; min-width: 0; max-width: 360px; height: 28px; padding: 0 8px; border: 1px solid var(--line);
|
|
777
787
|
border-radius: 7px; background: var(--card); color: var(--fg); font: inherit;
|
|
778
788
|
}
|
|
779
|
-
.fl-row { padding: 12px
|
|
780
|
-
.fl-row:first-child {
|
|
781
|
-
.fl-row
|
|
782
|
-
.fl-row[data-href]
|
|
783
|
-
.fl-row[data-href]:hover
|
|
789
|
+
.fl-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
|
|
790
|
+
.fl-row:first-child { margin-top: 0; }
|
|
791
|
+
.fl-row.is-waiting { color: var(--muted); border-style: dashed; background: var(--card-2); }
|
|
792
|
+
.fl-row[data-href] { background: var(--card); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
|
|
793
|
+
.fl-row[data-href]:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border, var(--line))); background: var(--card-2); }
|
|
794
|
+
.fl-row.is-stale:not(:hover) { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
|
|
784
795
|
.fl-spark { width: 56px; height: 16px; color: var(--accent); flex-shrink: 0; }
|
|
785
796
|
.fl-head b { white-space: nowrap; }
|
|
786
797
|
.fl-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
@@ -790,13 +801,14 @@ body.fleet #fleet-sum:empty { display: none; }
|
|
|
790
801
|
.fl-head .grow { flex: 1; }
|
|
791
802
|
.fl-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; }
|
|
792
803
|
.fl-meta:empty { display: none; }
|
|
804
|
+
.fl-chevron { flex: none; color: var(--muted); font-size: 13px; transition: transform 0.15s, color 0.15s; }
|
|
805
|
+
.fl-row[data-href]:hover .fl-chevron { transform: translateX(2px); color: var(--accent); }
|
|
793
806
|
.fl-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
|
|
794
807
|
.fl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
|
|
795
808
|
.fl-dot.is-live { background: var(--ok); }
|
|
796
809
|
.fl-dot.is-stale { background: var(--bad); }
|
|
797
810
|
.fl-age { flex: none; color: var(--muted); font-size: 12px; }
|
|
798
811
|
.fl-age.is-stale { color: var(--bad); }
|
|
799
|
-
.fl-row.is-waiting { color: var(--muted); }
|
|
800
812
|
.fl-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0 16px; color: var(--fg-2); }
|
|
801
813
|
.fl-facts .bad { color: var(--bad); }
|
|
802
814
|
.fl-gpus { display: grid; gap: 4px; margin: 8px 0 0 16px; }
|
|
@@ -804,26 +816,50 @@ body.fleet #fleet-sum:empty { display: none; }
|
|
|
804
816
|
.fl-gpu-l, .fl-num { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
805
817
|
.fl-gpu .fl-bar { display: block; height: 8px; border-radius: 4px; background: var(--pill); overflow: hidden; }
|
|
806
818
|
.fl-gpu .fl-bar i { display: block; height: 100%; background: var(--c-llm); }
|
|
807
|
-
div.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin:
|
|
819
|
+
div.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 14px; padding: 8px 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; }
|
|
808
820
|
div.fl-bar .seg { flex-wrap: wrap; max-width: 100%; }
|
|
809
821
|
div.fl-bar input[type="search"] {
|
|
810
|
-
flex: 1 1
|
|
822
|
+
flex: 1 1 200px; min-width: 140px; height: 28px; padding: 0 10px; border: 1px solid var(--line);
|
|
811
823
|
border-radius: 7px; background: var(--card); color: var(--fg); font: inherit; font-size: 12.5px;
|
|
812
824
|
}
|
|
813
|
-
div.fl-bar input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
825
|
+
div.fl-bar input[type="search"]:focus-visible, .fl-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
814
826
|
.fl-filter { white-space: nowrap; }
|
|
815
827
|
.fl-filter[aria-pressed="true"] { font-weight: 560; }
|
|
816
828
|
.fl-filter small { margin-left: 4px; color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
|
|
817
829
|
.fl-filter small.bad { color: var(--bad); font-weight: 600; }
|
|
830
|
+
.fl-sort { display: flex; align-items: center; gap: 6px; margin-left: auto; }
|
|
831
|
+
.fl-select { height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: 12px; }
|
|
832
|
+
|
|
833
|
+
/* ---------------------------------------------------------------- keyboard shortcuts dialog */
|
|
834
|
+
.keys-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
|
|
835
|
+
.keys-dialog::backdrop { background: rgba(15, 18, 24, 0.4); }
|
|
836
|
+
.keys-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
|
|
837
|
+
.keys-head b { font-size: 14px; font-weight: 600; }
|
|
838
|
+
#keys-title:focus { outline: none; }
|
|
839
|
+
.keys-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
|
|
840
|
+
.keys-table tr { border-bottom: 1px solid var(--line-2); }
|
|
841
|
+
.keys-table tr:last-child { border-bottom: 0; }
|
|
842
|
+
.keys-table td { padding: 9px 16px; color: var(--fg-2); }
|
|
843
|
+
.keys-table td:first-child { width: 120px; color: var(--fg); white-space: nowrap; }
|
|
844
|
+
.keys-table kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--card-2); color: var(--fg); font: 11px/1 var(--code); }
|
|
845
|
+
.keys-foot { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); }
|
|
846
|
+
.keys-ok { height: 28px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-fg); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
|
|
847
|
+
.keys-ok:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
818
848
|
|
|
819
849
|
/* ---------------------------------------------------------------- narrow viewports */
|
|
850
|
+
@media (max-width: 760px) {
|
|
851
|
+
.fl-sort { margin-left: 0; width: 100%; justify-content: flex-end; }
|
|
852
|
+
div.fl-bar input[type="search"] { flex: 1 1 100%; }
|
|
853
|
+
}
|
|
820
854
|
@media (max-width: 720px) {
|
|
821
855
|
body.fleet .top { flex-wrap: wrap; height: auto; min-height: 48px; padding: 8px 0; row-gap: 6px; }
|
|
856
|
+
body.fleet .top .grow { display: none; }
|
|
822
857
|
body.fleet #fleet-sum {
|
|
823
858
|
order: 3; flex: 1 0 100%; height: auto; min-height: 22px; padding: 3px 8px;
|
|
824
859
|
white-space: normal; overflow: visible; line-height: 1.35;
|
|
825
860
|
}
|
|
826
861
|
}
|
|
862
|
+
.fl-top-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
|
|
827
863
|
@media (max-width: 640px) {
|
|
828
864
|
main { padding: 0 14px 48px; }
|
|
829
865
|
.tabs { margin: 0 -14px 12px; padding: 6px 14px; }
|
|
@@ -834,7 +870,7 @@ div.fl-bar input[type="search"]:focus-visible { outline: 2px solid var(--accent)
|
|
|
834
870
|
.top #live { max-width: 148px; }
|
|
835
871
|
.fleet-switch { max-width: 140px; }
|
|
836
872
|
.dev { height: auto; min-height: 30px; padding: 6px 10px; flex-wrap: wrap; gap: 4px 8px; white-space: normal; }
|
|
837
|
-
.dev .mono { min-width: 0; flex: 1 1 120px; white-space:
|
|
873
|
+
.dev .mono { min-width: 0; flex: 1 1 120px; white-space: normal; overflow-wrap: anywhere; }
|
|
838
874
|
.dev .load { margin-left: 0; max-width: 100%; white-space: normal; line-height: 1.45; padding: 2px 7px; }
|
|
839
875
|
.fl-head { flex-wrap: wrap; gap: 4px 8px; }
|
|
840
876
|
.fl-head .grow { display: none; }
|
|
@@ -324,6 +324,8 @@ function renderFlow(v) {
|
|
|
324
324
|
$("graph").hidden = empty;
|
|
325
325
|
$("story-row").hidden = empty;
|
|
326
326
|
$("start").hidden = !empty;
|
|
327
|
+
const flowExplain = document.querySelector("#flow > p.explain");
|
|
328
|
+
if (flowExplain) flowExplain.hidden = empty;
|
|
327
329
|
if (empty) {
|
|
328
330
|
for (const id of ["srcs", "hub", "dsts", "wires"]) $(id).replaceChildren();
|
|
329
331
|
renderStart(v.next_steps || []);
|
|
@@ -394,6 +396,17 @@ function drawWires() {
|
|
|
394
396
|
return `M${x1},${y1} C${x1 + dx},${y1} ${x2 - dx},${y2} ${x2},${y2}`;
|
|
395
397
|
};
|
|
396
398
|
const at = (r) => ({ x: r.left - box.left, y: r.top - box.top, w: r.width, h: r.height });
|
|
399
|
+
const dstsTop = at($("dsts").getBoundingClientRect()).y;
|
|
400
|
+
const bus = (x1, y1, r) => {
|
|
401
|
+
const gx = Math.max(4, r.x - 11);
|
|
402
|
+
const y2 = r.y + r.h / 2;
|
|
403
|
+
const midY = Math.max(y1 + 6, Math.min(dstsTop - 6, y1 + (dstsTop - y1) * 0.5));
|
|
404
|
+
if (r.x - gx < 2 || x1 <= gx + 2 || y2 <= midY + 4 || dstsTop <= y1 + 8) return curve(x1, y1, r.x + 4, y2);
|
|
405
|
+
const r1 = Math.min(6, midY - y1, (x1 - gx) / 2);
|
|
406
|
+
const r2 = Math.min(6, (x1 - gx) / 2, (y2 - midY) / 2);
|
|
407
|
+
const r3 = Math.min(6, (y2 - midY) / 2, r.x - gx);
|
|
408
|
+
return `M${x1},${y1} L${x1},${midY - r1} Q${x1},${midY} ${x1 - r1},${midY} L${gx + r2},${midY} Q${gx},${midY} ${gx},${midY + r2} L${gx},${y2 - r3} Q${gx},${y2} ${gx + r3},${y2} L${r.x},${y2}`;
|
|
409
|
+
};
|
|
397
410
|
const hb = at(hub);
|
|
398
411
|
const hubIn = stacked ? [hb.x + hb.w / 2, hb.y] : [hb.x, hb.y + hb.h / 2];
|
|
399
412
|
const hubOut = stacked ? [hb.x + hb.w / 2, hb.y + hb.h] : [hb.x + hb.w, hb.y + hb.h / 2];
|
|
@@ -410,9 +423,9 @@ function drawWires() {
|
|
|
410
423
|
const el = $(`dst-${c.id}`);
|
|
411
424
|
if (!el) continue;
|
|
412
425
|
const r = at(el.getBoundingClientRect());
|
|
413
|
-
// Stacked, every row is below the hub:
|
|
414
|
-
const
|
|
415
|
-
const p = h("path", { d
|
|
426
|
+
// Stacked, every row is below the hub: route along the left gutter so wires never cut behind cards.
|
|
427
|
+
const d = stacked ? bus(...hubOut, r) : curve(...hubOut, r.x, r.y + r.h / 2);
|
|
428
|
+
const p = h("path", { d, stroke: color(c.id), class: c.state === "serving" ? "" : "idle" });
|
|
416
429
|
wires.append(p);
|
|
417
430
|
S.wiresOut[c.id] = p;
|
|
418
431
|
}
|
|
@@ -2072,13 +2085,18 @@ function hint(el, seg) {
|
|
|
2072
2085
|
}
|
|
2073
2086
|
|
|
2074
2087
|
function chrome() {
|
|
2088
|
+
const consoleLink = $("link-console");
|
|
2089
|
+
if (consoleLink) consoleLink.hidden = REMOTE || !!EMBED;
|
|
2075
2090
|
const order = ["auto", "light", "dark"];
|
|
2076
2091
|
$("theme").addEventListener("click", () => {
|
|
2077
2092
|
const now = document.documentElement.dataset.theme || "auto";
|
|
2078
2093
|
const next = order[(order.indexOf(now) + 1) % order.length];
|
|
2079
2094
|
if (next === "auto") delete document.documentElement.dataset.theme;
|
|
2080
2095
|
else document.documentElement.dataset.theme = next;
|
|
2081
|
-
try {
|
|
2096
|
+
try {
|
|
2097
|
+
localStorage.setItem("localmodels.theme", next);
|
|
2098
|
+
localStorage.setItem("lm-theme", next);
|
|
2099
|
+
} catch (e) { /* not kept */ }
|
|
2082
2100
|
requestAnimationFrame(drawWires);
|
|
2083
2101
|
});
|
|
2084
2102
|
NAV.init();
|