@typeonce/effect-machine-devtools 0.47.0 → 0.48.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.
@@ -0,0 +1 @@
1
+ :root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#e8eaed;font-synthesis:none;text-rendering:optimizelegibility;--surface:#0f1114;--surface-raised:#14171b;--line:#292d34;--line-soft:#20242a;--muted:#8e949e;--accent:#75a7ff;--accent-bg:#4b7dff2e;--orange:#f0a35b;--danger:#d8757b;--danger-strong:#efafb3;--danger-background:#241416;--danger-border:#945057;--chart-surface:#171c23;--chart-surface-raised:#1a2028;--chart-border:#3a4551;--chart-border-soft:#303944;--chart-text:#d5dbe3;--chart-text-muted:#a2acb8;--chart-completion:#82b4c8;--chart-failure:var(--danger);--chart-source:#d18f68;--chart-target:#78a9c9;background:#0b0c0e;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{min-width:320px;height:100%;margin:0}body{background:#0b0c0e}.devtools-shell{flex-direction:column;width:100vw;height:100vh;display:flex;overflow:hidden}.machine-index{border-bottom:1px solid var(--line);scrollbar-width:thin;background:#0d0f12;flex:none;width:100%;min-width:0;min-height:48px;padding:0;display:flex;overflow:auto hidden}.machine-row{border:0;border-right:1px solid var(--line-soft);color:#c9cdd2;text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;flex:none;align-items:center;gap:8px;width:auto;min-width:148px;max-width:280px;min-height:48px;padding:0 16px;display:flex;position:relative}.machine-row:hover,.machine-row:focus-visible{color:#fff;background:#171a1f;outline:none}.machine-row.is-selected{color:#fff;background:#4b7dff1f}.machine-row.is-selected:after{background:var(--accent);content:"";height:2px;position:absolute;bottom:0;left:0;right:0}.machine-row-status{background:#646b75;border-radius:50%;flex:none;width:6px;height:6px}.machine-row-status.status-ready{background:#67a9cf}.machine-row-status.status-partial{background:var(--orange)}.machine-row-status.status-error{background:var(--danger)}.machine-row-label,.machine-row-file{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.machine-row-label{font:600 12px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.machine-row-file{display:none}.machine-index-empty{color:#646b75;padding:16px;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.machine-view{flex:1;min-width:0;min-height:0;overflow:hidden}.registry-empty,.connection-failure{color:#7f8690;align-content:start;gap:7px;min-height:100vh;padding:28px;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:grid}.registry-empty strong{color:#d4d7dc;font-size:13px}.connection-failure{color:var(--danger-strong)}button{font:inherit}.app-shell,.workspace{width:100%;height:100%;min-height:0}.workspace{position:relative}.chart-panel{flex-direction:column;width:100%;min-width:0;height:100%;display:flex;position:relative;overflow:hidden}.diagnostics{border-bottom:1px solid var(--line);background:#121418}.diagnostic{color:#aeb4bd;flex-wrap:wrap;align-items:center;gap:8px;min-height:36px;padding:8px 16px;font-size:11px;display:flex}.diagnostic+.diagnostic{border-top:1px solid var(--line-soft)}.badge-warning{color:#e9c89f;background:#f0a35b21}.badge-error{color:var(--danger-strong);background:#be485226}.toolbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:2px;min-height:46px;padding:7px 16px;display:flex}.toolbar-actions,.zoom-controls,.runtime-summary{align-items:center;display:flex}.toolbar-actions{gap:2px}.zoom-controls{z-index:5;border:1px solid var(--line-soft);background:#0d0f12f0;border-radius:4px;flex:none;gap:1px;padding:2px;position:absolute;bottom:14px;left:14px;box-shadow:0 8px 28px #00000052}.chart-panel.has-walkthrough .zoom-controls{bottom:88px}.zoom-button{min-width:28px;padding-inline:7px}.zoom-value{color:#aeb4bd;min-width:46px;font:10px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.runtime-summary{color:#7f8690;gap:7px;font:11px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.runtime-dot{background:#555c65;border-radius:50%;width:6px;height:6px}.runtime-dot.has-snapshot{background:var(--accent)}.toolbar-button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:4px;padding:6px 9px;font-size:12px}.toolbar-button:not(:disabled):hover,.toolbar-button:not(:disabled):focus-visible{color:#fff;background:#1b1e23;outline:none}.toolbar-button:disabled{color:#50545c;cursor:default}.toolbar-button[aria-pressed=true]{color:#dce8ff;background:#4167a547}.analysis-button{align-items:center;gap:6px;display:inline-flex}.analysis-button[hidden]{display:none}.analysis-button-count{color:#9da6b3;text-align:center;background:#20242a;border-radius:8px;min-width:17px;padding:2px 5px;font:10px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.topology-chart{flex-direction:column;flex:1;min-height:0;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:flex}.topology-empty{color:#7f8690;gap:7px;max-width:420px;margin:26px 8px;font:12px/1.6 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;display:grid}.topology-empty strong{color:#d4d7dc;font:600 13px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.chart-host,.chart-viewport{width:100%;height:100%}.chart-host{flex:1;min-height:0;position:relative}.chart-viewport{overscroll-behavior:contain;cursor:grab;touch-action:pan-x pan-y;overflow:auto}.chart-viewport.is-panning,.chart-viewport.is-panning .chart-state,.chart-viewport.is-panning .chart-edge-hit,.chart-viewport.is-panning .chart-edge-label{cursor:grabbing;-webkit-user-select:none;user-select:none}.chart-stage{min-width:100%;min-height:100%;position:relative}.chart-canvas{transform-origin:0 0;position:absolute;top:0;left:0}.chart-regions,.chart-edges,.chart-nodes,.chart-labels{position:absolute;inset:0}.chart-regions{z-index:0;pointer-events:none}.chart-edges{z-index:1;pointer-events:none;overflow:visible}.chart-nodes{z-index:2;pointer-events:none}.chart-labels{z-index:3;pointer-events:none}.chart-compound{border:1px solid var(--chart-border-soft);background:#151a20c7;border-radius:5px;position:absolute}.chart-compound-parallel{border-color:var(--chart-border);background:#181e26cc}.chart-unconnected-region{background:#0e101394;border:1px dashed #353b44;border-radius:5px;position:absolute}.chart-unconnected-region-label{color:#727984;letter-spacing:.05em;text-transform:uppercase;font:9px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;position:absolute;top:17px;left:24px}.chart-state{border:1px solid var(--chart-border);color:var(--chart-text);background:var(--chart-surface);text-align:left;cursor:pointer;pointer-events:auto;-webkit-user-select:none;user-select:none;border-radius:4px;flex-direction:column;justify-content:center;padding:12px;display:flex;position:absolute;overflow:hidden;box-shadow:0 4px 14px #0000002e}.chart-state-compound,.chart-state-parallel{background:var(--chart-surface-raised);border-color:#465362}.chart-state-final{border-color:#445066}.chart-state-history,.chart-state-choice{background:#1c1a21}.chart-state:not(:disabled):hover,.chart-state:focus-visible{color:#fff;border-color:#596475;outline:none}.chart-state-heading,.chart-state-identity,.chart-invocation-row{align-items:center;min-width:0;display:flex}.chart-state-heading{justify-content:space-between;gap:12px}.chart-state-identity{gap:8px}.chart-state-status{border:1px solid #686f78;border-radius:50%;flex:none;width:7px;height:7px}.chart-state-status.is-active{border-color:var(--accent);background:var(--accent);box-shadow:0 0 0 3px #75a7ff1a}.chart-state-name,.chart-invocation-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.chart-state-name{font-size:12px}.chart-invocation-kind,.chart-more{color:var(--chart-text-muted);font-size:9px;line-height:1.3}.chart-invocation-kind{text-transform:uppercase}.chart-state-section{border-top:1px solid #333d48;width:min(300px,100%);margin-top:8px;padding-top:7px}.chart-invocation-row{grid-template-columns:auto minmax(0,1fr);gap:10px;min-height:20px;display:grid}.chart-invocation-name{color:#d1d7df;font-size:10px}.chart-invocation-kind{text-overflow:clip;white-space:nowrap;min-width:max-content;color:var(--chart-invocation-color,#82a9cb);flex:0 auto;overflow:visible}.chart-invocation-process,.chart-edge-invocation-process,.badge-invocation-process{--chart-invocation-color:#c99a82;--chart-invocation-border:#624d42;--chart-invocation-background:#1d1714}.chart-invocation-effect,.chart-edge-invocation-effect,.badge-invocation-effect{--chart-invocation-color:#82a9cb;--chart-invocation-border:#435c71;--chart-invocation-background:#121a22}.chart-invocation-timer,.chart-edge-invocation-timer,.badge-invocation-timer{--chart-invocation-color:#c1ad73;--chart-invocation-border:#625842;--chart-invocation-background:#1c1a13}.chart-invocation-stream,.chart-edge-invocation-stream,.badge-invocation-stream{--chart-invocation-color:#75a9ad;--chart-invocation-border:#3f5c5f;--chart-invocation-background:#111a1b}.chart-invocation-machine,.chart-edge-invocation-machine,.badge-invocation-machine{--chart-invocation-color:#a99cbd;--chart-invocation-border:#574e67;--chart-invocation-background:#1a1720}.chart-more{min-height:16px;padding-top:2px}.chart-initial{pointer-events:none;background:#b0965d;border-radius:50%;position:absolute;box-shadow:0 0 0 2px #b0965d1a}.chart-runtime-target{color:#858d98;letter-spacing:.04em;text-transform:uppercase;pointer-events:none;-webkit-user-select:none;user-select:none;background:#111419;border:1px dashed #555d68;border-radius:3px;place-items:center;font:9px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:grid;position:absolute}.chart-edge-casing,.chart-edge-line,.chart-edge-direction,.chart-edge-hit{fill:none}.chart-edge-parent-origin{fill:#101318;stroke:#89929e;stroke-width:1.8px;vector-effect:non-scaling-stroke}.chart-edge-casing{stroke:#0b0c0e;stroke-width:5.5px;vector-effect:non-scaling-stroke}.chart-edge-line,.chart-edge-direction{stroke:#626b77;stroke-width:1.4px;vector-effect:non-scaling-stroke}.chart-edge-direction{pointer-events:none}.chart-edge-initial .chart-edge-line{stroke:#9f8a5c;stroke-width:1.2px}.chart-edge-hit{stroke:#0000;stroke-width:14px;cursor:pointer;pointer-events:stroke}#chart-arrow path,#chart-direction path,#chart-initial-arrow path{fill:context-stroke}.chart-edge-label{--chart-edge-label-background:#151a20;--chart-edge-label-border:#3a4551;--chart-edge-label-shadow:none;color:#d1d7df;white-space:nowrap;cursor:pointer;pointer-events:auto;-webkit-user-select:none;user-select:none;background:0 0;border:0;justify-content:center;align-items:center;padding:4px 7px;font:10px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:flex;position:absolute;overflow:visible}.chart-edge-label:before{border:1px solid var(--chart-edge-label-border);background:var(--chart-edge-label-background);box-shadow:var(--chart-edge-label-shadow);content:"";border-radius:3px;position:absolute;inset:0}.chart-edge-label-corner-badge{padding:8px 11px 4px 7px}.chart-edge-label-corner-badge:before{top:4px;right:4px}.chart-edge-label-text{z-index:1;text-align:center;text-overflow:ellipsis;white-space:nowrap;min-width:0;position:relative;overflow:hidden}.chart-edge-badges{z-index:2;flex:none;align-items:center;gap:3px;min-width:0;display:flex;position:absolute;top:0;right:0}.chart-edge-label-icon-only{justify-content:center;align-items:center;padding:0;display:flex}.chart-edge-label-icon-only:before{display:none}.chart-edge-label-icon-only .chart-edge-badges{position:static}.chart-edge-badge{background:#161b22;border:1px solid;border-radius:50%;flex:none;justify-content:center;align-items:center;width:11px;height:11px;display:inline-flex}.chart-edge-badge-icon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:8px;height:8px;overflow:visible}.chart-edge-badge-icon-fill{fill:currentColor;stroke:none}.chart-edge-badge-completion{color:var(--chart-completion)}.chart-edge-badge-failure{color:var(--chart-failure)}.chart-edge-badge-element{color:#7fadb7}.chart-edge-badge-snapshot{color:#aaa0bd}.chart-edge-badge-always{color:#b8a66f}.chart-edge-badge-choice{color:#aa9abd}.chart-edge-badge-branches{color:#a3acb8;border-radius:6px;gap:1px;width:auto;min-width:21px;padding:0 2px}.chart-edge-badge-branches .chart-edge-badge-icon{width:7px;height:7px}.chart-edge-badge-count{font-size:6px;font-weight:700;line-height:1}.chart-edge-group.chart-edge-parent-child .chart-edge-line,.chart-edge-group.chart-edge-parent-child .chart-edge-direction,.chart-edge-group.chart-edge-parent-child .chart-edge-parent-origin{stroke:#9187a7}.chart-edge-group.chart-edge-parent-child .chart-edge-parent-origin{fill:#1b1820}.chart-edge-label-parent-child{--chart-edge-label-background:#17151b;--chart-edge-label-border:#4d465a;--chart-edge-label-shadow:inset 2px 0 #6f6681;color:#aea5c1}.chart-edge-label:not(:disabled):hover,.chart-edge-label:focus-visible,.chart-edge-group.is-hovered+.chart-edge-label{--chart-edge-label-border:#53657e;color:#fff;outline:none}.chart-edge-label-always,.chart-edge-label-choice,.chart-edge-label-done{color:#d4b4e9}.chart-edge-group.is-hovered .chart-edge-line,.chart-edge-group.is-hovered .chart-edge-direction,.chart-edge-group.is-hovered .chart-edge-parent-origin{stroke:#7c9ed2;stroke-width:1.8px}.chart-edge-group.is-walkthrough-unavailable .chart-edge-line{stroke:#6e675b;stroke-dasharray:5 5}.chart-edge-group.chart-transition-runtime .chart-edge-line{stroke-dasharray:5 5}.chart-edge-group.chart-edge-trigger-always .chart-edge-line,.chart-edge-group.chart-edge-trigger-choice .chart-edge-line,.chart-edge-group.chart-edge-trigger-done .chart-edge-line,.chart-edge-group.chart-edge-trigger-invoke .chart-edge-line{stroke-dasharray:7 5}.chart-edge-group.chart-edge-invocation-process .chart-edge-line,.chart-edge-group.chart-edge-invocation-effect .chart-edge-line,.chart-edge-group.chart-edge-invocation-timer .chart-edge-line,.chart-edge-group.chart-edge-invocation-stream .chart-edge-line,.chart-edge-group.chart-edge-invocation-machine .chart-edge-line,.chart-edge-group.chart-edge-invocation-process .chart-edge-direction,.chart-edge-group.chart-edge-invocation-effect .chart-edge-direction,.chart-edge-group.chart-edge-invocation-timer .chart-edge-direction,.chart-edge-group.chart-edge-invocation-stream .chart-edge-direction,.chart-edge-group.chart-edge-invocation-machine .chart-edge-direction,.chart-edge-group.chart-edge-invocation-process .chart-edge-parent-origin,.chart-edge-group.chart-edge-invocation-effect .chart-edge-parent-origin,.chart-edge-group.chart-edge-invocation-timer .chart-edge-parent-origin,.chart-edge-group.chart-edge-invocation-stream .chart-edge-parent-origin,.chart-edge-group.chart-edge-invocation-machine .chart-edge-parent-origin{stroke:var(--chart-invocation-color)}.chart-edge-label.chart-edge-invocation-process,.chart-edge-label.chart-edge-invocation-effect,.chart-edge-label.chart-edge-invocation-timer,.chart-edge-label.chart-edge-invocation-stream,.chart-edge-label.chart-edge-invocation-machine{--chart-edge-label-background:var(--chart-invocation-background);--chart-edge-label-border:var(--chart-invocation-border);color:var(--chart-invocation-color)}.chart-edge-group.chart-edge-failure .chart-edge-line,.chart-edge-group.chart-edge-failure .chart-edge-direction,.chart-edge-group.chart-edge-failure .chart-edge-parent-origin{stroke:var(--chart-failure)}.chart-edge-label.chart-edge-label-failure{--chart-edge-label-background:var(--danger-background);--chart-edge-label-border:var(--danger-border);color:var(--danger-strong)}.chart-edge-group.is-incoming .chart-edge-line,.chart-edge-group.is-incoming .chart-edge-direction,.chart-edge-group.is-incoming .chart-edge-parent-origin{stroke:var(--chart-source);stroke-width:2px}.chart-edge-group.is-outgoing .chart-edge-line,.chart-edge-group.is-outgoing .chart-edge-direction,.chart-edge-group.is-outgoing .chart-edge-parent-origin{stroke:var(--chart-target);stroke-width:2px}.chart-edge-group.is-selected .chart-edge-line,.chart-edge-group.is-selected .chart-edge-direction,.chart-edge-group.is-selected .chart-edge-parent-origin{stroke:#8ab5ff;stroke-width:2.5px}.chart-edge-group.is-walkthrough-available .chart-edge-line,.chart-edge-group.is-walkthrough-available .chart-edge-direction{stroke:#d5aa57;stroke-width:2px}.chart-edge-label.is-hovered{--chart-edge-label-border:#526783;color:#dbe8ff}.chart-edge-label.is-walkthrough-unavailable{--chart-edge-label-background:#151412;--chart-edge-label-border:#4e4a43;color:#8d8679}.chart-edge-label.is-incoming{--chart-edge-label-background:#241914;--chart-edge-label-border:#8e5f43;color:#f0b590}.chart-edge-label.is-outgoing{--chart-edge-label-background:#111c24;--chart-edge-label-border:#4d7188;color:#a9d3e7}.chart-edge-label.is-selected{--chart-edge-label-background:#18253a;--chart-edge-label-border:#719ce0;color:#fff}.chart-edge-label.is-walkthrough-available{--chart-edge-label-background:#211b12;--chart-edge-label-border:#8d713c;color:#f0d39a}.chart-state.is-selected,.chart-compound.is-selected{background:#2c4b7a6b;border-color:#5f88ca}.chart-state.is-related-to,.chart-compound.is-related-to,.chart-state.is-hover-target,.chart-compound.is-hover-target{background:#36708f4d;border-color:#5e8aa3}.chart-state.is-related-from,.chart-compound.is-related-from,.chart-state.is-hover-source,.chart-compound.is-hover-source{background:#9554304d;border-color:#9b684c}.chart-state.is-related-from.is-related-to,.chart-compound.is-related-from.is-related-to{background:linear-gradient(135deg,#9554304d 0 50%,#36708f4d 50% 100%);border-color:#777a91}.chart-viewport.is-simulating .chart-state:disabled,.chart-viewport.is-simulating .chart-edge-label:disabled,.chart-viewport.is-simulating .chart-edge-hit{cursor:default}.chart-viewport.is-simulating .chart-edge-label:disabled,.chart-viewport.is-simulating .chart-edge-hit{pointer-events:none}.chart-viewport.is-simulating .chart-edge-label.is-walkthrough-available,.chart-viewport.is-simulating .chart-edge-label.is-walkthrough-unavailable,.chart-viewport.is-simulating .chart-edge-group.is-walkthrough-available .chart-edge-hit,.chart-viewport.is-simulating .chart-edge-group.is-walkthrough-unavailable .chart-edge-hit{cursor:pointer}.chart-viewport.is-simulating .chart-edge-group.is-walkthrough-available .chart-edge-hit,.chart-viewport.is-simulating .chart-edge-group.is-walkthrough-unavailable .chart-edge-hit{pointer-events:stroke}.chart-loading,.chart-layout-error{color:#7f8690;gap:7px;max-width:440px;margin:28px;font:11px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:grid}.chart-layout-error{color:var(--danger)}.chart-layout-error strong{color:var(--danger-strong)}.inspector-eyebrow,.card-title,.card-flags,.branch-main{align-items:center;gap:6px;display:flex}.badge{color:#a8afb8;letter-spacing:.02em;white-space:nowrap;background:#20242a;border-radius:3px;align-items:center;min-height:18px;padding:2px 6px;font:600 10px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:inline-flex}.badge-active{color:#b9d2ff;background:#4b7dff38}.badge-trigger{color:#b9d2ff;background:#4b7dff29}.badge-condition{color:#d9b8ef;background:#ac68e026}.badge-invocation{color:#acd0e5;background:#5291b729}.badge-invocation-process,.badge-invocation-effect,.badge-invocation-timer,.badge-invocation-stream,.badge-invocation-machine{color:var(--chart-invocation-color);background:var(--chart-invocation-background)}.badge-count{color:#858c96;background:0 0}.inspector{z-index:10;background:#0f1114f7;border:1px solid #333943;border-radius:6px;width:min(460px,100% - 28px);min-width:0;padding:0;position:absolute;top:60px;bottom:14px;right:14px;overflow:hidden;box-shadow:0 18px 60px #0000007a}.inspector[hidden]{display:none}.inspector-close{z-index:1;color:#8e949e;cursor:pointer;background:0 0;border:0;border-radius:3px;padding:6px 9px;font-size:11px;position:absolute;top:11px;right:12px}.inspector-content{width:100%;height:100%;padding:48px 24px 24px;overflow:auto}.inspector-close:hover,.inspector-close:focus-visible{color:#fff;background:#20242a;outline:none}.failure-shell{color:#d6d8dc;background:#0b0c0e;align-content:start;gap:12px;min-height:100vh;padding:32px;display:grid}.failure-kind{color:var(--danger-strong);letter-spacing:.08em;text-transform:uppercase;font:600 10px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.failure-shell h1{margin:0;font:600 18px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.failure-shell pre{border-left:2px solid var(--danger-border);max-width:900px;color:var(--danger-strong);background:var(--danger-background);white-space:pre-wrap;margin:4px 0 0;padding:14px 16px;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:auto}.failure-shell p{color:#7f8690;margin:0;font-size:12px}.inspector-empty{max-width:420px;color:var(--muted)}.inspector-empty-kind{color:var(--orange);letter-spacing:.08em;text-transform:uppercase;font:600 10px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.inspector-empty h2,.inspector-header h2{color:#f1f2f4;overflow-wrap:anywhere;margin:9px 0 0;font:600 18px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.inspector-title-row,.inspector-state-title{align-items:center;min-width:0;display:flex}.inspector-title-row{justify-content:space-between;gap:16px}.inspector-state-title{gap:9px}.inspector-title-row h2{min-width:0;margin:0}.inspector-empty p,.section-empty{color:var(--muted);font-size:12px;line-height:1.6}.inspector-header{border-bottom:1px solid var(--line);padding-bottom:24px}.analysis-summary{color:#7f8690;margin:12px 0 0;font-size:12px;line-height:1.6}.state-annotations{margin-top:18px}.state-annotations p{color:#aeb4bd;margin:7px 0 0;font-size:12px;line-height:1.6}.state-annotations .state-documentation{color:#7f8690;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.breadcrumbs{flex-wrap:wrap;align-items:center;gap:5px;min-width:0;margin-bottom:16px;display:flex}.breadcrumb-separator{color:#555c65}.state-link{color:#9bbfff;overflow-wrap:anywhere;text-align:left;cursor:pointer;background:0 0;border:0;max-width:100%;padding:0;font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.state-link:hover,.state-link:focus-visible{color:#d5e4ff;outline:none;text-decoration:underline}.metadata{grid-template-columns:minmax(74px,max-content) minmax(0,1fr);gap:8px 16px;margin:20px 0 0;font-size:11px;display:grid}.metadata dt{color:#727983}.metadata dd{color:#d2d5da;overflow-wrap:anywhere;min-width:0;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.inspector-section{margin-top:28px}.section-heading{justify-content:space-between;align-items:center;margin-bottom:11px;display:flex}.section-heading h3{color:#c9cdd2;margin:0;font-size:12px;font-weight:650}.section-count{color:#737a84;font:11px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.inspection-card{border:1px solid var(--line-soft);background:var(--surface-raised);margin-top:8px}.analysis-card{padding-bottom:12px}.analysis-card .state-link{color:#e2e4e7;font-size:12px;font-weight:600}.analysis-message,.analysis-qualification{margin:0;padding:0 12px;font-size:11px;line-height:1.6}.analysis-message{color:#b9bec6}.analysis-qualification{color:#747c87;margin-top:5px}.card-header{justify-content:space-between;align-items:center;gap:12px;min-height:42px;padding:10px 12px;display:flex}.card-title{min-width:0}.card-title strong{color:#e2e4e7;overflow-wrap:anywhere;font:600 12px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.branch-list{border-top:1px solid var(--line-soft)}.branch-row{padding:11px 12px 13px}.branch-row+.branch-row{border-top:1px solid var(--line-soft)}.branch-main{min-width:0}.branch-arrow{color:var(--accent)}.branch-target{color:#d7d9dc;overflow-wrap:anywhere;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.branch-row .metadata,.transition-card .card-metadata,.invocation-card .metadata,.incoming-card .metadata{margin-top:10px}.incoming-card{padding-bottom:12px}.incoming-card .metadata{padding:0 12px}.transition-card .card-metadata{padding:0 12px 10px}.branch-updates{grid-template-columns:minmax(74px,max-content) minmax(0,1fr);gap:8px 16px;margin-top:9px;font-size:11px;display:grid}.branch-updates-label{color:#727983}.branch-updates .state-link+.state-link{grid-column:2}.invocation-card{padding-bottom:12px}.invocation-card .metadata{padding:0 12px}.walkthrough-dock{border-top:1px solid var(--line);background:#0d0f12fa;flex:none;grid-template-rows:auto auto;gap:6px;min-height:0;max-height:76px;padding:8px 14px 10px;font:10px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:grid;box-shadow:0 -12px 32px #0003}.walkthrough-dock[hidden]{display:none}.walkthrough-heading,.walkthrough-identity,.walkthrough-timeline{align-items:center;min-width:0;display:flex}.walkthrough-heading{color:#d4d7dc;justify-content:space-between;gap:12px}.walkthrough-identity{gap:10px}.walkthrough-status,.walkthrough-hint{color:#777f8a}.walkthrough-hint{font-size:9px}.walkthrough-timeline{scrollbar-width:thin;gap:5px;overflow-x:auto}.walkthrough-step{border:1px solid var(--line-soft);color:#aeb4bd;cursor:pointer;white-space:nowrap;background:#14171b;border-radius:3px;flex:none;padding:5px 8px}.walkthrough-step:hover,.walkthrough-step:focus-visible{color:#fff;border-color:#53657e;outline:none}.walkthrough-step.is-current{color:#d8e6ff;background:#2c4b7a61;border-color:#5f88ca}.transition-picker{z-index:20;background:#0f1114fa;border:1px solid #4e4535;border-radius:5px;grid-template-rows:auto minmax(0,1fr);width:min(380px,100vw - 20px);max-height:min(420px,100vh - 68px);display:grid;position:fixed;overflow:hidden;box-shadow:0 18px 60px #00000085}.transition-picker[hidden]{display:none}.transition-picker-header,.transition-picker-choice-main{align-items:center;min-width:0;display:flex}.transition-picker-header{border-bottom:1px solid var(--line-soft);justify-content:space-between;gap:10px;min-height:38px;padding:8px 10px 8px 12px}.transition-picker-header strong{color:#d8dadd;text-overflow:ellipsis;white-space:nowrap;font:600 11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.transition-picker-close{color:#7f8690;cursor:pointer;background:0 0;border:0;border-radius:3px;padding:4px 6px;font-size:10px}.transition-picker-close:hover,.transition-picker-close:focus-visible{color:#fff;background:#20242a;outline:none}.transition-picker-content{gap:5px;padding:7px;display:grid;overflow:auto}.transition-picker-choice{border:1px solid var(--line-soft);color:#aeb4bd;text-align:left;cursor:pointer;background:#14171b;border-radius:3px;gap:4px;min-width:0;padding:8px 9px;font:10px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:grid}.transition-picker-choice:hover,.transition-picker-choice:focus-visible{background:#1d1912;border-color:#8d713c;outline:none}.transition-picker-choice-main{gap:7px}.transition-picker-choice-main strong,.transition-picker-choice-title,.transition-picker-choice-route,.transition-picker-choice-contract,.transition-picker-choice-decision,.transition-picker-choice-unavailable{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.transition-picker-choice-main strong{color:#efd18f}.transition-picker-choice-title{color:#d9b8ef}.transition-picker-choice-route{color:#777f8a}.transition-picker-choice-contract{color:#9ebce9}.transition-picker-choice-decision{color:#b69ac9}.transition-picker-choice-unavailable{color:#a38c6f}.transition-picker-choice.is-unavailable{opacity:.68;cursor:default}.input-contract-fields,.input-contract-field,.input-contract-children,.input-contract-alternatives{gap:9px;display:grid}.input-contract-fields{border:1px solid var(--line-soft);background:var(--surface-raised);padding:11px 12px}.input-contract-field+.input-contract-field{border-top:1px solid var(--line-soft);padding-top:9px}.input-contract-children,.input-contract-alternatives{border-top:1px solid var(--line-soft);border-left:1px solid var(--line-soft);margin-top:2px;padding:9px 0 0 12px}.input-contract .section-empty{margin:0}.input-field-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.input-field-contract,.input-constraints{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.input-field-contract{flex:none;justify-content:flex-end;margin-left:auto}.input-label,.input-required,.input-optional{font-size:11px}.input-label{color:#cfd3d9;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.input-field-type,.input-constraints span{color:#8294ad;font:10px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.input-field-type{background:#4b7dff1f;border-radius:3px;padding:2px 5px}.input-constraints{margin-top:-1px}.input-constraints span+span:before{color:#4f5762;content:"·";margin-right:6px}.input-required{color:#737b86}.input-optional{color:#9199a4;align-items:center;gap:6px;display:inline-flex}.input-description,.input-unsupported{margin:0;font-size:11px;line-height:1.55}.input-description{color:#737b86}.input-unsupported{color:var(--danger-strong)}.value-shape-block{border:1px solid var(--line-soft);color:#b8c1ce;background:var(--surface-raised);tab-size:2;white-space:pre;margin:0;padding:12px;font:10px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto}.trace-topology{gap:10px;display:grid}.trace-topology .section-heading{margin-bottom:1px}.trace-path-group,.trace-values,.trace-transitions{gap:7px;display:grid}.trace-path-group{grid-template-columns:78px minmax(0,1fr);align-items:start}.trace-paths{flex-wrap:wrap;gap:4px 10px;min-width:0;display:flex}.trace-label{color:#747c87;text-transform:uppercase;font-size:10px;line-height:1.5}.trace-card{padding-bottom:12px}.trace-card>.trace-path-group,.trace-card>.trace-values,.trace-card>.trace-transitions{margin:0 12px 10px}.trace-transition{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.trace-transition+.trace-path-group{margin:0 0 4px}.trace-results{padding-bottom:24px}.trace-results>.trace-values{margin-top:12px}@media (width<=900px){.machine-row{min-width:132px;max-width:220px}.inspector{width:min(440px,100% - 16px);top:54px;bottom:8px;right:8px}}@media (width<=600px){.toolbar{align-items:flex-start;padding-inline:10px}.toolbar-actions{flex-wrap:wrap;justify-content:flex-end}.runtime-summary{padding-top:8px}.inspector-content{padding:48px 14px 18px}.inspector{top:84px}.zoom-controls{bottom:8px;left:8px}.chart-panel.has-walkthrough .zoom-controls{bottom:88px}}@media (prefers-reduced-motion:no-preference){.chart-state,.chart-edge-label,.toolbar-button{transition:color .12s,background-color .12s,border-color .12s}}
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <meta name="description" content="Interactive statechart visualization for Effect Machine" />
7
7
  <title>Effect Machine · Statechart</title>
