Files
Gokay Aydogan 73d9392bf7 feat: v2.5.0 — async execution, typed builders, featured tier, registry freshness
- Async node execution: on ComfyUI with native async support (detected
  via comfy_execution.utils, added in the same commit as async nodes),
  all dynamic nodes and Fal Any Endpoint run as coroutines — independent
  graph branches execute fal calls concurrently with no Submit/Collect
  required. Uploads/downloads/preflight run off-loop; older ComfyUI
  versions keep byte-identical sync behavior. Live-verified: two
  concurrent generations in 2.5s total.
- Typed builder nodes (FAL/Utils/Builders): 8 chainable builders
  (LoRA, embedding, ControlNet, IP-Adapter, reference image/element,
  multi-prompt shot, key-value, JSON merge) replacing JSON-by-hand for
  the 467 object-typed inputs across the catalog; shapes validated
  against live OpenAPI schemas.
- Discovery: FAL/Featured tier (data/featured_models.json, 26 flagship
  endpoints with display-name overrides), 434 models flagged as
  superseded within their family in node help, thumbnails in the
  endpoint picker.
- Registry freshness: startup delta check against the live catalog
  (logs how many models are newer than the snapshot), sidebar Registry
  section with one-click refresh (atomic registry write; restart note).
- Docs: README 1,946 → 327 lines; model tables moved to MODELS.md
  (generator retargeted; weekly refresh workflow now regenerates it);
  CONTRIBUTING.md redirects hand-written-node PRs to the registry and
  featured-list workflow.

Review fixes: spend-guard preflight moved off the event loop in the
async path; registry writes atomically via temp+rename; freshness
daemon gated off in tests; non-finite numbers rejected in FalKeyValue;
sidebar poll budget aligned with the server timeout.
2026-07-02 20:34:55 +03:00

269 lines
4.3 KiB
CSS

/* fal platform extension styles: sidebar panel + endpoint suggestions. */
.fal-panel {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px;
font-size: 12px;
color: #ece9fd;
}
.fal-panel-title {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.04em;
}
.fal-stats {
display: flex;
flex-direction: column;
gap: 6px;
padding: 10px;
border: 1px solid rgba(167, 139, 250, 0.25);
border-radius: 8px;
background: rgba(12, 12, 18, 0.6);
}
.fal-stat {
display: flex;
justify-content: space-between;
gap: 8px;
}
.fal-stat-label {
opacity: 0.65;
}
.fal-stat-value {
font-variant-numeric: tabular-nums;
font-weight: 600;
}
.fal-jobs-header {
font-weight: 600;
opacity: 0.85;
}
.fal-jobs {
display: flex;
flex-direction: column;
gap: 4px;
overflow-y: auto;
max-height: 60vh;
}
.fal-job {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.04);
}
.fal-job-icon {
flex: none;
}
.fal-job-info {
min-width: 0;
flex: 1;
}
.fal-job-endpoint {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fal-job-meta {
font-size: 10px;
opacity: 0.6;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
.fal-job-meta:hover {
opacity: 0.9;
}
.fal-job-cancel {
flex: none;
padding: 2px 8px;
border: 1px solid rgba(248, 113, 113, 0.5);
border-radius: 5px;
background: transparent;
color: #fca5a5;
font-size: 10px;
cursor: pointer;
}
.fal-job-cancel:hover {
background: rgba(248, 113, 113, 0.15);
}
.fal-jobs-empty {
padding: 6px 2px;
}
.fal-muted {
opacity: 0.55;
}
/* Floating fallback when no sidebar API is available. */
.fal-floating {
position: fixed;
right: 14px;
bottom: 14px;
z-index: 10000;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.fal-floating-toggle {
padding: 6px 14px;
border: 1px solid rgba(167, 139, 250, 0.5);
border-radius: 999px;
background: rgba(12, 12, 18, 0.92);
color: #ece9fd;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.fal-floating-panel {
width: 300px;
max-height: 70vh;
overflow-y: auto;
border: 1px solid rgba(167, 139, 250, 0.3);
border-radius: 10px;
background: rgba(12, 12, 18, 0.95);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
/* Endpoint autocomplete popup. */
.fal-suggest {
position: fixed;
z-index: 10001;
width: 380px;
max-height: 320px;
overflow-y: auto;
border: 1px solid rgba(167, 139, 250, 0.35);
border-radius: 8px;
background: rgba(12, 12, 18, 0.97);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
font-size: 12px;
color: #ece9fd;
}
.fal-suggest-item {
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
padding: 6px 10px;
cursor: pointer;
}
.fal-suggest-thumb {
flex: none;
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 6px;
background: rgba(255, 255, 255, 0.05);
}
.fal-suggest-text {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.fal-suggest-item:hover {
background: rgba(167, 139, 250, 0.15);
}
.fal-suggest-title {
font-weight: 600;
}
.fal-suggest-endpoint {
font-size: 10px;
opacity: 0.65;
}
.fal-suggest-price {
font-size: 10px;
color: #c4b5fd;
}
/* Registry freshness section in the sidebar panel. */
.fal-registry {
display: flex;
flex-direction: column;
gap: 4px;
}
.fal-registry-news {
display: flex;
flex-direction: column;
gap: 4px;
padding: 8px 10px;
border: 1px solid rgba(167, 139, 250, 0.25);
border-radius: 8px;
background: rgba(255, 255, 255, 0.04);
}
.fal-registry-count {
font-weight: 600;
color: #c4b5fd;
}
.fal-registry-model {
font-size: 11px;
opacity: 0.8;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fal-registry-refresh {
margin-top: 4px;
padding: 4px 10px;
border: 1px solid rgba(167, 139, 250, 0.5);
border-radius: 6px;
background: transparent;
color: #ece9fd;
font-size: 11px;
cursor: pointer;
}
.fal-registry-refresh:hover:not(:disabled) {
background: rgba(167, 139, 250, 0.15);
}
.fal-registry-refresh:disabled {
opacity: 0.55;
cursor: default;
}
.fal-registry-done {
font-size: 11px;
color: #86efac;
}
.fal-registry-error {
font-size: 11px;
color: #fca5a5;
}