dsh-charter 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -1
- package/CHANGELOG.zh.md +25 -1
- package/README.md +37 -21
- package/README.zh.md +27 -17
- package/docs/README.md +5 -2
- package/docs/README.zh.md +3 -2
- package/docs/assets/charter-pane.zh.png +0 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +1101 -0
- package/docs/design/charter-workspace-v2.zh.md +16 -0
- package/docs/design/version-roadmap.md +2 -3
- package/docs/design/version-roadmap.zh.md +14 -4
- package/docs/release-notes/0.2.1.md +8 -6
- package/docs/release-notes/0.2.2.md +60 -0
- package/docs/release-notes/README.md +1 -2
- package/docs/releasing.md +4 -6
- package/docs/releasing.zh.md +4 -6
- package/docs/user-guide.md +36 -15
- package/docs/user-guide.zh.md +34 -13
- package/docs/verification.md +35 -29
- package/docs/verification.zh.md +30 -25
- package/lib/client/DependencyGraph.d.ts +19 -0
- package/lib/client/locales.d.ts +62 -6
- package/lib/client/relation-graph.d.ts +135 -0
- package/lib/client.js +1829 -206
- package/lib/core/change-set.d.ts +7 -0
- package/lib/core/dependencies.d.ts +29 -0
- package/lib/core.js +1 -1
- package/lib/{fork-D5HVDV1i.js → fork-KSL6sovw.js} +70 -1
- package/lib/host/types.d.ts +2 -0
- package/lib/index.js +2 -2
- package/lib/remote/wire.d.ts +37 -3
- package/lib/remote.js +23 -3
- package/lib/{service-CNjnvioR.js → service-MsIACddZ.js} +6 -3
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -3,7 +3,7 @@ window.__ModuleLoader__.load({
|
|
|
3
3
|
factory: (require) => {
|
|
4
4
|
var module = { exports: {} };
|
|
5
5
|
var exports = module.exports;
|
|
6
|
-
const __charterCss = ".charter-root {\n --charter-border: var(--dsw-alias-border-l2, #7f7f7f38);\n --charter-border-soft: var(--dsw-alias-border-l1, #7f7f7f24);\n --charter-surface: var(--dsw-alias-bg-layer-1, #7f7f7f0e);\n --charter-surface-2: var(--dsw-alias-bg-layer-2, #7f7f7f16);\n --charter-brand: var(--dsw-alias-brand-primary, #3978d4);\n --charter-brand-fill: var(--dsw-alias-button-primary-fill, #3978d4);\n --charter-brand-fill-hover: var(--dsw-alias-button-primary-hover, var(--charter-brand-fill));\n --charter-brand-label: var(--dsw-alias-label-primary-foreground, #fff);\n --charter-danger: var(--dsw-alias-state-error-primary, #d14343);\n --charter-warn: var(--dsw-alias-state-warn-primary, #b7791f);\n --charter-success: var(--dsw-alias-state-success-primary, #2f8a5b);\n --charter-radius: 10px;\n --charter-ease: var(--ds-ease-in-out, ease-in-out);\n --charter-duration: var(--ds-transition-duration, .18s);\n box-sizing: border-box;\n width: 100%;\n min-height: 100%;\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-bg-base, transparent);\n font-family: var(--dsw-font-family, inherit);\n font-size: var(--dsh-content-font-size, 13px);\n line-height: 1.5;\n overflow-x: hidden;\n container-type: inline-size;\n}\n\n.charter-root *, .charter-root :before, .charter-root :after {\n box-sizing: border-box;\n}\n\n.charter-shell {\n width: 100%;\n max-width: 1100px;\n margin: 0 auto;\n padding: clamp(20px, 3.5vw, 34px) clamp(16px, 3.5vw, 40px) clamp(72px, 12vh, 120px);\n}\n\n.charter-pagehead {\n border-bottom: 1px solid var(--charter-border-soft);\n justify-content: space-between;\n align-items: flex-start;\n gap: 16px;\n margin-bottom: 12px;\n padding: 2px 0 12px;\n display: flex;\n}\n\n.charter-heading {\n align-items: flex-start;\n gap: 10px;\n min-width: 0;\n display: flex;\n}\n\n.charter-heading__copy {\n min-width: 0;\n}\n\n.charter-mark {\n flex: none;\n width: 32px;\n height: 32px;\n margin-top: 1px;\n display: block;\n}\n\n.charter-mark svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.charter-eyebrow, .charter-kicker {\n color: var(--dsw-alias-label-secondary, #777);\n letter-spacing: .075em;\n text-transform: uppercase;\n font-size: 10.5px;\n font-weight: 650;\n line-height: 1.4;\n display: block;\n}\n\n.charter-pagehead h2 {\n letter-spacing: -.01em;\n margin: 0;\n font-size: 20px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.charter-subtitle {\n max-width: 64ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 2px 0 0;\n font-size: 12px;\n line-height: 1.45;\n}\n\n.charter-headside {\n flex: none;\n justify-items: end;\n gap: 7px;\n min-width: 180px;\n display: grid;\n}\n\n.charter-chips {\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: 5px;\n display: flex;\n}\n\n.charter-meter {\n width: min(190px, 30vw);\n color: var(--dsw-alias-label-secondary, #777);\n font-variant-numeric: tabular-nums;\n text-align: right;\n gap: 4px;\n font-size: 10.5px;\n display: grid;\n}\n\n.charter-meter__track {\n background: color-mix(in srgb, var(--dsw-alias-label-secondary, #777) 16%, transparent);\n border-radius: 999px;\n width: 100%;\n height: 3px;\n display: block;\n overflow: hidden;\n}\n\n.charter-meter__fill {\n border-radius: inherit;\n background: var(--charter-brand);\n height: 100%;\n transition: width var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease);\n display: block;\n}\n\n.charter-meter.is-warn {\n color: var(--charter-warn);\n}\n\n.charter-meter.is-warn .charter-meter__fill {\n background: var(--charter-warn);\n}\n\n.charter-meter.is-over {\n color: var(--charter-danger);\n font-weight: 600;\n}\n\n.charter-meter.is-over .charter-meter__fill {\n background: var(--charter-danger);\n}\n\n.charter-card {\n border: 1px solid var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n min-width: 0;\n margin-bottom: 12px;\n padding: 14px 16px;\n}\n\n.charter-cardhead {\n justify-content: space-between;\n align-items: flex-start;\n gap: 12px;\n min-width: 0;\n display: flex;\n}\n\n.charter-cardtitle {\n min-width: 0;\n}\n\n.charter-cardtitle h3 {\n margin: 2px 0 0;\n font-size: 14px;\n font-weight: 600;\n line-height: 1.45;\n}\n\n.charter-fieldlabel {\n color: var(--dsw-alias-label-primary, inherit);\n font-size: 11px;\n font-weight: 600;\n line-height: 1.4;\n display: block;\n}\n\n.charter-card > .charter-hint {\n margin: 6px 0 0;\n font-size: 11px;\n line-height: 1.5;\n}\n\n.charter-cardtools {\n flex: none;\n align-items: center;\n gap: 8px;\n display: flex;\n}\n\n.charter-count {\n border: 1px solid var(--charter-border);\n min-width: 22px;\n height: 22px;\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n font-variant-numeric: tabular-nums;\n border-radius: 999px;\n justify-content: center;\n align-items: center;\n padding: 0 7px;\n font-size: 11px;\n font-weight: 600;\n display: inline-flex;\n}\n\n.charter-objective h3 {\n max-width: 68ch;\n font-size: 15px;\n font-weight: 550;\n line-height: 1.55;\n}\n\n.charter-original {\n max-width: 72ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 8px 0 0;\n font-size: 11.5px;\n line-height: 1.5;\n}\n\n.charter-copy {\n max-width: 72ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 8px 0 0;\n font-size: 12px;\n line-height: 1.55;\n}\n\n.charter-source {\n border: 1px solid var(--charter-border-soft);\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n border-radius: 999px;\n margin-top: 6px;\n padding: 1px 7px;\n font-size: 10.5px;\n display: inline-block;\n}\n\n.charter-columns {\n grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);\n align-items: start;\n gap: 12px;\n display: grid;\n}\n\n.charter-columns > .charter-card {\n margin-bottom: 0;\n}\n\n.charter-tag {\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n white-space: nowrap;\n border: 1px solid #0000;\n border-radius: 999px;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n font-size: 10.5px;\n line-height: 1.6;\n display: inline-flex;\n}\n\n.charter-tag--info {\n border-color: color-mix(in srgb, var(--charter-brand) 28%, transparent);\n color: var(--charter-brand);\n background: color-mix(in srgb, var(--charter-brand) 8%, transparent);\n}\n\n.charter-tag--success {\n border-color: color-mix(in srgb, var(--charter-success) 26%, transparent);\n color: var(--charter-success);\n background: color-mix(in srgb, var(--charter-success) 8%, transparent);\n}\n\n.charter-tag--warning {\n border-color: color-mix(in srgb, var(--charter-warn) 28%, transparent);\n color: var(--charter-warn);\n background: color-mix(in srgb, var(--charter-warn) 8%, transparent);\n}\n\n.charter-tag--danger {\n border-color: color-mix(in srgb, var(--charter-danger) 28%, transparent);\n color: var(--charter-danger);\n background: color-mix(in srgb, var(--charter-danger) 8%, transparent);\n}\n\n.charter-notice {\n border: 1px solid var(--charter-border);\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n border-radius: 8px;\n margin-bottom: 12px;\n padding: 8px 11px;\n font-size: 12px;\n line-height: 1.5;\n}\n\n.charter-notice--warning {\n border-color: color-mix(in srgb, var(--charter-warn) 30%, var(--charter-border));\n background: color-mix(in srgb, var(--charter-warn) 7%, var(--charter-surface));\n}\n\n.charter-notice--danger {\n border-color: color-mix(in srgb, var(--charter-danger) 32%, var(--charter-border));\n color: var(--charter-danger);\n background: color-mix(in srgb, var(--charter-danger) 7%, var(--charter-surface));\n}\n\n.charter-list {\n flex-direction: column;\n margin-top: 8px;\n display: flex;\n}\n\n.charter-item {\n transition: background-color var(--charter-duration) var(--charter-ease);\n border-radius: 7px;\n flex-direction: column;\n gap: 2px;\n margin: 0 -6px;\n padding: 9px 6px;\n display: flex;\n position: relative;\n}\n\n.charter-item + .charter-item {\n border-top: 1px solid var(--charter-border-soft);\n}\n\n.charter-item:hover {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-item:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: -2px;\n}\n\n.charter-item__hint {\n color: var(--dsw-alias-label-tertiary, #999);\n font-size: 10.5px;\n line-height: 1.45;\n}\n\n.charter-item--inactive {\n opacity: .72;\n}\n\n.charter-item__main {\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n display: flex;\n}\n\n.charter-item__copy {\n flex: 1;\n gap: 3px;\n min-width: 0;\n display: grid;\n}\n\n.charter-item__text {\n overflow-wrap: anywhere;\n color: var(--dsw-alias-label-primary, inherit);\n font-size: 12.5px;\n line-height: 1.55;\n}\n\n.charter-item__meta {\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n display: flex;\n}\n\n.charter-item__bytes {\n color: var(--dsw-alias-label-tertiary, #999);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n font-size: 10px;\n}\n\n.charter-item__actions {\n z-index: 2;\n border: 1px solid var(--charter-border-soft);\n background: color-mix(in srgb, var(--dsw-alias-bg-base, #fff) 92%, transparent);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 7%, transparent);\n backdrop-filter: blur(5px);\n opacity: 0;\n pointer-events: none;\n transition: opacity var(--charter-duration) var(--charter-ease);\n border-radius: 7px;\n flex-wrap: nowrap;\n gap: 1px;\n padding: 2px 4px;\n display: flex;\n position: absolute;\n top: 4px;\n right: 4px;\n}\n\n.charter-item:hover .charter-item__actions, .charter-item:focus-within .charter-item__actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n.charter-state-mark {\n background: var(--dsw-alias-label-tertiary, #999);\n border-radius: 50%;\n flex: none;\n width: 7px;\n height: 7px;\n margin-top: 6px;\n display: block;\n}\n\n.charter-state-mark--done {\n background: var(--charter-success);\n}\n\n.charter-state-mark--warning {\n background: var(--charter-warn);\n}\n\n.charter-state-mark--ongoing {\n background: var(--charter-brand);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--charter-brand) 14%, transparent);\n}\n\n.charter-progress {\n color: var(--dsw-alias-label-secondary, #777);\n align-items: center;\n gap: 6px;\n margin: 5px 0 0 15px;\n font-size: 10.5px;\n display: flex;\n}\n\n.charter-progress select {\n border: 1px solid var(--charter-border);\n height: auto;\n min-height: 23px;\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface-2);\n font: inherit;\n border-radius: 5px;\n padding: 0 5px;\n font-size: 10.5px;\n}\n\n.charter-empty {\n border: 1px dashed var(--charter-border);\n color: var(--dsw-alias-label-tertiary, #999);\n text-align: center;\n border-radius: 7px;\n margin: 4px 0;\n padding: 12px 10px;\n font-size: 11.5px;\n}\n\n.charter-add {\n border: 1px solid var(--charter-border);\n background: var(--charter-surface-2);\n transition: border-color var(--charter-duration) var(--charter-ease), box-shadow var(--charter-duration) var(--charter-ease);\n border-radius: 8px;\n gap: 3px;\n margin-top: 9px;\n padding: 7px 8px;\n display: grid;\n}\n\n.charter-add:focus-within {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--charter-brand) 32%, transparent);\n}\n\n.charter-add.is-over {\n border-color: color-mix(in srgb, var(--charter-danger) 55%, var(--charter-border));\n}\n\n.charter-add textarea {\n width: 100%;\n min-height: 34px;\n color: inherit;\n font: inherit;\n resize: vertical;\n background: none;\n border: 0;\n outline: 0;\n padding: 2px 3px;\n font-size: 12.5px;\n line-height: 1.5;\n}\n\n.charter-add textarea::placeholder {\n color: var(--dsw-alias-label-tertiary, #999);\n}\n\n.charter-add__foot {\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n display: flex;\n}\n\n.charter-budget {\n color: var(--dsw-alias-label-tertiary, #999);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n font-size: 10.5px;\n line-height: 1.4;\n}\n\n.charter-budget.is-over {\n color: var(--charter-danger);\n font-weight: 600;\n}\n\n.charter-button {\n min-height: 27px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n transition: color var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease), border-color var(--charter-duration) var(--charter-ease);\n background: none;\n border: 1px solid #0000;\n border-radius: 7px;\n padding: 3px 9px;\n font-size: 11.5px;\n font-weight: 550;\n line-height: 1.4;\n}\n\n.charter-button:hover:not(:disabled) {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f1a);\n}\n\n.charter-button:focus-visible, .charter-progress select:focus-visible, .charter-bootstrap textarea:focus-visible, .charter-editor__input:focus-visible, .charter-editor__reason:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 1px;\n}\n\n.charter-button:disabled {\n cursor: not-allowed;\n opacity: .42;\n}\n\n.charter-button--outline {\n border-color: var(--charter-border);\n background: var(--charter-surface-2);\n}\n\n.charter-button--primary {\n color: var(--charter-brand-label);\n background: var(--charter-brand-fill);\n border-color: #0000;\n}\n\n.charter-button--primary:hover:not(:disabled) {\n color: var(--charter-brand-label);\n background: var(--charter-brand-fill-hover);\n}\n\n.charter-button--primary:disabled {\n border-color: var(--charter-border);\n color: var(--dsw-alias-label-tertiary, #999);\n background: var(--charter-surface-2);\n opacity: 1;\n}\n\n.charter-inlineeditor {\n border-top: 1px solid var(--charter-border-soft);\n margin-top: 12px;\n padding-top: 12px;\n}\n\n.charter-editor__input, .charter-editor__reason {\n border: 1px solid var(--charter-border);\n width: 100%;\n color: inherit;\n background: var(--dsw-alias-bg-base, transparent);\n font: inherit;\n resize: vertical;\n border-radius: 8px;\n outline: 0;\n padding: 8px 10px;\n font-size: 12.5px;\n line-height: 1.55;\n}\n\n.charter-editor__input {\n min-height: 74px;\n}\n\n.charter-editor__reason {\n min-height: 34px;\n margin-top: 6px;\n}\n\n.charter-editor__actions {\n justify-content: flex-end;\n align-items: center;\n gap: 7px;\n margin-top: 8px;\n display: flex;\n}\n\n.charter-editor__actions .charter-budget {\n margin-right: auto;\n}\n\n.charter-editor__hint {\n color: var(--dsw-alias-label-tertiary, #999);\n margin-top: 5px;\n font-size: 10.5px;\n display: block;\n}\n\n.charter-bootstrap {\n border-color: color-mix(in srgb, var(--charter-brand) 36%, var(--charter-border));\n background: linear-gradient(180deg, color-mix(in srgb, var(--charter-brand) 5%, var(--charter-surface)), var(--charter-surface));\n}\n\n.charter-bootstrap__field, .charter-bootstrap__group {\n gap: 6px;\n margin-top: 12px;\n display: grid;\n}\n\n.charter-bootstrap__field > span:first-child, .charter-bootstrap__group > .charter-kicker {\n color: var(--dsw-alias-label-primary, inherit);\n letter-spacing: 0;\n text-transform: none;\n font-size: 11px;\n font-weight: 600;\n}\n\n.charter-bootstrap textarea {\n border: 1px solid var(--charter-border);\n width: 100%;\n min-height: 46px;\n color: inherit;\n background: var(--dsw-alias-bg-base, transparent);\n font: inherit;\n resize: vertical;\n border-radius: 8px;\n outline: 0;\n padding: 7px 9px;\n font-size: 12px;\n line-height: 1.5;\n}\n\n.charter-bootstrap__item {\n transition: background-color var(--charter-duration) var(--charter-ease);\n border-radius: 7px;\n align-items: flex-start;\n gap: 8px;\n padding: 5px 6px;\n display: flex;\n}\n\n.charter-bootstrap__item:hover {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f12);\n}\n\n.charter-bootstrap__item input[type=\"checkbox\"] {\n accent-color: var(--charter-brand);\n flex: none;\n margin-top: 9px;\n}\n\n.charter-draftfield {\n flex: 1;\n gap: 2px;\n min-width: 0;\n display: grid;\n}\n\n.charter-draftfield .charter-budget {\n text-align: right;\n}\n\n.charter-bootstrap__actions {\n border-top: 1px solid var(--charter-border-soft);\n justify-content: flex-end;\n gap: 7px;\n margin-top: 12px;\n padding-top: 10px;\n display: flex;\n}\n\n.charter-empty-state {\n border: 1px dashed var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n gap: 3px;\n margin-bottom: 12px;\n padding: 14px 16px;\n display: grid;\n}\n\n.charter-empty-state h3 {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n}\n\n.charter-empty-state p {\n max-width: 68ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 0;\n font-size: 12px;\n line-height: 1.5;\n}\n\n.charter-centered {\n min-height: 260px;\n color: var(--dsw-alias-label-secondary, #777);\n text-align: center;\n justify-content: center;\n align-items: center;\n gap: 9px;\n display: flex;\n}\n\n.charter-centered .charter-button {\n border-color: var(--charter-border);\n}\n\n.charter-preview {\n margin-top: 12px;\n}\n\n.charter-preview__meta {\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n margin-bottom: 8px;\n display: flex;\n}\n\n.charter-preview__toolbar {\n flex-wrap: wrap;\n align-items: center;\n gap: 5px;\n margin: 0 0 8px;\n display: flex;\n}\n\n.charter-preview__view {\n border: 1px solid var(--charter-border);\n min-height: 26px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n cursor: pointer;\n background: none;\n border-radius: 6px;\n padding: 3px 8px;\n font-size: 10.5px;\n}\n\n.charter-preview__view:hover {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-preview__view.is-active {\n color: var(--charter-brand);\n border-color: color-mix(in srgb, var(--charter-brand) 45%, var(--charter-border));\n background: color-mix(in srgb, var(--charter-brand) 8%, transparent);\n font-weight: 600;\n}\n\n.charter-preview__view:disabled {\n opacity: .45;\n cursor: default;\n}\n\n.charter-preview pre {\n border: 1px solid var(--charter-border-soft);\n max-height: 300px;\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface-2);\n font-family: var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, monospace);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n border-radius: 8px;\n margin: 0;\n padding: 10px 12px;\n font-size: 11.5px;\n line-height: 1.55;\n overflow: auto;\n}\n\n.charter-actionbar {\n z-index: 4;\n border: 1px solid var(--charter-border);\n border-radius: var(--charter-radius);\n background: color-mix(in srgb, var(--dsw-alias-bg-base, #fff) 88%, transparent);\n backdrop-filter: blur(8px);\n box-shadow: 0 2px 10px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 4%, transparent);\n justify-content: space-between;\n align-items: center;\n gap: 14px;\n margin: 0 0 12px;\n padding: 8px 11px;\n display: flex;\n position: sticky;\n top: 0;\n}\n\n.charter-actionbar__status {\n min-width: 0;\n color: var(--dsw-alias-label-secondary, #777);\n align-items: center;\n gap: 8px;\n font-size: 11.5px;\n display: flex;\n}\n\n.charter-actionbar__status strong {\n color: var(--dsw-alias-label-primary, inherit);\n font-weight: 550;\n display: block;\n}\n\n.charter-actionbar__message {\n max-width: 46ch;\n color: var(--dsw-alias-label-secondary, #777);\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 10.5px;\n display: block;\n overflow: hidden;\n}\n\n.charter-actionbar__actions {\n flex: none;\n align-items: center;\n gap: 5px;\n display: flex;\n}\n\n.charter-dot {\n background: var(--dsw-alias-label-tertiary, #999);\n border-radius: 50%;\n flex: none;\n width: 7px;\n height: 7px;\n display: block;\n}\n\n.charter-dot.is-staged {\n background: var(--charter-brand);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--charter-brand) 13%, transparent);\n}\n\n.charter-body {\n grid-template-columns: 172px minmax(0, 1fr);\n align-items: start;\n gap: 18px;\n display: grid;\n}\n\n.charter-nav {\n border: 1px solid var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n gap: 2px;\n padding: 6px;\n display: grid;\n position: sticky;\n top: 60px;\n}\n\n.charter-nav__label {\n color: var(--dsw-alias-label-tertiary, #999);\n letter-spacing: .08em;\n text-transform: uppercase;\n padding: 3px 8px 5px;\n font-size: 10px;\n font-weight: 650;\n}\n\n.charter-nav__item {\n width: 100%;\n min-height: 30px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: color var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease);\n background: none;\n border: 0;\n border-radius: 7px;\n align-items: center;\n gap: 6px;\n padding: 5px 8px;\n font-size: 12.5px;\n display: flex;\n position: relative;\n}\n\n.charter-nav__item:hover {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-nav__item.is-active {\n color: var(--dsw-alias-label-primary, inherit);\n background: color-mix(in srgb, var(--charter-brand) 9%, var(--charter-surface-2));\n font-weight: 600;\n}\n\n.charter-nav__item.is-active:before {\n content: \"\";\n background: var(--charter-brand);\n border-radius: 2px;\n width: 2px;\n position: absolute;\n top: 7px;\n bottom: 7px;\n left: 0;\n}\n\n.charter-sr-only {\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n width: 1px;\n height: 1px;\n padding: 0;\n position: absolute;\n overflow: hidden;\n}\n\n.charter-nav__text {\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n overflow: hidden;\n}\n\n.charter-nav__badge {\n min-width: 18px;\n color: var(--dsw-alias-label-tertiary, #999);\n background: var(--charter-surface-2);\n font-variant-numeric: tabular-nums;\n text-align: center;\n border-radius: 999px;\n padding: 0 5px;\n font-size: 10px;\n line-height: 17px;\n}\n\n.charter-nav__item.is-active .charter-nav__badge {\n color: var(--charter-brand);\n background: color-mix(in srgb, var(--charter-brand) 10%, transparent);\n}\n\n.charter-nav__dot {\n background: var(--charter-brand);\n border-radius: 50%;\n width: 5px;\n height: 5px;\n}\n\n.charter-nav__badge + .charter-nav__dot {\n margin-left: 0;\n}\n\n.charter-nav__help {\n border: 1px solid var(--charter-border);\n width: 16px;\n height: 16px;\n color: var(--dsw-alias-label-tertiary, #999);\n cursor: help;\n border-radius: 50%;\n flex: 0 0 16px;\n justify-content: center;\n align-items: center;\n margin-left: auto;\n font-size: 10px;\n font-weight: 700;\n line-height: 1;\n display: inline-flex;\n position: relative;\n}\n\n.charter-nav__help:hover, .charter-nav__item:focus-visible .charter-nav__help {\n color: var(--charter-brand);\n border-color: var(--charter-brand);\n}\n\n.charter-nav__help:before {\n content: \"?\";\n}\n\n.charter-nav__help:after {\n content: attr(data-tooltip);\n z-index: 30;\n border: 1px solid var(--charter-border);\n width: min(160px, 70vw);\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-bg-base, #fff);\n box-shadow: 0 6px 18px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 16%, transparent);\n text-align: left;\n white-space: normal;\n visibility: hidden;\n opacity: 0;\n pointer-events: none;\n border-radius: 7px;\n padding: 7px 9px;\n font-size: 10.5px;\n font-weight: 400;\n line-height: 1.45;\n transition: opacity .12s;\n position: absolute;\n top: calc(100% + 6px);\n right: 0;\n}\n\n.charter-nav__help:hover:after, .charter-nav__item:focus-visible .charter-nav__help:after {\n visibility: visible;\n opacity: 1;\n}\n\n.charter-content {\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n display: flex;\n}\n\n.charter-content > * {\n margin-bottom: 0;\n}\n\n.charter-overview-grid {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 12px;\n display: grid;\n}\n\n.charter-statcard {\n min-width: 0;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease);\n gap: 2px;\n display: grid;\n}\n\n.charter-statcard:hover {\n border-color: color-mix(in srgb, var(--charter-brand) 30%, var(--charter-border));\n background: color-mix(in srgb, var(--charter-brand) 3%, var(--charter-surface));\n}\n\n.charter-statcard__value {\n font-variant-numeric: tabular-nums;\n margin-top: 2px;\n font-size: 22px;\n font-weight: 600;\n line-height: 1.2;\n}\n\n.charter-statcard__label {\n color: var(--dsw-alias-label-secondary, #777);\n font-size: 11px;\n}\n\n.charter-statcard__list {\n color: var(--dsw-alias-label-secondary, #777);\n gap: 2px;\n margin-top: 6px;\n font-size: 11.5px;\n line-height: 1.4;\n display: grid;\n}\n\n.charter-statcard__list > span {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.charter-statcard__list em {\n color: var(--dsw-alias-label-tertiary, #999);\n margin-left: 6px;\n font-size: 10px;\n font-style: normal;\n}\n\n.charter-statcard__link {\n color: var(--charter-brand);\n margin-top: 6px;\n font-size: 10.5px;\n font-weight: 600;\n}\n\n.charter-callout {\n border: 1px solid color-mix(in srgb, var(--charter-brand) 34%, var(--charter-border));\n border-radius: var(--charter-radius);\n width: 100%;\n color: inherit;\n background: linear-gradient(180deg, color-mix(in srgb, var(--charter-brand) 5%, var(--charter-surface)), var(--charter-surface));\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color var(--charter-duration) var(--charter-ease);\n gap: 2px;\n padding: 12px 14px;\n display: grid;\n}\n\n.charter-callout:hover {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n}\n\n.charter-callout strong {\n font-size: 13.5px;\n font-weight: 600;\n}\n\n.charter-callout > span:not(.charter-kicker, .charter-callout__link) {\n max-width: 72ch;\n color: var(--dsw-alias-label-secondary, #777);\n font-size: 11.5px;\n line-height: 1.45;\n}\n\n.charter-callout__link {\n color: var(--charter-brand);\n margin-top: 3px;\n font-size: 10.5px;\n font-weight: 600;\n}\n\n.charter-empty-actions {\n flex-wrap: wrap;\n gap: 7px;\n margin-top: 8px;\n display: flex;\n}\n\n.charter-budgetgrid {\n color: var(--dsw-alias-label-secondary, #777);\n font-variant-numeric: tabular-nums;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 5px 18px;\n margin-top: 10px;\n font-size: 11.5px;\n line-height: 1.5;\n display: grid;\n}\n\n.charter-hint {\n color: var(--dsw-alias-label-tertiary, #999);\n margin: 0;\n font-size: 10.5px;\n}\n\n.charter-messageproposal__form {\n gap: 10px;\n margin-top: 12px;\n display: grid;\n}\n\n.charter-messageproposal__field {\n min-width: 0;\n color: var(--dsw-alias-label-secondary, #777);\n flex-direction: column;\n gap: 5px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-messageproposal__field select, .charter-messageproposal__field input {\n border: 1px solid var(--charter-border);\n width: 100%;\n min-height: 32px;\n color: inherit;\n background: var(--charter-surface-2);\n font: inherit;\n border-radius: 7px;\n outline: 0;\n padding: 0 9px;\n font-size: 12px;\n}\n\n.charter-messageproposal__field select:focus-visible, .charter-messageproposal__field input:focus-visible {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--charter-brand) 32%, transparent);\n}\n\n.charter-messageproposal__kind {\n border: 1px solid var(--charter-border);\n background: var(--charter-surface-2);\n border-radius: 8px;\n gap: 2px;\n width: max-content;\n max-width: 100%;\n padding: 2px;\n display: inline-flex;\n}\n\n.charter-messageproposal__choice {\n min-height: 27px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 6px;\n padding: 0 14px;\n font-size: 12px;\n}\n\n.charter-messageproposal__choice:hover {\n color: var(--dsw-alias-label-primary, inherit);\n background: color-mix(in srgb, var(--charter-surface) 70%, transparent);\n}\n\n.charter-messageproposal__choice.is-active {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface);\n box-shadow: 0 1px 2px color-mix(in srgb, var(--charter-border) 70%, transparent);\n font-weight: 600;\n}\n\n.charter-messageproposal__choice:focus-visible, .charter-messageproposal__textarea:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--charter-brand) 55%, transparent);\n outline-offset: 1px;\n}\n\n.charter-messageproposal__textarea {\n border: 1px solid var(--charter-border);\n width: 100%;\n min-height: 96px;\n color: inherit;\n background: var(--charter-surface-2);\n font: inherit;\n resize: vertical;\n border-radius: 7px;\n outline: 0;\n padding: 9px 10px;\n font-size: 12.5px;\n line-height: 1.55;\n}\n\n.charter-messageproposal__actions {\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 1px;\n display: flex;\n}\n\n.charter-messageproposal__actions .charter-budget {\n margin-right: auto;\n}\n\n@container (width <= 560px) {\n .charter-messageproposal__kind {\n width: 100%;\n }\n\n .charter-messageproposal__choice {\n flex: 1;\n }\n\n .charter-messageproposal__actions {\n justify-content: flex-start;\n }\n\n .charter-messageproposal__actions .charter-budget {\n margin-right: 0;\n }\n}\n\n.charter-validator__form {\n gap: 10px;\n margin-top: 10px;\n display: grid;\n}\n\n.charter-validator__field {\n min-width: 0;\n color: var(--dsw-alias-label-secondary, #777);\n flex-direction: column;\n gap: 5px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-validator__field select, .charter-validator__field input {\n box-sizing: border-box;\n border: 1px solid var(--charter-border);\n width: 100%;\n min-width: 0;\n min-height: 32px;\n color: inherit;\n background: var(--charter-surface-2);\n font: inherit;\n border-radius: 7px;\n outline: 0;\n padding: 0 9px;\n font-size: 12px;\n}\n\n.charter-validator__field select:focus-visible, .charter-validator__field input:focus-visible {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--charter-brand) 32%, transparent);\n}\n\n.charter-validator__row {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 10px 14px;\n display: grid;\n}\n\n.charter-validator__actions {\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n margin-top: 2px;\n display: flex;\n}\n\n.charter-archivecache {\n border: 1px solid var(--charter-border-soft);\n border-radius: var(--charter-radius);\n background: color-mix(in srgb, var(--charter-surface-2) 55%, transparent);\n margin-top: 10px;\n}\n\n.charter-archivecache__head {\n border-bottom: 1px solid var(--charter-border-soft);\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: baseline;\n gap: 4px 10px;\n padding: 9px 11px;\n display: flex;\n}\n\n.charter-archivecache__head strong {\n font-size: 11.5px;\n}\n\n.charter-archivecache__list {\n gap: 2px;\n margin: 0;\n padding: 5px;\n list-style: none;\n display: grid;\n}\n\n.charter-archivecache__item {\n width: 100%;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 1px solid #0000;\n border-radius: 6px;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 4px 10px;\n padding: 7px 8px;\n display: grid;\n}\n\n.charter-archivecache__item:hover {\n border-color: var(--charter-border);\n background: var(--charter-surface);\n}\n\n.charter-archivecache__item.is-active {\n border-color: color-mix(in srgb, var(--charter-brand) 45%, var(--charter-border));\n background: var(--charter-surface);\n}\n\n.charter-archivecache__item:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 1px;\n}\n\n.charter-archivecache__revision {\n font-size: 12px;\n font-weight: 600;\n}\n\n.charter-archivecache__meta {\n color: var(--dsw-alias-label-tertiary, #999);\n font-variant-numeric: tabular-nums;\n font-size: 10.5px;\n}\n\n.charter-archivecache__empty {\n color: var(--dsw-alias-label-tertiary, #999);\n margin: 0;\n padding: 12px 11px;\n font-size: 11px;\n}\n\n@container (width <= 880px) {\n .charter-columns {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-body {\n display: block;\n }\n\n .charter-nav {\n scrollbar-width: thin;\n flex-wrap: wrap;\n gap: 2px;\n margin-bottom: 12px;\n padding: 5px;\n display: flex;\n position: static;\n overflow: visible;\n }\n\n .charter-nav__label {\n display: none;\n }\n\n .charter-nav__item {\n white-space: nowrap;\n flex: none;\n width: auto;\n }\n\n .charter-nav__item.is-active:before {\n width: auto;\n height: 2px;\n inset: auto 8px 2px;\n }\n\n .charter-overview-grid {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-pagehead {\n flex-direction: column;\n align-items: stretch;\n gap: 10px;\n padding: 2px 0 10px;\n }\n\n .charter-mark {\n width: 28px;\n height: 28px;\n }\n\n .charter-headside {\n justify-items: start;\n width: 100%;\n }\n\n .charter-chips {\n justify-content: flex-start;\n }\n\n .charter-meter {\n text-align: left;\n width: 100%;\n max-width: 320px;\n }\n}\n\n@container (width <= 560px) {\n .charter-validator__row {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-shell {\n padding-inline: 12px;\n }\n\n .charter-budgetgrid {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-card {\n padding: 12px;\n }\n\n .charter-cardhead {\n flex-direction: column;\n align-items: stretch;\n gap: 8px;\n }\n\n .charter-cardtools {\n justify-content: space-between;\n }\n\n .charter-item__actions {\n box-shadow: none;\n backdrop-filter: none;\n opacity: 1;\n pointer-events: auto;\n background: none;\n border: 0;\n justify-content: flex-start;\n margin-left: 15px;\n padding: 0;\n position: static;\n }\n\n .charter-actionbar {\n flex-direction: column;\n align-items: stretch;\n }\n\n .charter-actionbar__actions {\n grid-template-columns: 1fr 1fr;\n display: grid;\n }\n\n .charter-actionbar__actions > .charter-actionbar__primary {\n grid-column: 1 / -1;\n }\n}\n\n@media (hover: none) {\n .charter-item__actions {\n box-shadow: none;\n backdrop-filter: none;\n opacity: 1;\n pointer-events: auto;\n background: none;\n border: 0;\n justify-content: flex-start;\n margin-left: 15px;\n padding: 0;\n position: static;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .charter-root *, .charter-root :before, .charter-root :after {\n transition-duration: .01ms !important;\n }\n}\n\n[data-conversation-scroll]:has(.charter-root) > [data-composer-seat]:not(:has([data-approval-key], [data-question-key], [data-plan-review-key])), [data-conversation-scroll]:has(.charter-root) ~ [data-width-handle] {\n display: none;\n}\n\n.charter-disclaimer {\n color: var(--dsw-alias-label-secondary, #666);\n margin: 2px 0 0;\n font-size: 11px;\n line-height: 1.4;\n}\n\n.charter-item.is-staged {\n box-shadow: inset 2px 0 0 var(--dsw-alias-brand-primary, #4b6bfb);\n}\n\n.charter-item__menu {\n position: relative;\n}\n\n.charter-item__menu > summary {\n cursor: pointer;\n list-style: none;\n}\n\n.charter-item__menu > summary::-webkit-details-marker {\n display: none;\n}\n\n.charter-item__menulist {\n z-index: 6;\n border: 1px solid var(--charter-border-soft);\n background: var(--dsw-alias-bg-base, #fff);\n min-width: 168px;\n box-shadow: 0 6px 18px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 14%, transparent);\n border-radius: 8px;\n flex-direction: column;\n padding: 4px;\n display: flex;\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n}\n\n.charter-item__menulist button {\n min-height: 36px;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 6px;\n padding: 6px 10px;\n}\n\n.charter-item__menulist button:hover, .charter-item__menulist button:focus-visible {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f1a);\n}\n\n.charter-historytoggle {\n border: 1px dashed var(--charter-border-soft);\n color: var(--dsw-alias-label-secondary, #666);\n font: inherit;\n cursor: pointer;\n background: none;\n border-radius: 7px;\n align-self: flex-start;\n margin-top: 6px;\n padding: 4px 8px;\n font-size: 12px;\n}\n\n.charter-historytoggle:hover {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-bootstrap__summary {\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n margin: 8px 0;\n display: flex;\n}\n\n.charter-draftfield__meta {\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n display: flex;\n}\n\n.charter-callout--static {\n cursor: default;\n}\n\n.charter-callout__actions {\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 6px;\n display: flex;\n}\n\n.charter-editor__reasonfield {\n color: var(--dsw-alias-label-secondary, #666);\n flex-direction: column;\n gap: 4px;\n font-size: 12px;\n display: flex;\n}\n\n.charter-actionbar__hint {\n color: var(--dsw-alias-label-tertiary, #888);\n margin-top: 2px;\n font-size: 11px;\n display: block;\n}\n\n.charter-item__actions {\n align-items: center;\n gap: 2px;\n}\n\n.charter-recovery__facts, .charter-recovery__preview dl {\n grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n gap: 8px 16px;\n margin: 10px 0;\n padding: 0;\n display: grid;\n}\n\n.charter-recovery__facts > div, .charter-recovery__preview dl > div {\n min-width: 0;\n}\n\n.charter-recovery__facts dt, .charter-recovery__preview dt {\n color: var(--dsw-alias-label-tertiary, #7f7f7fd9);\n text-transform: uppercase;\n letter-spacing: .04em;\n margin: 0;\n font-size: 11px;\n}\n\n.charter-recovery__facts dd, .charter-recovery__preview dd {\n overflow-wrap: anywhere;\n font-variant-numeric: tabular-nums;\n margin: 2px 0 0;\n}\n\n.charter-recovery__actions, .charter-recovery__danger, .charter-recovery__file, .charter-recovery__preview {\n flex-wrap: wrap;\n align-items: center;\n gap: 8px 12px;\n margin-top: 10px;\n display: flex;\n}\n\n.charter-recovery__import {\n margin-top: 12px;\n}\n\n.charter-recovery__import > summary {\n color: var(--dsw-alias-label-primary, inherit);\n cursor: pointer;\n font-size: 11px;\n font-weight: 600;\n line-height: 1.4;\n}\n\n.charter-recovery__import[open] > summary {\n margin-bottom: 4px;\n}\n\n.charter-recovery__file {\n flex-direction: column;\n align-items: flex-start;\n gap: 6px;\n width: 100%;\n margin-top: 8px;\n}\n\n.charter-recovery__file input[type=\"file\"] {\n box-sizing: border-box;\n border: 1px dashed var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n width: 100%;\n max-width: 640px;\n color: inherit;\n font: inherit;\n cursor: pointer;\n padding: 5px 7px;\n font-size: 11.5px;\n}\n\n.charter-recovery__file input[type=\"file\"]::file-selector-button {\n border: 1px solid var(--charter-border);\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface-2);\n font: inherit;\n cursor: pointer;\n border-radius: 5px;\n margin: 0 8px 0 0;\n padding: 3px 9px;\n font-size: 11px;\n}\n\n.charter-recovery__file input[type=\"file\"]:focus-visible, .charter-recovery__actions .charter-button:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 2px;\n}\n\n.charter-recovery__preview {\n border: 1px solid var(--charter-border-soft);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n flex-direction: column;\n align-items: stretch;\n padding: 10px 12px;\n}\n\n.charter-recovery__preview dl {\n margin: 6px 0 0;\n}\n\n.charter-recovery__danger {\n border: 1px solid var(--charter-warn);\n border-radius: var(--charter-radius);\n background: var(--charter-surface-2);\n flex-direction: column;\n align-items: flex-start;\n padding: 10px 12px;\n}\n\n@container (width <= 520px) {\n .charter-recovery__facts, .charter-recovery__preview dl {\n grid-template-columns: 1fr;\n }\n\n .charter-recovery__actions {\n flex-direction: column;\n align-items: stretch;\n }\n}\n\n.charter-bootstrap__group {\n gap: 2px;\n margin-top: 8px;\n display: grid;\n}\n\n.charter-bootstrap__group h4 {\n color: var(--dsw-alias-label-secondary, #777);\n letter-spacing: .03em;\n text-transform: uppercase;\n margin: 6px 0 2px;\n font-size: 10.5px;\n font-weight: 600;\n}\n\n.charter-bootstrap__checklabel, .charter-bootstrap__textlabel {\n color: var(--dsw-alias-label-tertiary, #999);\n font-size: 10px;\n}\n\n.charter-bootstrap__checklabel {\n cursor: pointer;\n flex: none;\n margin-top: 7px;\n}\n\n.charter-bootstrap__textlabel {\n justify-self: start;\n}\n\n.charter-error-details {\n color: var(--dsw-alias-label-secondary, #777);\n margin: 4px 0;\n font-size: 11px;\n}\n\n.charter-error-details summary {\n cursor: pointer;\n}\n\n.charter-error-details pre {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n max-height: 180px;\n color: var(--dsw-alias-label-primary, inherit);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n border-radius: 6px;\n margin: 4px 0 0;\n padding: 6px 8px;\n font-size: 11px;\n overflow: auto;\n}\n\n@media (hover: none) {\n .charter-nav__item:focus .charter-nav__help:after {\n visibility: visible;\n opacity: 1;\n }\n}\n\n@media (width <= 640px), (pointer: coarse) {\n .charter-progress select, .charter-item__menulist button, .charter-preview__view, .charter-actionbar__actions .charter-button, .charter-bootstrap__summary .charter-button, .charter-add__foot .charter-button, .charter-recovery__actions .charter-button, .charter-nav__item {\n min-height: 44px;\n }\n\n .charter-actionbar__actions, .charter-bootstrap__summary, .charter-add__foot, .charter-bootstrap__item {\n flex-wrap: wrap;\n }\n\n .charter-bootstrap__item .charter-draftfield {\n min-width: min(100%, 220px);\n }\n}\n\n.charter-dependency-list {\n gap: 6px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-dependency {\n border: 1px solid var(--charter-border-soft);\n border-radius: 7px;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: baseline;\n gap: 8px;\n padding: 8px 10px;\n display: grid;\n}\n\n.charter-dependency.is-dependency-conflict {\n border-color: var(--charter-danger);\n}\n\n.charter-dependency__key {\n color: var(--charter-brand);\n font-size: 11px;\n font-weight: 700;\n}\n\n.charter-dependency__text {\n overflow-wrap: anywhere;\n min-width: 0;\n}\n\n.charter-dependency__status {\n color: var(--dsw-alias-label-tertiary, inherit);\n font-size: 11px;\n}\n\n.charter-dependency__requires {\n color: var(--dsw-alias-label-tertiary, inherit);\n grid-column: 2 / -1;\n font-size: 11px;\n}\n\n.charter-dependency__select {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n max-width: 100%;\n min-height: 28px;\n color: inherit;\n font: inherit;\n border-radius: 6px;\n grid-column: 2 / -1;\n font-size: 11px;\n}\n\n.charter-batch-list {\n gap: 4px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-batch {\n border-bottom: 1px solid var(--charter-border-soft);\n flex-wrap: wrap;\n gap: 10px;\n padding: 8px 10px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-batch__source {\n font-weight: 600;\n}\n\n.charter-batch__revision, .charter-batch__count {\n color: var(--dsw-alias-label-tertiary, inherit);\n}\n\n.charter-changeset__body {\n color: var(--dsw-alias-label-tertiary, inherit);\n flex-wrap: wrap;\n gap: 12px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-proposal-list {\n gap: 8px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-proposal {\n border: 1px solid var(--charter-border-soft);\n border-radius: 7px;\n gap: 6px;\n padding: 8px 10px;\n display: grid;\n}\n\n.charter-proposal__text {\n overflow-wrap: anywhere;\n margin: 0;\n}\n\n.charter-proposal__meta {\n color: var(--dsw-alias-label-tertiary, inherit);\n font-size: 11px;\n}\n\n.charter-proposal__reason, .charter-proposal__actions {\n grid-column: 1 / -1;\n}\n\n.charter-proposal__reason {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n min-height: 28px;\n color: inherit;\n font: inherit;\n border-radius: 6px;\n padding: 4px 6px;\n font-size: 12px;\n}\n\n.charter-proposal__actions {\n flex-wrap: wrap;\n gap: 8px;\n display: flex;\n}\n\n.charter-timeline {\n gap: 4px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-timeline__row {\n border-bottom: 1px solid var(--charter-border-soft);\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 8px;\n padding: 8px 10px;\n font-size: 12px;\n display: grid;\n}\n\n.charter-timeline__kind, .charter-timeline__state, .charter-timeline__lineage {\n color: var(--dsw-alias-label-tertiary, inherit);\n font-size: 11px;\n}\n\n.charter-timeline__text {\n overflow-wrap: anywhere;\n min-width: 0;\n}\n\n.charter-notice--danger {\n border-color: var(--charter-danger);\n color: var(--charter-danger);\n}\n";
|
|
6
|
+
const __charterCss = ".charter-root {\n --charter-border: var(--dsw-alias-border-l2, #7f7f7f38);\n --charter-border-soft: var(--dsw-alias-border-l1, #7f7f7f24);\n --charter-surface: var(--dsw-alias-bg-layer-1, #7f7f7f0e);\n --charter-surface-2: var(--dsw-alias-bg-layer-2, #7f7f7f16);\n --charter-brand: var(--dsw-alias-brand-primary, #3978d4);\n --charter-brand-fill: var(--dsw-alias-button-primary-fill, #3978d4);\n --charter-brand-fill-hover: var(--dsw-alias-button-primary-hover, var(--charter-brand-fill));\n --charter-brand-label: var(--dsw-alias-label-primary-foreground, #fff);\n --charter-danger: var(--dsw-alias-state-error-primary, #d14343);\n --charter-warn: var(--dsw-alias-state-warn-primary, #b7791f);\n --charter-success: var(--dsw-alias-state-success-primary, #2f8a5b);\n --charter-radius: 10px;\n --charter-ease: var(--ds-ease-in-out, ease-in-out);\n --charter-duration: var(--ds-transition-duration, .18s);\n box-sizing: border-box;\n width: 100%;\n min-height: 100%;\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-bg-base, transparent);\n font-family: var(--dsw-font-family, inherit);\n font-size: var(--dsh-content-font-size, 13px);\n line-height: 1.5;\n overflow-x: hidden;\n container-type: inline-size;\n}\n\n.charter-root *, .charter-root :before, .charter-root :after {\n box-sizing: border-box;\n}\n\n.charter-shell {\n width: 100%;\n max-width: 1100px;\n margin: 0 auto;\n padding: clamp(20px, 3.5vw, 34px) clamp(16px, 3.5vw, 40px) clamp(72px, 12vh, 120px);\n}\n\n.charter-pagehead {\n border-bottom: 1px solid var(--charter-border-soft);\n justify-content: space-between;\n align-items: flex-start;\n gap: 16px;\n margin-bottom: 12px;\n padding: 2px 0 12px;\n display: flex;\n}\n\n.charter-heading {\n align-items: flex-start;\n gap: 10px;\n min-width: 0;\n display: flex;\n}\n\n.charter-heading__copy {\n min-width: 0;\n}\n\n.charter-mark {\n flex: none;\n width: 32px;\n height: 32px;\n margin-top: 1px;\n display: block;\n}\n\n.charter-mark svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.charter-eyebrow, .charter-kicker {\n color: var(--dsw-alias-label-secondary, #777);\n letter-spacing: .075em;\n text-transform: uppercase;\n font-size: 10.5px;\n font-weight: 650;\n line-height: 1.4;\n display: block;\n}\n\n.charter-pagehead h2 {\n letter-spacing: -.01em;\n margin: 0;\n font-size: 20px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.charter-subtitle {\n max-width: 64ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 2px 0 0;\n font-size: 12px;\n line-height: 1.45;\n}\n\n.charter-headside {\n flex: none;\n justify-items: end;\n gap: 7px;\n min-width: 180px;\n display: grid;\n}\n\n.charter-chips {\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: 5px;\n display: flex;\n}\n\n.charter-meter {\n width: min(190px, 30vw);\n color: var(--dsw-alias-label-secondary, #777);\n font-variant-numeric: tabular-nums;\n text-align: right;\n gap: 4px;\n font-size: 10.5px;\n display: grid;\n}\n\n.charter-meter__track {\n background: color-mix(in srgb, var(--dsw-alias-label-secondary, #777) 16%, transparent);\n border-radius: 999px;\n width: 100%;\n height: 3px;\n display: block;\n overflow: hidden;\n}\n\n.charter-meter__fill {\n border-radius: inherit;\n background: var(--charter-brand);\n height: 100%;\n transition: width var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease);\n display: block;\n}\n\n.charter-meter.is-warn {\n color: var(--charter-warn);\n}\n\n.charter-meter.is-warn .charter-meter__fill {\n background: var(--charter-warn);\n}\n\n.charter-meter.is-over {\n color: var(--charter-danger);\n font-weight: 600;\n}\n\n.charter-meter.is-over .charter-meter__fill {\n background: var(--charter-danger);\n}\n\n.charter-areahead {\n border-bottom: 1px solid var(--charter-border-soft);\n margin: 2px 0 12px;\n padding-bottom: 8px;\n}\n\n.charter-areahead h2 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n line-height: 1.3;\n}\n\n.charter-areahead .charter-hint {\n margin: 4px 0 0;\n font-size: 11px;\n line-height: 1.5;\n}\n\n.charter-card {\n border: 1px solid var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n min-width: 0;\n margin-bottom: 12px;\n padding: 14px 16px;\n}\n\n.charter-cardhead {\n justify-content: space-between;\n align-items: flex-start;\n gap: 12px;\n min-width: 0;\n display: flex;\n}\n\n.charter-cardtitle {\n min-width: 0;\n}\n\n.charter-cardtitle h3 {\n margin: 2px 0 0;\n font-size: 14px;\n font-weight: 600;\n line-height: 1.45;\n}\n\n.charter-fieldlabel {\n color: var(--dsw-alias-label-primary, inherit);\n font-size: 11px;\n font-weight: 600;\n line-height: 1.4;\n display: block;\n}\n\n.charter-card > .charter-hint {\n margin: 6px 0 0;\n font-size: 11px;\n line-height: 1.5;\n}\n\n.charter-cardtools {\n flex: none;\n align-items: center;\n gap: 8px;\n display: flex;\n}\n\n.charter-count {\n border: 1px solid var(--charter-border);\n min-width: 22px;\n height: 22px;\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n font-variant-numeric: tabular-nums;\n border-radius: 999px;\n justify-content: center;\n align-items: center;\n padding: 0 7px;\n font-size: 11px;\n font-weight: 600;\n display: inline-flex;\n}\n\n.charter-objective h3 {\n max-width: 68ch;\n font-size: 15px;\n font-weight: 550;\n line-height: 1.55;\n}\n\n.charter-original {\n max-width: 72ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 8px 0 0;\n font-size: 11.5px;\n line-height: 1.5;\n}\n\n.charter-copy {\n max-width: 72ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 8px 0 0;\n font-size: 12px;\n line-height: 1.55;\n}\n\n.charter-source {\n border: 1px solid var(--charter-border-soft);\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n border-radius: 999px;\n margin-top: 6px;\n padding: 1px 7px;\n font-size: 10.5px;\n display: inline-block;\n}\n\n.charter-columns {\n grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);\n align-items: start;\n gap: 12px;\n display: grid;\n}\n\n.charter-columns > .charter-card {\n margin-bottom: 0;\n}\n\n.charter-tag {\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n white-space: nowrap;\n border: 1px solid #0000;\n border-radius: 999px;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n font-size: 10.5px;\n line-height: 1.6;\n display: inline-flex;\n}\n\n.charter-tag--info {\n border-color: color-mix(in srgb, var(--charter-brand) 28%, transparent);\n color: var(--charter-brand);\n background: color-mix(in srgb, var(--charter-brand) 8%, transparent);\n}\n\n.charter-tag--success {\n border-color: color-mix(in srgb, var(--charter-success) 26%, transparent);\n color: var(--charter-success);\n background: color-mix(in srgb, var(--charter-success) 8%, transparent);\n}\n\n.charter-tag--warning {\n border-color: color-mix(in srgb, var(--charter-warn) 28%, transparent);\n color: var(--charter-warn);\n background: color-mix(in srgb, var(--charter-warn) 8%, transparent);\n}\n\n.charter-tag--danger {\n border-color: color-mix(in srgb, var(--charter-danger) 28%, transparent);\n color: var(--charter-danger);\n background: color-mix(in srgb, var(--charter-danger) 8%, transparent);\n}\n\n.charter-notice {\n border: 1px solid var(--charter-border);\n color: var(--dsw-alias-label-secondary, #777);\n background: var(--charter-surface-2);\n border-radius: 8px;\n margin-bottom: 12px;\n padding: 8px 11px;\n font-size: 12px;\n line-height: 1.5;\n}\n\n.charter-notice--warning {\n border-color: color-mix(in srgb, var(--charter-warn) 30%, var(--charter-border));\n background: color-mix(in srgb, var(--charter-warn) 7%, var(--charter-surface));\n}\n\n.charter-notice--danger {\n border-color: color-mix(in srgb, var(--charter-danger) 32%, var(--charter-border));\n color: var(--charter-danger);\n background: color-mix(in srgb, var(--charter-danger) 7%, var(--charter-surface));\n}\n\n.charter-list {\n flex-direction: column;\n margin-top: 8px;\n display: flex;\n}\n\n.charter-item {\n transition: background-color var(--charter-duration) var(--charter-ease);\n border-radius: 7px;\n flex-direction: column;\n gap: 2px;\n margin: 0 -6px;\n padding: 9px 6px;\n display: flex;\n position: relative;\n}\n\n.charter-item + .charter-item {\n border-top: 1px solid var(--charter-border-soft);\n}\n\n.charter-item:hover {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-item:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: -2px;\n}\n\n.charter-item__hint {\n color: var(--dsw-alias-label-tertiary, #999);\n font-size: 10.5px;\n line-height: 1.45;\n}\n\n.charter-item--inactive {\n opacity: .72;\n}\n\n.charter-item__main {\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n display: flex;\n}\n\n.charter-item__copy {\n flex: 1;\n gap: 3px;\n min-width: 0;\n display: grid;\n}\n\n.charter-item__text {\n overflow-wrap: anywhere;\n color: var(--dsw-alias-label-primary, inherit);\n font-size: 12.5px;\n line-height: 1.55;\n}\n\n.charter-item__meta {\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n display: flex;\n}\n\n.charter-item__bytes {\n color: var(--dsw-alias-label-tertiary, #999);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n font-size: 10px;\n}\n\n.charter-item__actions {\n z-index: 2;\n border: 1px solid var(--charter-border-soft);\n background: color-mix(in srgb, var(--dsw-alias-bg-base, #fff) 92%, transparent);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 7%, transparent);\n backdrop-filter: blur(5px);\n opacity: 0;\n pointer-events: none;\n transition: opacity var(--charter-duration) var(--charter-ease);\n border-radius: 7px;\n flex-wrap: nowrap;\n gap: 1px;\n padding: 2px 4px;\n display: flex;\n position: absolute;\n top: 4px;\n right: 4px;\n}\n\n.charter-item:hover .charter-item__actions, .charter-item:focus-within .charter-item__actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n.charter-state-mark {\n background: var(--dsw-alias-label-tertiary, #999);\n border-radius: 50%;\n flex: none;\n width: 7px;\n height: 7px;\n margin-top: 6px;\n display: block;\n}\n\n.charter-state-mark--done {\n background: var(--charter-success);\n}\n\n.charter-state-mark--warning {\n background: var(--charter-warn);\n}\n\n.charter-state-mark--ongoing {\n background: var(--charter-brand);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--charter-brand) 14%, transparent);\n}\n\n.charter-progress {\n color: var(--dsw-alias-label-secondary, #777);\n align-items: center;\n gap: 6px;\n margin: 5px 0 0 15px;\n font-size: 10.5px;\n display: flex;\n}\n\n.charter-progress select {\n border: 1px solid var(--charter-border);\n height: auto;\n min-height: 23px;\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface-2);\n font: inherit;\n border-radius: 5px;\n padding: 0 5px;\n font-size: 10.5px;\n}\n\n.charter-empty {\n border: 1px dashed var(--charter-border);\n color: var(--dsw-alias-label-tertiary, #999);\n text-align: center;\n border-radius: 7px;\n margin: 4px 0;\n padding: 12px 10px;\n font-size: 11.5px;\n}\n\n.charter-add {\n border: 1px solid var(--charter-border);\n background: var(--charter-surface-2);\n transition: border-color var(--charter-duration) var(--charter-ease), box-shadow var(--charter-duration) var(--charter-ease);\n border-radius: 8px;\n gap: 3px;\n margin-top: 9px;\n padding: 7px 8px;\n display: grid;\n}\n\n.charter-add:focus-within {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--charter-brand) 32%, transparent);\n}\n\n.charter-add.is-over {\n border-color: color-mix(in srgb, var(--charter-danger) 55%, var(--charter-border));\n}\n\n.charter-add textarea {\n width: 100%;\n min-height: 34px;\n color: inherit;\n font: inherit;\n resize: vertical;\n background: none;\n border: 0;\n outline: 0;\n padding: 2px 3px;\n font-size: 12.5px;\n line-height: 1.5;\n}\n\n.charter-add textarea::placeholder {\n color: var(--dsw-alias-label-tertiary, #999);\n}\n\n.charter-add__foot {\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n display: flex;\n}\n\n.charter-budget {\n color: var(--dsw-alias-label-tertiary, #999);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n font-size: 10.5px;\n line-height: 1.4;\n}\n\n.charter-budget.is-over {\n color: var(--charter-danger);\n font-weight: 600;\n}\n\n.charter-button {\n min-height: 27px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n transition: color var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease), border-color var(--charter-duration) var(--charter-ease);\n background: none;\n border: 1px solid #0000;\n border-radius: 7px;\n padding: 3px 9px;\n font-size: 11.5px;\n font-weight: 550;\n line-height: 1.4;\n}\n\n.charter-button:hover:not(:disabled) {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f1a);\n}\n\n.charter-button:focus-visible, .charter-progress select:focus-visible, .charter-bootstrap textarea:focus-visible, .charter-editor__input:focus-visible, .charter-editor__reason:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 1px;\n}\n\n.charter-button:disabled {\n cursor: not-allowed;\n opacity: .42;\n}\n\n.charter-button--outline {\n border-color: var(--charter-border);\n background: var(--charter-surface-2);\n}\n\n.charter-button--primary {\n color: var(--charter-brand-label);\n background: var(--charter-brand-fill);\n border-color: #0000;\n}\n\n.charter-button--primary:hover:not(:disabled) {\n color: var(--charter-brand-label);\n background: var(--charter-brand-fill-hover);\n}\n\n.charter-button--primary:disabled {\n border-color: var(--charter-border);\n color: var(--dsw-alias-label-tertiary, #999);\n background: var(--charter-surface-2);\n opacity: 1;\n}\n\n.charter-inlineeditor {\n border-top: 1px solid var(--charter-border-soft);\n margin-top: 12px;\n padding-top: 12px;\n}\n\n.charter-editor__input, .charter-editor__reason {\n border: 1px solid var(--charter-border);\n width: 100%;\n color: inherit;\n background: var(--dsw-alias-bg-base, transparent);\n font: inherit;\n resize: vertical;\n border-radius: 8px;\n outline: 0;\n padding: 8px 10px;\n font-size: 12.5px;\n line-height: 1.55;\n}\n\n.charter-editor__input {\n min-height: 74px;\n}\n\n.charter-editor__reason {\n min-height: 34px;\n margin-top: 6px;\n}\n\n.charter-editor__actions {\n justify-content: flex-end;\n align-items: center;\n gap: 7px;\n margin-top: 8px;\n display: flex;\n}\n\n.charter-editor__actions .charter-budget {\n margin-right: auto;\n}\n\n.charter-editor__hint {\n color: var(--dsw-alias-label-tertiary, #999);\n margin-top: 5px;\n font-size: 10.5px;\n display: block;\n}\n\n.charter-bootstrap {\n border-color: color-mix(in srgb, var(--charter-brand) 36%, var(--charter-border));\n background: linear-gradient(180deg, color-mix(in srgb, var(--charter-brand) 5%, var(--charter-surface)), var(--charter-surface));\n}\n\n.charter-bootstrap__field, .charter-bootstrap__group {\n gap: 6px;\n margin-top: 12px;\n display: grid;\n}\n\n.charter-bootstrap__field > span:first-child, .charter-bootstrap__group > .charter-kicker {\n color: var(--dsw-alias-label-primary, inherit);\n letter-spacing: 0;\n text-transform: none;\n font-size: 11px;\n font-weight: 600;\n}\n\n.charter-bootstrap textarea {\n border: 1px solid var(--charter-border);\n width: 100%;\n min-height: 46px;\n color: inherit;\n background: var(--dsw-alias-bg-base, transparent);\n font: inherit;\n resize: vertical;\n border-radius: 8px;\n outline: 0;\n padding: 7px 9px;\n font-size: 12px;\n line-height: 1.5;\n}\n\n.charter-bootstrap__item {\n transition: background-color var(--charter-duration) var(--charter-ease);\n border-radius: 7px;\n align-items: flex-start;\n gap: 8px;\n padding: 5px 6px;\n display: flex;\n}\n\n.charter-bootstrap__item:hover {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f12);\n}\n\n.charter-bootstrap__item input[type=\"checkbox\"] {\n accent-color: var(--charter-brand);\n flex: none;\n margin-top: 9px;\n}\n\n.charter-draftfield {\n flex: 1;\n gap: 2px;\n min-width: 0;\n display: grid;\n}\n\n.charter-draftfield .charter-budget {\n text-align: right;\n}\n\n.charter-bootstrap__actions {\n border-top: 1px solid var(--charter-border-soft);\n justify-content: flex-end;\n gap: 7px;\n margin-top: 12px;\n padding-top: 10px;\n display: flex;\n}\n\n.charter-empty-state {\n border: 1px dashed var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n gap: 3px;\n margin-bottom: 12px;\n padding: 14px 16px;\n display: grid;\n}\n\n.charter-empty-state h3 {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n}\n\n.charter-empty-state p {\n max-width: 68ch;\n color: var(--dsw-alias-label-secondary, #777);\n margin: 0;\n font-size: 12px;\n line-height: 1.5;\n}\n\n.charter-centered {\n min-height: 260px;\n color: var(--dsw-alias-label-secondary, #777);\n text-align: center;\n justify-content: center;\n align-items: center;\n gap: 9px;\n display: flex;\n}\n\n.charter-centered .charter-button {\n border-color: var(--charter-border);\n}\n\n.charter-preview {\n margin-top: 12px;\n}\n\n.charter-preview__meta {\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n margin-bottom: 8px;\n display: flex;\n}\n\n.charter-preview__toolbar {\n flex-wrap: wrap;\n align-items: center;\n gap: 5px;\n margin: 0 0 8px;\n display: flex;\n}\n\n.charter-preview__view {\n border: 1px solid var(--charter-border);\n min-height: 26px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n cursor: pointer;\n background: none;\n border-radius: 6px;\n padding: 3px 8px;\n font-size: 10.5px;\n}\n\n.charter-preview__view:hover {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-preview__view.is-active {\n color: var(--charter-brand);\n border-color: color-mix(in srgb, var(--charter-brand) 45%, var(--charter-border));\n background: color-mix(in srgb, var(--charter-brand) 8%, transparent);\n font-weight: 600;\n}\n\n.charter-preview__view:disabled {\n opacity: .45;\n cursor: default;\n}\n\n.charter-preview pre {\n border: 1px solid var(--charter-border-soft);\n max-height: 300px;\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface-2);\n font-family: var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, monospace);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n border-radius: 8px;\n margin: 0;\n padding: 10px 12px;\n font-size: 11.5px;\n line-height: 1.55;\n overflow: auto;\n}\n\n.charter-actionbar {\n z-index: 4;\n border: 1px solid var(--charter-border);\n border-radius: var(--charter-radius);\n background: color-mix(in srgb, var(--dsw-alias-bg-base, #fff) 88%, transparent);\n backdrop-filter: blur(8px);\n box-shadow: 0 2px 10px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 4%, transparent);\n justify-content: space-between;\n align-items: center;\n gap: 14px;\n margin: 0 0 12px;\n padding: 8px 11px;\n display: flex;\n position: sticky;\n top: 0;\n}\n\n.charter-actionbar__status {\n min-width: 0;\n color: var(--dsw-alias-label-secondary, #777);\n align-items: center;\n gap: 8px;\n font-size: 11.5px;\n display: flex;\n}\n\n.charter-actionbar__status strong {\n color: var(--dsw-alias-label-primary, inherit);\n font-weight: 550;\n display: block;\n}\n\n.charter-actionbar__message {\n max-width: 46ch;\n color: var(--dsw-alias-label-secondary, #777);\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 10.5px;\n display: block;\n overflow: hidden;\n}\n\n.charter-actionbar__actions {\n flex: none;\n align-items: center;\n gap: 5px;\n display: flex;\n}\n\n.charter-dot {\n background: var(--dsw-alias-label-tertiary, #999);\n border-radius: 50%;\n flex: none;\n width: 7px;\n height: 7px;\n display: block;\n}\n\n.charter-dot.is-staged {\n background: var(--charter-brand);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--charter-brand) 13%, transparent);\n}\n\n.charter-body {\n grid-template-columns: 172px minmax(0, 1fr);\n align-items: start;\n gap: 18px;\n display: grid;\n}\n\n.charter-nav {\n border: 1px solid var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n gap: 2px;\n padding: 6px;\n display: grid;\n position: sticky;\n top: 60px;\n}\n\n.charter-nav__label {\n color: var(--dsw-alias-label-tertiary, #999);\n letter-spacing: .08em;\n text-transform: uppercase;\n padding: 3px 8px 5px;\n font-size: 10px;\n font-weight: 650;\n}\n\n.charter-nav__item {\n width: 100%;\n min-height: 30px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: color var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease);\n background: none;\n border: 0;\n border-radius: 7px;\n align-items: center;\n gap: 6px;\n padding: 5px 8px;\n font-size: 12.5px;\n display: flex;\n position: relative;\n}\n\n.charter-nav__item:hover {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-nav__item.is-active {\n color: var(--dsw-alias-label-primary, inherit);\n background: color-mix(in srgb, var(--charter-brand) 9%, var(--charter-surface-2));\n font-weight: 600;\n}\n\n.charter-nav__item.is-active:before {\n content: \"\";\n background: var(--charter-brand);\n border-radius: 2px;\n width: 2px;\n position: absolute;\n top: 7px;\n bottom: 7px;\n left: 0;\n}\n\n.charter-sr-only {\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n width: 1px;\n height: 1px;\n padding: 0;\n position: absolute;\n overflow: hidden;\n}\n\n.charter-nav__text {\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n overflow: hidden;\n}\n\n.charter-nav__badge {\n min-width: 18px;\n color: var(--dsw-alias-label-tertiary, #999);\n background: var(--charter-surface-2);\n font-variant-numeric: tabular-nums;\n text-align: center;\n border-radius: 999px;\n padding: 0 5px;\n font-size: 10px;\n line-height: 17px;\n}\n\n.charter-nav__item.is-active .charter-nav__badge {\n color: var(--charter-brand);\n background: color-mix(in srgb, var(--charter-brand) 10%, transparent);\n}\n\n.charter-nav__dot {\n background: var(--charter-brand);\n border-radius: 50%;\n width: 5px;\n height: 5px;\n}\n\n.charter-nav__badge + .charter-nav__dot {\n margin-left: 0;\n}\n\n.charter-nav__help {\n border: 1px solid var(--charter-border);\n width: 16px;\n height: 16px;\n color: var(--dsw-alias-label-tertiary, #999);\n cursor: help;\n border-radius: 50%;\n flex: 0 0 16px;\n justify-content: center;\n align-items: center;\n margin-left: auto;\n font-size: 10px;\n font-weight: 700;\n line-height: 1;\n display: inline-flex;\n position: relative;\n}\n\n.charter-nav__help:hover, .charter-nav__item:focus-visible .charter-nav__help {\n color: var(--charter-brand);\n border-color: var(--charter-brand);\n}\n\n.charter-nav__help:before {\n content: \"?\";\n}\n\n.charter-nav__help:after {\n content: attr(data-tooltip);\n z-index: 30;\n border: 1px solid var(--charter-border);\n width: min(160px, 70vw);\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--dsw-alias-bg-base, #fff);\n box-shadow: 0 6px 18px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 16%, transparent);\n text-align: left;\n white-space: normal;\n visibility: hidden;\n opacity: 0;\n pointer-events: none;\n border-radius: 7px;\n padding: 7px 9px;\n font-size: 10.5px;\n font-weight: 400;\n line-height: 1.45;\n transition: opacity .12s;\n position: absolute;\n top: calc(100% + 6px);\n right: 0;\n}\n\n.charter-nav__help:hover:after, .charter-nav__item:focus-visible .charter-nav__help:after {\n visibility: visible;\n opacity: 1;\n}\n\n.charter-content {\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n display: flex;\n}\n\n.charter-content > * {\n margin-bottom: 0;\n}\n\n.charter-overview-grid {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 12px;\n display: grid;\n}\n\n.charter-statcard {\n min-width: 0;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color var(--charter-duration) var(--charter-ease), background-color var(--charter-duration) var(--charter-ease);\n gap: 2px;\n display: grid;\n}\n\n.charter-statcard:hover {\n border-color: color-mix(in srgb, var(--charter-brand) 30%, var(--charter-border));\n background: color-mix(in srgb, var(--charter-brand) 3%, var(--charter-surface));\n}\n\n.charter-statcard__value {\n font-variant-numeric: tabular-nums;\n margin-top: 2px;\n font-size: 22px;\n font-weight: 600;\n line-height: 1.2;\n}\n\n.charter-statcard__label {\n color: var(--dsw-alias-label-secondary, #777);\n font-size: 11px;\n}\n\n.charter-statcard__list {\n color: var(--dsw-alias-label-secondary, #777);\n gap: 2px;\n margin-top: 6px;\n font-size: 11.5px;\n line-height: 1.4;\n display: grid;\n}\n\n.charter-statcard__list > span {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.charter-statcard__list em {\n color: var(--dsw-alias-label-tertiary, #999);\n margin-left: 6px;\n font-size: 10px;\n font-style: normal;\n}\n\n.charter-statcard__link {\n color: var(--charter-brand);\n margin-top: 6px;\n font-size: 10.5px;\n font-weight: 600;\n}\n\n.charter-callout {\n border: 1px solid color-mix(in srgb, var(--charter-brand) 34%, var(--charter-border));\n border-radius: var(--charter-radius);\n width: 100%;\n color: inherit;\n background: linear-gradient(180deg, color-mix(in srgb, var(--charter-brand) 5%, var(--charter-surface)), var(--charter-surface));\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color var(--charter-duration) var(--charter-ease);\n gap: 2px;\n padding: 12px 14px;\n display: grid;\n}\n\n.charter-callout:hover {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n}\n\n.charter-callout strong {\n font-size: 13.5px;\n font-weight: 600;\n}\n\n.charter-callout > span:not(.charter-kicker, .charter-callout__link) {\n max-width: 72ch;\n color: var(--dsw-alias-label-secondary, #777);\n font-size: 11.5px;\n line-height: 1.45;\n}\n\n.charter-callout__link {\n color: var(--charter-brand);\n margin-top: 3px;\n font-size: 10.5px;\n font-weight: 600;\n}\n\n.charter-empty-actions {\n flex-wrap: wrap;\n gap: 7px;\n margin-top: 8px;\n display: flex;\n}\n\n.charter-budgetgrid {\n color: var(--dsw-alias-label-secondary, #777);\n font-variant-numeric: tabular-nums;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 5px 18px;\n margin-top: 10px;\n font-size: 11.5px;\n line-height: 1.5;\n display: grid;\n}\n\n.charter-hint {\n color: var(--dsw-alias-label-tertiary, #999);\n margin: 0;\n font-size: 10.5px;\n}\n\n.charter-messageproposal__form {\n gap: 10px;\n margin-top: 12px;\n display: grid;\n}\n\n.charter-messageproposal__field {\n min-width: 0;\n color: var(--dsw-alias-label-secondary, #777);\n flex-direction: column;\n gap: 5px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-messageproposal__field select, .charter-messageproposal__field input {\n box-sizing: border-box;\n border: 1px solid var(--charter-border);\n width: 100%;\n min-width: 0;\n max-width: 100%;\n min-height: 32px;\n color: inherit;\n background: var(--charter-surface-2);\n font: inherit;\n text-overflow: ellipsis;\n white-space: nowrap;\n border-radius: 7px;\n outline: 0;\n padding: 0 9px;\n font-size: 12px;\n overflow: hidden;\n}\n\n.charter-messageproposal__field select:focus-visible, .charter-messageproposal__field input:focus-visible {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--charter-brand) 32%, transparent);\n}\n\n.charter-messageproposal__picker {\n min-width: 0;\n position: relative;\n}\n\n.charter-messageproposal__trigger {\n box-sizing: border-box;\n border: 1px solid var(--charter-border);\n width: 100%;\n min-width: 0;\n max-width: 100%;\n min-height: 32px;\n color: inherit;\n background: var(--charter-surface-2);\n font: inherit;\n text-align: left;\n cursor: pointer;\n border-radius: 7px;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n padding: 0 9px;\n font-size: 12px;\n display: flex;\n}\n\n.charter-messageproposal__trigger > span:first-child {\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n overflow: hidden;\n}\n\n.charter-messageproposal__trigger:disabled {\n opacity: .55;\n cursor: default;\n}\n\n.charter-messageproposal__trigger:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 1px;\n}\n\n.charter-messageproposal__chevron {\n color: var(--dsw-alias-label-tertiary, #999);\n flex: none;\n}\n\n.charter-messageproposal__menu {\n z-index: 30;\n border: 1px solid var(--charter-border);\n background: var(--charter-surface);\n border-radius: 8px;\n max-height: 240px;\n padding: 4px;\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n right: 0;\n overflow-y: auto;\n box-shadow: 0 8px 24px #00000038;\n}\n\n.charter-messageproposal__option {\n width: 100%;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 6px;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 8px;\n padding: 7px 8px;\n font-size: 11.5px;\n display: grid;\n}\n\n.charter-messageproposal__option:hover, .charter-messageproposal__option.is-selected {\n background: var(--charter-surface-2);\n}\n\n.charter-messageproposal__option:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: -1px;\n}\n\n.charter-messageproposal__optionseq {\n color: var(--dsw-alias-label-tertiary, #999);\n font-variant-numeric: tabular-nums;\n}\n\n.charter-messageproposal__optiontext {\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n overflow: hidden;\n}\n\n.charter-messageproposal__kind {\n border: 1px solid var(--charter-border);\n background: var(--charter-surface-2);\n border-radius: 8px;\n gap: 2px;\n width: max-content;\n max-width: 100%;\n padding: 2px;\n display: inline-flex;\n}\n\n.charter-messageproposal__choice {\n min-height: 27px;\n color: var(--dsw-alias-label-secondary, #777);\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 6px;\n padding: 0 14px;\n font-size: 12px;\n}\n\n.charter-messageproposal__choice:hover {\n color: var(--dsw-alias-label-primary, inherit);\n background: color-mix(in srgb, var(--charter-surface) 70%, transparent);\n}\n\n.charter-messageproposal__choice.is-active {\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface);\n box-shadow: 0 1px 2px color-mix(in srgb, var(--charter-border) 70%, transparent);\n font-weight: 600;\n}\n\n.charter-messageproposal__choice:focus-visible, .charter-messageproposal__textarea:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--charter-brand) 55%, transparent);\n outline-offset: 1px;\n}\n\n.charter-messageproposal__textarea {\n border: 1px solid var(--charter-border);\n width: 100%;\n min-height: 96px;\n color: inherit;\n background: var(--charter-surface-2);\n font: inherit;\n resize: vertical;\n border-radius: 7px;\n outline: 0;\n padding: 9px 10px;\n font-size: 12.5px;\n line-height: 1.55;\n}\n\n.charter-messageproposal__actions {\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 1px;\n display: flex;\n}\n\n.charter-messageproposal__actions .charter-budget {\n margin-right: auto;\n}\n\n@container (width <= 560px) {\n .charter-messageproposal__kind {\n width: 100%;\n }\n\n .charter-messageproposal__choice {\n flex: 1;\n }\n\n .charter-messageproposal__actions {\n justify-content: flex-start;\n }\n\n .charter-messageproposal__actions .charter-budget {\n margin-right: 0;\n }\n}\n\n.charter-validator__form {\n gap: 10px;\n margin-top: 10px;\n display: grid;\n}\n\n.charter-validator__field {\n min-width: 0;\n color: var(--dsw-alias-label-secondary, #777);\n flex-direction: column;\n gap: 5px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-validator__field select, .charter-validator__field input {\n box-sizing: border-box;\n text-overflow: ellipsis;\n white-space: nowrap;\n border: 1px solid var(--charter-border);\n width: 100%;\n min-width: 0;\n max-width: 100%;\n min-height: 32px;\n color: inherit;\n background: var(--charter-surface-2);\n font: inherit;\n border-radius: 7px;\n outline: 0;\n padding: 0 9px;\n font-size: 12px;\n overflow: hidden;\n}\n\n.charter-validator__field select:focus-visible, .charter-validator__field input:focus-visible {\n border-color: color-mix(in srgb, var(--charter-brand) 55%, var(--charter-border));\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--charter-brand) 32%, transparent);\n}\n\n.charter-validator__row {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 10px 14px;\n display: grid;\n}\n\n.charter-validator__actions {\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n margin-top: 2px;\n display: flex;\n}\n\n.charter-archivecache {\n border: 1px solid var(--charter-border-soft);\n border-radius: var(--charter-radius);\n background: color-mix(in srgb, var(--charter-surface-2) 55%, transparent);\n margin-top: 10px;\n}\n\n.charter-archivecache__head {\n border-bottom: 1px solid var(--charter-border-soft);\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: baseline;\n gap: 4px 10px;\n padding: 9px 11px;\n display: flex;\n}\n\n.charter-archivecache__head strong {\n font-size: 11.5px;\n}\n\n.charter-archivecache__list {\n gap: 2px;\n margin: 0;\n padding: 5px;\n list-style: none;\n display: grid;\n}\n\n.charter-archivecache__item {\n width: 100%;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 1px solid #0000;\n border-radius: 6px;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 4px 10px;\n padding: 7px 8px;\n display: grid;\n}\n\n.charter-archivecache__item:hover {\n border-color: var(--charter-border);\n background: var(--charter-surface);\n}\n\n.charter-archivecache__item.is-active {\n border-color: color-mix(in srgb, var(--charter-brand) 45%, var(--charter-border));\n background: var(--charter-surface);\n}\n\n.charter-archivecache__item:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 1px;\n}\n\n.charter-archivecache__revision {\n font-size: 12px;\n font-weight: 600;\n}\n\n.charter-archivecache__meta {\n color: var(--dsw-alias-label-tertiary, #999);\n font-variant-numeric: tabular-nums;\n font-size: 10.5px;\n}\n\n.charter-archivecache__empty {\n color: var(--dsw-alias-label-tertiary, #999);\n margin: 0;\n padding: 12px 11px;\n font-size: 11px;\n}\n\n@container (width <= 880px) {\n .charter-columns {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-body {\n display: block;\n }\n\n .charter-nav {\n scrollbar-width: thin;\n flex-wrap: wrap;\n gap: 2px;\n margin-bottom: 12px;\n padding: 5px;\n display: flex;\n position: static;\n overflow: visible;\n }\n\n .charter-nav__label {\n display: none;\n }\n\n .charter-nav__item {\n white-space: nowrap;\n flex: none;\n width: auto;\n }\n\n .charter-nav__item.is-active:before {\n width: auto;\n height: 2px;\n inset: auto 8px 2px;\n }\n\n .charter-overview-grid {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-pagehead {\n flex-direction: column;\n align-items: stretch;\n gap: 10px;\n padding: 2px 0 10px;\n }\n\n .charter-mark {\n width: 28px;\n height: 28px;\n }\n\n .charter-headside {\n justify-items: start;\n width: 100%;\n }\n\n .charter-chips {\n justify-content: flex-start;\n }\n\n .charter-meter {\n text-align: left;\n width: 100%;\n max-width: 320px;\n }\n}\n\n@container (width <= 560px) {\n .charter-validator__row {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-shell {\n padding-inline: 12px;\n }\n\n .charter-budgetgrid {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .charter-card {\n padding: 12px;\n }\n\n .charter-cardhead {\n flex-direction: column;\n align-items: stretch;\n gap: 8px;\n }\n\n .charter-cardtools {\n justify-content: space-between;\n }\n\n .charter-item__actions {\n box-shadow: none;\n backdrop-filter: none;\n opacity: 1;\n pointer-events: auto;\n background: none;\n border: 0;\n justify-content: flex-start;\n margin-left: 15px;\n padding: 0;\n position: static;\n }\n\n .charter-actionbar {\n flex-direction: column;\n align-items: stretch;\n }\n\n .charter-actionbar__actions {\n grid-template-columns: 1fr 1fr;\n display: grid;\n }\n\n .charter-actionbar__actions > .charter-actionbar__primary {\n grid-column: 1 / -1;\n }\n}\n\n@media (hover: none) {\n .charter-item__actions {\n box-shadow: none;\n backdrop-filter: none;\n opacity: 1;\n pointer-events: auto;\n background: none;\n border: 0;\n justify-content: flex-start;\n margin-left: 15px;\n padding: 0;\n position: static;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .charter-root *, .charter-root :before, .charter-root :after {\n transition-duration: .01ms !important;\n }\n}\n\n[data-conversation-scroll]:has(.charter-root) > [data-composer-seat]:not(:has([data-approval-key], [data-question-key], [data-plan-review-key])), [data-conversation-scroll]:has(.charter-root) ~ [data-width-handle] {\n display: none;\n}\n\n.charter-disclaimer {\n color: var(--dsw-alias-label-secondary, #666);\n margin: 2px 0 0;\n font-size: 11px;\n line-height: 1.4;\n}\n\n.charter-item.is-staged {\n box-shadow: inset 2px 0 0 var(--dsw-alias-brand-primary, #4b6bfb);\n}\n\n.charter-item__menu {\n position: relative;\n}\n\n.charter-item__menu > summary {\n cursor: pointer;\n list-style: none;\n}\n\n.charter-item__menu > summary::-webkit-details-marker {\n display: none;\n}\n\n.charter-item__menulist {\n z-index: 6;\n border: 1px solid var(--charter-border-soft);\n background: var(--dsw-alias-bg-base, #fff);\n min-width: 168px;\n box-shadow: 0 6px 18px color-mix(in srgb, var(--dsw-alias-label-primary, #000) 14%, transparent);\n border-radius: 8px;\n flex-direction: column;\n padding: 4px;\n display: flex;\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n}\n\n.charter-item__menulist button {\n min-height: 36px;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 6px;\n padding: 6px 10px;\n}\n\n.charter-item__menulist button:hover, .charter-item__menulist button:focus-visible {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f1a);\n}\n\n.charter-historytoggle {\n border: 1px dashed var(--charter-border-soft);\n color: var(--dsw-alias-label-secondary, #666);\n font: inherit;\n cursor: pointer;\n background: none;\n border-radius: 7px;\n align-self: flex-start;\n margin-top: 6px;\n padding: 4px 8px;\n font-size: 12px;\n}\n\n.charter-historytoggle:hover {\n background: var(--dsw-alias-interactive-bg-hover, #7f7f7f14);\n}\n\n.charter-bootstrap__summary {\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n margin: 8px 0;\n display: flex;\n}\n\n.charter-draftfield__meta {\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n display: flex;\n}\n\n.charter-callout--static {\n cursor: default;\n}\n\n.charter-callout__actions {\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 6px;\n display: flex;\n}\n\n.charter-editor__reasonfield {\n color: var(--dsw-alias-label-secondary, #666);\n flex-direction: column;\n gap: 4px;\n font-size: 12px;\n display: flex;\n}\n\n.charter-actionbar__hint {\n color: var(--dsw-alias-label-tertiary, #888);\n margin-top: 2px;\n font-size: 11px;\n display: block;\n}\n\n.charter-item__actions {\n align-items: center;\n gap: 2px;\n}\n\n.charter-recovery__facts, .charter-recovery__preview dl {\n grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n gap: 8px 16px;\n margin: 10px 0;\n padding: 0;\n display: grid;\n}\n\n.charter-recovery__facts > div, .charter-recovery__preview dl > div {\n min-width: 0;\n}\n\n.charter-recovery__facts dt, .charter-recovery__preview dt {\n color: var(--dsw-alias-label-tertiary, #7f7f7fd9);\n text-transform: uppercase;\n letter-spacing: .04em;\n margin: 0;\n font-size: 11px;\n}\n\n.charter-recovery__facts dd, .charter-recovery__preview dd {\n overflow-wrap: anywhere;\n font-variant-numeric: tabular-nums;\n margin: 2px 0 0;\n}\n\n.charter-recovery__actions, .charter-recovery__danger, .charter-recovery__file, .charter-recovery__preview {\n flex-wrap: wrap;\n align-items: center;\n gap: 8px 12px;\n margin-top: 10px;\n display: flex;\n}\n\n.charter-recovery__import {\n margin-top: 12px;\n}\n\n.charter-recovery__import > summary {\n color: var(--dsw-alias-label-primary, inherit);\n cursor: pointer;\n font-size: 11px;\n font-weight: 600;\n line-height: 1.4;\n}\n\n.charter-recovery__import[open] > summary {\n margin-bottom: 4px;\n}\n\n.charter-recovery__file {\n flex-direction: column;\n align-items: flex-start;\n gap: 6px;\n width: 100%;\n margin-top: 8px;\n}\n\n.charter-recovery__file input[type=\"file\"] {\n box-sizing: border-box;\n border: 1px dashed var(--charter-border);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n width: 100%;\n max-width: 640px;\n color: inherit;\n font: inherit;\n cursor: pointer;\n padding: 5px 7px;\n font-size: 11.5px;\n}\n\n.charter-recovery__file input[type=\"file\"]::file-selector-button {\n border: 1px solid var(--charter-border);\n color: var(--dsw-alias-label-primary, inherit);\n background: var(--charter-surface-2);\n font: inherit;\n cursor: pointer;\n border-radius: 5px;\n margin: 0 8px 0 0;\n padding: 3px 9px;\n font-size: 11px;\n}\n\n.charter-recovery__file input[type=\"file\"]:focus-visible, .charter-recovery__actions .charter-button:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 2px;\n}\n\n.charter-recovery__preview {\n border: 1px solid var(--charter-border-soft);\n border-radius: var(--charter-radius);\n background: var(--charter-surface);\n flex-direction: column;\n align-items: stretch;\n padding: 10px 12px;\n}\n\n.charter-recovery__preview dl {\n margin: 6px 0 0;\n}\n\n.charter-recovery__danger {\n border: 1px solid var(--charter-warn);\n border-radius: var(--charter-radius);\n background: var(--charter-surface-2);\n flex-direction: column;\n align-items: flex-start;\n padding: 10px 12px;\n}\n\n@container (width <= 520px) {\n .charter-recovery__facts, .charter-recovery__preview dl {\n grid-template-columns: 1fr;\n }\n\n .charter-recovery__actions {\n flex-direction: column;\n align-items: stretch;\n }\n}\n\n.charter-bootstrap__group {\n gap: 2px;\n margin-top: 8px;\n display: grid;\n}\n\n.charter-bootstrap__group h4 {\n color: var(--dsw-alias-label-secondary, #777);\n letter-spacing: .03em;\n text-transform: uppercase;\n margin: 6px 0 2px;\n font-size: 10.5px;\n font-weight: 600;\n}\n\n.charter-bootstrap__checklabel, .charter-bootstrap__textlabel {\n color: var(--dsw-alias-label-tertiary, #999);\n font-size: 10px;\n}\n\n.charter-bootstrap__checklabel {\n cursor: pointer;\n flex: none;\n margin-top: 7px;\n}\n\n.charter-bootstrap__textlabel {\n justify-self: start;\n}\n\n.charter-error-details {\n color: var(--dsw-alias-label-secondary, #777);\n margin: 4px 0;\n font-size: 11px;\n}\n\n.charter-error-details summary {\n cursor: pointer;\n}\n\n.charter-error-details pre {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n max-height: 180px;\n color: var(--dsw-alias-label-primary, inherit);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n border-radius: 6px;\n margin: 4px 0 0;\n padding: 6px 8px;\n font-size: 11px;\n overflow: auto;\n}\n\n@media (hover: none) {\n .charter-nav__item:focus .charter-nav__help:after {\n visibility: visible;\n opacity: 1;\n }\n}\n\n@media (width <= 640px), (pointer: coarse) {\n .charter-progress select, .charter-item__menulist button, .charter-preview__view, .charter-actionbar__actions .charter-button, .charter-bootstrap__summary .charter-button, .charter-add__foot .charter-button, .charter-recovery__actions .charter-button, .charter-nav__item {\n min-height: 44px;\n }\n\n .charter-actionbar__actions, .charter-bootstrap__summary, .charter-add__foot, .charter-bootstrap__item {\n flex-wrap: wrap;\n }\n\n .charter-bootstrap__item .charter-draftfield {\n min-width: min(100%, 220px);\n }\n}\n\n.charter-dependency-list {\n gap: 6px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-dependency {\n border: 1px solid var(--charter-border-soft);\n border-radius: 7px;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: baseline;\n gap: 8px;\n padding: 8px 10px;\n display: grid;\n}\n\n.charter-dependency.is-dependency-conflict {\n border-color: var(--charter-danger);\n}\n\n.charter-dependency__key {\n color: var(--charter-brand);\n font-size: 11px;\n font-weight: 700;\n}\n\n.charter-dependency__text {\n overflow-wrap: anywhere;\n min-width: 0;\n}\n\n.charter-dependency__status {\n color: var(--dsw-alias-label-tertiary, inherit);\n font-size: 11px;\n}\n\n.charter-dependency__requires {\n color: var(--dsw-alias-label-tertiary, inherit);\n grid-column: 2 / -1;\n font-size: 11px;\n}\n\n.charter-dependency__select {\n box-sizing: border-box;\n text-overflow: ellipsis;\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n width: 100%;\n min-width: 0;\n max-width: 100%;\n min-height: 28px;\n color: inherit;\n font: inherit;\n border-radius: 6px;\n grid-column: 2 / -1;\n font-size: 11px;\n overflow: hidden;\n}\n\n.charter-batch-list {\n gap: 4px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-batch {\n border-bottom: 1px solid var(--charter-border-soft);\n flex-wrap: wrap;\n gap: 10px;\n padding: 8px 10px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-batch__source {\n font-weight: 600;\n}\n\n.charter-batch__revision, .charter-batch__count {\n color: var(--dsw-alias-label-tertiary, inherit);\n}\n\n.charter-changeset__body {\n color: var(--dsw-alias-label-tertiary, inherit);\n flex-wrap: wrap;\n gap: 12px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-changeset__conflicts {\n gap: 4px;\n margin: 6px 0 0;\n padding: 0;\n font-size: 12px;\n list-style: none;\n display: grid;\n}\n\n.charter-changeset__conflicts li {\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: baseline;\n gap: 8px;\n display: grid;\n}\n\n.charter-changeset__conflicttext {\n overflow-wrap: anywhere;\n min-width: 0;\n}\n\n.charter-proposal-list {\n gap: 8px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-proposal {\n border: 1px solid var(--charter-border-soft);\n border-radius: 7px;\n gap: 6px;\n padding: 8px 10px;\n display: grid;\n}\n\n.charter-proposal__text {\n overflow-wrap: anywhere;\n margin: 0;\n}\n\n.charter-proposal__meta {\n color: var(--dsw-alias-label-tertiary, inherit);\n font-size: 11px;\n}\n\n.charter-proposal__reason, .charter-proposal__actions {\n grid-column: 1 / -1;\n}\n\n.charter-proposal__reason {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n min-height: 28px;\n color: inherit;\n font: inherit;\n border-radius: 6px;\n padding: 4px 6px;\n font-size: 12px;\n}\n\n.charter-proposal__actions {\n flex-wrap: wrap;\n gap: 8px;\n display: flex;\n}\n\n.charter-timeline {\n gap: 4px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n}\n\n.charter-timeline__row {\n border-bottom: 1px solid var(--charter-border-soft);\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 8px;\n padding: 8px 10px;\n font-size: 12px;\n display: grid;\n}\n\n.charter-timeline__kind, .charter-timeline__state, .charter-timeline__lineage {\n color: var(--dsw-alias-label-tertiary, inherit);\n font-size: 11px;\n}\n\n.charter-timeline__text {\n overflow-wrap: anywhere;\n min-width: 0;\n}\n\n.charter-notice--danger {\n border-color: var(--charter-danger);\n color: var(--charter-danger);\n}\n\n.charter-dependency-layout {\n flex-wrap: wrap;\n align-items: start;\n gap: 12px;\n display: flex;\n}\n\n.charter-dependency-listwrap {\n flex: 20em;\n min-width: 20rem;\n}\n\n.charter-graph {\n flex: 3 35em;\n min-width: 0;\n}\n\n.charter-dependency-layout.is-graph-hidden .charter-dependency-listwrap {\n flex: 100%;\n}\n\n.charter-graph__skip {\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n position: absolute;\n overflow: hidden;\n}\n\n.charter-graph__skip:focus {\n clip: auto;\n width: auto;\n height: auto;\n color: var(--charter-brand);\n margin: 0 0 6px;\n font-size: 11px;\n position: static;\n}\n\n.charter-graph {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n border-radius: 7px;\n min-width: 0;\n max-width: 100%;\n padding: 10px;\n}\n\n.charter-graph__toolbar {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface);\n border-radius: 6px;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px 16px;\n margin-bottom: 10px;\n padding: 8px 10px;\n display: flex;\n}\n\n.charter-graph__toolbar-title {\n margin-right: auto;\n}\n\n.charter-graph__toolbar-title h4 {\n margin: 1px 0 0;\n font-size: 13px;\n}\n\n.charter-graph__toolbar-title .charter-kicker {\n font-size: 10px;\n}\n\n.charter-graph__control {\n min-width: 0;\n color: var(--dsw-alias-label-tertiary, inherit);\n align-items: center;\n gap: 6px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-graph__control select {\n box-sizing: border-box;\n border: 1px solid var(--charter-border-soft);\n min-width: 10em;\n max-width: 20em;\n min-height: 44px;\n color: inherit;\n background: var(--charter-surface);\n font: inherit;\n border-radius: 5px;\n padding: 0 8px;\n font-size: 11px;\n}\n\n.charter-graph__control button {\n border: 1px solid var(--charter-border-soft);\n min-height: 44px;\n color: inherit;\n background: var(--charter-surface);\n font: inherit;\n cursor: pointer;\n border-radius: 5px;\n padding: 0 7px;\n font-size: 11px;\n}\n\n.charter-graph__control button[aria-pressed=\"true\"] {\n border-color: var(--charter-brand);\n color: var(--charter-brand);\n}\n\n.charter-graph__check {\n cursor: pointer;\n}\n\n.charter-graph__hint {\n margin: 0 0 6px;\n font-size: 10px;\n}\n\n.charter-graph__help {\n color: var(--dsw-alias-label-tertiary, inherit);\n margin-top: 6px;\n font-size: 10px;\n}\n\n.charter-graph__help summary {\n cursor: pointer;\n}\n\n.charter-graph__help p {\n margin: 4px 0 0;\n font-size: 10px;\n line-height: 1.45;\n}\n\n.charter-graph__viewport {\n box-sizing: border-box;\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface);\n border-radius: 6px;\n width: 100%;\n min-height: 0;\n max-height: 460px;\n overflow: auto;\n}\n\n.charter-graph__viewport:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 2px;\n}\n\n.charter-graph__canvas {\n min-width: 0;\n min-height: 0;\n margin: 0 auto;\n font-size: 1rem;\n position: relative;\n}\n\n.charter-graph__svg {\n pointer-events: none;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n overflow: visible;\n}\n\n.charter-graph__edge-line {\n fill: none;\n stroke: var(--charter-border-strong, #aaa);\n stroke-width: .09375px;\n}\n\n.charter-graph__edge.is-requires.is-staged-added .charter-graph__edge-line {\n stroke: var(--charter-brand);\n stroke-dasharray: 4 3;\n}\n\n.charter-graph__edge.is-requires.is-staged-removed .charter-graph__edge-line {\n stroke: var(--charter-danger);\n stroke-dasharray: 3 3;\n}\n\n.charter-graph__edge.is-proposed .charter-graph__edge-line {\n stroke: var(--dsw-alias-label-tertiary, #999);\n stroke-dasharray: 2 4;\n}\n\n.charter-graph__edge.is-supersedes .charter-graph__edge-line {\n stroke: var(--dsw-alias-label-tertiary, #999);\n stroke-dasharray: 1 3;\n}\n\n.charter-graph__edge-removed {\n fill: none;\n stroke: var(--charter-danger);\n stroke-width: .1875px;\n opacity: .25;\n}\n\n.charter-graph__node {\n box-sizing: border-box;\n border: 1px solid var(--charter-border-strong, #aaa);\n border-left: 3px solid var(--charter-border-strong, #aaa);\n color: var(--charter-text, inherit);\n background: var(--charter-surface);\n font: inherit;\n text-align: left;\n cursor: pointer;\n border-radius: 7px;\n grid-template-rows: auto auto auto;\n align-content: start;\n gap: .0625em;\n padding: .25em .375em;\n display: grid;\n position: absolute;\n overflow: hidden;\n}\n\n.charter-graph__node.is-ready {\n border-left-color: var(--charter-success);\n}\n\n.charter-graph__node.is-in-progress {\n border-left-color: var(--charter-brand);\n}\n\n.charter-graph__node.is-blocked {\n border-left-color: var(--charter-warn);\n}\n\n.charter-graph__node.is-dependency-conflict {\n border-color: var(--charter-danger);\n border-left-color: var(--charter-danger);\n}\n\n.charter-graph__node.is-candidate, .charter-graph__node.is-history {\n border-style: dashed;\n}\n\n.charter-graph__node.is-staged-added {\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--charter-brand) 30%, transparent);\n}\n\n.charter-graph__node.is-staged-changed {\n border-style: double;\n}\n\n.charter-graph__node.is-staged-removed {\n opacity: .55;\n border-style: dotted;\n text-decoration: line-through;\n}\n\n.charter-graph__node:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 2px;\n}\n\n.charter-graph__node[aria-current=\"true\"] {\n background: color-mix(in srgb, var(--charter-brand) 8%, var(--charter-surface));\n}\n\n.charter-graph__nodekey {\n color: var(--charter-brand);\n font-size: .625em;\n font-weight: 700;\n}\n\n.charter-graph__nodetext {\n overflow-wrap: anywhere;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n font-size: .78em;\n line-height: 1.2;\n display: -webkit-box;\n overflow: hidden;\n}\n\n.charter-graph__nodestatus {\n color: var(--dsw-alias-label-tertiary, inherit);\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: .6875em;\n overflow: hidden;\n}\n\n.charter-graph__edgehit {\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 50%;\n width: 44px;\n height: 44px;\n padding: 0;\n position: absolute;\n transform: translate(-50%, -50%);\n}\n\n.charter-graph__edgehit:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 1px;\n}\n\n.charter-graph__footer {\n color: var(--dsw-alias-label-tertiary, inherit);\n flex-wrap: wrap;\n justify-content: flex-start;\n gap: 8px;\n margin-top: 4px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-graph__live {\n overflow-wrap: anywhere;\n min-width: 0;\n}\n\n.charter-graph__inspector {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface);\n border-radius: 6px;\n margin-top: 8px;\n padding: 8px;\n}\n\n.charter-graph__inspectorhead {\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n display: flex;\n}\n\n.charter-graph__inspectorhead h4 {\n margin: 0;\n font-size: 12px;\n}\n\n.charter-graph__inspectortext {\n overflow-wrap: anywhere;\n margin: 6px 0;\n font-size: 12px;\n}\n\n.charter-graph__inspectormeta {\n gap: 3px;\n margin: 0;\n font-size: 11px;\n display: grid;\n}\n\n.charter-graph__inspectormeta div {\n gap: 6px;\n display: flex;\n}\n\n.charter-graph__inspectormeta dt {\n color: var(--dsw-alias-label-tertiary, inherit);\n}\n\n.charter-graph__inspectormeta dd {\n overflow-wrap: anywhere;\n margin: 0;\n}\n\n.charter-graph__inspectoractions {\n gap: 5px;\n margin-top: 6px;\n display: grid;\n}\n\n.charter-graph__inspectoractions select {\n box-sizing: border-box;\n width: 100%;\n min-height: 44px;\n font: inherit;\n font-size: 11px;\n}\n\n.charter-graph__inspectoractions .charter-linkbutton {\n justify-self: start;\n}\n\n.charter-linkbutton {\n color: var(--charter-brand);\n font: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 0;\n padding: 1px 3px;\n font-size: 11px;\n}\n\n.charter-linkbutton:hover {\n text-decoration: underline;\n}\n\n.charter-linkbutton:focus-visible {\n outline: 2px solid var(--charter-brand);\n outline-offset: 1px;\n}\n\n.charter-dependency__locate {\n justify-self: start;\n}\n\n@media (forced-colors: active) {\n .charter-graph__node {\n color: canvastext;\n background: canvas;\n border: 1px solid canvastext;\n }\n\n .charter-graph__node.is-candidate, .charter-graph__node.is-history {\n border-style: dashed;\n }\n\n .charter-graph__node.is-staged-changed {\n border-style: double;\n }\n\n .charter-graph__node.is-staged-removed {\n border-style: dotted;\n }\n\n .charter-graph__node:focus-visible, .charter-graph__edgehit:focus-visible {\n outline: 2px solid highlight;\n }\n\n .charter-graph__edge-line, .charter-graph__edge-removed {\n stroke: canvastext;\n }\n}\n\n.charter-dependency {\n padding: 7px 9px;\n display: block;\n}\n\n.charter-dependency__row {\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: start;\n gap: 8px;\n display: grid;\n}\n\n.charter-dependency__main {\n gap: 3px;\n min-width: 0;\n display: grid;\n}\n\n.charter-dependency__text {\n overflow-wrap: anywhere;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n overflow: hidden;\n}\n\n.charter-dependency__meta {\n color: var(--dsw-alias-label-tertiary, inherit);\n flex-wrap: wrap;\n align-items: center;\n gap: 4px 8px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-dependency__meta .charter-dependency__status.is-ready {\n color: var(--charter-success);\n}\n\n.charter-dependency__meta .charter-dependency__status.is-waiting {\n color: var(--charter-warn, inherit);\n}\n\n.charter-dependency__meta .charter-dependency__status.is-dependency-conflict, .charter-dependency__meta .charter-dependency__status.is-conflict {\n color: var(--charter-danger);\n}\n\n.charter-dependency__actions {\n flex-wrap: wrap;\n justify-content: end;\n gap: 2px 6px;\n display: inline-flex;\n}\n\n.charter-dependency__editor {\n border: 1px solid var(--charter-border-soft);\n background: var(--charter-surface-2);\n border-radius: 6px;\n gap: 4px;\n max-height: 220px;\n margin: 7px 0 0 24px;\n padding: 7px 9px;\n display: grid;\n overflow: auto;\n}\n\n.charter-dependency__editor legend {\n color: var(--dsw-alias-label-tertiary, inherit);\n padding: 0 4px;\n font-size: 10px;\n}\n\n.charter-dependency__editor label {\n align-items: center;\n gap: 6px;\n min-width: 0;\n min-height: 44px;\n font-size: 11px;\n display: flex;\n}\n\n.charter-dependency__editor label span {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n";
|
|
7
7
|
const __charterStyleSelector = 'style[data-plugin-css="dsh-charter/charter.css"]';
|
|
8
8
|
if (typeof document !== 'undefined' && document.querySelector(__charterStyleSelector) === null) {
|
|
9
9
|
const style = document.createElement('style');
|
|
@@ -6696,6 +6696,22 @@ const charterValidatorRunResultSchema = discriminatedUnion("ok", [object({
|
|
|
6696
6696
|
code: charterErrorCodeSchema,
|
|
6697
6697
|
message: string()
|
|
6698
6698
|
}).strict()]);
|
|
6699
|
+
const charterDependencyConflictRefSchema = object({
|
|
6700
|
+
itemId: string(),
|
|
6701
|
+
before: _enum([
|
|
6702
|
+
"satisfied",
|
|
6703
|
+
"waiting",
|
|
6704
|
+
"dependency-conflict",
|
|
6705
|
+
"absent"
|
|
6706
|
+
]),
|
|
6707
|
+
after: _enum([
|
|
6708
|
+
"satisfied",
|
|
6709
|
+
"waiting",
|
|
6710
|
+
"dependency-conflict"
|
|
6711
|
+
]),
|
|
6712
|
+
beforeConflicts: number().int().nonnegative(),
|
|
6713
|
+
afterConflicts: number().int().nonnegative()
|
|
6714
|
+
}).strict();
|
|
6699
6715
|
const charterChangeSetPreviewResultSchema = discriminatedUnion("ok", [object({
|
|
6700
6716
|
ok: literal(true),
|
|
6701
6717
|
previewDigest: string(),
|
|
@@ -6713,7 +6729,11 @@ const charterChangeSetPreviewResultSchema = discriminatedUnion("ok", [object({
|
|
|
6713
6729
|
}).strict(),
|
|
6714
6730
|
changes: array(charterChangeSchema),
|
|
6715
6731
|
promptChanged: boolean(),
|
|
6716
|
-
metadataOnly: boolean()
|
|
6732
|
+
metadataOnly: boolean(),
|
|
6733
|
+
dependencyConflicts: object({
|
|
6734
|
+
added: array(charterDependencyConflictRefSchema),
|
|
6735
|
+
worsened: array(charterDependencyConflictRefSchema)
|
|
6736
|
+
}).strict().optional()
|
|
6717
6737
|
}).strict(), object({
|
|
6718
6738
|
ok: literal(false),
|
|
6719
6739
|
code: charterErrorCodeSchema,
|
|
@@ -10188,34 +10208,34 @@ var CharterClientController = class CharterClientController {
|
|
|
10188
10208
|
const CHARTER_LOCALE_NS = "dsh-charter";
|
|
10189
10209
|
const CHARTER_LOCALE = {
|
|
10190
10210
|
zh: {
|
|
10191
|
-
tab: "
|
|
10192
|
-
"header.title": "
|
|
10211
|
+
tab: "契约",
|
|
10212
|
+
"header.title": "契约",
|
|
10193
10213
|
"header.subtitle": "压缩会改写历史,但你的约定不会。",
|
|
10194
10214
|
"header.version": "v{version}",
|
|
10195
10215
|
"header.disclaimer": "这是提供给模型的声明性上下文,不强制执行,也不是安全边界。",
|
|
10196
10216
|
"stats.revision": "修订 {revision}",
|
|
10197
10217
|
"stats.context": "{bytes} B 上下文",
|
|
10198
10218
|
"stats.budget": "{used} / {limit} 契约上下文",
|
|
10199
|
-
"status.loading": "
|
|
10200
|
-
"status.unavailable": "
|
|
10201
|
-
"status.notReady": "
|
|
10202
|
-
"status.initializing": "
|
|
10203
|
-
"status.notLive": "该会话尚未在当前 Host 进程中运行。请在此 Web
|
|
10204
|
-
"status.readOnly": "该会话尚未在当前 Host
|
|
10205
|
-
"status.lifecycle": "
|
|
10206
|
-
"status.corrupt": "
|
|
10207
|
-
"status.storage": "
|
|
10208
|
-
"status.absent": "
|
|
10209
|
-
"status.invalidSchema": "
|
|
10210
|
-
"status.invalidConsistency": "
|
|
10219
|
+
"status.loading": "正在加载契约...",
|
|
10220
|
+
"status.unavailable": "契约暂不可用。",
|
|
10221
|
+
"status.notReady": "契约尚未就绪。",
|
|
10222
|
+
"status.initializing": "契约正在初始化...",
|
|
10223
|
+
"status.notLive": "该会话尚未在当前 Host 进程中运行。请在此 Web 界面打开或启动它,契约标签页会自动更新。",
|
|
10224
|
+
"status.readOnly": "该会话尚未在当前 Host 进程中运行。当前显示已保存的只读契约;请在此 Web 界面打开或启动该会话后再编辑。",
|
|
10225
|
+
"status.lifecycle": "已保存的契约属于另一个会话生命周期。",
|
|
10226
|
+
"status.corrupt": "已保存的契约数据不一致。",
|
|
10227
|
+
"status.storage": "契约存储暂不可用。",
|
|
10228
|
+
"status.absent": "未加载到契约记录;它可能从未存在,或存储无法读取它。",
|
|
10229
|
+
"status.invalidSchema": "已保存的契约记录结构不合法。",
|
|
10230
|
+
"status.invalidConsistency": "已保存的契约记录不一致。",
|
|
10211
10231
|
"status.futureSchema": "该记录由更新版本的 Charter schema 写入,已被只读保留;请升级插件。",
|
|
10212
10232
|
"status.writeUncertain": "上次存储写入结果不确定。请重启 Host 重新加载存储介质。",
|
|
10213
10233
|
"status.legacyHost": "连接的是旧版 Host bundle,恢复能力不可用。",
|
|
10214
|
-
"status.overBudget": "
|
|
10215
|
-
"status.reconnecting": "
|
|
10234
|
+
"status.overBudget": "已保存的契约有效,但超出当前预算限制,因此暂时不注入。请删除或归档条目以回到预算内。",
|
|
10235
|
+
"status.reconnecting": "正在重新连接契约服务;编辑已暂停,当前显示的是最近一次已确认状态。",
|
|
10216
10236
|
"empty.kicker": "开始",
|
|
10217
|
-
"empty.title": "
|
|
10218
|
-
"empty.body": "
|
|
10237
|
+
"empty.title": "这个会话还没有契约。",
|
|
10238
|
+
"empty.body": "先设置目标或添加硬约束,然后点击应用;模型会从下一次请求起看到契约。",
|
|
10219
10239
|
"nav.label": "章节",
|
|
10220
10240
|
"nav.workspace": "工作区",
|
|
10221
10241
|
"nav.review": "审阅中心",
|
|
@@ -10229,7 +10249,7 @@ const CHARTER_LOCALE = {
|
|
|
10229
10249
|
"nav.recovery": "存储与恢复",
|
|
10230
10250
|
"nav.open": "打开",
|
|
10231
10251
|
"nav.workspaceHelp": "查看当前目标、全局硬约束、执行计划和未解决阻塞。",
|
|
10232
|
-
"nav.reviewHelp": "
|
|
10252
|
+
"nav.reviewHelp": "审阅消息提案、压缩历史草案、待处理提案和近期变更。",
|
|
10233
10253
|
"nav.diagnosticsHelp": "检查 prompt、预算、记录健康、恢复和能力诊断。",
|
|
10234
10254
|
"nav.overviewHelp": "一眼查看已生效的承诺、数量、预算和待审状态。",
|
|
10235
10255
|
"nav.objectiveHelp": "查看或调整当前目标;原始目标保持不变。",
|
|
@@ -10237,7 +10257,7 @@ const CHARTER_LOCALE = {
|
|
|
10237
10257
|
"nav.deliverablesHelp": "管理交付物并跟踪交付进度。",
|
|
10238
10258
|
"nav.historyHelp": "从最近一次可用压缩摘要生成只读的审阅草案。",
|
|
10239
10259
|
"nav.contextHelp": "预览应用后模型实际收到的 user-role 上下文。",
|
|
10240
|
-
"nav.recoveryHelp": "导出、恢复或显式初始化该 Session
|
|
10260
|
+
"nav.recoveryHelp": "导出、恢复或显式初始化该 Session 的底层契约记录。",
|
|
10241
10261
|
"changeset.kicker": "变更集",
|
|
10242
10262
|
"changeset.title": "待应用变更",
|
|
10243
10263
|
"changeset.ops": "{count} 个暂存操作",
|
|
@@ -10245,6 +10265,11 @@ const CHARTER_LOCALE = {
|
|
|
10245
10265
|
"changeset.promptDelta": "Prompt 字节:{before} → {after}",
|
|
10246
10266
|
"changeset.itemsDelta": "条目:{before} → {after}",
|
|
10247
10267
|
"changeset.editorOpen": "有未关闭的行内编辑器",
|
|
10268
|
+
"changeset.conflicts": "本次变更引入或加重了 {count} 处依赖冲突",
|
|
10269
|
+
"changeset.conflictAdded": "新增冲突(阻塞前置 {before} → {after})",
|
|
10270
|
+
"changeset.conflictWorsened": "冲突加重(阻塞前置 {before} → {after})",
|
|
10271
|
+
"changeset.conflictHint": "存在 {count} 处依赖冲突,应用前需要你确认",
|
|
10272
|
+
"changeset.conflictConfirmHint": "确认在存在 {count} 处依赖冲突的情况下应用",
|
|
10248
10273
|
"review.itemProposals": "条目提案",
|
|
10249
10274
|
"review.messageProposal": "消息提案",
|
|
10250
10275
|
"review.messageProposalHint": "从最近的用户消息中提取一条,保存为待审提案;审阅并应用前不会改变契约。",
|
|
@@ -10273,7 +10298,8 @@ const CHARTER_LOCALE = {
|
|
|
10273
10298
|
"review.objectiveReason": "替换当前目标的理由",
|
|
10274
10299
|
"review.acceptObjective": "接受目标",
|
|
10275
10300
|
"review.rejectObjective": "拒绝目标",
|
|
10276
|
-
"review.
|
|
10301
|
+
"review.heading": "审阅中心",
|
|
10302
|
+
"review.headingHint": "审阅消息提案、压缩历史草案、待处理提案和近期变更;应用前不会改变契约。",
|
|
10277
10303
|
"review.title": "提案批次",
|
|
10278
10304
|
"review.captured": "捕获于 revision {revision}",
|
|
10279
10305
|
"review.sourceIntegrity": "来源:{integrity}",
|
|
@@ -10284,10 +10310,7 @@ const CHARTER_LOCALE = {
|
|
|
10284
10310
|
"review.source.agent-tool": "模型工具提案",
|
|
10285
10311
|
"review.source.fork": "Fork 提案",
|
|
10286
10312
|
"review.source.legacy-unknown": "旧版未知来源",
|
|
10287
|
-
"deps.kicker": "执行计划",
|
|
10288
10313
|
"deps.title": "依赖与就绪状态",
|
|
10289
|
-
"deps.requires": "依赖 {keys}",
|
|
10290
|
-
"deps.editAria": "{key} 的前置交付物",
|
|
10291
10314
|
"deps.status.ready": "可推进",
|
|
10292
10315
|
"deps.status.waiting": "等待前置",
|
|
10293
10316
|
"deps.status.dependency-conflict": "依赖冲突",
|
|
@@ -10296,12 +10319,64 @@ const CHARTER_LOCALE = {
|
|
|
10296
10319
|
"deps.status.terminal": "已结束",
|
|
10297
10320
|
"deps.prerequisiteConflict": "前置冲突",
|
|
10298
10321
|
"deps.conflict": "暂存的依赖计划包含环或非法引用。请移除或修改前置条件后再 Apply。",
|
|
10322
|
+
"deps.graphTitle": "依赖关系图",
|
|
10323
|
+
"deps.graphFocus": "焦点",
|
|
10324
|
+
"deps.graphDepth": "深度",
|
|
10325
|
+
"deps.depth1": "1 跳",
|
|
10326
|
+
"deps.depth2": "2 跳",
|
|
10327
|
+
"deps.showSupersedes": "显示替代关系",
|
|
10328
|
+
"deps.zoomIn": "放大",
|
|
10329
|
+
"deps.zoomOut": "缩小",
|
|
10330
|
+
"deps.resetLayout": "重置缩放",
|
|
10331
|
+
"deps.hideGraph": "隐藏图形",
|
|
10332
|
+
"deps.showGraph": "显示图形",
|
|
10333
|
+
"deps.graphAria": "依赖关系图",
|
|
10334
|
+
"deps.graphKeys": "Tab 进入图形区一次;方向键沿依赖移动;[ 和 ] 遍历所有节点与边;Enter 打开详情;Esc 关闭详情,再按回到列表。",
|
|
10335
|
+
"deps.historyKicker": "已替代",
|
|
10336
|
+
"deps.historyStatus": "不在执行序",
|
|
10337
|
+
"deps.candidateKicker": "候选",
|
|
10338
|
+
"deps.candidateStatus": "未进入执行序",
|
|
10339
|
+
"deps.historyAria": "已替代条目 {text};不在执行序",
|
|
10340
|
+
"deps.candidateAria": "候选提案 {text};未进入执行序",
|
|
10341
|
+
"deps.edgeAria": "{to} 依赖 {from}",
|
|
10342
|
+
"deps.edgeAriaAdded": "{to} 依赖 {from}(本次新增)",
|
|
10343
|
+
"deps.edgeAriaRemoved": "{to} 依赖 {from}(本次删除)",
|
|
10344
|
+
"deps.proposedEdgeAria": "{to} 的候选前置 {from};回车查看提案",
|
|
10345
|
+
"deps.supersedesEdgeAria": "{from} 已被 {to} 替代",
|
|
10346
|
+
"deps.graphDegradedSupersedes": "视图过密,已隐藏替代历史。",
|
|
10347
|
+
"deps.graphDegradedDepth": "视图过密,深度已降为 1 跳。",
|
|
10348
|
+
"deps.graphTooDense": "依赖视图有 {count} 个可导航元素,请使用列表。",
|
|
10349
|
+
"deps.inspectorTitle": "依赖详情 · {key}",
|
|
10350
|
+
"deps.closeInspector": "关闭详情",
|
|
10351
|
+
"deps.inspectorStatus": "状态",
|
|
10352
|
+
"deps.inspectorRequires": "前置",
|
|
10353
|
+
"deps.addRequires": "添加前置交付物",
|
|
10354
|
+
"deps.removeRequires": "移除 {key}",
|
|
10355
|
+
"deps.removeEdge": "移除这条依赖",
|
|
10356
|
+
"deps.openProposal": "打开提案",
|
|
10357
|
+
"deps.skipToList": "跳到依赖列表",
|
|
10358
|
+
"deps.showMore": "再显示 {count} 行依赖",
|
|
10359
|
+
"deps.rowPosition": "第 {index} 条依赖,共 {total} 条",
|
|
10360
|
+
"deps.locateInList": "在列表中定位",
|
|
10361
|
+
"deps.locateInGraph": "在图中定位",
|
|
10362
|
+
"deps.graphHint": "图不会自动修改状态;编辑只会暂存到 Change Set,Apply 仍是唯一提交点。",
|
|
10363
|
+
"deps.help": "键位与说明",
|
|
10364
|
+
"deps.graphEmpty": "还没有依赖关系。可以把一个节点拖到另一个节点上,或在列表行中打开前置编辑。",
|
|
10365
|
+
"deps.graphIsolatedTooMany": "还没有依赖关系。当前交付物过多,孤立节点预览已隐藏,请使用列表。",
|
|
10366
|
+
"deps.requiresSummary": "前置:{keys}",
|
|
10367
|
+
"deps.noRequires": "无前置",
|
|
10368
|
+
"deps.editRequires": "编辑前置",
|
|
10369
|
+
"deps.stagedAdded": "暂存新增",
|
|
10370
|
+
"deps.dropInvalidSelf": "交付物不能依赖自身。",
|
|
10371
|
+
"deps.dropInvalidDuplicate": "这个前置交付物已经存在。",
|
|
10372
|
+
"deps.stagedRemoved": "暂存删除",
|
|
10373
|
+
"deps.candidateCycle": "候选依赖成环,接受时会被拒绝",
|
|
10299
10374
|
"overview.budget": "预算",
|
|
10300
10375
|
"overview.budgetDetail": "上下文、目标与条目上限",
|
|
10301
10376
|
"overview.nothing": "尚未配置。",
|
|
10302
10377
|
"overview.objectiveHint": "原始目标不可改写;调整目标会保留原始版本供审阅。",
|
|
10303
10378
|
"bootstrap.kicker": "历史草案",
|
|
10304
|
-
"bootstrap.title": "
|
|
10379
|
+
"bootstrap.title": "压缩历史草案",
|
|
10305
10380
|
"bootstrap.body": "这是从最近一次压缩摘要中抽取的草案,尚未生效。请检查后应用。",
|
|
10306
10381
|
"bootstrap.source": "来源:压缩摘要(约 {tokens} tokens 被压缩)",
|
|
10307
10382
|
"bootstrap.sourcePlain": "来源:压缩摘要",
|
|
@@ -10322,8 +10397,8 @@ const CHARTER_LOCALE = {
|
|
|
10322
10397
|
"bootstrap.stale": "读取历史草案期间会话已更新,草案已丢弃;请重试以读取最新历史。",
|
|
10323
10398
|
"bootstrap.notLive": "该会话当前不在这个 Host 进程中运行。在此打开它后才能读取压缩历史。",
|
|
10324
10399
|
"bootstrap.noSummary": "该会话还没有可用的压缩摘要;完成一次压缩后才会出现草案。",
|
|
10325
|
-
"bootstrap.unavailable": "
|
|
10326
|
-
"notice.conflict": "
|
|
10400
|
+
"bootstrap.unavailable": "契约存储不可用,暂时无法读取历史草案。",
|
|
10401
|
+
"notice.conflict": "契约已从修订 {from} 更新到 {to}。草稿已保留;可将草稿应用到最新修订,或丢弃后查看新版本。",
|
|
10327
10402
|
"objective.kicker": "目标",
|
|
10328
10403
|
"objective.empty": "尚未设置目标。",
|
|
10329
10404
|
"objective.set": "设置目标",
|
|
@@ -10367,8 +10442,8 @@ const CHARTER_LOCALE = {
|
|
|
10367
10442
|
"item.purge": "永久清除",
|
|
10368
10443
|
"item.confirmPurge": "确认清除",
|
|
10369
10444
|
"item.keep": "保留",
|
|
10370
|
-
"editor.charterTextAria": "
|
|
10371
|
-
"editor.objectiveAria": "
|
|
10445
|
+
"editor.charterTextAria": "契约文本",
|
|
10446
|
+
"editor.objectiveAria": "契约目标",
|
|
10372
10447
|
"editor.invariantAria": "约束文本",
|
|
10373
10448
|
"editor.deliverableAria": "交付物文本",
|
|
10374
10449
|
"error.connectionKind.timeout": "连接超时",
|
|
@@ -10389,8 +10464,8 @@ const CHARTER_LOCALE = {
|
|
|
10389
10464
|
"editor.issue.surrogate": "文本包含无效 Unicode。",
|
|
10390
10465
|
"composer.invariant": "硬约束",
|
|
10391
10466
|
"composer.deliverable": "交付物",
|
|
10392
|
-
"composer.groupAria": "
|
|
10393
|
-
"composer.inputAria": "
|
|
10467
|
+
"composer.groupAria": "新契约条目类型",
|
|
10468
|
+
"composer.inputAria": "新契约条目",
|
|
10394
10469
|
"composer.invariantAria": "新硬约束文本",
|
|
10395
10470
|
"composer.deliverableAria": "新交付物文本",
|
|
10396
10471
|
"error.details": "展开技术详情",
|
|
@@ -10416,7 +10491,7 @@ const CHARTER_LOCALE = {
|
|
|
10416
10491
|
"preview.exact": "精确文本",
|
|
10417
10492
|
"preview.formattedHint": "为便于阅读而美化;字节数和精确视图使用原始文本。",
|
|
10418
10493
|
"preview.formattedUnavailable": "无法格式化 JSON,已显示精确文本。",
|
|
10419
|
-
"preview.emptyHint": "
|
|
10494
|
+
"preview.emptyHint": "当前没有可渲染的契约上下文。",
|
|
10420
10495
|
"preview.exactHint": "模型实际收到的 user-role 文本和字节数。",
|
|
10421
10496
|
"footer.none": "没有暂存的修改",
|
|
10422
10497
|
"footer.one": "1 处暂存修改",
|
|
@@ -10436,12 +10511,13 @@ const CHARTER_LOCALE = {
|
|
|
10436
10511
|
"footer.abandon": "放弃未知请求",
|
|
10437
10512
|
"footer.abandonConfirm": "确认放弃——将丢弃保留请求和本地草稿文本",
|
|
10438
10513
|
"footer.applying": "正在应用...",
|
|
10514
|
+
"footer.applyConfirmConflicts": "仍要应用({count} 处冲突)",
|
|
10439
10515
|
"budget.editorOver": "文本超过 {limit} 上限。",
|
|
10440
10516
|
"budget.shrinking": "当前仍超限,但这是缩短操作,可以提交。",
|
|
10441
10517
|
"budget.notGrowing": "当前仍超限,但这次修改不会增大 prompt,可以提交。",
|
|
10442
10518
|
"budget.itemOver": "有条目超过 {limit} 上限。",
|
|
10443
10519
|
"budget.objectiveOver": "目标超过 {limit} 上限。",
|
|
10444
|
-
"budget.contextOver": "
|
|
10520
|
+
"budget.contextOver": "契约所占上下文超过 {limit} 预算(不含历史消息、系统提示、工具定义或其他 DSH 上下文)。请先删除/归档条目或缩短草案再应用。",
|
|
10445
10521
|
"budget.opsOver": "本草案单批操作数超过 {limit}。请减少暂存修改,分批应用。",
|
|
10446
10522
|
"budget.itemsOver": "本草案会超过 {limit} 条目上限。请先删除或归档条目再应用。",
|
|
10447
10523
|
"budget.pendingOver": "本草案会超过 {limit} 待审条目上限。请先处理或归档待审条目再应用。",
|
|
@@ -10465,28 +10541,28 @@ const CHARTER_LOCALE = {
|
|
|
10465
10541
|
"apply.block.quota": "暂存修改超过 Charter 限制。",
|
|
10466
10542
|
"apply.block.stale": "历史草案已过期,请重新抽取。",
|
|
10467
10543
|
"footer.applyHint": "应用会原子提交全部暂存修改,模型从下一次请求起可见。",
|
|
10468
|
-
"bootstrap.applyHint": "
|
|
10544
|
+
"bootstrap.applyHint": "已审阅的历史草案将写入空契约。",
|
|
10469
10545
|
"apply.block.bootstrap-blocked": "请先处理上方 bootstrap 原因,再应用已审阅草案。",
|
|
10470
10546
|
"footer.replayed": "已安全重放此前保存的编辑。",
|
|
10471
10547
|
"button.retry": "重试",
|
|
10472
10548
|
"error.INVALID_ARGUMENT": "编辑请求无效。",
|
|
10473
|
-
"error.FORBIDDEN": "
|
|
10474
|
-
"error.NOT_FOUND": "
|
|
10475
|
-
"error.LIFECYCLE_MISMATCH": "
|
|
10476
|
-
"error.REVISION_CONFLICT": "
|
|
10549
|
+
"error.FORBIDDEN": "无权编辑此契约。",
|
|
10550
|
+
"error.NOT_FOUND": "未找到会话或契约条目。",
|
|
10551
|
+
"error.LIFECYCLE_MISMATCH": "契约属于另一个会话生命周期。",
|
|
10552
|
+
"error.REVISION_CONFLICT": "契约已被更新,草稿已保留。",
|
|
10477
10553
|
"error.MUTATION_ID_REUSED": "该编辑标识已用于不同内容。",
|
|
10478
10554
|
"error.INVALID_REFERENCE": "编辑引用了不存在的条目。",
|
|
10479
10555
|
"error.INVALID_TRANSITION": "当前状态下不允许该修改。",
|
|
10480
10556
|
"error.IMMUTABLE_FIELD": "该字段不可修改。",
|
|
10481
|
-
"error.QUOTA_EXCEEDED": "
|
|
10482
|
-
"error.CORRUPT_STATE": "
|
|
10557
|
+
"error.QUOTA_EXCEEDED": "超出契约限制,未保存任何修改。",
|
|
10558
|
+
"error.CORRUPT_STATE": "已保存的契约数据不一致。",
|
|
10483
10559
|
"error.INITIALIZATION_REQUIRED": "该 Session 没有已确认的契约记录。请在“存储与恢复”中显式初始化。",
|
|
10484
10560
|
"error.INVALID_ARCHIVE": "所选备份不是有效的 dsh-charter 记录归档。",
|
|
10485
10561
|
"error.RECORD_CONFLICT": "契约记录在预览后已变化,请查看最新状态后重试。",
|
|
10486
10562
|
"error.OPERATION_ID_REUSED": "该恢复操作 ID 被用于了不同内容。",
|
|
10487
10563
|
"error.RECOVERY_UNSUPPORTED": "记录维护需要 DSH 0.2.1 或更新版本(owner/资源约束)。",
|
|
10488
10564
|
"recovery.title": "存储与恢复",
|
|
10489
|
-
"recovery.subtitle": "
|
|
10565
|
+
"recovery.subtitle": "备份完整契约记录,并有意识地恢复本 Session。",
|
|
10490
10566
|
"recovery.recordTitle": "记录状态",
|
|
10491
10567
|
"recovery.healthy": "健康",
|
|
10492
10568
|
"recovery.absent": "缺失(未确认)",
|
|
@@ -10501,7 +10577,7 @@ const CHARTER_LOCALE = {
|
|
|
10501
10577
|
"recovery.overBudget": "超出预算(不注入)",
|
|
10502
10578
|
"recovery.exportTitle": "导出",
|
|
10503
10579
|
"recovery.exportHint": "下载完整记录,用于外部校验、审计或自行保存。恢复使用下方的本地缓存,不依赖这次下载。",
|
|
10504
|
-
"recovery.sensitive": "
|
|
10580
|
+
"recovery.sensitive": "敏感:归档包含你的契约文本,请安全保存。",
|
|
10505
10581
|
"recovery.export": "下载记录归档",
|
|
10506
10582
|
"recovery.exportFailed": "无法导出该记录。",
|
|
10507
10583
|
"recovery.chooseFile": "选择归档文件",
|
|
@@ -10525,9 +10601,9 @@ const CHARTER_LOCALE = {
|
|
|
10525
10601
|
"recovery.cryptoUnavailable": "WebCrypto 不可用,无法校验归档摘要,恢复已禁用。",
|
|
10526
10602
|
"recovery.sessionMismatchPreview": "该归档属于其他 Session。",
|
|
10527
10603
|
"recovery.lifecycleMismatchPreview": "该归档属于其他 Session 生命周期。",
|
|
10528
|
-
"recovery.initialize": "
|
|
10529
|
-
"recovery.initializeWarning": "
|
|
10530
|
-
"recovery.initializeConfirm": "
|
|
10604
|
+
"recovery.initialize": "初始化空契约",
|
|
10605
|
+
"recovery.initializeWarning": "创建空契约可能覆盖存储无法读取的文档;如需原始文件请先备份。",
|
|
10606
|
+
"recovery.initializeConfirm": "确认初始化空契约",
|
|
10531
10607
|
"recovery.restoreTitle": "恢复归档",
|
|
10532
10608
|
"recovery.restoreCached": "恢复缓存快照",
|
|
10533
10609
|
"recovery.restoreFile": "恢复导入归档",
|
|
@@ -10568,8 +10644,8 @@ const CHARTER_LOCALE = {
|
|
|
10568
10644
|
"recovery.reason.capability": "当前 runtime 不支持记录维护。",
|
|
10569
10645
|
"recovery.reason.recordHealthy": "健康记录不能被替换。",
|
|
10570
10646
|
"recovery.reason.legacyHost": "连接的 Host 不支持记录维护。",
|
|
10571
|
-
"error.UNAVAILABLE": "
|
|
10572
|
-
"error.connection": "
|
|
10647
|
+
"error.UNAVAILABLE": "契约暂不可用。",
|
|
10648
|
+
"error.connection": "契约连接不可用。",
|
|
10573
10649
|
"error.draftScope": "暂存草稿属于另一个会话,已丢弃。",
|
|
10574
10650
|
"error.unexpected": "编辑发生意外错误。",
|
|
10575
10651
|
"tag.staged": "已暂存",
|
|
@@ -10695,7 +10771,7 @@ const CHARTER_LOCALE = {
|
|
|
10695
10771
|
"nav.recovery": "Storage & recovery",
|
|
10696
10772
|
"nav.open": "Open",
|
|
10697
10773
|
"nav.workspaceHelp": "See the current objective, global invariants, execution plan, and unresolved blockers.",
|
|
10698
|
-
"nav.reviewHelp": "Review
|
|
10774
|
+
"nav.reviewHelp": "Review message proposals, compaction-history drafts, pending proposals, and recent changes.",
|
|
10699
10775
|
"nav.diagnosticsHelp": "Inspect prompt, budgets, record health, recovery, and capability diagnostics.",
|
|
10700
10776
|
"nav.overviewHelp": "See active commitments, counts, budget, and any pending review at a glance.",
|
|
10701
10777
|
"nav.objectiveHelp": "Read or redirect the current objective while the original objective stays immutable.",
|
|
@@ -10711,6 +10787,11 @@ const CHARTER_LOCALE = {
|
|
|
10711
10787
|
"changeset.promptDelta": "Prompt bytes: {before} → {after}",
|
|
10712
10788
|
"changeset.itemsDelta": "Items: {before} → {after}",
|
|
10713
10789
|
"changeset.editorOpen": "An inline editor is open",
|
|
10790
|
+
"changeset.conflicts": "This Change Set introduces or worsens {count} dependency conflict(s)",
|
|
10791
|
+
"changeset.conflictAdded": "new conflict ({before} → {after} blocking prerequisites)",
|
|
10792
|
+
"changeset.conflictWorsened": "worsened ({before} → {after} blocking prerequisites)",
|
|
10793
|
+
"changeset.conflictHint": "{count} dependency conflict(s) — Apply needs your confirmation",
|
|
10794
|
+
"changeset.conflictConfirmHint": "Confirm to apply with {count} known dependency conflict(s)",
|
|
10714
10795
|
"review.itemProposals": "Item proposals",
|
|
10715
10796
|
"review.messageProposal": "Message proposal",
|
|
10716
10797
|
"review.messageProposalHint": "Turn one recent user message into a pending proposal. Nothing changes until you review and apply it.",
|
|
@@ -10739,7 +10820,8 @@ const CHARTER_LOCALE = {
|
|
|
10739
10820
|
"review.objectiveReason": "Reason for replacing the current objective",
|
|
10740
10821
|
"review.acceptObjective": "Accept objective",
|
|
10741
10822
|
"review.rejectObjective": "Reject objective",
|
|
10742
|
-
"review.
|
|
10823
|
+
"review.heading": "Review Center",
|
|
10824
|
+
"review.headingHint": "Review message proposals, compaction-history drafts, pending proposals, and recent changes. Nothing changes until you apply it.",
|
|
10743
10825
|
"review.title": "Proposal batches",
|
|
10744
10826
|
"review.captured": "Captured at revision {revision}",
|
|
10745
10827
|
"review.sourceIntegrity": "Source: {integrity}",
|
|
@@ -10750,10 +10832,7 @@ const CHARTER_LOCALE = {
|
|
|
10750
10832
|
"review.source.agent-tool": "Agent tool proposal",
|
|
10751
10833
|
"review.source.fork": "Fork proposal",
|
|
10752
10834
|
"review.source.legacy-unknown": "Legacy unknown source",
|
|
10753
|
-
"deps.kicker": "Execution plan",
|
|
10754
10835
|
"deps.title": "Dependencies and readiness",
|
|
10755
|
-
"deps.requires": "Requires {keys}",
|
|
10756
|
-
"deps.editAria": "Prerequisites for {key}",
|
|
10757
10836
|
"deps.status.ready": "ready",
|
|
10758
10837
|
"deps.status.waiting": "waiting",
|
|
10759
10838
|
"deps.status.dependency-conflict": "dependency conflict",
|
|
@@ -10762,12 +10841,64 @@ const CHARTER_LOCALE = {
|
|
|
10762
10841
|
"deps.status.terminal": "terminal",
|
|
10763
10842
|
"deps.prerequisiteConflict": "prerequisite conflict",
|
|
10764
10843
|
"deps.conflict": "The staged dependency plan contains a cycle or invalid reference. Remove or change a prerequisite before Apply.",
|
|
10844
|
+
"deps.graphTitle": "Dependency map",
|
|
10845
|
+
"deps.graphFocus": "Focus",
|
|
10846
|
+
"deps.graphDepth": "Depth",
|
|
10847
|
+
"deps.depth1": "1 hop",
|
|
10848
|
+
"deps.depth2": "2 hops",
|
|
10849
|
+
"deps.showSupersedes": "Show replacements",
|
|
10850
|
+
"deps.zoomIn": "Zoom in",
|
|
10851
|
+
"deps.zoomOut": "Zoom out",
|
|
10852
|
+
"deps.resetLayout": "Reset zoom",
|
|
10853
|
+
"deps.hideGraph": "Hide graph",
|
|
10854
|
+
"deps.showGraph": "Show graph",
|
|
10855
|
+
"deps.graphAria": "Dependency graph",
|
|
10856
|
+
"deps.graphKeys": "Tab enters the graph once. Arrow keys move along dependencies; [ and ] visit every node and edge; Enter opens details; Esc closes details, then returns to the list.",
|
|
10857
|
+
"deps.historyKicker": "Replaced",
|
|
10858
|
+
"deps.historyStatus": "Not in the execution order",
|
|
10859
|
+
"deps.candidateKicker": "Candidate",
|
|
10860
|
+
"deps.candidateStatus": "Not in the execution order",
|
|
10861
|
+
"deps.historyAria": "Replaced item {text}; not in the execution order",
|
|
10862
|
+
"deps.candidateAria": "Candidate {text}; not in the execution order",
|
|
10863
|
+
"deps.edgeAria": "{to} depends on {from}",
|
|
10864
|
+
"deps.edgeAriaAdded": "{to} depends on {from} (added in this draft)",
|
|
10865
|
+
"deps.edgeAriaRemoved": "{to} depends on {from} (removed in this draft)",
|
|
10866
|
+
"deps.proposedEdgeAria": "Candidate prerequisite {from} for {to}; Enter opens the proposal",
|
|
10867
|
+
"deps.supersedesEdgeAria": "{from} is replaced by {to}",
|
|
10868
|
+
"deps.graphDegradedSupersedes": "The replacement history is hidden because this view is too dense.",
|
|
10869
|
+
"deps.graphDegradedDepth": "Depth was reduced to one hop because this view is too dense.",
|
|
10870
|
+
"deps.graphTooDense": "This dependency view has {count} navigable items; use the list instead.",
|
|
10871
|
+
"deps.inspectorTitle": "Dependency details · {key}",
|
|
10872
|
+
"deps.closeInspector": "Close details",
|
|
10873
|
+
"deps.inspectorStatus": "Status",
|
|
10874
|
+
"deps.inspectorRequires": "Requires",
|
|
10875
|
+
"deps.addRequires": "Add a prerequisite",
|
|
10876
|
+
"deps.removeRequires": "Remove {key}",
|
|
10877
|
+
"deps.removeEdge": "Remove this dependency",
|
|
10878
|
+
"deps.openProposal": "Open proposal",
|
|
10879
|
+
"deps.skipToList": "Skip to the dependency list",
|
|
10880
|
+
"deps.showMore": "Show {count} more dependency rows",
|
|
10881
|
+
"deps.rowPosition": "Dependency {index} of {total}",
|
|
10882
|
+
"deps.locateInList": "Locate in the list",
|
|
10883
|
+
"deps.locateInGraph": "Locate in graph",
|
|
10884
|
+
"deps.graphHint": "The graph never changes state by itself; edits are staged into the Change Set and Apply remains the only commit.",
|
|
10885
|
+
"deps.help": "Keys and notes",
|
|
10886
|
+
"deps.graphEmpty": "No dependencies yet. Drag one node onto another, or open a list row to add a prerequisite.",
|
|
10887
|
+
"deps.graphIsolatedTooMany": "No dependencies yet. The isolated-node preview is hidden for this many rows; use the list.",
|
|
10888
|
+
"deps.requiresSummary": "Prerequisites: {keys}",
|
|
10889
|
+
"deps.noRequires": "No prerequisites",
|
|
10890
|
+
"deps.editRequires": "Edit prerequisites",
|
|
10891
|
+
"deps.stagedAdded": "staged addition",
|
|
10892
|
+
"deps.dropInvalidSelf": "A deliverable cannot depend on itself.",
|
|
10893
|
+
"deps.dropInvalidDuplicate": "This prerequisite is already present.",
|
|
10894
|
+
"deps.stagedRemoved": "staged removal",
|
|
10895
|
+
"deps.candidateCycle": "candidate dependencies form a cycle; acceptance will be rejected",
|
|
10765
10896
|
"overview.budget": "Budget",
|
|
10766
10897
|
"overview.budgetDetail": "Prompt, objective, and item limits",
|
|
10767
10898
|
"overview.nothing": "Nothing configured yet.",
|
|
10768
10899
|
"overview.objectiveHint": "The original objective is immutable; a redirect keeps it for review.",
|
|
10769
10900
|
"bootstrap.kicker": "History draft",
|
|
10770
|
-
"bootstrap.title": "
|
|
10901
|
+
"bootstrap.title": "Compaction history draft",
|
|
10771
10902
|
"bootstrap.body": "This draft was extracted from the latest compaction summary and is not effective yet. Review it, then apply.",
|
|
10772
10903
|
"bootstrap.source": "Source: compaction summary ({tokens} tokens shadowed)",
|
|
10773
10904
|
"bootstrap.sourcePlain": "Source: compaction summary",
|
|
@@ -10902,6 +11033,7 @@ const CHARTER_LOCALE = {
|
|
|
10902
11033
|
"footer.abandon": "Abandon unknown request",
|
|
10903
11034
|
"footer.abandonConfirm": "Confirm abandon — this discards the retained request and local draft text",
|
|
10904
11035
|
"footer.applying": "Applying...",
|
|
11036
|
+
"footer.applyConfirmConflicts": "Apply with {count} conflict(s)",
|
|
10905
11037
|
"budget.editorOver": "This text exceeds the {limit} limit.",
|
|
10906
11038
|
"budget.shrinking": "Over the limit, but shortening is allowed and will be admitted.",
|
|
10907
11039
|
"budget.notGrowing": "Over the limit, but this edit does not increase the prompt; it will be admitted.",
|
|
@@ -11139,6 +11271,43 @@ function topologicalDeliverables(items) {
|
|
|
11139
11271
|
}
|
|
11140
11272
|
return ordered;
|
|
11141
11273
|
}
|
|
11274
|
+
function validateDependencyGraph(items) {
|
|
11275
|
+
const byId = new Map(items.map((item) => [item.id, item]));
|
|
11276
|
+
for (const item of items) {
|
|
11277
|
+
if (item.kind !== "deliverable") {
|
|
11278
|
+
if ("requires" in item) throw charterError("CORRUPT_STATE", `non-deliverable item ${item.id} cannot carry requires`);
|
|
11279
|
+
continue;
|
|
11280
|
+
}
|
|
11281
|
+
const proposed = item.kind === "deliverable" ? item.proposedRequires ?? [] : [];
|
|
11282
|
+
if (new Set(proposed).size !== proposed.length) throw charterError("CORRUPT_STATE", `deliverable ${item.id} has duplicate proposed prerequisites`);
|
|
11283
|
+
for (const prerequisiteId of proposed) {
|
|
11284
|
+
const prerequisite = byId.get(prerequisiteId);
|
|
11285
|
+
if (prerequisite === void 0 || prerequisite.kind !== "deliverable" || !isStandingItem(prerequisite) && !(prerequisite.review === "pending" && prerequisite.lifecycle === "current")) throw charterError("INVALID_CHANGE_SET", `deliverable ${item.id} has a dangling proposed prerequisite ${prerequisiteId}`);
|
|
11286
|
+
}
|
|
11287
|
+
const requires = item.requires ?? [];
|
|
11288
|
+
if (new Set(requires).size !== requires.length) throw charterError("CORRUPT_STATE", `deliverable ${item.id} has duplicate prerequisites`);
|
|
11289
|
+
if (requires.length === 0) continue;
|
|
11290
|
+
if (!isStandingItem(item)) throw charterError("CORRUPT_STATE", `inactive deliverable ${item.id} cannot carry requires`);
|
|
11291
|
+
for (const prerequisiteId of requires) {
|
|
11292
|
+
if (prerequisiteId === item.id) throw charterError("INVALID_CHANGE_SET", `deliverable ${item.id} cannot require itself`);
|
|
11293
|
+
const prerequisite = byId.get(prerequisiteId);
|
|
11294
|
+
if (prerequisite === void 0 || prerequisite.kind !== "deliverable" || !isStandingItem(prerequisite)) throw charterError("INVALID_CHANGE_SET", `deliverable ${item.id} has a dangling prerequisite ${prerequisiteId}`);
|
|
11295
|
+
}
|
|
11296
|
+
}
|
|
11297
|
+
const state = /* @__PURE__ */ new Map();
|
|
11298
|
+
const visit = (item) => {
|
|
11299
|
+
const current = state.get(item.id) ?? 0;
|
|
11300
|
+
if (current === 1) throw charterError("INVALID_CHANGE_SET", "deliverable dependency graph contains a cycle");
|
|
11301
|
+
if (current === 2) return;
|
|
11302
|
+
state.set(item.id, 1);
|
|
11303
|
+
for (const id of item.requires ?? []) {
|
|
11304
|
+
const next = byId.get(id);
|
|
11305
|
+
if (next !== void 0 && next.kind === "deliverable") visit(next);
|
|
11306
|
+
}
|
|
11307
|
+
state.set(item.id, 2);
|
|
11308
|
+
};
|
|
11309
|
+
for (const item of standingDeliverables(items)) visit(item);
|
|
11310
|
+
}
|
|
11142
11311
|
function prerequisiteStatus(item, items) {
|
|
11143
11312
|
const byId = new Map(items.map((candidate) => [candidate.id, candidate]));
|
|
11144
11313
|
const prerequisites = (item.requires ?? []).map((id) => byId.get(id));
|
|
@@ -11166,6 +11335,1161 @@ function dependencyProjection(items) {
|
|
|
11166
11335
|
executionDisplay: executionDisplay(item, items)
|
|
11167
11336
|
}));
|
|
11168
11337
|
}
|
|
11338
|
+
/**
|
|
11339
|
+
* Prerequisite ids that make `item` conflict right now: a cancelled prerequisite,
|
|
11340
|
+
* or a prerequisite that is not `done` while the dependent already started.
|
|
11341
|
+
* Mirrors `prerequisiteStatus` rules 1–2, but returns the causes so a Change Set
|
|
11342
|
+
* can tell "new conflict" from "worsened conflict".
|
|
11343
|
+
*/
|
|
11344
|
+
function conflictingPrerequisites(item, items) {
|
|
11345
|
+
const byId = new Map(items.map((candidate) => [candidate.id, candidate]));
|
|
11346
|
+
const causes = [];
|
|
11347
|
+
for (const id of item.requires ?? []) {
|
|
11348
|
+
const prerequisite = byId.get(id);
|
|
11349
|
+
if (prerequisite === void 0 || prerequisite.kind !== "deliverable") continue;
|
|
11350
|
+
if (prerequisite.progress === "cancelled") {
|
|
11351
|
+
causes.push(id);
|
|
11352
|
+
continue;
|
|
11353
|
+
}
|
|
11354
|
+
if (prerequisite.progress !== "done" && (item.progress === "in-progress" || item.progress === "done")) causes.push(id);
|
|
11355
|
+
}
|
|
11356
|
+
return causes;
|
|
11357
|
+
}
|
|
11358
|
+
/**
|
|
11359
|
+
* Design §6.5: a Change Set must prominently mark newly introduced or worsened
|
|
11360
|
+
* readiness conflicts and require explicit user confirmation. This is the shared
|
|
11361
|
+
* before/after comparison used by the planner (Host authority) and the Pane
|
|
11362
|
+
* (immediate feedback), so both sides cannot drift.
|
|
11363
|
+
*
|
|
11364
|
+
* Structural illegality (cycles, dangling or inactive endpoints) is *not* part of
|
|
11365
|
+
* this diff: `validateDependencyGraph` rejects those outright.
|
|
11366
|
+
*/
|
|
11367
|
+
function dependencyConflictDiff(before, after) {
|
|
11368
|
+
const snapshot = (items) => {
|
|
11369
|
+
const out = /* @__PURE__ */ new Map();
|
|
11370
|
+
for (const item of standingDeliverables(items)) out.set(item.id, {
|
|
11371
|
+
status: prerequisiteStatus(item, items),
|
|
11372
|
+
conflicts: conflictingPrerequisites(item, items).length
|
|
11373
|
+
});
|
|
11374
|
+
return out;
|
|
11375
|
+
};
|
|
11376
|
+
const beforeState = snapshot(before);
|
|
11377
|
+
const afterState = snapshot(after);
|
|
11378
|
+
const added = [];
|
|
11379
|
+
const worsened = [];
|
|
11380
|
+
for (const [itemId, next] of afterState) {
|
|
11381
|
+
if (next.status !== "dependency-conflict") continue;
|
|
11382
|
+
const previous = beforeState.get(itemId);
|
|
11383
|
+
if (previous === void 0 || previous.status !== "dependency-conflict") {
|
|
11384
|
+
added.push({
|
|
11385
|
+
itemId,
|
|
11386
|
+
before: previous?.status ?? "absent",
|
|
11387
|
+
after: next.status,
|
|
11388
|
+
beforeConflicts: previous?.conflicts ?? 0,
|
|
11389
|
+
afterConflicts: next.conflicts
|
|
11390
|
+
});
|
|
11391
|
+
continue;
|
|
11392
|
+
}
|
|
11393
|
+
if (next.conflicts > previous.conflicts) worsened.push({
|
|
11394
|
+
itemId,
|
|
11395
|
+
before: previous.status,
|
|
11396
|
+
after: next.status,
|
|
11397
|
+
beforeConflicts: previous.conflicts,
|
|
11398
|
+
afterConflicts: next.conflicts
|
|
11399
|
+
});
|
|
11400
|
+
}
|
|
11401
|
+
const byItemId = (left, right) => left.itemId < right.itemId ? -1 : left.itemId > right.itemId ? 1 : 0;
|
|
11402
|
+
return {
|
|
11403
|
+
added: added.sort(byItemId),
|
|
11404
|
+
worsened: worsened.sort(byItemId)
|
|
11405
|
+
};
|
|
11406
|
+
}
|
|
11407
|
+
//#endregion
|
|
11408
|
+
//#region .build-ts/client/relation-graph.js
|
|
11409
|
+
/**
|
|
11410
|
+
* Client-side dependency-graph projection.
|
|
11411
|
+
*
|
|
11412
|
+
* The design contract is split in two:
|
|
11413
|
+
* - buildRelationGraph compares committed and projected items and derives
|
|
11414
|
+
* execution/candidate/history lanes plus edge staging state;
|
|
11415
|
+
* - layoutRelationGraph is a deterministic, font-free geometry pass over the
|
|
11416
|
+
* semantic model.
|
|
11417
|
+
*
|
|
11418
|
+
* Both functions are pure. The Pane renders their output; the Host is not
|
|
11419
|
+
* involved and no graph coordinate enters the record, prompt, or digest.
|
|
11420
|
+
*/
|
|
11421
|
+
const GRAPH = {
|
|
11422
|
+
nodePaddingEm: .625,
|
|
11423
|
+
summaryEm: .78,
|
|
11424
|
+
nodeMinWidthEm: 9,
|
|
11425
|
+
nodeWidthEm: 10,
|
|
11426
|
+
nodeMaxWidthEm: 12,
|
|
11427
|
+
nodeHeightEm: {
|
|
11428
|
+
1: 3,
|
|
11429
|
+
2: 4.5
|
|
11430
|
+
},
|
|
11431
|
+
rankPitchEm: 12.5,
|
|
11432
|
+
rowPitchEm: 5.5,
|
|
11433
|
+
candidateGapEm: 2.5,
|
|
11434
|
+
historyGapEm: 2.5,
|
|
11435
|
+
navigationLimit: 60,
|
|
11436
|
+
isolatedNodeLimit: 20,
|
|
11437
|
+
touchTargetPx: 44
|
|
11438
|
+
};
|
|
11439
|
+
const LINE_CAPACITY = Math.floor((GRAPH.nodeWidthEm - 2 * GRAPH.nodePaddingEm) / GRAPH.summaryEm);
|
|
11440
|
+
const active = (item) => item.kind === "deliverable" && item.review === "accepted" && item.lifecycle === "current";
|
|
11441
|
+
const pending = (item) => item.kind === "deliverable" && item.review === "pending" && item.lifecycle === "current";
|
|
11442
|
+
const requiresOf = (item) => item.requires ?? [];
|
|
11443
|
+
const proposedOf = (item) => item.proposedRequires ?? [];
|
|
11444
|
+
const sameSet = (left, right) => {
|
|
11445
|
+
const a = new Set(left);
|
|
11446
|
+
const b = new Set(right);
|
|
11447
|
+
return a.size === b.size && [...a].every((value) => b.has(value));
|
|
11448
|
+
};
|
|
11449
|
+
function statusFor(item, byId) {
|
|
11450
|
+
const prerequisites = requiresOf(item).map((id) => byId.get(id)).filter((value) => value !== void 0);
|
|
11451
|
+
const conflict = prerequisites.some((prerequisite) => prerequisite.progress === "cancelled" || prerequisite.progress !== "done" && (item.progress === "in-progress" || item.progress === "done"));
|
|
11452
|
+
const waiting = !conflict && prerequisites.some((prerequisite) => prerequisite.progress !== "done");
|
|
11453
|
+
const prerequisiteStatus = conflict ? "dependency-conflict" : waiting ? "waiting" : "satisfied";
|
|
11454
|
+
return {
|
|
11455
|
+
prerequisiteStatus,
|
|
11456
|
+
executionDisplay: item.progress === "done" || item.progress === "cancelled" ? "terminal" : item.progress === "blocked" ? "blocked" : item.progress === "in-progress" ? "in-progress" : prerequisiteStatus === "satisfied" ? "ready" : prerequisiteStatus
|
|
11457
|
+
};
|
|
11458
|
+
}
|
|
11459
|
+
function topology(items) {
|
|
11460
|
+
const byId = new Map(items.map((item) => [item.id, item]));
|
|
11461
|
+
const rankOf = /* @__PURE__ */ new Map();
|
|
11462
|
+
const visiting = /* @__PURE__ */ new Set();
|
|
11463
|
+
const place = (id) => {
|
|
11464
|
+
const known = rankOf.get(id);
|
|
11465
|
+
if (known !== void 0) return known;
|
|
11466
|
+
if (visiting.has(id)) return 0;
|
|
11467
|
+
visiting.add(id);
|
|
11468
|
+
const prerequisites = requiresOf(byId.get(id) ?? {
|
|
11469
|
+
id,
|
|
11470
|
+
kind: "deliverable",
|
|
11471
|
+
text: "",
|
|
11472
|
+
review: "accepted",
|
|
11473
|
+
lifecycle: "current"
|
|
11474
|
+
}).filter((prerequisiteId) => byId.has(prerequisiteId));
|
|
11475
|
+
const rank = prerequisites.length === 0 ? 0 : Math.max(...prerequisites.map(place)) + 1;
|
|
11476
|
+
visiting.delete(id);
|
|
11477
|
+
rankOf.set(id, rank);
|
|
11478
|
+
return rank;
|
|
11479
|
+
};
|
|
11480
|
+
for (const item of items) place(item.id);
|
|
11481
|
+
const byRank = /* @__PURE__ */ new Map();
|
|
11482
|
+
for (const item of items) {
|
|
11483
|
+
const rank = rankOf.get(item.id) ?? 0;
|
|
11484
|
+
const rows = byRank.get(rank) ?? [];
|
|
11485
|
+
rows.push(item);
|
|
11486
|
+
byRank.set(rank, rows);
|
|
11487
|
+
}
|
|
11488
|
+
const out = /* @__PURE__ */ new Map();
|
|
11489
|
+
const order = [];
|
|
11490
|
+
for (const rank of [...byRank.keys()].sort((a, b) => a - b)) (byRank.get(rank) ?? []).slice().sort((a, b) => (a.order ?? 0) - (b.order ?? 0) || a.id.localeCompare(b.id)).forEach((item, index) => {
|
|
11491
|
+
const status = statusFor(item, byId);
|
|
11492
|
+
out.set(item.id, {
|
|
11493
|
+
rank,
|
|
11494
|
+
order: index,
|
|
11495
|
+
localKey: `D${order.length + 1}`,
|
|
11496
|
+
prerequisiteStatus: status.prerequisiteStatus,
|
|
11497
|
+
executionDisplay: status.executionDisplay
|
|
11498
|
+
});
|
|
11499
|
+
order.push(item.id);
|
|
11500
|
+
});
|
|
11501
|
+
return {
|
|
11502
|
+
byId: out,
|
|
11503
|
+
order
|
|
11504
|
+
};
|
|
11505
|
+
}
|
|
11506
|
+
function buildRelationGraph(input) {
|
|
11507
|
+
const committed = input.committed;
|
|
11508
|
+
const projected = input.projected;
|
|
11509
|
+
const showSupersedes = input.showSupersedes !== false;
|
|
11510
|
+
const committedActive = committed.filter(active);
|
|
11511
|
+
const projectedActive = projected.filter(active);
|
|
11512
|
+
const committedTopology = topology(committedActive);
|
|
11513
|
+
const projectedTopology = topology(projectedActive);
|
|
11514
|
+
const committedById = new Map(committedActive.map((item) => [item.id, item]));
|
|
11515
|
+
const projectedById = new Map(projectedActive.map((item) => [item.id, item]));
|
|
11516
|
+
const nodes = [];
|
|
11517
|
+
const allExecutionIds = /* @__PURE__ */ new Set([...committedById.keys(), ...projectedById.keys()]);
|
|
11518
|
+
for (const id of allExecutionIds) {
|
|
11519
|
+
const before = committedById.get(id);
|
|
11520
|
+
const after = projectedById.get(id);
|
|
11521
|
+
const state = before === void 0 ? "staged-added" : after === void 0 ? "staged-removed" : !sameSet(requiresOf(before), requiresOf(after)) || before.progress !== after.progress ? "staged-changed" : "unchanged";
|
|
11522
|
+
const source = after ?? before;
|
|
11523
|
+
if (source === void 0) continue;
|
|
11524
|
+
const projectedTopo = projectedTopology.byId.get(id);
|
|
11525
|
+
const committedTopo = committedTopology.byId.get(id);
|
|
11526
|
+
const topo = projectedTopo ?? committedTopo;
|
|
11527
|
+
nodes.push({
|
|
11528
|
+
id,
|
|
11529
|
+
lane: "execution",
|
|
11530
|
+
localKey: topo?.localKey,
|
|
11531
|
+
text: source.text,
|
|
11532
|
+
rank: topo?.rank,
|
|
11533
|
+
order: topo?.order ?? 0,
|
|
11534
|
+
groupRank: void 0,
|
|
11535
|
+
progress: source.progress,
|
|
11536
|
+
executionDisplay: topo?.executionDisplay,
|
|
11537
|
+
prerequisiteStatus: topo?.prerequisiteStatus,
|
|
11538
|
+
state
|
|
11539
|
+
});
|
|
11540
|
+
}
|
|
11541
|
+
const committedPending = new Map(committed.filter(pending).map((item) => [item.id, item]));
|
|
11542
|
+
const projectedPending = new Map(projected.filter(pending).map((item) => [item.id, item]));
|
|
11543
|
+
const executionIds = new Set(nodes.map((node) => node.id));
|
|
11544
|
+
const referenced = /* @__PURE__ */ new Set();
|
|
11545
|
+
for (const item of projectedPending.values()) for (const id of proposedOf(item)) referenced.add(id);
|
|
11546
|
+
const nextCandidateOrder = () => nodes.filter((node) => node.lane === "candidate").length;
|
|
11547
|
+
for (const [id, item] of projectedPending) {
|
|
11548
|
+
if (proposedOf(item).length === 0 && !referenced.has(id)) continue;
|
|
11549
|
+
const targetRanks = proposedOf(item).map((target) => projectedTopology.byId.get(target)?.rank).filter((rank) => rank !== void 0);
|
|
11550
|
+
nodes.push({
|
|
11551
|
+
id,
|
|
11552
|
+
lane: "candidate",
|
|
11553
|
+
localKey: void 0,
|
|
11554
|
+
text: item.text,
|
|
11555
|
+
rank: void 0,
|
|
11556
|
+
order: item.order ?? nextCandidateOrder(),
|
|
11557
|
+
groupRank: targetRanks.length ? Math.max(...targetRanks) : Number.MAX_SAFE_INTEGER,
|
|
11558
|
+
progress: void 0,
|
|
11559
|
+
executionDisplay: void 0,
|
|
11560
|
+
prerequisiteStatus: void 0,
|
|
11561
|
+
state: committedPending.has(id) ? "unchanged" : "staged-added"
|
|
11562
|
+
});
|
|
11563
|
+
}
|
|
11564
|
+
for (const [id, item] of committedPending) {
|
|
11565
|
+
if (projectedPending.has(id) || executionIds.has(id)) continue;
|
|
11566
|
+
nodes.push({
|
|
11567
|
+
id,
|
|
11568
|
+
lane: "candidate",
|
|
11569
|
+
localKey: void 0,
|
|
11570
|
+
text: item.text,
|
|
11571
|
+
rank: void 0,
|
|
11572
|
+
order: item.order ?? nextCandidateOrder(),
|
|
11573
|
+
groupRank: Number.MAX_SAFE_INTEGER,
|
|
11574
|
+
progress: void 0,
|
|
11575
|
+
executionDisplay: void 0,
|
|
11576
|
+
prerequisiteStatus: void 0,
|
|
11577
|
+
state: "staged-removed"
|
|
11578
|
+
});
|
|
11579
|
+
}
|
|
11580
|
+
const pendingIds = new Set(projectedPending.keys());
|
|
11581
|
+
const cycleIds = /* @__PURE__ */ new Set();
|
|
11582
|
+
const visitState = /* @__PURE__ */ new Map();
|
|
11583
|
+
const stack = [];
|
|
11584
|
+
const visit = (id) => {
|
|
11585
|
+
const state = visitState.get(id) ?? 0;
|
|
11586
|
+
if (state === 2) return;
|
|
11587
|
+
if (state === 1) {
|
|
11588
|
+
const index = stack.indexOf(id);
|
|
11589
|
+
if (index >= 0) for (const member of stack.slice(index)) cycleIds.add(member);
|
|
11590
|
+
return;
|
|
11591
|
+
}
|
|
11592
|
+
visitState.set(id, 1);
|
|
11593
|
+
stack.push(id);
|
|
11594
|
+
for (const target of proposedOf(projectedPending.get(id) ?? {
|
|
11595
|
+
id,
|
|
11596
|
+
kind: "deliverable",
|
|
11597
|
+
text: "",
|
|
11598
|
+
review: "pending",
|
|
11599
|
+
lifecycle: "current"
|
|
11600
|
+
})) if (pendingIds.has(target)) visit(target);
|
|
11601
|
+
stack.pop();
|
|
11602
|
+
visitState.set(id, 2);
|
|
11603
|
+
};
|
|
11604
|
+
for (const id of pendingIds) visit(id);
|
|
11605
|
+
const candidateRankCache = /* @__PURE__ */ new Map();
|
|
11606
|
+
const candidateRank = (id) => {
|
|
11607
|
+
if (cycleIds.has(id)) return 0;
|
|
11608
|
+
const cached = candidateRankCache.get(id);
|
|
11609
|
+
if (cached !== void 0) return cached;
|
|
11610
|
+
if (!pendingIds.has(id)) return 0;
|
|
11611
|
+
const item = projectedPending.get(id);
|
|
11612
|
+
if (item === void 0) return 0;
|
|
11613
|
+
const activeBase = Math.max(0, ...proposedOf(item).map((target) => projectedTopology.byId.get(target)?.rank).filter((rank) => rank !== void 0));
|
|
11614
|
+
const pendingPredecessors = proposedOf(item).filter((target) => pendingIds.has(target));
|
|
11615
|
+
const rank = activeBase + (pendingPredecessors.length === 0 ? 0 : 1 + Math.max(...pendingPredecessors.map(candidateRank)));
|
|
11616
|
+
candidateRankCache.set(id, rank);
|
|
11617
|
+
return rank;
|
|
11618
|
+
};
|
|
11619
|
+
for (let index = 0; index < nodes.length; index += 1) {
|
|
11620
|
+
const node = nodes[index];
|
|
11621
|
+
if (node?.lane !== "candidate" || !pendingIds.has(node.id)) continue;
|
|
11622
|
+
nodes[index] = {
|
|
11623
|
+
...node,
|
|
11624
|
+
groupRank: candidateRank(node.id),
|
|
11625
|
+
candidateCycle: cycleIds.has(node.id) || proposedOf(projectedPending.get(node.id) ?? {
|
|
11626
|
+
id: node.id,
|
|
11627
|
+
kind: "deliverable",
|
|
11628
|
+
text: "",
|
|
11629
|
+
review: "pending",
|
|
11630
|
+
lifecycle: "current"
|
|
11631
|
+
}).some((target) => pendingIds.has(target) && cycleIds.has(target))
|
|
11632
|
+
};
|
|
11633
|
+
}
|
|
11634
|
+
const edges = [];
|
|
11635
|
+
const committedPairs = /* @__PURE__ */ new Set();
|
|
11636
|
+
for (const item of committedActive) for (const from of requiresOf(item)) committedPairs.add(`${from}→${item.id}`);
|
|
11637
|
+
const projectedPairs = /* @__PURE__ */ new Set();
|
|
11638
|
+
for (const item of projectedActive) for (const from of requiresOf(item)) projectedPairs.add(`${from}→${item.id}`);
|
|
11639
|
+
for (const pair of /* @__PURE__ */ new Set([...committedPairs, ...projectedPairs])) {
|
|
11640
|
+
const [from = "", to = ""] = pair.split("→");
|
|
11641
|
+
const inCommitted = committedPairs.has(pair);
|
|
11642
|
+
const inProjected = projectedPairs.has(pair);
|
|
11643
|
+
edges.push({
|
|
11644
|
+
from,
|
|
11645
|
+
to,
|
|
11646
|
+
kind: "requires",
|
|
11647
|
+
state: inCommitted && inProjected ? "committed" : inProjected ? "staged-added" : "staged-removed",
|
|
11648
|
+
editable: true,
|
|
11649
|
+
focusable: true
|
|
11650
|
+
});
|
|
11651
|
+
}
|
|
11652
|
+
for (const item of projectedPending.values()) for (const from of proposedOf(item)) edges.push({
|
|
11653
|
+
from,
|
|
11654
|
+
to: item.id,
|
|
11655
|
+
kind: "proposed",
|
|
11656
|
+
state: "committed",
|
|
11657
|
+
editable: false,
|
|
11658
|
+
focusable: true,
|
|
11659
|
+
targetProposalId: item.id
|
|
11660
|
+
});
|
|
11661
|
+
const committedAll = new Map(committed.map((item) => [item.id, item]));
|
|
11662
|
+
const projectedAll = new Map(projected.map((item) => [item.id, item]));
|
|
11663
|
+
const pairsOf = (items) => {
|
|
11664
|
+
const out = /* @__PURE__ */ new Set();
|
|
11665
|
+
for (const item of items) {
|
|
11666
|
+
if (item.supersedes !== void 0) out.add(`${item.supersedes}→${item.id}`);
|
|
11667
|
+
if (item.supersededBy !== void 0) out.add(`${item.id}→${item.supersededBy}`);
|
|
11668
|
+
}
|
|
11669
|
+
return out;
|
|
11670
|
+
};
|
|
11671
|
+
const committedSupersedes = pairsOf(committed);
|
|
11672
|
+
const projectedSupersedes = pairsOf(projected);
|
|
11673
|
+
const supersedesPairs = /* @__PURE__ */ new Set([...committedSupersedes, ...projectedSupersedes]);
|
|
11674
|
+
const visibleIds = new Set(nodes.map((node) => node.id));
|
|
11675
|
+
const committedActiveIds = new Set(committedActive.map((item) => item.id));
|
|
11676
|
+
const projectedActiveIds = new Set(projectedActive.map((item) => item.id));
|
|
11677
|
+
if (showSupersedes) {
|
|
11678
|
+
const endpoints = /* @__PURE__ */ new Set();
|
|
11679
|
+
for (const pair of supersedesPairs) for (const id of pair.split("→")) endpoints.add(id);
|
|
11680
|
+
[...endpoints].filter((id) => !visibleIds.has(id)).filter((id) => !committedActiveIds.has(id) && !projectedActiveIds.has(id)).filter((id) => committedAll.has(id) || projectedAll.has(id)).sort().forEach((id, index) => {
|
|
11681
|
+
const item = projectedAll.get(id) ?? committedAll.get(id);
|
|
11682
|
+
if (item === void 0) return;
|
|
11683
|
+
nodes.push({
|
|
11684
|
+
id,
|
|
11685
|
+
lane: "history",
|
|
11686
|
+
ghost: true,
|
|
11687
|
+
localKey: void 0,
|
|
11688
|
+
text: item.text,
|
|
11689
|
+
rank: void 0,
|
|
11690
|
+
order: index,
|
|
11691
|
+
groupRank: void 0,
|
|
11692
|
+
progress: void 0,
|
|
11693
|
+
executionDisplay: void 0,
|
|
11694
|
+
prerequisiteStatus: void 0,
|
|
11695
|
+
state: "unchanged"
|
|
11696
|
+
});
|
|
11697
|
+
visibleIds.add(id);
|
|
11698
|
+
});
|
|
11699
|
+
}
|
|
11700
|
+
for (const pair of [...supersedesPairs].sort()) {
|
|
11701
|
+
if (!showSupersedes) break;
|
|
11702
|
+
const [from = "", to = ""] = pair.split("→");
|
|
11703
|
+
if (!visibleIds.has(from) || !visibleIds.has(to)) continue;
|
|
11704
|
+
const inCommitted = committedSupersedes.has(pair);
|
|
11705
|
+
const inProjected = projectedSupersedes.has(pair);
|
|
11706
|
+
edges.push({
|
|
11707
|
+
from,
|
|
11708
|
+
to,
|
|
11709
|
+
kind: "supersedes",
|
|
11710
|
+
state: inCommitted && inProjected ? "committed" : inProjected ? "staged-added" : "staged-removed",
|
|
11711
|
+
editable: false,
|
|
11712
|
+
focusable: true
|
|
11713
|
+
});
|
|
11714
|
+
}
|
|
11715
|
+
return {
|
|
11716
|
+
nodes,
|
|
11717
|
+
edges,
|
|
11718
|
+
topoOrder: projectedTopology.order,
|
|
11719
|
+
committedTopoOrder: committedTopology.order,
|
|
11720
|
+
navigables: nodes.length + edges.length
|
|
11721
|
+
};
|
|
11722
|
+
}
|
|
11723
|
+
function labelLines(text) {
|
|
11724
|
+
let weight = 0;
|
|
11725
|
+
for (const character of text) weight += /[\u2e80-\u9fff\uf900-\ufaff\uff00-\uffef]/u.test(character) ? 1 : .5;
|
|
11726
|
+
return weight <= LINE_CAPACITY ? 1 : 2;
|
|
11727
|
+
}
|
|
11728
|
+
function defaultFocus(model) {
|
|
11729
|
+
const execution = model.nodes.filter((node) => node.lane === "execution");
|
|
11730
|
+
const order = (nodes) => nodes.slice().sort((a, b) => (a.rank ?? 999) - (b.rank ?? 999) || (a.order ?? 0) - (b.order ?? 0) || a.id.localeCompare(b.id));
|
|
11731
|
+
if (execution.length === 0) {
|
|
11732
|
+
const candidate = model.nodes.filter((node) => node.lane === "candidate");
|
|
11733
|
+
if (candidate.length > 0) return order(candidate)[0]?.id;
|
|
11734
|
+
return order(model.nodes.filter((node) => node.lane === "history"))[0]?.id;
|
|
11735
|
+
}
|
|
11736
|
+
const conflict = order(execution.filter((node) => node.prerequisiteStatus === "dependency-conflict" || node.executionDisplay === "dependency-conflict"));
|
|
11737
|
+
if (conflict.length > 0) return conflict[0]?.id;
|
|
11738
|
+
const waiting = order(execution.filter((node) => node.executionDisplay === "waiting"));
|
|
11739
|
+
if (waiting.length > 0) return waiting[0]?.id;
|
|
11740
|
+
return order(execution)[0]?.id;
|
|
11741
|
+
}
|
|
11742
|
+
function layoutRelationGraph(model, options = {}) {
|
|
11743
|
+
const depth = options.depth ?? 1;
|
|
11744
|
+
const focusId = options.focusId !== void 0 ? options.focusId : defaultFocus(model);
|
|
11745
|
+
let visible = [...model.nodes];
|
|
11746
|
+
let visibleEdges = [...model.edges];
|
|
11747
|
+
if (model.edges.length === 0) {
|
|
11748
|
+
if (visible.length > GRAPH.isolatedNodeLimit) return {
|
|
11749
|
+
nodes: [],
|
|
11750
|
+
edges: [],
|
|
11751
|
+
width: 0,
|
|
11752
|
+
height: 0,
|
|
11753
|
+
traversal: [],
|
|
11754
|
+
navigables: visible.length,
|
|
11755
|
+
focusId,
|
|
11756
|
+
depth,
|
|
11757
|
+
degraded: {
|
|
11758
|
+
supersedesHidden: options.supersedesHidden === true,
|
|
11759
|
+
depthReduced: false,
|
|
11760
|
+
hidden: true,
|
|
11761
|
+
isolatedTooMany: true
|
|
11762
|
+
}
|
|
11763
|
+
};
|
|
11764
|
+
const ordered = visible.slice().sort((a, b) => {
|
|
11765
|
+
const lane = (value) => value.lane === "execution" ? 0 : value.lane === "candidate" ? 1 : 2;
|
|
11766
|
+
return lane(a) - lane(b) || a.order - b.order || a.id.localeCompare(b.id);
|
|
11767
|
+
});
|
|
11768
|
+
const columns = Math.min(3, Math.max(1, ordered.length));
|
|
11769
|
+
const placed = ordered.map((node, index) => {
|
|
11770
|
+
const lines = labelLines(node.text);
|
|
11771
|
+
return {
|
|
11772
|
+
...node,
|
|
11773
|
+
col: index % columns,
|
|
11774
|
+
x: index % columns * GRAPH.rankPitchEm,
|
|
11775
|
+
y: Math.floor(index / columns) * GRAPH.rowPitchEm,
|
|
11776
|
+
w: GRAPH.nodeWidthEm,
|
|
11777
|
+
h: GRAPH.nodeHeightEm[lines],
|
|
11778
|
+
labelLines: lines
|
|
11779
|
+
};
|
|
11780
|
+
});
|
|
11781
|
+
return {
|
|
11782
|
+
nodes: placed,
|
|
11783
|
+
edges: [],
|
|
11784
|
+
width: Math.max(0, ...placed.map((node) => node.x + node.w)),
|
|
11785
|
+
height: Math.max(0, ...placed.map((node) => node.y + node.h)),
|
|
11786
|
+
traversal: placed.map((node) => node.id),
|
|
11787
|
+
navigables: placed.length,
|
|
11788
|
+
focusId,
|
|
11789
|
+
depth,
|
|
11790
|
+
degraded: {
|
|
11791
|
+
supersedesHidden: options.supersedesHidden === true,
|
|
11792
|
+
depthReduced: false,
|
|
11793
|
+
hidden: false,
|
|
11794
|
+
isolatedTooMany: false
|
|
11795
|
+
}
|
|
11796
|
+
};
|
|
11797
|
+
}
|
|
11798
|
+
if (focusId !== void 0 && model.edges.length > 0) {
|
|
11799
|
+
const keep = /* @__PURE__ */ new Set([focusId]);
|
|
11800
|
+
let frontier = [focusId];
|
|
11801
|
+
for (let distance = 0; distance < depth; distance += 1) {
|
|
11802
|
+
const next = [];
|
|
11803
|
+
for (const id of frontier) for (const edge of model.edges) {
|
|
11804
|
+
if (edge.from === id && !keep.has(edge.to)) {
|
|
11805
|
+
keep.add(edge.to);
|
|
11806
|
+
next.push(edge.to);
|
|
11807
|
+
}
|
|
11808
|
+
if (edge.to === id && !keep.has(edge.from)) {
|
|
11809
|
+
keep.add(edge.from);
|
|
11810
|
+
next.push(edge.from);
|
|
11811
|
+
}
|
|
11812
|
+
}
|
|
11813
|
+
frontier = next;
|
|
11814
|
+
}
|
|
11815
|
+
visible = visible.filter((node) => keep.has(node.id));
|
|
11816
|
+
visibleEdges = visibleEdges.filter((edge) => keep.has(edge.from) && keep.has(edge.to));
|
|
11817
|
+
}
|
|
11818
|
+
if (options.supersedesHidden === true) {
|
|
11819
|
+
visible = visible.filter((node) => node.lane !== "history");
|
|
11820
|
+
visibleEdges = visibleEdges.filter((edge) => edge.kind !== "supersedes");
|
|
11821
|
+
}
|
|
11822
|
+
const navigables = visible.length + visibleEdges.length;
|
|
11823
|
+
const hasHistory = visible.some((node) => node.lane === "history");
|
|
11824
|
+
if (navigables > GRAPH.navigationLimit && hasHistory && options.supersedesHidden !== true) {
|
|
11825
|
+
const inner = layoutRelationGraph(model, {
|
|
11826
|
+
...options,
|
|
11827
|
+
supersedesHidden: true
|
|
11828
|
+
});
|
|
11829
|
+
return {
|
|
11830
|
+
...inner,
|
|
11831
|
+
degraded: {
|
|
11832
|
+
...inner.degraded,
|
|
11833
|
+
supersedesHidden: true
|
|
11834
|
+
}
|
|
11835
|
+
};
|
|
11836
|
+
}
|
|
11837
|
+
if (navigables > GRAPH.navigationLimit && depth > 1) {
|
|
11838
|
+
const inner = layoutRelationGraph(model, {
|
|
11839
|
+
...options,
|
|
11840
|
+
depth: 1
|
|
11841
|
+
});
|
|
11842
|
+
return {
|
|
11843
|
+
...inner,
|
|
11844
|
+
degraded: {
|
|
11845
|
+
...inner.degraded,
|
|
11846
|
+
depthReduced: true
|
|
11847
|
+
}
|
|
11848
|
+
};
|
|
11849
|
+
}
|
|
11850
|
+
if (navigables > GRAPH.navigationLimit) return {
|
|
11851
|
+
nodes: [],
|
|
11852
|
+
edges: [],
|
|
11853
|
+
width: 0,
|
|
11854
|
+
height: 0,
|
|
11855
|
+
traversal: [],
|
|
11856
|
+
navigables,
|
|
11857
|
+
focusId,
|
|
11858
|
+
depth,
|
|
11859
|
+
degraded: {
|
|
11860
|
+
supersedesHidden: options.supersedesHidden === true,
|
|
11861
|
+
depthReduced: false,
|
|
11862
|
+
hidden: true,
|
|
11863
|
+
isolatedTooMany: false
|
|
11864
|
+
}
|
|
11865
|
+
};
|
|
11866
|
+
const placed = [];
|
|
11867
|
+
const rankRows = /* @__PURE__ */ new Map();
|
|
11868
|
+
for (const node of visible.filter((value) => value.lane === "execution")) {
|
|
11869
|
+
const rank = node.rank ?? 0;
|
|
11870
|
+
const rows = rankRows.get(rank) ?? [];
|
|
11871
|
+
rows.push(node);
|
|
11872
|
+
rankRows.set(rank, rows);
|
|
11873
|
+
}
|
|
11874
|
+
let rowCount = 1;
|
|
11875
|
+
for (const rows of rankRows.values()) rowCount = Math.max(rowCount, rows.length);
|
|
11876
|
+
const maxExecutionHeight = rankRows.size === 0 ? GRAPH.nodeHeightEm[1] : Math.max(...[...rankRows.values()].flat().map((node) => GRAPH.nodeHeightEm[labelLines(node.text)]));
|
|
11877
|
+
const executionHeight = (rowCount - 1) * GRAPH.rowPitchEm + maxExecutionHeight + GRAPH.candidateGapEm;
|
|
11878
|
+
const sortedRanks = [...rankRows.keys()].sort((a, b) => a - b);
|
|
11879
|
+
const minimumRank = sortedRanks.length > 0 ? sortedRanks[0] ?? 0 : 0;
|
|
11880
|
+
const maxColumn = sortedRanks.length > 0 ? (sortedRanks[sortedRanks.length - 1] ?? 0) - minimumRank : -1;
|
|
11881
|
+
for (const rank of sortedRanks) (rankRows.get(rank) ?? []).slice().sort((a, b) => a.order - b.order || a.id.localeCompare(b.id)).forEach((node, index) => {
|
|
11882
|
+
const lines = labelLines(node.text);
|
|
11883
|
+
placed.push({
|
|
11884
|
+
...node,
|
|
11885
|
+
col: rank - minimumRank,
|
|
11886
|
+
x: (rank - minimumRank) * GRAPH.rankPitchEm,
|
|
11887
|
+
y: index * GRAPH.rowPitchEm,
|
|
11888
|
+
w: GRAPH.nodeWidthEm,
|
|
11889
|
+
h: GRAPH.nodeHeightEm[lines],
|
|
11890
|
+
labelLines: lines
|
|
11891
|
+
});
|
|
11892
|
+
});
|
|
11893
|
+
const candidates = visible.filter((node) => node.lane === "candidate");
|
|
11894
|
+
const candidateColumns = /* @__PURE__ */ new Map();
|
|
11895
|
+
for (const node of candidates) {
|
|
11896
|
+
const column = node.groupRank === Number.MAX_SAFE_INTEGER ? maxColumn + 1 : Math.max(0, (node.groupRank ?? 0) - minimumRank);
|
|
11897
|
+
const rows = candidateColumns.get(column) ?? [];
|
|
11898
|
+
rows.push(node);
|
|
11899
|
+
candidateColumns.set(column, rows);
|
|
11900
|
+
}
|
|
11901
|
+
for (const [column, rows] of candidateColumns) {
|
|
11902
|
+
rows.sort((a, b) => a.order - b.order || a.id.localeCompare(b.id));
|
|
11903
|
+
rows.forEach((node, index) => {
|
|
11904
|
+
const lines = labelLines(node.text);
|
|
11905
|
+
placed.push({
|
|
11906
|
+
...node,
|
|
11907
|
+
col: column,
|
|
11908
|
+
x: column * GRAPH.rankPitchEm,
|
|
11909
|
+
y: executionHeight + index * GRAPH.rowPitchEm,
|
|
11910
|
+
w: GRAPH.nodeWidthEm,
|
|
11911
|
+
h: GRAPH.nodeHeightEm[lines],
|
|
11912
|
+
labelLines: lines
|
|
11913
|
+
});
|
|
11914
|
+
});
|
|
11915
|
+
}
|
|
11916
|
+
const history = visible.filter((node) => node.lane === "history");
|
|
11917
|
+
if (history.length > 0) {
|
|
11918
|
+
const columnById = new Map(placed.filter((node) => node.lane !== "history").map((node) => [node.id, node.col]));
|
|
11919
|
+
const supersedesEdges = visibleEdges.filter((edge) => edge.kind === "supersedes");
|
|
11920
|
+
const columnOf = (id) => {
|
|
11921
|
+
const seen = /* @__PURE__ */ new Set([id]);
|
|
11922
|
+
const queue = [id];
|
|
11923
|
+
while (queue.length > 0) {
|
|
11924
|
+
const current = queue.shift();
|
|
11925
|
+
if (current === void 0) break;
|
|
11926
|
+
for (const edge of supersedesEdges) {
|
|
11927
|
+
const next = edge.from === current ? edge.to : edge.to === current ? edge.from : void 0;
|
|
11928
|
+
if (next === void 0 || seen.has(next)) continue;
|
|
11929
|
+
const column = columnById.get(next);
|
|
11930
|
+
if (column !== void 0) return column;
|
|
11931
|
+
seen.add(next);
|
|
11932
|
+
queue.push(next);
|
|
11933
|
+
}
|
|
11934
|
+
}
|
|
11935
|
+
return 0;
|
|
11936
|
+
};
|
|
11937
|
+
const candidatePlaced = placed.filter((node) => node.lane === "candidate");
|
|
11938
|
+
const historyTop = candidatePlaced.length > 0 ? Math.max(...candidatePlaced.map((node) => node.y + node.h)) + GRAPH.historyGapEm : executionHeight;
|
|
11939
|
+
const historyColumns = /* @__PURE__ */ new Map();
|
|
11940
|
+
for (const node of history) {
|
|
11941
|
+
const column = columnOf(node.id);
|
|
11942
|
+
const rows = historyColumns.get(column) ?? [];
|
|
11943
|
+
rows.push(node);
|
|
11944
|
+
historyColumns.set(column, rows);
|
|
11945
|
+
}
|
|
11946
|
+
for (const [column, rows] of historyColumns) {
|
|
11947
|
+
rows.sort((a, b) => a.order - b.order || a.id.localeCompare(b.id));
|
|
11948
|
+
rows.forEach((node, index) => {
|
|
11949
|
+
const lines = labelLines(node.text);
|
|
11950
|
+
placed.push({
|
|
11951
|
+
...node,
|
|
11952
|
+
col: column,
|
|
11953
|
+
x: column * GRAPH.rankPitchEm,
|
|
11954
|
+
y: historyTop + index * GRAPH.rowPitchEm,
|
|
11955
|
+
w: GRAPH.nodeWidthEm,
|
|
11956
|
+
h: GRAPH.nodeHeightEm[lines],
|
|
11957
|
+
labelLines: lines
|
|
11958
|
+
});
|
|
11959
|
+
});
|
|
11960
|
+
}
|
|
11961
|
+
}
|
|
11962
|
+
const byId = new Map(placed.map((node) => [node.id, node]));
|
|
11963
|
+
const edges = visibleEdges.filter((edge) => byId.has(edge.from) && byId.has(edge.to)).map((edge) => {
|
|
11964
|
+
const from = byId.get(edge.from);
|
|
11965
|
+
const to = byId.get(edge.to);
|
|
11966
|
+
const x1 = from.x + from.w;
|
|
11967
|
+
const y1 = from.y + from.h / 2;
|
|
11968
|
+
const x2 = to.x;
|
|
11969
|
+
const y2 = to.y + to.h / 2;
|
|
11970
|
+
const middle = (x1 + x2) / 2;
|
|
11971
|
+
return {
|
|
11972
|
+
...edge,
|
|
11973
|
+
key: `e:${edge.kind}:${edge.from}→${edge.to}`,
|
|
11974
|
+
path: `M ${x1} ${y1} C ${middle} ${y1}, ${middle} ${y2}, ${x2} ${y2}`,
|
|
11975
|
+
labelAt: {
|
|
11976
|
+
x: middle,
|
|
11977
|
+
y: (y1 + y2) / 2 - .4
|
|
11978
|
+
}
|
|
11979
|
+
};
|
|
11980
|
+
});
|
|
11981
|
+
const traversal = [];
|
|
11982
|
+
const executionNodes = placed.filter((node) => node.lane === "execution").sort((a, b) => a.col - b.col || a.order - b.order || a.id.localeCompare(b.id));
|
|
11983
|
+
const candidateNodes = placed.filter((node) => node.lane === "candidate").sort((a, b) => a.col - b.col || a.order - b.order || a.id.localeCompare(b.id));
|
|
11984
|
+
const addWithEdges = (node) => {
|
|
11985
|
+
if (!traversal.includes(node.id)) traversal.push(node.id);
|
|
11986
|
+
edges.filter((edge) => edge.from === node.id || edge.kind === "proposed" && edge.to === node.id).sort((a, b) => {
|
|
11987
|
+
const left = byId.get(a.to);
|
|
11988
|
+
const right = byId.get(b.to);
|
|
11989
|
+
return (left?.col ?? 999) - (right?.col ?? 999) || (left?.order ?? 999) - (right?.order ?? 999);
|
|
11990
|
+
}).forEach((edge) => {
|
|
11991
|
+
if (!traversal.includes(edge.key)) traversal.push(edge.key);
|
|
11992
|
+
});
|
|
11993
|
+
};
|
|
11994
|
+
for (const node of executionNodes) addWithEdges(node);
|
|
11995
|
+
for (const node of candidateNodes) addWithEdges(node);
|
|
11996
|
+
const historyNodes = placed.filter((node) => node.lane === "history").sort((a, b) => a.col - b.col || a.order - b.order || a.id.localeCompare(b.id));
|
|
11997
|
+
for (const node of historyNodes) addWithEdges(node);
|
|
11998
|
+
return {
|
|
11999
|
+
nodes: placed,
|
|
12000
|
+
edges,
|
|
12001
|
+
width: Math.max(0, ...placed.map((node) => node.x + node.w)),
|
|
12002
|
+
height: Math.max(0, ...placed.map((node) => node.y + node.h)),
|
|
12003
|
+
traversal,
|
|
12004
|
+
navigables,
|
|
12005
|
+
focusId,
|
|
12006
|
+
depth,
|
|
12007
|
+
degraded: {
|
|
12008
|
+
supersedesHidden: options.supersedesHidden === true,
|
|
12009
|
+
depthReduced: false,
|
|
12010
|
+
hidden: false,
|
|
12011
|
+
isolatedTooMany: false
|
|
12012
|
+
}
|
|
12013
|
+
};
|
|
12014
|
+
}
|
|
12015
|
+
function graphNavigationTarget(layout, currentKey, key) {
|
|
12016
|
+
const nodes = new Map(layout.nodes.map((node) => [node.id, node]));
|
|
12017
|
+
const edges = new Map(layout.edges.map((edge) => [edge.key, edge]));
|
|
12018
|
+
const index = layout.traversal.indexOf(currentKey);
|
|
12019
|
+
if (index < 0) return null;
|
|
12020
|
+
if (key === "Home") return layout.traversal[0] ?? null;
|
|
12021
|
+
if (key === "End") return layout.traversal[layout.traversal.length - 1] ?? null;
|
|
12022
|
+
if (key === "BracketRight" || key === "PageDown") return layout.traversal[(index + 1) % layout.traversal.length] ?? null;
|
|
12023
|
+
if (key === "BracketLeft" || key === "PageUp") return layout.traversal[(index - 1 + layout.traversal.length) % layout.traversal.length] ?? null;
|
|
12024
|
+
const isEdge = currentKey.startsWith("e:");
|
|
12025
|
+
if (key === "ArrowLeft" || key === "ArrowRight") {
|
|
12026
|
+
if (isEdge) {
|
|
12027
|
+
const edge = edges.get(currentKey);
|
|
12028
|
+
if (edge === void 0 || edge.kind !== "requires") return null;
|
|
12029
|
+
return key === "ArrowRight" ? edge.to : edge.from;
|
|
12030
|
+
}
|
|
12031
|
+
const node = nodes.get(currentKey);
|
|
12032
|
+
if (node === void 0) return null;
|
|
12033
|
+
const candidates = (key === "ArrowRight" ? layout.edges.filter((edge) => edge.kind === "requires" && edge.from === currentKey).map((edge) => nodes.get(edge.to)) : layout.edges.filter((edge) => edge.kind === "requires" && edge.to === currentKey).map((edge) => nodes.get(edge.from))).filter((candidate) => candidate !== void 0);
|
|
12034
|
+
if (candidates.length === 0) return null;
|
|
12035
|
+
const sorted = candidates.slice().sort((a, b) => {
|
|
12036
|
+
return (a.rank ?? a.col) - (b.rank ?? b.col) || a.order - b.order || a.id.localeCompare(b.id);
|
|
12037
|
+
});
|
|
12038
|
+
const column = (candidate) => candidate.col;
|
|
12039
|
+
const currentColumn = node.col;
|
|
12040
|
+
if (key === "ArrowRight") return (sorted.filter((candidate) => column(candidate) > currentColumn || column(candidate) === currentColumn && candidate.order > node.order)[0] ?? sorted[0])?.id ?? null;
|
|
12041
|
+
return (sorted.filter((candidate) => column(candidate) < currentColumn || column(candidate) === currentColumn && candidate.order < node.order).reverse()[0] ?? sorted[sorted.length - 1])?.id ?? null;
|
|
12042
|
+
}
|
|
12043
|
+
const edge = isEdge ? edges.get(currentKey) : void 0;
|
|
12044
|
+
const node = nodes.get(isEdge ? edge?.to ?? "" : currentKey);
|
|
12045
|
+
if (node === void 0) return null;
|
|
12046
|
+
const sameLane = layout.nodes.filter((candidate) => candidate.lane === node.lane && candidate.col === node.col).sort((a, b) => a.order - b.order || a.id.localeCompare(b.id));
|
|
12047
|
+
if (sameLane.length < 2) return null;
|
|
12048
|
+
const currentIndex = sameLane.findIndex((candidate) => candidate.id === node.id);
|
|
12049
|
+
return (key === "ArrowDown" ? sameLane[(currentIndex + 1) % sameLane.length] : sameLane[(currentIndex - 1 + sameLane.length) % sameLane.length])?.id ?? null;
|
|
12050
|
+
}
|
|
12051
|
+
//#endregion
|
|
12052
|
+
//#region .build-ts/client/DependencyGraph.js
|
|
12053
|
+
function nodeName(node, t) {
|
|
12054
|
+
if (node.lane === "execution") {
|
|
12055
|
+
const status = t(`deps.status.${node.executionDisplay ?? "ready"}`);
|
|
12056
|
+
return `${node.localKey ?? ""} ${node.text} ${status}`.trim();
|
|
12057
|
+
}
|
|
12058
|
+
if (node.lane === "history") return t("deps.historyAria", { text: node.text });
|
|
12059
|
+
return t("deps.candidateAria", { text: node.text });
|
|
12060
|
+
}
|
|
12061
|
+
function edgeName(edge, model, t) {
|
|
12062
|
+
const from = model.nodes.find((node) => node.id === edge.from);
|
|
12063
|
+
const to = model.nodes.find((node) => node.id === edge.to);
|
|
12064
|
+
const left = from?.localKey ?? from?.text ?? edge.from;
|
|
12065
|
+
const right = to?.localKey ?? to?.text ?? edge.to;
|
|
12066
|
+
if (edge.kind === "proposed") return t("deps.proposedEdgeAria", {
|
|
12067
|
+
from: left,
|
|
12068
|
+
to: right
|
|
12069
|
+
});
|
|
12070
|
+
if (edge.kind === "supersedes") return t("deps.supersedesEdgeAria", {
|
|
12071
|
+
from: left,
|
|
12072
|
+
to: right
|
|
12073
|
+
});
|
|
12074
|
+
return t(edge.state === "staged-added" ? "deps.edgeAriaAdded" : edge.state === "staged-removed" ? "deps.edgeAriaRemoved" : "deps.edgeAria", {
|
|
12075
|
+
from: left,
|
|
12076
|
+
to: right
|
|
12077
|
+
});
|
|
12078
|
+
}
|
|
12079
|
+
function nodeClass(node) {
|
|
12080
|
+
return [
|
|
12081
|
+
"charter-graph__node",
|
|
12082
|
+
`is-${node.lane}`,
|
|
12083
|
+
node.ghost === true ? "is-ghost" : "",
|
|
12084
|
+
node.lane === "execution" ? `is-${node.executionDisplay ?? "unknown"}` : "",
|
|
12085
|
+
`is-${node.state}`
|
|
12086
|
+
].filter(Boolean).join(" ");
|
|
12087
|
+
}
|
|
12088
|
+
function edgeClass(edge) {
|
|
12089
|
+
return `charter-graph__edge is-${edge.kind} is-${edge.state}`;
|
|
12090
|
+
}
|
|
12091
|
+
function DependencyGraph({ layout, model, focusId, activeKey, depth, showSupersedes, editable, onFocus, onActiveKey, onDepth, onShowSupersedes, onStageRequires, onLocateList, onProposal, t }) {
|
|
12092
|
+
const groupRef = (0, react.useRef)(null);
|
|
12093
|
+
const key = activeKey ?? focusId ?? layout.traversal[0];
|
|
12094
|
+
const [inspector, setInspector] = (0, react.useState)(void 0);
|
|
12095
|
+
const [zoom, setZoom] = (0, react.useState)(1);
|
|
12096
|
+
const [dragError, setDragError] = (0, react.useState)(null);
|
|
12097
|
+
const selectedNode = inspector === void 0 ? void 0 : layout.nodes.find((node) => node.id === inspector);
|
|
12098
|
+
const selectedEdge = inspector === void 0 ? void 0 : layout.edges.find((edge) => edge.key === inspector);
|
|
12099
|
+
const activeNode = key === void 0 ? void 0 : layout.nodes.find((node) => node.id === key);
|
|
12100
|
+
const activeEdge = key === void 0 ? void 0 : layout.edges.find((edge) => edge.key === key);
|
|
12101
|
+
const inspectorLabel = selectedNode === void 0 ? selectedEdge === void 0 ? "" : edgeName(selectedEdge, model, t) : selectedNode.localKey ?? selectedNode.text;
|
|
12102
|
+
const liveLabel = activeNode === void 0 ? activeEdge === void 0 ? "" : edgeName(activeEdge, model, t) : nodeName(activeNode, t);
|
|
12103
|
+
(0, react.useEffect)(() => {
|
|
12104
|
+
if (key === void 0) return;
|
|
12105
|
+
if (!layout.traversal.includes(key)) {
|
|
12106
|
+
const next = layout.traversal[0];
|
|
12107
|
+
if (next !== void 0) onActiveKey(next);
|
|
12108
|
+
}
|
|
12109
|
+
}, [
|
|
12110
|
+
key,
|
|
12111
|
+
layout.traversal,
|
|
12112
|
+
onActiveKey
|
|
12113
|
+
]);
|
|
12114
|
+
const executionNodes = (0, react.useMemo)(() => layout.nodes.filter((node) => node.lane === "execution"), [layout.nodes]);
|
|
12115
|
+
const availableNodes = (0, react.useMemo)(() => model.nodes.filter((node) => node.lane === "execution"), [model.nodes]);
|
|
12116
|
+
const focusKey = (next) => {
|
|
12117
|
+
onActiveKey(next);
|
|
12118
|
+
(groupRef.current?.querySelector(`[data-graph-key="${CSS.escape(next)}"]`))?.focus();
|
|
12119
|
+
};
|
|
12120
|
+
const handleKeyDown = (event) => {
|
|
12121
|
+
if (event.target !== event.currentTarget && (event.key === "Enter" || event.key === " ")) return;
|
|
12122
|
+
if (event.key === "Escape") {
|
|
12123
|
+
event.preventDefault();
|
|
12124
|
+
event.stopPropagation();
|
|
12125
|
+
if (inspector !== void 0) setInspector(void 0);
|
|
12126
|
+
else document.querySelector(".charter-graph__skip")?.focus();
|
|
12127
|
+
return;
|
|
12128
|
+
}
|
|
12129
|
+
if ((event.key === "Delete" || event.key === "Backspace") && key !== void 0) {
|
|
12130
|
+
const edge = layout.edges.find((candidate) => candidate.key === key);
|
|
12131
|
+
if (edge?.kind === "requires" && edge.editable && editable) {
|
|
12132
|
+
event.preventDefault();
|
|
12133
|
+
event.stopPropagation();
|
|
12134
|
+
onStageRequires(edge.to, projectedRequires(edge.to).filter((id) => id !== edge.from));
|
|
12135
|
+
}
|
|
12136
|
+
return;
|
|
12137
|
+
}
|
|
12138
|
+
const next = graphNavigationTarget(layout, key ?? "", event.key);
|
|
12139
|
+
if (next === null || next === key) return;
|
|
12140
|
+
event.preventDefault();
|
|
12141
|
+
event.stopPropagation();
|
|
12142
|
+
focusKey(next);
|
|
12143
|
+
};
|
|
12144
|
+
const handleActivate = (targetKey) => {
|
|
12145
|
+
onActiveKey(targetKey);
|
|
12146
|
+
const node = layout.nodes.find((candidate) => candidate.id === targetKey);
|
|
12147
|
+
if (node !== void 0) {
|
|
12148
|
+
onFocus(node.id);
|
|
12149
|
+
setInspector(node.id);
|
|
12150
|
+
return;
|
|
12151
|
+
}
|
|
12152
|
+
const edge = layout.edges.find((candidate) => candidate.key === targetKey);
|
|
12153
|
+
if (edge?.kind === "proposed") {
|
|
12154
|
+
onProposal(edge.targetProposalId ?? edge.to);
|
|
12155
|
+
return;
|
|
12156
|
+
}
|
|
12157
|
+
setInspector(targetKey);
|
|
12158
|
+
};
|
|
12159
|
+
const removeRequires = (node, id) => {
|
|
12160
|
+
if (!editable) return;
|
|
12161
|
+
onStageRequires(node.id, projectedRequires(node.id).filter((value) => value !== id));
|
|
12162
|
+
};
|
|
12163
|
+
const projectedRequires = (id) => {
|
|
12164
|
+
return [...new Set(model.edges.filter((edge) => edge.kind === "requires" && edge.to === id && edge.state !== "staged-removed").map((edge) => edge.from))];
|
|
12165
|
+
};
|
|
12166
|
+
const addRequires = (node, prerequisiteId) => {
|
|
12167
|
+
if (!editable || prerequisiteId === "" || prerequisiteId === node.id) return;
|
|
12168
|
+
const current = projectedRequires(node.id);
|
|
12169
|
+
if (current.includes(prerequisiteId)) return;
|
|
12170
|
+
onStageRequires(node.id, [...current, prerequisiteId]);
|
|
12171
|
+
};
|
|
12172
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
12173
|
+
className: "charter-graph",
|
|
12174
|
+
"aria-labelledby": "charter-dependency-graph-title",
|
|
12175
|
+
children: [
|
|
12176
|
+
(0, react_jsx_runtime.jsx)("h4", {
|
|
12177
|
+
id: "charter-dependency-graph-title",
|
|
12178
|
+
className: "charter-sr-only",
|
|
12179
|
+
children: t("deps.graphTitle")
|
|
12180
|
+
}),
|
|
12181
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
12182
|
+
className: "charter-graph__toolbar",
|
|
12183
|
+
children: [
|
|
12184
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
12185
|
+
className: "charter-graph__control",
|
|
12186
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("deps.graphFocus") }), (0, react_jsx_runtime.jsx)("select", {
|
|
12187
|
+
"aria-label": t("deps.graphFocus"),
|
|
12188
|
+
value: focusId ?? "",
|
|
12189
|
+
onChange: (event) => {
|
|
12190
|
+
onFocus(event.target.value);
|
|
12191
|
+
onActiveKey(event.target.value);
|
|
12192
|
+
},
|
|
12193
|
+
children: executionNodes.map((node) => (0, react_jsx_runtime.jsxs)("option", {
|
|
12194
|
+
value: node.id,
|
|
12195
|
+
children: [
|
|
12196
|
+
node.localKey,
|
|
12197
|
+
" · ",
|
|
12198
|
+
node.text
|
|
12199
|
+
]
|
|
12200
|
+
}, node.id))
|
|
12201
|
+
})]
|
|
12202
|
+
}),
|
|
12203
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
12204
|
+
className: "charter-graph__control",
|
|
12205
|
+
children: [
|
|
12206
|
+
(0, react_jsx_runtime.jsx)("span", { children: t("deps.graphDepth") }),
|
|
12207
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
12208
|
+
type: "button",
|
|
12209
|
+
"aria-pressed": depth === 1,
|
|
12210
|
+
onClick: () => onDepth(1),
|
|
12211
|
+
children: t("deps.depth1")
|
|
12212
|
+
}),
|
|
12213
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
12214
|
+
type: "button",
|
|
12215
|
+
"aria-pressed": depth === 2,
|
|
12216
|
+
onClick: () => onDepth(2),
|
|
12217
|
+
children: t("deps.depth2")
|
|
12218
|
+
})
|
|
12219
|
+
]
|
|
12220
|
+
}),
|
|
12221
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
12222
|
+
className: "charter-graph__control charter-graph__check",
|
|
12223
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
12224
|
+
type: "checkbox",
|
|
12225
|
+
checked: showSupersedes,
|
|
12226
|
+
onChange: (event) => onShowSupersedes(event.target.checked)
|
|
12227
|
+
}), (0, react_jsx_runtime.jsx)("span", { children: t("deps.showSupersedes") })]
|
|
12228
|
+
}),
|
|
12229
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
12230
|
+
className: "charter-graph__control",
|
|
12231
|
+
children: [
|
|
12232
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
12233
|
+
type: "button",
|
|
12234
|
+
"aria-label": t("deps.zoomOut"),
|
|
12235
|
+
onClick: () => setZoom((value) => Math.max(.75, Math.round((value - .25) * 100) / 100)),
|
|
12236
|
+
children: "−"
|
|
12237
|
+
}),
|
|
12238
|
+
(0, react_jsx_runtime.jsxs)("button", {
|
|
12239
|
+
type: "button",
|
|
12240
|
+
"aria-label": t("deps.resetLayout"),
|
|
12241
|
+
onClick: () => setZoom(1),
|
|
12242
|
+
children: [Math.round(zoom * 100), "%"]
|
|
12243
|
+
}),
|
|
12244
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
12245
|
+
type: "button",
|
|
12246
|
+
"aria-label": t("deps.zoomIn"),
|
|
12247
|
+
onClick: () => setZoom((value) => Math.min(2, Math.round((value + .25) * 100) / 100)),
|
|
12248
|
+
children: "+"
|
|
12249
|
+
})
|
|
12250
|
+
]
|
|
12251
|
+
})
|
|
12252
|
+
]
|
|
12253
|
+
}),
|
|
12254
|
+
dragError !== null && (0, react_jsx_runtime.jsx)("div", {
|
|
12255
|
+
className: "charter-notice charter-notice--warning",
|
|
12256
|
+
role: "alert",
|
|
12257
|
+
children: dragError
|
|
12258
|
+
}),
|
|
12259
|
+
layout.edges.length === 0 && (0, react_jsx_runtime.jsx)("p", {
|
|
12260
|
+
className: "charter-hint charter-graph__hint",
|
|
12261
|
+
children: t("deps.graphEmpty")
|
|
12262
|
+
}),
|
|
12263
|
+
layout.degraded.supersedesHidden && showSupersedes && (0, react_jsx_runtime.jsx)("div", {
|
|
12264
|
+
className: "charter-notice",
|
|
12265
|
+
role: "status",
|
|
12266
|
+
children: t("deps.graphDegradedSupersedes")
|
|
12267
|
+
}),
|
|
12268
|
+
layout.degraded.isolatedTooMany && (0, react_jsx_runtime.jsx)("div", {
|
|
12269
|
+
className: "charter-notice",
|
|
12270
|
+
role: "status",
|
|
12271
|
+
children: t("deps.graphIsolatedTooMany")
|
|
12272
|
+
}),
|
|
12273
|
+
layout.degraded.depthReduced && (0, react_jsx_runtime.jsx)("div", {
|
|
12274
|
+
className: "charter-notice",
|
|
12275
|
+
role: "status",
|
|
12276
|
+
children: t("deps.graphDegradedDepth")
|
|
12277
|
+
}),
|
|
12278
|
+
layout.degraded.hidden && !layout.degraded.isolatedTooMany && (0, react_jsx_runtime.jsx)("div", {
|
|
12279
|
+
className: "charter-notice charter-notice--warning",
|
|
12280
|
+
role: "status",
|
|
12281
|
+
children: t("deps.graphTooDense", { count: layout.navigables })
|
|
12282
|
+
}),
|
|
12283
|
+
!layout.degraded.hidden && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
12284
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
12285
|
+
ref: groupRef,
|
|
12286
|
+
className: "charter-graph__viewport",
|
|
12287
|
+
role: "group",
|
|
12288
|
+
tabIndex: 0,
|
|
12289
|
+
"aria-label": t("deps.graphAria"),
|
|
12290
|
+
"aria-describedby": "charter-graph-keys",
|
|
12291
|
+
onKeyDown: handleKeyDown,
|
|
12292
|
+
onFocus: (event) => {
|
|
12293
|
+
if (event.target === event.currentTarget && key !== void 0) groupRef.current?.querySelector(`[data-graph-key="${CSS.escape(key)}"]`)?.focus();
|
|
12294
|
+
},
|
|
12295
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
12296
|
+
className: "charter-graph__canvas",
|
|
12297
|
+
style: {
|
|
12298
|
+
width: `${Math.max(layout.width, 1)}em`,
|
|
12299
|
+
height: `${Math.max(layout.height, 1)}em`,
|
|
12300
|
+
transform: `scale(${zoom})`,
|
|
12301
|
+
transformOrigin: "top left"
|
|
12302
|
+
},
|
|
12303
|
+
children: [
|
|
12304
|
+
(0, react_jsx_runtime.jsx)("svg", {
|
|
12305
|
+
className: "charter-graph__svg",
|
|
12306
|
+
viewBox: `0 0 ${Math.max(layout.width, 1)} ${Math.max(layout.height, 1)}`,
|
|
12307
|
+
preserveAspectRatio: "none",
|
|
12308
|
+
"aria-hidden": "true",
|
|
12309
|
+
focusable: "false",
|
|
12310
|
+
children: layout.edges.map((edge) => (0, react_jsx_runtime.jsxs)("g", {
|
|
12311
|
+
className: edgeClass(edge),
|
|
12312
|
+
children: [(0, react_jsx_runtime.jsx)("path", {
|
|
12313
|
+
d: edge.path,
|
|
12314
|
+
className: "charter-graph__edge-line"
|
|
12315
|
+
}), edge.state === "staged-removed" && (0, react_jsx_runtime.jsx)("path", {
|
|
12316
|
+
d: edge.path,
|
|
12317
|
+
className: "charter-graph__edge-removed"
|
|
12318
|
+
})]
|
|
12319
|
+
}, edge.key))
|
|
12320
|
+
}),
|
|
12321
|
+
layout.nodes.map((node) => (0, react_jsx_runtime.jsxs)("button", {
|
|
12322
|
+
type: "button",
|
|
12323
|
+
className: nodeClass(node),
|
|
12324
|
+
"data-graph-key": node.id,
|
|
12325
|
+
tabIndex: -1,
|
|
12326
|
+
"aria-label": nodeName(node, t),
|
|
12327
|
+
"aria-current": node.id === focusId ? "true" : void 0,
|
|
12328
|
+
style: {
|
|
12329
|
+
left: `${node.x}em`,
|
|
12330
|
+
top: `${node.y}em`,
|
|
12331
|
+
width: `${node.w}em`,
|
|
12332
|
+
height: `max(${node.h}em, ${GRAPH.touchTargetPx}px)`
|
|
12333
|
+
},
|
|
12334
|
+
draggable: editable && node.lane === "execution",
|
|
12335
|
+
onDragStart: (event) => {
|
|
12336
|
+
if (!editable || node.lane !== "execution") return;
|
|
12337
|
+
setDragError(null);
|
|
12338
|
+
event.dataTransfer.setData("text/plain", node.id);
|
|
12339
|
+
event.dataTransfer.effectAllowed = "link";
|
|
12340
|
+
},
|
|
12341
|
+
onDragOver: (event) => {
|
|
12342
|
+
if (!editable || node.lane !== "execution") return;
|
|
12343
|
+
event.preventDefault();
|
|
12344
|
+
event.dataTransfer.dropEffect = "link";
|
|
12345
|
+
},
|
|
12346
|
+
onDrop: (event) => {
|
|
12347
|
+
if (!editable || node.lane !== "execution") return;
|
|
12348
|
+
event.preventDefault();
|
|
12349
|
+
const source = event.dataTransfer.getData("text/plain");
|
|
12350
|
+
if (source === "") return;
|
|
12351
|
+
if (source === node.id) {
|
|
12352
|
+
setDragError(t("deps.dropInvalidSelf"));
|
|
12353
|
+
return;
|
|
12354
|
+
}
|
|
12355
|
+
if (projectedRequires(node.id).includes(source)) {
|
|
12356
|
+
setDragError(t("deps.dropInvalidDuplicate"));
|
|
12357
|
+
return;
|
|
12358
|
+
}
|
|
12359
|
+
addRequires(node, source);
|
|
12360
|
+
},
|
|
12361
|
+
onFocus: () => onActiveKey(node.id),
|
|
12362
|
+
onClick: () => handleActivate(node.id),
|
|
12363
|
+
children: [
|
|
12364
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
12365
|
+
className: "charter-graph__nodekey",
|
|
12366
|
+
children: node.lane === "execution" ? node.localKey : node.lane === "history" ? t("deps.historyKicker") : t("deps.candidateKicker")
|
|
12367
|
+
}),
|
|
12368
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
12369
|
+
className: "charter-graph__nodetext",
|
|
12370
|
+
children: node.text
|
|
12371
|
+
}),
|
|
12372
|
+
(0, react_jsx_runtime.jsxs)("span", {
|
|
12373
|
+
className: "charter-graph__nodestatus",
|
|
12374
|
+
children: [
|
|
12375
|
+
node.lane === "execution" ? `${t(`deps.status.${node.executionDisplay ?? "ready"}`)}${node.prerequisiteStatus === "dependency-conflict" && node.executionDisplay !== "dependency-conflict" ? ` · ${t("deps.prerequisiteConflict")}` : ""}` : node.lane === "history" ? t("deps.historyStatus") : t("deps.candidateStatus"),
|
|
12376
|
+
node.state === "staged-added" ? ` · ${t("deps.stagedAdded")}` : node.state === "staged-removed" ? ` · ${t("deps.stagedRemoved")}` : "",
|
|
12377
|
+
node.candidateCycle === true ? ` · ${t("deps.candidateCycle")}` : ""
|
|
12378
|
+
]
|
|
12379
|
+
})
|
|
12380
|
+
]
|
|
12381
|
+
}, node.id)),
|
|
12382
|
+
layout.edges.map((edge) => (0, react_jsx_runtime.jsx)("button", {
|
|
12383
|
+
type: "button",
|
|
12384
|
+
className: "charter-graph__edgehit",
|
|
12385
|
+
"data-graph-key": edge.key,
|
|
12386
|
+
tabIndex: -1,
|
|
12387
|
+
"aria-label": edgeName(edge, model, t),
|
|
12388
|
+
title: edgeName(edge, model, t),
|
|
12389
|
+
style: {
|
|
12390
|
+
left: `${edge.labelAt.x}em`,
|
|
12391
|
+
top: `${edge.labelAt.y}em`
|
|
12392
|
+
},
|
|
12393
|
+
onClick: () => handleActivate(edge.key)
|
|
12394
|
+
}, `hit-${edge.key}`))
|
|
12395
|
+
]
|
|
12396
|
+
})
|
|
12397
|
+
}),
|
|
12398
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
12399
|
+
className: "charter-graph__footer",
|
|
12400
|
+
children: [(selectedNode?.lane === "execution" || selectedEdge !== void 0 && model.nodes.find((node) => node.id === selectedEdge.to)?.lane === "execution") && (0, react_jsx_runtime.jsx)("button", {
|
|
12401
|
+
type: "button",
|
|
12402
|
+
className: "charter-linkbutton",
|
|
12403
|
+
onClick: () => onLocateList(selectedNode?.id ?? selectedEdge?.to ?? ""),
|
|
12404
|
+
children: t("deps.locateInList")
|
|
12405
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
12406
|
+
role: "status",
|
|
12407
|
+
className: "charter-sr-only",
|
|
12408
|
+
children: liveLabel
|
|
12409
|
+
})]
|
|
12410
|
+
}),
|
|
12411
|
+
(0, react_jsx_runtime.jsxs)("details", {
|
|
12412
|
+
className: "charter-graph__help",
|
|
12413
|
+
children: [
|
|
12414
|
+
(0, react_jsx_runtime.jsx)("summary", { children: t("deps.help") }),
|
|
12415
|
+
(0, react_jsx_runtime.jsx)("p", { children: t("deps.graphKeys") }),
|
|
12416
|
+
(0, react_jsx_runtime.jsx)("p", { children: t("deps.graphHint") })
|
|
12417
|
+
]
|
|
12418
|
+
}),
|
|
12419
|
+
(selectedNode !== void 0 || selectedEdge !== void 0) && (0, react_jsx_runtime.jsxs)("aside", {
|
|
12420
|
+
className: "charter-graph__inspector",
|
|
12421
|
+
"aria-label": t("deps.inspectorTitle", { key: inspectorLabel }),
|
|
12422
|
+
children: [
|
|
12423
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
12424
|
+
className: "charter-graph__inspectorhead",
|
|
12425
|
+
children: [(0, react_jsx_runtime.jsx)("h4", { children: t("deps.inspectorTitle", { key: inspectorLabel }) }), (0, react_jsx_runtime.jsx)("button", {
|
|
12426
|
+
type: "button",
|
|
12427
|
+
className: "charter-linkbutton",
|
|
12428
|
+
onClick: () => setInspector(void 0),
|
|
12429
|
+
children: t("deps.closeInspector")
|
|
12430
|
+
})]
|
|
12431
|
+
}),
|
|
12432
|
+
selectedNode !== void 0 && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
12433
|
+
(0, react_jsx_runtime.jsx)("p", {
|
|
12434
|
+
className: "charter-graph__inspectortext",
|
|
12435
|
+
children: selectedNode.text
|
|
12436
|
+
}),
|
|
12437
|
+
(0, react_jsx_runtime.jsxs)("dl", {
|
|
12438
|
+
className: "charter-graph__inspectormeta",
|
|
12439
|
+
children: [(0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("deps.inspectorStatus") }), (0, react_jsx_runtime.jsx)("dd", { children: selectedNode.executionDisplay === void 0 ? selectedNode.lane === "history" ? t("deps.historyStatus") : t("deps.candidateStatus") : t(`deps.status.${selectedNode.executionDisplay}`) })] }), selectedNode.lane === "execution" && (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("deps.inspectorRequires") }), (0, react_jsx_runtime.jsx)("dd", { children: projectedRequires(selectedNode.id).map((id) => model.nodes.find((node) => node.id === id)?.localKey ?? id).join(", ") || "—" })] })]
|
|
12440
|
+
}),
|
|
12441
|
+
selectedNode.lane === "execution" && editable && (0, react_jsx_runtime.jsxs)("div", {
|
|
12442
|
+
className: "charter-graph__inspectoractions",
|
|
12443
|
+
children: [(0, react_jsx_runtime.jsxs)("select", {
|
|
12444
|
+
"aria-label": t("deps.addRequires"),
|
|
12445
|
+
defaultValue: "",
|
|
12446
|
+
onChange: (event) => {
|
|
12447
|
+
addRequires(selectedNode, event.target.value);
|
|
12448
|
+
event.currentTarget.value = "";
|
|
12449
|
+
},
|
|
12450
|
+
children: [(0, react_jsx_runtime.jsx)("option", {
|
|
12451
|
+
value: "",
|
|
12452
|
+
children: t("deps.addRequires")
|
|
12453
|
+
}), availableNodes.filter((node) => node.id !== selectedNode.id && !projectedRequires(selectedNode.id).includes(node.id)).map((node) => (0, react_jsx_runtime.jsxs)("option", {
|
|
12454
|
+
value: node.id,
|
|
12455
|
+
children: [
|
|
12456
|
+
node.localKey,
|
|
12457
|
+
" · ",
|
|
12458
|
+
node.text
|
|
12459
|
+
]
|
|
12460
|
+
}, node.id))]
|
|
12461
|
+
}), projectedRequires(selectedNode.id).map((id) => (0, react_jsx_runtime.jsx)("button", {
|
|
12462
|
+
type: "button",
|
|
12463
|
+
className: "charter-linkbutton",
|
|
12464
|
+
onClick: () => removeRequires(selectedNode, id),
|
|
12465
|
+
children: t("deps.removeRequires", { key: model.nodes.find((node) => node.id === id)?.localKey ?? id })
|
|
12466
|
+
}, id))]
|
|
12467
|
+
})
|
|
12468
|
+
] }),
|
|
12469
|
+
selectedEdge !== void 0 && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
12470
|
+
(0, react_jsx_runtime.jsx)("p", {
|
|
12471
|
+
className: "charter-graph__inspectortext",
|
|
12472
|
+
children: edgeName(selectedEdge, model, t)
|
|
12473
|
+
}),
|
|
12474
|
+
selectedEdge.kind === "requires" && selectedEdge.editable && editable && (0, react_jsx_runtime.jsx)("button", {
|
|
12475
|
+
type: "button",
|
|
12476
|
+
className: "charter-linkbutton",
|
|
12477
|
+
onClick: () => onStageRequires(selectedEdge.to, projectedRequires(selectedEdge.to).filter((id) => id !== selectedEdge.from)),
|
|
12478
|
+
children: t("deps.removeEdge")
|
|
12479
|
+
}),
|
|
12480
|
+
selectedEdge.kind === "proposed" && (0, react_jsx_runtime.jsx)("button", {
|
|
12481
|
+
type: "button",
|
|
12482
|
+
className: "charter-linkbutton",
|
|
12483
|
+
onClick: () => onProposal(selectedEdge.targetProposalId ?? selectedEdge.to),
|
|
12484
|
+
children: t("deps.openProposal")
|
|
12485
|
+
})
|
|
12486
|
+
] })
|
|
12487
|
+
]
|
|
12488
|
+
})
|
|
12489
|
+
] })
|
|
12490
|
+
]
|
|
12491
|
+
});
|
|
12492
|
+
}
|
|
11169
12493
|
//#endregion
|
|
11170
12494
|
//#region .build-ts/client/archive-preview.js
|
|
11171
12495
|
function canonicalJson(value) {
|
|
@@ -11252,7 +12576,7 @@ async function previewArchive(raw, expected) {
|
|
|
11252
12576
|
* bundle carries the value; `tests/version.spec.ts` fails if it drifts from
|
|
11253
12577
|
* `package.json`.
|
|
11254
12578
|
*/
|
|
11255
|
-
const CHARTER_VERSION = "0.2.
|
|
12579
|
+
const CHARTER_VERSION = "0.2.2";
|
|
11256
12580
|
//#endregion
|
|
11257
12581
|
//#region .build-ts/client/CharterPane.js
|
|
11258
12582
|
const EMPTY_PLAN = {
|
|
@@ -11355,6 +12679,10 @@ function itemState(item) {
|
|
|
11355
12679
|
if (item.kind === "deliverable" && item.progress === "in-progress") return "ongoing";
|
|
11356
12680
|
return "idle";
|
|
11357
12681
|
}
|
|
12682
|
+
const EMPTY_CONFLICT_DIFF = {
|
|
12683
|
+
added: [],
|
|
12684
|
+
worsened: []
|
|
12685
|
+
};
|
|
11358
12686
|
function shortText(text, length = 48) {
|
|
11359
12687
|
const normalized = text.replace(/\s+/gu, " ").trim();
|
|
11360
12688
|
return normalized.length <= length ? normalized : `${normalized.slice(0, length)}...`;
|
|
@@ -11821,10 +13149,22 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
11821
13149
|
const [messageSeq, setMessageSeq] = (0, react.useState)(void 0);
|
|
11822
13150
|
const [messageKind, setMessageKind] = (0, react.useState)("invariant");
|
|
11823
13151
|
const [messageDraft, setMessageDraft] = (0, react.useState)("");
|
|
13152
|
+
const [messageMenuOpen, setMessageMenuOpen] = (0, react.useState)(false);
|
|
11824
13153
|
const bootstrapId = (0, react.useId)();
|
|
11825
13154
|
const applyHintId = (0, react.useId)();
|
|
11826
13155
|
const [confirmAbandon, setConfirmAbandon] = (0, react.useState)(false);
|
|
11827
13156
|
const [confirmDiscardAll, setConfirmDiscardAll] = (0, react.useState)(false);
|
|
13157
|
+
const [confirmConflictApply, setConfirmConflictApply] = (0, react.useState)(false);
|
|
13158
|
+
const [dependencyGraphHidden, setDependencyGraphHidden] = (0, react.useState)(false);
|
|
13159
|
+
const [dependencyGraphDepth, setDependencyGraphDepth] = (0, react.useState)(1);
|
|
13160
|
+
const [dependencyGraphSupersedes, setDependencyGraphSupersedes] = (0, react.useState)(true);
|
|
13161
|
+
const [dependencyGraphFocusId, setDependencyGraphFocusId] = (0, react.useState)(void 0);
|
|
13162
|
+
const [dependencyGraphActiveKey, setDependencyGraphActiveKey] = (0, react.useState)(void 0);
|
|
13163
|
+
const [dependencyGraphProblem, setDependencyGraphProblem] = (0, react.useState)(null);
|
|
13164
|
+
const [dependencyVisibleCount, setDependencyVisibleCount] = (0, react.useState)(50);
|
|
13165
|
+
const [dependencyEditorId, setDependencyEditorId] = (0, react.useState)(null);
|
|
13166
|
+
const [pendingListFocusId, setPendingListFocusId] = (0, react.useState)(null);
|
|
13167
|
+
const [pendingProposalFocusId, setPendingProposalFocusId] = (0, react.useState)(null);
|
|
11828
13168
|
const [archivePreview, setArchivePreview] = (0, react.useState)(null);
|
|
11829
13169
|
const [archiveEntries, setArchiveEntries] = (0, react.useState)([]);
|
|
11830
13170
|
const [archiveCacheProblem, setArchiveCacheProblem] = (0, react.useState)(null);
|
|
@@ -11841,6 +13181,7 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
11841
13181
|
const exportInFlightRef = (0, react.useRef)(false);
|
|
11842
13182
|
const viewRef = (0, react.useRef)(view);
|
|
11843
13183
|
const archiveInputRef = (0, react.useRef)(null);
|
|
13184
|
+
const messageMenuRef = (0, react.useRef)(null);
|
|
11844
13185
|
const triggerRef = (0, react.useRef)(null);
|
|
11845
13186
|
const statusRef = (0, react.useRef)(null);
|
|
11846
13187
|
(0, react.useEffect)(() => () => {
|
|
@@ -11865,6 +13206,7 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
11865
13206
|
setMessageSeq(void 0);
|
|
11866
13207
|
setMessageDraft("");
|
|
11867
13208
|
setMessageKind("invariant");
|
|
13209
|
+
setMessageMenuOpen(false);
|
|
11868
13210
|
setValidatorItemId("");
|
|
11869
13211
|
setValidatorKind("workspace.path-exists");
|
|
11870
13212
|
setValidatorPath("");
|
|
@@ -11924,6 +13266,7 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
11924
13266
|
}
|
|
11925
13267
|
}, [projectedItems]);
|
|
11926
13268
|
const dependencyPlan = dependencyPlanResult.plan;
|
|
13269
|
+
const dependencyByItemId = (0, react.useMemo)(() => new Map(dependencyPlan.map((row) => [row.id, row])), [dependencyPlan]);
|
|
11927
13270
|
const dependencyConflict = !dependencyPlanResult.ok;
|
|
11928
13271
|
const currentDeliverables = activeItems(deliverables);
|
|
11929
13272
|
const historyDeliverables = deliverables.filter((item) => item.lifecycle !== "current" || item.review === "rejected");
|
|
@@ -11957,6 +13300,34 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
11957
13300
|
const preview = previewResult.text;
|
|
11958
13301
|
const previewInvalid = !previewResult.ok;
|
|
11959
13302
|
const planInvalid = dependencyConflict || previewInvalid;
|
|
13303
|
+
const conflictDiff = (0, react.useMemo)(() => view === null ? EMPTY_CONFLICT_DIFF : dependencyConflictDiff(view.items, projectedItems), [view, projectedItems]);
|
|
13304
|
+
const conflictTotal = conflictDiff.added.length + conflictDiff.worsened.length;
|
|
13305
|
+
const relationGraph = (0, react.useMemo)(() => {
|
|
13306
|
+
if (view === null || !dependencyPlanResult.ok) return null;
|
|
13307
|
+
return buildRelationGraph({
|
|
13308
|
+
committed: view.items,
|
|
13309
|
+
projected: projectedItems,
|
|
13310
|
+
ops,
|
|
13311
|
+
showSupersedes: true
|
|
13312
|
+
});
|
|
13313
|
+
}, [
|
|
13314
|
+
view,
|
|
13315
|
+
projectedItems,
|
|
13316
|
+
ops,
|
|
13317
|
+
dependencyPlanResult.ok
|
|
13318
|
+
]);
|
|
13319
|
+
const relationFocusId = relationGraph === null ? void 0 : dependencyGraphFocusId !== void 0 && relationGraph.nodes.some((node) => node.id === dependencyGraphFocusId) ? dependencyGraphFocusId : defaultFocus(relationGraph);
|
|
13320
|
+
const relationLayout = (0, react.useMemo)(() => relationGraph === null ? null : layoutRelationGraph(relationGraph, {
|
|
13321
|
+
focusId: relationFocusId,
|
|
13322
|
+
depth: dependencyGraphDepth,
|
|
13323
|
+
supersedesHidden: !dependencyGraphSupersedes
|
|
13324
|
+
}), [
|
|
13325
|
+
relationGraph,
|
|
13326
|
+
relationFocusId,
|
|
13327
|
+
dependencyGraphDepth,
|
|
13328
|
+
dependencyGraphSupersedes
|
|
13329
|
+
]);
|
|
13330
|
+
const relationGraphAvailable = relationGraph !== null && relationGraph.nodes.length > 0;
|
|
11960
13331
|
const formattedPreview = (0, react.useMemo)(() => formatCharterPreview(preview), [preview]);
|
|
11961
13332
|
const bootstrapPromptBytes = (0, react.useMemo)(() => {
|
|
11962
13333
|
if (view === null || bootstrapPhase !== "draft") return 0;
|
|
@@ -12060,11 +13431,25 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
12060
13431
|
view?.lifecycle,
|
|
12061
13432
|
draftState.attempt
|
|
12062
13433
|
]);
|
|
13434
|
+
(0, react.useEffect)(() => {
|
|
13435
|
+
setDependencyGraphHidden(false);
|
|
13436
|
+
setDependencyGraphFocusId(void 0);
|
|
13437
|
+
setDependencyGraphActiveKey(void 0);
|
|
13438
|
+
setDependencyVisibleCount(50);
|
|
13439
|
+
setDependencyEditorId(null);
|
|
13440
|
+
setPendingListFocusId(null);
|
|
13441
|
+
setPendingProposalFocusId(null);
|
|
13442
|
+
}, [view?.sessionId]);
|
|
12063
13443
|
(0, react.useEffect)(() => {
|
|
12064
13444
|
setConfirmDiscardAll(false);
|
|
13445
|
+
setConfirmConflictApply(false);
|
|
13446
|
+
setDependencyGraphProblem(null);
|
|
12065
13447
|
}, [
|
|
12066
13448
|
view?.sessionId,
|
|
12067
13449
|
view?.lifecycle,
|
|
13450
|
+
view?.revision,
|
|
13451
|
+
baseRevision,
|
|
13452
|
+
conflictTotal,
|
|
12068
13453
|
draftState.ops,
|
|
12069
13454
|
draftState.editor,
|
|
12070
13455
|
draftState.editorText,
|
|
@@ -12120,6 +13505,51 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
12120
13505
|
source,
|
|
12121
13506
|
view?.sessionId
|
|
12122
13507
|
]);
|
|
13508
|
+
(0, react.useEffect)(() => {
|
|
13509
|
+
if (pendingListFocusId === null) return;
|
|
13510
|
+
if (typeof document === "undefined") {
|
|
13511
|
+
setPendingListFocusId(null);
|
|
13512
|
+
return;
|
|
13513
|
+
}
|
|
13514
|
+
const row = document.querySelector(`[data-dependency-id="${CSS.escape(pendingListFocusId)}"]`);
|
|
13515
|
+
if (row !== null) {
|
|
13516
|
+
row.focus();
|
|
13517
|
+
row.scrollIntoView({ block: "nearest" });
|
|
13518
|
+
}
|
|
13519
|
+
setPendingListFocusId(null);
|
|
13520
|
+
}, [
|
|
13521
|
+
pendingListFocusId,
|
|
13522
|
+
dependencyVisibleCount,
|
|
13523
|
+
dependencyPlan.length,
|
|
13524
|
+
section
|
|
13525
|
+
]);
|
|
13526
|
+
(0, react.useEffect)(() => {
|
|
13527
|
+
if (pendingProposalFocusId === null || section !== "history") return;
|
|
13528
|
+
const index = pendingItemProposals.findIndex((item) => item.id === pendingProposalFocusId);
|
|
13529
|
+
if (index < 0) {
|
|
13530
|
+
setPendingProposalFocusId(null);
|
|
13531
|
+
return;
|
|
13532
|
+
}
|
|
13533
|
+
if (index >= reviewLimit) {
|
|
13534
|
+
setReviewLimit(index + 1);
|
|
13535
|
+
return;
|
|
13536
|
+
}
|
|
13537
|
+
if (typeof document === "undefined") {
|
|
13538
|
+
setPendingProposalFocusId(null);
|
|
13539
|
+
return;
|
|
13540
|
+
}
|
|
13541
|
+
const row = document.querySelector(`[data-proposal-id="${CSS.escape(pendingProposalFocusId)}"]`);
|
|
13542
|
+
if (row !== null) {
|
|
13543
|
+
row.focus();
|
|
13544
|
+
row.scrollIntoView({ block: "nearest" });
|
|
13545
|
+
}
|
|
13546
|
+
setPendingProposalFocusId(null);
|
|
13547
|
+
}, [
|
|
13548
|
+
pendingProposalFocusId,
|
|
13549
|
+
section,
|
|
13550
|
+
reviewLimit,
|
|
13551
|
+
pendingItemProposals
|
|
13552
|
+
]);
|
|
12123
13553
|
if (state.status === "connecting" && view === null) return (0, react_jsx_runtime.jsxs)("main", {
|
|
12124
13554
|
className: "charter-root charter-centered",
|
|
12125
13555
|
children: [(0, react_jsx_runtime.jsx)(StateMark, { state: "ongoing" }), (0, react_jsx_runtime.jsx)("span", { children: t("status.loading") })]
|
|
@@ -12151,7 +13581,7 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
12151
13581
|
const admission = draftAdmission(view, ops);
|
|
12152
13582
|
const applyBlocked = !admission.ok;
|
|
12153
13583
|
const applyBlockReason = editReplay ? "retry" : unknownBlocked ? oldLifecycleUnknown ? "lifecycle-abandon" : "unknown" : saving ? "busy" : editor !== null ? "editor-open" : revisionConflict ? "revision-conflict" : !online ? "connection" : !editable ? "read-only" : ops.length === 0 ? "no-changes" : applyBlocked ? admission.reason === "invalid-dependencies" ? "dependency-conflict" : "quota" : planInvalid ? "dependency-conflict" : null;
|
|
12154
|
-
const applyHint = applyBlockReason
|
|
13584
|
+
const applyHint = applyBlockReason !== null ? t(`apply.block.${applyBlockReason}`) : conflictTotal > 0 ? t(confirmConflictApply ? "changeset.conflictConfirmHint" : "changeset.conflictHint", { count: conflictTotal }) : t("footer.applyHint");
|
|
12155
13585
|
const bootstrapHint = bootstrapReplay ? t("apply.block.retry") : bootstrapSaving ? t("apply.block.busy") : canApplyBootstrap ? t("bootstrap.applyHint") : t("apply.block.bootstrap-blocked");
|
|
12156
13586
|
const footerHint = bootstrapPhase === "draft" || bootstrapReplay ? bootstrapHint : applyHint;
|
|
12157
13587
|
const canRebaseNow = rebaseAvailable(draftState);
|
|
@@ -12204,8 +13634,37 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
12204
13634
|
draft.openEditor(target, view);
|
|
12205
13635
|
};
|
|
12206
13636
|
const applyDraft = () => {
|
|
13637
|
+
if (conflictTotal > 0 && !confirmConflictApply) {
|
|
13638
|
+
setConfirmConflictApply(true);
|
|
13639
|
+
return;
|
|
13640
|
+
}
|
|
13641
|
+
setConfirmConflictApply(false);
|
|
12207
13642
|
draft.applyDraft(view).finally(() => statusRef.current?.focus());
|
|
12208
13643
|
};
|
|
13644
|
+
const stageGraphRequires = (targetId, nextRequires) => {
|
|
13645
|
+
if (view === null || !editable) return;
|
|
13646
|
+
const candidateItems = projectedItems.map((item) => item.id === targetId ? {
|
|
13647
|
+
...item,
|
|
13648
|
+
requires: [...nextRequires]
|
|
13649
|
+
} : item);
|
|
13650
|
+
try {
|
|
13651
|
+
const projected = candidateItems;
|
|
13652
|
+
validateDependencyGraph(projected);
|
|
13653
|
+
dependencyProjection(projected);
|
|
13654
|
+
} catch {
|
|
13655
|
+
setDependencyGraphProblem(t("deps.conflict"));
|
|
13656
|
+
return;
|
|
13657
|
+
}
|
|
13658
|
+
setDependencyGraphProblem(null);
|
|
13659
|
+
draft.setDeliverableRequires(view, targetId, nextRequires);
|
|
13660
|
+
};
|
|
13661
|
+
const locateGraphNodeInList = (id) => {
|
|
13662
|
+
if (id === "") return;
|
|
13663
|
+
const index = dependencyPlan.findIndex((row) => row.id === id);
|
|
13664
|
+
if (index < 0) return;
|
|
13665
|
+
setDependencyVisibleCount((count) => Math.max(count, index + 1));
|
|
13666
|
+
setPendingListFocusId(id);
|
|
13667
|
+
};
|
|
12209
13668
|
const errorText = (code) => {
|
|
12210
13669
|
if (code === void 0) return t("recovery.exportFailed");
|
|
12211
13670
|
const key = `error.${code}`;
|
|
@@ -12676,7 +14135,7 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
12676
14135
|
disabled: editReplay ? saving : applyBlockReason !== null,
|
|
12677
14136
|
onClick: applyDraft,
|
|
12678
14137
|
busy: saving,
|
|
12679
|
-
children: saving ? t("footer.applying") : editReplay ? t("footer.retryApply") : t("footer.apply")
|
|
14138
|
+
children: saving ? t("footer.applying") : editReplay ? t("footer.retryApply") : confirmConflictApply && conflictTotal > 0 ? t("footer.applyConfirmConflicts", { count: conflictTotal }) : t("footer.apply")
|
|
12680
14139
|
}),
|
|
12681
14140
|
unknownReplay && (0, react_jsx_runtime.jsx)(ActionButton, {
|
|
12682
14141
|
variant: "outline",
|
|
@@ -12746,36 +14205,70 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
12746
14205
|
area === "workspace" && hasLocalWork && (0, react_jsx_runtime.jsxs)("section", {
|
|
12747
14206
|
className: "charter-card charter-section charter-changeset",
|
|
12748
14207
|
"aria-labelledby": "charter-changeset-title",
|
|
12749
|
-
children: [
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
14208
|
+
children: [
|
|
14209
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14210
|
+
className: "charter-cardhead",
|
|
14211
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
14212
|
+
className: "charter-cardtitle",
|
|
14213
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
14214
|
+
className: "charter-kicker",
|
|
14215
|
+
children: t("changeset.kicker")
|
|
14216
|
+
}), (0, react_jsx_runtime.jsx)("h3", {
|
|
14217
|
+
id: "charter-changeset-title",
|
|
14218
|
+
children: t("changeset.title")
|
|
14219
|
+
})]
|
|
14220
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
14221
|
+
className: "charter-count",
|
|
14222
|
+
children: localWork.stagedOps
|
|
12759
14223
|
})]
|
|
12760
|
-
}),
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
14224
|
+
}),
|
|
14225
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14226
|
+
className: "charter-changeset__body",
|
|
14227
|
+
children: [
|
|
14228
|
+
(0, react_jsx_runtime.jsx)("span", { children: t("changeset.ops", { count: localWork.stagedOps }) }),
|
|
14229
|
+
(0, react_jsx_runtime.jsx)("span", { children: t("changeset.promptDelta", {
|
|
14230
|
+
before: formatBytes(t, utf8Bytes$2(view.promptText)),
|
|
14231
|
+
after: formatBytes(t, previewBytes)
|
|
14232
|
+
}) }),
|
|
14233
|
+
(0, react_jsx_runtime.jsx)("span", { children: t("changeset.itemsDelta", {
|
|
14234
|
+
before: view.items.length,
|
|
14235
|
+
after: projectedItems.length
|
|
14236
|
+
}) }),
|
|
14237
|
+
editor !== null && (0, react_jsx_runtime.jsx)("span", { children: t("changeset.editorOpen") })
|
|
14238
|
+
]
|
|
14239
|
+
}),
|
|
14240
|
+
conflictTotal > 0 && (0, react_jsx_runtime.jsxs)("div", {
|
|
14241
|
+
className: "charter-notice charter-notice--warning",
|
|
14242
|
+
role: "status",
|
|
14243
|
+
children: [(0, react_jsx_runtime.jsx)("strong", { children: t("changeset.conflicts", { count: conflictTotal }) }), (0, react_jsx_runtime.jsx)("ul", {
|
|
14244
|
+
className: "charter-changeset__conflicts",
|
|
14245
|
+
children: [...conflictDiff.added.map((entry) => ({
|
|
14246
|
+
...entry,
|
|
14247
|
+
kind: "added"
|
|
14248
|
+
})), ...conflictDiff.worsened.map((entry) => ({
|
|
14249
|
+
...entry,
|
|
14250
|
+
kind: "worsened"
|
|
14251
|
+
}))].map((entry) => {
|
|
14252
|
+
const key = dependencyPlan.find((row) => row.id === entry.itemId)?.localKey ?? entry.itemId;
|
|
14253
|
+
const text = projectedItems.find((item) => item.id === entry.itemId)?.text ?? entry.itemId;
|
|
14254
|
+
return (0, react_jsx_runtime.jsxs)("li", { children: [
|
|
14255
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
14256
|
+
className: "charter-dependency__key",
|
|
14257
|
+
children: key
|
|
14258
|
+
}),
|
|
14259
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
14260
|
+
className: "charter-changeset__conflicttext",
|
|
14261
|
+
children: shortText(text, 40)
|
|
14262
|
+
}),
|
|
14263
|
+
(0, react_jsx_runtime.jsx)("span", { children: t(entry.kind === "added" ? "changeset.conflictAdded" : "changeset.conflictWorsened", {
|
|
14264
|
+
before: entry.beforeConflicts,
|
|
14265
|
+
after: entry.afterConflicts
|
|
14266
|
+
}) })
|
|
14267
|
+
] }, entry.itemId);
|
|
14268
|
+
})
|
|
14269
|
+
})]
|
|
14270
|
+
})
|
|
14271
|
+
]
|
|
12779
14272
|
}),
|
|
12780
14273
|
area === "workspace" && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
12781
14274
|
bootstrapPhase === "draft" && (0, react_jsx_runtime.jsxs)("button", {
|
|
@@ -13179,7 +14672,7 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13179
14672
|
maxBytes: view.limits.maxItemBytes,
|
|
13180
14673
|
previousBytes: editor.kind === "edit" ? normalizedBytes(editor.item.text) : void 0,
|
|
13181
14674
|
label: t("editor.invariantAria"),
|
|
13182
|
-
t
|
|
14675
|
+
t: (key, values) => t(key, values)
|
|
13183
14676
|
})
|
|
13184
14677
|
})
|
|
13185
14678
|
]
|
|
@@ -13192,64 +14685,168 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13192
14685
|
area === "workspace" && dependencyPlan.length > 0 && (0, react_jsx_runtime.jsxs)("section", {
|
|
13193
14686
|
className: "charter-card charter-section",
|
|
13194
14687
|
"aria-labelledby": "charter-dependency-title",
|
|
13195
|
-
children: [
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
14688
|
+
children: [
|
|
14689
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14690
|
+
className: "charter-cardhead",
|
|
14691
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
14692
|
+
className: "charter-cardtitle",
|
|
14693
|
+
children: (0, react_jsx_runtime.jsx)("h3", {
|
|
14694
|
+
id: "charter-dependency-title",
|
|
14695
|
+
children: t("deps.title")
|
|
14696
|
+
})
|
|
14697
|
+
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
14698
|
+
className: "charter-cardtools",
|
|
14699
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
14700
|
+
className: "charter-count",
|
|
14701
|
+
children: dependencyPlan.length
|
|
14702
|
+
}), relationGraphAvailable && (0, react_jsx_runtime.jsx)("button", {
|
|
14703
|
+
type: "button",
|
|
14704
|
+
className: "charter-linkbutton",
|
|
14705
|
+
"aria-pressed": !dependencyGraphHidden,
|
|
14706
|
+
onClick: () => setDependencyGraphHidden((value) => !value),
|
|
14707
|
+
children: dependencyGraphHidden ? t("deps.showGraph") : t("deps.hideGraph")
|
|
14708
|
+
})]
|
|
13205
14709
|
})]
|
|
13206
|
-
}),
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
|
|
13237
|
-
(
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
14710
|
+
}),
|
|
14711
|
+
dependencyGraphProblem !== null && (0, react_jsx_runtime.jsx)("div", {
|
|
14712
|
+
className: "charter-notice charter-notice--warning",
|
|
14713
|
+
role: "alert",
|
|
14714
|
+
children: dependencyGraphProblem
|
|
14715
|
+
}),
|
|
14716
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14717
|
+
className: `charter-dependency-layout${dependencyGraphHidden ? " is-graph-hidden" : ""}`,
|
|
14718
|
+
children: [
|
|
14719
|
+
!dependencyGraphHidden && relationGraphAvailable && relationLayout !== null && !relationLayout.degraded.hidden && !relationLayout.degraded.isolatedTooMany && (0, react_jsx_runtime.jsx)("a", {
|
|
14720
|
+
className: "charter-graph__skip",
|
|
14721
|
+
href: "#charter-dependency-list",
|
|
14722
|
+
children: t("deps.skipToList")
|
|
14723
|
+
}),
|
|
14724
|
+
!dependencyGraphHidden && relationGraphAvailable && relationGraph !== null && relationLayout !== null && (0, react_jsx_runtime.jsx)(DependencyGraph, {
|
|
14725
|
+
layout: relationLayout,
|
|
14726
|
+
model: relationGraph,
|
|
14727
|
+
focusId: relationFocusId,
|
|
14728
|
+
activeKey: dependencyGraphActiveKey ?? relationFocusId,
|
|
14729
|
+
depth: dependencyGraphDepth,
|
|
14730
|
+
showSupersedes: dependencyGraphSupersedes,
|
|
14731
|
+
editable,
|
|
14732
|
+
onFocus: (id) => {
|
|
14733
|
+
setDependencyGraphFocusId(id);
|
|
14734
|
+
setDependencyGraphActiveKey(id);
|
|
14735
|
+
},
|
|
14736
|
+
onActiveKey: setDependencyGraphActiveKey,
|
|
14737
|
+
onDepth: setDependencyGraphDepth,
|
|
14738
|
+
onShowSupersedes: setDependencyGraphSupersedes,
|
|
14739
|
+
onStageRequires: stageGraphRequires,
|
|
14740
|
+
onLocateList: locateGraphNodeInList,
|
|
14741
|
+
onProposal: (id) => {
|
|
14742
|
+
setPendingProposalFocusId(id);
|
|
14743
|
+
goSection("history");
|
|
14744
|
+
},
|
|
14745
|
+
t: (key, values) => t(key, values)
|
|
14746
|
+
}),
|
|
14747
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14748
|
+
className: "charter-dependency-listwrap",
|
|
14749
|
+
children: [(0, react_jsx_runtime.jsx)("ol", {
|
|
14750
|
+
className: "charter-dependency-list",
|
|
14751
|
+
id: "charter-dependency-list",
|
|
14752
|
+
children: dependencyPlan.slice(0, dependencyVisibleCount).map((row, rowIndex) => {
|
|
14753
|
+
const item = view.items.find((candidate) => candidate.id === row.id);
|
|
14754
|
+
return (0, react_jsx_runtime.jsxs)("li", {
|
|
14755
|
+
className: `charter-dependency is-${row.executionDisplay}`,
|
|
14756
|
+
"data-dependency-id": row.id,
|
|
14757
|
+
tabIndex: -1,
|
|
14758
|
+
children: [
|
|
14759
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
14760
|
+
className: "charter-sr-only",
|
|
14761
|
+
children: t("deps.rowPosition", {
|
|
14762
|
+
index: rowIndex + 1,
|
|
14763
|
+
total: dependencyPlan.length
|
|
14764
|
+
})
|
|
14765
|
+
}),
|
|
14766
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14767
|
+
className: "charter-dependency__row",
|
|
14768
|
+
children: [
|
|
14769
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
14770
|
+
className: "charter-dependency__key",
|
|
14771
|
+
children: row.localKey
|
|
14772
|
+
}),
|
|
14773
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14774
|
+
className: "charter-dependency__main",
|
|
14775
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
14776
|
+
className: "charter-dependency__text",
|
|
14777
|
+
title: item?.text ?? row.id,
|
|
14778
|
+
children: item?.text ?? row.id
|
|
14779
|
+
}), (0, react_jsx_runtime.jsxs)("span", {
|
|
14780
|
+
className: "charter-dependency__meta",
|
|
14781
|
+
children: [
|
|
14782
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
14783
|
+
className: `charter-dependency__status is-${row.executionDisplay}`,
|
|
14784
|
+
children: t(`deps.status.${row.executionDisplay}`)
|
|
14785
|
+
}),
|
|
14786
|
+
row.prerequisiteStatus === "dependency-conflict" && row.executionDisplay !== "dependency-conflict" && (0, react_jsx_runtime.jsx)("span", {
|
|
14787
|
+
className: "charter-dependency__status is-conflict",
|
|
14788
|
+
children: t("deps.prerequisiteConflict")
|
|
14789
|
+
}),
|
|
14790
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
14791
|
+
className: "charter-dependency__requires",
|
|
14792
|
+
children: row.requires.length > 0 ? t("deps.requiresSummary", { keys: row.requires.map((requireId) => dependencyByItemId.get(requireId)?.localKey ?? requireId).join(", ") }) : t("deps.noRequires")
|
|
14793
|
+
})
|
|
14794
|
+
]
|
|
14795
|
+
})]
|
|
14796
|
+
}),
|
|
14797
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
14798
|
+
className: "charter-dependency__actions",
|
|
14799
|
+
children: [relationGraphAvailable && (0, react_jsx_runtime.jsx)("button", {
|
|
14800
|
+
type: "button",
|
|
14801
|
+
className: "charter-linkbutton",
|
|
14802
|
+
onClick: () => {
|
|
14803
|
+
setDependencyGraphHidden(false);
|
|
14804
|
+
setDependencyGraphFocusId(row.id);
|
|
14805
|
+
setDependencyGraphActiveKey(row.id);
|
|
14806
|
+
},
|
|
14807
|
+
children: t("deps.locateInGraph")
|
|
14808
|
+
}), (0, react_jsx_runtime.jsx)("button", {
|
|
14809
|
+
type: "button",
|
|
14810
|
+
className: "charter-linkbutton",
|
|
14811
|
+
"aria-expanded": dependencyEditorId === row.id,
|
|
14812
|
+
onClick: () => setDependencyEditorId((id) => id === row.id ? null : row.id),
|
|
14813
|
+
children: t("deps.editRequires")
|
|
14814
|
+
})]
|
|
14815
|
+
})
|
|
14816
|
+
]
|
|
14817
|
+
}),
|
|
14818
|
+
dependencyEditorId === row.id && (0, react_jsx_runtime.jsxs)("fieldset", {
|
|
14819
|
+
className: "charter-dependency__editor",
|
|
14820
|
+
children: [(0, react_jsx_runtime.jsx)("legend", { children: t("deps.editRequires") }), view.items.filter((candidate) => candidate.kind === "deliverable" && candidate.review === "accepted" && candidate.lifecycle === "current" && candidate.id !== row.id).map((candidate) => {
|
|
14821
|
+
const candidateKey = dependencyByItemId.get(candidate.id)?.localKey ?? "";
|
|
14822
|
+
return (0, react_jsx_runtime.jsxs)("label", { children: [(0, react_jsx_runtime.jsx)("input", {
|
|
14823
|
+
type: "checkbox",
|
|
14824
|
+
checked: row.requiresIds.includes(candidate.id),
|
|
14825
|
+
disabled: !editable || saving || unknownBlocked,
|
|
14826
|
+
onChange: (event) => {
|
|
14827
|
+
const next = event.target.checked ? [...row.requiresIds, candidate.id] : row.requiresIds.filter((id) => id !== candidate.id);
|
|
14828
|
+
draft.setDeliverableRequires(view, row.id, next);
|
|
14829
|
+
}
|
|
14830
|
+
}), (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
14831
|
+
candidateKey,
|
|
14832
|
+
" · ",
|
|
14833
|
+
shortText(candidate.text, 40)
|
|
14834
|
+
] })] }, candidate.id);
|
|
14835
|
+
})]
|
|
14836
|
+
})
|
|
14837
|
+
]
|
|
14838
|
+
}, row.id);
|
|
14839
|
+
})
|
|
14840
|
+
}), dependencyPlan.length > dependencyVisibleCount && (0, react_jsx_runtime.jsx)("button", {
|
|
14841
|
+
type: "button",
|
|
14842
|
+
className: "charter-linkbutton",
|
|
14843
|
+
onClick: () => setDependencyVisibleCount((count) => count + 50),
|
|
14844
|
+
children: t("deps.showMore", { count: Math.min(50, dependencyPlan.length - dependencyVisibleCount) })
|
|
14845
|
+
})]
|
|
14846
|
+
})
|
|
14847
|
+
]
|
|
13251
14848
|
})
|
|
13252
|
-
|
|
14849
|
+
]
|
|
13253
14850
|
}),
|
|
13254
14851
|
area === "workspace" && (0, react_jsx_runtime.jsxs)("section", {
|
|
13255
14852
|
className: "charter-card charter-section",
|
|
@@ -13333,6 +14930,13 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13333
14930
|
})
|
|
13334
14931
|
]
|
|
13335
14932
|
}),
|
|
14933
|
+
area === "review" && (0, react_jsx_runtime.jsxs)("header", {
|
|
14934
|
+
className: "charter-areahead",
|
|
14935
|
+
children: [(0, react_jsx_runtime.jsx)("h2", { children: t("review.heading") }), (0, react_jsx_runtime.jsx)("p", {
|
|
14936
|
+
className: "charter-hint",
|
|
14937
|
+
children: t("review.headingHint")
|
|
14938
|
+
})]
|
|
14939
|
+
}),
|
|
13336
14940
|
area === "review" && source.proposeMessage !== void 0 && (0, react_jsx_runtime.jsxs)("section", {
|
|
13337
14941
|
className: "charter-card charter-section charter-messageproposal",
|
|
13338
14942
|
"aria-labelledby": "charter-message-proposal-title",
|
|
@@ -13340,46 +14944,77 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13340
14944
|
className: "charter-cardhead",
|
|
13341
14945
|
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
13342
14946
|
className: "charter-cardtitle",
|
|
13343
|
-
children: [
|
|
13344
|
-
|
|
13345
|
-
|
|
13346
|
-
|
|
13347
|
-
|
|
13348
|
-
|
|
13349
|
-
|
|
13350
|
-
children: t("review.messageProposal")
|
|
13351
|
-
}),
|
|
13352
|
-
(0, react_jsx_runtime.jsx)("p", {
|
|
13353
|
-
className: "charter-hint",
|
|
13354
|
-
children: t("review.messageProposalHint")
|
|
13355
|
-
})
|
|
13356
|
-
]
|
|
14947
|
+
children: [(0, react_jsx_runtime.jsx)("h3", {
|
|
14948
|
+
id: "charter-message-proposal-title",
|
|
14949
|
+
children: t("review.messageProposal")
|
|
14950
|
+
}), (0, react_jsx_runtime.jsx)("p", {
|
|
14951
|
+
className: "charter-hint",
|
|
14952
|
+
children: t("review.messageProposalHint")
|
|
14953
|
+
})]
|
|
13357
14954
|
})
|
|
13358
14955
|
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
13359
14956
|
className: "charter-messageproposal__form",
|
|
13360
14957
|
children: [
|
|
13361
|
-
(0, react_jsx_runtime.jsxs)("
|
|
14958
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
13362
14959
|
className: "charter-messageproposal__field",
|
|
13363
14960
|
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
13364
14961
|
className: "charter-fieldlabel",
|
|
13365
14962
|
children: t("message.pick")
|
|
13366
|
-
}), (0, react_jsx_runtime.jsxs)("
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
14963
|
+
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
14964
|
+
className: "charter-messageproposal__picker",
|
|
14965
|
+
onBlur: (event) => {
|
|
14966
|
+
if (!event.currentTarget.contains(event.relatedTarget)) setMessageMenuOpen(false);
|
|
14967
|
+
},
|
|
14968
|
+
onKeyDown: (event) => {
|
|
14969
|
+
if (event.key === "Escape") {
|
|
14970
|
+
setMessageMenuOpen(false);
|
|
14971
|
+
return;
|
|
14972
|
+
}
|
|
14973
|
+
if (!messageMenuOpen || event.key !== "ArrowDown" && event.key !== "ArrowUp") return;
|
|
14974
|
+
const options = [...messageMenuRef.current?.querySelectorAll("[role=\"option\"]") ?? []];
|
|
14975
|
+
if (options.length === 0) return;
|
|
14976
|
+
event.preventDefault();
|
|
14977
|
+
const current = options.indexOf(document.activeElement);
|
|
14978
|
+
options[event.key === "ArrowDown" ? (current + 1) % options.length : (current - 1 + options.length) % options.length]?.focus();
|
|
13375
14979
|
},
|
|
13376
|
-
children: [(0, react_jsx_runtime.
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
14980
|
+
children: [(0, react_jsx_runtime.jsxs)("button", {
|
|
14981
|
+
type: "button",
|
|
14982
|
+
className: "charter-messageproposal__trigger",
|
|
14983
|
+
"aria-label": t("message.pick"),
|
|
14984
|
+
"aria-haspopup": "listbox",
|
|
14985
|
+
"aria-expanded": messageMenuOpen,
|
|
14986
|
+
disabled: messageCandidates.length === 0 || saving || unknownBlocked,
|
|
14987
|
+
onClick: () => setMessageMenuOpen((open) => !open),
|
|
14988
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: selectedMessage === void 0 ? t("message.pickPlaceholder") : `#${selectedMessage.seq} · ${shortText(selectedMessage.excerpt, 72)}` }), (0, react_jsx_runtime.jsx)("span", {
|
|
14989
|
+
"aria-hidden": "true",
|
|
14990
|
+
className: "charter-messageproposal__chevron",
|
|
14991
|
+
children: "⌄"
|
|
14992
|
+
})]
|
|
14993
|
+
}), messageMenuOpen && (0, react_jsx_runtime.jsx)("div", {
|
|
14994
|
+
ref: messageMenuRef,
|
|
14995
|
+
className: "charter-messageproposal__menu",
|
|
14996
|
+
role: "listbox",
|
|
14997
|
+
"aria-label": t("message.pick"),
|
|
14998
|
+
children: messageCandidates.map((candidate) => (0, react_jsx_runtime.jsxs)("button", {
|
|
14999
|
+
type: "button",
|
|
15000
|
+
role: "option",
|
|
15001
|
+
"aria-selected": candidate.seq === messageSeq,
|
|
15002
|
+
className: `charter-messageproposal__option${candidate.seq === messageSeq ? " is-selected" : ""}`,
|
|
15003
|
+
title: candidate.excerpt,
|
|
15004
|
+
onClick: () => {
|
|
15005
|
+
setMessageSeq(candidate.seq);
|
|
15006
|
+
setMessageDraft(candidate.text ?? "");
|
|
15007
|
+
setMessageMenuOpen(false);
|
|
15008
|
+
},
|
|
15009
|
+
children: [(0, react_jsx_runtime.jsxs)("span", {
|
|
15010
|
+
className: "charter-messageproposal__optionseq",
|
|
15011
|
+
children: ["#", candidate.seq]
|
|
15012
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
15013
|
+
className: "charter-messageproposal__optiontext",
|
|
15014
|
+
children: candidate.excerpt
|
|
15015
|
+
})]
|
|
15016
|
+
}, candidate.seq))
|
|
15017
|
+
})]
|
|
13383
15018
|
})]
|
|
13384
15019
|
}),
|
|
13385
15020
|
(0, react_jsx_runtime.jsxs)("label", {
|
|
@@ -13453,15 +15088,12 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13453
15088
|
"aria-labelledby": "charter-inactive-title",
|
|
13454
15089
|
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
13455
15090
|
className: "charter-cardhead",
|
|
13456
|
-
children: [(0, react_jsx_runtime.
|
|
15091
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
13457
15092
|
className: "charter-cardtitle",
|
|
13458
|
-
children:
|
|
13459
|
-
className: "charter-kicker",
|
|
13460
|
-
children: t("review.kicker")
|
|
13461
|
-
}), (0, react_jsx_runtime.jsx)("h3", {
|
|
15093
|
+
children: (0, react_jsx_runtime.jsx)("h3", {
|
|
13462
15094
|
id: "charter-inactive-title",
|
|
13463
15095
|
children: t("review.inactiveItems")
|
|
13464
|
-
})
|
|
15096
|
+
})
|
|
13465
15097
|
}), (0, react_jsx_runtime.jsx)("span", {
|
|
13466
15098
|
className: "charter-count",
|
|
13467
15099
|
children: inactiveItems.length
|
|
@@ -13496,15 +15128,12 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13496
15128
|
"aria-labelledby": "charter-objective-history-title",
|
|
13497
15129
|
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
13498
15130
|
className: "charter-cardhead",
|
|
13499
|
-
children: [(0, react_jsx_runtime.
|
|
15131
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
13500
15132
|
className: "charter-cardtitle",
|
|
13501
|
-
children:
|
|
13502
|
-
className: "charter-kicker",
|
|
13503
|
-
children: t("review.kicker")
|
|
13504
|
-
}), (0, react_jsx_runtime.jsx)("h3", {
|
|
15133
|
+
children: (0, react_jsx_runtime.jsx)("h3", {
|
|
13505
15134
|
id: "charter-objective-history-title",
|
|
13506
15135
|
children: t("review.objectiveHistory")
|
|
13507
|
-
})
|
|
15136
|
+
})
|
|
13508
15137
|
}), (0, react_jsx_runtime.jsx)("span", {
|
|
13509
15138
|
className: "charter-count",
|
|
13510
15139
|
children: closedObjectiveProposals.length
|
|
@@ -13539,15 +15168,12 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13539
15168
|
"aria-labelledby": "charter-item-proposals-title",
|
|
13540
15169
|
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
13541
15170
|
className: "charter-cardhead",
|
|
13542
|
-
children: [(0, react_jsx_runtime.
|
|
15171
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
13543
15172
|
className: "charter-cardtitle",
|
|
13544
|
-
children:
|
|
13545
|
-
className: "charter-kicker",
|
|
13546
|
-
children: t("review.kicker")
|
|
13547
|
-
}), (0, react_jsx_runtime.jsx)("h3", {
|
|
15173
|
+
children: (0, react_jsx_runtime.jsx)("h3", {
|
|
13548
15174
|
id: "charter-item-proposals-title",
|
|
13549
15175
|
children: t("review.itemProposals")
|
|
13550
|
-
})
|
|
15176
|
+
})
|
|
13551
15177
|
}), (0, react_jsx_runtime.jsx)("span", {
|
|
13552
15178
|
className: "charter-count",
|
|
13553
15179
|
children: pendingItemProposals.length
|
|
@@ -13558,6 +15184,8 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13558
15184
|
const batch = batchByItem.get(item.id);
|
|
13559
15185
|
return (0, react_jsx_runtime.jsxs)("li", {
|
|
13560
15186
|
className: "charter-proposal",
|
|
15187
|
+
"data-proposal-id": item.id,
|
|
15188
|
+
tabIndex: -1,
|
|
13561
15189
|
children: [
|
|
13562
15190
|
(0, react_jsx_runtime.jsx)("p", {
|
|
13563
15191
|
className: "charter-proposal__text",
|
|
@@ -13601,15 +15229,12 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13601
15229
|
"aria-labelledby": "charter-objective-proposals-title",
|
|
13602
15230
|
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
13603
15231
|
className: "charter-cardhead",
|
|
13604
|
-
children: [(0, react_jsx_runtime.
|
|
15232
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
13605
15233
|
className: "charter-cardtitle",
|
|
13606
|
-
children:
|
|
13607
|
-
className: "charter-kicker",
|
|
13608
|
-
children: t("review.kicker")
|
|
13609
|
-
}), (0, react_jsx_runtime.jsx)("h3", {
|
|
15234
|
+
children: (0, react_jsx_runtime.jsx)("h3", {
|
|
13610
15235
|
id: "charter-objective-proposals-title",
|
|
13611
15236
|
children: t("review.objectiveProposals")
|
|
13612
|
-
})
|
|
15237
|
+
})
|
|
13613
15238
|
}), (0, react_jsx_runtime.jsx)("span", {
|
|
13614
15239
|
className: "charter-count",
|
|
13615
15240
|
children: pendingObjectiveProposals.length
|
|
@@ -13671,15 +15296,12 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
13671
15296
|
"aria-labelledby": "charter-batches-title",
|
|
13672
15297
|
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
13673
15298
|
className: "charter-cardhead",
|
|
13674
|
-
children: [(0, react_jsx_runtime.
|
|
15299
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
13675
15300
|
className: "charter-cardtitle",
|
|
13676
|
-
children:
|
|
13677
|
-
className: "charter-kicker",
|
|
13678
|
-
children: t("review.kicker")
|
|
13679
|
-
}), (0, react_jsx_runtime.jsx)("h3", {
|
|
15301
|
+
children: (0, react_jsx_runtime.jsx)("h3", {
|
|
13680
15302
|
id: "charter-batches-title",
|
|
13681
15303
|
children: t("review.title")
|
|
13682
|
-
})
|
|
15304
|
+
})
|
|
13683
15305
|
}), (0, react_jsx_runtime.jsx)("span", {
|
|
13684
15306
|
className: "charter-count",
|
|
13685
15307
|
children: view.proposalBatches.length
|
|
@@ -14059,10 +15681,11 @@ function CharterPane({ source, draft, release, t }) {
|
|
|
14059
15681
|
children: t("validators.pickItem")
|
|
14060
15682
|
}), view.items.filter((item) => item.review === "accepted" && item.lifecycle === "current").map((item) => (0, react_jsx_runtime.jsxs)("option", {
|
|
14061
15683
|
value: item.id,
|
|
15684
|
+
title: item.text,
|
|
14062
15685
|
children: [
|
|
14063
15686
|
item.kind === "invariant" ? t("invariants.kicker") : t("deliverables.kicker"),
|
|
14064
15687
|
" · ",
|
|
14065
|
-
item.text
|
|
15688
|
+
shortText(item.text, 14)
|
|
14066
15689
|
]
|
|
14067
15690
|
}, item.id))]
|
|
14068
15691
|
}),
|