8
- <script type="module" crossorigin src="./assets/index-BVMbU47j.js"></script>
9
- <link rel="stylesheet" crossorigin href="./assets/index-DkC3PbTy.css">
8
+ <script type="module" crossorigin src="./assets/index-BKnyFv2V.js"></script>
9
+ <link rel="stylesheet" crossorigin href="./assets/index-oZzhV9Td.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
@@ -74,11 +74,11 @@ const trigger = (value) => {
74
74
  return { type: "invoke", id: value.id, outcome: value.outcome };
75
75
  }
76
76
  };
77
- const activity = (value, id) => {
77
+ const invocation = (value, id) => {
78
78
  const common = { id, source: value.source, lifecycleId: value.id };
79
79
  switch (value.type) {
80
- case "process":
81
- return { ...common, type: "process" };
80
+ case "logic":
81
+ return { ...common, type: "logic" };
82
82
  case "effect":
83
83
  return { ...common, type: "effect", outcomes: { ...value.outcomes } };
84
84
  case "timer":
@@ -97,9 +97,9 @@ const appendReference = (index, owner, id) => {
97
97
  export const make = (machine, options = {}) => {
98
98
  const nodes = Machine.stateNodes(machine);
99
99
  const transitionIds = new Map();
100
- const activityIds = new Map();
100
+ const invocationIds = new Map();
101
101
  const transitionOffsets = new Map();
102
- const activityOffsets = new Map();
102
+ const invocationOffsets = new Map();
103
103
  const childPaths = new Map();
104
104
  for (const node of nodes) {
105
105
  const parent = node.parent ?? null;
@@ -131,16 +131,16 @@ export const make = (machine, options = {}) => {
131
131
  })
132
132
  };
133
133
  });
134
- const activities = Machine.activityDefinitions(machine).map((definition) => {
135
- const offset = activityOffsets.get(definition.source) ?? 0;
136
- activityOffsets.set(definition.source, offset + 1);
137
- const id = `${definition.source}:activity:${offset}`;
138
- appendReference(activityIds, definition.source, id);
139
- return activity(definition, id);
134
+ const invocations = Machine.invocationDefinitions(machine).map((definition) => {
135
+ const offset = invocationOffsets.get(definition.source) ?? 0;
136
+ invocationOffsets.set(definition.source, offset + 1);
137
+ const id = `${definition.source}:invocation:${offset}`;
138
+ appendReference(invocationIds, definition.source, id);
139
+ return invocation(definition, id);
140
140
  });
141
141
  const initial = Machine.initialDefinition(machine);
142
142
  return {
143
- schemaVersion: 3,
143
+ schemaVersion: 4,
144
144
  revision: options.revision ?? 0,
145
145
  source: options.source ?? null,
146
146
  machineId: machine.id ?? "Machine",
@@ -164,10 +164,10 @@ export const make = (machine, options = {}) => {
164
164
  valueSchema: node.schema === undefined ? null : inputSchema(node.schema),
165
165
  outputSchema: node.output === undefined ? null : inputSchema(node.output),
166
166
  transitionIds: [...transitionIds.get(node.path) ?? []],
167
- activityIds: [...activityIds.get(node.path) ?? []]
167
+ invocationIds: [...invocationIds.get(node.path) ?? []]
168
168
  })),
169
169
  transitions,
170
- activities,
170
+ invocations,
171
171
  inputs: {
172
172
  machine: machine.input === undefined ? null : inputSchema(machine.input),
173
173
  events: eventInputs(machine)
@@ -1 +1 @@
1
- {"version":3,"file":"machineDocument.js","sourceRoot":"","sources":["../../src/internal/machineDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,MAAM,OAAO,GAAG,OAAO,CAAC,OAGO,CAAA;AAE/B,MAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAA;AAE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M,EAAE;YACN,OAAO,EAAE,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC;YACxE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC;SAC7B;QACD,QAAQ,EAAE,OAAO,CAAC,QAAQ,KAAK,SAAS;YACtC,CAAC,CAAC,IAAI;YACN,CAAC,CAAC;gBACA,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;gBACtF,eAAe,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;qBAChD,GAAG,CAAC,MAAM,CAAC;qBACX,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;aAC3D;KACJ,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeonce/effect-machine-devtools",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "Local development tools for Effect Machine",
5
5
  "author": "Sandro Maglione",
6
6
  "repository": {
@@ -34,14 +34,14 @@
34
34
  "elkjs": "0.12.0",
35
35
  "typescript": ">=5.9.0 <7.0.0",
36
36
  "vite": "^8.1.5",
37
- "@typeonce/effect-machine": "^0.47.0"
37
+ "@typeonce/effect-machine": "^0.48.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "effect": "^4.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "26.6.6",
44
- "effect": "4.1.1",
44
+ "effect": "4.1.5",
45
45
  "tsx": "4.21.0"
46
46
  },
47
47
  "files": [
@@ -13,7 +13,7 @@ import * as internal from "./internal/machineDocument.js"
13
13
  * @category models
14
14
  * @since 0.23.0
15
15
  */
16
- export const schemaVersion = 3 as const
16
+ export const schemaVersion = 4 as const
17
17
 
18
18
  /**
19
19
  * Source module and export that produced a machine.
@@ -102,7 +102,7 @@ export const State = Schema.Struct({
102
102
  valueSchema: Schema.NullOr(InputSchema),
103
103
  outputSchema: Schema.NullOr(InputSchema),
104
104
  transitionIds: Schema.Array(Schema.String),
105
- activityIds: Schema.Array(Schema.String)
105
+ invocationIds: Schema.Array(Schema.String)
106
106
  })
107
107
 
108
108
  /**
@@ -178,7 +178,7 @@ export const Transition = Schema.Struct({
178
178
  */
179
179
  export type Transition = Schema.Schema.Type<typeof Transition>
180
180
 
181
- const ActivityFields = {
181
+ const InvocationFields = {
182
182
  id: Schema.String,
183
183
  source: Schema.String,
184
184
  lifecycleId: Schema.String
@@ -188,10 +188,10 @@ const ActivityFields = {
188
188
  * @category schemas
189
189
  * @since 0.23.0
190
190
  */
191
- export const Activity = Schema.Union([
192
- Schema.Struct({ ...ActivityFields, type: Schema.tag("process") }),
191
+ export const Invocation = Schema.Union([
192
+ Schema.Struct({ ...InvocationFields, type: Schema.tag("logic") }),
193
193
  Schema.Struct({
194
- ...ActivityFields,
194
+ ...InvocationFields,
195
195
  type: Schema.tag("effect"),
196
196
  outcomes: Schema.Struct({
197
197
  success: Schema.Literal("dynamic"),
@@ -199,13 +199,13 @@ export const Activity = Schema.Union([
199
199
  })
200
200
  }),
201
201
  Schema.Struct({
202
- ...ActivityFields,
202
+ ...InvocationFields,
203
203
  type: Schema.tag("timer"),
204
204
  duration: Schema.String
205
205
  }),
206
- Schema.Struct({ ...ActivityFields, type: Schema.tag("stream") }),
206
+ Schema.Struct({ ...InvocationFields, type: Schema.tag("stream") }),
207
207
  Schema.Struct({
208
- ...ActivityFields,
208
+ ...InvocationFields,
209
209
  type: Schema.tag("machine"),
210
210
  child: Schema.Struct({
211
211
  id: Schema.String,
@@ -218,7 +218,7 @@ export const Activity = Schema.Union([
218
218
  * @category models
219
219
  * @since 0.23.0
220
220
  */
221
- export type Activity = Schema.Schema.Type<typeof Activity>
221
+ export type Invocation = Schema.Schema.Type<typeof Invocation>
222
222
 
223
223
  /**
224
224
  * @category schemas
@@ -284,7 +284,7 @@ export const MachineDocument = Schema.Struct({
284
284
  roots: Schema.Array(Schema.String),
285
285
  states: Schema.Array(State),
286
286
  transitions: Schema.Array(Transition),
287
- activities: Schema.Array(Activity),
287
+ invocations: Schema.Array(Invocation),
288
288
  inputs: Inputs,
289
289
  snapshot: Schema.NullOr(Snapshot)
290
290
  })
@@ -309,7 +309,7 @@ export interface MakeOptions<M extends Machine.Machine.Any> {
309
309
 
310
310
  /**
311
311
  * Captures every serializable definition exposed by Effect Machine inspection.
312
- * It never evaluates transition resolvers or activity sources.
312
+ * It never evaluates transition resolvers or invocation sources.
313
313
  *
314
314
  * @category constructors
315
315
  * @since 0.23.0
@@ -19,7 +19,7 @@ import {
19
19
  isChartStateDescendant
20
20
  } from "./chart-model.js"
21
21
 
22
- export const maxVisibleActivities = 3
22
+ export const maxVisibleInvocations = 3
23
23
  export const chartSelfLoopMinimumClearance = 24
24
24
  export const chartEdgeLabelSpacing = 5
25
25
 
@@ -224,23 +224,23 @@ const layoutProfiles: ReadonlyArray<LayoutProfile> = [
224
224
  }
225
225
  ]
226
226
 
227
- const activitySectionHeight = (length: number): number => {
227
+ const invocationSectionHeight = (length: number): number => {
228
228
  if (length === 0) return 0
229
- const visible = Math.min(length, maxVisibleActivities)
230
- return 16 + visible * 20 + (length > maxVisibleActivities ? 16 : 0)
229
+ const visible = Math.min(length, maxVisibleInvocations)
230
+ return 16 + visible * 20 + (length > maxVisibleInvocations ? 16 : 0)
231
231
  }
232
232
 
233
233
  const approximateTextWidth = (value: string, characterWidth: number): number => value.length * characterWidth
234
234
 
235
235
  const nodeMetric = (node: ChartNode, selfLoops: number): NodeMetric => {
236
- const headerHeight = 52 + activitySectionHeight(node.activities.length)
236
+ const headerHeight = 52 + invocationSectionHeight(node.invocations.length)
237
237
  const nameWidth = approximateTextWidth(node.label, 7.2) + 55
238
- const activityWidth = node.activities.reduce(
239
- (width, activity) =>
238
+ const invocationWidth = node.invocations.reduce(
239
+ (width, invocation) =>
240
240
  Math.max(
241
241
  width,
242
- approximateTextWidth(activity.kind.toUpperCase(), 5.5) +
243
- approximateTextWidth(activity.label, 6.1) + 48
242
+ approximateTextWidth(invocation.kind.toUpperCase(), 5.5) +
243
+ approximateTextWidth(invocation.label, 6.1) + 48
244
244
  ),
245
245
  0
246
246
  )
@@ -251,7 +251,7 @@ const nodeMetric = (node: ChartNode, selfLoops: number): NodeMetric => {
251
251
  : 144
252
252
  const selfLoopWidth = selfLoops <= 1 ? 0 : 144 + (selfLoops - 1) * 44
253
253
  const selfLoopHeight = selfLoops <= 1 ? 0 : 52 + (selfLoops - 1) * 16
254
- const width = Math.min(320, Math.max(minimumWidth, nameWidth, activityWidth, selfLoopWidth))
254
+ const width = Math.min(320, Math.max(minimumWidth, nameWidth, invocationWidth, selfLoopWidth))
255
255
  return {
256
256
  width,
257
257
  height: node.children.length === 0
@@ -1,15 +1,15 @@
1
1
  import type {
2
- Activity as VisualizationActivity,
3
2
  Branch as VisualizationBranch,
3
+ Invocation as VisualizationInvocation,
4
4
  MachineDocument as VisualizationDocument,
5
5
  State as VisualizationState,
6
6
  Transition as VisualizationTransition
7
7
  } from "../../MachineDocument.js"
8
8
  import { stateLabel, triggerLabel } from "./visualizer-model.js"
9
9
 
10
- export interface ChartActivity {
10
+ export interface ChartInvocation {
11
11
  readonly id: string
12
- readonly kind: VisualizationActivity["type"]
12
+ readonly kind: VisualizationInvocation["type"]
13
13
  readonly label: string
14
14
  }
15
15
 
@@ -21,7 +21,7 @@ export interface ChartNode {
21
21
  readonly children: ReadonlyArray<string>
22
22
  readonly active: boolean
23
23
  readonly initial: boolean
24
- readonly activities: ReadonlyArray<ChartActivity>
24
+ readonly invocations: ReadonlyArray<ChartInvocation>
25
25
  }
26
26
 
27
27
  export type ChartEdgeBadge =
@@ -44,7 +44,7 @@ export interface ChartEdge {
44
44
  readonly accessibleLabel: string
45
45
  readonly badges: ReadonlyArray<ChartEdgeBadge>
46
46
  readonly trigger: VisualizationTransition["trigger"]
47
- readonly activityKind: ChartActivity["kind"] | null
47
+ readonly invocationKind: ChartInvocation["kind"] | null
48
48
  readonly reenter: boolean
49
49
  readonly acceptance: VisualizationTransition["acceptance"]
50
50
  }
@@ -74,16 +74,16 @@ export interface ChartModel {
74
74
  export const isChartStateDescendant = (path: string, ancestor: string): boolean =>
75
75
  ancestor === "" ? path !== "" : path.startsWith(`${ancestor}.`)
76
76
 
77
- const activityLabel = (activity: VisualizationActivity): string => {
78
- switch (activity.type) {
77
+ const invocationLabel = (invocation: VisualizationInvocation): string => {
78
+ switch (invocation.type) {
79
79
  case "machine":
80
- return `${activity.lifecycleId} → ${activity.child.machineId ?? activity.child.id}`
80
+ return `${invocation.lifecycleId} → ${invocation.child.machineId ?? invocation.child.id}`
81
81
  case "timer":
82
- return `${activity.lifecycleId} · ${activity.duration}`
83
- case "process":
82
+ return `${invocation.lifecycleId} · ${invocation.duration}`
83
+ case "logic":
84
84
  case "effect":
85
85
  case "stream":
86
- return activity.lifecycleId
86
+ return invocation.lifecycleId
87
87
  }
88
88
  }
89
89
 
@@ -151,12 +151,12 @@ const edgeGroup = (
151
151
  export const makeChartModel = (document: VisualizationDocument): ChartModel => {
152
152
  const active = new Set(document.snapshot?.activePaths ?? [])
153
153
  const initialPaths = new Set([document.initial.target])
154
- const activities = new Map(document.activities.map((activity) => [activity.id, activity]))
155
- const activitiesBySource = new Map<string, Map<string, ChartActivity["kind"]>>()
156
- for (const activity of document.activities) {
157
- const sourceActivities = activitiesBySource.get(activity.source) ?? new Map()
158
- sourceActivities.set(activity.lifecycleId, activity.type)
159
- activitiesBySource.set(activity.source, sourceActivities)
154
+ const invocations = new Map(document.invocations.map((invocation) => [invocation.id, invocation]))
155
+ const invocationsBySource = new Map<string, Map<string, ChartInvocation["kind"]>>()
156
+ for (const invocation of document.invocations) {
157
+ const sourceInvocations = invocationsBySource.get(invocation.source) ?? new Map()
158
+ sourceInvocations.set(invocation.lifecycleId, invocation.type)
159
+ invocationsBySource.set(invocation.source, sourceInvocations)
160
160
  }
161
161
  const states = new Map(document.states.map((state) => [state.path, state]))
162
162
 
@@ -172,9 +172,9 @@ export const makeChartModel = (document: VisualizationDocument): ChartModel => {
172
172
  children: [...state.children],
173
173
  active: active.has(state.path),
174
174
  initial: initialPaths.has(state.path),
175
- activities: state.activityIds.flatMap((id): ReadonlyArray<ChartActivity> => {
176
- const activity = activities.get(id)
177
- return activity === undefined ? [] : [{ id, kind: activity.type, label: activityLabel(activity) }]
175
+ invocations: state.invocationIds.flatMap((id): ReadonlyArray<ChartInvocation> => {
176
+ const invocation = invocations.get(id)
177
+ return invocation === undefined ? [] : [{ id, kind: invocation.type, label: invocationLabel(invocation) }]
178
178
  })
179
179
  }))
180
180
 
@@ -203,8 +203,8 @@ export const makeChartModel = (document: VisualizationDocument): ChartModel => {
203
203
  : `${triggerLabel(transition)} · ${branches.length} branches`,
204
204
  badges: labelBadges(transition, branches),
205
205
  trigger: transition.trigger,
206
- activityKind: transition.trigger.type === "invoke"
207
- ? activitiesBySource.get(transition.source)?.get(transition.trigger.id) ?? null
206
+ invocationKind: transition.trigger.type === "invoke"
207
+ ? invocationsBySource.get(transition.source)?.get(transition.trigger.id) ?? null
208
208
  : null,
209
209
  reenter: transition.reenter,
210
210
  acceptance: transition.acceptance
@@ -6,7 +6,7 @@ import {
6
6
  type LaidOutChart,
7
7
  type LaidOutChartNode,
8
8
  layoutChart,
9
- maxVisibleActivities
9
+ maxVisibleInvocations
10
10
  } from "./chart-layout.js"
11
11
  import { type ChartEdge, type ChartEdgeBadge, isChartStateDescendant, makeChartModel } from "./chart-model.js"
12
12
 
@@ -200,20 +200,20 @@ const stateContent = (layout: LaidOutChartNode, stateStatus: HTMLElement): Docum
200
200
  heading.append(identity)
201
201
  fragment.append(heading)
202
202
 
203
- if (layout.node.activities.length > 0) {
204
- const activities = element("div", "chart-state-section")
205
- layout.node.activities.slice(0, maxVisibleActivities).forEach((activity) => {
206
- const row = element("div", `chart-activity-row chart-activity-${activity.kind}`)
203
+ if (layout.node.invocations.length > 0) {
204
+ const invocations = element("div", "chart-state-section")
205
+ layout.node.invocations.slice(0, maxVisibleInvocations).forEach((invocation) => {
206
+ const row = element("div", `chart-invocation-row chart-invocation-${invocation.kind}`)
207
207
  row.append(
208
- element("span", "chart-activity-kind", activity.kind),
209
- element("span", "chart-activity-name", activity.label)
208
+ element("span", "chart-invocation-kind", invocation.kind),
209
+ element("span", "chart-invocation-name", invocation.label)
210
210
  )
211
- activities.append(row)
211
+ invocations.append(row)
212
212
  })
213
- if (layout.node.activities.length > maxVisibleActivities) {
214
- activities.append(more(layout.node.activities.length - maxVisibleActivities))
213
+ if (layout.node.invocations.length > maxVisibleInvocations) {
214
+ invocations.append(more(layout.node.invocations.length - maxVisibleInvocations))
215
215
  }
216
- fragment.append(activities)
216
+ fragment.append(invocations)
217
217
  }
218
218
 
219
219
  return fragment
@@ -484,7 +484,7 @@ const render = (
484
484
  `chart-edge-group chart-edge-${laidOut.kind}${
485
485
  laidOut.kind === "transition"
486
486
  ? ` chart-transition-${laidOut.edge.kind} chart-edge-trigger-${laidOut.edge.trigger.type}${
487
- laidOut.edge.activityKind === null ? "" : ` chart-edge-activity-${laidOut.edge.activityKind}`
487
+ laidOut.edge.invocationKind === null ? "" : ` chart-edge-invocation-${laidOut.edge.invocationKind}`
488
488
  }${parentChild ? " chart-edge-parent-child" : ""}${failure ? " chart-edge-failure" : ""}`
489
489
  : ""
490
490
  }`
@@ -529,7 +529,7 @@ const render = (
529
529
  const label = element(
530
530
  "button",
531
531
  `chart-edge-label chart-edge-label-${laidOut.edge.trigger.type}${
532
- laidOut.edge.activityKind === null ? "" : ` chart-edge-activity-${laidOut.edge.activityKind}`
532
+ laidOut.edge.invocationKind === null ? "" : ` chart-edge-invocation-${laidOut.edge.invocationKind}`
533
533
  }${parentChild ? " chart-edge-label-parent-child" : ""}${failure ? " chart-edge-label-failure" : ""}${
534
534
  laidOut.edge.label.length === 0 ? " chart-edge-label-icon-only" : ""
535
535
  }${laidOut.edge.label.length > 0 && laidOut.edge.badges.length > 0 ? " chart-edge-label-corner-badge" : ""}`