@nice-code/commander 0.95.0 → 0.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- .nc-run-live{background-color:var(--nice-ui-semantic-success);background-image:linear-gradient(115deg,#0000 0%,#ffffff47 38%,#0000 58%);background-size:220% 100%;animation:2.8s linear infinite nc-liquid-sweep}.nc-run-live:after{content:"";background:#ffffff8c;border-radius:0 3px 3px 0;width:7px;animation:1.8s ease-in-out infinite nc-liquid-pulse;position:absolute;top:0;bottom:0;right:0}@keyframes nc-liquid-sweep{0%{background-position:0 0}to{background-position:-220% 0}}@keyframes nc-liquid-pulse{0%,to{opacity:.2}50%{opacity:.85}}@media (prefers-reduced-motion:reduce){.nc-run-live,.nc-run-live:after{animation:none}}.nc-chrome{font-family:var(--nice-ui-font-chrome-family);font-size:var(--nice-ui-font-chrome-size);font-weight:var(--nice-ui-font-chrome-weight);line-height:var(--nice-ui-font-chrome-line-height)}.nc-section-title{color:var(--nice-ui-text-emphasis);font-family:var(--nice-ui-font-label-family);font-size:var(--nice-ui-font-label-size);font-weight:var(--nice-ui-font-label-weight);letter-spacing:var(--nice-ui-font-label-letter-spacing,.4px);line-height:var(--nice-ui-font-label-line-height);margin-bottom:var(--nice-ui-space-sm);text-transform:uppercase}.nc-main{flex:1;min-height:0;display:flex}.nc-rail{flex-direction:column;flex:0 0 var(--nc-rail-w,440px);gap:var(--nice-ui-space-md);min-height:0;padding:var(--nice-ui-space-md);display:flex;overflow:hidden}.nc-procs{flex:1;min-height:0;overflow-y:auto}.nc-gutter{cursor:col-resize;flex:0 0 8px}.nc-gutter:after{background:var(--nice-ui-border-panel);content:"";width:1px;height:100%;margin:0 auto;display:block}.nc-gutter:hover:after,.nc-gutter:focus-visible:after,.nc-gutter[data-dragging=true]:after{background:var(--nice-ui-semantic-system)}.nc-logs{flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.nc-timeline-float{background:var(--nice-ui-surface-base);border:1px solid var(--nice-ui-border-panel);border-radius:var(--nice-ui-rounded-lg);box-shadow:0 var(--nice-ui-elevation-overlay-offset-y) var(--nice-ui-elevation-overlay-blur) var(--nice-ui-elevation-overlay-spread) color-mix(in srgb, var(--nice-ui-surface-void) 55%, transparent);z-index:5;width:480px;max-width:calc(100% - 24px);padding:10px 12px;position:absolute;top:52px;right:12px}@media (width<=900px){.nc-main{flex-direction:column}.nc-rail{border-bottom:1px solid var(--nice-ui-border-panel);flex:none;max-height:55%}.nc-gutter{display:none}.nc-logs{flex:1;min-height:0}}.nc-row .nc-row-actions{opacity:0;transition:opacity .12s}.nc-row:hover .nc-row-actions,.nc-row:focus-within .nc-row-actions{opacity:1}@media (prefers-reduced-motion:reduce){.nc-row .nc-row-actions{transition:none}}.nc-log-link{background:color-mix(in srgb, var(--nice-ui-semantic-system) 12%, transparent);border-radius:4px;padding:0 3px;text-decoration:none;transition:background-color .12s}.nc-log-link:hover{background:color-mix(in srgb, var(--nice-ui-semantic-system) 24%, transparent);text-decoration:underline}@media (prefers-reduced-motion:reduce){.nc-log-link{transition:none}}.nc-process-indicator{box-sizing:border-box;vertical-align:middle;border:1.5px solid;border-radius:50%;flex:none;justify-content:center;align-items:center;width:15px;height:15px;line-height:1;display:inline-flex}.nc-process-indicator svg{stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:100%;height:100%}.nc-process-indicator>span{font-size:10px;font-weight:700}.nc-indicator-running{width:10px;height:10px;box-shadow:0 0 9px color-mix(in srgb, var(--nice-ui-semantic-success) 28%, transparent);margin:2.5px;animation:1.8s ease-in-out infinite nc-running-breathe;position:relative}.nc-indicator-running:after{content:"";pointer-events:none;border:1px solid;border-radius:50%;animation:1.8s ease-out infinite nc-running-wave;position:absolute;inset:0}@keyframes nc-running-wave{0%{opacity:.85;transform:scale(1)}35%{opacity:.5;transform:scale(1.6)}to{opacity:0;transform:scale(2.3)}}.nc-indicator-transition{border-style:dashed}.nc-indicator-idle{opacity:.65}.nc-indicator-compact{width:11px;height:11px}.nc-indicator-compact.nc-indicator-running{width:7px;height:7px;margin:2px}@keyframes nc-running-breathe{0%,to{opacity:1;box-shadow:0 0 12px color-mix(in srgb, var(--nice-ui-semantic-success) 48%, transparent)}50%{opacity:.28;box-shadow:0 0 5px color-mix(in srgb, var(--nice-ui-semantic-success) 12%, transparent)}}.nc-shell{background:var(--nice-ui-surface-void)}.nc-header{background:linear-gradient(105deg, color-mix(in srgb, var(--nice-ui-semantic-system) 7%, var(--nice-ui-surface-void)), var(--nice-ui-surface-void) 65%);box-shadow:0 1px 18px color-mix(in srgb, var(--nice-ui-semantic-system) 5%, transparent)}.nc-header strong{letter-spacing:.045em}.nc-rail{background:linear-gradient(180deg, color-mix(in srgb, var(--nice-ui-semantic-system) 3%, transparent), transparent 65%)}.nc-overview{background:linear-gradient(125deg, color-mix(in srgb, var(--nice-ui-semantic-system) 7%, var(--nice-ui-surface-base)), var(--nice-ui-surface-base));border:1px solid var(--nice-ui-border-panel);border-radius:10px;padding:12px}.nc-overview-heading{color:var(--nice-ui-text-muted);justify-content:space-between;align-items:baseline;font-size:10px;display:flex}.nc-overview-heading .nc-section-title{margin:0}.nc-overview-counts{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0;display:grid}.nc-overview-counts>span{color:var(--nice-ui-semantic-metadata);font-size:10px}.nc-overview-counts strong{color:var(--nice-ui-text-emphasis);font-variant-numeric:tabular-nums;font-size:22px;font-weight:500;line-height:1.3;display:block}.nc-overview-counts>span[data-attention=true] strong{color:var(--nice-ui-semantic-error)}.nc-state-legend{border-top:1px solid var(--nice-ui-border-panel);color:var(--nice-ui-text-muted);padding-top:8px;font-size:10px}.nc-state-legend summary{cursor:pointer;width:fit-content}.nc-state-legend p{line-height:1.65}.nc-row,.nc-group-row{transition:box-shadow .16s,border-color .16s}.nc-row:hover,.nc-group-row:hover{box-shadow:0 0 0 1px color-mix(in srgb, var(--nice-ui-semantic-system) 20%, transparent)}.nc-row[data-selected=true]{box-shadow:inset 3px 0 var(--nice-ui-semantic-system), 0 0 18px color-mix(in srgb, var(--nice-ui-semantic-system) 7%, transparent)}.nc-row[data-outcome=failure]{box-shadow:inset 3px 0 color-mix(in srgb, var(--nice-ui-semantic-error) 70%, transparent)}.nc-shell button{transition:filter .14s,box-shadow .14s}.nc-shell button:hover:not(:disabled){filter:brightness(1.15)}.nc-shell button:disabled{cursor:not-allowed;opacity:.5}.nc-shell button:focus-visible,.nc-state-legend summary:focus-visible{outline:2px solid var(--nice-ui-focus-ring);outline-offset:3px}@media (hover:none){.nc-row .nc-row-actions{opacity:1}}@media (prefers-reduced-motion:reduce){.nc-indicator-running{animation:none}.nc-indicator-running:after{animation:none;display:none}.nc-row,.nc-group-row,.nc-shell button{transition:none}}.nc-overview-attention{color:var(--nice-ui-semantic-warning);margin:0 0 8px;font-size:10px}.nc-group-identity{align-items:baseline;gap:6px;min-width:0;display:flex}.nc-group-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.nc-group-status{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.nc-group-members{flex-wrap:wrap;gap:3px;min-width:0;max-width:100%;display:inline-flex}.nc-rail,.nc-rail>section,.nc-procs{min-width:0}.nc-header strong{overflow-wrap:anywhere;max-width:100%}@media (width<=900px){.nc-rail{overflow-y:auto}.nc-rail>section,.nc-procs{flex:none}.nc-procs{overflow:visible}.nc-logs{min-height:0}.nc-timeline-float{box-sizing:border-box;flex:none;width:auto;max-width:none;max-height:40%;margin:8px 12px;position:static;overflow:auto}}
1
+ .nc-run-live{background-color:var(--nice-ui-semantic-success);background-image:linear-gradient(115deg,#0000 0%,#ffffff47 38%,#0000 58%);background-size:220% 100%;animation:2.8s linear infinite nc-liquid-sweep}.nc-run-live:after{content:"";background:#ffffff8c;border-radius:0 3px 3px 0;width:7px;animation:1.8s ease-in-out infinite nc-liquid-pulse;position:absolute;top:0;bottom:0;right:0}@keyframes nc-liquid-sweep{0%{background-position:0 0}to{background-position:-220% 0}}@keyframes nc-liquid-pulse{0%,to{opacity:.2}50%{opacity:.85}}@media (prefers-reduced-motion:reduce){.nc-run-live,.nc-run-live:after{animation:none}}.nc-chrome{font-family:var(--nice-ui-font-chrome-family);font-size:var(--nice-ui-font-chrome-size);font-weight:var(--nice-ui-font-chrome-weight);line-height:var(--nice-ui-font-chrome-line-height)}.nc-section-title{color:var(--nice-ui-text-emphasis);font-family:var(--nice-ui-font-label-family);font-size:var(--nice-ui-font-label-size);font-weight:var(--nice-ui-font-label-weight);letter-spacing:var(--nice-ui-font-label-letter-spacing,.4px);line-height:var(--nice-ui-font-label-line-height);margin-bottom:var(--nice-ui-space-sm);text-transform:uppercase}.nc-main{flex:1;min-height:0;display:flex}.nc-rail{flex-direction:column;flex:0 0 var(--nc-rail-w,440px);gap:var(--nice-ui-space-md);min-height:0;padding:var(--nice-ui-space-md);display:flex;overflow:hidden}.nc-procs{flex:1;min-height:0;overflow-y:auto}.nc-gutter{cursor:col-resize;flex:0 0 8px}.nc-gutter:after{background:var(--nice-ui-border-panel);content:"";width:1px;height:100%;margin:0 auto;display:block}.nc-gutter:hover:after,.nc-gutter:focus-visible:after,.nc-gutter[data-dragging=true]:after{background:var(--nice-ui-semantic-system)}.nc-logs{flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.nc-timeline-float{background:var(--nice-ui-surface-base);border:1px solid var(--nice-ui-border-panel);border-radius:var(--nice-ui-rounded-lg);box-shadow:0 var(--nice-ui-elevation-overlay-offset-y) var(--nice-ui-elevation-overlay-blur) var(--nice-ui-elevation-overlay-spread) color-mix(in srgb, var(--nice-ui-surface-void) 55%, transparent);z-index:5;width:480px;max-width:calc(100% - 24px);padding:10px 12px;position:absolute;top:52px;right:12px}@media (width<=900px){.nc-main{flex-direction:column}.nc-rail{border-bottom:1px solid var(--nice-ui-border-panel);flex:none;max-height:55%}.nc-gutter{display:none}.nc-logs{flex:1;min-height:0}}.nc-row .nc-row-actions{opacity:0;transition:opacity .12s}.nc-row:hover .nc-row-actions,.nc-row:focus-within .nc-row-actions{opacity:1}@media (prefers-reduced-motion:reduce){.nc-row .nc-row-actions{transition:none}}.nc-log-link{background:color-mix(in srgb, var(--nice-ui-semantic-system) 12%, transparent);border-radius:4px;padding:0 3px;text-decoration:none;transition:background-color .12s}.nc-log-link:hover{background:color-mix(in srgb, var(--nice-ui-semantic-system) 24%, transparent);text-decoration:underline}@media (prefers-reduced-motion:reduce){.nc-log-link{transition:none}}.nc-process-indicator{box-sizing:border-box;vertical-align:middle;border:1.5px solid;border-radius:50%;flex:none;justify-content:center;align-items:center;width:15px;height:15px;line-height:1;display:inline-flex}.nc-process-indicator svg{stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:100%;height:100%}.nc-process-indicator>span{font-size:10px;font-weight:700}.nc-indicator-running{width:10px;height:10px;box-shadow:0 0 9px color-mix(in srgb, var(--nice-ui-semantic-success) 28%, transparent);margin:2.5px;animation:1.8s ease-in-out infinite nc-running-breathe;position:relative}.nc-indicator-running:after{content:"";pointer-events:none;border:1px solid;border-radius:50%;animation:1.8s ease-out infinite nc-running-wave;position:absolute;inset:0}@keyframes nc-running-wave{0%{opacity:.85;transform:scale(1)}35%{opacity:.5;transform:scale(1.6)}to{opacity:0;transform:scale(2.3)}}.nc-indicator-transition{border-style:dashed}.nc-indicator-idle{opacity:.65}.nc-indicator-compact{width:11px;height:11px}.nc-indicator-compact.nc-indicator-running{width:7px;height:7px;margin:2px}@keyframes nc-running-breathe{0%,to{opacity:1;box-shadow:0 0 12px color-mix(in srgb, var(--nice-ui-semantic-success) 48%, transparent)}50%{opacity:.28;box-shadow:0 0 5px color-mix(in srgb, var(--nice-ui-semantic-success) 12%, transparent)}}.nc-shell{background:var(--nice-ui-surface-void)}.nc-header{background:linear-gradient(105deg, color-mix(in srgb, var(--nice-ui-semantic-system) 7%, var(--nice-ui-surface-void)), var(--nice-ui-surface-void) 65%);box-shadow:0 1px 18px color-mix(in srgb, var(--nice-ui-semantic-system) 5%, transparent)}.nc-header strong{letter-spacing:.045em}.nc-rail{background:linear-gradient(180deg, color-mix(in srgb, var(--nice-ui-semantic-system) 3%, transparent), transparent 65%)}.nc-overview{background:linear-gradient(125deg, color-mix(in srgb, var(--nice-ui-semantic-system) 7%, var(--nice-ui-surface-base)), var(--nice-ui-surface-base));border:1px solid var(--nice-ui-border-panel);border-radius:10px;padding:12px}.nc-overview-heading{color:var(--nice-ui-text-muted);justify-content:space-between;align-items:baseline;font-size:10px;display:flex}.nc-overview-heading .nc-section-title{margin:0}.nc-overview-counts{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0;display:grid}.nc-overview-counts>span{color:var(--nice-ui-semantic-metadata);font-size:10px}.nc-overview-counts strong{color:var(--nice-ui-text-emphasis);font-variant-numeric:tabular-nums;font-size:22px;font-weight:500;line-height:1.3;display:block}.nc-overview-counts>span[data-attention=true] strong{color:var(--nice-ui-semantic-error)}.nc-state-legend{border-top:1px solid var(--nice-ui-border-panel);color:var(--nice-ui-text-muted);padding-top:8px;font-size:10px}.nc-state-legend summary{cursor:pointer;width:fit-content}.nc-state-legend p{line-height:1.65}.nc-row,.nc-suite-card{transition:box-shadow .16s,border-color .16s,opacity .16s}.nc-row:hover,.nc-suite-card:hover{box-shadow:0 0 0 1px color-mix(in srgb, var(--nice-ui-semantic-system) 20%, transparent)}.nc-row[data-selected=true]{box-shadow:inset 3px 0 var(--nice-ui-semantic-system), 0 0 18px color-mix(in srgb, var(--nice-ui-semantic-system) 7%, transparent)}.nc-row[data-outcome=failure]{box-shadow:inset 3px 0 color-mix(in srgb, var(--nice-ui-semantic-error) 70%, transparent)}.nc-shell button{transition:filter .14s,box-shadow .14s}.nc-shell button:hover:not(:disabled){filter:brightness(1.15)}.nc-shell button:disabled{cursor:not-allowed;opacity:.5}.nc-shell button:focus-visible,.nc-state-legend summary:focus-visible{outline:2px solid var(--nice-ui-focus-ring);outline-offset:3px}@media (hover:none){.nc-row .nc-row-actions{opacity:1}}@media (prefers-reduced-motion:reduce){.nc-indicator-running{animation:none}.nc-indicator-running:after{animation:none;display:none}.nc-row,.nc-suite-card,.nc-shell button{transition:none}}.nc-overview-attention{color:var(--nice-ui-semantic-warning);margin:0 0 8px;font-size:10px}.nc-member-dots{flex-wrap:wrap;gap:3px;min-width:0;max-width:100%;display:inline-flex}.nc-quiet-button{border:1px solid var(--nice-ui-border-panel);color:var(--nice-ui-semantic-metadata);cursor:pointer;background:0 0;border-radius:5px;flex-shrink:0;padding:1px 7px;font-size:11px}.nc-quiet-button[data-warn=true]{border-color:color-mix(in srgb, var(--nice-ui-semantic-warning) 50%, transparent);color:var(--nice-ui-semantic-warning)}.nc-select{background:var(--nice-ui-surface-detail-header);border:1px solid var(--nice-ui-border-panel);color:var(--nice-ui-text-secondary);border-radius:5px;font-size:11px}.nc-segmented{border:1px solid var(--nice-ui-border-panel);border-radius:5px;display:inline-flex;overflow:hidden}.nc-segmented button{color:var(--nice-ui-text-muted);cursor:pointer;background:0 0;border:none;padding:0 8px;font-size:11px}.nc-segmented button[aria-pressed=true]{background:var(--nice-ui-semantic-system);color:var(--nice-ui-surface-void)}.nc-suites{flex-direction:column;gap:5px;min-width:0;max-height:220px;display:flex;overflow-y:auto}.nc-suite-card{border-radius:8px;flex-shrink:0;min-width:0;padding:6px 8px 7px}.nc-suite-play{background:var(--nice-ui-semantic-system);color:var(--nice-ui-surface-void);cursor:pointer;border:none;border-radius:999px;flex-shrink:0;width:22px;height:22px;padding:0;font-size:10px;line-height:22px}.nc-suite-identity{color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;flex:1;align-items:baseline;gap:6px;min-width:0;padding:0;display:flex}.nc-suite-progress{gap:2px;height:4px;margin-top:6px;display:flex}.nc-suite-progress>span{border-radius:2px;flex:1;min-width:2px}.nc-suite-meta{color:var(--nice-ui-text-muted);justify-content:space-between;align-items:center;gap:8px;margin-top:4px;font-size:11px;display:flex}.nc-saved{flex-wrap:wrap;gap:4px;display:flex}.nc-saved-chip{background:var(--nice-ui-surface-detail-header);border:1px solid var(--nice-ui-border-panel);border-radius:999px;align-items:center;min-width:0;max-width:100%;padding:0 4px 0 9px;display:inline-flex}.nc-saved-chip[data-active=true]{border-color:var(--nice-ui-semantic-system)}.nc-saved-chip[data-pinned=false]{border-style:dashed}.nc-saved-open,.nc-saved-action{color:var(--nice-ui-text-muted);cursor:pointer;background:0 0;border:none;font-size:11px}.nc-saved-open{align-items:center;gap:6px;min-width:0;padding:1px 0;display:inline-flex}.nc-saved-action{padding:0 3px}.nc-tag-group-heading{border-bottom:1px solid var(--nice-ui-border-panel);margin-bottom:6px;padding-bottom:4px}.nc-tag-group-heading[data-focused=true]{border-bottom-color:var(--nice-ui-semantic-system)}.nc-caret{color:var(--nice-ui-text-muted);cursor:pointer;background:0 0;border:none;padding:0 2px;font-size:11px}.nc-tag-group-identity{color:inherit;cursor:pointer;background:0 0;border:none;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;padding:0;display:flex}.nc-signature-chip{background:color-mix(in srgb, var(--nice-ui-semantic-system) 16%, transparent);color:var(--nice-ui-text-emphasis);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;max-width:100%;padding:0 8px;font-size:11px;overflow:hidden}.nc-tag-group-sub{color:var(--nice-ui-text-muted);flex-wrap:wrap;align-items:center;gap:8px;margin-top:3px;padding-left:18px;font-size:11px;display:flex}.nc-dep-dots{color:var(--nice-ui-text-muted);flex:none;align-items:center;gap:3px;font-size:10px;display:inline-flex}.nc-dep-dots button{cursor:pointer;background:0 0;border:none;padding:0;display:inline-flex}.nc-origin{color:var(--nice-ui-semantic-system);flex:none;font-size:10px}.nc-row[data-muted=true]{opacity:.6}.nc-row[data-dep-role=upstream]{box-shadow:inset 2px 0 var(--nice-ui-semantic-system)}.nc-row[data-dep-role=downstream]{box-shadow:inset 2px 0 var(--nice-ui-text-muted)}.nc-row[data-dep-role=unrelated]{opacity:.55}.nc-palette-input{background:var(--nice-ui-surface-detail-header);border:1px solid var(--nice-ui-border-panel);box-sizing:border-box;color:var(--nice-ui-text-secondary);border-radius:6px;flex:1;width:100%;padding:6px 8px}.nc-palette-list{flex-direction:column;max-height:320px;margin-top:8px;display:flex;overflow-y:auto}.nc-palette-list button{cursor:pointer;text-align:left;background:0 0;border:none;border-radius:5px;justify-content:space-between;align-items:baseline;gap:10px;padding:4px 8px;font-size:13px;display:flex}.nc-palette-list button[data-active=true]{background:var(--nice-ui-surface-selected)}.nc-rail,.nc-rail>section,.nc-procs{min-width:0}.nc-header strong{overflow-wrap:anywhere;max-width:100%}@media (width<=900px){.nc-rail{overflow-y:auto}.nc-rail>section,.nc-procs{flex:none}.nc-procs{overflow:visible}.nc-logs{min-height:0}.nc-timeline-float{box-sizing:border-box;flex:none;width:auto;max-width:none;max-height:40%;margin:8px 12px;position:static;overflow:auto}}
@@ -24,8 +24,8 @@
24
24
  }
25
25
  * { box-sizing: border-box; }
26
26
  </style>
27
- <script type="module" crossorigin src="/assets/index-DvDRKmj5.js"></script>
28
- <link rel="stylesheet" crossorigin href="/assets/index-0MrLSa7o.css">
27
+ <script type="module" crossorigin src="/assets/index-B71o2DG0.js"></script>
28
+ <link rel="stylesheet" crossorigin href="/assets/index-p81Nnav2.css">
29
29
  </head>
30
30
  <body>
31
31
  <div id="root"></div>
@@ -1 +1 @@
1
- {"version":3,"file":"config.cjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["// The `./config` subpath — what a `commander.config.ts` imports. Lightweight by contract:\n// types + the identity helper only (the loader, validation and their deps stay daemon-side).\n\nimport type { ICommanderConfig } from \"./config/types\";\n\nexport {\n COMMANDER_ID_PATTERN,\n type ICommanderConfig,\n type ICommanderDefaults,\n type ICommanderEndpoint,\n type ICommanderEndpointHealth,\n type ICommanderEnvVar,\n type ICommanderGroupDefinition,\n type ICommanderProcessDefinition,\n type TCommanderEndpointOwnership,\n type TCommanderEndpointProtocol,\n type TCommanderReady,\n type TCommanderTagQuery,\n type TCommanderTagQueryOr,\n} from \"./config/types\";\n\n/** Identity helper so `commander.config.ts` files are typed end to end. */\nexport function defineCommanderConfig<T extends ICommanderConfig>(config: T): T {\n return config;\n}\n"],"mappings":";;;;AAsBA,SAAgB,sBAAkD,QAAc;CAC9E,OAAO;AACT"}
1
+ {"version":3,"file":"config.cjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["// The `./config` subpath — what a `commander.config.ts` imports. Lightweight by contract:\n// types + the identity helper only (the loader, validation and their deps stay daemon-side).\n\nimport type { ICommanderConfig } from \"./config/types\";\n\nexport {\n COMMANDER_ID_PATTERN,\n type ICommanderConfig,\n type ICommanderDefaults,\n type ICommanderEndpoint,\n type ICommanderEndpointHealth,\n type ICommanderEnvVar,\n type ICommanderProcessDefinition,\n type ICommanderSuiteDefinition,\n type TCommanderEndpointOwnership,\n type TCommanderEndpointProtocol,\n type TCommanderReady,\n type TCommanderTagQuery,\n type TCommanderTagQueryOr,\n} from \"./config/types\";\n\n/** Identity helper so `commander.config.ts` files are typed end to end. */\nexport function defineCommanderConfig<T extends ICommanderConfig>(config: T): T {\n return config;\n}\n"],"mappings":";;;;AAsBA,SAAgB,sBAAkD,QAAc;CAC9E,OAAO;AACT"}
@@ -75,8 +75,16 @@ interface ICommanderProcessDefinition {
75
75
  envVars?: readonly ICommanderEnvVar[];
76
76
  /** Default "pipe" (held open until stop); "ignore" is an instant EOF. */
77
77
  stdin?: "pipe" | "ignore";
78
- /** Free-form; `role` and `project` are the house convention. */
79
- tags?: Record<string, string>;
78
+ /**
79
+ * Free-form; `role` and `project` are the house convention. A key may carry several values —
80
+ * `project: ["api", "billing"]` matches both `project=api` and `project=billing`.
81
+ */
82
+ tags?: Record<string, string | readonly string[]>;
83
+ /**
84
+ * Never swept up in bulk: a tag selection, a suite's `where` and `all` all skip it. It starts
85
+ * only by exact id, by a suite's explicit `include`, or as a declared dependency.
86
+ */
87
+ optIn?: boolean;
80
88
  /**
81
89
  * Transitive: starting this starts each dependency first and waits for it — service
82
90
  * dependencies until ready, task dependencies until succeeded. Acyclic, validated at load.
@@ -95,20 +103,30 @@ interface ICommanderProcessDefinition {
95
103
  ringBytes?: number;
96
104
  lineBytes?: number;
97
105
  };
98
- /** Tasks only: hard cap on run time so a hung check can't hang a task group forever. */
106
+ /** Tasks only: hard cap on run time so a hung check can't hang a suite run forever. */
99
107
  timeoutMs?: number;
100
108
  }
101
109
  /** Tag query: every entry must match (AND). An array of queries is OR'd. */
102
110
  type TCommanderTagQuery = Record<string, string>;
103
111
  type TCommanderTagQueryOr = TCommanderTagQuery | readonly TCommanderTagQuery[];
104
- interface ICommanderGroupDefinition {
105
- /** Tag-equality selection: OR of AND-maps. */
112
+ /**
113
+ * A named run-unit: several processes you mean to run as ONE thing (`verify`, `dev`). A label is
114
+ * a tag — a suite must resolve to at least two members.
115
+ */
116
+ interface ICommanderSuiteDefinition {
117
+ /** One line — shown on the suite's card and in `list`. */
118
+ description?: string;
119
+ /** Tag-equality selection: OR of AND-maps. Skips `optIn` processes. */
106
120
  where?: TCommanderTagQueryOr;
107
- /** Process ids and/or other group names. Group references must be acyclic. */
121
+ /** Process ids and/or other suite names. Suite references must be acyclic. */
108
122
  include?: readonly string[];
109
123
  /** Excluded ids and/or tag queries, applied last. */
110
124
  exclude?: readonly (string | TCommanderTagQuery)[] | TCommanderTagQuery;
111
- /** Delay between spawns within this group (no thundering herd of 17 tsc watchers). */
125
+ /** How many tasks run at once. Default 4. */
126
+ parallel?: number;
127
+ /** Stop scheduling tasks after the first failure. Default false. */
128
+ failFast?: boolean;
129
+ /** Delay between service spawns (no thundering herd of 17 tsc watchers). Default 100. */
112
130
  staggerMs?: number;
113
131
  }
114
132
  interface ICommanderDefaults {
@@ -120,17 +138,17 @@ interface ICommanderDefaults {
120
138
  ringBytes?: number;
121
139
  lineBytes?: number;
122
140
  };
123
- tags?: Record<string, string>;
141
+ tags?: Record<string, string | readonly string[]>;
124
142
  }
125
143
  interface ICommanderConfig {
126
144
  /** Config name — also the data-dir slug seed (D6). Same charset as ids. */
127
145
  name: string;
128
146
  defaults?: ICommanderDefaults;
129
147
  processes: ICommanderProcessDefinition[];
130
- groups?: Record<string, ICommanderGroupDefinition>;
148
+ suites?: Record<string, ICommanderSuiteDefinition>;
131
149
  /**
132
- * Selection used by a bare `up` (group name or id). Without it, bare `up` prints the
133
- * available groups and exits without mutating anything.
150
+ * Selection used by a bare `up` — a suite name, a process id, or one `tag=value` term. Without
151
+ * it, bare `up` prints the available suites and exits without mutating anything.
134
152
  */
135
153
  defaultSelection?: string;
136
154
  /** Local config helpers the D2 loader cannot discover automatically (repo-relative). */
@@ -144,5 +162,5 @@ interface ICommanderConfig {
144
162
  /** Identity helper so `commander.config.ts` files are typed end to end. */
145
163
  declare function defineCommanderConfig<T extends ICommanderConfig>(config: T): T;
146
164
  //#endregion
147
- export { COMMANDER_ID_PATTERN, type ICommanderConfig, type ICommanderDefaults, type ICommanderEndpoint, type ICommanderEndpointHealth, type ICommanderEnvVar, type ICommanderGroupDefinition, type ICommanderProcessDefinition, type TCommanderEndpointOwnership, type TCommanderEndpointProtocol, type TCommanderReady, type TCommanderTagQuery, type TCommanderTagQueryOr, defineCommanderConfig };
165
+ export { COMMANDER_ID_PATTERN, type ICommanderConfig, type ICommanderDefaults, type ICommanderEndpoint, type ICommanderEndpointHealth, type ICommanderEnvVar, type ICommanderProcessDefinition, type ICommanderSuiteDefinition, type TCommanderEndpointOwnership, type TCommanderEndpointProtocol, type TCommanderReady, type TCommanderTagQuery, type TCommanderTagQueryOr, defineCommanderConfig };
148
166
  //# sourceMappingURL=config.d.cts.map
@@ -75,8 +75,16 @@ interface ICommanderProcessDefinition {
75
75
  envVars?: readonly ICommanderEnvVar[];
76
76
  /** Default "pipe" (held open until stop); "ignore" is an instant EOF. */
77
77
  stdin?: "pipe" | "ignore";
78
- /** Free-form; `role` and `project` are the house convention. */
79
- tags?: Record<string, string>;
78
+ /**
79
+ * Free-form; `role` and `project` are the house convention. A key may carry several values —
80
+ * `project: ["api", "billing"]` matches both `project=api` and `project=billing`.
81
+ */
82
+ tags?: Record<string, string | readonly string[]>;
83
+ /**
84
+ * Never swept up in bulk: a tag selection, a suite's `where` and `all` all skip it. It starts
85
+ * only by exact id, by a suite's explicit `include`, or as a declared dependency.
86
+ */
87
+ optIn?: boolean;
80
88
  /**
81
89
  * Transitive: starting this starts each dependency first and waits for it — service
82
90
  * dependencies until ready, task dependencies until succeeded. Acyclic, validated at load.
@@ -95,20 +103,30 @@ interface ICommanderProcessDefinition {
95
103
  ringBytes?: number;
96
104
  lineBytes?: number;
97
105
  };
98
- /** Tasks only: hard cap on run time so a hung check can't hang a task group forever. */
106
+ /** Tasks only: hard cap on run time so a hung check can't hang a suite run forever. */
99
107
  timeoutMs?: number;
100
108
  }
101
109
  /** Tag query: every entry must match (AND). An array of queries is OR'd. */
102
110
  type TCommanderTagQuery = Record<string, string>;
103
111
  type TCommanderTagQueryOr = TCommanderTagQuery | readonly TCommanderTagQuery[];
104
- interface ICommanderGroupDefinition {
105
- /** Tag-equality selection: OR of AND-maps. */
112
+ /**
113
+ * A named run-unit: several processes you mean to run as ONE thing (`verify`, `dev`). A label is
114
+ * a tag — a suite must resolve to at least two members.
115
+ */
116
+ interface ICommanderSuiteDefinition {
117
+ /** One line — shown on the suite's card and in `list`. */
118
+ description?: string;
119
+ /** Tag-equality selection: OR of AND-maps. Skips `optIn` processes. */
106
120
  where?: TCommanderTagQueryOr;
107
- /** Process ids and/or other group names. Group references must be acyclic. */
121
+ /** Process ids and/or other suite names. Suite references must be acyclic. */
108
122
  include?: readonly string[];
109
123
  /** Excluded ids and/or tag queries, applied last. */
110
124
  exclude?: readonly (string | TCommanderTagQuery)[] | TCommanderTagQuery;
111
- /** Delay between spawns within this group (no thundering herd of 17 tsc watchers). */
125
+ /** How many tasks run at once. Default 4. */
126
+ parallel?: number;
127
+ /** Stop scheduling tasks after the first failure. Default false. */
128
+ failFast?: boolean;
129
+ /** Delay between service spawns (no thundering herd of 17 tsc watchers). Default 100. */
112
130
  staggerMs?: number;
113
131
  }
114
132
  interface ICommanderDefaults {
@@ -120,17 +138,17 @@ interface ICommanderDefaults {
120
138
  ringBytes?: number;
121
139
  lineBytes?: number;
122
140
  };
123
- tags?: Record<string, string>;
141
+ tags?: Record<string, string | readonly string[]>;
124
142
  }
125
143
  interface ICommanderConfig {
126
144
  /** Config name — also the data-dir slug seed (D6). Same charset as ids. */
127
145
  name: string;
128
146
  defaults?: ICommanderDefaults;
129
147
  processes: ICommanderProcessDefinition[];
130
- groups?: Record<string, ICommanderGroupDefinition>;
148
+ suites?: Record<string, ICommanderSuiteDefinition>;
131
149
  /**
132
- * Selection used by a bare `up` (group name or id). Without it, bare `up` prints the
133
- * available groups and exits without mutating anything.
150
+ * Selection used by a bare `up` — a suite name, a process id, or one `tag=value` term. Without
151
+ * it, bare `up` prints the available suites and exits without mutating anything.
134
152
  */
135
153
  defaultSelection?: string;
136
154
  /** Local config helpers the D2 loader cannot discover automatically (repo-relative). */
@@ -144,5 +162,5 @@ interface ICommanderConfig {
144
162
  /** Identity helper so `commander.config.ts` files are typed end to end. */
145
163
  declare function defineCommanderConfig<T extends ICommanderConfig>(config: T): T;
146
164
  //#endregion
147
- export { COMMANDER_ID_PATTERN, type ICommanderConfig, type ICommanderDefaults, type ICommanderEndpoint, type ICommanderEndpointHealth, type ICommanderEnvVar, type ICommanderGroupDefinition, type ICommanderProcessDefinition, type TCommanderEndpointOwnership, type TCommanderEndpointProtocol, type TCommanderReady, type TCommanderTagQuery, type TCommanderTagQueryOr, defineCommanderConfig };
165
+ export { COMMANDER_ID_PATTERN, type ICommanderConfig, type ICommanderDefaults, type ICommanderEndpoint, type ICommanderEndpointHealth, type ICommanderEnvVar, type ICommanderProcessDefinition, type ICommanderSuiteDefinition, type TCommanderEndpointOwnership, type TCommanderEndpointProtocol, type TCommanderReady, type TCommanderTagQuery, type TCommanderTagQueryOr, defineCommanderConfig };
148
166
  //# sourceMappingURL=config.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.mjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["// The `./config` subpath — what a `commander.config.ts` imports. Lightweight by contract:\n// types + the identity helper only (the loader, validation and their deps stay daemon-side).\n\nimport type { ICommanderConfig } from \"./config/types\";\n\nexport {\n COMMANDER_ID_PATTERN,\n type ICommanderConfig,\n type ICommanderDefaults,\n type ICommanderEndpoint,\n type ICommanderEndpointHealth,\n type ICommanderEnvVar,\n type ICommanderGroupDefinition,\n type ICommanderProcessDefinition,\n type TCommanderEndpointOwnership,\n type TCommanderEndpointProtocol,\n type TCommanderReady,\n type TCommanderTagQuery,\n type TCommanderTagQueryOr,\n} from \"./config/types\";\n\n/** Identity helper so `commander.config.ts` files are typed end to end. */\nexport function defineCommanderConfig<T extends ICommanderConfig>(config: T): T {\n return config;\n}\n"],"mappings":";;;AAsBA,SAAgB,sBAAkD,QAAc;CAC9E,OAAO;AACT"}
1
+ {"version":3,"file":"config.mjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["// The `./config` subpath — what a `commander.config.ts` imports. Lightweight by contract:\n// types + the identity helper only (the loader, validation and their deps stay daemon-side).\n\nimport type { ICommanderConfig } from \"./config/types\";\n\nexport {\n COMMANDER_ID_PATTERN,\n type ICommanderConfig,\n type ICommanderDefaults,\n type ICommanderEndpoint,\n type ICommanderEndpointHealth,\n type ICommanderEnvVar,\n type ICommanderProcessDefinition,\n type ICommanderSuiteDefinition,\n type TCommanderEndpointOwnership,\n type TCommanderEndpointProtocol,\n type TCommanderReady,\n type TCommanderTagQuery,\n type TCommanderTagQueryOr,\n} from \"./config/types\";\n\n/** Identity helper so `commander.config.ts` files are typed end to end. */\nexport function defineCommanderConfig<T extends ICommanderConfig>(config: T): T {\n return config;\n}\n"],"mappings":";;;AAsBA,SAAgB,sBAAkD,QAAc;CAC9E,OAAO;AACT"}
@@ -364,6 +364,129 @@ function watchCommanderConfig(options) {
364
364
  };
365
365
  }
366
366
  //#endregion
367
+ //#region src/daemon/suiteRuns.ts
368
+ /** Tasks a tag-group run starts at once — a suite declares its own. */
369
+ const TAG_GROUP_PARALLEL = 4;
370
+ function createSuiteRunner(options) {
371
+ const { supervisor, publish, log } = options;
372
+ const runs = /* @__PURE__ */ new Map();
373
+ const live = /* @__PURE__ */ new Map();
374
+ const verdictOf = (report, id) => {
375
+ const outcome = report.results.find((result) => result.id === id)?.outcome;
376
+ if (outcome === "blocked") return "blocked";
377
+ return outcome === "failed" || outcome == null ? "fail" : "pass";
378
+ };
379
+ const evictTagGroupRuns = () => {
380
+ const ended = [...runs.entries()].filter(([, run]) => run.suite == null && run.endedAt != null).sort(([, a], [, b]) => (b.endedAt ?? 0) - (a.endedAt ?? 0));
381
+ for (const [key] of ended.slice(8)) {
382
+ runs.delete(key);
383
+ publish(key, null);
384
+ }
385
+ };
386
+ return {
387
+ idle: async () => {
388
+ await Promise.all(live.values());
389
+ },
390
+ run: (input) => {
391
+ const config = supervisor.config;
392
+ const suite = input.suite == null ? void 0 : config.suites[input.suite];
393
+ if (input.suite != null && suite == null) return {
394
+ accepted: false,
395
+ reason: `unknown suite "${input.suite}"`
396
+ };
397
+ const known = new Set(config.processes.map((proc) => proc.id));
398
+ const direct = (suite?.ids ?? input.ids ?? []).filter((id) => known.has(id));
399
+ if (direct.length === 0) return {
400
+ accepted: false,
401
+ reason: "nothing to run"
402
+ };
403
+ const filterId = input.filter == null ? void 0 : require_cli.savedFilterId(input.filter);
404
+ const runKey = suite?.name ?? `tg-${require_cli.hashCanonical(filterId ?? [...direct].sort(), 12)}`;
405
+ if (live.has(runKey)) return {
406
+ accepted: false,
407
+ runKey,
408
+ reason: "already running"
409
+ };
410
+ const ordered = require_cli.orderByDependency(config.processes, require_cli.withDependencies(config.processes, direct));
411
+ const byId = new Map(config.processes.map((proc) => [proc.id, proc]));
412
+ const definitions = ordered.flatMap((id) => byId.get(id) ?? []);
413
+ const services = definitions.filter((proc) => proc.kind === "service");
414
+ const tasks = definitions.filter((proc) => proc.kind === "task");
415
+ const previous = runs.get(runKey);
416
+ const run = {
417
+ ...suite != null ? { suite: suite.name } : {},
418
+ ...filterId != null ? { filterId } : {},
419
+ startedAt: Date.now(),
420
+ ...previous?.endedAt != null ? { previousDurationMs: previous.endedAt - previous.startedAt } : {},
421
+ members: Object.fromEntries(ordered.map((id) => [id, "pending"]))
422
+ };
423
+ const announce = () => publish(runKey, {
424
+ ...run,
425
+ members: { ...run.members }
426
+ });
427
+ const mark = (id, verdict) => {
428
+ run.members[id] = verdict;
429
+ announce();
430
+ };
431
+ runs.set(runKey, run);
432
+ announce();
433
+ const execute = async () => {
434
+ const satisfied = /* @__PURE__ */ new Set();
435
+ if (services.length > 0) {
436
+ for (const proc of services) mark(proc.id, "running");
437
+ const report = await supervisor.start(services.map((proc) => proc.id), {
438
+ wait: true,
439
+ staggerMs: suite?.staggerMs ?? 0
440
+ });
441
+ for (const proc of services) mark(proc.id, verdictOf(report, proc.id));
442
+ for (const result of report.results) {
443
+ if (byId.get(result.id)?.kind !== "task") continue;
444
+ mark(result.id, result.outcome === "succeeded" ? "pass" : "fail");
445
+ if (result.outcome === "succeeded") satisfied.add(result.id);
446
+ }
447
+ }
448
+ const pool = await require_cli.runTaskPool({
449
+ tasks: tasks.filter((task) => run.members[task.id] === "pending"),
450
+ parallel: input.parallel ?? suite?.parallel ?? TAG_GROUP_PARALLEL,
451
+ failFast: input.failFast ?? suite?.failFast ?? false,
452
+ run: async (task) => {
453
+ mark(task.id, "running");
454
+ const verdict = verdictOf(await supervisor.start([task.id], {
455
+ wait: true,
456
+ satisfied
457
+ }), task.id);
458
+ if (verdict === "pass") satisfied.add(task.id);
459
+ mark(task.id, verdict);
460
+ return verdict === "pass";
461
+ },
462
+ onBlocked: (task) => mark(task.id, "blocked"),
463
+ onFailFast: () => {
464
+ const running = tasks.filter((task) => run.members[task.id] === "running").map((task) => task.id);
465
+ if (running.length > 0) supervisor.stop(running);
466
+ }
467
+ });
468
+ for (const task of pool.leftover) mark(task.id, "skipped");
469
+ run.endedAt = Date.now();
470
+ run.outcome = Object.values(run.members).every((verdict) => verdict === "pass") ? "passed" : "failed";
471
+ announce();
472
+ log(`run ${runKey}: ${run.outcome} in ${run.endedAt - run.startedAt} ms`);
473
+ evictTagGroupRuns();
474
+ };
475
+ const settled = execute().catch((error) => {
476
+ run.endedAt = Date.now();
477
+ run.outcome = "failed";
478
+ announce();
479
+ log(`run ${runKey}: aborted — ${error.message}`);
480
+ }).finally(() => live.delete(runKey));
481
+ live.set(runKey, settled);
482
+ return {
483
+ accepted: true,
484
+ runKey
485
+ };
486
+ }
487
+ };
488
+ }
489
+ //#endregion
367
490
  //#region src/daemon/controlPlane.ts
368
491
  const DAEMON_COORD = require_cli.RuntimeCoordinate.env("commander_daemon");
369
492
  const SLOW_CONSUMER_DROP_BYTES = 256 * 1024;
@@ -407,6 +530,7 @@ function projectProcess(status) {
407
530
  notes: status.capability.notes
408
531
  } } : {},
409
532
  tags: status.tags,
533
+ optIn: status.optIn,
410
534
  detail: {
411
535
  command: status.detail.command,
412
536
  cwd: status.detail.cwd,
@@ -437,8 +561,13 @@ function projectProcess(status) {
437
561
  * Members are projected in DAG order (the same `orderByDependency` `up` spawns with), so the
438
562
  * UI's "members in dependency order" and the CLI's execution order are one rule, not two.
439
563
  */
440
- function projectGroups(config) {
441
- return Object.fromEntries(Object.entries(config.groups).map(([name, group]) => [name, { members: require_cli.orderByDependency(config.processes, new Set(group.ids)) }]));
564
+ function projectSuites(config) {
565
+ return Object.fromEntries(Object.values(config.suites).map((suite) => [suite.name, {
566
+ ...suite.description != null ? { description: suite.description } : {},
567
+ members: require_cli.orderByDependency(config.processes, new Set(suite.ids)),
568
+ parallel: suite.parallel,
569
+ failFast: suite.failFast
570
+ }]));
442
571
  }
443
572
  function createControlPlane(options) {
444
573
  const { supervisor, log } = options;
@@ -460,7 +589,9 @@ function createControlPlane(options) {
460
589
  configRevisionHash: supervisor.config.configRevisionHash,
461
590
  configError: [],
462
591
  processes: Object.fromEntries(supervisor.status().map((status) => [status.id, projectProcess(status)])),
463
- groups: projectGroups(supervisor.config)
592
+ suites: projectSuites(supervisor.config),
593
+ runs: {},
594
+ savedFilters: [...options.savedFilters]
464
595
  });
465
596
  const engine = require_cli.createRealmServerEngine(require_cli.commanderStatusRealm, { initialState: initialState() });
466
597
  supervisor.subscribe((id) => {
@@ -470,6 +601,22 @@ function createControlPlane(options) {
470
601
  draft.processes[id] = projectProcess(status);
471
602
  });
472
603
  });
604
+ const suiteRunner = createSuiteRunner({
605
+ supervisor,
606
+ log,
607
+ publish: (runKey, run) => {
608
+ engine.update((draft) => {
609
+ if (run == null) delete draft.runs[runKey];
610
+ else draft.runs[runKey] = run;
611
+ });
612
+ }
613
+ });
614
+ const changeSavedFilters = async (change) => {
615
+ const next = await options.changeSavedFilters(change);
616
+ engine.update((draft) => {
617
+ draft.savedFilters = next;
618
+ });
619
+ };
473
620
  const liveSockets = /* @__PURE__ */ new Set();
474
621
  const acceptorAccess = {};
475
622
  const server = require_cli.serveChannel(runtime, require_cli.commanderChannel, {
@@ -500,8 +647,33 @@ function createControlPlane(options) {
500
647
  const ordered = require_cli.orderByDependency(config.processes, require_cli.withDependencies(config.processes, ids));
501
648
  return supervisor.restart(ordered, {
502
649
  wait: wait ?? true,
503
- staggerMs: staggerMs ?? 0
650
+ staggerMs: staggerMs ?? 0,
651
+ stopIds: ids
652
+ });
653
+ },
654
+ runSuite: async (input) => {
655
+ const report = suiteRunner.run(input);
656
+ if (report.accepted && input.filter != null) await changeSavedFilters({
657
+ kind: "ran",
658
+ query: input.filter,
659
+ at: Date.now()
504
660
  });
661
+ return report;
662
+ },
663
+ saveFilter: async ({ filter, name }) => {
664
+ await changeSavedFilters({
665
+ kind: "pin",
666
+ query: filter,
667
+ name
668
+ });
669
+ return { ok: true };
670
+ },
671
+ removeFilter: async ({ id }) => {
672
+ await changeSavedFilters({
673
+ kind: "remove",
674
+ id
675
+ });
676
+ return { ok: true };
505
677
  },
506
678
  setEnv: async (input) => ({
507
679
  ok: true,
@@ -562,7 +734,7 @@ function createControlPlane(options) {
562
734
  draft.configName = next.name;
563
735
  draft.configRevisionHash = next.configRevisionHash;
564
736
  draft.configError = [];
565
- draft.groups = projectGroups(next);
737
+ draft.suites = projectSuites(next);
566
738
  for (const status of supervisor.status()) draft.processes[status.id] = projectProcess(status);
567
739
  });
568
740
  },
@@ -1363,6 +1535,7 @@ var CommanderSupervisor = class {
1363
1535
  break;
1364
1536
  }
1365
1537
  if (dep.definition.kind === "task") {
1538
+ if (options.satisfied?.has(depId) === true) continue;
1366
1539
  const taskResult = await (taskRuns.get(depId) ?? this._runTaskOnce(dep, taskRuns));
1367
1540
  if (!orderedIds.includes(depId)) results.push({
1368
1541
  ...taskResult,
@@ -1647,8 +1820,13 @@ var CommanderSupervisor = class {
1647
1820
  warnings
1648
1821
  };
1649
1822
  }
1823
+ /**
1824
+ * ⚠ Stops only `stopIds` — the ids the caller NAMED — then starts the whole ordered closure.
1825
+ * Stopping the closure bounced every shared dependency under its other live dependents: a
1826
+ * restart of three frontends took the backend down with it.
1827
+ */
1650
1828
  async restart(orderedIds, options = {}) {
1651
- const stopped = await this.stop(orderedIds);
1829
+ const stopped = await this.stop(options.stopIds ?? orderedIds);
1652
1830
  const started = await this.start(orderedIds, options);
1653
1831
  return {
1654
1832
  results: started.results.map((result) => {
@@ -1734,6 +1912,7 @@ var CommanderSupervisor = class {
1734
1912
  unreadyReason: proc?.unreadyReason ?? null,
1735
1913
  capability: proc?.capability ?? null,
1736
1914
  tags: holder.definition.tags,
1915
+ optIn: holder.definition.optIn,
1737
1916
  detail: describe(holder.definition, envVars)
1738
1917
  };
1739
1918
  });
@@ -1913,11 +2092,24 @@ async function startCommanderDaemon(argv) {
1913
2092
  envWrites = run.catch(() => {});
1914
2093
  return run;
1915
2094
  };
2095
+ let savedFilters = await require_cli.readSavedFilters(paths.savedFiltersPath);
2096
+ let filterWrites = Promise.resolve();
2097
+ const changeSavedFilters = (change) => {
2098
+ const run = filterWrites.then(async () => {
2099
+ savedFilters = require_cli.mutateSavedFilters(savedFilters, change);
2100
+ await require_cli.writeSavedFilters(paths.savedFiltersPath, savedFilters);
2101
+ return savedFilters;
2102
+ });
2103
+ filterWrites = run.catch(() => {});
2104
+ return run;
2105
+ };
1916
2106
  const plane = createControlPlane({
1917
2107
  supervisor,
1918
2108
  generation,
1919
2109
  reloadConfig: () => watcher?.reloadNow() ?? Promise.resolve(),
1920
2110
  setEnvOverrides,
2111
+ savedFilters,
2112
+ changeSavedFilters,
1921
2113
  requestShutdown: () => void shutdown(),
1922
2114
  log
1923
2115
  });
@@ -2068,7 +2260,7 @@ async function startCommanderDaemon(argv) {
2068
2260
  configKey: resolved.configKey,
2069
2261
  configRevisionHash: resolved.configRevisionHash,
2070
2262
  configPath: resolved.configPath,
2071
- protocolVersion: 5,
2263
+ protocolVersion: 6,
2072
2264
  packageVersion: await require_cli.commanderPackageVersion(),
2073
2265
  realmSchemaHash: require_cli.commanderStatusRealm.schemaHash
2074
2266
  });
@@ -2153,4 +2345,4 @@ async function runCommanderDaemon(argv) {
2153
2345
  //#endregion
2154
2346
  exports.runCommanderDaemon = runCommanderDaemon;
2155
2347
 
2156
- //# sourceMappingURL=main-B7EwREFQ.cjs.map
2348
+ //# sourceMappingURL=main-BBRM0ZOp.cjs.map